]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gprof/configure
* regenerated files from updating libtool.
[thirdparty/binutils-gdb.git] / gprof / 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="gprof.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_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE WARN_CFLAGS NO_WERROR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
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 --disable-nls do not use Native Language Support
1012 --enable-maintainer-mode enable make rules and dependencies not useful
1013 (and sometimes confusing) to the casual installer
1014 --enable-werror treat compile warnings as errors
1015 --enable-build-warnings enable build-time compiler warnings
1016
1017 Optional Packages:
1018 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1019 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1020 --with-pic try to use only PIC/non-PIC objects [default=use
1021 both]
1022 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1023
1024 Some influential environment variables:
1025 CC C compiler command
1026 CFLAGS C compiler flags
1027 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1028 nonstandard directory <lib dir>
1029 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1030 headers in a nonstandard directory <include dir>
1031 CPP C preprocessor
1032
1033 Use these variables to override the choices made by `configure' or to help
1034 it to find libraries and programs with nonstandard names/locations.
1035
1036 _ACEOF
1037 fi
1038
1039 if test "$ac_init_help" = "recursive"; then
1040 # If there are subdirs, report their specific --help.
1041 ac_popdir=`pwd`
1042 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1043 test -d $ac_dir || continue
1044 ac_builddir=.
1045
1046 if test "$ac_dir" != .; then
1047 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1048 # A "../" for each directory in $ac_dir_suffix.
1049 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1050 else
1051 ac_dir_suffix= ac_top_builddir=
1052 fi
1053
1054 case $srcdir in
1055 .) # No --srcdir option. We are building in place.
1056 ac_srcdir=.
1057 if test -z "$ac_top_builddir"; then
1058 ac_top_srcdir=.
1059 else
1060 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1061 fi ;;
1062 [\\/]* | ?:[\\/]* ) # Absolute path.
1063 ac_srcdir=$srcdir$ac_dir_suffix;
1064 ac_top_srcdir=$srcdir ;;
1065 *) # Relative path.
1066 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1067 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1068 esac
1069
1070 # Do not use `cd foo && pwd` to compute absolute paths, because
1071 # the directories may not exist.
1072 case `pwd` in
1073 .) ac_abs_builddir="$ac_dir";;
1074 *)
1075 case "$ac_dir" in
1076 .) ac_abs_builddir=`pwd`;;
1077 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1078 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1079 esac;;
1080 esac
1081 case $ac_abs_builddir in
1082 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1083 *)
1084 case ${ac_top_builddir}. in
1085 .) ac_abs_top_builddir=$ac_abs_builddir;;
1086 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1087 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1088 esac;;
1089 esac
1090 case $ac_abs_builddir in
1091 .) ac_abs_srcdir=$ac_srcdir;;
1092 *)
1093 case $ac_srcdir in
1094 .) ac_abs_srcdir=$ac_abs_builddir;;
1095 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1096 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1097 esac;;
1098 esac
1099 case $ac_abs_builddir in
1100 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1101 *)
1102 case $ac_top_srcdir in
1103 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1104 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1105 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1106 esac;;
1107 esac
1108
1109 cd $ac_dir
1110 # Check for guested configure; otherwise get Cygnus style configure.
1111 if test -f $ac_srcdir/configure.gnu; then
1112 echo
1113 $SHELL $ac_srcdir/configure.gnu --help=recursive
1114 elif test -f $ac_srcdir/configure; then
1115 echo
1116 $SHELL $ac_srcdir/configure --help=recursive
1117 elif test -f $ac_srcdir/configure.ac ||
1118 test -f $ac_srcdir/configure.in; then
1119 echo
1120 $ac_configure --help
1121 else
1122 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1123 fi
1124 cd $ac_popdir
1125 done
1126 fi
1127
1128 test -n "$ac_init_help" && exit 0
1129 if $ac_init_version; then
1130 cat <<\_ACEOF
1131
1132 Copyright (C) 2003 Free Software Foundation, Inc.
1133 This configure script is free software; the Free Software Foundation
1134 gives unlimited permission to copy, distribute and modify it.
1135 _ACEOF
1136 exit 0
1137 fi
1138 exec 5>config.log
1139 cat >&5 <<_ACEOF
1140 This file contains any messages produced by compilers while
1141 running configure, to aid debugging if configure makes a mistake.
1142
1143 It was created by $as_me, which was
1144 generated by GNU Autoconf 2.59. Invocation command line was
1145
1146 $ $0 $@
1147
1148 _ACEOF
1149 {
1150 cat <<_ASUNAME
1151 ## --------- ##
1152 ## Platform. ##
1153 ## --------- ##
1154
1155 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1156 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1157 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1158 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1159 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1160
1161 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1162 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1163
1164 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1165 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1166 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1167 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1168 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1169 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1170 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1171
1172 _ASUNAME
1173
1174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1175 for as_dir in $PATH
1176 do
1177 IFS=$as_save_IFS
1178 test -z "$as_dir" && as_dir=.
1179 echo "PATH: $as_dir"
1180 done
1181
1182 } >&5
1183
1184 cat >&5 <<_ACEOF
1185
1186
1187 ## ----------- ##
1188 ## Core tests. ##
1189 ## ----------- ##
1190
1191 _ACEOF
1192
1193
1194 # Keep a trace of the command line.
1195 # Strip out --no-create and --no-recursion so they do not pile up.
1196 # Strip out --silent because we don't want to record it for future runs.
1197 # Also quote any args containing shell meta-characters.
1198 # Make two passes to allow for proper duplicate-argument suppression.
1199 ac_configure_args=
1200 ac_configure_args0=
1201 ac_configure_args1=
1202 ac_sep=
1203 ac_must_keep_next=false
1204 for ac_pass in 1 2
1205 do
1206 for ac_arg
1207 do
1208 case $ac_arg in
1209 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1210 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1211 | -silent | --silent | --silen | --sile | --sil)
1212 continue ;;
1213 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1214 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1215 esac
1216 case $ac_pass in
1217 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1218 2)
1219 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1220 if test $ac_must_keep_next = true; then
1221 ac_must_keep_next=false # Got value, back to normal.
1222 else
1223 case $ac_arg in
1224 *=* | --config-cache | -C | -disable-* | --disable-* \
1225 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1226 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1227 | -with-* | --with-* | -without-* | --without-* | --x)
1228 case "$ac_configure_args0 " in
1229 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1230 esac
1231 ;;
1232 -* ) ac_must_keep_next=true ;;
1233 esac
1234 fi
1235 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1236 # Get rid of the leading space.
1237 ac_sep=" "
1238 ;;
1239 esac
1240 done
1241 done
1242 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1243 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1244
1245 # When interrupted or exit'd, cleanup temporary files, and complete
1246 # config.log. We remove comments because anyway the quotes in there
1247 # would cause problems or look ugly.
1248 # WARNING: Be sure not to use single quotes in there, as some shells,
1249 # such as our DU 5.0 friend, will then `close' the trap.
1250 trap 'exit_status=$?
1251 # Save into config.log some information that might help in debugging.
1252 {
1253 echo
1254
1255 cat <<\_ASBOX
1256 ## ---------------- ##
1257 ## Cache variables. ##
1258 ## ---------------- ##
1259 _ASBOX
1260 echo
1261 # The following way of writing the cache mishandles newlines in values,
1262 {
1263 (set) 2>&1 |
1264 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1265 *ac_space=\ *)
1266 sed -n \
1267 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1269 ;;
1270 *)
1271 sed -n \
1272 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1273 ;;
1274 esac;
1275 }
1276 echo
1277
1278 cat <<\_ASBOX
1279 ## ----------------- ##
1280 ## Output variables. ##
1281 ## ----------------- ##
1282 _ASBOX
1283 echo
1284 for ac_var in $ac_subst_vars
1285 do
1286 eval ac_val=$`echo $ac_var`
1287 echo "$ac_var='"'"'$ac_val'"'"'"
1288 done | sort
1289 echo
1290
1291 if test -n "$ac_subst_files"; then
1292 cat <<\_ASBOX
1293 ## ------------- ##
1294 ## Output files. ##
1295 ## ------------- ##
1296 _ASBOX
1297 echo
1298 for ac_var in $ac_subst_files
1299 do
1300 eval ac_val=$`echo $ac_var`
1301 echo "$ac_var='"'"'$ac_val'"'"'"
1302 done | sort
1303 echo
1304 fi
1305
1306 if test -s confdefs.h; then
1307 cat <<\_ASBOX
1308 ## ----------- ##
1309 ## confdefs.h. ##
1310 ## ----------- ##
1311 _ASBOX
1312 echo
1313 sed "/^$/d" confdefs.h | sort
1314 echo
1315 fi
1316 test "$ac_signal" != 0 &&
1317 echo "$as_me: caught signal $ac_signal"
1318 echo "$as_me: exit $exit_status"
1319 } >&5
1320 rm -f core *.core &&
1321 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1322 exit $exit_status
1323 ' 0
1324 for ac_signal in 1 2 13 15; do
1325 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1326 done
1327 ac_signal=0
1328
1329 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1330 rm -rf conftest* confdefs.h
1331 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1332 echo >confdefs.h
1333
1334 # Predefined preprocessor variables.
1335
1336 cat >>confdefs.h <<_ACEOF
1337 #define PACKAGE_NAME "$PACKAGE_NAME"
1338 _ACEOF
1339
1340
1341 cat >>confdefs.h <<_ACEOF
1342 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1343 _ACEOF
1344
1345
1346 cat >>confdefs.h <<_ACEOF
1347 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1348 _ACEOF
1349
1350
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_STRING "$PACKAGE_STRING"
1353 _ACEOF
1354
1355
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1358 _ACEOF
1359
1360
1361 # Let the site file select an alternate cache file if it wants to.
1362 # Prefer explicitly selected file to automatically selected ones.
1363 if test -z "$CONFIG_SITE"; then
1364 if test "x$prefix" != xNONE; then
1365 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1366 else
1367 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1368 fi
1369 fi
1370 for ac_site_file in $CONFIG_SITE; do
1371 if test -r "$ac_site_file"; then
1372 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1373 echo "$as_me: loading site script $ac_site_file" >&6;}
1374 sed 's/^/| /' "$ac_site_file" >&5
1375 . "$ac_site_file"
1376 fi
1377 done
1378
1379 if test -r "$cache_file"; then
1380 # Some versions of bash will fail to source /dev/null (special
1381 # files actually), so we avoid doing that.
1382 if test -f "$cache_file"; then
1383 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1384 echo "$as_me: loading cache $cache_file" >&6;}
1385 case $cache_file in
1386 [\\/]* | ?:[\\/]* ) . $cache_file;;
1387 *) . ./$cache_file;;
1388 esac
1389 fi
1390 else
1391 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1392 echo "$as_me: creating cache $cache_file" >&6;}
1393 >$cache_file
1394 fi
1395
1396 # Check that the precious variables saved in the cache have kept the same
1397 # value.
1398 ac_cache_corrupted=false
1399 for ac_var in `(set) 2>&1 |
1400 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1401 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1402 eval ac_new_set=\$ac_env_${ac_var}_set
1403 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1404 eval ac_new_val="\$ac_env_${ac_var}_value"
1405 case $ac_old_set,$ac_new_set in
1406 set,)
1407 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1408 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1409 ac_cache_corrupted=: ;;
1410 ,set)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1412 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,);;
1415 *)
1416 if test "x$ac_old_val" != "x$ac_new_val"; then
1417 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1418 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1419 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1420 echo "$as_me: former value: $ac_old_val" >&2;}
1421 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1422 echo "$as_me: current value: $ac_new_val" >&2;}
1423 ac_cache_corrupted=:
1424 fi;;
1425 esac
1426 # Pass precious variables to config.status.
1427 if test "$ac_new_set" = set; then
1428 case $ac_new_val in
1429 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1430 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1431 *) ac_arg=$ac_var=$ac_new_val ;;
1432 esac
1433 case " $ac_configure_args " in
1434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1435 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1436 esac
1437 fi
1438 done
1439 if $ac_cache_corrupted; then
1440 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1441 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1442 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1443 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1444 { (exit 1); exit 1; }; }
1445 fi
1446
1447 ac_ext=c
1448 ac_cpp='$CPP $CPPFLAGS'
1449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473 ac_aux_dir=
1474 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1475 if test -f $ac_dir/install-sh; then
1476 ac_aux_dir=$ac_dir
1477 ac_install_sh="$ac_aux_dir/install-sh -c"
1478 break
1479 elif test -f $ac_dir/install.sh; then
1480 ac_aux_dir=$ac_dir
1481 ac_install_sh="$ac_aux_dir/install.sh -c"
1482 break
1483 elif test -f $ac_dir/shtool; then
1484 ac_aux_dir=$ac_dir
1485 ac_install_sh="$ac_aux_dir/shtool install -c"
1486 break
1487 fi
1488 done
1489 if test -z "$ac_aux_dir"; then
1490 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1491 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1492 { (exit 1); exit 1; }; }
1493 fi
1494 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1495 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1496 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1497
1498 # Make sure we can run config.sub.
1499 $ac_config_sub sun4 >/dev/null 2>&1 ||
1500 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1501 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1502 { (exit 1); exit 1; }; }
1503
1504 echo "$as_me:$LINENO: checking build system type" >&5
1505 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1506 if test "${ac_cv_build+set}" = set; then
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 else
1509 ac_cv_build_alias=$build_alias
1510 test -z "$ac_cv_build_alias" &&
1511 ac_cv_build_alias=`$ac_config_guess`
1512 test -z "$ac_cv_build_alias" &&
1513 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1514 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1515 { (exit 1); exit 1; }; }
1516 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1517 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1518 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1519 { (exit 1); exit 1; }; }
1520
1521 fi
1522 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1523 echo "${ECHO_T}$ac_cv_build" >&6
1524 build=$ac_cv_build
1525 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1526 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1527 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1528
1529
1530 echo "$as_me:$LINENO: checking host system type" >&5
1531 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1532 if test "${ac_cv_host+set}" = set; then
1533 echo $ECHO_N "(cached) $ECHO_C" >&6
1534 else
1535 ac_cv_host_alias=$host_alias
1536 test -z "$ac_cv_host_alias" &&
1537 ac_cv_host_alias=$ac_cv_build_alias
1538 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1539 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1540 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1541 { (exit 1); exit 1; }; }
1542
1543 fi
1544 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1545 echo "${ECHO_T}$ac_cv_host" >&6
1546 host=$ac_cv_host
1547 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1548 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1549 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1550
1551
1552 echo "$as_me:$LINENO: checking target system type" >&5
1553 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1554 if test "${ac_cv_target+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1556 else
1557 ac_cv_target_alias=$target_alias
1558 test "x$ac_cv_target_alias" = "x" &&
1559 ac_cv_target_alias=$ac_cv_host_alias
1560 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1561 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1562 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1563 { (exit 1); exit 1; }; }
1564
1565 fi
1566 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1567 echo "${ECHO_T}$ac_cv_target" >&6
1568 target=$ac_cv_target
1569 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1572
1573
1574 # The aliases save the names the user supplied, while $host etc.
1575 # will get canonicalized.
1576 test -n "$target_alias" &&
1577 test "$program_prefix$program_suffix$program_transform_name" = \
1578 NONENONEs,x,x, &&
1579 program_prefix=${target_alias}-
1580 ac_ext=c
1581 ac_cpp='$CPP $CPPFLAGS'
1582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1585 if test -n "$ac_tool_prefix"; then
1586 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1587 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1588 echo "$as_me:$LINENO: checking for $ac_word" >&5
1589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1590 if test "${ac_cv_prog_CC+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
1592 else
1593 if test -n "$CC"; then
1594 ac_cv_prog_CC="$CC" # Let the user override the test.
1595 else
1596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597 for as_dir in $PATH
1598 do
1599 IFS=$as_save_IFS
1600 test -z "$as_dir" && as_dir=.
1601 for ac_exec_ext in '' $ac_executable_extensions; do
1602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1603 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1605 break 2
1606 fi
1607 done
1608 done
1609
1610 fi
1611 fi
1612 CC=$ac_cv_prog_CC
1613 if test -n "$CC"; then
1614 echo "$as_me:$LINENO: result: $CC" >&5
1615 echo "${ECHO_T}$CC" >&6
1616 else
1617 echo "$as_me:$LINENO: result: no" >&5
1618 echo "${ECHO_T}no" >&6
1619 fi
1620
1621 fi
1622 if test -z "$ac_cv_prog_CC"; then
1623 ac_ct_CC=$CC
1624 # Extract the first word of "gcc", so it can be a program name with args.
1625 set dummy gcc; ac_word=$2
1626 echo "$as_me:$LINENO: checking for $ac_word" >&5
1627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1628 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 else
1631 if test -n "$ac_ct_CC"; then
1632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1633 else
1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635 for as_dir in $PATH
1636 do
1637 IFS=$as_save_IFS
1638 test -z "$as_dir" && as_dir=.
1639 for ac_exec_ext in '' $ac_executable_extensions; do
1640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1641 ac_cv_prog_ac_ct_CC="gcc"
1642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1643 break 2
1644 fi
1645 done
1646 done
1647
1648 fi
1649 fi
1650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1651 if test -n "$ac_ct_CC"; then
1652 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1653 echo "${ECHO_T}$ac_ct_CC" >&6
1654 else
1655 echo "$as_me:$LINENO: result: no" >&5
1656 echo "${ECHO_T}no" >&6
1657 fi
1658
1659 CC=$ac_ct_CC
1660 else
1661 CC="$ac_cv_prog_CC"
1662 fi
1663
1664 if test -z "$CC"; then
1665 if test -n "$ac_tool_prefix"; then
1666 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1667 set dummy ${ac_tool_prefix}cc; ac_word=$2
1668 echo "$as_me:$LINENO: checking for $ac_word" >&5
1669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1670 if test "${ac_cv_prog_CC+set}" = set; then
1671 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 else
1673 if test -n "$CC"; then
1674 ac_cv_prog_CC="$CC" # Let the user override the test.
1675 else
1676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677 for as_dir in $PATH
1678 do
1679 IFS=$as_save_IFS
1680 test -z "$as_dir" && as_dir=.
1681 for ac_exec_ext in '' $ac_executable_extensions; do
1682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1683 ac_cv_prog_CC="${ac_tool_prefix}cc"
1684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1685 break 2
1686 fi
1687 done
1688 done
1689
1690 fi
1691 fi
1692 CC=$ac_cv_prog_CC
1693 if test -n "$CC"; then
1694 echo "$as_me:$LINENO: result: $CC" >&5
1695 echo "${ECHO_T}$CC" >&6
1696 else
1697 echo "$as_me:$LINENO: result: no" >&5
1698 echo "${ECHO_T}no" >&6
1699 fi
1700
1701 fi
1702 if test -z "$ac_cv_prog_CC"; then
1703 ac_ct_CC=$CC
1704 # Extract the first word of "cc", so it can be a program name with args.
1705 set dummy cc; ac_word=$2
1706 echo "$as_me:$LINENO: checking for $ac_word" >&5
1707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1710 else
1711 if test -n "$ac_ct_CC"; then
1712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1713 else
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 for as_dir in $PATH
1716 do
1717 IFS=$as_save_IFS
1718 test -z "$as_dir" && as_dir=.
1719 for ac_exec_ext in '' $ac_executable_extensions; do
1720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721 ac_cv_prog_ac_ct_CC="cc"
1722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723 break 2
1724 fi
1725 done
1726 done
1727
1728 fi
1729 fi
1730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1731 if test -n "$ac_ct_CC"; then
1732 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1733 echo "${ECHO_T}$ac_ct_CC" >&6
1734 else
1735 echo "$as_me:$LINENO: result: no" >&5
1736 echo "${ECHO_T}no" >&6
1737 fi
1738
1739 CC=$ac_ct_CC
1740 else
1741 CC="$ac_cv_prog_CC"
1742 fi
1743
1744 fi
1745 if test -z "$CC"; then
1746 # Extract the first word of "cc", so it can be a program name with args.
1747 set dummy cc; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_CC+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753 if test -n "$CC"; then
1754 ac_cv_prog_CC="$CC" # Let the user override the test.
1755 else
1756 ac_prog_rejected=no
1757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758 for as_dir in $PATH
1759 do
1760 IFS=$as_save_IFS
1761 test -z "$as_dir" && as_dir=.
1762 for ac_exec_ext in '' $ac_executable_extensions; do
1763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1765 ac_prog_rejected=yes
1766 continue
1767 fi
1768 ac_cv_prog_CC="cc"
1769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1770 break 2
1771 fi
1772 done
1773 done
1774
1775 if test $ac_prog_rejected = yes; then
1776 # We found a bogon in the path, so make sure we never use it.
1777 set dummy $ac_cv_prog_CC
1778 shift
1779 if test $# != 0; then
1780 # We chose a different compiler from the bogus one.
1781 # However, it has the same basename, so the bogon will be chosen
1782 # first if we set CC to just the basename; use the full file name.
1783 shift
1784 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1785 fi
1786 fi
1787 fi
1788 fi
1789 CC=$ac_cv_prog_CC
1790 if test -n "$CC"; then
1791 echo "$as_me:$LINENO: result: $CC" >&5
1792 echo "${ECHO_T}$CC" >&6
1793 else
1794 echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1796 fi
1797
1798 fi
1799 if test -z "$CC"; then
1800 if test -n "$ac_tool_prefix"; then
1801 for ac_prog in cl
1802 do
1803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1805 echo "$as_me:$LINENO: checking for $ac_word" >&5
1806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1807 if test "${ac_cv_prog_CC+set}" = set; then
1808 echo $ECHO_N "(cached) $ECHO_C" >&6
1809 else
1810 if test -n "$CC"; then
1811 ac_cv_prog_CC="$CC" # Let the user override the test.
1812 else
1813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1814 for as_dir in $PATH
1815 do
1816 IFS=$as_save_IFS
1817 test -z "$as_dir" && as_dir=.
1818 for ac_exec_ext in '' $ac_executable_extensions; do
1819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1820 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1822 break 2
1823 fi
1824 done
1825 done
1826
1827 fi
1828 fi
1829 CC=$ac_cv_prog_CC
1830 if test -n "$CC"; then
1831 echo "$as_me:$LINENO: result: $CC" >&5
1832 echo "${ECHO_T}$CC" >&6
1833 else
1834 echo "$as_me:$LINENO: result: no" >&5
1835 echo "${ECHO_T}no" >&6
1836 fi
1837
1838 test -n "$CC" && break
1839 done
1840 fi
1841 if test -z "$CC"; then
1842 ac_ct_CC=$CC
1843 for ac_prog in cl
1844 do
1845 # Extract the first word of "$ac_prog", so it can be a program name with args.
1846 set dummy $ac_prog; ac_word=$2
1847 echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852 if test -n "$ac_ct_CC"; then
1853 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1854 else
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1857 do
1858 IFS=$as_save_IFS
1859 test -z "$as_dir" && as_dir=.
1860 for ac_exec_ext in '' $ac_executable_extensions; do
1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862 ac_cv_prog_ac_ct_CC="$ac_prog"
1863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864 break 2
1865 fi
1866 done
1867 done
1868
1869 fi
1870 fi
1871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1872 if test -n "$ac_ct_CC"; then
1873 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1874 echo "${ECHO_T}$ac_ct_CC" >&6
1875 else
1876 echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1878 fi
1879
1880 test -n "$ac_ct_CC" && break
1881 done
1882
1883 CC=$ac_ct_CC
1884 fi
1885
1886 fi
1887
1888
1889 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1890 See \`config.log' for more details." >&5
1891 echo "$as_me: error: no acceptable C compiler found in \$PATH
1892 See \`config.log' for more details." >&2;}
1893 { (exit 1); exit 1; }; }
1894
1895 # Provide some information about the compiler.
1896 echo "$as_me:$LINENO:" \
1897 "checking for C compiler version" >&5
1898 ac_compiler=`set X $ac_compile; echo $2`
1899 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1900 (eval $ac_compiler --version </dev/null >&5) 2>&5
1901 ac_status=$?
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }
1904 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1905 (eval $ac_compiler -v </dev/null >&5) 2>&5
1906 ac_status=$?
1907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908 (exit $ac_status); }
1909 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1910 (eval $ac_compiler -V </dev/null >&5) 2>&5
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }
1914
1915 cat >conftest.$ac_ext <<_ACEOF
1916 /* confdefs.h. */
1917 _ACEOF
1918 cat confdefs.h >>conftest.$ac_ext
1919 cat >>conftest.$ac_ext <<_ACEOF
1920 /* end confdefs.h. */
1921
1922 int
1923 main ()
1924 {
1925
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 ac_clean_files_save=$ac_clean_files
1931 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1932 # Try to create an executable without -o first, disregard a.out.
1933 # It will help us diagnose broken compilers, and finding out an intuition
1934 # of exeext.
1935 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1936 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1937 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1938 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1939 (eval $ac_link_default) 2>&5
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; then
1943 # Find the output, starting from the most likely. This scheme is
1944 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1945 # resort.
1946
1947 # Be careful to initialize this variable, since it used to be cached.
1948 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1949 ac_cv_exeext=
1950 # b.out is created by i960 compilers.
1951 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1952 do
1953 test -f "$ac_file" || continue
1954 case $ac_file in
1955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1956 ;;
1957 conftest.$ac_ext )
1958 # This is the source file.
1959 ;;
1960 [ab].out )
1961 # We found the default executable, but exeext='' is most
1962 # certainly right.
1963 break;;
1964 *.* )
1965 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1966 # FIXME: I believe we export ac_cv_exeext for Libtool,
1967 # but it would be cool to find out if it's true. Does anybody
1968 # maintain Libtool? --akim.
1969 export ac_cv_exeext
1970 break;;
1971 * )
1972 break;;
1973 esac
1974 done
1975 else
1976 echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1978
1979 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1980 See \`config.log' for more details." >&5
1981 echo "$as_me: error: C compiler cannot create executables
1982 See \`config.log' for more details." >&2;}
1983 { (exit 77); exit 77; }; }
1984 fi
1985
1986 ac_exeext=$ac_cv_exeext
1987 echo "$as_me:$LINENO: result: $ac_file" >&5
1988 echo "${ECHO_T}$ac_file" >&6
1989
1990 # Check the compiler produces executables we can run. If not, either
1991 # the compiler is broken, or we cross compile.
1992 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1993 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1994 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1995 # If not cross compiling, check that we can run a simple program.
1996 if test "$cross_compiling" != yes; then
1997 if { ac_try='./$ac_file'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 (eval $ac_try) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; }; then
2003 cross_compiling=no
2004 else
2005 if test "$cross_compiling" = maybe; then
2006 cross_compiling=yes
2007 else
2008 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2009 If you meant to cross compile, use \`--host'.
2010 See \`config.log' for more details." >&5
2011 echo "$as_me: error: cannot run C compiled programs.
2012 If you meant to cross compile, use \`--host'.
2013 See \`config.log' for more details." >&2;}
2014 { (exit 1); exit 1; }; }
2015 fi
2016 fi
2017 fi
2018 echo "$as_me:$LINENO: result: yes" >&5
2019 echo "${ECHO_T}yes" >&6
2020
2021 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2022 ac_clean_files=$ac_clean_files_save
2023 # Check the compiler produces executables we can run. If not, either
2024 # the compiler is broken, or we cross compile.
2025 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2026 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2027 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2028 echo "${ECHO_T}$cross_compiling" >&6
2029
2030 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2031 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2033 (eval $ac_link) 2>&5
2034 ac_status=$?
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }; then
2037 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2038 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2039 # work properly (i.e., refer to `conftest.exe'), while it won't with
2040 # `rm'.
2041 for ac_file in conftest.exe conftest conftest.*; do
2042 test -f "$ac_file" || continue
2043 case $ac_file in
2044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2045 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2046 export ac_cv_exeext
2047 break;;
2048 * ) break;;
2049 esac
2050 done
2051 else
2052 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2053 See \`config.log' for more details." >&5
2054 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2055 See \`config.log' for more details." >&2;}
2056 { (exit 1); exit 1; }; }
2057 fi
2058
2059 rm -f conftest$ac_cv_exeext
2060 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2061 echo "${ECHO_T}$ac_cv_exeext" >&6
2062
2063 rm -f conftest.$ac_ext
2064 EXEEXT=$ac_cv_exeext
2065 ac_exeext=$EXEEXT
2066 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2067 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2068 if test "${ac_cv_objext+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071 cat >conftest.$ac_ext <<_ACEOF
2072 /* confdefs.h. */
2073 _ACEOF
2074 cat confdefs.h >>conftest.$ac_ext
2075 cat >>conftest.$ac_ext <<_ACEOF
2076 /* end confdefs.h. */
2077
2078 int
2079 main ()
2080 {
2081
2082 ;
2083 return 0;
2084 }
2085 _ACEOF
2086 rm -f conftest.o conftest.obj
2087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2088 (eval $ac_compile) 2>&5
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; then
2092 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2093 case $ac_file in
2094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2095 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2096 break;;
2097 esac
2098 done
2099 else
2100 echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2102
2103 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2106 See \`config.log' for more details." >&2;}
2107 { (exit 1); exit 1; }; }
2108 fi
2109
2110 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2111 fi
2112 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2113 echo "${ECHO_T}$ac_cv_objext" >&6
2114 OBJEXT=$ac_cv_objext
2115 ac_objext=$OBJEXT
2116 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2117 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2118 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121 cat >conftest.$ac_ext <<_ACEOF
2122 /* confdefs.h. */
2123 _ACEOF
2124 cat confdefs.h >>conftest.$ac_ext
2125 cat >>conftest.$ac_ext <<_ACEOF
2126 /* end confdefs.h. */
2127
2128 int
2129 main ()
2130 {
2131 #ifndef __GNUC__
2132 choke me
2133 #endif
2134
2135 ;
2136 return 0;
2137 }
2138 _ACEOF
2139 rm -f conftest.$ac_objext
2140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 (eval $ac_compile) 2>conftest.er1
2142 ac_status=$?
2143 grep -v '^ *+' conftest.er1 >conftest.err
2144 rm -f conftest.er1
2145 cat conftest.err >&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); } &&
2148 { ac_try='test -z "$ac_c_werror_flag"
2149 || test ! -s conftest.err'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 (eval $ac_try) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2161 ac_compiler_gnu=yes
2162 else
2163 echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2165
2166 ac_compiler_gnu=no
2167 fi
2168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2169 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2170
2171 fi
2172 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2173 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2174 GCC=`test $ac_compiler_gnu = yes && echo yes`
2175 ac_test_CFLAGS=${CFLAGS+set}
2176 ac_save_CFLAGS=$CFLAGS
2177 CFLAGS="-g"
2178 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2179 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2180 if test "${ac_cv_prog_cc_g+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183 cat >conftest.$ac_ext <<_ACEOF
2184 /* confdefs.h. */
2185 _ACEOF
2186 cat confdefs.h >>conftest.$ac_ext
2187 cat >>conftest.$ac_ext <<_ACEOF
2188 /* end confdefs.h. */
2189
2190 int
2191 main ()
2192 {
2193
2194 ;
2195 return 0;
2196 }
2197 _ACEOF
2198 rm -f conftest.$ac_objext
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>conftest.er1
2201 ac_status=$?
2202 grep -v '^ *+' conftest.er1 >conftest.err
2203 rm -f conftest.er1
2204 cat conftest.err >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); } &&
2207 { ac_try='test -z "$ac_c_werror_flag"
2208 || test ! -s conftest.err'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 (eval $ac_try) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; } &&
2214 { ac_try='test -s conftest.$ac_objext'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 (eval $ac_try) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2220 ac_cv_prog_cc_g=yes
2221 else
2222 echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2224
2225 ac_cv_prog_cc_g=no
2226 fi
2227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2228 fi
2229 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2230 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2231 if test "$ac_test_CFLAGS" = set; then
2232 CFLAGS=$ac_save_CFLAGS
2233 elif test $ac_cv_prog_cc_g = yes; then
2234 if test "$GCC" = yes; then
2235 CFLAGS="-g -O2"
2236 else
2237 CFLAGS="-g"
2238 fi
2239 else
2240 if test "$GCC" = yes; then
2241 CFLAGS="-O2"
2242 else
2243 CFLAGS=
2244 fi
2245 fi
2246 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2247 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2248 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251 ac_cv_prog_cc_stdc=no
2252 ac_save_CC=$CC
2253 cat >conftest.$ac_ext <<_ACEOF
2254 /* confdefs.h. */
2255 _ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h. */
2259 #include <stdarg.h>
2260 #include <stdio.h>
2261 #include <sys/types.h>
2262 #include <sys/stat.h>
2263 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2264 struct buf { int x; };
2265 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2266 static char *e (p, i)
2267 char **p;
2268 int i;
2269 {
2270 return p[i];
2271 }
2272 static char *f (char * (*g) (char **, int), char **p, ...)
2273 {
2274 char *s;
2275 va_list v;
2276 va_start (v,p);
2277 s = g (p, va_arg (v,int));
2278 va_end (v);
2279 return s;
2280 }
2281
2282 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2283 function prototypes and stuff, but not '\xHH' hex character constants.
2284 These don't provoke an error unfortunately, instead are silently treated
2285 as 'x'. The following induces an error, until -std1 is added to get
2286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2287 array size at least. It's necessary to write '\x00'==0 to get something
2288 that's true only with -std1. */
2289 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2290
2291 int test (int i, double x);
2292 struct s1 {int (*f) (int a);};
2293 struct s2 {int (*f) (double a);};
2294 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2295 int argc;
2296 char **argv;
2297 int
2298 main ()
2299 {
2300 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2301 ;
2302 return 0;
2303 }
2304 _ACEOF
2305 # Don't try gcc -ansi; that turns off useful extensions and
2306 # breaks some systems' header files.
2307 # AIX -qlanglvl=ansi
2308 # Ultrix and OSF/1 -std1
2309 # HP-UX 10.20 and later -Ae
2310 # HP-UX older versions -Aa -D_HPUX_SOURCE
2311 # SVR4 -Xc -D__EXTENSIONS__
2312 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2313 do
2314 CC="$ac_save_CC $ac_arg"
2315 rm -f conftest.$ac_objext
2316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>conftest.er1
2318 ac_status=$?
2319 grep -v '^ *+' conftest.er1 >conftest.err
2320 rm -f conftest.er1
2321 cat conftest.err >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); } &&
2324 { ac_try='test -z "$ac_c_werror_flag"
2325 || test ! -s conftest.err'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; } &&
2331 { ac_try='test -s conftest.$ac_objext'
2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 (eval $ac_try) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; }; then
2337 ac_cv_prog_cc_stdc=$ac_arg
2338 break
2339 else
2340 echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2342
2343 fi
2344 rm -f conftest.err conftest.$ac_objext
2345 done
2346 rm -f conftest.$ac_ext conftest.$ac_objext
2347 CC=$ac_save_CC
2348
2349 fi
2350
2351 case "x$ac_cv_prog_cc_stdc" in
2352 x|xno)
2353 echo "$as_me:$LINENO: result: none needed" >&5
2354 echo "${ECHO_T}none needed" >&6 ;;
2355 *)
2356 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2357 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2358 CC="$CC $ac_cv_prog_cc_stdc" ;;
2359 esac
2360
2361 # Some people use a C++ compiler to compile C. Since we use `exit',
2362 # in C++ we need to declare it. In case someone uses the same compiler
2363 # for both compiling C and C++ we need to have the C++ compiler decide
2364 # the declaration of exit, since it's the most demanding environment.
2365 cat >conftest.$ac_ext <<_ACEOF
2366 #ifndef __cplusplus
2367 choke me
2368 #endif
2369 _ACEOF
2370 rm -f conftest.$ac_objext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372 (eval $ac_compile) 2>conftest.er1
2373 ac_status=$?
2374 grep -v '^ *+' conftest.er1 >conftest.err
2375 rm -f conftest.er1
2376 cat conftest.err >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
2379 { ac_try='test -z "$ac_c_werror_flag"
2380 || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 (eval $ac_try) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 (eval $ac_try) 2>&5
2389 ac_status=$?
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2392 for ac_declaration in \
2393 '' \
2394 'extern "C" void std::exit (int) throw (); using std::exit;' \
2395 'extern "C" void std::exit (int); using std::exit;' \
2396 'extern "C" void exit (int) throw ();' \
2397 'extern "C" void exit (int);' \
2398 'void exit (int);'
2399 do
2400 cat >conftest.$ac_ext <<_ACEOF
2401 /* confdefs.h. */
2402 _ACEOF
2403 cat confdefs.h >>conftest.$ac_ext
2404 cat >>conftest.$ac_ext <<_ACEOF
2405 /* end confdefs.h. */
2406 $ac_declaration
2407 #include <stdlib.h>
2408 int
2409 main ()
2410 {
2411 exit (42);
2412 ;
2413 return 0;
2414 }
2415 _ACEOF
2416 rm -f conftest.$ac_objext
2417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2418 (eval $ac_compile) 2>conftest.er1
2419 ac_status=$?
2420 grep -v '^ *+' conftest.er1 >conftest.err
2421 rm -f conftest.er1
2422 cat conftest.err >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); } &&
2425 { ac_try='test -z "$ac_c_werror_flag"
2426 || test ! -s conftest.err'
2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 (eval $ac_try) 2>&5
2429 ac_status=$?
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; } &&
2432 { ac_try='test -s conftest.$ac_objext'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 (eval $ac_try) 2>&5
2435 ac_status=$?
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; }; then
2438 :
2439 else
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2442
2443 continue
2444 fi
2445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2446 cat >conftest.$ac_ext <<_ACEOF
2447 /* confdefs.h. */
2448 _ACEOF
2449 cat confdefs.h >>conftest.$ac_ext
2450 cat >>conftest.$ac_ext <<_ACEOF
2451 /* end confdefs.h. */
2452 $ac_declaration
2453 int
2454 main ()
2455 {
2456 exit (42);
2457 ;
2458 return 0;
2459 }
2460 _ACEOF
2461 rm -f conftest.$ac_objext
2462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2463 (eval $ac_compile) 2>conftest.er1
2464 ac_status=$?
2465 grep -v '^ *+' conftest.er1 >conftest.err
2466 rm -f conftest.er1
2467 cat conftest.err >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try='test -z "$ac_c_werror_flag"
2471 || test ! -s conftest.err'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 (eval $ac_try) 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; } &&
2477 { ac_try='test -s conftest.$ac_objext'
2478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 (eval $ac_try) 2>&5
2480 ac_status=$?
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; }; then
2483 break
2484 else
2485 echo "$as_me: failed program was:" >&5
2486 sed 's/^/| /' conftest.$ac_ext >&5
2487
2488 fi
2489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2490 done
2491 rm -f conftest*
2492 if test -n "$ac_declaration"; then
2493 echo '#ifdef __cplusplus' >>confdefs.h
2494 echo $ac_declaration >>confdefs.h
2495 echo '#endif' >>confdefs.h
2496 fi
2497
2498 else
2499 echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2501
2502 fi
2503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2504 ac_ext=c
2505 ac_cpp='$CPP $CPPFLAGS'
2506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2509
2510
2511 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2512 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2513 if test "${ac_cv_search_strerror+set}" = set; then
2514 echo $ECHO_N "(cached) $ECHO_C" >&6
2515 else
2516 ac_func_search_save_LIBS=$LIBS
2517 ac_cv_search_strerror=no
2518 cat >conftest.$ac_ext <<_ACEOF
2519 /* confdefs.h. */
2520 _ACEOF
2521 cat confdefs.h >>conftest.$ac_ext
2522 cat >>conftest.$ac_ext <<_ACEOF
2523 /* end confdefs.h. */
2524
2525 /* Override any gcc2 internal prototype to avoid an error. */
2526 #ifdef __cplusplus
2527 extern "C"
2528 #endif
2529 /* We use char because int might match the return type of a gcc2
2530 builtin and then its argument prototype would still apply. */
2531 char strerror ();
2532 int
2533 main ()
2534 {
2535 strerror ();
2536 ;
2537 return 0;
2538 }
2539 _ACEOF
2540 rm -f conftest.$ac_objext conftest$ac_exeext
2541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2542 (eval $ac_link) 2>conftest.er1
2543 ac_status=$?
2544 grep -v '^ *+' conftest.er1 >conftest.err
2545 rm -f conftest.er1
2546 cat conftest.err >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } &&
2549 { ac_try='test -z "$ac_c_werror_flag"
2550 || test ! -s conftest.err'
2551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552 (eval $ac_try) 2>&5
2553 ac_status=$?
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; } &&
2556 { ac_try='test -s conftest$ac_exeext'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 (eval $ac_try) 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; }; then
2562 ac_cv_search_strerror="none required"
2563 else
2564 echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2566
2567 fi
2568 rm -f conftest.err conftest.$ac_objext \
2569 conftest$ac_exeext conftest.$ac_ext
2570 if test "$ac_cv_search_strerror" = no; then
2571 for ac_lib in cposix; do
2572 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2573 cat >conftest.$ac_ext <<_ACEOF
2574 /* confdefs.h. */
2575 _ACEOF
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h. */
2579
2580 /* Override any gcc2 internal prototype to avoid an error. */
2581 #ifdef __cplusplus
2582 extern "C"
2583 #endif
2584 /* We use char because int might match the return type of a gcc2
2585 builtin and then its argument prototype would still apply. */
2586 char strerror ();
2587 int
2588 main ()
2589 {
2590 strerror ();
2591 ;
2592 return 0;
2593 }
2594 _ACEOF
2595 rm -f conftest.$ac_objext conftest$ac_exeext
2596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2597 (eval $ac_link) 2>conftest.er1
2598 ac_status=$?
2599 grep -v '^ *+' conftest.er1 >conftest.err
2600 rm -f conftest.er1
2601 cat conftest.err >&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); } &&
2604 { ac_try='test -z "$ac_c_werror_flag"
2605 || test ! -s conftest.err'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 (eval $ac_try) 2>&5
2608 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; } &&
2611 { ac_try='test -s conftest$ac_exeext'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 (eval $ac_try) 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; }; then
2617 ac_cv_search_strerror="-l$ac_lib"
2618 break
2619 else
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2622
2623 fi
2624 rm -f conftest.err conftest.$ac_objext \
2625 conftest$ac_exeext conftest.$ac_ext
2626 done
2627 fi
2628 LIBS=$ac_func_search_save_LIBS
2629 fi
2630 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2631 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2632 if test "$ac_cv_search_strerror" != no; then
2633 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2634
2635 fi
2636
2637
2638 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2639 am__api_version="1.9"
2640 # Find a good install program. We prefer a C program (faster),
2641 # so one script is as good as another. But avoid the broken or
2642 # incompatible versions:
2643 # SysV /etc/install, /usr/sbin/install
2644 # SunOS /usr/etc/install
2645 # IRIX /sbin/install
2646 # AIX /bin/install
2647 # AmigaOS /C/install, which installs bootblocks on floppy discs
2648 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2649 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2650 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2651 # OS/2's system install, which has a completely different semantic
2652 # ./install, which can be erroneously created by make from ./install.sh.
2653 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2654 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2655 if test -z "$INSTALL"; then
2656 if test "${ac_cv_path_install+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 # Account for people who put trailing slashes in PATH elements.
2665 case $as_dir/ in
2666 ./ | .// | /cC/* | \
2667 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2668 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2669 /usr/ucb/* ) ;;
2670 *)
2671 # OSF1 and SCO ODT 3.0 have their own names for install.
2672 # Don't use installbsd from OSF since it installs stuff as root
2673 # by default.
2674 for ac_prog in ginstall scoinst install; do
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2677 if test $ac_prog = install &&
2678 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2679 # AIX install. It has an incompatible calling convention.
2680 :
2681 elif test $ac_prog = install &&
2682 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2683 # program-specific install script used by HP pwplus--don't use.
2684 :
2685 else
2686 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2687 break 3
2688 fi
2689 fi
2690 done
2691 done
2692 ;;
2693 esac
2694 done
2695
2696
2697 fi
2698 if test "${ac_cv_path_install+set}" = set; then
2699 INSTALL=$ac_cv_path_install
2700 else
2701 # As a last resort, use the slow shell script. We don't cache a
2702 # path for INSTALL within a source directory, because that will
2703 # break other packages using the cache if that directory is
2704 # removed, or if the path is relative.
2705 INSTALL=$ac_install_sh
2706 fi
2707 fi
2708 echo "$as_me:$LINENO: result: $INSTALL" >&5
2709 echo "${ECHO_T}$INSTALL" >&6
2710
2711 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2712 # It thinks the first close brace ends the variable substitution.
2713 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2714
2715 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2716
2717 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2718
2719 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2720 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2721 # Just in case
2722 sleep 1
2723 echo timestamp > conftest.file
2724 # Do `set' in a subshell so we don't clobber the current shell's
2725 # arguments. Must try -L first in case configure is actually a
2726 # symlink; some systems play weird games with the mod time of symlinks
2727 # (eg FreeBSD returns the mod time of the symlink's containing
2728 # directory).
2729 if (
2730 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2731 if test "$*" = "X"; then
2732 # -L didn't work.
2733 set X `ls -t $srcdir/configure conftest.file`
2734 fi
2735 rm -f conftest.file
2736 if test "$*" != "X $srcdir/configure conftest.file" \
2737 && test "$*" != "X conftest.file $srcdir/configure"; then
2738
2739 # If neither matched, then we have a broken ls. This can happen
2740 # if, for instance, CONFIG_SHELL is bash and it inherits a
2741 # broken ls alias from the environment. This has actually
2742 # happened. Such a system could not be considered "sane".
2743 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2744 alias in your environment" >&5
2745 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2746 alias in your environment" >&2;}
2747 { (exit 1); exit 1; }; }
2748 fi
2749
2750 test "$2" = conftest.file
2751 )
2752 then
2753 # Ok.
2754 :
2755 else
2756 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2757 Check your system clock" >&5
2758 echo "$as_me: error: newly created file is older than distributed files!
2759 Check your system clock" >&2;}
2760 { (exit 1); exit 1; }; }
2761 fi
2762 echo "$as_me:$LINENO: result: yes" >&5
2763 echo "${ECHO_T}yes" >&6
2764 test "$program_prefix" != NONE &&
2765 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2766 # Use a double $ so make ignores it.
2767 test "$program_suffix" != NONE &&
2768 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2769 # Double any \ or $. echo might interpret backslashes.
2770 # By default was `s,x,x', remove it if useless.
2771 cat <<\_ACEOF >conftest.sed
2772 s/[\\$]/&&/g;s/;s,x,x,$//
2773 _ACEOF
2774 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2775 rm conftest.sed
2776
2777 # expand $ac_aux_dir to an absolute path
2778 am_aux_dir=`cd $ac_aux_dir && pwd`
2779
2780 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2781 # Use eval to expand $SHELL
2782 if eval "$MISSING --run true"; then
2783 am_missing_run="$MISSING --run "
2784 else
2785 am_missing_run=
2786 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2787 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2788 fi
2789
2790 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2791 # We used to keeping the `.' as first argument, in order to
2792 # allow $(mkdir_p) to be used without argument. As in
2793 # $(mkdir_p) $(somedir)
2794 # where $(somedir) is conditionally defined. However this is wrong
2795 # for two reasons:
2796 # 1. if the package is installed by a user who cannot write `.'
2797 # make install will fail,
2798 # 2. the above comment should most certainly read
2799 # $(mkdir_p) $(DESTDIR)$(somedir)
2800 # so it does not work when $(somedir) is undefined and
2801 # $(DESTDIR) is not.
2802 # To support the latter case, we have to write
2803 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2804 # so the `.' trick is pointless.
2805 mkdir_p='mkdir -p --'
2806 else
2807 # On NextStep and OpenStep, the `mkdir' command does not
2808 # recognize any option. It will interpret all options as
2809 # directories to create, and then abort because `.' already
2810 # exists.
2811 for d in ./-p ./--version;
2812 do
2813 test -d $d && rmdir $d
2814 done
2815 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2816 if test -f "$ac_aux_dir/mkinstalldirs"; then
2817 mkdir_p='$(mkinstalldirs)'
2818 else
2819 mkdir_p='$(install_sh) -d'
2820 fi
2821 fi
2822
2823 for ac_prog in gawk mawk nawk awk
2824 do
2825 # Extract the first word of "$ac_prog", so it can be a program name with args.
2826 set dummy $ac_prog; ac_word=$2
2827 echo "$as_me:$LINENO: checking for $ac_word" >&5
2828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2829 if test "${ac_cv_prog_AWK+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 else
2832 if test -n "$AWK"; then
2833 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2834 else
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2837 do
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2842 ac_cv_prog_AWK="$ac_prog"
2843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 break 2
2845 fi
2846 done
2847 done
2848
2849 fi
2850 fi
2851 AWK=$ac_cv_prog_AWK
2852 if test -n "$AWK"; then
2853 echo "$as_me:$LINENO: result: $AWK" >&5
2854 echo "${ECHO_T}$AWK" >&6
2855 else
2856 echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6
2858 fi
2859
2860 test -n "$AWK" && break
2861 done
2862
2863 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2864 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2865 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2866 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2868 else
2869 cat >conftest.make <<\_ACEOF
2870 all:
2871 @echo 'ac_maketemp="$(MAKE)"'
2872 _ACEOF
2873 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2874 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2875 if test -n "$ac_maketemp"; then
2876 eval ac_cv_prog_make_${ac_make}_set=yes
2877 else
2878 eval ac_cv_prog_make_${ac_make}_set=no
2879 fi
2880 rm -f conftest.make
2881 fi
2882 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2883 echo "$as_me:$LINENO: result: yes" >&5
2884 echo "${ECHO_T}yes" >&6
2885 SET_MAKE=
2886 else
2887 echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6
2889 SET_MAKE="MAKE=${MAKE-make}"
2890 fi
2891
2892 rm -rf .tst 2>/dev/null
2893 mkdir .tst 2>/dev/null
2894 if test -d .tst; then
2895 am__leading_dot=.
2896 else
2897 am__leading_dot=_
2898 fi
2899 rmdir .tst 2>/dev/null
2900
2901 DEPDIR="${am__leading_dot}deps"
2902
2903 ac_config_commands="$ac_config_commands depfiles"
2904
2905
2906 am_make=${MAKE-make}
2907 cat > confinc << 'END'
2908 am__doit:
2909 @echo done
2910 .PHONY: am__doit
2911 END
2912 # If we don't find an include directive, just comment out the code.
2913 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2914 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2915 am__include="#"
2916 am__quote=
2917 _am_result=none
2918 # First try GNU make style include.
2919 echo "include confinc" > confmf
2920 # We grep out `Entering directory' and `Leaving directory'
2921 # messages which can occur if `w' ends up in MAKEFLAGS.
2922 # In particular we don't look at `^make:' because GNU make might
2923 # be invoked under some other name (usually "gmake"), in which
2924 # case it prints its new name instead of `make'.
2925 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2926 am__include=include
2927 am__quote=
2928 _am_result=GNU
2929 fi
2930 # Now try BSD make style include.
2931 if test "$am__include" = "#"; then
2932 echo '.include "confinc"' > confmf
2933 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2934 am__include=.include
2935 am__quote="\""
2936 _am_result=BSD
2937 fi
2938 fi
2939
2940
2941 echo "$as_me:$LINENO: result: $_am_result" >&5
2942 echo "${ECHO_T}$_am_result" >&6
2943 rm -f confinc confmf
2944
2945 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2946 if test "${enable_dependency_tracking+set}" = set; then
2947 enableval="$enable_dependency_tracking"
2948
2949 fi;
2950 if test "x$enable_dependency_tracking" != xno; then
2951 am_depcomp="$ac_aux_dir/depcomp"
2952 AMDEPBACKSLASH='\'
2953 fi
2954
2955
2956 if test "x$enable_dependency_tracking" != xno; then
2957 AMDEP_TRUE=
2958 AMDEP_FALSE='#'
2959 else
2960 AMDEP_TRUE='#'
2961 AMDEP_FALSE=
2962 fi
2963
2964
2965
2966 # test to see if srcdir already configured
2967 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2968 test -f $srcdir/config.status; then
2969 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2970 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2971 { (exit 1); exit 1; }; }
2972 fi
2973
2974 # test whether we have cygpath
2975 if test -z "$CYGPATH_W"; then
2976 if (cygpath --version) >/dev/null 2>/dev/null; then
2977 CYGPATH_W='cygpath -w'
2978 else
2979 CYGPATH_W=echo
2980 fi
2981 fi
2982
2983
2984 # Define the identity of the package.
2985 PACKAGE=gprof
2986 VERSION=${BFD_VERSION}
2987
2988
2989 cat >>confdefs.h <<_ACEOF
2990 #define PACKAGE "$PACKAGE"
2991 _ACEOF
2992
2993
2994 cat >>confdefs.h <<_ACEOF
2995 #define VERSION "$VERSION"
2996 _ACEOF
2997
2998 # Some tools Automake needs.
2999
3000 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3001
3002
3003 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3004
3005
3006 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3007
3008
3009 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3010
3011
3012 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3013
3014 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3015
3016 # Installed binaries are usually stripped using `strip' when the user
3017 # run `make install-strip'. However `strip' might not be the right
3018 # tool to use in cross-compilation environments, therefore Automake
3019 # will honor the `STRIP' environment variable to overrule this program.
3020 if test "$cross_compiling" != no; then
3021 if test -n "$ac_tool_prefix"; then
3022 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3023 set dummy ${ac_tool_prefix}strip; ac_word=$2
3024 echo "$as_me:$LINENO: checking for $ac_word" >&5
3025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3026 if test "${ac_cv_prog_STRIP+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3028 else
3029 if test -n "$STRIP"; then
3030 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3034 do
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2
3042 fi
3043 done
3044 done
3045
3046 fi
3047 fi
3048 STRIP=$ac_cv_prog_STRIP
3049 if test -n "$STRIP"; then
3050 echo "$as_me:$LINENO: result: $STRIP" >&5
3051 echo "${ECHO_T}$STRIP" >&6
3052 else
3053 echo "$as_me:$LINENO: result: no" >&5
3054 echo "${ECHO_T}no" >&6
3055 fi
3056
3057 fi
3058 if test -z "$ac_cv_prog_STRIP"; then
3059 ac_ct_STRIP=$STRIP
3060 # Extract the first word of "strip", so it can be a program name with args.
3061 set dummy strip; ac_word=$2
3062 echo "$as_me:$LINENO: checking for $ac_word" >&5
3063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3064 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067 if test -n "$ac_ct_STRIP"; then
3068 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077 ac_cv_prog_ac_ct_STRIP="strip"
3078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3080 fi
3081 done
3082 done
3083
3084 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3085 fi
3086 fi
3087 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3088 if test -n "$ac_ct_STRIP"; then
3089 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3090 echo "${ECHO_T}$ac_ct_STRIP" >&6
3091 else
3092 echo "$as_me:$LINENO: result: no" >&5
3093 echo "${ECHO_T}no" >&6
3094 fi
3095
3096 STRIP=$ac_ct_STRIP
3097 else
3098 STRIP="$ac_cv_prog_STRIP"
3099 fi
3100
3101 fi
3102 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3103
3104 # We need awk for the "check" target. The system "awk" is bad on
3105 # some platforms.
3106 # Always define AMTAR for backward compatibility.
3107
3108 AMTAR=${AMTAR-"${am_missing_run}tar"}
3109
3110 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3111
3112
3113
3114
3115 depcc="$CC" am_compiler_list=
3116
3117 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3118 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3119 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 else
3122 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3123 # We make a subdir and do the tests there. Otherwise we can end up
3124 # making bogus files that we don't know about and never remove. For
3125 # instance it was reported that on HP-UX the gcc test will end up
3126 # making a dummy file named `D' -- because `-MD' means `put the output
3127 # in D'.
3128 mkdir conftest.dir
3129 # Copy depcomp to subdir because otherwise we won't find it if we're
3130 # using a relative directory.
3131 cp "$am_depcomp" conftest.dir
3132 cd conftest.dir
3133 # We will build objects and dependencies in a subdirectory because
3134 # it helps to detect inapplicable dependency modes. For instance
3135 # both Tru64's cc and ICC support -MD to output dependencies as a
3136 # side effect of compilation, but ICC will put the dependencies in
3137 # the current directory while Tru64 will put them in the object
3138 # directory.
3139 mkdir sub
3140
3141 am_cv_CC_dependencies_compiler_type=none
3142 if test "$am_compiler_list" = ""; then
3143 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3144 fi
3145 for depmode in $am_compiler_list; do
3146 # Setup a source with many dependencies, because some compilers
3147 # like to wrap large dependency lists on column 80 (with \), and
3148 # we should not choose a depcomp mode which is confused by this.
3149 #
3150 # We need to recreate these files for each test, as the compiler may
3151 # overwrite some of them when testing with obscure command lines.
3152 # This happens at least with the AIX C compiler.
3153 : > sub/conftest.c
3154 for i in 1 2 3 4 5 6; do
3155 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3156 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3157 # Solaris 8's {/usr,}/bin/sh.
3158 touch sub/conftst$i.h
3159 done
3160 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3161
3162 case $depmode in
3163 nosideeffect)
3164 # after this tag, mechanisms are not by side-effect, so they'll
3165 # only be used when explicitly requested
3166 if test "x$enable_dependency_tracking" = xyes; then
3167 continue
3168 else
3169 break
3170 fi
3171 ;;
3172 none) break ;;
3173 esac
3174 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3175 # mode. It turns out that the SunPro C++ compiler does not properly
3176 # handle `-M -o', and we need to detect this.
3177 if depmode=$depmode \
3178 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3179 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3180 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3181 >/dev/null 2>conftest.err &&
3182 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3183 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3184 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3185 # icc doesn't choke on unknown options, it will just issue warnings
3186 # or remarks (even with -Werror). So we grep stderr for any message
3187 # that says an option was ignored or not supported.
3188 # When given -MP, icc 7.0 and 7.1 complain thusly:
3189 # icc: Command line warning: ignoring option '-M'; no argument required
3190 # The diagnosis changed in icc 8.0:
3191 # icc: Command line remark: option '-MP' not supported
3192 if (grep 'ignoring option' conftest.err ||
3193 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3194 am_cv_CC_dependencies_compiler_type=$depmode
3195 break
3196 fi
3197 fi
3198 done
3199
3200 cd ..
3201 rm -rf conftest.dir
3202 else
3203 am_cv_CC_dependencies_compiler_type=none
3204 fi
3205
3206 fi
3207 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3208 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3209 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3210
3211
3212
3213 if
3214 test "x$enable_dependency_tracking" != xno \
3215 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3216 am__fastdepCC_TRUE=
3217 am__fastdepCC_FALSE='#'
3218 else
3219 am__fastdepCC_TRUE='#'
3220 am__fastdepCC_FALSE=
3221 fi
3222
3223
3224
3225
3226
3227
3228 macro_version='2.1a'
3229 macro_revision='1.2435'
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242 ltmain="$ac_aux_dir/ltmain.sh"
3243
3244 # Set options
3245
3246 enable_dlopen=no
3247
3248
3249 enable_win32_dll=no
3250
3251
3252 # Check whether --enable-shared or --disable-shared was given.
3253 if test "${enable_shared+set}" = set; then
3254 enableval="$enable_shared"
3255 p=${PACKAGE-default}
3256 case $enableval in
3257 yes) enable_shared=yes ;;
3258 no) enable_shared=no ;;
3259 *)
3260 enable_shared=no
3261 # Look at the argument we got. We use all the common list separators.
3262 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3263 for pkg in $enableval; do
3264 IFS="$lt_save_ifs"
3265 if test "X$pkg" = "X$p"; then
3266 enable_shared=yes
3267 fi
3268 done
3269 IFS="$lt_save_ifs"
3270 ;;
3271 esac
3272 else
3273 enable_shared=yes
3274 fi;
3275
3276
3277
3278
3279
3280
3281
3282
3283 # Check whether --enable-static or --disable-static was given.
3284 if test "${enable_static+set}" = set; then
3285 enableval="$enable_static"
3286 p=${PACKAGE-default}
3287 case $enableval in
3288 yes) enable_static=yes ;;
3289 no) enable_static=no ;;
3290 *)
3291 enable_static=no
3292 # Look at the argument we got. We use all the common list separators.
3293 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3294 for pkg in $enableval; do
3295 IFS="$lt_save_ifs"
3296 if test "X$pkg" = "X$p"; then
3297 enable_static=yes
3298 fi
3299 done
3300 IFS="$lt_save_ifs"
3301 ;;
3302 esac
3303 else
3304 enable_static=yes
3305 fi;
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315 # Check whether --with-pic or --without-pic was given.
3316 if test "${with_pic+set}" = set; then
3317 withval="$with_pic"
3318 pic_mode="$withval"
3319 else
3320 pic_mode=default
3321 fi;
3322
3323 test -z "$pic_mode" && pic_mode=default
3324
3325
3326
3327
3328
3329
3330
3331 # Check whether --enable-fast-install or --disable-fast-install was given.
3332 if test "${enable_fast_install+set}" = set; then
3333 enableval="$enable_fast_install"
3334 p=${PACKAGE-default}
3335 case $enableval in
3336 yes) enable_fast_install=yes ;;
3337 no) enable_fast_install=no ;;
3338 *)
3339 enable_fast_install=no
3340 # Look at the argument we got. We use all the common list separators.
3341 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3342 for pkg in $enableval; do
3343 IFS="$lt_save_ifs"
3344 if test "X$pkg" = "X$p"; then
3345 enable_fast_install=yes
3346 fi
3347 done
3348 IFS="$lt_save_ifs"
3349 ;;
3350 esac
3351 else
3352 enable_fast_install=yes
3353 fi;
3354
3355
3356
3357
3358
3359
3360
3361
3362 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3363 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3364 if test "${lt_cv_path_SED+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367 # Loop through the user's path and test for sed and gsed.
3368 # Then use that list of sed's as ones to test for truncation.
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH
3371 do
3372 IFS=$as_save_IFS
3373 test -z "$as_dir" && as_dir=.
3374 for lt_ac_prog in sed gsed; do
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3377 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3378 fi
3379 done
3380 done
3381 done
3382 IFS=$as_save_IFS
3383 lt_ac_max=0
3384 lt_ac_count=0
3385 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3386 # along with /bin/sed that truncates output.
3387 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3388 test ! -f $lt_ac_sed && continue
3389 cat /dev/null > conftest.in
3390 lt_ac_count=0
3391 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3392 # Check for GNU sed and select it if it is found.
3393 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3394 lt_cv_path_SED=$lt_ac_sed
3395 break
3396 fi
3397 while true; do
3398 cat conftest.in conftest.in >conftest.tmp
3399 mv conftest.tmp conftest.in
3400 cp conftest.in conftest.nl
3401 echo >>conftest.nl
3402 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3403 cmp -s conftest.out conftest.nl || break
3404 # 10000 chars as input seems more than enough
3405 test $lt_ac_count -gt 10 && break
3406 lt_ac_count=`expr $lt_ac_count + 1`
3407 if test $lt_ac_count -gt $lt_ac_max; then
3408 lt_ac_max=$lt_ac_count
3409 lt_cv_path_SED=$lt_ac_sed
3410 fi
3411 done
3412 done
3413
3414 fi
3415
3416 SED=$lt_cv_path_SED
3417
3418 echo "$as_me:$LINENO: result: $SED" >&5
3419 echo "${ECHO_T}$SED" >&6
3420
3421 test -z "$SED" && SED=sed
3422 Xsed="$SED -e 1s/^X//"
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434 echo "$as_me:$LINENO: checking for egrep" >&5
3435 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3436 if test "${ac_cv_prog_egrep+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3440 then ac_cv_prog_egrep='grep -E'
3441 else ac_cv_prog_egrep='egrep'
3442 fi
3443 fi
3444 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3445 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3446 EGREP=$ac_cv_prog_egrep
3447
3448
3449 echo "$as_me:$LINENO: checking for fgrep" >&5
3450 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3451 if test "${ac_cv_prog_fgrep+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3455 then ac_cv_prog_fgrep='grep -F'
3456 else ac_cv_prog_fgrep='fgrep'
3457 fi
3458 fi
3459 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3460 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3461 FGREP=$ac_cv_prog_fgrep
3462
3463
3464 test -z "$GREP" && GREP=grep
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3485 if test "${with_gnu_ld+set}" = set; then
3486 withval="$with_gnu_ld"
3487 test "$withval" = no || with_gnu_ld=yes
3488 else
3489 with_gnu_ld=no
3490 fi;
3491 ac_prog=ld
3492 if test "$GCC" = yes; then
3493 # Check if gcc -print-prog-name=ld gives a path.
3494 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3495 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3496 case $host in
3497 *-*-mingw*)
3498 # gcc leaves a trailing carriage return which upsets mingw
3499 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3500 *)
3501 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3502 esac
3503 case $ac_prog in
3504 # Accept absolute paths.
3505 [\\/]* | ?:[\\/]*)
3506 re_direlt='/[^/][^/]*/\.\./'
3507 # Canonicalize the pathname of ld
3508 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3509 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3510 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3511 done
3512 test -z "$LD" && LD="$ac_prog"
3513 ;;
3514 "")
3515 # If it fails, then pretend we aren't using GCC.
3516 ac_prog=ld
3517 ;;
3518 *)
3519 # If it is relative, then search for the first ld in PATH.
3520 with_gnu_ld=unknown
3521 ;;
3522 esac
3523 elif test "$with_gnu_ld" = yes; then
3524 echo "$as_me:$LINENO: checking for GNU ld" >&5
3525 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3526 else
3527 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3528 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3529 fi
3530 if test "${lt_cv_path_LD+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533 if test -z "$LD"; then
3534 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3535 for ac_dir in $PATH; do
3536 IFS="$lt_save_ifs"
3537 test -z "$ac_dir" && ac_dir=.
3538 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3539 lt_cv_path_LD="$ac_dir/$ac_prog"
3540 # Check to see if the program is GNU ld. I'd rather use --version,
3541 # but apparently some variants of GNU ld only accept -v.
3542 # Break only if it was the GNU/non-GNU ld that we prefer.
3543 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3544 *GNU* | *'with BFD'*)
3545 test "$with_gnu_ld" != no && break
3546 ;;
3547 *)
3548 test "$with_gnu_ld" != yes && break
3549 ;;
3550 esac
3551 fi
3552 done
3553 IFS="$lt_save_ifs"
3554 else
3555 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3556 fi
3557 fi
3558
3559 LD="$lt_cv_path_LD"
3560 if test -n "$LD"; then
3561 echo "$as_me:$LINENO: result: $LD" >&5
3562 echo "${ECHO_T}$LD" >&6
3563 else
3564 echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6
3566 fi
3567 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3568 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3569 { (exit 1); exit 1; }; }
3570 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3571 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3572 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3574 else
3575 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3576 case `$LD -v 2>&1 </dev/null` in
3577 *GNU* | *'with BFD'*)
3578 lt_cv_prog_gnu_ld=yes
3579 ;;
3580 *)
3581 lt_cv_prog_gnu_ld=no
3582 ;;
3583 esac
3584 fi
3585 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3586 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3587 with_gnu_ld=$lt_cv_prog_gnu_ld
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3599 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3600 if test "${lt_cv_path_NM+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603 if test -n "$NM"; then
3604 # Let the user override the test.
3605 lt_cv_path_NM="$NM"
3606 else
3607 lt_nm_to_check="${ac_tool_prefix}nm"
3608 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3609 lt_nm_to_check="$lt_nm_to_check nm"
3610 fi
3611 for lt_tmp_nm in $lt_nm_to_check; do
3612 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3613 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3614 IFS="$lt_save_ifs"
3615 test -z "$ac_dir" && ac_dir=.
3616 tmp_nm="$ac_dir/$lt_tmp_nm"
3617 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3618 # Check to see if the nm accepts a BSD-compat flag.
3619 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3620 # nm: unknown option "B" ignored
3621 # Tru64's nm complains that /dev/null is an invalid object file
3622 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3623 */dev/null* | *'Invalid file or object type'*)
3624 lt_cv_path_NM="$tmp_nm -B"
3625 break
3626 ;;
3627 *)
3628 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3629 */dev/null*)
3630 lt_cv_path_NM="$tmp_nm -p"
3631 break
3632 ;;
3633 *)
3634 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3635 continue # so that we can try to find one that supports BSD flags
3636 ;;
3637 esac
3638 ;;
3639 esac
3640 fi
3641 done
3642 IFS="$lt_save_ifs"
3643 done
3644 : ${lt_cv_path_NM=no}
3645 fi
3646 fi
3647 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3648 echo "${ECHO_T}$lt_cv_path_NM" >&6
3649 if test "$lt_cv_path_NM" != "no"; then
3650 NM="$lt_cv_path_NM"
3651 else
3652 # Didn't find any BSD compatible name lister, look for dumpbin.
3653 if test -n "$ac_tool_prefix"; then
3654 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3655 do
3656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3657 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3658 echo "$as_me:$LINENO: checking for $ac_word" >&5
3659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3660 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663 if test -n "$DUMPBIN"; then
3664 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3665 else
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 break 2
3676 fi
3677 done
3678 done
3679
3680 fi
3681 fi
3682 DUMPBIN=$ac_cv_prog_DUMPBIN
3683 if test -n "$DUMPBIN"; then
3684 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3685 echo "${ECHO_T}$DUMPBIN" >&6
3686 else
3687 echo "$as_me:$LINENO: result: no" >&5
3688 echo "${ECHO_T}no" >&6
3689 fi
3690
3691 test -n "$DUMPBIN" && break
3692 done
3693 fi
3694 if test -z "$DUMPBIN"; then
3695 ac_ct_DUMPBIN=$DUMPBIN
3696 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3697 do
3698 # Extract the first word of "$ac_prog", so it can be a program name with args.
3699 set dummy $ac_prog; ac_word=$2
3700 echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705 if test -n "$ac_ct_DUMPBIN"; then
3706 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3707 else
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH
3710 do
3711 IFS=$as_save_IFS
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3715 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3717 break 2
3718 fi
3719 done
3720 done
3721
3722 fi
3723 fi
3724 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3725 if test -n "$ac_ct_DUMPBIN"; then
3726 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3727 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3728 else
3729 echo "$as_me:$LINENO: result: no" >&5
3730 echo "${ECHO_T}no" >&6
3731 fi
3732
3733 test -n "$ac_ct_DUMPBIN" && break
3734 done
3735 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3736
3737 DUMPBIN=$ac_ct_DUMPBIN
3738 fi
3739
3740
3741 if test "$DUMPBIN" != ":"; then
3742 NM="$DUMPBIN"
3743 fi
3744 fi
3745 test -z "$NM" && NM=nm
3746
3747
3748
3749
3750
3751
3752 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3753 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3754 if test "${lt_cv_nm_interface+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757 lt_cv_nm_interface="BSD nm"
3758 echo "int some_variable = 0;" > conftest.$ac_ext
3759 (eval echo "\"\$as_me:3759: $ac_compile\"" >&5)
3760 (eval "$ac_compile" 2>conftest.err)
3761 cat conftest.err >&5
3762 (eval echo "\"\$as_me:3762: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3763 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3764 cat conftest.err >&5
3765 (eval echo "\"\$as_me:3765: output\"" >&5)
3766 cat conftest.out >&5
3767 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3768 lt_cv_nm_interface="MS dumpbin"
3769 fi
3770 rm -f conftest*
3771 fi
3772 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3773 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3774
3775 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3776 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3777 LN_S=$as_ln_s
3778 if test "$LN_S" = "ln -s"; then
3779 echo "$as_me:$LINENO: result: yes" >&5
3780 echo "${ECHO_T}yes" >&6
3781 else
3782 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3783 echo "${ECHO_T}no, using $LN_S" >&6
3784 fi
3785
3786 # find the maximum length of command line arguments
3787 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3788 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3789 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792 i=0
3793 teststring="ABCD"
3794
3795 case $build_os in
3796 msdosdjgpp*)
3797 # On DJGPP, this test can blow up pretty badly due to problems in libc
3798 # (any single argument exceeding 2000 bytes causes a buffer overrun
3799 # during glob expansion). Even if it were fixed, the result of this
3800 # check would be larger than it should be.
3801 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3802 ;;
3803
3804 gnu*)
3805 # Under GNU Hurd, this test is not required because there is
3806 # no limit to the length of command line arguments.
3807 # Libtool will interpret -1 as no limit whatsoever
3808 lt_cv_sys_max_cmd_len=-1;
3809 ;;
3810
3811 cygwin* | mingw*)
3812 # On Win9x/ME, this test blows up -- it succeeds, but takes
3813 # about 5 minutes as the teststring grows exponentially.
3814 # Worse, since 9x/ME are not pre-emptively multitasking,
3815 # you end up with a "frozen" computer, even though with patience
3816 # the test eventually succeeds (with a max line length of 256k).
3817 # Instead, let's just punt: use the minimum linelength reported by
3818 # all of the supported platforms: 8192 (on NT/2K/XP).
3819 lt_cv_sys_max_cmd_len=8192;
3820 ;;
3821
3822 amigaos*)
3823 # On AmigaOS with pdksh, this test takes hours, literally.
3824 # So we just punt and use a minimum line length of 8192.
3825 lt_cv_sys_max_cmd_len=8192;
3826 ;;
3827
3828 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3829 # This has been around since 386BSD, at least. Likely further.
3830 if test -x /sbin/sysctl; then
3831 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3832 elif test -x /usr/sbin/sysctl; then
3833 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3834 else
3835 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3836 fi
3837 # And add a safety zone
3838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3840 ;;
3841
3842 interix*)
3843 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3844 lt_cv_sys_max_cmd_len=196608
3845 ;;
3846
3847 osf*)
3848 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3849 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3850 # nice to cause kernel panics so lets avoid the loop below.
3851 # First set a reasonable default.
3852 lt_cv_sys_max_cmd_len=16384
3853 #
3854 if test -x /sbin/sysconfig; then
3855 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3856 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3857 esac
3858 fi
3859 ;;
3860 sco3.2v5*)
3861 lt_cv_sys_max_cmd_len=102400
3862 ;;
3863 sysv5* | sco5v6* | sysv4.2uw2*)
3864 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3865 if test -n "$kargmax"; then
3866 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3867 else
3868 lt_cv_sys_max_cmd_len=32768
3869 fi
3870 ;;
3871 *)
3872 # Make teststring a little bigger before we do anything with it.
3873 # a 1K string should be a reasonable start.
3874 for i in 1 2 3 4 5 6 7 8 ; do
3875 teststring=$teststring$teststring
3876 done
3877 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3878 # If test is not a shell built-in, we'll probably end up computing a
3879 # maximum length that is only half of the actual maximum length, but
3880 # we can't tell.
3881 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3882 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3883 test $i != 17 # 1/2 MB should be enough
3884 do
3885 i=`expr $i + 1`
3886 teststring=$teststring$teststring
3887 done
3888 # Only check the string length outside the loop.
3889 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3890 teststring=
3891 # Add a significant safety factor because C++ compilers can tack on massive
3892 # amounts of additional arguments before passing them to the linker.
3893 # It appears as though 1/2 is a usable value.
3894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3895 ;;
3896 esac
3897
3898 fi
3899
3900 if test -n $lt_cv_sys_max_cmd_len ; then
3901 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3902 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3903 else
3904 echo "$as_me:$LINENO: result: none" >&5
3905 echo "${ECHO_T}none" >&6
3906 fi
3907 max_cmd_len=$lt_cv_sys_max_cmd_len
3908
3909
3910
3911
3912
3913
3914
3915 : ${CP="cp -f"}
3916 : ${MV="mv -f"}
3917 : ${RM="rm -f"}
3918
3919 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3920 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3921 # Try some XSI features
3922 xsi_shell=no
3923 ( _lt_dummy="a/b/c"
3924 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3925 = c,a/b,, ) >/dev/null 2>&1 \
3926 && xsi_shell=yes
3927 echo "$as_me:$LINENO: result: $xsi_shell" >&5
3928 echo "${ECHO_T}$xsi_shell" >&6
3929
3930
3931 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3932 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
3933 lt_shell_append=no
3934 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3935 >/dev/null 2>&1 \
3936 && lt_shell_append=yes
3937 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3938 echo "${ECHO_T}$lt_shell_append" >&6
3939
3940
3941 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3942 lt_unset=unset
3943 else
3944 lt_unset=false
3945 fi
3946
3947
3948
3949
3950
3951 # test EBCDIC or ASCII
3952 case `echo X|tr X '\101'` in
3953 A) # ASCII based system
3954 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3955 lt_SP2NL='tr \040 \012'
3956 lt_NL2SP='tr \015\012 \040\040'
3957 ;;
3958 *) # EBCDIC based system
3959 lt_SP2NL='tr \100 \n'
3960 lt_NL2SP='tr \r\n \100\100'
3961 ;;
3962 esac
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3973 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3974 if test "${lt_cv_ld_reload_flag+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977 lt_cv_ld_reload_flag='-r'
3978 fi
3979 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3980 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3981 reload_flag=$lt_cv_ld_reload_flag
3982 case $reload_flag in
3983 "" | " "*) ;;
3984 *) reload_flag=" $reload_flag" ;;
3985 esac
3986 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3987 case $host_os in
3988 darwin*)
3989 if test "$GCC" = yes; then
3990 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3991 else
3992 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3993 fi
3994 ;;
3995 esac
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4007 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4008 if test "${lt_cv_deplibs_check_method+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011 lt_cv_file_magic_cmd='$MAGIC_CMD'
4012 lt_cv_file_magic_test_file=
4013 lt_cv_deplibs_check_method='unknown'
4014 # Need to set the preceding variable on all platforms that support
4015 # interlibrary dependencies.
4016 # 'none' -- dependencies not supported.
4017 # `unknown' -- same as none, but documents that we really don't know.
4018 # 'pass_all' -- all dependencies passed with no checks.
4019 # 'test_compile' -- check by making test program.
4020 # 'file_magic [[regex]]' -- check by looking for files in library path
4021 # which responds to the $file_magic_cmd with a given extended regex.
4022 # If you have `file' or equivalent on your system and you're not sure
4023 # whether `pass_all' will *always* work, you probably want this one.
4024
4025 case $host_os in
4026 aix4* | aix5*)
4027 lt_cv_deplibs_check_method=pass_all
4028 ;;
4029
4030 beos*)
4031 lt_cv_deplibs_check_method=pass_all
4032 ;;
4033
4034 bsdi[45]*)
4035 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4036 lt_cv_file_magic_cmd='/usr/bin/file -L'
4037 lt_cv_file_magic_test_file=/shlib/libc.so
4038 ;;
4039
4040 cygwin*)
4041 # func_win32_libid is a shell function defined in ltmain.sh
4042 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4043 lt_cv_file_magic_cmd='func_win32_libid'
4044 ;;
4045
4046 mingw* | pw32*)
4047 # Base MSYS/MinGW do not provide the 'file' command needed by
4048 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4049 # unless we find 'file', for example because we are cross-compiling.
4050 if ( file / ) >/dev/null 2>&1; then
4051 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4052 lt_cv_file_magic_cmd='func_win32_libid'
4053 else
4054 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4055 lt_cv_file_magic_cmd='$OBJDUMP -f'
4056 fi
4057 ;;
4058
4059 darwin* | rhapsody*)
4060 lt_cv_deplibs_check_method=pass_all
4061 ;;
4062
4063 freebsd* | dragonfly*)
4064 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4065 case $host_cpu in
4066 i*86 )
4067 # Not sure whether the presence of OpenBSD here was a mistake.
4068 # Let's accept both of them until this is cleared up.
4069 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4070 lt_cv_file_magic_cmd=/usr/bin/file
4071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4072 ;;
4073 esac
4074 else
4075 lt_cv_deplibs_check_method=pass_all
4076 fi
4077 ;;
4078
4079 gnu*)
4080 lt_cv_deplibs_check_method=pass_all
4081 ;;
4082
4083 hpux10.20* | hpux11*)
4084 lt_cv_file_magic_cmd=/usr/bin/file
4085 case $host_cpu in
4086 ia64*)
4087 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4088 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4089 ;;
4090 hppa*64*)
4091 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]'
4092 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4093 ;;
4094 *)
4095 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4096 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4097 ;;
4098 esac
4099 ;;
4100
4101 interix[3-9]*)
4102 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4104 ;;
4105
4106 irix5* | irix6* | nonstopux*)
4107 case $LD in
4108 *-32|*"-32 ") libmagic=32-bit;;
4109 *-n32|*"-n32 ") libmagic=N32;;
4110 *-64|*"-64 ") libmagic=64-bit;;
4111 *) libmagic=never-match;;
4112 esac
4113 lt_cv_deplibs_check_method=pass_all
4114 ;;
4115
4116 # This must be Linux ELF.
4117 linux* | k*bsd*-gnu)
4118 lt_cv_deplibs_check_method=pass_all
4119 ;;
4120
4121 netbsd*)
4122 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4124 else
4125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4126 fi
4127 ;;
4128
4129 newos6*)
4130 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4131 lt_cv_file_magic_cmd=/usr/bin/file
4132 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4133 ;;
4134
4135 *nto* | *qnx*)
4136 lt_cv_deplibs_check_method=pass_all
4137 ;;
4138
4139 openbsd*)
4140 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4141 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4142 else
4143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4144 fi
4145 ;;
4146
4147 osf3* | osf4* | osf5*)
4148 lt_cv_deplibs_check_method=pass_all
4149 ;;
4150
4151 rdos*)
4152 lt_cv_deplibs_check_method=pass_all
4153 ;;
4154
4155 solaris*)
4156 lt_cv_deplibs_check_method=pass_all
4157 ;;
4158
4159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4160 lt_cv_deplibs_check_method=pass_all
4161 ;;
4162
4163 sysv4 | sysv4.3*)
4164 case $host_vendor in
4165 motorola)
4166 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]'
4167 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4168 ;;
4169 ncr)
4170 lt_cv_deplibs_check_method=pass_all
4171 ;;
4172 sequent)
4173 lt_cv_file_magic_cmd='/bin/file'
4174 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4175 ;;
4176 sni)
4177 lt_cv_file_magic_cmd='/bin/file'
4178 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4179 lt_cv_file_magic_test_file=/lib/libc.so
4180 ;;
4181 siemens)
4182 lt_cv_deplibs_check_method=pass_all
4183 ;;
4184 pc)
4185 lt_cv_deplibs_check_method=pass_all
4186 ;;
4187 esac
4188 ;;
4189
4190 tpf*)
4191 lt_cv_deplibs_check_method=pass_all
4192 ;;
4193 esac
4194
4195 fi
4196 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4197 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4198 file_magic_cmd=$lt_cv_file_magic_cmd
4199 deplibs_check_method=$lt_cv_deplibs_check_method
4200 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213 if test -n "$ac_tool_prefix"; then
4214 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4215 set dummy ${ac_tool_prefix}ar; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_prog_AR+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221 if test -n "$AR"; then
4222 ac_cv_prog_AR="$AR" # Let the user override the test.
4223 else
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4226 do
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 ac_cv_prog_AR="${ac_tool_prefix}ar"
4232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 break 2
4234 fi
4235 done
4236 done
4237
4238 fi
4239 fi
4240 AR=$ac_cv_prog_AR
4241 if test -n "$AR"; then
4242 echo "$as_me:$LINENO: result: $AR" >&5
4243 echo "${ECHO_T}$AR" >&6
4244 else
4245 echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6
4247 fi
4248
4249 fi
4250 if test -z "$ac_cv_prog_AR"; then
4251 ac_ct_AR=$AR
4252 # Extract the first word of "ar", so it can be a program name with args.
4253 set dummy ar; ac_word=$2
4254 echo "$as_me:$LINENO: checking for $ac_word" >&5
4255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4256 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 else
4259 if test -n "$ac_ct_AR"; then
4260 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4261 else
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH
4264 do
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4269 ac_cv_prog_ac_ct_AR="ar"
4270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 break 2
4272 fi
4273 done
4274 done
4275
4276 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4277 fi
4278 fi
4279 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4280 if test -n "$ac_ct_AR"; then
4281 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4282 echo "${ECHO_T}$ac_ct_AR" >&6
4283 else
4284 echo "$as_me:$LINENO: result: no" >&5
4285 echo "${ECHO_T}no" >&6
4286 fi
4287
4288 AR=$ac_ct_AR
4289 else
4290 AR="$ac_cv_prog_AR"
4291 fi
4292
4293 test -z "$AR" && AR=ar
4294 test -z "$AR_FLAGS" && AR_FLAGS=cru
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306 if test -n "$ac_tool_prefix"; then
4307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4308 set dummy ${ac_tool_prefix}strip; ac_word=$2
4309 echo "$as_me:$LINENO: checking for $ac_word" >&5
4310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4311 if test "${ac_cv_prog_STRIP+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 else
4314 if test -n "$STRIP"; then
4315 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4316 else
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4319 do
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4324 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 break 2
4327 fi
4328 done
4329 done
4330
4331 fi
4332 fi
4333 STRIP=$ac_cv_prog_STRIP
4334 if test -n "$STRIP"; then
4335 echo "$as_me:$LINENO: result: $STRIP" >&5
4336 echo "${ECHO_T}$STRIP" >&6
4337 else
4338 echo "$as_me:$LINENO: result: no" >&5
4339 echo "${ECHO_T}no" >&6
4340 fi
4341
4342 fi
4343 if test -z "$ac_cv_prog_STRIP"; then
4344 ac_ct_STRIP=$STRIP
4345 # Extract the first word of "strip", so it can be a program name with args.
4346 set dummy strip; ac_word=$2
4347 echo "$as_me:$LINENO: checking for $ac_word" >&5
4348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4349 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352 if test -n "$ac_ct_STRIP"; then
4353 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4354 else
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH
4357 do
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4362 ac_cv_prog_ac_ct_STRIP="strip"
4363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 break 2
4365 fi
4366 done
4367 done
4368
4369 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4370 fi
4371 fi
4372 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4373 if test -n "$ac_ct_STRIP"; then
4374 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4375 echo "${ECHO_T}$ac_ct_STRIP" >&6
4376 else
4377 echo "$as_me:$LINENO: result: no" >&5
4378 echo "${ECHO_T}no" >&6
4379 fi
4380
4381 STRIP=$ac_ct_STRIP
4382 else
4383 STRIP="$ac_cv_prog_STRIP"
4384 fi
4385
4386 test -z "$STRIP" && STRIP=:
4387
4388
4389
4390
4391
4392
4393 if test -n "$ac_tool_prefix"; then
4394 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4395 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4396 echo "$as_me:$LINENO: checking for $ac_word" >&5
4397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4398 if test "${ac_cv_prog_RANLIB+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401 if test -n "$RANLIB"; then
4402 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4406 do
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4411 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 break 2
4414 fi
4415 done
4416 done
4417
4418 fi
4419 fi
4420 RANLIB=$ac_cv_prog_RANLIB
4421 if test -n "$RANLIB"; then
4422 echo "$as_me:$LINENO: result: $RANLIB" >&5
4423 echo "${ECHO_T}$RANLIB" >&6
4424 else
4425 echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6
4427 fi
4428
4429 fi
4430 if test -z "$ac_cv_prog_RANLIB"; then
4431 ac_ct_RANLIB=$RANLIB
4432 # Extract the first word of "ranlib", so it can be a program name with args.
4433 set dummy ranlib; ac_word=$2
4434 echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4436 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 if test -n "$ac_ct_RANLIB"; then
4440 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4444 do
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4449 ac_cv_prog_ac_ct_RANLIB="ranlib"
4450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 break 2
4452 fi
4453 done
4454 done
4455
4456 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4457 fi
4458 fi
4459 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4460 if test -n "$ac_ct_RANLIB"; then
4461 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4462 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4463 else
4464 echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6
4466 fi
4467
4468 RANLIB=$ac_ct_RANLIB
4469 else
4470 RANLIB="$ac_cv_prog_RANLIB"
4471 fi
4472
4473 test -z "$RANLIB" && RANLIB=:
4474
4475
4476
4477
4478
4479
4480 # Determine commands to create old-style static archives.
4481 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4482 old_postinstall_cmds='chmod 644 $oldlib'
4483 old_postuninstall_cmds=
4484
4485 if test -n "$RANLIB"; then
4486 case $host_os in
4487 openbsd*)
4488 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4489 ;;
4490 *)
4491 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4492 ;;
4493 esac
4494 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4495 fi
4496
4497
4498
4499
4500
4501
4502
4503
4504
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 # If no C compiler was specified, use CC.
4531 LTCC=${LTCC-"$CC"}
4532
4533 # If no C compiler flags were specified, use CFLAGS.
4534 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4535
4536 # Allow CC to be a program name with arguments.
4537 compiler=$CC
4538
4539
4540 # Check for command to grab the raw symbol name followed by C symbol from nm.
4541 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4542 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4543 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546
4547 # These are sane defaults that work on at least a few old systems.
4548 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4549
4550 # Character class describing NM global symbol codes.
4551 symcode='[BCDEGRST]'
4552
4553 # Regexp to match symbols that can be accessed directly from C.
4554 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4555
4556 # Define system-specific variables.
4557 case $host_os in
4558 aix*)
4559 symcode='[BCDT]'
4560 ;;
4561 cygwin* | mingw* | pw32*)
4562 symcode='[ABCDGISTW]'
4563 ;;
4564 hpux*)
4565 if test "$host_cpu" = ia64; then
4566 symcode='[ABCDEGRST]'
4567 fi
4568 ;;
4569 irix* | nonstopux*)
4570 symcode='[BCDEGRST]'
4571 ;;
4572 osf*)
4573 symcode='[BCDEGQRST]'
4574 ;;
4575 solaris*)
4576 symcode='[BDRT]'
4577 ;;
4578 sco3.2v5*)
4579 symcode='[DT]'
4580 ;;
4581 sysv4.2uw2*)
4582 symcode='[DT]'
4583 ;;
4584 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4585 symcode='[ABDT]'
4586 ;;
4587 sysv4)
4588 symcode='[DFNSTU]'
4589 ;;
4590 esac
4591
4592 # If we're using GNU nm, then use its standard symbol codes.
4593 case `$NM -V 2>&1` in
4594 *GNU* | *'with BFD'*)
4595 symcode='[ABCDGIRSTW]' ;;
4596 esac
4597
4598 # Transform an extracted symbol line into a proper C declaration.
4599 # Some systems (esp. on ia64) link data and code symbols differently,
4600 # so use this general approach.
4601 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4602
4603 # Transform an extracted symbol line into symbol name and symbol address
4604 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4605
4606 # Handle CRLF in mingw tool chain
4607 opt_cr=
4608 case $build_os in
4609 mingw*)
4610 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4611 ;;
4612 esac
4613
4614 # Try without a prefix underscore, then with it.
4615 for ac_symprfx in "" "_"; do
4616
4617 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4618 symxfrm="\\1 $ac_symprfx\\2 \\2"
4619
4620 # Write the raw and C identifiers.
4621 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4622 # Fake it for dumpbin and say T for any non-static function
4623 # and D for any global variable.
4624 # Also find C++ and __fastcall symbols from MSVC++,
4625 # which start with @ or ?.
4626 lt_cv_sys_global_symbol_pipe="$AWK '"\
4627 " {last_section=section; section=\$ 3};"\
4628 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4629 " \$ 0!~/External *\|/{next};"\
4630 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4631 " {if(hide[section]) next};"\
4632 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4633 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4634 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4635 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4636 " ' prfx=^$ac_symprfx"
4637 else
4638 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4639 fi
4640
4641 # Check to see that the pipe works correctly.
4642 pipe_works=no
4643
4644 rm -f conftest*
4645 cat > conftest.$ac_ext <<_LT_EOF
4646 #ifdef __cplusplus
4647 extern "C" {
4648 #endif
4649 char nm_test_var;
4650 void nm_test_func(void);
4651 void nm_test_func(void){}
4652 #ifdef __cplusplus
4653 }
4654 #endif
4655 int main(){nm_test_var='a';nm_test_func();return(0);}
4656 _LT_EOF
4657
4658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4659 (eval $ac_compile) 2>&5
4660 ac_status=$?
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; then
4663 # Now try to grab the symbols.
4664 nlist=conftest.nm
4665 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4666 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4667 ac_status=$?
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } && test -s "$nlist"; then
4670 # Try sorting and uniquifying the output.
4671 if sort "$nlist" | uniq > "$nlist"T; then
4672 mv -f "$nlist"T "$nlist"
4673 else
4674 rm -f "$nlist"T
4675 fi
4676
4677 # Make sure that we snagged all the symbols we need.
4678 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4679 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4680 cat <<_LT_EOF > conftest.$ac_ext
4681 #ifdef __cplusplus
4682 extern "C" {
4683 #endif
4684
4685 _LT_EOF
4686 # Now generate the symbol file.
4687 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4688
4689 cat <<_LT_EOF >> conftest.$ac_ext
4690
4691 /* The mapping between symbol names and symbols. */
4692 const struct {
4693 const char *name;
4694 void *address;
4695 }
4696 lt__PROGRAM__LTX_preloaded_symbols[] =
4697 {
4698 { "@PROGRAM@", (void *) 0 },
4699 _LT_EOF
4700 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4701 cat <<\_LT_EOF >> conftest.$ac_ext
4702 {0, (void *) 0}
4703 };
4704
4705 /* This works around a problem in FreeBSD linker */
4706 #ifdef FREEBSD_WORKAROUND
4707 static const void *lt_preloaded_setup() {
4708 return lt__PROGRAM__LTX_preloaded_symbols;
4709 }
4710 #endif
4711
4712 #ifdef __cplusplus
4713 }
4714 #endif
4715 _LT_EOF
4716 # Now try linking the two files.
4717 mv conftest.$ac_objext conftstm.$ac_objext
4718 lt_save_LIBS="$LIBS"
4719 lt_save_CFLAGS="$CFLAGS"
4720 LIBS="conftstm.$ac_objext"
4721 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4723 (eval $ac_link) 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4727 pipe_works=yes
4728 fi
4729 LIBS="$lt_save_LIBS"
4730 CFLAGS="$lt_save_CFLAGS"
4731 else
4732 echo "cannot find nm_test_func in $nlist" >&5
4733 fi
4734 else
4735 echo "cannot find nm_test_var in $nlist" >&5
4736 fi
4737 else
4738 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4739 fi
4740 else
4741 echo "$progname: failed program was:" >&5
4742 cat conftest.$ac_ext >&5
4743 fi
4744 rm -f conftest* conftst*
4745
4746 # Do not use the global_symbol_pipe unless it works.
4747 if test "$pipe_works" = yes; then
4748 break
4749 else
4750 lt_cv_sys_global_symbol_pipe=
4751 fi
4752 done
4753
4754 fi
4755
4756 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4757 lt_cv_sys_global_symbol_to_cdecl=
4758 fi
4759 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4760 echo "$as_me:$LINENO: result: failed" >&5
4761 echo "${ECHO_T}failed" >&6
4762 else
4763 echo "$as_me:$LINENO: result: ok" >&5
4764 echo "${ECHO_T}ok" >&6
4765 fi
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4784 if test "${enable_libtool_lock+set}" = set; then
4785 enableval="$enable_libtool_lock"
4786
4787 fi;
4788 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4789
4790 # Some flags need to be propagated to the compiler or linker for good
4791 # libtool support.
4792 case $host in
4793 ia64-*-hpux*)
4794 # Find out which ABI we are using.
4795 echo 'int i;' > conftest.$ac_ext
4796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4797 (eval $ac_compile) 2>&5
4798 ac_status=$?
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; then
4801 case `/usr/bin/file conftest.$ac_objext` in
4802 *ELF-32*)
4803 HPUX_IA64_MODE="32"
4804 ;;
4805 *ELF-64*)
4806 HPUX_IA64_MODE="64"
4807 ;;
4808 esac
4809 fi
4810 rm -rf conftest*
4811 ;;
4812 *-*-irix6*)
4813 # Find out which ABI we are using.
4814 echo '#line 4814 "configure"' > conftest.$ac_ext
4815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4816 (eval $ac_compile) 2>&5
4817 ac_status=$?
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; then
4820 if test "$lt_cv_prog_gnu_ld" = yes; then
4821 case `/usr/bin/file conftest.$ac_objext` in
4822 *32-bit*)
4823 LD="${LD-ld} -melf32bsmip"
4824 ;;
4825 *N32*)
4826 LD="${LD-ld} -melf32bmipn32"
4827 ;;
4828 *64-bit*)
4829 LD="${LD-ld} -melf64bmip"
4830 ;;
4831 esac
4832 else
4833 case `/usr/bin/file conftest.$ac_objext` in
4834 *32-bit*)
4835 LD="${LD-ld} -32"
4836 ;;
4837 *N32*)
4838 LD="${LD-ld} -n32"
4839 ;;
4840 *64-bit*)
4841 LD="${LD-ld} -64"
4842 ;;
4843 esac
4844 fi
4845 fi
4846 rm -rf conftest*
4847 ;;
4848
4849 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4850 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4851 # Find out which ABI we are using.
4852 echo 'int i;' > conftest.$ac_ext
4853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4854 (eval $ac_compile) 2>&5
4855 ac_status=$?
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; then
4858 case `/usr/bin/file conftest.o` in
4859 *32-bit*)
4860 case $host in
4861 x86_64-*kfreebsd*-gnu)
4862 LD="${LD-ld} -m elf_i386_fbsd"
4863 ;;
4864 x86_64-*linux*)
4865 LD="${LD-ld} -m elf_i386"
4866 ;;
4867 ppc64-*linux*|powerpc64-*linux*)
4868 LD="${LD-ld} -m elf32ppclinux"
4869 ;;
4870 s390x-*linux*)
4871 LD="${LD-ld} -m elf_s390"
4872 ;;
4873 sparc64-*linux*)
4874 LD="${LD-ld} -m elf32_sparc"
4875 ;;
4876 esac
4877 ;;
4878 *64-bit*)
4879 case $host in
4880 x86_64-*kfreebsd*-gnu)
4881 LD="${LD-ld} -m elf_x86_64_fbsd"
4882 ;;
4883 x86_64-*linux*)
4884 LD="${LD-ld} -m elf_x86_64"
4885 ;;
4886 ppc*-*linux*|powerpc*-*linux*)
4887 LD="${LD-ld} -m elf64ppc"
4888 ;;
4889 s390*-*linux*|s390*-*tpf*)
4890 LD="${LD-ld} -m elf64_s390"
4891 ;;
4892 sparc*-*linux*)
4893 LD="${LD-ld} -m elf64_sparc"
4894 ;;
4895 esac
4896 ;;
4897 esac
4898 fi
4899 rm -rf conftest*
4900 ;;
4901
4902 *-*-sco3.2v5*)
4903 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4904 SAVE_CFLAGS="$CFLAGS"
4905 CFLAGS="$CFLAGS -belf"
4906 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4907 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4908 if test "${lt_cv_cc_needs_belf+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4911 ac_ext=c
4912 ac_cpp='$CPP $CPPFLAGS'
4913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4916
4917 cat >conftest.$ac_ext <<_ACEOF
4918 /* confdefs.h. */
4919 _ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4923
4924 int
4925 main ()
4926 {
4927
4928 ;
4929 return 0;
4930 }
4931 _ACEOF
4932 rm -f conftest.$ac_objext conftest$ac_exeext
4933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4934 (eval $ac_link) 2>conftest.er1
4935 ac_status=$?
4936 grep -v '^ *+' conftest.er1 >conftest.err
4937 rm -f conftest.er1
4938 cat conftest.err >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } &&
4941 { ac_try='test -z "$ac_c_werror_flag"
4942 || test ! -s conftest.err'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 (eval $ac_try) 2>&5
4945 ac_status=$?
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; } &&
4948 { ac_try='test -s conftest$ac_exeext'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 (eval $ac_try) 2>&5
4951 ac_status=$?
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; }; then
4954 lt_cv_cc_needs_belf=yes
4955 else
4956 echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4958
4959 lt_cv_cc_needs_belf=no
4960 fi
4961 rm -f conftest.err conftest.$ac_objext \
4962 conftest$ac_exeext conftest.$ac_ext
4963 ac_ext=c
4964 ac_cpp='$CPP $CPPFLAGS'
4965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968
4969 fi
4970 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4971 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4972 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4973 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4974 CFLAGS="$SAVE_CFLAGS"
4975 fi
4976 ;;
4977 sparc*-*solaris*)
4978 # Find out which ABI we are using.
4979 echo 'int i;' > conftest.$ac_ext
4980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4981 (eval $ac_compile) 2>&5
4982 ac_status=$?
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; then
4985 case `/usr/bin/file conftest.o` in
4986 *64-bit*)
4987 case $lt_cv_prog_gnu_ld in
4988 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4989 *) LD="${LD-ld} -64" ;;
4990 esac
4991 ;;
4992 esac
4993 fi
4994 rm -rf conftest*
4995 ;;
4996 esac
4997
4998 need_locks="$enable_libtool_lock"
4999
5000 ac_ext=c
5001 ac_cpp='$CPP $CPPFLAGS'
5002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5005 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5006 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5007 # On Suns, sometimes $CPP names a directory.
5008 if test -n "$CPP" && test -d "$CPP"; then
5009 CPP=
5010 fi
5011 if test -z "$CPP"; then
5012 if test "${ac_cv_prog_CPP+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015 # Double quotes because CPP needs to be expanded
5016 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5017 do
5018 ac_preproc_ok=false
5019 for ac_c_preproc_warn_flag in '' yes
5020 do
5021 # Use a header file that comes with gcc, so configuring glibc
5022 # with a fresh cross-compiler works.
5023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5024 # <limits.h> exists even on freestanding compilers.
5025 # On the NeXT, cc -E runs the code through the compiler's parser,
5026 # not just through cpp. "Syntax error" is here to catch this case.
5027 cat >conftest.$ac_ext <<_ACEOF
5028 /* confdefs.h. */
5029 _ACEOF
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h. */
5033 #ifdef __STDC__
5034 # include <limits.h>
5035 #else
5036 # include <assert.h>
5037 #endif
5038 Syntax error
5039 _ACEOF
5040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5042 ac_status=$?
5043 grep -v '^ *+' conftest.er1 >conftest.err
5044 rm -f conftest.er1
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } >/dev/null; then
5048 if test -s conftest.err; then
5049 ac_cpp_err=$ac_c_preproc_warn_flag
5050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5051 else
5052 ac_cpp_err=
5053 fi
5054 else
5055 ac_cpp_err=yes
5056 fi
5057 if test -z "$ac_cpp_err"; then
5058 :
5059 else
5060 echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5062
5063 # Broken: fails on valid input.
5064 continue
5065 fi
5066 rm -f conftest.err conftest.$ac_ext
5067
5068 # OK, works on sane cases. Now check whether non-existent headers
5069 # can be detected and how.
5070 cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h. */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 #include <ac_nonexistent.h>
5077 _ACEOF
5078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5080 ac_status=$?
5081 grep -v '^ *+' conftest.er1 >conftest.err
5082 rm -f conftest.er1
5083 cat conftest.err >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } >/dev/null; then
5086 if test -s conftest.err; then
5087 ac_cpp_err=$ac_c_preproc_warn_flag
5088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5089 else
5090 ac_cpp_err=
5091 fi
5092 else
5093 ac_cpp_err=yes
5094 fi
5095 if test -z "$ac_cpp_err"; then
5096 # Broken: success on invalid input.
5097 continue
5098 else
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5101
5102 # Passes both tests.
5103 ac_preproc_ok=:
5104 break
5105 fi
5106 rm -f conftest.err conftest.$ac_ext
5107
5108 done
5109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5110 rm -f conftest.err conftest.$ac_ext
5111 if $ac_preproc_ok; then
5112 break
5113 fi
5114
5115 done
5116 ac_cv_prog_CPP=$CPP
5117
5118 fi
5119 CPP=$ac_cv_prog_CPP
5120 else
5121 ac_cv_prog_CPP=$CPP
5122 fi
5123 echo "$as_me:$LINENO: result: $CPP" >&5
5124 echo "${ECHO_T}$CPP" >&6
5125 ac_preproc_ok=false
5126 for ac_c_preproc_warn_flag in '' yes
5127 do
5128 # Use a header file that comes with gcc, so configuring glibc
5129 # with a fresh cross-compiler works.
5130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5131 # <limits.h> exists even on freestanding compilers.
5132 # On the NeXT, cc -E runs the code through the compiler's parser,
5133 # not just through cpp. "Syntax error" is here to catch this case.
5134 cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h. */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 #ifdef __STDC__
5141 # include <limits.h>
5142 #else
5143 # include <assert.h>
5144 #endif
5145 Syntax error
5146 _ACEOF
5147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5149 ac_status=$?
5150 grep -v '^ *+' conftest.er1 >conftest.err
5151 rm -f conftest.er1
5152 cat conftest.err >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); } >/dev/null; then
5155 if test -s conftest.err; then
5156 ac_cpp_err=$ac_c_preproc_warn_flag
5157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5158 else
5159 ac_cpp_err=
5160 fi
5161 else
5162 ac_cpp_err=yes
5163 fi
5164 if test -z "$ac_cpp_err"; then
5165 :
5166 else
5167 echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.$ac_ext >&5
5169
5170 # Broken: fails on valid input.
5171 continue
5172 fi
5173 rm -f conftest.err conftest.$ac_ext
5174
5175 # OK, works on sane cases. Now check whether non-existent headers
5176 # can be detected and how.
5177 cat >conftest.$ac_ext <<_ACEOF
5178 /* confdefs.h. */
5179 _ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5183 #include <ac_nonexistent.h>
5184 _ACEOF
5185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } >/dev/null; then
5193 if test -s conftest.err; then
5194 ac_cpp_err=$ac_c_preproc_warn_flag
5195 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5196 else
5197 ac_cpp_err=
5198 fi
5199 else
5200 ac_cpp_err=yes
5201 fi
5202 if test -z "$ac_cpp_err"; then
5203 # Broken: success on invalid input.
5204 continue
5205 else
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5208
5209 # Passes both tests.
5210 ac_preproc_ok=:
5211 break
5212 fi
5213 rm -f conftest.err conftest.$ac_ext
5214
5215 done
5216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5217 rm -f conftest.err conftest.$ac_ext
5218 if $ac_preproc_ok; then
5219 :
5220 else
5221 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5222 See \`config.log' for more details." >&5
5223 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5224 See \`config.log' for more details." >&2;}
5225 { (exit 1); exit 1; }; }
5226 fi
5227
5228 ac_ext=c
5229 ac_cpp='$CPP $CPPFLAGS'
5230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5233
5234
5235 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5236 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5237 if test "${ac_cv_header_stdc+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240 cat >conftest.$ac_ext <<_ACEOF
5241 /* confdefs.h. */
5242 _ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5246 #include <stdlib.h>
5247 #include <stdarg.h>
5248 #include <string.h>
5249 #include <float.h>
5250
5251 int
5252 main ()
5253 {
5254
5255 ;
5256 return 0;
5257 }
5258 _ACEOF
5259 rm -f conftest.$ac_objext
5260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5261 (eval $ac_compile) 2>conftest.er1
5262 ac_status=$?
5263 grep -v '^ *+' conftest.er1 >conftest.err
5264 rm -f conftest.er1
5265 cat conftest.err >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } &&
5268 { ac_try='test -z "$ac_c_werror_flag"
5269 || test ! -s conftest.err'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 (eval $ac_try) 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; } &&
5275 { ac_try='test -s conftest.$ac_objext'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277 (eval $ac_try) 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
5281 ac_cv_header_stdc=yes
5282 else
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5285
5286 ac_cv_header_stdc=no
5287 fi
5288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5289
5290 if test $ac_cv_header_stdc = yes; then
5291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5292 cat >conftest.$ac_ext <<_ACEOF
5293 /* confdefs.h. */
5294 _ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h. */
5298 #include <string.h>
5299
5300 _ACEOF
5301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5302 $EGREP "memchr" >/dev/null 2>&1; then
5303 :
5304 else
5305 ac_cv_header_stdc=no
5306 fi
5307 rm -f conftest*
5308
5309 fi
5310
5311 if test $ac_cv_header_stdc = yes; then
5312 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5313 cat >conftest.$ac_ext <<_ACEOF
5314 /* confdefs.h. */
5315 _ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5319 #include <stdlib.h>
5320
5321 _ACEOF
5322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5323 $EGREP "free" >/dev/null 2>&1; then
5324 :
5325 else
5326 ac_cv_header_stdc=no
5327 fi
5328 rm -f conftest*
5329
5330 fi
5331
5332 if test $ac_cv_header_stdc = yes; then
5333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5334 if test "$cross_compiling" = yes; then
5335 :
5336 else
5337 cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h. */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5343 #include <ctype.h>
5344 #if ((' ' & 0x0FF) == 0x020)
5345 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5346 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5347 #else
5348 # define ISLOWER(c) \
5349 (('a' <= (c) && (c) <= 'i') \
5350 || ('j' <= (c) && (c) <= 'r') \
5351 || ('s' <= (c) && (c) <= 'z'))
5352 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5353 #endif
5354
5355 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5356 int
5357 main ()
5358 {
5359 int i;
5360 for (i = 0; i < 256; i++)
5361 if (XOR (islower (i), ISLOWER (i))
5362 || toupper (i) != TOUPPER (i))
5363 exit(2);
5364 exit (0);
5365 }
5366 _ACEOF
5367 rm -f conftest$ac_exeext
5368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5369 (eval $ac_link) 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 (eval $ac_try) 2>&5
5375 ac_status=$?
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5378 :
5379 else
5380 echo "$as_me: program exited with status $ac_status" >&5
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5383
5384 ( exit $ac_status )
5385 ac_cv_header_stdc=no
5386 fi
5387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5388 fi
5389 fi
5390 fi
5391 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5392 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5393 if test $ac_cv_header_stdc = yes; then
5394
5395 cat >>confdefs.h <<\_ACEOF
5396 #define STDC_HEADERS 1
5397 _ACEOF
5398
5399 fi
5400
5401 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5412 inttypes.h stdint.h unistd.h
5413 do
5414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5415 echo "$as_me:$LINENO: checking for $ac_header" >&5
5416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420 cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h. */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 $ac_includes_default
5427
5428 #include <$ac_header>
5429 _ACEOF
5430 rm -f conftest.$ac_objext
5431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5432 (eval $ac_compile) 2>conftest.er1
5433 ac_status=$?
5434 grep -v '^ *+' conftest.er1 >conftest.err
5435 rm -f conftest.er1
5436 cat conftest.err >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } &&
5439 { ac_try='test -z "$ac_c_werror_flag"
5440 || test ! -s conftest.err'
5441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 (eval $ac_try) 2>&5
5443 ac_status=$?
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); }; } &&
5446 { ac_try='test -s conftest.$ac_objext'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 (eval $ac_try) 2>&5
5449 ac_status=$?
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; }; then
5452 eval "$as_ac_Header=yes"
5453 else
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5456
5457 eval "$as_ac_Header=no"
5458 fi
5459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5460 fi
5461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5464 cat >>confdefs.h <<_ACEOF
5465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5466 _ACEOF
5467
5468 fi
5469
5470 done
5471
5472
5473
5474 for ac_header in dlfcn.h
5475 do
5476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5477 echo "$as_me:$LINENO: checking for $ac_header" >&5
5478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 else
5482 cat >conftest.$ac_ext <<_ACEOF
5483 /* confdefs.h. */
5484 _ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5488 $ac_includes_default
5489
5490 #include <$ac_header>
5491 _ACEOF
5492 rm -f conftest.$ac_objext
5493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5494 (eval $ac_compile) 2>conftest.er1
5495 ac_status=$?
5496 grep -v '^ *+' conftest.er1 >conftest.err
5497 rm -f conftest.er1
5498 cat conftest.err >&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); } &&
5501 { ac_try='test -z "$ac_c_werror_flag"
5502 || test ! -s conftest.err'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504 (eval $ac_try) 2>&5
5505 ac_status=$?
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; } &&
5508 { ac_try='test -s conftest.$ac_objext'
5509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510 (eval $ac_try) 2>&5
5511 ac_status=$?
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; }; then
5514 eval "$as_ac_Header=yes"
5515 else
5516 echo "$as_me: failed program was:" >&5
5517 sed 's/^/| /' conftest.$ac_ext >&5
5518
5519 eval "$as_ac_Header=no"
5520 fi
5521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5522 fi
5523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5526 cat >>confdefs.h <<_ACEOF
5527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5528 _ACEOF
5529
5530 fi
5531
5532 done
5533
5534
5535
5536 # This can be used to rebuild libtool when needed
5537 LIBTOOL_DEPS="$ltmain"
5538
5539 # Always use our own libtool.
5540 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566 test -z "$LN_S" && LN_S="ln -s"
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581 if test -n "${ZSH_VERSION+set}" ; then
5582 setopt NO_GLOB_SUBST
5583 fi
5584
5585 echo "$as_me:$LINENO: checking for objdir" >&5
5586 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5587 if test "${lt_cv_objdir+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 else
5590 rm -f .libs 2>/dev/null
5591 mkdir .libs 2>/dev/null
5592 if test -d .libs; then
5593 lt_cv_objdir=.libs
5594 else
5595 # MS-DOS does not allow filenames that begin with a dot.
5596 lt_cv_objdir=_libs
5597 fi
5598 rmdir .libs 2>/dev/null
5599 fi
5600 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5601 echo "${ECHO_T}$lt_cv_objdir" >&6
5602 objdir=$lt_cv_objdir
5603
5604
5605
5606
5607
5608 cat >>confdefs.h <<_ACEOF
5609 #define LT_OBJDIR "$lt_cv_objdir/"
5610 _ACEOF
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628 case $host_os in
5629 aix3*)
5630 # AIX sometimes has problems with the GCC collect2 program. For some
5631 # reason, if we set the COLLECT_NAMES environment variable, the problems
5632 # vanish in a puff of smoke.
5633 if test "X${COLLECT_NAMES+set}" != Xset; then
5634 COLLECT_NAMES=
5635 export COLLECT_NAMES
5636 fi
5637 ;;
5638 esac
5639
5640 # Sed substitution that helps us do robust quoting. It backslashifies
5641 # metacharacters that are still active within double-quoted strings.
5642 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5643
5644 # Same as above, but do not quote variable references.
5645 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5646
5647 # Sed substitution to delay expansion of an escaped shell variable in a
5648 # double_quote_subst'ed string.
5649 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5650
5651 # Sed substitution to delay expansion of an escaped single quote.
5652 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5653
5654 # Sed substitution to avoid accidental globbing in evaled expressions
5655 no_glob_subst='s/\*/\\\*/g'
5656
5657 # Global variables:
5658 ofile=libtool
5659 can_build_shared=yes
5660
5661 # All known linkers require a `.a' archive for static linking (except MSVC,
5662 # which needs '.lib').
5663 libext=a
5664
5665 with_gnu_ld="$lt_cv_prog_gnu_ld"
5666
5667 old_CC="$CC"
5668 old_CFLAGS="$CFLAGS"
5669
5670 # Set sane defaults for various variables
5671 test -z "$CC" && CC=cc
5672 test -z "$LTCC" && LTCC=$CC
5673 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5674 test -z "$LD" && LD=ld
5675 test -z "$ac_objext" && ac_objext=o
5676
5677 for cc_temp in $compiler""; do
5678 case $cc_temp in
5679 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5680 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5681 \-*) ;;
5682 *) break;;
5683 esac
5684 done
5685 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5686
5687
5688 # Only perform the check for file, if the check method requires it
5689 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5690 case $deplibs_check_method in
5691 file_magic*)
5692 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5693 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5694 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5695 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698 case $MAGIC_CMD in
5699 [\\/*] | ?:[\\/]*)
5700 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5701 ;;
5702 *)
5703 lt_save_MAGIC_CMD="$MAGIC_CMD"
5704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5705 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5706 for ac_dir in $ac_dummy; do
5707 IFS="$lt_save_ifs"
5708 test -z "$ac_dir" && ac_dir=.
5709 if test -f $ac_dir/${ac_tool_prefix}file; then
5710 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5711 if test -n "$file_magic_test_file"; then
5712 case $deplibs_check_method in
5713 "file_magic "*)
5714 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5715 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5716 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5717 $EGREP "$file_magic_regex" > /dev/null; then
5718 :
5719 else
5720 cat <<_LT_EOF 1>&2
5721
5722 *** Warning: the command libtool uses to detect shared libraries,
5723 *** $file_magic_cmd, produces output that libtool cannot recognize.
5724 *** The result is that libtool may fail to recognize shared libraries
5725 *** as such. This will affect the creation of libtool libraries that
5726 *** depend on shared libraries, but programs linked with such libtool
5727 *** libraries will work regardless of this problem. Nevertheless, you
5728 *** may want to report the problem to your system manager and/or to
5729 *** bug-libtool@gnu.org
5730
5731 _LT_EOF
5732 fi ;;
5733 esac
5734 fi
5735 break
5736 fi
5737 done
5738 IFS="$lt_save_ifs"
5739 MAGIC_CMD="$lt_save_MAGIC_CMD"
5740 ;;
5741 esac
5742 fi
5743
5744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5745 if test -n "$MAGIC_CMD"; then
5746 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5747 echo "${ECHO_T}$MAGIC_CMD" >&6
5748 else
5749 echo "$as_me:$LINENO: result: no" >&5
5750 echo "${ECHO_T}no" >&6
5751 fi
5752
5753
5754
5755
5756
5757 if test -z "$lt_cv_path_MAGIC_CMD"; then
5758 if test -n "$ac_tool_prefix"; then
5759 echo "$as_me:$LINENO: checking for file" >&5
5760 echo $ECHO_N "checking for file... $ECHO_C" >&6
5761 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 else
5764 case $MAGIC_CMD in
5765 [\\/*] | ?:[\\/]*)
5766 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5767 ;;
5768 *)
5769 lt_save_MAGIC_CMD="$MAGIC_CMD"
5770 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5771 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5772 for ac_dir in $ac_dummy; do
5773 IFS="$lt_save_ifs"
5774 test -z "$ac_dir" && ac_dir=.
5775 if test -f $ac_dir/file; then
5776 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5777 if test -n "$file_magic_test_file"; then
5778 case $deplibs_check_method in
5779 "file_magic "*)
5780 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5781 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5782 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5783 $EGREP "$file_magic_regex" > /dev/null; then
5784 :
5785 else
5786 cat <<_LT_EOF 1>&2
5787
5788 *** Warning: the command libtool uses to detect shared libraries,
5789 *** $file_magic_cmd, produces output that libtool cannot recognize.
5790 *** The result is that libtool may fail to recognize shared libraries
5791 *** as such. This will affect the creation of libtool libraries that
5792 *** depend on shared libraries, but programs linked with such libtool
5793 *** libraries will work regardless of this problem. Nevertheless, you
5794 *** may want to report the problem to your system manager and/or to
5795 *** bug-libtool@gnu.org
5796
5797 _LT_EOF
5798 fi ;;
5799 esac
5800 fi
5801 break
5802 fi
5803 done
5804 IFS="$lt_save_ifs"
5805 MAGIC_CMD="$lt_save_MAGIC_CMD"
5806 ;;
5807 esac
5808 fi
5809
5810 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5811 if test -n "$MAGIC_CMD"; then
5812 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5813 echo "${ECHO_T}$MAGIC_CMD" >&6
5814 else
5815 echo "$as_me:$LINENO: result: no" >&5
5816 echo "${ECHO_T}no" >&6
5817 fi
5818
5819
5820 else
5821 MAGIC_CMD=:
5822 fi
5823 fi
5824
5825 fi
5826 ;;
5827 esac
5828
5829 # Use C for the default configuration in the libtool script
5830
5831 lt_save_CC="$CC"
5832 ac_ext=c
5833 ac_cpp='$CPP $CPPFLAGS'
5834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5837
5838
5839 # Source file extension for C test sources.
5840 ac_ext=c
5841
5842 # Object file extension for compiled C test sources.
5843 objext=o
5844 objext=$objext
5845
5846 # Code to be used in simple compile tests
5847 lt_simple_compile_test_code="int some_variable = 0;"
5848
5849 # Code to be used in simple link tests
5850 lt_simple_link_test_code='int main(){return(0);}'
5851
5852
5853
5854
5855
5856
5857
5858 # If no C compiler was specified, use CC.
5859 LTCC=${LTCC-"$CC"}
5860
5861 # If no C compiler flags were specified, use CFLAGS.
5862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5863
5864 # Allow CC to be a program name with arguments.
5865 compiler=$CC
5866
5867 # Save the default compiler, since it gets overwritten when the other
5868 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5869 compiler_DEFAULT=$CC
5870
5871 # save warnings/boilerplate of simple test code
5872 ac_outfile=conftest.$ac_objext
5873 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5874 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5875 _lt_compiler_boilerplate=`cat conftest.err`
5876 $RM conftest*
5877
5878 ac_outfile=conftest.$ac_objext
5879 echo "$lt_simple_link_test_code" >conftest.$ac_ext
5880 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5881 _lt_linker_boilerplate=`cat conftest.err`
5882 $RM conftest*
5883
5884
5885 ## CAVEAT EMPTOR:
5886 ## There is no encapsulation within the following macros, do not change
5887 ## the running order or otherwise move them around unless you know exactly
5888 ## what you are doing...
5889 if test -n "$compiler"; then
5890
5891 lt_prog_compiler_no_builtin_flag=
5892
5893 if test "$GCC" = yes; then
5894 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5895
5896 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5897 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5898 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 else
5901 lt_cv_prog_compiler_rtti_exceptions=no
5902 ac_outfile=conftest.$ac_objext
5903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5904 lt_compiler_flag="-fno-rtti -fno-exceptions"
5905 # Insert the option either (1) after the last *FLAGS variable, or
5906 # (2) before a word containing "conftest.", or (3) at the end.
5907 # Note that $ac_compile itself does not contain backslashes and begins
5908 # with a dollar sign (not a hyphen), so the echo should work correctly.
5909 # The option is referenced via a variable to avoid confusing sed.
5910 lt_compile=`echo "$ac_compile" | $SED \
5911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5913 -e 's:$: $lt_compiler_flag:'`
5914 (eval echo "\"\$as_me:5914: $lt_compile\"" >&5)
5915 (eval "$lt_compile" 2>conftest.err)
5916 ac_status=$?
5917 cat conftest.err >&5
5918 echo "$as_me:5918: \$? = $ac_status" >&5
5919 if (exit $ac_status) && test -s "$ac_outfile"; then
5920 # The compiler can only warn and ignore the option if not recognized
5921 # So say no if there are warnings other than the usual output.
5922 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5925 lt_cv_prog_compiler_rtti_exceptions=yes
5926 fi
5927 fi
5928 $RM conftest*
5929
5930 fi
5931 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5932 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5933
5934 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5935 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5936 else
5937 :
5938 fi
5939
5940 fi
5941
5942
5943
5944
5945
5946
5947 lt_prog_compiler_wl=
5948 lt_prog_compiler_pic=
5949 lt_prog_compiler_static=
5950
5951 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5952 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5953
5954 if test "$GCC" = yes; then
5955 lt_prog_compiler_wl='-Wl,'
5956 lt_prog_compiler_static='-static'
5957
5958 case $host_os in
5959 aix*)
5960 # All AIX code is PIC.
5961 if test "$host_cpu" = ia64; then
5962 # AIX 5 now supports IA64 processor
5963 lt_prog_compiler_static='-Bstatic'
5964 fi
5965 ;;
5966
5967 amigaos*)
5968 if test "$host_cpu" = m68k; then
5969 # FIXME: we need at least 68020 code to build shared libraries, but
5970 # adding the `-m68020' flag to GCC prevents building anything better,
5971 # like `-m68040'.
5972 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5973 fi
5974 ;;
5975
5976 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5977 # PIC is the default for these OSes.
5978 ;;
5979
5980 mingw* | cygwin* | pw32* | os2*)
5981 # This hack is so that the source file can tell whether it is being
5982 # built for inclusion in a dll (and should export symbols for example).
5983 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5984 # (--disable-auto-import) libraries
5985 lt_prog_compiler_pic='-DDLL_EXPORT'
5986 ;;
5987
5988 darwin* | rhapsody*)
5989 # PIC is the default on this platform
5990 # Common symbols not allowed in MH_DYLIB files
5991 lt_prog_compiler_pic='-fno-common'
5992 ;;
5993
5994 hpux*)
5995 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5996 # not for PA HP-UX.
5997 case $host_cpu in
5998 hppa*64*|ia64*)
5999 # +Z the default
6000 ;;
6001 *)
6002 lt_prog_compiler_pic='-fPIC'
6003 ;;
6004 esac
6005 ;;
6006
6007 interix[3-9]*)
6008 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6009 # Instead, we relocate shared libraries at runtime.
6010 ;;
6011
6012 msdosdjgpp*)
6013 # Just because we use GCC doesn't mean we suddenly get shared libraries
6014 # on systems that don't support them.
6015 lt_prog_compiler_can_build_shared=no
6016 enable_shared=no
6017 ;;
6018
6019 *nto* | *qnx*)
6020 # QNX uses GNU C++, but need to define -shared option too, otherwise
6021 # it will coredump.
6022 lt_prog_compiler_pic='-fPIC -shared'
6023 ;;
6024
6025 sysv4*MP*)
6026 if test -d /usr/nec; then
6027 lt_prog_compiler_pic=-Kconform_pic
6028 fi
6029 ;;
6030
6031 *)
6032 lt_prog_compiler_pic='-fPIC'
6033 ;;
6034 esac
6035 else
6036 # PORTME Check for flag to pass linker flags through the system compiler.
6037 case $host_os in
6038 aix*)
6039 lt_prog_compiler_wl='-Wl,'
6040 if test "$host_cpu" = ia64; then
6041 # AIX 5 now supports IA64 processor
6042 lt_prog_compiler_static='-Bstatic'
6043 else
6044 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6045 fi
6046 ;;
6047 darwin*)
6048 # PIC is the default on this platform
6049 # Common symbols not allowed in MH_DYLIB files
6050 case $cc_basename in
6051 xlc*)
6052 lt_prog_compiler_pic='-qnocommon'
6053 lt_prog_compiler_wl='-Wl,'
6054 ;;
6055 esac
6056 ;;
6057
6058 mingw* | cygwin* | pw32* | os2*)
6059 # This hack is so that the source file can tell whether it is being
6060 # built for inclusion in a dll (and should export symbols for example).
6061 lt_prog_compiler_pic='-DDLL_EXPORT'
6062 ;;
6063
6064 hpux9* | hpux10* | hpux11*)
6065 lt_prog_compiler_wl='-Wl,'
6066 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6067 # not for PA HP-UX.
6068 case $host_cpu in
6069 hppa*64*|ia64*)
6070 # +Z the default
6071 ;;
6072 *)
6073 lt_prog_compiler_pic='+Z'
6074 ;;
6075 esac
6076 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6077 lt_prog_compiler_static='${wl}-a ${wl}archive'
6078 ;;
6079
6080 irix5* | irix6* | nonstopux*)
6081 lt_prog_compiler_wl='-Wl,'
6082 # PIC (with -KPIC) is the default.
6083 lt_prog_compiler_static='-non_shared'
6084 ;;
6085
6086 linux* | k*bsd*-gnu)
6087 case $cc_basename in
6088 icc* | ecc*)
6089 lt_prog_compiler_wl='-Wl,'
6090 lt_prog_compiler_pic='-KPIC'
6091 lt_prog_compiler_static='-static'
6092 ;;
6093 pgcc* | pgf77* | pgf90* | pgf95*)
6094 # Portland Group compilers (*not* the Pentium gcc compiler,
6095 # which looks to be a dead project)
6096 lt_prog_compiler_wl='-Wl,'
6097 lt_prog_compiler_pic='-fpic'
6098 lt_prog_compiler_static='-Bstatic'
6099 ;;
6100 ccc*)
6101 lt_prog_compiler_wl='-Wl,'
6102 # All Alpha code is PIC.
6103 lt_prog_compiler_static='-non_shared'
6104 ;;
6105 *)
6106 case `$CC -V 2>&1 | sed 5q` in
6107 *Sun\ C*)
6108 # Sun C 5.9
6109 lt_prog_compiler_pic='-KPIC'
6110 lt_prog_compiler_static='-Bstatic'
6111 lt_prog_compiler_wl='-Wl,'
6112 ;;
6113 *Sun\ F*)
6114 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6115 lt_prog_compiler_pic='-KPIC'
6116 lt_prog_compiler_static='-Bstatic'
6117 lt_prog_compiler_wl=''
6118 ;;
6119 esac
6120 ;;
6121 esac
6122 ;;
6123
6124 newsos6)
6125 lt_prog_compiler_pic='-KPIC'
6126 lt_prog_compiler_static='-Bstatic'
6127 ;;
6128
6129 *nto* | *qnx*)
6130 # QNX uses GNU C++, but need to define -shared option too, otherwise
6131 # it will coredump.
6132 lt_prog_compiler_pic='-fPIC -shared'
6133 ;;
6134
6135 osf3* | osf4* | osf5*)
6136 lt_prog_compiler_wl='-Wl,'
6137 # All OSF/1 code is PIC.
6138 lt_prog_compiler_static='-non_shared'
6139 ;;
6140
6141 rdos*)
6142 lt_prog_compiler_static='-non_shared'
6143 ;;
6144
6145 solaris*)
6146 lt_prog_compiler_pic='-KPIC'
6147 lt_prog_compiler_static='-Bstatic'
6148 case $cc_basename in
6149 f77* | f90* | f95*)
6150 lt_prog_compiler_wl='-Qoption ld ';;
6151 *)
6152 lt_prog_compiler_wl='-Wl,';;
6153 esac
6154 ;;
6155
6156 sunos4*)
6157 lt_prog_compiler_wl='-Qoption ld '
6158 lt_prog_compiler_pic='-PIC'
6159 lt_prog_compiler_static='-Bstatic'
6160 ;;
6161
6162 sysv4 | sysv4.2uw2* | sysv4.3*)
6163 lt_prog_compiler_wl='-Wl,'
6164 lt_prog_compiler_pic='-KPIC'
6165 lt_prog_compiler_static='-Bstatic'
6166 ;;
6167
6168 sysv4*MP*)
6169 if test -d /usr/nec ;then
6170 lt_prog_compiler_pic='-Kconform_pic'
6171 lt_prog_compiler_static='-Bstatic'
6172 fi
6173 ;;
6174
6175 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6176 lt_prog_compiler_wl='-Wl,'
6177 lt_prog_compiler_pic='-KPIC'
6178 lt_prog_compiler_static='-Bstatic'
6179 ;;
6180
6181 unicos*)
6182 lt_prog_compiler_wl='-Wl,'
6183 lt_prog_compiler_can_build_shared=no
6184 ;;
6185
6186 uts4*)
6187 lt_prog_compiler_pic='-pic'
6188 lt_prog_compiler_static='-Bstatic'
6189 ;;
6190
6191 *)
6192 lt_prog_compiler_can_build_shared=no
6193 ;;
6194 esac
6195 fi
6196
6197 case $host_os in
6198 # For platforms which do not support PIC, -DPIC is meaningless:
6199 *djgpp*)
6200 lt_prog_compiler_pic=
6201 ;;
6202 *)
6203 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6204 ;;
6205 esac
6206 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6207 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6208
6209
6210
6211
6212
6213
6214 #
6215 # Check to make sure the PIC flag actually works.
6216 #
6217 if test -n "$lt_prog_compiler_pic"; then
6218 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6219 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6220 if test "${lt_prog_compiler_pic_works+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223 lt_prog_compiler_pic_works=no
6224 ac_outfile=conftest.$ac_objext
6225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6226 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6227 # Insert the option either (1) after the last *FLAGS variable, or
6228 # (2) before a word containing "conftest.", or (3) at the end.
6229 # Note that $ac_compile itself does not contain backslashes and begins
6230 # with a dollar sign (not a hyphen), so the echo should work correctly.
6231 # The option is referenced via a variable to avoid confusing sed.
6232 lt_compile=`echo "$ac_compile" | $SED \
6233 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6235 -e 's:$: $lt_compiler_flag:'`
6236 (eval echo "\"\$as_me:6236: $lt_compile\"" >&5)
6237 (eval "$lt_compile" 2>conftest.err)
6238 ac_status=$?
6239 cat conftest.err >&5
6240 echo "$as_me:6240: \$? = $ac_status" >&5
6241 if (exit $ac_status) && test -s "$ac_outfile"; then
6242 # The compiler can only warn and ignore the option if not recognized
6243 # So say no if there are warnings other than the usual output.
6244 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6246 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6247 lt_prog_compiler_pic_works=yes
6248 fi
6249 fi
6250 $RM conftest*
6251
6252 fi
6253 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6254 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6255
6256 if test x"$lt_prog_compiler_pic_works" = xyes; then
6257 case $lt_prog_compiler_pic in
6258 "" | " "*) ;;
6259 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6260 esac
6261 else
6262 lt_prog_compiler_pic=
6263 lt_prog_compiler_can_build_shared=no
6264 fi
6265
6266 fi
6267
6268
6269
6270
6271
6272
6273 #
6274 # Check to make sure the static flag actually works.
6275 #
6276 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6277 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6278 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6279 if test "${lt_prog_compiler_static_works+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282 lt_prog_compiler_static_works=no
6283 save_LDFLAGS="$LDFLAGS"
6284 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6285 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6286 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6287 # The linker can only warn and ignore the option if not recognized
6288 # So say no if there are warnings
6289 if test -s conftest.err; then
6290 # Append any errors to the config.log.
6291 cat conftest.err 1>&5
6292 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6293 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6294 if diff conftest.exp conftest.er2 >/dev/null; then
6295 lt_prog_compiler_static_works=yes
6296 fi
6297 else
6298 lt_prog_compiler_static_works=yes
6299 fi
6300 fi
6301 $RM conftest*
6302 LDFLAGS="$save_LDFLAGS"
6303
6304 fi
6305 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6306 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6307
6308 if test x"$lt_prog_compiler_static_works" = xyes; then
6309 :
6310 else
6311 lt_prog_compiler_static=
6312 fi
6313
6314
6315
6316
6317
6318
6319
6320 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6321 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6322 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325 lt_cv_prog_compiler_c_o=no
6326 $RM -r conftest 2>/dev/null
6327 mkdir conftest
6328 cd conftest
6329 mkdir out
6330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6331
6332 lt_compiler_flag="-o out/conftest2.$ac_objext"
6333 # Insert the option either (1) after the last *FLAGS variable, or
6334 # (2) before a word containing "conftest.", or (3) at the end.
6335 # Note that $ac_compile itself does not contain backslashes and begins
6336 # with a dollar sign (not a hyphen), so the echo should work correctly.
6337 lt_compile=`echo "$ac_compile" | $SED \
6338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6340 -e 's:$: $lt_compiler_flag:'`
6341 (eval echo "\"\$as_me:6341: $lt_compile\"" >&5)
6342 (eval "$lt_compile" 2>out/conftest.err)
6343 ac_status=$?
6344 cat out/conftest.err >&5
6345 echo "$as_me:6345: \$? = $ac_status" >&5
6346 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6347 then
6348 # The compiler can only warn and ignore the option if not recognized
6349 # So say no if there are warnings
6350 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6351 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6352 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6353 lt_cv_prog_compiler_c_o=yes
6354 fi
6355 fi
6356 chmod u+w . 2>&5
6357 $RM conftest*
6358 # SGI C++ compiler will create directory out/ii_files/ for
6359 # template instantiation
6360 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6361 $RM out/* && rmdir out
6362 cd ..
6363 $RM -r conftest
6364 $RM conftest*
6365
6366 fi
6367 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6368 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6369
6370
6371
6372
6373
6374
6375 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6376 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6377 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 else
6380 lt_cv_prog_compiler_c_o=no
6381 $RM -r conftest 2>/dev/null
6382 mkdir conftest
6383 cd conftest
6384 mkdir out
6385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6386
6387 lt_compiler_flag="-o out/conftest2.$ac_objext"
6388 # Insert the option either (1) after the last *FLAGS variable, or
6389 # (2) before a word containing "conftest.", or (3) at the end.
6390 # Note that $ac_compile itself does not contain backslashes and begins
6391 # with a dollar sign (not a hyphen), so the echo should work correctly.
6392 lt_compile=`echo "$ac_compile" | $SED \
6393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6395 -e 's:$: $lt_compiler_flag:'`
6396 (eval echo "\"\$as_me:6396: $lt_compile\"" >&5)
6397 (eval "$lt_compile" 2>out/conftest.err)
6398 ac_status=$?
6399 cat out/conftest.err >&5
6400 echo "$as_me:6400: \$? = $ac_status" >&5
6401 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6402 then
6403 # The compiler can only warn and ignore the option if not recognized
6404 # So say no if there are warnings
6405 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6406 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6407 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6408 lt_cv_prog_compiler_c_o=yes
6409 fi
6410 fi
6411 chmod u+w . 2>&5
6412 $RM conftest*
6413 # SGI C++ compiler will create directory out/ii_files/ for
6414 # template instantiation
6415 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6416 $RM out/* && rmdir out
6417 cd ..
6418 $RM -r conftest
6419 $RM conftest*
6420
6421 fi
6422 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6423 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6424
6425
6426
6427
6428 hard_links="nottested"
6429 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6430 # do not overwrite the value of need_locks provided by the user
6431 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6432 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6433 hard_links=yes
6434 $RM conftest*
6435 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6436 touch conftest.a
6437 ln conftest.a conftest.b 2>&5 || hard_links=no
6438 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6439 echo "$as_me:$LINENO: result: $hard_links" >&5
6440 echo "${ECHO_T}$hard_links" >&6
6441 if test "$hard_links" = no; then
6442 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6443 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6444 need_locks=warn
6445 fi
6446 else
6447 need_locks=no
6448 fi
6449
6450
6451
6452
6453
6454
6455 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6456 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6457
6458 runpath_var=
6459 allow_undefined_flag=
6460 always_export_symbols=no
6461 archive_cmds=
6462 archive_expsym_cmds=
6463 compiler_needs_object=no
6464 enable_shared_with_static_runtimes=no
6465 export_dynamic_flag_spec=
6466 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6467 hardcode_automatic=no
6468 hardcode_direct=no
6469 hardcode_direct_absolute=no
6470 hardcode_libdir_flag_spec=
6471 hardcode_libdir_flag_spec_ld=
6472 hardcode_libdir_separator=
6473 hardcode_minus_L=no
6474 hardcode_shlibpath_var=unsupported
6475 inherit_rpath=no
6476 link_all_deplibs=unknown
6477 module_cmds=
6478 module_expsym_cmds=
6479 old_archive_from_new_cmds=
6480 old_archive_from_expsyms_cmds=
6481 thread_safe_flag_spec=
6482 whole_archive_flag_spec=
6483 # include_expsyms should be a list of space-separated symbols to be *always*
6484 # included in the symbol list
6485 include_expsyms=
6486 # exclude_expsyms can be an extended regexp of symbols to exclude
6487 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6488 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6489 # as well as any symbol that contains `d'.
6490 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6491 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6492 # platforms (ab)use it in PIC code, but their linkers get confused if
6493 # the symbol is explicitly referenced. Since portable code cannot
6494 # rely on this symbol name, it's probably fine to never include it in
6495 # preloaded symbol tables.
6496 extract_expsyms_cmds=
6497
6498 case $host_os in
6499 cygwin* | mingw* | pw32*)
6500 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6501 # When not using gcc, we currently assume that we are using
6502 # Microsoft Visual C++.
6503 if test "$GCC" != yes; then
6504 with_gnu_ld=no
6505 fi
6506 ;;
6507 interix*)
6508 # we just hope/assume this is gcc and not c89 (= MSVC++)
6509 with_gnu_ld=yes
6510 ;;
6511 openbsd*)
6512 with_gnu_ld=no
6513 ;;
6514 esac
6515
6516 ld_shlibs=yes
6517 if test "$with_gnu_ld" = yes; then
6518 # If archive_cmds runs LD, not CC, wlarc should be empty
6519 wlarc='${wl}'
6520
6521 # Set some defaults for GNU ld with shared library support. These
6522 # are reset later if shared libraries are not supported. Putting them
6523 # here allows them to be overridden if necessary.
6524 runpath_var=LD_RUN_PATH
6525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6526 export_dynamic_flag_spec='${wl}--export-dynamic'
6527 # ancient GNU ld didn't support --whole-archive et. al.
6528 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6529 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6530 else
6531 whole_archive_flag_spec=
6532 fi
6533 supports_anon_versioning=no
6534 case `$LD -v 2>&1` in
6535 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6536 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6537 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6538 *\ 2.11.*) ;; # other 2.11 versions
6539 *) supports_anon_versioning=yes ;;
6540 esac
6541
6542 # See if GNU ld supports shared libraries.
6543 case $host_os in
6544 aix3* | aix4* | aix5*)
6545 # On AIX/PPC, the GNU linker is very broken
6546 if test "$host_cpu" != ia64; then
6547 ld_shlibs=no
6548 cat <<_LT_EOF 1>&2
6549
6550 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6551 *** to be unable to reliably create shared libraries on AIX.
6552 *** Therefore, libtool is disabling shared libraries support. If you
6553 *** really care for shared libraries, you may want to modify your PATH
6554 *** so that a non-GNU linker is found, and then restart.
6555
6556 _LT_EOF
6557 fi
6558 ;;
6559
6560 amigaos*)
6561 if test "$host_cpu" = m68k; then
6562 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)'
6563 hardcode_libdir_flag_spec='-L$libdir'
6564 hardcode_minus_L=yes
6565 fi
6566
6567 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6568 # that the semantics of dynamic libraries on AmigaOS, at least up
6569 # to version 4, is to share data among multiple programs linked
6570 # with the same dynamic library. Since this doesn't match the
6571 # behavior of shared libraries on other platforms, we can't use
6572 # them.
6573 ld_shlibs=no
6574 ;;
6575
6576 beos*)
6577 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6578 allow_undefined_flag=unsupported
6579 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6580 # support --undefined. This deserves some investigation. FIXME
6581 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6582 else
6583 ld_shlibs=no
6584 fi
6585 ;;
6586
6587 cygwin* | mingw* | pw32*)
6588 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6589 # as there is no search path for DLLs.
6590 hardcode_libdir_flag_spec='-L$libdir'
6591 allow_undefined_flag=unsupported
6592 always_export_symbols=no
6593 enable_shared_with_static_runtimes=yes
6594 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6595
6596 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6598 # If the export-symbols file already is a .def file (1st line
6599 # is EXPORTS), use it as is; otherwise, prepend...
6600 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6601 cp $export_symbols $output_objdir/$soname.def;
6602 else
6603 echo EXPORTS > $output_objdir/$soname.def;
6604 cat $export_symbols >> $output_objdir/$soname.def;
6605 fi~
6606 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6607 else
6608 ld_shlibs=no
6609 fi
6610 ;;
6611
6612 interix[3-9]*)
6613 hardcode_direct=no
6614 hardcode_shlibpath_var=no
6615 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6616 export_dynamic_flag_spec='${wl}-E'
6617 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6618 # Instead, shared libraries are loaded at an image base (0x10000000 by
6619 # default) and relocated if they conflict, which is a slow very memory
6620 # consuming and fragmenting process. To avoid this, we pick a random,
6621 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6622 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6623 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6624 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'
6625 ;;
6626
6627 gnu* | linux* | tpf* | k*bsd*-gnu)
6628 tmp_diet=no
6629 if test "$host_os" = linux-dietlibc; then
6630 case $cc_basename in
6631 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6632 esac
6633 fi
6634 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6635 && test "$tmp_diet" = no
6636 then
6637 tmp_addflag=
6638 case $cc_basename,$host_cpu in
6639 pgcc*) # Portland Group C compiler
6640 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'
6641 tmp_addflag=' $pic_flag'
6642 ;;
6643 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6644 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'
6645 tmp_addflag=' $pic_flag -Mnomain' ;;
6646 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6647 tmp_addflag=' -i_dynamic' ;;
6648 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6649 tmp_addflag=' -i_dynamic -nofor_main' ;;
6650 ifc* | ifort*) # Intel Fortran compiler
6651 tmp_addflag=' -nofor_main' ;;
6652 esac
6653 case `$CC -V 2>&1 | sed 5q` in
6654 *Sun\ C*) # Sun C 5.9
6655 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'
6656 compiler_needs_object=yes
6657 tmp_sharedflag='-G' ;;
6658 *Sun\ F*) # Sun Fortran 8.3
6659 tmp_sharedflag='-G' ;;
6660 *)
6661 tmp_sharedflag='-shared' ;;
6662 esac
6663 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6664
6665 if test "x$supports_anon_versioning" = xyes; then
6666 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6667 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6668 echo "local: *; };" >> $output_objdir/$libname.ver~
6669 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6670 fi
6671 else
6672 ld_shlibs=no
6673 fi
6674 ;;
6675
6676 netbsd*)
6677 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6678 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6679 wlarc=
6680 else
6681 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6682 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6683 fi
6684 ;;
6685
6686 solaris*)
6687 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6688 ld_shlibs=no
6689 cat <<_LT_EOF 1>&2
6690
6691 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6692 *** create shared libraries on Solaris systems. Therefore, libtool
6693 *** is disabling shared libraries support. We urge you to upgrade GNU
6694 *** binutils to release 2.9.1 or newer. Another option is to modify
6695 *** your PATH or compiler configuration so that the native linker is
6696 *** used, and then restart.
6697
6698 _LT_EOF
6699 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6701 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6702 else
6703 ld_shlibs=no
6704 fi
6705 ;;
6706
6707 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6708 case `$LD -v 2>&1` in
6709 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6710 ld_shlibs=no
6711 cat <<_LT_EOF 1>&2
6712
6713 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6714 *** reliably create shared libraries on SCO systems. Therefore, libtool
6715 *** is disabling shared libraries support. We urge you to upgrade GNU
6716 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6717 *** your PATH or compiler configuration so that the native linker is
6718 *** used, and then restart.
6719
6720 _LT_EOF
6721 ;;
6722 *)
6723 # For security reasons, it is highly recommended that you always
6724 # use absolute paths for naming shared libraries, and exclude the
6725 # DT_RUNPATH tag from executables and libraries. But doing so
6726 # requires that you compile everything twice, which is a pain.
6727 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6728 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6730 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6731 else
6732 ld_shlibs=no
6733 fi
6734 ;;
6735 esac
6736 ;;
6737
6738 sunos4*)
6739 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6740 wlarc=
6741 hardcode_direct=yes
6742 hardcode_shlibpath_var=no
6743 ;;
6744
6745 *)
6746 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6748 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6749 else
6750 ld_shlibs=no
6751 fi
6752 ;;
6753 esac
6754
6755 if test "$ld_shlibs" = no; then
6756 runpath_var=
6757 hardcode_libdir_flag_spec=
6758 export_dynamic_flag_spec=
6759 whole_archive_flag_spec=
6760 fi
6761 else
6762 # PORTME fill in a description of your system's linker (not GNU ld)
6763 case $host_os in
6764 aix3*)
6765 allow_undefined_flag=unsupported
6766 always_export_symbols=yes
6767 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'
6768 # Note: this linker hardcodes the directories in LIBPATH if there
6769 # are no directories specified by -L.
6770 hardcode_minus_L=yes
6771 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6772 # Neither direct hardcoding nor static linking is supported with a
6773 # broken collect2.
6774 hardcode_direct=unsupported
6775 fi
6776 ;;
6777
6778 aix4* | aix5*)
6779 if test "$host_cpu" = ia64; then
6780 # On IA64, the linker does run time linking by default, so we don't
6781 # have to do anything special.
6782 aix_use_runtimelinking=no
6783 exp_sym_flag='-Bexport'
6784 no_entry_flag=""
6785 else
6786 # If we're using GNU nm, then we don't want the "-C" option.
6787 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6788 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6789 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'
6790 else
6791 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'
6792 fi
6793 aix_use_runtimelinking=no
6794
6795 # Test if we are trying to use run time linking or normal
6796 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6797 # need to do runtime linking.
6798 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6799 for ld_flag in $LDFLAGS; do
6800 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6801 aix_use_runtimelinking=yes
6802 break
6803 fi
6804 done
6805 ;;
6806 esac
6807
6808 exp_sym_flag='-bexport'
6809 no_entry_flag='-bnoentry'
6810 fi
6811
6812 # When large executables or shared objects are built, AIX ld can
6813 # have problems creating the table of contents. If linking a library
6814 # or program results in "error TOC overflow" add -mminimal-toc to
6815 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6816 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6817
6818 archive_cmds=''
6819 hardcode_direct=yes
6820 hardcode_direct_absolute=yes
6821 hardcode_libdir_separator=':'
6822 link_all_deplibs=yes
6823 file_list_spec='${wl}-f,'
6824
6825 if test "$GCC" = yes; then
6826 case $host_os in aix4.[012]|aix4.[012].*)
6827 # We only want to do this on AIX 4.2 and lower, the check
6828 # below for broken collect2 doesn't work under 4.3+
6829 collect2name=`${CC} -print-prog-name=collect2`
6830 if test -f "$collect2name" &&
6831 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6832 then
6833 # We have reworked collect2
6834 :
6835 else
6836 # We have old collect2
6837 hardcode_direct=unsupported
6838 # It fails to find uninstalled libraries when the uninstalled
6839 # path is not listed in the libpath. Setting hardcode_minus_L
6840 # to unsupported forces relinking
6841 hardcode_minus_L=yes
6842 hardcode_libdir_flag_spec='-L$libdir'
6843 hardcode_libdir_separator=
6844 fi
6845 ;;
6846 esac
6847 shared_flag='-shared'
6848 if test "$aix_use_runtimelinking" = yes; then
6849 shared_flag="$shared_flag "'${wl}-G'
6850 fi
6851 else
6852 # not using gcc
6853 if test "$host_cpu" = ia64; then
6854 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6855 # chokes on -Wl,-G. The following line is correct:
6856 shared_flag='-G'
6857 else
6858 if test "$aix_use_runtimelinking" = yes; then
6859 shared_flag='${wl}-G'
6860 else
6861 shared_flag='${wl}-bM:SRE'
6862 fi
6863 fi
6864 fi
6865
6866 # It seems that -bexpall does not export symbols beginning with
6867 # underscore (_), so it is better to generate a list of symbols to export.
6868 always_export_symbols=yes
6869 if test "$aix_use_runtimelinking" = yes; then
6870 # Warning - without using the other runtime loading flags (-brtl),
6871 # -berok will link without error, but may produce a broken library.
6872 allow_undefined_flag='-berok'
6873 # Determine the default libpath from the value encoded in an
6874 # empty executable.
6875 cat >conftest.$ac_ext <<_ACEOF
6876 /* confdefs.h. */
6877 _ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6881
6882 int
6883 main ()
6884 {
6885
6886 ;
6887 return 0;
6888 }
6889 _ACEOF
6890 rm -f conftest.$ac_objext conftest$ac_exeext
6891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6892 (eval $ac_link) 2>conftest.er1
6893 ac_status=$?
6894 grep -v '^ *+' conftest.er1 >conftest.err
6895 rm -f conftest.er1
6896 cat conftest.err >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } &&
6899 { ac_try='test -z "$ac_c_werror_flag"
6900 || test ! -s conftest.err'
6901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 (eval $ac_try) 2>&5
6903 ac_status=$?
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); }; } &&
6906 { ac_try='test -s conftest$ac_exeext'
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 (eval $ac_try) 2>&5
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; }; then
6912
6913 lt_aix_libpath_sed='
6914 /Import File Strings/,/^$/ {
6915 /^0/ {
6916 s/^0 *\(.*\)$/\1/
6917 p
6918 }
6919 }'
6920 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6921 # Check for a 64-bit object if we didn't find anything.
6922 if test -z "$aix_libpath"; then
6923 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6924 fi
6925 else
6926 echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6928
6929 fi
6930 rm -f conftest.err conftest.$ac_objext \
6931 conftest$ac_exeext conftest.$ac_ext
6932 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6933
6934 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6935 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"
6936 else
6937 if test "$host_cpu" = ia64; then
6938 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6939 allow_undefined_flag="-z nodefs"
6940 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"
6941 else
6942 # Determine the default libpath from the value encoded in an
6943 # empty executable.
6944 cat >conftest.$ac_ext <<_ACEOF
6945 /* confdefs.h. */
6946 _ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6950
6951 int
6952 main ()
6953 {
6954
6955 ;
6956 return 0;
6957 }
6958 _ACEOF
6959 rm -f conftest.$ac_objext conftest$ac_exeext
6960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6961 (eval $ac_link) 2>conftest.er1
6962 ac_status=$?
6963 grep -v '^ *+' conftest.er1 >conftest.err
6964 rm -f conftest.er1
6965 cat conftest.err >&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } &&
6968 { ac_try='test -z "$ac_c_werror_flag"
6969 || test ! -s conftest.err'
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971 (eval $ac_try) 2>&5
6972 ac_status=$?
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; } &&
6975 { ac_try='test -s conftest$ac_exeext'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 (eval $ac_try) 2>&5
6978 ac_status=$?
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; }; then
6981
6982 lt_aix_libpath_sed='
6983 /Import File Strings/,/^$/ {
6984 /^0/ {
6985 s/^0 *\(.*\)$/\1/
6986 p
6987 }
6988 }'
6989 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6990 # Check for a 64-bit object if we didn't find anything.
6991 if test -z "$aix_libpath"; then
6992 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6993 fi
6994 else
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6997
6998 fi
6999 rm -f conftest.err conftest.$ac_objext \
7000 conftest$ac_exeext conftest.$ac_ext
7001 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7002
7003 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7004 # Warning - without using the other run time loading flags,
7005 # -berok will link without error, but may produce a broken library.
7006 no_undefined_flag=' ${wl}-bernotok'
7007 allow_undefined_flag=' ${wl}-berok'
7008 # Exported symbols can be pulled into shared objects from archives
7009 whole_archive_flag_spec='$convenience'
7010 archive_cmds_need_lc=yes
7011 # This is similar to how AIX traditionally builds its shared libraries.
7012 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'
7013 fi
7014 fi
7015 ;;
7016
7017 amigaos*)
7018 if test "$host_cpu" = m68k; then
7019 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)'
7020 hardcode_libdir_flag_spec='-L$libdir'
7021 hardcode_minus_L=yes
7022 fi
7023 # see comment about different semantics on the GNU ld section
7024 ld_shlibs=no
7025 ;;
7026
7027 bsdi[45]*)
7028 export_dynamic_flag_spec=-rdynamic
7029 ;;
7030
7031 cygwin* | mingw* | pw32*)
7032 # When not using gcc, we currently assume that we are using
7033 # Microsoft Visual C++.
7034 # hardcode_libdir_flag_spec is actually meaningless, as there is
7035 # no search path for DLLs.
7036 hardcode_libdir_flag_spec=' '
7037 allow_undefined_flag=unsupported
7038 # Tell ltmain to make .lib files, not .a files.
7039 libext=lib
7040 # Tell ltmain to make .dll files, not .so files.
7041 shrext_cmds=".dll"
7042 # FIXME: Setting linknames here is a bad hack.
7043 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7044 # The linker will automatically build a .lib file if we build a DLL.
7045 old_archive_from_new_cmds='true'
7046 # FIXME: Should let the user specify the lib program.
7047 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7048 fix_srcfile_path='`cygpath -w "$srcfile"`'
7049 enable_shared_with_static_runtimes=yes
7050 ;;
7051
7052 darwin* | rhapsody*)
7053 case $host_os in
7054 rhapsody* | darwin1.[012])
7055 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7056 ;;
7057 *) # Darwin 1.3 on
7058 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7059 10.[012])
7060 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7061 ;;
7062 10.*)
7063 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7064 ;;
7065 esac
7066 ;;
7067 esac
7068 archive_cmds_need_lc=no
7069 hardcode_direct=no
7070 hardcode_automatic=yes
7071 hardcode_shlibpath_var=unsupported
7072 whole_archive_flag_spec=''
7073 link_all_deplibs=yes
7074 if test "$GCC" = yes ; then
7075 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7077 else
7078 lt_cv_apple_cc_single_mod=no
7079 if test -z "${LT_MULTI_MODULE}"; then
7080 # By default we will add the -single_module flag. You can override
7081 # by either setting the environment variable LT_MULTI_MODULE
7082 # non-empty at configure time, or by adding -multi-module to the
7083 # link flags.
7084 echo "int foo(void){return 1;}" > conftest.c
7085 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7086 -dynamiclib ${wl}-single_module conftest.c
7087 if test -f libconftest.dylib; then
7088 lt_cv_apple_cc_single_mod=yes
7089 rm libconftest.dylib
7090 fi
7091 rm conftest.$ac_ext
7092 fi
7093 fi
7094
7095 output_verbose_link_cmd=echo
7096 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7097 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7098 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}'
7099 else
7100 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7101 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7102 fi
7103 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7104 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}'
7105 else
7106 case $cc_basename in
7107 xlc*)
7108 output_verbose_link_cmd=echo
7109 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7110 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7111 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7112 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}'
7113 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}'
7114 ;;
7115 *)
7116 ld_shlibs=no
7117 ;;
7118 esac
7119 fi
7120 ;;
7121
7122 dgux*)
7123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7124 hardcode_libdir_flag_spec='-L$libdir'
7125 hardcode_shlibpath_var=no
7126 ;;
7127
7128 freebsd1*)
7129 ld_shlibs=no
7130 ;;
7131
7132 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7133 # support. Future versions do this automatically, but an explicit c++rt0.o
7134 # does not break anything, and helps significantly (at the cost of a little
7135 # extra space).
7136 freebsd2.2*)
7137 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7138 hardcode_libdir_flag_spec='-R$libdir'
7139 hardcode_direct=yes
7140 hardcode_shlibpath_var=no
7141 ;;
7142
7143 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7144 freebsd2*)
7145 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7146 hardcode_direct=yes
7147 hardcode_minus_L=yes
7148 hardcode_shlibpath_var=no
7149 ;;
7150
7151 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7152 freebsd* | dragonfly*)
7153 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7154 hardcode_libdir_flag_spec='-R$libdir'
7155 hardcode_direct=yes
7156 hardcode_shlibpath_var=no
7157 ;;
7158
7159 hpux9*)
7160 if test "$GCC" = yes; then
7161 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'
7162 else
7163 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'
7164 fi
7165 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7166 hardcode_libdir_separator=:
7167 hardcode_direct=yes
7168
7169 # hardcode_minus_L: Not really in the search PATH,
7170 # but as the default location of the library.
7171 hardcode_minus_L=yes
7172 export_dynamic_flag_spec='${wl}-E'
7173 ;;
7174
7175 hpux10*)
7176 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7177 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7178 else
7179 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7180 fi
7181 if test "$with_gnu_ld" = no; then
7182 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7183 hardcode_libdir_flag_spec_ld='+b $libdir'
7184 hardcode_libdir_separator=:
7185 hardcode_direct=yes
7186 hardcode_direct_absolute=yes
7187 export_dynamic_flag_spec='${wl}-E'
7188 # hardcode_minus_L: Not really in the search PATH,
7189 # but as the default location of the library.
7190 hardcode_minus_L=yes
7191 fi
7192 ;;
7193
7194 hpux11*)
7195 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7196 case $host_cpu in
7197 hppa*64*)
7198 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7199 ;;
7200 ia64*)
7201 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7202 ;;
7203 *)
7204 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7205 ;;
7206 esac
7207 else
7208 case $host_cpu in
7209 hppa*64*)
7210 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7211 ;;
7212 ia64*)
7213 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7214 ;;
7215 *)
7216 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7217 ;;
7218 esac
7219 fi
7220 if test "$with_gnu_ld" = no; then
7221 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7222 hardcode_libdir_separator=:
7223
7224 case $host_cpu in
7225 hppa*64*|ia64*)
7226 hardcode_direct=no
7227 hardcode_shlibpath_var=no
7228 ;;
7229 *)
7230 hardcode_direct=yes
7231 hardcode_direct_absolute=yes
7232 export_dynamic_flag_spec='${wl}-E'
7233
7234 # hardcode_minus_L: Not really in the search PATH,
7235 # but as the default location of the library.
7236 hardcode_minus_L=yes
7237 ;;
7238 esac
7239 fi
7240 ;;
7241
7242 irix5* | irix6* | nonstopux*)
7243 if test "$GCC" = yes; then
7244 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'
7245 # Try to use the -exported_symbol ld option, if it does not
7246 # work, assume that -exports_file does not work either and
7247 # implicitly export all symbols.
7248 save_LDFLAGS="$LDFLAGS"
7249 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7250 cat >conftest.$ac_ext <<_ACEOF
7251 int foo(void) {}
7252 _ACEOF
7253 rm -f conftest.$ac_objext conftest$ac_exeext
7254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7255 (eval $ac_link) 2>conftest.er1
7256 ac_status=$?
7257 grep -v '^ *+' conftest.er1 >conftest.err
7258 rm -f conftest.er1
7259 cat conftest.err >&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } &&
7262 { ac_try='test -z "$ac_c_werror_flag"
7263 || test ! -s conftest.err'
7264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265 (eval $ac_try) 2>&5
7266 ac_status=$?
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); }; } &&
7269 { ac_try='test -s conftest$ac_exeext'
7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271 (eval $ac_try) 2>&5
7272 ac_status=$?
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); }; }; then
7275 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'
7276
7277 else
7278 echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7280
7281 fi
7282 rm -f conftest.err conftest.$ac_objext \
7283 conftest$ac_exeext conftest.$ac_ext
7284 LDFLAGS="$save_LDFLAGS"
7285 else
7286 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'
7287 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'
7288 fi
7289 archive_cmds_need_lc='no'
7290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7291 hardcode_libdir_separator=:
7292 inherit_rpath=yes
7293 link_all_deplibs=yes
7294 ;;
7295
7296 netbsd*)
7297 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7298 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7299 else
7300 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7301 fi
7302 hardcode_libdir_flag_spec='-R$libdir'
7303 hardcode_direct=yes
7304 hardcode_shlibpath_var=no
7305 ;;
7306
7307 newsos6)
7308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7309 hardcode_direct=yes
7310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7311 hardcode_libdir_separator=:
7312 hardcode_shlibpath_var=no
7313 ;;
7314
7315 *nto* | *qnx*)
7316 ;;
7317
7318 openbsd*)
7319 hardcode_direct=yes
7320 hardcode_shlibpath_var=no
7321 hardcode_direct_absolute=yes
7322 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7323 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7324 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7325 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7326 export_dynamic_flag_spec='${wl}-E'
7327 else
7328 case $host_os in
7329 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7331 hardcode_libdir_flag_spec='-R$libdir'
7332 ;;
7333 *)
7334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7335 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7336 ;;
7337 esac
7338 fi
7339 ;;
7340
7341 os2*)
7342 hardcode_libdir_flag_spec='-L$libdir'
7343 hardcode_minus_L=yes
7344 allow_undefined_flag=unsupported
7345 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'
7346 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7347 ;;
7348
7349 osf3*)
7350 if test "$GCC" = yes; then
7351 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7352 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'
7353 else
7354 allow_undefined_flag=' -expect_unresolved \*'
7355 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'
7356 fi
7357 archive_cmds_need_lc='no'
7358 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7359 hardcode_libdir_separator=:
7360 ;;
7361
7362 osf4* | osf5*) # as osf3* with the addition of -msym flag
7363 if test "$GCC" = yes; then
7364 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7365 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'
7366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7367 else
7368 allow_undefined_flag=' -expect_unresolved \*'
7369 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'
7370 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~
7371 $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'
7372
7373 # Both c and cxx compiler support -rpath directly
7374 hardcode_libdir_flag_spec='-rpath $libdir'
7375 fi
7376 archive_cmds_need_lc='no'
7377 hardcode_libdir_separator=:
7378 ;;
7379
7380 solaris*)
7381 no_undefined_flag=' -z defs'
7382 if test "$GCC" = yes; then
7383 wlarc='${wl}'
7384 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7385 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7386 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7387 else
7388 case `$CC -V 2>&1` in
7389 *"Compilers 5.0"*)
7390 wlarc=''
7391 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7392 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7393 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7394 ;;
7395 *)
7396 wlarc='${wl}'
7397 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7398 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7399 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7400 ;;
7401 esac
7402 fi
7403 hardcode_libdir_flag_spec='-R$libdir'
7404 hardcode_shlibpath_var=no
7405 case $host_os in
7406 solaris2.[0-5] | solaris2.[0-5].*) ;;
7407 *)
7408 # The compiler driver will combine and reorder linker options,
7409 # but understands `-z linker_flag'. GCC discards it without `$wl',
7410 # but is careful enough not to reorder.
7411 # Supported since Solaris 2.6 (maybe 2.5.1?)
7412 if test "$GCC" = yes; then
7413 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7414 else
7415 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7416 fi
7417 ;;
7418 esac
7419 link_all_deplibs=yes
7420 ;;
7421
7422 sunos4*)
7423 if test "x$host_vendor" = xsequent; then
7424 # Use $CC to link under sequent, because it throws in some extra .o
7425 # files that make .init and .fini sections work.
7426 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7427 else
7428 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7429 fi
7430 hardcode_libdir_flag_spec='-L$libdir'
7431 hardcode_direct=yes
7432 hardcode_minus_L=yes
7433 hardcode_shlibpath_var=no
7434 ;;
7435
7436 sysv4)
7437 case $host_vendor in
7438 sni)
7439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7440 hardcode_direct=yes # is this really true???
7441 ;;
7442 siemens)
7443 ## LD is ld it makes a PLAMLIB
7444 ## CC just makes a GrossModule.
7445 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7446 reload_cmds='$CC -r -o $output$reload_objs'
7447 hardcode_direct=no
7448 ;;
7449 motorola)
7450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7451 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7452 ;;
7453 esac
7454 runpath_var='LD_RUN_PATH'
7455 hardcode_shlibpath_var=no
7456 ;;
7457
7458 sysv4.3*)
7459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7460 hardcode_shlibpath_var=no
7461 export_dynamic_flag_spec='-Bexport'
7462 ;;
7463
7464 sysv4*MP*)
7465 if test -d /usr/nec; then
7466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7467 hardcode_shlibpath_var=no
7468 runpath_var=LD_RUN_PATH
7469 hardcode_runpath_var=yes
7470 ld_shlibs=yes
7471 fi
7472 ;;
7473
7474 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7475 no_undefined_flag='${wl}-z,text'
7476 archive_cmds_need_lc=no
7477 hardcode_shlibpath_var=no
7478 runpath_var='LD_RUN_PATH'
7479
7480 if test "$GCC" = yes; then
7481 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7482 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7483 else
7484 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7485 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7486 fi
7487 ;;
7488
7489 sysv5* | sco3.2v5* | sco5v6*)
7490 # Note: We can NOT use -z defs as we might desire, because we do not
7491 # link with -lc, and that would cause any symbols used from libc to
7492 # always be unresolved, which means just about no library would
7493 # ever link correctly. If we're not using GNU ld we use -z text
7494 # though, which does catch some bad symbols but isn't as heavy-handed
7495 # as -z defs.
7496 no_undefined_flag='${wl}-z,text'
7497 allow_undefined_flag='${wl}-z,nodefs'
7498 archive_cmds_need_lc=no
7499 hardcode_shlibpath_var=no
7500 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7501 hardcode_libdir_separator=':'
7502 link_all_deplibs=yes
7503 export_dynamic_flag_spec='${wl}-Bexport'
7504 runpath_var='LD_RUN_PATH'
7505
7506 if test "$GCC" = yes; then
7507 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7508 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7509 else
7510 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7511 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7512 fi
7513 ;;
7514
7515 uts4*)
7516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7517 hardcode_libdir_flag_spec='-L$libdir'
7518 hardcode_shlibpath_var=no
7519 ;;
7520
7521 *)
7522 ld_shlibs=no
7523 ;;
7524 esac
7525
7526 if test x$host_vendor = xsni; then
7527 case $host in
7528 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7529 export_dynamic_flag_spec='${wl}-Blargedynsym'
7530 ;;
7531 esac
7532 fi
7533 fi
7534
7535 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7536 echo "${ECHO_T}$ld_shlibs" >&6
7537 test "$ld_shlibs" = no && can_build_shared=no
7538
7539 with_gnu_ld=$with_gnu_ld
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555 #
7556 # Do we need to explicitly link libc?
7557 #
7558 case "x$archive_cmds_need_lc" in
7559 x|xyes)
7560 # Assume -lc should be added
7561 archive_cmds_need_lc=yes
7562
7563 if test "$enable_shared" = yes && test "$GCC" = yes; then
7564 case $archive_cmds in
7565 *'~'*)
7566 # FIXME: we may have to deal with multi-command sequences.
7567 ;;
7568 '$CC '*)
7569 # Test whether the compiler implicitly links with -lc since on some
7570 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7571 # to ld, don't add -lc before -lgcc.
7572 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7573 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7574 $RM conftest*
7575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7576
7577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7578 (eval $ac_compile) 2>&5
7579 ac_status=$?
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); } 2>conftest.err; then
7582 soname=conftest
7583 lib=conftest
7584 libobjs=conftest.$ac_objext
7585 deplibs=
7586 wl=$lt_prog_compiler_wl
7587 pic_flag=$lt_prog_compiler_pic
7588 compiler_flags=-v
7589 linker_flags=-v
7590 verstring=
7591 output_objdir=.
7592 libname=conftest
7593 lt_save_allow_undefined_flag=$allow_undefined_flag
7594 allow_undefined_flag=
7595 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7596 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7597 ac_status=$?
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }
7600 then
7601 archive_cmds_need_lc=no
7602 else
7603 archive_cmds_need_lc=yes
7604 fi
7605 allow_undefined_flag=$lt_save_allow_undefined_flag
7606 else
7607 cat conftest.err 1>&5
7608 fi
7609 $RM conftest*
7610 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7611 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7612 ;;
7613 esac
7614 fi
7615 ;;
7616 esac
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7775 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7776 withGCC=$GCC
7777 if test "$withGCC" = yes; then
7778 case $host_os in
7779 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7780 *) lt_awk_arg="/^libraries:/" ;;
7781 esac
7782 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7783 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7784 # if the path contains ";" then we assume it to be the separator
7785 # otherwise default to the standard path separator (i.e. ":") - it is
7786 # assumed that no part of a normal pathname contains ";" but that should
7787 # okay in the real world where ";" in dirpaths is itself problematic.
7788 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7789 else
7790 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7791 fi
7792 # Ok, now we have the path, separated by spaces, we can step through it
7793 # and add multilib dir if necessary.
7794 lt_tmp_lt_search_path_spec=
7795 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7796 for lt_sys_path in $lt_search_path_spec; do
7797 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7798 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7799 else
7800 test -d "$lt_sys_path" && \
7801 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7802 fi
7803 done
7804 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7805 BEGIN {RS=" "; FS="/|\n";} {
7806 lt_foo="";
7807 lt_count=0;
7808 for (lt_i = NF; lt_i > 0; lt_i--) {
7809 if ($lt_i != "" && $lt_i != ".") {
7810 if ($lt_i == "..") {
7811 lt_count++;
7812 } else {
7813 if (lt_count == 0) {
7814 lt_foo="/" $lt_i lt_foo;
7815 } else {
7816 lt_count--;
7817 }
7818 }
7819 }
7820 }
7821 if (lt_foo != "") { lt_freq[lt_foo]++; }
7822 if (lt_freq[lt_foo] == 1) { print lt_foo; }
7823 }'`
7824 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7825 else
7826 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7827 fi
7828 library_names_spec=
7829 libname_spec='lib$name'
7830 soname_spec=
7831 shrext_cmds=".so"
7832 postinstall_cmds=
7833 postuninstall_cmds=
7834 finish_cmds=
7835 finish_eval=
7836 shlibpath_var=
7837 shlibpath_overrides_runpath=unknown
7838 version_type=none
7839 dynamic_linker="$host_os ld.so"
7840 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7841 need_lib_prefix=unknown
7842 hardcode_into_libs=no
7843
7844 # when you set need_version to no, make sure it does not cause -set_version
7845 # flags to be left without arguments
7846 need_version=unknown
7847
7848 case $host_os in
7849 aix3*)
7850 version_type=linux
7851 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7852 shlibpath_var=LIBPATH
7853
7854 # AIX 3 has no versioning support, so we append a major version to the name.
7855 soname_spec='${libname}${release}${shared_ext}$major'
7856 ;;
7857
7858 aix4* | aix5*)
7859 version_type=linux
7860 need_lib_prefix=no
7861 need_version=no
7862 hardcode_into_libs=yes
7863 if test "$host_cpu" = ia64; then
7864 # AIX 5 supports IA64
7865 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7866 shlibpath_var=LD_LIBRARY_PATH
7867 else
7868 # With GCC up to 2.95.x, collect2 would create an import file
7869 # for dependence libraries. The import file would start with
7870 # the line `#! .'. This would cause the generated library to
7871 # depend on `.', always an invalid library. This was fixed in
7872 # development snapshots of GCC prior to 3.0.
7873 case $host_os in
7874 aix4 | aix4.[01] | aix4.[01].*)
7875 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7876 echo ' yes '
7877 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7878 :
7879 else
7880 can_build_shared=no
7881 fi
7882 ;;
7883 esac
7884 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7885 # soname into executable. Probably we can add versioning support to
7886 # collect2, so additional links can be useful in future.
7887 if test "$aix_use_runtimelinking" = yes; then
7888 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7889 # instead of lib<name>.a to let people know that these are not
7890 # typical AIX shared libraries.
7891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7892 else
7893 # We preserve .a as extension for shared libraries through AIX4.2
7894 # and later when we are not doing run time linking.
7895 library_names_spec='${libname}${release}.a $libname.a'
7896 soname_spec='${libname}${release}${shared_ext}$major'
7897 fi
7898 shlibpath_var=LIBPATH
7899 fi
7900 ;;
7901
7902 amigaos*)
7903 if test "$host_cpu" = m68k; then
7904 library_names_spec='$libname.ixlibrary $libname.a'
7905 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7906 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'
7907 else
7908 dynamic_linker=no
7909 fi
7910 ;;
7911
7912 beos*)
7913 library_names_spec='${libname}${shared_ext}'
7914 dynamic_linker="$host_os ld.so"
7915 shlibpath_var=LIBRARY_PATH
7916 ;;
7917
7918 bsdi[45]*)
7919 version_type=linux
7920 need_version=no
7921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7922 soname_spec='${libname}${release}${shared_ext}$major'
7923 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7924 shlibpath_var=LD_LIBRARY_PATH
7925 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7926 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7927 # the default ld.so.conf also contains /usr/contrib/lib and
7928 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7929 # libtool to hard-code these into programs
7930 ;;
7931
7932 cygwin* | mingw* | pw32*)
7933 version_type=windows
7934 shrext_cmds=".dll"
7935 need_version=no
7936 need_lib_prefix=no
7937
7938 case $withGCC,$host_os in
7939 yes,cygwin* | yes,mingw* | yes,pw32*)
7940 library_names_spec='$libname.dll.a'
7941 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7942 postinstall_cmds='base_file=`basename \${file}`~
7943 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
7944 dldir=$destdir/`dirname \$dlpath`~
7945 test -d \$dldir || mkdir -p \$dldir~
7946 $install_prog $dir/$dlname \$dldir/$dlname~
7947 chmod a+x \$dldir/$dlname~
7948 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
7949 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
7950 fi'
7951 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7952 dlpath=$dir/\$dldll~
7953 $RM \$dlpath'
7954 shlibpath_overrides_runpath=yes
7955
7956 case $host_os in
7957 cygwin*)
7958 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7959 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7960 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7961 ;;
7962 mingw*)
7963 # MinGW DLLs use traditional 'lib' prefix
7964 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7965 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7966 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
7967 # It is most probably a Windows format PATH printed by
7968 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7969 # path with ; separators, and with drive letters. We can handle the
7970 # drive letters (cygwin fileutils understands them), so leave them,
7971 # especially as we might pass files found there to a mingw objdump,
7972 # which wouldn't understand a cygwinified path. Ahh.
7973 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7974 else
7975 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7976 fi
7977 ;;
7978 pw32*)
7979 # pw32 DLLs use 'pw' prefix rather than 'lib'
7980 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7981 ;;
7982 esac
7983 ;;
7984
7985 *)
7986 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7987 ;;
7988 esac
7989 dynamic_linker='Win32 ld.exe'
7990 # FIXME: first we should search . and the directory the executable is in
7991 shlibpath_var=PATH
7992 ;;
7993
7994 darwin* | rhapsody*)
7995 dynamic_linker="$host_os dyld"
7996 version_type=darwin
7997 need_lib_prefix=no
7998 need_version=no
7999 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8000 soname_spec='${libname}${release}${major}$shared_ext'
8001 shlibpath_overrides_runpath=yes
8002 shlibpath_var=DYLD_LIBRARY_PATH
8003 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8004
8005 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8006 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8007 ;;
8008
8009 dgux*)
8010 version_type=linux
8011 need_lib_prefix=no
8012 need_version=no
8013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8014 soname_spec='${libname}${release}${shared_ext}$major'
8015 shlibpath_var=LD_LIBRARY_PATH
8016 ;;
8017
8018 freebsd1*)
8019 dynamic_linker=no
8020 ;;
8021
8022 freebsd* | dragonfly*)
8023 # DragonFly does not have aout. When/if they implement a new
8024 # versioning mechanism, adjust this.
8025 if test -x /usr/bin/objformat; then
8026 objformat=`/usr/bin/objformat`
8027 else
8028 case $host_os in
8029 freebsd[123]*) objformat=aout ;;
8030 *) objformat=elf ;;
8031 esac
8032 fi
8033 version_type=freebsd-$objformat
8034 case $version_type in
8035 freebsd-elf*)
8036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8037 need_version=no
8038 need_lib_prefix=no
8039 ;;
8040 freebsd-*)
8041 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8042 need_version=yes
8043 ;;
8044 esac
8045 shlibpath_var=LD_LIBRARY_PATH
8046 case $host_os in
8047 freebsd2*)
8048 shlibpath_overrides_runpath=yes
8049 ;;
8050 freebsd3.[01]* | freebsdelf3.[01]*)
8051 shlibpath_overrides_runpath=yes
8052 hardcode_into_libs=yes
8053 ;;
8054 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8055 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8056 shlibpath_overrides_runpath=no
8057 hardcode_into_libs=yes
8058 ;;
8059 *) # from 4.6 on, and DragonFly
8060 shlibpath_overrides_runpath=yes
8061 hardcode_into_libs=yes
8062 ;;
8063 esac
8064 ;;
8065
8066 gnu*)
8067 version_type=linux
8068 need_lib_prefix=no
8069 need_version=no
8070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8071 soname_spec='${libname}${release}${shared_ext}$major'
8072 shlibpath_var=LD_LIBRARY_PATH
8073 hardcode_into_libs=yes
8074 ;;
8075
8076 hpux9* | hpux10* | hpux11*)
8077 # Give a soname corresponding to the major version so that dld.sl refuses to
8078 # link against other versions.
8079 version_type=sunos
8080 need_lib_prefix=no
8081 need_version=no
8082 case $host_cpu in
8083 ia64*)
8084 shrext_cmds='.so'
8085 hardcode_into_libs=yes
8086 dynamic_linker="$host_os dld.so"
8087 shlibpath_var=LD_LIBRARY_PATH
8088 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8090 soname_spec='${libname}${release}${shared_ext}$major'
8091 if test "X$HPUX_IA64_MODE" = X32; then
8092 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8093 else
8094 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8095 fi
8096 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8097 ;;
8098 hppa*64*)
8099 shrext_cmds='.sl'
8100 hardcode_into_libs=yes
8101 dynamic_linker="$host_os dld.sl"
8102 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8103 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8105 soname_spec='${libname}${release}${shared_ext}$major'
8106 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8108 ;;
8109 *)
8110 shrext_cmds='.sl'
8111 dynamic_linker="$host_os dld.sl"
8112 shlibpath_var=SHLIB_PATH
8113 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8115 soname_spec='${libname}${release}${shared_ext}$major'
8116 ;;
8117 esac
8118 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8119 postinstall_cmds='chmod 555 $lib'
8120 ;;
8121
8122 interix[3-9]*)
8123 version_type=linux
8124 need_lib_prefix=no
8125 need_version=no
8126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8127 soname_spec='${libname}${release}${shared_ext}$major'
8128 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8129 shlibpath_var=LD_LIBRARY_PATH
8130 shlibpath_overrides_runpath=no
8131 hardcode_into_libs=yes
8132 ;;
8133
8134 irix5* | irix6* | nonstopux*)
8135 case $host_os in
8136 nonstopux*) version_type=nonstopux ;;
8137 *)
8138 if test "$lt_cv_prog_gnu_ld" = yes; then
8139 version_type=linux
8140 else
8141 version_type=irix
8142 fi ;;
8143 esac
8144 need_lib_prefix=no
8145 need_version=no
8146 soname_spec='${libname}${release}${shared_ext}$major'
8147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8148 case $host_os in
8149 irix5* | nonstopux*)
8150 libsuff= shlibsuff=
8151 ;;
8152 *)
8153 case $LD in # libtool.m4 will add one of these switches to LD
8154 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8155 libsuff= shlibsuff= libmagic=32-bit;;
8156 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8157 libsuff=32 shlibsuff=N32 libmagic=N32;;
8158 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8159 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8160 *) libsuff= shlibsuff= libmagic=never-match;;
8161 esac
8162 ;;
8163 esac
8164 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8165 shlibpath_overrides_runpath=no
8166 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8167 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8168 hardcode_into_libs=yes
8169 ;;
8170
8171 # No shared lib support for Linux oldld, aout, or coff.
8172 linux*oldld* | linux*aout* | linux*coff*)
8173 dynamic_linker=no
8174 ;;
8175
8176 # This must be Linux ELF.
8177 linux* | k*bsd*-gnu)
8178 version_type=linux
8179 need_lib_prefix=no
8180 need_version=no
8181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8182 soname_spec='${libname}${release}${shared_ext}$major'
8183 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8184 shlibpath_var=LD_LIBRARY_PATH
8185 shlibpath_overrides_runpath=no
8186 # Some binutils ld are patched to set DT_RUNPATH
8187 save_LDFLAGS=$LDFLAGS
8188 save_libdir=$libdir
8189 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8190 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8191 cat >conftest.$ac_ext <<_ACEOF
8192 /* confdefs.h. */
8193 _ACEOF
8194 cat confdefs.h >>conftest.$ac_ext
8195 cat >>conftest.$ac_ext <<_ACEOF
8196 /* end confdefs.h. */
8197
8198 int
8199 main ()
8200 {
8201
8202 ;
8203 return 0;
8204 }
8205 _ACEOF
8206 rm -f conftest.$ac_objext conftest$ac_exeext
8207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8208 (eval $ac_link) 2>conftest.er1
8209 ac_status=$?
8210 grep -v '^ *+' conftest.er1 >conftest.err
8211 rm -f conftest.er1
8212 cat conftest.err >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); } &&
8215 { ac_try='test -z "$ac_c_werror_flag"
8216 || test ! -s conftest.err'
8217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218 (eval $ac_try) 2>&5
8219 ac_status=$?
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; } &&
8222 { ac_try='test -s conftest$ac_exeext'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 (eval $ac_try) 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; }; then
8228 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8229 shlibpath_overrides_runpath=yes
8230 fi
8231
8232 else
8233 echo "$as_me: failed program was:" >&5
8234 sed 's/^/| /' conftest.$ac_ext >&5
8235
8236 fi
8237 rm -f conftest.err conftest.$ac_objext \
8238 conftest$ac_exeext conftest.$ac_ext
8239 LDFLAGS=$save_LDFLAGS
8240 libdir=$save_libdir
8241
8242 # This implies no fast_install, which is unacceptable.
8243 # Some rework will be needed to allow for fast_install
8244 # before this can be enabled.
8245 hardcode_into_libs=yes
8246
8247 # Append ld.so.conf contents to the search path
8248 if test -f /etc/ld.so.conf; then
8249 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' ' '`
8250 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8251 fi
8252
8253 # We used to test for /lib/ld.so.1 and disable shared libraries on
8254 # powerpc, because MkLinux only supported shared libraries with the
8255 # GNU dynamic linker. Since this was broken with cross compilers,
8256 # most powerpc-linux boxes support dynamic linking these days and
8257 # people can always --disable-shared, the test was removed, and we
8258 # assume the GNU/Linux dynamic linker is in use.
8259 dynamic_linker='GNU/Linux ld.so'
8260 ;;
8261
8262 netbsd*)
8263 version_type=sunos
8264 need_lib_prefix=no
8265 need_version=no
8266 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8269 dynamic_linker='NetBSD (a.out) ld.so'
8270 else
8271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8272 soname_spec='${libname}${release}${shared_ext}$major'
8273 dynamic_linker='NetBSD ld.elf_so'
8274 fi
8275 shlibpath_var=LD_LIBRARY_PATH
8276 shlibpath_overrides_runpath=yes
8277 hardcode_into_libs=yes
8278 ;;
8279
8280 newsos6)
8281 version_type=linux
8282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8283 shlibpath_var=LD_LIBRARY_PATH
8284 shlibpath_overrides_runpath=yes
8285 ;;
8286
8287 *nto* | *qnx*)
8288 version_type=qnx
8289 need_lib_prefix=no
8290 need_version=no
8291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8292 soname_spec='${libname}${release}${shared_ext}$major'
8293 shlibpath_var=LD_LIBRARY_PATH
8294 shlibpath_overrides_runpath=no
8295 hardcode_into_libs=yes
8296 dynamic_linker='ldqnx.so'
8297 ;;
8298
8299 openbsd*)
8300 version_type=sunos
8301 sys_lib_dlsearch_path_spec="/usr/lib"
8302 need_lib_prefix=no
8303 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8304 case $host_os in
8305 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8306 *) need_version=no ;;
8307 esac
8308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8310 shlibpath_var=LD_LIBRARY_PATH
8311 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8312 case $host_os in
8313 openbsd2.[89] | openbsd2.[89].*)
8314 shlibpath_overrides_runpath=no
8315 ;;
8316 *)
8317 shlibpath_overrides_runpath=yes
8318 ;;
8319 esac
8320 else
8321 shlibpath_overrides_runpath=yes
8322 fi
8323 ;;
8324
8325 os2*)
8326 libname_spec='$name'
8327 shrext_cmds=".dll"
8328 need_lib_prefix=no
8329 library_names_spec='$libname${shared_ext} $libname.a'
8330 dynamic_linker='OS/2 ld.exe'
8331 shlibpath_var=LIBPATH
8332 ;;
8333
8334 osf3* | osf4* | osf5*)
8335 version_type=osf
8336 need_lib_prefix=no
8337 need_version=no
8338 soname_spec='${libname}${release}${shared_ext}$major'
8339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8340 shlibpath_var=LD_LIBRARY_PATH
8341 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8342 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8343 ;;
8344
8345 rdos*)
8346 dynamic_linker=no
8347 ;;
8348
8349 solaris*)
8350 version_type=linux
8351 need_lib_prefix=no
8352 need_version=no
8353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8354 soname_spec='${libname}${release}${shared_ext}$major'
8355 shlibpath_var=LD_LIBRARY_PATH
8356 shlibpath_overrides_runpath=yes
8357 hardcode_into_libs=yes
8358 # ldd complains unless libraries are executable
8359 postinstall_cmds='chmod +x $lib'
8360 ;;
8361
8362 sunos4*)
8363 version_type=sunos
8364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8365 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8366 shlibpath_var=LD_LIBRARY_PATH
8367 shlibpath_overrides_runpath=yes
8368 if test "$with_gnu_ld" = yes; then
8369 need_lib_prefix=no
8370 fi
8371 need_version=yes
8372 ;;
8373
8374 sysv4 | sysv4.3*)
8375 version_type=linux
8376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8377 soname_spec='${libname}${release}${shared_ext}$major'
8378 shlibpath_var=LD_LIBRARY_PATH
8379 case $host_vendor in
8380 sni)
8381 shlibpath_overrides_runpath=no
8382 need_lib_prefix=no
8383 runpath_var=LD_RUN_PATH
8384 ;;
8385 siemens)
8386 need_lib_prefix=no
8387 ;;
8388 motorola)
8389 need_lib_prefix=no
8390 need_version=no
8391 shlibpath_overrides_runpath=no
8392 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8393 ;;
8394 esac
8395 ;;
8396
8397 sysv4*MP*)
8398 if test -d /usr/nec ;then
8399 version_type=linux
8400 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8401 soname_spec='$libname${shared_ext}.$major'
8402 shlibpath_var=LD_LIBRARY_PATH
8403 fi
8404 ;;
8405
8406 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8407 version_type=freebsd-elf
8408 need_lib_prefix=no
8409 need_version=no
8410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8411 soname_spec='${libname}${release}${shared_ext}$major'
8412 shlibpath_var=LD_LIBRARY_PATH
8413 shlibpath_overrides_runpath=yes
8414 hardcode_into_libs=yes
8415 if test "$with_gnu_ld" = yes; then
8416 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8417 else
8418 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8419 case $host_os in
8420 sco3.2v5*)
8421 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8422 ;;
8423 esac
8424 fi
8425 sys_lib_dlsearch_path_spec='/usr/lib'
8426 ;;
8427
8428 tpf*)
8429 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8430 version_type=linux
8431 need_lib_prefix=no
8432 need_version=no
8433 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8434 shlibpath_var=LD_LIBRARY_PATH
8435 shlibpath_overrides_runpath=no
8436 hardcode_into_libs=yes
8437 ;;
8438
8439 uts4*)
8440 version_type=linux
8441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8442 soname_spec='${libname}${release}${shared_ext}$major'
8443 shlibpath_var=LD_LIBRARY_PATH
8444 ;;
8445
8446 *)
8447 dynamic_linker=no
8448 ;;
8449 esac
8450 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8451 echo "${ECHO_T}$dynamic_linker" >&6
8452 test "$dynamic_linker" = no && can_build_shared=no
8453
8454 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8455 if test "$GCC" = yes; then
8456 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8457 fi
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8546 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8547 hardcode_action=
8548 if test -n "$hardcode_libdir_flag_spec" ||
8549 test -n "$runpath_var" ||
8550 test "X$hardcode_automatic" = "Xyes" ; then
8551
8552 # We can hardcode non-existent directories.
8553 if test "$hardcode_direct" != no &&
8554 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8555 # have to relink, otherwise we might link with an installed library
8556 # when we should be linking with a yet-to-be-installed one
8557 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8558 test "$hardcode_minus_L" != no; then
8559 # Linking always hardcodes the temporary library directory.
8560 hardcode_action=relink
8561 else
8562 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8563 hardcode_action=immediate
8564 fi
8565 else
8566 # We cannot hardcode anything, or else we can only hardcode existing
8567 # directories.
8568 hardcode_action=unsupported
8569 fi
8570 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8571 echo "${ECHO_T}$hardcode_action" >&6
8572
8573 if test "$hardcode_action" = relink ||
8574 test "$inherit_rpath" = yes; then
8575 # Fast installation is not supported
8576 enable_fast_install=no
8577 elif test "$shlibpath_overrides_runpath" = yes ||
8578 test "$enable_shared" = no; then
8579 # Fast installation is not necessary
8580 enable_fast_install=needless
8581 fi
8582
8583
8584
8585
8586
8587
8588 if test "x$enable_dlopen" != xyes; then
8589 enable_dlopen=unknown
8590 enable_dlopen_self=unknown
8591 enable_dlopen_self_static=unknown
8592 else
8593 lt_cv_dlopen=no
8594 lt_cv_dlopen_libs=
8595
8596 case $host_os in
8597 beos*)
8598 lt_cv_dlopen="load_add_on"
8599 lt_cv_dlopen_libs=
8600 lt_cv_dlopen_self=yes
8601 ;;
8602
8603 mingw* | pw32*)
8604 lt_cv_dlopen="LoadLibrary"
8605 lt_cv_dlopen_libs=
8606 ;;
8607
8608 cygwin*)
8609 lt_cv_dlopen="dlopen"
8610 lt_cv_dlopen_libs=
8611 ;;
8612
8613 darwin*)
8614 # if libdl is installed we need to link against it
8615 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8616 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8617 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 else
8620 ac_check_lib_save_LIBS=$LIBS
8621 LIBS="-ldl $LIBS"
8622 cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h. */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628
8629 /* Override any gcc2 internal prototype to avoid an error. */
8630 #ifdef __cplusplus
8631 extern "C"
8632 #endif
8633 /* We use char because int might match the return type of a gcc2
8634 builtin and then its argument prototype would still apply. */
8635 char dlopen ();
8636 int
8637 main ()
8638 {
8639 dlopen ();
8640 ;
8641 return 0;
8642 }
8643 _ACEOF
8644 rm -f conftest.$ac_objext conftest$ac_exeext
8645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8646 (eval $ac_link) 2>conftest.er1
8647 ac_status=$?
8648 grep -v '^ *+' conftest.er1 >conftest.err
8649 rm -f conftest.er1
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } &&
8653 { ac_try='test -z "$ac_c_werror_flag"
8654 || test ! -s conftest.err'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 (eval $ac_try) 2>&5
8657 ac_status=$?
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; } &&
8660 { ac_try='test -s conftest$ac_exeext'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 (eval $ac_try) 2>&5
8663 ac_status=$?
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8666 ac_cv_lib_dl_dlopen=yes
8667 else
8668 echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8670
8671 ac_cv_lib_dl_dlopen=no
8672 fi
8673 rm -f conftest.err conftest.$ac_objext \
8674 conftest$ac_exeext conftest.$ac_ext
8675 LIBS=$ac_check_lib_save_LIBS
8676 fi
8677 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8678 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8679 if test $ac_cv_lib_dl_dlopen = yes; then
8680 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8681 else
8682
8683 lt_cv_dlopen="dyld"
8684 lt_cv_dlopen_libs=
8685 lt_cv_dlopen_self=yes
8686
8687 fi
8688
8689 ;;
8690
8691 *)
8692 echo "$as_me:$LINENO: checking for shl_load" >&5
8693 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8694 if test "${ac_cv_func_shl_load+set}" = set; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
8696 else
8697 cat >conftest.$ac_ext <<_ACEOF
8698 /* confdefs.h. */
8699 _ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8705 #define shl_load innocuous_shl_load
8706
8707 /* System header to define __stub macros and hopefully few prototypes,
8708 which can conflict with char shl_load (); below.
8709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8710 <limits.h> exists even on freestanding compilers. */
8711
8712 #ifdef __STDC__
8713 # include <limits.h>
8714 #else
8715 # include <assert.h>
8716 #endif
8717
8718 #undef shl_load
8719
8720 /* Override any gcc2 internal prototype to avoid an error. */
8721 #ifdef __cplusplus
8722 extern "C"
8723 {
8724 #endif
8725 /* We use char because int might match the return type of a gcc2
8726 builtin and then its argument prototype would still apply. */
8727 char shl_load ();
8728 /* The GNU C library defines this for functions which it implements
8729 to always fail with ENOSYS. Some functions are actually named
8730 something starting with __ and the normal name is an alias. */
8731 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8732 choke me
8733 #else
8734 char (*f) () = shl_load;
8735 #endif
8736 #ifdef __cplusplus
8737 }
8738 #endif
8739
8740 int
8741 main ()
8742 {
8743 return f != shl_load;
8744 ;
8745 return 0;
8746 }
8747 _ACEOF
8748 rm -f conftest.$ac_objext conftest$ac_exeext
8749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8750 (eval $ac_link) 2>conftest.er1
8751 ac_status=$?
8752 grep -v '^ *+' conftest.er1 >conftest.err
8753 rm -f conftest.er1
8754 cat conftest.err >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } &&
8757 { ac_try='test -z "$ac_c_werror_flag"
8758 || test ! -s conftest.err'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 (eval $ac_try) 2>&5
8761 ac_status=$?
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; } &&
8764 { ac_try='test -s conftest$ac_exeext'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 (eval $ac_try) 2>&5
8767 ac_status=$?
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 ac_cv_func_shl_load=yes
8771 else
8772 echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8774
8775 ac_cv_func_shl_load=no
8776 fi
8777 rm -f conftest.err conftest.$ac_objext \
8778 conftest$ac_exeext conftest.$ac_ext
8779 fi
8780 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8781 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8782 if test $ac_cv_func_shl_load = yes; then
8783 lt_cv_dlopen="shl_load"
8784 else
8785 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8786 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8787 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790 ac_check_lib_save_LIBS=$LIBS
8791 LIBS="-ldld $LIBS"
8792 cat >conftest.$ac_ext <<_ACEOF
8793 /* confdefs.h. */
8794 _ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8798
8799 /* Override any gcc2 internal prototype to avoid an error. */
8800 #ifdef __cplusplus
8801 extern "C"
8802 #endif
8803 /* We use char because int might match the return type of a gcc2
8804 builtin and then its argument prototype would still apply. */
8805 char shl_load ();
8806 int
8807 main ()
8808 {
8809 shl_load ();
8810 ;
8811 return 0;
8812 }
8813 _ACEOF
8814 rm -f conftest.$ac_objext conftest$ac_exeext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816 (eval $ac_link) 2>conftest.er1
8817 ac_status=$?
8818 grep -v '^ *+' conftest.er1 >conftest.err
8819 rm -f conftest.er1
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try='test -z "$ac_c_werror_flag"
8824 || test ! -s conftest.err'
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826 (eval $ac_try) 2>&5
8827 ac_status=$?
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; } &&
8830 { ac_try='test -s conftest$ac_exeext'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 (eval $ac_try) 2>&5
8833 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; }; then
8836 ac_cv_lib_dld_shl_load=yes
8837 else
8838 echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8840
8841 ac_cv_lib_dld_shl_load=no
8842 fi
8843 rm -f conftest.err conftest.$ac_objext \
8844 conftest$ac_exeext conftest.$ac_ext
8845 LIBS=$ac_check_lib_save_LIBS
8846 fi
8847 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8848 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8849 if test $ac_cv_lib_dld_shl_load = yes; then
8850 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8851 else
8852 echo "$as_me:$LINENO: checking for dlopen" >&5
8853 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8854 if test "${ac_cv_func_dlopen+set}" = set; then
8855 echo $ECHO_N "(cached) $ECHO_C" >&6
8856 else
8857 cat >conftest.$ac_ext <<_ACEOF
8858 /* confdefs.h. */
8859 _ACEOF
8860 cat confdefs.h >>conftest.$ac_ext
8861 cat >>conftest.$ac_ext <<_ACEOF
8862 /* end confdefs.h. */
8863 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8865 #define dlopen innocuous_dlopen
8866
8867 /* System header to define __stub macros and hopefully few prototypes,
8868 which can conflict with char dlopen (); below.
8869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8870 <limits.h> exists even on freestanding compilers. */
8871
8872 #ifdef __STDC__
8873 # include <limits.h>
8874 #else
8875 # include <assert.h>
8876 #endif
8877
8878 #undef dlopen
8879
8880 /* Override any gcc2 internal prototype to avoid an error. */
8881 #ifdef __cplusplus
8882 extern "C"
8883 {
8884 #endif
8885 /* We use char because int might match the return type of a gcc2
8886 builtin and then its argument prototype would still apply. */
8887 char dlopen ();
8888 /* The GNU C library defines this for functions which it implements
8889 to always fail with ENOSYS. Some functions are actually named
8890 something starting with __ and the normal name is an alias. */
8891 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8892 choke me
8893 #else
8894 char (*f) () = dlopen;
8895 #endif
8896 #ifdef __cplusplus
8897 }
8898 #endif
8899
8900 int
8901 main ()
8902 {
8903 return f != dlopen;
8904 ;
8905 return 0;
8906 }
8907 _ACEOF
8908 rm -f conftest.$ac_objext conftest$ac_exeext
8909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8910 (eval $ac_link) 2>conftest.er1
8911 ac_status=$?
8912 grep -v '^ *+' conftest.er1 >conftest.err
8913 rm -f conftest.er1
8914 cat conftest.err >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); } &&
8917 { ac_try='test -z "$ac_c_werror_flag"
8918 || test ! -s conftest.err'
8919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920 (eval $ac_try) 2>&5
8921 ac_status=$?
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; } &&
8924 { ac_try='test -s conftest$ac_exeext'
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 (eval $ac_try) 2>&5
8927 ac_status=$?
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; }; then
8930 ac_cv_func_dlopen=yes
8931 else
8932 echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8934
8935 ac_cv_func_dlopen=no
8936 fi
8937 rm -f conftest.err conftest.$ac_objext \
8938 conftest$ac_exeext conftest.$ac_ext
8939 fi
8940 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8941 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8942 if test $ac_cv_func_dlopen = yes; then
8943 lt_cv_dlopen="dlopen"
8944 else
8945 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8946 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8947 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
8949 else
8950 ac_check_lib_save_LIBS=$LIBS
8951 LIBS="-ldl $LIBS"
8952 cat >conftest.$ac_ext <<_ACEOF
8953 /* confdefs.h. */
8954 _ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8958
8959 /* Override any gcc2 internal prototype to avoid an error. */
8960 #ifdef __cplusplus
8961 extern "C"
8962 #endif
8963 /* We use char because int might match the return type of a gcc2
8964 builtin and then its argument prototype would still apply. */
8965 char dlopen ();
8966 int
8967 main ()
8968 {
8969 dlopen ();
8970 ;
8971 return 0;
8972 }
8973 _ACEOF
8974 rm -f conftest.$ac_objext conftest$ac_exeext
8975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8976 (eval $ac_link) 2>conftest.er1
8977 ac_status=$?
8978 grep -v '^ *+' conftest.er1 >conftest.err
8979 rm -f conftest.er1
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } &&
8983 { ac_try='test -z "$ac_c_werror_flag"
8984 || test ! -s conftest.err'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 (eval $ac_try) 2>&5
8987 ac_status=$?
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; } &&
8990 { ac_try='test -s conftest$ac_exeext'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 (eval $ac_try) 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
8996 ac_cv_lib_dl_dlopen=yes
8997 else
8998 echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9000
9001 ac_cv_lib_dl_dlopen=no
9002 fi
9003 rm -f conftest.err conftest.$ac_objext \
9004 conftest$ac_exeext conftest.$ac_ext
9005 LIBS=$ac_check_lib_save_LIBS
9006 fi
9007 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9008 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9009 if test $ac_cv_lib_dl_dlopen = yes; then
9010 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9011 else
9012 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9013 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9014 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 else
9017 ac_check_lib_save_LIBS=$LIBS
9018 LIBS="-lsvld $LIBS"
9019 cat >conftest.$ac_ext <<_ACEOF
9020 /* confdefs.h. */
9021 _ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9025
9026 /* Override any gcc2 internal prototype to avoid an error. */
9027 #ifdef __cplusplus
9028 extern "C"
9029 #endif
9030 /* We use char because int might match the return type of a gcc2
9031 builtin and then its argument prototype would still apply. */
9032 char dlopen ();
9033 int
9034 main ()
9035 {
9036 dlopen ();
9037 ;
9038 return 0;
9039 }
9040 _ACEOF
9041 rm -f conftest.$ac_objext conftest$ac_exeext
9042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9043 (eval $ac_link) 2>conftest.er1
9044 ac_status=$?
9045 grep -v '^ *+' conftest.er1 >conftest.err
9046 rm -f conftest.er1
9047 cat conftest.err >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } &&
9050 { ac_try='test -z "$ac_c_werror_flag"
9051 || test ! -s conftest.err'
9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053 (eval $ac_try) 2>&5
9054 ac_status=$?
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }; } &&
9057 { ac_try='test -s conftest$ac_exeext'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 (eval $ac_try) 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; }; then
9063 ac_cv_lib_svld_dlopen=yes
9064 else
9065 echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9067
9068 ac_cv_lib_svld_dlopen=no
9069 fi
9070 rm -f conftest.err conftest.$ac_objext \
9071 conftest$ac_exeext conftest.$ac_ext
9072 LIBS=$ac_check_lib_save_LIBS
9073 fi
9074 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9075 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9076 if test $ac_cv_lib_svld_dlopen = yes; then
9077 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9078 else
9079 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9080 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9081 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9082 echo $ECHO_N "(cached) $ECHO_C" >&6
9083 else
9084 ac_check_lib_save_LIBS=$LIBS
9085 LIBS="-ldld $LIBS"
9086 cat >conftest.$ac_ext <<_ACEOF
9087 /* confdefs.h. */
9088 _ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h. */
9092
9093 /* Override any gcc2 internal prototype to avoid an error. */
9094 #ifdef __cplusplus
9095 extern "C"
9096 #endif
9097 /* We use char because int might match the return type of a gcc2
9098 builtin and then its argument prototype would still apply. */
9099 char dld_link ();
9100 int
9101 main ()
9102 {
9103 dld_link ();
9104 ;
9105 return 0;
9106 }
9107 _ACEOF
9108 rm -f conftest.$ac_objext conftest$ac_exeext
9109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9110 (eval $ac_link) 2>conftest.er1
9111 ac_status=$?
9112 grep -v '^ *+' conftest.er1 >conftest.err
9113 rm -f conftest.er1
9114 cat conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } &&
9117 { ac_try='test -z "$ac_c_werror_flag"
9118 || test ! -s conftest.err'
9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 (eval $ac_try) 2>&5
9121 ac_status=$?
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; } &&
9124 { ac_try='test -s conftest$ac_exeext'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 (eval $ac_try) 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 ac_cv_lib_dld_dld_link=yes
9131 else
9132 echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.$ac_ext >&5
9134
9135 ac_cv_lib_dld_dld_link=no
9136 fi
9137 rm -f conftest.err conftest.$ac_objext \
9138 conftest$ac_exeext conftest.$ac_ext
9139 LIBS=$ac_check_lib_save_LIBS
9140 fi
9141 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9142 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9143 if test $ac_cv_lib_dld_dld_link = yes; then
9144 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9145 fi
9146
9147
9148 fi
9149
9150
9151 fi
9152
9153
9154 fi
9155
9156
9157 fi
9158
9159
9160 fi
9161
9162 ;;
9163 esac
9164
9165 if test "x$lt_cv_dlopen" != xno; then
9166 enable_dlopen=yes
9167 else
9168 enable_dlopen=no
9169 fi
9170
9171 case $lt_cv_dlopen in
9172 dlopen)
9173 save_CPPFLAGS="$CPPFLAGS"
9174 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9175
9176 save_LDFLAGS="$LDFLAGS"
9177 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9178
9179 save_LIBS="$LIBS"
9180 LIBS="$lt_cv_dlopen_libs $LIBS"
9181
9182 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9183 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9184 if test "${lt_cv_dlopen_self+set}" = set; then
9185 echo $ECHO_N "(cached) $ECHO_C" >&6
9186 else
9187 if test "$cross_compiling" = yes; then :
9188 lt_cv_dlopen_self=cross
9189 else
9190 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9191 lt_status=$lt_dlunknown
9192 cat > conftest.$ac_ext <<_LT_EOF
9193 #line 9193 "configure"
9194 #include "confdefs.h"
9195
9196 #if HAVE_DLFCN_H
9197 #include <dlfcn.h>
9198 #endif
9199
9200 #include <stdio.h>
9201
9202 #ifdef RTLD_GLOBAL
9203 # define LT_DLGLOBAL RTLD_GLOBAL
9204 #else
9205 # ifdef DL_GLOBAL
9206 # define LT_DLGLOBAL DL_GLOBAL
9207 # else
9208 # define LT_DLGLOBAL 0
9209 # endif
9210 #endif
9211
9212 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9213 find out it does not work in some platform. */
9214 #ifndef LT_DLLAZY_OR_NOW
9215 # ifdef RTLD_LAZY
9216 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9217 # else
9218 # ifdef DL_LAZY
9219 # define LT_DLLAZY_OR_NOW DL_LAZY
9220 # else
9221 # ifdef RTLD_NOW
9222 # define LT_DLLAZY_OR_NOW RTLD_NOW
9223 # else
9224 # ifdef DL_NOW
9225 # define LT_DLLAZY_OR_NOW DL_NOW
9226 # else
9227 # define LT_DLLAZY_OR_NOW 0
9228 # endif
9229 # endif
9230 # endif
9231 # endif
9232 #endif
9233
9234 #ifdef __cplusplus
9235 extern "C" void exit (int);
9236 #endif
9237
9238 void fnord() { int i=42;}
9239 int main ()
9240 {
9241 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9242 int status = $lt_dlunknown;
9243
9244 if (self)
9245 {
9246 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9247 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9248 /* dlclose (self); */
9249 }
9250 else
9251 puts (dlerror ());
9252
9253 exit (status);
9254 }
9255 _LT_EOF
9256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9257 (eval $ac_link) 2>&5
9258 ac_status=$?
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9261 (./conftest; exit; ) >&5 2>/dev/null
9262 lt_status=$?
9263 case x$lt_status in
9264 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9265 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9266 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9267 esac
9268 else :
9269 # compilation failed
9270 lt_cv_dlopen_self=no
9271 fi
9272 fi
9273 rm -fr conftest*
9274
9275
9276 fi
9277 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9278 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9279
9280 if test "x$lt_cv_dlopen_self" = xyes; then
9281 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9282 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9283 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9284 if test "${lt_cv_dlopen_self_static+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 else
9287 if test "$cross_compiling" = yes; then :
9288 lt_cv_dlopen_self_static=cross
9289 else
9290 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9291 lt_status=$lt_dlunknown
9292 cat > conftest.$ac_ext <<_LT_EOF
9293 #line 9293 "configure"
9294 #include "confdefs.h"
9295
9296 #if HAVE_DLFCN_H
9297 #include <dlfcn.h>
9298 #endif
9299
9300 #include <stdio.h>
9301
9302 #ifdef RTLD_GLOBAL
9303 # define LT_DLGLOBAL RTLD_GLOBAL
9304 #else
9305 # ifdef DL_GLOBAL
9306 # define LT_DLGLOBAL DL_GLOBAL
9307 # else
9308 # define LT_DLGLOBAL 0
9309 # endif
9310 #endif
9311
9312 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9313 find out it does not work in some platform. */
9314 #ifndef LT_DLLAZY_OR_NOW
9315 # ifdef RTLD_LAZY
9316 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9317 # else
9318 # ifdef DL_LAZY
9319 # define LT_DLLAZY_OR_NOW DL_LAZY
9320 # else
9321 # ifdef RTLD_NOW
9322 # define LT_DLLAZY_OR_NOW RTLD_NOW
9323 # else
9324 # ifdef DL_NOW
9325 # define LT_DLLAZY_OR_NOW DL_NOW
9326 # else
9327 # define LT_DLLAZY_OR_NOW 0
9328 # endif
9329 # endif
9330 # endif
9331 # endif
9332 #endif
9333
9334 #ifdef __cplusplus
9335 extern "C" void exit (int);
9336 #endif
9337
9338 void fnord() { int i=42;}
9339 int main ()
9340 {
9341 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9342 int status = $lt_dlunknown;
9343
9344 if (self)
9345 {
9346 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9347 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9348 /* dlclose (self); */
9349 }
9350 else
9351 puts (dlerror ());
9352
9353 exit (status);
9354 }
9355 _LT_EOF
9356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9357 (eval $ac_link) 2>&5
9358 ac_status=$?
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9361 (./conftest; exit; ) >&5 2>/dev/null
9362 lt_status=$?
9363 case x$lt_status in
9364 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9365 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9366 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9367 esac
9368 else :
9369 # compilation failed
9370 lt_cv_dlopen_self_static=no
9371 fi
9372 fi
9373 rm -fr conftest*
9374
9375
9376 fi
9377 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9378 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9379 fi
9380
9381 CPPFLAGS="$save_CPPFLAGS"
9382 LDFLAGS="$save_LDFLAGS"
9383 LIBS="$save_LIBS"
9384 ;;
9385 esac
9386
9387 case $lt_cv_dlopen_self in
9388 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9389 *) enable_dlopen_self=unknown ;;
9390 esac
9391
9392 case $lt_cv_dlopen_self_static in
9393 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9394 *) enable_dlopen_self_static=unknown ;;
9395 esac
9396 fi
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414 striplib=
9415 old_striplib=
9416 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9417 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9418 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9419 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9420 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9421 echo "$as_me:$LINENO: result: yes" >&5
9422 echo "${ECHO_T}yes" >&6
9423 else
9424 # FIXME - insert some real tests, host_os isn't really good enough
9425 case $host_os in
9426 darwin*)
9427 if test -n "$STRIP" ; then
9428 striplib="$STRIP -x"
9429 old_striplib="$STRIP -S"
9430 echo "$as_me:$LINENO: result: yes" >&5
9431 echo "${ECHO_T}yes" >&6
9432 else
9433 echo "$as_me:$LINENO: result: no" >&5
9434 echo "${ECHO_T}no" >&6
9435 fi
9436 ;;
9437 *)
9438 echo "$as_me:$LINENO: result: no" >&5
9439 echo "${ECHO_T}no" >&6
9440 ;;
9441 esac
9442 fi
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455 # Report which library types will actually be built
9456 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9457 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9458 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9459 echo "${ECHO_T}$can_build_shared" >&6
9460
9461 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9462 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9463 test "$can_build_shared" = "no" && enable_shared=no
9464
9465 # On AIX, shared libraries and static libraries use the same namespace, and
9466 # are all built from PIC.
9467 case $host_os in
9468 aix3*)
9469 test "$enable_shared" = yes && enable_static=no
9470 if test -n "$RANLIB"; then
9471 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9472 postinstall_cmds='$RANLIB $lib'
9473 fi
9474 ;;
9475
9476 aix4* | aix5*)
9477 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9478 test "$enable_shared" = yes && enable_static=no
9479 fi
9480 ;;
9481 esac
9482 echo "$as_me:$LINENO: result: $enable_shared" >&5
9483 echo "${ECHO_T}$enable_shared" >&6
9484
9485 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9486 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9487 # Make sure either enable_shared or enable_static is yes.
9488 test "$enable_shared" = yes || enable_static=yes
9489 echo "$as_me:$LINENO: result: $enable_static" >&5
9490 echo "${ECHO_T}$enable_static" >&6
9491
9492
9493
9494
9495 fi
9496 ac_ext=c
9497 ac_cpp='$CPP $CPPFLAGS'
9498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9501
9502 CC="$lt_save_CC"
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516 ac_config_commands="$ac_config_commands libtool"
9517
9518
9519
9520
9521 # Only expand once:
9522
9523
9524
9525 ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
9526
9527
9528 ac_ext=c
9529 ac_cpp='$CPP $CPPFLAGS'
9530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9533 if test -n "$ac_tool_prefix"; then
9534 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9535 set dummy ${ac_tool_prefix}gcc; ac_word=$2
9536 echo "$as_me:$LINENO: checking for $ac_word" >&5
9537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9538 if test "${ac_cv_prog_CC+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9540 else
9541 if test -n "$CC"; then
9542 ac_cv_prog_CC="$CC" # Let the user override the test.
9543 else
9544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9545 for as_dir in $PATH
9546 do
9547 IFS=$as_save_IFS
9548 test -z "$as_dir" && as_dir=.
9549 for ac_exec_ext in '' $ac_executable_extensions; do
9550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9551 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9553 break 2
9554 fi
9555 done
9556 done
9557
9558 fi
9559 fi
9560 CC=$ac_cv_prog_CC
9561 if test -n "$CC"; then
9562 echo "$as_me:$LINENO: result: $CC" >&5
9563 echo "${ECHO_T}$CC" >&6
9564 else
9565 echo "$as_me:$LINENO: result: no" >&5
9566 echo "${ECHO_T}no" >&6
9567 fi
9568
9569 fi
9570 if test -z "$ac_cv_prog_CC"; then
9571 ac_ct_CC=$CC
9572 # Extract the first word of "gcc", so it can be a program name with args.
9573 set dummy gcc; ac_word=$2
9574 echo "$as_me:$LINENO: checking for $ac_word" >&5
9575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9576 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9578 else
9579 if test -n "$ac_ct_CC"; then
9580 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9581 else
9582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583 for as_dir in $PATH
9584 do
9585 IFS=$as_save_IFS
9586 test -z "$as_dir" && as_dir=.
9587 for ac_exec_ext in '' $ac_executable_extensions; do
9588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9589 ac_cv_prog_ac_ct_CC="gcc"
9590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9591 break 2
9592 fi
9593 done
9594 done
9595
9596 fi
9597 fi
9598 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9599 if test -n "$ac_ct_CC"; then
9600 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9601 echo "${ECHO_T}$ac_ct_CC" >&6
9602 else
9603 echo "$as_me:$LINENO: result: no" >&5
9604 echo "${ECHO_T}no" >&6
9605 fi
9606
9607 CC=$ac_ct_CC
9608 else
9609 CC="$ac_cv_prog_CC"
9610 fi
9611
9612 if test -z "$CC"; then
9613 if test -n "$ac_tool_prefix"; then
9614 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9615 set dummy ${ac_tool_prefix}cc; ac_word=$2
9616 echo "$as_me:$LINENO: checking for $ac_word" >&5
9617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9618 if test "${ac_cv_prog_CC+set}" = set; then
9619 echo $ECHO_N "(cached) $ECHO_C" >&6
9620 else
9621 if test -n "$CC"; then
9622 ac_cv_prog_CC="$CC" # Let the user override the test.
9623 else
9624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9625 for as_dir in $PATH
9626 do
9627 IFS=$as_save_IFS
9628 test -z "$as_dir" && as_dir=.
9629 for ac_exec_ext in '' $ac_executable_extensions; do
9630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9631 ac_cv_prog_CC="${ac_tool_prefix}cc"
9632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9633 break 2
9634 fi
9635 done
9636 done
9637
9638 fi
9639 fi
9640 CC=$ac_cv_prog_CC
9641 if test -n "$CC"; then
9642 echo "$as_me:$LINENO: result: $CC" >&5
9643 echo "${ECHO_T}$CC" >&6
9644 else
9645 echo "$as_me:$LINENO: result: no" >&5
9646 echo "${ECHO_T}no" >&6
9647 fi
9648
9649 fi
9650 if test -z "$ac_cv_prog_CC"; then
9651 ac_ct_CC=$CC
9652 # Extract the first word of "cc", so it can be a program name with args.
9653 set dummy cc; ac_word=$2
9654 echo "$as_me:$LINENO: checking for $ac_word" >&5
9655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9658 else
9659 if test -n "$ac_ct_CC"; then
9660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9661 else
9662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663 for as_dir in $PATH
9664 do
9665 IFS=$as_save_IFS
9666 test -z "$as_dir" && as_dir=.
9667 for ac_exec_ext in '' $ac_executable_extensions; do
9668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9669 ac_cv_prog_ac_ct_CC="cc"
9670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9671 break 2
9672 fi
9673 done
9674 done
9675
9676 fi
9677 fi
9678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9679 if test -n "$ac_ct_CC"; then
9680 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9681 echo "${ECHO_T}$ac_ct_CC" >&6
9682 else
9683 echo "$as_me:$LINENO: result: no" >&5
9684 echo "${ECHO_T}no" >&6
9685 fi
9686
9687 CC=$ac_ct_CC
9688 else
9689 CC="$ac_cv_prog_CC"
9690 fi
9691
9692 fi
9693 if test -z "$CC"; then
9694 # Extract the first word of "cc", so it can be a program name with args.
9695 set dummy cc; ac_word=$2
9696 echo "$as_me:$LINENO: checking for $ac_word" >&5
9697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9698 if test "${ac_cv_prog_CC+set}" = set; then
9699 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 else
9701 if test -n "$CC"; then
9702 ac_cv_prog_CC="$CC" # Let the user override the test.
9703 else
9704 ac_prog_rejected=no
9705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706 for as_dir in $PATH
9707 do
9708 IFS=$as_save_IFS
9709 test -z "$as_dir" && as_dir=.
9710 for ac_exec_ext in '' $ac_executable_extensions; do
9711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9712 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9713 ac_prog_rejected=yes
9714 continue
9715 fi
9716 ac_cv_prog_CC="cc"
9717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9718 break 2
9719 fi
9720 done
9721 done
9722
9723 if test $ac_prog_rejected = yes; then
9724 # We found a bogon in the path, so make sure we never use it.
9725 set dummy $ac_cv_prog_CC
9726 shift
9727 if test $# != 0; then
9728 # We chose a different compiler from the bogus one.
9729 # However, it has the same basename, so the bogon will be chosen
9730 # first if we set CC to just the basename; use the full file name.
9731 shift
9732 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9733 fi
9734 fi
9735 fi
9736 fi
9737 CC=$ac_cv_prog_CC
9738 if test -n "$CC"; then
9739 echo "$as_me:$LINENO: result: $CC" >&5
9740 echo "${ECHO_T}$CC" >&6
9741 else
9742 echo "$as_me:$LINENO: result: no" >&5
9743 echo "${ECHO_T}no" >&6
9744 fi
9745
9746 fi
9747 if test -z "$CC"; then
9748 if test -n "$ac_tool_prefix"; then
9749 for ac_prog in cl
9750 do
9751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9753 echo "$as_me:$LINENO: checking for $ac_word" >&5
9754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9755 if test "${ac_cv_prog_CC+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 else
9758 if test -n "$CC"; then
9759 ac_cv_prog_CC="$CC" # Let the user override the test.
9760 else
9761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762 for as_dir in $PATH
9763 do
9764 IFS=$as_save_IFS
9765 test -z "$as_dir" && as_dir=.
9766 for ac_exec_ext in '' $ac_executable_extensions; do
9767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9768 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9770 break 2
9771 fi
9772 done
9773 done
9774
9775 fi
9776 fi
9777 CC=$ac_cv_prog_CC
9778 if test -n "$CC"; then
9779 echo "$as_me:$LINENO: result: $CC" >&5
9780 echo "${ECHO_T}$CC" >&6
9781 else
9782 echo "$as_me:$LINENO: result: no" >&5
9783 echo "${ECHO_T}no" >&6
9784 fi
9785
9786 test -n "$CC" && break
9787 done
9788 fi
9789 if test -z "$CC"; then
9790 ac_ct_CC=$CC
9791 for ac_prog in cl
9792 do
9793 # Extract the first word of "$ac_prog", so it can be a program name with args.
9794 set dummy $ac_prog; ac_word=$2
9795 echo "$as_me:$LINENO: checking for $ac_word" >&5
9796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9797 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9799 else
9800 if test -n "$ac_ct_CC"; then
9801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9802 else
9803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804 for as_dir in $PATH
9805 do
9806 IFS=$as_save_IFS
9807 test -z "$as_dir" && as_dir=.
9808 for ac_exec_ext in '' $ac_executable_extensions; do
9809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9810 ac_cv_prog_ac_ct_CC="$ac_prog"
9811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9812 break 2
9813 fi
9814 done
9815 done
9816
9817 fi
9818 fi
9819 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9820 if test -n "$ac_ct_CC"; then
9821 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9822 echo "${ECHO_T}$ac_ct_CC" >&6
9823 else
9824 echo "$as_me:$LINENO: result: no" >&5
9825 echo "${ECHO_T}no" >&6
9826 fi
9827
9828 test -n "$ac_ct_CC" && break
9829 done
9830
9831 CC=$ac_ct_CC
9832 fi
9833
9834 fi
9835
9836
9837 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
9838 See \`config.log' for more details." >&5
9839 echo "$as_me: error: no acceptable C compiler found in \$PATH
9840 See \`config.log' for more details." >&2;}
9841 { (exit 1); exit 1; }; }
9842
9843 # Provide some information about the compiler.
9844 echo "$as_me:$LINENO:" \
9845 "checking for C compiler version" >&5
9846 ac_compiler=`set X $ac_compile; echo $2`
9847 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
9848 (eval $ac_compiler --version </dev/null >&5) 2>&5
9849 ac_status=$?
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }
9852 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
9853 (eval $ac_compiler -v </dev/null >&5) 2>&5
9854 ac_status=$?
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }
9857 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
9858 (eval $ac_compiler -V </dev/null >&5) 2>&5
9859 ac_status=$?
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); }
9862
9863 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
9864 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
9865 if test "${ac_cv_c_compiler_gnu+set}" = set; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868 cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h. */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874
9875 int
9876 main ()
9877 {
9878 #ifndef __GNUC__
9879 choke me
9880 #endif
9881
9882 ;
9883 return 0;
9884 }
9885 _ACEOF
9886 rm -f conftest.$ac_objext
9887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9888 (eval $ac_compile) 2>conftest.er1
9889 ac_status=$?
9890 grep -v '^ *+' conftest.er1 >conftest.err
9891 rm -f conftest.er1
9892 cat conftest.err >&5
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); } &&
9895 { ac_try='test -z "$ac_c_werror_flag"
9896 || test ! -s conftest.err'
9897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898 (eval $ac_try) 2>&5
9899 ac_status=$?
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; } &&
9902 { ac_try='test -s conftest.$ac_objext'
9903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904 (eval $ac_try) 2>&5
9905 ac_status=$?
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); }; }; then
9908 ac_compiler_gnu=yes
9909 else
9910 echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9912
9913 ac_compiler_gnu=no
9914 fi
9915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9916 ac_cv_c_compiler_gnu=$ac_compiler_gnu
9917
9918 fi
9919 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
9920 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
9921 GCC=`test $ac_compiler_gnu = yes && echo yes`
9922 ac_test_CFLAGS=${CFLAGS+set}
9923 ac_save_CFLAGS=$CFLAGS
9924 CFLAGS="-g"
9925 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
9926 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
9927 if test "${ac_cv_prog_cc_g+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9929 else
9930 cat >conftest.$ac_ext <<_ACEOF
9931 /* confdefs.h. */
9932 _ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9936
9937 int
9938 main ()
9939 {
9940
9941 ;
9942 return 0;
9943 }
9944 _ACEOF
9945 rm -f conftest.$ac_objext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9947 (eval $ac_compile) 2>conftest.er1
9948 ac_status=$?
9949 grep -v '^ *+' conftest.er1 >conftest.err
9950 rm -f conftest.er1
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } &&
9954 { ac_try='test -z "$ac_c_werror_flag"
9955 || test ! -s conftest.err'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957 (eval $ac_try) 2>&5
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; } &&
9961 { ac_try='test -s conftest.$ac_objext'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 (eval $ac_try) 2>&5
9964 ac_status=$?
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9967 ac_cv_prog_cc_g=yes
9968 else
9969 echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9971
9972 ac_cv_prog_cc_g=no
9973 fi
9974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9975 fi
9976 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
9977 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9978 if test "$ac_test_CFLAGS" = set; then
9979 CFLAGS=$ac_save_CFLAGS
9980 elif test $ac_cv_prog_cc_g = yes; then
9981 if test "$GCC" = yes; then
9982 CFLAGS="-g -O2"
9983 else
9984 CFLAGS="-g"
9985 fi
9986 else
9987 if test "$GCC" = yes; then
9988 CFLAGS="-O2"
9989 else
9990 CFLAGS=
9991 fi
9992 fi
9993 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
9994 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
9995 if test "${ac_cv_prog_cc_stdc+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998 ac_cv_prog_cc_stdc=no
9999 ac_save_CC=$CC
10000 cat >conftest.$ac_ext <<_ACEOF
10001 /* confdefs.h. */
10002 _ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10006 #include <stdarg.h>
10007 #include <stdio.h>
10008 #include <sys/types.h>
10009 #include <sys/stat.h>
10010 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10011 struct buf { int x; };
10012 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10013 static char *e (p, i)
10014 char **p;
10015 int i;
10016 {
10017 return p[i];
10018 }
10019 static char *f (char * (*g) (char **, int), char **p, ...)
10020 {
10021 char *s;
10022 va_list v;
10023 va_start (v,p);
10024 s = g (p, va_arg (v,int));
10025 va_end (v);
10026 return s;
10027 }
10028
10029 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10030 function prototypes and stuff, but not '\xHH' hex character constants.
10031 These don't provoke an error unfortunately, instead are silently treated
10032 as 'x'. The following induces an error, until -std1 is added to get
10033 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10034 array size at least. It's necessary to write '\x00'==0 to get something
10035 that's true only with -std1. */
10036 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10037
10038 int test (int i, double x);
10039 struct s1 {int (*f) (int a);};
10040 struct s2 {int (*f) (double a);};
10041 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10042 int argc;
10043 char **argv;
10044 int
10045 main ()
10046 {
10047 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10048 ;
10049 return 0;
10050 }
10051 _ACEOF
10052 # Don't try gcc -ansi; that turns off useful extensions and
10053 # breaks some systems' header files.
10054 # AIX -qlanglvl=ansi
10055 # Ultrix and OSF/1 -std1
10056 # HP-UX 10.20 and later -Ae
10057 # HP-UX older versions -Aa -D_HPUX_SOURCE
10058 # SVR4 -Xc -D__EXTENSIONS__
10059 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10060 do
10061 CC="$ac_save_CC $ac_arg"
10062 rm -f conftest.$ac_objext
10063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10064 (eval $ac_compile) 2>conftest.er1
10065 ac_status=$?
10066 grep -v '^ *+' conftest.er1 >conftest.err
10067 rm -f conftest.er1
10068 cat conftest.err >&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } &&
10071 { ac_try='test -z "$ac_c_werror_flag"
10072 || test ! -s conftest.err'
10073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074 (eval $ac_try) 2>&5
10075 ac_status=$?
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; } &&
10078 { ac_try='test -s conftest.$ac_objext'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10081 ac_status=$?
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; }; then
10084 ac_cv_prog_cc_stdc=$ac_arg
10085 break
10086 else
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10089
10090 fi
10091 rm -f conftest.err conftest.$ac_objext
10092 done
10093 rm -f conftest.$ac_ext conftest.$ac_objext
10094 CC=$ac_save_CC
10095
10096 fi
10097
10098 case "x$ac_cv_prog_cc_stdc" in
10099 x|xno)
10100 echo "$as_me:$LINENO: result: none needed" >&5
10101 echo "${ECHO_T}none needed" >&6 ;;
10102 *)
10103 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10104 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10105 CC="$CC $ac_cv_prog_cc_stdc" ;;
10106 esac
10107
10108 # Some people use a C++ compiler to compile C. Since we use `exit',
10109 # in C++ we need to declare it. In case someone uses the same compiler
10110 # for both compiling C and C++ we need to have the C++ compiler decide
10111 # the declaration of exit, since it's the most demanding environment.
10112 cat >conftest.$ac_ext <<_ACEOF
10113 #ifndef __cplusplus
10114 choke me
10115 #endif
10116 _ACEOF
10117 rm -f conftest.$ac_objext
10118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10119 (eval $ac_compile) 2>conftest.er1
10120 ac_status=$?
10121 grep -v '^ *+' conftest.er1 >conftest.err
10122 rm -f conftest.er1
10123 cat conftest.err >&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } &&
10126 { ac_try='test -z "$ac_c_werror_flag"
10127 || test ! -s conftest.err'
10128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129 (eval $ac_try) 2>&5
10130 ac_status=$?
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; } &&
10133 { ac_try='test -s conftest.$ac_objext'
10134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10135 (eval $ac_try) 2>&5
10136 ac_status=$?
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; }; then
10139 for ac_declaration in \
10140 '' \
10141 'extern "C" void std::exit (int) throw (); using std::exit;' \
10142 'extern "C" void std::exit (int); using std::exit;' \
10143 'extern "C" void exit (int) throw ();' \
10144 'extern "C" void exit (int);' \
10145 'void exit (int);'
10146 do
10147 cat >conftest.$ac_ext <<_ACEOF
10148 /* confdefs.h. */
10149 _ACEOF
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h. */
10153 $ac_declaration
10154 #include <stdlib.h>
10155 int
10156 main ()
10157 {
10158 exit (42);
10159 ;
10160 return 0;
10161 }
10162 _ACEOF
10163 rm -f conftest.$ac_objext
10164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10165 (eval $ac_compile) 2>conftest.er1
10166 ac_status=$?
10167 grep -v '^ *+' conftest.er1 >conftest.err
10168 rm -f conftest.er1
10169 cat conftest.err >&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } &&
10172 { ac_try='test -z "$ac_c_werror_flag"
10173 || test ! -s conftest.err'
10174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10175 (eval $ac_try) 2>&5
10176 ac_status=$?
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; } &&
10179 { ac_try='test -s conftest.$ac_objext'
10180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181 (eval $ac_try) 2>&5
10182 ac_status=$?
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); }; }; then
10185 :
10186 else
10187 echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10189
10190 continue
10191 fi
10192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10193 cat >conftest.$ac_ext <<_ACEOF
10194 /* confdefs.h. */
10195 _ACEOF
10196 cat confdefs.h >>conftest.$ac_ext
10197 cat >>conftest.$ac_ext <<_ACEOF
10198 /* end confdefs.h. */
10199 $ac_declaration
10200 int
10201 main ()
10202 {
10203 exit (42);
10204 ;
10205 return 0;
10206 }
10207 _ACEOF
10208 rm -f conftest.$ac_objext
10209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10210 (eval $ac_compile) 2>conftest.er1
10211 ac_status=$?
10212 grep -v '^ *+' conftest.er1 >conftest.err
10213 rm -f conftest.er1
10214 cat conftest.err >&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } &&
10217 { ac_try='test -z "$ac_c_werror_flag"
10218 || test ! -s conftest.err'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; } &&
10224 { ac_try='test -s conftest.$ac_objext'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10227 ac_status=$?
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
10230 break
10231 else
10232 echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10234
10235 fi
10236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10237 done
10238 rm -f conftest*
10239 if test -n "$ac_declaration"; then
10240 echo '#ifdef __cplusplus' >>confdefs.h
10241 echo $ac_declaration >>confdefs.h
10242 echo '#endif' >>confdefs.h
10243 fi
10244
10245 else
10246 echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10248
10249 fi
10250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10251 ac_ext=c
10252 ac_cpp='$CPP $CPPFLAGS'
10253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10256
10257 # Find a good install program. We prefer a C program (faster),
10258 # so one script is as good as another. But avoid the broken or
10259 # incompatible versions:
10260 # SysV /etc/install, /usr/sbin/install
10261 # SunOS /usr/etc/install
10262 # IRIX /sbin/install
10263 # AIX /bin/install
10264 # AmigaOS /C/install, which installs bootblocks on floppy discs
10265 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10266 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10267 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10268 # OS/2's system install, which has a completely different semantic
10269 # ./install, which can be erroneously created by make from ./install.sh.
10270 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10271 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10272 if test -z "$INSTALL"; then
10273 if test "${ac_cv_path_install+set}" = set; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10275 else
10276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277 for as_dir in $PATH
10278 do
10279 IFS=$as_save_IFS
10280 test -z "$as_dir" && as_dir=.
10281 # Account for people who put trailing slashes in PATH elements.
10282 case $as_dir/ in
10283 ./ | .// | /cC/* | \
10284 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10285 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10286 /usr/ucb/* ) ;;
10287 *)
10288 # OSF1 and SCO ODT 3.0 have their own names for install.
10289 # Don't use installbsd from OSF since it installs stuff as root
10290 # by default.
10291 for ac_prog in ginstall scoinst install; do
10292 for ac_exec_ext in '' $ac_executable_extensions; do
10293 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10294 if test $ac_prog = install &&
10295 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10296 # AIX install. It has an incompatible calling convention.
10297 :
10298 elif test $ac_prog = install &&
10299 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10300 # program-specific install script used by HP pwplus--don't use.
10301 :
10302 else
10303 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10304 break 3
10305 fi
10306 fi
10307 done
10308 done
10309 ;;
10310 esac
10311 done
10312
10313
10314 fi
10315 if test "${ac_cv_path_install+set}" = set; then
10316 INSTALL=$ac_cv_path_install
10317 else
10318 # As a last resort, use the slow shell script. We don't cache a
10319 # path for INSTALL within a source directory, because that will
10320 # break other packages using the cache if that directory is
10321 # removed, or if the path is relative.
10322 INSTALL=$ac_install_sh
10323 fi
10324 fi
10325 echo "$as_me:$LINENO: result: $INSTALL" >&5
10326 echo "${ECHO_T}$INSTALL" >&6
10327
10328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10329 # It thinks the first close brace ends the variable substitution.
10330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10331
10332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10333
10334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10335
10336
10337
10338 for ac_func in setmode
10339 do
10340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10341 echo "$as_me:$LINENO: checking for $ac_func" >&5
10342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10343 if eval "test \"\${$as_ac_var+set}\" = set"; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10345 else
10346 cat >conftest.$ac_ext <<_ACEOF
10347 /* confdefs.h. */
10348 _ACEOF
10349 cat confdefs.h >>conftest.$ac_ext
10350 cat >>conftest.$ac_ext <<_ACEOF
10351 /* end confdefs.h. */
10352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10354 #define $ac_func innocuous_$ac_func
10355
10356 /* System header to define __stub macros and hopefully few prototypes,
10357 which can conflict with char $ac_func (); below.
10358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10359 <limits.h> exists even on freestanding compilers. */
10360
10361 #ifdef __STDC__
10362 # include <limits.h>
10363 #else
10364 # include <assert.h>
10365 #endif
10366
10367 #undef $ac_func
10368
10369 /* Override any gcc2 internal prototype to avoid an error. */
10370 #ifdef __cplusplus
10371 extern "C"
10372 {
10373 #endif
10374 /* We use char because int might match the return type of a gcc2
10375 builtin and then its argument prototype would still apply. */
10376 char $ac_func ();
10377 /* The GNU C library defines this for functions which it implements
10378 to always fail with ENOSYS. Some functions are actually named
10379 something starting with __ and the normal name is an alias. */
10380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10381 choke me
10382 #else
10383 char (*f) () = $ac_func;
10384 #endif
10385 #ifdef __cplusplus
10386 }
10387 #endif
10388
10389 int
10390 main ()
10391 {
10392 return f != $ac_func;
10393 ;
10394 return 0;
10395 }
10396 _ACEOF
10397 rm -f conftest.$ac_objext conftest$ac_exeext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10399 (eval $ac_link) 2>conftest.er1
10400 ac_status=$?
10401 grep -v '^ *+' conftest.er1 >conftest.err
10402 rm -f conftest.er1
10403 cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } &&
10406 { ac_try='test -z "$ac_c_werror_flag"
10407 || test ! -s conftest.err'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; } &&
10413 { ac_try='test -s conftest$ac_exeext'
10414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415 (eval $ac_try) 2>&5
10416 ac_status=$?
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; }; then
10419 eval "$as_ac_var=yes"
10420 else
10421 echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10423
10424 eval "$as_ac_var=no"
10425 fi
10426 rm -f conftest.err conftest.$ac_objext \
10427 conftest$ac_exeext conftest.$ac_ext
10428 fi
10429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10431 if test `eval echo '${'$as_ac_var'}'` = yes; then
10432 cat >>confdefs.h <<_ACEOF
10433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10434 _ACEOF
10435
10436 fi
10437 done
10438
10439
10440 ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms"
10441 # If we haven't got the data from the intl directory,
10442 # assume NLS is disabled.
10443 USE_NLS=no
10444 LIBINTL=
10445 LIBINTL_DEP=
10446 INCINTL=
10447 XGETTEXT=
10448 GMSGFMT=
10449 POSUB=
10450
10451 if test -f ../intl/config.intl; then
10452 . ../intl/config.intl
10453 fi
10454 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10455 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10456 if test x"$USE_NLS" != xyes; then
10457 echo "$as_me:$LINENO: result: no" >&5
10458 echo "${ECHO_T}no" >&6
10459 else
10460 echo "$as_me:$LINENO: result: yes" >&5
10461 echo "${ECHO_T}yes" >&6
10462
10463 cat >>confdefs.h <<\_ACEOF
10464 #define ENABLE_NLS 1
10465 _ACEOF
10466
10467
10468 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10469 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10470 # Look for .po and .gmo files in the source directory.
10471 CATALOGS=
10472 XLINGUAS=
10473 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10474 # If there aren't any .gmo files the shell will give us the
10475 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10476 # weeded out.
10477 case "$cat" in *\**)
10478 continue;;
10479 esac
10480 # The quadruple backslash is collapsed to a double backslash
10481 # by the backticks, then collapsed again by the double quotes,
10482 # leaving us with one backslash in the sed expression (right
10483 # before the dot that mustn't act as a wildcard).
10484 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10485 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10486 # The user is allowed to set LINGUAS to a list of languages to
10487 # install catalogs for. If it's empty that means "all of them."
10488 if test "x$LINGUAS" = x; then
10489 CATALOGS="$CATALOGS $cat"
10490 XLINGUAS="$XLINGUAS $lang"
10491 else
10492 case "$LINGUAS" in *$lang*)
10493 CATALOGS="$CATALOGS $cat"
10494 XLINGUAS="$XLINGUAS $lang"
10495 ;;
10496 esac
10497 fi
10498 done
10499 LINGUAS="$XLINGUAS"
10500 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10501 echo "${ECHO_T}$LINGUAS" >&6
10502
10503
10504 DATADIRNAME=share
10505
10506 INSTOBJEXT=.mo
10507
10508 GENCAT=gencat
10509
10510 CATOBJEXT=.gmo
10511
10512 fi
10513
10514 MKINSTALLDIRS=
10515 if test -n "$ac_aux_dir"; then
10516 case "$ac_aux_dir" in
10517 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10518 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10519 esac
10520 fi
10521 if test -z "$MKINSTALLDIRS"; then
10522 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10523 fi
10524
10525
10526
10527 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10528 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10529 # Check whether --enable-nls or --disable-nls was given.
10530 if test "${enable_nls+set}" = set; then
10531 enableval="$enable_nls"
10532 USE_NLS=$enableval
10533 else
10534 USE_NLS=yes
10535 fi;
10536 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10537 echo "${ECHO_T}$USE_NLS" >&6
10538
10539
10540
10541
10542
10543
10544 # Prepare PATH_SEPARATOR.
10545 # The user is always right.
10546 if test "${PATH_SEPARATOR+set}" != set; then
10547 echo "#! /bin/sh" >conf$$.sh
10548 echo "exit 0" >>conf$$.sh
10549 chmod +x conf$$.sh
10550 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10551 PATH_SEPARATOR=';'
10552 else
10553 PATH_SEPARATOR=:
10554 fi
10555 rm -f conf$$.sh
10556 fi
10557
10558 # Find out how to test for executable files. Don't use a zero-byte file,
10559 # as systems may use methods other than mode bits to determine executability.
10560 cat >conf$$.file <<_ASEOF
10561 #! /bin/sh
10562 exit 0
10563 _ASEOF
10564 chmod +x conf$$.file
10565 if test -x conf$$.file >/dev/null 2>&1; then
10566 ac_executable_p="test -x"
10567 else
10568 ac_executable_p="test -f"
10569 fi
10570 rm -f conf$$.file
10571
10572 # Extract the first word of "msgfmt", so it can be a program name with args.
10573 set dummy msgfmt; ac_word=$2
10574 echo "$as_me:$LINENO: checking for $ac_word" >&5
10575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10576 if test "${ac_cv_path_MSGFMT+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10578 else
10579 case "$MSGFMT" in
10580 [\\/]* | ?:[\\/]*)
10581 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10582 ;;
10583 *)
10584 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10585 for ac_dir in $PATH; do
10586 IFS="$ac_save_IFS"
10587 test -z "$ac_dir" && ac_dir=.
10588 for ac_exec_ext in '' $ac_executable_extensions; do
10589 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10590 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10591 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10592 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10593 break 2
10594 fi
10595 fi
10596 done
10597 done
10598 IFS="$ac_save_IFS"
10599 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10600 ;;
10601 esac
10602 fi
10603 MSGFMT="$ac_cv_path_MSGFMT"
10604 if test "$MSGFMT" != ":"; then
10605 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10606 echo "${ECHO_T}$MSGFMT" >&6
10607 else
10608 echo "$as_me:$LINENO: result: no" >&5
10609 echo "${ECHO_T}no" >&6
10610 fi
10611
10612 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10613 set dummy gmsgfmt; ac_word=$2
10614 echo "$as_me:$LINENO: checking for $ac_word" >&5
10615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10616 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 else
10619 case $GMSGFMT in
10620 [\\/]* | ?:[\\/]*)
10621 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10622 ;;
10623 *)
10624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625 for as_dir in $PATH
10626 do
10627 IFS=$as_save_IFS
10628 test -z "$as_dir" && as_dir=.
10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10631 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10633 break 2
10634 fi
10635 done
10636 done
10637
10638 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10639 ;;
10640 esac
10641 fi
10642 GMSGFMT=$ac_cv_path_GMSGFMT
10643
10644 if test -n "$GMSGFMT"; then
10645 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10646 echo "${ECHO_T}$GMSGFMT" >&6
10647 else
10648 echo "$as_me:$LINENO: result: no" >&5
10649 echo "${ECHO_T}no" >&6
10650 fi
10651
10652
10653
10654 # Prepare PATH_SEPARATOR.
10655 # The user is always right.
10656 if test "${PATH_SEPARATOR+set}" != set; then
10657 echo "#! /bin/sh" >conf$$.sh
10658 echo "exit 0" >>conf$$.sh
10659 chmod +x conf$$.sh
10660 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10661 PATH_SEPARATOR=';'
10662 else
10663 PATH_SEPARATOR=:
10664 fi
10665 rm -f conf$$.sh
10666 fi
10667
10668 # Find out how to test for executable files. Don't use a zero-byte file,
10669 # as systems may use methods other than mode bits to determine executability.
10670 cat >conf$$.file <<_ASEOF
10671 #! /bin/sh
10672 exit 0
10673 _ASEOF
10674 chmod +x conf$$.file
10675 if test -x conf$$.file >/dev/null 2>&1; then
10676 ac_executable_p="test -x"
10677 else
10678 ac_executable_p="test -f"
10679 fi
10680 rm -f conf$$.file
10681
10682 # Extract the first word of "xgettext", so it can be a program name with args.
10683 set dummy xgettext; ac_word=$2
10684 echo "$as_me:$LINENO: checking for $ac_word" >&5
10685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10686 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10688 else
10689 case "$XGETTEXT" in
10690 [\\/]* | ?:[\\/]*)
10691 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10692 ;;
10693 *)
10694 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10695 for ac_dir in $PATH; do
10696 IFS="$ac_save_IFS"
10697 test -z "$ac_dir" && ac_dir=.
10698 for ac_exec_ext in '' $ac_executable_extensions; do
10699 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10700 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10701 (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
10702 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10703 break 2
10704 fi
10705 fi
10706 done
10707 done
10708 IFS="$ac_save_IFS"
10709 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10710 ;;
10711 esac
10712 fi
10713 XGETTEXT="$ac_cv_path_XGETTEXT"
10714 if test "$XGETTEXT" != ":"; then
10715 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10716 echo "${ECHO_T}$XGETTEXT" >&6
10717 else
10718 echo "$as_me:$LINENO: result: no" >&5
10719 echo "${ECHO_T}no" >&6
10720 fi
10721
10722 rm -f messages.po
10723
10724
10725 # Prepare PATH_SEPARATOR.
10726 # The user is always right.
10727 if test "${PATH_SEPARATOR+set}" != set; then
10728 echo "#! /bin/sh" >conf$$.sh
10729 echo "exit 0" >>conf$$.sh
10730 chmod +x conf$$.sh
10731 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10732 PATH_SEPARATOR=';'
10733 else
10734 PATH_SEPARATOR=:
10735 fi
10736 rm -f conf$$.sh
10737 fi
10738
10739 # Find out how to test for executable files. Don't use a zero-byte file,
10740 # as systems may use methods other than mode bits to determine executability.
10741 cat >conf$$.file <<_ASEOF
10742 #! /bin/sh
10743 exit 0
10744 _ASEOF
10745 chmod +x conf$$.file
10746 if test -x conf$$.file >/dev/null 2>&1; then
10747 ac_executable_p="test -x"
10748 else
10749 ac_executable_p="test -f"
10750 fi
10751 rm -f conf$$.file
10752
10753 # Extract the first word of "msgmerge", so it can be a program name with args.
10754 set dummy msgmerge; ac_word=$2
10755 echo "$as_me:$LINENO: checking for $ac_word" >&5
10756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10757 if test "${ac_cv_path_MSGMERGE+set}" = set; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10759 else
10760 case "$MSGMERGE" in
10761 [\\/]* | ?:[\\/]*)
10762 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10763 ;;
10764 *)
10765 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10766 for ac_dir in $PATH; do
10767 IFS="$ac_save_IFS"
10768 test -z "$ac_dir" && ac_dir=.
10769 for ac_exec_ext in '' $ac_executable_extensions; do
10770 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10771 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10772 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10773 break 2
10774 fi
10775 fi
10776 done
10777 done
10778 IFS="$ac_save_IFS"
10779 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10780 ;;
10781 esac
10782 fi
10783 MSGMERGE="$ac_cv_path_MSGMERGE"
10784 if test "$MSGMERGE" != ":"; then
10785 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10786 echo "${ECHO_T}$MSGMERGE" >&6
10787 else
10788 echo "$as_me:$LINENO: result: no" >&5
10789 echo "${ECHO_T}no" >&6
10790 fi
10791
10792
10793 if test "$GMSGFMT" != ":"; then
10794 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10795 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10796 : ;
10797 else
10798 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10799 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10800 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10801 GMSGFMT=":"
10802 fi
10803 fi
10804
10805 if test "$XGETTEXT" != ":"; then
10806 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10807 (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
10808 : ;
10809 else
10810 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10811 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10812 XGETTEXT=":"
10813 fi
10814 rm -f messages.po
10815 fi
10816
10817 ac_config_commands="$ac_config_commands default-1"
10818
10819
10820
10821 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10822 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10823 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10824 if test "${enable_maintainer_mode+set}" = set; then
10825 enableval="$enable_maintainer_mode"
10826 USE_MAINTAINER_MODE=$enableval
10827 else
10828 USE_MAINTAINER_MODE=no
10829 fi;
10830 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10831 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10832
10833
10834 if test $USE_MAINTAINER_MODE = yes; then
10835 MAINTAINER_MODE_TRUE=
10836 MAINTAINER_MODE_FALSE='#'
10837 else
10838 MAINTAINER_MODE_TRUE='#'
10839 MAINTAINER_MODE_FALSE=
10840 fi
10841
10842 MAINT=$MAINTAINER_MODE_TRUE
10843
10844
10845
10846
10847 if false; then
10848 GENINSRC_NEVER_TRUE=
10849 GENINSRC_NEVER_FALSE='#'
10850 else
10851 GENINSRC_NEVER_TRUE='#'
10852 GENINSRC_NEVER_FALSE=
10853 fi
10854
10855
10856
10857
10858 for ac_header in sys/gmon_out.h
10859 do
10860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10862 echo "$as_me:$LINENO: checking for $ac_header" >&5
10863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10866 fi
10867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10869 else
10870 # Is the header compilable?
10871 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10873 cat >conftest.$ac_ext <<_ACEOF
10874 /* confdefs.h. */
10875 _ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h. */
10879 $ac_includes_default
10880 #include <$ac_header>
10881 _ACEOF
10882 rm -f conftest.$ac_objext
10883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10884 (eval $ac_compile) 2>conftest.er1
10885 ac_status=$?
10886 grep -v '^ *+' conftest.er1 >conftest.err
10887 rm -f conftest.er1
10888 cat conftest.err >&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } &&
10891 { ac_try='test -z "$ac_c_werror_flag"
10892 || test ! -s conftest.err'
10893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10894 (eval $ac_try) 2>&5
10895 ac_status=$?
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); }; } &&
10898 { ac_try='test -s conftest.$ac_objext'
10899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900 (eval $ac_try) 2>&5
10901 ac_status=$?
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; }; then
10904 ac_header_compiler=yes
10905 else
10906 echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10908
10909 ac_header_compiler=no
10910 fi
10911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10913 echo "${ECHO_T}$ac_header_compiler" >&6
10914
10915 # Is the header present?
10916 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10918 cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h. */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 #include <$ac_header>
10925 _ACEOF
10926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10928 ac_status=$?
10929 grep -v '^ *+' conftest.er1 >conftest.err
10930 rm -f conftest.er1
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } >/dev/null; then
10934 if test -s conftest.err; then
10935 ac_cpp_err=$ac_c_preproc_warn_flag
10936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10937 else
10938 ac_cpp_err=
10939 fi
10940 else
10941 ac_cpp_err=yes
10942 fi
10943 if test -z "$ac_cpp_err"; then
10944 ac_header_preproc=yes
10945 else
10946 echo "$as_me: failed program was:" >&5
10947 sed 's/^/| /' conftest.$ac_ext >&5
10948
10949 ac_header_preproc=no
10950 fi
10951 rm -f conftest.err conftest.$ac_ext
10952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10953 echo "${ECHO_T}$ac_header_preproc" >&6
10954
10955 # So? What about this header?
10956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10957 yes:no: )
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10962 ac_header_preproc=yes
10963 ;;
10964 no:yes:* )
10965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10968 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10972 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10977 (
10978 cat <<\_ASBOX
10979 ## ------------------------------------------ ##
10980 ## Report this to the AC_PACKAGE_NAME lists. ##
10981 ## ------------------------------------------ ##
10982 _ASBOX
10983 ) |
10984 sed "s/^/$as_me: WARNING: /" >&2
10985 ;;
10986 esac
10987 echo "$as_me:$LINENO: checking for $ac_header" >&5
10988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10991 else
10992 eval "$as_ac_Header=\$ac_header_preproc"
10993 fi
10994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10996
10997 fi
10998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10999 cat >>confdefs.h <<_ACEOF
11000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11001 _ACEOF
11002
11003 fi
11004
11005 done
11006
11007
11008 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
11009 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
11010 if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then
11011 echo $ECHO_N "(cached) $ECHO_C" >&6
11012 else
11013 cat >conftest.$ac_ext <<_ACEOF
11014 /* confdefs.h. */
11015 _ACEOF
11016 cat confdefs.h >>conftest.$ac_ext
11017 cat >>conftest.$ac_ext <<_ACEOF
11018 /* end confdefs.h. */
11019 #include <unistd.h>
11020 int
11021 main ()
11022 {
11023 extern int getopt (int, char *const*, const char *);
11024 ;
11025 return 0;
11026 }
11027 _ACEOF
11028 rm -f conftest.$ac_objext
11029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11030 (eval $ac_compile) 2>conftest.er1
11031 ac_status=$?
11032 grep -v '^ *+' conftest.er1 >conftest.err
11033 rm -f conftest.er1
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } &&
11037 { ac_try='test -z "$ac_c_werror_flag"
11038 || test ! -s conftest.err'
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; } &&
11044 { ac_try='test -s conftest.$ac_objext'
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046 (eval $ac_try) 2>&5
11047 ac_status=$?
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
11050 gprof_cv_decl_getopt_unistd_h=yes
11051 else
11052 echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11054
11055 gprof_cv_decl_getopt_unistd_h=no
11056 fi
11057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11058 fi
11059
11060 echo "$as_me:$LINENO: result: $gprof_cv_decl_getopt_unistd_h" >&5
11061 echo "${ECHO_T}$gprof_cv_decl_getopt_unistd_h" >&6
11062 if test $gprof_cv_decl_getopt_unistd_h = yes; then
11063
11064 cat >>confdefs.h <<\_ACEOF
11065 #define HAVE_DECL_GETOPT 1
11066 _ACEOF
11067
11068 fi
11069
11070
11071 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11072
11073 # Check whether --enable-werror or --disable-werror was given.
11074 if test "${enable_werror+set}" = set; then
11075 enableval="$enable_werror"
11076 case "${enableval}" in
11077 yes | y) ERROR_ON_WARNING="yes" ;;
11078 no | n) ERROR_ON_WARNING="no" ;;
11079 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11080 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11081 { (exit 1); exit 1; }; } ;;
11082 esac
11083 fi;
11084
11085 # Enable -Werror by default when using gcc
11086 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11087 ERROR_ON_WARNING=yes
11088 fi
11089
11090 NO_WERROR=
11091 if test "${ERROR_ON_WARNING}" = yes ; then
11092 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11093 NO_WERROR="-Wno-error"
11094 fi
11095
11096 if test "${GCC}" = yes ; then
11097 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11098 fi
11099
11100 # Check whether --enable-build-warnings or --disable-build-warnings was given.
11101 if test "${enable_build_warnings+set}" = set; then
11102 enableval="$enable_build_warnings"
11103 case "${enableval}" in
11104 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11105 no) if test "${GCC}" = yes ; then
11106 WARN_CFLAGS="-w"
11107 fi;;
11108 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11109 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11110 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11111 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11112 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11113 esac
11114 fi;
11115
11116 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11117 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11118 fi
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
11129
11130 cat >confcache <<\_ACEOF
11131 # This file is a shell script that caches the results of configure
11132 # tests run on this system so they can be shared between configure
11133 # scripts and configure runs, see configure's option --config-cache.
11134 # It is not useful on other systems. If it contains results you don't
11135 # want to keep, you may remove or edit it.
11136 #
11137 # config.status only pays attention to the cache file if you give it
11138 # the --recheck option to rerun configure.
11139 #
11140 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11141 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11142 # following values.
11143
11144 _ACEOF
11145
11146 # The following way of writing the cache mishandles newlines in values,
11147 # but we know of no workaround that is simple, portable, and efficient.
11148 # So, don't put newlines in cache variables' values.
11149 # Ultrix sh set writes to stderr and can't be redirected directly,
11150 # and sets the high bit in the cache file unless we assign to the vars.
11151 {
11152 (set) 2>&1 |
11153 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11154 *ac_space=\ *)
11155 # `set' does not quote correctly, so add quotes (double-quote
11156 # substitution turns \\\\ into \\, and sed turns \\ into \).
11157 sed -n \
11158 "s/'/'\\\\''/g;
11159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11160 ;;
11161 *)
11162 # `set' quotes correctly as required by POSIX, so do not add quotes.
11163 sed -n \
11164 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11165 ;;
11166 esac;
11167 } |
11168 sed '
11169 t clear
11170 : clear
11171 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11172 t end
11173 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11174 : end' >>confcache
11175 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11176 if test -w $cache_file; then
11177 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11178 cat confcache >$cache_file
11179 else
11180 echo "not updating unwritable cache $cache_file"
11181 fi
11182 fi
11183 rm -f confcache
11184
11185 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11186 # Let make expand exec_prefix.
11187 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11188
11189 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11190 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11191 # trailing colons and then remove the whole line if VPATH becomes empty
11192 # (actually we leave an empty line to preserve line numbers).
11193 if test "x$srcdir" = x.; then
11194 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11195 s/:*\$(srcdir):*/:/;
11196 s/:*\${srcdir}:*/:/;
11197 s/:*@srcdir@:*/:/;
11198 s/^\([^=]*=[ ]*\):*/\1/;
11199 s/:*$//;
11200 s/^[^=]*=[ ]*$//;
11201 }'
11202 fi
11203
11204 DEFS=-DHAVE_CONFIG_H
11205
11206 ac_libobjs=
11207 ac_ltlibobjs=
11208 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11209 # 1. Remove the extension, and $U if already installed.
11210 ac_i=`echo "$ac_i" |
11211 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11212 # 2. Add them.
11213 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11214 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11215 done
11216 LIBOBJS=$ac_libobjs
11217
11218 LTLIBOBJS=$ac_ltlibobjs
11219
11220
11221 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11222 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11223 Usually this means the macro was only invoked conditionally." >&5
11224 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11225 Usually this means the macro was only invoked conditionally." >&2;}
11226 { (exit 1); exit 1; }; }
11227 fi
11228 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11229 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11230 Usually this means the macro was only invoked conditionally." >&5
11231 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11232 Usually this means the macro was only invoked conditionally." >&2;}
11233 { (exit 1); exit 1; }; }
11234 fi
11235 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11236 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11237 Usually this means the macro was only invoked conditionally." >&5
11238 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11239 Usually this means the macro was only invoked conditionally." >&2;}
11240 { (exit 1); exit 1; }; }
11241 fi
11242 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
11243 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
11244 Usually this means the macro was only invoked conditionally." >&5
11245 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
11246 Usually this means the macro was only invoked conditionally." >&2;}
11247 { (exit 1); exit 1; }; }
11248 fi
11249
11250 : ${CONFIG_STATUS=./config.status}
11251 ac_clean_files_save=$ac_clean_files
11252 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11253 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11254 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11255 cat >$CONFIG_STATUS <<_ACEOF
11256 #! $SHELL
11257 # Generated by $as_me.
11258 # Run this file to recreate the current configuration.
11259 # Compiler output produced by configure, useful for debugging
11260 # configure, is in config.log if it exists.
11261
11262 debug=false
11263 ac_cs_recheck=false
11264 ac_cs_silent=false
11265 SHELL=\${CONFIG_SHELL-$SHELL}
11266 _ACEOF
11267
11268 cat >>$CONFIG_STATUS <<\_ACEOF
11269 ## --------------------- ##
11270 ## M4sh Initialization. ##
11271 ## --------------------- ##
11272
11273 # Be Bourne compatible
11274 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11275 emulate sh
11276 NULLCMD=:
11277 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11278 # is contrary to our usage. Disable this feature.
11279 alias -g '${1+"$@"}'='"$@"'
11280 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11281 set -o posix
11282 fi
11283 DUALCASE=1; export DUALCASE # for MKS sh
11284
11285 # Support unset when possible.
11286 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11287 as_unset=unset
11288 else
11289 as_unset=false
11290 fi
11291
11292
11293 # Work around bugs in pre-3.0 UWIN ksh.
11294 $as_unset ENV MAIL MAILPATH
11295 PS1='$ '
11296 PS2='> '
11297 PS4='+ '
11298
11299 # NLS nuisances.
11300 for as_var in \
11301 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11302 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11303 LC_TELEPHONE LC_TIME
11304 do
11305 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11306 eval $as_var=C; export $as_var
11307 else
11308 $as_unset $as_var
11309 fi
11310 done
11311
11312 # Required to use basename.
11313 if expr a : '\(a\)' >/dev/null 2>&1; then
11314 as_expr=expr
11315 else
11316 as_expr=false
11317 fi
11318
11319 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11320 as_basename=basename
11321 else
11322 as_basename=false
11323 fi
11324
11325
11326 # Name of the executable.
11327 as_me=`$as_basename "$0" ||
11328 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11329 X"$0" : 'X\(//\)$' \| \
11330 X"$0" : 'X\(/\)$' \| \
11331 . : '\(.\)' 2>/dev/null ||
11332 echo X/"$0" |
11333 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11334 /^X\/\(\/\/\)$/{ s//\1/; q; }
11335 /^X\/\(\/\).*/{ s//\1/; q; }
11336 s/.*/./; q'`
11337
11338
11339 # PATH needs CR, and LINENO needs CR and PATH.
11340 # Avoid depending upon Character Ranges.
11341 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11342 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11343 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11344 as_cr_digits='0123456789'
11345 as_cr_alnum=$as_cr_Letters$as_cr_digits
11346
11347 # The user is always right.
11348 if test "${PATH_SEPARATOR+set}" != set; then
11349 echo "#! /bin/sh" >conf$$.sh
11350 echo "exit 0" >>conf$$.sh
11351 chmod +x conf$$.sh
11352 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11353 PATH_SEPARATOR=';'
11354 else
11355 PATH_SEPARATOR=:
11356 fi
11357 rm -f conf$$.sh
11358 fi
11359
11360
11361 as_lineno_1=$LINENO
11362 as_lineno_2=$LINENO
11363 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11364 test "x$as_lineno_1" != "x$as_lineno_2" &&
11365 test "x$as_lineno_3" = "x$as_lineno_2" || {
11366 # Find who we are. Look in the path if we contain no path at all
11367 # relative or not.
11368 case $0 in
11369 *[\\/]* ) as_myself=$0 ;;
11370 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371 for as_dir in $PATH
11372 do
11373 IFS=$as_save_IFS
11374 test -z "$as_dir" && as_dir=.
11375 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11376 done
11377
11378 ;;
11379 esac
11380 # We did not find ourselves, most probably we were run as `sh COMMAND'
11381 # in which case we are not to be found in the path.
11382 if test "x$as_myself" = x; then
11383 as_myself=$0
11384 fi
11385 if test ! -f "$as_myself"; then
11386 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11387 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11388 { (exit 1); exit 1; }; }
11389 fi
11390 case $CONFIG_SHELL in
11391 '')
11392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11393 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11394 do
11395 IFS=$as_save_IFS
11396 test -z "$as_dir" && as_dir=.
11397 for as_base in sh bash ksh sh5; do
11398 case $as_dir in
11399 /*)
11400 if ("$as_dir/$as_base" -c '
11401 as_lineno_1=$LINENO
11402 as_lineno_2=$LINENO
11403 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11404 test "x$as_lineno_1" != "x$as_lineno_2" &&
11405 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11406 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11407 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11408 CONFIG_SHELL=$as_dir/$as_base
11409 export CONFIG_SHELL
11410 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11411 fi;;
11412 esac
11413 done
11414 done
11415 ;;
11416 esac
11417
11418 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11419 # uniformly replaced by the line number. The first 'sed' inserts a
11420 # line-number line before each line; the second 'sed' does the real
11421 # work. The second script uses 'N' to pair each line-number line
11422 # with the numbered line, and appends trailing '-' during
11423 # substitution so that $LINENO is not a special case at line end.
11424 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11425 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11426 sed '=' <$as_myself |
11427 sed '
11428 N
11429 s,$,-,
11430 : loop
11431 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11432 t loop
11433 s,-$,,
11434 s,^['$as_cr_digits']*\n,,
11435 ' >$as_me.lineno &&
11436 chmod +x $as_me.lineno ||
11437 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11438 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11439 { (exit 1); exit 1; }; }
11440
11441 # Don't try to exec as it changes $[0], causing all sort of problems
11442 # (the dirname of $[0] is not the place where we might find the
11443 # original and so on. Autoconf is especially sensible to this).
11444 . ./$as_me.lineno
11445 # Exit status is that of the last command.
11446 exit
11447 }
11448
11449
11450 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11451 *c*,-n*) ECHO_N= ECHO_C='
11452 ' ECHO_T=' ' ;;
11453 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11454 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11455 esac
11456
11457 if expr a : '\(a\)' >/dev/null 2>&1; then
11458 as_expr=expr
11459 else
11460 as_expr=false
11461 fi
11462
11463 rm -f conf$$ conf$$.exe conf$$.file
11464 echo >conf$$.file
11465 if ln -s conf$$.file conf$$ 2>/dev/null; then
11466 # We could just check for DJGPP; but this test a) works b) is more generic
11467 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11468 if test -f conf$$.exe; then
11469 # Don't use ln at all; we don't have any links
11470 as_ln_s='cp -p'
11471 else
11472 as_ln_s='ln -s'
11473 fi
11474 elif ln conf$$.file conf$$ 2>/dev/null; then
11475 as_ln_s=ln
11476 else
11477 as_ln_s='cp -p'
11478 fi
11479 rm -f conf$$ conf$$.exe conf$$.file
11480
11481 if mkdir -p . 2>/dev/null; then
11482 as_mkdir_p=:
11483 else
11484 test -d ./-p && rmdir ./-p
11485 as_mkdir_p=false
11486 fi
11487
11488 as_executable_p="test -f"
11489
11490 # Sed expression to map a string onto a valid CPP name.
11491 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11492
11493 # Sed expression to map a string onto a valid variable name.
11494 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11495
11496
11497 # IFS
11498 # We need space, tab and new line, in precisely that order.
11499 as_nl='
11500 '
11501 IFS=" $as_nl"
11502
11503 # CDPATH.
11504 $as_unset CDPATH
11505
11506 exec 6>&1
11507
11508 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11509 # report actual input values of CONFIG_FILES etc. instead of their
11510 # values after options handling. Logging --version etc. is OK.
11511 exec 5>>config.log
11512 {
11513 echo
11514 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11515 ## Running $as_me. ##
11516 _ASBOX
11517 } >&5
11518 cat >&5 <<_CSEOF
11519
11520 This file was extended by $as_me, which was
11521 generated by GNU Autoconf 2.59. Invocation command line was
11522
11523 CONFIG_FILES = $CONFIG_FILES
11524 CONFIG_HEADERS = $CONFIG_HEADERS
11525 CONFIG_LINKS = $CONFIG_LINKS
11526 CONFIG_COMMANDS = $CONFIG_COMMANDS
11527 $ $0 $@
11528
11529 _CSEOF
11530 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11531 echo >&5
11532 _ACEOF
11533
11534 # Files that config.status was made for.
11535 if test -n "$ac_config_files"; then
11536 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11537 fi
11538
11539 if test -n "$ac_config_headers"; then
11540 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11541 fi
11542
11543 if test -n "$ac_config_links"; then
11544 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11545 fi
11546
11547 if test -n "$ac_config_commands"; then
11548 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11549 fi
11550
11551 cat >>$CONFIG_STATUS <<\_ACEOF
11552
11553 ac_cs_usage="\
11554 \`$as_me' instantiates files from templates according to the
11555 current configuration.
11556
11557 Usage: $0 [OPTIONS] [FILE]...
11558
11559 -h, --help print this help, then exit
11560 -V, --version print version number, then exit
11561 -q, --quiet do not print progress messages
11562 -d, --debug don't remove temporary files
11563 --recheck update $as_me by reconfiguring in the same conditions
11564 --file=FILE[:TEMPLATE]
11565 instantiate the configuration file FILE
11566 --header=FILE[:TEMPLATE]
11567 instantiate the configuration header FILE
11568
11569 Configuration files:
11570 $config_files
11571
11572 Configuration headers:
11573 $config_headers
11574
11575 Configuration commands:
11576 $config_commands
11577
11578 Report bugs to <bug-autoconf@gnu.org>."
11579 _ACEOF
11580
11581 cat >>$CONFIG_STATUS <<_ACEOF
11582 ac_cs_version="\\
11583 config.status
11584 configured by $0, generated by GNU Autoconf 2.59,
11585 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11586
11587 Copyright (C) 2003 Free Software Foundation, Inc.
11588 This config.status script is free software; the Free Software Foundation
11589 gives unlimited permission to copy, distribute and modify it."
11590 srcdir=$srcdir
11591 INSTALL="$INSTALL"
11592 _ACEOF
11593
11594 cat >>$CONFIG_STATUS <<\_ACEOF
11595 # If no file are specified by the user, then we need to provide default
11596 # value. By we need to know if files were specified by the user.
11597 ac_need_defaults=:
11598 while test $# != 0
11599 do
11600 case $1 in
11601 --*=*)
11602 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11603 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11604 ac_shift=:
11605 ;;
11606 -*)
11607 ac_option=$1
11608 ac_optarg=$2
11609 ac_shift=shift
11610 ;;
11611 *) # This is not an option, so the user has probably given explicit
11612 # arguments.
11613 ac_option=$1
11614 ac_need_defaults=false;;
11615 esac
11616
11617 case $ac_option in
11618 # Handling of the options.
11619 _ACEOF
11620 cat >>$CONFIG_STATUS <<\_ACEOF
11621 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11622 ac_cs_recheck=: ;;
11623 --version | --vers* | -V )
11624 echo "$ac_cs_version"; exit 0 ;;
11625 --he | --h)
11626 # Conflict between --help and --header
11627 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11628 Try \`$0 --help' for more information." >&5
11629 echo "$as_me: error: ambiguous option: $1
11630 Try \`$0 --help' for more information." >&2;}
11631 { (exit 1); exit 1; }; };;
11632 --help | --hel | -h )
11633 echo "$ac_cs_usage"; exit 0 ;;
11634 --debug | --d* | -d )
11635 debug=: ;;
11636 --file | --fil | --fi | --f )
11637 $ac_shift
11638 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11639 ac_need_defaults=false;;
11640 --header | --heade | --head | --hea )
11641 $ac_shift
11642 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11643 ac_need_defaults=false;;
11644 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11645 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11646 ac_cs_silent=: ;;
11647
11648 # This is an error.
11649 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11650 Try \`$0 --help' for more information." >&5
11651 echo "$as_me: error: unrecognized option: $1
11652 Try \`$0 --help' for more information." >&2;}
11653 { (exit 1); exit 1; }; } ;;
11654
11655 *) ac_config_targets="$ac_config_targets $1" ;;
11656
11657 esac
11658 shift
11659 done
11660
11661 ac_configure_extra_args=
11662
11663 if $ac_cs_silent; then
11664 exec 6>/dev/null
11665 ac_configure_extra_args="$ac_configure_extra_args --silent"
11666 fi
11667
11668 _ACEOF
11669 cat >>$CONFIG_STATUS <<_ACEOF
11670 if \$ac_cs_recheck; then
11671 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11672 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11673 fi
11674
11675 _ACEOF
11676
11677 cat >>$CONFIG_STATUS <<_ACEOF
11678 #
11679 # INIT-COMMANDS section.
11680 #
11681
11682 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11683
11684
11685 # The HP-UX ksh and POSIX shell print the target directory to stdout
11686 # if CDPATH is set.
11687 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11688
11689 sed_quote_subst='$sed_quote_subst'
11690 double_quote_subst='$double_quote_subst'
11691 delay_variable_subst='$delay_variable_subst'
11692 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11693 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11694 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11695 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11696 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11697 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11698 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11699 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11700 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11701 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11702 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11703 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11704 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11705 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11706 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11707 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11708 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11709 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11710 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11711 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11712 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11713 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11714 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11715 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11716 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11717 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11718 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11719 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11720 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11721 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11722 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11723 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11724 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11725 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11726 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11727 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11728 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11729 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11730 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11731 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11732 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11733 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11734 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11735 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"`'
11736 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11737 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11738 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11739 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11740 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11741 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11742 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11743 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11744 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11745 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11746 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11747 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11748 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11749 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11750 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11751 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11752 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11753 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11754 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11755 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11756 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11757 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11758 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11759 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11760 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11761 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11762 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11763 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11764 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11765 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11766 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11767 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11768 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11769 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11770 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11771 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11772 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11773 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11774 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11775 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11776 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11777 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11778 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11779 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11780 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11781 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11782 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11783 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11784 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11785 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11786 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11787 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11788 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11789 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11790 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11791 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11792 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11793 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11794 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11795 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11796 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11797 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11798 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11799 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11800 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11801 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11802 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11803
11804 LTCC='$LTCC'
11805 LTCFLAGS='$LTCFLAGS'
11806 compiler='$compiler_DEFAULT'
11807
11808 # Quote evaled strings.
11809 for var in SED \
11810 GREP \
11811 EGREP \
11812 FGREP \
11813 LD \
11814 NM \
11815 LN_S \
11816 lt_SP2NL \
11817 lt_NL2SP \
11818 reload_flag \
11819 deplibs_check_method \
11820 file_magic_cmd \
11821 AR \
11822 AR_FLAGS \
11823 STRIP \
11824 RANLIB \
11825 CC \
11826 CFLAGS \
11827 compiler \
11828 lt_cv_sys_global_symbol_pipe \
11829 lt_cv_sys_global_symbol_to_cdecl \
11830 lt_cv_sys_global_symbol_to_c_name_address \
11831 SHELL \
11832 ECHO \
11833 lt_prog_compiler_no_builtin_flag \
11834 lt_prog_compiler_wl \
11835 lt_prog_compiler_pic \
11836 lt_prog_compiler_static \
11837 lt_cv_prog_compiler_c_o \
11838 need_locks \
11839 shrext_cmds \
11840 export_dynamic_flag_spec \
11841 whole_archive_flag_spec \
11842 compiler_needs_object \
11843 with_gnu_ld \
11844 allow_undefined_flag \
11845 no_undefined_flag \
11846 hardcode_libdir_flag_spec \
11847 hardcode_libdir_flag_spec_ld \
11848 hardcode_libdir_separator \
11849 fix_srcfile_path \
11850 exclude_expsyms \
11851 include_expsyms \
11852 file_list_spec \
11853 variables_saved_for_relink \
11854 libname_spec \
11855 library_names_spec \
11856 soname_spec \
11857 finish_eval \
11858 old_striplib \
11859 striplib; do
11860 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11861 *[\\\\\\\`\\"\\\$]*)
11862 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11863 ;;
11864 *)
11865 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11866 ;;
11867 esac
11868 done
11869
11870 # Double-quote double-evaled strings.
11871 for var in reload_cmds \
11872 old_postinstall_cmds \
11873 old_postuninstall_cmds \
11874 old_archive_cmds \
11875 extract_expsyms_cmds \
11876 old_archive_from_new_cmds \
11877 old_archive_from_expsyms_cmds \
11878 archive_cmds \
11879 archive_expsym_cmds \
11880 module_cmds \
11881 module_expsym_cmds \
11882 export_symbols_cmds \
11883 prelink_cmds \
11884 postinstall_cmds \
11885 postuninstall_cmds \
11886 finish_cmds \
11887 sys_lib_search_path_spec \
11888 sys_lib_dlsearch_path_spec; do
11889 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11890 *[\\\\\\\`\\"\\\$]*)
11891 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11892 ;;
11893 *)
11894 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11895 ;;
11896 esac
11897 done
11898
11899 # Fix-up fallback echo if it was mangled by the above quoting rules.
11900 case \$lt_ECHO in
11901 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11902 ;;
11903 esac
11904
11905 ac_aux_dir='$ac_aux_dir'
11906 xsi_shell='$xsi_shell'
11907 lt_shell_append='$lt_shell_append'
11908
11909 # See if we are running on zsh, and set the options which allow our
11910 # commands through without removal of \ escapes INIT.
11911 if test -n "\${ZSH_VERSION+set}" ; then
11912 setopt NO_GLOB_SUBST
11913 fi
11914
11915
11916 PACKAGE='$PACKAGE'
11917 VERSION='$VERSION'
11918 TIMESTAMP='$TIMESTAMP'
11919 RM='$RM'
11920 ofile='$ofile'
11921
11922
11923
11924 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11925 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
11926 # from automake.
11927 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11928 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11929 LINGUAS="${LINGUAS-%UNSET%}"
11930
11931
11932 _ACEOF
11933
11934
11935
11936 cat >>$CONFIG_STATUS <<\_ACEOF
11937 for ac_config_target in $ac_config_targets
11938 do
11939 case "$ac_config_target" in
11940 # Handling of arguments.
11941 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11942 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11943 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11944 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11945 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11946 "gconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
11947 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11948 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11949 { (exit 1); exit 1; }; };;
11950 esac
11951 done
11952
11953 # If the user did not use the arguments to specify the items to instantiate,
11954 # then the envvar interface is used. Set only those that are not.
11955 # We use the long form for the default assignment because of an extremely
11956 # bizarre bug on SunOS 4.1.3.
11957 if $ac_need_defaults; then
11958 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11959 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11960 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11961 fi
11962
11963 # Have a temporary directory for convenience. Make it in the build tree
11964 # simply because there is no reason to put it here, and in addition,
11965 # creating and moving files from /tmp can sometimes cause problems.
11966 # Create a temporary directory, and hook for its removal unless debugging.
11967 $debug ||
11968 {
11969 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11970 trap '{ (exit 1); exit 1; }' 1 2 13 15
11971 }
11972
11973 # Create a (secure) tmp directory for tmp files.
11974
11975 {
11976 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11977 test -n "$tmp" && test -d "$tmp"
11978 } ||
11979 {
11980 tmp=./confstat$$-$RANDOM
11981 (umask 077 && mkdir $tmp)
11982 } ||
11983 {
11984 echo "$me: cannot create a temporary directory in ." >&2
11985 { (exit 1); exit 1; }
11986 }
11987
11988 _ACEOF
11989
11990 cat >>$CONFIG_STATUS <<_ACEOF
11991
11992 #
11993 # CONFIG_FILES section.
11994 #
11995
11996 # No need to generate the scripts if there are no CONFIG_FILES.
11997 # This happens for instance when ./config.status config.h
11998 if test -n "\$CONFIG_FILES"; then
11999 # Protect against being on the right side of a sed subst in config.status.
12000 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12001 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12002 s,@SHELL@,$SHELL,;t t
12003 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12004 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12005 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12006 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12007 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12008 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12009 s,@exec_prefix@,$exec_prefix,;t t
12010 s,@prefix@,$prefix,;t t
12011 s,@program_transform_name@,$program_transform_name,;t t
12012 s,@bindir@,$bindir,;t t
12013 s,@sbindir@,$sbindir,;t t
12014 s,@libexecdir@,$libexecdir,;t t
12015 s,@datadir@,$datadir,;t t
12016 s,@sysconfdir@,$sysconfdir,;t t
12017 s,@sharedstatedir@,$sharedstatedir,;t t
12018 s,@localstatedir@,$localstatedir,;t t
12019 s,@libdir@,$libdir,;t t
12020 s,@includedir@,$includedir,;t t
12021 s,@oldincludedir@,$oldincludedir,;t t
12022 s,@infodir@,$infodir,;t t
12023 s,@mandir@,$mandir,;t t
12024 s,@build_alias@,$build_alias,;t t
12025 s,@host_alias@,$host_alias,;t t
12026 s,@target_alias@,$target_alias,;t t
12027 s,@DEFS@,$DEFS,;t t
12028 s,@ECHO_C@,$ECHO_C,;t t
12029 s,@ECHO_N@,$ECHO_N,;t t
12030 s,@ECHO_T@,$ECHO_T,;t t
12031 s,@LIBS@,$LIBS,;t t
12032 s,@build@,$build,;t t
12033 s,@build_cpu@,$build_cpu,;t t
12034 s,@build_vendor@,$build_vendor,;t t
12035 s,@build_os@,$build_os,;t t
12036 s,@host@,$host,;t t
12037 s,@host_cpu@,$host_cpu,;t t
12038 s,@host_vendor@,$host_vendor,;t t
12039 s,@host_os@,$host_os,;t t
12040 s,@target@,$target,;t t
12041 s,@target_cpu@,$target_cpu,;t t
12042 s,@target_vendor@,$target_vendor,;t t
12043 s,@target_os@,$target_os,;t t
12044 s,@CC@,$CC,;t t
12045 s,@CFLAGS@,$CFLAGS,;t t
12046 s,@LDFLAGS@,$LDFLAGS,;t t
12047 s,@CPPFLAGS@,$CPPFLAGS,;t t
12048 s,@ac_ct_CC@,$ac_ct_CC,;t t
12049 s,@EXEEXT@,$EXEEXT,;t t
12050 s,@OBJEXT@,$OBJEXT,;t t
12051 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12052 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12053 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12054 s,@CYGPATH_W@,$CYGPATH_W,;t t
12055 s,@PACKAGE@,$PACKAGE,;t t
12056 s,@VERSION@,$VERSION,;t t
12057 s,@ACLOCAL@,$ACLOCAL,;t t
12058 s,@AUTOCONF@,$AUTOCONF,;t t
12059 s,@AUTOMAKE@,$AUTOMAKE,;t t
12060 s,@AUTOHEADER@,$AUTOHEADER,;t t
12061 s,@MAKEINFO@,$MAKEINFO,;t t
12062 s,@install_sh@,$install_sh,;t t
12063 s,@STRIP@,$STRIP,;t t
12064 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12065 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12066 s,@mkdir_p@,$mkdir_p,;t t
12067 s,@AWK@,$AWK,;t t
12068 s,@SET_MAKE@,$SET_MAKE,;t t
12069 s,@am__leading_dot@,$am__leading_dot,;t t
12070 s,@AMTAR@,$AMTAR,;t t
12071 s,@am__tar@,$am__tar,;t t
12072 s,@am__untar@,$am__untar,;t t
12073 s,@DEPDIR@,$DEPDIR,;t t
12074 s,@am__include@,$am__include,;t t
12075 s,@am__quote@,$am__quote,;t t
12076 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12077 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12078 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12079 s,@CCDEPMODE@,$CCDEPMODE,;t t
12080 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12081 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12082 s,@LIBTOOL@,$LIBTOOL,;t t
12083 s,@SED@,$SED,;t t
12084 s,@EGREP@,$EGREP,;t t
12085 s,@FGREP@,$FGREP,;t t
12086 s,@GREP@,$GREP,;t t
12087 s,@LD@,$LD,;t t
12088 s,@DUMPBIN@,$DUMPBIN,;t t
12089 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12090 s,@NM@,$NM,;t t
12091 s,@LN_S@,$LN_S,;t t
12092 s,@AR@,$AR,;t t
12093 s,@ac_ct_AR@,$ac_ct_AR,;t t
12094 s,@RANLIB@,$RANLIB,;t t
12095 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12096 s,@lt_ECHO@,$lt_ECHO,;t t
12097 s,@CPP@,$CPP,;t t
12098 s,@USE_NLS@,$USE_NLS,;t t
12099 s,@LIBINTL@,$LIBINTL,;t t
12100 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12101 s,@INCINTL@,$INCINTL,;t t
12102 s,@XGETTEXT@,$XGETTEXT,;t t
12103 s,@GMSGFMT@,$GMSGFMT,;t t
12104 s,@POSUB@,$POSUB,;t t
12105 s,@CATALOGS@,$CATALOGS,;t t
12106 s,@DATADIRNAME@,$DATADIRNAME,;t t
12107 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12108 s,@GENCAT@,$GENCAT,;t t
12109 s,@CATOBJEXT@,$CATOBJEXT,;t t
12110 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12111 s,@MSGFMT@,$MSGFMT,;t t
12112 s,@MSGMERGE@,$MSGMERGE,;t t
12113 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12114 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12115 s,@MAINT@,$MAINT,;t t
12116 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
12117 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
12118 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
12119 s,@NO_WERROR@,$NO_WERROR,;t t
12120 s,@datarootdir@,$datarootdir,;t t
12121 s,@docdir@,$docdir,;t t
12122 s,@htmldir@,$htmldir,;t t
12123 s,@LIBOBJS@,$LIBOBJS,;t t
12124 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12125 CEOF
12126
12127 _ACEOF
12128
12129 cat >>$CONFIG_STATUS <<\_ACEOF
12130 # Split the substitutions into bite-sized pieces for seds with
12131 # small command number limits, like on Digital OSF/1 and HP-UX.
12132 ac_max_sed_lines=48
12133 ac_sed_frag=1 # Number of current file.
12134 ac_beg=1 # First line for current file.
12135 ac_end=$ac_max_sed_lines # Line after last line for current file.
12136 ac_more_lines=:
12137 ac_sed_cmds=
12138 while $ac_more_lines; do
12139 if test $ac_beg -gt 1; then
12140 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12141 else
12142 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12143 fi
12144 if test ! -s $tmp/subs.frag; then
12145 ac_more_lines=false
12146 else
12147 # The purpose of the label and of the branching condition is to
12148 # speed up the sed processing (if there are no `@' at all, there
12149 # is no need to browse any of the substitutions).
12150 # These are the two extra sed commands mentioned above.
12151 (echo ':t
12152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12153 if test -z "$ac_sed_cmds"; then
12154 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12155 else
12156 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12157 fi
12158 ac_sed_frag=`expr $ac_sed_frag + 1`
12159 ac_beg=$ac_end
12160 ac_end=`expr $ac_end + $ac_max_sed_lines`
12161 fi
12162 done
12163 if test -z "$ac_sed_cmds"; then
12164 ac_sed_cmds=cat
12165 fi
12166 fi # test -n "$CONFIG_FILES"
12167
12168 _ACEOF
12169 cat >>$CONFIG_STATUS <<\_ACEOF
12170 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12171 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12172 case $ac_file in
12173 - | *:- | *:-:* ) # input from stdin
12174 cat >$tmp/stdin
12175 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12176 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12177 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12178 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12179 * ) ac_file_in=$ac_file.in ;;
12180 esac
12181
12182 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12183 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12184 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12185 X"$ac_file" : 'X\(//\)[^/]' \| \
12186 X"$ac_file" : 'X\(//\)$' \| \
12187 X"$ac_file" : 'X\(/\)' \| \
12188 . : '\(.\)' 2>/dev/null ||
12189 echo X"$ac_file" |
12190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12192 /^X\(\/\/\)$/{ s//\1/; q; }
12193 /^X\(\/\).*/{ s//\1/; q; }
12194 s/.*/./; q'`
12195 { if $as_mkdir_p; then
12196 mkdir -p "$ac_dir"
12197 else
12198 as_dir="$ac_dir"
12199 as_dirs=
12200 while test ! -d "$as_dir"; do
12201 as_dirs="$as_dir $as_dirs"
12202 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12204 X"$as_dir" : 'X\(//\)[^/]' \| \
12205 X"$as_dir" : 'X\(//\)$' \| \
12206 X"$as_dir" : 'X\(/\)' \| \
12207 . : '\(.\)' 2>/dev/null ||
12208 echo X"$as_dir" |
12209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12210 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12211 /^X\(\/\/\)$/{ s//\1/; q; }
12212 /^X\(\/\).*/{ s//\1/; q; }
12213 s/.*/./; q'`
12214 done
12215 test ! -n "$as_dirs" || mkdir $as_dirs
12216 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12217 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12218 { (exit 1); exit 1; }; }; }
12219
12220 ac_builddir=.
12221
12222 if test "$ac_dir" != .; then
12223 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12224 # A "../" for each directory in $ac_dir_suffix.
12225 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12226 else
12227 ac_dir_suffix= ac_top_builddir=
12228 fi
12229
12230 case $srcdir in
12231 .) # No --srcdir option. We are building in place.
12232 ac_srcdir=.
12233 if test -z "$ac_top_builddir"; then
12234 ac_top_srcdir=.
12235 else
12236 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12237 fi ;;
12238 [\\/]* | ?:[\\/]* ) # Absolute path.
12239 ac_srcdir=$srcdir$ac_dir_suffix;
12240 ac_top_srcdir=$srcdir ;;
12241 *) # Relative path.
12242 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12243 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12244 esac
12245
12246 # Do not use `cd foo && pwd` to compute absolute paths, because
12247 # the directories may not exist.
12248 case `pwd` in
12249 .) ac_abs_builddir="$ac_dir";;
12250 *)
12251 case "$ac_dir" in
12252 .) ac_abs_builddir=`pwd`;;
12253 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12254 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12255 esac;;
12256 esac
12257 case $ac_abs_builddir in
12258 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12259 *)
12260 case ${ac_top_builddir}. in
12261 .) ac_abs_top_builddir=$ac_abs_builddir;;
12262 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12263 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12264 esac;;
12265 esac
12266 case $ac_abs_builddir in
12267 .) ac_abs_srcdir=$ac_srcdir;;
12268 *)
12269 case $ac_srcdir in
12270 .) ac_abs_srcdir=$ac_abs_builddir;;
12271 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12272 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12273 esac;;
12274 esac
12275 case $ac_abs_builddir in
12276 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12277 *)
12278 case $ac_top_srcdir in
12279 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12280 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12281 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12282 esac;;
12283 esac
12284
12285
12286 case $INSTALL in
12287 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12288 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12289 esac
12290
12291 if test x"$ac_file" != x-; then
12292 { echo "$as_me:$LINENO: creating $ac_file" >&5
12293 echo "$as_me: creating $ac_file" >&6;}
12294 rm -f "$ac_file"
12295 fi
12296 # Let's still pretend it is `configure' which instantiates (i.e., don't
12297 # use $as_me), people would be surprised to read:
12298 # /* config.h. Generated by config.status. */
12299 if test x"$ac_file" = x-; then
12300 configure_input=
12301 else
12302 configure_input="$ac_file. "
12303 fi
12304 configure_input=$configure_input"Generated from `echo $ac_file_in |
12305 sed 's,.*/,,'` by configure."
12306
12307 # First look for the input files in the build tree, otherwise in the
12308 # src tree.
12309 ac_file_inputs=`IFS=:
12310 for f in $ac_file_in; do
12311 case $f in
12312 -) echo $tmp/stdin ;;
12313 [\\/$]*)
12314 # Absolute (can't be DOS-style, as IFS=:)
12315 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12316 echo "$as_me: error: cannot find input file: $f" >&2;}
12317 { (exit 1); exit 1; }; }
12318 echo "$f";;
12319 *) # Relative
12320 if test -f "$f"; then
12321 # Build tree
12322 echo "$f"
12323 elif test -f "$srcdir/$f"; then
12324 # Source tree
12325 echo "$srcdir/$f"
12326 else
12327 # /dev/null tree
12328 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12329 echo "$as_me: error: cannot find input file: $f" >&2;}
12330 { (exit 1); exit 1; }; }
12331 fi;;
12332 esac
12333 done` || { (exit 1); exit 1; }
12334 _ACEOF
12335 cat >>$CONFIG_STATUS <<_ACEOF
12336 sed "$ac_vpsub
12337 $extrasub
12338 _ACEOF
12339 cat >>$CONFIG_STATUS <<\_ACEOF
12340 :t
12341 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12342 s,@configure_input@,$configure_input,;t t
12343 s,@srcdir@,$ac_srcdir,;t t
12344 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12345 s,@top_srcdir@,$ac_top_srcdir,;t t
12346 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12347 s,@builddir@,$ac_builddir,;t t
12348 s,@abs_builddir@,$ac_abs_builddir,;t t
12349 s,@top_builddir@,$ac_top_builddir,;t t
12350 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12351 s,@INSTALL@,$ac_INSTALL,;t t
12352 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12353 rm -f $tmp/stdin
12354 if test x"$ac_file" != x-; then
12355 mv $tmp/out $ac_file
12356 else
12357 cat $tmp/out
12358 rm -f $tmp/out
12359 fi
12360
12361 done
12362 _ACEOF
12363 cat >>$CONFIG_STATUS <<\_ACEOF
12364
12365 #
12366 # CONFIG_HEADER section.
12367 #
12368
12369 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12370 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12371 #
12372 # ac_d sets the value in "#define NAME VALUE" lines.
12373 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12374 ac_dB='[ ].*$,\1#\2'
12375 ac_dC=' '
12376 ac_dD=',;t'
12377 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12378 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12379 ac_uB='$,\1#\2define\3'
12380 ac_uC=' '
12381 ac_uD=',;t'
12382
12383 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12384 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12385 case $ac_file in
12386 - | *:- | *:-:* ) # input from stdin
12387 cat >$tmp/stdin
12388 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12389 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12390 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12391 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12392 * ) ac_file_in=$ac_file.in ;;
12393 esac
12394
12395 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12396 echo "$as_me: creating $ac_file" >&6;}
12397
12398 # First look for the input files in the build tree, otherwise in the
12399 # src tree.
12400 ac_file_inputs=`IFS=:
12401 for f in $ac_file_in; do
12402 case $f in
12403 -) echo $tmp/stdin ;;
12404 [\\/$]*)
12405 # Absolute (can't be DOS-style, as IFS=:)
12406 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12407 echo "$as_me: error: cannot find input file: $f" >&2;}
12408 { (exit 1); exit 1; }; }
12409 # Do quote $f, to prevent DOS paths from being IFS'd.
12410 echo "$f";;
12411 *) # Relative
12412 if test -f "$f"; then
12413 # Build tree
12414 echo "$f"
12415 elif test -f "$srcdir/$f"; then
12416 # Source tree
12417 echo "$srcdir/$f"
12418 else
12419 # /dev/null tree
12420 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12421 echo "$as_me: error: cannot find input file: $f" >&2;}
12422 { (exit 1); exit 1; }; }
12423 fi;;
12424 esac
12425 done` || { (exit 1); exit 1; }
12426 # Remove the trailing spaces.
12427 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12428
12429 _ACEOF
12430
12431 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12432 # `conftest.undefs', that substitutes the proper values into
12433 # config.h.in to produce config.h. The first handles `#define'
12434 # templates, and the second `#undef' templates.
12435 # And first: Protect against being on the right side of a sed subst in
12436 # config.status. Protect against being in an unquoted here document
12437 # in config.status.
12438 rm -f conftest.defines conftest.undefs
12439 # Using a here document instead of a string reduces the quoting nightmare.
12440 # Putting comments in sed scripts is not portable.
12441 #
12442 # `end' is used to avoid that the second main sed command (meant for
12443 # 0-ary CPP macros) applies to n-ary macro definitions.
12444 # See the Autoconf documentation for `clear'.
12445 cat >confdef2sed.sed <<\_ACEOF
12446 s/[\\&,]/\\&/g
12447 s,[\\$`],\\&,g
12448 t clear
12449 : clear
12450 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12451 t end
12452 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12453 : end
12454 _ACEOF
12455 # If some macros were called several times there might be several times
12456 # the same #defines, which is useless. Nevertheless, we may not want to
12457 # sort them, since we want the *last* AC-DEFINE to be honored.
12458 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12459 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12460 rm -f confdef2sed.sed
12461
12462 # This sed command replaces #undef with comments. This is necessary, for
12463 # example, in the case of _POSIX_SOURCE, which is predefined and required
12464 # on some systems where configure will not decide to define it.
12465 cat >>conftest.undefs <<\_ACEOF
12466 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12467 _ACEOF
12468
12469 # Break up conftest.defines because some shells have a limit on the size
12470 # of here documents, and old seds have small limits too (100 cmds).
12471 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12472 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12473 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12474 echo ' :' >>$CONFIG_STATUS
12475 rm -f conftest.tail
12476 while grep . conftest.defines >/dev/null
12477 do
12478 # Write a limited-size here document to $tmp/defines.sed.
12479 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12480 # Speed up: don't consider the non `#define' lines.
12481 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12482 # Work around the forget-to-reset-the-flag bug.
12483 echo 't clr' >>$CONFIG_STATUS
12484 echo ': clr' >>$CONFIG_STATUS
12485 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12486 echo 'CEOF
12487 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12488 rm -f $tmp/in
12489 mv $tmp/out $tmp/in
12490 ' >>$CONFIG_STATUS
12491 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12492 rm -f conftest.defines
12493 mv conftest.tail conftest.defines
12494 done
12495 rm -f conftest.defines
12496 echo ' fi # grep' >>$CONFIG_STATUS
12497 echo >>$CONFIG_STATUS
12498
12499 # Break up conftest.undefs because some shells have a limit on the size
12500 # of here documents, and old seds have small limits too (100 cmds).
12501 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12502 rm -f conftest.tail
12503 while grep . conftest.undefs >/dev/null
12504 do
12505 # Write a limited-size here document to $tmp/undefs.sed.
12506 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12507 # Speed up: don't consider the non `#undef'
12508 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12509 # Work around the forget-to-reset-the-flag bug.
12510 echo 't clr' >>$CONFIG_STATUS
12511 echo ': clr' >>$CONFIG_STATUS
12512 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12513 echo 'CEOF
12514 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12515 rm -f $tmp/in
12516 mv $tmp/out $tmp/in
12517 ' >>$CONFIG_STATUS
12518 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12519 rm -f conftest.undefs
12520 mv conftest.tail conftest.undefs
12521 done
12522 rm -f conftest.undefs
12523
12524 cat >>$CONFIG_STATUS <<\_ACEOF
12525 # Let's still pretend it is `configure' which instantiates (i.e., don't
12526 # use $as_me), people would be surprised to read:
12527 # /* config.h. Generated by config.status. */
12528 if test x"$ac_file" = x-; then
12529 echo "/* Generated by configure. */" >$tmp/config.h
12530 else
12531 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12532 fi
12533 cat $tmp/in >>$tmp/config.h
12534 rm -f $tmp/in
12535 if test x"$ac_file" != x-; then
12536 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12537 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12538 echo "$as_me: $ac_file is unchanged" >&6;}
12539 else
12540 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12541 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12542 X"$ac_file" : 'X\(//\)[^/]' \| \
12543 X"$ac_file" : 'X\(//\)$' \| \
12544 X"$ac_file" : 'X\(/\)' \| \
12545 . : '\(.\)' 2>/dev/null ||
12546 echo X"$ac_file" |
12547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12548 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12549 /^X\(\/\/\)$/{ s//\1/; q; }
12550 /^X\(\/\).*/{ s//\1/; q; }
12551 s/.*/./; q'`
12552 { if $as_mkdir_p; then
12553 mkdir -p "$ac_dir"
12554 else
12555 as_dir="$ac_dir"
12556 as_dirs=
12557 while test ! -d "$as_dir"; do
12558 as_dirs="$as_dir $as_dirs"
12559 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12560 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12561 X"$as_dir" : 'X\(//\)[^/]' \| \
12562 X"$as_dir" : 'X\(//\)$' \| \
12563 X"$as_dir" : 'X\(/\)' \| \
12564 . : '\(.\)' 2>/dev/null ||
12565 echo X"$as_dir" |
12566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12567 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12568 /^X\(\/\/\)$/{ s//\1/; q; }
12569 /^X\(\/\).*/{ s//\1/; q; }
12570 s/.*/./; q'`
12571 done
12572 test ! -n "$as_dirs" || mkdir $as_dirs
12573 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12574 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12575 { (exit 1); exit 1; }; }; }
12576
12577 rm -f $ac_file
12578 mv $tmp/config.h $ac_file
12579 fi
12580 else
12581 cat $tmp/config.h
12582 rm -f $tmp/config.h
12583 fi
12584 # Compute $ac_file's index in $config_headers.
12585 _am_stamp_count=1
12586 for _am_header in $config_headers :; do
12587 case $_am_header in
12588 $ac_file | $ac_file:* )
12589 break ;;
12590 * )
12591 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12592 esac
12593 done
12594 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12595 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12596 X$ac_file : 'X\(//\)[^/]' \| \
12597 X$ac_file : 'X\(//\)$' \| \
12598 X$ac_file : 'X\(/\)' \| \
12599 . : '\(.\)' 2>/dev/null ||
12600 echo X$ac_file |
12601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12603 /^X\(\/\/\)$/{ s//\1/; q; }
12604 /^X\(\/\).*/{ s//\1/; q; }
12605 s/.*/./; q'`/stamp-h$_am_stamp_count
12606 done
12607 _ACEOF
12608 cat >>$CONFIG_STATUS <<\_ACEOF
12609
12610 #
12611 # CONFIG_COMMANDS section.
12612 #
12613 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12614 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12615 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12616 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12617 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12618 X"$ac_dest" : 'X\(//\)[^/]' \| \
12619 X"$ac_dest" : 'X\(//\)$' \| \
12620 X"$ac_dest" : 'X\(/\)' \| \
12621 . : '\(.\)' 2>/dev/null ||
12622 echo X"$ac_dest" |
12623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12624 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12625 /^X\(\/\/\)$/{ s//\1/; q; }
12626 /^X\(\/\).*/{ s//\1/; q; }
12627 s/.*/./; q'`
12628 { if $as_mkdir_p; then
12629 mkdir -p "$ac_dir"
12630 else
12631 as_dir="$ac_dir"
12632 as_dirs=
12633 while test ! -d "$as_dir"; do
12634 as_dirs="$as_dir $as_dirs"
12635 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12636 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12637 X"$as_dir" : 'X\(//\)[^/]' \| \
12638 X"$as_dir" : 'X\(//\)$' \| \
12639 X"$as_dir" : 'X\(/\)' \| \
12640 . : '\(.\)' 2>/dev/null ||
12641 echo X"$as_dir" |
12642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12644 /^X\(\/\/\)$/{ s//\1/; q; }
12645 /^X\(\/\).*/{ s//\1/; q; }
12646 s/.*/./; q'`
12647 done
12648 test ! -n "$as_dirs" || mkdir $as_dirs
12649 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12650 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12651 { (exit 1); exit 1; }; }; }
12652
12653 ac_builddir=.
12654
12655 if test "$ac_dir" != .; then
12656 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12657 # A "../" for each directory in $ac_dir_suffix.
12658 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12659 else
12660 ac_dir_suffix= ac_top_builddir=
12661 fi
12662
12663 case $srcdir in
12664 .) # No --srcdir option. We are building in place.
12665 ac_srcdir=.
12666 if test -z "$ac_top_builddir"; then
12667 ac_top_srcdir=.
12668 else
12669 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12670 fi ;;
12671 [\\/]* | ?:[\\/]* ) # Absolute path.
12672 ac_srcdir=$srcdir$ac_dir_suffix;
12673 ac_top_srcdir=$srcdir ;;
12674 *) # Relative path.
12675 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12676 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12677 esac
12678
12679 # Do not use `cd foo && pwd` to compute absolute paths, because
12680 # the directories may not exist.
12681 case `pwd` in
12682 .) ac_abs_builddir="$ac_dir";;
12683 *)
12684 case "$ac_dir" in
12685 .) ac_abs_builddir=`pwd`;;
12686 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12687 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12688 esac;;
12689 esac
12690 case $ac_abs_builddir in
12691 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12692 *)
12693 case ${ac_top_builddir}. in
12694 .) ac_abs_top_builddir=$ac_abs_builddir;;
12695 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12696 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12697 esac;;
12698 esac
12699 case $ac_abs_builddir in
12700 .) ac_abs_srcdir=$ac_srcdir;;
12701 *)
12702 case $ac_srcdir in
12703 .) ac_abs_srcdir=$ac_abs_builddir;;
12704 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12705 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12706 esac;;
12707 esac
12708 case $ac_abs_builddir in
12709 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12710 *)
12711 case $ac_top_srcdir in
12712 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12713 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12714 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12715 esac;;
12716 esac
12717
12718
12719 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12720 echo "$as_me: executing $ac_dest commands" >&6;}
12721 case $ac_dest in
12722 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12723 # Strip MF so we end up with the name of the file.
12724 mf=`echo "$mf" | sed -e 's/:.*$//'`
12725 # Check whether this is an Automake generated Makefile or not.
12726 # We used to match only the files named `Makefile.in', but
12727 # some people rename them; so instead we look at the file content.
12728 # Grep'ing the first line is not enough: some people post-process
12729 # each Makefile.in and add a new line on top of each file to say so.
12730 # So let's grep whole file.
12731 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12732 dirpart=`(dirname "$mf") 2>/dev/null ||
12733 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12734 X"$mf" : 'X\(//\)[^/]' \| \
12735 X"$mf" : 'X\(//\)$' \| \
12736 X"$mf" : 'X\(/\)' \| \
12737 . : '\(.\)' 2>/dev/null ||
12738 echo X"$mf" |
12739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12740 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12741 /^X\(\/\/\)$/{ s//\1/; q; }
12742 /^X\(\/\).*/{ s//\1/; q; }
12743 s/.*/./; q'`
12744 else
12745 continue
12746 fi
12747 # Extract the definition of DEPDIR, am__include, and am__quote
12748 # from the Makefile without running `make'.
12749 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12750 test -z "$DEPDIR" && continue
12751 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12752 test -z "am__include" && continue
12753 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12754 # When using ansi2knr, U may be empty or an underscore; expand it
12755 U=`sed -n 's/^U = //p' < "$mf"`
12756 # Find all dependency output files, they are included files with
12757 # $(DEPDIR) in their names. We invoke sed twice because it is the
12758 # simplest approach to changing $(DEPDIR) to its actual value in the
12759 # expansion.
12760 for file in `sed -n "
12761 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12762 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12763 # Make sure the directory exists.
12764 test -f "$dirpart/$file" && continue
12765 fdir=`(dirname "$file") 2>/dev/null ||
12766 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12767 X"$file" : 'X\(//\)[^/]' \| \
12768 X"$file" : 'X\(//\)$' \| \
12769 X"$file" : 'X\(/\)' \| \
12770 . : '\(.\)' 2>/dev/null ||
12771 echo X"$file" |
12772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12773 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12774 /^X\(\/\/\)$/{ s//\1/; q; }
12775 /^X\(\/\).*/{ s//\1/; q; }
12776 s/.*/./; q'`
12777 { if $as_mkdir_p; then
12778 mkdir -p $dirpart/$fdir
12779 else
12780 as_dir=$dirpart/$fdir
12781 as_dirs=
12782 while test ! -d "$as_dir"; do
12783 as_dirs="$as_dir $as_dirs"
12784 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12785 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12786 X"$as_dir" : 'X\(//\)[^/]' \| \
12787 X"$as_dir" : 'X\(//\)$' \| \
12788 X"$as_dir" : 'X\(/\)' \| \
12789 . : '\(.\)' 2>/dev/null ||
12790 echo X"$as_dir" |
12791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12792 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12793 /^X\(\/\/\)$/{ s//\1/; q; }
12794 /^X\(\/\).*/{ s//\1/; q; }
12795 s/.*/./; q'`
12796 done
12797 test ! -n "$as_dirs" || mkdir $as_dirs
12798 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12799 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12800 { (exit 1); exit 1; }; }; }
12801
12802 # echo "creating $dirpart/$file"
12803 echo '# dummy' > "$dirpart/$file"
12804 done
12805 done
12806 ;;
12807 libtool )
12808
12809 # See if we are running on zsh, and set the options which allow our
12810 # commands through without removal of \ escapes.
12811 if test -n "${ZSH_VERSION+set}" ; then
12812 setopt NO_GLOB_SUBST
12813 fi
12814
12815 cfgfile="${ofile}T"
12816 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12817 $RM "$cfgfile"
12818
12819 cat <<_LT_EOF >> "$cfgfile"
12820 #! $SHELL
12821
12822 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12823 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
12824 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12825 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12826 #
12827 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12828 # 2006, 2007 Free Software Foundation, Inc.
12829 #
12830 # This file is part of GNU Libtool:
12831 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12832 #
12833 # This program is free software; you can redistribute it and/or modify
12834 # it under the terms of the GNU General Public License as published by
12835 # the Free Software Foundation; either version 2 of the License, or
12836 # (at your option) any later version.
12837 #
12838 # This program is distributed in the hope that it will be useful, but
12839 # WITHOUT ANY WARRANTY; without even the implied warranty of
12840 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12841 # General Public License for more details.
12842 #
12843 # You should have received a copy of the GNU General Public License
12844 # along with this program; if not, a copy can be downloaded from
12845 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
12846 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
12847 # MA 02110-1301, USA.
12848 #
12849 # As a special exception to the GNU General Public License, if you
12850 # distribute this file as part of a program that contains a
12851 # configuration script generated by Autoconf, you may include it under
12852 # the same distribution terms that you use for the rest of that program.
12853
12854
12855 # The names of the tagged configurations supported by this script.
12856 available_tags=""
12857
12858 # ### BEGIN LIBTOOL CONFIG
12859
12860 # Which release of libtool.m4 was used?
12861 macro_version=$macro_version
12862 macro_revision=$macro_revision
12863
12864 # Whether or not to build shared libraries.
12865 build_libtool_libs=$enable_shared
12866
12867 # Whether or not to build static libraries.
12868 build_old_libs=$enable_static
12869
12870 # What type of objects to build.
12871 pic_mode=$pic_mode
12872
12873 # Whether or not to optimize for fast installation.
12874 fast_install=$enable_fast_install
12875
12876 # The host system.
12877 host_alias=$host_alias
12878 host=$host
12879 host_os=$host_os
12880
12881 # The build system.
12882 build_alias=$build_alias
12883 build=$build
12884 build_os=$build_os
12885
12886 # A sed program that does not truncate output.
12887 SED=$lt_SED
12888
12889 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12890 Xsed="\$SED -e 1s/^X//"
12891
12892 # A grep program that handles long lines.
12893 GREP=$lt_GREP
12894
12895 # An ERE matcher.
12896 EGREP=$lt_EGREP
12897
12898 # A literal string matcher.
12899 FGREP=$lt_FGREP
12900
12901 # A BSD- or MS-compatible name lister.
12902 NM=$lt_NM
12903
12904 # Whether we need soft or hard links.
12905 LN_S=$lt_LN_S
12906
12907 # What is the maximum length of a command?
12908 max_cmd_len=$max_cmd_len
12909
12910 # Object file suffix (normally "o").
12911 objext=$ac_objext
12912
12913 # Executable file suffix (normally "").
12914 exeext=$exeext
12915
12916 # whether the shell understands "unset".
12917 lt_unset=$lt_unset
12918
12919 # turn spaces into newlines.
12920 SP2NL=$lt_lt_SP2NL
12921
12922 # turn newlines into spaces.
12923 NL2SP=$lt_lt_NL2SP
12924
12925 # How to create reloadable object files.
12926 reload_flag=$lt_reload_flag
12927 reload_cmds=$lt_reload_cmds
12928
12929 # Method to check whether dependent libraries are shared objects.
12930 deplibs_check_method=$lt_deplibs_check_method
12931
12932 # Command to use when deplibs_check_method == "file_magic".
12933 file_magic_cmd=$lt_file_magic_cmd
12934
12935 # The archiver.
12936 AR=$lt_AR
12937 AR_FLAGS=$lt_AR_FLAGS
12938
12939 # A symbol stripping program.
12940 STRIP=$lt_STRIP
12941
12942 # Commands used to install an old-style archive.
12943 RANLIB=$lt_RANLIB
12944 old_postinstall_cmds=$lt_old_postinstall_cmds
12945 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12946
12947 # A C compiler.
12948 LTCC=$lt_CC
12949
12950 # LTCC compiler flags.
12951 LTCFLAGS=$lt_CFLAGS
12952
12953 # Take the output of nm and produce a listing of raw symbols and C names.
12954 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12955
12956 # Transform the output of nm in a proper C declaration.
12957 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12958
12959 # Transform the output of nm in a C name address pair.
12960 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12961
12962 # The name of the directory that contains temporary libtool files.
12963 objdir=$objdir
12964
12965 # Shell to use when invoking shell scripts.
12966 SHELL=$lt_SHELL
12967
12968 # An echo program that does not interpret backslashes.
12969 ECHO=$lt_ECHO
12970
12971 # Used to examine libraries when file_magic_cmd begins with "file".
12972 MAGIC_CMD=$MAGIC_CMD
12973
12974 # Must we lock files when doing compilation?
12975 need_locks=$lt_need_locks
12976
12977 # Old archive suffix (normally "a").
12978 libext=$libext
12979
12980 # Shared library suffix (normally ".so").
12981 shrext_cmds=$lt_shrext_cmds
12982
12983 # The commands to extract the exported symbol list from a shared archive.
12984 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12985
12986 # Variables whose values should be saved in libtool wrapper scripts and
12987 # restored at link time.
12988 variables_saved_for_relink=$lt_variables_saved_for_relink
12989
12990 # Do we need the "lib" prefix for modules?
12991 need_lib_prefix=$need_lib_prefix
12992
12993 # Do we need a version for libraries?
12994 need_version=$need_version
12995
12996 # Library versioning type.
12997 version_type=$version_type
12998
12999 # Shared library runtime path variable.
13000 runpath_var=$runpath_var
13001
13002 # Shared library path variable.
13003 shlibpath_var=$shlibpath_var
13004
13005 # Is shlibpath searched before the hard-coded library search path?
13006 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13007
13008 # Format of library name prefix.
13009 libname_spec=$lt_libname_spec
13010
13011 # List of archive names. First name is the real one, the rest are links.
13012 # The last name is the one that the linker finds with -lNAME
13013 library_names_spec=$lt_library_names_spec
13014
13015 # The coded name of the library, if different from the real name.
13016 soname_spec=$lt_soname_spec
13017
13018 # Command to use after installation of a shared archive.
13019 postinstall_cmds=$lt_postinstall_cmds
13020
13021 # Command to use after uninstallation of a shared archive.
13022 postuninstall_cmds=$lt_postuninstall_cmds
13023
13024 # Commands used to finish a libtool library installation in a directory.
13025 finish_cmds=$lt_finish_cmds
13026
13027 # As "finish_cmds", except a single script fragment to be evaled but
13028 # not shown.
13029 finish_eval=$lt_finish_eval
13030
13031 # Whether we should hardcode library paths into libraries.
13032 hardcode_into_libs=$hardcode_into_libs
13033
13034 # Compile-time system search path for libraries.
13035 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13036
13037 # Run-time system search path for libraries.
13038 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13039
13040 # Whether dlopen is supported.
13041 dlopen_support=$enable_dlopen
13042
13043 # Whether dlopen of programs is supported.
13044 dlopen_self=$enable_dlopen_self
13045
13046 # Whether dlopen of statically linked programs is supported.
13047 dlopen_self_static=$enable_dlopen_self_static
13048
13049 # Commands to strip libraries.
13050 old_striplib=$lt_old_striplib
13051 striplib=$lt_striplib
13052
13053
13054 # The linker used to build libraries.
13055 LD=$lt_LD
13056
13057 # Commands used to build an old-style archive.
13058 old_archive_cmds=$lt_old_archive_cmds
13059
13060 # A language specific compiler.
13061 CC=$lt_compiler
13062
13063 # Is the compiler the GNU compiler?
13064 with_gcc=$GCC
13065
13066 # Compiler flag to turn off builtin functions.
13067 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13068
13069 # How to pass a linker flag through the compiler.
13070 wl=$lt_lt_prog_compiler_wl
13071
13072 # Additional compiler flags for building library objects.
13073 pic_flag=$lt_lt_prog_compiler_pic
13074
13075 # Compiler flag to prevent dynamic linking.
13076 link_static_flag=$lt_lt_prog_compiler_static
13077
13078 # Does compiler simultaneously support -c and -o options?
13079 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13080
13081 # Whether or not to add -lc for building shared libraries.
13082 build_libtool_need_lc=$archive_cmds_need_lc
13083
13084 # Whether or not to disallow shared libs when runtime libs are static.
13085 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13086
13087 # Compiler flag to allow reflexive dlopens.
13088 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13089
13090 # Compiler flag to generate shared objects directly from archives.
13091 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13092
13093 # Whether the compiler copes with passing no objects directly.
13094 compiler_needs_object=$lt_compiler_needs_object
13095
13096 # Create an old-style archive from a shared archive.
13097 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13098
13099 # Create a temporary old-style archive to link instead of a shared archive.
13100 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13101
13102 # Commands used to build a shared archive.
13103 archive_cmds=$lt_archive_cmds
13104 archive_expsym_cmds=$lt_archive_expsym_cmds
13105
13106 # Commands used to build a loadable module if different from building
13107 # a shared archive.
13108 module_cmds=$lt_module_cmds
13109 module_expsym_cmds=$lt_module_expsym_cmds
13110
13111 # Whether we are building with GNU ld or not.
13112 with_gnu_ld=$lt_with_gnu_ld
13113
13114 # Flag that allows shared libraries with undefined symbols to be built.
13115 allow_undefined_flag=$lt_allow_undefined_flag
13116
13117 # Flag that enforces no undefined symbols.
13118 no_undefined_flag=$lt_no_undefined_flag
13119
13120 # Flag to hardcode \$libdir into a binary during linking.
13121 # This must work even if \$libdir does not exist
13122 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13123
13124 # If ld is used when linking, flag to hardcode \$libdir into a binary
13125 # during linking. This must work even if \$libdir does not exist.
13126 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13127
13128 # Whether we need a single "-rpath" flag with a separated argument.
13129 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13130
13131 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13132 # DIR into the resulting binary.
13133 hardcode_direct=$hardcode_direct
13134
13135 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13136 # DIR into the resulting binary and the resulting library dependency is
13137 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13138 # library is relocated.
13139 hardcode_direct_absolute=$hardcode_direct_absolute
13140
13141 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13142 # into the resulting binary.
13143 hardcode_minus_L=$hardcode_minus_L
13144
13145 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13146 # into the resulting binary.
13147 hardcode_shlibpath_var=$hardcode_shlibpath_var
13148
13149 # Set to "yes" if building a shared library automatically hardcodes DIR
13150 # into the library and all subsequent libraries and executables linked
13151 # against it.
13152 hardcode_automatic=$hardcode_automatic
13153
13154 # Set to yes if linker adds runtime paths of dependent libraries
13155 # to runtime path list.
13156 inherit_rpath=$inherit_rpath
13157
13158 # Whether libtool must link a program against all its dependency libraries.
13159 link_all_deplibs=$link_all_deplibs
13160
13161 # Fix the shell variable \$srcfile for the compiler.
13162 fix_srcfile_path=$lt_fix_srcfile_path
13163
13164 # Set to "yes" if exported symbols are required.
13165 always_export_symbols=$always_export_symbols
13166
13167 # The commands to list exported symbols.
13168 export_symbols_cmds=$lt_export_symbols_cmds
13169
13170 # Symbols that should not be listed in the preloaded symbols.
13171 exclude_expsyms=$lt_exclude_expsyms
13172
13173 # Symbols that must always be exported.
13174 include_expsyms=$lt_include_expsyms
13175
13176 # Commands necessary for linking programs (against libraries) with templates.
13177 prelink_cmds=$lt_prelink_cmds
13178
13179 # Specify filename containing input files.
13180 file_list_spec=$lt_file_list_spec
13181
13182 # How to hardcode a shared library path into an executable.
13183 hardcode_action=$hardcode_action
13184
13185 # ### END LIBTOOL CONFIG
13186
13187 _LT_EOF
13188
13189 case $host_os in
13190 aix3*)
13191 cat <<\_LT_EOF >> "$cfgfile"
13192 # AIX sometimes has problems with the GCC collect2 program. For some
13193 # reason, if we set the COLLECT_NAMES environment variable, the problems
13194 # vanish in a puff of smoke.
13195 if test "X${COLLECT_NAMES+set}" != Xset; then
13196 COLLECT_NAMES=
13197 export COLLECT_NAMES
13198 fi
13199 _LT_EOF
13200 ;;
13201 esac
13202
13203
13204 ltmain="$ac_aux_dir/ltmain.sh"
13205
13206
13207 # We use sed instead of cat because bash on DJGPP gets confused if
13208 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13209 # text mode, it properly converts lines to CR/LF. This bash problem
13210 # is reportedly fixed, but why not run on old versions too?
13211 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13212 || (rm -f "$cfgfile"; exit 1)
13213
13214 case $xsi_shell in
13215 yes)
13216 cat << \_LT_EOF >> "$cfgfile"
13217 # func_dirname file append nondir_replacement
13218 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13219 # otherwise set result to NONDIR_REPLACEMENT.
13220 func_dirname ()
13221 {
13222 case ${1} in
13223 */*) func_dirname_result="${1%/*}${2}" ;;
13224 * ) func_dirname_result="${3}" ;;
13225 esac
13226 }
13227
13228 # func_basename file
13229 func_basename ()
13230 {
13231 func_basename_result="${1##*/}"
13232 }
13233
13234 # func_stripname prefix suffix name
13235 # strip PREFIX and SUFFIX off of NAME.
13236 # PREFIX and SUFFIX must not contain globbing or regex special
13237 # characters, hashes, percent signs, but SUFFIX may contain a leading
13238 # dot (in which case that matches only a dot).
13239 func_stripname ()
13240 {
13241 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13242 # positional parameters, so assign one to ordinary parameter first.
13243 func_stripname_result=${3}
13244 func_stripname_result=${func_stripname_result#"${1}"}
13245 func_stripname_result=${func_stripname_result%"${2}"}
13246 }
13247
13248 # func_opt_split
13249 func_opt_split ()
13250 {
13251 func_opt_split_opt=${1%%=*}
13252 func_opt_split_arg=${1#*=}
13253 }
13254
13255 # func_lo2o object
13256 func_lo2o ()
13257 {
13258 case ${1} in
13259 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13260 *) func_lo2o_result=${1} ;;
13261 esac
13262 }
13263 _LT_EOF
13264 ;;
13265 *) # Bourne compatible functions.
13266 cat << \_LT_EOF >> "$cfgfile"
13267 # func_dirname file append nondir_replacement
13268 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13269 # otherwise set result to NONDIR_REPLACEMENT.
13270 func_dirname ()
13271 {
13272 # Extract subdirectory from the argument.
13273 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13274 if test "X$func_dirname_result" = "X${1}"; then
13275 func_dirname_result="${3}"
13276 else
13277 func_dirname_result="$func_dirname_result${2}"
13278 fi
13279 }
13280
13281 # func_basename file
13282 func_basename ()
13283 {
13284 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13285 }
13286
13287 # func_stripname prefix suffix name
13288 # strip PREFIX and SUFFIX off of NAME.
13289 # PREFIX and SUFFIX must not contain globbing or regex special
13290 # characters, hashes, percent signs, but SUFFIX may contain a leading
13291 # dot (in which case that matches only a dot).
13292 # func_strip_suffix prefix name
13293 func_stripname ()
13294 {
13295 case ${2} in
13296 .*) func_stripname_result=`$ECHO "X${3}" \
13297 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13298 *) func_stripname_result=`$ECHO "X${3}" \
13299 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13300 esac
13301 }
13302
13303 # sed scripts:
13304 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13305 my_sed_long_arg='1s/^-[^=]*=//'
13306
13307 # func_opt_split
13308 func_opt_split ()
13309 {
13310 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13311 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13312 }
13313
13314 # func_lo2o object
13315 func_lo2o ()
13316 {
13317 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13318 }
13319 _LT_EOF
13320 esac
13321
13322 case $lt_shell_append in
13323 yes)
13324 cat << \_LT_EOF >> "$cfgfile"
13325
13326 # func_append var value
13327 # Append VALUE to the end of shell variable VAR.
13328 func_append ()
13329 {
13330 eval "$1+=\$2"
13331 }
13332 _LT_EOF
13333 ;;
13334 *)
13335 cat << \_LT_EOF >> "$cfgfile"
13336
13337 # func_append var value
13338 # Append VALUE to the end of shell variable VAR.
13339 func_append ()
13340 {
13341 eval "$1=\$$1\$2"
13342 }
13343 _LT_EOF
13344 ;;
13345 esac
13346
13347
13348 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13349 || (rm -f "$cfgfile"; exit 1)
13350
13351 mv -f "$cfgfile" "$ofile" ||
13352 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13353 chmod +x "$ofile"
13354
13355 ;;
13356 default-1 )
13357 for ac_file in $CONFIG_FILES; do
13358 # Support "outfile[:infile[:infile...]]"
13359 case "$ac_file" in
13360 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13361 esac
13362 # PO directories have a Makefile.in generated from Makefile.in.in.
13363 case "$ac_file" in */Makefile.in)
13364 # Adjust a relative srcdir.
13365 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13366 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13367 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13368 # In autoconf-2.13 it is called $ac_given_srcdir.
13369 # In autoconf-2.50 it is called $srcdir.
13370 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13371 case "$ac_given_srcdir" in
13372 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13373 /*) top_srcdir="$ac_given_srcdir" ;;
13374 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13375 esac
13376 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13377 rm -f "$ac_dir/POTFILES"
13378 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13379 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13380 POMAKEFILEDEPS="POTFILES.in"
13381 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13382 # on $ac_dir but don't depend on user-specified configuration
13383 # parameters.
13384 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13385 # The LINGUAS file contains the set of available languages.
13386 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13387 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13388 fi
13389 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13390 # Hide the ALL_LINGUAS assigment from automake.
13391 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13392 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13393 else
13394 # The set of available languages was given in configure.in.
13395 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13396 fi
13397 case "$ac_given_srcdir" in
13398 .) srcdirpre= ;;
13399 *) srcdirpre='$(srcdir)/' ;;
13400 esac
13401 POFILES=
13402 GMOFILES=
13403 UPDATEPOFILES=
13404 DUMMYPOFILES=
13405 for lang in $ALL_LINGUAS; do
13406 POFILES="$POFILES $srcdirpre$lang.po"
13407 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13408 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13409 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13410 done
13411 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13412 # environment variable.
13413 INST_LINGUAS=
13414 if test -n "$ALL_LINGUAS"; then
13415 for presentlang in $ALL_LINGUAS; do
13416 useit=no
13417 if test "%UNSET%" != "$LINGUAS"; then
13418 desiredlanguages="$LINGUAS"
13419 else
13420 desiredlanguages="$ALL_LINGUAS"
13421 fi
13422 for desiredlang in $desiredlanguages; do
13423 # Use the presentlang catalog if desiredlang is
13424 # a. equal to presentlang, or
13425 # b. a variant of presentlang (because in this case,
13426 # presentlang can be used as a fallback for messages
13427 # which are not translated in the desiredlang catalog).
13428 case "$desiredlang" in
13429 "$presentlang"*) useit=yes;;
13430 esac
13431 done
13432 if test $useit = yes; then
13433 INST_LINGUAS="$INST_LINGUAS $presentlang"
13434 fi
13435 done
13436 fi
13437 CATALOGS=
13438 if test -n "$INST_LINGUAS"; then
13439 for lang in $INST_LINGUAS; do
13440 CATALOGS="$CATALOGS $lang.gmo"
13441 done
13442 fi
13443 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13444 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"
13445 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13446 if test -f "$f"; then
13447 case "$f" in
13448 *.orig | *.bak | *~) ;;
13449 *) cat "$f" >> "$ac_dir/Makefile" ;;
13450 esac
13451 fi
13452 done
13453 fi
13454 ;;
13455 esac
13456 done ;;
13457 esac
13458 done
13459 _ACEOF
13460
13461 cat >>$CONFIG_STATUS <<\_ACEOF
13462
13463 { (exit 0); exit 0; }
13464 _ACEOF
13465 chmod +x $CONFIG_STATUS
13466 ac_clean_files=$ac_clean_files_save
13467
13468
13469 # configure is writing to config.log, and then calls config.status.
13470 # config.status does its own redirection, appending to config.log.
13471 # Unfortunately, on DOS this fails, as config.log is still kept open
13472 # by configure, so config.status won't be able to write to it; its
13473 # output is simply discarded. So we exec the FD to /dev/null,
13474 # effectively closing config.log, so it can be properly (re)opened and
13475 # appended to by config.status. When coming back to configure, we
13476 # need to make the FD available again.
13477 if test "$no_create" != yes; then
13478 ac_cs_success=:
13479 ac_config_status_args=
13480 test "$silent" = yes &&
13481 ac_config_status_args="$ac_config_status_args --quiet"
13482 exec 5>/dev/null
13483 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13484 exec 5>>config.log
13485 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13486 # would make configure fail if this is the last instruction.
13487 $ac_cs_success || { (exit 1); exit 1; }
13488 fi
13489