2007-07-05 Danny Smith <dannysmith@users.sourceforge.net>
[deliverable/binutils-gdb.git] / ld / configure
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
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for 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
43 do
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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo 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.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if 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
97 fi
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
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `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= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_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.
231 as_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.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if 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
277 fi
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
283 if 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
381 fi
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.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
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.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${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.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
422
423 ac_unique_file="ldmain.c"
424 # Factoring default headers for most tests.
425 ac_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
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS NO_WERROR USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462 ac_subst_files='TDIRS'
463
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
483
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
501
502 ac_prev=
503 for ac_option
504 do
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
516 case $ac_option in
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521 bindir=$ac_optarg ;;
522
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
527
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
542 datadir=$ac_optarg ;;
543
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
552
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
585
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
590
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
606 libdir=$ac_optarg ;;
607
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
614
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 mandir=$ac_optarg ;;
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
635 no_create=yes ;;
636
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
640
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653 prefix=$ac_optarg ;;
654
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
661
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
668
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
694 sbindir=$ac_optarg ;;
695
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
705 sharedstatedir=$ac_optarg ;;
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
710 site=$ac_optarg ;;
711
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715 srcdir=$ac_optarg ;;
716
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
734
735 -with-* | --with-*)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
747
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
767
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
774
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
778 ;;
779
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
789
790 *)
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796 ;;
797
798 esac
799 done
800
801 if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
805 fi
806
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
809 do
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816 done
817
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
821 do
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
827 esac
828 done
829
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
836
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
845 fi
846 fi
847
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851 test "$silent" = yes && exec 6>/dev/null
852
853
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874 else
875 ac_srcdir_defaulted=no
876 fi
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
884 fi
885 fi
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CC_set=${CC+set}
903 ac_env_CC_value=$CC
904 ac_cv_env_CC_set=${CC+set}
905 ac_cv_env_CC_value=$CC
906 ac_env_CFLAGS_set=${CFLAGS+set}
907 ac_env_CFLAGS_value=$CFLAGS
908 ac_cv_env_CFLAGS_set=${CFLAGS+set}
909 ac_cv_env_CFLAGS_value=$CFLAGS
910 ac_env_LDFLAGS_set=${LDFLAGS+set}
911 ac_env_LDFLAGS_value=$LDFLAGS
912 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913 ac_cv_env_LDFLAGS_value=$LDFLAGS
914 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915 ac_env_CPPFLAGS_value=$CPPFLAGS
916 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918 ac_env_CPP_set=${CPP+set}
919 ac_env_CPP_value=$CPP
920 ac_cv_env_CPP_set=${CPP+set}
921 ac_cv_env_CPP_value=$CPP
922
923 #
924 # Report the --help message.
925 #
926 if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
929 cat <<_ACEOF
930 \`configure' configures this package to adapt to many kinds of systems.
931
932 Usage: $0 [OPTION]... [VAR=VALUE]...
933
934 To assign environment variables (e.g., CC, CFLAGS...), specify them as
935 VAR=VALUE. See below for descriptions of some of the useful variables.
936
937 Defaults for the options are specified in brackets.
938
939 Configuration:
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
949
950 _ACEOF
951
952 cat <<_ACEOF
953 Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
955 [$ac_default_prefix]
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
957 [PREFIX]
958
959 By default, \`make install' will install all the files in
960 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962 for instance \`--prefix=\$HOME'.
963
964 For better control, use the options below.
965
966 Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
979 _ACEOF
980
981 cat <<\_ACEOF
982
983 Program names:
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
987
988 System types:
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
992 _ACEOF
993 fi
994
995 if test -n "$ac_init_help"; then
996
997 cat <<\_ACEOF
998
999 Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
1004 --enable-shared[=PKGS]
1005 build shared libraries [default=yes]
1006 --enable-static[=PKGS]
1007 build static libraries [default=yes]
1008 --enable-fast-install[=PKGS]
1009 optimize for fast installation [default=yes]
1010 --disable-libtool-lock avoid locking (might break parallel builds)
1011 --enable-targets alternative target configurations
1012 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1013 --enable-werror treat compile warnings as errors
1014 --enable-build-warnings enable build-time compiler warnings
1015 --disable-nls do not use Native Language Support
1016 --enable-maintainer-mode enable make rules and dependencies not useful
1017 (and sometimes confusing) to the casual installer
1018
1019 Optional 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 --with-lib-path=dir1:dir2... set default LIB_PATH
1026 --with-sysroot=DIR Search for usr/lib et al within DIR.
1027
1028 Some influential environment variables:
1029 CC C compiler command
1030 CFLAGS C compiler flags
1031 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1032 nonstandard directory <lib dir>
1033 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1034 headers in a nonstandard directory <include dir>
1035 CPP C preprocessor
1036
1037 Use these variables to override the choices made by `configure' or to help
1038 it to find libraries and programs with nonstandard names/locations.
1039
1040 _ACEOF
1041 fi
1042
1043 if test "$ac_init_help" = "recursive"; then
1044 # If there are subdirs, report their specific --help.
1045 ac_popdir=`pwd`
1046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047 test -d $ac_dir || continue
1048 ac_builddir=.
1049
1050 if test "$ac_dir" != .; then
1051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052 # A "../" for each directory in $ac_dir_suffix.
1053 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1054 else
1055 ac_dir_suffix= ac_top_builddir=
1056 fi
1057
1058 case $srcdir in
1059 .) # No --srcdir option. We are building in place.
1060 ac_srcdir=.
1061 if test -z "$ac_top_builddir"; then
1062 ac_top_srcdir=.
1063 else
1064 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1065 fi ;;
1066 [\\/]* | ?:[\\/]* ) # Absolute path.
1067 ac_srcdir=$srcdir$ac_dir_suffix;
1068 ac_top_srcdir=$srcdir ;;
1069 *) # Relative path.
1070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1072 esac
1073
1074 # Do not use `cd foo && pwd` to compute absolute paths, because
1075 # the directories may not exist.
1076 case `pwd` in
1077 .) ac_abs_builddir="$ac_dir";;
1078 *)
1079 case "$ac_dir" in
1080 .) ac_abs_builddir=`pwd`;;
1081 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1083 esac;;
1084 esac
1085 case $ac_abs_builddir in
1086 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1087 *)
1088 case ${ac_top_builddir}. in
1089 .) ac_abs_top_builddir=$ac_abs_builddir;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1092 esac;;
1093 esac
1094 case $ac_abs_builddir in
1095 .) ac_abs_srcdir=$ac_srcdir;;
1096 *)
1097 case $ac_srcdir in
1098 .) ac_abs_srcdir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1101 esac;;
1102 esac
1103 case $ac_abs_builddir in
1104 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1105 *)
1106 case $ac_top_srcdir in
1107 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1110 esac;;
1111 esac
1112
1113 cd $ac_dir
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1116 echo
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1119 echo
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1123 echo
1124 $ac_configure --help
1125 else
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127 fi
1128 cd $ac_popdir
1129 done
1130 fi
1131
1132 test -n "$ac_init_help" && exit 0
1133 if $ac_init_version; then
1134 cat <<\_ACEOF
1135
1136 Copyright (C) 2003 Free Software Foundation, Inc.
1137 This configure script is free software; the Free Software Foundation
1138 gives unlimited permission to copy, distribute and modify it.
1139 _ACEOF
1140 exit 0
1141 fi
1142 exec 5>config.log
1143 cat >&5 <<_ACEOF
1144 This file contains any messages produced by compilers while
1145 running configure, to aid debugging if configure makes a mistake.
1146
1147 It was created by $as_me, which was
1148 generated by GNU Autoconf 2.59. Invocation command line was
1149
1150 $ $0 $@
1151
1152 _ACEOF
1153 {
1154 cat <<_ASUNAME
1155 ## --------- ##
1156 ## Platform. ##
1157 ## --------- ##
1158
1159 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164
1165 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1167
1168 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1169 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1170 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1172 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1173 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1174 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1175
1176 _ASUNAME
1177
1178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179 for as_dir in $PATH
1180 do
1181 IFS=$as_save_IFS
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1184 done
1185
1186 } >&5
1187
1188 cat >&5 <<_ACEOF
1189
1190
1191 ## ----------- ##
1192 ## Core tests. ##
1193 ## ----------- ##
1194
1195 _ACEOF
1196
1197
1198 # Keep a trace of the command line.
1199 # Strip out --no-create and --no-recursion so they do not pile up.
1200 # Strip out --silent because we don't want to record it for future runs.
1201 # Also quote any args containing shell meta-characters.
1202 # Make two passes to allow for proper duplicate-argument suppression.
1203 ac_configure_args=
1204 ac_configure_args0=
1205 ac_configure_args1=
1206 ac_sep=
1207 ac_must_keep_next=false
1208 for ac_pass in 1 2
1209 do
1210 for ac_arg
1211 do
1212 case $ac_arg in
1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1216 continue ;;
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1219 esac
1220 case $ac_pass in
1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1222 2)
1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224 if test $ac_must_keep_next = true; then
1225 ac_must_keep_next=false # Got value, back to normal.
1226 else
1227 case $ac_arg in
1228 *=* | --config-cache | -C | -disable-* | --disable-* \
1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231 | -with-* | --with-* | -without-* | --without-* | --x)
1232 case "$ac_configure_args0 " in
1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1234 esac
1235 ;;
1236 -* ) ac_must_keep_next=true ;;
1237 esac
1238 fi
1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240 # Get rid of the leading space.
1241 ac_sep=" "
1242 ;;
1243 esac
1244 done
1245 done
1246 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1248
1249 # When interrupted or exit'd, cleanup temporary files, and complete
1250 # config.log. We remove comments because anyway the quotes in there
1251 # would cause problems or look ugly.
1252 # WARNING: Be sure not to use single quotes in there, as some shells,
1253 # such as our DU 5.0 friend, will then `close' the trap.
1254 trap 'exit_status=$?
1255 # Save into config.log some information that might help in debugging.
1256 {
1257 echo
1258
1259 cat <<\_ASBOX
1260 ## ---------------- ##
1261 ## Cache variables. ##
1262 ## ---------------- ##
1263 _ASBOX
1264 echo
1265 # The following way of writing the cache mishandles newlines in values,
1266 {
1267 (set) 2>&1 |
1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1269 *ac_space=\ *)
1270 sed -n \
1271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1273 ;;
1274 *)
1275 sed -n \
1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1277 ;;
1278 esac;
1279 }
1280 echo
1281
1282 cat <<\_ASBOX
1283 ## ----------------- ##
1284 ## Output variables. ##
1285 ## ----------------- ##
1286 _ASBOX
1287 echo
1288 for ac_var in $ac_subst_vars
1289 do
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1292 done | sort
1293 echo
1294
1295 if test -n "$ac_subst_files"; then
1296 cat <<\_ASBOX
1297 ## ------------- ##
1298 ## Output files. ##
1299 ## ------------- ##
1300 _ASBOX
1301 echo
1302 for ac_var in $ac_subst_files
1303 do
1304 eval ac_val=$`echo $ac_var`
1305 echo "$ac_var='"'"'$ac_val'"'"'"
1306 done | sort
1307 echo
1308 fi
1309
1310 if test -s confdefs.h; then
1311 cat <<\_ASBOX
1312 ## ----------- ##
1313 ## confdefs.h. ##
1314 ## ----------- ##
1315 _ASBOX
1316 echo
1317 sed "/^$/d" confdefs.h | sort
1318 echo
1319 fi
1320 test "$ac_signal" != 0 &&
1321 echo "$as_me: caught signal $ac_signal"
1322 echo "$as_me: exit $exit_status"
1323 } >&5
1324 rm -f core *.core &&
1325 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1326 exit $exit_status
1327 ' 0
1328 for ac_signal in 1 2 13 15; do
1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330 done
1331 ac_signal=0
1332
1333 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1334 rm -rf conftest* confdefs.h
1335 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336 echo >confdefs.h
1337
1338 # Predefined preprocessor variables.
1339
1340 cat >>confdefs.h <<_ACEOF
1341 #define PACKAGE_NAME "$PACKAGE_NAME"
1342 _ACEOF
1343
1344
1345 cat >>confdefs.h <<_ACEOF
1346 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347 _ACEOF
1348
1349
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1352 _ACEOF
1353
1354
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_STRING "$PACKAGE_STRING"
1357 _ACEOF
1358
1359
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362 _ACEOF
1363
1364
1365 # Let the site file select an alternate cache file if it wants to.
1366 # Prefer explicitly selected file to automatically selected ones.
1367 if test -z "$CONFIG_SITE"; then
1368 if test "x$prefix" != xNONE; then
1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1370 else
1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1372 fi
1373 fi
1374 for ac_site_file in $CONFIG_SITE; do
1375 if test -r "$ac_site_file"; then
1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377 echo "$as_me: loading site script $ac_site_file" >&6;}
1378 sed 's/^/| /' "$ac_site_file" >&5
1379 . "$ac_site_file"
1380 fi
1381 done
1382
1383 if test -r "$cache_file"; then
1384 # Some versions of bash will fail to source /dev/null (special
1385 # files actually), so we avoid doing that.
1386 if test -f "$cache_file"; then
1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388 echo "$as_me: loading cache $cache_file" >&6;}
1389 case $cache_file in
1390 [\\/]* | ?:[\\/]* ) . $cache_file;;
1391 *) . ./$cache_file;;
1392 esac
1393 fi
1394 else
1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396 echo "$as_me: creating cache $cache_file" >&6;}
1397 >$cache_file
1398 fi
1399
1400 # Check that the precious variables saved in the cache have kept the same
1401 # value.
1402 ac_cache_corrupted=false
1403 for ac_var in `(set) 2>&1 |
1404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406 eval ac_new_set=\$ac_env_${ac_var}_set
1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408 eval ac_new_val="\$ac_env_${ac_var}_value"
1409 case $ac_old_set,$ac_new_set in
1410 set,)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,set)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,);;
1419 *)
1420 if test "x$ac_old_val" != "x$ac_new_val"; then
1421 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1422 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1423 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1424 echo "$as_me: former value: $ac_old_val" >&2;}
1425 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1426 echo "$as_me: current value: $ac_new_val" >&2;}
1427 ac_cache_corrupted=:
1428 fi;;
1429 esac
1430 # Pass precious variables to config.status.
1431 if test "$ac_new_set" = set; then
1432 case $ac_new_val in
1433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1434 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1435 *) ac_arg=$ac_var=$ac_new_val ;;
1436 esac
1437 case " $ac_configure_args " in
1438 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1439 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1440 esac
1441 fi
1442 done
1443 if $ac_cache_corrupted; then
1444 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448 { (exit 1); exit 1; }; }
1449 fi
1450
1451 ac_ext=c
1452 ac_cpp='$CPP $CPPFLAGS'
1453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476 ac_aux_dir=
1477 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1478 if test -f $ac_dir/install-sh; then
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install-sh -c"
1481 break
1482 elif test -f $ac_dir/install.sh; then
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/install.sh -c"
1485 break
1486 elif test -f $ac_dir/shtool; then
1487 ac_aux_dir=$ac_dir
1488 ac_install_sh="$ac_aux_dir/shtool install -c"
1489 break
1490 fi
1491 done
1492 if test -z "$ac_aux_dir"; then
1493 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1494 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1495 { (exit 1); exit 1; }; }
1496 fi
1497 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1498 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1499 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1500
1501 # Make sure we can run config.sub.
1502 $ac_config_sub sun4 >/dev/null 2>&1 ||
1503 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1504 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1505 { (exit 1); exit 1; }; }
1506
1507 echo "$as_me:$LINENO: checking build system type" >&5
1508 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1509 if test "${ac_cv_build+set}" = set; then
1510 echo $ECHO_N "(cached) $ECHO_C" >&6
1511 else
1512 ac_cv_build_alias=$build_alias
1513 test -z "$ac_cv_build_alias" &&
1514 ac_cv_build_alias=`$ac_config_guess`
1515 test -z "$ac_cv_build_alias" &&
1516 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1517 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1518 { (exit 1); exit 1; }; }
1519 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1520 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1521 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1522 { (exit 1); exit 1; }; }
1523
1524 fi
1525 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1526 echo "${ECHO_T}$ac_cv_build" >&6
1527 build=$ac_cv_build
1528 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1529 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1530 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1531
1532
1533 echo "$as_me:$LINENO: checking host system type" >&5
1534 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1535 if test "${ac_cv_host+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1537 else
1538 ac_cv_host_alias=$host_alias
1539 test -z "$ac_cv_host_alias" &&
1540 ac_cv_host_alias=$ac_cv_build_alias
1541 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1542 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1543 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1544 { (exit 1); exit 1; }; }
1545
1546 fi
1547 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1548 echo "${ECHO_T}$ac_cv_host" >&6
1549 host=$ac_cv_host
1550 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1551 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1552 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1553
1554
1555 echo "$as_me:$LINENO: checking target system type" >&5
1556 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1557 if test "${ac_cv_target+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560 ac_cv_target_alias=$target_alias
1561 test "x$ac_cv_target_alias" = "x" &&
1562 ac_cv_target_alias=$ac_cv_host_alias
1563 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1564 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1565 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1566 { (exit 1); exit 1; }; }
1567
1568 fi
1569 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1570 echo "${ECHO_T}$ac_cv_target" >&6
1571 target=$ac_cv_target
1572 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1573 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1574 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1575
1576
1577 # The aliases save the names the user supplied, while $host etc.
1578 # will get canonicalized.
1579 test -n "$target_alias" &&
1580 test "$program_prefix$program_suffix$program_transform_name" = \
1581 NONENONEs,x,x, &&
1582 program_prefix=${target_alias}-
1583 ac_ext=c
1584 ac_cpp='$CPP $CPPFLAGS'
1585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1588 if test -n "$ac_tool_prefix"; then
1589 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1590 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1595 else
1596 if test -n "$CC"; then
1597 ac_cv_prog_CC="$CC" # Let the user override the test.
1598 else
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600 for as_dir in $PATH
1601 do
1602 IFS=$as_save_IFS
1603 test -z "$as_dir" && as_dir=.
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 break 2
1609 fi
1610 done
1611 done
1612
1613 fi
1614 fi
1615 CC=$ac_cv_prog_CC
1616 if test -n "$CC"; then
1617 echo "$as_me:$LINENO: result: $CC" >&5
1618 echo "${ECHO_T}$CC" >&6
1619 else
1620 echo "$as_me:$LINENO: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1622 fi
1623
1624 fi
1625 if test -z "$ac_cv_prog_CC"; then
1626 ac_ct_CC=$CC
1627 # Extract the first word of "gcc", so it can be a program name with args.
1628 set dummy gcc; ac_word=$2
1629 echo "$as_me:$LINENO: checking for $ac_word" >&5
1630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1633 else
1634 if test -n "$ac_ct_CC"; then
1635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1636 else
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 for as_dir in $PATH
1639 do
1640 IFS=$as_save_IFS
1641 test -z "$as_dir" && as_dir=.
1642 for ac_exec_ext in '' $ac_executable_extensions; do
1643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644 ac_cv_prog_ac_ct_CC="gcc"
1645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646 break 2
1647 fi
1648 done
1649 done
1650
1651 fi
1652 fi
1653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1654 if test -n "$ac_ct_CC"; then
1655 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1656 echo "${ECHO_T}$ac_ct_CC" >&6
1657 else
1658 echo "$as_me:$LINENO: result: no" >&5
1659 echo "${ECHO_T}no" >&6
1660 fi
1661
1662 CC=$ac_ct_CC
1663 else
1664 CC="$ac_cv_prog_CC"
1665 fi
1666
1667 if test -z "$CC"; then
1668 if test -n "$ac_tool_prefix"; then
1669 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1670 set dummy ${ac_tool_prefix}cc; ac_word=$2
1671 echo "$as_me:$LINENO: checking for $ac_word" >&5
1672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1673 if test "${ac_cv_prog_CC+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 else
1676 if test -n "$CC"; then
1677 ac_cv_prog_CC="$CC" # Let the user override the test.
1678 else
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 for as_dir in $PATH
1681 do
1682 IFS=$as_save_IFS
1683 test -z "$as_dir" && as_dir=.
1684 for ac_exec_ext in '' $ac_executable_extensions; do
1685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1686 ac_cv_prog_CC="${ac_tool_prefix}cc"
1687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1688 break 2
1689 fi
1690 done
1691 done
1692
1693 fi
1694 fi
1695 CC=$ac_cv_prog_CC
1696 if test -n "$CC"; then
1697 echo "$as_me:$LINENO: result: $CC" >&5
1698 echo "${ECHO_T}$CC" >&6
1699 else
1700 echo "$as_me:$LINENO: result: no" >&5
1701 echo "${ECHO_T}no" >&6
1702 fi
1703
1704 fi
1705 if test -z "$ac_cv_prog_CC"; then
1706 ac_ct_CC=$CC
1707 # Extract the first word of "cc", so it can be a program name with args.
1708 set dummy cc; ac_word=$2
1709 echo "$as_me:$LINENO: checking for $ac_word" >&5
1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714 if test -n "$ac_ct_CC"; then
1715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1716 else
1717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 for as_dir in $PATH
1719 do
1720 IFS=$as_save_IFS
1721 test -z "$as_dir" && as_dir=.
1722 for ac_exec_ext in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724 ac_cv_prog_ac_ct_CC="cc"
1725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726 break 2
1727 fi
1728 done
1729 done
1730
1731 fi
1732 fi
1733 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1734 if test -n "$ac_ct_CC"; then
1735 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1736 echo "${ECHO_T}$ac_ct_CC" >&6
1737 else
1738 echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1740 fi
1741
1742 CC=$ac_ct_CC
1743 else
1744 CC="$ac_cv_prog_CC"
1745 fi
1746
1747 fi
1748 if test -z "$CC"; then
1749 # Extract the first word of "cc", so it can be a program name with args.
1750 set dummy cc; ac_word=$2
1751 echo "$as_me:$LINENO: checking for $ac_word" >&5
1752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753 if test "${ac_cv_prog_CC+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 else
1756 if test -n "$CC"; then
1757 ac_cv_prog_CC="$CC" # Let the user override the test.
1758 else
1759 ac_prog_rejected=no
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 for as_dir in $PATH
1762 do
1763 IFS=$as_save_IFS
1764 test -z "$as_dir" && as_dir=.
1765 for ac_exec_ext in '' $ac_executable_extensions; do
1766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1768 ac_prog_rejected=yes
1769 continue
1770 fi
1771 ac_cv_prog_CC="cc"
1772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 break 2
1774 fi
1775 done
1776 done
1777
1778 if test $ac_prog_rejected = yes; then
1779 # We found a bogon in the path, so make sure we never use it.
1780 set dummy $ac_cv_prog_CC
1781 shift
1782 if test $# != 0; then
1783 # We chose a different compiler from the bogus one.
1784 # However, it has the same basename, so the bogon will be chosen
1785 # first if we set CC to just the basename; use the full file name.
1786 shift
1787 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1788 fi
1789 fi
1790 fi
1791 fi
1792 CC=$ac_cv_prog_CC
1793 if test -n "$CC"; then
1794 echo "$as_me:$LINENO: result: $CC" >&5
1795 echo "${ECHO_T}$CC" >&6
1796 else
1797 echo "$as_me:$LINENO: result: no" >&5
1798 echo "${ECHO_T}no" >&6
1799 fi
1800
1801 fi
1802 if test -z "$CC"; then
1803 if test -n "$ac_tool_prefix"; then
1804 for ac_prog in cl
1805 do
1806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1807 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_CC+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1812 else
1813 if test -n "$CC"; then
1814 ac_cv_prog_CC="$CC" # Let the user override the test.
1815 else
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817 for as_dir in $PATH
1818 do
1819 IFS=$as_save_IFS
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 break 2
1826 fi
1827 done
1828 done
1829
1830 fi
1831 fi
1832 CC=$ac_cv_prog_CC
1833 if test -n "$CC"; then
1834 echo "$as_me:$LINENO: result: $CC" >&5
1835 echo "${ECHO_T}$CC" >&6
1836 else
1837 echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1839 fi
1840
1841 test -n "$CC" && break
1842 done
1843 fi
1844 if test -z "$CC"; then
1845 ac_ct_CC=$CC
1846 for ac_prog in cl
1847 do
1848 # Extract the first word of "$ac_prog", so it can be a program name with args.
1849 set dummy $ac_prog; ac_word=$2
1850 echo "$as_me:$LINENO: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 else
1855 if test -n "$ac_ct_CC"; then
1856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1857 else
1858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859 for as_dir in $PATH
1860 do
1861 IFS=$as_save_IFS
1862 test -z "$as_dir" && as_dir=.
1863 for ac_exec_ext in '' $ac_executable_extensions; do
1864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865 ac_cv_prog_ac_ct_CC="$ac_prog"
1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867 break 2
1868 fi
1869 done
1870 done
1871
1872 fi
1873 fi
1874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1875 if test -n "$ac_ct_CC"; then
1876 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1877 echo "${ECHO_T}$ac_ct_CC" >&6
1878 else
1879 echo "$as_me:$LINENO: result: no" >&5
1880 echo "${ECHO_T}no" >&6
1881 fi
1882
1883 test -n "$ac_ct_CC" && break
1884 done
1885
1886 CC=$ac_ct_CC
1887 fi
1888
1889 fi
1890
1891
1892 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1893 See \`config.log' for more details." >&5
1894 echo "$as_me: error: no acceptable C compiler found in \$PATH
1895 See \`config.log' for more details." >&2;}
1896 { (exit 1); exit 1; }; }
1897
1898 # Provide some information about the compiler.
1899 echo "$as_me:$LINENO:" \
1900 "checking for C compiler version" >&5
1901 ac_compiler=`set X $ac_compile; echo $2`
1902 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1903 (eval $ac_compiler --version </dev/null >&5) 2>&5
1904 ac_status=$?
1905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906 (exit $ac_status); }
1907 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1908 (eval $ac_compiler -v </dev/null >&5) 2>&5
1909 ac_status=$?
1910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1911 (exit $ac_status); }
1912 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1913 (eval $ac_compiler -V </dev/null >&5) 2>&5
1914 ac_status=$?
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }
1917
1918 cat >conftest.$ac_ext <<_ACEOF
1919 /* confdefs.h. */
1920 _ACEOF
1921 cat confdefs.h >>conftest.$ac_ext
1922 cat >>conftest.$ac_ext <<_ACEOF
1923 /* end confdefs.h. */
1924
1925 int
1926 main ()
1927 {
1928
1929 ;
1930 return 0;
1931 }
1932 _ACEOF
1933 ac_clean_files_save=$ac_clean_files
1934 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1935 # Try to create an executable without -o first, disregard a.out.
1936 # It will help us diagnose broken compilers, and finding out an intuition
1937 # of exeext.
1938 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1939 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1940 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1941 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1942 (eval $ac_link_default) 2>&5
1943 ac_status=$?
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; then
1946 # Find the output, starting from the most likely. This scheme is
1947 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1948 # resort.
1949
1950 # Be careful to initialize this variable, since it used to be cached.
1951 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1952 ac_cv_exeext=
1953 # b.out is created by i960 compilers.
1954 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1955 do
1956 test -f "$ac_file" || continue
1957 case $ac_file in
1958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1959 ;;
1960 conftest.$ac_ext )
1961 # This is the source file.
1962 ;;
1963 [ab].out )
1964 # We found the default executable, but exeext='' is most
1965 # certainly right.
1966 break;;
1967 *.* )
1968 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1969 # FIXME: I believe we export ac_cv_exeext for Libtool,
1970 # but it would be cool to find out if it's true. Does anybody
1971 # maintain Libtool? --akim.
1972 export ac_cv_exeext
1973 break;;
1974 * )
1975 break;;
1976 esac
1977 done
1978 else
1979 echo "$as_me: failed program was:" >&5
1980 sed 's/^/| /' conftest.$ac_ext >&5
1981
1982 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1983 See \`config.log' for more details." >&5
1984 echo "$as_me: error: C compiler cannot create executables
1985 See \`config.log' for more details." >&2;}
1986 { (exit 77); exit 77; }; }
1987 fi
1988
1989 ac_exeext=$ac_cv_exeext
1990 echo "$as_me:$LINENO: result: $ac_file" >&5
1991 echo "${ECHO_T}$ac_file" >&6
1992
1993 # Check the compiler produces executables we can run. If not, either
1994 # the compiler is broken, or we cross compile.
1995 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1996 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1997 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1998 # If not cross compiling, check that we can run a simple program.
1999 if test "$cross_compiling" != yes; then
2000 if { ac_try='./$ac_file'
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 (eval $ac_try) 2>&5
2003 ac_status=$?
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; }; then
2006 cross_compiling=no
2007 else
2008 if test "$cross_compiling" = maybe; then
2009 cross_compiling=yes
2010 else
2011 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2012 If you meant to cross compile, use \`--host'.
2013 See \`config.log' for more details." >&5
2014 echo "$as_me: error: cannot run C compiled programs.
2015 If you meant to cross compile, use \`--host'.
2016 See \`config.log' for more details." >&2;}
2017 { (exit 1); exit 1; }; }
2018 fi
2019 fi
2020 fi
2021 echo "$as_me:$LINENO: result: yes" >&5
2022 echo "${ECHO_T}yes" >&6
2023
2024 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2025 ac_clean_files=$ac_clean_files_save
2026 # Check the compiler produces executables we can run. If not, either
2027 # the compiler is broken, or we cross compile.
2028 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2029 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2030 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2031 echo "${ECHO_T}$cross_compiling" >&6
2032
2033 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2034 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2036 (eval $ac_link) 2>&5
2037 ac_status=$?
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); }; then
2040 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2041 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2042 # work properly (i.e., refer to `conftest.exe'), while it won't with
2043 # `rm'.
2044 for ac_file in conftest.exe conftest conftest.*; do
2045 test -f "$ac_file" || continue
2046 case $ac_file in
2047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2048 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2049 export ac_cv_exeext
2050 break;;
2051 * ) break;;
2052 esac
2053 done
2054 else
2055 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2056 See \`config.log' for more details." >&5
2057 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2058 See \`config.log' for more details." >&2;}
2059 { (exit 1); exit 1; }; }
2060 fi
2061
2062 rm -f conftest$ac_cv_exeext
2063 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2064 echo "${ECHO_T}$ac_cv_exeext" >&6
2065
2066 rm -f conftest.$ac_ext
2067 EXEEXT=$ac_cv_exeext
2068 ac_exeext=$EXEEXT
2069 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2070 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2071 if test "${ac_cv_objext+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074 cat >conftest.$ac_ext <<_ACEOF
2075 /* confdefs.h. */
2076 _ACEOF
2077 cat confdefs.h >>conftest.$ac_ext
2078 cat >>conftest.$ac_ext <<_ACEOF
2079 /* end confdefs.h. */
2080
2081 int
2082 main ()
2083 {
2084
2085 ;
2086 return 0;
2087 }
2088 _ACEOF
2089 rm -f conftest.o conftest.obj
2090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2091 (eval $ac_compile) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; then
2095 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2096 case $ac_file in
2097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2098 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2099 break;;
2100 esac
2101 done
2102 else
2103 echo "$as_me: failed program was:" >&5
2104 sed 's/^/| /' conftest.$ac_ext >&5
2105
2106 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2107 See \`config.log' for more details." >&5
2108 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2109 See \`config.log' for more details." >&2;}
2110 { (exit 1); exit 1; }; }
2111 fi
2112
2113 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2114 fi
2115 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2116 echo "${ECHO_T}$ac_cv_objext" >&6
2117 OBJEXT=$ac_cv_objext
2118 ac_objext=$OBJEXT
2119 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2120 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2121 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124 cat >conftest.$ac_ext <<_ACEOF
2125 /* confdefs.h. */
2126 _ACEOF
2127 cat confdefs.h >>conftest.$ac_ext
2128 cat >>conftest.$ac_ext <<_ACEOF
2129 /* end confdefs.h. */
2130
2131 int
2132 main ()
2133 {
2134 #ifndef __GNUC__
2135 choke me
2136 #endif
2137
2138 ;
2139 return 0;
2140 }
2141 _ACEOF
2142 rm -f conftest.$ac_objext
2143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144 (eval $ac_compile) 2>conftest.er1
2145 ac_status=$?
2146 grep -v '^ *+' conftest.er1 >conftest.err
2147 rm -f conftest.er1
2148 cat conftest.err >&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); } &&
2151 { ac_try='test -z "$ac_c_werror_flag"
2152 || test ! -s conftest.err'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 (eval $ac_try) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; } &&
2158 { ac_try='test -s conftest.$ac_objext'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 (eval $ac_try) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; }; then
2164 ac_compiler_gnu=yes
2165 else
2166 echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.$ac_ext >&5
2168
2169 ac_compiler_gnu=no
2170 fi
2171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2172 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2173
2174 fi
2175 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2176 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2177 GCC=`test $ac_compiler_gnu = yes && echo yes`
2178 ac_test_CFLAGS=${CFLAGS+set}
2179 ac_save_CFLAGS=$CFLAGS
2180 CFLAGS="-g"
2181 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2182 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2183 if test "${ac_cv_prog_cc_g+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186 cat >conftest.$ac_ext <<_ACEOF
2187 /* confdefs.h. */
2188 _ACEOF
2189 cat confdefs.h >>conftest.$ac_ext
2190 cat >>conftest.$ac_ext <<_ACEOF
2191 /* end confdefs.h. */
2192
2193 int
2194 main ()
2195 {
2196
2197 ;
2198 return 0;
2199 }
2200 _ACEOF
2201 rm -f conftest.$ac_objext
2202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2203 (eval $ac_compile) 2>conftest.er1
2204 ac_status=$?
2205 grep -v '^ *+' conftest.er1 >conftest.err
2206 rm -f conftest.er1
2207 cat conftest.err >&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); } &&
2210 { ac_try='test -z "$ac_c_werror_flag"
2211 || test ! -s conftest.err'
2212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 (eval $ac_try) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; } &&
2217 { ac_try='test -s conftest.$ac_objext'
2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 (eval $ac_try) 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; }; then
2223 ac_cv_prog_cc_g=yes
2224 else
2225 echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2227
2228 ac_cv_prog_cc_g=no
2229 fi
2230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2231 fi
2232 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2233 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2234 if test "$ac_test_CFLAGS" = set; then
2235 CFLAGS=$ac_save_CFLAGS
2236 elif test $ac_cv_prog_cc_g = yes; then
2237 if test "$GCC" = yes; then
2238 CFLAGS="-g -O2"
2239 else
2240 CFLAGS="-g"
2241 fi
2242 else
2243 if test "$GCC" = yes; then
2244 CFLAGS="-O2"
2245 else
2246 CFLAGS=
2247 fi
2248 fi
2249 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2250 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2251 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254 ac_cv_prog_cc_stdc=no
2255 ac_save_CC=$CC
2256 cat >conftest.$ac_ext <<_ACEOF
2257 /* confdefs.h. */
2258 _ACEOF
2259 cat confdefs.h >>conftest.$ac_ext
2260 cat >>conftest.$ac_ext <<_ACEOF
2261 /* end confdefs.h. */
2262 #include <stdarg.h>
2263 #include <stdio.h>
2264 #include <sys/types.h>
2265 #include <sys/stat.h>
2266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2267 struct buf { int x; };
2268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2269 static char *e (p, i)
2270 char **p;
2271 int i;
2272 {
2273 return p[i];
2274 }
2275 static char *f (char * (*g) (char **, int), char **p, ...)
2276 {
2277 char *s;
2278 va_list v;
2279 va_start (v,p);
2280 s = g (p, va_arg (v,int));
2281 va_end (v);
2282 return s;
2283 }
2284
2285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2286 function prototypes and stuff, but not '\xHH' hex character constants.
2287 These don't provoke an error unfortunately, instead are silently treated
2288 as 'x'. The following induces an error, until -std1 is added to get
2289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2290 array size at least. It's necessary to write '\x00'==0 to get something
2291 that's true only with -std1. */
2292 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2293
2294 int test (int i, double x);
2295 struct s1 {int (*f) (int a);};
2296 struct s2 {int (*f) (double a);};
2297 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2298 int argc;
2299 char **argv;
2300 int
2301 main ()
2302 {
2303 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2304 ;
2305 return 0;
2306 }
2307 _ACEOF
2308 # Don't try gcc -ansi; that turns off useful extensions and
2309 # breaks some systems' header files.
2310 # AIX -qlanglvl=ansi
2311 # Ultrix and OSF/1 -std1
2312 # HP-UX 10.20 and later -Ae
2313 # HP-UX older versions -Aa -D_HPUX_SOURCE
2314 # SVR4 -Xc -D__EXTENSIONS__
2315 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2316 do
2317 CC="$ac_save_CC $ac_arg"
2318 rm -f conftest.$ac_objext
2319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320 (eval $ac_compile) 2>conftest.er1
2321 ac_status=$?
2322 grep -v '^ *+' conftest.er1 >conftest.err
2323 rm -f conftest.er1
2324 cat conftest.err >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); } &&
2327 { ac_try='test -z "$ac_c_werror_flag"
2328 || test ! -s conftest.err'
2329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 (eval $ac_try) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; } &&
2334 { ac_try='test -s conftest.$ac_objext'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 (eval $ac_try) 2>&5
2337 ac_status=$?
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; }; then
2340 ac_cv_prog_cc_stdc=$ac_arg
2341 break
2342 else
2343 echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2345
2346 fi
2347 rm -f conftest.err conftest.$ac_objext
2348 done
2349 rm -f conftest.$ac_ext conftest.$ac_objext
2350 CC=$ac_save_CC
2351
2352 fi
2353
2354 case "x$ac_cv_prog_cc_stdc" in
2355 x|xno)
2356 echo "$as_me:$LINENO: result: none needed" >&5
2357 echo "${ECHO_T}none needed" >&6 ;;
2358 *)
2359 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2360 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2361 CC="$CC $ac_cv_prog_cc_stdc" ;;
2362 esac
2363
2364 # Some people use a C++ compiler to compile C. Since we use `exit',
2365 # in C++ we need to declare it. In case someone uses the same compiler
2366 # for both compiling C and C++ we need to have the C++ compiler decide
2367 # the declaration of exit, since it's the most demanding environment.
2368 cat >conftest.$ac_ext <<_ACEOF
2369 #ifndef __cplusplus
2370 choke me
2371 #endif
2372 _ACEOF
2373 rm -f conftest.$ac_objext
2374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375 (eval $ac_compile) 2>conftest.er1
2376 ac_status=$?
2377 grep -v '^ *+' conftest.er1 >conftest.err
2378 rm -f conftest.er1
2379 cat conftest.err >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); } &&
2382 { ac_try='test -z "$ac_c_werror_flag"
2383 || test ! -s conftest.err'
2384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385 (eval $ac_try) 2>&5
2386 ac_status=$?
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; } &&
2389 { ac_try='test -s conftest.$ac_objext'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 (eval $ac_try) 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; }; then
2395 for ac_declaration in \
2396 '' \
2397 'extern "C" void std::exit (int) throw (); using std::exit;' \
2398 'extern "C" void std::exit (int); using std::exit;' \
2399 'extern "C" void exit (int) throw ();' \
2400 'extern "C" void exit (int);' \
2401 'void exit (int);'
2402 do
2403 cat >conftest.$ac_ext <<_ACEOF
2404 /* confdefs.h. */
2405 _ACEOF
2406 cat confdefs.h >>conftest.$ac_ext
2407 cat >>conftest.$ac_ext <<_ACEOF
2408 /* end confdefs.h. */
2409 $ac_declaration
2410 #include <stdlib.h>
2411 int
2412 main ()
2413 {
2414 exit (42);
2415 ;
2416 return 0;
2417 }
2418 _ACEOF
2419 rm -f conftest.$ac_objext
2420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421 (eval $ac_compile) 2>conftest.er1
2422 ac_status=$?
2423 grep -v '^ *+' conftest.er1 >conftest.err
2424 rm -f conftest.er1
2425 cat conftest.err >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } &&
2428 { ac_try='test -z "$ac_c_werror_flag"
2429 || test ! -s conftest.err'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 (eval $ac_try) 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; } &&
2435 { ac_try='test -s conftest.$ac_objext'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 (eval $ac_try) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 :
2442 else
2443 echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2445
2446 continue
2447 fi
2448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2449 cat >conftest.$ac_ext <<_ACEOF
2450 /* confdefs.h. */
2451 _ACEOF
2452 cat confdefs.h >>conftest.$ac_ext
2453 cat >>conftest.$ac_ext <<_ACEOF
2454 /* end confdefs.h. */
2455 $ac_declaration
2456 int
2457 main ()
2458 {
2459 exit (42);
2460 ;
2461 return 0;
2462 }
2463 _ACEOF
2464 rm -f conftest.$ac_objext
2465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466 (eval $ac_compile) 2>conftest.er1
2467 ac_status=$?
2468 grep -v '^ *+' conftest.er1 >conftest.err
2469 rm -f conftest.er1
2470 cat conftest.err >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); } &&
2473 { ac_try='test -z "$ac_c_werror_flag"
2474 || test ! -s conftest.err'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476 (eval $ac_try) 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; } &&
2480 { ac_try='test -s conftest.$ac_objext'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 (eval $ac_try) 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; }; then
2486 break
2487 else
2488 echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2490
2491 fi
2492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2493 done
2494 rm -f conftest*
2495 if test -n "$ac_declaration"; then
2496 echo '#ifdef __cplusplus' >>confdefs.h
2497 echo $ac_declaration >>confdefs.h
2498 echo '#endif' >>confdefs.h
2499 fi
2500
2501 else
2502 echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2504
2505 fi
2506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2507 ac_ext=c
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2512
2513
2514 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2515 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2516 if test "${ac_cv_search_strerror+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519 ac_func_search_save_LIBS=$LIBS
2520 ac_cv_search_strerror=no
2521 cat >conftest.$ac_ext <<_ACEOF
2522 /* confdefs.h. */
2523 _ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h. */
2527
2528 /* Override any gcc2 internal prototype to avoid an error. */
2529 #ifdef __cplusplus
2530 extern "C"
2531 #endif
2532 /* We use char because int might match the return type of a gcc2
2533 builtin and then its argument prototype would still apply. */
2534 char strerror ();
2535 int
2536 main ()
2537 {
2538 strerror ();
2539 ;
2540 return 0;
2541 }
2542 _ACEOF
2543 rm -f conftest.$ac_objext conftest$ac_exeext
2544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2545 (eval $ac_link) 2>conftest.er1
2546 ac_status=$?
2547 grep -v '^ *+' conftest.er1 >conftest.err
2548 rm -f conftest.er1
2549 cat conftest.err >&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } &&
2552 { ac_try='test -z "$ac_c_werror_flag"
2553 || test ! -s conftest.err'
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555 (eval $ac_try) 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; } &&
2559 { ac_try='test -s conftest$ac_exeext'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 (eval $ac_try) 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; }; then
2565 ac_cv_search_strerror="none required"
2566 else
2567 echo "$as_me: failed program was:" >&5
2568 sed 's/^/| /' conftest.$ac_ext >&5
2569
2570 fi
2571 rm -f conftest.err conftest.$ac_objext \
2572 conftest$ac_exeext conftest.$ac_ext
2573 if test "$ac_cv_search_strerror" = no; then
2574 for ac_lib in cposix; do
2575 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2576 cat >conftest.$ac_ext <<_ACEOF
2577 /* confdefs.h. */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h. */
2582
2583 /* Override any gcc2 internal prototype to avoid an error. */
2584 #ifdef __cplusplus
2585 extern "C"
2586 #endif
2587 /* We use char because int might match the return type of a gcc2
2588 builtin and then its argument prototype would still apply. */
2589 char strerror ();
2590 int
2591 main ()
2592 {
2593 strerror ();
2594 ;
2595 return 0;
2596 }
2597 _ACEOF
2598 rm -f conftest.$ac_objext conftest$ac_exeext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2600 (eval $ac_link) 2>conftest.er1
2601 ac_status=$?
2602 grep -v '^ *+' conftest.er1 >conftest.err
2603 rm -f conftest.er1
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -z "$ac_c_werror_flag"
2608 || test ! -s conftest.err'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 (eval $ac_try) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; } &&
2614 { ac_try='test -s conftest$ac_exeext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2620 ac_cv_search_strerror="-l$ac_lib"
2621 break
2622 else
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2625
2626 fi
2627 rm -f conftest.err conftest.$ac_objext \
2628 conftest$ac_exeext conftest.$ac_ext
2629 done
2630 fi
2631 LIBS=$ac_func_search_save_LIBS
2632 fi
2633 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2634 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2635 if test "$ac_cv_search_strerror" != no; then
2636 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2637
2638 fi
2639
2640
2641 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2642 am__api_version="1.9"
2643 # Find a good install program. We prefer a C program (faster),
2644 # so one script is as good as another. But avoid the broken or
2645 # incompatible versions:
2646 # SysV /etc/install, /usr/sbin/install
2647 # SunOS /usr/etc/install
2648 # IRIX /sbin/install
2649 # AIX /bin/install
2650 # AmigaOS /C/install, which installs bootblocks on floppy discs
2651 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2652 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2653 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2654 # OS/2's system install, which has a completely different semantic
2655 # ./install, which can be erroneously created by make from ./install.sh.
2656 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2657 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2658 if test -z "$INSTALL"; then
2659 if test "${ac_cv_path_install+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2664 do
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 # Account for people who put trailing slashes in PATH elements.
2668 case $as_dir/ in
2669 ./ | .// | /cC/* | \
2670 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2671 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2672 /usr/ucb/* ) ;;
2673 *)
2674 # OSF1 and SCO ODT 3.0 have their own names for install.
2675 # Don't use installbsd from OSF since it installs stuff as root
2676 # by default.
2677 for ac_prog in ginstall scoinst install; do
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2680 if test $ac_prog = install &&
2681 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2682 # AIX install. It has an incompatible calling convention.
2683 :
2684 elif test $ac_prog = install &&
2685 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2686 # program-specific install script used by HP pwplus--don't use.
2687 :
2688 else
2689 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2690 break 3
2691 fi
2692 fi
2693 done
2694 done
2695 ;;
2696 esac
2697 done
2698
2699
2700 fi
2701 if test "${ac_cv_path_install+set}" = set; then
2702 INSTALL=$ac_cv_path_install
2703 else
2704 # As a last resort, use the slow shell script. We don't cache a
2705 # path for INSTALL within a source directory, because that will
2706 # break other packages using the cache if that directory is
2707 # removed, or if the path is relative.
2708 INSTALL=$ac_install_sh
2709 fi
2710 fi
2711 echo "$as_me:$LINENO: result: $INSTALL" >&5
2712 echo "${ECHO_T}$INSTALL" >&6
2713
2714 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2715 # It thinks the first close brace ends the variable substitution.
2716 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2717
2718 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2719
2720 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2721
2722 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2723 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2724 # Just in case
2725 sleep 1
2726 echo timestamp > conftest.file
2727 # Do `set' in a subshell so we don't clobber the current shell's
2728 # arguments. Must try -L first in case configure is actually a
2729 # symlink; some systems play weird games with the mod time of symlinks
2730 # (eg FreeBSD returns the mod time of the symlink's containing
2731 # directory).
2732 if (
2733 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2734 if test "$*" = "X"; then
2735 # -L didn't work.
2736 set X `ls -t $srcdir/configure conftest.file`
2737 fi
2738 rm -f conftest.file
2739 if test "$*" != "X $srcdir/configure conftest.file" \
2740 && test "$*" != "X conftest.file $srcdir/configure"; then
2741
2742 # If neither matched, then we have a broken ls. This can happen
2743 # if, for instance, CONFIG_SHELL is bash and it inherits a
2744 # broken ls alias from the environment. This has actually
2745 # happened. Such a system could not be considered "sane".
2746 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2747 alias in your environment" >&5
2748 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2749 alias in your environment" >&2;}
2750 { (exit 1); exit 1; }; }
2751 fi
2752
2753 test "$2" = conftest.file
2754 )
2755 then
2756 # Ok.
2757 :
2758 else
2759 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2760 Check your system clock" >&5
2761 echo "$as_me: error: newly created file is older than distributed files!
2762 Check your system clock" >&2;}
2763 { (exit 1); exit 1; }; }
2764 fi
2765 echo "$as_me:$LINENO: result: yes" >&5
2766 echo "${ECHO_T}yes" >&6
2767 test "$program_prefix" != NONE &&
2768 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2769 # Use a double $ so make ignores it.
2770 test "$program_suffix" != NONE &&
2771 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2772 # Double any \ or $. echo might interpret backslashes.
2773 # By default was `s,x,x', remove it if useless.
2774 cat <<\_ACEOF >conftest.sed
2775 s/[\\$]/&&/g;s/;s,x,x,$//
2776 _ACEOF
2777 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2778 rm conftest.sed
2779
2780 # expand $ac_aux_dir to an absolute path
2781 am_aux_dir=`cd $ac_aux_dir && pwd`
2782
2783 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2784 # Use eval to expand $SHELL
2785 if eval "$MISSING --run true"; then
2786 am_missing_run="$MISSING --run "
2787 else
2788 am_missing_run=
2789 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2790 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2791 fi
2792
2793 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2794 # We used to keeping the `.' as first argument, in order to
2795 # allow $(mkdir_p) to be used without argument. As in
2796 # $(mkdir_p) $(somedir)
2797 # where $(somedir) is conditionally defined. However this is wrong
2798 # for two reasons:
2799 # 1. if the package is installed by a user who cannot write `.'
2800 # make install will fail,
2801 # 2. the above comment should most certainly read
2802 # $(mkdir_p) $(DESTDIR)$(somedir)
2803 # so it does not work when $(somedir) is undefined and
2804 # $(DESTDIR) is not.
2805 # To support the latter case, we have to write
2806 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2807 # so the `.' trick is pointless.
2808 mkdir_p='mkdir -p --'
2809 else
2810 # On NextStep and OpenStep, the `mkdir' command does not
2811 # recognize any option. It will interpret all options as
2812 # directories to create, and then abort because `.' already
2813 # exists.
2814 for d in ./-p ./--version;
2815 do
2816 test -d $d && rmdir $d
2817 done
2818 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2819 if test -f "$ac_aux_dir/mkinstalldirs"; then
2820 mkdir_p='$(mkinstalldirs)'
2821 else
2822 mkdir_p='$(install_sh) -d'
2823 fi
2824 fi
2825
2826 for ac_prog in gawk mawk nawk awk
2827 do
2828 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829 set dummy $ac_prog; ac_word=$2
2830 echo "$as_me:$LINENO: checking for $ac_word" >&5
2831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2832 if test "${ac_cv_prog_AWK+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 else
2835 if test -n "$AWK"; then
2836 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2840 do
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_AWK="$ac_prog"
2846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2848 fi
2849 done
2850 done
2851
2852 fi
2853 fi
2854 AWK=$ac_cv_prog_AWK
2855 if test -n "$AWK"; then
2856 echo "$as_me:$LINENO: result: $AWK" >&5
2857 echo "${ECHO_T}$AWK" >&6
2858 else
2859 echo "$as_me:$LINENO: result: no" >&5
2860 echo "${ECHO_T}no" >&6
2861 fi
2862
2863 test -n "$AWK" && break
2864 done
2865
2866 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2867 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2868 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2869 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 else
2872 cat >conftest.make <<\_ACEOF
2873 all:
2874 @echo 'ac_maketemp="$(MAKE)"'
2875 _ACEOF
2876 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2877 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2878 if test -n "$ac_maketemp"; then
2879 eval ac_cv_prog_make_${ac_make}_set=yes
2880 else
2881 eval ac_cv_prog_make_${ac_make}_set=no
2882 fi
2883 rm -f conftest.make
2884 fi
2885 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2886 echo "$as_me:$LINENO: result: yes" >&5
2887 echo "${ECHO_T}yes" >&6
2888 SET_MAKE=
2889 else
2890 echo "$as_me:$LINENO: result: no" >&5
2891 echo "${ECHO_T}no" >&6
2892 SET_MAKE="MAKE=${MAKE-make}"
2893 fi
2894
2895 rm -rf .tst 2>/dev/null
2896 mkdir .tst 2>/dev/null
2897 if test -d .tst; then
2898 am__leading_dot=.
2899 else
2900 am__leading_dot=_
2901 fi
2902 rmdir .tst 2>/dev/null
2903
2904 DEPDIR="${am__leading_dot}deps"
2905
2906 ac_config_commands="$ac_config_commands depfiles"
2907
2908
2909 am_make=${MAKE-make}
2910 cat > confinc << 'END'
2911 am__doit:
2912 @echo done
2913 .PHONY: am__doit
2914 END
2915 # If we don't find an include directive, just comment out the code.
2916 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2917 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2918 am__include="#"
2919 am__quote=
2920 _am_result=none
2921 # First try GNU make style include.
2922 echo "include confinc" > confmf
2923 # We grep out `Entering directory' and `Leaving directory'
2924 # messages which can occur if `w' ends up in MAKEFLAGS.
2925 # In particular we don't look at `^make:' because GNU make might
2926 # be invoked under some other name (usually "gmake"), in which
2927 # case it prints its new name instead of `make'.
2928 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2929 am__include=include
2930 am__quote=
2931 _am_result=GNU
2932 fi
2933 # Now try BSD make style include.
2934 if test "$am__include" = "#"; then
2935 echo '.include "confinc"' > confmf
2936 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2937 am__include=.include
2938 am__quote="\""
2939 _am_result=BSD
2940 fi
2941 fi
2942
2943
2944 echo "$as_me:$LINENO: result: $_am_result" >&5
2945 echo "${ECHO_T}$_am_result" >&6
2946 rm -f confinc confmf
2947
2948 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2949 if test "${enable_dependency_tracking+set}" = set; then
2950 enableval="$enable_dependency_tracking"
2951
2952 fi;
2953 if test "x$enable_dependency_tracking" != xno; then
2954 am_depcomp="$ac_aux_dir/depcomp"
2955 AMDEPBACKSLASH='\'
2956 fi
2957
2958
2959 if test "x$enable_dependency_tracking" != xno; then
2960 AMDEP_TRUE=
2961 AMDEP_FALSE='#'
2962 else
2963 AMDEP_TRUE='#'
2964 AMDEP_FALSE=
2965 fi
2966
2967
2968
2969 # test to see if srcdir already configured
2970 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2971 test -f $srcdir/config.status; then
2972 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2973 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2974 { (exit 1); exit 1; }; }
2975 fi
2976
2977 # test whether we have cygpath
2978 if test -z "$CYGPATH_W"; then
2979 if (cygpath --version) >/dev/null 2>/dev/null; then
2980 CYGPATH_W='cygpath -w'
2981 else
2982 CYGPATH_W=echo
2983 fi
2984 fi
2985
2986
2987 # Define the identity of the package.
2988 PACKAGE=ld
2989 VERSION=${BFD_VERSION}
2990
2991
2992 cat >>confdefs.h <<_ACEOF
2993 #define PACKAGE "$PACKAGE"
2994 _ACEOF
2995
2996
2997 cat >>confdefs.h <<_ACEOF
2998 #define VERSION "$VERSION"
2999 _ACEOF
3000
3001 # Some tools Automake needs.
3002
3003 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3004
3005
3006 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3007
3008
3009 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3010
3011
3012 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3013
3014
3015 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3016
3017 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3018
3019 # Installed binaries are usually stripped using `strip' when the user
3020 # run `make install-strip'. However `strip' might not be the right
3021 # tool to use in cross-compilation environments, therefore Automake
3022 # will honor the `STRIP' environment variable to overrule this program.
3023 if test "$cross_compiling" != no; then
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3026 set dummy ${ac_tool_prefix}strip; ac_word=$2
3027 echo "$as_me:$LINENO: checking for $ac_word" >&5
3028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3029 if test "${ac_cv_prog_STRIP+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032 if test -n "$STRIP"; then
3033 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046 done
3047 done
3048
3049 fi
3050 fi
3051 STRIP=$ac_cv_prog_STRIP
3052 if test -n "$STRIP"; then
3053 echo "$as_me:$LINENO: result: $STRIP" >&5
3054 echo "${ECHO_T}$STRIP" >&6
3055 else
3056 echo "$as_me:$LINENO: result: no" >&5
3057 echo "${ECHO_T}no" >&6
3058 fi
3059
3060 fi
3061 if test -z "$ac_cv_prog_STRIP"; then
3062 ac_ct_STRIP=$STRIP
3063 # Extract the first word of "strip", so it can be a program name with args.
3064 set dummy strip; ac_word=$2
3065 echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3067 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070 if test -n "$ac_ct_STRIP"; then
3071 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3075 do
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080 ac_cv_prog_ac_ct_STRIP="strip"
3081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3083 fi
3084 done
3085 done
3086
3087 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3088 fi
3089 fi
3090 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3091 if test -n "$ac_ct_STRIP"; then
3092 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3093 echo "${ECHO_T}$ac_ct_STRIP" >&6
3094 else
3095 echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3097 fi
3098
3099 STRIP=$ac_ct_STRIP
3100 else
3101 STRIP="$ac_cv_prog_STRIP"
3102 fi
3103
3104 fi
3105 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3106
3107 # We need awk for the "check" target. The system "awk" is bad on
3108 # some platforms.
3109 # Always define AMTAR for backward compatibility.
3110
3111 AMTAR=${AMTAR-"${am_missing_run}tar"}
3112
3113 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3114
3115
3116
3117
3118 depcc="$CC" am_compiler_list=
3119
3120 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3121 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3122 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3126 # We make a subdir and do the tests there. Otherwise we can end up
3127 # making bogus files that we don't know about and never remove. For
3128 # instance it was reported that on HP-UX the gcc test will end up
3129 # making a dummy file named `D' -- because `-MD' means `put the output
3130 # in D'.
3131 mkdir conftest.dir
3132 # Copy depcomp to subdir because otherwise we won't find it if we're
3133 # using a relative directory.
3134 cp "$am_depcomp" conftest.dir
3135 cd conftest.dir
3136 # We will build objects and dependencies in a subdirectory because
3137 # it helps to detect inapplicable dependency modes. For instance
3138 # both Tru64's cc and ICC support -MD to output dependencies as a
3139 # side effect of compilation, but ICC will put the dependencies in
3140 # the current directory while Tru64 will put them in the object
3141 # directory.
3142 mkdir sub
3143
3144 am_cv_CC_dependencies_compiler_type=none
3145 if test "$am_compiler_list" = ""; then
3146 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3147 fi
3148 for depmode in $am_compiler_list; do
3149 # Setup a source with many dependencies, because some compilers
3150 # like to wrap large dependency lists on column 80 (with \), and
3151 # we should not choose a depcomp mode which is confused by this.
3152 #
3153 # We need to recreate these files for each test, as the compiler may
3154 # overwrite some of them when testing with obscure command lines.
3155 # This happens at least with the AIX C compiler.
3156 : > sub/conftest.c
3157 for i in 1 2 3 4 5 6; do
3158 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3159 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3160 # Solaris 8's {/usr,}/bin/sh.
3161 touch sub/conftst$i.h
3162 done
3163 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3164
3165 case $depmode in
3166 nosideeffect)
3167 # after this tag, mechanisms are not by side-effect, so they'll
3168 # only be used when explicitly requested
3169 if test "x$enable_dependency_tracking" = xyes; then
3170 continue
3171 else
3172 break
3173 fi
3174 ;;
3175 none) break ;;
3176 esac
3177 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3178 # mode. It turns out that the SunPro C++ compiler does not properly
3179 # handle `-M -o', and we need to detect this.
3180 if depmode=$depmode \
3181 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3182 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3183 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3184 >/dev/null 2>conftest.err &&
3185 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3186 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3187 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3188 # icc doesn't choke on unknown options, it will just issue warnings
3189 # or remarks (even with -Werror). So we grep stderr for any message
3190 # that says an option was ignored or not supported.
3191 # When given -MP, icc 7.0 and 7.1 complain thusly:
3192 # icc: Command line warning: ignoring option '-M'; no argument required
3193 # The diagnosis changed in icc 8.0:
3194 # icc: Command line remark: option '-MP' not supported
3195 if (grep 'ignoring option' conftest.err ||
3196 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3197 am_cv_CC_dependencies_compiler_type=$depmode
3198 break
3199 fi
3200 fi
3201 done
3202
3203 cd ..
3204 rm -rf conftest.dir
3205 else
3206 am_cv_CC_dependencies_compiler_type=none
3207 fi
3208
3209 fi
3210 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3211 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3212 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3213
3214
3215
3216 if
3217 test "x$enable_dependency_tracking" != xno \
3218 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3219 am__fastdepCC_TRUE=
3220 am__fastdepCC_FALSE='#'
3221 else
3222 am__fastdepCC_TRUE='#'
3223 am__fastdepCC_FALSE=
3224 fi
3225
3226
3227
3228
3229
3230
3231 macro_version='2.1a'
3232 macro_revision='1.2435'
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245 ltmain="$ac_aux_dir/ltmain.sh"
3246
3247 # Set options
3248
3249 enable_dlopen=no
3250
3251
3252 enable_win32_dll=no
3253
3254
3255 # Check whether --enable-shared or --disable-shared was given.
3256 if test "${enable_shared+set}" = set; then
3257 enableval="$enable_shared"
3258 p=${PACKAGE-default}
3259 case $enableval in
3260 yes) enable_shared=yes ;;
3261 no) enable_shared=no ;;
3262 *)
3263 enable_shared=no
3264 # Look at the argument we got. We use all the common list separators.
3265 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3266 for pkg in $enableval; do
3267 IFS="$lt_save_ifs"
3268 if test "X$pkg" = "X$p"; then
3269 enable_shared=yes
3270 fi
3271 done
3272 IFS="$lt_save_ifs"
3273 ;;
3274 esac
3275 else
3276 enable_shared=yes
3277 fi;
3278
3279
3280
3281
3282
3283
3284
3285
3286 # Check whether --enable-static or --disable-static was given.
3287 if test "${enable_static+set}" = set; then
3288 enableval="$enable_static"
3289 p=${PACKAGE-default}
3290 case $enableval in
3291 yes) enable_static=yes ;;
3292 no) enable_static=no ;;
3293 *)
3294 enable_static=no
3295 # Look at the argument we got. We use all the common list separators.
3296 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3297 for pkg in $enableval; do
3298 IFS="$lt_save_ifs"
3299 if test "X$pkg" = "X$p"; then
3300 enable_static=yes
3301 fi
3302 done
3303 IFS="$lt_save_ifs"
3304 ;;
3305 esac
3306 else
3307 enable_static=yes
3308 fi;
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318 # Check whether --with-pic or --without-pic was given.
3319 if test "${with_pic+set}" = set; then
3320 withval="$with_pic"
3321 pic_mode="$withval"
3322 else
3323 pic_mode=default
3324 fi;
3325
3326 test -z "$pic_mode" && pic_mode=default
3327
3328
3329
3330
3331
3332
3333
3334 # Check whether --enable-fast-install or --disable-fast-install was given.
3335 if test "${enable_fast_install+set}" = set; then
3336 enableval="$enable_fast_install"
3337 p=${PACKAGE-default}
3338 case $enableval in
3339 yes) enable_fast_install=yes ;;
3340 no) enable_fast_install=no ;;
3341 *)
3342 enable_fast_install=no
3343 # Look at the argument we got. We use all the common list separators.
3344 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3345 for pkg in $enableval; do
3346 IFS="$lt_save_ifs"
3347 if test "X$pkg" = "X$p"; then
3348 enable_fast_install=yes
3349 fi
3350 done
3351 IFS="$lt_save_ifs"
3352 ;;
3353 esac
3354 else
3355 enable_fast_install=yes
3356 fi;
3357
3358
3359
3360
3361
3362
3363
3364
3365 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3366 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3367 if test "${lt_cv_path_SED+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370 # Loop through the user's path and test for sed and gsed.
3371 # Then use that list of sed's as ones to test for truncation.
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for lt_ac_prog in sed gsed; do
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3380 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3381 fi
3382 done
3383 done
3384 done
3385 IFS=$as_save_IFS
3386 lt_ac_max=0
3387 lt_ac_count=0
3388 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3389 # along with /bin/sed that truncates output.
3390 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3391 test ! -f $lt_ac_sed && continue
3392 cat /dev/null > conftest.in
3393 lt_ac_count=0
3394 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3395 # Check for GNU sed and select it if it is found.
3396 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3397 lt_cv_path_SED=$lt_ac_sed
3398 break
3399 fi
3400 while true; do
3401 cat conftest.in conftest.in >conftest.tmp
3402 mv conftest.tmp conftest.in
3403 cp conftest.in conftest.nl
3404 echo >>conftest.nl
3405 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3406 cmp -s conftest.out conftest.nl || break
3407 # 10000 chars as input seems more than enough
3408 test $lt_ac_count -gt 10 && break
3409 lt_ac_count=`expr $lt_ac_count + 1`
3410 if test $lt_ac_count -gt $lt_ac_max; then
3411 lt_ac_max=$lt_ac_count
3412 lt_cv_path_SED=$lt_ac_sed
3413 fi
3414 done
3415 done
3416
3417 fi
3418
3419 SED=$lt_cv_path_SED
3420
3421 echo "$as_me:$LINENO: result: $SED" >&5
3422 echo "${ECHO_T}$SED" >&6
3423
3424 test -z "$SED" && SED=sed
3425 Xsed="$SED -e 1s/^X//"
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437 echo "$as_me:$LINENO: checking for egrep" >&5
3438 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3439 if test "${ac_cv_prog_egrep+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3443 then ac_cv_prog_egrep='grep -E'
3444 else ac_cv_prog_egrep='egrep'
3445 fi
3446 fi
3447 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3448 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3449 EGREP=$ac_cv_prog_egrep
3450
3451
3452 echo "$as_me:$LINENO: checking for fgrep" >&5
3453 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3454 if test "${ac_cv_prog_fgrep+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 else
3457 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3458 then ac_cv_prog_fgrep='grep -F'
3459 else ac_cv_prog_fgrep='fgrep'
3460 fi
3461 fi
3462 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3463 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3464 FGREP=$ac_cv_prog_fgrep
3465
3466
3467 test -z "$GREP" && GREP=grep
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3488 if test "${with_gnu_ld+set}" = set; then
3489 withval="$with_gnu_ld"
3490 test "$withval" = no || with_gnu_ld=yes
3491 else
3492 with_gnu_ld=no
3493 fi;
3494 ac_prog=ld
3495 if test "$GCC" = yes; then
3496 # Check if gcc -print-prog-name=ld gives a path.
3497 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3498 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3499 case $host in
3500 *-*-mingw*)
3501 # gcc leaves a trailing carriage return which upsets mingw
3502 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3503 *)
3504 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3505 esac
3506 case $ac_prog in
3507 # Accept absolute paths.
3508 [\\/]* | ?:[\\/]*)
3509 re_direlt='/[^/][^/]*/\.\./'
3510 # Canonicalize the pathname of ld
3511 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3512 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3513 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3514 done
3515 test -z "$LD" && LD="$ac_prog"
3516 ;;
3517 "")
3518 # If it fails, then pretend we aren't using GCC.
3519 ac_prog=ld
3520 ;;
3521 *)
3522 # If it is relative, then search for the first ld in PATH.
3523 with_gnu_ld=unknown
3524 ;;
3525 esac
3526 elif test "$with_gnu_ld" = yes; then
3527 echo "$as_me:$LINENO: checking for GNU ld" >&5
3528 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3529 else
3530 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3531 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3532 fi
3533 if test "${lt_cv_path_LD+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536 if test -z "$LD"; then
3537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3538 for ac_dir in $PATH; do
3539 IFS="$lt_save_ifs"
3540 test -z "$ac_dir" && ac_dir=.
3541 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3542 lt_cv_path_LD="$ac_dir/$ac_prog"
3543 # Check to see if the program is GNU ld. I'd rather use --version,
3544 # but apparently some variants of GNU ld only accept -v.
3545 # Break only if it was the GNU/non-GNU ld that we prefer.
3546 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3547 *GNU* | *'with BFD'*)
3548 test "$with_gnu_ld" != no && break
3549 ;;
3550 *)
3551 test "$with_gnu_ld" != yes && break
3552 ;;
3553 esac
3554 fi
3555 done
3556 IFS="$lt_save_ifs"
3557 else
3558 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3559 fi
3560 fi
3561
3562 LD="$lt_cv_path_LD"
3563 if test -n "$LD"; then
3564 echo "$as_me:$LINENO: result: $LD" >&5
3565 echo "${ECHO_T}$LD" >&6
3566 else
3567 echo "$as_me:$LINENO: result: no" >&5
3568 echo "${ECHO_T}no" >&6
3569 fi
3570 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3571 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3572 { (exit 1); exit 1; }; }
3573 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3574 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3575 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3579 case `$LD -v 2>&1 </dev/null` in
3580 *GNU* | *'with BFD'*)
3581 lt_cv_prog_gnu_ld=yes
3582 ;;
3583 *)
3584 lt_cv_prog_gnu_ld=no
3585 ;;
3586 esac
3587 fi
3588 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3589 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3590 with_gnu_ld=$lt_cv_prog_gnu_ld
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3602 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3603 if test "${lt_cv_path_NM+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606 if test -n "$NM"; then
3607 # Let the user override the test.
3608 lt_cv_path_NM="$NM"
3609 else
3610 lt_nm_to_check="${ac_tool_prefix}nm"
3611 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3612 lt_nm_to_check="$lt_nm_to_check nm"
3613 fi
3614 for lt_tmp_nm in $lt_nm_to_check; do
3615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3616 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3617 IFS="$lt_save_ifs"
3618 test -z "$ac_dir" && ac_dir=.
3619 tmp_nm="$ac_dir/$lt_tmp_nm"
3620 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3621 # Check to see if the nm accepts a BSD-compat flag.
3622 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3623 # nm: unknown option "B" ignored
3624 # Tru64's nm complains that /dev/null is an invalid object file
3625 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3626 */dev/null* | *'Invalid file or object type'*)
3627 lt_cv_path_NM="$tmp_nm -B"
3628 break
3629 ;;
3630 *)
3631 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3632 */dev/null*)
3633 lt_cv_path_NM="$tmp_nm -p"
3634 break
3635 ;;
3636 *)
3637 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3638 continue # so that we can try to find one that supports BSD flags
3639 ;;
3640 esac
3641 ;;
3642 esac
3643 fi
3644 done
3645 IFS="$lt_save_ifs"
3646 done
3647 : ${lt_cv_path_NM=no}
3648 fi
3649 fi
3650 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3651 echo "${ECHO_T}$lt_cv_path_NM" >&6
3652 if test "$lt_cv_path_NM" != "no"; then
3653 NM="$lt_cv_path_NM"
3654 else
3655 # Didn't find any BSD compatible name lister, look for dumpbin.
3656 if test -n "$ac_tool_prefix"; then
3657 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3658 do
3659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3661 echo "$as_me:$LINENO: checking for $ac_word" >&5
3662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3663 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666 if test -n "$DUMPBIN"; then
3667 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3668 else
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH
3671 do
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3676 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 break 2
3679 fi
3680 done
3681 done
3682
3683 fi
3684 fi
3685 DUMPBIN=$ac_cv_prog_DUMPBIN
3686 if test -n "$DUMPBIN"; then
3687 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3688 echo "${ECHO_T}$DUMPBIN" >&6
3689 else
3690 echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6
3692 fi
3693
3694 test -n "$DUMPBIN" && break
3695 done
3696 fi
3697 if test -z "$DUMPBIN"; then
3698 ac_ct_DUMPBIN=$DUMPBIN
3699 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3700 do
3701 # Extract the first word of "$ac_prog", so it can be a program name with args.
3702 set dummy $ac_prog; ac_word=$2
3703 echo "$as_me:$LINENO: checking for $ac_word" >&5
3704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3705 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 else
3708 if test -n "$ac_ct_DUMPBIN"; then
3709 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3713 do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3721 fi
3722 done
3723 done
3724
3725 fi
3726 fi
3727 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3728 if test -n "$ac_ct_DUMPBIN"; then
3729 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3730 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3731 else
3732 echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6
3734 fi
3735
3736 test -n "$ac_ct_DUMPBIN" && break
3737 done
3738 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3739
3740 DUMPBIN=$ac_ct_DUMPBIN
3741 fi
3742
3743
3744 if test "$DUMPBIN" != ":"; then
3745 NM="$DUMPBIN"
3746 fi
3747 fi
3748 test -z "$NM" && NM=nm
3749
3750
3751
3752
3753
3754
3755 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3756 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3757 if test "${lt_cv_nm_interface+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760 lt_cv_nm_interface="BSD nm"
3761 echo "int some_variable = 0;" > conftest.$ac_ext
3762 (eval echo "\"\$as_me:3762: $ac_compile\"" >&5)
3763 (eval "$ac_compile" 2>conftest.err)
3764 cat conftest.err >&5
3765 (eval echo "\"\$as_me:3765: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3766 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3767 cat conftest.err >&5
3768 (eval echo "\"\$as_me:3768: output\"" >&5)
3769 cat conftest.out >&5
3770 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3771 lt_cv_nm_interface="MS dumpbin"
3772 fi
3773 rm -f conftest*
3774 fi
3775 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3776 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3777
3778 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3779 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3780 LN_S=$as_ln_s
3781 if test "$LN_S" = "ln -s"; then
3782 echo "$as_me:$LINENO: result: yes" >&5
3783 echo "${ECHO_T}yes" >&6
3784 else
3785 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3786 echo "${ECHO_T}no, using $LN_S" >&6
3787 fi
3788
3789 # find the maximum length of command line arguments
3790 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3791 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3792 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795 i=0
3796 teststring="ABCD"
3797
3798 case $build_os in
3799 msdosdjgpp*)
3800 # On DJGPP, this test can blow up pretty badly due to problems in libc
3801 # (any single argument exceeding 2000 bytes causes a buffer overrun
3802 # during glob expansion). Even if it were fixed, the result of this
3803 # check would be larger than it should be.
3804 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3805 ;;
3806
3807 gnu*)
3808 # Under GNU Hurd, this test is not required because there is
3809 # no limit to the length of command line arguments.
3810 # Libtool will interpret -1 as no limit whatsoever
3811 lt_cv_sys_max_cmd_len=-1;
3812 ;;
3813
3814 cygwin* | mingw*)
3815 # On Win9x/ME, this test blows up -- it succeeds, but takes
3816 # about 5 minutes as the teststring grows exponentially.
3817 # Worse, since 9x/ME are not pre-emptively multitasking,
3818 # you end up with a "frozen" computer, even though with patience
3819 # the test eventually succeeds (with a max line length of 256k).
3820 # Instead, let's just punt: use the minimum linelength reported by
3821 # all of the supported platforms: 8192 (on NT/2K/XP).
3822 lt_cv_sys_max_cmd_len=8192;
3823 ;;
3824
3825 amigaos*)
3826 # On AmigaOS with pdksh, this test takes hours, literally.
3827 # So we just punt and use a minimum line length of 8192.
3828 lt_cv_sys_max_cmd_len=8192;
3829 ;;
3830
3831 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3832 # This has been around since 386BSD, at least. Likely further.
3833 if test -x /sbin/sysctl; then
3834 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3835 elif test -x /usr/sbin/sysctl; then
3836 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3837 else
3838 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3839 fi
3840 # And add a safety zone
3841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3843 ;;
3844
3845 interix*)
3846 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3847 lt_cv_sys_max_cmd_len=196608
3848 ;;
3849
3850 osf*)
3851 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3852 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3853 # nice to cause kernel panics so lets avoid the loop below.
3854 # First set a reasonable default.
3855 lt_cv_sys_max_cmd_len=16384
3856 #
3857 if test -x /sbin/sysconfig; then
3858 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3859 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3860 esac
3861 fi
3862 ;;
3863 sco3.2v5*)
3864 lt_cv_sys_max_cmd_len=102400
3865 ;;
3866 sysv5* | sco5v6* | sysv4.2uw2*)
3867 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3868 if test -n "$kargmax"; then
3869 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3870 else
3871 lt_cv_sys_max_cmd_len=32768
3872 fi
3873 ;;
3874 *)
3875 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
3876 if test -n $lt_cv_sys_max_cmd_len; then
3877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3878 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3879 else
3880 # Make teststring a little bigger before we do anything with it.
3881 # a 1K string should be a reasonable start.
3882 for i in 1 2 3 4 5 6 7 8 ; do
3883 teststring=$teststring$teststring
3884 done
3885 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3886 # If test is not a shell built-in, we'll probably end up computing a
3887 # maximum length that is only half of the actual maximum length, but
3888 # we can't tell.
3889 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3890 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3891 test $i != 17 # 1/2 MB should be enough
3892 do
3893 i=`expr $i + 1`
3894 teststring=$teststring$teststring
3895 done
3896 # Only check the string length outside the loop.
3897 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3898 teststring=
3899 # Add a significant safety factor because C++ compilers can tack on
3900 # massive amounts of additional arguments before passing them to the
3901 # linker. It appears as though 1/2 is a usable value.
3902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3903 fi
3904 ;;
3905 esac
3906
3907 fi
3908
3909 if test -n $lt_cv_sys_max_cmd_len ; then
3910 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3911 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3912 else
3913 echo "$as_me:$LINENO: result: none" >&5
3914 echo "${ECHO_T}none" >&6
3915 fi
3916 max_cmd_len=$lt_cv_sys_max_cmd_len
3917
3918
3919
3920
3921
3922
3923
3924 : ${CP="cp -f"}
3925 : ${MV="mv -f"}
3926 : ${RM="rm -f"}
3927
3928 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3929 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3930 # Try some XSI features
3931 xsi_shell=no
3932 ( _lt_dummy="a/b/c"
3933 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3934 = c,a/b,, ) >/dev/null 2>&1 \
3935 && xsi_shell=yes
3936 echo "$as_me:$LINENO: result: $xsi_shell" >&5
3937 echo "${ECHO_T}$xsi_shell" >&6
3938
3939
3940 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3941 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
3942 lt_shell_append=no
3943 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3944 >/dev/null 2>&1 \
3945 && lt_shell_append=yes
3946 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3947 echo "${ECHO_T}$lt_shell_append" >&6
3948
3949
3950 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3951 lt_unset=unset
3952 else
3953 lt_unset=false
3954 fi
3955
3956
3957
3958
3959
3960 # test EBCDIC or ASCII
3961 case `echo X|tr X '\101'` in
3962 A) # ASCII based system
3963 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3964 lt_SP2NL='tr \040 \012'
3965 lt_NL2SP='tr \015\012 \040\040'
3966 ;;
3967 *) # EBCDIC based system
3968 lt_SP2NL='tr \100 \n'
3969 lt_NL2SP='tr \r\n \100\100'
3970 ;;
3971 esac
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3982 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3983 if test "${lt_cv_ld_reload_flag+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986 lt_cv_ld_reload_flag='-r'
3987 fi
3988 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3989 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3990 reload_flag=$lt_cv_ld_reload_flag
3991 case $reload_flag in
3992 "" | " "*) ;;
3993 *) reload_flag=" $reload_flag" ;;
3994 esac
3995 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3996 case $host_os in
3997 darwin*)
3998 if test "$GCC" = yes; then
3999 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4000 else
4001 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4002 fi
4003 ;;
4004 esac
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4016 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4017 if test "${lt_cv_deplibs_check_method+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020 lt_cv_file_magic_cmd='$MAGIC_CMD'
4021 lt_cv_file_magic_test_file=
4022 lt_cv_deplibs_check_method='unknown'
4023 # Need to set the preceding variable on all platforms that support
4024 # interlibrary dependencies.
4025 # 'none' -- dependencies not supported.
4026 # `unknown' -- same as none, but documents that we really don't know.
4027 # 'pass_all' -- all dependencies passed with no checks.
4028 # 'test_compile' -- check by making test program.
4029 # 'file_magic [[regex]]' -- check by looking for files in library path
4030 # which responds to the $file_magic_cmd with a given extended regex.
4031 # If you have `file' or equivalent on your system and you're not sure
4032 # whether `pass_all' will *always* work, you probably want this one.
4033
4034 case $host_os in
4035 aix4* | aix5*)
4036 lt_cv_deplibs_check_method=pass_all
4037 ;;
4038
4039 beos*)
4040 lt_cv_deplibs_check_method=pass_all
4041 ;;
4042
4043 bsdi[45]*)
4044 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4045 lt_cv_file_magic_cmd='/usr/bin/file -L'
4046 lt_cv_file_magic_test_file=/shlib/libc.so
4047 ;;
4048
4049 cygwin*)
4050 # func_win32_libid is a shell function defined in ltmain.sh
4051 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4052 lt_cv_file_magic_cmd='func_win32_libid'
4053 ;;
4054
4055 mingw* | pw32*)
4056 # Base MSYS/MinGW do not provide the 'file' command needed by
4057 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4058 # unless we find 'file', for example because we are cross-compiling.
4059 if ( file / ) >/dev/null 2>&1; then
4060 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4061 lt_cv_file_magic_cmd='func_win32_libid'
4062 else
4063 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4064 lt_cv_file_magic_cmd='$OBJDUMP -f'
4065 fi
4066 ;;
4067
4068 darwin* | rhapsody*)
4069 lt_cv_deplibs_check_method=pass_all
4070 ;;
4071
4072 freebsd* | dragonfly*)
4073 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4074 case $host_cpu in
4075 i*86 )
4076 # Not sure whether the presence of OpenBSD here was a mistake.
4077 # Let's accept both of them until this is cleared up.
4078 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4079 lt_cv_file_magic_cmd=/usr/bin/file
4080 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4081 ;;
4082 esac
4083 else
4084 lt_cv_deplibs_check_method=pass_all
4085 fi
4086 ;;
4087
4088 gnu*)
4089 lt_cv_deplibs_check_method=pass_all
4090 ;;
4091
4092 hpux10.20* | hpux11*)
4093 lt_cv_file_magic_cmd=/usr/bin/file
4094 case $host_cpu in
4095 ia64*)
4096 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4097 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4098 ;;
4099 hppa*64*)
4100 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]'
4101 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4102 ;;
4103 *)
4104 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4105 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4106 ;;
4107 esac
4108 ;;
4109
4110 interix[3-9]*)
4111 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4113 ;;
4114
4115 irix5* | irix6* | nonstopux*)
4116 case $LD in
4117 *-32|*"-32 ") libmagic=32-bit;;
4118 *-n32|*"-n32 ") libmagic=N32;;
4119 *-64|*"-64 ") libmagic=64-bit;;
4120 *) libmagic=never-match;;
4121 esac
4122 lt_cv_deplibs_check_method=pass_all
4123 ;;
4124
4125 # This must be Linux ELF.
4126 linux* | k*bsd*-gnu)
4127 lt_cv_deplibs_check_method=pass_all
4128 ;;
4129
4130 netbsd*)
4131 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4132 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4133 else
4134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4135 fi
4136 ;;
4137
4138 newos6*)
4139 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4140 lt_cv_file_magic_cmd=/usr/bin/file
4141 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4142 ;;
4143
4144 *nto* | *qnx*)
4145 lt_cv_deplibs_check_method=pass_all
4146 ;;
4147
4148 openbsd*)
4149 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4150 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4151 else
4152 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4153 fi
4154 ;;
4155
4156 osf3* | osf4* | osf5*)
4157 lt_cv_deplibs_check_method=pass_all
4158 ;;
4159
4160 rdos*)
4161 lt_cv_deplibs_check_method=pass_all
4162 ;;
4163
4164 solaris*)
4165 lt_cv_deplibs_check_method=pass_all
4166 ;;
4167
4168 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4169 lt_cv_deplibs_check_method=pass_all
4170 ;;
4171
4172 sysv4 | sysv4.3*)
4173 case $host_vendor in
4174 motorola)
4175 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]'
4176 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4177 ;;
4178 ncr)
4179 lt_cv_deplibs_check_method=pass_all
4180 ;;
4181 sequent)
4182 lt_cv_file_magic_cmd='/bin/file'
4183 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4184 ;;
4185 sni)
4186 lt_cv_file_magic_cmd='/bin/file'
4187 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4188 lt_cv_file_magic_test_file=/lib/libc.so
4189 ;;
4190 siemens)
4191 lt_cv_deplibs_check_method=pass_all
4192 ;;
4193 pc)
4194 lt_cv_deplibs_check_method=pass_all
4195 ;;
4196 esac
4197 ;;
4198
4199 tpf*)
4200 lt_cv_deplibs_check_method=pass_all
4201 ;;
4202 esac
4203
4204 fi
4205 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4206 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4207 file_magic_cmd=$lt_cv_file_magic_cmd
4208 deplibs_check_method=$lt_cv_deplibs_check_method
4209 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222 if test -n "$ac_tool_prefix"; then
4223 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4224 set dummy ${ac_tool_prefix}ar; ac_word=$2
4225 echo "$as_me:$LINENO: checking for $ac_word" >&5
4226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4227 if test "${ac_cv_prog_AR+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230 if test -n "$AR"; then
4231 ac_cv_prog_AR="$AR" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4235 do
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4240 ac_cv_prog_AR="${ac_tool_prefix}ar"
4241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 break 2
4243 fi
4244 done
4245 done
4246
4247 fi
4248 fi
4249 AR=$ac_cv_prog_AR
4250 if test -n "$AR"; then
4251 echo "$as_me:$LINENO: result: $AR" >&5
4252 echo "${ECHO_T}$AR" >&6
4253 else
4254 echo "$as_me:$LINENO: result: no" >&5
4255 echo "${ECHO_T}no" >&6
4256 fi
4257
4258 fi
4259 if test -z "$ac_cv_prog_AR"; then
4260 ac_ct_AR=$AR
4261 # Extract the first word of "ar", so it can be a program name with args.
4262 set dummy ar; ac_word=$2
4263 echo "$as_me:$LINENO: checking for $ac_word" >&5
4264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4265 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268 if test -n "$ac_ct_AR"; then
4269 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4273 do
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4278 ac_cv_prog_ac_ct_AR="ar"
4279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 break 2
4281 fi
4282 done
4283 done
4284
4285 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4286 fi
4287 fi
4288 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4289 if test -n "$ac_ct_AR"; then
4290 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4291 echo "${ECHO_T}$ac_ct_AR" >&6
4292 else
4293 echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6
4295 fi
4296
4297 AR=$ac_ct_AR
4298 else
4299 AR="$ac_cv_prog_AR"
4300 fi
4301
4302 test -z "$AR" && AR=ar
4303 test -z "$AR_FLAGS" && AR_FLAGS=cru
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315 if test -n "$ac_tool_prefix"; then
4316 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4317 set dummy ${ac_tool_prefix}strip; ac_word=$2
4318 echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320 if test "${ac_cv_prog_STRIP+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323 if test -n "$STRIP"; then
4324 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4328 do
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 break 2
4336 fi
4337 done
4338 done
4339
4340 fi
4341 fi
4342 STRIP=$ac_cv_prog_STRIP
4343 if test -n "$STRIP"; then
4344 echo "$as_me:$LINENO: result: $STRIP" >&5
4345 echo "${ECHO_T}$STRIP" >&6
4346 else
4347 echo "$as_me:$LINENO: result: no" >&5
4348 echo "${ECHO_T}no" >&6
4349 fi
4350
4351 fi
4352 if test -z "$ac_cv_prog_STRIP"; then
4353 ac_ct_STRIP=$STRIP
4354 # Extract the first word of "strip", so it can be a program name with args.
4355 set dummy strip; ac_word=$2
4356 echo "$as_me:$LINENO: checking for $ac_word" >&5
4357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4358 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361 if test -n "$ac_ct_STRIP"; then
4362 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4366 do
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371 ac_cv_prog_ac_ct_STRIP="strip"
4372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4374 fi
4375 done
4376 done
4377
4378 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4379 fi
4380 fi
4381 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4382 if test -n "$ac_ct_STRIP"; then
4383 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4384 echo "${ECHO_T}$ac_ct_STRIP" >&6
4385 else
4386 echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6
4388 fi
4389
4390 STRIP=$ac_ct_STRIP
4391 else
4392 STRIP="$ac_cv_prog_STRIP"
4393 fi
4394
4395 test -z "$STRIP" && STRIP=:
4396
4397
4398
4399
4400
4401
4402 if test -n "$ac_tool_prefix"; then
4403 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4404 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4405 echo "$as_me:$LINENO: checking for $ac_word" >&5
4406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4407 if test "${ac_cv_prog_RANLIB+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 else
4410 if test -n "$RANLIB"; then
4411 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4412 else
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4415 do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4420 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4423 fi
4424 done
4425 done
4426
4427 fi
4428 fi
4429 RANLIB=$ac_cv_prog_RANLIB
4430 if test -n "$RANLIB"; then
4431 echo "$as_me:$LINENO: result: $RANLIB" >&5
4432 echo "${ECHO_T}$RANLIB" >&6
4433 else
4434 echo "$as_me:$LINENO: result: no" >&5
4435 echo "${ECHO_T}no" >&6
4436 fi
4437
4438 fi
4439 if test -z "$ac_cv_prog_RANLIB"; then
4440 ac_ct_RANLIB=$RANLIB
4441 # Extract the first word of "ranlib", so it can be a program name with args.
4442 set dummy ranlib; ac_word=$2
4443 echo "$as_me:$LINENO: checking for $ac_word" >&5
4444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4445 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448 if test -n "$ac_ct_RANLIB"; then
4449 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4450 else
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4453 do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458 ac_cv_prog_ac_ct_RANLIB="ranlib"
4459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4461 fi
4462 done
4463 done
4464
4465 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4466 fi
4467 fi
4468 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4469 if test -n "$ac_ct_RANLIB"; then
4470 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4471 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4472 else
4473 echo "$as_me:$LINENO: result: no" >&5
4474 echo "${ECHO_T}no" >&6
4475 fi
4476
4477 RANLIB=$ac_ct_RANLIB
4478 else
4479 RANLIB="$ac_cv_prog_RANLIB"
4480 fi
4481
4482 test -z "$RANLIB" && RANLIB=:
4483
4484
4485
4486
4487
4488
4489 # Determine commands to create old-style static archives.
4490 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4491 old_postinstall_cmds='chmod 644 $oldlib'
4492 old_postuninstall_cmds=
4493
4494 if test -n "$RANLIB"; then
4495 case $host_os in
4496 openbsd*)
4497 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4498 ;;
4499 *)
4500 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4501 ;;
4502 esac
4503 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4504 fi
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539 # If no C compiler was specified, use CC.
4540 LTCC=${LTCC-"$CC"}
4541
4542 # If no C compiler flags were specified, use CFLAGS.
4543 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4544
4545 # Allow CC to be a program name with arguments.
4546 compiler=$CC
4547
4548
4549 # Check for command to grab the raw symbol name followed by C symbol from nm.
4550 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4551 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4552 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555
4556 # These are sane defaults that work on at least a few old systems.
4557 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4558
4559 # Character class describing NM global symbol codes.
4560 symcode='[BCDEGRST]'
4561
4562 # Regexp to match symbols that can be accessed directly from C.
4563 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4564
4565 # Define system-specific variables.
4566 case $host_os in
4567 aix*)
4568 symcode='[BCDT]'
4569 ;;
4570 cygwin* | mingw* | pw32*)
4571 symcode='[ABCDGISTW]'
4572 ;;
4573 hpux*)
4574 if test "$host_cpu" = ia64; then
4575 symcode='[ABCDEGRST]'
4576 fi
4577 ;;
4578 irix* | nonstopux*)
4579 symcode='[BCDEGRST]'
4580 ;;
4581 osf*)
4582 symcode='[BCDEGQRST]'
4583 ;;
4584 solaris*)
4585 symcode='[BDRT]'
4586 ;;
4587 sco3.2v5*)
4588 symcode='[DT]'
4589 ;;
4590 sysv4.2uw2*)
4591 symcode='[DT]'
4592 ;;
4593 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4594 symcode='[ABDT]'
4595 ;;
4596 sysv4)
4597 symcode='[DFNSTU]'
4598 ;;
4599 esac
4600
4601 # If we're using GNU nm, then use its standard symbol codes.
4602 case `$NM -V 2>&1` in
4603 *GNU* | *'with BFD'*)
4604 symcode='[ABCDGIRSTW]' ;;
4605 esac
4606
4607 # Transform an extracted symbol line into a proper C declaration.
4608 # Some systems (esp. on ia64) link data and code symbols differently,
4609 # so use this general approach.
4610 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4611
4612 # Transform an extracted symbol line into symbol name and symbol address
4613 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4614
4615 # Handle CRLF in mingw tool chain
4616 opt_cr=
4617 case $build_os in
4618 mingw*)
4619 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4620 ;;
4621 esac
4622
4623 # Try without a prefix underscore, then with it.
4624 for ac_symprfx in "" "_"; do
4625
4626 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4627 symxfrm="\\1 $ac_symprfx\\2 \\2"
4628
4629 # Write the raw and C identifiers.
4630 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4631 # Fake it for dumpbin and say T for any non-static function
4632 # and D for any global variable.
4633 # Also find C++ and __fastcall symbols from MSVC++,
4634 # which start with @ or ?.
4635 lt_cv_sys_global_symbol_pipe="$AWK '"\
4636 " {last_section=section; section=\$ 3};"\
4637 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4638 " \$ 0!~/External *\|/{next};"\
4639 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4640 " {if(hide[section]) next};"\
4641 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4642 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4643 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4644 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4645 " ' prfx=^$ac_symprfx"
4646 else
4647 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4648 fi
4649
4650 # Check to see that the pipe works correctly.
4651 pipe_works=no
4652
4653 rm -f conftest*
4654 cat > conftest.$ac_ext <<_LT_EOF
4655 #ifdef __cplusplus
4656 extern "C" {
4657 #endif
4658 char nm_test_var;
4659 void nm_test_func(void);
4660 void nm_test_func(void){}
4661 #ifdef __cplusplus
4662 }
4663 #endif
4664 int main(){nm_test_var='a';nm_test_func();return(0);}
4665 _LT_EOF
4666
4667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4668 (eval $ac_compile) 2>&5
4669 ac_status=$?
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; then
4672 # Now try to grab the symbols.
4673 nlist=conftest.nm
4674 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4675 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); } && test -s "$nlist"; then
4679 # Try sorting and uniquifying the output.
4680 if sort "$nlist" | uniq > "$nlist"T; then
4681 mv -f "$nlist"T "$nlist"
4682 else
4683 rm -f "$nlist"T
4684 fi
4685
4686 # Make sure that we snagged all the symbols we need.
4687 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4688 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4689 cat <<_LT_EOF > conftest.$ac_ext
4690 #ifdef __cplusplus
4691 extern "C" {
4692 #endif
4693
4694 _LT_EOF
4695 # Now generate the symbol file.
4696 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4697
4698 cat <<_LT_EOF >> conftest.$ac_ext
4699
4700 /* The mapping between symbol names and symbols. */
4701 const struct {
4702 const char *name;
4703 void *address;
4704 }
4705 lt__PROGRAM__LTX_preloaded_symbols[] =
4706 {
4707 { "@PROGRAM@", (void *) 0 },
4708 _LT_EOF
4709 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4710 cat <<\_LT_EOF >> conftest.$ac_ext
4711 {0, (void *) 0}
4712 };
4713
4714 /* This works around a problem in FreeBSD linker */
4715 #ifdef FREEBSD_WORKAROUND
4716 static const void *lt_preloaded_setup() {
4717 return lt__PROGRAM__LTX_preloaded_symbols;
4718 }
4719 #endif
4720
4721 #ifdef __cplusplus
4722 }
4723 #endif
4724 _LT_EOF
4725 # Now try linking the two files.
4726 mv conftest.$ac_objext conftstm.$ac_objext
4727 lt_save_LIBS="$LIBS"
4728 lt_save_CFLAGS="$CFLAGS"
4729 LIBS="conftstm.$ac_objext"
4730 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4732 (eval $ac_link) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4736 pipe_works=yes
4737 fi
4738 LIBS="$lt_save_LIBS"
4739 CFLAGS="$lt_save_CFLAGS"
4740 else
4741 echo "cannot find nm_test_func in $nlist" >&5
4742 fi
4743 else
4744 echo "cannot find nm_test_var in $nlist" >&5
4745 fi
4746 else
4747 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4748 fi
4749 else
4750 echo "$progname: failed program was:" >&5
4751 cat conftest.$ac_ext >&5
4752 fi
4753 rm -f conftest* conftst*
4754
4755 # Do not use the global_symbol_pipe unless it works.
4756 if test "$pipe_works" = yes; then
4757 break
4758 else
4759 lt_cv_sys_global_symbol_pipe=
4760 fi
4761 done
4762
4763 fi
4764
4765 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4766 lt_cv_sys_global_symbol_to_cdecl=
4767 fi
4768 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4769 echo "$as_me:$LINENO: result: failed" >&5
4770 echo "${ECHO_T}failed" >&6
4771 else
4772 echo "$as_me:$LINENO: result: ok" >&5
4773 echo "${ECHO_T}ok" >&6
4774 fi
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4793 if test "${enable_libtool_lock+set}" = set; then
4794 enableval="$enable_libtool_lock"
4795
4796 fi;
4797 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4798
4799 # Some flags need to be propagated to the compiler or linker for good
4800 # libtool support.
4801 case $host in
4802 ia64-*-hpux*)
4803 # Find out which ABI we are using.
4804 echo 'int i;' > conftest.$ac_ext
4805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4806 (eval $ac_compile) 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; then
4810 case `/usr/bin/file conftest.$ac_objext` in
4811 *ELF-32*)
4812 HPUX_IA64_MODE="32"
4813 ;;
4814 *ELF-64*)
4815 HPUX_IA64_MODE="64"
4816 ;;
4817 esac
4818 fi
4819 rm -rf conftest*
4820 ;;
4821 *-*-irix6*)
4822 # Find out which ABI we are using.
4823 echo '#line 4823 "configure"' > conftest.$ac_ext
4824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4825 (eval $ac_compile) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; then
4829 if test "$lt_cv_prog_gnu_ld" = yes; then
4830 case `/usr/bin/file conftest.$ac_objext` in
4831 *32-bit*)
4832 LD="${LD-ld} -melf32bsmip"
4833 ;;
4834 *N32*)
4835 LD="${LD-ld} -melf32bmipn32"
4836 ;;
4837 *64-bit*)
4838 LD="${LD-ld} -melf64bmip"
4839 ;;
4840 esac
4841 else
4842 case `/usr/bin/file conftest.$ac_objext` in
4843 *32-bit*)
4844 LD="${LD-ld} -32"
4845 ;;
4846 *N32*)
4847 LD="${LD-ld} -n32"
4848 ;;
4849 *64-bit*)
4850 LD="${LD-ld} -64"
4851 ;;
4852 esac
4853 fi
4854 fi
4855 rm -rf conftest*
4856 ;;
4857
4858 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4859 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4860 # Find out which ABI we are using.
4861 echo 'int i;' > conftest.$ac_ext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863 (eval $ac_compile) 2>&5
4864 ac_status=$?
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; then
4867 case `/usr/bin/file conftest.o` in
4868 *32-bit*)
4869 case $host in
4870 x86_64-*kfreebsd*-gnu)
4871 LD="${LD-ld} -m elf_i386_fbsd"
4872 ;;
4873 x86_64-*linux*)
4874 LD="${LD-ld} -m elf_i386"
4875 ;;
4876 ppc64-*linux*|powerpc64-*linux*)
4877 LD="${LD-ld} -m elf32ppclinux"
4878 ;;
4879 s390x-*linux*)
4880 LD="${LD-ld} -m elf_s390"
4881 ;;
4882 sparc64-*linux*)
4883 LD="${LD-ld} -m elf32_sparc"
4884 ;;
4885 esac
4886 ;;
4887 *64-bit*)
4888 case $host in
4889 x86_64-*kfreebsd*-gnu)
4890 LD="${LD-ld} -m elf_x86_64_fbsd"
4891 ;;
4892 x86_64-*linux*)
4893 LD="${LD-ld} -m elf_x86_64"
4894 ;;
4895 ppc*-*linux*|powerpc*-*linux*)
4896 LD="${LD-ld} -m elf64ppc"
4897 ;;
4898 s390*-*linux*|s390*-*tpf*)
4899 LD="${LD-ld} -m elf64_s390"
4900 ;;
4901 sparc*-*linux*)
4902 LD="${LD-ld} -m elf64_sparc"
4903 ;;
4904 esac
4905 ;;
4906 esac
4907 fi
4908 rm -rf conftest*
4909 ;;
4910
4911 *-*-sco3.2v5*)
4912 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4913 SAVE_CFLAGS="$CFLAGS"
4914 CFLAGS="$CFLAGS -belf"
4915 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4916 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4917 if test "${lt_cv_cc_needs_belf+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920 ac_ext=c
4921 ac_cpp='$CPP $CPPFLAGS'
4922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4925
4926 cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h. */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932
4933 int
4934 main ()
4935 {
4936
4937 ;
4938 return 0;
4939 }
4940 _ACEOF
4941 rm -f conftest.$ac_objext conftest$ac_exeext
4942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4943 (eval $ac_link) 2>conftest.er1
4944 ac_status=$?
4945 grep -v '^ *+' conftest.er1 >conftest.err
4946 rm -f conftest.er1
4947 cat conftest.err >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } &&
4950 { ac_try='test -z "$ac_c_werror_flag"
4951 || test ! -s conftest.err'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 (eval $ac_try) 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; } &&
4957 { ac_try='test -s conftest$ac_exeext'
4958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959 (eval $ac_try) 2>&5
4960 ac_status=$?
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; }; then
4963 lt_cv_cc_needs_belf=yes
4964 else
4965 echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.$ac_ext >&5
4967
4968 lt_cv_cc_needs_belf=no
4969 fi
4970 rm -f conftest.err conftest.$ac_objext \
4971 conftest$ac_exeext conftest.$ac_ext
4972 ac_ext=c
4973 ac_cpp='$CPP $CPPFLAGS'
4974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977
4978 fi
4979 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4980 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4981 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4982 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4983 CFLAGS="$SAVE_CFLAGS"
4984 fi
4985 ;;
4986 sparc*-*solaris*)
4987 # Find out which ABI we are using.
4988 echo 'int i;' > conftest.$ac_ext
4989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4990 (eval $ac_compile) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; then
4994 case `/usr/bin/file conftest.o` in
4995 *64-bit*)
4996 case $lt_cv_prog_gnu_ld in
4997 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4998 *) LD="${LD-ld} -64" ;;
4999 esac
5000 ;;
5001 esac
5002 fi
5003 rm -rf conftest*
5004 ;;
5005 esac
5006
5007 need_locks="$enable_libtool_lock"
5008
5009 ac_ext=c
5010 ac_cpp='$CPP $CPPFLAGS'
5011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5015 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5016 # On Suns, sometimes $CPP names a directory.
5017 if test -n "$CPP" && test -d "$CPP"; then
5018 CPP=
5019 fi
5020 if test -z "$CPP"; then
5021 if test "${ac_cv_prog_CPP+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024 # Double quotes because CPP needs to be expanded
5025 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5026 do
5027 ac_preproc_ok=false
5028 for ac_c_preproc_warn_flag in '' yes
5029 do
5030 # Use a header file that comes with gcc, so configuring glibc
5031 # with a fresh cross-compiler works.
5032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5033 # <limits.h> exists even on freestanding compilers.
5034 # On the NeXT, cc -E runs the code through the compiler's parser,
5035 # not just through cpp. "Syntax error" is here to catch this case.
5036 cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h. */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5042 #ifdef __STDC__
5043 # include <limits.h>
5044 #else
5045 # include <assert.h>
5046 #endif
5047 Syntax error
5048 _ACEOF
5049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5051 ac_status=$?
5052 grep -v '^ *+' conftest.er1 >conftest.err
5053 rm -f conftest.er1
5054 cat conftest.err >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } >/dev/null; then
5057 if test -s conftest.err; then
5058 ac_cpp_err=$ac_c_preproc_warn_flag
5059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5060 else
5061 ac_cpp_err=
5062 fi
5063 else
5064 ac_cpp_err=yes
5065 fi
5066 if test -z "$ac_cpp_err"; then
5067 :
5068 else
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5071
5072 # Broken: fails on valid input.
5073 continue
5074 fi
5075 rm -f conftest.err conftest.$ac_ext
5076
5077 # OK, works on sane cases. Now check whether non-existent headers
5078 # can be detected and how.
5079 cat >conftest.$ac_ext <<_ACEOF
5080 /* confdefs.h. */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5085 #include <ac_nonexistent.h>
5086 _ACEOF
5087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } >/dev/null; then
5095 if test -s conftest.err; then
5096 ac_cpp_err=$ac_c_preproc_warn_flag
5097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5098 else
5099 ac_cpp_err=
5100 fi
5101 else
5102 ac_cpp_err=yes
5103 fi
5104 if test -z "$ac_cpp_err"; then
5105 # Broken: success on invalid input.
5106 continue
5107 else
5108 echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5110
5111 # Passes both tests.
5112 ac_preproc_ok=:
5113 break
5114 fi
5115 rm -f conftest.err conftest.$ac_ext
5116
5117 done
5118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5119 rm -f conftest.err conftest.$ac_ext
5120 if $ac_preproc_ok; then
5121 break
5122 fi
5123
5124 done
5125 ac_cv_prog_CPP=$CPP
5126
5127 fi
5128 CPP=$ac_cv_prog_CPP
5129 else
5130 ac_cv_prog_CPP=$CPP
5131 fi
5132 echo "$as_me:$LINENO: result: $CPP" >&5
5133 echo "${ECHO_T}$CPP" >&6
5134 ac_preproc_ok=false
5135 for ac_c_preproc_warn_flag in '' yes
5136 do
5137 # Use a header file that comes with gcc, so configuring glibc
5138 # with a fresh cross-compiler works.
5139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5140 # <limits.h> exists even on freestanding compilers.
5141 # On the NeXT, cc -E runs the code through the compiler's parser,
5142 # not just through cpp. "Syntax error" is here to catch this case.
5143 cat >conftest.$ac_ext <<_ACEOF
5144 /* confdefs.h. */
5145 _ACEOF
5146 cat confdefs.h >>conftest.$ac_ext
5147 cat >>conftest.$ac_ext <<_ACEOF
5148 /* end confdefs.h. */
5149 #ifdef __STDC__
5150 # include <limits.h>
5151 #else
5152 # include <assert.h>
5153 #endif
5154 Syntax error
5155 _ACEOF
5156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5158 ac_status=$?
5159 grep -v '^ *+' conftest.er1 >conftest.err
5160 rm -f conftest.er1
5161 cat conftest.err >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); } >/dev/null; then
5164 if test -s conftest.err; then
5165 ac_cpp_err=$ac_c_preproc_warn_flag
5166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5167 else
5168 ac_cpp_err=
5169 fi
5170 else
5171 ac_cpp_err=yes
5172 fi
5173 if test -z "$ac_cpp_err"; then
5174 :
5175 else
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5178
5179 # Broken: fails on valid input.
5180 continue
5181 fi
5182 rm -f conftest.err conftest.$ac_ext
5183
5184 # OK, works on sane cases. Now check whether non-existent headers
5185 # can be detected and how.
5186 cat >conftest.$ac_ext <<_ACEOF
5187 /* confdefs.h. */
5188 _ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h. */
5192 #include <ac_nonexistent.h>
5193 _ACEOF
5194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5196 ac_status=$?
5197 grep -v '^ *+' conftest.er1 >conftest.err
5198 rm -f conftest.er1
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } >/dev/null; then
5202 if test -s conftest.err; then
5203 ac_cpp_err=$ac_c_preproc_warn_flag
5204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5205 else
5206 ac_cpp_err=
5207 fi
5208 else
5209 ac_cpp_err=yes
5210 fi
5211 if test -z "$ac_cpp_err"; then
5212 # Broken: success on invalid input.
5213 continue
5214 else
5215 echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5217
5218 # Passes both tests.
5219 ac_preproc_ok=:
5220 break
5221 fi
5222 rm -f conftest.err conftest.$ac_ext
5223
5224 done
5225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5226 rm -f conftest.err conftest.$ac_ext
5227 if $ac_preproc_ok; then
5228 :
5229 else
5230 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5231 See \`config.log' for more details." >&5
5232 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5233 See \`config.log' for more details." >&2;}
5234 { (exit 1); exit 1; }; }
5235 fi
5236
5237 ac_ext=c
5238 ac_cpp='$CPP $CPPFLAGS'
5239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5242
5243
5244 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5245 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5246 if test "${ac_cv_header_stdc+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249 cat >conftest.$ac_ext <<_ACEOF
5250 /* confdefs.h. */
5251 _ACEOF
5252 cat confdefs.h >>conftest.$ac_ext
5253 cat >>conftest.$ac_ext <<_ACEOF
5254 /* end confdefs.h. */
5255 #include <stdlib.h>
5256 #include <stdarg.h>
5257 #include <string.h>
5258 #include <float.h>
5259
5260 int
5261 main ()
5262 {
5263
5264 ;
5265 return 0;
5266 }
5267 _ACEOF
5268 rm -f conftest.$ac_objext
5269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5270 (eval $ac_compile) 2>conftest.er1
5271 ac_status=$?
5272 grep -v '^ *+' conftest.er1 >conftest.err
5273 rm -f conftest.er1
5274 cat conftest.err >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } &&
5277 { ac_try='test -z "$ac_c_werror_flag"
5278 || test ! -s conftest.err'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 (eval $ac_try) 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; } &&
5284 { ac_try='test -s conftest.$ac_objext'
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 (eval $ac_try) 2>&5
5287 ac_status=$?
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
5290 ac_cv_header_stdc=yes
5291 else
5292 echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5294
5295 ac_cv_header_stdc=no
5296 fi
5297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5298
5299 if test $ac_cv_header_stdc = yes; then
5300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5301 cat >conftest.$ac_ext <<_ACEOF
5302 /* confdefs.h. */
5303 _ACEOF
5304 cat confdefs.h >>conftest.$ac_ext
5305 cat >>conftest.$ac_ext <<_ACEOF
5306 /* end confdefs.h. */
5307 #include <string.h>
5308
5309 _ACEOF
5310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5311 $EGREP "memchr" >/dev/null 2>&1; then
5312 :
5313 else
5314 ac_cv_header_stdc=no
5315 fi
5316 rm -f conftest*
5317
5318 fi
5319
5320 if test $ac_cv_header_stdc = yes; then
5321 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5322 cat >conftest.$ac_ext <<_ACEOF
5323 /* confdefs.h. */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5328 #include <stdlib.h>
5329
5330 _ACEOF
5331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5332 $EGREP "free" >/dev/null 2>&1; then
5333 :
5334 else
5335 ac_cv_header_stdc=no
5336 fi
5337 rm -f conftest*
5338
5339 fi
5340
5341 if test $ac_cv_header_stdc = yes; then
5342 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5343 if test "$cross_compiling" = yes; then
5344 :
5345 else
5346 cat >conftest.$ac_ext <<_ACEOF
5347 /* confdefs.h. */
5348 _ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5352 #include <ctype.h>
5353 #if ((' ' & 0x0FF) == 0x020)
5354 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5355 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5356 #else
5357 # define ISLOWER(c) \
5358 (('a' <= (c) && (c) <= 'i') \
5359 || ('j' <= (c) && (c) <= 'r') \
5360 || ('s' <= (c) && (c) <= 'z'))
5361 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5362 #endif
5363
5364 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5365 int
5366 main ()
5367 {
5368 int i;
5369 for (i = 0; i < 256; i++)
5370 if (XOR (islower (i), ISLOWER (i))
5371 || toupper (i) != TOUPPER (i))
5372 exit(2);
5373 exit (0);
5374 }
5375 _ACEOF
5376 rm -f conftest$ac_exeext
5377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5378 (eval $ac_link) 2>&5
5379 ac_status=$?
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 (eval $ac_try) 2>&5
5384 ac_status=$?
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5387 :
5388 else
5389 echo "$as_me: program exited with status $ac_status" >&5
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5392
5393 ( exit $ac_status )
5394 ac_cv_header_stdc=no
5395 fi
5396 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5397 fi
5398 fi
5399 fi
5400 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5401 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5402 if test $ac_cv_header_stdc = yes; then
5403
5404 cat >>confdefs.h <<\_ACEOF
5405 #define STDC_HEADERS 1
5406 _ACEOF
5407
5408 fi
5409
5410 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5421 inttypes.h stdint.h unistd.h
5422 do
5423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5424 echo "$as_me:$LINENO: checking for $ac_header" >&5
5425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429 cat >conftest.$ac_ext <<_ACEOF
5430 /* confdefs.h. */
5431 _ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5435 $ac_includes_default
5436
5437 #include <$ac_header>
5438 _ACEOF
5439 rm -f conftest.$ac_objext
5440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5441 (eval $ac_compile) 2>conftest.er1
5442 ac_status=$?
5443 grep -v '^ *+' conftest.er1 >conftest.err
5444 rm -f conftest.er1
5445 cat conftest.err >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } &&
5448 { ac_try='test -z "$ac_c_werror_flag"
5449 || test ! -s conftest.err'
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 (eval $ac_try) 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; } &&
5455 { ac_try='test -s conftest.$ac_objext'
5456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 (eval $ac_try) 2>&5
5458 ac_status=$?
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); }; }; then
5461 eval "$as_ac_Header=yes"
5462 else
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5465
5466 eval "$as_ac_Header=no"
5467 fi
5468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5469 fi
5470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5473 cat >>confdefs.h <<_ACEOF
5474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5475 _ACEOF
5476
5477 fi
5478
5479 done
5480
5481
5482
5483 for ac_header in dlfcn.h
5484 do
5485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5486 echo "$as_me:$LINENO: checking for $ac_header" >&5
5487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491 cat >conftest.$ac_ext <<_ACEOF
5492 /* confdefs.h. */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5497 $ac_includes_default
5498
5499 #include <$ac_header>
5500 _ACEOF
5501 rm -f conftest.$ac_objext
5502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5503 (eval $ac_compile) 2>conftest.er1
5504 ac_status=$?
5505 grep -v '^ *+' conftest.er1 >conftest.err
5506 rm -f conftest.er1
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } &&
5510 { ac_try='test -z "$ac_c_werror_flag"
5511 || test ! -s conftest.err'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 (eval $ac_try) 2>&5
5514 ac_status=$?
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; } &&
5517 { ac_try='test -s conftest.$ac_objext'
5518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519 (eval $ac_try) 2>&5
5520 ac_status=$?
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }; }; then
5523 eval "$as_ac_Header=yes"
5524 else
5525 echo "$as_me: failed program was:" >&5
5526 sed 's/^/| /' conftest.$ac_ext >&5
5527
5528 eval "$as_ac_Header=no"
5529 fi
5530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5531 fi
5532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5535 cat >>confdefs.h <<_ACEOF
5536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5537 _ACEOF
5538
5539 fi
5540
5541 done
5542
5543
5544
5545 # This can be used to rebuild libtool when needed
5546 LIBTOOL_DEPS="$ltmain"
5547
5548 # Always use our own libtool.
5549 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575 test -z "$LN_S" && LN_S="ln -s"
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590 if test -n "${ZSH_VERSION+set}" ; then
5591 setopt NO_GLOB_SUBST
5592 fi
5593
5594 echo "$as_me:$LINENO: checking for objdir" >&5
5595 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5596 if test "${lt_cv_objdir+set}" = set; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 else
5599 rm -f .libs 2>/dev/null
5600 mkdir .libs 2>/dev/null
5601 if test -d .libs; then
5602 lt_cv_objdir=.libs
5603 else
5604 # MS-DOS does not allow filenames that begin with a dot.
5605 lt_cv_objdir=_libs
5606 fi
5607 rmdir .libs 2>/dev/null
5608 fi
5609 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5610 echo "${ECHO_T}$lt_cv_objdir" >&6
5611 objdir=$lt_cv_objdir
5612
5613
5614
5615
5616
5617 cat >>confdefs.h <<_ACEOF
5618 #define LT_OBJDIR "$lt_cv_objdir/"
5619 _ACEOF
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637 case $host_os in
5638 aix3*)
5639 # AIX sometimes has problems with the GCC collect2 program. For some
5640 # reason, if we set the COLLECT_NAMES environment variable, the problems
5641 # vanish in a puff of smoke.
5642 if test "X${COLLECT_NAMES+set}" != Xset; then
5643 COLLECT_NAMES=
5644 export COLLECT_NAMES
5645 fi
5646 ;;
5647 esac
5648
5649 # Sed substitution that helps us do robust quoting. It backslashifies
5650 # metacharacters that are still active within double-quoted strings.
5651 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5652
5653 # Same as above, but do not quote variable references.
5654 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5655
5656 # Sed substitution to delay expansion of an escaped shell variable in a
5657 # double_quote_subst'ed string.
5658 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5659
5660 # Sed substitution to delay expansion of an escaped single quote.
5661 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5662
5663 # Sed substitution to avoid accidental globbing in evaled expressions
5664 no_glob_subst='s/\*/\\\*/g'
5665
5666 # Global variables:
5667 ofile=libtool
5668 can_build_shared=yes
5669
5670 # All known linkers require a `.a' archive for static linking (except MSVC,
5671 # which needs '.lib').
5672 libext=a
5673
5674 with_gnu_ld="$lt_cv_prog_gnu_ld"
5675
5676 old_CC="$CC"
5677 old_CFLAGS="$CFLAGS"
5678
5679 # Set sane defaults for various variables
5680 test -z "$CC" && CC=cc
5681 test -z "$LTCC" && LTCC=$CC
5682 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5683 test -z "$LD" && LD=ld
5684 test -z "$ac_objext" && ac_objext=o
5685
5686 for cc_temp in $compiler""; do
5687 case $cc_temp in
5688 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5689 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5690 \-*) ;;
5691 *) break;;
5692 esac
5693 done
5694 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5695
5696
5697 # Only perform the check for file, if the check method requires it
5698 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5699 case $deplibs_check_method in
5700 file_magic*)
5701 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5702 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5703 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5704 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707 case $MAGIC_CMD in
5708 [\\/*] | ?:[\\/]*)
5709 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5710 ;;
5711 *)
5712 lt_save_MAGIC_CMD="$MAGIC_CMD"
5713 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5714 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5715 for ac_dir in $ac_dummy; do
5716 IFS="$lt_save_ifs"
5717 test -z "$ac_dir" && ac_dir=.
5718 if test -f $ac_dir/${ac_tool_prefix}file; then
5719 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5720 if test -n "$file_magic_test_file"; then
5721 case $deplibs_check_method in
5722 "file_magic "*)
5723 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5725 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5726 $EGREP "$file_magic_regex" > /dev/null; then
5727 :
5728 else
5729 cat <<_LT_EOF 1>&2
5730
5731 *** Warning: the command libtool uses to detect shared libraries,
5732 *** $file_magic_cmd, produces output that libtool cannot recognize.
5733 *** The result is that libtool may fail to recognize shared libraries
5734 *** as such. This will affect the creation of libtool libraries that
5735 *** depend on shared libraries, but programs linked with such libtool
5736 *** libraries will work regardless of this problem. Nevertheless, you
5737 *** may want to report the problem to your system manager and/or to
5738 *** bug-libtool@gnu.org
5739
5740 _LT_EOF
5741 fi ;;
5742 esac
5743 fi
5744 break
5745 fi
5746 done
5747 IFS="$lt_save_ifs"
5748 MAGIC_CMD="$lt_save_MAGIC_CMD"
5749 ;;
5750 esac
5751 fi
5752
5753 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5754 if test -n "$MAGIC_CMD"; then
5755 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5756 echo "${ECHO_T}$MAGIC_CMD" >&6
5757 else
5758 echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6
5760 fi
5761
5762
5763
5764
5765
5766 if test -z "$lt_cv_path_MAGIC_CMD"; then
5767 if test -n "$ac_tool_prefix"; then
5768 echo "$as_me:$LINENO: checking for file" >&5
5769 echo $ECHO_N "checking for file... $ECHO_C" >&6
5770 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773 case $MAGIC_CMD in
5774 [\\/*] | ?:[\\/]*)
5775 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5776 ;;
5777 *)
5778 lt_save_MAGIC_CMD="$MAGIC_CMD"
5779 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5780 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5781 for ac_dir in $ac_dummy; do
5782 IFS="$lt_save_ifs"
5783 test -z "$ac_dir" && ac_dir=.
5784 if test -f $ac_dir/file; then
5785 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5786 if test -n "$file_magic_test_file"; then
5787 case $deplibs_check_method in
5788 "file_magic "*)
5789 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5790 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5791 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5792 $EGREP "$file_magic_regex" > /dev/null; then
5793 :
5794 else
5795 cat <<_LT_EOF 1>&2
5796
5797 *** Warning: the command libtool uses to detect shared libraries,
5798 *** $file_magic_cmd, produces output that libtool cannot recognize.
5799 *** The result is that libtool may fail to recognize shared libraries
5800 *** as such. This will affect the creation of libtool libraries that
5801 *** depend on shared libraries, but programs linked with such libtool
5802 *** libraries will work regardless of this problem. Nevertheless, you
5803 *** may want to report the problem to your system manager and/or to
5804 *** bug-libtool@gnu.org
5805
5806 _LT_EOF
5807 fi ;;
5808 esac
5809 fi
5810 break
5811 fi
5812 done
5813 IFS="$lt_save_ifs"
5814 MAGIC_CMD="$lt_save_MAGIC_CMD"
5815 ;;
5816 esac
5817 fi
5818
5819 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5820 if test -n "$MAGIC_CMD"; then
5821 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5822 echo "${ECHO_T}$MAGIC_CMD" >&6
5823 else
5824 echo "$as_me:$LINENO: result: no" >&5
5825 echo "${ECHO_T}no" >&6
5826 fi
5827
5828
5829 else
5830 MAGIC_CMD=:
5831 fi
5832 fi
5833
5834 fi
5835 ;;
5836 esac
5837
5838 # Use C for the default configuration in the libtool script
5839
5840 lt_save_CC="$CC"
5841 ac_ext=c
5842 ac_cpp='$CPP $CPPFLAGS'
5843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5846
5847
5848 # Source file extension for C test sources.
5849 ac_ext=c
5850
5851 # Object file extension for compiled C test sources.
5852 objext=o
5853 objext=$objext
5854
5855 # Code to be used in simple compile tests
5856 lt_simple_compile_test_code="int some_variable = 0;"
5857
5858 # Code to be used in simple link tests
5859 lt_simple_link_test_code='int main(){return(0);}'
5860
5861
5862
5863
5864
5865
5866
5867 # If no C compiler was specified, use CC.
5868 LTCC=${LTCC-"$CC"}
5869
5870 # If no C compiler flags were specified, use CFLAGS.
5871 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5872
5873 # Allow CC to be a program name with arguments.
5874 compiler=$CC
5875
5876 # Save the default compiler, since it gets overwritten when the other
5877 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5878 compiler_DEFAULT=$CC
5879
5880 # save warnings/boilerplate of simple test code
5881 ac_outfile=conftest.$ac_objext
5882 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5883 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5884 _lt_compiler_boilerplate=`cat conftest.err`
5885 $RM conftest*
5886
5887 ac_outfile=conftest.$ac_objext
5888 echo "$lt_simple_link_test_code" >conftest.$ac_ext
5889 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5890 _lt_linker_boilerplate=`cat conftest.err`
5891 $RM conftest*
5892
5893
5894 ## CAVEAT EMPTOR:
5895 ## There is no encapsulation within the following macros, do not change
5896 ## the running order or otherwise move them around unless you know exactly
5897 ## what you are doing...
5898 if test -n "$compiler"; then
5899
5900 lt_prog_compiler_no_builtin_flag=
5901
5902 if test "$GCC" = yes; then
5903 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5904
5905 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5906 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5907 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 else
5910 lt_cv_prog_compiler_rtti_exceptions=no
5911 ac_outfile=conftest.$ac_objext
5912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5913 lt_compiler_flag="-fno-rtti -fno-exceptions"
5914 # Insert the option either (1) after the last *FLAGS variable, or
5915 # (2) before a word containing "conftest.", or (3) at the end.
5916 # Note that $ac_compile itself does not contain backslashes and begins
5917 # with a dollar sign (not a hyphen), so the echo should work correctly.
5918 # The option is referenced via a variable to avoid confusing sed.
5919 lt_compile=`echo "$ac_compile" | $SED \
5920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5922 -e 's:$: $lt_compiler_flag:'`
5923 (eval echo "\"\$as_me:5923: $lt_compile\"" >&5)
5924 (eval "$lt_compile" 2>conftest.err)
5925 ac_status=$?
5926 cat conftest.err >&5
5927 echo "$as_me:5927: \$? = $ac_status" >&5
5928 if (exit $ac_status) && test -s "$ac_outfile"; then
5929 # The compiler can only warn and ignore the option if not recognized
5930 # So say no if there are warnings other than the usual output.
5931 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5932 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5933 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5934 lt_cv_prog_compiler_rtti_exceptions=yes
5935 fi
5936 fi
5937 $RM conftest*
5938
5939 fi
5940 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5941 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5942
5943 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5944 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5945 else
5946 :
5947 fi
5948
5949 fi
5950
5951
5952
5953
5954
5955
5956 lt_prog_compiler_wl=
5957 lt_prog_compiler_pic=
5958 lt_prog_compiler_static=
5959
5960 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5961 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5962
5963 if test "$GCC" = yes; then
5964 lt_prog_compiler_wl='-Wl,'
5965 lt_prog_compiler_static='-static'
5966
5967 case $host_os in
5968 aix*)
5969 # All AIX code is PIC.
5970 if test "$host_cpu" = ia64; then
5971 # AIX 5 now supports IA64 processor
5972 lt_prog_compiler_static='-Bstatic'
5973 fi
5974 ;;
5975
5976 amigaos*)
5977 if test "$host_cpu" = m68k; then
5978 # FIXME: we need at least 68020 code to build shared libraries, but
5979 # adding the `-m68020' flag to GCC prevents building anything better,
5980 # like `-m68040'.
5981 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5982 fi
5983 ;;
5984
5985 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5986 # PIC is the default for these OSes.
5987 ;;
5988
5989 mingw* | cygwin* | pw32* | os2*)
5990 # This hack is so that the source file can tell whether it is being
5991 # built for inclusion in a dll (and should export symbols for example).
5992 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5993 # (--disable-auto-import) libraries
5994 lt_prog_compiler_pic='-DDLL_EXPORT'
5995 ;;
5996
5997 darwin* | rhapsody*)
5998 # PIC is the default on this platform
5999 # Common symbols not allowed in MH_DYLIB files
6000 lt_prog_compiler_pic='-fno-common'
6001 ;;
6002
6003 hpux*)
6004 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6005 # not for PA HP-UX.
6006 case $host_cpu in
6007 hppa*64*|ia64*)
6008 # +Z the default
6009 ;;
6010 *)
6011 lt_prog_compiler_pic='-fPIC'
6012 ;;
6013 esac
6014 ;;
6015
6016 interix[3-9]*)
6017 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6018 # Instead, we relocate shared libraries at runtime.
6019 ;;
6020
6021 msdosdjgpp*)
6022 # Just because we use GCC doesn't mean we suddenly get shared libraries
6023 # on systems that don't support them.
6024 lt_prog_compiler_can_build_shared=no
6025 enable_shared=no
6026 ;;
6027
6028 *nto* | *qnx*)
6029 # QNX uses GNU C++, but need to define -shared option too, otherwise
6030 # it will coredump.
6031 lt_prog_compiler_pic='-fPIC -shared'
6032 ;;
6033
6034 sysv4*MP*)
6035 if test -d /usr/nec; then
6036 lt_prog_compiler_pic=-Kconform_pic
6037 fi
6038 ;;
6039
6040 *)
6041 lt_prog_compiler_pic='-fPIC'
6042 ;;
6043 esac
6044 else
6045 # PORTME Check for flag to pass linker flags through the system compiler.
6046 case $host_os in
6047 aix*)
6048 lt_prog_compiler_wl='-Wl,'
6049 if test "$host_cpu" = ia64; then
6050 # AIX 5 now supports IA64 processor
6051 lt_prog_compiler_static='-Bstatic'
6052 else
6053 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6054 fi
6055 ;;
6056 darwin*)
6057 # PIC is the default on this platform
6058 # Common symbols not allowed in MH_DYLIB files
6059 case $cc_basename in
6060 xlc*)
6061 lt_prog_compiler_pic='-qnocommon'
6062 lt_prog_compiler_wl='-Wl,'
6063 ;;
6064 esac
6065 ;;
6066
6067 mingw* | cygwin* | pw32* | os2*)
6068 # This hack is so that the source file can tell whether it is being
6069 # built for inclusion in a dll (and should export symbols for example).
6070 lt_prog_compiler_pic='-DDLL_EXPORT'
6071 ;;
6072
6073 hpux9* | hpux10* | hpux11*)
6074 lt_prog_compiler_wl='-Wl,'
6075 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6076 # not for PA HP-UX.
6077 case $host_cpu in
6078 hppa*64*|ia64*)
6079 # +Z the default
6080 ;;
6081 *)
6082 lt_prog_compiler_pic='+Z'
6083 ;;
6084 esac
6085 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6086 lt_prog_compiler_static='${wl}-a ${wl}archive'
6087 ;;
6088
6089 irix5* | irix6* | nonstopux*)
6090 lt_prog_compiler_wl='-Wl,'
6091 # PIC (with -KPIC) is the default.
6092 lt_prog_compiler_static='-non_shared'
6093 ;;
6094
6095 linux* | k*bsd*-gnu)
6096 case $cc_basename in
6097 icc* | ecc*)
6098 lt_prog_compiler_wl='-Wl,'
6099 lt_prog_compiler_pic='-KPIC'
6100 lt_prog_compiler_static='-static'
6101 ;;
6102 pgcc* | pgf77* | pgf90* | pgf95*)
6103 # Portland Group compilers (*not* the Pentium gcc compiler,
6104 # which looks to be a dead project)
6105 lt_prog_compiler_wl='-Wl,'
6106 lt_prog_compiler_pic='-fpic'
6107 lt_prog_compiler_static='-Bstatic'
6108 ;;
6109 ccc*)
6110 lt_prog_compiler_wl='-Wl,'
6111 # All Alpha code is PIC.
6112 lt_prog_compiler_static='-non_shared'
6113 ;;
6114 *)
6115 case `$CC -V 2>&1 | sed 5q` in
6116 *Sun\ C*)
6117 # Sun C 5.9
6118 lt_prog_compiler_pic='-KPIC'
6119 lt_prog_compiler_static='-Bstatic'
6120 lt_prog_compiler_wl='-Wl,'
6121 ;;
6122 *Sun\ F*)
6123 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6124 lt_prog_compiler_pic='-KPIC'
6125 lt_prog_compiler_static='-Bstatic'
6126 lt_prog_compiler_wl=''
6127 ;;
6128 esac
6129 ;;
6130 esac
6131 ;;
6132
6133 newsos6)
6134 lt_prog_compiler_pic='-KPIC'
6135 lt_prog_compiler_static='-Bstatic'
6136 ;;
6137
6138 *nto* | *qnx*)
6139 # QNX uses GNU C++, but need to define -shared option too, otherwise
6140 # it will coredump.
6141 lt_prog_compiler_pic='-fPIC -shared'
6142 ;;
6143
6144 osf3* | osf4* | osf5*)
6145 lt_prog_compiler_wl='-Wl,'
6146 # All OSF/1 code is PIC.
6147 lt_prog_compiler_static='-non_shared'
6148 ;;
6149
6150 rdos*)
6151 lt_prog_compiler_static='-non_shared'
6152 ;;
6153
6154 solaris*)
6155 lt_prog_compiler_pic='-KPIC'
6156 lt_prog_compiler_static='-Bstatic'
6157 case $cc_basename in
6158 f77* | f90* | f95*)
6159 lt_prog_compiler_wl='-Qoption ld ';;
6160 *)
6161 lt_prog_compiler_wl='-Wl,';;
6162 esac
6163 ;;
6164
6165 sunos4*)
6166 lt_prog_compiler_wl='-Qoption ld '
6167 lt_prog_compiler_pic='-PIC'
6168 lt_prog_compiler_static='-Bstatic'
6169 ;;
6170
6171 sysv4 | sysv4.2uw2* | sysv4.3*)
6172 lt_prog_compiler_wl='-Wl,'
6173 lt_prog_compiler_pic='-KPIC'
6174 lt_prog_compiler_static='-Bstatic'
6175 ;;
6176
6177 sysv4*MP*)
6178 if test -d /usr/nec ;then
6179 lt_prog_compiler_pic='-Kconform_pic'
6180 lt_prog_compiler_static='-Bstatic'
6181 fi
6182 ;;
6183
6184 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6185 lt_prog_compiler_wl='-Wl,'
6186 lt_prog_compiler_pic='-KPIC'
6187 lt_prog_compiler_static='-Bstatic'
6188 ;;
6189
6190 unicos*)
6191 lt_prog_compiler_wl='-Wl,'
6192 lt_prog_compiler_can_build_shared=no
6193 ;;
6194
6195 uts4*)
6196 lt_prog_compiler_pic='-pic'
6197 lt_prog_compiler_static='-Bstatic'
6198 ;;
6199
6200 *)
6201 lt_prog_compiler_can_build_shared=no
6202 ;;
6203 esac
6204 fi
6205
6206 case $host_os in
6207 # For platforms which do not support PIC, -DPIC is meaningless:
6208 *djgpp*)
6209 lt_prog_compiler_pic=
6210 ;;
6211 *)
6212 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6213 ;;
6214 esac
6215 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6216 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6217
6218
6219
6220
6221
6222
6223 #
6224 # Check to make sure the PIC flag actually works.
6225 #
6226 if test -n "$lt_prog_compiler_pic"; then
6227 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6228 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6229 if test "${lt_prog_compiler_pic_works+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 else
6232 lt_prog_compiler_pic_works=no
6233 ac_outfile=conftest.$ac_objext
6234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6235 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6236 # Insert the option either (1) after the last *FLAGS variable, or
6237 # (2) before a word containing "conftest.", or (3) at the end.
6238 # Note that $ac_compile itself does not contain backslashes and begins
6239 # with a dollar sign (not a hyphen), so the echo should work correctly.
6240 # The option is referenced via a variable to avoid confusing sed.
6241 lt_compile=`echo "$ac_compile" | $SED \
6242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6244 -e 's:$: $lt_compiler_flag:'`
6245 (eval echo "\"\$as_me:6245: $lt_compile\"" >&5)
6246 (eval "$lt_compile" 2>conftest.err)
6247 ac_status=$?
6248 cat conftest.err >&5
6249 echo "$as_me:6249: \$? = $ac_status" >&5
6250 if (exit $ac_status) && test -s "$ac_outfile"; then
6251 # The compiler can only warn and ignore the option if not recognized
6252 # So say no if there are warnings other than the usual output.
6253 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6255 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6256 lt_prog_compiler_pic_works=yes
6257 fi
6258 fi
6259 $RM conftest*
6260
6261 fi
6262 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6263 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6264
6265 if test x"$lt_prog_compiler_pic_works" = xyes; then
6266 case $lt_prog_compiler_pic in
6267 "" | " "*) ;;
6268 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6269 esac
6270 else
6271 lt_prog_compiler_pic=
6272 lt_prog_compiler_can_build_shared=no
6273 fi
6274
6275 fi
6276
6277
6278
6279
6280
6281
6282 #
6283 # Check to make sure the static flag actually works.
6284 #
6285 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6286 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6287 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6288 if test "${lt_prog_compiler_static_works+set}" = set; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
6290 else
6291 lt_prog_compiler_static_works=no
6292 save_LDFLAGS="$LDFLAGS"
6293 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6294 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6295 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6296 # The linker can only warn and ignore the option if not recognized
6297 # So say no if there are warnings
6298 if test -s conftest.err; then
6299 # Append any errors to the config.log.
6300 cat conftest.err 1>&5
6301 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6303 if diff conftest.exp conftest.er2 >/dev/null; then
6304 lt_prog_compiler_static_works=yes
6305 fi
6306 else
6307 lt_prog_compiler_static_works=yes
6308 fi
6309 fi
6310 $RM conftest*
6311 LDFLAGS="$save_LDFLAGS"
6312
6313 fi
6314 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6315 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6316
6317 if test x"$lt_prog_compiler_static_works" = xyes; then
6318 :
6319 else
6320 lt_prog_compiler_static=
6321 fi
6322
6323
6324
6325
6326
6327
6328
6329 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6330 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6331 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
6333 else
6334 lt_cv_prog_compiler_c_o=no
6335 $RM -r conftest 2>/dev/null
6336 mkdir conftest
6337 cd conftest
6338 mkdir out
6339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6340
6341 lt_compiler_flag="-o out/conftest2.$ac_objext"
6342 # Insert the option either (1) after the last *FLAGS variable, or
6343 # (2) before a word containing "conftest.", or (3) at the end.
6344 # Note that $ac_compile itself does not contain backslashes and begins
6345 # with a dollar sign (not a hyphen), so the echo should work correctly.
6346 lt_compile=`echo "$ac_compile" | $SED \
6347 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6349 -e 's:$: $lt_compiler_flag:'`
6350 (eval echo "\"\$as_me:6350: $lt_compile\"" >&5)
6351 (eval "$lt_compile" 2>out/conftest.err)
6352 ac_status=$?
6353 cat out/conftest.err >&5
6354 echo "$as_me:6354: \$? = $ac_status" >&5
6355 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6356 then
6357 # The compiler can only warn and ignore the option if not recognized
6358 # So say no if there are warnings
6359 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6360 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6361 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6362 lt_cv_prog_compiler_c_o=yes
6363 fi
6364 fi
6365 chmod u+w . 2>&5
6366 $RM conftest*
6367 # SGI C++ compiler will create directory out/ii_files/ for
6368 # template instantiation
6369 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6370 $RM out/* && rmdir out
6371 cd ..
6372 $RM -r conftest
6373 $RM conftest*
6374
6375 fi
6376 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6377 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6378
6379
6380
6381
6382
6383
6384 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6385 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6386 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389 lt_cv_prog_compiler_c_o=no
6390 $RM -r conftest 2>/dev/null
6391 mkdir conftest
6392 cd conftest
6393 mkdir out
6394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6395
6396 lt_compiler_flag="-o out/conftest2.$ac_objext"
6397 # Insert the option either (1) after the last *FLAGS variable, or
6398 # (2) before a word containing "conftest.", or (3) at the end.
6399 # Note that $ac_compile itself does not contain backslashes and begins
6400 # with a dollar sign (not a hyphen), so the echo should work correctly.
6401 lt_compile=`echo "$ac_compile" | $SED \
6402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6404 -e 's:$: $lt_compiler_flag:'`
6405 (eval echo "\"\$as_me:6405: $lt_compile\"" >&5)
6406 (eval "$lt_compile" 2>out/conftest.err)
6407 ac_status=$?
6408 cat out/conftest.err >&5
6409 echo "$as_me:6409: \$? = $ac_status" >&5
6410 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6411 then
6412 # The compiler can only warn and ignore the option if not recognized
6413 # So say no if there are warnings
6414 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6415 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6416 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6417 lt_cv_prog_compiler_c_o=yes
6418 fi
6419 fi
6420 chmod u+w . 2>&5
6421 $RM conftest*
6422 # SGI C++ compiler will create directory out/ii_files/ for
6423 # template instantiation
6424 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6425 $RM out/* && rmdir out
6426 cd ..
6427 $RM -r conftest
6428 $RM conftest*
6429
6430 fi
6431 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6432 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6433
6434
6435
6436
6437 hard_links="nottested"
6438 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6439 # do not overwrite the value of need_locks provided by the user
6440 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6441 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6442 hard_links=yes
6443 $RM conftest*
6444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6445 touch conftest.a
6446 ln conftest.a conftest.b 2>&5 || hard_links=no
6447 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6448 echo "$as_me:$LINENO: result: $hard_links" >&5
6449 echo "${ECHO_T}$hard_links" >&6
6450 if test "$hard_links" = no; then
6451 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6452 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6453 need_locks=warn
6454 fi
6455 else
6456 need_locks=no
6457 fi
6458
6459
6460
6461
6462
6463
6464 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6465 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6466
6467 runpath_var=
6468 allow_undefined_flag=
6469 always_export_symbols=no
6470 archive_cmds=
6471 archive_expsym_cmds=
6472 compiler_needs_object=no
6473 enable_shared_with_static_runtimes=no
6474 export_dynamic_flag_spec=
6475 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6476 hardcode_automatic=no
6477 hardcode_direct=no
6478 hardcode_direct_absolute=no
6479 hardcode_libdir_flag_spec=
6480 hardcode_libdir_flag_spec_ld=
6481 hardcode_libdir_separator=
6482 hardcode_minus_L=no
6483 hardcode_shlibpath_var=unsupported
6484 inherit_rpath=no
6485 link_all_deplibs=unknown
6486 module_cmds=
6487 module_expsym_cmds=
6488 old_archive_from_new_cmds=
6489 old_archive_from_expsyms_cmds=
6490 thread_safe_flag_spec=
6491 whole_archive_flag_spec=
6492 # include_expsyms should be a list of space-separated symbols to be *always*
6493 # included in the symbol list
6494 include_expsyms=
6495 # exclude_expsyms can be an extended regexp of symbols to exclude
6496 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6497 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6498 # as well as any symbol that contains `d'.
6499 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6500 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6501 # platforms (ab)use it in PIC code, but their linkers get confused if
6502 # the symbol is explicitly referenced. Since portable code cannot
6503 # rely on this symbol name, it's probably fine to never include it in
6504 # preloaded symbol tables.
6505 extract_expsyms_cmds=
6506
6507 case $host_os in
6508 cygwin* | mingw* | pw32*)
6509 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6510 # When not using gcc, we currently assume that we are using
6511 # Microsoft Visual C++.
6512 if test "$GCC" != yes; then
6513 with_gnu_ld=no
6514 fi
6515 ;;
6516 interix*)
6517 # we just hope/assume this is gcc and not c89 (= MSVC++)
6518 with_gnu_ld=yes
6519 ;;
6520 openbsd*)
6521 with_gnu_ld=no
6522 ;;
6523 esac
6524
6525 ld_shlibs=yes
6526 if test "$with_gnu_ld" = yes; then
6527 # If archive_cmds runs LD, not CC, wlarc should be empty
6528 wlarc='${wl}'
6529
6530 # Set some defaults for GNU ld with shared library support. These
6531 # are reset later if shared libraries are not supported. Putting them
6532 # here allows them to be overridden if necessary.
6533 runpath_var=LD_RUN_PATH
6534 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6535 export_dynamic_flag_spec='${wl}--export-dynamic'
6536 # ancient GNU ld didn't support --whole-archive et. al.
6537 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6538 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6539 else
6540 whole_archive_flag_spec=
6541 fi
6542 supports_anon_versioning=no
6543 case `$LD -v 2>&1` in
6544 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6545 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6546 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6547 *\ 2.11.*) ;; # other 2.11 versions
6548 *) supports_anon_versioning=yes ;;
6549 esac
6550
6551 # See if GNU ld supports shared libraries.
6552 case $host_os in
6553 aix3* | aix4* | aix5*)
6554 # On AIX/PPC, the GNU linker is very broken
6555 if test "$host_cpu" != ia64; then
6556 ld_shlibs=no
6557 cat <<_LT_EOF 1>&2
6558
6559 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6560 *** to be unable to reliably create shared libraries on AIX.
6561 *** Therefore, libtool is disabling shared libraries support. If you
6562 *** really care for shared libraries, you may want to modify your PATH
6563 *** so that a non-GNU linker is found, and then restart.
6564
6565 _LT_EOF
6566 fi
6567 ;;
6568
6569 amigaos*)
6570 if test "$host_cpu" = m68k; then
6571 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)'
6572 hardcode_libdir_flag_spec='-L$libdir'
6573 hardcode_minus_L=yes
6574 fi
6575
6576 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6577 # that the semantics of dynamic libraries on AmigaOS, at least up
6578 # to version 4, is to share data among multiple programs linked
6579 # with the same dynamic library. Since this doesn't match the
6580 # behavior of shared libraries on other platforms, we can't use
6581 # them.
6582 ld_shlibs=no
6583 ;;
6584
6585 beos*)
6586 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6587 allow_undefined_flag=unsupported
6588 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6589 # support --undefined. This deserves some investigation. FIXME
6590 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6591 else
6592 ld_shlibs=no
6593 fi
6594 ;;
6595
6596 cygwin* | mingw* | pw32*)
6597 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6598 # as there is no search path for DLLs.
6599 hardcode_libdir_flag_spec='-L$libdir'
6600 allow_undefined_flag=unsupported
6601 always_export_symbols=no
6602 enable_shared_with_static_runtimes=yes
6603 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6604
6605 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6607 # If the export-symbols file already is a .def file (1st line
6608 # is EXPORTS), use it as is; otherwise, prepend...
6609 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6610 cp $export_symbols $output_objdir/$soname.def;
6611 else
6612 echo EXPORTS > $output_objdir/$soname.def;
6613 cat $export_symbols >> $output_objdir/$soname.def;
6614 fi~
6615 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6616 else
6617 ld_shlibs=no
6618 fi
6619 ;;
6620
6621 interix[3-9]*)
6622 hardcode_direct=no
6623 hardcode_shlibpath_var=no
6624 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6625 export_dynamic_flag_spec='${wl}-E'
6626 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6627 # Instead, shared libraries are loaded at an image base (0x10000000 by
6628 # default) and relocated if they conflict, which is a slow very memory
6629 # consuming and fragmenting process. To avoid this, we pick a random,
6630 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6631 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6632 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6633 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'
6634 ;;
6635
6636 gnu* | linux* | tpf* | k*bsd*-gnu)
6637 tmp_diet=no
6638 if test "$host_os" = linux-dietlibc; then
6639 case $cc_basename in
6640 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6641 esac
6642 fi
6643 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6644 && test "$tmp_diet" = no
6645 then
6646 tmp_addflag=
6647 case $cc_basename,$host_cpu in
6648 pgcc*) # Portland Group C compiler
6649 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'
6650 tmp_addflag=' $pic_flag'
6651 ;;
6652 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6653 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'
6654 tmp_addflag=' $pic_flag -Mnomain' ;;
6655 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6656 tmp_addflag=' -i_dynamic' ;;
6657 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6658 tmp_addflag=' -i_dynamic -nofor_main' ;;
6659 ifc* | ifort*) # Intel Fortran compiler
6660 tmp_addflag=' -nofor_main' ;;
6661 esac
6662 case `$CC -V 2>&1 | sed 5q` in
6663 *Sun\ C*) # Sun C 5.9
6664 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'
6665 compiler_needs_object=yes
6666 tmp_sharedflag='-G' ;;
6667 *Sun\ F*) # Sun Fortran 8.3
6668 tmp_sharedflag='-G' ;;
6669 *)
6670 tmp_sharedflag='-shared' ;;
6671 esac
6672 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6673
6674 if test "x$supports_anon_versioning" = xyes; then
6675 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6676 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6677 echo "local: *; };" >> $output_objdir/$libname.ver~
6678 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6679 fi
6680 else
6681 ld_shlibs=no
6682 fi
6683 ;;
6684
6685 netbsd*)
6686 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6687 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6688 wlarc=
6689 else
6690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6691 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6692 fi
6693 ;;
6694
6695 solaris*)
6696 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6697 ld_shlibs=no
6698 cat <<_LT_EOF 1>&2
6699
6700 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6701 *** create shared libraries on Solaris systems. Therefore, libtool
6702 *** is disabling shared libraries support. We urge you to upgrade GNU
6703 *** binutils to release 2.9.1 or newer. Another option is to modify
6704 *** your PATH or compiler configuration so that the native linker is
6705 *** used, and then restart.
6706
6707 _LT_EOF
6708 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6710 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6711 else
6712 ld_shlibs=no
6713 fi
6714 ;;
6715
6716 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6717 case `$LD -v 2>&1` in
6718 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6719 ld_shlibs=no
6720 cat <<_LT_EOF 1>&2
6721
6722 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6723 *** reliably create shared libraries on SCO systems. Therefore, libtool
6724 *** is disabling shared libraries support. We urge you to upgrade GNU
6725 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6726 *** your PATH or compiler configuration so that the native linker is
6727 *** used, and then restart.
6728
6729 _LT_EOF
6730 ;;
6731 *)
6732 # For security reasons, it is highly recommended that you always
6733 # use absolute paths for naming shared libraries, and exclude the
6734 # DT_RUNPATH tag from executables and libraries. But doing so
6735 # requires that you compile everything twice, which is a pain.
6736 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6737 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6739 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6740 else
6741 ld_shlibs=no
6742 fi
6743 ;;
6744 esac
6745 ;;
6746
6747 sunos4*)
6748 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6749 wlarc=
6750 hardcode_direct=yes
6751 hardcode_shlibpath_var=no
6752 ;;
6753
6754 *)
6755 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6757 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6758 else
6759 ld_shlibs=no
6760 fi
6761 ;;
6762 esac
6763
6764 if test "$ld_shlibs" = no; then
6765 runpath_var=
6766 hardcode_libdir_flag_spec=
6767 export_dynamic_flag_spec=
6768 whole_archive_flag_spec=
6769 fi
6770 else
6771 # PORTME fill in a description of your system's linker (not GNU ld)
6772 case $host_os in
6773 aix3*)
6774 allow_undefined_flag=unsupported
6775 always_export_symbols=yes
6776 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'
6777 # Note: this linker hardcodes the directories in LIBPATH if there
6778 # are no directories specified by -L.
6779 hardcode_minus_L=yes
6780 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6781 # Neither direct hardcoding nor static linking is supported with a
6782 # broken collect2.
6783 hardcode_direct=unsupported
6784 fi
6785 ;;
6786
6787 aix4* | aix5*)
6788 if test "$host_cpu" = ia64; then
6789 # On IA64, the linker does run time linking by default, so we don't
6790 # have to do anything special.
6791 aix_use_runtimelinking=no
6792 exp_sym_flag='-Bexport'
6793 no_entry_flag=""
6794 else
6795 # If we're using GNU nm, then we don't want the "-C" option.
6796 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6797 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6798 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'
6799 else
6800 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'
6801 fi
6802 aix_use_runtimelinking=no
6803
6804 # Test if we are trying to use run time linking or normal
6805 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6806 # need to do runtime linking.
6807 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6808 for ld_flag in $LDFLAGS; do
6809 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6810 aix_use_runtimelinking=yes
6811 break
6812 fi
6813 done
6814 ;;
6815 esac
6816
6817 exp_sym_flag='-bexport'
6818 no_entry_flag='-bnoentry'
6819 fi
6820
6821 # When large executables or shared objects are built, AIX ld can
6822 # have problems creating the table of contents. If linking a library
6823 # or program results in "error TOC overflow" add -mminimal-toc to
6824 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6825 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6826
6827 archive_cmds=''
6828 hardcode_direct=yes
6829 hardcode_direct_absolute=yes
6830 hardcode_libdir_separator=':'
6831 link_all_deplibs=yes
6832 file_list_spec='${wl}-f,'
6833
6834 if test "$GCC" = yes; then
6835 case $host_os in aix4.[012]|aix4.[012].*)
6836 # We only want to do this on AIX 4.2 and lower, the check
6837 # below for broken collect2 doesn't work under 4.3+
6838 collect2name=`${CC} -print-prog-name=collect2`
6839 if test -f "$collect2name" &&
6840 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6841 then
6842 # We have reworked collect2
6843 :
6844 else
6845 # We have old collect2
6846 hardcode_direct=unsupported
6847 # It fails to find uninstalled libraries when the uninstalled
6848 # path is not listed in the libpath. Setting hardcode_minus_L
6849 # to unsupported forces relinking
6850 hardcode_minus_L=yes
6851 hardcode_libdir_flag_spec='-L$libdir'
6852 hardcode_libdir_separator=
6853 fi
6854 ;;
6855 esac
6856 shared_flag='-shared'
6857 if test "$aix_use_runtimelinking" = yes; then
6858 shared_flag="$shared_flag "'${wl}-G'
6859 fi
6860 else
6861 # not using gcc
6862 if test "$host_cpu" = ia64; then
6863 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6864 # chokes on -Wl,-G. The following line is correct:
6865 shared_flag='-G'
6866 else
6867 if test "$aix_use_runtimelinking" = yes; then
6868 shared_flag='${wl}-G'
6869 else
6870 shared_flag='${wl}-bM:SRE'
6871 fi
6872 fi
6873 fi
6874
6875 # It seems that -bexpall does not export symbols beginning with
6876 # underscore (_), so it is better to generate a list of symbols to export.
6877 always_export_symbols=yes
6878 if test "$aix_use_runtimelinking" = yes; then
6879 # Warning - without using the other runtime loading flags (-brtl),
6880 # -berok will link without error, but may produce a broken library.
6881 allow_undefined_flag='-berok'
6882 # Determine the default libpath from the value encoded in an
6883 # empty executable.
6884 cat >conftest.$ac_ext <<_ACEOF
6885 /* confdefs.h. */
6886 _ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6890
6891 int
6892 main ()
6893 {
6894
6895 ;
6896 return 0;
6897 }
6898 _ACEOF
6899 rm -f conftest.$ac_objext conftest$ac_exeext
6900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6901 (eval $ac_link) 2>conftest.er1
6902 ac_status=$?
6903 grep -v '^ *+' conftest.er1 >conftest.err
6904 rm -f conftest.er1
6905 cat conftest.err >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
6908 { ac_try='test -z "$ac_c_werror_flag"
6909 || test ! -s conftest.err'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 (eval $ac_try) 2>&5
6912 ac_status=$?
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; } &&
6915 { ac_try='test -s conftest$ac_exeext'
6916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 (eval $ac_try) 2>&5
6918 ac_status=$?
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; }; then
6921
6922 lt_aix_libpath_sed='
6923 /Import File Strings/,/^$/ {
6924 /^0/ {
6925 s/^0 *\(.*\)$/\1/
6926 p
6927 }
6928 }'
6929 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6930 # Check for a 64-bit object if we didn't find anything.
6931 if test -z "$aix_libpath"; then
6932 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6933 fi
6934 else
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6937
6938 fi
6939 rm -f conftest.err conftest.$ac_objext \
6940 conftest$ac_exeext conftest.$ac_ext
6941 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6942
6943 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6944 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"
6945 else
6946 if test "$host_cpu" = ia64; then
6947 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6948 allow_undefined_flag="-z nodefs"
6949 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"
6950 else
6951 # Determine the default libpath from the value encoded in an
6952 # empty executable.
6953 cat >conftest.$ac_ext <<_ACEOF
6954 /* confdefs.h. */
6955 _ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h. */
6959
6960 int
6961 main ()
6962 {
6963
6964 ;
6965 return 0;
6966 }
6967 _ACEOF
6968 rm -f conftest.$ac_objext conftest$ac_exeext
6969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6970 (eval $ac_link) 2>conftest.er1
6971 ac_status=$?
6972 grep -v '^ *+' conftest.er1 >conftest.err
6973 rm -f conftest.er1
6974 cat conftest.err >&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } &&
6977 { ac_try='test -z "$ac_c_werror_flag"
6978 || test ! -s conftest.err'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 (eval $ac_try) 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; } &&
6984 { ac_try='test -s conftest$ac_exeext'
6985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986 (eval $ac_try) 2>&5
6987 ac_status=$?
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; }; then
6990
6991 lt_aix_libpath_sed='
6992 /Import File Strings/,/^$/ {
6993 /^0/ {
6994 s/^0 *\(.*\)$/\1/
6995 p
6996 }
6997 }'
6998 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6999 # Check for a 64-bit object if we didn't find anything.
7000 if test -z "$aix_libpath"; then
7001 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7002 fi
7003 else
7004 echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7006
7007 fi
7008 rm -f conftest.err conftest.$ac_objext \
7009 conftest$ac_exeext conftest.$ac_ext
7010 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7011
7012 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7013 # Warning - without using the other run time loading flags,
7014 # -berok will link without error, but may produce a broken library.
7015 no_undefined_flag=' ${wl}-bernotok'
7016 allow_undefined_flag=' ${wl}-berok'
7017 # Exported symbols can be pulled into shared objects from archives
7018 whole_archive_flag_spec='$convenience'
7019 archive_cmds_need_lc=yes
7020 # This is similar to how AIX traditionally builds its shared libraries.
7021 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'
7022 fi
7023 fi
7024 ;;
7025
7026 amigaos*)
7027 if test "$host_cpu" = m68k; then
7028 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)'
7029 hardcode_libdir_flag_spec='-L$libdir'
7030 hardcode_minus_L=yes
7031 fi
7032 # see comment about different semantics on the GNU ld section
7033 ld_shlibs=no
7034 ;;
7035
7036 bsdi[45]*)
7037 export_dynamic_flag_spec=-rdynamic
7038 ;;
7039
7040 cygwin* | mingw* | pw32*)
7041 # When not using gcc, we currently assume that we are using
7042 # Microsoft Visual C++.
7043 # hardcode_libdir_flag_spec is actually meaningless, as there is
7044 # no search path for DLLs.
7045 hardcode_libdir_flag_spec=' '
7046 allow_undefined_flag=unsupported
7047 # Tell ltmain to make .lib files, not .a files.
7048 libext=lib
7049 # Tell ltmain to make .dll files, not .so files.
7050 shrext_cmds=".dll"
7051 # FIXME: Setting linknames here is a bad hack.
7052 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7053 # The linker will automatically build a .lib file if we build a DLL.
7054 old_archive_from_new_cmds='true'
7055 # FIXME: Should let the user specify the lib program.
7056 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7057 fix_srcfile_path='`cygpath -w "$srcfile"`'
7058 enable_shared_with_static_runtimes=yes
7059 ;;
7060
7061 darwin* | rhapsody*)
7062 case $host_os in
7063 rhapsody* | darwin1.[012])
7064 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7065 ;;
7066 *) # Darwin 1.3 on
7067 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7068 10.[012])
7069 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7070 ;;
7071 10.*)
7072 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7073 ;;
7074 esac
7075 ;;
7076 esac
7077 archive_cmds_need_lc=no
7078 hardcode_direct=no
7079 hardcode_automatic=yes
7080 hardcode_shlibpath_var=unsupported
7081 whole_archive_flag_spec=''
7082 link_all_deplibs=yes
7083 if test "$GCC" = yes ; then
7084 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087 lt_cv_apple_cc_single_mod=no
7088 if test -z "${LT_MULTI_MODULE}"; then
7089 # By default we will add the -single_module flag. You can override
7090 # by either setting the environment variable LT_MULTI_MODULE
7091 # non-empty at configure time, or by adding -multi-module to the
7092 # link flags.
7093 echo "int foo(void){return 1;}" > conftest.c
7094 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7095 -dynamiclib ${wl}-single_module conftest.c
7096 if test -f libconftest.dylib; then
7097 lt_cv_apple_cc_single_mod=yes
7098 rm libconftest.dylib
7099 fi
7100 rm conftest.$ac_ext
7101 fi
7102 fi
7103
7104 output_verbose_link_cmd=echo
7105 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7106 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7107 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7108 else
7109 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7110 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7111 fi
7112 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7113 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7114 else
7115 case $cc_basename in
7116 xlc*)
7117 output_verbose_link_cmd=echo
7118 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7119 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7120 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7121 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7122 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7123 ;;
7124 *)
7125 ld_shlibs=no
7126 ;;
7127 esac
7128 fi
7129 ;;
7130
7131 dgux*)
7132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7133 hardcode_libdir_flag_spec='-L$libdir'
7134 hardcode_shlibpath_var=no
7135 ;;
7136
7137 freebsd1*)
7138 ld_shlibs=no
7139 ;;
7140
7141 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7142 # support. Future versions do this automatically, but an explicit c++rt0.o
7143 # does not break anything, and helps significantly (at the cost of a little
7144 # extra space).
7145 freebsd2.2*)
7146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7147 hardcode_libdir_flag_spec='-R$libdir'
7148 hardcode_direct=yes
7149 hardcode_shlibpath_var=no
7150 ;;
7151
7152 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7153 freebsd2*)
7154 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7155 hardcode_direct=yes
7156 hardcode_minus_L=yes
7157 hardcode_shlibpath_var=no
7158 ;;
7159
7160 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7161 freebsd* | dragonfly*)
7162 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7163 hardcode_libdir_flag_spec='-R$libdir'
7164 hardcode_direct=yes
7165 hardcode_shlibpath_var=no
7166 ;;
7167
7168 hpux9*)
7169 if test "$GCC" = yes; then
7170 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'
7171 else
7172 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'
7173 fi
7174 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7175 hardcode_libdir_separator=:
7176 hardcode_direct=yes
7177
7178 # hardcode_minus_L: Not really in the search PATH,
7179 # but as the default location of the library.
7180 hardcode_minus_L=yes
7181 export_dynamic_flag_spec='${wl}-E'
7182 ;;
7183
7184 hpux10*)
7185 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7186 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7187 else
7188 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7189 fi
7190 if test "$with_gnu_ld" = no; then
7191 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7192 hardcode_libdir_flag_spec_ld='+b $libdir'
7193 hardcode_libdir_separator=:
7194 hardcode_direct=yes
7195 hardcode_direct_absolute=yes
7196 export_dynamic_flag_spec='${wl}-E'
7197 # hardcode_minus_L: Not really in the search PATH,
7198 # but as the default location of the library.
7199 hardcode_minus_L=yes
7200 fi
7201 ;;
7202
7203 hpux11*)
7204 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7205 case $host_cpu in
7206 hppa*64*)
7207 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7208 ;;
7209 ia64*)
7210 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7211 ;;
7212 *)
7213 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7214 ;;
7215 esac
7216 else
7217 case $host_cpu in
7218 hppa*64*)
7219 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7220 ;;
7221 ia64*)
7222 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7223 ;;
7224 *)
7225 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7226 ;;
7227 esac
7228 fi
7229 if test "$with_gnu_ld" = no; then
7230 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7231 hardcode_libdir_separator=:
7232
7233 case $host_cpu in
7234 hppa*64*|ia64*)
7235 hardcode_direct=no
7236 hardcode_shlibpath_var=no
7237 ;;
7238 *)
7239 hardcode_direct=yes
7240 hardcode_direct_absolute=yes
7241 export_dynamic_flag_spec='${wl}-E'
7242
7243 # hardcode_minus_L: Not really in the search PATH,
7244 # but as the default location of the library.
7245 hardcode_minus_L=yes
7246 ;;
7247 esac
7248 fi
7249 ;;
7250
7251 irix5* | irix6* | nonstopux*)
7252 if test "$GCC" = yes; then
7253 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'
7254 # Try to use the -exported_symbol ld option, if it does not
7255 # work, assume that -exports_file does not work either and
7256 # implicitly export all symbols.
7257 save_LDFLAGS="$LDFLAGS"
7258 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7259 cat >conftest.$ac_ext <<_ACEOF
7260 int foo(void) {}
7261 _ACEOF
7262 rm -f conftest.$ac_objext conftest$ac_exeext
7263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7264 (eval $ac_link) 2>conftest.er1
7265 ac_status=$?
7266 grep -v '^ *+' conftest.er1 >conftest.err
7267 rm -f conftest.er1
7268 cat conftest.err >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } &&
7271 { ac_try='test -z "$ac_c_werror_flag"
7272 || test ! -s conftest.err'
7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 (eval $ac_try) 2>&5
7275 ac_status=$?
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; } &&
7278 { ac_try='test -s conftest$ac_exeext'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 (eval $ac_try) 2>&5
7281 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; }; then
7284 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'
7285
7286 else
7287 echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7289
7290 fi
7291 rm -f conftest.err conftest.$ac_objext \
7292 conftest$ac_exeext conftest.$ac_ext
7293 LDFLAGS="$save_LDFLAGS"
7294 else
7295 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'
7296 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'
7297 fi
7298 archive_cmds_need_lc='no'
7299 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7300 hardcode_libdir_separator=:
7301 inherit_rpath=yes
7302 link_all_deplibs=yes
7303 ;;
7304
7305 netbsd*)
7306 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7308 else
7309 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7310 fi
7311 hardcode_libdir_flag_spec='-R$libdir'
7312 hardcode_direct=yes
7313 hardcode_shlibpath_var=no
7314 ;;
7315
7316 newsos6)
7317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7318 hardcode_direct=yes
7319 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7320 hardcode_libdir_separator=:
7321 hardcode_shlibpath_var=no
7322 ;;
7323
7324 *nto* | *qnx*)
7325 ;;
7326
7327 openbsd*)
7328 hardcode_direct=yes
7329 hardcode_shlibpath_var=no
7330 hardcode_direct_absolute=yes
7331 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7332 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7333 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7334 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7335 export_dynamic_flag_spec='${wl}-E'
7336 else
7337 case $host_os in
7338 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7339 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7340 hardcode_libdir_flag_spec='-R$libdir'
7341 ;;
7342 *)
7343 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7344 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7345 ;;
7346 esac
7347 fi
7348 ;;
7349
7350 os2*)
7351 hardcode_libdir_flag_spec='-L$libdir'
7352 hardcode_minus_L=yes
7353 allow_undefined_flag=unsupported
7354 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'
7355 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7356 ;;
7357
7358 osf3*)
7359 if test "$GCC" = yes; then
7360 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7361 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'
7362 else
7363 allow_undefined_flag=' -expect_unresolved \*'
7364 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'
7365 fi
7366 archive_cmds_need_lc='no'
7367 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7368 hardcode_libdir_separator=:
7369 ;;
7370
7371 osf4* | osf5*) # as osf3* with the addition of -msym flag
7372 if test "$GCC" = yes; then
7373 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7374 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'
7375 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7376 else
7377 allow_undefined_flag=' -expect_unresolved \*'
7378 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'
7379 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~
7380 $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'
7381
7382 # Both c and cxx compiler support -rpath directly
7383 hardcode_libdir_flag_spec='-rpath $libdir'
7384 fi
7385 archive_cmds_need_lc='no'
7386 hardcode_libdir_separator=:
7387 ;;
7388
7389 solaris*)
7390 no_undefined_flag=' -z defs'
7391 if test "$GCC" = yes; then
7392 wlarc='${wl}'
7393 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7394 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7395 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7396 else
7397 case `$CC -V 2>&1` in
7398 *"Compilers 5.0"*)
7399 wlarc=''
7400 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7401 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7402 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7403 ;;
7404 *)
7405 wlarc='${wl}'
7406 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7407 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7408 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7409 ;;
7410 esac
7411 fi
7412 hardcode_libdir_flag_spec='-R$libdir'
7413 hardcode_shlibpath_var=no
7414 case $host_os in
7415 solaris2.[0-5] | solaris2.[0-5].*) ;;
7416 *)
7417 # The compiler driver will combine and reorder linker options,
7418 # but understands `-z linker_flag'. GCC discards it without `$wl',
7419 # but is careful enough not to reorder.
7420 # Supported since Solaris 2.6 (maybe 2.5.1?)
7421 if test "$GCC" = yes; then
7422 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7423 else
7424 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7425 fi
7426 ;;
7427 esac
7428 link_all_deplibs=yes
7429 ;;
7430
7431 sunos4*)
7432 if test "x$host_vendor" = xsequent; then
7433 # Use $CC to link under sequent, because it throws in some extra .o
7434 # files that make .init and .fini sections work.
7435 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7436 else
7437 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7438 fi
7439 hardcode_libdir_flag_spec='-L$libdir'
7440 hardcode_direct=yes
7441 hardcode_minus_L=yes
7442 hardcode_shlibpath_var=no
7443 ;;
7444
7445 sysv4)
7446 case $host_vendor in
7447 sni)
7448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7449 hardcode_direct=yes # is this really true???
7450 ;;
7451 siemens)
7452 ## LD is ld it makes a PLAMLIB
7453 ## CC just makes a GrossModule.
7454 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7455 reload_cmds='$CC -r -o $output$reload_objs'
7456 hardcode_direct=no
7457 ;;
7458 motorola)
7459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7460 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7461 ;;
7462 esac
7463 runpath_var='LD_RUN_PATH'
7464 hardcode_shlibpath_var=no
7465 ;;
7466
7467 sysv4.3*)
7468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7469 hardcode_shlibpath_var=no
7470 export_dynamic_flag_spec='-Bexport'
7471 ;;
7472
7473 sysv4*MP*)
7474 if test -d /usr/nec; then
7475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7476 hardcode_shlibpath_var=no
7477 runpath_var=LD_RUN_PATH
7478 hardcode_runpath_var=yes
7479 ld_shlibs=yes
7480 fi
7481 ;;
7482
7483 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7484 no_undefined_flag='${wl}-z,text'
7485 archive_cmds_need_lc=no
7486 hardcode_shlibpath_var=no
7487 runpath_var='LD_RUN_PATH'
7488
7489 if test "$GCC" = yes; then
7490 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7491 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7492 else
7493 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7494 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7495 fi
7496 ;;
7497
7498 sysv5* | sco3.2v5* | sco5v6*)
7499 # Note: We can NOT use -z defs as we might desire, because we do not
7500 # link with -lc, and that would cause any symbols used from libc to
7501 # always be unresolved, which means just about no library would
7502 # ever link correctly. If we're not using GNU ld we use -z text
7503 # though, which does catch some bad symbols but isn't as heavy-handed
7504 # as -z defs.
7505 no_undefined_flag='${wl}-z,text'
7506 allow_undefined_flag='${wl}-z,nodefs'
7507 archive_cmds_need_lc=no
7508 hardcode_shlibpath_var=no
7509 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7510 hardcode_libdir_separator=':'
7511 link_all_deplibs=yes
7512 export_dynamic_flag_spec='${wl}-Bexport'
7513 runpath_var='LD_RUN_PATH'
7514
7515 if test "$GCC" = yes; then
7516 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7517 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7518 else
7519 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7520 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7521 fi
7522 ;;
7523
7524 uts4*)
7525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7526 hardcode_libdir_flag_spec='-L$libdir'
7527 hardcode_shlibpath_var=no
7528 ;;
7529
7530 *)
7531 ld_shlibs=no
7532 ;;
7533 esac
7534
7535 if test x$host_vendor = xsni; then
7536 case $host in
7537 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7538 export_dynamic_flag_spec='${wl}-Blargedynsym'
7539 ;;
7540 esac
7541 fi
7542 fi
7543
7544 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7545 echo "${ECHO_T}$ld_shlibs" >&6
7546 test "$ld_shlibs" = no && can_build_shared=no
7547
7548 with_gnu_ld=$with_gnu_ld
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564 #
7565 # Do we need to explicitly link libc?
7566 #
7567 case "x$archive_cmds_need_lc" in
7568 x|xyes)
7569 # Assume -lc should be added
7570 archive_cmds_need_lc=yes
7571
7572 if test "$enable_shared" = yes && test "$GCC" = yes; then
7573 case $archive_cmds in
7574 *'~'*)
7575 # FIXME: we may have to deal with multi-command sequences.
7576 ;;
7577 '$CC '*)
7578 # Test whether the compiler implicitly links with -lc since on some
7579 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7580 # to ld, don't add -lc before -lgcc.
7581 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7582 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7583 $RM conftest*
7584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7585
7586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7587 (eval $ac_compile) 2>&5
7588 ac_status=$?
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); } 2>conftest.err; then
7591 soname=conftest
7592 lib=conftest
7593 libobjs=conftest.$ac_objext
7594 deplibs=
7595 wl=$lt_prog_compiler_wl
7596 pic_flag=$lt_prog_compiler_pic
7597 compiler_flags=-v
7598 linker_flags=-v
7599 verstring=
7600 output_objdir=.
7601 libname=conftest
7602 lt_save_allow_undefined_flag=$allow_undefined_flag
7603 allow_undefined_flag=
7604 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7605 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }
7609 then
7610 archive_cmds_need_lc=no
7611 else
7612 archive_cmds_need_lc=yes
7613 fi
7614 allow_undefined_flag=$lt_save_allow_undefined_flag
7615 else
7616 cat conftest.err 1>&5
7617 fi
7618 $RM conftest*
7619 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7620 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7621 ;;
7622 esac
7623 fi
7624 ;;
7625 esac
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7784 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7785 withGCC=$GCC
7786 if test "$withGCC" = yes; then
7787 case $host_os in
7788 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7789 *) lt_awk_arg="/^libraries:/" ;;
7790 esac
7791 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7792 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7793 # if the path contains ";" then we assume it to be the separator
7794 # otherwise default to the standard path separator (i.e. ":") - it is
7795 # assumed that no part of a normal pathname contains ";" but that should
7796 # okay in the real world where ";" in dirpaths is itself problematic.
7797 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7798 else
7799 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7800 fi
7801 # Ok, now we have the path, separated by spaces, we can step through it
7802 # and add multilib dir if necessary.
7803 lt_tmp_lt_search_path_spec=
7804 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7805 for lt_sys_path in $lt_search_path_spec; do
7806 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7807 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7808 else
7809 test -d "$lt_sys_path" && \
7810 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7811 fi
7812 done
7813 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7814 BEGIN {RS=" "; FS="/|\n";} {
7815 lt_foo="";
7816 lt_count=0;
7817 for (lt_i = NF; lt_i > 0; lt_i--) {
7818 if ($lt_i != "" && $lt_i != ".") {
7819 if ($lt_i == "..") {
7820 lt_count++;
7821 } else {
7822 if (lt_count == 0) {
7823 lt_foo="/" $lt_i lt_foo;
7824 } else {
7825 lt_count--;
7826 }
7827 }
7828 }
7829 }
7830 if (lt_foo != "") { lt_freq[lt_foo]++; }
7831 if (lt_freq[lt_foo] == 1) { print lt_foo; }
7832 }'`
7833 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7834 else
7835 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7836 fi
7837 library_names_spec=
7838 libname_spec='lib$name'
7839 soname_spec=
7840 shrext_cmds=".so"
7841 postinstall_cmds=
7842 postuninstall_cmds=
7843 finish_cmds=
7844 finish_eval=
7845 shlibpath_var=
7846 shlibpath_overrides_runpath=unknown
7847 version_type=none
7848 dynamic_linker="$host_os ld.so"
7849 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7850 need_lib_prefix=unknown
7851 hardcode_into_libs=no
7852
7853 # when you set need_version to no, make sure it does not cause -set_version
7854 # flags to be left without arguments
7855 need_version=unknown
7856
7857 case $host_os in
7858 aix3*)
7859 version_type=linux
7860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7861 shlibpath_var=LIBPATH
7862
7863 # AIX 3 has no versioning support, so we append a major version to the name.
7864 soname_spec='${libname}${release}${shared_ext}$major'
7865 ;;
7866
7867 aix4* | aix5*)
7868 version_type=linux
7869 need_lib_prefix=no
7870 need_version=no
7871 hardcode_into_libs=yes
7872 if test "$host_cpu" = ia64; then
7873 # AIX 5 supports IA64
7874 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7875 shlibpath_var=LD_LIBRARY_PATH
7876 else
7877 # With GCC up to 2.95.x, collect2 would create an import file
7878 # for dependence libraries. The import file would start with
7879 # the line `#! .'. This would cause the generated library to
7880 # depend on `.', always an invalid library. This was fixed in
7881 # development snapshots of GCC prior to 3.0.
7882 case $host_os in
7883 aix4 | aix4.[01] | aix4.[01].*)
7884 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7885 echo ' yes '
7886 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7887 :
7888 else
7889 can_build_shared=no
7890 fi
7891 ;;
7892 esac
7893 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7894 # soname into executable. Probably we can add versioning support to
7895 # collect2, so additional links can be useful in future.
7896 if test "$aix_use_runtimelinking" = yes; then
7897 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7898 # instead of lib<name>.a to let people know that these are not
7899 # typical AIX shared libraries.
7900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7901 else
7902 # We preserve .a as extension for shared libraries through AIX4.2
7903 # and later when we are not doing run time linking.
7904 library_names_spec='${libname}${release}.a $libname.a'
7905 soname_spec='${libname}${release}${shared_ext}$major'
7906 fi
7907 shlibpath_var=LIBPATH
7908 fi
7909 ;;
7910
7911 amigaos*)
7912 if test "$host_cpu" = m68k; then
7913 library_names_spec='$libname.ixlibrary $libname.a'
7914 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7915 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'
7916 else
7917 dynamic_linker=no
7918 fi
7919 ;;
7920
7921 beos*)
7922 library_names_spec='${libname}${shared_ext}'
7923 dynamic_linker="$host_os ld.so"
7924 shlibpath_var=LIBRARY_PATH
7925 ;;
7926
7927 bsdi[45]*)
7928 version_type=linux
7929 need_version=no
7930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7931 soname_spec='${libname}${release}${shared_ext}$major'
7932 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7933 shlibpath_var=LD_LIBRARY_PATH
7934 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7935 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7936 # the default ld.so.conf also contains /usr/contrib/lib and
7937 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7938 # libtool to hard-code these into programs
7939 ;;
7940
7941 cygwin* | mingw* | pw32*)
7942 version_type=windows
7943 shrext_cmds=".dll"
7944 need_version=no
7945 need_lib_prefix=no
7946
7947 case $withGCC,$host_os in
7948 yes,cygwin* | yes,mingw* | yes,pw32*)
7949 library_names_spec='$libname.dll.a'
7950 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7951 postinstall_cmds='base_file=`basename \${file}`~
7952 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
7953 dldir=$destdir/`dirname \$dlpath`~
7954 test -d \$dldir || mkdir -p \$dldir~
7955 $install_prog $dir/$dlname \$dldir/$dlname~
7956 chmod a+x \$dldir/$dlname~
7957 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
7958 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
7959 fi'
7960 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7961 dlpath=$dir/\$dldll~
7962 $RM \$dlpath'
7963 shlibpath_overrides_runpath=yes
7964
7965 case $host_os in
7966 cygwin*)
7967 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7968 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7969 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7970 ;;
7971 mingw*)
7972 # MinGW DLLs use traditional 'lib' prefix
7973 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7974 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7975 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
7976 # It is most probably a Windows format PATH printed by
7977 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7978 # path with ; separators, and with drive letters. We can handle the
7979 # drive letters (cygwin fileutils understands them), so leave them,
7980 # especially as we might pass files found there to a mingw objdump,
7981 # which wouldn't understand a cygwinified path. Ahh.
7982 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7983 else
7984 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7985 fi
7986 ;;
7987 pw32*)
7988 # pw32 DLLs use 'pw' prefix rather than 'lib'
7989 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7990 ;;
7991 esac
7992 ;;
7993
7994 *)
7995 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7996 ;;
7997 esac
7998 dynamic_linker='Win32 ld.exe'
7999 # FIXME: first we should search . and the directory the executable is in
8000 shlibpath_var=PATH
8001 ;;
8002
8003 darwin* | rhapsody*)
8004 dynamic_linker="$host_os dyld"
8005 version_type=darwin
8006 need_lib_prefix=no
8007 need_version=no
8008 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8009 soname_spec='${libname}${release}${major}$shared_ext'
8010 shlibpath_overrides_runpath=yes
8011 shlibpath_var=DYLD_LIBRARY_PATH
8012 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8013
8014 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8015 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8016 ;;
8017
8018 dgux*)
8019 version_type=linux
8020 need_lib_prefix=no
8021 need_version=no
8022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8023 soname_spec='${libname}${release}${shared_ext}$major'
8024 shlibpath_var=LD_LIBRARY_PATH
8025 ;;
8026
8027 freebsd1*)
8028 dynamic_linker=no
8029 ;;
8030
8031 freebsd* | dragonfly*)
8032 # DragonFly does not have aout. When/if they implement a new
8033 # versioning mechanism, adjust this.
8034 if test -x /usr/bin/objformat; then
8035 objformat=`/usr/bin/objformat`
8036 else
8037 case $host_os in
8038 freebsd[123]*) objformat=aout ;;
8039 *) objformat=elf ;;
8040 esac
8041 fi
8042 version_type=freebsd-$objformat
8043 case $version_type in
8044 freebsd-elf*)
8045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8046 need_version=no
8047 need_lib_prefix=no
8048 ;;
8049 freebsd-*)
8050 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8051 need_version=yes
8052 ;;
8053 esac
8054 shlibpath_var=LD_LIBRARY_PATH
8055 case $host_os in
8056 freebsd2*)
8057 shlibpath_overrides_runpath=yes
8058 ;;
8059 freebsd3.[01]* | freebsdelf3.[01]*)
8060 shlibpath_overrides_runpath=yes
8061 hardcode_into_libs=yes
8062 ;;
8063 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8064 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8065 shlibpath_overrides_runpath=no
8066 hardcode_into_libs=yes
8067 ;;
8068 *) # from 4.6 on, and DragonFly
8069 shlibpath_overrides_runpath=yes
8070 hardcode_into_libs=yes
8071 ;;
8072 esac
8073 ;;
8074
8075 gnu*)
8076 version_type=linux
8077 need_lib_prefix=no
8078 need_version=no
8079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8080 soname_spec='${libname}${release}${shared_ext}$major'
8081 shlibpath_var=LD_LIBRARY_PATH
8082 hardcode_into_libs=yes
8083 ;;
8084
8085 hpux9* | hpux10* | hpux11*)
8086 # Give a soname corresponding to the major version so that dld.sl refuses to
8087 # link against other versions.
8088 version_type=sunos
8089 need_lib_prefix=no
8090 need_version=no
8091 case $host_cpu in
8092 ia64*)
8093 shrext_cmds='.so'
8094 hardcode_into_libs=yes
8095 dynamic_linker="$host_os dld.so"
8096 shlibpath_var=LD_LIBRARY_PATH
8097 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8099 soname_spec='${libname}${release}${shared_ext}$major'
8100 if test "X$HPUX_IA64_MODE" = X32; then
8101 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8102 else
8103 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8104 fi
8105 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8106 ;;
8107 hppa*64*)
8108 shrext_cmds='.sl'
8109 hardcode_into_libs=yes
8110 dynamic_linker="$host_os dld.sl"
8111 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8112 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8114 soname_spec='${libname}${release}${shared_ext}$major'
8115 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8116 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8117 ;;
8118 *)
8119 shrext_cmds='.sl'
8120 dynamic_linker="$host_os dld.sl"
8121 shlibpath_var=SHLIB_PATH
8122 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8124 soname_spec='${libname}${release}${shared_ext}$major'
8125 ;;
8126 esac
8127 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8128 postinstall_cmds='chmod 555 $lib'
8129 ;;
8130
8131 interix[3-9]*)
8132 version_type=linux
8133 need_lib_prefix=no
8134 need_version=no
8135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8136 soname_spec='${libname}${release}${shared_ext}$major'
8137 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8138 shlibpath_var=LD_LIBRARY_PATH
8139 shlibpath_overrides_runpath=no
8140 hardcode_into_libs=yes
8141 ;;
8142
8143 irix5* | irix6* | nonstopux*)
8144 case $host_os in
8145 nonstopux*) version_type=nonstopux ;;
8146 *)
8147 if test "$lt_cv_prog_gnu_ld" = yes; then
8148 version_type=linux
8149 else
8150 version_type=irix
8151 fi ;;
8152 esac
8153 need_lib_prefix=no
8154 need_version=no
8155 soname_spec='${libname}${release}${shared_ext}$major'
8156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8157 case $host_os in
8158 irix5* | nonstopux*)
8159 libsuff= shlibsuff=
8160 ;;
8161 *)
8162 case $LD in # libtool.m4 will add one of these switches to LD
8163 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8164 libsuff= shlibsuff= libmagic=32-bit;;
8165 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8166 libsuff=32 shlibsuff=N32 libmagic=N32;;
8167 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8168 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8169 *) libsuff= shlibsuff= libmagic=never-match;;
8170 esac
8171 ;;
8172 esac
8173 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8174 shlibpath_overrides_runpath=no
8175 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8176 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8177 hardcode_into_libs=yes
8178 ;;
8179
8180 # No shared lib support for Linux oldld, aout, or coff.
8181 linux*oldld* | linux*aout* | linux*coff*)
8182 dynamic_linker=no
8183 ;;
8184
8185 # This must be Linux ELF.
8186 linux* | k*bsd*-gnu)
8187 version_type=linux
8188 need_lib_prefix=no
8189 need_version=no
8190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8191 soname_spec='${libname}${release}${shared_ext}$major'
8192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8193 shlibpath_var=LD_LIBRARY_PATH
8194 shlibpath_overrides_runpath=no
8195 # Some binutils ld are patched to set DT_RUNPATH
8196 save_LDFLAGS=$LDFLAGS
8197 save_libdir=$libdir
8198 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8199 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8200 cat >conftest.$ac_ext <<_ACEOF
8201 /* confdefs.h. */
8202 _ACEOF
8203 cat confdefs.h >>conftest.$ac_ext
8204 cat >>conftest.$ac_ext <<_ACEOF
8205 /* end confdefs.h. */
8206
8207 int
8208 main ()
8209 {
8210
8211 ;
8212 return 0;
8213 }
8214 _ACEOF
8215 rm -f conftest.$ac_objext conftest$ac_exeext
8216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8217 (eval $ac_link) 2>conftest.er1
8218 ac_status=$?
8219 grep -v '^ *+' conftest.er1 >conftest.err
8220 rm -f conftest.er1
8221 cat conftest.err >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } &&
8224 { ac_try='test -z "$ac_c_werror_flag"
8225 || test ! -s conftest.err'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 (eval $ac_try) 2>&5
8228 ac_status=$?
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; } &&
8231 { ac_try='test -s conftest$ac_exeext'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 (eval $ac_try) 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; }; then
8237 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8238 shlibpath_overrides_runpath=yes
8239 fi
8240
8241 else
8242 echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.$ac_ext >&5
8244
8245 fi
8246 rm -f conftest.err conftest.$ac_objext \
8247 conftest$ac_exeext conftest.$ac_ext
8248 LDFLAGS=$save_LDFLAGS
8249 libdir=$save_libdir
8250
8251 # This implies no fast_install, which is unacceptable.
8252 # Some rework will be needed to allow for fast_install
8253 # before this can be enabled.
8254 hardcode_into_libs=yes
8255
8256 # Append ld.so.conf contents to the search path
8257 if test -f /etc/ld.so.conf; then
8258 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8259 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8260 fi
8261
8262 # We used to test for /lib/ld.so.1 and disable shared libraries on
8263 # powerpc, because MkLinux only supported shared libraries with the
8264 # GNU dynamic linker. Since this was broken with cross compilers,
8265 # most powerpc-linux boxes support dynamic linking these days and
8266 # people can always --disable-shared, the test was removed, and we
8267 # assume the GNU/Linux dynamic linker is in use.
8268 dynamic_linker='GNU/Linux ld.so'
8269 ;;
8270
8271 netbsd*)
8272 version_type=sunos
8273 need_lib_prefix=no
8274 need_version=no
8275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8278 dynamic_linker='NetBSD (a.out) ld.so'
8279 else
8280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8281 soname_spec='${libname}${release}${shared_ext}$major'
8282 dynamic_linker='NetBSD ld.elf_so'
8283 fi
8284 shlibpath_var=LD_LIBRARY_PATH
8285 shlibpath_overrides_runpath=yes
8286 hardcode_into_libs=yes
8287 ;;
8288
8289 newsos6)
8290 version_type=linux
8291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8292 shlibpath_var=LD_LIBRARY_PATH
8293 shlibpath_overrides_runpath=yes
8294 ;;
8295
8296 *nto* | *qnx*)
8297 version_type=qnx
8298 need_lib_prefix=no
8299 need_version=no
8300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8301 soname_spec='${libname}${release}${shared_ext}$major'
8302 shlibpath_var=LD_LIBRARY_PATH
8303 shlibpath_overrides_runpath=no
8304 hardcode_into_libs=yes
8305 dynamic_linker='ldqnx.so'
8306 ;;
8307
8308 openbsd*)
8309 version_type=sunos
8310 sys_lib_dlsearch_path_spec="/usr/lib"
8311 need_lib_prefix=no
8312 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8313 case $host_os in
8314 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8315 *) need_version=no ;;
8316 esac
8317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8319 shlibpath_var=LD_LIBRARY_PATH
8320 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8321 case $host_os in
8322 openbsd2.[89] | openbsd2.[89].*)
8323 shlibpath_overrides_runpath=no
8324 ;;
8325 *)
8326 shlibpath_overrides_runpath=yes
8327 ;;
8328 esac
8329 else
8330 shlibpath_overrides_runpath=yes
8331 fi
8332 ;;
8333
8334 os2*)
8335 libname_spec='$name'
8336 shrext_cmds=".dll"
8337 need_lib_prefix=no
8338 library_names_spec='$libname${shared_ext} $libname.a'
8339 dynamic_linker='OS/2 ld.exe'
8340 shlibpath_var=LIBPATH
8341 ;;
8342
8343 osf3* | osf4* | osf5*)
8344 version_type=osf
8345 need_lib_prefix=no
8346 need_version=no
8347 soname_spec='${libname}${release}${shared_ext}$major'
8348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8349 shlibpath_var=LD_LIBRARY_PATH
8350 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8351 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8352 ;;
8353
8354 rdos*)
8355 dynamic_linker=no
8356 ;;
8357
8358 solaris*)
8359 version_type=linux
8360 need_lib_prefix=no
8361 need_version=no
8362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8363 soname_spec='${libname}${release}${shared_ext}$major'
8364 shlibpath_var=LD_LIBRARY_PATH
8365 shlibpath_overrides_runpath=yes
8366 hardcode_into_libs=yes
8367 # ldd complains unless libraries are executable
8368 postinstall_cmds='chmod +x $lib'
8369 ;;
8370
8371 sunos4*)
8372 version_type=sunos
8373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8374 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8375 shlibpath_var=LD_LIBRARY_PATH
8376 shlibpath_overrides_runpath=yes
8377 if test "$with_gnu_ld" = yes; then
8378 need_lib_prefix=no
8379 fi
8380 need_version=yes
8381 ;;
8382
8383 sysv4 | sysv4.3*)
8384 version_type=linux
8385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8386 soname_spec='${libname}${release}${shared_ext}$major'
8387 shlibpath_var=LD_LIBRARY_PATH
8388 case $host_vendor in
8389 sni)
8390 shlibpath_overrides_runpath=no
8391 need_lib_prefix=no
8392 runpath_var=LD_RUN_PATH
8393 ;;
8394 siemens)
8395 need_lib_prefix=no
8396 ;;
8397 motorola)
8398 need_lib_prefix=no
8399 need_version=no
8400 shlibpath_overrides_runpath=no
8401 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8402 ;;
8403 esac
8404 ;;
8405
8406 sysv4*MP*)
8407 if test -d /usr/nec ;then
8408 version_type=linux
8409 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8410 soname_spec='$libname${shared_ext}.$major'
8411 shlibpath_var=LD_LIBRARY_PATH
8412 fi
8413 ;;
8414
8415 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8416 version_type=freebsd-elf
8417 need_lib_prefix=no
8418 need_version=no
8419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8420 soname_spec='${libname}${release}${shared_ext}$major'
8421 shlibpath_var=LD_LIBRARY_PATH
8422 shlibpath_overrides_runpath=yes
8423 hardcode_into_libs=yes
8424 if test "$with_gnu_ld" = yes; then
8425 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8426 else
8427 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8428 case $host_os in
8429 sco3.2v5*)
8430 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8431 ;;
8432 esac
8433 fi
8434 sys_lib_dlsearch_path_spec='/usr/lib'
8435 ;;
8436
8437 tpf*)
8438 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8439 version_type=linux
8440 need_lib_prefix=no
8441 need_version=no
8442 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8443 shlibpath_var=LD_LIBRARY_PATH
8444 shlibpath_overrides_runpath=no
8445 hardcode_into_libs=yes
8446 ;;
8447
8448 uts4*)
8449 version_type=linux
8450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8451 soname_spec='${libname}${release}${shared_ext}$major'
8452 shlibpath_var=LD_LIBRARY_PATH
8453 ;;
8454
8455 *)
8456 dynamic_linker=no
8457 ;;
8458 esac
8459 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8460 echo "${ECHO_T}$dynamic_linker" >&6
8461 test "$dynamic_linker" = no && can_build_shared=no
8462
8463 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8464 if test "$GCC" = yes; then
8465 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8466 fi
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8555 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8556 hardcode_action=
8557 if test -n "$hardcode_libdir_flag_spec" ||
8558 test -n "$runpath_var" ||
8559 test "X$hardcode_automatic" = "Xyes" ; then
8560
8561 # We can hardcode non-existent directories.
8562 if test "$hardcode_direct" != no &&
8563 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8564 # have to relink, otherwise we might link with an installed library
8565 # when we should be linking with a yet-to-be-installed one
8566 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8567 test "$hardcode_minus_L" != no; then
8568 # Linking always hardcodes the temporary library directory.
8569 hardcode_action=relink
8570 else
8571 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8572 hardcode_action=immediate
8573 fi
8574 else
8575 # We cannot hardcode anything, or else we can only hardcode existing
8576 # directories.
8577 hardcode_action=unsupported
8578 fi
8579 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8580 echo "${ECHO_T}$hardcode_action" >&6
8581
8582 if test "$hardcode_action" = relink ||
8583 test "$inherit_rpath" = yes; then
8584 # Fast installation is not supported
8585 enable_fast_install=no
8586 elif test "$shlibpath_overrides_runpath" = yes ||
8587 test "$enable_shared" = no; then
8588 # Fast installation is not necessary
8589 enable_fast_install=needless
8590 fi
8591
8592
8593
8594
8595
8596
8597 if test "x$enable_dlopen" != xyes; then
8598 enable_dlopen=unknown
8599 enable_dlopen_self=unknown
8600 enable_dlopen_self_static=unknown
8601 else
8602 lt_cv_dlopen=no
8603 lt_cv_dlopen_libs=
8604
8605 case $host_os in
8606 beos*)
8607 lt_cv_dlopen="load_add_on"
8608 lt_cv_dlopen_libs=
8609 lt_cv_dlopen_self=yes
8610 ;;
8611
8612 mingw* | pw32*)
8613 lt_cv_dlopen="LoadLibrary"
8614 lt_cv_dlopen_libs=
8615 ;;
8616
8617 cygwin*)
8618 lt_cv_dlopen="dlopen"
8619 lt_cv_dlopen_libs=
8620 ;;
8621
8622 darwin*)
8623 # if libdl is installed we need to link against it
8624 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8625 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8626 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
8628 else
8629 ac_check_lib_save_LIBS=$LIBS
8630 LIBS="-ldl $LIBS"
8631 cat >conftest.$ac_ext <<_ACEOF
8632 /* confdefs.h. */
8633 _ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h. */
8637
8638 /* Override any gcc2 internal prototype to avoid an error. */
8639 #ifdef __cplusplus
8640 extern "C"
8641 #endif
8642 /* We use char because int might match the return type of a gcc2
8643 builtin and then its argument prototype would still apply. */
8644 char dlopen ();
8645 int
8646 main ()
8647 {
8648 dlopen ();
8649 ;
8650 return 0;
8651 }
8652 _ACEOF
8653 rm -f conftest.$ac_objext conftest$ac_exeext
8654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8655 (eval $ac_link) 2>conftest.er1
8656 ac_status=$?
8657 grep -v '^ *+' conftest.er1 >conftest.err
8658 rm -f conftest.er1
8659 cat conftest.err >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); } &&
8662 { ac_try='test -z "$ac_c_werror_flag"
8663 || test ! -s conftest.err'
8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 (eval $ac_try) 2>&5
8666 ac_status=$?
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; } &&
8669 { ac_try='test -s conftest$ac_exeext'
8670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671 (eval $ac_try) 2>&5
8672 ac_status=$?
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; }; then
8675 ac_cv_lib_dl_dlopen=yes
8676 else
8677 echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8679
8680 ac_cv_lib_dl_dlopen=no
8681 fi
8682 rm -f conftest.err conftest.$ac_objext \
8683 conftest$ac_exeext conftest.$ac_ext
8684 LIBS=$ac_check_lib_save_LIBS
8685 fi
8686 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8687 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8688 if test $ac_cv_lib_dl_dlopen = yes; then
8689 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8690 else
8691
8692 lt_cv_dlopen="dyld"
8693 lt_cv_dlopen_libs=
8694 lt_cv_dlopen_self=yes
8695
8696 fi
8697
8698 ;;
8699
8700 *)
8701 echo "$as_me:$LINENO: checking for shl_load" >&5
8702 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8703 if test "${ac_cv_func_shl_load+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 else
8706 cat >conftest.$ac_ext <<_ACEOF
8707 /* confdefs.h. */
8708 _ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8714 #define shl_load innocuous_shl_load
8715
8716 /* System header to define __stub macros and hopefully few prototypes,
8717 which can conflict with char shl_load (); below.
8718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8719 <limits.h> exists even on freestanding compilers. */
8720
8721 #ifdef __STDC__
8722 # include <limits.h>
8723 #else
8724 # include <assert.h>
8725 #endif
8726
8727 #undef shl_load
8728
8729 /* Override any gcc2 internal prototype to avoid an error. */
8730 #ifdef __cplusplus
8731 extern "C"
8732 {
8733 #endif
8734 /* We use char because int might match the return type of a gcc2
8735 builtin and then its argument prototype would still apply. */
8736 char shl_load ();
8737 /* The GNU C library defines this for functions which it implements
8738 to always fail with ENOSYS. Some functions are actually named
8739 something starting with __ and the normal name is an alias. */
8740 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8741 choke me
8742 #else
8743 char (*f) () = shl_load;
8744 #endif
8745 #ifdef __cplusplus
8746 }
8747 #endif
8748
8749 int
8750 main ()
8751 {
8752 return f != shl_load;
8753 ;
8754 return 0;
8755 }
8756 _ACEOF
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759 (eval $ac_link) 2>conftest.er1
8760 ac_status=$?
8761 grep -v '^ *+' conftest.er1 >conftest.err
8762 rm -f conftest.er1
8763 cat conftest.err >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } &&
8766 { ac_try='test -z "$ac_c_werror_flag"
8767 || test ! -s conftest.err'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769 (eval $ac_try) 2>&5
8770 ac_status=$?
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; } &&
8773 { ac_try='test -s conftest$ac_exeext'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775 (eval $ac_try) 2>&5
8776 ac_status=$?
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; }; then
8779 ac_cv_func_shl_load=yes
8780 else
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8783
8784 ac_cv_func_shl_load=no
8785 fi
8786 rm -f conftest.err conftest.$ac_objext \
8787 conftest$ac_exeext conftest.$ac_ext
8788 fi
8789 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8790 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8791 if test $ac_cv_func_shl_load = yes; then
8792 lt_cv_dlopen="shl_load"
8793 else
8794 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8795 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8796 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 else
8799 ac_check_lib_save_LIBS=$LIBS
8800 LIBS="-ldld $LIBS"
8801 cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h. */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8807
8808 /* Override any gcc2 internal prototype to avoid an error. */
8809 #ifdef __cplusplus
8810 extern "C"
8811 #endif
8812 /* We use char because int might match the return type of a gcc2
8813 builtin and then its argument prototype would still apply. */
8814 char shl_load ();
8815 int
8816 main ()
8817 {
8818 shl_load ();
8819 ;
8820 return 0;
8821 }
8822 _ACEOF
8823 rm -f conftest.$ac_objext conftest$ac_exeext
8824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8825 (eval $ac_link) 2>conftest.er1
8826 ac_status=$?
8827 grep -v '^ *+' conftest.er1 >conftest.err
8828 rm -f conftest.er1
8829 cat conftest.err >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } &&
8832 { ac_try='test -z "$ac_c_werror_flag"
8833 || test ! -s conftest.err'
8834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 (eval $ac_try) 2>&5
8836 ac_status=$?
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; } &&
8839 { ac_try='test -s conftest$ac_exeext'
8840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841 (eval $ac_try) 2>&5
8842 ac_status=$?
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; }; then
8845 ac_cv_lib_dld_shl_load=yes
8846 else
8847 echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8849
8850 ac_cv_lib_dld_shl_load=no
8851 fi
8852 rm -f conftest.err conftest.$ac_objext \
8853 conftest$ac_exeext conftest.$ac_ext
8854 LIBS=$ac_check_lib_save_LIBS
8855 fi
8856 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8857 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8858 if test $ac_cv_lib_dld_shl_load = yes; then
8859 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8860 else
8861 echo "$as_me:$LINENO: checking for dlopen" >&5
8862 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8863 if test "${ac_cv_func_dlopen+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 else
8866 cat >conftest.$ac_ext <<_ACEOF
8867 /* confdefs.h. */
8868 _ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h. */
8872 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8874 #define dlopen innocuous_dlopen
8875
8876 /* System header to define __stub macros and hopefully few prototypes,
8877 which can conflict with char dlopen (); below.
8878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8879 <limits.h> exists even on freestanding compilers. */
8880
8881 #ifdef __STDC__
8882 # include <limits.h>
8883 #else
8884 # include <assert.h>
8885 #endif
8886
8887 #undef dlopen
8888
8889 /* Override any gcc2 internal prototype to avoid an error. */
8890 #ifdef __cplusplus
8891 extern "C"
8892 {
8893 #endif
8894 /* We use char because int might match the return type of a gcc2
8895 builtin and then its argument prototype would still apply. */
8896 char dlopen ();
8897 /* The GNU C library defines this for functions which it implements
8898 to always fail with ENOSYS. Some functions are actually named
8899 something starting with __ and the normal name is an alias. */
8900 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8901 choke me
8902 #else
8903 char (*f) () = dlopen;
8904 #endif
8905 #ifdef __cplusplus
8906 }
8907 #endif
8908
8909 int
8910 main ()
8911 {
8912 return f != dlopen;
8913 ;
8914 return 0;
8915 }
8916 _ACEOF
8917 rm -f conftest.$ac_objext conftest$ac_exeext
8918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8919 (eval $ac_link) 2>conftest.er1
8920 ac_status=$?
8921 grep -v '^ *+' conftest.er1 >conftest.err
8922 rm -f conftest.er1
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } &&
8926 { ac_try='test -z "$ac_c_werror_flag"
8927 || test ! -s conftest.err'
8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929 (eval $ac_try) 2>&5
8930 ac_status=$?
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }; } &&
8933 { ac_try='test -s conftest$ac_exeext'
8934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935 (eval $ac_try) 2>&5
8936 ac_status=$?
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); }; }; then
8939 ac_cv_func_dlopen=yes
8940 else
8941 echo "$as_me: failed program was:" >&5
8942 sed 's/^/| /' conftest.$ac_ext >&5
8943
8944 ac_cv_func_dlopen=no
8945 fi
8946 rm -f conftest.err conftest.$ac_objext \
8947 conftest$ac_exeext conftest.$ac_ext
8948 fi
8949 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8950 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8951 if test $ac_cv_func_dlopen = yes; then
8952 lt_cv_dlopen="dlopen"
8953 else
8954 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8955 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8956 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8958 else
8959 ac_check_lib_save_LIBS=$LIBS
8960 LIBS="-ldl $LIBS"
8961 cat >conftest.$ac_ext <<_ACEOF
8962 /* confdefs.h. */
8963 _ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h. */
8967
8968 /* Override any gcc2 internal prototype to avoid an error. */
8969 #ifdef __cplusplus
8970 extern "C"
8971 #endif
8972 /* We use char because int might match the return type of a gcc2
8973 builtin and then its argument prototype would still apply. */
8974 char dlopen ();
8975 int
8976 main ()
8977 {
8978 dlopen ();
8979 ;
8980 return 0;
8981 }
8982 _ACEOF
8983 rm -f conftest.$ac_objext conftest$ac_exeext
8984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8985 (eval $ac_link) 2>conftest.er1
8986 ac_status=$?
8987 grep -v '^ *+' conftest.er1 >conftest.err
8988 rm -f conftest.er1
8989 cat conftest.err >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); } &&
8992 { ac_try='test -z "$ac_c_werror_flag"
8993 || test ! -s conftest.err'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 (eval $ac_try) 2>&5
8996 ac_status=$?
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; } &&
8999 { ac_try='test -s conftest$ac_exeext'
9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001 (eval $ac_try) 2>&5
9002 ac_status=$?
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); }; }; then
9005 ac_cv_lib_dl_dlopen=yes
9006 else
9007 echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9009
9010 ac_cv_lib_dl_dlopen=no
9011 fi
9012 rm -f conftest.err conftest.$ac_objext \
9013 conftest$ac_exeext conftest.$ac_ext
9014 LIBS=$ac_check_lib_save_LIBS
9015 fi
9016 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9017 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9018 if test $ac_cv_lib_dl_dlopen = yes; then
9019 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9020 else
9021 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9022 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9023 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026 ac_check_lib_save_LIBS=$LIBS
9027 LIBS="-lsvld $LIBS"
9028 cat >conftest.$ac_ext <<_ACEOF
9029 /* confdefs.h. */
9030 _ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h. */
9034
9035 /* Override any gcc2 internal prototype to avoid an error. */
9036 #ifdef __cplusplus
9037 extern "C"
9038 #endif
9039 /* We use char because int might match the return type of a gcc2
9040 builtin and then its argument prototype would still apply. */
9041 char dlopen ();
9042 int
9043 main ()
9044 {
9045 dlopen ();
9046 ;
9047 return 0;
9048 }
9049 _ACEOF
9050 rm -f conftest.$ac_objext conftest$ac_exeext
9051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9052 (eval $ac_link) 2>conftest.er1
9053 ac_status=$?
9054 grep -v '^ *+' conftest.er1 >conftest.err
9055 rm -f conftest.er1
9056 cat conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } &&
9059 { ac_try='test -z "$ac_c_werror_flag"
9060 || test ! -s conftest.err'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 (eval $ac_try) 2>&5
9063 ac_status=$?
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; } &&
9066 { ac_try='test -s conftest$ac_exeext'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068 (eval $ac_try) 2>&5
9069 ac_status=$?
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 ac_cv_lib_svld_dlopen=yes
9073 else
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9076
9077 ac_cv_lib_svld_dlopen=no
9078 fi
9079 rm -f conftest.err conftest.$ac_objext \
9080 conftest$ac_exeext conftest.$ac_ext
9081 LIBS=$ac_check_lib_save_LIBS
9082 fi
9083 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9084 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9085 if test $ac_cv_lib_svld_dlopen = yes; then
9086 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9087 else
9088 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9089 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9090 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 else
9093 ac_check_lib_save_LIBS=$LIBS
9094 LIBS="-ldld $LIBS"
9095 cat >conftest.$ac_ext <<_ACEOF
9096 /* confdefs.h. */
9097 _ACEOF
9098 cat confdefs.h >>conftest.$ac_ext
9099 cat >>conftest.$ac_ext <<_ACEOF
9100 /* end confdefs.h. */
9101
9102 /* Override any gcc2 internal prototype to avoid an error. */
9103 #ifdef __cplusplus
9104 extern "C"
9105 #endif
9106 /* We use char because int might match the return type of a gcc2
9107 builtin and then its argument prototype would still apply. */
9108 char dld_link ();
9109 int
9110 main ()
9111 {
9112 dld_link ();
9113 ;
9114 return 0;
9115 }
9116 _ACEOF
9117 rm -f conftest.$ac_objext conftest$ac_exeext
9118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9119 (eval $ac_link) 2>conftest.er1
9120 ac_status=$?
9121 grep -v '^ *+' conftest.er1 >conftest.err
9122 rm -f conftest.er1
9123 cat conftest.err >&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } &&
9126 { ac_try='test -z "$ac_c_werror_flag"
9127 || test ! -s conftest.err'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 (eval $ac_try) 2>&5
9130 ac_status=$?
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; } &&
9133 { ac_try='test -s conftest$ac_exeext'
9134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 (eval $ac_try) 2>&5
9136 ac_status=$?
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; }; then
9139 ac_cv_lib_dld_dld_link=yes
9140 else
9141 echo "$as_me: failed program was:" >&5
9142 sed 's/^/| /' conftest.$ac_ext >&5
9143
9144 ac_cv_lib_dld_dld_link=no
9145 fi
9146 rm -f conftest.err conftest.$ac_objext \
9147 conftest$ac_exeext conftest.$ac_ext
9148 LIBS=$ac_check_lib_save_LIBS
9149 fi
9150 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9151 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9152 if test $ac_cv_lib_dld_dld_link = yes; then
9153 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9154 fi
9155
9156
9157 fi
9158
9159
9160 fi
9161
9162
9163 fi
9164
9165
9166 fi
9167
9168
9169 fi
9170
9171 ;;
9172 esac
9173
9174 if test "x$lt_cv_dlopen" != xno; then
9175 enable_dlopen=yes
9176 else
9177 enable_dlopen=no
9178 fi
9179
9180 case $lt_cv_dlopen in
9181 dlopen)
9182 save_CPPFLAGS="$CPPFLAGS"
9183 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9184
9185 save_LDFLAGS="$LDFLAGS"
9186 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9187
9188 save_LIBS="$LIBS"
9189 LIBS="$lt_cv_dlopen_libs $LIBS"
9190
9191 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9192 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9193 if test "${lt_cv_dlopen_self+set}" = set; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9195 else
9196 if test "$cross_compiling" = yes; then :
9197 lt_cv_dlopen_self=cross
9198 else
9199 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9200 lt_status=$lt_dlunknown
9201 cat > conftest.$ac_ext <<_LT_EOF
9202 #line 9202 "configure"
9203 #include "confdefs.h"
9204
9205 #if HAVE_DLFCN_H
9206 #include <dlfcn.h>
9207 #endif
9208
9209 #include <stdio.h>
9210
9211 #ifdef RTLD_GLOBAL
9212 # define LT_DLGLOBAL RTLD_GLOBAL
9213 #else
9214 # ifdef DL_GLOBAL
9215 # define LT_DLGLOBAL DL_GLOBAL
9216 # else
9217 # define LT_DLGLOBAL 0
9218 # endif
9219 #endif
9220
9221 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9222 find out it does not work in some platform. */
9223 #ifndef LT_DLLAZY_OR_NOW
9224 # ifdef RTLD_LAZY
9225 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9226 # else
9227 # ifdef DL_LAZY
9228 # define LT_DLLAZY_OR_NOW DL_LAZY
9229 # else
9230 # ifdef RTLD_NOW
9231 # define LT_DLLAZY_OR_NOW RTLD_NOW
9232 # else
9233 # ifdef DL_NOW
9234 # define LT_DLLAZY_OR_NOW DL_NOW
9235 # else
9236 # define LT_DLLAZY_OR_NOW 0
9237 # endif
9238 # endif
9239 # endif
9240 # endif
9241 #endif
9242
9243 #ifdef __cplusplus
9244 extern "C" void exit (int);
9245 #endif
9246
9247 void fnord() { int i=42;}
9248 int main ()
9249 {
9250 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9251 int status = $lt_dlunknown;
9252
9253 if (self)
9254 {
9255 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9256 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9257 /* dlclose (self); */
9258 }
9259 else
9260 puts (dlerror ());
9261
9262 exit (status);
9263 }
9264 _LT_EOF
9265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9266 (eval $ac_link) 2>&5
9267 ac_status=$?
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9270 (./conftest; exit; ) >&5 2>/dev/null
9271 lt_status=$?
9272 case x$lt_status in
9273 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9274 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9275 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9276 esac
9277 else :
9278 # compilation failed
9279 lt_cv_dlopen_self=no
9280 fi
9281 fi
9282 rm -fr conftest*
9283
9284
9285 fi
9286 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9287 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9288
9289 if test "x$lt_cv_dlopen_self" = xyes; then
9290 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9291 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9292 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9293 if test "${lt_cv_dlopen_self_static+set}" = set; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 else
9296 if test "$cross_compiling" = yes; then :
9297 lt_cv_dlopen_self_static=cross
9298 else
9299 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9300 lt_status=$lt_dlunknown
9301 cat > conftest.$ac_ext <<_LT_EOF
9302 #line 9302 "configure"
9303 #include "confdefs.h"
9304
9305 #if HAVE_DLFCN_H
9306 #include <dlfcn.h>
9307 #endif
9308
9309 #include <stdio.h>
9310
9311 #ifdef RTLD_GLOBAL
9312 # define LT_DLGLOBAL RTLD_GLOBAL
9313 #else
9314 # ifdef DL_GLOBAL
9315 # define LT_DLGLOBAL DL_GLOBAL
9316 # else
9317 # define LT_DLGLOBAL 0
9318 # endif
9319 #endif
9320
9321 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9322 find out it does not work in some platform. */
9323 #ifndef LT_DLLAZY_OR_NOW
9324 # ifdef RTLD_LAZY
9325 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9326 # else
9327 # ifdef DL_LAZY
9328 # define LT_DLLAZY_OR_NOW DL_LAZY
9329 # else
9330 # ifdef RTLD_NOW
9331 # define LT_DLLAZY_OR_NOW RTLD_NOW
9332 # else
9333 # ifdef DL_NOW
9334 # define LT_DLLAZY_OR_NOW DL_NOW
9335 # else
9336 # define LT_DLLAZY_OR_NOW 0
9337 # endif
9338 # endif
9339 # endif
9340 # endif
9341 #endif
9342
9343 #ifdef __cplusplus
9344 extern "C" void exit (int);
9345 #endif
9346
9347 void fnord() { int i=42;}
9348 int main ()
9349 {
9350 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9351 int status = $lt_dlunknown;
9352
9353 if (self)
9354 {
9355 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9356 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9357 /* dlclose (self); */
9358 }
9359 else
9360 puts (dlerror ());
9361
9362 exit (status);
9363 }
9364 _LT_EOF
9365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9366 (eval $ac_link) 2>&5
9367 ac_status=$?
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9370 (./conftest; exit; ) >&5 2>/dev/null
9371 lt_status=$?
9372 case x$lt_status in
9373 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9374 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9375 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9376 esac
9377 else :
9378 # compilation failed
9379 lt_cv_dlopen_self_static=no
9380 fi
9381 fi
9382 rm -fr conftest*
9383
9384
9385 fi
9386 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9387 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9388 fi
9389
9390 CPPFLAGS="$save_CPPFLAGS"
9391 LDFLAGS="$save_LDFLAGS"
9392 LIBS="$save_LIBS"
9393 ;;
9394 esac
9395
9396 case $lt_cv_dlopen_self in
9397 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9398 *) enable_dlopen_self=unknown ;;
9399 esac
9400
9401 case $lt_cv_dlopen_self_static in
9402 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9403 *) enable_dlopen_self_static=unknown ;;
9404 esac
9405 fi
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423 striplib=
9424 old_striplib=
9425 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9426 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9427 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9428 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9429 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9430 echo "$as_me:$LINENO: result: yes" >&5
9431 echo "${ECHO_T}yes" >&6
9432 else
9433 # FIXME - insert some real tests, host_os isn't really good enough
9434 case $host_os in
9435 darwin*)
9436 if test -n "$STRIP" ; then
9437 striplib="$STRIP -x"
9438 old_striplib="$STRIP -S"
9439 echo "$as_me:$LINENO: result: yes" >&5
9440 echo "${ECHO_T}yes" >&6
9441 else
9442 echo "$as_me:$LINENO: result: no" >&5
9443 echo "${ECHO_T}no" >&6
9444 fi
9445 ;;
9446 *)
9447 echo "$as_me:$LINENO: result: no" >&5
9448 echo "${ECHO_T}no" >&6
9449 ;;
9450 esac
9451 fi
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464 # Report which library types will actually be built
9465 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9466 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9467 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9468 echo "${ECHO_T}$can_build_shared" >&6
9469
9470 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9471 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9472 test "$can_build_shared" = "no" && enable_shared=no
9473
9474 # On AIX, shared libraries and static libraries use the same namespace, and
9475 # are all built from PIC.
9476 case $host_os in
9477 aix3*)
9478 test "$enable_shared" = yes && enable_static=no
9479 if test -n "$RANLIB"; then
9480 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9481 postinstall_cmds='$RANLIB $lib'
9482 fi
9483 ;;
9484
9485 aix4* | aix5*)
9486 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9487 test "$enable_shared" = yes && enable_static=no
9488 fi
9489 ;;
9490 esac
9491 echo "$as_me:$LINENO: result: $enable_shared" >&5
9492 echo "${ECHO_T}$enable_shared" >&6
9493
9494 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9495 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9496 # Make sure either enable_shared or enable_static is yes.
9497 test "$enable_shared" = yes || enable_static=yes
9498 echo "$as_me:$LINENO: result: $enable_static" >&5
9499 echo "${ECHO_T}$enable_static" >&6
9500
9501
9502
9503
9504 fi
9505 ac_ext=c
9506 ac_cpp='$CPP $CPPFLAGS'
9507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9510
9511 CC="$lt_save_CC"
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525 ac_config_commands="$ac_config_commands libtool"
9526
9527
9528
9529
9530 # Only expand once:
9531
9532
9533
9534
9535 # Check whether --with-lib-path or --without-lib-path was given.
9536 if test "${with_lib_path+set}" = set; then
9537 withval="$with_lib_path"
9538 LIB_PATH=$withval
9539 fi;
9540 # Check whether --enable-targets or --disable-targets was given.
9541 if test "${enable_targets+set}" = set; then
9542 enableval="$enable_targets"
9543 case "${enableval}" in
9544 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
9545 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
9546 { (exit 1); exit 1; }; }
9547 ;;
9548 no) enable_targets= ;;
9549 *) enable_targets=$enableval ;;
9550 esac
9551 fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
9552 if test "${enable_64_bit_bfd+set}" = set; then
9553 enableval="$enable_64_bit_bfd"
9554 case "${enableval}" in
9555 yes) want64=true ;;
9556 no) want64=false ;;
9557 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
9558 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
9559 { (exit 1); exit 1; }; } ;;
9560 esac
9561 else
9562 want64=false
9563 fi;
9564
9565 # Check whether --with-sysroot or --without-sysroot was given.
9566 if test "${with_sysroot+set}" = set; then
9567 withval="$with_sysroot"
9568
9569 case ${with_sysroot} in
9570 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
9571 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
9572 esac
9573
9574 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
9575 use_sysroot=yes
9576
9577 if test "x$prefix" = xNONE; then
9578 test_prefix=/usr/local
9579 else
9580 test_prefix=$prefix
9581 fi
9582 if test "x$exec_prefix" = xNONE; then
9583 test_exec_prefix=$test_prefix
9584 else
9585 test_exec_prefix=$exec_prefix
9586 fi
9587 case ${TARGET_SYSTEM_ROOT} in
9588 "${test_prefix}"|"${test_prefix}/"*|\
9589 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
9590 '${prefix}'|'${prefix}/'*|\
9591 '${exec_prefix}'|'${exec_prefix}/'*)
9592 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
9593 TARGET_SYSTEM_ROOT_DEFINE="$t"
9594 ;;
9595 esac
9596
9597 else
9598
9599 use_sysroot=no
9600 TARGET_SYSTEM_ROOT=
9601 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
9602
9603 fi;
9604
9605
9606
9607
9608
9609 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9610
9611 # Check whether --enable-werror or --disable-werror was given.
9612 if test "${enable_werror+set}" = set; then
9613 enableval="$enable_werror"
9614 case "${enableval}" in
9615 yes | y) ERROR_ON_WARNING="yes" ;;
9616 no | n) ERROR_ON_WARNING="no" ;;
9617 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
9618 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
9619 { (exit 1); exit 1; }; } ;;
9620 esac
9621 fi;
9622
9623 # Enable -Werror by default when using gcc
9624 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
9625 ERROR_ON_WARNING=yes
9626 fi
9627
9628 NO_WERROR=
9629 if test "${ERROR_ON_WARNING}" = yes ; then
9630 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9631 NO_WERROR="-Wno-error"
9632 fi
9633
9634 if test "${GCC}" = yes ; then
9635 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
9636 fi
9637
9638 # Check whether --enable-build-warnings or --disable-build-warnings was given.
9639 if test "${enable_build_warnings+set}" = set; then
9640 enableval="$enable_build_warnings"
9641 case "${enableval}" in
9642 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
9643 no) if test "${GCC}" = yes ; then
9644 WARN_CFLAGS="-w"
9645 fi;;
9646 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9647 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
9648 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9649 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9650 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9651 esac
9652 fi;
9653
9654 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
9655 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
9656 fi
9657
9658
9659
9660
9661
9662 ac_config_headers="$ac_config_headers config.h:config.in"
9663
9664
9665 if test -z "$target" ; then
9666 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
9667 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
9668 { (exit 1); exit 1; }; }
9669 fi
9670 if test -z "$host" ; then
9671 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
9672 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
9673 { (exit 1); exit 1; }; }
9674 fi
9675
9676 # host-specific stuff:
9677
9678 ac_ext=c
9679 ac_cpp='$CPP $CPPFLAGS'
9680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9683 if test -n "$ac_tool_prefix"; then
9684 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9685 set dummy ${ac_tool_prefix}gcc; ac_word=$2
9686 echo "$as_me:$LINENO: checking for $ac_word" >&5
9687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9688 if test "${ac_cv_prog_CC+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9690 else
9691 if test -n "$CC"; then
9692 ac_cv_prog_CC="$CC" # Let the user override the test.
9693 else
9694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695 for as_dir in $PATH
9696 do
9697 IFS=$as_save_IFS
9698 test -z "$as_dir" && as_dir=.
9699 for ac_exec_ext in '' $ac_executable_extensions; do
9700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9701 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9703 break 2
9704 fi
9705 done
9706 done
9707
9708 fi
9709 fi
9710 CC=$ac_cv_prog_CC
9711 if test -n "$CC"; then
9712 echo "$as_me:$LINENO: result: $CC" >&5
9713 echo "${ECHO_T}$CC" >&6
9714 else
9715 echo "$as_me:$LINENO: result: no" >&5
9716 echo "${ECHO_T}no" >&6
9717 fi
9718
9719 fi
9720 if test -z "$ac_cv_prog_CC"; then
9721 ac_ct_CC=$CC
9722 # Extract the first word of "gcc", so it can be a program name with args.
9723 set dummy gcc; ac_word=$2
9724 echo "$as_me:$LINENO: checking for $ac_word" >&5
9725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9727 echo $ECHO_N "(cached) $ECHO_C" >&6
9728 else
9729 if test -n "$ac_ct_CC"; then
9730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9731 else
9732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9733 for as_dir in $PATH
9734 do
9735 IFS=$as_save_IFS
9736 test -z "$as_dir" && as_dir=.
9737 for ac_exec_ext in '' $ac_executable_extensions; do
9738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9739 ac_cv_prog_ac_ct_CC="gcc"
9740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9741 break 2
9742 fi
9743 done
9744 done
9745
9746 fi
9747 fi
9748 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9749 if test -n "$ac_ct_CC"; then
9750 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9751 echo "${ECHO_T}$ac_ct_CC" >&6
9752 else
9753 echo "$as_me:$LINENO: result: no" >&5
9754 echo "${ECHO_T}no" >&6
9755 fi
9756
9757 CC=$ac_ct_CC
9758 else
9759 CC="$ac_cv_prog_CC"
9760 fi
9761
9762 if test -z "$CC"; then
9763 if test -n "$ac_tool_prefix"; then
9764 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9765 set dummy ${ac_tool_prefix}cc; ac_word=$2
9766 echo "$as_me:$LINENO: checking for $ac_word" >&5
9767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9768 if test "${ac_cv_prog_CC+set}" = set; then
9769 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 else
9771 if test -n "$CC"; then
9772 ac_cv_prog_CC="$CC" # Let the user override the test.
9773 else
9774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9775 for as_dir in $PATH
9776 do
9777 IFS=$as_save_IFS
9778 test -z "$as_dir" && as_dir=.
9779 for ac_exec_ext in '' $ac_executable_extensions; do
9780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9781 ac_cv_prog_CC="${ac_tool_prefix}cc"
9782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9783 break 2
9784 fi
9785 done
9786 done
9787
9788 fi
9789 fi
9790 CC=$ac_cv_prog_CC
9791 if test -n "$CC"; then
9792 echo "$as_me:$LINENO: result: $CC" >&5
9793 echo "${ECHO_T}$CC" >&6
9794 else
9795 echo "$as_me:$LINENO: result: no" >&5
9796 echo "${ECHO_T}no" >&6
9797 fi
9798
9799 fi
9800 if test -z "$ac_cv_prog_CC"; then
9801 ac_ct_CC=$CC
9802 # Extract the first word of "cc", so it can be a program name with args.
9803 set dummy cc; ac_word=$2
9804 echo "$as_me:$LINENO: checking for $ac_word" >&5
9805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9806 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
9808 else
9809 if test -n "$ac_ct_CC"; then
9810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9811 else
9812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9813 for as_dir in $PATH
9814 do
9815 IFS=$as_save_IFS
9816 test -z "$as_dir" && as_dir=.
9817 for ac_exec_ext in '' $ac_executable_extensions; do
9818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9819 ac_cv_prog_ac_ct_CC="cc"
9820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9821 break 2
9822 fi
9823 done
9824 done
9825
9826 fi
9827 fi
9828 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9829 if test -n "$ac_ct_CC"; then
9830 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9831 echo "${ECHO_T}$ac_ct_CC" >&6
9832 else
9833 echo "$as_me:$LINENO: result: no" >&5
9834 echo "${ECHO_T}no" >&6
9835 fi
9836
9837 CC=$ac_ct_CC
9838 else
9839 CC="$ac_cv_prog_CC"
9840 fi
9841
9842 fi
9843 if test -z "$CC"; then
9844 # Extract the first word of "cc", so it can be a program name with args.
9845 set dummy cc; ac_word=$2
9846 echo "$as_me:$LINENO: checking for $ac_word" >&5
9847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9848 if test "${ac_cv_prog_CC+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9850 else
9851 if test -n "$CC"; then
9852 ac_cv_prog_CC="$CC" # Let the user override the test.
9853 else
9854 ac_prog_rejected=no
9855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856 for as_dir in $PATH
9857 do
9858 IFS=$as_save_IFS
9859 test -z "$as_dir" && as_dir=.
9860 for ac_exec_ext in '' $ac_executable_extensions; do
9861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9862 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9863 ac_prog_rejected=yes
9864 continue
9865 fi
9866 ac_cv_prog_CC="cc"
9867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9868 break 2
9869 fi
9870 done
9871 done
9872
9873 if test $ac_prog_rejected = yes; then
9874 # We found a bogon in the path, so make sure we never use it.
9875 set dummy $ac_cv_prog_CC
9876 shift
9877 if test $# != 0; then
9878 # We chose a different compiler from the bogus one.
9879 # However, it has the same basename, so the bogon will be chosen
9880 # first if we set CC to just the basename; use the full file name.
9881 shift
9882 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9883 fi
9884 fi
9885 fi
9886 fi
9887 CC=$ac_cv_prog_CC
9888 if test -n "$CC"; then
9889 echo "$as_me:$LINENO: result: $CC" >&5
9890 echo "${ECHO_T}$CC" >&6
9891 else
9892 echo "$as_me:$LINENO: result: no" >&5
9893 echo "${ECHO_T}no" >&6
9894 fi
9895
9896 fi
9897 if test -z "$CC"; then
9898 if test -n "$ac_tool_prefix"; then
9899 for ac_prog in cl
9900 do
9901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9903 echo "$as_me:$LINENO: checking for $ac_word" >&5
9904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9905 if test "${ac_cv_prog_CC+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908 if test -n "$CC"; then
9909 ac_cv_prog_CC="$CC" # Let the user override the test.
9910 else
9911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9912 for as_dir in $PATH
9913 do
9914 IFS=$as_save_IFS
9915 test -z "$as_dir" && as_dir=.
9916 for ac_exec_ext in '' $ac_executable_extensions; do
9917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9918 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9920 break 2
9921 fi
9922 done
9923 done
9924
9925 fi
9926 fi
9927 CC=$ac_cv_prog_CC
9928 if test -n "$CC"; then
9929 echo "$as_me:$LINENO: result: $CC" >&5
9930 echo "${ECHO_T}$CC" >&6
9931 else
9932 echo "$as_me:$LINENO: result: no" >&5
9933 echo "${ECHO_T}no" >&6
9934 fi
9935
9936 test -n "$CC" && break
9937 done
9938 fi
9939 if test -z "$CC"; then
9940 ac_ct_CC=$CC
9941 for ac_prog in cl
9942 do
9943 # Extract the first word of "$ac_prog", so it can be a program name with args.
9944 set dummy $ac_prog; ac_word=$2
9945 echo "$as_me:$LINENO: checking for $ac_word" >&5
9946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9947 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 else
9950 if test -n "$ac_ct_CC"; then
9951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9952 else
9953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9954 for as_dir in $PATH
9955 do
9956 IFS=$as_save_IFS
9957 test -z "$as_dir" && as_dir=.
9958 for ac_exec_ext in '' $ac_executable_extensions; do
9959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9960 ac_cv_prog_ac_ct_CC="$ac_prog"
9961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9962 break 2
9963 fi
9964 done
9965 done
9966
9967 fi
9968 fi
9969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9970 if test -n "$ac_ct_CC"; then
9971 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9972 echo "${ECHO_T}$ac_ct_CC" >&6
9973 else
9974 echo "$as_me:$LINENO: result: no" >&5
9975 echo "${ECHO_T}no" >&6
9976 fi
9977
9978 test -n "$ac_ct_CC" && break
9979 done
9980
9981 CC=$ac_ct_CC
9982 fi
9983
9984 fi
9985
9986
9987 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
9988 See \`config.log' for more details." >&5
9989 echo "$as_me: error: no acceptable C compiler found in \$PATH
9990 See \`config.log' for more details." >&2;}
9991 { (exit 1); exit 1; }; }
9992
9993 # Provide some information about the compiler.
9994 echo "$as_me:$LINENO:" \
9995 "checking for C compiler version" >&5
9996 ac_compiler=`set X $ac_compile; echo $2`
9997 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
9998 (eval $ac_compiler --version </dev/null >&5) 2>&5
9999 ac_status=$?
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }
10002 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10003 (eval $ac_compiler -v </dev/null >&5) 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }
10007 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10008 (eval $ac_compiler -V </dev/null >&5) 2>&5
10009 ac_status=$?
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }
10012
10013 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10014 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10015 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018 cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h. */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024
10025 int
10026 main ()
10027 {
10028 #ifndef __GNUC__
10029 choke me
10030 #endif
10031
10032 ;
10033 return 0;
10034 }
10035 _ACEOF
10036 rm -f conftest.$ac_objext
10037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10038 (eval $ac_compile) 2>conftest.er1
10039 ac_status=$?
10040 grep -v '^ *+' conftest.er1 >conftest.err
10041 rm -f conftest.er1
10042 cat conftest.err >&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); } &&
10045 { ac_try='test -z "$ac_c_werror_flag"
10046 || test ! -s conftest.err'
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; } &&
10052 { ac_try='test -s conftest.$ac_objext'
10053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054 (eval $ac_try) 2>&5
10055 ac_status=$?
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; }; then
10058 ac_compiler_gnu=yes
10059 else
10060 echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10062
10063 ac_compiler_gnu=no
10064 fi
10065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10066 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10067
10068 fi
10069 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10070 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10071 GCC=`test $ac_compiler_gnu = yes && echo yes`
10072 ac_test_CFLAGS=${CFLAGS+set}
10073 ac_save_CFLAGS=$CFLAGS
10074 CFLAGS="-g"
10075 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10076 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10077 if test "${ac_cv_prog_cc_g+set}" = set; then
10078 echo $ECHO_N "(cached) $ECHO_C" >&6
10079 else
10080 cat >conftest.$ac_ext <<_ACEOF
10081 /* confdefs.h. */
10082 _ACEOF
10083 cat confdefs.h >>conftest.$ac_ext
10084 cat >>conftest.$ac_ext <<_ACEOF
10085 /* end confdefs.h. */
10086
10087 int
10088 main ()
10089 {
10090
10091 ;
10092 return 0;
10093 }
10094 _ACEOF
10095 rm -f conftest.$ac_objext
10096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10097 (eval $ac_compile) 2>conftest.er1
10098 ac_status=$?
10099 grep -v '^ *+' conftest.er1 >conftest.err
10100 rm -f conftest.er1
10101 cat conftest.err >&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); } &&
10104 { ac_try='test -z "$ac_c_werror_flag"
10105 || test ! -s conftest.err'
10106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107 (eval $ac_try) 2>&5
10108 ac_status=$?
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; } &&
10111 { ac_try='test -s conftest.$ac_objext'
10112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; }; then
10117 ac_cv_prog_cc_g=yes
10118 else
10119 echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10121
10122 ac_cv_prog_cc_g=no
10123 fi
10124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10125 fi
10126 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10127 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10128 if test "$ac_test_CFLAGS" = set; then
10129 CFLAGS=$ac_save_CFLAGS
10130 elif test $ac_cv_prog_cc_g = yes; then
10131 if test "$GCC" = yes; then
10132 CFLAGS="-g -O2"
10133 else
10134 CFLAGS="-g"
10135 fi
10136 else
10137 if test "$GCC" = yes; then
10138 CFLAGS="-O2"
10139 else
10140 CFLAGS=
10141 fi
10142 fi
10143 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10144 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10145 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10147 else
10148 ac_cv_prog_cc_stdc=no
10149 ac_save_CC=$CC
10150 cat >conftest.$ac_ext <<_ACEOF
10151 /* confdefs.h. */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10156 #include <stdarg.h>
10157 #include <stdio.h>
10158 #include <sys/types.h>
10159 #include <sys/stat.h>
10160 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10161 struct buf { int x; };
10162 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10163 static char *e (p, i)
10164 char **p;
10165 int i;
10166 {
10167 return p[i];
10168 }
10169 static char *f (char * (*g) (char **, int), char **p, ...)
10170 {
10171 char *s;
10172 va_list v;
10173 va_start (v,p);
10174 s = g (p, va_arg (v,int));
10175 va_end (v);
10176 return s;
10177 }
10178
10179 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10180 function prototypes and stuff, but not '\xHH' hex character constants.
10181 These don't provoke an error unfortunately, instead are silently treated
10182 as 'x'. The following induces an error, until -std1 is added to get
10183 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10184 array size at least. It's necessary to write '\x00'==0 to get something
10185 that's true only with -std1. */
10186 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10187
10188 int test (int i, double x);
10189 struct s1 {int (*f) (int a);};
10190 struct s2 {int (*f) (double a);};
10191 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10192 int argc;
10193 char **argv;
10194 int
10195 main ()
10196 {
10197 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10198 ;
10199 return 0;
10200 }
10201 _ACEOF
10202 # Don't try gcc -ansi; that turns off useful extensions and
10203 # breaks some systems' header files.
10204 # AIX -qlanglvl=ansi
10205 # Ultrix and OSF/1 -std1
10206 # HP-UX 10.20 and later -Ae
10207 # HP-UX older versions -Aa -D_HPUX_SOURCE
10208 # SVR4 -Xc -D__EXTENSIONS__
10209 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10210 do
10211 CC="$ac_save_CC $ac_arg"
10212 rm -f conftest.$ac_objext
10213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10214 (eval $ac_compile) 2>conftest.er1
10215 ac_status=$?
10216 grep -v '^ *+' conftest.er1 >conftest.err
10217 rm -f conftest.er1
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } &&
10221 { ac_try='test -z "$ac_c_werror_flag"
10222 || test ! -s conftest.err'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10225 ac_status=$?
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; } &&
10228 { ac_try='test -s conftest.$ac_objext'
10229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230 (eval $ac_try) 2>&5
10231 ac_status=$?
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); }; }; then
10234 ac_cv_prog_cc_stdc=$ac_arg
10235 break
10236 else
10237 echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.$ac_ext >&5
10239
10240 fi
10241 rm -f conftest.err conftest.$ac_objext
10242 done
10243 rm -f conftest.$ac_ext conftest.$ac_objext
10244 CC=$ac_save_CC
10245
10246 fi
10247
10248 case "x$ac_cv_prog_cc_stdc" in
10249 x|xno)
10250 echo "$as_me:$LINENO: result: none needed" >&5
10251 echo "${ECHO_T}none needed" >&6 ;;
10252 *)
10253 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10254 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10255 CC="$CC $ac_cv_prog_cc_stdc" ;;
10256 esac
10257
10258 # Some people use a C++ compiler to compile C. Since we use `exit',
10259 # in C++ we need to declare it. In case someone uses the same compiler
10260 # for both compiling C and C++ we need to have the C++ compiler decide
10261 # the declaration of exit, since it's the most demanding environment.
10262 cat >conftest.$ac_ext <<_ACEOF
10263 #ifndef __cplusplus
10264 choke me
10265 #endif
10266 _ACEOF
10267 rm -f conftest.$ac_objext
10268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10269 (eval $ac_compile) 2>conftest.er1
10270 ac_status=$?
10271 grep -v '^ *+' conftest.er1 >conftest.err
10272 rm -f conftest.er1
10273 cat conftest.err >&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } &&
10276 { ac_try='test -z "$ac_c_werror_flag"
10277 || test ! -s conftest.err'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10280 ac_status=$?
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; } &&
10283 { ac_try='test -s conftest.$ac_objext'
10284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285 (eval $ac_try) 2>&5
10286 ac_status=$?
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); }; }; then
10289 for ac_declaration in \
10290 '' \
10291 'extern "C" void std::exit (int) throw (); using std::exit;' \
10292 'extern "C" void std::exit (int); using std::exit;' \
10293 'extern "C" void exit (int) throw ();' \
10294 'extern "C" void exit (int);' \
10295 'void exit (int);'
10296 do
10297 cat >conftest.$ac_ext <<_ACEOF
10298 /* confdefs.h. */
10299 _ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h. */
10303 $ac_declaration
10304 #include <stdlib.h>
10305 int
10306 main ()
10307 {
10308 exit (42);
10309 ;
10310 return 0;
10311 }
10312 _ACEOF
10313 rm -f conftest.$ac_objext
10314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10315 (eval $ac_compile) 2>conftest.er1
10316 ac_status=$?
10317 grep -v '^ *+' conftest.er1 >conftest.err
10318 rm -f conftest.er1
10319 cat conftest.err >&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); } &&
10322 { ac_try='test -z "$ac_c_werror_flag"
10323 || test ! -s conftest.err'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; } &&
10329 { ac_try='test -s conftest.$ac_objext'
10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10332 ac_status=$?
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; }; then
10335 :
10336 else
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10339
10340 continue
10341 fi
10342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10343 cat >conftest.$ac_ext <<_ACEOF
10344 /* confdefs.h. */
10345 _ACEOF
10346 cat confdefs.h >>conftest.$ac_ext
10347 cat >>conftest.$ac_ext <<_ACEOF
10348 /* end confdefs.h. */
10349 $ac_declaration
10350 int
10351 main ()
10352 {
10353 exit (42);
10354 ;
10355 return 0;
10356 }
10357 _ACEOF
10358 rm -f conftest.$ac_objext
10359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10360 (eval $ac_compile) 2>conftest.er1
10361 ac_status=$?
10362 grep -v '^ *+' conftest.er1 >conftest.err
10363 rm -f conftest.er1
10364 cat conftest.err >&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } &&
10367 { ac_try='test -z "$ac_c_werror_flag"
10368 || test ! -s conftest.err'
10369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; } &&
10374 { ac_try='test -s conftest.$ac_objext'
10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; }; then
10380 break
10381 else
10382 echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.$ac_ext >&5
10384
10385 fi
10386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10387 done
10388 rm -f conftest*
10389 if test -n "$ac_declaration"; then
10390 echo '#ifdef __cplusplus' >>confdefs.h
10391 echo $ac_declaration >>confdefs.h
10392 echo '#endif' >>confdefs.h
10393 fi
10394
10395 else
10396 echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10398
10399 fi
10400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10401 ac_ext=c
10402 ac_cpp='$CPP $CPPFLAGS'
10403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10406
10407 # Find a good install program. We prefer a C program (faster),
10408 # so one script is as good as another. But avoid the broken or
10409 # incompatible versions:
10410 # SysV /etc/install, /usr/sbin/install
10411 # SunOS /usr/etc/install
10412 # IRIX /sbin/install
10413 # AIX /bin/install
10414 # AmigaOS /C/install, which installs bootblocks on floppy discs
10415 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10416 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10417 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10418 # OS/2's system install, which has a completely different semantic
10419 # ./install, which can be erroneously created by make from ./install.sh.
10420 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10421 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10422 if test -z "$INSTALL"; then
10423 if test "${ac_cv_path_install+set}" = set; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10425 else
10426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10427 for as_dir in $PATH
10428 do
10429 IFS=$as_save_IFS
10430 test -z "$as_dir" && as_dir=.
10431 # Account for people who put trailing slashes in PATH elements.
10432 case $as_dir/ in
10433 ./ | .// | /cC/* | \
10434 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10435 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10436 /usr/ucb/* ) ;;
10437 *)
10438 # OSF1 and SCO ODT 3.0 have their own names for install.
10439 # Don't use installbsd from OSF since it installs stuff as root
10440 # by default.
10441 for ac_prog in ginstall scoinst install; do
10442 for ac_exec_ext in '' $ac_executable_extensions; do
10443 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10444 if test $ac_prog = install &&
10445 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10446 # AIX install. It has an incompatible calling convention.
10447 :
10448 elif test $ac_prog = install &&
10449 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10450 # program-specific install script used by HP pwplus--don't use.
10451 :
10452 else
10453 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10454 break 3
10455 fi
10456 fi
10457 done
10458 done
10459 ;;
10460 esac
10461 done
10462
10463
10464 fi
10465 if test "${ac_cv_path_install+set}" = set; then
10466 INSTALL=$ac_cv_path_install
10467 else
10468 # As a last resort, use the slow shell script. We don't cache a
10469 # path for INSTALL within a source directory, because that will
10470 # break other packages using the cache if that directory is
10471 # removed, or if the path is relative.
10472 INSTALL=$ac_install_sh
10473 fi
10474 fi
10475 echo "$as_me:$LINENO: result: $INSTALL" >&5
10476 echo "${ECHO_T}$INSTALL" >&6
10477
10478 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10479 # It thinks the first close brace ends the variable substitution.
10480 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10481
10482 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10483
10484 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10485
10486
10487 ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga"
10488 # If we haven't got the data from the intl directory,
10489 # assume NLS is disabled.
10490 USE_NLS=no
10491 LIBINTL=
10492 LIBINTL_DEP=
10493 INCINTL=
10494 XGETTEXT=
10495 GMSGFMT=
10496 POSUB=
10497
10498 if test -f ../intl/config.intl; then
10499 . ../intl/config.intl
10500 fi
10501 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10502 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10503 if test x"$USE_NLS" != xyes; then
10504 echo "$as_me:$LINENO: result: no" >&5
10505 echo "${ECHO_T}no" >&6
10506 else
10507 echo "$as_me:$LINENO: result: yes" >&5
10508 echo "${ECHO_T}yes" >&6
10509
10510 cat >>confdefs.h <<\_ACEOF
10511 #define ENABLE_NLS 1
10512 _ACEOF
10513
10514
10515 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10516 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10517 # Look for .po and .gmo files in the source directory.
10518 CATALOGS=
10519 XLINGUAS=
10520 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10521 # If there aren't any .gmo files the shell will give us the
10522 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10523 # weeded out.
10524 case "$cat" in *\**)
10525 continue;;
10526 esac
10527 # The quadruple backslash is collapsed to a double backslash
10528 # by the backticks, then collapsed again by the double quotes,
10529 # leaving us with one backslash in the sed expression (right
10530 # before the dot that mustn't act as a wildcard).
10531 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10532 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10533 # The user is allowed to set LINGUAS to a list of languages to
10534 # install catalogs for. If it's empty that means "all of them."
10535 if test "x$LINGUAS" = x; then
10536 CATALOGS="$CATALOGS $cat"
10537 XLINGUAS="$XLINGUAS $lang"
10538 else
10539 case "$LINGUAS" in *$lang*)
10540 CATALOGS="$CATALOGS $cat"
10541 XLINGUAS="$XLINGUAS $lang"
10542 ;;
10543 esac
10544 fi
10545 done
10546 LINGUAS="$XLINGUAS"
10547 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10548 echo "${ECHO_T}$LINGUAS" >&6
10549
10550
10551 DATADIRNAME=share
10552
10553 INSTOBJEXT=.mo
10554
10555 GENCAT=gencat
10556
10557 CATOBJEXT=.gmo
10558
10559 fi
10560
10561 MKINSTALLDIRS=
10562 if test -n "$ac_aux_dir"; then
10563 case "$ac_aux_dir" in
10564 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10565 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10566 esac
10567 fi
10568 if test -z "$MKINSTALLDIRS"; then
10569 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10570 fi
10571
10572
10573
10574 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10575 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10576 # Check whether --enable-nls or --disable-nls was given.
10577 if test "${enable_nls+set}" = set; then
10578 enableval="$enable_nls"
10579 USE_NLS=$enableval
10580 else
10581 USE_NLS=yes
10582 fi;
10583 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10584 echo "${ECHO_T}$USE_NLS" >&6
10585
10586
10587
10588
10589
10590
10591 # Prepare PATH_SEPARATOR.
10592 # The user is always right.
10593 if test "${PATH_SEPARATOR+set}" != set; then
10594 echo "#! /bin/sh" >conf$$.sh
10595 echo "exit 0" >>conf$$.sh
10596 chmod +x conf$$.sh
10597 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10598 PATH_SEPARATOR=';'
10599 else
10600 PATH_SEPARATOR=:
10601 fi
10602 rm -f conf$$.sh
10603 fi
10604
10605 # Find out how to test for executable files. Don't use a zero-byte file,
10606 # as systems may use methods other than mode bits to determine executability.
10607 cat >conf$$.file <<_ASEOF
10608 #! /bin/sh
10609 exit 0
10610 _ASEOF
10611 chmod +x conf$$.file
10612 if test -x conf$$.file >/dev/null 2>&1; then
10613 ac_executable_p="test -x"
10614 else
10615 ac_executable_p="test -f"
10616 fi
10617 rm -f conf$$.file
10618
10619 # Extract the first word of "msgfmt", so it can be a program name with args.
10620 set dummy msgfmt; ac_word=$2
10621 echo "$as_me:$LINENO: checking for $ac_word" >&5
10622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10623 if test "${ac_cv_path_MSGFMT+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10625 else
10626 case "$MSGFMT" in
10627 [\\/]* | ?:[\\/]*)
10628 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10629 ;;
10630 *)
10631 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10632 for ac_dir in $PATH; do
10633 IFS="$ac_save_IFS"
10634 test -z "$ac_dir" && ac_dir=.
10635 for ac_exec_ext in '' $ac_executable_extensions; do
10636 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10637 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10638 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10639 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10640 break 2
10641 fi
10642 fi
10643 done
10644 done
10645 IFS="$ac_save_IFS"
10646 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10647 ;;
10648 esac
10649 fi
10650 MSGFMT="$ac_cv_path_MSGFMT"
10651 if test "$MSGFMT" != ":"; then
10652 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10653 echo "${ECHO_T}$MSGFMT" >&6
10654 else
10655 echo "$as_me:$LINENO: result: no" >&5
10656 echo "${ECHO_T}no" >&6
10657 fi
10658
10659 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10660 set dummy gmsgfmt; ac_word=$2
10661 echo "$as_me:$LINENO: checking for $ac_word" >&5
10662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10663 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10665 else
10666 case $GMSGFMT in
10667 [\\/]* | ?:[\\/]*)
10668 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10669 ;;
10670 *)
10671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672 for as_dir in $PATH
10673 do
10674 IFS=$as_save_IFS
10675 test -z "$as_dir" && as_dir=.
10676 for ac_exec_ext in '' $ac_executable_extensions; do
10677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10678 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10680 break 2
10681 fi
10682 done
10683 done
10684
10685 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10686 ;;
10687 esac
10688 fi
10689 GMSGFMT=$ac_cv_path_GMSGFMT
10690
10691 if test -n "$GMSGFMT"; then
10692 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10693 echo "${ECHO_T}$GMSGFMT" >&6
10694 else
10695 echo "$as_me:$LINENO: result: no" >&5
10696 echo "${ECHO_T}no" >&6
10697 fi
10698
10699
10700
10701 # Prepare PATH_SEPARATOR.
10702 # The user is always right.
10703 if test "${PATH_SEPARATOR+set}" != set; then
10704 echo "#! /bin/sh" >conf$$.sh
10705 echo "exit 0" >>conf$$.sh
10706 chmod +x conf$$.sh
10707 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10708 PATH_SEPARATOR=';'
10709 else
10710 PATH_SEPARATOR=:
10711 fi
10712 rm -f conf$$.sh
10713 fi
10714
10715 # Find out how to test for executable files. Don't use a zero-byte file,
10716 # as systems may use methods other than mode bits to determine executability.
10717 cat >conf$$.file <<_ASEOF
10718 #! /bin/sh
10719 exit 0
10720 _ASEOF
10721 chmod +x conf$$.file
10722 if test -x conf$$.file >/dev/null 2>&1; then
10723 ac_executable_p="test -x"
10724 else
10725 ac_executable_p="test -f"
10726 fi
10727 rm -f conf$$.file
10728
10729 # Extract the first word of "xgettext", so it can be a program name with args.
10730 set dummy xgettext; ac_word=$2
10731 echo "$as_me:$LINENO: checking for $ac_word" >&5
10732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10733 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 else
10736 case "$XGETTEXT" in
10737 [\\/]* | ?:[\\/]*)
10738 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10739 ;;
10740 *)
10741 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10742 for ac_dir in $PATH; do
10743 IFS="$ac_save_IFS"
10744 test -z "$ac_dir" && ac_dir=.
10745 for ac_exec_ext in '' $ac_executable_extensions; do
10746 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10747 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10748 (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
10749 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10750 break 2
10751 fi
10752 fi
10753 done
10754 done
10755 IFS="$ac_save_IFS"
10756 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10757 ;;
10758 esac
10759 fi
10760 XGETTEXT="$ac_cv_path_XGETTEXT"
10761 if test "$XGETTEXT" != ":"; then
10762 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10763 echo "${ECHO_T}$XGETTEXT" >&6
10764 else
10765 echo "$as_me:$LINENO: result: no" >&5
10766 echo "${ECHO_T}no" >&6
10767 fi
10768
10769 rm -f messages.po
10770
10771
10772 # Prepare PATH_SEPARATOR.
10773 # The user is always right.
10774 if test "${PATH_SEPARATOR+set}" != set; then
10775 echo "#! /bin/sh" >conf$$.sh
10776 echo "exit 0" >>conf$$.sh
10777 chmod +x conf$$.sh
10778 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10779 PATH_SEPARATOR=';'
10780 else
10781 PATH_SEPARATOR=:
10782 fi
10783 rm -f conf$$.sh
10784 fi
10785
10786 # Find out how to test for executable files. Don't use a zero-byte file,
10787 # as systems may use methods other than mode bits to determine executability.
10788 cat >conf$$.file <<_ASEOF
10789 #! /bin/sh
10790 exit 0
10791 _ASEOF
10792 chmod +x conf$$.file
10793 if test -x conf$$.file >/dev/null 2>&1; then
10794 ac_executable_p="test -x"
10795 else
10796 ac_executable_p="test -f"
10797 fi
10798 rm -f conf$$.file
10799
10800 # Extract the first word of "msgmerge", so it can be a program name with args.
10801 set dummy msgmerge; ac_word=$2
10802 echo "$as_me:$LINENO: checking for $ac_word" >&5
10803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10804 if test "${ac_cv_path_MSGMERGE+set}" = set; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10806 else
10807 case "$MSGMERGE" in
10808 [\\/]* | ?:[\\/]*)
10809 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10810 ;;
10811 *)
10812 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10813 for ac_dir in $PATH; do
10814 IFS="$ac_save_IFS"
10815 test -z "$ac_dir" && ac_dir=.
10816 for ac_exec_ext in '' $ac_executable_extensions; do
10817 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10818 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10819 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10820 break 2
10821 fi
10822 fi
10823 done
10824 done
10825 IFS="$ac_save_IFS"
10826 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10827 ;;
10828 esac
10829 fi
10830 MSGMERGE="$ac_cv_path_MSGMERGE"
10831 if test "$MSGMERGE" != ":"; then
10832 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10833 echo "${ECHO_T}$MSGMERGE" >&6
10834 else
10835 echo "$as_me:$LINENO: result: no" >&5
10836 echo "${ECHO_T}no" >&6
10837 fi
10838
10839
10840 if test "$GMSGFMT" != ":"; then
10841 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10842 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10843 : ;
10844 else
10845 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10846 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10847 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10848 GMSGFMT=":"
10849 fi
10850 fi
10851
10852 if test "$XGETTEXT" != ":"; then
10853 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10854 (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
10855 : ;
10856 else
10857 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10858 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10859 XGETTEXT=":"
10860 fi
10861 rm -f messages.po
10862 fi
10863
10864 ac_config_commands="$ac_config_commands default-1"
10865
10866
10867
10868
10869
10870 for ac_prog in 'bison -y' byacc
10871 do
10872 # Extract the first word of "$ac_prog", so it can be a program name with args.
10873 set dummy $ac_prog; ac_word=$2
10874 echo "$as_me:$LINENO: checking for $ac_word" >&5
10875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10876 if test "${ac_cv_prog_YACC+set}" = set; then
10877 echo $ECHO_N "(cached) $ECHO_C" >&6
10878 else
10879 if test -n "$YACC"; then
10880 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10881 else
10882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10883 for as_dir in $PATH
10884 do
10885 IFS=$as_save_IFS
10886 test -z "$as_dir" && as_dir=.
10887 for ac_exec_ext in '' $ac_executable_extensions; do
10888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10889 ac_cv_prog_YACC="$ac_prog"
10890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10891 break 2
10892 fi
10893 done
10894 done
10895
10896 fi
10897 fi
10898 YACC=$ac_cv_prog_YACC
10899 if test -n "$YACC"; then
10900 echo "$as_me:$LINENO: result: $YACC" >&5
10901 echo "${ECHO_T}$YACC" >&6
10902 else
10903 echo "$as_me:$LINENO: result: no" >&5
10904 echo "${ECHO_T}no" >&6
10905 fi
10906
10907 test -n "$YACC" && break
10908 done
10909 test -n "$YACC" || YACC="yacc"
10910
10911 for ac_prog in flex lex
10912 do
10913 # Extract the first word of "$ac_prog", so it can be a program name with args.
10914 set dummy $ac_prog; ac_word=$2
10915 echo "$as_me:$LINENO: checking for $ac_word" >&5
10916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10917 if test "${ac_cv_prog_LEX+set}" = set; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 else
10920 if test -n "$LEX"; then
10921 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10922 else
10923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10924 for as_dir in $PATH
10925 do
10926 IFS=$as_save_IFS
10927 test -z "$as_dir" && as_dir=.
10928 for ac_exec_ext in '' $ac_executable_extensions; do
10929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10930 ac_cv_prog_LEX="$ac_prog"
10931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10932 break 2
10933 fi
10934 done
10935 done
10936
10937 fi
10938 fi
10939 LEX=$ac_cv_prog_LEX
10940 if test -n "$LEX"; then
10941 echo "$as_me:$LINENO: result: $LEX" >&5
10942 echo "${ECHO_T}$LEX" >&6
10943 else
10944 echo "$as_me:$LINENO: result: no" >&5
10945 echo "${ECHO_T}no" >&6
10946 fi
10947
10948 test -n "$LEX" && break
10949 done
10950 test -n "$LEX" || LEX=":"
10951
10952 if test -z "$LEXLIB"
10953 then
10954 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
10955 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
10956 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
10957 echo $ECHO_N "(cached) $ECHO_C" >&6
10958 else
10959 ac_check_lib_save_LIBS=$LIBS
10960 LIBS="-lfl $LIBS"
10961 cat >conftest.$ac_ext <<_ACEOF
10962 /* confdefs.h. */
10963 _ACEOF
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>conftest.$ac_ext <<_ACEOF
10966 /* end confdefs.h. */
10967
10968 /* Override any gcc2 internal prototype to avoid an error. */
10969 #ifdef __cplusplus
10970 extern "C"
10971 #endif
10972 /* We use char because int might match the return type of a gcc2
10973 builtin and then its argument prototype would still apply. */
10974 char yywrap ();
10975 int
10976 main ()
10977 {
10978 yywrap ();
10979 ;
10980 return 0;
10981 }
10982 _ACEOF
10983 rm -f conftest.$ac_objext conftest$ac_exeext
10984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10985 (eval $ac_link) 2>conftest.er1
10986 ac_status=$?
10987 grep -v '^ *+' conftest.er1 >conftest.err
10988 rm -f conftest.er1
10989 cat conftest.err >&5
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } &&
10992 { ac_try='test -z "$ac_c_werror_flag"
10993 || test ! -s conftest.err'
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10996 ac_status=$?
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; } &&
10999 { ac_try='test -s conftest$ac_exeext'
11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; }; then
11005 ac_cv_lib_fl_yywrap=yes
11006 else
11007 echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11009
11010 ac_cv_lib_fl_yywrap=no
11011 fi
11012 rm -f conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext conftest.$ac_ext
11014 LIBS=$ac_check_lib_save_LIBS
11015 fi
11016 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11017 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11018 if test $ac_cv_lib_fl_yywrap = yes; then
11019 LEXLIB="-lfl"
11020 else
11021 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11022 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11023 if test "${ac_cv_lib_l_yywrap+set}" = set; then
11024 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 else
11026 ac_check_lib_save_LIBS=$LIBS
11027 LIBS="-ll $LIBS"
11028 cat >conftest.$ac_ext <<_ACEOF
11029 /* confdefs.h. */
11030 _ACEOF
11031 cat confdefs.h >>conftest.$ac_ext
11032 cat >>conftest.$ac_ext <<_ACEOF
11033 /* end confdefs.h. */
11034
11035 /* Override any gcc2 internal prototype to avoid an error. */
11036 #ifdef __cplusplus
11037 extern "C"
11038 #endif
11039 /* We use char because int might match the return type of a gcc2
11040 builtin and then its argument prototype would still apply. */
11041 char yywrap ();
11042 int
11043 main ()
11044 {
11045 yywrap ();
11046 ;
11047 return 0;
11048 }
11049 _ACEOF
11050 rm -f conftest.$ac_objext conftest$ac_exeext
11051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11052 (eval $ac_link) 2>conftest.er1
11053 ac_status=$?
11054 grep -v '^ *+' conftest.er1 >conftest.err
11055 rm -f conftest.er1
11056 cat conftest.err >&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } &&
11059 { ac_try='test -z "$ac_c_werror_flag"
11060 || test ! -s conftest.err'
11061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11062 (eval $ac_try) 2>&5
11063 ac_status=$?
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); }; } &&
11066 { ac_try='test -s conftest$ac_exeext'
11067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068 (eval $ac_try) 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; }; then
11072 ac_cv_lib_l_yywrap=yes
11073 else
11074 echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11076
11077 ac_cv_lib_l_yywrap=no
11078 fi
11079 rm -f conftest.err conftest.$ac_objext \
11080 conftest$ac_exeext conftest.$ac_ext
11081 LIBS=$ac_check_lib_save_LIBS
11082 fi
11083 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11084 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11085 if test $ac_cv_lib_l_yywrap = yes; then
11086 LEXLIB="-ll"
11087 fi
11088
11089 fi
11090
11091 fi
11092
11093 if test "x$LEX" != "x:"; then
11094 echo "$as_me:$LINENO: checking lex output file root" >&5
11095 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11096 if test "${ac_cv_prog_lex_root+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11098 else
11099 # The minimal lex program is just a single line: %%. But some broken lexes
11100 # (Solaris, I think it was) want two %% lines, so accommodate them.
11101 cat >conftest.l <<_ACEOF
11102 %%
11103 %%
11104 _ACEOF
11105 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11106 (eval $LEX conftest.l) 2>&5
11107 ac_status=$?
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }
11110 if test -f lex.yy.c; then
11111 ac_cv_prog_lex_root=lex.yy
11112 elif test -f lexyy.c; then
11113 ac_cv_prog_lex_root=lexyy
11114 else
11115 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11116 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11117 { (exit 1); exit 1; }; }
11118 fi
11119 fi
11120 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11121 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11122 rm -f conftest.l
11123 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11124
11125 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11126 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11127 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11129 else
11130 # POSIX says lex can declare yytext either as a pointer or an array; the
11131 # default is implementation-dependent. Figure out which it is, since
11132 # not all implementations provide the %pointer and %array declarations.
11133 ac_cv_prog_lex_yytext_pointer=no
11134 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11135 ac_save_LIBS=$LIBS
11136 LIBS="$LIBS $LEXLIB"
11137 cat >conftest.$ac_ext <<_ACEOF
11138 `cat $LEX_OUTPUT_ROOT.c`
11139 _ACEOF
11140 rm -f conftest.$ac_objext conftest$ac_exeext
11141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11142 (eval $ac_link) 2>conftest.er1
11143 ac_status=$?
11144 grep -v '^ *+' conftest.er1 >conftest.err
11145 rm -f conftest.er1
11146 cat conftest.err >&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } &&
11149 { ac_try='test -z "$ac_c_werror_flag"
11150 || test ! -s conftest.err'
11151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11152 (eval $ac_try) 2>&5
11153 ac_status=$?
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); }; } &&
11156 { ac_try='test -s conftest$ac_exeext'
11157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11158 (eval $ac_try) 2>&5
11159 ac_status=$?
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); }; }; then
11162 ac_cv_prog_lex_yytext_pointer=yes
11163 else
11164 echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11166
11167 fi
11168 rm -f conftest.err conftest.$ac_objext \
11169 conftest$ac_exeext conftest.$ac_ext
11170 LIBS=$ac_save_LIBS
11171 rm -f "${LEX_OUTPUT_ROOT}.c"
11172
11173 fi
11174 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11175 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11176 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11177
11178 cat >>confdefs.h <<\_ACEOF
11179 #define YYTEXT_POINTER 1
11180 _ACEOF
11181
11182 fi
11183
11184 fi
11185 if test "$LEX" = :; then
11186 LEX=${am_missing_run}flex
11187 fi
11188
11189 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11190 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11191 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11192 if test "${enable_maintainer_mode+set}" = set; then
11193 enableval="$enable_maintainer_mode"
11194 USE_MAINTAINER_MODE=$enableval
11195 else
11196 USE_MAINTAINER_MODE=no
11197 fi;
11198 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11199 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11200
11201
11202 if test $USE_MAINTAINER_MODE = yes; then
11203 MAINTAINER_MODE_TRUE=
11204 MAINTAINER_MODE_FALSE='#'
11205 else
11206 MAINTAINER_MODE_TRUE='#'
11207 MAINTAINER_MODE_FALSE=
11208 fi
11209
11210 MAINT=$MAINTAINER_MODE_TRUE
11211
11212
11213
11214
11215 if false; then
11216 GENINSRC_NEVER_TRUE=
11217 GENINSRC_NEVER_FALSE='#'
11218 else
11219 GENINSRC_NEVER_TRUE='#'
11220 GENINSRC_NEVER_FALSE=
11221 fi
11222
11223
11224 . ${srcdir}/configure.host
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
11239 do
11240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11242 echo "$as_me:$LINENO: checking for $ac_header" >&5
11243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
11246 fi
11247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11249 else
11250 # Is the header compilable?
11251 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11253 cat >conftest.$ac_ext <<_ACEOF
11254 /* confdefs.h. */
11255 _ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h. */
11259 $ac_includes_default
11260 #include <$ac_header>
11261 _ACEOF
11262 rm -f conftest.$ac_objext
11263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11264 (eval $ac_compile) 2>conftest.er1
11265 ac_status=$?
11266 grep -v '^ *+' conftest.er1 >conftest.err
11267 rm -f conftest.er1
11268 cat conftest.err >&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } &&
11271 { ac_try='test -z "$ac_c_werror_flag"
11272 || test ! -s conftest.err'
11273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274 (eval $ac_try) 2>&5
11275 ac_status=$?
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; } &&
11278 { ac_try='test -s conftest.$ac_objext'
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; }; then
11284 ac_header_compiler=yes
11285 else
11286 echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11288
11289 ac_header_compiler=no
11290 fi
11291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11292 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11293 echo "${ECHO_T}$ac_header_compiler" >&6
11294
11295 # Is the header present?
11296 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11298 cat >conftest.$ac_ext <<_ACEOF
11299 /* confdefs.h. */
11300 _ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11304 #include <$ac_header>
11305 _ACEOF
11306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11308 ac_status=$?
11309 grep -v '^ *+' conftest.er1 >conftest.err
11310 rm -f conftest.er1
11311 cat conftest.err >&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } >/dev/null; then
11314 if test -s conftest.err; then
11315 ac_cpp_err=$ac_c_preproc_warn_flag
11316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11317 else
11318 ac_cpp_err=
11319 fi
11320 else
11321 ac_cpp_err=yes
11322 fi
11323 if test -z "$ac_cpp_err"; then
11324 ac_header_preproc=yes
11325 else
11326 echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11328
11329 ac_header_preproc=no
11330 fi
11331 rm -f conftest.err conftest.$ac_ext
11332 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11333 echo "${ECHO_T}$ac_header_preproc" >&6
11334
11335 # So? What about this header?
11336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11337 yes:no: )
11338 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11339 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11341 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11342 ac_header_preproc=yes
11343 ;;
11344 no:yes:* )
11345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11348 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11350 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11352 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11356 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11357 (
11358 cat <<\_ASBOX
11359 ## ------------------------------------------ ##
11360 ## Report this to the AC_PACKAGE_NAME lists. ##
11361 ## ------------------------------------------ ##
11362 _ASBOX
11363 ) |
11364 sed "s/^/$as_me: WARNING: /" >&2
11365 ;;
11366 esac
11367 echo "$as_me:$LINENO: checking for $ac_header" >&5
11368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
11371 else
11372 eval "$as_ac_Header=\$ac_header_preproc"
11373 fi
11374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11376
11377 fi
11378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11379 cat >>confdefs.h <<_ACEOF
11380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11381 _ACEOF
11382
11383 fi
11384
11385 done
11386
11387
11388
11389
11390
11391
11392 for ac_func in glob mkstemp realpath sbrk waitpid
11393 do
11394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11395 echo "$as_me:$LINENO: checking for $ac_func" >&5
11396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11397 if eval "test \"\${$as_ac_var+set}\" = set"; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11399 else
11400 cat >conftest.$ac_ext <<_ACEOF
11401 /* confdefs.h. */
11402 _ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h. */
11406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11408 #define $ac_func innocuous_$ac_func
11409
11410 /* System header to define __stub macros and hopefully few prototypes,
11411 which can conflict with char $ac_func (); below.
11412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11413 <limits.h> exists even on freestanding compilers. */
11414
11415 #ifdef __STDC__
11416 # include <limits.h>
11417 #else
11418 # include <assert.h>
11419 #endif
11420
11421 #undef $ac_func
11422
11423 /* Override any gcc2 internal prototype to avoid an error. */
11424 #ifdef __cplusplus
11425 extern "C"
11426 {
11427 #endif
11428 /* We use char because int might match the return type of a gcc2
11429 builtin and then its argument prototype would still apply. */
11430 char $ac_func ();
11431 /* The GNU C library defines this for functions which it implements
11432 to always fail with ENOSYS. Some functions are actually named
11433 something starting with __ and the normal name is an alias. */
11434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11435 choke me
11436 #else
11437 char (*f) () = $ac_func;
11438 #endif
11439 #ifdef __cplusplus
11440 }
11441 #endif
11442
11443 int
11444 main ()
11445 {
11446 return f != $ac_func;
11447 ;
11448 return 0;
11449 }
11450 _ACEOF
11451 rm -f conftest.$ac_objext conftest$ac_exeext
11452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11453 (eval $ac_link) 2>conftest.er1
11454 ac_status=$?
11455 grep -v '^ *+' conftest.er1 >conftest.err
11456 rm -f conftest.er1
11457 cat conftest.err >&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } &&
11460 { ac_try='test -z "$ac_c_werror_flag"
11461 || test ! -s conftest.err'
11462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11464 ac_status=$?
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; } &&
11467 { ac_try='test -s conftest$ac_exeext'
11468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469 (eval $ac_try) 2>&5
11470 ac_status=$?
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; }; then
11473 eval "$as_ac_var=yes"
11474 else
11475 echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11477
11478 eval "$as_ac_var=no"
11479 fi
11480 rm -f conftest.err conftest.$ac_objext \
11481 conftest$ac_exeext conftest.$ac_ext
11482 fi
11483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11485 if test `eval echo '${'$as_ac_var'}'` = yes; then
11486 cat >>confdefs.h <<_ACEOF
11487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11488 _ACEOF
11489
11490 fi
11491 done
11492
11493
11494
11495
11496
11497
11498 ac_header_dirent=no
11499 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11500 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11501 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11502 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11504 echo $ECHO_N "(cached) $ECHO_C" >&6
11505 else
11506 cat >conftest.$ac_ext <<_ACEOF
11507 /* confdefs.h. */
11508 _ACEOF
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h. */
11512 #include <sys/types.h>
11513 #include <$ac_hdr>
11514
11515 int
11516 main ()
11517 {
11518 if ((DIR *) 0)
11519 return 0;
11520 ;
11521 return 0;
11522 }
11523 _ACEOF
11524 rm -f conftest.$ac_objext
11525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11526 (eval $ac_compile) 2>conftest.er1
11527 ac_status=$?
11528 grep -v '^ *+' conftest.er1 >conftest.err
11529 rm -f conftest.er1
11530 cat conftest.err >&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); } &&
11533 { ac_try='test -z "$ac_c_werror_flag"
11534 || test ! -s conftest.err'
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11537 ac_status=$?
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; } &&
11540 { ac_try='test -s conftest.$ac_objext'
11541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11543 ac_status=$?
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; }; then
11546 eval "$as_ac_Header=yes"
11547 else
11548 echo "$as_me: failed program was:" >&5
11549 sed 's/^/| /' conftest.$ac_ext >&5
11550
11551 eval "$as_ac_Header=no"
11552 fi
11553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11554 fi
11555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11558 cat >>confdefs.h <<_ACEOF
11559 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11560 _ACEOF
11561
11562 ac_header_dirent=$ac_hdr; break
11563 fi
11564
11565 done
11566 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11567 if test $ac_header_dirent = dirent.h; then
11568 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11569 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11570 if test "${ac_cv_search_opendir+set}" = set; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11572 else
11573 ac_func_search_save_LIBS=$LIBS
11574 ac_cv_search_opendir=no
11575 cat >conftest.$ac_ext <<_ACEOF
11576 /* confdefs.h. */
11577 _ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h. */
11581
11582 /* Override any gcc2 internal prototype to avoid an error. */
11583 #ifdef __cplusplus
11584 extern "C"
11585 #endif
11586 /* We use char because int might match the return type of a gcc2
11587 builtin and then its argument prototype would still apply. */
11588 char opendir ();
11589 int
11590 main ()
11591 {
11592 opendir ();
11593 ;
11594 return 0;
11595 }
11596 _ACEOF
11597 rm -f conftest.$ac_objext conftest$ac_exeext
11598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11599 (eval $ac_link) 2>conftest.er1
11600 ac_status=$?
11601 grep -v '^ *+' conftest.er1 >conftest.err
11602 rm -f conftest.er1
11603 cat conftest.err >&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } &&
11606 { ac_try='test -z "$ac_c_werror_flag"
11607 || test ! -s conftest.err'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11610 ac_status=$?
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; } &&
11613 { ac_try='test -s conftest$ac_exeext'
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; }; then
11619 ac_cv_search_opendir="none required"
11620 else
11621 echo "$as_me: failed program was:" >&5
11622 sed 's/^/| /' conftest.$ac_ext >&5
11623
11624 fi
11625 rm -f conftest.err conftest.$ac_objext \
11626 conftest$ac_exeext conftest.$ac_ext
11627 if test "$ac_cv_search_opendir" = no; then
11628 for ac_lib in dir; do
11629 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11630 cat >conftest.$ac_ext <<_ACEOF
11631 /* confdefs.h. */
11632 _ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h. */
11636
11637 /* Override any gcc2 internal prototype to avoid an error. */
11638 #ifdef __cplusplus
11639 extern "C"
11640 #endif
11641 /* We use char because int might match the return type of a gcc2
11642 builtin and then its argument prototype would still apply. */
11643 char opendir ();
11644 int
11645 main ()
11646 {
11647 opendir ();
11648 ;
11649 return 0;
11650 }
11651 _ACEOF
11652 rm -f conftest.$ac_objext conftest$ac_exeext
11653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11654 (eval $ac_link) 2>conftest.er1
11655 ac_status=$?
11656 grep -v '^ *+' conftest.er1 >conftest.err
11657 rm -f conftest.er1
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } &&
11661 { ac_try='test -z "$ac_c_werror_flag"
11662 || test ! -s conftest.err'
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11665 ac_status=$?
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; } &&
11668 { ac_try='test -s conftest$ac_exeext'
11669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11670 (eval $ac_try) 2>&5
11671 ac_status=$?
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; }; then
11674 ac_cv_search_opendir="-l$ac_lib"
11675 break
11676 else
11677 echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11679
11680 fi
11681 rm -f conftest.err conftest.$ac_objext \
11682 conftest$ac_exeext conftest.$ac_ext
11683 done
11684 fi
11685 LIBS=$ac_func_search_save_LIBS
11686 fi
11687 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11688 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11689 if test "$ac_cv_search_opendir" != no; then
11690 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11691
11692 fi
11693
11694 else
11695 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11696 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11697 if test "${ac_cv_search_opendir+set}" = set; then
11698 echo $ECHO_N "(cached) $ECHO_C" >&6
11699 else
11700 ac_func_search_save_LIBS=$LIBS
11701 ac_cv_search_opendir=no
11702 cat >conftest.$ac_ext <<_ACEOF
11703 /* confdefs.h. */
11704 _ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h. */
11708
11709 /* Override any gcc2 internal prototype to avoid an error. */
11710 #ifdef __cplusplus
11711 extern "C"
11712 #endif
11713 /* We use char because int might match the return type of a gcc2
11714 builtin and then its argument prototype would still apply. */
11715 char opendir ();
11716 int
11717 main ()
11718 {
11719 opendir ();
11720 ;
11721 return 0;
11722 }
11723 _ACEOF
11724 rm -f conftest.$ac_objext conftest$ac_exeext
11725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11726 (eval $ac_link) 2>conftest.er1
11727 ac_status=$?
11728 grep -v '^ *+' conftest.er1 >conftest.err
11729 rm -f conftest.er1
11730 cat conftest.err >&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } &&
11733 { ac_try='test -z "$ac_c_werror_flag"
11734 || test ! -s conftest.err'
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11737 ac_status=$?
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; } &&
11740 { ac_try='test -s conftest$ac_exeext'
11741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742 (eval $ac_try) 2>&5
11743 ac_status=$?
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; }; then
11746 ac_cv_search_opendir="none required"
11747 else
11748 echo "$as_me: failed program was:" >&5
11749 sed 's/^/| /' conftest.$ac_ext >&5
11750
11751 fi
11752 rm -f conftest.err conftest.$ac_objext \
11753 conftest$ac_exeext conftest.$ac_ext
11754 if test "$ac_cv_search_opendir" = no; then
11755 for ac_lib in x; do
11756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11757 cat >conftest.$ac_ext <<_ACEOF
11758 /* confdefs.h. */
11759 _ACEOF
11760 cat confdefs.h >>conftest.$ac_ext
11761 cat >>conftest.$ac_ext <<_ACEOF
11762 /* end confdefs.h. */
11763
11764 /* Override any gcc2 internal prototype to avoid an error. */
11765 #ifdef __cplusplus
11766 extern "C"
11767 #endif
11768 /* We use char because int might match the return type of a gcc2
11769 builtin and then its argument prototype would still apply. */
11770 char opendir ();
11771 int
11772 main ()
11773 {
11774 opendir ();
11775 ;
11776 return 0;
11777 }
11778 _ACEOF
11779 rm -f conftest.$ac_objext conftest$ac_exeext
11780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11781 (eval $ac_link) 2>conftest.er1
11782 ac_status=$?
11783 grep -v '^ *+' conftest.er1 >conftest.err
11784 rm -f conftest.er1
11785 cat conftest.err >&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } &&
11788 { ac_try='test -z "$ac_c_werror_flag"
11789 || test ! -s conftest.err'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; } &&
11795 { ac_try='test -s conftest$ac_exeext'
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; }; then
11801 ac_cv_search_opendir="-l$ac_lib"
11802 break
11803 else
11804 echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11806
11807 fi
11808 rm -f conftest.err conftest.$ac_objext \
11809 conftest$ac_exeext conftest.$ac_ext
11810 done
11811 fi
11812 LIBS=$ac_func_search_save_LIBS
11813 fi
11814 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11815 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11816 if test "$ac_cv_search_opendir" != no; then
11817 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11818
11819 fi
11820
11821 fi
11822
11823
11824 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
11825 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
11826 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11828 else
11829 cat >conftest.$ac_ext <<_ACEOF
11830 /* confdefs.h. */
11831 _ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11835 #include <unistd.h>
11836 int
11837 main ()
11838 {
11839 extern int getopt (int, char *const*, const char *);
11840 ;
11841 return 0;
11842 }
11843 _ACEOF
11844 rm -f conftest.$ac_objext
11845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11846 (eval $ac_compile) 2>conftest.er1
11847 ac_status=$?
11848 grep -v '^ *+' conftest.er1 >conftest.err
11849 rm -f conftest.er1
11850 cat conftest.err >&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } &&
11853 { ac_try='test -z "$ac_c_werror_flag"
11854 || test ! -s conftest.err'
11855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856 (eval $ac_try) 2>&5
11857 ac_status=$?
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; } &&
11860 { ac_try='test -s conftest.$ac_objext'
11861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862 (eval $ac_try) 2>&5
11863 ac_status=$?
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; }; then
11866 ld_cv_decl_getopt_unistd_h=yes
11867 else
11868 echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11870
11871 ld_cv_decl_getopt_unistd_h=no
11872 fi
11873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11874 fi
11875
11876 echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
11877 echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
11878 if test $ld_cv_decl_getopt_unistd_h = yes; then
11879
11880 cat >>confdefs.h <<\_ACEOF
11881 #define HAVE_DECL_GETOPT 1
11882 _ACEOF
11883
11884 fi
11885
11886
11887 case "${host}" in
11888 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
11889
11890 cat >>confdefs.h <<\_ACEOF
11891 #define USE_BINARY_FOPEN 1
11892 _ACEOF
11893 ;;
11894 esac
11895
11896 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11897 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11898 if test "${ac_cv_have_decl_strstr+set}" = set; then
11899 echo $ECHO_N "(cached) $ECHO_C" >&6
11900 else
11901 cat >conftest.$ac_ext <<_ACEOF
11902 /* confdefs.h. */
11903 _ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11907 $ac_includes_default
11908 int
11909 main ()
11910 {
11911 #ifndef strstr
11912 char *p = (char *) strstr;
11913 #endif
11914
11915 ;
11916 return 0;
11917 }
11918 _ACEOF
11919 rm -f conftest.$ac_objext
11920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11921 (eval $ac_compile) 2>conftest.er1
11922 ac_status=$?
11923 grep -v '^ *+' conftest.er1 >conftest.err
11924 rm -f conftest.er1
11925 cat conftest.err >&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } &&
11928 { ac_try='test -z "$ac_c_werror_flag"
11929 || test ! -s conftest.err'
11930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931 (eval $ac_try) 2>&5
11932 ac_status=$?
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; } &&
11935 { ac_try='test -s conftest.$ac_objext'
11936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937 (eval $ac_try) 2>&5
11938 ac_status=$?
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; }; then
11941 ac_cv_have_decl_strstr=yes
11942 else
11943 echo "$as_me: failed program was:" >&5
11944 sed 's/^/| /' conftest.$ac_ext >&5
11945
11946 ac_cv_have_decl_strstr=no
11947 fi
11948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11949 fi
11950 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11951 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
11952 if test $ac_cv_have_decl_strstr = yes; then
11953
11954 cat >>confdefs.h <<_ACEOF
11955 #define HAVE_DECL_STRSTR 1
11956 _ACEOF
11957
11958
11959 else
11960 cat >>confdefs.h <<_ACEOF
11961 #define HAVE_DECL_STRSTR 0
11962 _ACEOF
11963
11964
11965 fi
11966 echo "$as_me:$LINENO: checking whether free is declared" >&5
11967 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
11968 if test "${ac_cv_have_decl_free+set}" = set; then
11969 echo $ECHO_N "(cached) $ECHO_C" >&6
11970 else
11971 cat >conftest.$ac_ext <<_ACEOF
11972 /* confdefs.h. */
11973 _ACEOF
11974 cat confdefs.h >>conftest.$ac_ext
11975 cat >>conftest.$ac_ext <<_ACEOF
11976 /* end confdefs.h. */
11977 $ac_includes_default
11978 int
11979 main ()
11980 {
11981 #ifndef free
11982 char *p = (char *) free;
11983 #endif
11984
11985 ;
11986 return 0;
11987 }
11988 _ACEOF
11989 rm -f conftest.$ac_objext
11990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11991 (eval $ac_compile) 2>conftest.er1
11992 ac_status=$?
11993 grep -v '^ *+' conftest.er1 >conftest.err
11994 rm -f conftest.er1
11995 cat conftest.err >&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); } &&
11998 { ac_try='test -z "$ac_c_werror_flag"
11999 || test ! -s conftest.err'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; } &&
12005 { ac_try='test -s conftest.$ac_objext'
12006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12008 ac_status=$?
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12011 ac_cv_have_decl_free=yes
12012 else
12013 echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12015
12016 ac_cv_have_decl_free=no
12017 fi
12018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12019 fi
12020 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12021 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12022 if test $ac_cv_have_decl_free = yes; then
12023
12024 cat >>confdefs.h <<_ACEOF
12025 #define HAVE_DECL_FREE 1
12026 _ACEOF
12027
12028
12029 else
12030 cat >>confdefs.h <<_ACEOF
12031 #define HAVE_DECL_FREE 0
12032 _ACEOF
12033
12034
12035 fi
12036 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
12037 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
12038 if test "${ac_cv_have_decl_sbrk+set}" = set; then
12039 echo $ECHO_N "(cached) $ECHO_C" >&6
12040 else
12041 cat >conftest.$ac_ext <<_ACEOF
12042 /* confdefs.h. */
12043 _ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h. */
12047 $ac_includes_default
12048 int
12049 main ()
12050 {
12051 #ifndef sbrk
12052 char *p = (char *) sbrk;
12053 #endif
12054
12055 ;
12056 return 0;
12057 }
12058 _ACEOF
12059 rm -f conftest.$ac_objext
12060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12061 (eval $ac_compile) 2>conftest.er1
12062 ac_status=$?
12063 grep -v '^ *+' conftest.er1 >conftest.err
12064 rm -f conftest.er1
12065 cat conftest.err >&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } &&
12068 { ac_try='test -z "$ac_c_werror_flag"
12069 || test ! -s conftest.err'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12072 ac_status=$?
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; } &&
12075 { ac_try='test -s conftest.$ac_objext'
12076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077 (eval $ac_try) 2>&5
12078 ac_status=$?
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; }; then
12081 ac_cv_have_decl_sbrk=yes
12082 else
12083 echo "$as_me: failed program was:" >&5
12084 sed 's/^/| /' conftest.$ac_ext >&5
12085
12086 ac_cv_have_decl_sbrk=no
12087 fi
12088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12089 fi
12090 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
12091 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
12092 if test $ac_cv_have_decl_sbrk = yes; then
12093
12094 cat >>confdefs.h <<_ACEOF
12095 #define HAVE_DECL_SBRK 1
12096 _ACEOF
12097
12098
12099 else
12100 cat >>confdefs.h <<_ACEOF
12101 #define HAVE_DECL_SBRK 0
12102 _ACEOF
12103
12104
12105 fi
12106 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12107 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12108 if test "${ac_cv_have_decl_getenv+set}" = set; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12110 else
12111 cat >conftest.$ac_ext <<_ACEOF
12112 /* confdefs.h. */
12113 _ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h. */
12117 $ac_includes_default
12118 int
12119 main ()
12120 {
12121 #ifndef getenv
12122 char *p = (char *) getenv;
12123 #endif
12124
12125 ;
12126 return 0;
12127 }
12128 _ACEOF
12129 rm -f conftest.$ac_objext
12130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12131 (eval $ac_compile) 2>conftest.er1
12132 ac_status=$?
12133 grep -v '^ *+' conftest.er1 >conftest.err
12134 rm -f conftest.er1
12135 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } &&
12138 { ac_try='test -z "$ac_c_werror_flag"
12139 || test ! -s conftest.err'
12140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12142 ac_status=$?
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; } &&
12145 { ac_try='test -s conftest.$ac_objext'
12146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147 (eval $ac_try) 2>&5
12148 ac_status=$?
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }; }; then
12151 ac_cv_have_decl_getenv=yes
12152 else
12153 echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.$ac_ext >&5
12155
12156 ac_cv_have_decl_getenv=no
12157 fi
12158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12159 fi
12160 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12161 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12162 if test $ac_cv_have_decl_getenv = yes; then
12163
12164 cat >>confdefs.h <<_ACEOF
12165 #define HAVE_DECL_GETENV 1
12166 _ACEOF
12167
12168
12169 else
12170 cat >>confdefs.h <<_ACEOF
12171 #define HAVE_DECL_GETENV 0
12172 _ACEOF
12173
12174
12175 fi
12176 echo "$as_me:$LINENO: checking whether environ is declared" >&5
12177 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
12178 if test "${ac_cv_have_decl_environ+set}" = set; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12180 else
12181 cat >conftest.$ac_ext <<_ACEOF
12182 /* confdefs.h. */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12187 $ac_includes_default
12188 int
12189 main ()
12190 {
12191 #ifndef environ
12192 char *p = (char *) environ;
12193 #endif
12194
12195 ;
12196 return 0;
12197 }
12198 _ACEOF
12199 rm -f conftest.$ac_objext
12200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12201 (eval $ac_compile) 2>conftest.er1
12202 ac_status=$?
12203 grep -v '^ *+' conftest.er1 >conftest.err
12204 rm -f conftest.er1
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } &&
12208 { ac_try='test -z "$ac_c_werror_flag"
12209 || test ! -s conftest.err'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12212 ac_status=$?
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; } &&
12215 { ac_try='test -s conftest.$ac_objext'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; }; then
12221 ac_cv_have_decl_environ=yes
12222 else
12223 echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12225
12226 ac_cv_have_decl_environ=no
12227 fi
12228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12229 fi
12230 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
12231 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
12232 if test $ac_cv_have_decl_environ = yes; then
12233
12234 cat >>confdefs.h <<_ACEOF
12235 #define HAVE_DECL_ENVIRON 1
12236 _ACEOF
12237
12238
12239 else
12240 cat >>confdefs.h <<_ACEOF
12241 #define HAVE_DECL_ENVIRON 0
12242 _ACEOF
12243
12244
12245 fi
12246
12247
12248
12249 # When converting linker scripts into strings for use in emulation
12250 # files, use astring.sed if the compiler supports ANSI string
12251 # concatenation, or ostring.sed otherwise. This is to support the
12252 # broken Microsoft MSVC compiler, which limits the length of string
12253 # constants, while still supporting pre-ANSI compilers which do not
12254 # support string concatenation.
12255 echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
12256 echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
12257 if test "${ld_cv_string_concatenation+set}" = set; then
12258 echo $ECHO_N "(cached) $ECHO_C" >&6
12259 else
12260 cat >conftest.$ac_ext <<_ACEOF
12261 /* confdefs.h. */
12262 _ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h. */
12266
12267 int
12268 main ()
12269 {
12270 char *a = "a" "a";
12271 ;
12272 return 0;
12273 }
12274 _ACEOF
12275 rm -f conftest.$ac_objext
12276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12277 (eval $ac_compile) 2>conftest.er1
12278 ac_status=$?
12279 grep -v '^ *+' conftest.er1 >conftest.err
12280 rm -f conftest.er1
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } &&
12284 { ac_try='test -z "$ac_c_werror_flag"
12285 || test ! -s conftest.err'
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; } &&
12291 { ac_try='test -s conftest.$ac_objext'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12294 ac_status=$?
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; }; then
12297 ld_cv_string_concatenation=yes
12298 else
12299 echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12301
12302 ld_cv_string_concatenation=no
12303 fi
12304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12305 fi
12306
12307 echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
12308 echo "${ECHO_T}$ld_cv_string_concatenation" >&6
12309 if test "$ld_cv_string_concatenation" = "yes"; then
12310 STRINGIFY=astring.sed
12311 else
12312 STRINGIFY=ostring.sed
12313 fi
12314
12315
12316 # target-specific stuff:
12317
12318 all_targets=
12319 EMUL=
12320 all_emuls=
12321 all_emul_extras=
12322 all_libpath=
12323
12324 rm -f tdirs
12325
12326 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
12327 do
12328 if test "$targ_alias" = "all"; then
12329 all_targets=true
12330 else
12331 # Canonicalize the secondary target names.
12332 result=`$ac_config_sub $targ_alias 2>/dev/null`
12333 if test -n "$result"; then
12334 targ=$result
12335 else
12336 targ=$targ_alias
12337 fi
12338
12339 . ${srcdir}/configure.tgt
12340
12341 if test "$targ" = "$target"; then
12342 EMUL=$targ_emul
12343 fi
12344
12345 if test x${want64} = xfalse; then
12346 . ${srcdir}/../bfd/config.bfd
12347 fi
12348
12349 if test x${want64} = xtrue; then
12350 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
12351 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
12352 fi
12353
12354 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
12355 case " $all_emuls " in
12356 *" e${i}.o "*) ;;
12357 *)
12358 all_emuls="$all_emuls e${i}.o"
12359 eval result=\$tdir_$i
12360 test -z "$result" && result=$targ_alias
12361 echo tdir_$i=$result >> tdirs
12362 ;;
12363 esac
12364 done
12365
12366 for i in $targ_emul $targ_extra_libpath; do
12367 case " $all_libpath " in
12368 *" ${i} "*) ;;
12369 *)
12370 if test -z "$all_libpath"; then
12371 all_libpath=${i}
12372 else
12373 all_libpath="$all_libpath ${i}"
12374 fi
12375 ;;
12376 esac
12377 done
12378
12379 for i in $targ_extra_ofiles; do
12380 case " $all_emul_extras " in
12381 *" ${i} "*) ;;
12382 *)
12383 all_emul_extras="$all_emul_extras ${i}"
12384 ;;
12385 esac
12386 done
12387 fi
12388 done
12389
12390
12391
12392 TDIRS=tdirs
12393
12394
12395 if test x${all_targets} = xtrue; then
12396 if test x${want64} = xfalse; then
12397 echo "$as_me:$LINENO: checking for long" >&5
12398 echo $ECHO_N "checking for long... $ECHO_C" >&6
12399 if test "${ac_cv_type_long+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12401 else
12402 cat >conftest.$ac_ext <<_ACEOF
12403 /* confdefs.h. */
12404 _ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h. */
12408 $ac_includes_default
12409 int
12410 main ()
12411 {
12412 if ((long *) 0)
12413 return 0;
12414 if (sizeof (long))
12415 return 0;
12416 ;
12417 return 0;
12418 }
12419 _ACEOF
12420 rm -f conftest.$ac_objext
12421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12422 (eval $ac_compile) 2>conftest.er1
12423 ac_status=$?
12424 grep -v '^ *+' conftest.er1 >conftest.err
12425 rm -f conftest.er1
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } &&
12429 { ac_try='test -z "$ac_c_werror_flag"
12430 || test ! -s conftest.err'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12433 ac_status=$?
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; } &&
12436 { ac_try='test -s conftest.$ac_objext'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12439 ac_status=$?
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12442 ac_cv_type_long=yes
12443 else
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12446
12447 ac_cv_type_long=no
12448 fi
12449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12450 fi
12451 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12452 echo "${ECHO_T}$ac_cv_type_long" >&6
12453
12454 echo "$as_me:$LINENO: checking size of long" >&5
12455 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12456 if test "${ac_cv_sizeof_long+set}" = set; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 else
12459 if test "$ac_cv_type_long" = yes; then
12460 # The cast to unsigned long works around a bug in the HP C Compiler
12461 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12462 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12463 # This bug is HP SR number 8606223364.
12464 if test "$cross_compiling" = yes; then
12465 # Depending upon the size, compute the lo and hi bounds.
12466 cat >conftest.$ac_ext <<_ACEOF
12467 /* confdefs.h. */
12468 _ACEOF
12469 cat confdefs.h >>conftest.$ac_ext
12470 cat >>conftest.$ac_ext <<_ACEOF
12471 /* end confdefs.h. */
12472 $ac_includes_default
12473 int
12474 main ()
12475 {
12476 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12477 test_array [0] = 0
12478
12479 ;
12480 return 0;
12481 }
12482 _ACEOF
12483 rm -f conftest.$ac_objext
12484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>conftest.er1
12486 ac_status=$?
12487 grep -v '^ *+' conftest.er1 >conftest.err
12488 rm -f conftest.er1
12489 cat conftest.err >&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } &&
12492 { ac_try='test -z "$ac_c_werror_flag"
12493 || test ! -s conftest.err'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; } &&
12499 { ac_try='test -s conftest.$ac_objext'
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12502 ac_status=$?
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; }; then
12505 ac_lo=0 ac_mid=0
12506 while :; do
12507 cat >conftest.$ac_ext <<_ACEOF
12508 /* confdefs.h. */
12509 _ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h. */
12513 $ac_includes_default
12514 int
12515 main ()
12516 {
12517 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12518 test_array [0] = 0
12519
12520 ;
12521 return 0;
12522 }
12523 _ACEOF
12524 rm -f conftest.$ac_objext
12525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12526 (eval $ac_compile) 2>conftest.er1
12527 ac_status=$?
12528 grep -v '^ *+' conftest.er1 >conftest.err
12529 rm -f conftest.er1
12530 cat conftest.err >&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); } &&
12533 { ac_try='test -z "$ac_c_werror_flag"
12534 || test ! -s conftest.err'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; } &&
12540 { ac_try='test -s conftest.$ac_objext'
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; }; then
12546 ac_hi=$ac_mid; break
12547 else
12548 echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12550
12551 ac_lo=`expr $ac_mid + 1`
12552 if test $ac_lo -le $ac_mid; then
12553 ac_lo= ac_hi=
12554 break
12555 fi
12556 ac_mid=`expr 2 '*' $ac_mid + 1`
12557 fi
12558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12559 done
12560 else
12561 echo "$as_me: failed program was:" >&5
12562 sed 's/^/| /' conftest.$ac_ext >&5
12563
12564 cat >conftest.$ac_ext <<_ACEOF
12565 /* confdefs.h. */
12566 _ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12570 $ac_includes_default
12571 int
12572 main ()
12573 {
12574 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12575 test_array [0] = 0
12576
12577 ;
12578 return 0;
12579 }
12580 _ACEOF
12581 rm -f conftest.$ac_objext
12582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12583 (eval $ac_compile) 2>conftest.er1
12584 ac_status=$?
12585 grep -v '^ *+' conftest.er1 >conftest.err
12586 rm -f conftest.er1
12587 cat conftest.err >&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } &&
12590 { ac_try='test -z "$ac_c_werror_flag"
12591 || test ! -s conftest.err'
12592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593 (eval $ac_try) 2>&5
12594 ac_status=$?
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; } &&
12597 { ac_try='test -s conftest.$ac_objext'
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12600 ac_status=$?
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; }; then
12603 ac_hi=-1 ac_mid=-1
12604 while :; do
12605 cat >conftest.$ac_ext <<_ACEOF
12606 /* confdefs.h. */
12607 _ACEOF
12608 cat confdefs.h >>conftest.$ac_ext
12609 cat >>conftest.$ac_ext <<_ACEOF
12610 /* end confdefs.h. */
12611 $ac_includes_default
12612 int
12613 main ()
12614 {
12615 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12616 test_array [0] = 0
12617
12618 ;
12619 return 0;
12620 }
12621 _ACEOF
12622 rm -f conftest.$ac_objext
12623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12624 (eval $ac_compile) 2>conftest.er1
12625 ac_status=$?
12626 grep -v '^ *+' conftest.er1 >conftest.err
12627 rm -f conftest.er1
12628 cat conftest.err >&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } &&
12631 { ac_try='test -z "$ac_c_werror_flag"
12632 || test ! -s conftest.err'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; } &&
12638 { ac_try='test -s conftest.$ac_objext'
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12641 ac_status=$?
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; }; then
12644 ac_lo=$ac_mid; break
12645 else
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12648
12649 ac_hi=`expr '(' $ac_mid ')' - 1`
12650 if test $ac_mid -le $ac_hi; then
12651 ac_lo= ac_hi=
12652 break
12653 fi
12654 ac_mid=`expr 2 '*' $ac_mid`
12655 fi
12656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12657 done
12658 else
12659 echo "$as_me: failed program was:" >&5
12660 sed 's/^/| /' conftest.$ac_ext >&5
12661
12662 ac_lo= ac_hi=
12663 fi
12664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12665 fi
12666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12667 # Binary search between lo and hi bounds.
12668 while test "x$ac_lo" != "x$ac_hi"; do
12669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12670 cat >conftest.$ac_ext <<_ACEOF
12671 /* confdefs.h. */
12672 _ACEOF
12673 cat confdefs.h >>conftest.$ac_ext
12674 cat >>conftest.$ac_ext <<_ACEOF
12675 /* end confdefs.h. */
12676 $ac_includes_default
12677 int
12678 main ()
12679 {
12680 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12681 test_array [0] = 0
12682
12683 ;
12684 return 0;
12685 }
12686 _ACEOF
12687 rm -f conftest.$ac_objext
12688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12689 (eval $ac_compile) 2>conftest.er1
12690 ac_status=$?
12691 grep -v '^ *+' conftest.er1 >conftest.err
12692 rm -f conftest.er1
12693 cat conftest.err >&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); } &&
12696 { ac_try='test -z "$ac_c_werror_flag"
12697 || test ! -s conftest.err'
12698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699 (eval $ac_try) 2>&5
12700 ac_status=$?
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; } &&
12703 { ac_try='test -s conftest.$ac_objext'
12704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12705 (eval $ac_try) 2>&5
12706 ac_status=$?
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; }; then
12709 ac_hi=$ac_mid
12710 else
12711 echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12713
12714 ac_lo=`expr '(' $ac_mid ')' + 1`
12715 fi
12716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12717 done
12718 case $ac_lo in
12719 ?*) ac_cv_sizeof_long=$ac_lo;;
12720 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12721 See \`config.log' for more details." >&5
12722 echo "$as_me: error: cannot compute sizeof (long), 77
12723 See \`config.log' for more details." >&2;}
12724 { (exit 1); exit 1; }; } ;;
12725 esac
12726 else
12727 if test "$cross_compiling" = yes; then
12728 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12729 See \`config.log' for more details." >&5
12730 echo "$as_me: error: cannot run test program while cross compiling
12731 See \`config.log' for more details." >&2;}
12732 { (exit 1); exit 1; }; }
12733 else
12734 cat >conftest.$ac_ext <<_ACEOF
12735 /* confdefs.h. */
12736 _ACEOF
12737 cat confdefs.h >>conftest.$ac_ext
12738 cat >>conftest.$ac_ext <<_ACEOF
12739 /* end confdefs.h. */
12740 $ac_includes_default
12741 long longval () { return (long) (sizeof (long)); }
12742 unsigned long ulongval () { return (long) (sizeof (long)); }
12743 #include <stdio.h>
12744 #include <stdlib.h>
12745 int
12746 main ()
12747 {
12748
12749 FILE *f = fopen ("conftest.val", "w");
12750 if (! f)
12751 exit (1);
12752 if (((long) (sizeof (long))) < 0)
12753 {
12754 long i = longval ();
12755 if (i != ((long) (sizeof (long))))
12756 exit (1);
12757 fprintf (f, "%ld\n", i);
12758 }
12759 else
12760 {
12761 unsigned long i = ulongval ();
12762 if (i != ((long) (sizeof (long))))
12763 exit (1);
12764 fprintf (f, "%lu\n", i);
12765 }
12766 exit (ferror (f) || fclose (f) != 0);
12767
12768 ;
12769 return 0;
12770 }
12771 _ACEOF
12772 rm -f conftest$ac_exeext
12773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12774 (eval $ac_link) 2>&5
12775 ac_status=$?
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779 (eval $ac_try) 2>&5
12780 ac_status=$?
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; }; then
12783 ac_cv_sizeof_long=`cat conftest.val`
12784 else
12785 echo "$as_me: program exited with status $ac_status" >&5
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12788
12789 ( exit $ac_status )
12790 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12791 See \`config.log' for more details." >&5
12792 echo "$as_me: error: cannot compute sizeof (long), 77
12793 See \`config.log' for more details." >&2;}
12794 { (exit 1); exit 1; }; }
12795 fi
12796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12797 fi
12798 fi
12799 rm -f conftest.val
12800 else
12801 ac_cv_sizeof_long=0
12802 fi
12803 fi
12804 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12805 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12806 cat >>confdefs.h <<_ACEOF
12807 #define SIZEOF_LONG $ac_cv_sizeof_long
12808 _ACEOF
12809
12810
12811 if test "x${ac_cv_sizeof_long}" = "x8"; then
12812 want64=true
12813 fi
12814 fi
12815 if test x${want64} = xtrue; then
12816 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
12817 else
12818 EMULATION_OFILES='$(ALL_EMULATIONS)'
12819 fi
12820 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
12821 else
12822 EMULATION_OFILES=$all_emuls
12823 EMUL_EXTRA_OFILES=$all_emul_extras
12824 fi
12825
12826
12827
12828
12829 EMULATION_LIBPATH=$all_libpath
12830
12831
12832 if test x${enable_static} = xno; then
12833 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
12834 else
12835 TESTBFDLIB="../bfd/.libs/libbfd.a"
12836 fi
12837
12838
12839 target_vendor=${target_vendor=$host_vendor}
12840 case "$target_vendor" in
12841 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
12842 *) EXTRA_SHLIB_EXTENSION= ;;
12843 esac
12844
12845 case "$target_os" in
12846 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
12847 esac
12848
12849 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
12850
12851 cat >>confdefs.h <<_ACEOF
12852 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
12853 _ACEOF
12854
12855 fi
12856
12857
12858
12859
12860
12861 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
12862 cat >confcache <<\_ACEOF
12863 # This file is a shell script that caches the results of configure
12864 # tests run on this system so they can be shared between configure
12865 # scripts and configure runs, see configure's option --config-cache.
12866 # It is not useful on other systems. If it contains results you don't
12867 # want to keep, you may remove or edit it.
12868 #
12869 # config.status only pays attention to the cache file if you give it
12870 # the --recheck option to rerun configure.
12871 #
12872 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12873 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12874 # following values.
12875
12876 _ACEOF
12877
12878 # The following way of writing the cache mishandles newlines in values,
12879 # but we know of no workaround that is simple, portable, and efficient.
12880 # So, don't put newlines in cache variables' values.
12881 # Ultrix sh set writes to stderr and can't be redirected directly,
12882 # and sets the high bit in the cache file unless we assign to the vars.
12883 {
12884 (set) 2>&1 |
12885 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12886 *ac_space=\ *)
12887 # `set' does not quote correctly, so add quotes (double-quote
12888 # substitution turns \\\\ into \\, and sed turns \\ into \).
12889 sed -n \
12890 "s/'/'\\\\''/g;
12891 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12892 ;;
12893 *)
12894 # `set' quotes correctly as required by POSIX, so do not add quotes.
12895 sed -n \
12896 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12897 ;;
12898 esac;
12899 } |
12900 sed '
12901 t clear
12902 : clear
12903 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12904 t end
12905 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12906 : end' >>confcache
12907 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12908 if test -w $cache_file; then
12909 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12910 cat confcache >$cache_file
12911 else
12912 echo "not updating unwritable cache $cache_file"
12913 fi
12914 fi
12915 rm -f confcache
12916
12917 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12918 # Let make expand exec_prefix.
12919 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12920
12921 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12922 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12923 # trailing colons and then remove the whole line if VPATH becomes empty
12924 # (actually we leave an empty line to preserve line numbers).
12925 if test "x$srcdir" = x.; then
12926 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12927 s/:*\$(srcdir):*/:/;
12928 s/:*\${srcdir}:*/:/;
12929 s/:*@srcdir@:*/:/;
12930 s/^\([^=]*=[ ]*\):*/\1/;
12931 s/:*$//;
12932 s/^[^=]*=[ ]*$//;
12933 }'
12934 fi
12935
12936 DEFS=-DHAVE_CONFIG_H
12937
12938 ac_libobjs=
12939 ac_ltlibobjs=
12940 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12941 # 1. Remove the extension, and $U if already installed.
12942 ac_i=`echo "$ac_i" |
12943 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12944 # 2. Add them.
12945 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12946 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12947 done
12948 LIBOBJS=$ac_libobjs
12949
12950 LTLIBOBJS=$ac_ltlibobjs
12951
12952
12953 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12954 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12955 Usually this means the macro was only invoked conditionally." >&5
12956 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12957 Usually this means the macro was only invoked conditionally." >&2;}
12958 { (exit 1); exit 1; }; }
12959 fi
12960 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12961 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12962 Usually this means the macro was only invoked conditionally." >&5
12963 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12964 Usually this means the macro was only invoked conditionally." >&2;}
12965 { (exit 1); exit 1; }; }
12966 fi
12967 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12968 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12969 Usually this means the macro was only invoked conditionally." >&5
12970 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12971 Usually this means the macro was only invoked conditionally." >&2;}
12972 { (exit 1); exit 1; }; }
12973 fi
12974 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
12975 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
12976 Usually this means the macro was only invoked conditionally." >&5
12977 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
12978 Usually this means the macro was only invoked conditionally." >&2;}
12979 { (exit 1); exit 1; }; }
12980 fi
12981
12982 : ${CONFIG_STATUS=./config.status}
12983 ac_clean_files_save=$ac_clean_files
12984 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12985 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12986 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12987 cat >$CONFIG_STATUS <<_ACEOF
12988 #! $SHELL
12989 # Generated by $as_me.
12990 # Run this file to recreate the current configuration.
12991 # Compiler output produced by configure, useful for debugging
12992 # configure, is in config.log if it exists.
12993
12994 debug=false
12995 ac_cs_recheck=false
12996 ac_cs_silent=false
12997 SHELL=\${CONFIG_SHELL-$SHELL}
12998 _ACEOF
12999
13000 cat >>$CONFIG_STATUS <<\_ACEOF
13001 ## --------------------- ##
13002 ## M4sh Initialization. ##
13003 ## --------------------- ##
13004
13005 # Be Bourne compatible
13006 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13007 emulate sh
13008 NULLCMD=:
13009 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13010 # is contrary to our usage. Disable this feature.
13011 alias -g '${1+"$@"}'='"$@"'
13012 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13013 set -o posix
13014 fi
13015 DUALCASE=1; export DUALCASE # for MKS sh
13016
13017 # Support unset when possible.
13018 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13019 as_unset=unset
13020 else
13021 as_unset=false
13022 fi
13023
13024
13025 # Work around bugs in pre-3.0 UWIN ksh.
13026 $as_unset ENV MAIL MAILPATH
13027 PS1='$ '
13028 PS2='> '
13029 PS4='+ '
13030
13031 # NLS nuisances.
13032 for as_var in \
13033 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13034 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13035 LC_TELEPHONE LC_TIME
13036 do
13037 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13038 eval $as_var=C; export $as_var
13039 else
13040 $as_unset $as_var
13041 fi
13042 done
13043
13044 # Required to use basename.
13045 if expr a : '\(a\)' >/dev/null 2>&1; then
13046 as_expr=expr
13047 else
13048 as_expr=false
13049 fi
13050
13051 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13052 as_basename=basename
13053 else
13054 as_basename=false
13055 fi
13056
13057
13058 # Name of the executable.
13059 as_me=`$as_basename "$0" ||
13060 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13061 X"$0" : 'X\(//\)$' \| \
13062 X"$0" : 'X\(/\)$' \| \
13063 . : '\(.\)' 2>/dev/null ||
13064 echo X/"$0" |
13065 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13066 /^X\/\(\/\/\)$/{ s//\1/; q; }
13067 /^X\/\(\/\).*/{ s//\1/; q; }
13068 s/.*/./; q'`
13069
13070
13071 # PATH needs CR, and LINENO needs CR and PATH.
13072 # Avoid depending upon Character Ranges.
13073 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13074 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13075 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13076 as_cr_digits='0123456789'
13077 as_cr_alnum=$as_cr_Letters$as_cr_digits
13078
13079 # The user is always right.
13080 if test "${PATH_SEPARATOR+set}" != set; then
13081 echo "#! /bin/sh" >conf$$.sh
13082 echo "exit 0" >>conf$$.sh
13083 chmod +x conf$$.sh
13084 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13085 PATH_SEPARATOR=';'
13086 else
13087 PATH_SEPARATOR=:
13088 fi
13089 rm -f conf$$.sh
13090 fi
13091
13092
13093 as_lineno_1=$LINENO
13094 as_lineno_2=$LINENO
13095 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13096 test "x$as_lineno_1" != "x$as_lineno_2" &&
13097 test "x$as_lineno_3" = "x$as_lineno_2" || {
13098 # Find who we are. Look in the path if we contain no path at all
13099 # relative or not.
13100 case $0 in
13101 *[\\/]* ) as_myself=$0 ;;
13102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13103 for as_dir in $PATH
13104 do
13105 IFS=$as_save_IFS
13106 test -z "$as_dir" && as_dir=.
13107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13108 done
13109
13110 ;;
13111 esac
13112 # We did not find ourselves, most probably we were run as `sh COMMAND'
13113 # in which case we are not to be found in the path.
13114 if test "x$as_myself" = x; then
13115 as_myself=$0
13116 fi
13117 if test ! -f "$as_myself"; then
13118 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13119 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13120 { (exit 1); exit 1; }; }
13121 fi
13122 case $CONFIG_SHELL in
13123 '')
13124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13125 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13126 do
13127 IFS=$as_save_IFS
13128 test -z "$as_dir" && as_dir=.
13129 for as_base in sh bash ksh sh5; do
13130 case $as_dir in
13131 /*)
13132 if ("$as_dir/$as_base" -c '
13133 as_lineno_1=$LINENO
13134 as_lineno_2=$LINENO
13135 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13136 test "x$as_lineno_1" != "x$as_lineno_2" &&
13137 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13138 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13139 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13140 CONFIG_SHELL=$as_dir/$as_base
13141 export CONFIG_SHELL
13142 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13143 fi;;
13144 esac
13145 done
13146 done
13147 ;;
13148 esac
13149
13150 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13151 # uniformly replaced by the line number. The first 'sed' inserts a
13152 # line-number line before each line; the second 'sed' does the real
13153 # work. The second script uses 'N' to pair each line-number line
13154 # with the numbered line, and appends trailing '-' during
13155 # substitution so that $LINENO is not a special case at line end.
13156 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13157 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13158 sed '=' <$as_myself |
13159 sed '
13160 N
13161 s,$,-,
13162 : loop
13163 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13164 t loop
13165 s,-$,,
13166 s,^['$as_cr_digits']*\n,,
13167 ' >$as_me.lineno &&
13168 chmod +x $as_me.lineno ||
13169 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13170 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13171 { (exit 1); exit 1; }; }
13172
13173 # Don't try to exec as it changes $[0], causing all sort of problems
13174 # (the dirname of $[0] is not the place where we might find the
13175 # original and so on. Autoconf is especially sensible to this).
13176 . ./$as_me.lineno
13177 # Exit status is that of the last command.
13178 exit
13179 }
13180
13181
13182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13183 *c*,-n*) ECHO_N= ECHO_C='
13184 ' ECHO_T=' ' ;;
13185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13187 esac
13188
13189 if expr a : '\(a\)' >/dev/null 2>&1; then
13190 as_expr=expr
13191 else
13192 as_expr=false
13193 fi
13194
13195 rm -f conf$$ conf$$.exe conf$$.file
13196 echo >conf$$.file
13197 if ln -s conf$$.file conf$$ 2>/dev/null; then
13198 # We could just check for DJGPP; but this test a) works b) is more generic
13199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13200 if test -f conf$$.exe; then
13201 # Don't use ln at all; we don't have any links
13202 as_ln_s='cp -p'
13203 else
13204 as_ln_s='ln -s'
13205 fi
13206 elif ln conf$$.file conf$$ 2>/dev/null; then
13207 as_ln_s=ln
13208 else
13209 as_ln_s='cp -p'
13210 fi
13211 rm -f conf$$ conf$$.exe conf$$.file
13212
13213 if mkdir -p . 2>/dev/null; then
13214 as_mkdir_p=:
13215 else
13216 test -d ./-p && rmdir ./-p
13217 as_mkdir_p=false
13218 fi
13219
13220 as_executable_p="test -f"
13221
13222 # Sed expression to map a string onto a valid CPP name.
13223 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13224
13225 # Sed expression to map a string onto a valid variable name.
13226 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13227
13228
13229 # IFS
13230 # We need space, tab and new line, in precisely that order.
13231 as_nl='
13232 '
13233 IFS=" $as_nl"
13234
13235 # CDPATH.
13236 $as_unset CDPATH
13237
13238 exec 6>&1
13239
13240 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13241 # report actual input values of CONFIG_FILES etc. instead of their
13242 # values after options handling. Logging --version etc. is OK.
13243 exec 5>>config.log
13244 {
13245 echo
13246 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13247 ## Running $as_me. ##
13248 _ASBOX
13249 } >&5
13250 cat >&5 <<_CSEOF
13251
13252 This file was extended by $as_me, which was
13253 generated by GNU Autoconf 2.59. Invocation command line was
13254
13255 CONFIG_FILES = $CONFIG_FILES
13256 CONFIG_HEADERS = $CONFIG_HEADERS
13257 CONFIG_LINKS = $CONFIG_LINKS
13258 CONFIG_COMMANDS = $CONFIG_COMMANDS
13259 $ $0 $@
13260
13261 _CSEOF
13262 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13263 echo >&5
13264 _ACEOF
13265
13266 # Files that config.status was made for.
13267 if test -n "$ac_config_files"; then
13268 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13269 fi
13270
13271 if test -n "$ac_config_headers"; then
13272 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13273 fi
13274
13275 if test -n "$ac_config_links"; then
13276 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13277 fi
13278
13279 if test -n "$ac_config_commands"; then
13280 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13281 fi
13282
13283 cat >>$CONFIG_STATUS <<\_ACEOF
13284
13285 ac_cs_usage="\
13286 \`$as_me' instantiates files from templates according to the
13287 current configuration.
13288
13289 Usage: $0 [OPTIONS] [FILE]...
13290
13291 -h, --help print this help, then exit
13292 -V, --version print version number, then exit
13293 -q, --quiet do not print progress messages
13294 -d, --debug don't remove temporary files
13295 --recheck update $as_me by reconfiguring in the same conditions
13296 --file=FILE[:TEMPLATE]
13297 instantiate the configuration file FILE
13298 --header=FILE[:TEMPLATE]
13299 instantiate the configuration header FILE
13300
13301 Configuration files:
13302 $config_files
13303
13304 Configuration headers:
13305 $config_headers
13306
13307 Configuration commands:
13308 $config_commands
13309
13310 Report bugs to <bug-autoconf@gnu.org>."
13311 _ACEOF
13312
13313 cat >>$CONFIG_STATUS <<_ACEOF
13314 ac_cs_version="\\
13315 config.status
13316 configured by $0, generated by GNU Autoconf 2.59,
13317 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13318
13319 Copyright (C) 2003 Free Software Foundation, Inc.
13320 This config.status script is free software; the Free Software Foundation
13321 gives unlimited permission to copy, distribute and modify it."
13322 srcdir=$srcdir
13323 INSTALL="$INSTALL"
13324 _ACEOF
13325
13326 cat >>$CONFIG_STATUS <<\_ACEOF
13327 # If no file are specified by the user, then we need to provide default
13328 # value. By we need to know if files were specified by the user.
13329 ac_need_defaults=:
13330 while test $# != 0
13331 do
13332 case $1 in
13333 --*=*)
13334 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13335 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13336 ac_shift=:
13337 ;;
13338 -*)
13339 ac_option=$1
13340 ac_optarg=$2
13341 ac_shift=shift
13342 ;;
13343 *) # This is not an option, so the user has probably given explicit
13344 # arguments.
13345 ac_option=$1
13346 ac_need_defaults=false;;
13347 esac
13348
13349 case $ac_option in
13350 # Handling of the options.
13351 _ACEOF
13352 cat >>$CONFIG_STATUS <<\_ACEOF
13353 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13354 ac_cs_recheck=: ;;
13355 --version | --vers* | -V )
13356 echo "$ac_cs_version"; exit 0 ;;
13357 --he | --h)
13358 # Conflict between --help and --header
13359 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13360 Try \`$0 --help' for more information." >&5
13361 echo "$as_me: error: ambiguous option: $1
13362 Try \`$0 --help' for more information." >&2;}
13363 { (exit 1); exit 1; }; };;
13364 --help | --hel | -h )
13365 echo "$ac_cs_usage"; exit 0 ;;
13366 --debug | --d* | -d )
13367 debug=: ;;
13368 --file | --fil | --fi | --f )
13369 $ac_shift
13370 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13371 ac_need_defaults=false;;
13372 --header | --heade | --head | --hea )
13373 $ac_shift
13374 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13375 ac_need_defaults=false;;
13376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13377 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13378 ac_cs_silent=: ;;
13379
13380 # This is an error.
13381 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13382 Try \`$0 --help' for more information." >&5
13383 echo "$as_me: error: unrecognized option: $1
13384 Try \`$0 --help' for more information." >&2;}
13385 { (exit 1); exit 1; }; } ;;
13386
13387 *) ac_config_targets="$ac_config_targets $1" ;;
13388
13389 esac
13390 shift
13391 done
13392
13393 ac_configure_extra_args=
13394
13395 if $ac_cs_silent; then
13396 exec 6>/dev/null
13397 ac_configure_extra_args="$ac_configure_extra_args --silent"
13398 fi
13399
13400 _ACEOF
13401 cat >>$CONFIG_STATUS <<_ACEOF
13402 if \$ac_cs_recheck; then
13403 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13404 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13405 fi
13406
13407 _ACEOF
13408
13409 cat >>$CONFIG_STATUS <<_ACEOF
13410 #
13411 # INIT-COMMANDS section.
13412 #
13413
13414 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13415
13416
13417 # The HP-UX ksh and POSIX shell print the target directory to stdout
13418 # if CDPATH is set.
13419 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13420
13421 sed_quote_subst='$sed_quote_subst'
13422 double_quote_subst='$double_quote_subst'
13423 delay_variable_subst='$delay_variable_subst'
13424 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13425 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13426 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13427 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13428 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13429 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13430 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13431 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13432 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13433 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13434 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13435 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13436 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13437 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13438 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13439 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13440 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13441 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13442 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13443 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13444 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13445 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13446 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13447 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13448 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13449 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13450 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13451 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13452 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13453 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13454 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13455 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13456 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13457 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13458 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13459 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13460 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13461 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13462 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13463 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13464 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13465 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13466 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13467 lt_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"`'
13468 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13469 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13470 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13471 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13472 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13473 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13474 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13475 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13476 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13477 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13478 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13479 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13480 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13481 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13482 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13483 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13484 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13485 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13486 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13487 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13488 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13489 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13490 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13491 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13492 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13493 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13494 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13495 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13496 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13497 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13498 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13499 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13500 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13501 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13502 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13503 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13504 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13505 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13506 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13507 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13508 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13509 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13510 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13511 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13512 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13513 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13514 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13515 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13516 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13517 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13518 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13519 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13520 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13521 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13522 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13523 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13524 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13525 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13526 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13527 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13528 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13529 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13530 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13531 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13532 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13533 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13534 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13535
13536 LTCC='$LTCC'
13537 LTCFLAGS='$LTCFLAGS'
13538 compiler='$compiler_DEFAULT'
13539
13540 # Quote evaled strings.
13541 for var in SED \
13542 GREP \
13543 EGREP \
13544 FGREP \
13545 LD \
13546 NM \
13547 LN_S \
13548 lt_SP2NL \
13549 lt_NL2SP \
13550 reload_flag \
13551 deplibs_check_method \
13552 file_magic_cmd \
13553 AR \
13554 AR_FLAGS \
13555 STRIP \
13556 RANLIB \
13557 CC \
13558 CFLAGS \
13559 compiler \
13560 lt_cv_sys_global_symbol_pipe \
13561 lt_cv_sys_global_symbol_to_cdecl \
13562 lt_cv_sys_global_symbol_to_c_name_address \
13563 SHELL \
13564 ECHO \
13565 lt_prog_compiler_no_builtin_flag \
13566 lt_prog_compiler_wl \
13567 lt_prog_compiler_pic \
13568 lt_prog_compiler_static \
13569 lt_cv_prog_compiler_c_o \
13570 need_locks \
13571 shrext_cmds \
13572 export_dynamic_flag_spec \
13573 whole_archive_flag_spec \
13574 compiler_needs_object \
13575 with_gnu_ld \
13576 allow_undefined_flag \
13577 no_undefined_flag \
13578 hardcode_libdir_flag_spec \
13579 hardcode_libdir_flag_spec_ld \
13580 hardcode_libdir_separator \
13581 fix_srcfile_path \
13582 exclude_expsyms \
13583 include_expsyms \
13584 file_list_spec \
13585 variables_saved_for_relink \
13586 libname_spec \
13587 library_names_spec \
13588 soname_spec \
13589 finish_eval \
13590 old_striplib \
13591 striplib; do
13592 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13593 *[\\\\\\\`\\"\\\$]*)
13594 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13595 ;;
13596 *)
13597 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13598 ;;
13599 esac
13600 done
13601
13602 # Double-quote double-evaled strings.
13603 for var in reload_cmds \
13604 old_postinstall_cmds \
13605 old_postuninstall_cmds \
13606 old_archive_cmds \
13607 extract_expsyms_cmds \
13608 old_archive_from_new_cmds \
13609 old_archive_from_expsyms_cmds \
13610 archive_cmds \
13611 archive_expsym_cmds \
13612 module_cmds \
13613 module_expsym_cmds \
13614 export_symbols_cmds \
13615 prelink_cmds \
13616 postinstall_cmds \
13617 postuninstall_cmds \
13618 finish_cmds \
13619 sys_lib_search_path_spec \
13620 sys_lib_dlsearch_path_spec; do
13621 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13622 *[\\\\\\\`\\"\\\$]*)
13623 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13624 ;;
13625 *)
13626 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13627 ;;
13628 esac
13629 done
13630
13631 # Fix-up fallback echo if it was mangled by the above quoting rules.
13632 case \$lt_ECHO in
13633 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13634 ;;
13635 esac
13636
13637 ac_aux_dir='$ac_aux_dir'
13638 xsi_shell='$xsi_shell'
13639 lt_shell_append='$lt_shell_append'
13640
13641 # See if we are running on zsh, and set the options which allow our
13642 # commands through without removal of \ escapes INIT.
13643 if test -n "\${ZSH_VERSION+set}" ; then
13644 setopt NO_GLOB_SUBST
13645 fi
13646
13647
13648 PACKAGE='$PACKAGE'
13649 VERSION='$VERSION'
13650 TIMESTAMP='$TIMESTAMP'
13651 RM='$RM'
13652 ofile='$ofile'
13653
13654
13655
13656 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13657 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13658 # from automake.
13659 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13660 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13661 LINGUAS="${LINGUAS-%UNSET%}"
13662
13663
13664 _ACEOF
13665
13666
13667
13668 cat >>$CONFIG_STATUS <<\_ACEOF
13669 for ac_config_target in $ac_config_targets
13670 do
13671 case "$ac_config_target" in
13672 # Handling of arguments.
13673 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13674 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13675 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13676 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13677 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13678 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13679 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13680 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13681 { (exit 1); exit 1; }; };;
13682 esac
13683 done
13684
13685 # If the user did not use the arguments to specify the items to instantiate,
13686 # then the envvar interface is used. Set only those that are not.
13687 # We use the long form for the default assignment because of an extremely
13688 # bizarre bug on SunOS 4.1.3.
13689 if $ac_need_defaults; then
13690 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13691 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13692 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13693 fi
13694
13695 # Have a temporary directory for convenience. Make it in the build tree
13696 # simply because there is no reason to put it here, and in addition,
13697 # creating and moving files from /tmp can sometimes cause problems.
13698 # Create a temporary directory, and hook for its removal unless debugging.
13699 $debug ||
13700 {
13701 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13702 trap '{ (exit 1); exit 1; }' 1 2 13 15
13703 }
13704
13705 # Create a (secure) tmp directory for tmp files.
13706
13707 {
13708 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13709 test -n "$tmp" && test -d "$tmp"
13710 } ||
13711 {
13712 tmp=./confstat$$-$RANDOM
13713 (umask 077 && mkdir $tmp)
13714 } ||
13715 {
13716 echo "$me: cannot create a temporary directory in ." >&2
13717 { (exit 1); exit 1; }
13718 }
13719
13720 _ACEOF
13721
13722 cat >>$CONFIG_STATUS <<_ACEOF
13723
13724 #
13725 # CONFIG_FILES section.
13726 #
13727
13728 # No need to generate the scripts if there are no CONFIG_FILES.
13729 # This happens for instance when ./config.status config.h
13730 if test -n "\$CONFIG_FILES"; then
13731 # Protect against being on the right side of a sed subst in config.status.
13732 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13733 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13734 s,@SHELL@,$SHELL,;t t
13735 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13736 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13737 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13738 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13739 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13740 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13741 s,@exec_prefix@,$exec_prefix,;t t
13742 s,@prefix@,$prefix,;t t
13743 s,@program_transform_name@,$program_transform_name,;t t
13744 s,@bindir@,$bindir,;t t
13745 s,@sbindir@,$sbindir,;t t
13746 s,@libexecdir@,$libexecdir,;t t
13747 s,@datadir@,$datadir,;t t
13748 s,@sysconfdir@,$sysconfdir,;t t
13749 s,@sharedstatedir@,$sharedstatedir,;t t
13750 s,@localstatedir@,$localstatedir,;t t
13751 s,@libdir@,$libdir,;t t
13752 s,@includedir@,$includedir,;t t
13753 s,@oldincludedir@,$oldincludedir,;t t
13754 s,@infodir@,$infodir,;t t
13755 s,@mandir@,$mandir,;t t
13756 s,@build_alias@,$build_alias,;t t
13757 s,@host_alias@,$host_alias,;t t
13758 s,@target_alias@,$target_alias,;t t
13759 s,@DEFS@,$DEFS,;t t
13760 s,@ECHO_C@,$ECHO_C,;t t
13761 s,@ECHO_N@,$ECHO_N,;t t
13762 s,@ECHO_T@,$ECHO_T,;t t
13763 s,@LIBS@,$LIBS,;t t
13764 s,@build@,$build,;t t
13765 s,@build_cpu@,$build_cpu,;t t
13766 s,@build_vendor@,$build_vendor,;t t
13767 s,@build_os@,$build_os,;t t
13768 s,@host@,$host,;t t
13769 s,@host_cpu@,$host_cpu,;t t
13770 s,@host_vendor@,$host_vendor,;t t
13771 s,@host_os@,$host_os,;t t
13772 s,@target@,$target,;t t
13773 s,@target_cpu@,$target_cpu,;t t
13774 s,@target_vendor@,$target_vendor,;t t
13775 s,@target_os@,$target_os,;t t
13776 s,@CC@,$CC,;t t
13777 s,@CFLAGS@,$CFLAGS,;t t
13778 s,@LDFLAGS@,$LDFLAGS,;t t
13779 s,@CPPFLAGS@,$CPPFLAGS,;t t
13780 s,@ac_ct_CC@,$ac_ct_CC,;t t
13781 s,@EXEEXT@,$EXEEXT,;t t
13782 s,@OBJEXT@,$OBJEXT,;t t
13783 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13784 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13785 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13786 s,@CYGPATH_W@,$CYGPATH_W,;t t
13787 s,@PACKAGE@,$PACKAGE,;t t
13788 s,@VERSION@,$VERSION,;t t
13789 s,@ACLOCAL@,$ACLOCAL,;t t
13790 s,@AUTOCONF@,$AUTOCONF,;t t
13791 s,@AUTOMAKE@,$AUTOMAKE,;t t
13792 s,@AUTOHEADER@,$AUTOHEADER,;t t
13793 s,@MAKEINFO@,$MAKEINFO,;t t
13794 s,@install_sh@,$install_sh,;t t
13795 s,@STRIP@,$STRIP,;t t
13796 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13797 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13798 s,@mkdir_p@,$mkdir_p,;t t
13799 s,@AWK@,$AWK,;t t
13800 s,@SET_MAKE@,$SET_MAKE,;t t
13801 s,@am__leading_dot@,$am__leading_dot,;t t
13802 s,@AMTAR@,$AMTAR,;t t
13803 s,@am__tar@,$am__tar,;t t
13804 s,@am__untar@,$am__untar,;t t
13805 s,@DEPDIR@,$DEPDIR,;t t
13806 s,@am__include@,$am__include,;t t
13807 s,@am__quote@,$am__quote,;t t
13808 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13809 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13810 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13811 s,@CCDEPMODE@,$CCDEPMODE,;t t
13812 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13813 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13814 s,@LIBTOOL@,$LIBTOOL,;t t
13815 s,@SED@,$SED,;t t
13816 s,@EGREP@,$EGREP,;t t
13817 s,@FGREP@,$FGREP,;t t
13818 s,@GREP@,$GREP,;t t
13819 s,@LD@,$LD,;t t
13820 s,@DUMPBIN@,$DUMPBIN,;t t
13821 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13822 s,@NM@,$NM,;t t
13823 s,@LN_S@,$LN_S,;t t
13824 s,@AR@,$AR,;t t
13825 s,@ac_ct_AR@,$ac_ct_AR,;t t
13826 s,@RANLIB@,$RANLIB,;t t
13827 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13828 s,@lt_ECHO@,$lt_ECHO,;t t
13829 s,@CPP@,$CPP,;t t
13830 s,@use_sysroot@,$use_sysroot,;t t
13831 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13832 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13833 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13834 s,@NO_WERROR@,$NO_WERROR,;t t
13835 s,@USE_NLS@,$USE_NLS,;t t
13836 s,@LIBINTL@,$LIBINTL,;t t
13837 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13838 s,@INCINTL@,$INCINTL,;t t
13839 s,@XGETTEXT@,$XGETTEXT,;t t
13840 s,@GMSGFMT@,$GMSGFMT,;t t
13841 s,@POSUB@,$POSUB,;t t
13842 s,@CATALOGS@,$CATALOGS,;t t
13843 s,@DATADIRNAME@,$DATADIRNAME,;t t
13844 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13845 s,@GENCAT@,$GENCAT,;t t
13846 s,@CATOBJEXT@,$CATOBJEXT,;t t
13847 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13848 s,@MSGFMT@,$MSGFMT,;t t
13849 s,@MSGMERGE@,$MSGMERGE,;t t
13850 s,@YACC@,$YACC,;t t
13851 s,@LEX@,$LEX,;t t
13852 s,@LEXLIB@,$LEXLIB,;t t
13853 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13854 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13855 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13856 s,@MAINT@,$MAINT,;t t
13857 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
13858 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
13859 s,@HDEFINES@,$HDEFINES,;t t
13860 s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
13861 s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
13862 s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
13863 s,@STRINGIFY@,$STRINGIFY,;t t
13864 s,@EMUL@,$EMUL,;t t
13865 s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
13866 s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
13867 s,@LIB_PATH@,$LIB_PATH,;t t
13868 s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
13869 s,@TESTBFDLIB@,$TESTBFDLIB,;t t
13870 s,@datarootdir@,$datarootdir,;t t
13871 s,@docdir@,$docdir,;t t
13872 s,@htmldir@,$htmldir,;t t
13873 s,@LIBOBJS@,$LIBOBJS,;t t
13874 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13875 /@TDIRS@/r $TDIRS
13876 s,@TDIRS@,,;t t
13877 CEOF
13878
13879 _ACEOF
13880
13881 cat >>$CONFIG_STATUS <<\_ACEOF
13882 # Split the substitutions into bite-sized pieces for seds with
13883 # small command number limits, like on Digital OSF/1 and HP-UX.
13884 ac_max_sed_lines=48
13885 ac_sed_frag=1 # Number of current file.
13886 ac_beg=1 # First line for current file.
13887 ac_end=$ac_max_sed_lines # Line after last line for current file.
13888 ac_more_lines=:
13889 ac_sed_cmds=
13890 while $ac_more_lines; do
13891 if test $ac_beg -gt 1; then
13892 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13893 else
13894 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13895 fi
13896 if test ! -s $tmp/subs.frag; then
13897 ac_more_lines=false
13898 else
13899 # The purpose of the label and of the branching condition is to
13900 # speed up the sed processing (if there are no `@' at all, there
13901 # is no need to browse any of the substitutions).
13902 # These are the two extra sed commands mentioned above.
13903 (echo ':t
13904 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13905 if test -z "$ac_sed_cmds"; then
13906 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13907 else
13908 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13909 fi
13910 ac_sed_frag=`expr $ac_sed_frag + 1`
13911 ac_beg=$ac_end
13912 ac_end=`expr $ac_end + $ac_max_sed_lines`
13913 fi
13914 done
13915 if test -z "$ac_sed_cmds"; then
13916 ac_sed_cmds=cat
13917 fi
13918 fi # test -n "$CONFIG_FILES"
13919
13920 _ACEOF
13921 cat >>$CONFIG_STATUS <<\_ACEOF
13922 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13923 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13924 case $ac_file in
13925 - | *:- | *:-:* ) # input from stdin
13926 cat >$tmp/stdin
13927 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13928 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13929 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13930 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13931 * ) ac_file_in=$ac_file.in ;;
13932 esac
13933
13934 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13935 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13936 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13937 X"$ac_file" : 'X\(//\)[^/]' \| \
13938 X"$ac_file" : 'X\(//\)$' \| \
13939 X"$ac_file" : 'X\(/\)' \| \
13940 . : '\(.\)' 2>/dev/null ||
13941 echo X"$ac_file" |
13942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13943 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13944 /^X\(\/\/\)$/{ s//\1/; q; }
13945 /^X\(\/\).*/{ s//\1/; q; }
13946 s/.*/./; q'`
13947 { if $as_mkdir_p; then
13948 mkdir -p "$ac_dir"
13949 else
13950 as_dir="$ac_dir"
13951 as_dirs=
13952 while test ! -d "$as_dir"; do
13953 as_dirs="$as_dir $as_dirs"
13954 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13955 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13956 X"$as_dir" : 'X\(//\)[^/]' \| \
13957 X"$as_dir" : 'X\(//\)$' \| \
13958 X"$as_dir" : 'X\(/\)' \| \
13959 . : '\(.\)' 2>/dev/null ||
13960 echo X"$as_dir" |
13961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13962 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13963 /^X\(\/\/\)$/{ s//\1/; q; }
13964 /^X\(\/\).*/{ s//\1/; q; }
13965 s/.*/./; q'`
13966 done
13967 test ! -n "$as_dirs" || mkdir $as_dirs
13968 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13969 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13970 { (exit 1); exit 1; }; }; }
13971
13972 ac_builddir=.
13973
13974 if test "$ac_dir" != .; then
13975 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13976 # A "../" for each directory in $ac_dir_suffix.
13977 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13978 else
13979 ac_dir_suffix= ac_top_builddir=
13980 fi
13981
13982 case $srcdir in
13983 .) # No --srcdir option. We are building in place.
13984 ac_srcdir=.
13985 if test -z "$ac_top_builddir"; then
13986 ac_top_srcdir=.
13987 else
13988 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13989 fi ;;
13990 [\\/]* | ?:[\\/]* ) # Absolute path.
13991 ac_srcdir=$srcdir$ac_dir_suffix;
13992 ac_top_srcdir=$srcdir ;;
13993 *) # Relative path.
13994 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13995 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13996 esac
13997
13998 # Do not use `cd foo && pwd` to compute absolute paths, because
13999 # the directories may not exist.
14000 case `pwd` in
14001 .) ac_abs_builddir="$ac_dir";;
14002 *)
14003 case "$ac_dir" in
14004 .) ac_abs_builddir=`pwd`;;
14005 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14006 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14007 esac;;
14008 esac
14009 case $ac_abs_builddir in
14010 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14011 *)
14012 case ${ac_top_builddir}. in
14013 .) ac_abs_top_builddir=$ac_abs_builddir;;
14014 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14015 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14016 esac;;
14017 esac
14018 case $ac_abs_builddir in
14019 .) ac_abs_srcdir=$ac_srcdir;;
14020 *)
14021 case $ac_srcdir in
14022 .) ac_abs_srcdir=$ac_abs_builddir;;
14023 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14024 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14025 esac;;
14026 esac
14027 case $ac_abs_builddir in
14028 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14029 *)
14030 case $ac_top_srcdir in
14031 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14032 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14033 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14034 esac;;
14035 esac
14036
14037
14038 case $INSTALL in
14039 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14040 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14041 esac
14042
14043 if test x"$ac_file" != x-; then
14044 { echo "$as_me:$LINENO: creating $ac_file" >&5
14045 echo "$as_me: creating $ac_file" >&6;}
14046 rm -f "$ac_file"
14047 fi
14048 # Let's still pretend it is `configure' which instantiates (i.e., don't
14049 # use $as_me), people would be surprised to read:
14050 # /* config.h. Generated by config.status. */
14051 if test x"$ac_file" = x-; then
14052 configure_input=
14053 else
14054 configure_input="$ac_file. "
14055 fi
14056 configure_input=$configure_input"Generated from `echo $ac_file_in |
14057 sed 's,.*/,,'` by configure."
14058
14059 # First look for the input files in the build tree, otherwise in the
14060 # src tree.
14061 ac_file_inputs=`IFS=:
14062 for f in $ac_file_in; do
14063 case $f in
14064 -) echo $tmp/stdin ;;
14065 [\\/$]*)
14066 # Absolute (can't be DOS-style, as IFS=:)
14067 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14068 echo "$as_me: error: cannot find input file: $f" >&2;}
14069 { (exit 1); exit 1; }; }
14070 echo "$f";;
14071 *) # Relative
14072 if test -f "$f"; then
14073 # Build tree
14074 echo "$f"
14075 elif test -f "$srcdir/$f"; then
14076 # Source tree
14077 echo "$srcdir/$f"
14078 else
14079 # /dev/null tree
14080 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14081 echo "$as_me: error: cannot find input file: $f" >&2;}
14082 { (exit 1); exit 1; }; }
14083 fi;;
14084 esac
14085 done` || { (exit 1); exit 1; }
14086 _ACEOF
14087 cat >>$CONFIG_STATUS <<_ACEOF
14088 sed "$ac_vpsub
14089 $extrasub
14090 _ACEOF
14091 cat >>$CONFIG_STATUS <<\_ACEOF
14092 :t
14093 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14094 s,@configure_input@,$configure_input,;t t
14095 s,@srcdir@,$ac_srcdir,;t t
14096 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14097 s,@top_srcdir@,$ac_top_srcdir,;t t
14098 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14099 s,@builddir@,$ac_builddir,;t t
14100 s,@abs_builddir@,$ac_abs_builddir,;t t
14101 s,@top_builddir@,$ac_top_builddir,;t t
14102 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14103 s,@INSTALL@,$ac_INSTALL,;t t
14104 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14105 rm -f $tmp/stdin
14106 if test x"$ac_file" != x-; then
14107 mv $tmp/out $ac_file
14108 else
14109 cat $tmp/out
14110 rm -f $tmp/out
14111 fi
14112
14113 done
14114 _ACEOF
14115 cat >>$CONFIG_STATUS <<\_ACEOF
14116
14117 #
14118 # CONFIG_HEADER section.
14119 #
14120
14121 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14122 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14123 #
14124 # ac_d sets the value in "#define NAME VALUE" lines.
14125 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14126 ac_dB='[ ].*$,\1#\2'
14127 ac_dC=' '
14128 ac_dD=',;t'
14129 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14130 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14131 ac_uB='$,\1#\2define\3'
14132 ac_uC=' '
14133 ac_uD=',;t'
14134
14135 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14136 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14137 case $ac_file in
14138 - | *:- | *:-:* ) # input from stdin
14139 cat >$tmp/stdin
14140 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14141 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14142 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14143 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14144 * ) ac_file_in=$ac_file.in ;;
14145 esac
14146
14147 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14148 echo "$as_me: creating $ac_file" >&6;}
14149
14150 # First look for the input files in the build tree, otherwise in the
14151 # src tree.
14152 ac_file_inputs=`IFS=:
14153 for f in $ac_file_in; do
14154 case $f in
14155 -) echo $tmp/stdin ;;
14156 [\\/$]*)
14157 # Absolute (can't be DOS-style, as IFS=:)
14158 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14159 echo "$as_me: error: cannot find input file: $f" >&2;}
14160 { (exit 1); exit 1; }; }
14161 # Do quote $f, to prevent DOS paths from being IFS'd.
14162 echo "$f";;
14163 *) # Relative
14164 if test -f "$f"; then
14165 # Build tree
14166 echo "$f"
14167 elif test -f "$srcdir/$f"; then
14168 # Source tree
14169 echo "$srcdir/$f"
14170 else
14171 # /dev/null tree
14172 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14173 echo "$as_me: error: cannot find input file: $f" >&2;}
14174 { (exit 1); exit 1; }; }
14175 fi;;
14176 esac
14177 done` || { (exit 1); exit 1; }
14178 # Remove the trailing spaces.
14179 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14180
14181 _ACEOF
14182
14183 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14184 # `conftest.undefs', that substitutes the proper values into
14185 # config.h.in to produce config.h. The first handles `#define'
14186 # templates, and the second `#undef' templates.
14187 # And first: Protect against being on the right side of a sed subst in
14188 # config.status. Protect against being in an unquoted here document
14189 # in config.status.
14190 rm -f conftest.defines conftest.undefs
14191 # Using a here document instead of a string reduces the quoting nightmare.
14192 # Putting comments in sed scripts is not portable.
14193 #
14194 # `end' is used to avoid that the second main sed command (meant for
14195 # 0-ary CPP macros) applies to n-ary macro definitions.
14196 # See the Autoconf documentation for `clear'.
14197 cat >confdef2sed.sed <<\_ACEOF
14198 s/[\\&,]/\\&/g
14199 s,[\\$`],\\&,g
14200 t clear
14201 : clear
14202 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14203 t end
14204 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14205 : end
14206 _ACEOF
14207 # If some macros were called several times there might be several times
14208 # the same #defines, which is useless. Nevertheless, we may not want to
14209 # sort them, since we want the *last* AC-DEFINE to be honored.
14210 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14211 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14212 rm -f confdef2sed.sed
14213
14214 # This sed command replaces #undef with comments. This is necessary, for
14215 # example, in the case of _POSIX_SOURCE, which is predefined and required
14216 # on some systems where configure will not decide to define it.
14217 cat >>conftest.undefs <<\_ACEOF
14218 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14219 _ACEOF
14220
14221 # Break up conftest.defines because some shells have a limit on the size
14222 # of here documents, and old seds have small limits too (100 cmds).
14223 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14224 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14225 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14226 echo ' :' >>$CONFIG_STATUS
14227 rm -f conftest.tail
14228 while grep . conftest.defines >/dev/null
14229 do
14230 # Write a limited-size here document to $tmp/defines.sed.
14231 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14232 # Speed up: don't consider the non `#define' lines.
14233 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14234 # Work around the forget-to-reset-the-flag bug.
14235 echo 't clr' >>$CONFIG_STATUS
14236 echo ': clr' >>$CONFIG_STATUS
14237 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14238 echo 'CEOF
14239 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14240 rm -f $tmp/in
14241 mv $tmp/out $tmp/in
14242 ' >>$CONFIG_STATUS
14243 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14244 rm -f conftest.defines
14245 mv conftest.tail conftest.defines
14246 done
14247 rm -f conftest.defines
14248 echo ' fi # grep' >>$CONFIG_STATUS
14249 echo >>$CONFIG_STATUS
14250
14251 # Break up conftest.undefs because some shells have a limit on the size
14252 # of here documents, and old seds have small limits too (100 cmds).
14253 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14254 rm -f conftest.tail
14255 while grep . conftest.undefs >/dev/null
14256 do
14257 # Write a limited-size here document to $tmp/undefs.sed.
14258 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14259 # Speed up: don't consider the non `#undef'
14260 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14261 # Work around the forget-to-reset-the-flag bug.
14262 echo 't clr' >>$CONFIG_STATUS
14263 echo ': clr' >>$CONFIG_STATUS
14264 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14265 echo 'CEOF
14266 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14267 rm -f $tmp/in
14268 mv $tmp/out $tmp/in
14269 ' >>$CONFIG_STATUS
14270 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14271 rm -f conftest.undefs
14272 mv conftest.tail conftest.undefs
14273 done
14274 rm -f conftest.undefs
14275
14276 cat >>$CONFIG_STATUS <<\_ACEOF
14277 # Let's still pretend it is `configure' which instantiates (i.e., don't
14278 # use $as_me), people would be surprised to read:
14279 # /* config.h. Generated by config.status. */
14280 if test x"$ac_file" = x-; then
14281 echo "/* Generated by configure. */" >$tmp/config.h
14282 else
14283 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14284 fi
14285 cat $tmp/in >>$tmp/config.h
14286 rm -f $tmp/in
14287 if test x"$ac_file" != x-; then
14288 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14289 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14290 echo "$as_me: $ac_file is unchanged" >&6;}
14291 else
14292 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14293 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14294 X"$ac_file" : 'X\(//\)[^/]' \| \
14295 X"$ac_file" : 'X\(//\)$' \| \
14296 X"$ac_file" : 'X\(/\)' \| \
14297 . : '\(.\)' 2>/dev/null ||
14298 echo X"$ac_file" |
14299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14300 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14301 /^X\(\/\/\)$/{ s//\1/; q; }
14302 /^X\(\/\).*/{ s//\1/; q; }
14303 s/.*/./; q'`
14304 { if $as_mkdir_p; then
14305 mkdir -p "$ac_dir"
14306 else
14307 as_dir="$ac_dir"
14308 as_dirs=
14309 while test ! -d "$as_dir"; do
14310 as_dirs="$as_dir $as_dirs"
14311 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14312 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14313 X"$as_dir" : 'X\(//\)[^/]' \| \
14314 X"$as_dir" : 'X\(//\)$' \| \
14315 X"$as_dir" : 'X\(/\)' \| \
14316 . : '\(.\)' 2>/dev/null ||
14317 echo X"$as_dir" |
14318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14319 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14320 /^X\(\/\/\)$/{ s//\1/; q; }
14321 /^X\(\/\).*/{ s//\1/; q; }
14322 s/.*/./; q'`
14323 done
14324 test ! -n "$as_dirs" || mkdir $as_dirs
14325 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14326 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14327 { (exit 1); exit 1; }; }; }
14328
14329 rm -f $ac_file
14330 mv $tmp/config.h $ac_file
14331 fi
14332 else
14333 cat $tmp/config.h
14334 rm -f $tmp/config.h
14335 fi
14336 # Compute $ac_file's index in $config_headers.
14337 _am_stamp_count=1
14338 for _am_header in $config_headers :; do
14339 case $_am_header in
14340 $ac_file | $ac_file:* )
14341 break ;;
14342 * )
14343 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14344 esac
14345 done
14346 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14347 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14348 X$ac_file : 'X\(//\)[^/]' \| \
14349 X$ac_file : 'X\(//\)$' \| \
14350 X$ac_file : 'X\(/\)' \| \
14351 . : '\(.\)' 2>/dev/null ||
14352 echo X$ac_file |
14353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14354 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14355 /^X\(\/\/\)$/{ s//\1/; q; }
14356 /^X\(\/\).*/{ s//\1/; q; }
14357 s/.*/./; q'`/stamp-h$_am_stamp_count
14358 done
14359 _ACEOF
14360 cat >>$CONFIG_STATUS <<\_ACEOF
14361
14362 #
14363 # CONFIG_COMMANDS section.
14364 #
14365 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14366 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14367 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14368 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14369 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14370 X"$ac_dest" : 'X\(//\)[^/]' \| \
14371 X"$ac_dest" : 'X\(//\)$' \| \
14372 X"$ac_dest" : 'X\(/\)' \| \
14373 . : '\(.\)' 2>/dev/null ||
14374 echo X"$ac_dest" |
14375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14376 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14377 /^X\(\/\/\)$/{ s//\1/; q; }
14378 /^X\(\/\).*/{ s//\1/; q; }
14379 s/.*/./; q'`
14380 { if $as_mkdir_p; then
14381 mkdir -p "$ac_dir"
14382 else
14383 as_dir="$ac_dir"
14384 as_dirs=
14385 while test ! -d "$as_dir"; do
14386 as_dirs="$as_dir $as_dirs"
14387 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14388 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14389 X"$as_dir" : 'X\(//\)[^/]' \| \
14390 X"$as_dir" : 'X\(//\)$' \| \
14391 X"$as_dir" : 'X\(/\)' \| \
14392 . : '\(.\)' 2>/dev/null ||
14393 echo X"$as_dir" |
14394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14395 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14396 /^X\(\/\/\)$/{ s//\1/; q; }
14397 /^X\(\/\).*/{ s//\1/; q; }
14398 s/.*/./; q'`
14399 done
14400 test ! -n "$as_dirs" || mkdir $as_dirs
14401 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14402 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14403 { (exit 1); exit 1; }; }; }
14404
14405 ac_builddir=.
14406
14407 if test "$ac_dir" != .; then
14408 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14409 # A "../" for each directory in $ac_dir_suffix.
14410 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14411 else
14412 ac_dir_suffix= ac_top_builddir=
14413 fi
14414
14415 case $srcdir in
14416 .) # No --srcdir option. We are building in place.
14417 ac_srcdir=.
14418 if test -z "$ac_top_builddir"; then
14419 ac_top_srcdir=.
14420 else
14421 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14422 fi ;;
14423 [\\/]* | ?:[\\/]* ) # Absolute path.
14424 ac_srcdir=$srcdir$ac_dir_suffix;
14425 ac_top_srcdir=$srcdir ;;
14426 *) # Relative path.
14427 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14428 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14429 esac
14430
14431 # Do not use `cd foo && pwd` to compute absolute paths, because
14432 # the directories may not exist.
14433 case `pwd` in
14434 .) ac_abs_builddir="$ac_dir";;
14435 *)
14436 case "$ac_dir" in
14437 .) ac_abs_builddir=`pwd`;;
14438 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14439 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14440 esac;;
14441 esac
14442 case $ac_abs_builddir in
14443 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14444 *)
14445 case ${ac_top_builddir}. in
14446 .) ac_abs_top_builddir=$ac_abs_builddir;;
14447 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14448 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14449 esac;;
14450 esac
14451 case $ac_abs_builddir in
14452 .) ac_abs_srcdir=$ac_srcdir;;
14453 *)
14454 case $ac_srcdir in
14455 .) ac_abs_srcdir=$ac_abs_builddir;;
14456 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14457 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14458 esac;;
14459 esac
14460 case $ac_abs_builddir in
14461 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14462 *)
14463 case $ac_top_srcdir in
14464 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14465 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14466 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14467 esac;;
14468 esac
14469
14470
14471 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14472 echo "$as_me: executing $ac_dest commands" >&6;}
14473 case $ac_dest in
14474 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14475 # Strip MF so we end up with the name of the file.
14476 mf=`echo "$mf" | sed -e 's/:.*$//'`
14477 # Check whether this is an Automake generated Makefile or not.
14478 # We used to match only the files named `Makefile.in', but
14479 # some people rename them; so instead we look at the file content.
14480 # Grep'ing the first line is not enough: some people post-process
14481 # each Makefile.in and add a new line on top of each file to say so.
14482 # So let's grep whole file.
14483 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14484 dirpart=`(dirname "$mf") 2>/dev/null ||
14485 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14486 X"$mf" : 'X\(//\)[^/]' \| \
14487 X"$mf" : 'X\(//\)$' \| \
14488 X"$mf" : 'X\(/\)' \| \
14489 . : '\(.\)' 2>/dev/null ||
14490 echo X"$mf" |
14491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14492 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14493 /^X\(\/\/\)$/{ s//\1/; q; }
14494 /^X\(\/\).*/{ s//\1/; q; }
14495 s/.*/./; q'`
14496 else
14497 continue
14498 fi
14499 # Extract the definition of DEPDIR, am__include, and am__quote
14500 # from the Makefile without running `make'.
14501 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14502 test -z "$DEPDIR" && continue
14503 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14504 test -z "am__include" && continue
14505 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14506 # When using ansi2knr, U may be empty or an underscore; expand it
14507 U=`sed -n 's/^U = //p' < "$mf"`
14508 # Find all dependency output files, they are included files with
14509 # $(DEPDIR) in their names. We invoke sed twice because it is the
14510 # simplest approach to changing $(DEPDIR) to its actual value in the
14511 # expansion.
14512 for file in `sed -n "
14513 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14514 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14515 # Make sure the directory exists.
14516 test -f "$dirpart/$file" && continue
14517 fdir=`(dirname "$file") 2>/dev/null ||
14518 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14519 X"$file" : 'X\(//\)[^/]' \| \
14520 X"$file" : 'X\(//\)$' \| \
14521 X"$file" : 'X\(/\)' \| \
14522 . : '\(.\)' 2>/dev/null ||
14523 echo X"$file" |
14524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14525 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14526 /^X\(\/\/\)$/{ s//\1/; q; }
14527 /^X\(\/\).*/{ s//\1/; q; }
14528 s/.*/./; q'`
14529 { if $as_mkdir_p; then
14530 mkdir -p $dirpart/$fdir
14531 else
14532 as_dir=$dirpart/$fdir
14533 as_dirs=
14534 while test ! -d "$as_dir"; do
14535 as_dirs="$as_dir $as_dirs"
14536 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14537 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14538 X"$as_dir" : 'X\(//\)[^/]' \| \
14539 X"$as_dir" : 'X\(//\)$' \| \
14540 X"$as_dir" : 'X\(/\)' \| \
14541 . : '\(.\)' 2>/dev/null ||
14542 echo X"$as_dir" |
14543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14544 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14545 /^X\(\/\/\)$/{ s//\1/; q; }
14546 /^X\(\/\).*/{ s//\1/; q; }
14547 s/.*/./; q'`
14548 done
14549 test ! -n "$as_dirs" || mkdir $as_dirs
14550 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14551 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14552 { (exit 1); exit 1; }; }; }
14553
14554 # echo "creating $dirpart/$file"
14555 echo '# dummy' > "$dirpart/$file"
14556 done
14557 done
14558 ;;
14559 libtool )
14560
14561 # See if we are running on zsh, and set the options which allow our
14562 # commands through without removal of \ escapes.
14563 if test -n "${ZSH_VERSION+set}" ; then
14564 setopt NO_GLOB_SUBST
14565 fi
14566
14567 cfgfile="${ofile}T"
14568 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14569 $RM "$cfgfile"
14570
14571 cat <<_LT_EOF >> "$cfgfile"
14572 #! $SHELL
14573
14574 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14575 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14576 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14577 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14578 #
14579 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14580 # 2006, 2007 Free Software Foundation, Inc.
14581 #
14582 # This file is part of GNU Libtool:
14583 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14584 #
14585 # This program is free software; you can redistribute it and/or modify
14586 # it under the terms of the GNU General Public License as published by
14587 # the Free Software Foundation; either version 2 of the License, or
14588 # (at your option) any later version.
14589 #
14590 # This program is distributed in the hope that it will be useful, but
14591 # WITHOUT ANY WARRANTY; without even the implied warranty of
14592 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14593 # General Public License for more details.
14594 #
14595 # You should have received a copy of the GNU General Public License
14596 # along with this program; if not, a copy can be downloaded from
14597 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14598 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14599 # MA 02110-1301, USA.
14600 #
14601 # As a special exception to the GNU General Public License, if you
14602 # distribute this file as part of a program that contains a
14603 # configuration script generated by Autoconf, you may include it under
14604 # the same distribution terms that you use for the rest of that program.
14605
14606
14607 # The names of the tagged configurations supported by this script.
14608 available_tags=""
14609
14610 # ### BEGIN LIBTOOL CONFIG
14611
14612 # Which release of libtool.m4 was used?
14613 macro_version=$macro_version
14614 macro_revision=$macro_revision
14615
14616 # Whether or not to build shared libraries.
14617 build_libtool_libs=$enable_shared
14618
14619 # Whether or not to build static libraries.
14620 build_old_libs=$enable_static
14621
14622 # What type of objects to build.
14623 pic_mode=$pic_mode
14624
14625 # Whether or not to optimize for fast installation.
14626 fast_install=$enable_fast_install
14627
14628 # The host system.
14629 host_alias=$host_alias
14630 host=$host
14631 host_os=$host_os
14632
14633 # The build system.
14634 build_alias=$build_alias
14635 build=$build
14636 build_os=$build_os
14637
14638 # A sed program that does not truncate output.
14639 SED=$lt_SED
14640
14641 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14642 Xsed="\$SED -e 1s/^X//"
14643
14644 # A grep program that handles long lines.
14645 GREP=$lt_GREP
14646
14647 # An ERE matcher.
14648 EGREP=$lt_EGREP
14649
14650 # A literal string matcher.
14651 FGREP=$lt_FGREP
14652
14653 # A BSD- or MS-compatible name lister.
14654 NM=$lt_NM
14655
14656 # Whether we need soft or hard links.
14657 LN_S=$lt_LN_S
14658
14659 # What is the maximum length of a command?
14660 max_cmd_len=$max_cmd_len
14661
14662 # Object file suffix (normally "o").
14663 objext=$ac_objext
14664
14665 # Executable file suffix (normally "").
14666 exeext=$exeext
14667
14668 # whether the shell understands "unset".
14669 lt_unset=$lt_unset
14670
14671 # turn spaces into newlines.
14672 SP2NL=$lt_lt_SP2NL
14673
14674 # turn newlines into spaces.
14675 NL2SP=$lt_lt_NL2SP
14676
14677 # How to create reloadable object files.
14678 reload_flag=$lt_reload_flag
14679 reload_cmds=$lt_reload_cmds
14680
14681 # Method to check whether dependent libraries are shared objects.
14682 deplibs_check_method=$lt_deplibs_check_method
14683
14684 # Command to use when deplibs_check_method == "file_magic".
14685 file_magic_cmd=$lt_file_magic_cmd
14686
14687 # The archiver.
14688 AR=$lt_AR
14689 AR_FLAGS=$lt_AR_FLAGS
14690
14691 # A symbol stripping program.
14692 STRIP=$lt_STRIP
14693
14694 # Commands used to install an old-style archive.
14695 RANLIB=$lt_RANLIB
14696 old_postinstall_cmds=$lt_old_postinstall_cmds
14697 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14698
14699 # A C compiler.
14700 LTCC=$lt_CC
14701
14702 # LTCC compiler flags.
14703 LTCFLAGS=$lt_CFLAGS
14704
14705 # Take the output of nm and produce a listing of raw symbols and C names.
14706 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14707
14708 # Transform the output of nm in a proper C declaration.
14709 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14710
14711 # Transform the output of nm in a C name address pair.
14712 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14713
14714 # The name of the directory that contains temporary libtool files.
14715 objdir=$objdir
14716
14717 # Shell to use when invoking shell scripts.
14718 SHELL=$lt_SHELL
14719
14720 # An echo program that does not interpret backslashes.
14721 ECHO=$lt_ECHO
14722
14723 # Used to examine libraries when file_magic_cmd begins with "file".
14724 MAGIC_CMD=$MAGIC_CMD
14725
14726 # Must we lock files when doing compilation?
14727 need_locks=$lt_need_locks
14728
14729 # Old archive suffix (normally "a").
14730 libext=$libext
14731
14732 # Shared library suffix (normally ".so").
14733 shrext_cmds=$lt_shrext_cmds
14734
14735 # The commands to extract the exported symbol list from a shared archive.
14736 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14737
14738 # Variables whose values should be saved in libtool wrapper scripts and
14739 # restored at link time.
14740 variables_saved_for_relink=$lt_variables_saved_for_relink
14741
14742 # Do we need the "lib" prefix for modules?
14743 need_lib_prefix=$need_lib_prefix
14744
14745 # Do we need a version for libraries?
14746 need_version=$need_version
14747
14748 # Library versioning type.
14749 version_type=$version_type
14750
14751 # Shared library runtime path variable.
14752 runpath_var=$runpath_var
14753
14754 # Shared library path variable.
14755 shlibpath_var=$shlibpath_var
14756
14757 # Is shlibpath searched before the hard-coded library search path?
14758 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14759
14760 # Format of library name prefix.
14761 libname_spec=$lt_libname_spec
14762
14763 # List of archive names. First name is the real one, the rest are links.
14764 # The last name is the one that the linker finds with -lNAME
14765 library_names_spec=$lt_library_names_spec
14766
14767 # The coded name of the library, if different from the real name.
14768 soname_spec=$lt_soname_spec
14769
14770 # Command to use after installation of a shared archive.
14771 postinstall_cmds=$lt_postinstall_cmds
14772
14773 # Command to use after uninstallation of a shared archive.
14774 postuninstall_cmds=$lt_postuninstall_cmds
14775
14776 # Commands used to finish a libtool library installation in a directory.
14777 finish_cmds=$lt_finish_cmds
14778
14779 # As "finish_cmds", except a single script fragment to be evaled but
14780 # not shown.
14781 finish_eval=$lt_finish_eval
14782
14783 # Whether we should hardcode library paths into libraries.
14784 hardcode_into_libs=$hardcode_into_libs
14785
14786 # Compile-time system search path for libraries.
14787 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14788
14789 # Run-time system search path for libraries.
14790 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14791
14792 # Whether dlopen is supported.
14793 dlopen_support=$enable_dlopen
14794
14795 # Whether dlopen of programs is supported.
14796 dlopen_self=$enable_dlopen_self
14797
14798 # Whether dlopen of statically linked programs is supported.
14799 dlopen_self_static=$enable_dlopen_self_static
14800
14801 # Commands to strip libraries.
14802 old_striplib=$lt_old_striplib
14803 striplib=$lt_striplib
14804
14805
14806 # The linker used to build libraries.
14807 LD=$lt_LD
14808
14809 # Commands used to build an old-style archive.
14810 old_archive_cmds=$lt_old_archive_cmds
14811
14812 # A language specific compiler.
14813 CC=$lt_compiler
14814
14815 # Is the compiler the GNU compiler?
14816 with_gcc=$GCC
14817
14818 # Compiler flag to turn off builtin functions.
14819 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14820
14821 # How to pass a linker flag through the compiler.
14822 wl=$lt_lt_prog_compiler_wl
14823
14824 # Additional compiler flags for building library objects.
14825 pic_flag=$lt_lt_prog_compiler_pic
14826
14827 # Compiler flag to prevent dynamic linking.
14828 link_static_flag=$lt_lt_prog_compiler_static
14829
14830 # Does compiler simultaneously support -c and -o options?
14831 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14832
14833 # Whether or not to add -lc for building shared libraries.
14834 build_libtool_need_lc=$archive_cmds_need_lc
14835
14836 # Whether or not to disallow shared libs when runtime libs are static.
14837 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14838
14839 # Compiler flag to allow reflexive dlopens.
14840 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14841
14842 # Compiler flag to generate shared objects directly from archives.
14843 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14844
14845 # Whether the compiler copes with passing no objects directly.
14846 compiler_needs_object=$lt_compiler_needs_object
14847
14848 # Create an old-style archive from a shared archive.
14849 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14850
14851 # Create a temporary old-style archive to link instead of a shared archive.
14852 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14853
14854 # Commands used to build a shared archive.
14855 archive_cmds=$lt_archive_cmds
14856 archive_expsym_cmds=$lt_archive_expsym_cmds
14857
14858 # Commands used to build a loadable module if different from building
14859 # a shared archive.
14860 module_cmds=$lt_module_cmds
14861 module_expsym_cmds=$lt_module_expsym_cmds
14862
14863 # Whether we are building with GNU ld or not.
14864 with_gnu_ld=$lt_with_gnu_ld
14865
14866 # Flag that allows shared libraries with undefined symbols to be built.
14867 allow_undefined_flag=$lt_allow_undefined_flag
14868
14869 # Flag that enforces no undefined symbols.
14870 no_undefined_flag=$lt_no_undefined_flag
14871
14872 # Flag to hardcode \$libdir into a binary during linking.
14873 # This must work even if \$libdir does not exist
14874 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14875
14876 # If ld is used when linking, flag to hardcode \$libdir into a binary
14877 # during linking. This must work even if \$libdir does not exist.
14878 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14879
14880 # Whether we need a single "-rpath" flag with a separated argument.
14881 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14882
14883 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14884 # DIR into the resulting binary.
14885 hardcode_direct=$hardcode_direct
14886
14887 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14888 # DIR into the resulting binary and the resulting library dependency is
14889 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14890 # library is relocated.
14891 hardcode_direct_absolute=$hardcode_direct_absolute
14892
14893 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14894 # into the resulting binary.
14895 hardcode_minus_L=$hardcode_minus_L
14896
14897 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14898 # into the resulting binary.
14899 hardcode_shlibpath_var=$hardcode_shlibpath_var
14900
14901 # Set to "yes" if building a shared library automatically hardcodes DIR
14902 # into the library and all subsequent libraries and executables linked
14903 # against it.
14904 hardcode_automatic=$hardcode_automatic
14905
14906 # Set to yes if linker adds runtime paths of dependent libraries
14907 # to runtime path list.
14908 inherit_rpath=$inherit_rpath
14909
14910 # Whether libtool must link a program against all its dependency libraries.
14911 link_all_deplibs=$link_all_deplibs
14912
14913 # Fix the shell variable \$srcfile for the compiler.
14914 fix_srcfile_path=$lt_fix_srcfile_path
14915
14916 # Set to "yes" if exported symbols are required.
14917 always_export_symbols=$always_export_symbols
14918
14919 # The commands to list exported symbols.
14920 export_symbols_cmds=$lt_export_symbols_cmds
14921
14922 # Symbols that should not be listed in the preloaded symbols.
14923 exclude_expsyms=$lt_exclude_expsyms
14924
14925 # Symbols that must always be exported.
14926 include_expsyms=$lt_include_expsyms
14927
14928 # Commands necessary for linking programs (against libraries) with templates.
14929 prelink_cmds=$lt_prelink_cmds
14930
14931 # Specify filename containing input files.
14932 file_list_spec=$lt_file_list_spec
14933
14934 # How to hardcode a shared library path into an executable.
14935 hardcode_action=$hardcode_action
14936
14937 # ### END LIBTOOL CONFIG
14938
14939 _LT_EOF
14940
14941 case $host_os in
14942 aix3*)
14943 cat <<\_LT_EOF >> "$cfgfile"
14944 # AIX sometimes has problems with the GCC collect2 program. For some
14945 # reason, if we set the COLLECT_NAMES environment variable, the problems
14946 # vanish in a puff of smoke.
14947 if test "X${COLLECT_NAMES+set}" != Xset; then
14948 COLLECT_NAMES=
14949 export COLLECT_NAMES
14950 fi
14951 _LT_EOF
14952 ;;
14953 esac
14954
14955
14956 ltmain="$ac_aux_dir/ltmain.sh"
14957
14958
14959 # We use sed instead of cat because bash on DJGPP gets confused if
14960 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14961 # text mode, it properly converts lines to CR/LF. This bash problem
14962 # is reportedly fixed, but why not run on old versions too?
14963 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14964 || (rm -f "$cfgfile"; exit 1)
14965
14966 case $xsi_shell in
14967 yes)
14968 cat << \_LT_EOF >> "$cfgfile"
14969 # func_dirname file append nondir_replacement
14970 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14971 # otherwise set result to NONDIR_REPLACEMENT.
14972 func_dirname ()
14973 {
14974 case ${1} in
14975 */*) func_dirname_result="${1%/*}${2}" ;;
14976 * ) func_dirname_result="${3}" ;;
14977 esac
14978 }
14979
14980 # func_basename file
14981 func_basename ()
14982 {
14983 func_basename_result="${1##*/}"
14984 }
14985
14986 # func_stripname prefix suffix name
14987 # strip PREFIX and SUFFIX off of NAME.
14988 # PREFIX and SUFFIX must not contain globbing or regex special
14989 # characters, hashes, percent signs, but SUFFIX may contain a leading
14990 # dot (in which case that matches only a dot).
14991 func_stripname ()
14992 {
14993 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14994 # positional parameters, so assign one to ordinary parameter first.
14995 func_stripname_result=${3}
14996 func_stripname_result=${func_stripname_result#"${1}"}
14997 func_stripname_result=${func_stripname_result%"${2}"}
14998 }
14999
15000 # func_opt_split
15001 func_opt_split ()
15002 {
15003 func_opt_split_opt=${1%%=*}
15004 func_opt_split_arg=${1#*=}
15005 }
15006
15007 # func_lo2o object
15008 func_lo2o ()
15009 {
15010 case ${1} in
15011 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15012 *) func_lo2o_result=${1} ;;
15013 esac
15014 }
15015 _LT_EOF
15016 ;;
15017 *) # Bourne compatible functions.
15018 cat << \_LT_EOF >> "$cfgfile"
15019 # func_dirname file append nondir_replacement
15020 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15021 # otherwise set result to NONDIR_REPLACEMENT.
15022 func_dirname ()
15023 {
15024 # Extract subdirectory from the argument.
15025 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15026 if test "X$func_dirname_result" = "X${1}"; then
15027 func_dirname_result="${3}"
15028 else
15029 func_dirname_result="$func_dirname_result${2}"
15030 fi
15031 }
15032
15033 # func_basename file
15034 func_basename ()
15035 {
15036 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15037 }
15038
15039 # func_stripname prefix suffix name
15040 # strip PREFIX and SUFFIX off of NAME.
15041 # PREFIX and SUFFIX must not contain globbing or regex special
15042 # characters, hashes, percent signs, but SUFFIX may contain a leading
15043 # dot (in which case that matches only a dot).
15044 # func_strip_suffix prefix name
15045 func_stripname ()
15046 {
15047 case ${2} in
15048 .*) func_stripname_result=`$ECHO "X${3}" \
15049 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15050 *) func_stripname_result=`$ECHO "X${3}" \
15051 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15052 esac
15053 }
15054
15055 # sed scripts:
15056 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15057 my_sed_long_arg='1s/^-[^=]*=//'
15058
15059 # func_opt_split
15060 func_opt_split ()
15061 {
15062 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15063 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15064 }
15065
15066 # func_lo2o object
15067 func_lo2o ()
15068 {
15069 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15070 }
15071 _LT_EOF
15072 esac
15073
15074 case $lt_shell_append in
15075 yes)
15076 cat << \_LT_EOF >> "$cfgfile"
15077
15078 # func_append var value
15079 # Append VALUE to the end of shell variable VAR.
15080 func_append ()
15081 {
15082 eval "$1+=\$2"
15083 }
15084 _LT_EOF
15085 ;;
15086 *)
15087 cat << \_LT_EOF >> "$cfgfile"
15088
15089 # func_append var value
15090 # Append VALUE to the end of shell variable VAR.
15091 func_append ()
15092 {
15093 eval "$1=\$$1\$2"
15094 }
15095 _LT_EOF
15096 ;;
15097 esac
15098
15099
15100 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15101 || (rm -f "$cfgfile"; exit 1)
15102
15103 mv -f "$cfgfile" "$ofile" ||
15104 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15105 chmod +x "$ofile"
15106
15107 ;;
15108 default-1 )
15109 for ac_file in $CONFIG_FILES; do
15110 # Support "outfile[:infile[:infile...]]"
15111 case "$ac_file" in
15112 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15113 esac
15114 # PO directories have a Makefile.in generated from Makefile.in.in.
15115 case "$ac_file" in */Makefile.in)
15116 # Adjust a relative srcdir.
15117 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15118 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15119 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15120 # In autoconf-2.13 it is called $ac_given_srcdir.
15121 # In autoconf-2.50 it is called $srcdir.
15122 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15123 case "$ac_given_srcdir" in
15124 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15125 /*) top_srcdir="$ac_given_srcdir" ;;
15126 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15127 esac
15128 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15129 rm -f "$ac_dir/POTFILES"
15130 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15131 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15132 POMAKEFILEDEPS="POTFILES.in"
15133 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15134 # on $ac_dir but don't depend on user-specified configuration
15135 # parameters.
15136 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15137 # The LINGUAS file contains the set of available languages.
15138 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15139 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15140 fi
15141 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15142 # Hide the ALL_LINGUAS assigment from automake.
15143 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15144 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15145 else
15146 # The set of available languages was given in configure.in.
15147 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15148 fi
15149 case "$ac_given_srcdir" in
15150 .) srcdirpre= ;;
15151 *) srcdirpre='$(srcdir)/' ;;
15152 esac
15153 POFILES=
15154 GMOFILES=
15155 UPDATEPOFILES=
15156 DUMMYPOFILES=
15157 for lang in $ALL_LINGUAS; do
15158 POFILES="$POFILES $srcdirpre$lang.po"
15159 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15160 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15161 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15162 done
15163 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15164 # environment variable.
15165 INST_LINGUAS=
15166 if test -n "$ALL_LINGUAS"; then
15167 for presentlang in $ALL_LINGUAS; do
15168 useit=no
15169 if test "%UNSET%" != "$LINGUAS"; then
15170 desiredlanguages="$LINGUAS"
15171 else
15172 desiredlanguages="$ALL_LINGUAS"
15173 fi
15174 for desiredlang in $desiredlanguages; do
15175 # Use the presentlang catalog if desiredlang is
15176 # a. equal to presentlang, or
15177 # b. a variant of presentlang (because in this case,
15178 # presentlang can be used as a fallback for messages
15179 # which are not translated in the desiredlang catalog).
15180 case "$desiredlang" in
15181 "$presentlang"*) useit=yes;;
15182 esac
15183 done
15184 if test $useit = yes; then
15185 INST_LINGUAS="$INST_LINGUAS $presentlang"
15186 fi
15187 done
15188 fi
15189 CATALOGS=
15190 if test -n "$INST_LINGUAS"; then
15191 for lang in $INST_LINGUAS; do
15192 CATALOGS="$CATALOGS $lang.gmo"
15193 done
15194 fi
15195 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15196 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"
15197 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15198 if test -f "$f"; then
15199 case "$f" in
15200 *.orig | *.bak | *~) ;;
15201 *) cat "$f" >> "$ac_dir/Makefile" ;;
15202 esac
15203 fi
15204 done
15205 fi
15206 ;;
15207 esac
15208 done ;;
15209 esac
15210 done
15211 _ACEOF
15212
15213 cat >>$CONFIG_STATUS <<\_ACEOF
15214
15215 { (exit 0); exit 0; }
15216 _ACEOF
15217 chmod +x $CONFIG_STATUS
15218 ac_clean_files=$ac_clean_files_save
15219
15220
15221 # configure is writing to config.log, and then calls config.status.
15222 # config.status does its own redirection, appending to config.log.
15223 # Unfortunately, on DOS this fails, as config.log is still kept open
15224 # by configure, so config.status won't be able to write to it; its
15225 # output is simply discarded. So we exec the FD to /dev/null,
15226 # effectively closing config.log, so it can be properly (re)opened and
15227 # appended to by config.status. When coming back to configure, we
15228 # need to make the FD available again.
15229 if test "$no_create" != yes; then
15230 ac_cs_success=:
15231 ac_config_status_args=
15232 test "$silent" = yes &&
15233 ac_config_status_args="$ac_config_status_args --quiet"
15234 exec 5>/dev/null
15235 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15236 exec 5>>config.log
15237 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15238 # would make configure fail if this is the last instruction.
15239 $ac_cs_success || { (exit 1); exit 1; }
15240 fi
15241
This page took 0.4631 seconds and 4 git commands to generate.