]> cygwin.com Git - cygwin-apps/setup.git/blob - configure
2002-05-19 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 2.10 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.53.
5 #
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10
11
12 # Check that we are running under the correct shell.
13 SHELL=${CONFIG_SHELL-/bin/sh}
14
15 case X$ECHO in
16 X*--fallback-echo)
17 # Remove one level of quotation (which was required for Make).
18 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
19 ;;
20 esac
21
22 echo=${ECHO-echo}
23 if test "X$1" = X--no-reexec; then
24 # Discard the --no-reexec flag, and continue.
25 shift
26 elif test "X$1" = X--fallback-echo; then
27 # Avoid inline document here, it may be left over
28 :
29 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
30 # Yippee, $echo works!
31 :
32 else
33 # Restart under the correct shell.
34 exec $SHELL "$0" --no-reexec ${1+"$@"}
35 fi
36
37 if test "X$1" = X--fallback-echo; then
38 # used as fallback echo
39 shift
40 cat <<EOF
41 $*
42 EOF
43 exit 0
44 fi
45
46 # The HP-UX ksh and POSIX shell print the target directory to stdout
47 # if CDPATH is set.
48 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
49
50 if test -z "$ECHO"; then
51 if test "X${echo_test_string+set}" != Xset; then
52 # find a string as large as possible, as long as the shell can cope with it
53 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
54 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
55 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
56 echo_test_string="`eval $cmd`" &&
57 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
58 then
59 break
60 fi
61 done
62 fi
63
64 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
65 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
66 test "X$echo_testing_string" = "X$echo_test_string"; then
67 :
68 else
69 # The Solaris, AIX, and Digital Unix default echo programs unquote
70 # backslashes. This makes it impossible to quote backslashes using
71 # echo "$something" | sed 's/\\/\\\\/g'
72 #
73 # So, first we look for a working echo in the user's PATH.
74
75 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
76 for dir in $PATH /usr/ucb; do
77 IFS="$lt_save_ifs"
78 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
79 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
80 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
81 test "X$echo_testing_string" = "X$echo_test_string"; then
82 echo="$dir/echo"
83 break
84 fi
85 done
86 IFS="$lt_save_ifs"
87
88 if test "X$echo" = Xecho; then
89 # We didn't find a better echo, so look for alternatives.
90 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
91 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
92 test "X$echo_testing_string" = "X$echo_test_string"; then
93 # This shell has a builtin print -r that does the trick.
94 echo='print -r'
95 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
96 test "X$CONFIG_SHELL" != X/bin/ksh; then
97 # If we have ksh, try running configure again with it.
98 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
99 export ORIGINAL_CONFIG_SHELL
100 CONFIG_SHELL=/bin/ksh
101 export CONFIG_SHELL
102 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
103 else
104 # Try using printf.
105 echo='printf %s\n'
106 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
107 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
108 test "X$echo_testing_string" = "X$echo_test_string"; then
109 # Cool, printf works
110 :
111 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
112 test "X$echo_testing_string" = 'X\t' &&
113 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
114 test "X$echo_testing_string" = "X$echo_test_string"; then
115 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
116 export CONFIG_SHELL
117 SHELL="$CONFIG_SHELL"
118 export SHELL
119 echo="$CONFIG_SHELL $0 --fallback-echo"
120 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
121 test "X$echo_testing_string" = 'X\t' &&
122 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
123 test "X$echo_testing_string" = "X$echo_test_string"; then
124 echo="$CONFIG_SHELL $0 --fallback-echo"
125 else
126 # maybe with a smaller string...
127 prev=:
128
129 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
130 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
131 then
132 break
133 fi
134 prev="$cmd"
135 done
136
137 if test "$prev" != 'sed 50q "$0"'; then
138 echo_test_string=`eval $prev`
139 export echo_test_string
140 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
141 else
142 # Oops. We lost completely, so just stick with echo.
143 echo=echo
144 fi
145 fi
146 fi
147 fi
148 fi
149 fi
150
151 # Copy echo and quote the copy suitably for passing to libtool from
152 # the Makefile, instead of quoting the original, which is used later.
153 ECHO=$echo
154 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
155 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
156 fi
157
158
159
160 if expr a : '\(a\)' >/dev/null 2>&1; then
161 as_expr=expr
162 else
163 as_expr=false
164 fi
165
166
167 ## --------------------- ##
168 ## M4sh Initialization. ##
169 ## --------------------- ##
170
171 # Be Bourne compatible
172 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
173 emulate sh
174 NULLCMD=:
175 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
176 set -o posix
177 fi
178
179 # NLS nuisances.
180 # Support unset when possible.
181 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
182 as_unset=unset
183 else
184 as_unset=false
185 fi
186
187 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
188 { $as_unset LANG || test "${LANG+set}" != set; } ||
189 { LANG=C; export LANG; }
190 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
191 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
192 { LC_ALL=C; export LC_ALL; }
193 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
194 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
195 { LC_TIME=C; export LC_TIME; }
196 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
197 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
198 { LC_CTYPE=C; export LC_CTYPE; }
199 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
200 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
201 { LANGUAGE=C; export LANGUAGE; }
202 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
203 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
204 { LC_COLLATE=C; export LC_COLLATE; }
205 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
206 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
207 { LC_NUMERIC=C; export LC_NUMERIC; }
208 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
209 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
210 { LC_MESSAGES=C; export LC_MESSAGES; }
211
212
213 # Name of the executable.
214 as_me=`(basename "$0") 2>/dev/null ||
215 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
216 X"$0" : 'X\(//\)$' \| \
217 X"$0" : 'X\(/\)$' \| \
218 . : '\(.\)' 2>/dev/null ||
219 echo X/"$0" |
220 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
221 /^X\/\(\/\/\)$/{ s//\1/; q; }
222 /^X\/\(\/\).*/{ s//\1/; q; }
223 s/.*/./; q'`
224
225 # PATH needs CR, and LINENO needs CR and PATH.
226 # Avoid depending upon Character Ranges.
227 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
228 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
229 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
230 as_cr_digits='0123456789'
231 as_cr_alnum=$as_cr_Letters$as_cr_digits
232
233 # The user is always right.
234 if test "${PATH_SEPARATOR+set}" != set; then
235 echo "#! /bin/sh" >conftest.sh
236 echo "exit 0" >>conftest.sh
237 chmod +x conftest.sh
238 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
239 PATH_SEPARATOR=';'
240 else
241 PATH_SEPARATOR=:
242 fi
243 rm -f conftest.sh
244 fi
245
246
247 as_lineno_1=$LINENO
248 as_lineno_2=$LINENO
249 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
250 test "x$as_lineno_1" != "x$as_lineno_2" &&
251 test "x$as_lineno_3" = "x$as_lineno_2" || {
252 # Find who we are. Look in the path if we contain no path at all
253 # relative or not.
254 case $0 in
255 *[\\/]* ) as_myself=$0 ;;
256 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
257 for as_dir in $PATH
258 do
259 IFS=$as_save_IFS
260 test -z "$as_dir" && as_dir=.
261 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
262 done
263
264 ;;
265 esac
266 # We did not find ourselves, most probably we were run as `sh COMMAND'
267 # in which case we are not to be found in the path.
268 if test "x$as_myself" = x; then
269 as_myself=$0
270 fi
271 if test ! -f "$as_myself"; then
272 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
273 { (exit 1); exit 1; }; }
274 fi
275 case $CONFIG_SHELL in
276 '')
277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
278 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
279 do
280 IFS=$as_save_IFS
281 test -z "$as_dir" && as_dir=.
282 for as_base in sh bash ksh sh5; do
283 case $as_dir in
284 /*)
285 if ("$as_dir/$as_base" -c '
286 as_lineno_1=$LINENO
287 as_lineno_2=$LINENO
288 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
289 test "x$as_lineno_1" != "x$as_lineno_2" &&
290 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
291 CONFIG_SHELL=$as_dir/$as_base
292 export CONFIG_SHELL
293 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
294 fi;;
295 esac
296 done
297 done
298 ;;
299 esac
300
301 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
302 # uniformly replaced by the line number. The first 'sed' inserts a
303 # line-number line before each line; the second 'sed' does the real
304 # work. The second script uses 'N' to pair each line-number line
305 # with the numbered line, and appends trailing '-' during
306 # substitution so that $LINENO is not a special case at line end.
307 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
308 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
309 sed '=' <$as_myself |
310 sed '
311 N
312 s,$,-,
313 : loop
314 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
315 t loop
316 s,-$,,
317 s,^['$as_cr_digits']*\n,,
318 ' >$as_me.lineno &&
319 chmod +x $as_me.lineno ||
320 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
321 { (exit 1); exit 1; }; }
322
323 # Don't try to exec as it changes $[0], causing all sort of problems
324 # (the dirname of $[0] is not the place where we might find the
325 # original and so on. Autoconf is especially sensible to this).
326 . ./$as_me.lineno
327 # Exit status is that of the last command.
328 exit
329 }
330
331
332 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
333 *c*,-n*) ECHO_N= ECHO_C='
334 ' ECHO_T=' ' ;;
335 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
336 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
337 esac
338
339 if expr a : '\(a\)' >/dev/null 2>&1; then
340 as_expr=expr
341 else
342 as_expr=false
343 fi
344
345 rm -f conf$$ conf$$.exe conf$$.file
346 echo >conf$$.file
347 if ln -s conf$$.file conf$$ 2>/dev/null; then
348 # We could just check for DJGPP; but this test a) works b) is more generic
349 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
350 if test -f conf$$.exe; then
351 # Don't use ln at all; we don't have any links
352 as_ln_s='cp -p'
353 else
354 as_ln_s='ln -s'
355 fi
356 elif ln conf$$.file conf$$ 2>/dev/null; then
357 as_ln_s=ln
358 else
359 as_ln_s='cp -p'
360 fi
361 rm -f conf$$ conf$$.exe conf$$.file
362
363 as_executable_p="test -f"
364
365 # Sed expression to map a string onto a valid CPP name.
366 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
367
368 # Sed expression to map a string onto a valid variable name.
369 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
370
371
372 # IFS
373 # We need space, tab and new line, in precisely that order.
374 as_nl='
375 '
376 IFS=" $as_nl"
377
378 # CDPATH.
379 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
380
381
382 # Name of the host.
383 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
384 # so uname gets run too.
385 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
386
387 exec 6>&1
388
389 #
390 # Initializations.
391 #
392 ac_default_prefix=/usr/local
393 cross_compiling=no
394 subdirs=
395 MFLAGS=
396 MAKEFLAGS=
397 SHELL=${CONFIG_SHELL-/bin/sh}
398
399 # Maximum number of lines to put in a shell here document.
400 # This variable seems obsolete. It should probably be removed, and
401 # only ac_max_sed_lines should be used.
402 : ${ac_max_here_lines=38}
403
404 # Identity of this package.
405 PACKAGE_NAME=
406 PACKAGE_TARNAME=
407 PACKAGE_VERSION=
408 PACKAGE_STRING=
409 PACKAGE_BUGREPORT=
410
411 ac_unique_file="Makefile.in"
412 ac_subdirs_all="$ac_subdirs_all rsync"
413 # Factoring default headers for most tests.
414 ac_includes_default="\
415 #include <stdio.h>
416 #if HAVE_SYS_TYPES_H
417 # include <sys/types.h>
418 #endif
419 #if HAVE_SYS_STAT_H
420 # include <sys/stat.h>
421 #endif
422 #if STDC_HEADERS
423 # include <stdlib.h>
424 # include <stddef.h>
425 #else
426 # if HAVE_STDLIB_H
427 # include <stdlib.h>
428 # endif
429 #endif
430 #if HAVE_STRING_H
431 # if !STDC_HEADERS && HAVE_MEMORY_H
432 # include <memory.h>
433 # endif
434 # include <string.h>
435 #endif
436 #if HAVE_STRINGS_H
437 # include <strings.h>
438 #endif
439 #if HAVE_INTTYPES_H
440 # include <inttypes.h>
441 #else
442 # if HAVE_STDINT_H
443 # include <stdint.h>
444 # endif
445 #endif
446 #if HAVE_UNISTD_H
447 # include <unistd.h>
448 #endif"
449
450 ac_subdirs_all="$ac_subdirs_all zlib"
451 ac_subdirs_all="$ac_subdirs_all bz2lib"
452 ac_subdirs_all="$ac_subdirs_all libgetopt++"
453
454 # Initialize some variables set by options.
455 ac_init_help=
456 ac_init_version=false
457 # The variables have the same names as the options, with
458 # dashes changed to underlines.
459 cache_file=/dev/null
460 exec_prefix=NONE
461 no_create=
462 no_recursion=
463 prefix=NONE
464 program_prefix=NONE
465 program_suffix=NONE
466 program_transform_name=s,x,x,
467 silent=
468 site=
469 srcdir=
470 verbose=
471 x_includes=NONE
472 x_libraries=NONE
473
474 # Installation directory options.
475 # These are left unexpanded so users can "make install exec_prefix=/foo"
476 # and all the variables that are supposed to be based on exec_prefix
477 # by default will actually change.
478 # Use braces instead of parens because sh, perl, etc. also accept them.
479 bindir='${exec_prefix}/bin'
480 sbindir='${exec_prefix}/sbin'
481 libexecdir='${exec_prefix}/libexec'
482 datadir='${prefix}/share'
483 sysconfdir='${prefix}/etc'
484 sharedstatedir='${prefix}/com'
485 localstatedir='${prefix}/var'
486 libdir='${exec_prefix}/lib'
487 includedir='${prefix}/include'
488 oldincludedir='/usr/include'
489 infodir='${prefix}/info'
490 mandir='${prefix}/man'
491
492 ac_prev=
493 for ac_option
494 do
495 # If the previous option needs an argument, assign it.
496 if test -n "$ac_prev"; then
497 eval "$ac_prev=\$ac_option"
498 ac_prev=
499 continue
500 fi
501
502 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
503
504 # Accept the important Cygnus configure options, so we can diagnose typos.
505
506 case $ac_option in
507
508 -bindir | --bindir | --bindi | --bind | --bin | --bi)
509 ac_prev=bindir ;;
510 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
511 bindir=$ac_optarg ;;
512
513 -build | --build | --buil | --bui | --bu)
514 ac_prev=build_alias ;;
515 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
516 build_alias=$ac_optarg ;;
517
518 -cache-file | --cache-file | --cache-fil | --cache-fi \
519 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
520 ac_prev=cache_file ;;
521 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
522 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
523 cache_file=$ac_optarg ;;
524
525 --config-cache | -C)
526 cache_file=config.cache ;;
527
528 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
529 ac_prev=datadir ;;
530 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
531 | --da=*)
532 datadir=$ac_optarg ;;
533
534 -disable-* | --disable-*)
535 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
536 # Reject names that are not valid shell variable names.
537 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
538 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
539 { (exit 1); exit 1; }; }
540 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
541 eval "enable_$ac_feature=no" ;;
542
543 -enable-* | --enable-*)
544 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
545 # Reject names that are not valid shell variable names.
546 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
548 { (exit 1); exit 1; }; }
549 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
550 case $ac_option in
551 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
552 *) ac_optarg=yes ;;
553 esac
554 eval "enable_$ac_feature='$ac_optarg'" ;;
555
556 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
557 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
558 | --exec | --exe | --ex)
559 ac_prev=exec_prefix ;;
560 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
561 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
562 | --exec=* | --exe=* | --ex=*)
563 exec_prefix=$ac_optarg ;;
564
565 -gas | --gas | --ga | --g)
566 # Obsolete; use --with-gas.
567 with_gas=yes ;;
568
569 -help | --help | --hel | --he | -h)
570 ac_init_help=long ;;
571 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
572 ac_init_help=recursive ;;
573 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
574 ac_init_help=short ;;
575
576 -host | --host | --hos | --ho)
577 ac_prev=host_alias ;;
578 -host=* | --host=* | --hos=* | --ho=*)
579 host_alias=$ac_optarg ;;
580
581 -includedir | --includedir | --includedi | --included | --include \
582 | --includ | --inclu | --incl | --inc)
583 ac_prev=includedir ;;
584 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
585 | --includ=* | --inclu=* | --incl=* | --inc=*)
586 includedir=$ac_optarg ;;
587
588 -infodir | --infodir | --infodi | --infod | --info | --inf)
589 ac_prev=infodir ;;
590 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
591 infodir=$ac_optarg ;;
592
593 -libdir | --libdir | --libdi | --libd)
594 ac_prev=libdir ;;
595 -libdir=* | --libdir=* | --libdi=* | --libd=*)
596 libdir=$ac_optarg ;;
597
598 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
599 | --libexe | --libex | --libe)
600 ac_prev=libexecdir ;;
601 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
602 | --libexe=* | --libex=* | --libe=*)
603 libexecdir=$ac_optarg ;;
604
605 -localstatedir | --localstatedir | --localstatedi | --localstated \
606 | --localstate | --localstat | --localsta | --localst \
607 | --locals | --local | --loca | --loc | --lo)
608 ac_prev=localstatedir ;;
609 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
610 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
611 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
612 localstatedir=$ac_optarg ;;
613
614 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
615 ac_prev=mandir ;;
616 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
617 mandir=$ac_optarg ;;
618
619 -nfp | --nfp | --nf)
620 # Obsolete; use --without-fp.
621 with_fp=no ;;
622
623 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
624 | --no-cr | --no-c | -n)
625 no_create=yes ;;
626
627 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
628 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
629 no_recursion=yes ;;
630
631 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
632 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
633 | --oldin | --oldi | --old | --ol | --o)
634 ac_prev=oldincludedir ;;
635 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
636 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
637 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
638 oldincludedir=$ac_optarg ;;
639
640 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
641 ac_prev=prefix ;;
642 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
643 prefix=$ac_optarg ;;
644
645 -program-prefix | --program-prefix | --program-prefi | --program-pref \
646 | --program-pre | --program-pr | --program-p)
647 ac_prev=program_prefix ;;
648 -program-prefix=* | --program-prefix=* | --program-prefi=* \
649 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
650 program_prefix=$ac_optarg ;;
651
652 -program-suffix | --program-suffix | --program-suffi | --program-suff \
653 | --program-suf | --program-su | --program-s)
654 ac_prev=program_suffix ;;
655 -program-suffix=* | --program-suffix=* | --program-suffi=* \
656 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
657 program_suffix=$ac_optarg ;;
658
659 -program-transform-name | --program-transform-name \
660 | --program-transform-nam | --program-transform-na \
661 | --program-transform-n | --program-transform- \
662 | --program-transform | --program-transfor \
663 | --program-transfo | --program-transf \
664 | --program-trans | --program-tran \
665 | --progr-tra | --program-tr | --program-t)
666 ac_prev=program_transform_name ;;
667 -program-transform-name=* | --program-transform-name=* \
668 | --program-transform-nam=* | --program-transform-na=* \
669 | --program-transform-n=* | --program-transform-=* \
670 | --program-transform=* | --program-transfor=* \
671 | --program-transfo=* | --program-transf=* \
672 | --program-trans=* | --program-tran=* \
673 | --progr-tra=* | --program-tr=* | --program-t=*)
674 program_transform_name=$ac_optarg ;;
675
676 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
677 | -silent | --silent | --silen | --sile | --sil)
678 silent=yes ;;
679
680 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
681 ac_prev=sbindir ;;
682 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
683 | --sbi=* | --sb=*)
684 sbindir=$ac_optarg ;;
685
686 -sharedstatedir | --sharedstatedir | --sharedstatedi \
687 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
688 | --sharedst | --shareds | --shared | --share | --shar \
689 | --sha | --sh)
690 ac_prev=sharedstatedir ;;
691 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
692 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
693 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
694 | --sha=* | --sh=*)
695 sharedstatedir=$ac_optarg ;;
696
697 -site | --site | --sit)
698 ac_prev=site ;;
699 -site=* | --site=* | --sit=*)
700 site=$ac_optarg ;;
701
702 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
703 ac_prev=srcdir ;;
704 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
705 srcdir=$ac_optarg ;;
706
707 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
708 | --syscon | --sysco | --sysc | --sys | --sy)
709 ac_prev=sysconfdir ;;
710 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
711 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
712 sysconfdir=$ac_optarg ;;
713
714 -target | --target | --targe | --targ | --tar | --ta | --t)
715 ac_prev=target_alias ;;
716 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
717 target_alias=$ac_optarg ;;
718
719 -v | -verbose | --verbose | --verbos | --verbo | --verb)
720 verbose=yes ;;
721
722 -version | --version | --versio | --versi | --vers | -V)
723 ac_init_version=: ;;
724
725 -with-* | --with-*)
726 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
727 # Reject names that are not valid shell variable names.
728 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
729 { echo "$as_me: error: invalid package name: $ac_package" >&2
730 { (exit 1); exit 1; }; }
731 ac_package=`echo $ac_package| sed 's/-/_/g'`
732 case $ac_option in
733 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
734 *) ac_optarg=yes ;;
735 esac
736 eval "with_$ac_package='$ac_optarg'" ;;
737
738 -without-* | --without-*)
739 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
740 # Reject names that are not valid shell variable names.
741 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
742 { echo "$as_me: error: invalid package name: $ac_package" >&2
743 { (exit 1); exit 1; }; }
744 ac_package=`echo $ac_package | sed 's/-/_/g'`
745 eval "with_$ac_package=no" ;;
746
747 --x)
748 # Obsolete; use --with-x.
749 with_x=yes ;;
750
751 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
752 | --x-incl | --x-inc | --x-in | --x-i)
753 ac_prev=x_includes ;;
754 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
755 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
756 x_includes=$ac_optarg ;;
757
758 -x-libraries | --x-libraries | --x-librarie | --x-librari \
759 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
760 ac_prev=x_libraries ;;
761 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
762 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
763 x_libraries=$ac_optarg ;;
764
765 -*) { echo "$as_me: error: unrecognized option: $ac_option
766 Try \`$0 --help' for more information." >&2
767 { (exit 1); exit 1; }; }
768 ;;
769
770 *=*)
771 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
772 # Reject names that are not valid shell variable names.
773 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
774 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
775 { (exit 1); exit 1; }; }
776 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
777 eval "$ac_envvar='$ac_optarg'"
778 export $ac_envvar ;;
779
780 *)
781 # FIXME: should be removed in autoconf 3.0.
782 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
783 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
784 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
785 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
786 ;;
787
788 esac
789 done
790
791 if test -n "$ac_prev"; then
792 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
793 { echo "$as_me: error: missing argument to $ac_option" >&2
794 { (exit 1); exit 1; }; }
795 fi
796
797 # Be sure to have absolute paths.
798 for ac_var in exec_prefix prefix
799 do
800 eval ac_val=$`echo $ac_var`
801 case $ac_val in
802 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
803 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
804 { (exit 1); exit 1; }; };;
805 esac
806 done
807
808 # Be sure to have absolute paths.
809 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
810 localstatedir libdir includedir oldincludedir infodir mandir
811 do
812 eval ac_val=$`echo $ac_var`
813 case $ac_val in
814 [\\/$]* | ?:[\\/]* ) ;;
815 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
816 { (exit 1); exit 1; }; };;
817 esac
818 done
819
820 # There might be people who depend on the old broken behavior: `$host'
821 # used to hold the argument of --host etc.
822 # FIXME: To remove some day.
823 build=$build_alias
824 host=$host_alias
825 target=$target_alias
826
827 # FIXME: To remove some day.
828 if test "x$host_alias" != x; then
829 if test "x$build_alias" = x; then
830 cross_compiling=maybe
831 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
832 If a cross compiler is detected then cross compile mode will be used." >&2
833 elif test "x$build_alias" != "x$host_alias"; then
834 cross_compiling=yes
835 fi
836 fi
837
838 ac_tool_prefix=
839 test -n "$host_alias" && ac_tool_prefix=$host_alias-
840
841 test "$silent" = yes && exec 6>/dev/null
842
843
844 # Find the source files, if location was not specified.
845 if test -z "$srcdir"; then
846 ac_srcdir_defaulted=yes
847 # Try the directory containing this script, then its parent.
848 ac_confdir=`(dirname "$0") 2>/dev/null ||
849 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
850 X"$0" : 'X\(//\)[^/]' \| \
851 X"$0" : 'X\(//\)$' \| \
852 X"$0" : 'X\(/\)' \| \
853 . : '\(.\)' 2>/dev/null ||
854 echo X"$0" |
855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
856 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
857 /^X\(\/\/\)$/{ s//\1/; q; }
858 /^X\(\/\).*/{ s//\1/; q; }
859 s/.*/./; q'`
860 srcdir=$ac_confdir
861 if test ! -r $srcdir/$ac_unique_file; then
862 srcdir=..
863 fi
864 else
865 ac_srcdir_defaulted=no
866 fi
867 if test ! -r $srcdir/$ac_unique_file; then
868 if test "$ac_srcdir_defaulted" = yes; then
869 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
870 { (exit 1); exit 1; }; }
871 else
872 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
873 { (exit 1); exit 1; }; }
874 fi
875 fi
876 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
877 ac_env_build_alias_set=${build_alias+set}
878 ac_env_build_alias_value=$build_alias
879 ac_cv_env_build_alias_set=${build_alias+set}
880 ac_cv_env_build_alias_value=$build_alias
881 ac_env_host_alias_set=${host_alias+set}
882 ac_env_host_alias_value=$host_alias
883 ac_cv_env_host_alias_set=${host_alias+set}
884 ac_cv_env_host_alias_value=$host_alias
885 ac_env_target_alias_set=${target_alias+set}
886 ac_env_target_alias_value=$target_alias
887 ac_cv_env_target_alias_set=${target_alias+set}
888 ac_cv_env_target_alias_value=$target_alias
889 ac_env_CXX_set=${CXX+set}
890 ac_env_CXX_value=$CXX
891 ac_cv_env_CXX_set=${CXX+set}
892 ac_cv_env_CXX_value=$CXX
893 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
894 ac_env_CXXFLAGS_value=$CXXFLAGS
895 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
896 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
897 ac_env_LDFLAGS_set=${LDFLAGS+set}
898 ac_env_LDFLAGS_value=$LDFLAGS
899 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
900 ac_cv_env_LDFLAGS_value=$LDFLAGS
901 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
902 ac_env_CPPFLAGS_value=$CPPFLAGS
903 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
904 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
905 ac_env_CC_set=${CC+set}
906 ac_env_CC_value=$CC
907 ac_cv_env_CC_set=${CC+set}
908 ac_cv_env_CC_value=$CC
909 ac_env_CFLAGS_set=${CFLAGS+set}
910 ac_env_CFLAGS_value=$CFLAGS
911 ac_cv_env_CFLAGS_set=${CFLAGS+set}
912 ac_cv_env_CFLAGS_value=$CFLAGS
913 ac_env_CPP_set=${CPP+set}
914 ac_env_CPP_value=$CPP
915 ac_cv_env_CPP_set=${CPP+set}
916 ac_cv_env_CPP_value=$CPP
917 ac_env_CXXCPP_set=${CXXCPP+set}
918 ac_env_CXXCPP_value=$CXXCPP
919 ac_cv_env_CXXCPP_set=${CXXCPP+set}
920 ac_cv_env_CXXCPP_value=$CXXCPP
921
922 #
923 # Report the --help message.
924 #
925 if test "$ac_init_help" = "long"; then
926 # Omit some internal or obsolete options to make the list less imposing.
927 # This message is too long to be a string in the A/UX 3.1 sh.
928 cat <<_ACEOF
929 \`configure' configures this package to adapt to many kinds of systems.
930
931 Usage: $0 [OPTION]... [VAR=VALUE]...
932
933 To assign environment variables (e.g., CC, CFLAGS...), specify them as
934 VAR=VALUE. See below for descriptions of some of the useful variables.
935
936 Defaults for the options are specified in brackets.
937
938 Configuration:
939 -h, --help display this help and exit
940 --help=short display options specific to this package
941 --help=recursive display the short help of all the included packages
942 -V, --version display version information and exit
943 -q, --quiet, --silent do not print \`checking...' messages
944 --cache-file=FILE cache test results in FILE [disabled]
945 -C, --config-cache alias for \`--cache-file=config.cache'
946 -n, --no-create do not create output files
947 --srcdir=DIR find the sources in DIR [configure dir or \`..']
948
949 _ACEOF
950
951 cat <<_ACEOF
952 Installation directories:
953 --prefix=PREFIX install architecture-independent files in PREFIX
954 [$ac_default_prefix]
955 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
956 [PREFIX]
957
958 By default, \`make install' will install all the files in
959 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
960 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
961 for instance \`--prefix=\$HOME'.
962
963 For better control, use the options below.
964
965 Fine tuning of the installation directories:
966 --bindir=DIR user executables [EPREFIX/bin]
967 --sbindir=DIR system admin executables [EPREFIX/sbin]
968 --libexecdir=DIR program executables [EPREFIX/libexec]
969 --datadir=DIR read-only architecture-independent data [PREFIX/share]
970 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
971 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
972 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
973 --libdir=DIR object code libraries [EPREFIX/lib]
974 --includedir=DIR C header files [PREFIX/include]
975 --oldincludedir=DIR C header files for non-gcc [/usr/include]
976 --infodir=DIR info documentation [PREFIX/info]
977 --mandir=DIR man documentation [PREFIX/man]
978 _ACEOF
979
980 cat <<\_ACEOF
981
982 Program names:
983 --program-prefix=PREFIX prepend PREFIX to installed program names
984 --program-suffix=SUFFIX append SUFFIX to installed program names
985 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
986
987 System types:
988 --build=BUILD configure for building on BUILD [guessed]
989 --host=HOST cross-compile to build programs to run on HOST [BUILD]
990 _ACEOF
991 fi
992
993 if test -n "$ac_init_help"; then
994
995 cat <<\_ACEOF
996
997 Optional Features:
998 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
999 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1000 --enable-maintainer-mode enable make rules and dependencies not useful
1001 (and sometimes confusing) to the casual installer
1002 --enable-inilint Build the inilint tool
1003 --enable-rsync Compile in rsync support
1004 --disable-dependency-tracking Speeds up one-time builds
1005 --enable-dependency-tracking Do not reject slow dependency extractors
1006 --enable-shared[=PKGS]
1007 build shared libraries [default=yes]
1008 --enable-static[=PKGS]
1009 build static libraries [default=yes]
1010 --enable-fast-install[=PKGS]
1011 optimize for fast installation [default=yes]
1012 --disable-libtool-lock avoid locking (might break parallel builds)
1013
1014 Optional Packages:
1015 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1016 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1017 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1018 --with-pic try to use only PIC/non-PIC objects [default=use
1019 both]
1020 --with-tags=TAGS include additional configurations [CXX,GCJ]
1021
1022 Some influential environment variables:
1023 CXX C++ compiler command
1024 CXXFLAGS C++ compiler flags
1025 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1026 nonstandard directory <lib dir>
1027 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1028 headers in a nonstandard directory <include dir>
1029 CC C compiler command
1030 CFLAGS C compiler flags
1031 CPP C preprocessor
1032 CXXCPP C++ preprocessor
1033
1034 Use these variables to override the choices made by `configure' or to help
1035 it to find libraries and programs with nonstandard names/locations.
1036
1037 _ACEOF
1038 fi
1039
1040 if test "$ac_init_help" = "recursive"; then
1041 # If there are subdirs, report their specific --help.
1042 ac_popdir=`pwd`
1043 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1044 test -d $ac_dir || continue
1045 ac_builddir=.
1046
1047 if test "$ac_dir" != .; then
1048 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1049 # A "../" for each directory in $ac_dir_suffix.
1050 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1051 else
1052 ac_dir_suffix= ac_top_builddir=
1053 fi
1054
1055 case $srcdir in
1056 .) # No --srcdir option. We are building in place.
1057 ac_srcdir=.
1058 if test -z "$ac_top_builddir"; then
1059 ac_top_srcdir=.
1060 else
1061 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1062 fi ;;
1063 [\\/]* | ?:[\\/]* ) # Absolute path.
1064 ac_srcdir=$srcdir$ac_dir_suffix;
1065 ac_top_srcdir=$srcdir ;;
1066 *) # Relative path.
1067 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1068 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1069 esac
1070 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1071 # absolute.
1072 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1073 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1074 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1075 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1076
1077 cd $ac_dir
1078 # Check for guested configure; otherwise get Cygnus style configure.
1079 if test -f $ac_srcdir/configure.gnu; then
1080 echo
1081 $SHELL $ac_srcdir/configure.gnu --help=recursive
1082 elif test -f $ac_srcdir/configure; then
1083 echo
1084 $SHELL $ac_srcdir/configure --help=recursive
1085 elif test -f $ac_srcdir/configure.ac ||
1086 test -f $ac_srcdir/configure.in; then
1087 echo
1088 $ac_configure --help
1089 else
1090 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1091 fi
1092 cd $ac_popdir
1093 done
1094 fi
1095
1096 test -n "$ac_init_help" && exit 0
1097 if $ac_init_version; then
1098 cat <<\_ACEOF
1099
1100 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1101 Free Software Foundation, Inc.
1102 This configure script is free software; the Free Software Foundation
1103 gives unlimited permission to copy, distribute and modify it.
1104 _ACEOF
1105 exit 0
1106 fi
1107 exec 5>config.log
1108 cat >&5 <<_ACEOF
1109 This file contains any messages produced by compilers while
1110 running configure, to aid debugging if configure makes a mistake.
1111
1112 It was created by $as_me, which was
1113 generated by GNU Autoconf 2.53. Invocation command line was
1114
1115 $ $0 $@
1116
1117 _ACEOF
1118 {
1119 cat <<_ASUNAME
1120 ## --------- ##
1121 ## Platform. ##
1122 ## --------- ##
1123
1124 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1125 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1126 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1127 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1128 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1129
1130 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1131 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1132
1133 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1134 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1135 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1136 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1137 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1138 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1139 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1140
1141 _ASUNAME
1142
1143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1144 for as_dir in $PATH
1145 do
1146 IFS=$as_save_IFS
1147 test -z "$as_dir" && as_dir=.
1148 echo "PATH: $as_dir"
1149 done
1150
1151 } >&5
1152
1153 cat >&5 <<_ACEOF
1154
1155
1156 ## ----------- ##
1157 ## Core tests. ##
1158 ## ----------- ##
1159
1160 _ACEOF
1161
1162
1163 # Keep a trace of the command line.
1164 # Strip out --no-create and --no-recursion so they do not pile up.
1165 # Also quote any args containing shell meta-characters.
1166 ac_configure_args=
1167 ac_sep=
1168 for ac_arg
1169 do
1170 case $ac_arg in
1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172 | --no-cr | --no-c | -n ) continue ;;
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 continue ;;
1176 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1177 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1178 esac
1179 case " $ac_configure_args " in
1180 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1181 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1182 ac_sep=" " ;;
1183 esac
1184 # Get rid of the leading space.
1185 done
1186
1187 # When interrupted or exit'd, cleanup temporary files, and complete
1188 # config.log. We remove comments because anyway the quotes in there
1189 # would cause problems or look ugly.
1190 # WARNING: Be sure not to use single quotes in there, as some shells,
1191 # such as our DU 5.0 friend, will then `close' the trap.
1192 trap 'exit_status=$?
1193 # Save into config.log some information that might help in debugging.
1194 {
1195 echo
1196 cat <<\_ASBOX
1197 ## ---------------- ##
1198 ## Cache variables. ##
1199 ## ---------------- ##
1200 _ASBOX
1201 echo
1202 # The following way of writing the cache mishandles newlines in values,
1203 {
1204 (set) 2>&1 |
1205 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1206 *ac_space=\ *)
1207 sed -n \
1208 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1209 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1210 ;;
1211 *)
1212 sed -n \
1213 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1214 ;;
1215 esac;
1216 }
1217 echo
1218 if test -s confdefs.h; then
1219 cat <<\_ASBOX
1220 ## ----------- ##
1221 ## confdefs.h. ##
1222 ## ----------- ##
1223 _ASBOX
1224 echo
1225 sed "/^$/d" confdefs.h
1226 echo
1227 fi
1228 test "$ac_signal" != 0 &&
1229 echo "$as_me: caught signal $ac_signal"
1230 echo "$as_me: exit $exit_status"
1231 } >&5
1232 rm -f core core.* *.core &&
1233 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1234 exit $exit_status
1235 ' 0
1236 for ac_signal in 1 2 13 15; do
1237 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1238 done
1239 ac_signal=0
1240
1241 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1242 rm -rf conftest* confdefs.h
1243 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1244 echo >confdefs.h
1245
1246 # Predefined preprocessor variables.
1247
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_NAME "$PACKAGE_NAME"
1250 _ACEOF
1251
1252
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1255 _ACEOF
1256
1257
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1260 _ACEOF
1261
1262
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_STRING "$PACKAGE_STRING"
1265 _ACEOF
1266
1267
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1270 _ACEOF
1271
1272
1273 # Let the site file select an alternate cache file if it wants to.
1274 # Prefer explicitly selected file to automatically selected ones.
1275 if test -z "$CONFIG_SITE"; then
1276 if test "x$prefix" != xNONE; then
1277 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1278 else
1279 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1280 fi
1281 fi
1282 for ac_site_file in $CONFIG_SITE; do
1283 if test -r "$ac_site_file"; then
1284 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1285 echo "$as_me: loading site script $ac_site_file" >&6;}
1286 sed 's/^/| /' "$ac_site_file" >&5
1287 . "$ac_site_file"
1288 fi
1289 done
1290
1291 if test -r "$cache_file"; then
1292 # Some versions of bash will fail to source /dev/null (special
1293 # files actually), so we avoid doing that.
1294 if test -f "$cache_file"; then
1295 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1296 echo "$as_me: loading cache $cache_file" >&6;}
1297 case $cache_file in
1298 [\\/]* | ?:[\\/]* ) . $cache_file;;
1299 *) . ./$cache_file;;
1300 esac
1301 fi
1302 else
1303 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1304 echo "$as_me: creating cache $cache_file" >&6;}
1305 >$cache_file
1306 fi
1307
1308 # Check that the precious variables saved in the cache have kept the same
1309 # value.
1310 ac_cache_corrupted=false
1311 for ac_var in `(set) 2>&1 |
1312 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1313 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1314 eval ac_new_set=\$ac_env_${ac_var}_set
1315 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1316 eval ac_new_val="\$ac_env_${ac_var}_value"
1317 case $ac_old_set,$ac_new_set in
1318 set,)
1319 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1321 ac_cache_corrupted=: ;;
1322 ,set)
1323 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1325 ac_cache_corrupted=: ;;
1326 ,);;
1327 *)
1328 if test "x$ac_old_val" != "x$ac_new_val"; then
1329 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1330 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1331 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1332 echo "$as_me: former value: $ac_old_val" >&2;}
1333 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1334 echo "$as_me: current value: $ac_new_val" >&2;}
1335 ac_cache_corrupted=:
1336 fi;;
1337 esac
1338 # Pass precious variables to config.status.
1339 if test "$ac_new_set" = set; then
1340 case $ac_new_val in
1341 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1342 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1343 *) ac_arg=$ac_var=$ac_new_val ;;
1344 esac
1345 case " $ac_configure_args " in
1346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1347 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1348 esac
1349 fi
1350 done
1351 if $ac_cache_corrupted; then
1352 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1353 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1354 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1355 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1356 { (exit 1); exit 1; }; }
1357 fi
1358
1359 ac_ext=c
1360 ac_cpp='$CPP $CPPFLAGS'
1361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383 ac_aux_dir=
1384 for ac_dir in cfgaux $srcdir/cfgaux; do
1385 if test -f $ac_dir/install-sh; then
1386 ac_aux_dir=$ac_dir
1387 ac_install_sh="$ac_aux_dir/install-sh -c"
1388 break
1389 elif test -f $ac_dir/install.sh; then
1390 ac_aux_dir=$ac_dir
1391 ac_install_sh="$ac_aux_dir/install.sh -c"
1392 break
1393 elif test -f $ac_dir/shtool; then
1394 ac_aux_dir=$ac_dir
1395 ac_install_sh="$ac_aux_dir/shtool install -c"
1396 break
1397 fi
1398 done
1399 if test -z "$ac_aux_dir"; then
1400 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cfgaux $srcdir/cfgaux" >&5
1401 echo "$as_me: error: cannot find install-sh or install.sh in cfgaux $srcdir/cfgaux" >&2;}
1402 { (exit 1); exit 1; }; }
1403 fi
1404 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1405 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1406 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1407
1408 am__api_version="1.6"
1409 # Find a good install program. We prefer a C program (faster),
1410 # so one script is as good as another. But avoid the broken or
1411 # incompatible versions:
1412 # SysV /etc/install, /usr/sbin/install
1413 # SunOS /usr/etc/install
1414 # IRIX /sbin/install
1415 # AIX /bin/install
1416 # AmigaOS /C/install, which installs bootblocks on floppy discs
1417 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1418 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1419 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1420 # ./install, which can be erroneously created by make from ./install.sh.
1421 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1422 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1423 if test -z "$INSTALL"; then
1424 if test "${ac_cv_path_install+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1426 else
1427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428 for as_dir in $PATH
1429 do
1430 IFS=$as_save_IFS
1431 test -z "$as_dir" && as_dir=.
1432 # Account for people who put trailing slashes in PATH elements.
1433 case $as_dir/ in
1434 ./ | .// | /cC/* | \
1435 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1436 /usr/ucb/* ) ;;
1437 *)
1438 # OSF1 and SCO ODT 3.0 have their own names for install.
1439 # Don't use installbsd from OSF since it installs stuff as root
1440 # by default.
1441 for ac_prog in ginstall scoinst install; do
1442 for ac_exec_ext in '' $ac_executable_extensions; do
1443 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1444 if test $ac_prog = install &&
1445 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1446 # AIX install. It has an incompatible calling convention.
1447 :
1448 elif test $ac_prog = install &&
1449 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1450 # program-specific install script used by HP pwplus--don't use.
1451 :
1452 else
1453 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1454 break 3
1455 fi
1456 fi
1457 done
1458 done
1459 ;;
1460 esac
1461 done
1462
1463
1464 fi
1465 if test "${ac_cv_path_install+set}" = set; then
1466 INSTALL=$ac_cv_path_install
1467 else
1468 # As a last resort, use the slow shell script. We don't cache a
1469 # path for INSTALL within a source directory, because that will
1470 # break other packages using the cache if that directory is
1471 # removed, or if the path is relative.
1472 INSTALL=$ac_install_sh
1473 fi
1474 fi
1475 echo "$as_me:$LINENO: result: $INSTALL" >&5
1476 echo "${ECHO_T}$INSTALL" >&6
1477
1478 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1479 # It thinks the first close brace ends the variable substitution.
1480 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1481
1482 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1483
1484 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1485
1486 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1487 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1488 # Just in case
1489 sleep 1
1490 echo timestamp > conftest.file
1491 # Do `set' in a subshell so we don't clobber the current shell's
1492 # arguments. Must try -L first in case configure is actually a
1493 # symlink; some systems play weird games with the mod time of symlinks
1494 # (eg FreeBSD returns the mod time of the symlink's containing
1495 # directory).
1496 if (
1497 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1498 if test "$*" = "X"; then
1499 # -L didn't work.
1500 set X `ls -t $srcdir/configure conftest.file`
1501 fi
1502 rm -f conftest.file
1503 if test "$*" != "X $srcdir/configure conftest.file" \
1504 && test "$*" != "X conftest.file $srcdir/configure"; then
1505
1506 # If neither matched, then we have a broken ls. This can happen
1507 # if, for instance, CONFIG_SHELL is bash and it inherits a
1508 # broken ls alias from the environment. This has actually
1509 # happened. Such a system could not be considered "sane".
1510 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1511 alias in your environment" >&5
1512 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1513 alias in your environment" >&2;}
1514 { (exit 1); exit 1; }; }
1515 fi
1516
1517 test "$2" = conftest.file
1518 )
1519 then
1520 # Ok.
1521 :
1522 else
1523 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1524 Check your system clock" >&5
1525 echo "$as_me: error: newly created file is older than distributed files!
1526 Check your system clock" >&2;}
1527 { (exit 1); exit 1; }; }
1528 fi
1529 echo "$as_me:$LINENO: result: yes" >&5
1530 echo "${ECHO_T}yes" >&6
1531 test "$program_prefix" != NONE &&
1532 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1533 # Use a double $ so make ignores it.
1534 test "$program_suffix" != NONE &&
1535 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1536 # Double any \ or $. echo might interpret backslashes.
1537 # By default was `s,x,x', remove it if useless.
1538 cat <<\_ACEOF >conftest.sed
1539 s/[\\$]/&&/g;s/;s,x,x,$//
1540 _ACEOF
1541 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1542 rm conftest.sed
1543
1544
1545 # expand $ac_aux_dir to an absolute path
1546 am_aux_dir=`cd $ac_aux_dir && pwd`
1547
1548 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1549 # Use eval to expand $SHELL
1550 if eval "$MISSING --run true"; then
1551 am_missing_run="$MISSING --run "
1552 else
1553 am_missing_run=
1554 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1555 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1556 fi
1557
1558 for ac_prog in gawk mawk nawk awk
1559 do
1560 # Extract the first word of "$ac_prog", so it can be a program name with args.
1561 set dummy $ac_prog; ac_word=$2
1562 echo "$as_me:$LINENO: checking for $ac_word" >&5
1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564 if test "${ac_cv_prog_AWK+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 else
1567 if test -n "$AWK"; then
1568 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1569 else
1570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571 for as_dir in $PATH
1572 do
1573 IFS=$as_save_IFS
1574 test -z "$as_dir" && as_dir=.
1575 for ac_exec_ext in '' $ac_executable_extensions; do
1576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1577 ac_cv_prog_AWK="$ac_prog"
1578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 break 2
1580 fi
1581 done
1582 done
1583
1584 fi
1585 fi
1586 AWK=$ac_cv_prog_AWK
1587 if test -n "$AWK"; then
1588 echo "$as_me:$LINENO: result: $AWK" >&5
1589 echo "${ECHO_T}$AWK" >&6
1590 else
1591 echo "$as_me:$LINENO: result: no" >&5
1592 echo "${ECHO_T}no" >&6
1593 fi
1594
1595 test -n "$AWK" && break
1596 done
1597
1598 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1599 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1600 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1601 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1603 else
1604 cat >conftest.make <<\_ACEOF
1605 all:
1606 @echo 'ac_maketemp="${MAKE}"'
1607 _ACEOF
1608 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1609 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1610 if test -n "$ac_maketemp"; then
1611 eval ac_cv_prog_make_${ac_make}_set=yes
1612 else
1613 eval ac_cv_prog_make_${ac_make}_set=no
1614 fi
1615 rm -f conftest.make
1616 fi
1617 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1618 echo "$as_me:$LINENO: result: yes" >&5
1619 echo "${ECHO_T}yes" >&6
1620 SET_MAKE=
1621 else
1622 echo "$as_me:$LINENO: result: no" >&5
1623 echo "${ECHO_T}no" >&6
1624 SET_MAKE="MAKE=${MAKE-make}"
1625 fi
1626
1627 # test to see if srcdir already configured
1628 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1629 test -f $srcdir/config.status; then
1630 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1631 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1632 { (exit 1); exit 1; }; }
1633 fi
1634
1635 # Define the identity of the package.
1636 PACKAGE=setup
1637 VERSION=0
1638
1639
1640 cat >>confdefs.h <<_ACEOF
1641 #define PACKAGE "$PACKAGE"
1642 _ACEOF
1643
1644
1645 cat >>confdefs.h <<_ACEOF
1646 #define VERSION "$VERSION"
1647 _ACEOF
1648
1649 # Some tools Automake needs.
1650
1651 ACLOCAL=${ACLOCAL-"${am_missing_run}"aclocal-${am__api_version}""}
1652
1653
1654 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1655
1656
1657 AUTOMAKE=${AUTOMAKE-"${am_missing_run}"automake-${am__api_version}""}
1658
1659
1660 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1661
1662
1663 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1664
1665
1666 AMTAR=${AMTAR-"${am_missing_run}tar"}
1667
1668 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1669
1670 # Installed binaries are usually stripped using `strip' when the user
1671 # run `make install-strip'. However `strip' might not be the right
1672 # tool to use in cross-compilation environments, therefore Automake
1673 # will honor the `STRIP' environment variable to overrule this program.
1674 if test "$cross_compiling" != no; then
1675 if test -n "$ac_tool_prefix"; then
1676 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1677 set dummy ${ac_tool_prefix}strip; ac_word=$2
1678 echo "$as_me:$LINENO: checking for $ac_word" >&5
1679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680 if test "${ac_cv_prog_STRIP+set}" = set; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683 if test -n "$STRIP"; then
1684 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1685 else
1686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 for as_dir in $PATH
1688 do
1689 IFS=$as_save_IFS
1690 test -z "$as_dir" && as_dir=.
1691 for ac_exec_ext in '' $ac_executable_extensions; do
1692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1693 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1695 break 2
1696 fi
1697 done
1698 done
1699
1700 fi
1701 fi
1702 STRIP=$ac_cv_prog_STRIP
1703 if test -n "$STRIP"; then
1704 echo "$as_me:$LINENO: result: $STRIP" >&5
1705 echo "${ECHO_T}$STRIP" >&6
1706 else
1707 echo "$as_me:$LINENO: result: no" >&5
1708 echo "${ECHO_T}no" >&6
1709 fi
1710
1711 fi
1712 if test -z "$ac_cv_prog_STRIP"; then
1713 ac_ct_STRIP=$STRIP
1714 # Extract the first word of "strip", so it can be a program name with args.
1715 set dummy strip; ac_word=$2
1716 echo "$as_me:$LINENO: checking for $ac_word" >&5
1717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 else
1721 if test -n "$ac_ct_STRIP"; then
1722 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1723 else
1724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725 for as_dir in $PATH
1726 do
1727 IFS=$as_save_IFS
1728 test -z "$as_dir" && as_dir=.
1729 for ac_exec_ext in '' $ac_executable_extensions; do
1730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1731 ac_cv_prog_ac_ct_STRIP="strip"
1732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1733 break 2
1734 fi
1735 done
1736 done
1737
1738 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1739 fi
1740 fi
1741 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1742 if test -n "$ac_ct_STRIP"; then
1743 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1744 echo "${ECHO_T}$ac_ct_STRIP" >&6
1745 else
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1748 fi
1749
1750 STRIP=$ac_ct_STRIP
1751 else
1752 STRIP="$ac_cv_prog_STRIP"
1753 fi
1754
1755 fi
1756 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1757
1758 # We need awk for the "check" target. The system "awk" is bad on
1759 # some platforms.
1760
1761
1762
1763 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1764 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1765 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1766 if test "${enable_maintainer_mode+set}" = set; then
1767 enableval="$enable_maintainer_mode"
1768 USE_MAINTAINER_MODE=$enableval
1769 else
1770 USE_MAINTAINER_MODE=no
1771 fi;
1772 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1773 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1774
1775
1776 if test $USE_MAINTAINER_MODE = yes; then
1777 MAINTAINER_MODE_TRUE=
1778 MAINTAINER_MODE_FALSE='#'
1779 else
1780 MAINTAINER_MODE_TRUE='#'
1781 MAINTAINER_MODE_FALSE=
1782 fi
1783
1784 MAINT=$MAINTAINER_MODE_TRUE
1785
1786
1787
1788
1789 echo "$as_me:$LINENO: checking Whether to build inilint" >&5
1790 echo $ECHO_N "checking Whether to build inilint... $ECHO_C" >&6
1791 # Check whether --enable-inilint or --disable-inilint was given.
1792 if test "${enable_inilint+set}" = set; then
1793 enableval="$enable_inilint"
1794 ac_cv_enable_inilint=$enableval
1795 else
1796 ac_cv_enable_inilint=no
1797 fi;
1798 echo "$as_me:$LINENO: result: $ac_cv_enable_inilint" >&5
1799 echo "${ECHO_T}$ac_cv_enable_inilint" >&6
1800 if test $ac_cv_enable_inilint = yes; then
1801 INILINT="inilint"
1802 else
1803 INILINT=
1804 fi
1805
1806
1807 echo "$as_me:$LINENO: checking Whether to enable rsync support" >&5
1808 echo $ECHO_N "checking Whether to enable rsync support... $ECHO_C" >&6
1809 # Check whether --enable-rsync or --disable-rsync was given.
1810 if test "${enable_rsync+set}" = set; then
1811 enableval="$enable_rsync"
1812 ac_cv_enable_rsync=$enableval
1813 else
1814 ac_cv_enable_rsync=no
1815 fi;
1816 echo "$as_me:$LINENO: result: $ac_cv_enable_rsync" >&5
1817 echo "${ECHO_T}$ac_cv_enable_rsync" >&6
1818 if test $ac_cv_enable_rsync = yes; then
1819
1820
1821 if true; then
1822 ENABLERSYNC_TRUE=
1823 ENABLERSYNC_FALSE='#'
1824 else
1825 ENABLERSYNC_TRUE='#'
1826 ENABLERSYNC_FALSE=
1827 fi
1828
1829 RSYNC="rsync"
1830 RSYNCLIB=rsync/librsync.la
1831
1832
1833 subdirs="$subdirs rsync"
1834
1835 else
1836
1837
1838 if false; then
1839 ENABLERSYNC_TRUE=
1840 ENABLERSYNC_FALSE='#'
1841 else
1842 ENABLERSYNC_TRUE='#'
1843 ENABLERSYNC_FALSE=
1844 fi
1845
1846 RSYNC=
1847 RSYNCLIB=
1848 fi
1849
1850
1851
1852 ac_ext=cc
1853 ac_cpp='$CXXCPP $CPPFLAGS'
1854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1857
1858 ac_ext=cc
1859 ac_cpp='$CXXCPP $CPPFLAGS'
1860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1863 if test -n "$ac_tool_prefix"; then
1864 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1865 do
1866 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1867 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1868 echo "$as_me:$LINENO: checking for $ac_word" >&5
1869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870 if test "${ac_cv_prog_CXX+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1872 else
1873 if test -n "$CXX"; then
1874 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1875 else
1876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 for as_dir in $PATH
1878 do
1879 IFS=$as_save_IFS
1880 test -z "$as_dir" && as_dir=.
1881 for ac_exec_ext in '' $ac_executable_extensions; do
1882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885 break 2
1886 fi
1887 done
1888 done
1889
1890 fi
1891 fi
1892 CXX=$ac_cv_prog_CXX
1893 if test -n "$CXX"; then
1894 echo "$as_me:$LINENO: result: $CXX" >&5
1895 echo "${ECHO_T}$CXX" >&6
1896 else
1897 echo "$as_me:$LINENO: result: no" >&5
1898 echo "${ECHO_T}no" >&6
1899 fi
1900
1901 test -n "$CXX" && break
1902 done
1903 fi
1904 if test -z "$CXX"; then
1905 ac_ct_CXX=$CXX
1906 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1907 do
1908 # Extract the first word of "$ac_prog", so it can be a program name with args.
1909 set dummy $ac_prog; ac_word=$2
1910 echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1914 else
1915 if test -n "$ac_ct_CXX"; then
1916 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1917 else
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 for as_dir in $PATH
1920 do
1921 IFS=$as_save_IFS
1922 test -z "$as_dir" && as_dir=.
1923 for ac_exec_ext in '' $ac_executable_extensions; do
1924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925 ac_cv_prog_ac_ct_CXX="$ac_prog"
1926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927 break 2
1928 fi
1929 done
1930 done
1931
1932 fi
1933 fi
1934 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1935 if test -n "$ac_ct_CXX"; then
1936 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1937 echo "${ECHO_T}$ac_ct_CXX" >&6
1938 else
1939 echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1941 fi
1942
1943 test -n "$ac_ct_CXX" && break
1944 done
1945 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1946
1947 CXX=$ac_ct_CXX
1948 fi
1949
1950
1951 # Provide some information about the compiler.
1952 echo "$as_me:$LINENO:" \
1953 "checking for C++ compiler version" >&5
1954 ac_compiler=`set X $ac_compile; echo $2`
1955 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1956 (eval $ac_compiler --version </dev/null >&5) 2>&5
1957 ac_status=$?
1958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959 (exit $ac_status); }
1960 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1961 (eval $ac_compiler -v </dev/null >&5) 2>&5
1962 ac_status=$?
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }
1965 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1966 (eval $ac_compiler -V </dev/null >&5) 2>&5
1967 ac_status=$?
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }
1970
1971 cat >conftest.$ac_ext <<_ACEOF
1972 #line $LINENO "configure"
1973 #include "confdefs.h"
1974
1975 #ifdef F77_DUMMY_MAIN
1976 # ifdef __cplusplus
1977 extern "C"
1978 # endif
1979 int F77_DUMMY_MAIN() { return 1; }
1980 #endif
1981 int
1982 main ()
1983 {
1984
1985 ;
1986 return 0;
1987 }
1988 _ACEOF
1989 ac_clean_files_save=$ac_clean_files
1990 ac_clean_files="$ac_clean_files a.out a.exe"
1991 # Try to create an executable without -o first, disregard a.out.
1992 # It will help us diagnose broken compilers, and finding out an intuition
1993 # of exeext.
1994 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1995 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1996 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1997 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1998 (eval $ac_link_default) 2>&5
1999 ac_status=$?
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }; then
2002 # Find the output, starting from the most likely. This scheme is
2003 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2004 # resort.
2005
2006 # Be careful to initialize this variable, since it used to be cached.
2007 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2008 ac_cv_exeext=
2009 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2010 ls a.out conftest 2>/dev/null;
2011 ls a.* conftest.* 2>/dev/null`; do
2012 case $ac_file in
2013 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2014 a.out ) # We found the default executable, but exeext='' is most
2015 # certainly right.
2016 break;;
2017 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2018 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2019 export ac_cv_exeext
2020 break;;
2021 * ) break;;
2022 esac
2023 done
2024 else
2025 echo "$as_me: failed program was:" >&5
2026 cat conftest.$ac_ext >&5
2027 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5
2028 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
2029 { (exit 77); exit 77; }; }
2030 fi
2031
2032 ac_exeext=$ac_cv_exeext
2033 echo "$as_me:$LINENO: result: $ac_file" >&5
2034 echo "${ECHO_T}$ac_file" >&6
2035
2036 # Check the compiler produces executables we can run. If not, either
2037 # the compiler is broken, or we cross compile.
2038 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2039 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2040 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2041 # If not cross compiling, check that we can run a simple program.
2042 if test "$cross_compiling" != yes; then
2043 if { ac_try='./$ac_file'
2044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045 (eval $ac_try) 2>&5
2046 ac_status=$?
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; }; then
2049 cross_compiling=no
2050 else
2051 if test "$cross_compiling" = maybe; then
2052 cross_compiling=yes
2053 else
2054 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2055 If you meant to cross compile, use \`--host'." >&5
2056 echo "$as_me: error: cannot run C++ compiled programs.
2057 If you meant to cross compile, use \`--host'." >&2;}
2058 { (exit 1); exit 1; }; }
2059 fi
2060 fi
2061 fi
2062 echo "$as_me:$LINENO: result: yes" >&5
2063 echo "${ECHO_T}yes" >&6
2064
2065 rm -f a.out a.exe conftest$ac_cv_exeext
2066 ac_clean_files=$ac_clean_files_save
2067 # Check the compiler produces executables we can run. If not, either
2068 # the compiler is broken, or we cross compile.
2069 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2070 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2071 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2072 echo "${ECHO_T}$cross_compiling" >&6
2073
2074 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2075 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2077 (eval $ac_link) 2>&5
2078 ac_status=$?
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }; then
2081 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2082 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2083 # work properly (i.e., refer to `conftest.exe'), while it won't with
2084 # `rm'.
2085 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2086 case $ac_file in
2087 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2088 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2089 export ac_cv_exeext
2090 break;;
2091 * ) break;;
2092 esac
2093 done
2094 else
2095 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2096 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2097 { (exit 1); exit 1; }; }
2098 fi
2099
2100 rm -f conftest$ac_cv_exeext
2101 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2102 echo "${ECHO_T}$ac_cv_exeext" >&6
2103
2104 rm -f conftest.$ac_ext
2105 EXEEXT=$ac_cv_exeext
2106 ac_exeext=$EXEEXT
2107 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2108 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2109 if test "${ac_cv_objext+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112 cat >conftest.$ac_ext <<_ACEOF
2113 #line $LINENO "configure"
2114 #include "confdefs.h"
2115
2116 #ifdef F77_DUMMY_MAIN
2117 # ifdef __cplusplus
2118 extern "C"
2119 # endif
2120 int F77_DUMMY_MAIN() { return 1; }
2121 #endif
2122 int
2123 main ()
2124 {
2125
2126 ;
2127 return 0;
2128 }
2129 _ACEOF
2130 rm -f conftest.o conftest.obj
2131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2132 (eval $ac_compile) 2>&5
2133 ac_status=$?
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }; then
2136 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2137 case $ac_file in
2138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2139 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2140 break;;
2141 esac
2142 done
2143 else
2144 echo "$as_me: failed program was:" >&5
2145 cat conftest.$ac_ext >&5
2146 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2147 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2148 { (exit 1); exit 1; }; }
2149 fi
2150
2151 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2152 fi
2153 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2154 echo "${ECHO_T}$ac_cv_objext" >&6
2155 OBJEXT=$ac_cv_objext
2156 ac_objext=$OBJEXT
2157 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2158 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2159 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 else
2162 cat >conftest.$ac_ext <<_ACEOF
2163 #line $LINENO "configure"
2164 #include "confdefs.h"
2165
2166 #ifdef F77_DUMMY_MAIN
2167 # ifdef __cplusplus
2168 extern "C"
2169 # endif
2170 int F77_DUMMY_MAIN() { return 1; }
2171 #endif
2172 int
2173 main ()
2174 {
2175 #ifndef __GNUC__
2176 choke me
2177 #endif
2178
2179 ;
2180 return 0;
2181 }
2182 _ACEOF
2183 rm -f conftest.$ac_objext
2184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2185 (eval $ac_compile) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); } &&
2189 { ac_try='test -s conftest.$ac_objext'
2190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2191 (eval $ac_try) 2>&5
2192 ac_status=$?
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; }; then
2195 ac_compiler_gnu=yes
2196 else
2197 echo "$as_me: failed program was:" >&5
2198 cat conftest.$ac_ext >&5
2199 ac_compiler_gnu=no
2200 fi
2201 rm -f conftest.$ac_objext conftest.$ac_ext
2202 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2203
2204 fi
2205 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2206 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2207 GXX=`test $ac_compiler_gnu = yes && echo yes`
2208 ac_test_CXXFLAGS=${CXXFLAGS+set}
2209 ac_save_CXXFLAGS=$CXXFLAGS
2210 CXXFLAGS="-g"
2211 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2212 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2213 if test "${ac_cv_prog_cxx_g+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 else
2216 cat >conftest.$ac_ext <<_ACEOF
2217 #line $LINENO "configure"
2218 #include "confdefs.h"
2219
2220 #ifdef F77_DUMMY_MAIN
2221 # ifdef __cplusplus
2222 extern "C"
2223 # endif
2224 int F77_DUMMY_MAIN() { return 1; }
2225 #endif
2226 int
2227 main ()
2228 {
2229
2230 ;
2231 return 0;
2232 }
2233 _ACEOF
2234 rm -f conftest.$ac_objext
2235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2236 (eval $ac_compile) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); } &&
2240 { ac_try='test -s conftest.$ac_objext'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 (eval $ac_try) 2>&5
2243 ac_status=$?
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; }; then
2246 ac_cv_prog_cxx_g=yes
2247 else
2248 echo "$as_me: failed program was:" >&5
2249 cat conftest.$ac_ext >&5
2250 ac_cv_prog_cxx_g=no
2251 fi
2252 rm -f conftest.$ac_objext conftest.$ac_ext
2253 fi
2254 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2255 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2256 if test "$ac_test_CXXFLAGS" = set; then
2257 CXXFLAGS=$ac_save_CXXFLAGS
2258 elif test $ac_cv_prog_cxx_g = yes; then
2259 if test "$GXX" = yes; then
2260 CXXFLAGS="-g -O2"
2261 else
2262 CXXFLAGS="-g"
2263 fi
2264 else
2265 if test "$GXX" = yes; then
2266 CXXFLAGS="-O2"
2267 else
2268 CXXFLAGS=
2269 fi
2270 fi
2271 for ac_declaration in \
2272 ''\
2273 '#include <stdlib.h>' \
2274 'extern "C" void std::exit (int) throw (); using std::exit;' \
2275 'extern "C" void std::exit (int); using std::exit;' \
2276 'extern "C" void exit (int) throw ();' \
2277 'extern "C" void exit (int);' \
2278 'void exit (int);'
2279 do
2280 cat >conftest.$ac_ext <<_ACEOF
2281 #line $LINENO "configure"
2282 #include "confdefs.h"
2283 #include <stdlib.h>
2284 $ac_declaration
2285 #ifdef F77_DUMMY_MAIN
2286 # ifdef __cplusplus
2287 extern "C"
2288 # endif
2289 int F77_DUMMY_MAIN() { return 1; }
2290 #endif
2291 int
2292 main ()
2293 {
2294 exit (42);
2295 ;
2296 return 0;
2297 }
2298 _ACEOF
2299 rm -f conftest.$ac_objext
2300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2301 (eval $ac_compile) 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); } &&
2305 { ac_try='test -s conftest.$ac_objext'
2306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307 (eval $ac_try) 2>&5
2308 ac_status=$?
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; }; then
2311 :
2312 else
2313 echo "$as_me: failed program was:" >&5
2314 cat conftest.$ac_ext >&5
2315 continue
2316 fi
2317 rm -f conftest.$ac_objext conftest.$ac_ext
2318 cat >conftest.$ac_ext <<_ACEOF
2319 #line $LINENO "configure"
2320 #include "confdefs.h"
2321 $ac_declaration
2322 #ifdef F77_DUMMY_MAIN
2323 # ifdef __cplusplus
2324 extern "C"
2325 # endif
2326 int F77_DUMMY_MAIN() { return 1; }
2327 #endif
2328 int
2329 main ()
2330 {
2331 exit (42);
2332 ;
2333 return 0;
2334 }
2335 _ACEOF
2336 rm -f conftest.$ac_objext
2337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338 (eval $ac_compile) 2>&5
2339 ac_status=$?
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); } &&
2342 { ac_try='test -s conftest.$ac_objext'
2343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344 (eval $ac_try) 2>&5
2345 ac_status=$?
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }; }; then
2348 break
2349 else
2350 echo "$as_me: failed program was:" >&5
2351 cat conftest.$ac_ext >&5
2352 fi
2353 rm -f conftest.$ac_objext conftest.$ac_ext
2354 done
2355 rm -f conftest*
2356 if test -n "$ac_declaration"; then
2357 echo '#ifdef __cplusplus' >>confdefs.h
2358 echo $ac_declaration >>confdefs.h
2359 echo '#endif' >>confdefs.h
2360 fi
2361
2362 ac_ext=cc
2363 ac_cpp='$CXXCPP $CPPFLAGS'
2364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2367 rm -f .deps 2>/dev/null
2368 mkdir .deps 2>/dev/null
2369 if test -d .deps; then
2370 DEPDIR=.deps
2371 else
2372 # MS-DOS does not allow filenames that begin with a dot.
2373 DEPDIR=_deps
2374 fi
2375 rmdir .deps 2>/dev/null
2376
2377
2378 ac_config_commands="$ac_config_commands depfiles"
2379
2380
2381 am_make=${MAKE-make}
2382 cat > confinc << 'END'
2383 doit:
2384 @echo done
2385 END
2386 # If we don't find an include directive, just comment out the code.
2387 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2388 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2389 am__include="#"
2390 am__quote=
2391 _am_result=none
2392 # First try GNU make style include.
2393 echo "include confinc" > confmf
2394 # We grep out `Entering directory' and `Leaving directory'
2395 # messages which can occur if `w' ends up in MAKEFLAGS.
2396 # In particular we don't look at `^make:' because GNU make might
2397 # be invoked under some other name (usually "gmake"), in which
2398 # case it prints its new name instead of `make'.
2399 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2400 am__include=include
2401 am__quote=
2402 _am_result=GNU
2403 fi
2404 # Now try BSD make style include.
2405 if test "$am__include" = "#"; then
2406 echo '.include "confinc"' > confmf
2407 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2408 am__include=.include
2409 am__quote="\""
2410 _am_result=BSD
2411 fi
2412 fi
2413
2414
2415 echo "$as_me:$LINENO: result: $_am_result" >&5
2416 echo "${ECHO_T}$_am_result" >&6
2417 rm -f confinc confmf
2418
2419 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2420 if test "${enable_dependency_tracking+set}" = set; then
2421 enableval="$enable_dependency_tracking"
2422
2423 fi;
2424 if test "x$enable_dependency_tracking" != xno; then
2425 am_depcomp="$ac_aux_dir/depcomp"
2426 AMDEPBACKSLASH='\'
2427 fi
2428
2429
2430 if test "x$enable_dependency_tracking" != xno; then
2431 AMDEP_TRUE=
2432 AMDEP_FALSE='#'
2433 else
2434 AMDEP_TRUE='#'
2435 AMDEP_FALSE=
2436 fi
2437
2438
2439
2440
2441 depcc="$CXX" am_compiler_list=
2442
2443 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2444 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2445 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 else
2448 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2449 # We make a subdir and do the tests there. Otherwise we can end up
2450 # making bogus files that we don't know about and never remove. For
2451 # instance it was reported that on HP-UX the gcc test will end up
2452 # making a dummy file named `D' -- because `-MD' means `put the output
2453 # in D'.
2454 mkdir conftest.dir
2455 # Copy depcomp to subdir because otherwise we won't find it if we're
2456 # using a relative directory.
2457 cp "$am_depcomp" conftest.dir
2458 cd conftest.dir
2459
2460 am_cv_CXX_dependencies_compiler_type=none
2461 if test "$am_compiler_list" = ""; then
2462 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2463 fi
2464 for depmode in $am_compiler_list; do
2465 # We need to recreate these files for each test, as the compiler may
2466 # overwrite some of them when testing with obscure command lines.
2467 # This happens at least with the AIX C compiler.
2468 echo '#include "conftest.h"' > conftest.c
2469 echo 'int i;' > conftest.h
2470 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2471
2472 case $depmode in
2473 nosideeffect)
2474 # after this tag, mechanisms are not by side-effect, so they'll
2475 # only be used when explicitly requested
2476 if test "x$enable_dependency_tracking" = xyes; then
2477 continue
2478 else
2479 break
2480 fi
2481 ;;
2482 none) break ;;
2483 esac
2484 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2485 # mode. It turns out that the SunPro C++ compiler does not properly
2486 # handle `-M -o', and we need to detect this.
2487 if depmode=$depmode \
2488 source=conftest.c object=conftest.o \
2489 depfile=conftest.Po tmpdepfile=conftest.TPo \
2490 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2491 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2492 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2493 am_cv_CXX_dependencies_compiler_type=$depmode
2494 break
2495 fi
2496 done
2497
2498 cd ..
2499 rm -rf conftest.dir
2500 else
2501 am_cv_CXX_dependencies_compiler_type=none
2502 fi
2503
2504 fi
2505 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2506 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2507 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2508
2509
2510 ac_ext=c
2511 ac_cpp='$CPP $CPPFLAGS'
2512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2515 if test -n "$ac_tool_prefix"; then
2516 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2517 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2518 echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2520 if test "${ac_cv_prog_CC+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 else
2523 if test -n "$CC"; then
2524 ac_cv_prog_CC="$CC" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2528 do
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2533 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 break 2
2536 fi
2537 done
2538 done
2539
2540 fi
2541 fi
2542 CC=$ac_cv_prog_CC
2543 if test -n "$CC"; then
2544 echo "$as_me:$LINENO: result: $CC" >&5
2545 echo "${ECHO_T}$CC" >&6
2546 else
2547 echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6
2549 fi
2550
2551 fi
2552 if test -z "$ac_cv_prog_CC"; then
2553 ac_ct_CC=$CC
2554 # Extract the first word of "gcc", so it can be a program name with args.
2555 set dummy gcc; ac_word=$2
2556 echo "$as_me:$LINENO: checking for $ac_word" >&5
2557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2560 else
2561 if test -n "$ac_ct_CC"; then
2562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2566 do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2571 ac_cv_prog_ac_ct_CC="gcc"
2572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 break 2
2574 fi
2575 done
2576 done
2577
2578 fi
2579 fi
2580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2581 if test -n "$ac_ct_CC"; then
2582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2583 echo "${ECHO_T}$ac_ct_CC" >&6
2584 else
2585 echo "$as_me:$LINENO: result: no" >&5
2586 echo "${ECHO_T}no" >&6
2587 fi
2588
2589 CC=$ac_ct_CC
2590 else
2591 CC="$ac_cv_prog_CC"
2592 fi
2593
2594 if test -z "$CC"; then
2595 if test -n "$ac_tool_prefix"; then
2596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2597 set dummy ${ac_tool_prefix}cc; ac_word=$2
2598 echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2600 if test "${ac_cv_prog_CC+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603 if test -n "$CC"; then
2604 ac_cv_prog_CC="$CC" # Let the user override the test.
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2608 do
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2613 ac_cv_prog_CC="${ac_tool_prefix}cc"
2614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 break 2
2616 fi
2617 done
2618 done
2619
2620 fi
2621 fi
2622 CC=$ac_cv_prog_CC
2623 if test -n "$CC"; then
2624 echo "$as_me:$LINENO: result: $CC" >&5
2625 echo "${ECHO_T}$CC" >&6
2626 else
2627 echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6
2629 fi
2630
2631 fi
2632 if test -z "$ac_cv_prog_CC"; then
2633 ac_ct_CC=$CC
2634 # Extract the first word of "cc", so it can be a program name with args.
2635 set dummy cc; ac_word=$2
2636 echo "$as_me:$LINENO: checking for $ac_word" >&5
2637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2638 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641 if test -n "$ac_ct_CC"; then
2642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2646 do
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651 ac_cv_prog_ac_ct_CC="cc"
2652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 break 2
2654 fi
2655 done
2656 done
2657
2658 fi
2659 fi
2660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661 if test -n "$ac_ct_CC"; then
2662 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663 echo "${ECHO_T}$ac_ct_CC" >&6
2664 else
2665 echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6
2667 fi
2668
2669 CC=$ac_ct_CC
2670 else
2671 CC="$ac_cv_prog_CC"
2672 fi
2673
2674 fi
2675 if test -z "$CC"; then
2676 # Extract the first word of "cc", so it can be a program name with args.
2677 set dummy cc; ac_word=$2
2678 echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2680 if test "${ac_cv_prog_CC+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683 if test -n "$CC"; then
2684 ac_cv_prog_CC="$CC" # Let the user override the test.
2685 else
2686 ac_prog_rejected=no
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2689 do
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2695 ac_prog_rejected=yes
2696 continue
2697 fi
2698 ac_cv_prog_CC="cc"
2699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 break 2
2701 fi
2702 done
2703 done
2704
2705 if test $ac_prog_rejected = yes; then
2706 # We found a bogon in the path, so make sure we never use it.
2707 set dummy $ac_cv_prog_CC
2708 shift
2709 if test $# != 0; then
2710 # We chose a different compiler from the bogus one.
2711 # However, it has the same basename, so the bogon will be chosen
2712 # first if we set CC to just the basename; use the full file name.
2713 shift
2714 set dummy "$as_dir/$ac_word" ${1+"$@"}
2715 shift
2716 ac_cv_prog_CC="$@"
2717 fi
2718 fi
2719 fi
2720 fi
2721 CC=$ac_cv_prog_CC
2722 if test -n "$CC"; then
2723 echo "$as_me:$LINENO: result: $CC" >&5
2724 echo "${ECHO_T}$CC" >&6
2725 else
2726 echo "$as_me:$LINENO: result: no" >&5
2727 echo "${ECHO_T}no" >&6
2728 fi
2729
2730 fi
2731 if test -z "$CC"; then
2732 if test -n "$ac_tool_prefix"; then
2733 for ac_prog in cl
2734 do
2735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2737 echo "$as_me:$LINENO: checking for $ac_word" >&5
2738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2739 if test "${ac_cv_prog_CC+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 else
2742 if test -n "$CC"; then
2743 ac_cv_prog_CC="$CC" # Let the user override the test.
2744 else
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in $PATH
2747 do
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2752 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 break 2
2755 fi
2756 done
2757 done
2758
2759 fi
2760 fi
2761 CC=$ac_cv_prog_CC
2762 if test -n "$CC"; then
2763 echo "$as_me:$LINENO: result: $CC" >&5
2764 echo "${ECHO_T}$CC" >&6
2765 else
2766 echo "$as_me:$LINENO: result: no" >&5
2767 echo "${ECHO_T}no" >&6
2768 fi
2769
2770 test -n "$CC" && break
2771 done
2772 fi
2773 if test -z "$CC"; then
2774 ac_ct_CC=$CC
2775 for ac_prog in cl
2776 do
2777 # Extract the first word of "$ac_prog", so it can be a program name with args.
2778 set dummy $ac_prog; ac_word=$2
2779 echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784 if test -n "$ac_ct_CC"; then
2785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794 ac_cv_prog_ac_ct_CC="$ac_prog"
2795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798 done
2799 done
2800
2801 fi
2802 fi
2803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2804 if test -n "$ac_ct_CC"; then
2805 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2806 echo "${ECHO_T}$ac_ct_CC" >&6
2807 else
2808 echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6
2810 fi
2811
2812 test -n "$ac_ct_CC" && break
2813 done
2814
2815 CC=$ac_ct_CC
2816 fi
2817
2818 fi
2819
2820
2821 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2822 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2823 { (exit 1); exit 1; }; }
2824
2825 # Provide some information about the compiler.
2826 echo "$as_me:$LINENO:" \
2827 "checking for C compiler version" >&5
2828 ac_compiler=`set X $ac_compile; echo $2`
2829 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2830 (eval $ac_compiler --version </dev/null >&5) 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }
2834 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2835 (eval $ac_compiler -v </dev/null >&5) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }
2839 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2840 (eval $ac_compiler -V </dev/null >&5) 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }
2844
2845 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2846 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2847 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 else
2850 cat >conftest.$ac_ext <<_ACEOF
2851 #line $LINENO "configure"
2852 #include "confdefs.h"
2853
2854 #ifdef F77_DUMMY_MAIN
2855 # ifdef __cplusplus
2856 extern "C"
2857 # endif
2858 int F77_DUMMY_MAIN() { return 1; }
2859 #endif
2860 int
2861 main ()
2862 {
2863 #ifndef __GNUC__
2864 choke me
2865 #endif
2866
2867 ;
2868 return 0;
2869 }
2870 _ACEOF
2871 rm -f conftest.$ac_objext
2872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2873 (eval $ac_compile) 2>&5
2874 ac_status=$?
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); } &&
2877 { ac_try='test -s conftest.$ac_objext'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 (eval $ac_try) 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 ac_compiler_gnu=yes
2884 else
2885 echo "$as_me: failed program was:" >&5
2886 cat conftest.$ac_ext >&5
2887 ac_compiler_gnu=no
2888 fi
2889 rm -f conftest.$ac_objext conftest.$ac_ext
2890 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2891
2892 fi
2893 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2894 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2895 GCC=`test $ac_compiler_gnu = yes && echo yes`
2896 ac_test_CFLAGS=${CFLAGS+set}
2897 ac_save_CFLAGS=$CFLAGS
2898 CFLAGS="-g"
2899 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2900 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2901 if test "${ac_cv_prog_cc_g+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 else
2904 cat >conftest.$ac_ext <<_ACEOF
2905 #line $LINENO "configure"
2906 #include "confdefs.h"
2907
2908 #ifdef F77_DUMMY_MAIN
2909 # ifdef __cplusplus
2910 extern "C"
2911 # endif
2912 int F77_DUMMY_MAIN() { return 1; }
2913 #endif
2914 int
2915 main ()
2916 {
2917
2918 ;
2919 return 0;
2920 }
2921 _ACEOF
2922 rm -f conftest.$ac_objext
2923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2924 (eval $ac_compile) 2>&5
2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); } &&
2928 { ac_try='test -s conftest.$ac_objext'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 (eval $ac_try) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; }; then
2934 ac_cv_prog_cc_g=yes
2935 else
2936 echo "$as_me: failed program was:" >&5
2937 cat conftest.$ac_ext >&5
2938 ac_cv_prog_cc_g=no
2939 fi
2940 rm -f conftest.$ac_objext conftest.$ac_ext
2941 fi
2942 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2943 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2944 if test "$ac_test_CFLAGS" = set; then
2945 CFLAGS=$ac_save_CFLAGS
2946 elif test $ac_cv_prog_cc_g = yes; then
2947 if test "$GCC" = yes; then
2948 CFLAGS="-g -O2"
2949 else
2950 CFLAGS="-g"
2951 fi
2952 else
2953 if test "$GCC" = yes; then
2954 CFLAGS="-O2"
2955 else
2956 CFLAGS=
2957 fi
2958 fi
2959 # Some people use a C++ compiler to compile C. Since we use `exit',
2960 # in C++ we need to declare it. In case someone uses the same compiler
2961 # for both compiling C and C++ we need to have the C++ compiler decide
2962 # the declaration of exit, since it's the most demanding environment.
2963 cat >conftest.$ac_ext <<_ACEOF
2964 #ifndef __cplusplus
2965 choke me
2966 #endif
2967 _ACEOF
2968 rm -f conftest.$ac_objext
2969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2970 (eval $ac_compile) 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
2974 { ac_try='test -s conftest.$ac_objext'
2975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976 (eval $ac_try) 2>&5
2977 ac_status=$?
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2980 for ac_declaration in \
2981 ''\
2982 '#include <stdlib.h>' \
2983 'extern "C" void std::exit (int) throw (); using std::exit;' \
2984 'extern "C" void std::exit (int); using std::exit;' \
2985 'extern "C" void exit (int) throw ();' \
2986 'extern "C" void exit (int);' \
2987 'void exit (int);'
2988 do
2989 cat >conftest.$ac_ext <<_ACEOF
2990 #line $LINENO "configure"
2991 #include "confdefs.h"
2992 #include <stdlib.h>
2993 $ac_declaration
2994 #ifdef F77_DUMMY_MAIN
2995 # ifdef __cplusplus
2996 extern "C"
2997 # endif
2998 int F77_DUMMY_MAIN() { return 1; }
2999 #endif
3000 int
3001 main ()
3002 {
3003 exit (42);
3004 ;
3005 return 0;
3006 }
3007 _ACEOF
3008 rm -f conftest.$ac_objext
3009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3010 (eval $ac_compile) 2>&5
3011 ac_status=$?
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } &&
3014 { ac_try='test -s conftest.$ac_objext'
3015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016 (eval $ac_try) 2>&5
3017 ac_status=$?
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; }; then
3020 :
3021 else
3022 echo "$as_me: failed program was:" >&5
3023 cat conftest.$ac_ext >&5
3024 continue
3025 fi
3026 rm -f conftest.$ac_objext conftest.$ac_ext
3027 cat >conftest.$ac_ext <<_ACEOF
3028 #line $LINENO "configure"
3029 #include "confdefs.h"
3030 $ac_declaration
3031 #ifdef F77_DUMMY_MAIN
3032 # ifdef __cplusplus
3033 extern "C"
3034 # endif
3035 int F77_DUMMY_MAIN() { return 1; }
3036 #endif
3037 int
3038 main ()
3039 {
3040 exit (42);
3041 ;
3042 return 0;
3043 }
3044 _ACEOF
3045 rm -f conftest.$ac_objext
3046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3047 (eval $ac_compile) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -s conftest.$ac_objext'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 (eval $ac_try) 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3057 break
3058 else
3059 echo "$as_me: failed program was:" >&5
3060 cat conftest.$ac_ext >&5
3061 fi
3062 rm -f conftest.$ac_objext conftest.$ac_ext
3063 done
3064 rm -f conftest*
3065 if test -n "$ac_declaration"; then
3066 echo '#ifdef __cplusplus' >>confdefs.h
3067 echo $ac_declaration >>confdefs.h
3068 echo '#endif' >>confdefs.h
3069 fi
3070
3071 else
3072 echo "$as_me: failed program was:" >&5
3073 cat conftest.$ac_ext >&5
3074 fi
3075 rm -f conftest.$ac_objext conftest.$ac_ext
3076 ac_ext=cc
3077 ac_cpp='$CXXCPP $CPPFLAGS'
3078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3081
3082 depcc="$CC" am_compiler_list=
3083
3084 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3085 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3086 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3090 # We make a subdir and do the tests there. Otherwise we can end up
3091 # making bogus files that we don't know about and never remove. For
3092 # instance it was reported that on HP-UX the gcc test will end up
3093 # making a dummy file named `D' -- because `-MD' means `put the output
3094 # in D'.
3095 mkdir conftest.dir
3096 # Copy depcomp to subdir because otherwise we won't find it if we're
3097 # using a relative directory.
3098 cp "$am_depcomp" conftest.dir
3099 cd conftest.dir
3100
3101 am_cv_CC_dependencies_compiler_type=none
3102 if test "$am_compiler_list" = ""; then
3103 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3104 fi
3105 for depmode in $am_compiler_list; do
3106 # We need to recreate these files for each test, as the compiler may
3107 # overwrite some of them when testing with obscure command lines.
3108 # This happens at least with the AIX C compiler.
3109 echo '#include "conftest.h"' > conftest.c
3110 echo 'int i;' > conftest.h
3111 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3112
3113 case $depmode in
3114 nosideeffect)
3115 # after this tag, mechanisms are not by side-effect, so they'll
3116 # only be used when explicitly requested
3117 if test "x$enable_dependency_tracking" = xyes; then
3118 continue
3119 else
3120 break
3121 fi
3122 ;;
3123 none) break ;;
3124 esac
3125 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3126 # mode. It turns out that the SunPro C++ compiler does not properly
3127 # handle `-M -o', and we need to detect this.
3128 if depmode=$depmode \
3129 source=conftest.c object=conftest.o \
3130 depfile=conftest.Po tmpdepfile=conftest.TPo \
3131 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3132 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3133 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3134 am_cv_CC_dependencies_compiler_type=$depmode
3135 break
3136 fi
3137 done
3138
3139 cd ..
3140 rm -rf conftest.dir
3141 else
3142 am_cv_CC_dependencies_compiler_type=none
3143 fi
3144
3145 fi
3146 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3147 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3148 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3149
3150
3151 if test "x$CC" != xcc; then
3152 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3153 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3154 else
3155 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3156 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3157 fi
3158 set dummy $CC; ac_cc=`echo $2 |
3159 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3160 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3162 else
3163 cat >conftest.$ac_ext <<_ACEOF
3164 #line $LINENO "configure"
3165 #include "confdefs.h"
3166
3167 #ifdef F77_DUMMY_MAIN
3168 # ifdef __cplusplus
3169 extern "C"
3170 # endif
3171 int F77_DUMMY_MAIN() { return 1; }
3172 #endif
3173 int
3174 main ()
3175 {
3176
3177 ;
3178 return 0;
3179 }
3180 _ACEOF
3181 # Make sure it works both with $CC and with simple cc.
3182 # We do the test twice because some compilers refuse to overwrite an
3183 # existing .o file with -o, though they will create one.
3184 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3185 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186 (eval $ac_try) 2>&5
3187 ac_status=$?
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } &&
3190 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191 (eval $ac_try) 2>&5
3192 ac_status=$?
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); };
3195 then
3196 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3197 if test "x$CC" != xcc; then
3198 # Test first that cc exists at all.
3199 if { ac_try='cc -c conftest.$ac_ext >&5'
3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201 (eval $ac_try) 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; }; then
3205 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3206 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207 (eval $ac_try) 2>&5
3208 ac_status=$?
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } &&
3211 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212 (eval $ac_try) 2>&5
3213 ac_status=$?
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); };
3216 then
3217 # cc works too.
3218 :
3219 else
3220 # cc exists but doesn't like -o.
3221 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3222 fi
3223 fi
3224 fi
3225 else
3226 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3227 fi
3228 rm -f conftest*
3229
3230 fi
3231 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3232 echo "$as_me:$LINENO: result: yes" >&5
3233 echo "${ECHO_T}yes" >&6
3234 else
3235 echo "$as_me:$LINENO: result: no" >&5
3236 echo "${ECHO_T}no" >&6
3237
3238 cat >>confdefs.h <<\_ACEOF
3239 #define NO_MINUS_C_MINUS_O 1
3240 _ACEOF
3241
3242 fi
3243
3244 # FIXME: we rely on the cache variable name because
3245 # there is no other way.
3246 set dummy $CC
3247 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3248 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3249 # Losing compiler, so override with the script.
3250 # FIXME: It is wrong to rewrite CC.
3251 # But if we don't then we get into trouble of one sort or another.
3252 # A longer-term fix would be to have automake use am__CC in this case,
3253 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3254 CC="$am_aux_dir/compile $CC"
3255 fi
3256
3257
3258 for ac_prog in flex lex
3259 do
3260 # Extract the first word of "$ac_prog", so it can be a program name with args.
3261 set dummy $ac_prog; ac_word=$2
3262 echo "$as_me:$LINENO: checking for $ac_word" >&5
3263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3264 if test "${ac_cv_prog_LEX+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 else
3267 if test -n "$LEX"; then
3268 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3269 else
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273 IFS=$as_save_IFS
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277 ac_cv_prog_LEX="$ac_prog"
3278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3279 break 2
3280 fi
3281 done
3282 done
3283
3284 fi
3285 fi
3286 LEX=$ac_cv_prog_LEX
3287 if test -n "$LEX"; then
3288 echo "$as_me:$LINENO: result: $LEX" >&5
3289 echo "${ECHO_T}$LEX" >&6
3290 else
3291 echo "$as_me:$LINENO: result: no" >&5
3292 echo "${ECHO_T}no" >&6
3293 fi
3294
3295 test -n "$LEX" && break
3296 done
3297 test -n "$LEX" || LEX=":"
3298
3299 if test -z "$LEXLIB"
3300 then
3301 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3302 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3303 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 else
3306 ac_check_lib_save_LIBS=$LIBS
3307 LIBS="-lfl $LIBS"
3308 cat >conftest.$ac_ext <<_ACEOF
3309 #line $LINENO "configure"
3310 #include "confdefs.h"
3311
3312 /* Override any gcc2 internal prototype to avoid an error. */
3313 #ifdef __cplusplus
3314 extern "C"
3315 #endif
3316 /* We use char because int might match the return type of a gcc2
3317 builtin and then its argument prototype would still apply. */
3318 char yywrap ();
3319 #ifdef F77_DUMMY_MAIN
3320 # ifdef __cplusplus
3321 extern "C"
3322 # endif
3323 int F77_DUMMY_MAIN() { return 1; }
3324 #endif
3325 int
3326 main ()
3327 {
3328 yywrap ();
3329 ;
3330 return 0;
3331 }
3332 _ACEOF
3333 rm -f conftest.$ac_objext conftest$ac_exeext
3334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3335 (eval $ac_link) 2>&5
3336 ac_status=$?
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } &&
3339 { ac_try='test -s conftest$ac_exeext'
3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341 (eval $ac_try) 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; }; then
3345 ac_cv_lib_fl_yywrap=yes
3346 else
3347 echo "$as_me: failed program was:" >&5
3348 cat conftest.$ac_ext >&5
3349 ac_cv_lib_fl_yywrap=no
3350 fi
3351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3352 LIBS=$ac_check_lib_save_LIBS
3353 fi
3354 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3355 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3356 if test $ac_cv_lib_fl_yywrap = yes; then
3357 LEXLIB="-lfl"
3358 else
3359 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3360 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3361 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364 ac_check_lib_save_LIBS=$LIBS
3365 LIBS="-ll $LIBS"
3366 cat >conftest.$ac_ext <<_ACEOF
3367 #line $LINENO "configure"
3368 #include "confdefs.h"
3369
3370 /* Override any gcc2 internal prototype to avoid an error. */
3371 #ifdef __cplusplus
3372 extern "C"
3373 #endif
3374 /* We use char because int might match the return type of a gcc2
3375 builtin and then its argument prototype would still apply. */
3376 char yywrap ();
3377 #ifdef F77_DUMMY_MAIN
3378 # ifdef __cplusplus
3379 extern "C"
3380 # endif
3381 int F77_DUMMY_MAIN() { return 1; }
3382 #endif
3383 int
3384 main ()
3385 {
3386 yywrap ();
3387 ;
3388 return 0;
3389 }
3390 _ACEOF
3391 rm -f conftest.$ac_objext conftest$ac_exeext
3392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3393 (eval $ac_link) 2>&5
3394 ac_status=$?
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } &&
3397 { ac_try='test -s conftest$ac_exeext'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 (eval $ac_try) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3403 ac_cv_lib_l_yywrap=yes
3404 else
3405 echo "$as_me: failed program was:" >&5
3406 cat conftest.$ac_ext >&5
3407 ac_cv_lib_l_yywrap=no
3408 fi
3409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3410 LIBS=$ac_check_lib_save_LIBS
3411 fi
3412 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3413 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3414 if test $ac_cv_lib_l_yywrap = yes; then
3415 LEXLIB="-ll"
3416 fi
3417
3418 fi
3419
3420 fi
3421
3422 if test "x$LEX" != "x:"; then
3423 echo "$as_me:$LINENO: checking lex output file root" >&5
3424 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3425 if test "${ac_cv_prog_lex_root+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428 # The minimal lex program is just a single line: %%. But some broken lexes
3429 # (Solaris, I think it was) want two %% lines, so accommodate them.
3430 cat >conftest.l <<_ACEOF
3431 %%
3432 %%
3433 _ACEOF
3434 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3435 (eval $LEX conftest.l) 2>&5
3436 ac_status=$?
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }
3439 if test -f lex.yy.c; then
3440 ac_cv_prog_lex_root=lex.yy
3441 elif test -f lexyy.c; then
3442 ac_cv_prog_lex_root=lexyy
3443 else
3444 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3445 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3446 { (exit 1); exit 1; }; }
3447 fi
3448 fi
3449 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3450 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3451 rm -f conftest.l
3452 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3453
3454 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3455 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3456 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 else
3459 # POSIX says lex can declare yytext either as a pointer or an array; the
3460 # default is implementation-dependent. Figure out which it is, since
3461 # not all implementations provide the %pointer and %array declarations.
3462 ac_cv_prog_lex_yytext_pointer=no
3463 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3464 ac_save_LIBS=$LIBS
3465 LIBS="$LIBS $LEXLIB"
3466 cat >conftest.$ac_ext <<_ACEOF
3467 `cat $LEX_OUTPUT_ROOT.c`
3468 _ACEOF
3469 rm -f conftest.$ac_objext conftest$ac_exeext
3470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3471 (eval $ac_link) 2>&5
3472 ac_status=$?
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } &&
3475 { ac_try='test -s conftest$ac_exeext'
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477 (eval $ac_try) 2>&5
3478 ac_status=$?
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; }; then
3481 ac_cv_prog_lex_yytext_pointer=yes
3482 else
3483 echo "$as_me: failed program was:" >&5
3484 cat conftest.$ac_ext >&5
3485 fi
3486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3487 LIBS=$ac_save_LIBS
3488 rm -f "${LEX_OUTPUT_ROOT}.c"
3489
3490 fi
3491 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3492 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3493 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3494
3495 cat >>confdefs.h <<\_ACEOF
3496 #define YYTEXT_POINTER 1
3497 _ACEOF
3498
3499 fi
3500
3501 fi
3502 if test "$LEX" = :; then
3503 LEX=${am_missing_run}flex
3504 fi
3505 for ac_prog in 'bison -y' byacc
3506 do
3507 # Extract the first word of "$ac_prog", so it can be a program name with args.
3508 set dummy $ac_prog; ac_word=$2
3509 echo "$as_me:$LINENO: checking for $ac_word" >&5
3510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3511 if test "${ac_cv_prog_YACC+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3513 else
3514 if test -n "$YACC"; then
3515 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3516 else
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3519 do
3520 IFS=$as_save_IFS
3521 test -z "$as_dir" && as_dir=.
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524 ac_cv_prog_YACC="$ac_prog"
3525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 break 2
3527 fi
3528 done
3529 done
3530
3531 fi
3532 fi
3533 YACC=$ac_cv_prog_YACC
3534 if test -n "$YACC"; then
3535 echo "$as_me:$LINENO: result: $YACC" >&5
3536 echo "${ECHO_T}$YACC" >&6
3537 else
3538 echo "$as_me:$LINENO: result: no" >&5
3539 echo "${ECHO_T}no" >&6
3540 fi
3541
3542 test -n "$YACC" && break
3543 done
3544 test -n "$YACC" || YACC="yacc"
3545
3546 # Make sure we can run config.sub.
3547 $ac_config_sub sun4 >/dev/null 2>&1 ||
3548 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3549 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3550 { (exit 1); exit 1; }; }
3551
3552 echo "$as_me:$LINENO: checking build system type" >&5
3553 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3554 if test "${ac_cv_build+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557 ac_cv_build_alias=$build_alias
3558 test -z "$ac_cv_build_alias" &&
3559 ac_cv_build_alias=`$ac_config_guess`
3560 test -z "$ac_cv_build_alias" &&
3561 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3562 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3563 { (exit 1); exit 1; }; }
3564 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3566 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3567 { (exit 1); exit 1; }; }
3568
3569 fi
3570 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3571 echo "${ECHO_T}$ac_cv_build" >&6
3572 build=$ac_cv_build
3573 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3574 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3575 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3576
3577
3578 echo "$as_me:$LINENO: checking host system type" >&5
3579 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3580 if test "${ac_cv_host+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583 ac_cv_host_alias=$host_alias
3584 test -z "$ac_cv_host_alias" &&
3585 ac_cv_host_alias=$ac_cv_build_alias
3586 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3588 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3589 { (exit 1); exit 1; }; }
3590
3591 fi
3592 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3593 echo "${ECHO_T}$ac_cv_host" >&6
3594 host=$ac_cv_host
3595 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3596 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3597 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3598
3599
3600 # Check whether --enable-shared or --disable-shared was given.
3601 if test "${enable_shared+set}" = set; then
3602 enableval="$enable_shared"
3603 p=${PACKAGE-default}
3604 case $enableval in
3605 yes) enable_shared=yes ;;
3606 no) enable_shared=no ;;
3607 *)
3608 enable_shared=no
3609 # Look at the argument we got. We use all the common list separators.
3610 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3611 for pkg in $enableval; do
3612 IFS="$lt_save_ifs"
3613 if test "X$pkg" = "X$p"; then
3614 enable_shared=yes
3615 fi
3616 done
3617 IFS="$lt_save_ifs"
3618 ;;
3619 esac
3620 else
3621 enable_shared=yes
3622 fi;
3623
3624 # Check whether --enable-static or --disable-static was given.
3625 if test "${enable_static+set}" = set; then
3626 enableval="$enable_static"
3627 p=${PACKAGE-default}
3628 case $enableval in
3629 yes) enable_static=yes ;;
3630 no) enable_static=no ;;
3631 *)
3632 enable_static=no
3633 # Look at the argument we got. We use all the common list separators.
3634 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3635 for pkg in $enableval; do
3636 IFS="$lt_save_ifs"
3637 if test "X$pkg" = "X$p"; then
3638 enable_static=yes
3639 fi
3640 done
3641 IFS="$lt_save_ifs"
3642 ;;
3643 esac
3644 else
3645 enable_static=yes
3646 fi;
3647
3648 # Check whether --enable-fast-install or --disable-fast-install was given.
3649 if test "${enable_fast_install+set}" = set; then
3650 enableval="$enable_fast_install"
3651 p=${PACKAGE-default}
3652 case $enableval in
3653 yes) enable_fast_install=yes ;;
3654 no) enable_fast_install=no ;;
3655 *)
3656 enable_fast_install=no
3657 # Look at the argument we got. We use all the common list separators.
3658 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3659 for pkg in $enableval; do
3660 IFS="$lt_save_ifs"
3661 if test "X$pkg" = "X$p"; then
3662 enable_fast_install=yes
3663 fi
3664 done
3665 IFS="$lt_save_ifs"
3666 ;;
3667 esac
3668 else
3669 enable_fast_install=yes
3670 fi;
3671
3672
3673 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3674 if test "${with_gnu_ld+set}" = set; then
3675 withval="$with_gnu_ld"
3676 test "$withval" = no || with_gnu_ld=yes
3677 else
3678 with_gnu_ld=no
3679 fi;
3680 ac_prog=ld
3681 if test "$GCC" = yes; then
3682 # Check if gcc -print-prog-name=ld gives a path.
3683 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3684 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3685 case $host in
3686 *-*-mingw*)
3687 # gcc leaves a trailing carriage return which upsets mingw
3688 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3689 *)
3690 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3691 esac
3692 case $ac_prog in
3693 # Accept absolute paths.
3694 [\\/]* | ?:[\\/]*)
3695 re_direlt='/[^/][^/]*/\.\./'
3696 # Canonicalize the path of ld
3697 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3698 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3699 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3700 done
3701 test -z "$LD" && LD="$ac_prog"
3702 ;;
3703 "")
3704 # If it fails, then pretend we aren't using GCC.
3705 ac_prog=ld
3706 ;;
3707 *)
3708 # If it is relative, then search for the first ld in PATH.
3709 with_gnu_ld=unknown
3710 ;;
3711 esac
3712 elif test "$with_gnu_ld" = yes; then
3713 echo "$as_me:$LINENO: checking for GNU ld" >&5
3714 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3715 else
3716 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3717 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3718 fi
3719 if test "${lt_cv_path_LD+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722 if test -z "$LD"; then
3723 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3724 for ac_dir in $PATH; do
3725 IFS="$lt_save_ifs"
3726 test -z "$ac_dir" && ac_dir=.
3727 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3728 lt_cv_path_LD="$ac_dir/$ac_prog"
3729 # Check to see if the program is GNU ld. I'd rather use --version,
3730 # but apparently some GNU ld's only accept -v.
3731 # Break only if it was the GNU/non-GNU ld that we prefer.
3732 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3733 test "$with_gnu_ld" != no && break
3734 else
3735 test "$with_gnu_ld" != yes && break
3736 fi
3737 fi
3738 done
3739 IFS="$lt_save_ifs"
3740 else
3741 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3742 fi
3743 fi
3744
3745 LD="$lt_cv_path_LD"
3746 if test -n "$LD"; then
3747 echo "$as_me:$LINENO: result: $LD" >&5
3748 echo "${ECHO_T}$LD" >&6
3749 else
3750 echo "$as_me:$LINENO: result: no" >&5
3751 echo "${ECHO_T}no" >&6
3752 fi
3753 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3754 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3755 { (exit 1); exit 1; }; }
3756 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3757 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3758 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3762 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3763 lt_cv_prog_gnu_ld=yes
3764 else
3765 lt_cv_prog_gnu_ld=no
3766 fi
3767 fi
3768 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3769 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3770 with_gnu_ld=$lt_cv_prog_gnu_ld
3771
3772
3773 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3774 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3775 if test "${lt_cv_ld_reload_flag+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778 lt_cv_ld_reload_flag='-r'
3779 fi
3780 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3781 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3782 reload_flag=$lt_cv_ld_reload_flag
3783 case $reload_flag in
3784 "" | " "*) ;;
3785 *) reload_flag=" $reload_flag" ;;
3786 esac
3787 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3788
3789 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3790 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3791 if test "${lt_cv_path_NM+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794 if test -n "$NM"; then
3795 # Let the user override the test.
3796 lt_cv_path_NM="$NM"
3797 else
3798 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3799 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3800 IFS="$lt_save_ifs"
3801 test -z "$ac_dir" && ac_dir=.
3802 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3803 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3804 # Check to see if the nm accepts a BSD-compat flag.
3805 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3806 # nm: unknown option "B" ignored
3807 # Tru64's nm complains that /dev/null is an invalid object file
3808 if ("$tmp_nm" -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3809 lt_cv_path_NM="$tmp_nm -B"
3810 break
3811 elif ("$tmp_nm" -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3812 lt_cv_path_NM="$tmp_nm -p"
3813 break
3814 else
3815 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3816 continue # so that we can try to find one that supports BSD flags
3817 fi
3818 fi
3819 done
3820 IFS="$lt_save_ifs"
3821 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3822 fi
3823 fi
3824 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3825 echo "${ECHO_T}$lt_cv_path_NM" >&6
3826 NM="$lt_cv_path_NM"
3827
3828 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3829 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3830 if test "${lt_cv_path_SED+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 else
3833 # Loop through the user's path and test for sed and gsed.
3834 # Then use that list of sed's as ones to test for truncation.
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH
3837 do
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
3840 for ac_prog in sed gsed; do
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3843 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3844 fi
3845 done
3846 done
3847 done
3848
3849 # Create a temporary directory, and hook for its removal unless debugging.
3850 $debug ||
3851 {
3852 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3853 trap '{ (exit 1); exit 1; }' 1 2 13 15
3854 }
3855
3856 # Create a (secure) tmp directory for tmp files.
3857 : ${TMPDIR=/tmp}
3858 {
3859 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3860 test -n "$tmp" && test -d "$tmp"
3861 } ||
3862 {
3863 tmp=$TMPDIR/sed$$-$RANDOM
3864 (umask 077 && mkdir $tmp)
3865 } ||
3866 {
3867 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3868 { (exit 1); exit 1; }
3869 }
3870 _max=0
3871 _count=0
3872 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3873 # along with /bin/sed that truncates output.
3874 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3875 test ! -f ${_sed} && break
3876 cat /dev/null > "$tmp/sed.in"
3877 _count=0
3878 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/sed.in"
3879 # Check for GNU sed and select it if it is found.
3880 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3881 lt_cv_path_SED=${_sed}
3882 break;
3883 fi
3884 while true; do
3885 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3886 mv "$tmp/sed.tmp" "$tmp/sed.in"
3887 cp "$tmp/sed.in" "$tmp/sed.nl"
3888 echo >>"$tmp/sed.nl"
3889 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3890 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3891 # 10000 chars as input seems more than enough
3892 test $_count -gt 10 && break
3893 _count=`expr $_count + 1`
3894 if test $_count -gt $_max; then
3895 _max=$_count
3896 lt_cv_path_SED=$_sed
3897 fi
3898 done
3899 done
3900 rm -rf "$tmp"
3901
3902 fi
3903
3904 echo "$as_me:$LINENO: result: $SED" >&5
3905 echo "${ECHO_T}$SED" >&6
3906
3907 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3908 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3909 LN_S=$as_ln_s
3910 if test "$LN_S" = "ln -s"; then
3911 echo "$as_me:$LINENO: result: yes" >&5
3912 echo "${ECHO_T}yes" >&6
3913 else
3914 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3915 echo "${ECHO_T}no, using $LN_S" >&6
3916 fi
3917
3918 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3919 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3920 if test "${lt_cv_deplibs_check_method+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923 lt_cv_file_magic_cmd='$MAGIC_CMD'
3924 lt_cv_file_magic_test_file=
3925 lt_cv_deplibs_check_method='unknown'
3926 # Need to set the preceding variable on all platforms that support
3927 # interlibrary dependencies.
3928 # 'none' -- dependencies not supported.
3929 # `unknown' -- same as none, but documents that we really don't know.
3930 # 'pass_all' -- all dependencies passed with no checks.
3931 # 'test_compile' -- check by making test program.
3932 # 'file_magic [[regex]]' -- check by looking for files in library path
3933 # which responds to the $file_magic_cmd with a given egrep regex.
3934 # If you have `file' or equivalent on your system and you're not sure
3935 # whether `pass_all' will *always* work, you probably want this one.
3936
3937 case $host_os in
3938 aix4* | aix5*)
3939 lt_cv_deplibs_check_method=pass_all
3940 ;;
3941
3942 beos*)
3943 lt_cv_deplibs_check_method=pass_all
3944 ;;
3945
3946 bsdi4*)
3947 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3948 lt_cv_file_magic_cmd='/usr/bin/file -L'
3949 lt_cv_file_magic_test_file=/shlib/libc.so
3950 ;;
3951
3952 cygwin* | mingw* | pw32*)
3953 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3954 lt_cv_file_magic_cmd='$OBJDUMP -f'
3955 ;;
3956
3957 darwin* | rhapsody*)
3958 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3959 lt_cv_file_magic_cmd='/usr/bin/file -L'
3960 case "$host_os" in
3961 rhapsody* | darwin1.[012])
3962 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3963 ;;
3964 *) # Darwin 1.3 on
3965 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3966 ;;
3967 esac
3968 ;;
3969
3970 freebsd*)
3971 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3972 case $host_cpu in
3973 i*86 )
3974 # Not sure whether the presence of OpenBSD here was a mistake.
3975 # Let's accept both of them until this is cleared up.
3976 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3977 lt_cv_file_magic_cmd=/usr/bin/file
3978 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3979 ;;
3980 esac
3981 else
3982 lt_cv_deplibs_check_method=pass_all
3983 fi
3984 ;;
3985
3986 gnu*)
3987 lt_cv_deplibs_check_method=pass_all
3988 ;;
3989
3990 hpux10.20* | hpux11*)
3991 lt_cv_file_magic_cmd=/usr/bin/file
3992 if test "$host_cpu" = ia64; then
3993 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3994 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3995 else
3996 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3997 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3998 fi
3999 ;;
4000
4001 irix5* | irix6* | nonstopux*)
4002 case $host_os in
4003 irix5* | nonstopux*)
4004 # this will be overridden with pass_all, but let us keep it just in case
4005 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4006 ;;
4007 *)
4008 case $LD in
4009 *-32|*"-32 ") libmagic=32-bit;;
4010 *-n32|*"-n32 ") libmagic=N32;;
4011 *-64|*"-64 ") libmagic=64-bit;;
4012 *) libmagic=never-match;;
4013 esac
4014 # this will be overridden with pass_all, but let us keep it just in case
4015 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4016 ;;
4017 esac
4018 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4019 lt_cv_deplibs_check_method=pass_all
4020 ;;
4021
4022 # This must be Linux ELF.
4023 linux*)
4024 case $host_cpu in
4025 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4026 lt_cv_deplibs_check_method=pass_all ;;
4027 *)
4028 # glibc up to 2.1.1 does not perform some relocations on ARM
4029 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4030 esac
4031 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4032 ;;
4033
4034 netbsd*)
4035 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4036 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4037 else
4038 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4039 fi
4040 ;;
4041
4042 newos6*)
4043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4044 lt_cv_file_magic_cmd=/usr/bin/file
4045 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4046 ;;
4047
4048 nto-qnx)
4049 lt_cv_deplibs_check_method=unknown
4050 ;;
4051
4052 openbsd*)
4053 lt_cv_file_magic_cmd=/usr/bin/file
4054 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4055 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4056 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4057 else
4058 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4059 fi
4060 ;;
4061
4062 osf3* | osf4* | osf5*)
4063 # this will be overridden with pass_all, but let us keep it just in case
4064 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4065 lt_cv_file_magic_test_file=/shlib/libc.so
4066 lt_cv_deplibs_check_method=pass_all
4067 ;;
4068
4069 sco3.2v5*)
4070 lt_cv_deplibs_check_method=pass_all
4071 ;;
4072
4073 solaris*)
4074 lt_cv_deplibs_check_method=pass_all
4075 lt_cv_file_magic_test_file=/lib/libc.so
4076 ;;
4077
4078 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4079 case $host_vendor in
4080 motorola)
4081 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]'
4082 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4083 ;;
4084 ncr)
4085 lt_cv_deplibs_check_method=pass_all
4086 ;;
4087 sequent)
4088 lt_cv_file_magic_cmd='/bin/file'
4089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4090 ;;
4091 sni)
4092 lt_cv_file_magic_cmd='/bin/file'
4093 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4094 lt_cv_file_magic_test_file=/lib/libc.so
4095 ;;
4096 esac
4097 ;;
4098
4099 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4100 lt_cv_deplibs_check_method=pass_all
4101 ;;
4102 esac
4103
4104 fi
4105 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4106 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4107 file_magic_cmd=$lt_cv_file_magic_cmd
4108 deplibs_check_method=$lt_cv_deplibs_check_method
4109 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4110
4111
4112
4113
4114 # If no C compiler was specified, use CC.
4115 LTCC=${LTCC-"$CC"}
4116
4117 # Allow CC to be a program name with arguments.
4118 set dummy $CC
4119 compiler="$2"
4120
4121
4122 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4123 if test "${enable_libtool_lock+set}" = set; then
4124 enableval="$enable_libtool_lock"
4125
4126 fi;
4127 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4128
4129 # Some flags need to be propagated to the compiler or linker for good
4130 # libtool support.
4131 case $host in
4132 ia64-*-hpux*)
4133 # Find out which ABI we are using.
4134 echo 'int i;' > conftest.$ac_ext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; then
4140 case `/usr/bin/file conftest.$ac_objext` in
4141 *ELF-32*)
4142 HPUX_IA64_MODE="32"
4143 ;;
4144 *ELF-64*)
4145 HPUX_IA64_MODE="64"
4146 ;;
4147 esac
4148 fi
4149 rm -rf conftest*
4150 ;;
4151 *-*-irix6*)
4152 # Find out which ABI we are using.
4153 echo '#line 4153 "configure"' > conftest.$ac_ext
4154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4155 (eval $ac_compile) 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; then
4159 case `/usr/bin/file conftest.$ac_objext` in
4160 *32-bit*)
4161 LD="${LD-ld} -32"
4162 ;;
4163 *N32*)
4164 LD="${LD-ld} -n32"
4165 ;;
4166 *64-bit*)
4167 LD="${LD-ld} -64"
4168 ;;
4169 esac
4170 fi
4171 rm -rf conftest*
4172 ;;
4173
4174 *-*-sco3.2v5*)
4175 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4176 SAVE_CFLAGS="$CFLAGS"
4177 CFLAGS="$CFLAGS -belf"
4178 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4179 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4180 if test "${lt_cv_cc_needs_belf+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183 ac_ext=c
4184 ac_cpp='$CPP $CPPFLAGS'
4185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188
4189 cat >conftest.$ac_ext <<_ACEOF
4190 #line $LINENO "configure"
4191 #include "confdefs.h"
4192
4193 #ifdef F77_DUMMY_MAIN
4194 # ifdef __cplusplus
4195 extern "C"
4196 # endif
4197 int F77_DUMMY_MAIN() { return 1; }
4198 #endif
4199 int
4200 main ()
4201 {
4202
4203 ;
4204 return 0;
4205 }
4206 _ACEOF
4207 rm -f conftest.$ac_objext conftest$ac_exeext
4208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4209 (eval $ac_link) 2>&5
4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } &&
4213 { ac_try='test -s conftest$ac_exeext'
4214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215 (eval $ac_try) 2>&5
4216 ac_status=$?
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; }; then
4219 lt_cv_cc_needs_belf=yes
4220 else
4221 echo "$as_me: failed program was:" >&5
4222 cat conftest.$ac_ext >&5
4223 lt_cv_cc_needs_belf=no
4224 fi
4225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4226 ac_ext=c
4227 ac_cpp='$CPP $CPPFLAGS'
4228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4231
4232 fi
4233 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4234 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4235 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4236 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4237 CFLAGS="$SAVE_CFLAGS"
4238 fi
4239 ;;
4240
4241 esac
4242
4243 need_locks="$enable_libtool_lock"
4244
4245
4246 ac_ext=c
4247 ac_cpp='$CPP $CPPFLAGS'
4248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4252 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4253 # On Suns, sometimes $CPP names a directory.
4254 if test -n "$CPP" && test -d "$CPP"; then
4255 CPP=
4256 fi
4257 if test -z "$CPP"; then
4258 if test "${ac_cv_prog_CPP+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4260 else
4261 # Double quotes because CPP needs to be expanded
4262 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4263 do
4264 ac_preproc_ok=false
4265 for ac_c_preproc_warn_flag in '' yes
4266 do
4267 # Use a header file that comes with gcc, so configuring glibc
4268 # with a fresh cross-compiler works.
4269 # On the NeXT, cc -E runs the code through the compiler's parser,
4270 # not just through cpp. "Syntax error" is here to catch this case.
4271 cat >conftest.$ac_ext <<_ACEOF
4272 #line $LINENO "configure"
4273 #include "confdefs.h"
4274 #include <assert.h>
4275 Syntax error
4276 _ACEOF
4277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4279 ac_status=$?
4280 egrep -v '^ *\+' conftest.er1 >conftest.err
4281 rm -f conftest.er1
4282 cat conftest.err >&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } >/dev/null; then
4285 if test -s conftest.err; then
4286 ac_cpp_err=$ac_c_preproc_warn_flag
4287 else
4288 ac_cpp_err=
4289 fi
4290 else
4291 ac_cpp_err=yes
4292 fi
4293 if test -z "$ac_cpp_err"; then
4294 :
4295 else
4296 echo "$as_me: failed program was:" >&5
4297 cat conftest.$ac_ext >&5
4298 # Broken: fails on valid input.
4299 continue
4300 fi
4301 rm -f conftest.err conftest.$ac_ext
4302
4303 # OK, works on sane cases. Now check whether non-existent headers
4304 # can be detected and how.
4305 cat >conftest.$ac_ext <<_ACEOF
4306 #line $LINENO "configure"
4307 #include "confdefs.h"
4308 #include <ac_nonexistent.h>
4309 _ACEOF
4310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4312 ac_status=$?
4313 egrep -v '^ *\+' conftest.er1 >conftest.err
4314 rm -f conftest.er1
4315 cat conftest.err >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } >/dev/null; then
4318 if test -s conftest.err; then
4319 ac_cpp_err=$ac_c_preproc_warn_flag
4320 else
4321 ac_cpp_err=
4322 fi
4323 else
4324 ac_cpp_err=yes
4325 fi
4326 if test -z "$ac_cpp_err"; then
4327 # Broken: success on invalid input.
4328 continue
4329 else
4330 echo "$as_me: failed program was:" >&5
4331 cat conftest.$ac_ext >&5
4332 # Passes both tests.
4333 ac_preproc_ok=:
4334 break
4335 fi
4336 rm -f conftest.err conftest.$ac_ext
4337
4338 done
4339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4340 rm -f conftest.err conftest.$ac_ext
4341 if $ac_preproc_ok; then
4342 break
4343 fi
4344
4345 done
4346 ac_cv_prog_CPP=$CPP
4347
4348 fi
4349 CPP=$ac_cv_prog_CPP
4350 else
4351 ac_cv_prog_CPP=$CPP
4352 fi
4353 echo "$as_me:$LINENO: result: $CPP" >&5
4354 echo "${ECHO_T}$CPP" >&6
4355 ac_preproc_ok=false
4356 for ac_c_preproc_warn_flag in '' yes
4357 do
4358 # Use a header file that comes with gcc, so configuring glibc
4359 # with a fresh cross-compiler works.
4360 # On the NeXT, cc -E runs the code through the compiler's parser,
4361 # not just through cpp. "Syntax error" is here to catch this case.
4362 cat >conftest.$ac_ext <<_ACEOF
4363 #line $LINENO "configure"
4364 #include "confdefs.h"
4365 #include <assert.h>
4366 Syntax error
4367 _ACEOF
4368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4370 ac_status=$?
4371 egrep -v '^ *\+' conftest.er1 >conftest.err
4372 rm -f conftest.er1
4373 cat conftest.err >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } >/dev/null; then
4376 if test -s conftest.err; then
4377 ac_cpp_err=$ac_c_preproc_warn_flag
4378 else
4379 ac_cpp_err=
4380 fi
4381 else
4382 ac_cpp_err=yes
4383 fi
4384 if test -z "$ac_cpp_err"; then
4385 :
4386 else
4387 echo "$as_me: failed program was:" >&5
4388 cat conftest.$ac_ext >&5
4389 # Broken: fails on valid input.
4390 continue
4391 fi
4392 rm -f conftest.err conftest.$ac_ext
4393
4394 # OK, works on sane cases. Now check whether non-existent headers
4395 # can be detected and how.
4396 cat >conftest.$ac_ext <<_ACEOF
4397 #line $LINENO "configure"
4398 #include "confdefs.h"
4399 #include <ac_nonexistent.h>
4400 _ACEOF
4401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4403 ac_status=$?
4404 egrep -v '^ *\+' conftest.er1 >conftest.err
4405 rm -f conftest.er1
4406 cat conftest.err >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } >/dev/null; then
4409 if test -s conftest.err; then
4410 ac_cpp_err=$ac_c_preproc_warn_flag
4411 else
4412 ac_cpp_err=
4413 fi
4414 else
4415 ac_cpp_err=yes
4416 fi
4417 if test -z "$ac_cpp_err"; then
4418 # Broken: success on invalid input.
4419 continue
4420 else
4421 echo "$as_me: failed program was:" >&5
4422 cat conftest.$ac_ext >&5
4423 # Passes both tests.
4424 ac_preproc_ok=:
4425 break
4426 fi
4427 rm -f conftest.err conftest.$ac_ext
4428
4429 done
4430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4431 rm -f conftest.err conftest.$ac_ext
4432 if $ac_preproc_ok; then
4433 :
4434 else
4435 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
4436 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
4437 { (exit 1); exit 1; }; }
4438 fi
4439
4440 ac_ext=c
4441 ac_cpp='$CPP $CPPFLAGS'
4442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4445
4446
4447 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4448 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4449 if test "${ac_cv_header_stdc+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452 cat >conftest.$ac_ext <<_ACEOF
4453 #line $LINENO "configure"
4454 #include "confdefs.h"
4455 #include <stdlib.h>
4456 #include <stdarg.h>
4457 #include <string.h>
4458 #include <float.h>
4459
4460 _ACEOF
4461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4463 ac_status=$?
4464 egrep -v '^ *\+' conftest.er1 >conftest.err
4465 rm -f conftest.er1
4466 cat conftest.err >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } >/dev/null; then
4469 if test -s conftest.err; then
4470 ac_cpp_err=$ac_c_preproc_warn_flag
4471 else
4472 ac_cpp_err=
4473 fi
4474 else
4475 ac_cpp_err=yes
4476 fi
4477 if test -z "$ac_cpp_err"; then
4478 ac_cv_header_stdc=yes
4479 else
4480 echo "$as_me: failed program was:" >&5
4481 cat conftest.$ac_ext >&5
4482 ac_cv_header_stdc=no
4483 fi
4484 rm -f conftest.err conftest.$ac_ext
4485
4486 if test $ac_cv_header_stdc = yes; then
4487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4488 cat >conftest.$ac_ext <<_ACEOF
4489 #line $LINENO "configure"
4490 #include "confdefs.h"
4491 #include <string.h>
4492
4493 _ACEOF
4494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4495 egrep "memchr" >/dev/null 2>&1; then
4496 :
4497 else
4498 ac_cv_header_stdc=no
4499 fi
4500 rm -f conftest*
4501
4502 fi
4503
4504 if test $ac_cv_header_stdc = yes; then
4505 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4506 cat >conftest.$ac_ext <<_ACEOF
4507 #line $LINENO "configure"
4508 #include "confdefs.h"
4509 #include <stdlib.h>
4510
4511 _ACEOF
4512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4513 egrep "free" >/dev/null 2>&1; then
4514 :
4515 else
4516 ac_cv_header_stdc=no
4517 fi
4518 rm -f conftest*
4519
4520 fi
4521
4522 if test $ac_cv_header_stdc = yes; then
4523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4524 if test "$cross_compiling" = yes; then
4525 :
4526 else
4527 cat >conftest.$ac_ext <<_ACEOF
4528 #line $LINENO "configure"
4529 #include "confdefs.h"
4530 #include <ctype.h>
4531 #if ((' ' & 0x0FF) == 0x020)
4532 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4533 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4534 #else
4535 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4536 || ('j' <= (c) && (c) <= 'r') \
4537 || ('s' <= (c) && (c) <= 'z'))
4538 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4539 #endif
4540
4541 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4542 int
4543 main ()
4544 {
4545 int i;
4546 for (i = 0; i < 256; i++)
4547 if (XOR (islower (i), ISLOWER (i))
4548 || toupper (i) != TOUPPER (i))
4549 exit(2);
4550 exit (0);
4551 }
4552 _ACEOF
4553 rm -f conftest$ac_exeext
4554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4555 (eval $ac_link) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 (eval $ac_try) 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4564 :
4565 else
4566 echo "$as_me: program exited with status $ac_status" >&5
4567 echo "$as_me: failed program was:" >&5
4568 cat conftest.$ac_ext >&5
4569 ( exit $ac_status )
4570 ac_cv_header_stdc=no
4571 fi
4572 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4573 fi
4574 fi
4575 fi
4576 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4577 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4578 if test $ac_cv_header_stdc = yes; then
4579
4580 cat >>confdefs.h <<\_ACEOF
4581 #define STDC_HEADERS 1
4582 _ACEOF
4583
4584 fi
4585
4586 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4597 inttypes.h stdint.h unistd.h
4598 do
4599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4600 echo "$as_me:$LINENO: checking for $ac_header" >&5
4601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605 cat >conftest.$ac_ext <<_ACEOF
4606 #line $LINENO "configure"
4607 #include "confdefs.h"
4608 $ac_includes_default
4609
4610 #include <$ac_header>
4611 _ACEOF
4612 rm -f conftest.$ac_objext
4613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4614 (eval $ac_compile) 2>&5
4615 ac_status=$?
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try='test -s conftest.$ac_objext'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 (eval $ac_try) 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 eval "$as_ac_Header=yes"
4625 else
4626 echo "$as_me: failed program was:" >&5
4627 cat conftest.$ac_ext >&5
4628 eval "$as_ac_Header=no"
4629 fi
4630 rm -f conftest.$ac_objext conftest.$ac_ext
4631 fi
4632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4635 cat >>confdefs.h <<_ACEOF
4636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4637 _ACEOF
4638
4639 fi
4640
4641 done
4642
4643
4644
4645 for ac_header in dlfcn.h
4646 do
4647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4649 echo "$as_me:$LINENO: checking for $ac_header" >&5
4650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 fi
4654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4656 else
4657 # Is the header compilable?
4658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4660 cat >conftest.$ac_ext <<_ACEOF
4661 #line $LINENO "configure"
4662 #include "confdefs.h"
4663 $ac_includes_default
4664 #include <$ac_header>
4665 _ACEOF
4666 rm -f conftest.$ac_objext
4667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4668 (eval $ac_compile) 2>&5
4669 ac_status=$?
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } &&
4672 { ac_try='test -s conftest.$ac_objext'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 (eval $ac_try) 2>&5
4675 ac_status=$?
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; }; then
4678 ac_header_compiler=yes
4679 else
4680 echo "$as_me: failed program was:" >&5
4681 cat conftest.$ac_ext >&5
4682 ac_header_compiler=no
4683 fi
4684 rm -f conftest.$ac_objext conftest.$ac_ext
4685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4686 echo "${ECHO_T}$ac_header_compiler" >&6
4687
4688 # Is the header present?
4689 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4691 cat >conftest.$ac_ext <<_ACEOF
4692 #line $LINENO "configure"
4693 #include "confdefs.h"
4694 #include <$ac_header>
4695 _ACEOF
4696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4698 ac_status=$?
4699 egrep -v '^ *\+' conftest.er1 >conftest.err
4700 rm -f conftest.er1
4701 cat conftest.err >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } >/dev/null; then
4704 if test -s conftest.err; then
4705 ac_cpp_err=$ac_c_preproc_warn_flag
4706 else
4707 ac_cpp_err=
4708 fi
4709 else
4710 ac_cpp_err=yes
4711 fi
4712 if test -z "$ac_cpp_err"; then
4713 ac_header_preproc=yes
4714 else
4715 echo "$as_me: failed program was:" >&5
4716 cat conftest.$ac_ext >&5
4717 ac_header_preproc=no
4718 fi
4719 rm -f conftest.err conftest.$ac_ext
4720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4721 echo "${ECHO_T}$ac_header_preproc" >&6
4722
4723 # So? What about this header?
4724 case $ac_header_compiler:$ac_header_preproc in
4725 yes:no )
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4730 no:yes )
4731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4737 esac
4738 echo "$as_me:$LINENO: checking for $ac_header" >&5
4739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743 eval "$as_ac_Header=$ac_header_preproc"
4744 fi
4745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4747
4748 fi
4749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4750 cat >>confdefs.h <<_ACEOF
4751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4752 _ACEOF
4753
4754 fi
4755
4756 done
4757
4758 ac_ext=cc
4759 ac_cpp='$CXXCPP $CPPFLAGS'
4760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4763 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4764 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4765 if test -z "$CXXCPP"; then
4766 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 else
4769 # Double quotes because CXXCPP needs to be expanded
4770 for CXXCPP in "$CXX -E" "/lib/cpp"
4771 do
4772 ac_preproc_ok=false
4773 for ac_cxx_preproc_warn_flag in '' yes
4774 do
4775 # Use a header file that comes with gcc, so configuring glibc
4776 # with a fresh cross-compiler works.
4777 # On the NeXT, cc -E runs the code through the compiler's parser,
4778 # not just through cpp. "Syntax error" is here to catch this case.
4779 cat >conftest.$ac_ext <<_ACEOF
4780 #line $LINENO "configure"
4781 #include "confdefs.h"
4782 #include <assert.h>
4783 Syntax error
4784 _ACEOF
4785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4787 ac_status=$?
4788 egrep -v '^ *\+' conftest.er1 >conftest.err
4789 rm -f conftest.er1
4790 cat conftest.err >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } >/dev/null; then
4793 if test -s conftest.err; then
4794 ac_cpp_err=$ac_cxx_preproc_warn_flag
4795 else
4796 ac_cpp_err=
4797 fi
4798 else
4799 ac_cpp_err=yes
4800 fi
4801 if test -z "$ac_cpp_err"; then
4802 :
4803 else
4804 echo "$as_me: failed program was:" >&5
4805 cat conftest.$ac_ext >&5
4806 # Broken: fails on valid input.
4807 continue
4808 fi
4809 rm -f conftest.err conftest.$ac_ext
4810
4811 # OK, works on sane cases. Now check whether non-existent headers
4812 # can be detected and how.
4813 cat >conftest.$ac_ext <<_ACEOF
4814 #line $LINENO "configure"
4815 #include "confdefs.h"
4816 #include <ac_nonexistent.h>
4817 _ACEOF
4818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4820 ac_status=$?
4821 egrep -v '^ *\+' conftest.er1 >conftest.err
4822 rm -f conftest.er1
4823 cat conftest.err >&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); } >/dev/null; then
4826 if test -s conftest.err; then
4827 ac_cpp_err=$ac_cxx_preproc_warn_flag
4828 else
4829 ac_cpp_err=
4830 fi
4831 else
4832 ac_cpp_err=yes
4833 fi
4834 if test -z "$ac_cpp_err"; then
4835 # Broken: success on invalid input.
4836 continue
4837 else
4838 echo "$as_me: failed program was:" >&5
4839 cat conftest.$ac_ext >&5
4840 # Passes both tests.
4841 ac_preproc_ok=:
4842 break
4843 fi
4844 rm -f conftest.err conftest.$ac_ext
4845
4846 done
4847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4848 rm -f conftest.err conftest.$ac_ext
4849 if $ac_preproc_ok; then
4850 break
4851 fi
4852
4853 done
4854 ac_cv_prog_CXXCPP=$CXXCPP
4855
4856 fi
4857 CXXCPP=$ac_cv_prog_CXXCPP
4858 else
4859 ac_cv_prog_CXXCPP=$CXXCPP
4860 fi
4861 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4862 echo "${ECHO_T}$CXXCPP" >&6
4863 ac_preproc_ok=false
4864 for ac_cxx_preproc_warn_flag in '' yes
4865 do
4866 # Use a header file that comes with gcc, so configuring glibc
4867 # with a fresh cross-compiler works.
4868 # On the NeXT, cc -E runs the code through the compiler's parser,
4869 # not just through cpp. "Syntax error" is here to catch this case.
4870 cat >conftest.$ac_ext <<_ACEOF
4871 #line $LINENO "configure"
4872 #include "confdefs.h"
4873 #include <assert.h>
4874 Syntax error
4875 _ACEOF
4876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4878 ac_status=$?
4879 egrep -v '^ *\+' conftest.er1 >conftest.err
4880 rm -f conftest.er1
4881 cat conftest.err >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } >/dev/null; then
4884 if test -s conftest.err; then
4885 ac_cpp_err=$ac_cxx_preproc_warn_flag
4886 else
4887 ac_cpp_err=
4888 fi
4889 else
4890 ac_cpp_err=yes
4891 fi
4892 if test -z "$ac_cpp_err"; then
4893 :
4894 else
4895 echo "$as_me: failed program was:" >&5
4896 cat conftest.$ac_ext >&5
4897 # Broken: fails on valid input.
4898 continue
4899 fi
4900 rm -f conftest.err conftest.$ac_ext
4901
4902 # OK, works on sane cases. Now check whether non-existent headers
4903 # can be detected and how.
4904 cat >conftest.$ac_ext <<_ACEOF
4905 #line $LINENO "configure"
4906 #include "confdefs.h"
4907 #include <ac_nonexistent.h>
4908 _ACEOF
4909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4911 ac_status=$?
4912 egrep -v '^ *\+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } >/dev/null; then
4917 if test -s conftest.err; then
4918 ac_cpp_err=$ac_cxx_preproc_warn_flag
4919 else
4920 ac_cpp_err=
4921 fi
4922 else
4923 ac_cpp_err=yes
4924 fi
4925 if test -z "$ac_cpp_err"; then
4926 # Broken: success on invalid input.
4927 continue
4928 else
4929 echo "$as_me: failed program was:" >&5
4930 cat conftest.$ac_ext >&5
4931 # Passes both tests.
4932 ac_preproc_ok=:
4933 break
4934 fi
4935 rm -f conftest.err conftest.$ac_ext
4936
4937 done
4938 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4939 rm -f conftest.err conftest.$ac_ext
4940 if $ac_preproc_ok; then
4941 :
4942 else
4943 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4944 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4945 { (exit 1); exit 1; }; }
4946 fi
4947
4948 ac_ext=cc
4949 ac_cpp='$CXXCPP $CPPFLAGS'
4950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4953
4954
4955 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4956
4957 # find the maximum length of command line arguments
4958 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4959 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4960 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 else
4963 i=0
4964 testring="ABCD"
4965
4966 case $host_os in
4967 msdosdjgpp*)
4968 # On DJGPP, this test can blow up pretty badly due to problems in libc
4969 # (any single argument exceeding 2000 bytes causes a buffer overrun
4970 # during glob expansion). Even if it were fixed, the result of this
4971 # check would be larger than it should be.
4972 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4973 ;;
4974
4975 gnu*)
4976 # Under GNU Hurd, this test is not required because there is
4977 # no limit to the length of command line arguments.
4978 # Libtool will interpret -1 as no limit whatsoever
4979 lt_cv_sys_max_cmd_len=-1;
4980 ;;
4981
4982 *)
4983 # If test is not a shell built-in, we'll probably end up computing a
4984 # maximum length that is only half of the actual maximum length, but
4985 # we can't tell.
4986 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4987 = "XX$testring") >/dev/null 2>&1 &&
4988 new_result=`expr "X$testring" : ".*" 2>&1` &&
4989 lt_cv_sys_max_cmd_len=$new_result &&
4990 test $i != 17 # 1/2 MB should be enough
4991 do
4992 i=`expr $i + 1`
4993 testring=$testring$testring
4994 done
4995 testring=
4996 # Add a significant safety factor because C++ compilers can tack on massive
4997 # amounts of additional arguments before passing them to the linker.
4998 # It appears as though 1/2 is a usable value.
4999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5000 ;;
5001 esac
5002
5003 fi
5004
5005 if test -n $lt_cv_sys_max_cmd_len ; then
5006 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5007 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5008 else
5009 echo "$as_me:$LINENO: result: none" >&5
5010 echo "${ECHO_T}none" >&6
5011 fi
5012
5013
5014
5015
5016 # Check for command to grab the raw symbol name followed by C symbol from nm.
5017 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5018 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5019 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022
5023 # These are sane defaults that work on at least a few old systems.
5024 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5025
5026 # Character class describing NM global symbol codes.
5027 symcode='[BCDEGRST]'
5028
5029 # Regexp to match symbols that can be accessed directly from C.
5030 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5031
5032 # Transform the above into a raw symbol and a C symbol.
5033 symxfrm='\1 \2\3 \3'
5034
5035 # Transform an extracted symbol line into a proper C declaration
5036 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5037
5038 # Transform an extracted symbol line into symbol name and symbol address
5039 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5040
5041 # Define system-specific variables.
5042 case $host_os in
5043 aix*)
5044 symcode='[BCDT]'
5045 ;;
5046 cygwin* | mingw* | pw32*)
5047 symcode='[ABCDGISTW]'
5048 ;;
5049 hpux*) # Its linker distinguishes data from code symbols
5050 if test "$host_cpu" = ia64; then
5051 symcode='[ABCDEGRST]'
5052 fi
5053 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5054 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5055 ;;
5056 irix* | nonstopux*)
5057 symcode='[BCDEGRST]'
5058 ;;
5059 solaris* | sysv5*)
5060 symcode='[BDT]'
5061 ;;
5062 sysv4)
5063 symcode='[DFNSTU]'
5064 ;;
5065 esac
5066
5067 # Handle CRLF in mingw tool chain
5068 opt_cr=
5069 case $host_os in
5070 mingw*)
5071 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5072 ;;
5073 esac
5074
5075 # If we're using GNU nm, then use its standard symbol codes.
5076 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
5077 symcode='[ABCDGISTW]'
5078 fi
5079
5080 # Try without a prefix undercore, then with it.
5081 for ac_symprfx in "" "_"; do
5082
5083 # Write the raw and C identifiers.
5084 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5085
5086 # Check to see that the pipe works correctly.
5087 pipe_works=no
5088
5089 rm -f conftest*
5090 cat > conftest.$ac_ext <<EOF
5091 #ifdef __cplusplus
5092 extern "C" {
5093 #endif
5094 char nm_test_var;
5095 void nm_test_func(){}
5096 #ifdef __cplusplus
5097 }
5098 #endif
5099 int main(){nm_test_var='a';nm_test_func();return(0);}
5100 EOF
5101
5102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5103 (eval $ac_compile) 2>&5
5104 ac_status=$?
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; then
5107 # Now try to grab the symbols.
5108 nlist=conftest.nm
5109 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5110 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5111 ac_status=$?
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } && test -s "$nlist"; then
5114 # Try sorting and uniquifying the output.
5115 if sort "$nlist" | uniq > "$nlist"T; then
5116 mv -f "$nlist"T "$nlist"
5117 else
5118 rm -f "$nlist"T
5119 fi
5120
5121 # Make sure that we snagged all the symbols we need.
5122 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
5123 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
5124 cat <<EOF > conftest.$ac_ext
5125 #ifdef __cplusplus
5126 extern "C" {
5127 #endif
5128
5129 EOF
5130 # Now generate the symbol file.
5131 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5132
5133 cat <<EOF >> conftest.$ac_ext
5134 #if defined (__STDC__) && __STDC__
5135 # define lt_ptr_t void *
5136 #else
5137 # define lt_ptr_t char *
5138 # define const
5139 #endif
5140
5141 /* The mapping between symbol names and symbols. */
5142 const struct {
5143 const char *name;
5144 lt_ptr_t address;
5145 }
5146 lt_preloaded_symbols[] =
5147 {
5148 EOF
5149 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5150 cat <<\EOF >> conftest.$ac_ext
5151 {0, (lt_ptr_t) 0}
5152 };
5153
5154 #ifdef __cplusplus
5155 }
5156 #endif
5157 EOF
5158 # Now try linking the two files.
5159 mv conftest.$ac_objext conftstm.$ac_objext
5160 lt_save_LIBS="$LIBS"
5161 lt_save_CFLAGS="$CFLAGS"
5162 LIBS="conftstm.$ac_objext"
5163 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5165 (eval $ac_link) 2>&5
5166 ac_status=$?
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5169 pipe_works=yes
5170 fi
5171 LIBS="$lt_save_LIBS"
5172 CFLAGS="$lt_save_CFLAGS"
5173 else
5174 echo "cannot find nm_test_func in $nlist" >&5
5175 fi
5176 else
5177 echo "cannot find nm_test_var in $nlist" >&5
5178 fi
5179 else
5180 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5181 fi
5182 else
5183 echo "$progname: failed program was:" >&5
5184 cat conftest.$ac_ext >&5
5185 fi
5186 rm -f conftest* conftst*
5187
5188 # Do not use the global_symbol_pipe unless it works.
5189 if test "$pipe_works" = yes; then
5190 break
5191 else
5192 lt_cv_sys_global_symbol_pipe=
5193 fi
5194 done
5195
5196 fi
5197
5198 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5199 lt_cv_sys_global_symbol_to_cdecl=
5200 fi
5201 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5202 echo "$as_me:$LINENO: result: failed" >&5
5203 echo "${ECHO_T}failed" >&6
5204 else
5205 echo "$as_me:$LINENO: result: ok" >&5
5206 echo "${ECHO_T}ok" >&6
5207 fi
5208
5209 echo "$as_me:$LINENO: checking for objdir" >&5
5210 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5211 if test "${lt_cv_objdir+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214 rm -f .libs 2>/dev/null
5215 mkdir .libs 2>/dev/null
5216 if test -d .libs; then
5217 lt_cv_objdir=.libs
5218 else
5219 # MS-DOS does not allow filenames that begin with a dot.
5220 lt_cv_objdir=_libs
5221 fi
5222 rmdir .libs 2>/dev/null
5223 fi
5224 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5225 echo "${ECHO_T}$lt_cv_objdir" >&6
5226 objdir=$lt_cv_objdir
5227
5228
5229
5230
5231
5232 case $host_os in
5233 aix3*)
5234 # AIX sometimes has problems with the GCC collect2 program. For some
5235 # reason, if we set the COLLECT_NAMES environment variable, the problems
5236 # vanish in a puff of smoke.
5237 if test "X${COLLECT_NAMES+set}" != Xset; then
5238 COLLECT_NAMES=
5239 export COLLECT_NAMES
5240 fi
5241 ;;
5242 esac
5243
5244 # Sed substitution that helps us do robust quoting. It backslashifies
5245 # metacharacters that are still active within double-quoted strings.
5246 Xsed='sed -e s/^X//'
5247 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5248
5249 # Same as above, but do not quote variable references.
5250 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5251
5252 # Sed substitution to delay expansion of an escaped shell variable in a
5253 # double_quote_subst'ed string.
5254 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5255
5256 # Sed substitution to avoid accidental globbing in evaled expressions
5257 no_glob_subst='s/\*/\\\*/g'
5258
5259 # Constants:
5260 rm="rm -f"
5261
5262 # Global variables:
5263 default_ofile=libtool
5264 can_build_shared=yes
5265
5266 # All known linkers require a `.a' archive for static linking (except M$VC,
5267 # which needs '.lib').
5268 libext=a
5269 ltmain="$ac_aux_dir/ltmain.sh"
5270 ofile="$default_ofile"
5271 with_gnu_ld="$lt_cv_prog_gnu_ld"
5272
5273 if test -n "$ac_tool_prefix"; then
5274 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5275 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5276 echo "$as_me:$LINENO: checking for $ac_word" >&5
5277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5278 if test "${ac_cv_prog_RANLIB+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281 if test -n "$RANLIB"; then
5282 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5283 else
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5286 do
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5291 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 break 2
5294 fi
5295 done
5296 done
5297
5298 fi
5299 fi
5300 RANLIB=$ac_cv_prog_RANLIB
5301 if test -n "$RANLIB"; then
5302 echo "$as_me:$LINENO: result: $RANLIB" >&5
5303 echo "${ECHO_T}$RANLIB" >&6
5304 else
5305 echo "$as_me:$LINENO: result: no" >&5
5306 echo "${ECHO_T}no" >&6
5307 fi
5308
5309 fi
5310 if test -z "$ac_cv_prog_RANLIB"; then
5311 ac_ct_RANLIB=$RANLIB
5312 # Extract the first word of "ranlib", so it can be a program name with args.
5313 set dummy ranlib; ac_word=$2
5314 echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5316 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319 if test -n "$ac_ct_RANLIB"; then
5320 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5321 else
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5324 do
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5329 ac_cv_prog_ac_ct_RANLIB="ranlib"
5330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 break 2
5332 fi
5333 done
5334 done
5335
5336 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5337 fi
5338 fi
5339 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5340 if test -n "$ac_ct_RANLIB"; then
5341 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5342 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5343 else
5344 echo "$as_me:$LINENO: result: no" >&5
5345 echo "${ECHO_T}no" >&6
5346 fi
5347
5348 RANLIB=$ac_ct_RANLIB
5349 else
5350 RANLIB="$ac_cv_prog_RANLIB"
5351 fi
5352
5353 if test -n "$ac_tool_prefix"; then
5354 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5355 set dummy ${ac_tool_prefix}strip; ac_word=$2
5356 echo "$as_me:$LINENO: checking for $ac_word" >&5
5357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5358 if test "${ac_cv_prog_STRIP+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 else
5361 if test -n "$STRIP"; then
5362 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5363 else
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH
5366 do
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5371 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 break 2
5374 fi
5375 done
5376 done
5377
5378 fi
5379 fi
5380 STRIP=$ac_cv_prog_STRIP
5381 if test -n "$STRIP"; then
5382 echo "$as_me:$LINENO: result: $STRIP" >&5
5383 echo "${ECHO_T}$STRIP" >&6
5384 else
5385 echo "$as_me:$LINENO: result: no" >&5
5386 echo "${ECHO_T}no" >&6
5387 fi
5388
5389 fi
5390 if test -z "$ac_cv_prog_STRIP"; then
5391 ac_ct_STRIP=$STRIP
5392 # Extract the first word of "strip", so it can be a program name with args.
5393 set dummy strip; ac_word=$2
5394 echo "$as_me:$LINENO: checking for $ac_word" >&5
5395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5396 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5399 if test -n "$ac_ct_STRIP"; then
5400 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5401 else
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 for as_dir in $PATH
5404 do
5405 IFS=$as_save_IFS
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409 ac_cv_prog_ac_ct_STRIP="strip"
5410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 break 2
5412 fi
5413 done
5414 done
5415
5416 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5417 fi
5418 fi
5419 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5420 if test -n "$ac_ct_STRIP"; then
5421 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5422 echo "${ECHO_T}$ac_ct_STRIP" >&6
5423 else
5424 echo "$as_me:$LINENO: result: no" >&5
5425 echo "${ECHO_T}no" >&6
5426 fi
5427
5428 STRIP=$ac_ct_STRIP
5429 else
5430 STRIP="$ac_cv_prog_STRIP"
5431 fi
5432
5433
5434 old_CC="$CC"
5435 old_CFLAGS="$CFLAGS"
5436
5437 # Set sane defaults for various variables
5438 test -z "$AR" && AR=ar
5439 test -z "$AR_FLAGS" && AR_FLAGS=cru
5440 test -z "$AS" && AS=as
5441 test -z "$CC" && CC=cc
5442 test -z "$LTCC" && LTCC=$CC
5443 test -z "$DLLTOOL" && DLLTOOL=dlltool
5444 test -z "$LD" && LD=ld
5445 test -z "$LN_S" && LN_S="ln -s"
5446 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5447 test -z "$NM" && NM=nm
5448 test -z "$SED" && SED=sed
5449 test -z "$OBJDUMP" && OBJDUMP=objdump
5450 test -z "$RANLIB" && RANLIB=:
5451 test -z "$STRIP" && STRIP=:
5452 test -z "$ac_objext" && ac_objext=o
5453
5454 # Determine commands to create old-style static archives.
5455 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5456 old_postinstall_cmds='chmod 644 $oldlib'
5457 old_postuninstall_cmds=
5458
5459 if test -n "$RANLIB"; then
5460 case $host_os in
5461 openbsd*)
5462 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5463 ;;
5464 *)
5465 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5466 ;;
5467 esac
5468 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5469 fi
5470
5471 # Only perform the check for file, if the check method requires it
5472 case $deplibs_check_method in
5473 file_magic*)
5474 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5475 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5476 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5477 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 else
5480 case $MAGIC_CMD in
5481 [\\/*] | ?:[\\/]*)
5482 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5483 ;;
5484 *)
5485 lt_save_MAGIC_CMD="$MAGIC_CMD"
5486 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5487 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5488 for ac_dir in $ac_dummy; do
5489 IFS="$lt_save_ifs"
5490 test -z "$ac_dir" && ac_dir=.
5491 if test -f $ac_dir/${ac_tool_prefix}file; then
5492 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5493 if test -n "$file_magic_test_file"; then
5494 case $deplibs_check_method in
5495 "file_magic "*)
5496 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5497 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5498 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5499 egrep "$file_magic_regex" > /dev/null; then
5500 :
5501 else
5502 cat <<EOF 1>&2
5503
5504 *** Warning: the command libtool uses to detect shared libraries,
5505 *** $file_magic_cmd, produces output that libtool cannot recognize.
5506 *** The result is that libtool may fail to recognize shared libraries
5507 *** as such. This will affect the creation of libtool libraries that
5508 *** depend on shared libraries, but programs linked with such libtool
5509 *** libraries will work regardless of this problem. Nevertheless, you
5510 *** may want to report the problem to your system manager and/or to
5511 *** bug-libtool@gnu.org
5512
5513 EOF
5514 fi ;;
5515 esac
5516 fi
5517 break
5518 fi
5519 done
5520 IFS="$lt_save_ifs"
5521 MAGIC_CMD="$lt_save_MAGIC_CMD"
5522 ;;
5523 esac
5524 fi
5525
5526 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5527 if test -n "$MAGIC_CMD"; then
5528 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5529 echo "${ECHO_T}$MAGIC_CMD" >&6
5530 else
5531 echo "$as_me:$LINENO: result: no" >&5
5532 echo "${ECHO_T}no" >&6
5533 fi
5534
5535 if test -z "$lt_cv_path_MAGIC_CMD"; then
5536 if test -n "$ac_tool_prefix"; then
5537 echo "$as_me:$LINENO: checking for file" >&5
5538 echo $ECHO_N "checking for file... $ECHO_C" >&6
5539 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 else
5542 case $MAGIC_CMD in
5543 [\\/*] | ?:[\\/]*)
5544 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5545 ;;
5546 *)
5547 lt_save_MAGIC_CMD="$MAGIC_CMD"
5548 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5549 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5550 for ac_dir in $ac_dummy; do
5551 IFS="$lt_save_ifs"
5552 test -z "$ac_dir" && ac_dir=.
5553 if test -f $ac_dir/file; then
5554 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5555 if test -n "$file_magic_test_file"; then
5556 case $deplibs_check_method in
5557 "file_magic "*)
5558 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5559 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5560 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5561 egrep "$file_magic_regex" > /dev/null; then
5562 :
5563 else
5564 cat <<EOF 1>&2
5565
5566 *** Warning: the command libtool uses to detect shared libraries,
5567 *** $file_magic_cmd, produces output that libtool cannot recognize.
5568 *** The result is that libtool may fail to recognize shared libraries
5569 *** as such. This will affect the creation of libtool libraries that
5570 *** depend on shared libraries, but programs linked with such libtool
5571 *** libraries will work regardless of this problem. Nevertheless, you
5572 *** may want to report the problem to your system manager and/or to
5573 *** bug-libtool@gnu.org
5574
5575 EOF
5576 fi ;;
5577 esac
5578 fi
5579 break
5580 fi
5581 done
5582 IFS="$lt_save_ifs"
5583 MAGIC_CMD="$lt_save_MAGIC_CMD"
5584 ;;
5585 esac
5586 fi
5587
5588 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5589 if test -n "$MAGIC_CMD"; then
5590 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5591 echo "${ECHO_T}$MAGIC_CMD" >&6
5592 else
5593 echo "$as_me:$LINENO: result: no" >&5
5594 echo "${ECHO_T}no" >&6
5595 fi
5596
5597 else
5598 MAGIC_CMD=:
5599 fi
5600 fi
5601
5602 fi
5603 ;;
5604 esac
5605
5606 enable_dlopen=no
5607 enable_win32_dll=no
5608
5609 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5610 if test "${enable_libtool_lock+set}" = set; then
5611 enableval="$enable_libtool_lock"
5612
5613 fi;
5614 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5615
5616
5617 # Check whether --with-pic or --without-pic was given.
5618 if test "${with_pic+set}" = set; then
5619 withval="$with_pic"
5620 pic_mode="$withval"
5621 else
5622 pic_mode=default
5623 fi;
5624 test -z "$pic_mode" && pic_mode=default
5625
5626 # Use C for the default configuration in the libtool script
5627 tagname=
5628 lt_save_CC="$CC"
5629 ac_ext=c
5630 ac_cpp='$CPP $CPPFLAGS'
5631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5634
5635
5636 # Source file extension for C test sources.
5637 ac_ext=c
5638
5639 # Object file extension for compiled C test sources.
5640 objext=o
5641 objext=$objext
5642
5643 # Code to be used in simple compile tests
5644 lt_simple_compile_test_code="int some_variable = 0;"
5645
5646 # Code to be used in simple link tests
5647 lt_simple_link_test_code='main(){return(0);}'
5648
5649
5650 # If no C compiler was specified, use CC.
5651 LTCC=${LTCC-"$CC"}
5652
5653 # Allow CC to be a program name with arguments.
5654 set dummy $CC
5655 compiler="$2"
5656
5657
5658 #
5659 # Check for any special shared library compilation flags.
5660 #
5661 lt_prog_cc_shlib=
5662 if test "$GCC" = no; then
5663 case $host_os in
5664 sco3.2v5*)
5665 lt_prog_cc_shlib='-belf'
5666 ;;
5667 esac
5668 fi
5669 if test -n "$lt_prog_cc_shlib"; then
5670 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5671 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5672 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5673 else
5674 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5675 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5676 lt_cv_prog_cc_can_build_shared=no
5677 fi
5678 fi
5679
5680
5681 #
5682 # Check to make sure the static flag actually works.
5683 #
5684 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5685 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5686 if test "${lt_prog_compiler_static_works+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689 lt_prog_compiler_static_works=no
5690 save_LDFLAGS="$LDFLAGS"
5691 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5692 echo "$lt_simple_link_test_code" > conftest.$ac_ext
5693 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5694 # The compiler can only warn and ignore the option if not recognized
5695 # So say no if there are warnings
5696 if test -s conftest.err; then
5697 # Append any errors to the config.log.
5698 cat conftest.err 1>&5
5699 else
5700 lt_prog_compiler_static_works=yes
5701 fi
5702 fi
5703 $rm conftest*
5704 LDFLAGS="$save_LDFLAGS"
5705
5706 fi
5707 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5708 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5709
5710 if test x"$lt_prog_compiler_static_works" = xyes; then
5711 :
5712 else
5713 lt_prog_compiler_static=
5714 fi
5715
5716
5717
5718
5719 lt_prog_compiler_no_builtin_flag=
5720
5721 if test "$GCC" = yes; then
5722 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5723
5724 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5725 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5726 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 else
5729 lt_cv_prog_compiler_rtti_exceptions=no
5730 ac_outfile=conftest.$ac_objext
5731 save_CFLAGS="$CFLAGS"
5732 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5734 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
5735 # The compiler can only warn and ignore the option if not recognized
5736 # So say no if there are warnings
5737 if test -s conftest.err; then
5738 # Append any errors to the config.log.
5739 cat conftest.err 1>&5
5740 else
5741 lt_cv_prog_compiler_rtti_exceptions=yes
5742 fi
5743 fi
5744 $rm conftest*
5745 CFLAGS="$save_CFLAGS"
5746
5747 fi
5748 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5749 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5750
5751 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5752 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5753 else
5754 :
5755 fi
5756
5757 fi
5758
5759 lt_prog_compiler_wl=
5760 lt_prog_compiler_pic=
5761 lt_prog_compiler_static=
5762
5763 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5764 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5765
5766 if test "$GCC" = yes; then
5767 lt_prog_compiler_wl='-Wl,'
5768 lt_prog_compiler_static='-static'
5769
5770 case $host_os in
5771 aix*)
5772 # All AIX code is PIC.
5773 if test "$host_cpu" = ia64; then
5774 # AIX 5 now supports IA64 processor
5775 lt_prog_compiler_static='-Bstatic'
5776 fi
5777 ;;
5778
5779 amigaos*)
5780 # FIXME: we need at least 68020 code to build shared libraries, but
5781 # adding the `-m68020' flag to GCC prevents building anything better,
5782 # like `-m68040'.
5783 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5784 ;;
5785
5786 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5787 # PIC is the default for these OSes.
5788 ;;
5789
5790 mingw* | pw32* | os2*)
5791 # This hack is so that the source file can tell whether it is being
5792 # built for inclusion in a dll (and should export symbols for example).
5793 lt_prog_compiler_pic='-DDLL_EXPORT'
5794 ;;
5795
5796 darwin* | rhapsody*)
5797 # PIC is the default on this platform
5798 # Common symbols not allowed in MH_DYLIB files
5799 lt_prog_compiler_pic='-fno-common'
5800 ;;
5801
5802 msdosdjgpp*)
5803 # Just because we use GCC doesn't mean we suddenly get shared libraries
5804 # on systems that don't support them.
5805 lt_prog_compiler_can_build_shared=no
5806 enable_shared=no
5807 ;;
5808
5809 sysv4*MP*)
5810 if test -d /usr/nec; then
5811 lt_prog_compiler_pic=-Kconform_pic
5812 fi
5813 ;;
5814
5815 hpux*)
5816 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
5817 if test "$host_cpu" != ia64; then
5818 lt_prog_compiler_pic='-fPIC'
5819 fi
5820 ;;
5821
5822 *)
5823 lt_prog_compiler_pic='-fPIC'
5824 ;;
5825 esac
5826 else
5827 # PORTME Check for flag to pass linker flags through the system compiler.
5828 case $host_os in
5829 aix*)
5830 lt_prog_compiler_wl='-Wl,'
5831 if test "$host_cpu" = ia64; then
5832 # AIX 5 now supports IA64 processor
5833 lt_prog_compiler_static='-Bstatic'
5834 else
5835 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5836 fi
5837 ;;
5838
5839 mingw* | pw32* | os2*)
5840 # This hack is so that the source file can tell whether it is being
5841 # built for inclusion in a dll (and should export symbols for example).
5842 lt_prog_compiler_pic='-DDLL_EXPORT'
5843 ;;
5844
5845 hpux9* | hpux10* | hpux11*)
5846 lt_prog_compiler_wl='-Wl,'
5847 if test "$host_cpu" != ia64; then
5848 lt_prog_compiler_pic='+Z'
5849 fi
5850 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5851 lt_prog_compiler_static='${wl}-a ${wl}archive'
5852 ;;
5853
5854 irix5* | irix6* | nonstopux*)
5855 lt_prog_compiler_wl='-Wl,'
5856 # PIC (with -KPIC) is the default.
5857 lt_prog_compiler_static='-non_shared'
5858 ;;
5859
5860 newsos6)
5861 lt_prog_compiler_pic='-KPIC'
5862 lt_prog_compiler_static='-Bstatic'
5863 ;;
5864
5865 osf3* | osf4* | osf5*)
5866 lt_prog_compiler_wl='-Wl,'
5867 # All OSF/1 code is PIC.
5868 lt_prog_compiler_static='-non_shared'
5869 ;;
5870
5871 sco3.2v5*)
5872 lt_prog_compiler_pic='-Kpic'
5873 lt_prog_compiler_static='-dn'
5874 ;;
5875
5876 solaris*)
5877 lt_prog_compiler_wl='-Wl,'
5878 lt_prog_compiler_pic='-KPIC'
5879 lt_prog_compiler_static='-Bstatic'
5880 ;;
5881
5882 sunos4*)
5883 lt_prog_compiler_wl='-Qoption ld '
5884 lt_prog_compiler_pic='-PIC'
5885 lt_prog_compiler_static='-Bstatic'
5886 ;;
5887
5888 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5889 if test "x$host_vendor" = xsni; then
5890 lt_prog_compiler_wl='-LD'
5891 else
5892 lt_prog_compiler_wl='-Wl,'
5893 fi
5894 lt_prog_compiler_pic='-KPIC'
5895 lt_prog_compiler_static='-Bstatic'
5896 ;;
5897
5898 sysv4*MP*)
5899 if test -d /usr/nec ;then
5900 lt_prog_compiler_pic='-Kconform_pic'
5901 lt_prog_compiler_static='-Bstatic'
5902 fi
5903 ;;
5904
5905 uts4*)
5906 lt_prog_compiler_pic='-pic'
5907 lt_prog_compiler_static='-Bstatic'
5908 ;;
5909
5910 *)
5911 lt_prog_compiler_can_build_shared=no
5912 ;;
5913 esac
5914 fi
5915
5916 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5917 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5918
5919 #
5920 # Check to make sure the PIC flag actually works.
5921 #
5922 if test -n "$lt_prog_compiler_pic"; then
5923 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5924 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5925 if test "${lt_prog_compiler_pic_works+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928 lt_prog_compiler_pic_works=no
5929 ac_outfile=conftest.$ac_objext
5930 save_CFLAGS="$CFLAGS"
5931 CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC"
5932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5933 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
5934 # The compiler can only warn and ignore the option if not recognized
5935 # So say no if there are warnings
5936 if test -s conftest.err; then
5937 # Append any errors to the config.log.
5938 cat conftest.err 1>&5
5939 else
5940 lt_prog_compiler_pic_works=yes
5941 fi
5942 fi
5943 $rm conftest*
5944 CFLAGS="$save_CFLAGS"
5945
5946 fi
5947 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5948 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5949
5950 if test x"$lt_prog_compiler_pic_works" = xyes; then
5951 case $lt_prog_compiler_pic in
5952 "" | " "*) ;;
5953 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5954 esac
5955 else
5956 lt_prog_compiler_pic=
5957 lt_prog_compiler_can_build_shared=no
5958 fi
5959
5960 fi
5961 case "$host_os" in
5962 # For platforms which do not support PIC, -DPIC is meaningless:
5963 *djgpp*)
5964 lt_prog_compiler_pic=
5965 ;;
5966 *)
5967 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5968 ;;
5969 esac
5970
5971 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5972 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5973 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976 lt_cv_prog_compiler_c_o=no
5977 $rm -r conftest 2>/dev/null
5978 mkdir conftest
5979 cd conftest
5980 mkdir out
5981 save_CFLAGS="$CFLAGS"
5982 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5984
5985 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5986 # that will create temporary files in the current directory regardless of
5987 # the output directory. Thus, making CWD read-only will cause this test
5988 # to fail, enabling locking or at least warning the user not to do parallel
5989 # builds.
5990 chmod -w .
5991
5992 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
5993 then
5994 # The compiler can only warn and ignore the option if not recognized
5995 # So say no if there are warnings
5996 if test -s out/conftest.err; then
5997 # Append any errors to the config.log.
5998 cat out/conftest.err 1>&5
5999 else
6000 lt_cv_prog_compiler_c_o=yes
6001 fi
6002 fi
6003 CFLAGS="$save_CFLAGS"
6004 chmod u+w .
6005 $rm conftest* out/*
6006 rmdir out
6007 cd ..
6008 rmdir conftest
6009 $rm conftest*
6010
6011 fi
6012 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6013 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6014
6015
6016 hard_links="nottested"
6017 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6018 # do not overwrite the value of need_locks provided by the user
6019 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6020 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6021 hard_links=yes
6022 $rm conftest*
6023 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6024 touch conftest.a
6025 ln conftest.a conftest.b 2>&5 || hard_links=no
6026 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6027 echo "$as_me:$LINENO: result: $hard_links" >&5
6028 echo "${ECHO_T}$hard_links" >&6
6029 if test "$hard_links" = no; then
6030 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6031 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6032 need_locks=warn
6033 fi
6034 else
6035 need_locks=no
6036 fi
6037
6038 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6039 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6040
6041 runpath_var=
6042 allow_undefined_flag=
6043
6044 archive_cmds=
6045 archive_cmds_need_lc=
6046 archive_expsym_cmds=
6047 old_archive_From_new_cmds=
6048 old_archive_from_expsyms_cmds=
6049 export_dynamic_flag_spec=
6050 whole_archive_flag_spec=
6051 thread_safe_flag_spec=
6052 hardcode_libdir_flag_spec=
6053 hardcode_libdir_separator=
6054 hardcode_direct=no
6055 hardcode_minus_L=no
6056 hardcode_shlibpath_var=unsupported
6057 link_all_deplibs=unknown
6058 always_export_symbols=no
6059 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6060 # include_expsyms should be a list of space-separated symbols to be *always*
6061 # included in the symbol list
6062 include_expsyms=
6063 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6064 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6065 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6066 # as well as any symbol that contains `d'.
6067 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6068 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6069 # platforms (ab)use it in PIC code, but their linkers get confused if
6070 # the symbol is explicitly referenced. Since portable code cannot
6071 # rely on this symbol name, it's probably fine to never include it in
6072 # preloaded symbol tables.
6073 extract_expsyms_cmds=
6074
6075 case $host_os in
6076 cygwin* | mingw* | pw32*)
6077 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6078 # When not using gcc, we currently assume that we are using
6079 # Microsoft Visual C++.
6080 if test "$GCC" != yes; then
6081 with_gnu_ld=no
6082 fi
6083 ;;
6084 openbsd*)
6085 with_gnu_ld=no
6086 ;;
6087 esac
6088
6089 ld_shlibs=yes
6090 if test "$with_gnu_ld" = yes; then
6091 # If archive_cmds runs LD, not CC, wlarc should be empty
6092 wlarc='${wl}'
6093
6094 # See if GNU ld supports shared libraries.
6095 case $host_os in
6096 aix3* | aix4* | aix5*)
6097 # On AIX/PPC, the GNU linker is very broken
6098 if test "$host_cpu" != ia64; then
6099 ld_shlibs=no
6100 cat <<EOF 1>&2
6101
6102 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6103 *** to be unable to reliably create shared libraries on AIX.
6104 *** Therefore, libtool is disabling shared libraries support. If you
6105 *** really care for shared libraries, you may want to modify your PATH
6106 *** so that a non-GNU linker is found, and then restart.
6107
6108 EOF
6109 fi
6110 ;;
6111
6112 amigaos*)
6113 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)'
6114 hardcode_libdir_flag_spec='-L$libdir'
6115 hardcode_minus_L=yes
6116
6117 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6118 # that the semantics of dynamic libraries on AmigaOS, at least up
6119 # to version 4, is to share data among multiple programs linked
6120 # with the same dynamic library. Since this doesn't match the
6121 # behavior of shared libraries on other platforms, we can't use
6122 # them.
6123 ld_shlibs=no
6124 ;;
6125
6126 beos*)
6127 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6128 allow_undefined_flag=unsupported
6129 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6130 # support --undefined. This deserves some investigation. FIXME
6131 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6132 else
6133 ld_shlibs=no
6134 fi
6135 ;;
6136
6137 cygwin*)
6138 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6139 # as there is no search path for DLLs.
6140 hardcode_libdir_flag_spec='-L$libdir'
6141 allow_undefined_flag=
6142 always_export_symbols=yes
6143
6144 if $LD --help 2>&1 | egrep 'auto-import' > /dev/null; then
6145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6146 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-retain-symbols-file $wl$export_symbols ${wl}--out-implib,$lib'
6147 else
6148 ld_shlibs=no
6149 fi
6150 ;;
6151
6152 mingw* | pw32*)
6153 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
6154 # no search path for DLLs.
6155 hardcode_libdir_flag_spec='-L$libdir'
6156 allow_undefined_flag=unsupported
6157 always_export_symbols=yes
6158
6159 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6160 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6161 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6162 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6163 else $CC -o impgen impgen.c ; fi)~
6164 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6165
6166 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6167
6168 # FIXME: what about values for MSVC?
6169 dll_entry=__cygwin_dll_entry@12
6170 case $host_os in
6171 mingw*)
6172 # mingw values
6173 dll_entry=_DllMainCRTStartup@12
6174 ;;
6175 esac
6176
6177 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6178
6179 # recent cygwin and mingw systems supply a stub DllMain which the user
6180 # can override, but on older systems we have to supply one (in ltdll.c)
6181 if test "x$lt_cv_need_dllmain" = "xyes"; then
6182 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6183 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6184 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6185 else
6186 ltdll_obj=
6187 ltdll_cmds=
6188 fi
6189
6190 # Extract the symbol export list from an `--export-all' def file,
6191 # then regenerate the def file from the symbol export list, so that
6192 # the compiled dll only exports the symbol export list.
6193 # Be careful not to strip the DATA tag left by newer dlltools.
6194 export_symbols_cmds="$ltdll_cmds"'
6195 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6196 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6197
6198 # If the export-symbols file already is a .def file (1st line
6199 # is EXPORTS), use it as is.
6200 # If DATA tags from a recent dlltool are present, honour them!
6201 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6202 cp $export_symbols $output_objdir/$soname-def;
6203 else
6204 echo EXPORTS > $output_objdir/$soname-def;
6205 _lt_hint=1;
6206 cat $export_symbols | while read symbol; do
6207 set dummy \$symbol;
6208 case \$# in
6209 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6210 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6211 esac;
6212 _lt_hint=`expr 1 + \$_lt_hint`;
6213 done;
6214 fi~
6215 '"$ltdll_cmds"'
6216 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6217 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6218 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6219 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6220 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6221 ;;
6222
6223 netbsd*)
6224 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6225 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6226 wlarc=
6227 else
6228 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6229 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6230 fi
6231 ;;
6232
6233 solaris* | sysv5*)
6234 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6235 ld_shlibs=no
6236 cat <<EOF 1>&2
6237
6238 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6239 *** create shared libraries on Solaris systems. Therefore, libtool
6240 *** is disabling shared libraries support. We urge you to upgrade GNU
6241 *** binutils to release 2.9.1 or newer. Another option is to modify
6242 *** your PATH or compiler configuration so that the native linker is
6243 *** used, and then restart.
6244
6245 EOF
6246 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6248 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6249 else
6250 ld_shlibs=no
6251 fi
6252 ;;
6253
6254 sunos4*)
6255 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6256 wlarc=
6257 hardcode_direct=yes
6258 hardcode_shlibpath_var=no
6259 ;;
6260
6261 *)
6262 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6264 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6265 else
6266 ld_shlibs=no
6267 fi
6268 ;;
6269 esac
6270
6271 if test "$ld_shlibs" = yes; then
6272 runpath_var=LD_RUN_PATH
6273 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6274 export_dynamic_flag_spec='${wl}--export-dynamic'
6275 case $host_os in
6276 cygwin* | mingw* | pw32*)
6277 # dlltool doesn't understand --whole-archive et. al.
6278 whole_archive_flag_spec=
6279 ;;
6280 *)
6281 # ancient GNU ld didn't support --whole-archive et. al.
6282 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6283 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6284 else
6285 whole_archive_flag_spec=
6286 fi
6287 ;;
6288 esac
6289 fi
6290 else
6291 # PORTME fill in a description of your system's linker (not GNU ld)
6292 case $host_os in
6293 aix3*)
6294 allow_undefined_flag=unsupported
6295 always_export_symbols=yes
6296 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'
6297 # Note: this linker hardcodes the directories in LIBPATH if there
6298 # are no directories specified by -L.
6299 hardcode_minus_L=yes
6300 if test "$GCC" = yes && test -z "$link_static_flag"; then
6301 # Neither direct hardcoding nor static linking is supported with a
6302 # broken collect2.
6303 hardcode_direct=unsupported
6304 fi
6305 ;;
6306
6307 aix4* | aix5*)
6308 if test "$host_cpu" = ia64; then
6309 # On IA64, the linker does run time linking by default, so we don't
6310 # have to do anything special.
6311 aix_use_runtimelinking=no
6312 exp_sym_flag='-Bexport'
6313 no_entry_flag=""
6314 else
6315 # If we're using GNU nm, then we don't want the "-C" option.
6316 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6317 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
6318 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'
6319 else
6320 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'
6321 fi
6322 aix_use_runtimelinking=no
6323
6324 # Test if we are trying to use run time linking or normal
6325 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6326 # need to do runtime linking.
6327 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6328 for ld_flag in $LDFLAGS; do
6329 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6330 aix_use_runtimelinking=yes
6331 break
6332 fi
6333 done
6334 esac
6335
6336 exp_sym_flag='-bexport'
6337 no_entry_flag='-bnoentry'
6338 fi
6339
6340 # When large executables or shared objects are built, AIX ld can
6341 # have problems creating the table of contents. If linking a library
6342 # or program results in "error TOC overflow" add -mminimal-toc to
6343 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6344 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6345
6346 archive_cmds=''
6347 hardcode_direct=yes
6348 hardcode_libdir_separator=':'
6349 link_all_deplibs=yes
6350
6351 if test "$GCC" = yes; then
6352 case $host_os in aix4.012|aix4.012.*)
6353 # We only want to do this on AIX 4.2 and lower, the check
6354 # below for broken collect2 doesn't work under 4.3+
6355 collect2name=`${CC} -print-prog-name=collect2`
6356 if test -f "$collect2name" && \
6357 strings "$collect2name" | grep resolve_lib_name >/dev/null
6358 then
6359 # We have reworked collect2
6360 hardcode_direct=yes
6361 else
6362 # We have old collect2
6363 hardcode_direct=unsupported
6364 # It fails to find uninstalled libraries when the uninstalled
6365 # path is not listed in the libpath. Setting hardcode_minus_L
6366 # to unsupported forces relinking
6367 hardcode_minus_L=yes
6368 hardcode_libdir_flag_spec='-L$libdir'
6369 hardcode_libdir_separator=
6370 fi
6371 esac
6372 shared_flag='-shared'
6373 else
6374 # not using gcc
6375 if test "$host_cpu" = ia64; then
6376 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6377 # chokes on -Wl,-G. The following line is correct:
6378 shared_flag='-G'
6379 else
6380 if test "$aix_use_runtimelinking" = yes; then
6381 shared_flag='${wl}-G'
6382 else
6383 shared_flag='${wl}-bM:SRE'
6384 fi
6385 fi
6386 fi
6387
6388 # It seems that -bexpall does not export symbols beginning with
6389 # underscore (_), so it is better to generate a list of symbols to export.
6390 always_export_symbols=yes
6391 if test "$aix_use_runtimelinking" = yes; then
6392 # Warning - without using the other runtime loading flags (-brtl),
6393 # -berok will link without error, but may produce a broken library.
6394 allow_undefined_flag='-berok'
6395 # Determine the default libpath from the value encoded in an empty executable.
6396 cat >conftest.$ac_ext <<_ACEOF
6397 #line $LINENO "configure"
6398 #include "confdefs.h"
6399
6400 #ifdef F77_DUMMY_MAIN
6401 # ifdef __cplusplus
6402 extern "C"
6403 # endif
6404 int F77_DUMMY_MAIN() { return 1; }
6405 #endif
6406 int
6407 main ()
6408 {
6409
6410 ;
6411 return 0;
6412 }
6413 _ACEOF
6414 rm -f conftest.$ac_objext conftest$ac_exeext
6415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6416 (eval $ac_link) 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try='test -s conftest$ac_exeext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 (eval $ac_try) 2>&5
6423 ac_status=$?
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426
6427 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6428 }'`
6429 # Check for a 64-bit object if we didn't find anything.
6430 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6431 }'`; fi
6432 else
6433 echo "$as_me: failed program was:" >&5
6434 cat conftest.$ac_ext >&5
6435 fi
6436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6437 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6438
6439 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6440 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6441 else
6442 if test "$host_cpu" = ia64; then
6443 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6444 allow_undefined_flag="-z nodefs"
6445 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6446 else
6447 # Determine the default libpath from the value encoded in an empty executable.
6448 cat >conftest.$ac_ext <<_ACEOF
6449 #line $LINENO "configure"
6450 #include "confdefs.h"
6451
6452 #ifdef F77_DUMMY_MAIN
6453 # ifdef __cplusplus
6454 extern "C"
6455 # endif
6456 int F77_DUMMY_MAIN() { return 1; }
6457 #endif
6458 int
6459 main ()
6460 {
6461
6462 ;
6463 return 0;
6464 }
6465 _ACEOF
6466 rm -f conftest.$ac_objext conftest$ac_exeext
6467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6468 (eval $ac_link) 2>&5
6469 ac_status=$?
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } &&
6472 { ac_try='test -s conftest$ac_exeext'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474 (eval $ac_try) 2>&5
6475 ac_status=$?
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; }; then
6478
6479 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6480 }'`
6481 # Check for a 64-bit object if we didn't find anything.
6482 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6483 }'`; fi
6484 else
6485 echo "$as_me: failed program was:" >&5
6486 cat conftest.$ac_ext >&5
6487 fi
6488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6489 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6490
6491 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6492 # Warning - without using the other run time loading flags,
6493 # -berok will link without error, but may produce a broken library.
6494 no_undefined_flag=' ${wl}-bernotok'
6495 allow_undefined_flag=' ${wl}-berok'
6496 # -bexpall does not export symbols beginning with underscore (_)
6497 always_export_symbols=yes
6498 # Exported symbols can be pulled into shared objects from archives
6499 whole_archive_flag_spec=' '
6500 archive_cmds_need_lc=yes
6501 # This is similar to how AIX traditionally builds it's shared libraries.
6502 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6503 fi
6504 fi
6505 ;;
6506
6507 amigaos*)
6508 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)'
6509 hardcode_libdir_flag_spec='-L$libdir'
6510 hardcode_minus_L=yes
6511 # see comment about different semantics on the GNU ld section
6512 ld_shlibs=no
6513 ;;
6514
6515 bsdi4*)
6516 export_dynamic_flag_spec=-rdynamic
6517 ;;
6518
6519 cygwin* | mingw* | pw32*)
6520 # When not using gcc, we currently assume that we are using
6521 # Microsoft Visual C++.
6522 # hardcode_libdir_flag_spec is actually meaningless, as there is
6523 # no search path for DLLs.
6524 hardcode_libdir_flag_spec=' '
6525 allow_undefined_flag=unsupported
6526 # Tell ltmain to make .lib files, not .a files.
6527 libext=lib
6528 # FIXME: Setting linknames here is a bad hack.
6529 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6530 # The linker will automatically build a .lib file if we build a DLL.
6531 old_archive_From_new_cmds='true'
6532 # FIXME: Should let the user specify the lib program.
6533 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6534 fix_srcfile_path='`cygpath -w "$srcfile"`'
6535 ;;
6536
6537 darwin* | rhapsody*)
6538 case "$host_os" in
6539 rhapsody* | darwin1.[012])
6540 allow_undefined_flag='-undefined suppress'
6541 ;;
6542 *) # Darwin 1.3 on
6543 allow_undefined_flag='-flat_namespace -undefined suppress'
6544 ;;
6545 esac
6546
6547 # FIXME: Relying on posixy $() will cause problems for
6548 # cross-compilation, but unfortunately the echo tests do not
6549 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6550 # `"' quotes if we put them in here... so don't!
6551 archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6552 # We need to add '_' to the symbols in $export_symbols first
6553 #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
6554 hardcode_direct=yes
6555 hardcode_shlibpath_var=no
6556 whole_archive_flag_spec='-all_load $convenience'
6557 ;;
6558
6559 dgux*)
6560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6561 hardcode_libdir_flag_spec='-L$libdir'
6562 hardcode_shlibpath_var=no
6563 ;;
6564
6565 freebsd1*)
6566 ld_shlibs=no
6567 ;;
6568
6569 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6570 # support. Future versions do this automatically, but an explicit c++rt0.o
6571 # does not break anything, and helps significantly (at the cost of a little
6572 # extra space).
6573 freebsd2.2*)
6574 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6575 hardcode_libdir_flag_spec='-R$libdir'
6576 hardcode_direct=yes
6577 hardcode_shlibpath_var=no
6578 ;;
6579
6580 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6581 freebsd2*)
6582 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6583 hardcode_direct=yes
6584 hardcode_minus_L=yes
6585 hardcode_shlibpath_var=no
6586 ;;
6587
6588 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6589 freebsd*)
6590 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6591 hardcode_libdir_flag_spec='-R$libdir'
6592 hardcode_direct=yes
6593 hardcode_shlibpath_var=no
6594 ;;
6595
6596 hpux9* | hpux10* | hpux11*)
6597 if test "$GCC" = yes; then
6598 case $host_os in
6599 hpux9*)
6600 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'
6601 ;;
6602 *)
6603 if test "$host_cpu" = ia64; then
6604 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6605 else
6606 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6607 fi
6608 ;;
6609 esac
6610 else
6611 case $host_os in
6612 hpux9*)
6613 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'
6614 ;;
6615 *)
6616 if test "$host_cpu" = ia64; then
6617 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6618 else
6619 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6620 fi
6621 ;;
6622 esac
6623 fi
6624 if test "$host_cpu" = ia64; then
6625 hardcode_libdir_flag_spec='-L$libdir'
6626 hardcode_direct=no
6627 hardcode_shlibpath_var=no
6628 else
6629 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6630 hardcode_libdir_separator=:
6631 hardcode_direct=yes
6632 fi
6633 # hardcode_minus_L: Not really in the search PATH,
6634 # but as the default location of the library.
6635 hardcode_minus_L=yes
6636 export_dynamic_flag_spec='${wl}-E'
6637 ;;
6638
6639 irix5* | irix6* | nonstopux*)
6640 if test "$GCC" = yes; then
6641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6642 else
6643 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6644 fi
6645 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6646 hardcode_libdir_separator=:
6647 link_all_deplibs=yes
6648 ;;
6649
6650 netbsd*)
6651 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6652 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6653 else
6654 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6655 fi
6656 hardcode_libdir_flag_spec='-R$libdir'
6657 hardcode_direct=yes
6658 hardcode_shlibpath_var=no
6659 ;;
6660
6661 newsos6)
6662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6663 hardcode_direct=yes
6664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6665 hardcode_libdir_separator=:
6666 hardcode_shlibpath_var=no
6667 ;;
6668
6669 openbsd*)
6670 hardcode_direct=yes
6671 hardcode_shlibpath_var=no
6672
6673 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6674 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6675 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6676 export_dynamic_flag_spec='${wl}-E'
6677 else
6678 case $host_os in
6679 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6680 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6681 hardcode_libdir_flag_spec='-R$libdir'
6682 ;;
6683 *)
6684 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6685 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6686 ;;
6687 esac
6688 fi
6689 ;;
6690
6691 os2*)
6692 hardcode_libdir_flag_spec='-L$libdir'
6693 hardcode_minus_L=yes
6694 allow_undefined_flag=unsupported
6695 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'
6696 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6697 ;;
6698
6699 osf3*)
6700 if test "$GCC" = yes; then
6701 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6702 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6703 else
6704 allow_undefined_flag=' -expect_unresolved \*'
6705 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6706 fi
6707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6708 hardcode_libdir_separator=:
6709 ;;
6710
6711 osf4* | osf5*) # as osf3* with the addition of -msym flag
6712 if test "$GCC" = yes; then
6713 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6714 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6716 else
6717 allow_undefined_flag=' -expect_unresolved \*'
6718 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6719 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6720 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6721
6722 # Both c and cxx compiler support -rpath directly
6723 hardcode_libdir_flag_spec='-rpath $libdir'
6724 fi
6725 hardcode_libdir_separator=:
6726 ;;
6727
6728 sco3.2v5*)
6729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6730 hardcode_shlibpath_var=no
6731 export_dynamic_flag_spec='${wl}-Bexport'
6732 runpath_var=LD_RUN_PATH
6733 hardcode_runpath_var=yes
6734 ;;
6735
6736 solaris*)
6737 no_undefined_flag=' -z text'
6738 if test "$GCC" = yes; then
6739 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6740 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6741 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6742 else
6743 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6744 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6745 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6746 fi
6747 hardcode_libdir_flag_spec='-R$libdir'
6748 hardcode_shlibpath_var=no
6749 case $host_os in
6750 solaris2.[0-5] | solaris2.[0-5].*) ;;
6751 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6752 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6753 esac
6754 link_all_deplibs=yes
6755 ;;
6756
6757 sunos4*)
6758 if test "x$host_vendor" = xsequent; then
6759 # Use $CC to link under sequent, because it throws in some extra .o
6760 # files that make .init and .fini sections work.
6761 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6762 else
6763 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6764 fi
6765 hardcode_libdir_flag_spec='-L$libdir'
6766 hardcode_direct=yes
6767 hardcode_minus_L=yes
6768 hardcode_shlibpath_var=no
6769 ;;
6770
6771 sysv4)
6772 if test "x$host_vendor" = xsni; then
6773 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6774 hardcode_direct=yes # is this really true???
6775 else
6776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6777 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6778 fi
6779 runpath_var='LD_RUN_PATH'
6780 hardcode_shlibpath_var=no
6781 ;;
6782
6783 sysv4.3*)
6784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6785 hardcode_shlibpath_var=no
6786 export_dynamic_flag_spec='-Bexport'
6787 ;;
6788
6789 sysv4*MP*)
6790 if test -d /usr/nec; then
6791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6792 hardcode_shlibpath_var=no
6793 runpath_var=LD_RUN_PATH
6794 hardcode_runpath_var=yes
6795 ld_shlibs=yes
6796 fi
6797 ;;
6798
6799 sysv4.2uw2*)
6800 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6801 hardcode_direct=yes
6802 hardcode_minus_L=no
6803 hardcode_shlibpath_var=no
6804 hardcode_runpath_var=yes
6805 runpath_var=LD_RUN_PATH
6806 ;;
6807
6808 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6809 no_undefined_flag='${wl}-z ${wl}text'
6810 if test "$GCC" = yes; then
6811 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6812 else
6813 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6814 fi
6815 runpath_var='LD_RUN_PATH'
6816 hardcode_shlibpath_var=no
6817 ;;
6818
6819 sysv5*)
6820 no_undefined_flag=' -z text'
6821 # $CC -shared without GNU ld will not create a library from C++
6822 # object files and a static libstdc++, better avoid it by now
6823 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6824 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6825 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6826 hardcode_libdir_flag_spec=
6827 hardcode_shlibpath_var=no
6828 runpath_var='LD_RUN_PATH'
6829 ;;
6830
6831 uts4*)
6832 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6833 hardcode_libdir_flag_spec='-L$libdir'
6834 hardcode_shlibpath_var=no
6835 ;;
6836
6837 *)
6838 ld_shlibs=no
6839 ;;
6840 esac
6841 fi
6842
6843 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6844 echo "${ECHO_T}$ld_shlibs" >&6
6845 test "$ld_shlibs" = no && can_build_shared=no
6846
6847 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6848 if test "$GCC" = yes; then
6849 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6850 fi
6851
6852 #
6853 # Do we need to explicitly link libc?
6854 #
6855 archive_cmds_need_lc=yes
6856 if test "$enable_shared" = yes && test "$GCC" = yes; then
6857 case $archive_cmds in
6858 *'~'*)
6859 # FIXME: we may have to deal with multi-command sequences.
6860 ;;
6861 '$CC '*)
6862 # Test whether the compiler implicitly links with -lc since on some
6863 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6864 # to ld, don't add -lc before -lgcc.
6865 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6866 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6867 $rm conftest*
6868 echo 'static int dummy;' > conftest.$ac_ext
6869
6870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6871 (eval $ac_compile) 2>&5
6872 ac_status=$?
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); } 2>conftest.err; then
6875 soname=conftest
6876 lib=conftest
6877 libobjs=conftest.$ac_objext
6878 deplibs=
6879 wl=$lt_prog_compiler_wl
6880 compiler_flags=-v
6881 linker_flags=-v
6882 verstring=
6883 output_objdir=.
6884 libname=conftest
6885 lt_save_allow_undefined_flag=$allow_undefined_flag
6886 allow_undefined_flag=
6887 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6888 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6889 ac_status=$?
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }
6892 then
6893 archive_cmds_need_lc=no
6894 else
6895 archive_cmds_need_lc=yes
6896 fi
6897 allow_undefined_flag=$lt_save_allow_undefined_flag
6898 else
6899 cat conftest.err 1>&5
6900 fi
6901 $rm conftest*
6902 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6903 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6904 ;;
6905 esac
6906 fi
6907
6908 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6909 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6910 hardcode_action=
6911 if test -n "$hardcode_libdir_flag_spec" || \
6912 test -n "$runpath_var "; then
6913
6914 # We can hardcode non-existant directories.
6915 if test "$hardcode_direct" != no &&
6916 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6917 # have to relink, otherwise we might link with an installed library
6918 # when we should be linking with a yet-to-be-installed one
6919 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
6920 test "$hardcode_minus_L" != no; then
6921 # Linking always hardcodes the temporary library directory.
6922 hardcode_action=relink
6923 else
6924 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6925 hardcode_action=immediate
6926 fi
6927 else
6928 # We cannot hardcode anything, or else we can only hardcode existing
6929 # directories.
6930 hardcode_action=unsupported
6931 fi
6932 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6933 echo "${ECHO_T}$hardcode_action" >&6
6934
6935 if test "$hardcode_action" = relink; then
6936 # Fast installation is not supported
6937 enable_fast_install=no
6938 elif test "$shlibpath_overrides_runpath" = yes ||
6939 test "$enable_shared" = no; then
6940 # Fast installation is not necessary
6941 enable_fast_install=needless
6942 fi
6943
6944 striplib=
6945 old_striplib=
6946 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6947 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6948 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6949 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6950 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6951 echo "$as_me:$LINENO: result: yes" >&5
6952 echo "${ECHO_T}yes" >&6
6953 else
6954 echo "$as_me:$LINENO: result: no" >&5
6955 echo "${ECHO_T}no" >&6
6956 fi
6957
6958 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6959 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6960 library_names_spec=
6961 libname_spec='lib$name'
6962 soname_spec=
6963 postinstall_cmds=
6964 postuninstall_cmds=
6965 finish_cmds=
6966 finish_eval=
6967 shlibpath_var=
6968 shlibpath_overrides_runpath=unknown
6969 version_type=none
6970 dynamic_linker="$host_os ld.so"
6971 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6972 if test "$GCC" = yes; then
6973 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
6974 if echo "$sys_lib_search_path_spec" | egrep ';' >/dev/null ; then
6975 # if the path contains ";" then we assume it to be the separator
6976 # otherwise default to the standard path separator (i.e. ":") - it is
6977 # assumed that no part of a normal pathname contains ";" but that should
6978 # okay in the real world where ";" in dirpaths is itself problematic.
6979 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6980 else
6981 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6982 fi
6983 else
6984 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6985 fi
6986 need_lib_prefix=unknown
6987 hardcode_into_libs=no
6988
6989 # when you set need_version to no, make sure it does not cause -set_version
6990 # flags to be left without arguments
6991 need_version=unknown
6992
6993 case $host_os in
6994 aix3*)
6995 version_type=linux
6996 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6997 shlibpath_var=LIBPATH
6998
6999 # AIX 3 has no versioning support, so we append a major version to the name.
7000 soname_spec='${libname}${release}.so$major'
7001 ;;
7002
7003 aix4* | aix5*)
7004 version_type=linux
7005 if test "$host_cpu" = ia64; then
7006 # AIX 5 supports IA64
7007 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7008 shlibpath_var=LD_LIBRARY_PATH
7009 else
7010 # With GCC up to 2.95.x, collect2 would create an import file
7011 # for dependence libraries. The import file would start with
7012 # the line `#! .'. This would cause the generated library to
7013 # depend on `.', always an invalid library. This was fixed in
7014 # development snapshots of GCC prior to 3.0.
7015 case $host_os in
7016 aix4 | aix4.[01] | aix4.[01].*)
7017 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7018 echo ' yes '
7019 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7020 :
7021 else
7022 can_build_shared=no
7023 fi
7024 ;;
7025 esac
7026 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7027 # soname into executable. Probably we can add versioning support to
7028 # collect2, so additional links can be useful in future.
7029 if test "$aix_use_runtimelinking" = yes; then
7030 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7031 # instead of lib<name>.a to let people know that these are not
7032 # typical AIX shared libraries.
7033 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7034 else
7035 # We preserve .a as extension for shared libraries through AIX4.2
7036 # and later when we are not doing run time linking.
7037 library_names_spec='${libname}${release}.a $libname.a'
7038 soname_spec='${libname}${release}.so$major'
7039 fi
7040 shlibpath_var=LIBPATH
7041 fi
7042 ;;
7043
7044 amigaos*)
7045 library_names_spec='$libname.ixlibrary $libname.a'
7046 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7047 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'
7048 ;;
7049
7050 beos*)
7051 library_names_spec='${libname}.so'
7052 dynamic_linker="$host_os ld.so"
7053 shlibpath_var=LIBRARY_PATH
7054 ;;
7055
7056 bsdi4*)
7057 version_type=linux
7058 need_version=no
7059 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7060 soname_spec='${libname}${release}.so$major'
7061 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7062 shlibpath_var=LD_LIBRARY_PATH
7063 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7064 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7065 # the default ld.so.conf also contains /usr/contrib/lib and
7066 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7067 # libtool to hard-code these into programs
7068 ;;
7069
7070 cygwin* | mingw* | pw32*)
7071 version_type=windows
7072 need_version=no
7073 need_lib_prefix=no
7074 case $GCC,$host_os in
7075 yes,cygwin*)
7076 library_names_spec='$libname.dll.a'
7077 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7078 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7079 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7080 dldir=$destdir/`dirname \$dlpath`~
7081 test -d \$dldir || mkdir -p \$dldir~
7082 $install_prog .libs/$dlname \$dldir/$dlname'
7083 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7084 dlpath=$dir/\$dldll~
7085 $rm \$dlpath'
7086 shlibpath_overrides_runpath=yes
7087 ;;
7088 yes,mingw*)
7089 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7090 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
7091 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
7092 # It is most probably a Windows format PATH printed by
7093 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7094 # path with ; separators, and with drive letters. We can handle the
7095 # drive letters (cygwin fileutils understands them), so leave them,
7096 # especially as we might pass files found there to a mingw objdump,
7097 # which wouldn't understand a cygwinified path. Ahh.
7098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
7099 else
7100 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
7101 fi
7102 ;;
7103 yes,pw32*)
7104 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7105 ;;
7106 *)
7107 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7108 ;;
7109 esac
7110 dynamic_linker='Win32 ld.exe'
7111 # FIXME: first we should search . and the directory the executable is in
7112 shlibpath_var=PATH
7113 ;;
7114
7115 darwin* | rhapsody*)
7116 dynamic_linker="$host_os dyld"
7117 version_type=darwin
7118 need_lib_prefix=no
7119 need_version=no
7120 # FIXME: Relying on posixy $() will cause problems for
7121 # cross-compilation, but unfortunately the echo tests do not
7122 # yet detect zsh echo's removal of \ escapes.
7123 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
7124 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7125 shlibpath_overrides_runpath=yes
7126 shlibpath_var=DYLD_LIBRARY_PATH
7127 ;;
7128
7129 dgux*)
7130 version_type=linux
7131 need_lib_prefix=no
7132 need_version=no
7133 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7134 soname_spec='${libname}${release}.so$major'
7135 shlibpath_var=LD_LIBRARY_PATH
7136 ;;
7137
7138 freebsd1*)
7139 dynamic_linker=no
7140 ;;
7141
7142 freebsd*)
7143 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7144 version_type=freebsd-$objformat
7145 case $version_type in
7146 freebsd-elf*)
7147 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7148 need_version=no
7149 need_lib_prefix=no
7150 ;;
7151 freebsd-*)
7152 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7153 need_version=yes
7154 ;;
7155 esac
7156 shlibpath_var=LD_LIBRARY_PATH
7157 case $host_os in
7158 freebsd2*)
7159 shlibpath_overrides_runpath=yes
7160 ;;
7161 freebsd3.01* | freebsdelf3.01*)
7162 shlibpath_overrides_runpath=yes
7163 hardcode_into_libs=yes
7164 ;;
7165 *) # from 3.2 on
7166 shlibpath_overrides_runpath=no
7167 hardcode_into_libs=yes
7168 ;;
7169 esac
7170 ;;
7171
7172 gnu*)
7173 version_type=linux
7174 need_lib_prefix=no
7175 need_version=no
7176 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7177 soname_spec='${libname}${release}.so$major'
7178 shlibpath_var=LD_LIBRARY_PATH
7179 hardcode_into_libs=yes
7180 ;;
7181
7182 hpux9* | hpux10* | hpux11*)
7183 # Give a soname corresponding to the major version so that dld.sl refuses to
7184 # link against other versions.
7185 version_type=sunos
7186 need_lib_prefix=no
7187 need_version=no
7188 if test "$host_cpu" = ia64; then
7189 hardcode_into_libs=yes
7190 dynamic_linker="$host_os dld.so"
7191 shlibpath_var=LD_LIBRARY_PATH
7192 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7193 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7194 soname_spec='${libname}${release}.so$major'
7195 if test "X$HPUX_IA64_MODE" = X32; then
7196 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7197 else
7198 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7199 fi
7200 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7201 else
7202 dynamic_linker="$host_os dld.sl"
7203 shlibpath_var=SHLIB_PATH
7204 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7205 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7206 soname_spec='${libname}${release}.sl$major'
7207 fi
7208 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7209 postinstall_cmds='chmod 555 $lib'
7210 ;;
7211
7212 irix5* | irix6* | nonstopux*)
7213 case $host_os in
7214 nonstopux*) version_type=nonstopux ;;
7215 *) version_type=irix ;;
7216 esac
7217 need_lib_prefix=no
7218 need_version=no
7219 soname_spec='${libname}${release}.so$major'
7220 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7221 case $host_os in
7222 irix5* | nonstopux*)
7223 libsuff= shlibsuff=
7224 ;;
7225 *)
7226 case $LD in # libtool.m4 will add one of these switches to LD
7227 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7228 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7229 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7230 *) libsuff= shlibsuff= libmagic=never-match;;
7231 esac
7232 ;;
7233 esac
7234 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7235 shlibpath_overrides_runpath=no
7236 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7237 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7238 ;;
7239
7240 # No shared lib support for Linux oldld, aout, or coff.
7241 linux*oldld* | linux*aout* | linux*coff*)
7242 dynamic_linker=no
7243 ;;
7244
7245 # This must be Linux ELF.
7246 linux*)
7247 version_type=linux
7248 need_lib_prefix=no
7249 need_version=no
7250 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7251 soname_spec='${libname}${release}.so$major'
7252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7253 shlibpath_var=LD_LIBRARY_PATH
7254 shlibpath_overrides_runpath=no
7255 # This implies no fast_install, which is unacceptable.
7256 # Some rework will be needed to allow for fast_install
7257 # before this can be enabled.
7258 hardcode_into_libs=yes
7259
7260 # We used to test for /lib/ld.so.1 and disable shared libraries on
7261 # powerpc, because MkLinux only supported shared libraries with the
7262 # GNU dynamic linker. Since this was broken with cross compilers,
7263 # most powerpc-linux boxes support dynamic linking these days and
7264 # people can always --disable-shared, the test was removed, and we
7265 # assume the GNU/Linux dynamic linker is in use.
7266 dynamic_linker='GNU/Linux ld.so'
7267 ;;
7268
7269 netbsd*)
7270 version_type=sunos
7271 need_lib_prefix=no
7272 need_version=no
7273 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7274 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7276 dynamic_linker='NetBSD (a.out) ld.so'
7277 else
7278 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7279 soname_spec='${libname}${release}.so$major'
7280 dynamic_linker='NetBSD ld.elf_so'
7281 fi
7282 shlibpath_var=LD_LIBRARY_PATH
7283 shlibpath_overrides_runpath=yes
7284 hardcode_into_libs=yes
7285 ;;
7286
7287 newsos6)
7288 version_type=linux
7289 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7290 shlibpath_var=LD_LIBRARY_PATH
7291 shlibpath_overrides_runpath=yes
7292 ;;
7293
7294 nto-qnx)
7295 version_type=linux
7296 need_lib_prefix=no
7297 need_version=no
7298 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7299 soname_spec='${libname}${release}.so$major'
7300 shlibpath_var=LD_LIBRARY_PATH
7301 shlibpath_overrides_runpath=yes
7302 ;;
7303
7304 openbsd*)
7305 version_type=sunos
7306 need_lib_prefix=no
7307 need_version=no
7308 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7310 shlibpath_var=LD_LIBRARY_PATH
7311 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7312 case $host_os in
7313 openbsd2.[89] | openbsd2.[89].*)
7314 shlibpath_overrides_runpath=no
7315 ;;
7316 *)
7317 shlibpath_overrides_runpath=yes
7318 ;;
7319 esac
7320 else
7321 shlibpath_overrides_runpath=yes
7322 fi
7323 ;;
7324
7325 os2*)
7326 libname_spec='$name'
7327 need_lib_prefix=no
7328 library_names_spec='$libname.dll $libname.a'
7329 dynamic_linker='OS/2 ld.exe'
7330 shlibpath_var=LIBPATH
7331 ;;
7332
7333 osf3* | osf4* | osf5*)
7334 version_type=osf
7335 need_lib_prefix=no
7336 need_version=no
7337 soname_spec='${libname}${release}.so'
7338 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7339 shlibpath_var=LD_LIBRARY_PATH
7340 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7341 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7342 ;;
7343
7344 sco3.2v5*)
7345 version_type=osf
7346 soname_spec='${libname}${release}.so$major'
7347 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7348 shlibpath_var=LD_LIBRARY_PATH
7349 ;;
7350
7351 solaris*)
7352 version_type=linux
7353 need_lib_prefix=no
7354 need_version=no
7355 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7356 soname_spec='${libname}${release}.so$major'
7357 shlibpath_var=LD_LIBRARY_PATH
7358 shlibpath_overrides_runpath=yes
7359 hardcode_into_libs=yes
7360 # ldd complains unless libraries are executable
7361 postinstall_cmds='chmod +x $lib'
7362 ;;
7363
7364 sunos4*)
7365 version_type=sunos
7366 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7367 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7368 shlibpath_var=LD_LIBRARY_PATH
7369 shlibpath_overrides_runpath=yes
7370 if test "$with_gnu_ld" = yes; then
7371 need_lib_prefix=no
7372 fi
7373 need_version=yes
7374 ;;
7375
7376 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7377 version_type=linux
7378 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7379 soname_spec='${libname}${release}.so$major'
7380 shlibpath_var=LD_LIBRARY_PATH
7381 case $host_vendor in
7382 sni)
7383 shlibpath_overrides_runpath=no
7384 ;;
7385 motorola)
7386 need_lib_prefix=no
7387 need_version=no
7388 shlibpath_overrides_runpath=no
7389 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7390 ;;
7391 esac
7392 ;;
7393
7394 sysv4*MP*)
7395 if test -d /usr/nec ;then
7396 version_type=linux
7397 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7398 soname_spec='$libname.so.$major'
7399 shlibpath_var=LD_LIBRARY_PATH
7400 fi
7401 ;;
7402
7403 uts4*)
7404 version_type=linux
7405 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7406 soname_spec='${libname}${release}.so$major'
7407 shlibpath_var=LD_LIBRARY_PATH
7408 ;;
7409
7410 *)
7411 dynamic_linker=no
7412 ;;
7413 esac
7414 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7415 echo "${ECHO_T}$dynamic_linker" >&6
7416 test "$dynamic_linker" = no && can_build_shared=no
7417
7418 if test "x$enable_dlopen" != xyes; then
7419 enable_dlopen=unknown
7420 enable_dlopen_self=unknown
7421 enable_dlopen_self_static=unknown
7422 else
7423 lt_cv_dlopen=no
7424 lt_cv_dlopen_libs=
7425
7426 case $host_os in
7427 beos*)
7428 lt_cv_dlopen="load_add_on"
7429 lt_cv_dlopen_libs=
7430 lt_cv_dlopen_self=yes
7431 ;;
7432
7433 cygwin* | mingw* | pw32*)
7434 lt_cv_dlopen="LoadLibrary"
7435 lt_cv_dlopen_libs=
7436 ;;
7437
7438 *)
7439 echo "$as_me:$LINENO: checking for shl_load" >&5
7440 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7441 if test "${ac_cv_func_shl_load+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444 cat >conftest.$ac_ext <<_ACEOF
7445 #line $LINENO "configure"
7446 #include "confdefs.h"
7447 /* System header to define __stub macros and hopefully few prototypes,
7448 which can conflict with char shl_load (); below. */
7449 #include <assert.h>
7450 /* Override any gcc2 internal prototype to avoid an error. */
7451 #ifdef __cplusplus
7452 extern "C"
7453 #endif
7454 /* We use char because int might match the return type of a gcc2
7455 builtin and then its argument prototype would still apply. */
7456 char shl_load ();
7457 char (*f) ();
7458
7459 #ifdef F77_DUMMY_MAIN
7460 # ifdef __cplusplus
7461 extern "C"
7462 # endif
7463 int F77_DUMMY_MAIN() { return 1; }
7464 #endif
7465 int
7466 main ()
7467 {
7468 /* The GNU C library defines this for functions which it implements
7469 to always fail with ENOSYS. Some functions are actually named
7470 something starting with __ and the normal name is an alias. */
7471 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7472 choke me
7473 #else
7474 f = shl_load;
7475 #endif
7476
7477 ;
7478 return 0;
7479 }
7480 _ACEOF
7481 rm -f conftest.$ac_objext conftest$ac_exeext
7482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7483 (eval $ac_link) 2>&5
7484 ac_status=$?
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); } &&
7487 { ac_try='test -s conftest$ac_exeext'
7488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489 (eval $ac_try) 2>&5
7490 ac_status=$?
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); }; }; then
7493 ac_cv_func_shl_load=yes
7494 else
7495 echo "$as_me: failed program was:" >&5
7496 cat conftest.$ac_ext >&5
7497 ac_cv_func_shl_load=no
7498 fi
7499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7500 fi
7501 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7502 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7503 if test $ac_cv_func_shl_load = yes; then
7504 lt_cv_dlopen="shl_load"
7505 else
7506 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7507 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7508 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511 ac_check_lib_save_LIBS=$LIBS
7512 LIBS="-ldld $LIBS"
7513 cat >conftest.$ac_ext <<_ACEOF
7514 #line $LINENO "configure"
7515 #include "confdefs.h"
7516
7517 /* Override any gcc2 internal prototype to avoid an error. */
7518 #ifdef __cplusplus
7519 extern "C"
7520 #endif
7521 /* We use char because int might match the return type of a gcc2
7522 builtin and then its argument prototype would still apply. */
7523 char shl_load ();
7524 #ifdef F77_DUMMY_MAIN
7525 # ifdef __cplusplus
7526 extern "C"
7527 # endif
7528 int F77_DUMMY_MAIN() { return 1; }
7529 #endif
7530 int
7531 main ()
7532 {
7533 shl_load ();
7534 ;
7535 return 0;
7536 }
7537 _ACEOF
7538 rm -f conftest.$ac_objext conftest$ac_exeext
7539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7540 (eval $ac_link) 2>&5
7541 ac_status=$?
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); } &&
7544 { ac_try='test -s conftest$ac_exeext'
7545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546 (eval $ac_try) 2>&5
7547 ac_status=$?
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); }; }; then
7550 ac_cv_lib_dld_shl_load=yes
7551 else
7552 echo "$as_me: failed program was:" >&5
7553 cat conftest.$ac_ext >&5
7554 ac_cv_lib_dld_shl_load=no
7555 fi
7556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7557 LIBS=$ac_check_lib_save_LIBS
7558 fi
7559 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7560 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7561 if test $ac_cv_lib_dld_shl_load = yes; then
7562 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7563 else
7564 echo "$as_me:$LINENO: checking for dlopen" >&5
7565 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7566 if test "${ac_cv_func_dlopen+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7568 else
7569 cat >conftest.$ac_ext <<_ACEOF
7570 #line $LINENO "configure"
7571 #include "confdefs.h"
7572 /* System header to define __stub macros and hopefully few prototypes,
7573 which can conflict with char dlopen (); below. */
7574 #include <assert.h>
7575 /* Override any gcc2 internal prototype to avoid an error. */
7576 #ifdef __cplusplus
7577 extern "C"
7578 #endif
7579 /* We use char because int might match the return type of a gcc2
7580 builtin and then its argument prototype would still apply. */
7581 char dlopen ();
7582 char (*f) ();
7583
7584 #ifdef F77_DUMMY_MAIN
7585 # ifdef __cplusplus
7586 extern "C"
7587 # endif
7588 int F77_DUMMY_MAIN() { return 1; }
7589 #endif
7590 int
7591 main ()
7592 {
7593 /* The GNU C library defines this for functions which it implements
7594 to always fail with ENOSYS. Some functions are actually named
7595 something starting with __ and the normal name is an alias. */
7596 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7597 choke me
7598 #else
7599 f = dlopen;
7600 #endif
7601
7602 ;
7603 return 0;
7604 }
7605 _ACEOF
7606 rm -f conftest.$ac_objext conftest$ac_exeext
7607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7608 (eval $ac_link) 2>&5
7609 ac_status=$?
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } &&
7612 { ac_try='test -s conftest$ac_exeext'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614 (eval $ac_try) 2>&5
7615 ac_status=$?
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; }; then
7618 ac_cv_func_dlopen=yes
7619 else
7620 echo "$as_me: failed program was:" >&5
7621 cat conftest.$ac_ext >&5
7622 ac_cv_func_dlopen=no
7623 fi
7624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7625 fi
7626 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7627 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7628 if test $ac_cv_func_dlopen = yes; then
7629 lt_cv_dlopen="dlopen"
7630 else
7631 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7632 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7633 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 else
7636 ac_check_lib_save_LIBS=$LIBS
7637 LIBS="-ldl $LIBS"
7638 cat >conftest.$ac_ext <<_ACEOF
7639 #line $LINENO "configure"
7640 #include "confdefs.h"
7641
7642 /* Override any gcc2 internal prototype to avoid an error. */
7643 #ifdef __cplusplus
7644 extern "C"
7645 #endif
7646 /* We use char because int might match the return type of a gcc2
7647 builtin and then its argument prototype would still apply. */
7648 char dlopen ();
7649 #ifdef F77_DUMMY_MAIN
7650 # ifdef __cplusplus
7651 extern "C"
7652 # endif
7653 int F77_DUMMY_MAIN() { return 1; }
7654 #endif
7655 int
7656 main ()
7657 {
7658 dlopen ();
7659 ;
7660 return 0;
7661 }
7662 _ACEOF
7663 rm -f conftest.$ac_objext conftest$ac_exeext
7664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7665 (eval $ac_link) 2>&5
7666 ac_status=$?
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } &&
7669 { ac_try='test -s conftest$ac_exeext'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 (eval $ac_try) 2>&5
7672 ac_status=$?
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; }; then
7675 ac_cv_lib_dl_dlopen=yes
7676 else
7677 echo "$as_me: failed program was:" >&5
7678 cat conftest.$ac_ext >&5
7679 ac_cv_lib_dl_dlopen=no
7680 fi
7681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7682 LIBS=$ac_check_lib_save_LIBS
7683 fi
7684 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7685 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7686 if test $ac_cv_lib_dl_dlopen = yes; then
7687 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7688 else
7689 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7690 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7691 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7693 else
7694 ac_check_lib_save_LIBS=$LIBS
7695 LIBS="-lsvld $LIBS"
7696 cat >conftest.$ac_ext <<_ACEOF
7697 #line $LINENO "configure"
7698 #include "confdefs.h"
7699
7700 /* Override any gcc2 internal prototype to avoid an error. */
7701 #ifdef __cplusplus
7702 extern "C"
7703 #endif
7704 /* We use char because int might match the return type of a gcc2
7705 builtin and then its argument prototype would still apply. */
7706 char dlopen ();
7707 #ifdef F77_DUMMY_MAIN
7708 # ifdef __cplusplus
7709 extern "C"
7710 # endif
7711 int F77_DUMMY_MAIN() { return 1; }
7712 #endif
7713 int
7714 main ()
7715 {
7716 dlopen ();
7717 ;
7718 return 0;
7719 }
7720 _ACEOF
7721 rm -f conftest.$ac_objext conftest$ac_exeext
7722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7723 (eval $ac_link) 2>&5
7724 ac_status=$?
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } &&
7727 { ac_try='test -s conftest$ac_exeext'
7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729 (eval $ac_try) 2>&5
7730 ac_status=$?
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; }; then
7733 ac_cv_lib_svld_dlopen=yes
7734 else
7735 echo "$as_me: failed program was:" >&5
7736 cat conftest.$ac_ext >&5
7737 ac_cv_lib_svld_dlopen=no
7738 fi
7739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7740 LIBS=$ac_check_lib_save_LIBS
7741 fi
7742 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7743 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7744 if test $ac_cv_lib_svld_dlopen = yes; then
7745 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7746 else
7747 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7748 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7749 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752 ac_check_lib_save_LIBS=$LIBS
7753 LIBS="-ldld $LIBS"
7754 cat >conftest.$ac_ext <<_ACEOF
7755 #line $LINENO "configure"
7756 #include "confdefs.h"
7757
7758 /* Override any gcc2 internal prototype to avoid an error. */
7759 #ifdef __cplusplus
7760 extern "C"
7761 #endif
7762 /* We use char because int might match the return type of a gcc2
7763 builtin and then its argument prototype would still apply. */
7764 char dld_link ();
7765 #ifdef F77_DUMMY_MAIN
7766 # ifdef __cplusplus
7767 extern "C"
7768 # endif
7769 int F77_DUMMY_MAIN() { return 1; }
7770 #endif
7771 int
7772 main ()
7773 {
7774 dld_link ();
7775 ;
7776 return 0;
7777 }
7778 _ACEOF
7779 rm -f conftest.$ac_objext conftest$ac_exeext
7780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7781 (eval $ac_link) 2>&5
7782 ac_status=$?
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } &&
7785 { ac_try='test -s conftest$ac_exeext'
7786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787 (eval $ac_try) 2>&5
7788 ac_status=$?
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; }; then
7791 ac_cv_lib_dld_dld_link=yes
7792 else
7793 echo "$as_me: failed program was:" >&5
7794 cat conftest.$ac_ext >&5
7795 ac_cv_lib_dld_dld_link=no
7796 fi
7797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7798 LIBS=$ac_check_lib_save_LIBS
7799 fi
7800 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7801 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7802 if test $ac_cv_lib_dld_dld_link = yes; then
7803 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7804 fi
7805
7806
7807 fi
7808
7809
7810 fi
7811
7812
7813 fi
7814
7815
7816 fi
7817
7818
7819 fi
7820
7821 ;;
7822 esac
7823
7824 if test "x$lt_cv_dlopen" != xno; then
7825 enable_dlopen=yes
7826 else
7827 enable_dlopen=no
7828 fi
7829
7830 case $lt_cv_dlopen in
7831 dlopen)
7832 save_CPPFLAGS="$CPPFLAGS"
7833 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7834
7835 save_LDFLAGS="$LDFLAGS"
7836 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7837
7838 save_LIBS="$LIBS"
7839 LIBS="$lt_cv_dlopen_libs $LIBS"
7840
7841 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7842 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7843 if test "${lt_cv_dlopen_self+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 else
7846 if test "$cross_compiling" = yes; then :
7847 lt_cv_dlopen_self=cross
7848 else
7849 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7850 lt_status=$lt_dlunknown
7851 cat > conftest.$ac_ext <<EOF
7852 #line 7852 "configure"
7853 #include "confdefs.h"
7854
7855 #if HAVE_DLFCN_H
7856 #include <dlfcn.h>
7857 #endif
7858
7859 #include <stdio.h>
7860
7861 #ifdef RTLD_GLOBAL
7862 # define LT_DLGLOBAL RTLD_GLOBAL
7863 #else
7864 # ifdef DL_GLOBAL
7865 # define LT_DLGLOBAL DL_GLOBAL
7866 # else
7867 # define LT_DLGLOBAL 0
7868 # endif
7869 #endif
7870
7871 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7872 find out it does not work in some platform. */
7873 #ifndef LT_DLLAZY_OR_NOW
7874 # ifdef RTLD_LAZY
7875 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7876 # else
7877 # ifdef DL_LAZY
7878 # define LT_DLLAZY_OR_NOW DL_LAZY
7879 # else
7880 # ifdef RTLD_NOW
7881 # define LT_DLLAZY_OR_NOW RTLD_NOW
7882 # else
7883 # ifdef DL_NOW
7884 # define LT_DLLAZY_OR_NOW DL_NOW
7885 # else
7886 # define LT_DLLAZY_OR_NOW 0
7887 # endif
7888 # endif
7889 # endif
7890 # endif
7891 #endif
7892
7893 #ifdef __cplusplus
7894 extern "C" void exit (int);
7895 #endif
7896
7897 void fnord() { int i=42;}
7898 int main ()
7899 {
7900 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7901 int status = $lt_dlunknown;
7902
7903 if (self)
7904 {
7905 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7906 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7907 /* dlclose (self); */
7908 }
7909
7910 exit (status);
7911 }
7912 EOF
7913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7914 (eval $ac_link) 2>&5
7915 ac_status=$?
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7918 (./conftest; exit; ) 2>/dev/null
7919 lt_status=$?
7920 case x$lt_status in
7921 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7922 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7923 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7924 esac
7925 else :
7926 # compilation failed
7927 lt_cv_dlopen_self=no
7928 fi
7929 fi
7930 rm -fr conftest*
7931
7932
7933 fi
7934 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7935 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7936
7937 if test "x$lt_cv_dlopen_self" = xyes; then
7938 LDFLAGS="$LDFLAGS $link_static_flag"
7939 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7940 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7941 if test "${lt_cv_dlopen_self_static+set}" = set; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7943 else
7944 if test "$cross_compiling" = yes; then :
7945 lt_cv_dlopen_self_static=cross
7946 else
7947 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7948 lt_status=$lt_dlunknown
7949 cat > conftest.$ac_ext <<EOF
7950 #line 7950 "configure"
7951 #include "confdefs.h"
7952
7953 #if HAVE_DLFCN_H
7954 #include <dlfcn.h>
7955 #endif
7956
7957 #include <stdio.h>
7958
7959 #ifdef RTLD_GLOBAL
7960 # define LT_DLGLOBAL RTLD_GLOBAL
7961 #else
7962 # ifdef DL_GLOBAL
7963 # define LT_DLGLOBAL DL_GLOBAL
7964 # else
7965 # define LT_DLGLOBAL 0
7966 # endif
7967 #endif
7968
7969 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7970 find out it does not work in some platform. */
7971 #ifndef LT_DLLAZY_OR_NOW
7972 # ifdef RTLD_LAZY
7973 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7974 # else
7975 # ifdef DL_LAZY
7976 # define LT_DLLAZY_OR_NOW DL_LAZY
7977 # else
7978 # ifdef RTLD_NOW
7979 # define LT_DLLAZY_OR_NOW RTLD_NOW
7980 # else
7981 # ifdef DL_NOW
7982 # define LT_DLLAZY_OR_NOW DL_NOW
7983 # else
7984 # define LT_DLLAZY_OR_NOW 0
7985 # endif
7986 # endif
7987 # endif
7988 # endif
7989 #endif
7990
7991 #ifdef __cplusplus
7992 extern "C" void exit (int);
7993 #endif
7994
7995 void fnord() { int i=42;}
7996 int main ()
7997 {
7998 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7999 int status = $lt_dlunknown;
8000
8001 if (self)
8002 {
8003 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8004 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8005 /* dlclose (self); */
8006 }
8007
8008 exit (status);
8009 }
8010 EOF
8011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8012 (eval $ac_link) 2>&5
8013 ac_status=$?
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8016 (./conftest; exit; ) 2>/dev/null
8017 lt_status=$?
8018 case x$lt_status in
8019 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8020 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8021 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8022 esac
8023 else :
8024 # compilation failed
8025 lt_cv_dlopen_self_static=no
8026 fi
8027 fi
8028 rm -fr conftest*
8029
8030
8031 fi
8032 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8033 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8034 fi
8035
8036 CPPFLAGS="$save_CPPFLAGS"
8037 LDFLAGS="$save_LDFLAGS"
8038 LIBS="$save_LIBS"
8039 ;;
8040 esac
8041
8042 case $lt_cv_dlopen_self in
8043 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8044 *) enable_dlopen_self=unknown ;;
8045 esac
8046
8047 case $lt_cv_dlopen_self_static in
8048 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8049 *) enable_dlopen_self_static=unknown ;;
8050 esac
8051 fi
8052
8053
8054 # Report which librarie types wil actually be built
8055 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8056 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8057 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8058 echo "${ECHO_T}$can_build_shared" >&6
8059
8060 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8061 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8062 test "$can_build_shared" = "no" && enable_shared=no
8063
8064 # On AIX, shared libraries and static libraries use the same namespace, and
8065 # are all built from PIC.
8066 case "$host_os" in
8067 aix3*)
8068 test "$enable_shared" = yes && enable_static=no
8069 if test -n "$RANLIB"; then
8070 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8071 postinstall_cmds='$RANLIB $lib'
8072 fi
8073 ;;
8074
8075 aix4*)
8076 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8077 test "$enable_shared" = yes && enable_static=no
8078 fi
8079 ;;
8080 esac
8081 echo "$as_me:$LINENO: result: $enable_shared" >&5
8082 echo "${ECHO_T}$enable_shared" >&6
8083
8084 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8085 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8086 # Make sure either enable_shared or enable_static is yes.
8087 test "$enable_shared" = yes || enable_static=yes
8088 echo "$as_me:$LINENO: result: $enable_static" >&5
8089 echo "${ECHO_T}$enable_static" >&6
8090
8091 # The else clause should only fire when bootstrapping the
8092 # libtool distribution, otherwise you forgot to ship ltmain.sh
8093 # with your package, and you will get complaints that there are
8094 # no rules to generate ltmain.sh.
8095 if test -f "$ltmain"; then
8096 # Now quote all the things that may contain metacharacters while being
8097 # careful not to overquote the AC_SUBSTed values. We take copies of the
8098 # variables and quote the copies for generation of the libtool script.
8099 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
8100 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8101 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8102 deplibs_check_method reload_flag reload_cmds need_locks \
8103 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8104 lt_cv_sys_global_symbol_to_c_name_address \
8105 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8106 old_postinstall_cmds old_postuninstall_cmds \
8107 compiler \
8108 CC \
8109 LD \
8110 lt_prog_compiler_wl \
8111 lt_prog_compiler_pic \
8112 lt_prog_compiler_static \
8113 lt_prog_compiler_no_builtin_flag \
8114 export_dynamic_flag_spec \
8115 thread_safe_flag_spec \
8116 whole_archive_flag_spec \
8117 old_archive_cmds \
8118 old_archive_from_new_cmds \
8119 predep_objects \
8120 postdep_objects \
8121 predeps \
8122 postdeps \
8123 compiler_lib_search_path \
8124 archive_cmds \
8125 archive_expsym_cmds \
8126 postinstall_cmds \
8127 postuninstall_cmds \
8128 old_archive_from_expsyms_cmds \
8129 allow_undefined_flag \
8130 no_undefined_flag \
8131 export_symbols_cmds \
8132 hardcode_libdir_flag_spec \
8133 hardcode_libdir_separator \
8134 lt_cv_prog_compiler_c_o \
8135 exclude_expsyms \
8136 include_expsyms; do
8137
8138 case $var in
8139 old_archive_cmds | \
8140 old_archive_from_new_cmds | \
8141 archive_cmds | \
8142 archive_expsym_cmds | \
8143 old_archive_from_expsyms_cmds | \
8144 export_symbols_cmds | \
8145 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8146 postinstall_cmds | postuninstall_cmds | \
8147 old_postinstall_cmds | old_postuninstall_cmds | \
8148 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8149 # Double-quote double-evaled strings.
8150 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8151 ;;
8152 *)
8153 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8154 ;;
8155 esac
8156 done
8157
8158 case $lt_echo in
8159 *'\$0 --fallback-echo"')
8160 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8161 ;;
8162 esac
8163
8164 cfgfile="${ofile}T"
8165 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8166 $rm -f "$cfgfile"
8167 { echo "$as_me:$LINENO: creating $ofile" >&5
8168 echo "$as_me: creating $ofile" >&6;}
8169
8170 cat <<__EOF__ >> "$cfgfile"
8171 #! $SHELL
8172
8173 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8174 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8175 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8176 #
8177 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8178 # Free Software Foundation, Inc.
8179 #
8180 # This file is part of GNU Libtool:
8181 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8182 #
8183 # This program is free software; you can redistribute it and/or modify
8184 # it under the terms of the GNU General Public License as published by
8185 # the Free Software Foundation; either version 2 of the License, or
8186 # (at your option) any later version.
8187 #
8188 # This program is distributed in the hope that it will be useful, but
8189 # WITHOUT ANY WARRANTY; without even the implied warranty of
8190 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8191 # General Public License for more details.
8192 #
8193 # You should have received a copy of the GNU General Public License
8194 # along with this program; if not, write to the Free Software
8195 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8196 #
8197 # As a special exception to the GNU General Public License, if you
8198 # distribute this file as part of a program that contains a
8199 # configuration script generated by Autoconf, you may include it under
8200 # the same distribution terms that you use for the rest of that program.
8201
8202 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8203 Xsed="sed -e s/^X//"
8204
8205 # The HP-UX ksh and POSIX shell print the target directory to stdout
8206 # if CDPATH is set.
8207 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8208
8209 # The names of the tagged configurations supported by this script.
8210 available_tags=
8211
8212 # ### BEGIN LIBTOOL CONFIG
8213
8214 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8215
8216 # Shell to use when invoking shell scripts.
8217 SHELL=$lt_SHELL
8218
8219 # Whether or not to build shared libraries.
8220 build_libtool_libs=$enable_shared
8221
8222 # Whether or not to build static libraries.
8223 build_old_libs=$enable_static
8224
8225 # Whether or not to add -lc for building shared libraries.
8226 build_libtool_need_lc=$archive_cmds_need_lc
8227
8228 # Whether or not to optimize for fast installation.
8229 fast_install=$enable_fast_install
8230
8231 # The host system.
8232 host_alias=$host_alias
8233 host=$host
8234
8235 # An echo program that does not interpret backslashes.
8236 echo=$lt_echo
8237
8238 # The archiver.
8239 AR=$lt_AR
8240 AR_FLAGS=$lt_AR_FLAGS
8241
8242 # A C compiler.
8243 LTCC=$lt_LTCC
8244
8245 # A language-specific compiler.
8246 CC=$lt_compiler
8247
8248 # Is the compiler the GNU C compiler?
8249 with_gcc=$GCC
8250
8251 # The linker used to build libraries.
8252 LD=$lt_LD
8253
8254 # Whether we need hard or soft links.
8255 LN_S=$lt_LN_S
8256
8257 # A BSD-compatible nm program.
8258 NM=$lt_NM
8259
8260 # A sed program that does not truncate output.
8261 SED=$lt_SED
8262
8263 # A symbol stripping program
8264 STRIP=$STRIP
8265
8266 # Used to examine libraries when file_magic_cmd begins "file"
8267 MAGIC_CMD=$MAGIC_CMD
8268
8269 # Used on cygwin: DLL creation program.
8270 DLLTOOL="$DLLTOOL"
8271
8272 # Used on cygwin: object dumper.
8273 OBJDUMP="$OBJDUMP"
8274
8275 # Used on cygwin: assembler.
8276 AS="$AS"
8277
8278 # The name of the directory that contains temporary libtool files.
8279 objdir=$objdir
8280
8281 # How to create reloadable object files.
8282 reload_flag=$lt_reload_flag
8283 reload_cmds=$lt_reload_cmds
8284
8285 # How to pass a linker flag through the compiler.
8286 wl=$lt_lt_prog_compiler_wl
8287
8288 # Object file suffix (normally "o").
8289 objext="$ac_objext"
8290
8291 # Old archive suffix (normally "a").
8292 libext="$libext"
8293
8294 # Executable file suffix (normally "").
8295 exeext="$exeext"
8296
8297 # Additional compiler flags for building library objects.
8298 pic_flag=$lt_lt_prog_compiler_pic
8299 pic_mode=$pic_mode
8300
8301 # What is the maximum length of a command?
8302 max_cmd_len=$lt_cv_sys_max_cmd_len
8303
8304 # Does compiler simultaneously support -c and -o options?
8305 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8306
8307 # Must we lock files when doing compilation ?
8308 need_locks=$lt_need_locks
8309
8310 # Do we need the lib prefix for modules?
8311 need_lib_prefix=$need_lib_prefix
8312
8313 # Do we need a version for libraries?
8314 need_version=$need_version
8315
8316 # Whether dlopen is supported.
8317 dlopen_support=$enable_dlopen
8318
8319 # Whether dlopen of programs is supported.
8320 dlopen_self=$enable_dlopen_self
8321
8322 # Whether dlopen of statically linked programs is supported.
8323 dlopen_self_static=$enable_dlopen_self_static
8324
8325 # Compiler flag to prevent dynamic linking.
8326 link_static_flag=$lt_lt_prog_compiler_static
8327
8328 # Compiler flag to turn off builtin functions.
8329 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8330
8331 # Compiler flag to allow reflexive dlopens.
8332 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8333
8334 # Compiler flag to generate shared objects directly from archives.
8335 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8336
8337 # Compiler flag to generate thread-safe objects.
8338 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8339
8340 # Library versioning type.
8341 version_type=$version_type
8342
8343 # Format of library name prefix.
8344 libname_spec=$lt_libname_spec
8345
8346 # List of archive names. First name is the real one, the rest are links.
8347 # The last name is the one that the linker finds with -lNAME.
8348 library_names_spec=$lt_library_names_spec
8349
8350 # The coded name of the library, if different from the real name.
8351 soname_spec=$lt_soname_spec
8352
8353 # Commands used to build and install an old-style archive.
8354 RANLIB=$lt_RANLIB
8355 old_archive_cmds=$lt_old_archive_cmds
8356 old_postinstall_cmds=$lt_old_postinstall_cmds
8357 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8358
8359 # Create an old-style archive from a shared archive.
8360 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8361
8362 # Create a temporary old-style archive to link instead of a shared archive.
8363 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8364
8365 # Commands used to build and install a shared archive.
8366 archive_cmds=$lt_archive_cmds
8367 archive_expsym_cmds=$lt_archive_expsym_cmds
8368 postinstall_cmds=$lt_postinstall_cmds
8369 postuninstall_cmds=$lt_postuninstall_cmds
8370
8371 # Commands to strip libraries.
8372 old_striplib=$lt_old_striplib
8373 striplib=$lt_striplib
8374
8375 # Dependencies to place before the objects being linked to create a
8376 # shared library.
8377 predep_objects=$lt_predep_objects
8378
8379 # Dependencies to place after the objects being linked to create a
8380 # shared library.
8381 postdep_objects=$lt_postdep_objects
8382
8383 # Dependencies to place before the objects being linked to create a
8384 # shared library.
8385 predeps=$lt_predeps
8386
8387 # Dependencies to place after the objects being linked to create a
8388 # shared library.
8389 postdeps=$lt_postdeps
8390
8391 # The library search path used internally by the compiler when linking
8392 # a shared library.
8393 compiler_lib_search_path=$lt_compiler_lib_search_path
8394
8395 # Method to check whether dependent libraries are shared objects.
8396 deplibs_check_method=$lt_deplibs_check_method
8397
8398 # Command to use when deplibs_check_method == file_magic.
8399 file_magic_cmd=$lt_file_magic_cmd
8400
8401 # Flag that allows shared libraries with undefined symbols to be built.
8402 allow_undefined_flag=$lt_allow_undefined_flag
8403
8404 # Flag that forces no undefined symbols.
8405 no_undefined_flag=$lt_no_undefined_flag
8406
8407 # Commands used to finish a libtool library installation in a directory.
8408 finish_cmds=$lt_finish_cmds
8409
8410 # Same as above, but a single script fragment to be evaled but not shown.
8411 finish_eval=$lt_finish_eval
8412
8413 # Take the output of nm and produce a listing of raw symbols and C names.
8414 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8415
8416 # Transform the output of nm in a proper C declaration
8417 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8418
8419 # Transform the output of nm in a C name address pair
8420 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8421
8422 # This is the shared library runtime path variable.
8423 runpath_var=$runpath_var
8424
8425 # This is the shared library path variable.
8426 shlibpath_var=$shlibpath_var
8427
8428 # Is shlibpath searched before the hard-coded library search path?
8429 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8430
8431 # How to hardcode a shared library path into an executable.
8432 hardcode_action=$hardcode_action
8433
8434 # Whether we should hardcode library paths into libraries.
8435 hardcode_into_libs=$hardcode_into_libs
8436
8437 # Flag to hardcode \$libdir into a binary during linking.
8438 # This must work even if \$libdir does not exist.
8439 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8440
8441 # Whether we need a single -rpath flag with a separated argument.
8442 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8443
8444 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8445 # resulting binary.
8446 hardcode_direct=$hardcode_direct
8447
8448 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8449 # resulting binary.
8450 hardcode_minus_L=$hardcode_minus_L
8451
8452 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8453 # the resulting binary.
8454 hardcode_shlibpath_var=$hardcode_shlibpath_var
8455
8456 # Variables whose values should be saved in libtool wrapper scripts and
8457 # restored at relink time.
8458 variables_saved_for_relink="$variables_saved_for_relink"
8459
8460 # Whether libtool must link a program against all its dependency libraries.
8461 link_all_deplibs=$link_all_deplibs
8462
8463 # Compile-time system search path for libraries
8464 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8465
8466 # Run-time system search path for libraries
8467 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8468
8469 # Fix the shell variable \$srcfile for the compiler.
8470 fix_srcfile_path="$fix_srcfile_path"
8471
8472 # Set to yes if exported symbols are required.
8473 always_export_symbols=$always_export_symbols
8474
8475 # The commands to list exported symbols.
8476 export_symbols_cmds=$lt_export_symbols_cmds
8477
8478 # The commands to extract the exported symbol list from a shared archive.
8479 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8480
8481 # Symbols that should not be listed in the preloaded symbols.
8482 exclude_expsyms=$lt_exclude_expsyms
8483
8484 # Symbols that must always be exported.
8485 include_expsyms=$lt_include_expsyms
8486
8487 # ### END LIBTOOL CONFIG
8488
8489 __EOF__
8490
8491
8492 case $host_os in
8493 aix3*)
8494 cat <<\EOF >> "$cfgfile"
8495
8496 # AIX sometimes has problems with the GCC collect2 program. For some
8497 # reason, if we set the COLLECT_NAMES environment variable, the problems
8498 # vanish in a puff of smoke.
8499 if test "X${COLLECT_NAMES+set}" != Xset; then
8500 COLLECT_NAMES=
8501 export COLLECT_NAMES
8502 fi
8503 EOF
8504 ;;
8505
8506 cygwin* | mingw* | pw32* | os2*)
8507 cat <<'EOF' >> "$cfgfile"
8508 # This is a source program that is used to create dlls on Windows
8509 # Don't remove nor modify the starting and closing comments
8510
8511 # /* ltdll.c starts here */
8512 # #define WIN32_LEAN_AND_MEAN
8513 # #include <windows.h>
8514 # #undef WIN32_LEAN_AND_MEAN
8515 # #include <stdio.h>
8516 #
8517 # #ifndef __CYGWIN__
8518 # # ifdef __CYGWIN32__
8519 # # define __CYGWIN__ __CYGWIN32__
8520 # # endif
8521 # #endif
8522 #
8523 # #ifdef __cplusplus
8524 # extern "C" {
8525 # #endif
8526 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8527 # #ifdef __cplusplus
8528 # }
8529 # #endif
8530 #
8531 # #ifdef __CYGWIN__
8532 # #include <cygwin/cygwin_dll.h>
8533 # DECLARE_CYGWIN_DLL( DllMain );
8534 # #endif
8535 # HINSTANCE __hDllInstance_base;
8536 #
8537 # BOOL APIENTRY
8538 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8539 # {
8540 # __hDllInstance_base = hInst;
8541 # return TRUE;
8542 # }
8543 # /* ltdll.c ends here */
8544
8545 # This is a source program that is used to create import libraries
8546 # on Windows for dlls which lack them. Don't remove nor modify the
8547 # starting and closing comments
8548
8549 # /* impgen.c starts here */
8550 # /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
8551 #
8552 # This file is part of GNU libtool.
8553 #
8554 # This program is free software; you can redistribute it and/or modify
8555 # it under the terms of the GNU General Public License as published by
8556 # the Free Software Foundation; either version 2 of the License, or
8557 # (at your option) any later version.
8558 #
8559 # This program is distributed in the hope that it will be useful,
8560 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8561 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8562 # GNU General Public License for more details.
8563 #
8564 # You should have received a copy of the GNU General Public License
8565 # along with this program; if not, write to the Free Software
8566 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8567 # */
8568 #
8569 # #include <stdio.h> /* for printf() */
8570 # #include <unistd.h> /* for open(), lseek(), read() */
8571 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8572 # #include <string.h> /* for strdup() */
8573 #
8574 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8575 # #ifndef O_BINARY
8576 # #define O_BINARY 0
8577 # #endif
8578 #
8579 # static unsigned int
8580 # pe_get16 (fd, offset)
8581 # int fd;
8582 # int offset;
8583 # {
8584 # unsigned char b[2];
8585 # lseek (fd, offset, SEEK_SET);
8586 # read (fd, b, 2);
8587 # return b[0] + (b[1]<<8);
8588 # }
8589 #
8590 # static unsigned int
8591 # pe_get32 (fd, offset)
8592 # int fd;
8593 # int offset;
8594 # {
8595 # unsigned char b[4];
8596 # lseek (fd, offset, SEEK_SET);
8597 # read (fd, b, 4);
8598 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8599 # }
8600 #
8601 # static unsigned int
8602 # pe_as32 (ptr)
8603 # void *ptr;
8604 # {
8605 # unsigned char *b = ptr;
8606 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8607 # }
8608 #
8609 # int
8610 # main (argc, argv)
8611 # int argc;
8612 # char *argv[];
8613 # {
8614 # int dll;
8615 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8616 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8617 # unsigned long name_rvas, nexp;
8618 # unsigned char *expdata, *erva;
8619 # char *filename, *dll_name;
8620 #
8621 # filename = argv[1];
8622 #
8623 # dll = open(filename, O_RDONLY|O_BINARY);
8624 # if (dll < 1)
8625 # return 1;
8626 #
8627 # dll_name = filename;
8628 #
8629 # for (i=0; filename[i]; i++)
8630 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8631 # dll_name = filename + i +1;
8632 #
8633 # pe_header_offset = pe_get32 (dll, 0x3c);
8634 # opthdr_ofs = pe_header_offset + 4 + 20;
8635 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8636 #
8637 # if (num_entries < 1) /* no exports */
8638 # return 1;
8639 #
8640 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8641 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8642 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8643 # secptr = (pe_header_offset + 4 + 20 +
8644 # pe_get16 (dll, pe_header_offset + 4 + 16));
8645 #
8646 # expptr = 0;
8647 # for (i = 0; i < nsections; i++)
8648 # {
8649 # char sname[8];
8650 # unsigned long secptr1 = secptr + 40 * i;
8651 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8652 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8653 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8654 # lseek(dll, secptr1, SEEK_SET);
8655 # read(dll, sname, 8);
8656 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8657 # {
8658 # expptr = fptr + (export_rva - vaddr);
8659 # if (export_rva + export_size > vaddr + vsize)
8660 # export_size = vsize - (export_rva - vaddr);
8661 # break;
8662 # }
8663 # }
8664 #
8665 # expdata = (unsigned char*)malloc(export_size);
8666 # lseek (dll, expptr, SEEK_SET);
8667 # read (dll, expdata, export_size);
8668 # erva = expdata - export_rva;
8669 #
8670 # nexp = pe_as32 (expdata+24);
8671 # name_rvas = pe_as32 (expdata+32);
8672 #
8673 # printf ("EXPORTS\n");
8674 # for (i = 0; i<nexp; i++)
8675 # {
8676 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8677 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8678 # }
8679 #
8680 # return 0;
8681 # }
8682 # /* impgen.c ends here */
8683
8684 EOF
8685 ;;
8686 esac
8687
8688 # We use sed instead of cat because bash on DJGPP gets confused if
8689 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8690 # text mode, it properly converts lines to CR/LF. This bash problem
8691 # is reportedly fixed, but why not run on old versions too?
8692 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8693
8694 mv -f "$cfgfile" "$ofile" || \
8695 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8696 chmod +x "$ofile"
8697
8698 else
8699 # If there is no Makefile yet, we rely on a make rule to execute
8700 # `config.status --recheck' to rerun these tests and create the
8701 # libtool script then.
8702 test -f Makefile && make "$ltmain"
8703 fi
8704
8705
8706 ac_ext=cc
8707 ac_cpp='$CXXCPP $CPPFLAGS'
8708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8711
8712 CC="$lt_save_CC"
8713
8714
8715 # Check whether --with-tags or --without-tags was given.
8716 if test "${with_tags+set}" = set; then
8717 withval="$with_tags"
8718 tagnames="$withval"
8719 else
8720 tagnames="CXX,GCJ"
8721 case $host_os in
8722 mingw*|cygwin*) tagnames="$tagnames,RC" ;;
8723 esac
8724 fi;
8725
8726 if test -f "$ltmain" && test -n "$tagnames"; then
8727 if test ! -f "${ofile}"; then
8728 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8729 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8730 fi
8731
8732 if test -z "$LTCC"; then
8733 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8734 if test -z "$LTCC"; then
8735 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8736 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8737 else
8738 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8739 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8740 fi
8741 fi
8742
8743 # Extract list of available tagged configurations in $ofile.
8744 # Note that this assumes the entire list is on one line.
8745 available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8746
8747 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8748 for tagname in $tagnames; do
8749 IFS="$lt_save_ifs"
8750 # Check whether tagname contains only valid characters
8751 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8752 "") ;;
8753 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8754 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8755 { (exit 1); exit 1; }; }
8756 ;;
8757 esac
8758
8759 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8760 then
8761 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8762 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8763 { (exit 1); exit 1; }; }
8764 fi
8765
8766 # Update the list of available tags.
8767 if test -n "$tagname"; then
8768 echo appending configuration tag \"$tagname\" to $ofile
8769
8770 case $tagname in
8771 CXX)
8772 ac_ext=cc
8773 ac_cpp='$CXXCPP $CPPFLAGS'
8774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8777
8778
8779
8780
8781 archive_cmds_need_lc_CXX=no
8782 allow_undefined_flag_CXX=
8783 always_export_symbols_CXX=no
8784 archive_expsym_cmds_CXX=
8785 export_dynamic_flag_spec_CXX=
8786 hardcode_direct_CXX=no
8787 hardcode_libdir_flag_spec_CXX=
8788 hardcode_libdir_separator_CXX=
8789 hardcode_minus_L_CXX=no
8790 link_all_deplibs_CXX=unknown
8791 old_archive_cmds_CXX=$old_archive_cmds
8792 no_undefined_flag_CXX=
8793 whole_archive_flag_spec_CXX=
8794
8795 # Dependencies to place before and after the object being linked:
8796 predep_objects_CXX=
8797 postdep_objects_CXX=
8798 predeps_CXX=
8799 postdeps_CXX=
8800 compiler_lib_search_path_CXX=
8801
8802 # Source file extension for C test sources.
8803 ac_ext=cc
8804
8805 # Object file extension for compiled C test sources.
8806 objext=o
8807 objext_CXX=$objext
8808
8809 # Code to be used in simple compile tests
8810 lt_simple_compile_test_code="int some_variable = 0;"
8811
8812 # Code to be used in simple link tests
8813 lt_simple_link_test_code='int main(int char *) { return(0); }'
8814
8815 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8816
8817 # If no C compiler was specified, use CC.
8818 LTCC=${LTCC-"$CC"}
8819
8820 # Allow CC to be a program name with arguments.
8821 set dummy $CC
8822 compiler="$2"
8823
8824
8825 # Allow CC to be a program name with arguments.
8826 lt_save_CC="$CC"
8827 CC=${CXX-"c++"}
8828 set dummy $CC
8829 compiler="$2"
8830 compiler_CXX=$CC
8831 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8832
8833 # We don't want -fno-exception wen compiling C++ code, so set the
8834 # no_builtin_flag separately
8835 if test "$GXX" = yes; then
8836 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8837 else
8838 lt_prog_compiler_no_builtin_flag_CXX=
8839 fi
8840
8841 if test "$GXX" = yes; then
8842 # Set up default GNU C++ configuration
8843
8844 # Check if GNU C++ uses GNU ld as the underlying linker, since the
8845 # archiving commands below assume that GNU ld is being used.
8846 if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
8847 egrep 'GNU ld' > /dev/null; then
8848 with_gnu_ld=yes
8849
8850 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8851 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8852
8853 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
8854 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
8855
8856 # If archive_cmds runs LD, not CC, wlarc should be empty
8857 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
8858 # investigate it a little bit more. (MM)
8859 wlarc='${wl}'
8860
8861 # ancient GNU ld didn't support --whole-archive et. al.
8862 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
8863 egrep 'no-whole-archive' > /dev/null; then
8864 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8865 else
8866 whole_archive_flag_spec_CXX=
8867 fi
8868 else
8869 with_gnu_ld=no
8870 wlarc=
8871
8872 # A generic and very simple default shared library creation
8873 # command for GNU C++ for the case where it uses the native
8874 # linker, instead of GNU ld. If possible, this setting should
8875 # overridden to take advantage of the native linker features on
8876 # the platform it is being used on.
8877 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8878 fi
8879
8880 # Commands to make compiler produce verbose output that lists
8881 # what "hidden" libraries, object files and flags are used when
8882 # linking a shared library.
8883 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
8884
8885 else
8886 GXX=no
8887 with_gnu_ld=no
8888 wlarc=
8889 fi
8890
8891 # PORTME: fill in a description of your system's C++ link characteristics
8892 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8893 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8894 ld_shlibs_CXX=yes
8895 case $host_os in
8896 aix3*)
8897 # FIXME: insert proper C++ library support
8898 ld_shlibs_CXX=no
8899 ;;
8900 aix4* | aix5*)
8901 if test "$host_cpu" = ia64; then
8902 # On IA64, the linker does run time linking by default, so we don't
8903 # have to do anything special.
8904 aix_use_runtimelinking=no
8905 exp_sym_flag='-Bexport'
8906 no_entry_flag=""
8907 else
8908 aix_use_runtimelinking=no
8909
8910 # Test if we are trying to use run time linking or normal
8911 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8912 # need to do runtime linking.
8913 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8914 for ld_flag in $LDFLAGS; do
8915 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8916 aix_use_runtimelinking=yes
8917 break
8918 fi
8919 done
8920 esac
8921
8922 exp_sym_flag='-bexport'
8923 no_entry_flag='-bnoentry'
8924 fi
8925
8926 # When large executables or shared objects are built, AIX ld can
8927 # have problems creating the table of contents. If linking a library
8928 # or program results in "error TOC overflow" add -mminimal-toc to
8929 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8930 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8931
8932 archive_cmds_CXX=''
8933 hardcode_direct_CXX=yes
8934 hardcode_libdir_separator_CXX=':'
8935 link_all_deplibs_CXX=yes
8936
8937 if test "$GXX" = yes; then
8938 case $host_os in aix4.012|aix4.012.*)
8939 # We only want to do this on AIX 4.2 and lower, the check
8940 # below for broken collect2 doesn't work under 4.3+
8941 collect2name=`${CC} -print-prog-name=collect2`
8942 if test -f "$collect2name" && \
8943 strings "$collect2name" | grep resolve_lib_name >/dev/null
8944 then
8945 # We have reworked collect2
8946 hardcode_direct_CXX=yes
8947 else
8948 # We have old collect2
8949 hardcode_direct_CXX=unsupported
8950 # It fails to find uninstalled libraries when the uninstalled
8951 # path is not listed in the libpath. Setting hardcode_minus_L
8952 # to unsupported forces relinking
8953 hardcode_minus_L_CXX=yes
8954 hardcode_libdir_flag_spec_CXX='-L$libdir'
8955 hardcode_libdir_separator_CXX=
8956 fi
8957 esac
8958 shared_flag='-shared'
8959 else
8960 # not using gcc
8961 if test "$host_cpu" = ia64; then
8962 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8963 # chokes on -Wl,-G. The following line is correct:
8964 shared_flag='-G'
8965 else
8966 if test "$aix_use_runtimelinking" = yes; then
8967 shared_flag='${wl}-G'
8968 else
8969 shared_flag='${wl}-bM:SRE'
8970 fi
8971 fi
8972 fi
8973
8974 # It seems that -bexpall does not export symbols beginning with
8975 # underscore (_), so it is better to generate a list of symbols to export.
8976 always_export_symbols_CXX=yes
8977 if test "$aix_use_runtimelinking" = yes; then
8978 # Warning - without using the other runtime loading flags (-brtl),
8979 # -berok will link without error, but may produce a broken library.
8980 allow_undefined_flag_CXX='-berok'
8981 # Determine the default libpath from the value encoded in an empty executable.
8982 cat >conftest.$ac_ext <<_ACEOF
8983 #line $LINENO "configure"
8984 #include "confdefs.h"
8985
8986 #ifdef F77_DUMMY_MAIN
8987 # ifdef __cplusplus
8988 extern "C"
8989 # endif
8990 int F77_DUMMY_MAIN() { return 1; }
8991 #endif
8992 int
8993 main ()
8994 {
8995
8996 ;
8997 return 0;
8998 }
8999 _ACEOF
9000 rm -f conftest.$ac_objext conftest$ac_exeext
9001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9002 (eval $ac_link) 2>&5
9003 ac_status=$?
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } &&
9006 { ac_try='test -s conftest$ac_exeext'
9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 (eval $ac_try) 2>&5
9009 ac_status=$?
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; }; then
9012
9013 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9014 }'`
9015 # Check for a 64-bit object if we didn't find anything.
9016 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9017 }'`; fi
9018 else
9019 echo "$as_me: failed program was:" >&5
9020 cat conftest.$ac_ext >&5
9021 fi
9022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9023 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9024
9025 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9026
9027 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9028 else
9029 if test "$host_cpu" = ia64; then
9030 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9031 allow_undefined_flag_CXX="-z nodefs"
9032 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9033 else
9034 # Determine the default libpath from the value encoded in an empty executable.
9035 cat >conftest.$ac_ext <<_ACEOF
9036 #line $LINENO "configure"
9037 #include "confdefs.h"
9038
9039 #ifdef F77_DUMMY_MAIN
9040 # ifdef __cplusplus
9041 extern "C"
9042 # endif
9043 int F77_DUMMY_MAIN() { return 1; }
9044 #endif
9045 int
9046 main ()
9047 {
9048
9049 ;
9050 return 0;
9051 }
9052 _ACEOF
9053 rm -f conftest.$ac_objext conftest$ac_exeext
9054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9055 (eval $ac_link) 2>&5
9056 ac_status=$?
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } &&
9059 { ac_try='test -s conftest$ac_exeext'
9060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061 (eval $ac_try) 2>&5
9062 ac_status=$?
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); }; }; then
9065
9066 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9067 }'`
9068 # Check for a 64-bit object if we didn't find anything.
9069 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9070 }'`; fi
9071 else
9072 echo "$as_me: failed program was:" >&5
9073 cat conftest.$ac_ext >&5
9074 fi
9075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9076 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9077
9078 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9079 # Warning - without using the other run time loading flags,
9080 # -berok will link without error, but may produce a broken library.
9081 no_undefined_flag_CXX=' ${wl}-bernotok'
9082 allow_undefined_flag_CXX=' ${wl}-berok'
9083 # -bexpall does not export symbols beginning with underscore (_)
9084 always_export_symbols_CXX=yes
9085 # Exported symbols can be pulled into shared objects from archives
9086 whole_archive_flag_spec_CXX=' '
9087 archive_cmds_need_lc_CXX=yes
9088 # This is similar to how AIX traditionally builds it's shared libraries.
9089 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9090 fi
9091 fi
9092 ;;
9093 chorus*)
9094 case $cc_basename in
9095 *)
9096 # FIXME: insert proper C++ library support
9097 ld_shlibs_CXX=no
9098 ;;
9099 esac
9100 ;;
9101
9102 cygwin*)
9103 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9104 # as there is no search path for DLLs.
9105 hardcode_libdir_flag_spec_CXX='-L$libdir'
9106 allow_undefined_flag_CXX=
9107 always_export_symbols_CXX=yes
9108
9109 if $LD --help 2>&1 | egrep 'auto-import' > /dev/null; then
9110 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9111 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}-retain-symbols-file $wl$export_symbols ${wl}--out-implib,$lib'
9112 else
9113 ld_shlibs_CXX=no
9114 fi
9115 ;;
9116
9117 mingw* | pw32*)
9118 # FIXME: insert proper C++ library support
9119 ld_shlibs_CXX=no
9120 ;;
9121
9122 dgux*)
9123 case $cc_basename in
9124 ec++)
9125 # FIXME: insert proper C++ library support
9126 ld_shlibs_CXX=no
9127 ;;
9128 ghcx)
9129 # Green Hills C++ Compiler
9130 # FIXME: insert proper C++ library support
9131 ld_shlibs_CXX=no
9132 ;;
9133 *)
9134 # FIXME: insert proper C++ library support
9135 ld_shlibs_CXX=no
9136 ;;
9137 esac
9138 ;;
9139 freebsd12*)
9140 # C++ shared libraries reported to be fairly broken before switch to ELF
9141 ld_shlibs_CXX=no
9142 ;;
9143 freebsd-elf*)
9144 archive_cmds_need_lc_CXX=no
9145 ;;
9146 freebsd*)
9147 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9148 # conventions
9149 ld_shlibs_CXX=yes
9150 ;;
9151 gnu*)
9152 ;;
9153 hpux*)
9154 if test $with_gnu_ld = no; then
9155 if test "$host_cpu" = ia64; then
9156 hardcode_libdir_flag_spec_CXX='-L$libdir'
9157 else
9158 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9159 hardcode_libdir_separator_CXX=:
9160 export_dynamic_flag_spec_CXX='${wl}-E'
9161 fi
9162 fi
9163 if test "$host_cpu" = ia64; then
9164 hardcode_direct_CXX=no
9165 hardcode_shlibpath_var_CXX=no
9166 else
9167 hardcode_direct_CXX=yes
9168 fi
9169 hardcode_minus_L_CXX=yes # Not in the search PATH,
9170 # but as the default
9171 # location of the library.
9172
9173 case $cc_basename in
9174 CC)
9175 # FIXME: insert proper C++ library support
9176 ld_shlibs_CXX=no
9177 ;;
9178 aCC)
9179 case $host_os in
9180 hpux9*)
9181 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9182 ;;
9183 *)
9184 if test "$host_cpu" = ia64; then
9185 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9186 else
9187 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9188 fi
9189 ;;
9190 esac
9191 # Commands to make compiler produce verbose output that lists
9192 # what "hidden" libraries, object files and flags are used when
9193 # linking a shared library.
9194 #
9195 # There doesn't appear to be a way to prevent this compiler from
9196 # explicitly linking system object files so we need to strip them
9197 # from the output so that they don't get included in the library
9198 # dependencies.
9199 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9200 ;;
9201 *)
9202 if test "$GXX" = yes; then
9203 if test $with_gnu_ld = no; then
9204 case $host_os in
9205 hpux9*)
9206 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9207 ;;
9208 *)
9209 if test "$host_cpu" = ia64; then
9210 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9211 else
9212 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9213 fi
9214 ;;
9215 esac
9216 fi
9217 else
9218 # FIXME: insert proper C++ library support
9219 ld_shlibs_CXX=no
9220 fi
9221 ;;
9222 esac
9223 ;;
9224 irix5* | irix6*)
9225 case $cc_basename in
9226 CC)
9227 # SGI C++
9228 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9229
9230 # Archives containing C++ object files must be created using
9231 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9232 # necessary to make sure instantiated templates are included
9233 # in the archive.
9234 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9235 ;;
9236 *)
9237 if test "$GXX" = yes; then
9238 if test "$with_gnu_ld" = no; then
9239 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9240 else
9241 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
9242 fi
9243 fi
9244 link_all_deplibs_CXX=yes
9245 ;;
9246 esac
9247 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9248 hardcode_libdir_separator_CXX=:
9249 ;;
9250 linux*)
9251 case $cc_basename in
9252 KCC)
9253 # Kuck and Associates, Inc. (KAI) C++ Compiler
9254
9255 # KCC will only create a shared library if the output file
9256 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9257 # to its proper name (with version) after linking.
9258 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9259 archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
9260
9261 # Commands to make compiler produce verbose output that lists
9262 # what "hidden" libraries, object files and flags are used when
9263 # linking a shared library.
9264 #
9265 # There doesn't appear to be a way to prevent this compiler from
9266 # explicitly linking system object files so we need to strip them
9267 # from the output so that they don't get included in the library
9268 # dependencies.
9269 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9270
9271 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9272 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9273
9274 # Archives containing C++ object files must be created using
9275 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9276 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9277 ;;
9278 cxx)
9279 # Compaq C++
9280 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9281 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
9282
9283 runpath_var=LD_RUN_PATH
9284 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9285 hardcode_libdir_separator_CXX=:
9286
9287 # Commands to make compiler produce verbose output that lists
9288 # what "hidden" libraries, object files and flags are used when
9289 # linking a shared library.
9290 #
9291 # There doesn't appear to be a way to prevent this compiler from
9292 # explicitly linking system object files so we need to strip them
9293 # from the output so that they don't get included in the library
9294 # dependencies.
9295 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9296 ;;
9297 esac
9298 ;;
9299 lynxos*)
9300 # FIXME: insert proper C++ library support
9301 ld_shlibs_CXX=no
9302 ;;
9303 m88k*)
9304 # FIXME: insert proper C++ library support
9305 ld_shlibs_CXX=no
9306 ;;
9307 mvs*)
9308 case $cc_basename in
9309 cxx)
9310 # FIXME: insert proper C++ library support
9311 ld_shlibs_CXX=no
9312 ;;
9313 *)
9314 # FIXME: insert proper C++ library support
9315 ld_shlibs_CXX=no
9316 ;;
9317 esac
9318 ;;
9319 netbsd*)
9320 # NetBSD uses g++ - do we need to do anything?
9321 ;;
9322 osf3*)
9323 case $cc_basename in
9324 KCC)
9325 # Kuck and Associates, Inc. (KAI) C++ Compiler
9326
9327 # KCC will only create a shared library if the output file
9328 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9329 # to its proper name (with version) after linking.
9330 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9331
9332 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9333 hardcode_libdir_separator_CXX=:
9334
9335 # Archives containing C++ object files must be created using
9336 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9337 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9338
9339 ;;
9340 RCC)
9341 # Rational C++ 2.4.1
9342 # FIXME: insert proper C++ library support
9343 ld_shlibs_CXX=no
9344 ;;
9345 cxx)
9346 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9347 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9348
9349 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9350 hardcode_libdir_separator_CXX=:
9351
9352 # Commands to make compiler produce verbose output that lists
9353 # what "hidden" libraries, object files and flags are used when
9354 # linking a shared library.
9355 #
9356 # There doesn't appear to be a way to prevent this compiler from
9357 # explicitly linking system object files so we need to strip them
9358 # from the output so that they don't get included in the library
9359 # dependencies.
9360 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9361 ;;
9362 *)
9363 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9364 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9365 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9366
9367 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9368 hardcode_libdir_separator_CXX=:
9369
9370 # Commands to make compiler produce verbose output that lists
9371 # what "hidden" libraries, object files and flags are used when
9372 # linking a shared library.
9373 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
9374
9375 else
9376 # FIXME: insert proper C++ library support
9377 ld_shlibs_CXX=no
9378 fi
9379 ;;
9380 esac
9381 ;;
9382 osf4* | osf5*)
9383 case $cc_basename in
9384 KCC)
9385 # Kuck and Associates, Inc. (KAI) C++ Compiler
9386
9387 # KCC will only create a shared library if the output file
9388 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9389 # to its proper name (with version) after linking.
9390 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9391
9392 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9393 hardcode_libdir_separator_CXX=:
9394
9395 # Archives containing C++ object files must be created using
9396 # the KAI C++ compiler.
9397 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9398 ;;
9399 RCC)
9400 # Rational C++ 2.4.1
9401 # FIXME: insert proper C++ library support
9402 ld_shlibs_CXX=no
9403 ;;
9404 cxx)
9405 allow_undefined_flag_CXX=' -expect_unresolved \*'
9406 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9407 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
9408 echo "-hidden">> $lib.exp~
9409 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
9410 $rm $lib.exp'
9411
9412 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9413 hardcode_libdir_separator_CXX=:
9414
9415 # Commands to make compiler produce verbose output that lists
9416 # what "hidden" libraries, object files and flags are used when
9417 # linking a shared library.
9418 #
9419 # There doesn't appear to be a way to prevent this compiler from
9420 # explicitly linking system object files so we need to strip them
9421 # from the output so that they don't get included in the library
9422 # dependencies.
9423 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9424 ;;
9425 *)
9426 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9427 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9428 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9429
9430 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9431 hardcode_libdir_separator_CXX=:
9432
9433 # Commands to make compiler produce verbose output that lists
9434 # what "hidden" libraries, object files and flags are used when
9435 # linking a shared library.
9436 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
9437
9438 else
9439 # FIXME: insert proper C++ library support
9440 ld_shlibs_CXX=no
9441 fi
9442 ;;
9443 esac
9444 ;;
9445 psos*)
9446 # FIXME: insert proper C++ library support
9447 ld_shlibs_CXX=no
9448 ;;
9449 sco*)
9450 archive_cmds_need_lc_CXX=no
9451 case $cc_basename in
9452 CC)
9453 # FIXME: insert proper C++ library support
9454 ld_shlibs_CXX=no
9455 ;;
9456 *)
9457 # FIXME: insert proper C++ library support
9458 ld_shlibs_CXX=no
9459 ;;
9460 esac
9461 ;;
9462 sunos4*)
9463 case $cc_basename in
9464 CC)
9465 # Sun C++ 4.x
9466 # FIXME: insert proper C++ library support
9467 ld_shlibs_CXX=no
9468 ;;
9469 lcc)
9470 # Lucid
9471 # FIXME: insert proper C++ library support
9472 ld_shlibs_CXX=no
9473 ;;
9474 *)
9475 # FIXME: insert proper C++ library support
9476 ld_shlibs_CXX=no
9477 ;;
9478 esac
9479 ;;
9480 solaris*)
9481 case $cc_basename in
9482 CC)
9483 # Sun C++ 4.2, 5.x and Centerline C++
9484 no_undefined_flag_CXX=' -zdefs'
9485 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9486 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9487 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9488
9489 hardcode_libdir_flag_spec_CXX='-R$libdir'
9490 hardcode_shlibpath_var_CXX=no
9491 case $host_os in
9492 solaris2.0-5 | solaris2.0-5.*) ;;
9493 *)
9494 # The C++ compiler is used as linker so we must use $wl
9495 # flag to pass the commands to the underlying system
9496 # linker.
9497 # Supported since Solaris 2.6 (maybe 2.5.1?)
9498 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9499 ;;
9500 esac
9501 link_all_deplibs_CXX=yes
9502
9503 # Commands to make compiler produce verbose output that lists
9504 # what "hidden" libraries, object files and flags are used when
9505 # linking a shared library.
9506 #
9507 # There doesn't appear to be a way to prevent this compiler from
9508 # explicitly linking system object files so we need to strip them
9509 # from the output so that they don't get included in the library
9510 # dependencies.
9511 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9512
9513 # Archives containing C++ object files must be created using
9514 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9515 # necessary to make sure instantiated templates are included
9516 # in the archive.
9517 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9518 ;;
9519 gcx)
9520 # Green Hills C++ Compiler
9521 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9522
9523 # The C++ compiler must be used to create the archive.
9524 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9525 ;;
9526 *)
9527 # GNU C++ compiler with Solaris linker
9528 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9529 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9530 if $CC --version | egrep -v '^2\.7' > /dev/null; then
9531 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
9532 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9533 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
9534
9535 # Commands to make compiler produce verbose output that lists
9536 # what "hidden" libraries, object files and flags are used when
9537 # linking a shared library.
9538 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
9539 else
9540 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9541 # platform.
9542 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
9543 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9544 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
9545
9546 # Commands to make compiler produce verbose output that lists
9547 # what "hidden" libraries, object files and flags are used when
9548 # linking a shared library.
9549 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
9550 fi
9551
9552 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9553 fi
9554 ;;
9555 esac
9556 ;;
9557 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9558 archive_cmds_need_lc_CXX=no
9559 ;;
9560 tandem*)
9561 case $cc_basename in
9562 NCC)
9563 # NonStop-UX NCC 3.20
9564 # FIXME: insert proper C++ library support
9565 ld_shlibs_CXX=no
9566 ;;
9567 *)
9568 # FIXME: insert proper C++ library support
9569 ld_shlibs_CXX=no
9570 ;;
9571 esac
9572 ;;
9573 vxworks*)
9574 # FIXME: insert proper C++ library support
9575 ld_shlibs_CXX=no
9576 ;;
9577 *)
9578 # FIXME: insert proper C++ library support
9579 ld_shlibs_CXX=no
9580 ;;
9581 esac
9582 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9583 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9584 test "$ld_shlibs_CXX" = no && can_build_shared=no
9585
9586 # Figure out "hidden" C++ library dependencies from verbose
9587 # compiler output whening linking a shared library.
9588 cat > conftest.$ac_ext <<EOF
9589 class Foo
9590 {
9591 public:
9592 Foo (void) { a = 0; }
9593 private:
9594 int a;
9595 };
9596 EOF
9597
9598
9599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9600 (eval $ac_compile) 2>&5
9601 ac_status=$?
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; then
9604 # Parse the compiler output and extract the necessary
9605 # objects, libraries and library flags.
9606
9607 # Sentinel used to keep track of whether or not we are before
9608 # the conftest object file.
9609 pre_test_object_deps_done=no
9610
9611 # The `*' in the case matches for architectures that use `case' in
9612 # $output_verbose_cmd can trigger glob expansion during the loop
9613 # eval without this substitution.
9614 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9615
9616 for p in `eval $output_verbose_link_cmd`; do
9617 case $p in
9618
9619 -L* | -R* | -l*)
9620 # Some compilers place space between "-{L,R}" and the path.
9621 # Remove the space.
9622 if test $p = "-L" \
9623 || test $p = "-R"; then
9624 prev=$p
9625 continue
9626 else
9627 prev=
9628 fi
9629
9630 if test "$pre_test_object_deps_done" = no; then
9631 case $p in
9632 -L* | -R*)
9633 # Internal compiler library paths should come after those
9634 # provided the user. The postdeps already come after the
9635 # user supplied libs so there is no need to process them.
9636 if test -z "$compiler_lib_search_path_CXX"; then
9637 compiler_lib_search_path_CXX="${prev}${p}"
9638 else
9639 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9640 fi
9641 ;;
9642 # The "-l" case would never come before the object being
9643 # linked, so don't bother handling this case.
9644 esac
9645 else
9646 if test -z "$postdeps_CXX"; then
9647 postdeps_CXX="${prev}${p}"
9648 else
9649 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9650 fi
9651 fi
9652 ;;
9653
9654 *.$objext)
9655 # This assumes that the test object file only shows up
9656 # once in the compiler output.
9657 if test "$p" = "conftest.$objext"; then
9658 pre_test_object_deps_done=yes
9659 continue
9660 fi
9661
9662 if test "$pre_test_object_deps_done" = no; then
9663 if test -z "$predep_objects_CXX"; then
9664 predep_objects_CXX="$p"
9665 else
9666 predep_objects_CXX="$predep_objects_CXX $p"
9667 fi
9668 else
9669 if test -z "$postdep_objects_CXX"; then
9670 postdep_objects_CXX="$p"
9671 else
9672 postdep_objects_CXX="$postdep_objects_CXX $p"
9673 fi
9674 fi
9675 ;;
9676
9677 *) ;; # Ignore the rest.
9678
9679 esac
9680 done
9681
9682 # Clean up.
9683 rm -f a.out
9684 else
9685 echo "libtool.m4: error: problem compiling C++ test program"
9686 fi
9687
9688 $rm -f confest.$objext
9689
9690 case " $postdeps_CXX " in
9691 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
9692 *) archive_cmds_need_lc_CXX=yes ;;
9693 esac
9694
9695 GCC_CXX="$GXX"
9696 LD_CXX="$LD"
9697
9698 lt_prog_compiler_wl_CXX=
9699 lt_prog_compiler_pic_CXX=
9700 lt_prog_compiler_static_CXX=
9701
9702 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9703 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9704
9705 # C++ specific cases for pic, static, wl, etc.
9706 if test "$GXX" = yes; then
9707 lt_prog_compiler_wl_CXX='-Wl,'
9708 lt_prog_compiler_static_CXX='-static'
9709
9710 case $host_os in
9711 aix*)
9712 # All AIX code is PIC.
9713 if test "$host_cpu" = ia64; then
9714 # AIX 5 now supports IA64 processor
9715 lt_prog_compiler_static_CXX='-Bstatic'
9716 fi
9717 ;;
9718 amigaos*)
9719 # FIXME: we need at least 68020 code to build shared libraries, but
9720 # adding the `-m68020' flag to GCC prevents building anything better,
9721 # like `-m68040'.
9722 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
9723 ;;
9724 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9725 # PIC is the default for these OSes.
9726 ;;
9727 mingw* | os2*)
9728 # This hack is so that the source file can tell whether it is being
9729 # built for inclusion in a dll (and should export symbols for example).
9730 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9731 ;;
9732 darwin* | rhapsody*)
9733 # PIC is the default on this platform
9734 # Common symbols not allowed in MH_DYLIB files
9735 lt_prog_compiler_pic_CXX='-fno-common'
9736 ;;
9737 *djgpp*)
9738 # DJGPP does not support shared libraries at all
9739 lt_prog_compiler_pic_CXX=
9740 ;;
9741 sysv4*MP*)
9742 if test -d /usr/nec; then
9743 lt_prog_compiler_pic_CXX=-Kconform_pic
9744 fi
9745 ;;
9746 hpux*)
9747 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
9748 if test "$host_cpu" != ia64; then
9749 lt_prog_compiler_pic_CXX='-fPIC'
9750 fi
9751 ;;
9752 *)
9753 lt_prog_compiler_pic_CXX='-fPIC'
9754 ;;
9755 esac
9756 else
9757 case $host_os in
9758 aix4* | aix5*)
9759 # All AIX code is PIC.
9760 if test "$host_cpu" = ia64; then
9761 # AIX 5 now supports IA64 processor
9762 lt_prog_compiler_static_CXX='-Bstatic'
9763 else
9764 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
9765 fi
9766 ;;
9767 chorus*)
9768 case $cc_basename in
9769 cxch68)
9770 # Green Hills C++ Compiler
9771 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
9772 ;;
9773 esac
9774 ;;
9775 dgux*)
9776 case $cc_basename in
9777 ec++)
9778 lt_prog_compiler_pic_CXX='-KPIC'
9779 ;;
9780 ghcx)
9781 # Green Hills C++ Compiler
9782 lt_prog_compiler_pic_CXX='-pic'
9783 ;;
9784 *)
9785 ;;
9786 esac
9787 ;;
9788 freebsd*)
9789 # FreeBSD uses GNU C++
9790 ;;
9791 hpux9* | hpux10* | hpux11*)
9792 case $cc_basename in
9793 CC)
9794 lt_prog_compiler_wl_CXX='-Wl,'
9795 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9796 if test "$host_cpu" != ia64; then
9797 lt_prog_compiler_pic_CXX='+Z'
9798 fi
9799 ;;
9800 aCC)
9801 lt_prog_compiler_wl_CXX='-Wl,'
9802 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9803 if test "$host_cpu" != ia64; then
9804 lt_prog_compiler_pic_CXX='+Z'
9805 fi
9806 ;;
9807 *)
9808 ;;
9809 esac
9810 ;;
9811 irix5* | irix6* | nonstopux*)
9812 case $cc_basename in
9813 CC)
9814 lt_prog_compiler_wl_CXX='-Wl,'
9815 lt_prog_compiler_static_CXX='-non_shared'
9816 # CC pic flag -KPIC is the default.
9817 ;;
9818 *)
9819 ;;
9820 esac
9821 ;;
9822 linux*)
9823 case $cc_basename in
9824 KCC)
9825 # KAI C++ Compiler
9826 lt_prog_compiler_wl_CXX='--backend -Wl,'
9827 lt_prog_compiler_pic_CXX='-fPIC'
9828 ;;
9829 cxx)
9830 # Compaq C++
9831 # Make sure the PIC flag is empty. It appears that all Alpha
9832 # Linux and Compaq Tru64 Unix objects are PIC.
9833 lt_prog_compiler_pic_CXX=
9834 lt_prog_compiler_static_CXX='-non_shared'
9835 ;;
9836 *)
9837 ;;
9838 esac
9839 ;;
9840 lynxos*)
9841 ;;
9842 m88k*)
9843 ;;
9844 mvs*)
9845 case $cc_basename in
9846 cxx)
9847 lt_prog_compiler_pic_CXX='-W c,exportall'
9848 ;;
9849 *)
9850 ;;
9851 esac
9852 ;;
9853 netbsd*)
9854 ;;
9855 osf3* | osf4* | osf5*)
9856 case $cc_basename in
9857 KCC)
9858 lt_prog_compiler_wl_CXX='--backend -Wl,'
9859 ;;
9860 RCC)
9861 # Rational C++ 2.4.1
9862 lt_prog_compiler_pic_CXX='-pic'
9863 ;;
9864 cxx)
9865 # Digital/Compaq C++
9866 lt_prog_compiler_wl_CXX='-Wl,'
9867 # Make sure the PIC flag is empty. It appears that all Alpha
9868 # Linux and Compaq Tru64 Unix objects are PIC.
9869 lt_prog_compiler_pic_CXX=
9870 lt_prog_compiler_static_CXX='-non_shared'
9871 ;;
9872 *)
9873 ;;
9874 esac
9875 ;;
9876 psos*)
9877 ;;
9878 sco*)
9879 case $cc_basename in
9880 CC)
9881 lt_prog_compiler_pic_CXX='-fPIC'
9882 ;;
9883 *)
9884 ;;
9885 esac
9886 ;;
9887 solaris*)
9888 case $cc_basename in
9889 CC)
9890 # Sun C++ 4.2, 5.x and Centerline C++
9891 lt_prog_compiler_pic_CXX='-KPIC'
9892 lt_prog_compiler_static_CXX='-Bstatic'
9893 lt_prog_compiler_wl_CXX='-Qoption ld '
9894 ;;
9895 gcx)
9896 # Green Hills C++ Compiler
9897 lt_prog_compiler_pic_CXX='-PIC'
9898 ;;
9899 *)
9900 ;;
9901 esac
9902 ;;
9903 sunos4*)
9904 case $cc_basename in
9905 CC)
9906 # Sun C++ 4.x
9907 lt_prog_compiler_pic_CXX='-pic'
9908 lt_prog_compiler_static_CXX='-Bstatic'
9909 ;;
9910 lcc)
9911 # Lucid
9912 lt_prog_compiler_pic_CXX='-pic'
9913 ;;
9914 *)
9915 ;;
9916 esac
9917 ;;
9918 tandem*)
9919 case $cc_basename in
9920 NCC)
9921 # NonStop-UX NCC 3.20
9922 lt_prog_compiler_pic_CXX='-KPIC'
9923 ;;
9924 *)
9925 ;;
9926 esac
9927 ;;
9928 unixware*)
9929 ;;
9930 vxworks*)
9931 ;;
9932 *)
9933 lt_prog_compiler_can_build_shared_CXX=no
9934 ;;
9935 esac
9936 fi
9937
9938 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
9939 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
9940
9941 #
9942 # Check to make sure the PIC flag actually works.
9943 #
9944 if test -n "$lt_prog_compiler_pic_CXX"; then
9945 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
9946 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
9947 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 else
9950 lt_prog_compiler_pic_works_CXX=no
9951 ac_outfile=conftest.$ac_objext
9952 save_CFLAGS="$CFLAGS"
9953 CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
9954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9955 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
9956 # The compiler can only warn and ignore the option if not recognized
9957 # So say no if there are warnings
9958 if test -s conftest.err; then
9959 # Append any errors to the config.log.
9960 cat conftest.err 1>&5
9961 else
9962 lt_prog_compiler_pic_works_CXX=yes
9963 fi
9964 fi
9965 $rm conftest*
9966 CFLAGS="$save_CFLAGS"
9967
9968 fi
9969 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
9970 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
9971
9972 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
9973 case $lt_prog_compiler_pic_CXX in
9974 "" | " "*) ;;
9975 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
9976 esac
9977 else
9978 lt_prog_compiler_pic_CXX=
9979 lt_prog_compiler_can_build_shared_CXX=no
9980 fi
9981
9982 fi
9983 case "$host_os" in
9984 # For platforms which do not support PIC, -DPIC is meaningless:
9985 *djgpp*)
9986 lt_prog_compiler_pic_CXX=
9987 ;;
9988 *)
9989 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
9990 ;;
9991 esac
9992
9993 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9994 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9995 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998 lt_cv_prog_compiler_c_o_CXX=no
9999 $rm -r conftest 2>/dev/null
10000 mkdir conftest
10001 cd conftest
10002 mkdir out
10003 save_CXXFLAGS="$CXXFLAGS"
10004 CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"
10005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10006
10007 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10008 # that will create temporary files in the current directory regardless of
10009 # the output directory. Thus, making CWD read-only will cause this test
10010 # to fail, enabling locking or at least warning the user not to do parallel
10011 # builds.
10012 chmod -w .
10013
10014 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
10015 then
10016 # The compiler can only warn and ignore the option if not recognized
10017 # So say no if there are warnings
10018 if test -s out/conftest.err; then
10019 # Append any errors to the config.log.
10020 cat out/conftest.err 1>&5
10021 else
10022 lt_cv_prog_compiler_c_o_CXX=yes
10023 fi
10024 fi
10025 CXXFLAGS="$save_CXXFLAGS"
10026 chmod u+w .
10027 $rm conftest* out/*
10028 rmdir out
10029 cd ..
10030 rmdir conftest
10031 $rm conftest*
10032
10033 fi
10034 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10035 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10036
10037
10038 hard_links="nottested"
10039 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10040 # do not overwrite the value of need_locks provided by the user
10041 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10042 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10043 hard_links=yes
10044 $rm conftest*
10045 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10046 touch conftest.a
10047 ln conftest.a conftest.b 2>&5 || hard_links=no
10048 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10049 echo "$as_me:$LINENO: result: $hard_links" >&5
10050 echo "${ECHO_T}$hard_links" >&6
10051 if test "$hard_links" = no; then
10052 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10053 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10054 need_locks=warn
10055 fi
10056 else
10057 need_locks=no
10058 fi
10059
10060 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10061 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10062
10063 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10064 case $host_os in
10065 aix4* | aix5*)
10066 # If we're using GNU nm, then we don't want the "-C" option.
10067 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10068 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
10069 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10070 else
10071 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10072 fi
10073 ;;
10074 cygwin*)
10075 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10076 ;;
10077 mingw* | pw32*)
10078 export_symbols_cmds_CXX="$ltdll_cmds"
10079 ;;
10080 *)
10081 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10082 ;;
10083 esac
10084
10085 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10086 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10087 test "$ld_shlibs_CXX" = no && can_build_shared=no
10088
10089 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10090 if test "$GCC" = yes; then
10091 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10092 fi
10093
10094 #
10095 # Do we need to explicitly link libc?
10096 #
10097 archive_cmds_need_lc_CXX=yes
10098 if test "$enable_shared" = yes && test "$GCC" = yes; then
10099 case $archive_cmds_CXX in
10100 *'~'*)
10101 # FIXME: we may have to deal with multi-command sequences.
10102 ;;
10103 '$CC '*)
10104 # Test whether the compiler implicitly links with -lc since on some
10105 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10106 # to ld, don't add -lc before -lgcc.
10107 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10108 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10109 $rm conftest*
10110 echo 'static int dummy;' > conftest.$ac_ext
10111
10112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10113 (eval $ac_compile) 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } 2>conftest.err; then
10117 soname=conftest
10118 lib=conftest
10119 libobjs=conftest.$ac_objext
10120 deplibs=
10121 wl=$lt_prog_compiler_wl_CXX
10122 compiler_flags=-v
10123 linker_flags=-v
10124 verstring=
10125 output_objdir=.
10126 libname=conftest
10127 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10128 allow_undefined_flag_CXX=
10129 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10130 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10131 ac_status=$?
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }
10134 then
10135 archive_cmds_need_lc_CXX=no
10136 else
10137 archive_cmds_need_lc_CXX=yes
10138 fi
10139 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10140 else
10141 cat conftest.err 1>&5
10142 fi
10143 $rm conftest*
10144 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10145 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10146 ;;
10147 esac
10148 fi
10149
10150 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10151 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10152 hardcode_action_CXX=
10153 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10154 test -n "$runpath_var CXX"; then
10155
10156 # We can hardcode non-existant directories.
10157 if test "$hardcode_direct_CXX" != no &&
10158 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10159 # have to relink, otherwise we might link with an installed library
10160 # when we should be linking with a yet-to-be-installed one
10161 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10162 test "$hardcode_minus_L_CXX" != no; then
10163 # Linking always hardcodes the temporary library directory.
10164 hardcode_action_CXX=relink
10165 else
10166 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10167 hardcode_action_CXX=immediate
10168 fi
10169 else
10170 # We cannot hardcode anything, or else we can only hardcode existing
10171 # directories.
10172 hardcode_action_CXX=unsupported
10173 fi
10174 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10175 echo "${ECHO_T}$hardcode_action_CXX" >&6
10176
10177 if test "$hardcode_action_CXX" = relink; then
10178 # Fast installation is not supported
10179 enable_fast_install=no
10180 elif test "$shlibpath_overrides_runpath" = yes ||
10181 test "$enable_shared" = no; then
10182 # Fast installation is not necessary
10183 enable_fast_install=needless
10184 fi
10185
10186 striplib=
10187 old_striplib=
10188 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10189 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10190 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10191 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10192 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10193 echo "$as_me:$LINENO: result: yes" >&5
10194 echo "${ECHO_T}yes" >&6
10195 else
10196 echo "$as_me:$LINENO: result: no" >&5
10197 echo "${ECHO_T}no" >&6
10198 fi
10199
10200 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10201 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10202 library_names_spec=
10203 libname_spec='lib$name'
10204 soname_spec=
10205 postinstall_cmds=
10206 postuninstall_cmds=
10207 finish_cmds=
10208 finish_eval=
10209 shlibpath_var=
10210 shlibpath_overrides_runpath=unknown
10211 version_type=none
10212 dynamic_linker="$host_os ld.so"
10213 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10214 if test "$GCC" = yes; then
10215 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
10216 if echo "$sys_lib_search_path_spec" | egrep ';' >/dev/null ; then
10217 # if the path contains ";" then we assume it to be the separator
10218 # otherwise default to the standard path separator (i.e. ":") - it is
10219 # assumed that no part of a normal pathname contains ";" but that should
10220 # okay in the real world where ";" in dirpaths is itself problematic.
10221 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
10222 else
10223 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
10224 fi
10225 else
10226 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10227 fi
10228 need_lib_prefix=unknown
10229 hardcode_into_libs=no
10230
10231 # when you set need_version to no, make sure it does not cause -set_version
10232 # flags to be left without arguments
10233 need_version=unknown
10234
10235 case $host_os in
10236 aix3*)
10237 version_type=linux
10238 library_names_spec='${libname}${release}.so$versuffix $libname.a'
10239 shlibpath_var=LIBPATH
10240
10241 # AIX 3 has no versioning support, so we append a major version to the name.
10242 soname_spec='${libname}${release}.so$major'
10243 ;;
10244
10245 aix4* | aix5*)
10246 version_type=linux
10247 if test "$host_cpu" = ia64; then
10248 # AIX 5 supports IA64
10249 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
10250 shlibpath_var=LD_LIBRARY_PATH
10251 else
10252 # With GCC up to 2.95.x, collect2 would create an import file
10253 # for dependence libraries. The import file would start with
10254 # the line `#! .'. This would cause the generated library to
10255 # depend on `.', always an invalid library. This was fixed in
10256 # development snapshots of GCC prior to 3.0.
10257 case $host_os in
10258 aix4 | aix4.[01] | aix4.[01].*)
10259 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10260 echo ' yes '
10261 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10262 :
10263 else
10264 can_build_shared=no
10265 fi
10266 ;;
10267 esac
10268 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10269 # soname into executable. Probably we can add versioning support to
10270 # collect2, so additional links can be useful in future.
10271 if test "$aix_use_runtimelinking" = yes; then
10272 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10273 # instead of lib<name>.a to let people know that these are not
10274 # typical AIX shared libraries.
10275 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10276 else
10277 # We preserve .a as extension for shared libraries through AIX4.2
10278 # and later when we are not doing run time linking.
10279 library_names_spec='${libname}${release}.a $libname.a'
10280 soname_spec='${libname}${release}.so$major'
10281 fi
10282 shlibpath_var=LIBPATH
10283 fi
10284 ;;
10285
10286 amigaos*)
10287 library_names_spec='$libname.ixlibrary $libname.a'
10288 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10289 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'
10290 ;;
10291
10292 beos*)
10293 library_names_spec='${libname}.so'
10294 dynamic_linker="$host_os ld.so"
10295 shlibpath_var=LIBRARY_PATH
10296 ;;
10297
10298 bsdi4*)
10299 version_type=linux
10300 need_version=no
10301 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10302 soname_spec='${libname}${release}.so$major'
10303 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10304 shlibpath_var=LD_LIBRARY_PATH
10305 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10306 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10307 # the default ld.so.conf also contains /usr/contrib/lib and
10308 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10309 # libtool to hard-code these into programs
10310 ;;
10311
10312 cygwin* | mingw* | pw32*)
10313 version_type=windows
10314 need_version=no
10315 need_lib_prefix=no
10316 case $GCC,$host_os in
10317 yes,cygwin*)
10318 library_names_spec='$libname.dll.a'
10319 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10320 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
10321 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
10322 dldir=$destdir/`dirname \$dlpath`~
10323 test -d \$dldir || mkdir -p \$dldir~
10324 $install_prog .libs/$dlname \$dldir/$dlname'
10325 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
10326 dlpath=$dir/\$dldll~
10327 $rm \$dlpath'
10328 shlibpath_overrides_runpath=yes
10329 ;;
10330 yes,mingw*)
10331 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
10332 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
10333 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
10334 # It is most probably a Windows format PATH printed by
10335 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10336 # path with ; separators, and with drive letters. We can handle the
10337 # drive letters (cygwin fileutils understands them), so leave them,
10338 # especially as we might pass files found there to a mingw objdump,
10339 # which wouldn't understand a cygwinified path. Ahh.
10340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
10341 else
10342 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
10343 fi
10344 ;;
10345 yes,pw32*)
10346 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
10347 ;;
10348 *)
10349 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
10350 ;;
10351 esac
10352 dynamic_linker='Win32 ld.exe'
10353 # FIXME: first we should search . and the directory the executable is in
10354 shlibpath_var=PATH
10355 ;;
10356
10357 darwin* | rhapsody*)
10358 dynamic_linker="$host_os dyld"
10359 version_type=darwin
10360 need_lib_prefix=no
10361 need_version=no
10362 # FIXME: Relying on posixy $() will cause problems for
10363 # cross-compilation, but unfortunately the echo tests do not
10364 # yet detect zsh echo's removal of \ escapes.
10365 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
10366 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
10367 shlibpath_overrides_runpath=yes
10368 shlibpath_var=DYLD_LIBRARY_PATH
10369 ;;
10370
10371 dgux*)
10372 version_type=linux
10373 need_lib_prefix=no
10374 need_version=no
10375 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10376 soname_spec='${libname}${release}.so$major'
10377 shlibpath_var=LD_LIBRARY_PATH
10378 ;;
10379
10380 freebsd1*)
10381 dynamic_linker=no
10382 ;;
10383
10384 freebsd*)
10385 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10386 version_type=freebsd-$objformat
10387 case $version_type in
10388 freebsd-elf*)
10389 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
10390 need_version=no
10391 need_lib_prefix=no
10392 ;;
10393 freebsd-*)
10394 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
10395 need_version=yes
10396 ;;
10397 esac
10398 shlibpath_var=LD_LIBRARY_PATH
10399 case $host_os in
10400 freebsd2*)
10401 shlibpath_overrides_runpath=yes
10402 ;;
10403 freebsd3.01* | freebsdelf3.01*)
10404 shlibpath_overrides_runpath=yes
10405 hardcode_into_libs=yes
10406 ;;
10407 *) # from 3.2 on
10408 shlibpath_overrides_runpath=no
10409 hardcode_into_libs=yes
10410 ;;
10411 esac
10412 ;;
10413
10414 gnu*)
10415 version_type=linux
10416 need_lib_prefix=no
10417 need_version=no
10418 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
10419 soname_spec='${libname}${release}.so$major'
10420 shlibpath_var=LD_LIBRARY_PATH
10421 hardcode_into_libs=yes
10422 ;;
10423
10424 hpux9* | hpux10* | hpux11*)
10425 # Give a soname corresponding to the major version so that dld.sl refuses to
10426 # link against other versions.
10427 version_type=sunos
10428 need_lib_prefix=no
10429 need_version=no
10430 if test "$host_cpu" = ia64; then
10431 hardcode_into_libs=yes
10432 dynamic_linker="$host_os dld.so"
10433 shlibpath_var=LD_LIBRARY_PATH
10434 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10435 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10436 soname_spec='${libname}${release}.so$major'
10437 if test "X$HPUX_IA64_MODE" = X32; then
10438 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10439 else
10440 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10441 fi
10442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10443 else
10444 dynamic_linker="$host_os dld.sl"
10445 shlibpath_var=SHLIB_PATH
10446 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10447 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
10448 soname_spec='${libname}${release}.sl$major'
10449 fi
10450 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10451 postinstall_cmds='chmod 555 $lib'
10452 ;;
10453
10454 irix5* | irix6* | nonstopux*)
10455 case $host_os in
10456 nonstopux*) version_type=nonstopux ;;
10457 *) version_type=irix ;;
10458 esac
10459 need_lib_prefix=no
10460 need_version=no
10461 soname_spec='${libname}${release}.so$major'
10462 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
10463 case $host_os in
10464 irix5* | nonstopux*)
10465 libsuff= shlibsuff=
10466 ;;
10467 *)
10468 case $LD in # libtool.m4 will add one of these switches to LD
10469 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
10470 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
10471 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
10472 *) libsuff= shlibsuff= libmagic=never-match;;
10473 esac
10474 ;;
10475 esac
10476 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10477 shlibpath_overrides_runpath=no
10478 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10479 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10480 ;;
10481
10482 # No shared lib support for Linux oldld, aout, or coff.
10483 linux*oldld* | linux*aout* | linux*coff*)
10484 dynamic_linker=no
10485 ;;
10486
10487 # This must be Linux ELF.
10488 linux*)
10489 version_type=linux
10490 need_lib_prefix=no
10491 need_version=no
10492 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10493 soname_spec='${libname}${release}.so$major'
10494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10495 shlibpath_var=LD_LIBRARY_PATH
10496 shlibpath_overrides_runpath=no
10497 # This implies no fast_install, which is unacceptable.
10498 # Some rework will be needed to allow for fast_install
10499 # before this can be enabled.
10500 hardcode_into_libs=yes
10501
10502 # We used to test for /lib/ld.so.1 and disable shared libraries on
10503 # powerpc, because MkLinux only supported shared libraries with the
10504 # GNU dynamic linker. Since this was broken with cross compilers,
10505 # most powerpc-linux boxes support dynamic linking these days and
10506 # people can always --disable-shared, the test was removed, and we
10507 # assume the GNU/Linux dynamic linker is in use.
10508 dynamic_linker='GNU/Linux ld.so'
10509 ;;
10510
10511 netbsd*)
10512 version_type=sunos
10513 need_lib_prefix=no
10514 need_version=no
10515 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10516 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10517 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10518 dynamic_linker='NetBSD (a.out) ld.so'
10519 else
10520 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
10521 soname_spec='${libname}${release}.so$major'
10522 dynamic_linker='NetBSD ld.elf_so'
10523 fi
10524 shlibpath_var=LD_LIBRARY_PATH
10525 shlibpath_overrides_runpath=yes
10526 hardcode_into_libs=yes
10527 ;;
10528
10529 newsos6)
10530 version_type=linux
10531 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10532 shlibpath_var=LD_LIBRARY_PATH
10533 shlibpath_overrides_runpath=yes
10534 ;;
10535
10536 nto-qnx)
10537 version_type=linux
10538 need_lib_prefix=no
10539 need_version=no
10540 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10541 soname_spec='${libname}${release}.so$major'
10542 shlibpath_var=LD_LIBRARY_PATH
10543 shlibpath_overrides_runpath=yes
10544 ;;
10545
10546 openbsd*)
10547 version_type=sunos
10548 need_lib_prefix=no
10549 need_version=no
10550 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10551 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10552 shlibpath_var=LD_LIBRARY_PATH
10553 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10554 case $host_os in
10555 openbsd2.[89] | openbsd2.[89].*)
10556 shlibpath_overrides_runpath=no
10557 ;;
10558 *)
10559 shlibpath_overrides_runpath=yes
10560 ;;
10561 esac
10562 else
10563 shlibpath_overrides_runpath=yes
10564 fi
10565 ;;
10566
10567 os2*)
10568 libname_spec='$name'
10569 need_lib_prefix=no
10570 library_names_spec='$libname.dll $libname.a'
10571 dynamic_linker='OS/2 ld.exe'
10572 shlibpath_var=LIBPATH
10573 ;;
10574
10575 osf3* | osf4* | osf5*)
10576 version_type=osf
10577 need_lib_prefix=no
10578 need_version=no
10579 soname_spec='${libname}${release}.so'
10580 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
10581 shlibpath_var=LD_LIBRARY_PATH
10582 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10583 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10584 ;;
10585
10586 sco3.2v5*)
10587 version_type=osf
10588 soname_spec='${libname}${release}.so$major'
10589 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10590 shlibpath_var=LD_LIBRARY_PATH
10591 ;;
10592
10593 solaris*)
10594 version_type=linux
10595 need_lib_prefix=no
10596 need_version=no
10597 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10598 soname_spec='${libname}${release}.so$major'
10599 shlibpath_var=LD_LIBRARY_PATH
10600 shlibpath_overrides_runpath=yes
10601 hardcode_into_libs=yes
10602 # ldd complains unless libraries are executable
10603 postinstall_cmds='chmod +x $lib'
10604 ;;
10605
10606 sunos4*)
10607 version_type=sunos
10608 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10609 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10610 shlibpath_var=LD_LIBRARY_PATH
10611 shlibpath_overrides_runpath=yes
10612 if test "$with_gnu_ld" = yes; then
10613 need_lib_prefix=no
10614 fi
10615 need_version=yes
10616 ;;
10617
10618 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10619 version_type=linux
10620 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10621 soname_spec='${libname}${release}.so$major'
10622 shlibpath_var=LD_LIBRARY_PATH
10623 case $host_vendor in
10624 sni)
10625 shlibpath_overrides_runpath=no
10626 ;;
10627 motorola)
10628 need_lib_prefix=no
10629 need_version=no
10630 shlibpath_overrides_runpath=no
10631 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10632 ;;
10633 esac
10634 ;;
10635
10636 sysv4*MP*)
10637 if test -d /usr/nec ;then
10638 version_type=linux
10639 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
10640 soname_spec='$libname.so.$major'
10641 shlibpath_var=LD_LIBRARY_PATH
10642 fi
10643 ;;
10644
10645 uts4*)
10646 version_type=linux
10647 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10648 soname_spec='${libname}${release}.so$major'
10649 shlibpath_var=LD_LIBRARY_PATH
10650 ;;
10651
10652 *)
10653 dynamic_linker=no
10654 ;;
10655 esac
10656 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10657 echo "${ECHO_T}$dynamic_linker" >&6
10658 test "$dynamic_linker" = no && can_build_shared=no
10659
10660 if test "x$enable_dlopen" != xyes; then
10661 enable_dlopen=unknown
10662 enable_dlopen_self=unknown
10663 enable_dlopen_self_static=unknown
10664 else
10665 lt_cv_dlopen=no
10666 lt_cv_dlopen_libs=
10667
10668 case $host_os in
10669 beos*)
10670 lt_cv_dlopen="load_add_on"
10671 lt_cv_dlopen_libs=
10672 lt_cv_dlopen_self=yes
10673 ;;
10674
10675 cygwin* | mingw* | pw32*)
10676 lt_cv_dlopen="LoadLibrary"
10677 lt_cv_dlopen_libs=
10678 ;;
10679
10680 *)
10681 echo "$as_me:$LINENO: checking for shl_load" >&5
10682 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10683 if test "${ac_cv_func_shl_load+set}" = set; then
10684 echo $ECHO_N "(cached) $ECHO_C" >&6
10685 else
10686 cat >conftest.$ac_ext <<_ACEOF
10687 #line $LINENO "configure"
10688 #include "confdefs.h"
10689 /* System header to define __stub macros and hopefully few prototypes,
10690 which can conflict with char shl_load (); below. */
10691 #include <assert.h>
10692 /* Override any gcc2 internal prototype to avoid an error. */
10693 #ifdef __cplusplus
10694 extern "C"
10695 #endif
10696 /* We use char because int might match the return type of a gcc2
10697 builtin and then its argument prototype would still apply. */
10698 char shl_load ();
10699 char (*f) ();
10700
10701 #ifdef F77_DUMMY_MAIN
10702 # ifdef __cplusplus
10703 extern "C"
10704 # endif
10705 int F77_DUMMY_MAIN() { return 1; }
10706 #endif
10707 int
10708 main ()
10709 {
10710 /* The GNU C library defines this for functions which it implements
10711 to always fail with ENOSYS. Some functions are actually named
10712 something starting with __ and the normal name is an alias. */
10713 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10714 choke me
10715 #else
10716 f = shl_load;
10717 #endif
10718
10719 ;
10720 return 0;
10721 }
10722 _ACEOF
10723 rm -f conftest.$ac_objext conftest$ac_exeext
10724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10725 (eval $ac_link) 2>&5
10726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); } &&
10729 { ac_try='test -s conftest$ac_exeext'
10730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10731 (eval $ac_try) 2>&5
10732 ac_status=$?
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); }; }; then
10735 ac_cv_func_shl_load=yes
10736 else
10737 echo "$as_me: failed program was:" >&5
10738 cat conftest.$ac_ext >&5
10739 ac_cv_func_shl_load=no
10740 fi
10741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10742 fi
10743 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10744 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10745 if test $ac_cv_func_shl_load = yes; then
10746 lt_cv_dlopen="shl_load"
10747 else
10748 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10749 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10750 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752 else
10753 ac_check_lib_save_LIBS=$LIBS
10754 LIBS="-ldld $LIBS"
10755 cat >conftest.$ac_ext <<_ACEOF
10756 #line $LINENO "configure"
10757 #include "confdefs.h"
10758
10759 /* Override any gcc2 internal prototype to avoid an error. */
10760 #ifdef __cplusplus
10761 extern "C"
10762 #endif
10763 /* We use char because int might match the return type of a gcc2
10764 builtin and then its argument prototype would still apply. */
10765 char shl_load ();
10766 #ifdef F77_DUMMY_MAIN
10767 # ifdef __cplusplus
10768 extern "C"
10769 # endif
10770 int F77_DUMMY_MAIN() { return 1; }
10771 #endif
10772 int
10773 main ()
10774 {
10775 shl_load ();
10776 ;
10777 return 0;
10778 }
10779 _ACEOF
10780 rm -f conftest.$ac_objext conftest$ac_exeext
10781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10782 (eval $ac_link) 2>&5
10783 ac_status=$?
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } &&
10786 { ac_try='test -s conftest$ac_exeext'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10789 ac_status=$?
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; }; then
10792 ac_cv_lib_dld_shl_load=yes
10793 else
10794 echo "$as_me: failed program was:" >&5
10795 cat conftest.$ac_ext >&5
10796 ac_cv_lib_dld_shl_load=no
10797 fi
10798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10799 LIBS=$ac_check_lib_save_LIBS
10800 fi
10801 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10802 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10803 if test $ac_cv_lib_dld_shl_load = yes; then
10804 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10805 else
10806 echo "$as_me:$LINENO: checking for dlopen" >&5
10807 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10808 if test "${ac_cv_func_dlopen+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10810 else
10811 cat >conftest.$ac_ext <<_ACEOF
10812 #line $LINENO "configure"
10813 #include "confdefs.h"
10814 /* System header to define __stub macros and hopefully few prototypes,
10815 which can conflict with char dlopen (); below. */
10816 #include <assert.h>
10817 /* Override any gcc2 internal prototype to avoid an error. */
10818 #ifdef __cplusplus
10819 extern "C"
10820 #endif
10821 /* We use char because int might match the return type of a gcc2
10822 builtin and then its argument prototype would still apply. */
10823 char dlopen ();
10824 char (*f) ();
10825
10826 #ifdef F77_DUMMY_MAIN
10827 # ifdef __cplusplus
10828 extern "C"
10829 # endif
10830 int F77_DUMMY_MAIN() { return 1; }
10831 #endif
10832 int
10833 main ()
10834 {
10835 /* The GNU C library defines this for functions which it implements
10836 to always fail with ENOSYS. Some functions are actually named
10837 something starting with __ and the normal name is an alias. */
10838 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10839 choke me
10840 #else
10841 f = dlopen;
10842 #endif
10843
10844 ;
10845 return 0;
10846 }
10847 _ACEOF
10848 rm -f conftest.$ac_objext conftest$ac_exeext
10849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10850 (eval $ac_link) 2>&5
10851 ac_status=$?
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } &&
10854 { ac_try='test -s conftest$ac_exeext'
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10857 ac_status=$?
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; }; then
10860 ac_cv_func_dlopen=yes
10861 else
10862 echo "$as_me: failed program was:" >&5
10863 cat conftest.$ac_ext >&5
10864 ac_cv_func_dlopen=no
10865 fi
10866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10867 fi
10868 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10869 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10870 if test $ac_cv_func_dlopen = yes; then
10871 lt_cv_dlopen="dlopen"
10872 else
10873 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10874 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10875 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10877 else
10878 ac_check_lib_save_LIBS=$LIBS
10879 LIBS="-ldl $LIBS"
10880 cat >conftest.$ac_ext <<_ACEOF
10881 #line $LINENO "configure"
10882 #include "confdefs.h"
10883
10884 /* Override any gcc2 internal prototype to avoid an error. */
10885 #ifdef __cplusplus
10886 extern "C"
10887 #endif
10888 /* We use char because int might match the return type of a gcc2
10889 builtin and then its argument prototype would still apply. */
10890 char dlopen ();
10891 #ifdef F77_DUMMY_MAIN
10892 # ifdef __cplusplus
10893 extern "C"
10894 # endif
10895 int F77_DUMMY_MAIN() { return 1; }
10896 #endif
10897 int
10898 main ()
10899 {
10900 dlopen ();
10901 ;
10902 return 0;
10903 }
10904 _ACEOF
10905 rm -f conftest.$ac_objext conftest$ac_exeext
10906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10907 (eval $ac_link) 2>&5
10908 ac_status=$?
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } &&
10911 { ac_try='test -s conftest$ac_exeext'
10912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913 (eval $ac_try) 2>&5
10914 ac_status=$?
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); }; }; then
10917 ac_cv_lib_dl_dlopen=yes
10918 else
10919 echo "$as_me: failed program was:" >&5
10920 cat conftest.$ac_ext >&5
10921 ac_cv_lib_dl_dlopen=no
10922 fi
10923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10924 LIBS=$ac_check_lib_save_LIBS
10925 fi
10926 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10927 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10928 if test $ac_cv_lib_dl_dlopen = yes; then
10929 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10930 else
10931 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10932 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10933 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10934 echo $ECHO_N "(cached) $ECHO_C" >&6
10935 else
10936 ac_check_lib_save_LIBS=$LIBS
10937 LIBS="-lsvld $LIBS"
10938 cat >conftest.$ac_ext <<_ACEOF
10939 #line $LINENO "configure"
10940 #include "confdefs.h"
10941
10942 /* Override any gcc2 internal prototype to avoid an error. */
10943 #ifdef __cplusplus
10944 extern "C"
10945 #endif
10946 /* We use char because int might match the return type of a gcc2
10947 builtin and then its argument prototype would still apply. */
10948 char dlopen ();
10949 #ifdef F77_DUMMY_MAIN
10950 # ifdef __cplusplus
10951 extern "C"
10952 # endif
10953 int F77_DUMMY_MAIN() { return 1; }
10954 #endif
10955 int
10956 main ()
10957 {
10958 dlopen ();
10959 ;
10960 return 0;
10961 }
10962 _ACEOF
10963 rm -f conftest.$ac_objext conftest$ac_exeext
10964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10965 (eval $ac_link) 2>&5
10966 ac_status=$?
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); } &&
10969 { ac_try='test -s conftest$ac_exeext'
10970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971 (eval $ac_try) 2>&5
10972 ac_status=$?
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; }; then
10975 ac_cv_lib_svld_dlopen=yes
10976 else
10977 echo "$as_me: failed program was:" >&5
10978 cat conftest.$ac_ext >&5
10979 ac_cv_lib_svld_dlopen=no
10980 fi
10981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10982 LIBS=$ac_check_lib_save_LIBS
10983 fi
10984 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10985 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10986 if test $ac_cv_lib_svld_dlopen = yes; then
10987 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10988 else
10989 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10990 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10991 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994 ac_check_lib_save_LIBS=$LIBS
10995 LIBS="-ldld $LIBS"
10996 cat >conftest.$ac_ext <<_ACEOF
10997 #line $LINENO "configure"
10998 #include "confdefs.h"
10999
11000 /* Override any gcc2 internal prototype to avoid an error. */
11001 #ifdef __cplusplus
11002 extern "C"
11003 #endif
11004 /* We use char because int might match the return type of a gcc2
11005 builtin and then its argument prototype would still apply. */
11006 char dld_link ();
11007 #ifdef F77_DUMMY_MAIN
11008 # ifdef __cplusplus
11009 extern "C"
11010 # endif
11011 int F77_DUMMY_MAIN() { return 1; }
11012 #endif
11013 int
11014 main ()
11015 {
11016 dld_link ();
11017 ;
11018 return 0;
11019 }
11020 _ACEOF
11021 rm -f conftest.$ac_objext conftest$ac_exeext
11022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11023 (eval $ac_link) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } &&
11027 { ac_try='test -s conftest$ac_exeext'
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 ac_cv_lib_dld_dld_link=yes
11034 else
11035 echo "$as_me: failed program was:" >&5
11036 cat conftest.$ac_ext >&5
11037 ac_cv_lib_dld_dld_link=no
11038 fi
11039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11040 LIBS=$ac_check_lib_save_LIBS
11041 fi
11042 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11043 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11044 if test $ac_cv_lib_dld_dld_link = yes; then
11045 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11046 fi
11047
11048
11049 fi
11050
11051
11052 fi
11053
11054
11055 fi
11056
11057
11058 fi
11059
11060
11061 fi
11062
11063 ;;
11064 esac
11065
11066 if test "x$lt_cv_dlopen" != xno; then
11067 enable_dlopen=yes
11068 else
11069 enable_dlopen=no
11070 fi
11071
11072 case $lt_cv_dlopen in
11073 dlopen)
11074 save_CPPFLAGS="$CPPFLAGS"
11075 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11076
11077 save_LDFLAGS="$LDFLAGS"
11078 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11079
11080 save_LIBS="$LIBS"
11081 LIBS="$lt_cv_dlopen_libs $LIBS"
11082
11083 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11084 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11085 if test "${lt_cv_dlopen_self+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 else
11088 if test "$cross_compiling" = yes; then :
11089 lt_cv_dlopen_self=cross
11090 else
11091 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11092 lt_status=$lt_dlunknown
11093 cat > conftest.$ac_ext <<EOF
11094 #line 11094 "configure"
11095 #include "confdefs.h"
11096
11097 #if HAVE_DLFCN_H
11098 #include <dlfcn.h>
11099 #endif
11100
11101 #include <stdio.h>
11102
11103 #ifdef RTLD_GLOBAL
11104 # define LT_DLGLOBAL RTLD_GLOBAL
11105 #else
11106 # ifdef DL_GLOBAL
11107 # define LT_DLGLOBAL DL_GLOBAL
11108 # else
11109 # define LT_DLGLOBAL 0
11110 # endif
11111 #endif
11112
11113 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11114 find out it does not work in some platform. */
11115 #ifndef LT_DLLAZY_OR_NOW
11116 # ifdef RTLD_LAZY
11117 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11118 # else
11119 # ifdef DL_LAZY
11120 # define LT_DLLAZY_OR_NOW DL_LAZY
11121 # else
11122 # ifdef RTLD_NOW
11123 # define LT_DLLAZY_OR_NOW RTLD_NOW
11124 # else
11125 # ifdef DL_NOW
11126 # define LT_DLLAZY_OR_NOW DL_NOW
11127 # else
11128 # define LT_DLLAZY_OR_NOW 0
11129 # endif
11130 # endif
11131 # endif
11132 # endif
11133 #endif
11134
11135 #ifdef __cplusplus
11136 extern "C" void exit (int);
11137 #endif
11138
11139 void fnord() { int i=42;}
11140 int main ()
11141 {
11142 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11143 int status = $lt_dlunknown;
11144
11145 if (self)
11146 {
11147 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11148 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11149 /* dlclose (self); */
11150 }
11151
11152 exit (status);
11153 }
11154 EOF
11155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11156 (eval $ac_link) 2>&5
11157 ac_status=$?
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11160 (./conftest; exit; ) 2>/dev/null
11161 lt_status=$?
11162 case x$lt_status in
11163 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11164 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11165 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11166 esac
11167 else :
11168 # compilation failed
11169 lt_cv_dlopen_self=no
11170 fi
11171 fi
11172 rm -fr conftest*
11173
11174
11175 fi
11176 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11177 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11178
11179 if test "x$lt_cv_dlopen_self" = xyes; then
11180 LDFLAGS="$LDFLAGS $link_static_flag"
11181 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11182 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11183 if test "${lt_cv_dlopen_self_static+set}" = set; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11185 else
11186 if test "$cross_compiling" = yes; then :
11187 lt_cv_dlopen_self_static=cross
11188 else
11189 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11190 lt_status=$lt_dlunknown
11191 cat > conftest.$ac_ext <<EOF
11192 #line 11192 "configure"
11193 #include "confdefs.h"
11194
11195 #if HAVE_DLFCN_H
11196 #include <dlfcn.h>
11197 #endif
11198
11199 #include <stdio.h>
11200
11201 #ifdef RTLD_GLOBAL
11202 # define LT_DLGLOBAL RTLD_GLOBAL
11203 #else
11204 # ifdef DL_GLOBAL
11205 # define LT_DLGLOBAL DL_GLOBAL
11206 # else
11207 # define LT_DLGLOBAL 0
11208 # endif
11209 #endif
11210
11211 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11212 find out it does not work in some platform. */
11213 #ifndef LT_DLLAZY_OR_NOW
11214 # ifdef RTLD_LAZY
11215 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11216 # else
11217 # ifdef DL_LAZY
11218 # define LT_DLLAZY_OR_NOW DL_LAZY
11219 # else
11220 # ifdef RTLD_NOW
11221 # define LT_DLLAZY_OR_NOW RTLD_NOW
11222 # else
11223 # ifdef DL_NOW
11224 # define LT_DLLAZY_OR_NOW DL_NOW
11225 # else
11226 # define LT_DLLAZY_OR_NOW 0
11227 # endif
11228 # endif
11229 # endif
11230 # endif
11231 #endif
11232
11233 #ifdef __cplusplus
11234 extern "C" void exit (int);
11235 #endif
11236
11237 void fnord() { int i=42;}
11238 int main ()
11239 {
11240 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11241 int status = $lt_dlunknown;
11242
11243 if (self)
11244 {
11245 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11246 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11247 /* dlclose (self); */
11248 }
11249
11250 exit (status);
11251 }
11252 EOF
11253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11254 (eval $ac_link) 2>&5
11255 ac_status=$?
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11258 (./conftest; exit; ) 2>/dev/null
11259 lt_status=$?
11260 case x$lt_status in
11261 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11262 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11263 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11264 esac
11265 else :
11266 # compilation failed
11267 lt_cv_dlopen_self_static=no
11268 fi
11269 fi
11270 rm -fr conftest*
11271
11272
11273 fi
11274 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11275 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11276 fi
11277
11278 CPPFLAGS="$save_CPPFLAGS"
11279 LDFLAGS="$save_LDFLAGS"
11280 LIBS="$save_LIBS"
11281 ;;
11282 esac
11283
11284 case $lt_cv_dlopen_self in
11285 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11286 *) enable_dlopen_self=unknown ;;
11287 esac
11288
11289 case $lt_cv_dlopen_self_static in
11290 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11291 *) enable_dlopen_self_static=unknown ;;
11292 esac
11293 fi
11294
11295
11296 # The else clause should only fire when bootstrapping the
11297 # libtool distribution, otherwise you forgot to ship ltmain.sh
11298 # with your package, and you will get complaints that there are
11299 # no rules to generate ltmain.sh.
11300 if test -f "$ltmain"; then
11301 # Now quote all the things that may contain metacharacters while being
11302 # careful not to overquote the AC_SUBSTed values. We take copies of the
11303 # variables and quote the copies for generation of the libtool script.
11304 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
11305 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11306 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11307 deplibs_check_method reload_flag reload_cmds need_locks \
11308 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11309 lt_cv_sys_global_symbol_to_c_name_address \
11310 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11311 old_postinstall_cmds old_postuninstall_cmds \
11312 compiler_CXX \
11313 CC_CXX \
11314 LD_CXX \
11315 lt_prog_compiler_wl_CXX \
11316 lt_prog_compiler_pic_CXX \
11317 lt_prog_compiler_static_CXX \
11318 lt_prog_compiler_no_builtin_flag_CXX \
11319 export_dynamic_flag_spec_CXX \
11320 thread_safe_flag_spec_CXX \
11321 whole_archive_flag_spec_CXX \
11322 old_archive_cmds_CXX \
11323 old_archive_from_new_cmds_CXX \
11324 predep_objects_CXX \
11325 postdep_objects_CXX \
11326 predeps_CXX \
11327 postdeps_CXX \
11328 compiler_lib_search_path_CXX \
11329 archive_cmds_CXX \
11330 archive_expsym_cmds_CXX \
11331 postinstall_cmds_CXX \
11332 postuninstall_cmds_CXX \
11333 old_archive_from_expsyms_cmds_CXX \
11334 allow_undefined_flag_CXX \
11335 no_undefined_flag_CXX \
11336 export_symbols_cmds_CXX \
11337 hardcode_libdir_flag_spec_CXX \
11338 hardcode_libdir_separator_CXX \
11339 lt_cv_prog_compiler_c_o_CXX \
11340 exclude_expsyms_CXX \
11341 include_expsyms_CXX; do
11342
11343 case $var in
11344 old_archive_cmds_CXX | \
11345 old_archive_from_new_cmds_CXX | \
11346 archive_cmds_CXX | \
11347 archive_expsym_cmds_CXX | \
11348 old_archive_from_expsyms_cmds_CXX | \
11349 export_symbols_cmds_CXX | \
11350 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11351 postinstall_cmds | postuninstall_cmds | \
11352 old_postinstall_cmds | old_postuninstall_cmds | \
11353 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11354 # Double-quote double-evaled strings.
11355 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11356 ;;
11357 *)
11358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11359 ;;
11360 esac
11361 done
11362
11363 case $lt_echo in
11364 *'\$0 --fallback-echo"')
11365 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11366 ;;
11367 esac
11368
11369 cfgfile="$ofile"
11370
11371 cat <<__EOF__ >> "$cfgfile"
11372 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11373
11374 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11375
11376 # Shell to use when invoking shell scripts.
11377 SHELL=$lt_SHELL
11378
11379 # Whether or not to build shared libraries.
11380 build_libtool_libs=$enable_shared
11381
11382 # Whether or not to build static libraries.
11383 build_old_libs=$enable_static
11384
11385 # Whether or not to add -lc for building shared libraries.
11386 build_libtool_need_lc=$archive_cmds_need_lc_CXX
11387
11388 # Whether or not to optimize for fast installation.
11389 fast_install=$enable_fast_install
11390
11391 # The host system.
11392 host_alias=$host_alias
11393 host=$host
11394
11395 # An echo program that does not interpret backslashes.
11396 echo=$lt_echo
11397
11398 # The archiver.
11399 AR=$lt_AR
11400 AR_FLAGS=$lt_AR_FLAGS
11401
11402 # A C compiler.
11403 LTCC=$lt_LTCC
11404
11405 # A language-specific compiler.
11406 CC=$lt_compiler_CXX
11407
11408 # Is the compiler the GNU C compiler?
11409 with_gcc=$GCC_CXX
11410
11411 # The linker used to build libraries.
11412 LD=$lt_LD_CXX
11413
11414 # Whether we need hard or soft links.
11415 LN_S=$lt_LN_S
11416
11417 # A BSD-compatible nm program.
11418 NM=$lt_NM
11419
11420 # A sed program that does not truncate output.
11421 SED=$lt_SED
11422
11423 # A symbol stripping program
11424 STRIP=$STRIP
11425
11426 # Used to examine libraries when file_magic_cmd begins "file"
11427 MAGIC_CMD=$MAGIC_CMD
11428
11429 # Used on cygwin: DLL creation program.
11430 DLLTOOL="$DLLTOOL"
11431
11432 # Used on cygwin: object dumper.
11433 OBJDUMP="$OBJDUMP"
11434
11435 # Used on cygwin: assembler.
11436 AS="$AS"
11437
11438 # The name of the directory that contains temporary libtool files.
11439 objdir=$objdir
11440
11441 # How to create reloadable object files.
11442 reload_flag=$lt_reload_flag
11443 reload_cmds=$lt_reload_cmds
11444
11445 # How to pass a linker flag through the compiler.
11446 wl=$lt_lt_prog_compiler_wl_CXX
11447
11448 # Object file suffix (normally "o").
11449 objext="$ac_objext"
11450
11451 # Old archive suffix (normally "a").
11452 libext="$libext"
11453
11454 # Executable file suffix (normally "").
11455 exeext="$exeext"
11456
11457 # Additional compiler flags for building library objects.
11458 pic_flag=$lt_lt_prog_compiler_pic_CXX
11459 pic_mode=$pic_mode
11460
11461 # What is the maximum length of a command?
11462 max_cmd_len=$lt_cv_sys_max_cmd_len
11463
11464 # Does compiler simultaneously support -c and -o options?
11465 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11466
11467 # Must we lock files when doing compilation ?
11468 need_locks=$lt_need_locks
11469
11470 # Do we need the lib prefix for modules?
11471 need_lib_prefix=$need_lib_prefix
11472
11473 # Do we need a version for libraries?
11474 need_version=$need_version
11475
11476 # Whether dlopen is supported.
11477 dlopen_support=$enable_dlopen
11478
11479 # Whether dlopen of programs is supported.
11480 dlopen_self=$enable_dlopen_self
11481
11482 # Whether dlopen of statically linked programs is supported.
11483 dlopen_self_static=$enable_dlopen_self_static
11484
11485 # Compiler flag to prevent dynamic linking.
11486 link_static_flag=$lt_lt_prog_compiler_static_CXX
11487
11488 # Compiler flag to turn off builtin functions.
11489 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
11490
11491 # Compiler flag to allow reflexive dlopens.
11492 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
11493
11494 # Compiler flag to generate shared objects directly from archives.
11495 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
11496
11497 # Compiler flag to generate thread-safe objects.
11498 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
11499
11500 # Library versioning type.
11501 version_type=$version_type
11502
11503 # Format of library name prefix.
11504 libname_spec=$lt_libname_spec
11505
11506 # List of archive names. First name is the real one, the rest are links.
11507 # The last name is the one that the linker finds with -lNAME.
11508 library_names_spec=$lt_library_names_spec
11509
11510 # The coded name of the library, if different from the real name.
11511 soname_spec=$lt_soname_spec
11512
11513 # Commands used to build and install an old-style archive.
11514 RANLIB=$lt_RANLIB
11515 old_archive_cmds=$lt_old_archive_cmds_CXX
11516 old_postinstall_cmds=$lt_old_postinstall_cmds
11517 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11518
11519 # Create an old-style archive from a shared archive.
11520 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
11521
11522 # Create a temporary old-style archive to link instead of a shared archive.
11523 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
11524
11525 # Commands used to build and install a shared archive.
11526 archive_cmds=$lt_archive_cmds_CXX
11527 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
11528 postinstall_cmds=$lt_postinstall_cmds
11529 postuninstall_cmds=$lt_postuninstall_cmds
11530
11531 # Commands to strip libraries.
11532 old_striplib=$lt_old_striplib
11533 striplib=$lt_striplib
11534
11535 # Dependencies to place before the objects being linked to create a
11536 # shared library.
11537 predep_objects=$lt_predep_objects_CXX
11538
11539 # Dependencies to place after the objects being linked to create a
11540 # shared library.
11541 postdep_objects=$lt_postdep_objects_CXX
11542
11543 # Dependencies to place before the objects being linked to create a
11544 # shared library.
11545 predeps=$lt_predeps_CXX
11546
11547 # Dependencies to place after the objects being linked to create a
11548 # shared library.
11549 postdeps=$lt_postdeps_CXX
11550
11551 # The library search path used internally by the compiler when linking
11552 # a shared library.
11553 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
11554
11555 # Method to check whether dependent libraries are shared objects.
11556 deplibs_check_method=$lt_deplibs_check_method
11557
11558 # Command to use when deplibs_check_method == file_magic.
11559 file_magic_cmd=$lt_file_magic_cmd
11560
11561 # Flag that allows shared libraries with undefined symbols to be built.
11562 allow_undefined_flag=$lt_allow_undefined_flag_CXX
11563
11564 # Flag that forces no undefined symbols.
11565 no_undefined_flag=$lt_no_undefined_flag_CXX
11566
11567 # Commands used to finish a libtool library installation in a directory.
11568 finish_cmds=$lt_finish_cmds
11569
11570 # Same as above, but a single script fragment to be evaled but not shown.
11571 finish_eval=$lt_finish_eval
11572
11573 # Take the output of nm and produce a listing of raw symbols and C names.
11574 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11575
11576 # Transform the output of nm in a proper C declaration
11577 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11578
11579 # Transform the output of nm in a C name address pair
11580 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11581
11582 # This is the shared library runtime path variable.
11583 runpath_var=$runpath_var
11584
11585 # This is the shared library path variable.
11586 shlibpath_var=$shlibpath_var
11587
11588 # Is shlibpath searched before the hard-coded library search path?
11589 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11590
11591 # How to hardcode a shared library path into an executable.
11592 hardcode_action=$hardcode_action_CXX
11593
11594 # Whether we should hardcode library paths into libraries.
11595 hardcode_into_libs=$hardcode_into_libs
11596
11597 # Flag to hardcode \$libdir into a binary during linking.
11598 # This must work even if \$libdir does not exist.
11599 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
11600
11601 # Whether we need a single -rpath flag with a separated argument.
11602 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
11603
11604 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
11605 # resulting binary.
11606 hardcode_direct=$hardcode_direct_CXX
11607
11608 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11609 # resulting binary.
11610 hardcode_minus_L=$hardcode_minus_L_CXX
11611
11612 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11613 # the resulting binary.
11614 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
11615
11616 # Variables whose values should be saved in libtool wrapper scripts and
11617 # restored at relink time.
11618 variables_saved_for_relink="$variables_saved_for_relink"
11619
11620 # Whether libtool must link a program against all its dependency libraries.
11621 link_all_deplibs=$link_all_deplibs_CXX
11622
11623 # Compile-time system search path for libraries
11624 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11625
11626 # Run-time system search path for libraries
11627 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11628
11629 # Fix the shell variable \$srcfile for the compiler.
11630 fix_srcfile_path="$fix_srcfile_path_CXX"
11631
11632 # Set to yes if exported symbols are required.
11633 always_export_symbols=$always_export_symbols_CXX
11634
11635 # The commands to list exported symbols.
11636 export_symbols_cmds=$lt_export_symbols_cmds_CXX
11637
11638 # The commands to extract the exported symbol list from a shared archive.
11639 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11640
11641 # Symbols that should not be listed in the preloaded symbols.
11642 exclude_expsyms=$lt_exclude_expsyms_CXX
11643
11644 # Symbols that must always be exported.
11645 include_expsyms=$lt_include_expsyms_CXX
11646
11647 # ### END LIBTOOL TAG CONFIG: $tagname
11648
11649 __EOF__
11650
11651
11652 else
11653 # If there is no Makefile yet, we rely on a make rule to execute
11654 # `config.status --recheck' to rerun these tests and create the
11655 # libtool script then.
11656 test -f Makefile && make "$ltmain"
11657 fi
11658
11659
11660 ac_ext=cc
11661 ac_cpp='$CXXCPP $CPPFLAGS'
11662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11665
11666 CC="$lt_save_CC"
11667
11668 ;;
11669
11670 GCJ)
11671
11672
11673
11674 # Source file extension for C test sources.
11675 ac_ext=java
11676
11677 # Object file extension for compiled C test sources.
11678 objext=o
11679 objext_GCJ=$objext
11680
11681 # Code to be used in simple compile tests
11682 lt_simple_compile_test_code="class foo {};"
11683
11684 # Code to be used in simple link tests
11685 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }'
11686
11687 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11688
11689 # If no C compiler was specified, use CC.
11690 LTCC=${LTCC-"$CC"}
11691
11692 # Allow CC to be a program name with arguments.
11693 set dummy $CC
11694 compiler="$2"
11695
11696
11697 # Allow CC to be a program name with arguments.
11698 lt_save_CC="$CC"
11699 CC=${GCJ-"gcj"}
11700 set dummy $CC
11701 compiler="$2"
11702 compiler_GCJ=$CC
11703
11704 # GCJ did not exist at the time GCC didn't implicitly link libc in.
11705 archive_cmds_need_lc_GCJ=no
11706
11707
11708 lt_prog_compiler_no_builtin_flag_GCJ=
11709
11710 if test "$GCC" = yes; then
11711 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
11712
11713 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11714 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11715 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11717 else
11718 lt_cv_prog_compiler_rtti_exceptions=no
11719 ac_outfile=conftest.$ac_objext
11720 save_CFLAGS="$CFLAGS"
11721 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
11722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11723 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
11724 # The compiler can only warn and ignore the option if not recognized
11725 # So say no if there are warnings
11726 if test -s conftest.err; then
11727 # Append any errors to the config.log.
11728 cat conftest.err 1>&5
11729 else
11730 lt_cv_prog_compiler_rtti_exceptions=yes
11731 fi
11732 fi
11733 $rm conftest*
11734 CFLAGS="$save_CFLAGS"
11735
11736 fi
11737 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11738 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11739
11740 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11741 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
11742 else
11743 :
11744 fi
11745
11746 fi
11747
11748 lt_prog_compiler_wl_GCJ=
11749 lt_prog_compiler_pic_GCJ=
11750 lt_prog_compiler_static_GCJ=
11751
11752 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11753 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11754
11755 if test "$GCC" = yes; then
11756 lt_prog_compiler_wl_GCJ='-Wl,'
11757 lt_prog_compiler_static_GCJ='-static'
11758
11759 case $host_os in
11760 aix*)
11761 # All AIX code is PIC.
11762 if test "$host_cpu" = ia64; then
11763 # AIX 5 now supports IA64 processor
11764 lt_prog_compiler_static_GCJ='-Bstatic'
11765 fi
11766 ;;
11767
11768 amigaos*)
11769 # FIXME: we need at least 68020 code to build shared libraries, but
11770 # adding the `-m68020' flag to GCC prevents building anything better,
11771 # like `-m68040'.
11772 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
11773 ;;
11774
11775 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11776 # PIC is the default for these OSes.
11777 ;;
11778
11779 mingw* | pw32* | os2*)
11780 # This hack is so that the source file can tell whether it is being
11781 # built for inclusion in a dll (and should export symbols for example).
11782 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
11783 ;;
11784
11785 darwin* | rhapsody*)
11786 # PIC is the default on this platform
11787 # Common symbols not allowed in MH_DYLIB files
11788 lt_prog_compiler_pic_GCJ='-fno-common'
11789 ;;
11790
11791 msdosdjgpp*)
11792 # Just because we use GCC doesn't mean we suddenly get shared libraries
11793 # on systems that don't support them.
11794 lt_prog_compiler_can_build_shared_GCJ=no
11795 enable_shared=no
11796 ;;
11797
11798 sysv4*MP*)
11799 if test -d /usr/nec; then
11800 lt_prog_compiler_pic_GCJ=-Kconform_pic
11801 fi
11802 ;;
11803
11804 hpux*)
11805 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
11806 if test "$host_cpu" != ia64; then
11807 lt_prog_compiler_pic_GCJ='-fPIC'
11808 fi
11809 ;;
11810
11811 *)
11812 lt_prog_compiler_pic_GCJ='-fPIC'
11813 ;;
11814 esac
11815 else
11816 # PORTME Check for flag to pass linker flags through the system compiler.
11817 case $host_os in
11818 aix*)
11819 lt_prog_compiler_wl_GCJ='-Wl,'
11820 if test "$host_cpu" = ia64; then
11821 # AIX 5 now supports IA64 processor
11822 lt_prog_compiler_static_GCJ='-Bstatic'
11823 else
11824 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
11825 fi
11826 ;;
11827
11828 mingw* | pw32* | os2*)
11829 # This hack is so that the source file can tell whether it is being
11830 # built for inclusion in a dll (and should export symbols for example).
11831 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
11832 ;;
11833
11834 hpux9* | hpux10* | hpux11*)
11835 lt_prog_compiler_wl_GCJ='-Wl,'
11836 if test "$host_cpu" != ia64; then
11837 lt_prog_compiler_pic_GCJ='+Z'
11838 fi
11839 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11840 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
11841 ;;
11842
11843 irix5* | irix6* | nonstopux*)
11844 lt_prog_compiler_wl_GCJ='-Wl,'
11845 # PIC (with -KPIC) is the default.
11846 lt_prog_compiler_static_GCJ='-non_shared'
11847 ;;
11848
11849 newsos6)
11850 lt_prog_compiler_pic_GCJ='-KPIC'
11851 lt_prog_compiler_static_GCJ='-Bstatic'
11852 ;;
11853
11854 osf3* | osf4* | osf5*)
11855 lt_prog_compiler_wl_GCJ='-Wl,'
11856 # All OSF/1 code is PIC.
11857 lt_prog_compiler_static_GCJ='-non_shared'
11858 ;;
11859
11860 sco3.2v5*)
11861 lt_prog_compiler_pic_GCJ='-Kpic'
11862 lt_prog_compiler_static_GCJ='-dn'
11863 ;;
11864
11865 solaris*)
11866 lt_prog_compiler_wl_GCJ='-Wl,'
11867 lt_prog_compiler_pic_GCJ='-KPIC'
11868 lt_prog_compiler_static_GCJ='-Bstatic'
11869 ;;
11870
11871 sunos4*)
11872 lt_prog_compiler_wl_GCJ='-Qoption ld '
11873 lt_prog_compiler_pic_GCJ='-PIC'
11874 lt_prog_compiler_static_GCJ='-Bstatic'
11875 ;;
11876
11877 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11878 if test "x$host_vendor" = xsni; then
11879 lt_prog_compiler_wl_GCJ='-LD'
11880 else
11881 lt_prog_compiler_wl_GCJ='-Wl,'
11882 fi
11883 lt_prog_compiler_pic_GCJ='-KPIC'
11884 lt_prog_compiler_static_GCJ='-Bstatic'
11885 ;;
11886
11887 sysv4*MP*)
11888 if test -d /usr/nec ;then
11889 lt_prog_compiler_pic_GCJ='-Kconform_pic'
11890 lt_prog_compiler_static_GCJ='-Bstatic'
11891 fi
11892 ;;
11893
11894 uts4*)
11895 lt_prog_compiler_pic_GCJ='-pic'
11896 lt_prog_compiler_static_GCJ='-Bstatic'
11897 ;;
11898
11899 *)
11900 lt_prog_compiler_can_build_shared_GCJ=no
11901 ;;
11902 esac
11903 fi
11904
11905 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
11906 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
11907
11908 #
11909 # Check to make sure the PIC flag actually works.
11910 #
11911 if test -n "$lt_prog_compiler_pic_GCJ"; then
11912 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
11913 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
11914 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11916 else
11917 lt_prog_compiler_pic_works_GCJ=no
11918 ac_outfile=conftest.$ac_objext
11919 save_CFLAGS="$CFLAGS"
11920 CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ"
11921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11922 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
11923 # The compiler can only warn and ignore the option if not recognized
11924 # So say no if there are warnings
11925 if test -s conftest.err; then
11926 # Append any errors to the config.log.
11927 cat conftest.err 1>&5
11928 else
11929 lt_prog_compiler_pic_works_GCJ=yes
11930 fi
11931 fi
11932 $rm conftest*
11933 CFLAGS="$save_CFLAGS"
11934
11935 fi
11936 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
11937 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
11938
11939 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
11940 case $lt_prog_compiler_pic_GCJ in
11941 "" | " "*) ;;
11942 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
11943 esac
11944 else
11945 lt_prog_compiler_pic_GCJ=
11946 lt_prog_compiler_can_build_shared_GCJ=no
11947 fi
11948
11949 fi
11950 case "$host_os" in
11951 # For platforms which do not support PIC, -DPIC is meaningless:
11952 *djgpp*)
11953 lt_prog_compiler_pic_GCJ=
11954 ;;
11955 *)
11956 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
11957 ;;
11958 esac
11959
11960 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11961 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11962 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
11963 echo $ECHO_N "(cached) $ECHO_C" >&6
11964 else
11965 lt_cv_prog_compiler_c_o_GCJ=no
11966 $rm -r conftest 2>/dev/null
11967 mkdir conftest
11968 cd conftest
11969 mkdir out
11970 save_GCJFLAGS="$CFLAGS"
11971 CFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"
11972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11973
11974 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11975 # that will create temporary files in the current directory regardless of
11976 # the output directory. Thus, making CWD read-only will cause this test
11977 # to fail, enabling locking or at least warning the user not to do parallel
11978 # builds.
11979 chmod -w .
11980
11981 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
11982 then
11983 # The compiler can only warn and ignore the option if not recognized
11984 # So say no if there are warnings
11985 if test -s out/conftest.err; then
11986 # Append any errors to the config.log.
11987 cat out/conftest.err 1>&5
11988 else
11989 lt_cv_prog_compiler_c_o_GCJ=yes
11990 fi
11991 fi
11992 CFLAGS="$save_CFLAGS"
11993 chmod u+w .
11994 $rm conftest* out/*
11995 rmdir out
11996 cd ..
11997 rmdir conftest
11998 $rm conftest*
11999
12000 fi
12001 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
12002 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
12003
12004
12005 hard_links="nottested"
12006 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
12007 # do not overwrite the value of need_locks provided by the user
12008 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12009 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12010 hard_links=yes
12011 $rm conftest*
12012 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12013 touch conftest.a
12014 ln conftest.a conftest.b 2>&5 || hard_links=no
12015 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12016 echo "$as_me:$LINENO: result: $hard_links" >&5
12017 echo "${ECHO_T}$hard_links" >&6
12018 if test "$hard_links" = no; then
12019 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12020 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12021 need_locks=warn
12022 fi
12023 else
12024 need_locks=no
12025 fi
12026
12027 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12028 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12029
12030 runpath_var=
12031 allow_undefined_flag_GCJ=
12032
12033 archive_cmds_GCJ=
12034 archive_cmds_need_lc_GCJ=
12035 archive_expsym_cmds_GCJ=
12036 old_archive_From_new_cmds_GCJ=
12037 old_archive_from_expsyms_cmds_GCJ=
12038 export_dynamic_flag_spec_GCJ=
12039 whole_archive_flag_spec_GCJ=
12040 thread_safe_flag_spec_GCJ=
12041 hardcode_libdir_flag_spec_GCJ=
12042 hardcode_libdir_separator_GCJ=
12043 hardcode_direct_GCJ=no
12044 hardcode_minus_L_GCJ=no
12045 hardcode_shlibpath_var_GCJ=unsupported
12046 link_all_deplibs_GCJ=unknown
12047 always_export_symbols_GCJ=no
12048 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
12049 # include_expsyms should be a list of space-separated symbols to be *always*
12050 # included in the symbol list
12051 include_expsyms_GCJ=
12052 # exclude_expsyms can be an egrep regular expression of symbols to exclude
12053 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12054 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12055 # as well as any symbol that contains `d'.
12056 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
12057 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12058 # platforms (ab)use it in PIC code, but their linkers get confused if
12059 # the symbol is explicitly referenced. Since portable code cannot
12060 # rely on this symbol name, it's probably fine to never include it in
12061 # preloaded symbol tables.
12062 extract_expsyms_cmds=
12063
12064 case $host_os in
12065 cygwin* | mingw* | pw32*)
12066 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12067 # When not using gcc, we currently assume that we are using
12068 # Microsoft Visual C++.
12069 if test "$GCC" != yes; then
12070 with_gnu_ld=no
12071 fi
12072 ;;
12073 openbsd*)
12074 with_gnu_ld=no
12075 ;;
12076 esac
12077
12078 ld_shlibs_GCJ=yes
12079 if test "$with_gnu_ld" = yes; then
12080 # If archive_cmds runs LD, not CC, wlarc should be empty
12081 wlarc='${wl}'
12082
12083 # See if GNU ld supports shared libraries.
12084 case $host_os in
12085 aix3* | aix4* | aix5*)
12086 # On AIX/PPC, the GNU linker is very broken
12087 if test "$host_cpu" != ia64; then
12088 ld_shlibs_GCJ=no
12089 cat <<EOF 1>&2
12090
12091 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12092 *** to be unable to reliably create shared libraries on AIX.
12093 *** Therefore, libtool is disabling shared libraries support. If you
12094 *** really care for shared libraries, you may want to modify your PATH
12095 *** so that a non-GNU linker is found, and then restart.
12096
12097 EOF
12098 fi
12099 ;;
12100
12101 amigaos*)
12102 archive_cmds_GCJ='$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)'
12103 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12104 hardcode_minus_L_GCJ=yes
12105
12106 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12107 # that the semantics of dynamic libraries on AmigaOS, at least up
12108 # to version 4, is to share data among multiple programs linked
12109 # with the same dynamic library. Since this doesn't match the
12110 # behavior of shared libraries on other platforms, we can't use
12111 # them.
12112 ld_shlibs_GCJ=no
12113 ;;
12114
12115 beos*)
12116 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12117 allow_undefined_flag_GCJ=unsupported
12118 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12119 # support --undefined. This deserves some investigation. FIXME
12120 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12121 else
12122 ld_shlibs_GCJ=no
12123 fi
12124 ;;
12125
12126 cygwin*)
12127 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
12128 # as there is no search path for DLLs.
12129 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12130 allow_undefined_flag_GCJ=
12131 always_export_symbols_GCJ=yes
12132
12133 if $LD --help 2>&1 | egrep 'auto-import' > /dev/null; then
12134 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12135 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-retain-symbols-file $wl$export_symbols ${wl}--out-implib,$lib'
12136 else
12137 ld_shlibs=no
12138 fi
12139 ;;
12140
12141 mingw* | pw32*)
12142 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
12143 # no search path for DLLs.
12144 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12145 allow_undefined_flag_GCJ=unsupported
12146 always_export_symbols_GCJ=yes
12147
12148 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
12149 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
12150 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
12151 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
12152 else $CC -o impgen impgen.c ; fi)~
12153 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
12154
12155 old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
12156
12157 # FIXME: what about values for MSVC?
12158 dll_entry=__cygwin_dll_entry@12
12159 case $host_os in
12160 mingw*)
12161 # mingw values
12162 dll_entry=_DllMainCRTStartup@12
12163 ;;
12164 esac
12165
12166 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
12167
12168 # recent cygwin and mingw systems supply a stub DllMain which the user
12169 # can override, but on older systems we have to supply one (in ltdll.c)
12170 if test "x$lt_cv_need_dllmain" = "xyes"; then
12171 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
12172 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
12173 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
12174 else
12175 ltdll_obj=
12176 ltdll_cmds=
12177 fi
12178
12179 # Extract the symbol export list from an `--export-all' def file,
12180 # then regenerate the def file from the symbol export list, so that
12181 # the compiled dll only exports the symbol export list.
12182 # Be careful not to strip the DATA tag left by newer dlltools.
12183 export_symbols_cmds_GCJ="$ltdll_cmds"'
12184 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
12185 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
12186
12187 # If the export-symbols file already is a .def file (1st line
12188 # is EXPORTS), use it as is.
12189 # If DATA tags from a recent dlltool are present, honour them!
12190 archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then
12191 cp $export_symbols $output_objdir/$soname-def;
12192 else
12193 echo EXPORTS > $output_objdir/$soname-def;
12194 _lt_hint=1;
12195 cat $export_symbols | while read symbol; do
12196 set dummy \$symbol;
12197 case \$# in
12198 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
12199 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
12200 esac;
12201 _lt_hint=`expr 1 + \$_lt_hint`;
12202 done;
12203 fi~
12204 '"$ltdll_cmds"'
12205 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
12206 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
12207 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
12208 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
12209 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
12210 ;;
12211
12212 netbsd*)
12213 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12214 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12215 wlarc=
12216 else
12217 archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12218 archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12219 fi
12220 ;;
12221
12222 solaris* | sysv5*)
12223 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
12224 ld_shlibs_GCJ=no
12225 cat <<EOF 1>&2
12226
12227 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12228 *** create shared libraries on Solaris systems. Therefore, libtool
12229 *** is disabling shared libraries support. We urge you to upgrade GNU
12230 *** binutils to release 2.9.1 or newer. Another option is to modify
12231 *** your PATH or compiler configuration so that the native linker is
12232 *** used, and then restart.
12233
12234 EOF
12235 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12236 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12237 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12238 else
12239 ld_shlibs_GCJ=no
12240 fi
12241 ;;
12242
12243 sunos4*)
12244 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12245 wlarc=
12246 hardcode_direct_GCJ=yes
12247 hardcode_shlibpath_var_GCJ=no
12248 ;;
12249
12250 *)
12251 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12252 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12253 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12254 else
12255 ld_shlibs_GCJ=no
12256 fi
12257 ;;
12258 esac
12259
12260 if test "$ld_shlibs_GCJ" = yes; then
12261 runpath_var=LD_RUN_PATH
12262 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
12263 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
12264 case $host_os in
12265 cygwin* | mingw* | pw32*)
12266 # dlltool doesn't understand --whole-archive et. al.
12267 whole_archive_flag_spec_GCJ=
12268 ;;
12269 *)
12270 # ancient GNU ld didn't support --whole-archive et. al.
12271 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
12272 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12273 else
12274 whole_archive_flag_spec_GCJ=
12275 fi
12276 ;;
12277 esac
12278 fi
12279 else
12280 # PORTME fill in a description of your system's linker (not GNU ld)
12281 case $host_os in
12282 aix3*)
12283 allow_undefined_flag_GCJ=unsupported
12284 always_export_symbols_GCJ=yes
12285 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12286 # Note: this linker hardcodes the directories in LIBPATH if there
12287 # are no directories specified by -L.
12288 hardcode_minus_L_GCJ=yes
12289 if test "$GCC" = yes && test -z "$link_static_flag"; then
12290 # Neither direct hardcoding nor static linking is supported with a
12291 # broken collect2.
12292 hardcode_direct_GCJ=unsupported
12293 fi
12294 ;;
12295
12296 aix4* | aix5*)
12297 if test "$host_cpu" = ia64; then
12298 # On IA64, the linker does run time linking by default, so we don't
12299 # have to do anything special.
12300 aix_use_runtimelinking=no
12301 exp_sym_flag='-Bexport'
12302 no_entry_flag=""
12303 else
12304 # If we're using GNU nm, then we don't want the "-C" option.
12305 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12306 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
12307 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12308 else
12309 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12310 fi
12311 aix_use_runtimelinking=no
12312
12313 # Test if we are trying to use run time linking or normal
12314 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12315 # need to do runtime linking.
12316 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12317 for ld_flag in $LDFLAGS; do
12318 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12319 aix_use_runtimelinking=yes
12320 break
12321 fi
12322 done
12323 esac
12324
12325 exp_sym_flag='-bexport'
12326 no_entry_flag='-bnoentry'
12327 fi
12328
12329 # When large executables or shared objects are built, AIX ld can
12330 # have problems creating the table of contents. If linking a library
12331 # or program results in "error TOC overflow" add -mminimal-toc to
12332 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12333 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12334
12335 archive_cmds_GCJ=''
12336 hardcode_direct_GCJ=yes
12337 hardcode_libdir_separator_GCJ=':'
12338 link_all_deplibs_GCJ=yes
12339
12340 if test "$GCC" = yes; then
12341 case $host_os in aix4.012|aix4.012.*)
12342 # We only want to do this on AIX 4.2 and lower, the check
12343 # below for broken collect2 doesn't work under 4.3+
12344 collect2name=`${CC} -print-prog-name=collect2`
12345 if test -f "$collect2name" && \
12346 strings "$collect2name" | grep resolve_lib_name >/dev/null
12347 then
12348 # We have reworked collect2
12349 hardcode_direct_GCJ=yes
12350 else
12351 # We have old collect2
12352 hardcode_direct_GCJ=unsupported
12353 # It fails to find uninstalled libraries when the uninstalled
12354 # path is not listed in the libpath. Setting hardcode_minus_L
12355 # to unsupported forces relinking
12356 hardcode_minus_L_GCJ=yes
12357 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12358 hardcode_libdir_separator_GCJ=
12359 fi
12360 esac
12361 shared_flag='-shared'
12362 else
12363 # not using gcc
12364 if test "$host_cpu" = ia64; then
12365 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12366 # chokes on -Wl,-G. The following line is correct:
12367 shared_flag='-G'
12368 else
12369 if test "$aix_use_runtimelinking" = yes; then
12370 shared_flag='${wl}-G'
12371 else
12372 shared_flag='${wl}-bM:SRE'
12373 fi
12374 fi
12375 fi
12376
12377 # It seems that -bexpall does not export symbols beginning with
12378 # underscore (_), so it is better to generate a list of symbols to export.
12379 always_export_symbols_GCJ=yes
12380 if test "$aix_use_runtimelinking" = yes; then
12381 # Warning - without using the other runtime loading flags (-brtl),
12382 # -berok will link without error, but may produce a broken library.
12383 allow_undefined_flag_GCJ='-berok'
12384 # Determine the default libpath from the value encoded in an empty executable.
12385 cat >conftest.$ac_ext <<_ACEOF
12386 #line $LINENO "configure"
12387 #include "confdefs.h"
12388
12389 #ifdef F77_DUMMY_MAIN
12390 # ifdef __cplusplus
12391 extern "C"
12392 # endif
12393 int F77_DUMMY_MAIN() { return 1; }
12394 #endif
12395 int
12396 main ()
12397 {
12398
12399 ;
12400 return 0;
12401 }
12402 _ACEOF
12403 rm -f conftest.$ac_objext conftest$ac_exeext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12405 (eval $ac_link) 2>&5
12406 ac_status=$?
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try='test -s conftest$ac_exeext'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12412 ac_status=$?
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; }; then
12415
12416 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12417 }'`
12418 # Check for a 64-bit object if we didn't find anything.
12419 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12420 }'`; fi
12421 else
12422 echo "$as_me: failed program was:" >&5
12423 cat conftest.$ac_ext >&5
12424 fi
12425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12427
12428 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
12429 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12430 else
12431 if test "$host_cpu" = ia64; then
12432 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
12433 allow_undefined_flag_GCJ="-z nodefs"
12434 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12435 else
12436 # Determine the default libpath from the value encoded in an empty executable.
12437 cat >conftest.$ac_ext <<_ACEOF
12438 #line $LINENO "configure"
12439 #include "confdefs.h"
12440
12441 #ifdef F77_DUMMY_MAIN
12442 # ifdef __cplusplus
12443 extern "C"
12444 # endif
12445 int F77_DUMMY_MAIN() { return 1; }
12446 #endif
12447 int
12448 main ()
12449 {
12450
12451 ;
12452 return 0;
12453 }
12454 _ACEOF
12455 rm -f conftest.$ac_objext conftest$ac_exeext
12456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12457 (eval $ac_link) 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } &&
12461 { ac_try='test -s conftest$ac_exeext'
12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12464 ac_status=$?
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; }; then
12467
12468 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12469 }'`
12470 # Check for a 64-bit object if we didn't find anything.
12471 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12472 }'`; fi
12473 else
12474 echo "$as_me: failed program was:" >&5
12475 cat conftest.$ac_ext >&5
12476 fi
12477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12478 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12479
12480 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
12481 # Warning - without using the other run time loading flags,
12482 # -berok will link without error, but may produce a broken library.
12483 no_undefined_flag_GCJ=' ${wl}-bernotok'
12484 allow_undefined_flag_GCJ=' ${wl}-berok'
12485 # -bexpall does not export symbols beginning with underscore (_)
12486 always_export_symbols_GCJ=yes
12487 # Exported symbols can be pulled into shared objects from archives
12488 whole_archive_flag_spec_GCJ=' '
12489 archive_cmds_need_lc_GCJ=yes
12490 # This is similar to how AIX traditionally builds it's shared libraries.
12491 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12492 fi
12493 fi
12494 ;;
12495
12496 amigaos*)
12497 archive_cmds_GCJ='$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)'
12498 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12499 hardcode_minus_L_GCJ=yes
12500 # see comment about different semantics on the GNU ld section
12501 ld_shlibs_GCJ=no
12502 ;;
12503
12504 bsdi4*)
12505 export_dynamic_flag_spec_GCJ=-rdynamic
12506 ;;
12507
12508 cygwin* | mingw* | pw32*)
12509 # When not using gcc, we currently assume that we are using
12510 # Microsoft Visual C++.
12511 # hardcode_libdir_flag_spec is actually meaningless, as there is
12512 # no search path for DLLs.
12513 hardcode_libdir_flag_spec_GCJ=' '
12514 allow_undefined_flag_GCJ=unsupported
12515 # Tell ltmain to make .lib files, not .a files.
12516 libext=lib
12517 # FIXME: Setting linknames here is a bad hack.
12518 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12519 # The linker will automatically build a .lib file if we build a DLL.
12520 old_archive_From_new_cmds_GCJ='true'
12521 # FIXME: Should let the user specify the lib program.
12522 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
12523 fix_srcfile_path='`cygpath -w "$srcfile"`'
12524 ;;
12525
12526 darwin* | rhapsody*)
12527 case "$host_os" in
12528 rhapsody* | darwin1.[012])
12529 allow_undefined_flag_GCJ='-undefined suppress'
12530 ;;
12531 *) # Darwin 1.3 on
12532 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
12533 ;;
12534 esac
12535
12536 # FIXME: Relying on posixy $() will cause problems for
12537 # cross-compilation, but unfortunately the echo tests do not
12538 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
12539 # `"' quotes if we put them in here... so don't!
12540 archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
12541 # We need to add '_' to the symbols in $export_symbols first
12542 #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
12543 hardcode_direct_GCJ=yes
12544 hardcode_shlibpath_var_GCJ=no
12545 whole_archive_flag_spec_GCJ='-all_load $convenience'
12546 ;;
12547
12548 dgux*)
12549 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12550 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12551 hardcode_shlibpath_var_GCJ=no
12552 ;;
12553
12554 freebsd1*)
12555 ld_shlibs_GCJ=no
12556 ;;
12557
12558 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12559 # support. Future versions do this automatically, but an explicit c++rt0.o
12560 # does not break anything, and helps significantly (at the cost of a little
12561 # extra space).
12562 freebsd2.2*)
12563 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12564 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12565 hardcode_direct_GCJ=yes
12566 hardcode_shlibpath_var_GCJ=no
12567 ;;
12568
12569 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12570 freebsd2*)
12571 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12572 hardcode_direct_GCJ=yes
12573 hardcode_minus_L_GCJ=yes
12574 hardcode_shlibpath_var_GCJ=no
12575 ;;
12576
12577 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12578 freebsd*)
12579 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12580 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12581 hardcode_direct_GCJ=yes
12582 hardcode_shlibpath_var_GCJ=no
12583 ;;
12584
12585 hpux9* | hpux10* | hpux11*)
12586 if test "$GCC" = yes; then
12587 case $host_os in
12588 hpux9*)
12589 archive_cmds_GCJ='$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'
12590 ;;
12591 *)
12592 if test "$host_cpu" = ia64; then
12593 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12594 else
12595 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12596 fi
12597 ;;
12598 esac
12599 else
12600 case $host_os in
12601 hpux9*)
12602 archive_cmds_GCJ='$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'
12603 ;;
12604 *)
12605 if test "$host_cpu" = ia64; then
12606 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12607 else
12608 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12609 fi
12610 ;;
12611 esac
12612 fi
12613 if test "$host_cpu" = ia64; then
12614 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12615 hardcode_direct_GCJ=no
12616 hardcode_shlibpath_var_GCJ=no
12617 else
12618 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
12619 hardcode_libdir_separator_GCJ=:
12620 hardcode_direct_GCJ=yes
12621 fi
12622 # hardcode_minus_L: Not really in the search PATH,
12623 # but as the default location of the library.
12624 hardcode_minus_L_GCJ=yes
12625 export_dynamic_flag_spec_GCJ='${wl}-E'
12626 ;;
12627
12628 irix5* | irix6* | nonstopux*)
12629 if test "$GCC" = yes; then
12630 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12631 else
12632 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12633 fi
12634 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12635 hardcode_libdir_separator_GCJ=:
12636 link_all_deplibs_GCJ=yes
12637 ;;
12638
12639 netbsd*)
12640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12641 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12642 else
12643 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12644 fi
12645 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12646 hardcode_direct_GCJ=yes
12647 hardcode_shlibpath_var_GCJ=no
12648 ;;
12649
12650 newsos6)
12651 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12652 hardcode_direct_GCJ=yes
12653 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12654 hardcode_libdir_separator_GCJ=:
12655 hardcode_shlibpath_var_GCJ=no
12656 ;;
12657
12658 openbsd*)
12659 hardcode_direct_GCJ=yes
12660 hardcode_shlibpath_var_GCJ=no
12661
12662 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12663 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
12664 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
12665 export_dynamic_flag_spec_GCJ='${wl}-E'
12666 else
12667 case $host_os in
12668 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12669 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12670 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12671 ;;
12672 *)
12673 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
12674 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
12675 ;;
12676 esac
12677 fi
12678 ;;
12679
12680 os2*)
12681 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12682 hardcode_minus_L_GCJ=yes
12683 allow_undefined_flag_GCJ=unsupported
12684 archive_cmds_GCJ='$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'
12685 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12686 ;;
12687
12688 osf3*)
12689 if test "$GCC" = yes; then
12690 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
12691 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12692 else
12693 allow_undefined_flag_GCJ=' -expect_unresolved \*'
12694 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12695 fi
12696 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12697 hardcode_libdir_separator_GCJ=:
12698 ;;
12699
12700 osf4* | osf5*) # as osf3* with the addition of -msym flag
12701 if test "$GCC" = yes; then
12702 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
12703 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12704 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12705 else
12706 allow_undefined_flag_GCJ=' -expect_unresolved \*'
12707 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12708 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12709 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
12710
12711 # Both c and cxx compiler support -rpath directly
12712 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
12713 fi
12714 hardcode_libdir_separator_GCJ=:
12715 ;;
12716
12717 sco3.2v5*)
12718 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12719 hardcode_shlibpath_var_GCJ=no
12720 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
12721 runpath_var=LD_RUN_PATH
12722 hardcode_runpath_var=yes
12723 ;;
12724
12725 solaris*)
12726 no_undefined_flag_GCJ=' -z text'
12727 if test "$GCC" = yes; then
12728 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12729 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12730 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12731 else
12732 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12733 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12734 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12735 fi
12736 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12737 hardcode_shlibpath_var_GCJ=no
12738 case $host_os in
12739 solaris2.[0-5] | solaris2.[0-5].*) ;;
12740 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12741 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
12742 esac
12743 link_all_deplibs_GCJ=yes
12744 ;;
12745
12746 sunos4*)
12747 if test "x$host_vendor" = xsequent; then
12748 # Use $CC to link under sequent, because it throws in some extra .o
12749 # files that make .init and .fini sections work.
12750 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12751 else
12752 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12753 fi
12754 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12755 hardcode_direct_GCJ=yes
12756 hardcode_minus_L_GCJ=yes
12757 hardcode_shlibpath_var_GCJ=no
12758 ;;
12759
12760 sysv4)
12761 if test "x$host_vendor" = xsni; then
12762 archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
12763 hardcode_direct_GCJ=yes # is this really true???
12764 else
12765 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12766 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
12767 fi
12768 runpath_var='LD_RUN_PATH'
12769 hardcode_shlibpath_var_GCJ=no
12770 ;;
12771
12772 sysv4.3*)
12773 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12774 hardcode_shlibpath_var_GCJ=no
12775 export_dynamic_flag_spec_GCJ='-Bexport'
12776 ;;
12777
12778 sysv4*MP*)
12779 if test -d /usr/nec; then
12780 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12781 hardcode_shlibpath_var_GCJ=no
12782 runpath_var=LD_RUN_PATH
12783 hardcode_runpath_var=yes
12784 ld_shlibs_GCJ=yes
12785 fi
12786 ;;
12787
12788 sysv4.2uw2*)
12789 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12790 hardcode_direct_GCJ=yes
12791 hardcode_minus_L_GCJ=no
12792 hardcode_shlibpath_var_GCJ=no
12793 hardcode_runpath_var=yes
12794 runpath_var=LD_RUN_PATH
12795 ;;
12796
12797 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12798 no_undefined_flag_GCJ='${wl}-z ${wl}text'
12799 if test "$GCC" = yes; then
12800 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12801 else
12802 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12803 fi
12804 runpath_var='LD_RUN_PATH'
12805 hardcode_shlibpath_var_GCJ=no
12806 ;;
12807
12808 sysv5*)
12809 no_undefined_flag_GCJ=' -z text'
12810 # $CC -shared without GNU ld will not create a library from C++
12811 # object files and a static libstdc++, better avoid it by now
12812 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12813 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12814 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12815 hardcode_libdir_flag_spec_GCJ=
12816 hardcode_shlibpath_var_GCJ=no
12817 runpath_var='LD_RUN_PATH'
12818 ;;
12819
12820 uts4*)
12821 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12822 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12823 hardcode_shlibpath_var_GCJ=no
12824 ;;
12825
12826 *)
12827 ld_shlibs_GCJ=no
12828 ;;
12829 esac
12830 fi
12831
12832 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
12833 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
12834 test "$ld_shlibs_GCJ" = no && can_build_shared=no
12835
12836 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12837 if test "$GCC" = yes; then
12838 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12839 fi
12840
12841 #
12842 # Do we need to explicitly link libc?
12843 #
12844 archive_cmds_need_lc_GCJ=yes
12845 if test "$enable_shared" = yes && test "$GCC" = yes; then
12846 case $archive_cmds_GCJ in
12847 *'~'*)
12848 # FIXME: we may have to deal with multi-command sequences.
12849 ;;
12850 '$CC '*)
12851 # Test whether the compiler implicitly links with -lc since on some
12852 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12853 # to ld, don't add -lc before -lgcc.
12854 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12855 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12856 $rm conftest*
12857 echo 'static int dummy;' > conftest.$ac_ext
12858
12859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12860 (eval $ac_compile) 2>&5
12861 ac_status=$?
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); } 2>conftest.err; then
12864 soname=conftest
12865 lib=conftest
12866 libobjs=conftest.$ac_objext
12867 deplibs=
12868 wl=$lt_prog_compiler_wl_GCJ
12869 compiler_flags=-v
12870 linker_flags=-v
12871 verstring=
12872 output_objdir=.
12873 libname=conftest
12874 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
12875 allow_undefined_flag_GCJ=
12876 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12877 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12878 ac_status=$?
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }
12881 then
12882 archive_cmds_need_lc_GCJ=no
12883 else
12884 archive_cmds_need_lc_GCJ=yes
12885 fi
12886 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
12887 else
12888 cat conftest.err 1>&5
12889 fi
12890 $rm conftest*
12891 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
12892 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
12893 ;;
12894 esac
12895 fi
12896
12897 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12898 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12899 hardcode_action_GCJ=
12900 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
12901 test -n "$runpath_var GCJ"; then
12902
12903 # We can hardcode non-existant directories.
12904 if test "$hardcode_direct_GCJ" != no &&
12905 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12906 # have to relink, otherwise we might link with an installed library
12907 # when we should be linking with a yet-to-be-installed one
12908 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
12909 test "$hardcode_minus_L_GCJ" != no; then
12910 # Linking always hardcodes the temporary library directory.
12911 hardcode_action_GCJ=relink
12912 else
12913 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12914 hardcode_action_GCJ=immediate
12915 fi
12916 else
12917 # We cannot hardcode anything, or else we can only hardcode existing
12918 # directories.
12919 hardcode_action_GCJ=unsupported
12920 fi
12921 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
12922 echo "${ECHO_T}$hardcode_action_GCJ" >&6
12923
12924 if test "$hardcode_action_GCJ" = relink; then
12925 # Fast installation is not supported
12926 enable_fast_install=no
12927 elif test "$shlibpath_overrides_runpath" = yes ||
12928 test "$enable_shared" = no; then
12929 # Fast installation is not necessary
12930 enable_fast_install=needless
12931 fi
12932
12933 striplib=
12934 old_striplib=
12935 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12936 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12937 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12938 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12939 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12940 echo "$as_me:$LINENO: result: yes" >&5
12941 echo "${ECHO_T}yes" >&6
12942 else
12943 echo "$as_me:$LINENO: result: no" >&5
12944 echo "${ECHO_T}no" >&6
12945 fi
12946
12947 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12948 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12949 library_names_spec=
12950 libname_spec='lib$name'
12951 soname_spec=
12952 postinstall_cmds=
12953 postuninstall_cmds=
12954 finish_cmds=
12955 finish_eval=
12956 shlibpath_var=
12957 shlibpath_overrides_runpath=unknown
12958 version_type=none
12959 dynamic_linker="$host_os ld.so"
12960 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12961 if test "$GCC" = yes; then
12962 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
12963 if echo "$sys_lib_search_path_spec" | egrep ';' >/dev/null ; then
12964 # if the path contains ";" then we assume it to be the separator
12965 # otherwise default to the standard path separator (i.e. ":") - it is
12966 # assumed that no part of a normal pathname contains ";" but that should
12967 # okay in the real world where ";" in dirpaths is itself problematic.
12968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
12969 else
12970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
12971 fi
12972 else
12973 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12974 fi
12975 need_lib_prefix=unknown
12976 hardcode_into_libs=no
12977
12978 # when you set need_version to no, make sure it does not cause -set_version
12979 # flags to be left without arguments
12980 need_version=unknown
12981
12982 case $host_os in
12983 aix3*)
12984 version_type=linux
12985 library_names_spec='${libname}${release}.so$versuffix $libname.a'
12986 shlibpath_var=LIBPATH
12987
12988 # AIX 3 has no versioning support, so we append a major version to the name.
12989 soname_spec='${libname}${release}.so$major'
12990 ;;
12991
12992 aix4* | aix5*)
12993 version_type=linux
12994 if test "$host_cpu" = ia64; then
12995 # AIX 5 supports IA64
12996 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
12997 shlibpath_var=LD_LIBRARY_PATH
12998 else
12999 # With GCC up to 2.95.x, collect2 would create an import file
13000 # for dependence libraries. The import file would start with
13001 # the line `#! .'. This would cause the generated library to
13002 # depend on `.', always an invalid library. This was fixed in
13003 # development snapshots of GCC prior to 3.0.
13004 case $host_os in
13005 aix4 | aix4.[01] | aix4.[01].*)
13006 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13007 echo ' yes '
13008 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13009 :
13010 else
13011 can_build_shared=no
13012 fi
13013 ;;
13014 esac
13015 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13016 # soname into executable. Probably we can add versioning support to
13017 # collect2, so additional links can be useful in future.
13018 if test "$aix_use_runtimelinking" = yes; then
13019 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13020 # instead of lib<name>.a to let people know that these are not
13021 # typical AIX shared libraries.
13022 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13023 else
13024 # We preserve .a as extension for shared libraries through AIX4.2
13025 # and later when we are not doing run time linking.
13026 library_names_spec='${libname}${release}.a $libname.a'
13027 soname_spec='${libname}${release}.so$major'
13028 fi
13029 shlibpath_var=LIBPATH
13030 fi
13031 ;;
13032
13033 amigaos*)
13034 library_names_spec='$libname.ixlibrary $libname.a'
13035 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13036 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'
13037 ;;
13038
13039 beos*)
13040 library_names_spec='${libname}.so'
13041 dynamic_linker="$host_os ld.so"
13042 shlibpath_var=LIBRARY_PATH
13043 ;;
13044
13045 bsdi4*)
13046 version_type=linux
13047 need_version=no
13048 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13049 soname_spec='${libname}${release}.so$major'
13050 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13051 shlibpath_var=LD_LIBRARY_PATH
13052 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13053 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13054 # the default ld.so.conf also contains /usr/contrib/lib and
13055 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13056 # libtool to hard-code these into programs
13057 ;;
13058
13059 cygwin* | mingw* | pw32*)
13060 version_type=windows
13061 need_version=no
13062 need_lib_prefix=no
13063 case $GCC,$host_os in
13064 yes,cygwin*)
13065 library_names_spec='$libname.dll.a'
13066 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13067 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
13068 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
13069 dldir=$destdir/`dirname \$dlpath`~
13070 test -d \$dldir || mkdir -p \$dldir~
13071 $install_prog .libs/$dlname \$dldir/$dlname'
13072 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
13073 dlpath=$dir/\$dldll~
13074 $rm \$dlpath'
13075 shlibpath_overrides_runpath=yes
13076 ;;
13077 yes,mingw*)
13078 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
13079 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
13080 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
13081 # It is most probably a Windows format PATH printed by
13082 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13083 # path with ; separators, and with drive letters. We can handle the
13084 # drive letters (cygwin fileutils understands them), so leave them,
13085 # especially as we might pass files found there to a mingw objdump,
13086 # which wouldn't understand a cygwinified path. Ahh.
13087 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
13088 else
13089 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
13090 fi
13091 ;;
13092 yes,pw32*)
13093 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
13094 ;;
13095 *)
13096 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
13097 ;;
13098 esac
13099 dynamic_linker='Win32 ld.exe'
13100 # FIXME: first we should search . and the directory the executable is in
13101 shlibpath_var=PATH
13102 ;;
13103
13104 darwin* | rhapsody*)
13105 dynamic_linker="$host_os dyld"
13106 version_type=darwin
13107 need_lib_prefix=no
13108 need_version=no
13109 # FIXME: Relying on posixy $() will cause problems for
13110 # cross-compilation, but unfortunately the echo tests do not
13111 # yet detect zsh echo's removal of \ escapes.
13112 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
13113 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
13114 shlibpath_overrides_runpath=yes
13115 shlibpath_var=DYLD_LIBRARY_PATH
13116 ;;
13117
13118 dgux*)
13119 version_type=linux
13120 need_lib_prefix=no
13121 need_version=no
13122 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13123 soname_spec='${libname}${release}.so$major'
13124 shlibpath_var=LD_LIBRARY_PATH
13125 ;;
13126
13127 freebsd1*)
13128 dynamic_linker=no
13129 ;;
13130
13131 freebsd*)
13132 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13133 version_type=freebsd-$objformat
13134 case $version_type in
13135 freebsd-elf*)
13136 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
13137 need_version=no
13138 need_lib_prefix=no
13139 ;;
13140 freebsd-*)
13141 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
13142 need_version=yes
13143 ;;
13144 esac
13145 shlibpath_var=LD_LIBRARY_PATH
13146 case $host_os in
13147 freebsd2*)
13148 shlibpath_overrides_runpath=yes
13149 ;;
13150 freebsd3.01* | freebsdelf3.01*)
13151 shlibpath_overrides_runpath=yes
13152 hardcode_into_libs=yes
13153 ;;
13154 *) # from 3.2 on
13155 shlibpath_overrides_runpath=no
13156 hardcode_into_libs=yes
13157 ;;
13158 esac
13159 ;;
13160
13161 gnu*)
13162 version_type=linux
13163 need_lib_prefix=no
13164 need_version=no
13165 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
13166 soname_spec='${libname}${release}.so$major'
13167 shlibpath_var=LD_LIBRARY_PATH
13168 hardcode_into_libs=yes
13169 ;;
13170
13171 hpux9* | hpux10* | hpux11*)
13172 # Give a soname corresponding to the major version so that dld.sl refuses to
13173 # link against other versions.
13174 version_type=sunos
13175 need_lib_prefix=no
13176 need_version=no
13177 if test "$host_cpu" = ia64; then
13178 hardcode_into_libs=yes
13179 dynamic_linker="$host_os dld.so"
13180 shlibpath_var=LD_LIBRARY_PATH
13181 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13182 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13183 soname_spec='${libname}${release}.so$major'
13184 if test "X$HPUX_IA64_MODE" = X32; then
13185 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13186 else
13187 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13188 fi
13189 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13190 else
13191 dynamic_linker="$host_os dld.sl"
13192 shlibpath_var=SHLIB_PATH
13193 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13194 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
13195 soname_spec='${libname}${release}.sl$major'
13196 fi
13197 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13198 postinstall_cmds='chmod 555 $lib'
13199 ;;
13200
13201 irix5* | irix6* | nonstopux*)
13202 case $host_os in
13203 nonstopux*) version_type=nonstopux ;;
13204 *) version_type=irix ;;
13205 esac
13206 need_lib_prefix=no
13207 need_version=no
13208 soname_spec='${libname}${release}.so$major'
13209 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
13210 case $host_os in
13211 irix5* | nonstopux*)
13212 libsuff= shlibsuff=
13213 ;;
13214 *)
13215 case $LD in # libtool.m4 will add one of these switches to LD
13216 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
13217 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
13218 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
13219 *) libsuff= shlibsuff= libmagic=never-match;;
13220 esac
13221 ;;
13222 esac
13223 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13224 shlibpath_overrides_runpath=no
13225 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13226 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13227 ;;
13228
13229 # No shared lib support for Linux oldld, aout, or coff.
13230 linux*oldld* | linux*aout* | linux*coff*)
13231 dynamic_linker=no
13232 ;;
13233
13234 # This must be Linux ELF.
13235 linux*)
13236 version_type=linux
13237 need_lib_prefix=no
13238 need_version=no
13239 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13240 soname_spec='${libname}${release}.so$major'
13241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13242 shlibpath_var=LD_LIBRARY_PATH
13243 shlibpath_overrides_runpath=no
13244 # This implies no fast_install, which is unacceptable.
13245 # Some rework will be needed to allow for fast_install
13246 # before this can be enabled.
13247 hardcode_into_libs=yes
13248
13249 # We used to test for /lib/ld.so.1 and disable shared libraries on
13250 # powerpc, because MkLinux only supported shared libraries with the
13251 # GNU dynamic linker. Since this was broken with cross compilers,
13252 # most powerpc-linux boxes support dynamic linking these days and
13253 # people can always --disable-shared, the test was removed, and we
13254 # assume the GNU/Linux dynamic linker is in use.
13255 dynamic_linker='GNU/Linux ld.so'
13256 ;;
13257
13258 netbsd*)
13259 version_type=sunos
13260 need_lib_prefix=no
13261 need_version=no
13262 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13263 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13265 dynamic_linker='NetBSD (a.out) ld.so'
13266 else
13267 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
13268 soname_spec='${libname}${release}.so$major'
13269 dynamic_linker='NetBSD ld.elf_so'
13270 fi
13271 shlibpath_var=LD_LIBRARY_PATH
13272 shlibpath_overrides_runpath=yes
13273 hardcode_into_libs=yes
13274 ;;
13275
13276 newsos6)
13277 version_type=linux
13278 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13279 shlibpath_var=LD_LIBRARY_PATH
13280 shlibpath_overrides_runpath=yes
13281 ;;
13282
13283 nto-qnx)
13284 version_type=linux
13285 need_lib_prefix=no
13286 need_version=no
13287 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13288 soname_spec='${libname}${release}.so$major'
13289 shlibpath_var=LD_LIBRARY_PATH
13290 shlibpath_overrides_runpath=yes
13291 ;;
13292
13293 openbsd*)
13294 version_type=sunos
13295 need_lib_prefix=no
13296 need_version=no
13297 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13299 shlibpath_var=LD_LIBRARY_PATH
13300 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13301 case $host_os in
13302 openbsd2.[89] | openbsd2.[89].*)
13303 shlibpath_overrides_runpath=no
13304 ;;
13305 *)
13306 shlibpath_overrides_runpath=yes
13307 ;;
13308 esac
13309 else
13310 shlibpath_overrides_runpath=yes
13311 fi
13312 ;;
13313
13314 os2*)
13315 libname_spec='$name'
13316 need_lib_prefix=no
13317 library_names_spec='$libname.dll $libname.a'
13318 dynamic_linker='OS/2 ld.exe'
13319 shlibpath_var=LIBPATH
13320 ;;
13321
13322 osf3* | osf4* | osf5*)
13323 version_type=osf
13324 need_lib_prefix=no
13325 need_version=no
13326 soname_spec='${libname}${release}.so'
13327 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
13328 shlibpath_var=LD_LIBRARY_PATH
13329 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13330 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13331 ;;
13332
13333 sco3.2v5*)
13334 version_type=osf
13335 soname_spec='${libname}${release}.so$major'
13336 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13337 shlibpath_var=LD_LIBRARY_PATH
13338 ;;
13339
13340 solaris*)
13341 version_type=linux
13342 need_lib_prefix=no
13343 need_version=no
13344 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13345 soname_spec='${libname}${release}.so$major'
13346 shlibpath_var=LD_LIBRARY_PATH
13347 shlibpath_overrides_runpath=yes
13348 hardcode_into_libs=yes
13349 # ldd complains unless libraries are executable
13350 postinstall_cmds='chmod +x $lib'
13351 ;;
13352
13353 sunos4*)
13354 version_type=sunos
13355 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13356 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13357 shlibpath_var=LD_LIBRARY_PATH
13358 shlibpath_overrides_runpath=yes
13359 if test "$with_gnu_ld" = yes; then
13360 need_lib_prefix=no
13361 fi
13362 need_version=yes
13363 ;;
13364
13365 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13366 version_type=linux
13367 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13368 soname_spec='${libname}${release}.so$major'
13369 shlibpath_var=LD_LIBRARY_PATH
13370 case $host_vendor in
13371 sni)
13372 shlibpath_overrides_runpath=no
13373 ;;
13374 motorola)
13375 need_lib_prefix=no
13376 need_version=no
13377 shlibpath_overrides_runpath=no
13378 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13379 ;;
13380 esac
13381 ;;
13382
13383 sysv4*MP*)
13384 if test -d /usr/nec ;then
13385 version_type=linux
13386 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
13387 soname_spec='$libname.so.$major'
13388 shlibpath_var=LD_LIBRARY_PATH
13389 fi
13390 ;;
13391
13392 uts4*)
13393 version_type=linux
13394 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13395 soname_spec='${libname}${release}.so$major'
13396 shlibpath_var=LD_LIBRARY_PATH
13397 ;;
13398
13399 *)
13400 dynamic_linker=no
13401 ;;
13402 esac
13403 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13404 echo "${ECHO_T}$dynamic_linker" >&6
13405 test "$dynamic_linker" = no && can_build_shared=no
13406
13407 if test "x$enable_dlopen" != xyes; then
13408 enable_dlopen=unknown
13409 enable_dlopen_self=unknown
13410 enable_dlopen_self_static=unknown
13411 else
13412 lt_cv_dlopen=no
13413 lt_cv_dlopen_libs=
13414
13415 case $host_os in
13416 beos*)
13417 lt_cv_dlopen="load_add_on"
13418 lt_cv_dlopen_libs=
13419 lt_cv_dlopen_self=yes
13420 ;;
13421
13422 cygwin* | mingw* | pw32*)
13423 lt_cv_dlopen="LoadLibrary"
13424 lt_cv_dlopen_libs=
13425 ;;
13426
13427 *)
13428 echo "$as_me:$LINENO: checking for shl_load" >&5
13429 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13430 if test "${ac_cv_func_shl_load+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13432 else
13433 cat >conftest.$ac_ext <<_ACEOF
13434 #line $LINENO "configure"
13435 #include "confdefs.h"
13436 /* System header to define __stub macros and hopefully few prototypes,
13437 which can conflict with char shl_load (); below. */
13438 #include <assert.h>
13439 /* Override any gcc2 internal prototype to avoid an error. */
13440 #ifdef __cplusplus
13441 extern "C"
13442 #endif
13443 /* We use char because int might match the return type of a gcc2
13444 builtin and then its argument prototype would still apply. */
13445 char shl_load ();
13446 char (*f) ();
13447
13448 #ifdef F77_DUMMY_MAIN
13449 # ifdef __cplusplus
13450 extern "C"
13451 # endif
13452 int F77_DUMMY_MAIN() { return 1; }
13453 #endif
13454 int
13455 main ()
13456 {
13457 /* The GNU C library defines this for functions which it implements
13458 to always fail with ENOSYS. Some functions are actually named
13459 something starting with __ and the normal name is an alias. */
13460 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13461 choke me
13462 #else
13463 f = shl_load;
13464 #endif
13465
13466 ;
13467 return 0;
13468 }
13469 _ACEOF
13470 rm -f conftest.$ac_objext conftest$ac_exeext
13471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13472 (eval $ac_link) 2>&5
13473 ac_status=$?
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); } &&
13476 { ac_try='test -s conftest$ac_exeext'
13477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478 (eval $ac_try) 2>&5
13479 ac_status=$?
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; }; then
13482 ac_cv_func_shl_load=yes
13483 else
13484 echo "$as_me: failed program was:" >&5
13485 cat conftest.$ac_ext >&5
13486 ac_cv_func_shl_load=no
13487 fi
13488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13489 fi
13490 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13491 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13492 if test $ac_cv_func_shl_load = yes; then
13493 lt_cv_dlopen="shl_load"
13494 else
13495 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13496 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13497 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13499 else
13500 ac_check_lib_save_LIBS=$LIBS
13501 LIBS="-ldld $LIBS"
13502 cat >conftest.$ac_ext <<_ACEOF
13503 #line $LINENO "configure"
13504 #include "confdefs.h"
13505
13506 /* Override any gcc2 internal prototype to avoid an error. */
13507 #ifdef __cplusplus
13508 extern "C"
13509 #endif
13510 /* We use char because int might match the return type of a gcc2
13511 builtin and then its argument prototype would still apply. */
13512 char shl_load ();
13513 #ifdef F77_DUMMY_MAIN
13514 # ifdef __cplusplus
13515 extern "C"
13516 # endif
13517 int F77_DUMMY_MAIN() { return 1; }
13518 #endif
13519 int
13520 main ()
13521 {
13522 shl_load ();
13523 ;
13524 return 0;
13525 }
13526 _ACEOF
13527 rm -f conftest.$ac_objext conftest$ac_exeext
13528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13529 (eval $ac_link) 2>&5
13530 ac_status=$?
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } &&
13533 { ac_try='test -s conftest$ac_exeext'
13534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535 (eval $ac_try) 2>&5
13536 ac_status=$?
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; }; then
13539 ac_cv_lib_dld_shl_load=yes
13540 else
13541 echo "$as_me: failed program was:" >&5
13542 cat conftest.$ac_ext >&5
13543 ac_cv_lib_dld_shl_load=no
13544 fi
13545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13546 LIBS=$ac_check_lib_save_LIBS
13547 fi
13548 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13549 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13550 if test $ac_cv_lib_dld_shl_load = yes; then
13551 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13552 else
13553 echo "$as_me:$LINENO: checking for dlopen" >&5
13554 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13555 if test "${ac_cv_func_dlopen+set}" = set; then
13556 echo $ECHO_N "(cached) $ECHO_C" >&6
13557 else
13558 cat >conftest.$ac_ext <<_ACEOF
13559 #line $LINENO "configure"
13560 #include "confdefs.h"
13561 /* System header to define __stub macros and hopefully few prototypes,
13562 which can conflict with char dlopen (); below. */
13563 #include <assert.h>
13564 /* Override any gcc2 internal prototype to avoid an error. */
13565 #ifdef __cplusplus
13566 extern "C"
13567 #endif
13568 /* We use char because int might match the return type of a gcc2
13569 builtin and then its argument prototype would still apply. */
13570 char dlopen ();
13571 char (*f) ();
13572
13573 #ifdef F77_DUMMY_MAIN
13574 # ifdef __cplusplus
13575 extern "C"
13576 # endif
13577 int F77_DUMMY_MAIN() { return 1; }
13578 #endif
13579 int
13580 main ()
13581 {
13582 /* The GNU C library defines this for functions which it implements
13583 to always fail with ENOSYS. Some functions are actually named
13584 something starting with __ and the normal name is an alias. */
13585 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13586 choke me
13587 #else
13588 f = dlopen;
13589 #endif
13590
13591 ;
13592 return 0;
13593 }
13594 _ACEOF
13595 rm -f conftest.$ac_objext conftest$ac_exeext
13596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13597 (eval $ac_link) 2>&5
13598 ac_status=$?
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } &&
13601 { ac_try='test -s conftest$ac_exeext'
13602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603 (eval $ac_try) 2>&5
13604 ac_status=$?
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; }; then
13607 ac_cv_func_dlopen=yes
13608 else
13609 echo "$as_me: failed program was:" >&5
13610 cat conftest.$ac_ext >&5
13611 ac_cv_func_dlopen=no
13612 fi
13613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13614 fi
13615 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13616 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13617 if test $ac_cv_func_dlopen = yes; then
13618 lt_cv_dlopen="dlopen"
13619 else
13620 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13621 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13622 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13623 echo $ECHO_N "(cached) $ECHO_C" >&6
13624 else
13625 ac_check_lib_save_LIBS=$LIBS
13626 LIBS="-ldl $LIBS"
13627 cat >conftest.$ac_ext <<_ACEOF
13628 #line $LINENO "configure"
13629 #include "confdefs.h"
13630
13631 /* Override any gcc2 internal prototype to avoid an error. */
13632 #ifdef __cplusplus
13633 extern "C"
13634 #endif
13635 /* We use char because int might match the return type of a gcc2
13636 builtin and then its argument prototype would still apply. */
13637 char dlopen ();
13638 #ifdef F77_DUMMY_MAIN
13639 # ifdef __cplusplus
13640 extern "C"
13641 # endif
13642 int F77_DUMMY_MAIN() { return 1; }
13643 #endif
13644 int
13645 main ()
13646 {
13647 dlopen ();
13648 ;
13649 return 0;
13650 }
13651 _ACEOF
13652 rm -f conftest.$ac_objext conftest$ac_exeext
13653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13654 (eval $ac_link) 2>&5
13655 ac_status=$?
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); } &&
13658 { ac_try='test -s conftest$ac_exeext'
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13661 ac_status=$?
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13664 ac_cv_lib_dl_dlopen=yes
13665 else
13666 echo "$as_me: failed program was:" >&5
13667 cat conftest.$ac_ext >&5
13668 ac_cv_lib_dl_dlopen=no
13669 fi
13670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13671 LIBS=$ac_check_lib_save_LIBS
13672 fi
13673 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13674 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13675 if test $ac_cv_lib_dl_dlopen = yes; then
13676 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13677 else
13678 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13679 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13680 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
13682 else
13683 ac_check_lib_save_LIBS=$LIBS
13684 LIBS="-lsvld $LIBS"
13685 cat >conftest.$ac_ext <<_ACEOF
13686 #line $LINENO "configure"
13687 #include "confdefs.h"
13688
13689 /* Override any gcc2 internal prototype to avoid an error. */
13690 #ifdef __cplusplus
13691 extern "C"
13692 #endif
13693 /* We use char because int might match the return type of a gcc2
13694 builtin and then its argument prototype would still apply. */
13695 char dlopen ();
13696 #ifdef F77_DUMMY_MAIN
13697 # ifdef __cplusplus
13698 extern "C"
13699 # endif
13700 int F77_DUMMY_MAIN() { return 1; }
13701 #endif
13702 int
13703 main ()
13704 {
13705 dlopen ();
13706 ;
13707 return 0;
13708 }
13709 _ACEOF
13710 rm -f conftest.$ac_objext conftest$ac_exeext
13711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13712 (eval $ac_link) 2>&5
13713 ac_status=$?
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } &&
13716 { ac_try='test -s conftest$ac_exeext'
13717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718 (eval $ac_try) 2>&5
13719 ac_status=$?
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }; }; then
13722 ac_cv_lib_svld_dlopen=yes
13723 else
13724 echo "$as_me: failed program was:" >&5
13725 cat conftest.$ac_ext >&5
13726 ac_cv_lib_svld_dlopen=no
13727 fi
13728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13729 LIBS=$ac_check_lib_save_LIBS
13730 fi
13731 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13732 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13733 if test $ac_cv_lib_svld_dlopen = yes; then
13734 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13735 else
13736 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13737 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13738 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 else
13741 ac_check_lib_save_LIBS=$LIBS
13742 LIBS="-ldld $LIBS"
13743 cat >conftest.$ac_ext <<_ACEOF
13744 #line $LINENO "configure"
13745 #include "confdefs.h"
13746
13747 /* Override any gcc2 internal prototype to avoid an error. */
13748 #ifdef __cplusplus
13749 extern "C"
13750 #endif
13751 /* We use char because int might match the return type of a gcc2
13752 builtin and then its argument prototype would still apply. */
13753 char dld_link ();
13754 #ifdef F77_DUMMY_MAIN
13755 # ifdef __cplusplus
13756 extern "C"
13757 # endif
13758 int F77_DUMMY_MAIN() { return 1; }
13759 #endif
13760 int
13761 main ()
13762 {
13763 dld_link ();
13764 ;
13765 return 0;
13766 }
13767 _ACEOF
13768 rm -f conftest.$ac_objext conftest$ac_exeext
13769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13770 (eval $ac_link) 2>&5
13771 ac_status=$?
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); } &&
13774 { ac_try='test -s conftest$ac_exeext'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13777 ac_status=$?
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13780 ac_cv_lib_dld_dld_link=yes
13781 else
13782 echo "$as_me: failed program was:" >&5
13783 cat conftest.$ac_ext >&5
13784 ac_cv_lib_dld_dld_link=no
13785 fi
13786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13787 LIBS=$ac_check_lib_save_LIBS
13788 fi
13789 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13790 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13791 if test $ac_cv_lib_dld_dld_link = yes; then
13792 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13793 fi
13794
13795
13796 fi
13797
13798
13799 fi
13800
13801
13802 fi
13803
13804
13805 fi
13806
13807
13808 fi
13809
13810 ;;
13811 esac
13812
13813 if test "x$lt_cv_dlopen" != xno; then
13814 enable_dlopen=yes
13815 else
13816 enable_dlopen=no
13817 fi
13818
13819 case $lt_cv_dlopen in
13820 dlopen)
13821 save_CPPFLAGS="$CPPFLAGS"
13822 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13823
13824 save_LDFLAGS="$LDFLAGS"
13825 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13826
13827 save_LIBS="$LIBS"
13828 LIBS="$lt_cv_dlopen_libs $LIBS"
13829
13830 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13831 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13832 if test "${lt_cv_dlopen_self+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13834 else
13835 if test "$cross_compiling" = yes; then :
13836 lt_cv_dlopen_self=cross
13837 else
13838 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13839 lt_status=$lt_dlunknown
13840 cat > conftest.$ac_ext <<EOF
13841 #line 13841 "configure"
13842 #include "confdefs.h"
13843
13844 #if HAVE_DLFCN_H
13845 #include <dlfcn.h>
13846 #endif
13847
13848 #include <stdio.h>
13849
13850 #ifdef RTLD_GLOBAL
13851 # define LT_DLGLOBAL RTLD_GLOBAL
13852 #else
13853 # ifdef DL_GLOBAL
13854 # define LT_DLGLOBAL DL_GLOBAL
13855 # else
13856 # define LT_DLGLOBAL 0
13857 # endif
13858 #endif
13859
13860 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13861 find out it does not work in some platform. */
13862 #ifndef LT_DLLAZY_OR_NOW
13863 # ifdef RTLD_LAZY
13864 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13865 # else
13866 # ifdef DL_LAZY
13867 # define LT_DLLAZY_OR_NOW DL_LAZY
13868 # else
13869 # ifdef RTLD_NOW
13870 # define LT_DLLAZY_OR_NOW RTLD_NOW
13871 # else
13872 # ifdef DL_NOW
13873 # define LT_DLLAZY_OR_NOW DL_NOW
13874 # else
13875 # define LT_DLLAZY_OR_NOW 0
13876 # endif
13877 # endif
13878 # endif
13879 # endif
13880 #endif
13881
13882 #ifdef __cplusplus
13883 extern "C" void exit (int);
13884 #endif
13885
13886 void fnord() { int i=42;}
13887 int main ()
13888 {
13889 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13890 int status = $lt_dlunknown;
13891
13892 if (self)
13893 {
13894 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13895 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13896 /* dlclose (self); */
13897 }
13898
13899 exit (status);
13900 }
13901 EOF
13902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13903 (eval $ac_link) 2>&5
13904 ac_status=$?
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13907 (./conftest; exit; ) 2>/dev/null
13908 lt_status=$?
13909 case x$lt_status in
13910 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13911 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13912 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13913 esac
13914 else :
13915 # compilation failed
13916 lt_cv_dlopen_self=no
13917 fi
13918 fi
13919 rm -fr conftest*
13920
13921
13922 fi
13923 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13924 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13925
13926 if test "x$lt_cv_dlopen_self" = xyes; then
13927 LDFLAGS="$LDFLAGS $link_static_flag"
13928 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13929 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13930 if test "${lt_cv_dlopen_self_static+set}" = set; then
13931 echo $ECHO_N "(cached) $ECHO_C" >&6
13932 else
13933 if test "$cross_compiling" = yes; then :
13934 lt_cv_dlopen_self_static=cross
13935 else
13936 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13937 lt_status=$lt_dlunknown
13938 cat > conftest.$ac_ext <<EOF
13939 #line 13939 "configure"
13940 #include "confdefs.h"
13941
13942 #if HAVE_DLFCN_H
13943 #include <dlfcn.h>
13944 #endif
13945
13946 #include <stdio.h>
13947
13948 #ifdef RTLD_GLOBAL
13949 # define LT_DLGLOBAL RTLD_GLOBAL
13950 #else
13951 # ifdef DL_GLOBAL
13952 # define LT_DLGLOBAL DL_GLOBAL
13953 # else
13954 # define LT_DLGLOBAL 0
13955 # endif
13956 #endif
13957
13958 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13959 find out it does not work in some platform. */
13960 #ifndef LT_DLLAZY_OR_NOW
13961 # ifdef RTLD_LAZY
13962 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13963 # else
13964 # ifdef DL_LAZY
13965 # define LT_DLLAZY_OR_NOW DL_LAZY
13966 # else
13967 # ifdef RTLD_NOW
13968 # define LT_DLLAZY_OR_NOW RTLD_NOW
13969 # else
13970 # ifdef DL_NOW
13971 # define LT_DLLAZY_OR_NOW DL_NOW
13972 # else
13973 # define LT_DLLAZY_OR_NOW 0
13974 # endif
13975 # endif
13976 # endif
13977 # endif
13978 #endif
13979
13980 #ifdef __cplusplus
13981 extern "C" void exit (int);
13982 #endif
13983
13984 void fnord() { int i=42;}
13985 int main ()
13986 {
13987 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13988 int status = $lt_dlunknown;
13989
13990 if (self)
13991 {
13992 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13993 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13994 /* dlclose (self); */
13995 }
13996
13997 exit (status);
13998 }
13999 EOF
14000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14001 (eval $ac_link) 2>&5
14002 ac_status=$?
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14005 (./conftest; exit; ) 2>/dev/null
14006 lt_status=$?
14007 case x$lt_status in
14008 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14009 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14010 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14011 esac
14012 else :
14013 # compilation failed
14014 lt_cv_dlopen_self_static=no
14015 fi
14016 fi
14017 rm -fr conftest*
14018
14019
14020 fi
14021 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14022 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14023 fi
14024
14025 CPPFLAGS="$save_CPPFLAGS"
14026 LDFLAGS="$save_LDFLAGS"
14027 LIBS="$save_LIBS"
14028 ;;
14029 esac
14030
14031 case $lt_cv_dlopen_self in
14032 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14033 *) enable_dlopen_self=unknown ;;
14034 esac
14035
14036 case $lt_cv_dlopen_self_static in
14037 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14038 *) enable_dlopen_self_static=unknown ;;
14039 esac
14040 fi
14041
14042
14043 # The else clause should only fire when bootstrapping the
14044 # libtool distribution, otherwise you forgot to ship ltmain.sh
14045 # with your package, and you will get complaints that there are
14046 # no rules to generate ltmain.sh.
14047 if test -f "$ltmain"; then
14048 # Now quote all the things that may contain metacharacters while being
14049 # careful not to overquote the AC_SUBSTed values. We take copies of the
14050 # variables and quote the copies for generation of the libtool script.
14051 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
14052 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14053 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14054 deplibs_check_method reload_flag reload_cmds need_locks \
14055 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14056 lt_cv_sys_global_symbol_to_c_name_address \
14057 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14058 old_postinstall_cmds old_postuninstall_cmds \
14059 compiler_GCJ \
14060 CC_GCJ \
14061 LD_GCJ \
14062 lt_prog_compiler_wl_GCJ \
14063 lt_prog_compiler_pic_GCJ \
14064 lt_prog_compiler_static_GCJ \
14065 lt_prog_compiler_no_builtin_flag_GCJ \
14066 export_dynamic_flag_spec_GCJ \
14067 thread_safe_flag_spec_GCJ \
14068 whole_archive_flag_spec_GCJ \
14069 old_archive_cmds_GCJ \
14070 old_archive_from_new_cmds_GCJ \
14071 predep_objects_GCJ \
14072 postdep_objects_GCJ \
14073 predeps_GCJ \
14074 postdeps_GCJ \
14075 compiler_lib_search_path_GCJ \
14076 archive_cmds_GCJ \
14077 archive_expsym_cmds_GCJ \
14078 postinstall_cmds_GCJ \
14079 postuninstall_cmds_GCJ \
14080 old_archive_from_expsyms_cmds_GCJ \
14081 allow_undefined_flag_GCJ \
14082 no_undefined_flag_GCJ \
14083 export_symbols_cmds_GCJ \
14084 hardcode_libdir_flag_spec_GCJ \
14085 hardcode_libdir_separator_GCJ \
14086 lt_cv_prog_compiler_c_o_GCJ \
14087 exclude_expsyms_GCJ \
14088 include_expsyms_GCJ; do
14089
14090 case $var in
14091 old_archive_cmds_GCJ | \
14092 old_archive_from_new_cmds_GCJ | \
14093 archive_cmds_GCJ | \
14094 archive_expsym_cmds_GCJ | \
14095 old_archive_from_expsyms_cmds_GCJ | \
14096 export_symbols_cmds_GCJ | \
14097 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14098 postinstall_cmds | postuninstall_cmds | \
14099 old_postinstall_cmds | old_postuninstall_cmds | \
14100 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14101 # Double-quote double-evaled strings.
14102 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14103 ;;
14104 *)
14105 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14106 ;;
14107 esac
14108 done
14109
14110 case $lt_echo in
14111 *'\$0 --fallback-echo"')
14112 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14113 ;;
14114 esac
14115
14116 cfgfile="$ofile"
14117
14118 cat <<__EOF__ >> "$cfgfile"
14119 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14120
14121 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14122
14123 # Shell to use when invoking shell scripts.
14124 SHELL=$lt_SHELL
14125
14126 # Whether or not to build shared libraries.
14127 build_libtool_libs=$enable_shared
14128
14129 # Whether or not to build static libraries.
14130 build_old_libs=$enable_static
14131
14132 # Whether or not to add -lc for building shared libraries.
14133 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
14134
14135 # Whether or not to optimize for fast installation.
14136 fast_install=$enable_fast_install
14137
14138 # The host system.
14139 host_alias=$host_alias
14140 host=$host
14141
14142 # An echo program that does not interpret backslashes.
14143 echo=$lt_echo
14144
14145 # The archiver.
14146 AR=$lt_AR
14147 AR_FLAGS=$lt_AR_FLAGS
14148
14149 # A C compiler.
14150 LTCC=$lt_LTCC
14151
14152 # A language-specific compiler.
14153 CC=$lt_compiler_GCJ
14154
14155 # Is the compiler the GNU C compiler?
14156 with_gcc=$GCC_GCJ
14157
14158 # The linker used to build libraries.
14159 LD=$lt_LD_GCJ
14160
14161 # Whether we need hard or soft links.
14162 LN_S=$lt_LN_S
14163
14164 # A BSD-compatible nm program.
14165 NM=$lt_NM
14166
14167 # A sed program that does not truncate output.
14168 SED=$lt_SED
14169
14170 # A symbol stripping program
14171 STRIP=$STRIP
14172
14173 # Used to examine libraries when file_magic_cmd begins "file"
14174 MAGIC_CMD=$MAGIC_CMD
14175
14176 # Used on cygwin: DLL creation program.
14177 DLLTOOL="$DLLTOOL"
14178
14179 # Used on cygwin: object dumper.
14180 OBJDUMP="$OBJDUMP"
14181
14182 # Used on cygwin: assembler.
14183 AS="$AS"
14184
14185 # The name of the directory that contains temporary libtool files.
14186 objdir=$objdir
14187
14188 # How to create reloadable object files.
14189 reload_flag=$lt_reload_flag
14190 reload_cmds=$lt_reload_cmds
14191
14192 # How to pass a linker flag through the compiler.
14193 wl=$lt_lt_prog_compiler_wl_GCJ
14194
14195 # Object file suffix (normally "o").
14196 objext="$ac_objext"
14197
14198 # Old archive suffix (normally "a").
14199 libext="$libext"
14200
14201 # Executable file suffix (normally "").
14202 exeext="$exeext"
14203
14204 # Additional compiler flags for building library objects.
14205 pic_flag=$lt_lt_prog_compiler_pic_GCJ
14206 pic_mode=$pic_mode
14207
14208 # What is the maximum length of a command?
14209 max_cmd_len=$lt_cv_sys_max_cmd_len
14210
14211 # Does compiler simultaneously support -c and -o options?
14212 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
14213
14214 # Must we lock files when doing compilation ?
14215 need_locks=$lt_need_locks
14216
14217 # Do we need the lib prefix for modules?
14218 need_lib_prefix=$need_lib_prefix
14219
14220 # Do we need a version for libraries?
14221 need_version=$need_version
14222
14223 # Whether dlopen is supported.
14224 dlopen_support=$enable_dlopen
14225
14226 # Whether dlopen of programs is supported.
14227 dlopen_self=$enable_dlopen_self
14228
14229 # Whether dlopen of statically linked programs is supported.
14230 dlopen_self_static=$enable_dlopen_self_static
14231
14232 # Compiler flag to prevent dynamic linking.
14233 link_static_flag=$lt_lt_prog_compiler_static_GCJ
14234
14235 # Compiler flag to turn off builtin functions.
14236 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
14237
14238 # Compiler flag to allow reflexive dlopens.
14239 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
14240
14241 # Compiler flag to generate shared objects directly from archives.
14242 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
14243
14244 # Compiler flag to generate thread-safe objects.
14245 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
14246
14247 # Library versioning type.
14248 version_type=$version_type
14249
14250 # Format of library name prefix.
14251 libname_spec=$lt_libname_spec
14252
14253 # List of archive names. First name is the real one, the rest are links.
14254 # The last name is the one that the linker finds with -lNAME.
14255 library_names_spec=$lt_library_names_spec
14256
14257 # The coded name of the library, if different from the real name.
14258 soname_spec=$lt_soname_spec
14259
14260 # Commands used to build and install an old-style archive.
14261 RANLIB=$lt_RANLIB
14262 old_archive_cmds=$lt_old_archive_cmds_GCJ
14263 old_postinstall_cmds=$lt_old_postinstall_cmds
14264 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14265
14266 # Create an old-style archive from a shared archive.
14267 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
14268
14269 # Create a temporary old-style archive to link instead of a shared archive.
14270 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
14271
14272 # Commands used to build and install a shared archive.
14273 archive_cmds=$lt_archive_cmds_GCJ
14274 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
14275 postinstall_cmds=$lt_postinstall_cmds
14276 postuninstall_cmds=$lt_postuninstall_cmds
14277
14278 # Commands to strip libraries.
14279 old_striplib=$lt_old_striplib
14280 striplib=$lt_striplib
14281
14282 # Dependencies to place before the objects being linked to create a
14283 # shared library.
14284 predep_objects=$lt_predep_objects_GCJ
14285
14286 # Dependencies to place after the objects being linked to create a
14287 # shared library.
14288 postdep_objects=$lt_postdep_objects_GCJ
14289
14290 # Dependencies to place before the objects being linked to create a
14291 # shared library.
14292 predeps=$lt_predeps_GCJ
14293
14294 # Dependencies to place after the objects being linked to create a
14295 # shared library.
14296 postdeps=$lt_postdeps_GCJ
14297
14298 # The library search path used internally by the compiler when linking
14299 # a shared library.
14300 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
14301
14302 # Method to check whether dependent libraries are shared objects.
14303 deplibs_check_method=$lt_deplibs_check_method
14304
14305 # Command to use when deplibs_check_method == file_magic.
14306 file_magic_cmd=$lt_file_magic_cmd
14307
14308 # Flag that allows shared libraries with undefined symbols to be built.
14309 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
14310
14311 # Flag that forces no undefined symbols.
14312 no_undefined_flag=$lt_no_undefined_flag_GCJ
14313
14314 # Commands used to finish a libtool library installation in a directory.
14315 finish_cmds=$lt_finish_cmds
14316
14317 # Same as above, but a single script fragment to be evaled but not shown.
14318 finish_eval=$lt_finish_eval
14319
14320 # Take the output of nm and produce a listing of raw symbols and C names.
14321 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14322
14323 # Transform the output of nm in a proper C declaration
14324 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14325
14326 # Transform the output of nm in a C name address pair
14327 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14328
14329 # This is the shared library runtime path variable.
14330 runpath_var=$runpath_var
14331
14332 # This is the shared library path variable.
14333 shlibpath_var=$shlibpath_var
14334
14335 # Is shlibpath searched before the hard-coded library search path?
14336 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14337
14338 # How to hardcode a shared library path into an executable.
14339 hardcode_action=$hardcode_action_GCJ
14340
14341 # Whether we should hardcode library paths into libraries.
14342 hardcode_into_libs=$hardcode_into_libs
14343
14344 # Flag to hardcode \$libdir into a binary during linking.
14345 # This must work even if \$libdir does not exist.
14346 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
14347
14348 # Whether we need a single -rpath flag with a separated argument.
14349 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
14350
14351 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
14352 # resulting binary.
14353 hardcode_direct=$hardcode_direct_GCJ
14354
14355 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14356 # resulting binary.
14357 hardcode_minus_L=$hardcode_minus_L_GCJ
14358
14359 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14360 # the resulting binary.
14361 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
14362
14363 # Variables whose values should be saved in libtool wrapper scripts and
14364 # restored at relink time.
14365 variables_saved_for_relink="$variables_saved_for_relink"
14366
14367 # Whether libtool must link a program against all its dependency libraries.
14368 link_all_deplibs=$link_all_deplibs_GCJ
14369
14370 # Compile-time system search path for libraries
14371 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14372
14373 # Run-time system search path for libraries
14374 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14375
14376 # Fix the shell variable \$srcfile for the compiler.
14377 fix_srcfile_path="$fix_srcfile_path_GCJ"
14378
14379 # Set to yes if exported symbols are required.
14380 always_export_symbols=$always_export_symbols_GCJ
14381
14382 # The commands to list exported symbols.
14383 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
14384
14385 # The commands to extract the exported symbol list from a shared archive.
14386 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14387
14388 # Symbols that should not be listed in the preloaded symbols.
14389 exclude_expsyms=$lt_exclude_expsyms_GCJ
14390
14391 # Symbols that must always be exported.
14392 include_expsyms=$lt_include_expsyms_GCJ
14393
14394 # ### END LIBTOOL TAG CONFIG: $tagname
14395
14396 __EOF__
14397
14398
14399 else
14400 # If there is no Makefile yet, we rely on a make rule to execute
14401 # `config.status --recheck' to rerun these tests and create the
14402 # libtool script then.
14403 test -f Makefile && make "$ltmain"
14404 fi
14405
14406
14407 ac_ext=cc
14408 ac_cpp='$CXXCPP $CPPFLAGS'
14409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14412
14413 CC="$lt_save_CC"
14414
14415 ;;
14416
14417 RC)
14418
14419
14420
14421 # Source file extension for RC test sources.
14422 ac_ext=rc
14423
14424 # Object file extension for compiled RC test sources.
14425 objext=o
14426 objext_RC=$objext
14427
14428 # Code to be used in simple compile tests
14429 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
14430
14431 # Code to be used in simple link tests
14432 lt_simple_link_test_code="$lt_simple_compile_test_code"
14433
14434 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14435
14436 # If no C compiler was specified, use CC.
14437 LTCC=${LTCC-"$CC"}
14438
14439 # Allow CC to be a program name with arguments.
14440 set dummy $CC
14441 compiler="$2"
14442
14443
14444 # Allow CC to be a program name with arguments.
14445 lt_save_CC="$CC"
14446 CC=${RC-"windres"}
14447 set dummy $CC
14448 compiler="$2"
14449 compiler_RC=$CC
14450 lt_cv_prog_compiler_c_o_RC=yes
14451
14452 # The else clause should only fire when bootstrapping the
14453 # libtool distribution, otherwise you forgot to ship ltmain.sh
14454 # with your package, and you will get complaints that there are
14455 # no rules to generate ltmain.sh.
14456 if test -f "$ltmain"; then
14457 # Now quote all the things that may contain metacharacters while being
14458 # careful not to overquote the AC_SUBSTed values. We take copies of the
14459 # variables and quote the copies for generation of the libtool script.
14460 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
14461 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14462 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14463 deplibs_check_method reload_flag reload_cmds need_locks \
14464 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14465 lt_cv_sys_global_symbol_to_c_name_address \
14466 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14467 old_postinstall_cmds old_postuninstall_cmds \
14468 compiler_RC \
14469 CC_RC \
14470 LD_RC \
14471 lt_prog_compiler_wl_RC \
14472 lt_prog_compiler_pic_RC \
14473 lt_prog_compiler_static_RC \
14474 lt_prog_compiler_no_builtin_flag_RC \
14475 export_dynamic_flag_spec_RC \
14476 thread_safe_flag_spec_RC \
14477 whole_archive_flag_spec_RC \
14478 old_archive_cmds_RC \
14479 old_archive_from_new_cmds_RC \
14480 predep_objects_RC \
14481 postdep_objects_RC \
14482 predeps_RC \
14483 postdeps_RC \
14484 compiler_lib_search_path_RC \
14485 archive_cmds_RC \
14486 archive_expsym_cmds_RC \
14487 postinstall_cmds_RC \
14488 postuninstall_cmds_RC \
14489 old_archive_from_expsyms_cmds_RC \
14490 allow_undefined_flag_RC \
14491 no_undefined_flag_RC \
14492 export_symbols_cmds_RC \
14493 hardcode_libdir_flag_spec_RC \
14494 hardcode_libdir_separator_RC \
14495 lt_cv_prog_compiler_c_o_RC \
14496 exclude_expsyms_RC \
14497 include_expsyms_RC; do
14498
14499 case $var in
14500 old_archive_cmds_RC | \
14501 old_archive_from_new_cmds_RC | \
14502 archive_cmds_RC | \
14503 archive_expsym_cmds_RC | \
14504 old_archive_from_expsyms_cmds_RC | \
14505 export_symbols_cmds_RC | \
14506 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14507 postinstall_cmds | postuninstall_cmds | \
14508 old_postinstall_cmds | old_postuninstall_cmds | \
14509 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14510 # Double-quote double-evaled strings.
14511 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14512 ;;
14513 *)
14514 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14515 ;;
14516 esac
14517 done
14518
14519 case $lt_echo in
14520 *'\$0 --fallback-echo"')
14521 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14522 ;;
14523 esac
14524
14525 cfgfile="$ofile"
14526
14527 cat <<__EOF__ >> "$cfgfile"
14528 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14529
14530 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14531
14532 # Shell to use when invoking shell scripts.
14533 SHELL=$lt_SHELL
14534
14535 # Whether or not to build shared libraries.
14536 build_libtool_libs=$enable_shared
14537
14538 # Whether or not to build static libraries.
14539 build_old_libs=$enable_static
14540
14541 # Whether or not to add -lc for building shared libraries.
14542 build_libtool_need_lc=$archive_cmds_need_lc_RC
14543
14544 # Whether or not to optimize for fast installation.
14545 fast_install=$enable_fast_install
14546
14547 # The host system.
14548 host_alias=$host_alias
14549 host=$host
14550
14551 # An echo program that does not interpret backslashes.
14552 echo=$lt_echo
14553
14554 # The archiver.
14555 AR=$lt_AR
14556 AR_FLAGS=$lt_AR_FLAGS
14557
14558 # A C compiler.
14559 LTCC=$lt_LTCC
14560
14561 # A language-specific compiler.
14562 CC=$lt_compiler_RC
14563
14564 # Is the compiler the GNU C compiler?
14565 with_gcc=$GCC_RC
14566
14567 # The linker used to build libraries.
14568 LD=$lt_LD_RC
14569
14570 # Whether we need hard or soft links.
14571 LN_S=$lt_LN_S
14572
14573 # A BSD-compatible nm program.
14574 NM=$lt_NM
14575
14576 # A sed program that does not truncate output.
14577 SED=$lt_SED
14578
14579 # A symbol stripping program
14580 STRIP=$STRIP
14581
14582 # Used to examine libraries when file_magic_cmd begins "file"
14583 MAGIC_CMD=$MAGIC_CMD
14584
14585 # Used on cygwin: DLL creation program.
14586 DLLTOOL="$DLLTOOL"
14587
14588 # Used on cygwin: object dumper.
14589 OBJDUMP="$OBJDUMP"
14590
14591 # Used on cygwin: assembler.
14592 AS="$AS"
14593
14594 # The name of the directory that contains temporary libtool files.
14595 objdir=$objdir
14596
14597 # How to create reloadable object files.
14598 reload_flag=$lt_reload_flag
14599 reload_cmds=$lt_reload_cmds
14600
14601 # How to pass a linker flag through the compiler.
14602 wl=$lt_lt_prog_compiler_wl_RC
14603
14604 # Object file suffix (normally "o").
14605 objext="$ac_objext"
14606
14607 # Old archive suffix (normally "a").
14608 libext="$libext"
14609
14610 # Executable file suffix (normally "").
14611 exeext="$exeext"
14612
14613 # Additional compiler flags for building library objects.
14614 pic_flag=$lt_lt_prog_compiler_pic_RC
14615 pic_mode=$pic_mode
14616
14617 # What is the maximum length of a command?
14618 max_cmd_len=$lt_cv_sys_max_cmd_len
14619
14620 # Does compiler simultaneously support -c and -o options?
14621 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
14622
14623 # Must we lock files when doing compilation ?
14624 need_locks=$lt_need_locks
14625
14626 # Do we need the lib prefix for modules?
14627 need_lib_prefix=$need_lib_prefix
14628
14629 # Do we need a version for libraries?
14630 need_version=$need_version
14631
14632 # Whether dlopen is supported.
14633 dlopen_support=$enable_dlopen
14634
14635 # Whether dlopen of programs is supported.
14636 dlopen_self=$enable_dlopen_self
14637
14638 # Whether dlopen of statically linked programs is supported.
14639 dlopen_self_static=$enable_dlopen_self_static
14640
14641 # Compiler flag to prevent dynamic linking.
14642 link_static_flag=$lt_lt_prog_compiler_static_RC
14643
14644 # Compiler flag to turn off builtin functions.
14645 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
14646
14647 # Compiler flag to allow reflexive dlopens.
14648 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
14649
14650 # Compiler flag to generate shared objects directly from archives.
14651 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
14652
14653 # Compiler flag to generate thread-safe objects.
14654 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
14655
14656 # Library versioning type.
14657 version_type=$version_type
14658
14659 # Format of library name prefix.
14660 libname_spec=$lt_libname_spec
14661
14662 # List of archive names. First name is the real one, the rest are links.
14663 # The last name is the one that the linker finds with -lNAME.
14664 library_names_spec=$lt_library_names_spec
14665
14666 # The coded name of the library, if different from the real name.
14667 soname_spec=$lt_soname_spec
14668
14669 # Commands used to build and install an old-style archive.
14670 RANLIB=$lt_RANLIB
14671 old_archive_cmds=$lt_old_archive_cmds_RC
14672 old_postinstall_cmds=$lt_old_postinstall_cmds
14673 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14674
14675 # Create an old-style archive from a shared archive.
14676 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
14677
14678 # Create a temporary old-style archive to link instead of a shared archive.
14679 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
14680
14681 # Commands used to build and install a shared archive.
14682 archive_cmds=$lt_archive_cmds_RC
14683 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
14684 postinstall_cmds=$lt_postinstall_cmds
14685 postuninstall_cmds=$lt_postuninstall_cmds
14686
14687 # Commands to strip libraries.
14688 old_striplib=$lt_old_striplib
14689 striplib=$lt_striplib
14690
14691 # Dependencies to place before the objects being linked to create a
14692 # shared library.
14693 predep_objects=$lt_predep_objects_RC
14694
14695 # Dependencies to place after the objects being linked to create a
14696 # shared library.
14697 postdep_objects=$lt_postdep_objects_RC
14698
14699 # Dependencies to place before the objects being linked to create a
14700 # shared library.
14701 predeps=$lt_predeps_RC
14702
14703 # Dependencies to place after the objects being linked to create a
14704 # shared library.
14705 postdeps=$lt_postdeps_RC
14706
14707 # The library search path used internally by the compiler when linking
14708 # a shared library.
14709 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
14710
14711 # Method to check whether dependent libraries are shared objects.
14712 deplibs_check_method=$lt_deplibs_check_method
14713
14714 # Command to use when deplibs_check_method == file_magic.
14715 file_magic_cmd=$lt_file_magic_cmd
14716
14717 # Flag that allows shared libraries with undefined symbols to be built.
14718 allow_undefined_flag=$lt_allow_undefined_flag_RC
14719
14720 # Flag that forces no undefined symbols.
14721 no_undefined_flag=$lt_no_undefined_flag_RC
14722
14723 # Commands used to finish a libtool library installation in a directory.
14724 finish_cmds=$lt_finish_cmds
14725
14726 # Same as above, but a single script fragment to be evaled but not shown.
14727 finish_eval=$lt_finish_eval
14728
14729 # Take the output of nm and produce a listing of raw symbols and C names.
14730 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14731
14732 # Transform the output of nm in a proper C declaration
14733 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14734
14735 # Transform the output of nm in a C name address pair
14736 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14737
14738 # This is the shared library runtime path variable.
14739 runpath_var=$runpath_var
14740
14741 # This is the shared library path variable.
14742 shlibpath_var=$shlibpath_var
14743
14744 # Is shlibpath searched before the hard-coded library search path?
14745 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14746
14747 # How to hardcode a shared library path into an executable.
14748 hardcode_action=$hardcode_action_RC
14749
14750 # Whether we should hardcode library paths into libraries.
14751 hardcode_into_libs=$hardcode_into_libs
14752
14753 # Flag to hardcode \$libdir into a binary during linking.
14754 # This must work even if \$libdir does not exist.
14755 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
14756
14757 # Whether we need a single -rpath flag with a separated argument.
14758 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
14759
14760 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
14761 # resulting binary.
14762 hardcode_direct=$hardcode_direct_RC
14763
14764 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14765 # resulting binary.
14766 hardcode_minus_L=$hardcode_minus_L_RC
14767
14768 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14769 # the resulting binary.
14770 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
14771
14772 # Variables whose values should be saved in libtool wrapper scripts and
14773 # restored at relink time.
14774 variables_saved_for_relink="$variables_saved_for_relink"
14775
14776 # Whether libtool must link a program against all its dependency libraries.
14777 link_all_deplibs=$link_all_deplibs_RC
14778
14779 # Compile-time system search path for libraries
14780 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14781
14782 # Run-time system search path for libraries
14783 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14784
14785 # Fix the shell variable \$srcfile for the compiler.
14786 fix_srcfile_path="$fix_srcfile_path_RC"
14787
14788 # Set to yes if exported symbols are required.
14789 always_export_symbols=$always_export_symbols_RC
14790
14791 # The commands to list exported symbols.
14792 export_symbols_cmds=$lt_export_symbols_cmds_RC
14793
14794 # The commands to extract the exported symbol list from a shared archive.
14795 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14796
14797 # Symbols that should not be listed in the preloaded symbols.
14798 exclude_expsyms=$lt_exclude_expsyms_RC
14799
14800 # Symbols that must always be exported.
14801 include_expsyms=$lt_include_expsyms_RC
14802
14803 # ### END LIBTOOL TAG CONFIG: $tagname
14804
14805 __EOF__
14806
14807
14808 else
14809 # If there is no Makefile yet, we rely on a make rule to execute
14810 # `config.status --recheck' to rerun these tests and create the
14811 # libtool script then.
14812 test -f Makefile && make "$ltmain"
14813 fi
14814
14815
14816 ac_ext=cc
14817 ac_cpp='$CXXCPP $CPPFLAGS'
14818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14821
14822 CC="$lt_save_CC"
14823
14824 ;;
14825
14826 *)
14827 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
14828 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
14829 { (exit 1); exit 1; }; }
14830 ;;
14831 esac
14832
14833 # Append the new tag name to the list of available tags.
14834 available_tags="$available_tags $tagname"
14835 fi
14836 done
14837 IFS="$lt_save_ifs"
14838
14839 # Now substitute the updated list of available tags.
14840 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
14841 mv "${ofile}T" "$ofile"
14842 chmod +x "$ofile"
14843 else
14844 rm -f "${ofile}T"
14845 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
14846 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
14847 { (exit 1); exit 1; }; }
14848 fi
14849 fi
14850
14851
14852
14853 # This can be used to rebuild libtool when needed
14854 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
14855
14856 # Always use our own libtool.
14857 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14858
14859 # Prevent multiple expansion
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873 if test -n "$ac_tool_prefix"; then
14874 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14875 set dummy ${ac_tool_prefix}windres; ac_word=$2
14876 echo "$as_me:$LINENO: checking for $ac_word" >&5
14877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14878 if test "${ac_cv_prog_WINDRES+set}" = set; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14880 else
14881 if test -n "$WINDRES"; then
14882 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
14883 else
14884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14885 for as_dir in $PATH
14886 do
14887 IFS=$as_save_IFS
14888 test -z "$as_dir" && as_dir=.
14889 for ac_exec_ext in '' $ac_executable_extensions; do
14890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14891 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
14892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14893 break 2
14894 fi
14895 done
14896 done
14897
14898 fi
14899 fi
14900 WINDRES=$ac_cv_prog_WINDRES
14901 if test -n "$WINDRES"; then
14902 echo "$as_me:$LINENO: result: $WINDRES" >&5
14903 echo "${ECHO_T}$WINDRES" >&6
14904 else
14905 echo "$as_me:$LINENO: result: no" >&5
14906 echo "${ECHO_T}no" >&6
14907 fi
14908
14909 fi
14910 if test -z "$ac_cv_prog_WINDRES"; then
14911 ac_ct_WINDRES=$WINDRES
14912 # Extract the first word of "windres", so it can be a program name with args.
14913 set dummy windres; ac_word=$2
14914 echo "$as_me:$LINENO: checking for $ac_word" >&5
14915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14916 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
14917 echo $ECHO_N "(cached) $ECHO_C" >&6
14918 else
14919 if test -n "$ac_ct_WINDRES"; then
14920 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
14921 else
14922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14923 for as_dir in $PATH
14924 do
14925 IFS=$as_save_IFS
14926 test -z "$as_dir" && as_dir=.
14927 for ac_exec_ext in '' $ac_executable_extensions; do
14928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14929 ac_cv_prog_ac_ct_WINDRES="windres"
14930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14931 break 2
14932 fi
14933 done
14934 done
14935
14936 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="windres"
14937 fi
14938 fi
14939 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14940 if test -n "$ac_ct_WINDRES"; then
14941 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14942 echo "${ECHO_T}$ac_ct_WINDRES" >&6
14943 else
14944 echo "$as_me:$LINENO: result: no" >&5
14945 echo "${ECHO_T}no" >&6
14946 fi
14947
14948 WINDRES=$ac_ct_WINDRES
14949 else
14950 WINDRES="$ac_cv_prog_WINDRES"
14951 fi
14952
14953
14954
14955
14956 echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
14957 echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
14958 if test "${ac_cv_lib_mingw32_main+set}" = set; then
14959 echo $ECHO_N "(cached) $ECHO_C" >&6
14960 else
14961 ac_check_lib_save_LIBS=$LIBS
14962 LIBS="-lmingw32 $LIBS"
14963 cat >conftest.$ac_ext <<_ACEOF
14964 #line $LINENO "configure"
14965 #include "confdefs.h"
14966
14967
14968 #ifdef F77_DUMMY_MAIN
14969 # ifdef __cplusplus
14970 extern "C"
14971 # endif
14972 int F77_DUMMY_MAIN() { return 1; }
14973 #endif
14974 int
14975 main ()
14976 {
14977 main ();
14978 ;
14979 return 0;
14980 }
14981 _ACEOF
14982 rm -f conftest.$ac_objext conftest$ac_exeext
14983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14984 (eval $ac_link) 2>&5
14985 ac_status=$?
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); } &&
14988 { ac_try='test -s conftest$ac_exeext'
14989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14990 (eval $ac_try) 2>&5
14991 ac_status=$?
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); }; }; then
14994 ac_cv_lib_mingw32_main=yes
14995 else
14996 echo "$as_me: failed program was:" >&5
14997 cat conftest.$ac_ext >&5
14998 ac_cv_lib_mingw32_main=no
14999 fi
15000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15001 LIBS=$ac_check_lib_save_LIBS
15002 fi
15003 echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
15004 echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
15005 if test $ac_cv_lib_mingw32_main = yes; then
15006 cat >>confdefs.h <<_ACEOF
15007 #define HAVE_LIBMINGW32 1
15008 _ACEOF
15009
15010 LIBS="-lmingw32 $LIBS"
15011
15012 fi
15013
15014
15015
15016
15017
15018
15019
15020 for ac_header in alloca.h \
15021 errno.h \
15022 string \
15023 string.h
15024 do
15025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15027 echo "$as_me:$LINENO: checking for $ac_header" >&5
15028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15030 echo $ECHO_N "(cached) $ECHO_C" >&6
15031 fi
15032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15034 else
15035 # Is the header compilable?
15036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15038 cat >conftest.$ac_ext <<_ACEOF
15039 #line $LINENO "configure"
15040 #include "confdefs.h"
15041 $ac_includes_default
15042 #include <$ac_header>
15043 _ACEOF
15044 rm -f conftest.$ac_objext
15045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15046 (eval $ac_compile) 2>&5
15047 ac_status=$?
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); } &&
15050 { ac_try='test -s conftest.$ac_objext'
15051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052 (eval $ac_try) 2>&5
15053 ac_status=$?
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; }; then
15056 ac_header_compiler=yes
15057 else
15058 echo "$as_me: failed program was:" >&5
15059 cat conftest.$ac_ext >&5
15060 ac_header_compiler=no
15061 fi
15062 rm -f conftest.$ac_objext conftest.$ac_ext
15063 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15064 echo "${ECHO_T}$ac_header_compiler" >&6
15065
15066 # Is the header present?
15067 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15069 cat >conftest.$ac_ext <<_ACEOF
15070 #line $LINENO "configure"
15071 #include "confdefs.h"
15072 #include <$ac_header>
15073 _ACEOF
15074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15076 ac_status=$?
15077 egrep -v '^ *\+' conftest.er1 >conftest.err
15078 rm -f conftest.er1
15079 cat conftest.err >&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } >/dev/null; then
15082 if test -s conftest.err; then
15083 ac_cpp_err=$ac_cxx_preproc_warn_flag
15084 else
15085 ac_cpp_err=
15086 fi
15087 else
15088 ac_cpp_err=yes
15089 fi
15090 if test -z "$ac_cpp_err"; then
15091 ac_header_preproc=yes
15092 else
15093 echo "$as_me: failed program was:" >&5
15094 cat conftest.$ac_ext >&5
15095 ac_header_preproc=no
15096 fi
15097 rm -f conftest.err conftest.$ac_ext
15098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15099 echo "${ECHO_T}$ac_header_preproc" >&6
15100
15101 # So? What about this header?
15102 case $ac_header_compiler:$ac_header_preproc in
15103 yes:no )
15104 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15108 no:yes )
15109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15115 esac
15116 echo "$as_me:$LINENO: checking for $ac_header" >&5
15117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15119 echo $ECHO_N "(cached) $ECHO_C" >&6
15120 else
15121 eval "$as_ac_Header=$ac_header_preproc"
15122 fi
15123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15125
15126 fi
15127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15128 cat >>confdefs.h <<_ACEOF
15129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15130 _ACEOF
15131
15132 fi
15133
15134 done
15135
15136
15137
15138
15139 subdirs="$subdirs zlib"
15140
15141
15142
15143 subdirs="$subdirs bz2lib"
15144
15145
15146
15147 subdirs="$subdirs libgetopt++"
15148
15149
15150 case "$host_os" in
15151 mingw32)
15152
15153
15154 if true; then
15155 MINGWTARGET_TRUE=
15156 MINGWTARGET_FALSE='#'
15157 else
15158 MINGWTARGET_TRUE='#'
15159 MINGWTARGET_FALSE=
15160 fi
15161
15162 ;;
15163 *)
15164
15165
15166 if false; then
15167 MINGWTARGET_TRUE=
15168 MINGWTARGET_FALSE='#'
15169 else
15170 MINGWTARGET_TRUE='#'
15171 MINGWTARGET_FALSE=
15172 fi
15173
15174 ;;
15175 esac
15176
15177 ac_config_files="$ac_config_files Makefile"
15178
15179 cat >confcache <<\_ACEOF
15180 # This file is a shell script that caches the results of configure
15181 # tests run on this system so they can be shared between configure
15182 # scripts and configure runs, see configure's option --config-cache.
15183 # It is not useful on other systems. If it contains results you don't
15184 # want to keep, you may remove or edit it.
15185 #
15186 # config.status only pays attention to the cache file if you give it
15187 # the --recheck option to rerun configure.
15188 #
15189 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15190 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15191 # following values.
15192
15193 _ACEOF
15194
15195 # The following way of writing the cache mishandles newlines in values,
15196 # but we know of no workaround that is simple, portable, and efficient.
15197 # So, don't put newlines in cache variables' values.
15198 # Ultrix sh set writes to stderr and can't be redirected directly,
15199 # and sets the high bit in the cache file unless we assign to the vars.
15200 {
15201 (set) 2>&1 |
15202 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15203 *ac_space=\ *)
15204 # `set' does not quote correctly, so add quotes (double-quote
15205 # substitution turns \\\\ into \\, and sed turns \\ into \).
15206 sed -n \
15207 "s/'/'\\\\''/g;
15208 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15209 ;;
15210 *)
15211 # `set' quotes correctly as required by POSIX, so do not add quotes.
15212 sed -n \
15213 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15214 ;;
15215 esac;
15216 } |
15217 sed '
15218 t clear
15219 : clear
15220 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15221 t end
15222 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15223 : end' >>confcache
15224 if cmp -s $cache_file confcache; then :; else
15225 if test -w $cache_file; then
15226 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15227 cat confcache >$cache_file
15228 else
15229 echo "not updating unwritable cache $cache_file"
15230 fi
15231 fi
15232 rm -f confcache
15233
15234 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15235 # Let make expand exec_prefix.
15236 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15237
15238 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15239 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15240 # trailing colons and then remove the whole line if VPATH becomes empty
15241 # (actually we leave an empty line to preserve line numbers).
15242 if test "x$srcdir" = x.; then
15243 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15244 s/:*\$(srcdir):*/:/;
15245 s/:*\${srcdir}:*/:/;
15246 s/:*@srcdir@:*/:/;
15247 s/^\([^=]*=[ ]*\):*/\1/;
15248 s/:*$//;
15249 s/^[^=]*=[ ]*$//;
15250 }'
15251 fi
15252
15253 # Transform confdefs.h into DEFS.
15254 # Protect against shell expansion while executing Makefile rules.
15255 # Protect against Makefile macro expansion.
15256 #
15257 # If the first sed substitution is executed (which looks for macros that
15258 # take arguments), then we branch to the quote section. Otherwise,
15259 # look for a macro that doesn't take arguments.
15260 cat >confdef2opt.sed <<\_ACEOF
15261 t clear
15262 : clear
15263 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
15264 t quote
15265 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
15266 t quote
15267 d
15268 : quote
15269 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
15270 s,\[,\\&,g
15271 s,\],\\&,g
15272 s,\$,$$,g
15273 p
15274 _ACEOF
15275 # We use echo to avoid assuming a particular line-breaking character.
15276 # The extra dot is to prevent the shell from consuming trailing
15277 # line-breaks from the sub-command output. A line-break within
15278 # single-quotes doesn't work because, if this script is created in a
15279 # platform that uses two characters for line-breaks (e.g., DOS), tr
15280 # would break.
15281 ac_LF_and_DOT=`echo; echo .`
15282 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
15283 rm -f confdef2opt.sed
15284
15285
15286 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15287 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15288 Usually this means the macro was only invoked conditionally." >&5
15289 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15290 Usually this means the macro was only invoked conditionally." >&2;}
15291 { (exit 1); exit 1; }; }
15292 fi
15293 if test -z "${ENABLERSYNC_TRUE}" && test -z "${ENABLERSYNC_FALSE}"; then
15294 { { echo "$as_me:$LINENO: error: conditional \"ENABLERSYNC\" was never defined.
15295 Usually this means the macro was only invoked conditionally." >&5
15296 echo "$as_me: error: conditional \"ENABLERSYNC\" was never defined.
15297 Usually this means the macro was only invoked conditionally." >&2;}
15298 { (exit 1); exit 1; }; }
15299 fi
15300 if test -z "${ENABLERSYNC_TRUE}" && test -z "${ENABLERSYNC_FALSE}"; then
15301 { { echo "$as_me:$LINENO: error: conditional \"ENABLERSYNC\" was never defined.
15302 Usually this means the macro was only invoked conditionally." >&5
15303 echo "$as_me: error: conditional \"ENABLERSYNC\" was never defined.
15304 Usually this means the macro was only invoked conditionally." >&2;}
15305 { (exit 1); exit 1; }; }
15306 fi
15307 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15308 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15309 Usually this means the macro was only invoked conditionally." >&5
15310 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15311 Usually this means the macro was only invoked conditionally." >&2;}
15312 { (exit 1); exit 1; }; }
15313 fi
15314 if test -z "${MINGWTARGET_TRUE}" && test -z "${MINGWTARGET_FALSE}"; then
15315 { { echo "$as_me:$LINENO: error: conditional \"MINGWTARGET\" was never defined.
15316 Usually this means the macro was only invoked conditionally." >&5
15317 echo "$as_me: error: conditional \"MINGWTARGET\" was never defined.
15318 Usually this means the macro was only invoked conditionally." >&2;}
15319 { (exit 1); exit 1; }; }
15320 fi
15321 if test -z "${MINGWTARGET_TRUE}" && test -z "${MINGWTARGET_FALSE}"; then
15322 { { echo "$as_me:$LINENO: error: conditional \"MINGWTARGET\" was never defined.
15323 Usually this means the macro was only invoked conditionally." >&5
15324 echo "$as_me: error: conditional \"MINGWTARGET\" was never defined.
15325 Usually this means the macro was only invoked conditionally." >&2;}
15326 { (exit 1); exit 1; }; }
15327 fi
15328
15329 : ${CONFIG_STATUS=./config.status}
15330 ac_clean_files_save=$ac_clean_files
15331 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15332 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15333 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15334 cat >$CONFIG_STATUS <<_ACEOF
15335 #! $SHELL
15336 # Generated by $as_me.
15337 # Run this file to recreate the current configuration.
15338 # Compiler output produced by configure, useful for debugging
15339 # configure, is in config.log if it exists.
15340
15341 debug=false
15342 SHELL=\${CONFIG_SHELL-$SHELL}
15343 _ACEOF
15344
15345 cat >>$CONFIG_STATUS <<\_ACEOF
15346
15347 ## --------------------- ##
15348 ## M4sh Initialization. ##
15349 ## --------------------- ##
15350
15351 # Be Bourne compatible
15352 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15353 emulate sh
15354 NULLCMD=:
15355 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15356 set -o posix
15357 fi
15358
15359 # NLS nuisances.
15360 # Support unset when possible.
15361 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15362 as_unset=unset
15363 else
15364 as_unset=false
15365 fi
15366
15367 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
15368 { $as_unset LANG || test "${LANG+set}" != set; } ||
15369 { LANG=C; export LANG; }
15370 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
15371 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
15372 { LC_ALL=C; export LC_ALL; }
15373 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
15374 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
15375 { LC_TIME=C; export LC_TIME; }
15376 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
15377 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
15378 { LC_CTYPE=C; export LC_CTYPE; }
15379 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
15380 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
15381 { LANGUAGE=C; export LANGUAGE; }
15382 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
15383 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
15384 { LC_COLLATE=C; export LC_COLLATE; }
15385 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
15386 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
15387 { LC_NUMERIC=C; export LC_NUMERIC; }
15388 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
15389 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
15390 { LC_MESSAGES=C; export LC_MESSAGES; }
15391
15392
15393 # Name of the executable.
15394 as_me=`(basename "$0") 2>/dev/null ||
15395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15396 X"$0" : 'X\(//\)$' \| \
15397 X"$0" : 'X\(/\)$' \| \
15398 . : '\(.\)' 2>/dev/null ||
15399 echo X/"$0" |
15400 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15401 /^X\/\(\/\/\)$/{ s//\1/; q; }
15402 /^X\/\(\/\).*/{ s//\1/; q; }
15403 s/.*/./; q'`
15404
15405 # PATH needs CR, and LINENO needs CR and PATH.
15406 # Avoid depending upon Character Ranges.
15407 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15408 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15409 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15410 as_cr_digits='0123456789'
15411 as_cr_alnum=$as_cr_Letters$as_cr_digits
15412
15413 # The user is always right.
15414 if test "${PATH_SEPARATOR+set}" != set; then
15415 echo "#! /bin/sh" >conftest.sh
15416 echo "exit 0" >>conftest.sh
15417 chmod +x conftest.sh
15418 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
15419 PATH_SEPARATOR=';'
15420 else
15421 PATH_SEPARATOR=:
15422 fi
15423 rm -f conftest.sh
15424 fi
15425
15426
15427 as_lineno_1=$LINENO
15428 as_lineno_2=$LINENO
15429 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15430 test "x$as_lineno_1" != "x$as_lineno_2" &&
15431 test "x$as_lineno_3" = "x$as_lineno_2" || {
15432 # Find who we are. Look in the path if we contain no path at all
15433 # relative or not.
15434 case $0 in
15435 *[\\/]* ) as_myself=$0 ;;
15436 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15437 for as_dir in $PATH
15438 do
15439 IFS=$as_save_IFS
15440 test -z "$as_dir" && as_dir=.
15441 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15442 done
15443
15444 ;;
15445 esac
15446 # We did not find ourselves, most probably we were run as `sh COMMAND'
15447 # in which case we are not to be found in the path.
15448 if test "x$as_myself" = x; then
15449 as_myself=$0
15450 fi
15451 if test ! -f "$as_myself"; then
15452 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15453 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15454 { (exit 1); exit 1; }; }
15455 fi
15456 case $CONFIG_SHELL in
15457 '')
15458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15459 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15460 do
15461 IFS=$as_save_IFS
15462 test -z "$as_dir" && as_dir=.
15463 for as_base in sh bash ksh sh5; do
15464 case $as_dir in
15465 /*)
15466 if ("$as_dir/$as_base" -c '
15467 as_lineno_1=$LINENO
15468 as_lineno_2=$LINENO
15469 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15470 test "x$as_lineno_1" != "x$as_lineno_2" &&
15471 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15472 CONFIG_SHELL=$as_dir/$as_base
15473 export CONFIG_SHELL
15474 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15475 fi;;
15476 esac
15477 done
15478 done
15479 ;;
15480 esac
15481
15482 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15483 # uniformly replaced by the line number. The first 'sed' inserts a
15484 # line-number line before each line; the second 'sed' does the real
15485 # work. The second script uses 'N' to pair each line-number line
15486 # with the numbered line, and appends trailing '-' during
15487 # substitution so that $LINENO is not a special case at line end.
15488 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15489 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15490 sed '=' <$as_myself |
15491 sed '
15492 N
15493 s,$,-,
15494 : loop
15495 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15496 t loop
15497 s,-$,,
15498 s,^['$as_cr_digits']*\n,,
15499 ' >$as_me.lineno &&
15500 chmod +x $as_me.lineno ||
15501 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15502 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15503 { (exit 1); exit 1; }; }
15504
15505 # Don't try to exec as it changes $[0], causing all sort of problems
15506 # (the dirname of $[0] is not the place where we might find the
15507 # original and so on. Autoconf is especially sensible to this).
15508 . ./$as_me.lineno
15509 # Exit status is that of the last command.
15510 exit
15511 }
15512
15513
15514 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15515 *c*,-n*) ECHO_N= ECHO_C='
15516 ' ECHO_T=' ' ;;
15517 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15518 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15519 esac
15520
15521 if expr a : '\(a\)' >/dev/null 2>&1; then
15522 as_expr=expr
15523 else
15524 as_expr=false
15525 fi
15526
15527 rm -f conf$$ conf$$.exe conf$$.file
15528 echo >conf$$.file
15529 if ln -s conf$$.file conf$$ 2>/dev/null; then
15530 # We could just check for DJGPP; but this test a) works b) is more generic
15531 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15532 if test -f conf$$.exe; then
15533 # Don't use ln at all; we don't have any links
15534 as_ln_s='cp -p'
15535 else
15536 as_ln_s='ln -s'
15537 fi
15538 elif ln conf$$.file conf$$ 2>/dev/null; then
15539 as_ln_s=ln
15540 else
15541 as_ln_s='cp -p'
15542 fi
15543 rm -f conf$$ conf$$.exe conf$$.file
15544
15545 as_executable_p="test -f"
15546
15547 # Sed expression to map a string onto a valid CPP name.
15548 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15549
15550 # Sed expression to map a string onto a valid variable name.
15551 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15552
15553
15554 # IFS
15555 # We need space, tab and new line, in precisely that order.
15556 as_nl='
15557 '
15558 IFS=" $as_nl"
15559
15560 # CDPATH.
15561 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
15562
15563 exec 6>&1
15564
15565 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15566 # report actual input values of CONFIG_FILES etc. instead of their
15567 # values after options handling. Logging --version etc. is OK.
15568 exec 5>>config.log
15569 {
15570 echo
15571 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15572 ## Running $as_me. ##
15573 _ASBOX
15574 } >&5
15575 cat >&5 <<_CSEOF
15576
15577 This file was extended by $as_me, which was
15578 generated by GNU Autoconf 2.53. Invocation command line was
15579
15580 CONFIG_FILES = $CONFIG_FILES
15581 CONFIG_HEADERS = $CONFIG_HEADERS
15582 CONFIG_LINKS = $CONFIG_LINKS
15583 CONFIG_COMMANDS = $CONFIG_COMMANDS
15584 $ $0 $@
15585
15586 _CSEOF
15587 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15588 echo >&5
15589 _ACEOF
15590
15591 # Files that config.status was made for.
15592 if test -n "$ac_config_files"; then
15593 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15594 fi
15595
15596 if test -n "$ac_config_headers"; then
15597 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15598 fi
15599
15600 if test -n "$ac_config_links"; then
15601 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15602 fi
15603
15604 if test -n "$ac_config_commands"; then
15605 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15606 fi
15607
15608 cat >>$CONFIG_STATUS <<\_ACEOF
15609
15610 ac_cs_usage="\
15611 \`$as_me' instantiates files from templates according to the
15612 current configuration.
15613
15614 Usage: $0 [OPTIONS] [FILE]...
15615
15616 -h, --help print this help, then exit
15617 -V, --version print version number, then exit
15618 -d, --debug don't remove temporary files
15619 --recheck update $as_me by reconfiguring in the same conditions
15620 --file=FILE[:TEMPLATE]
15621 instantiate the configuration file FILE
15622
15623 Configuration files:
15624 $config_files
15625
15626 Configuration commands:
15627 $config_commands
15628
15629 Report bugs to <bug-autoconf@gnu.org>."
15630 _ACEOF
15631
15632 cat >>$CONFIG_STATUS <<_ACEOF
15633 ac_cs_version="\\
15634 config.status
15635 configured by $0, generated by GNU Autoconf 2.53,
15636 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15637
15638 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15639 Free Software Foundation, Inc.
15640 This config.status script is free software; the Free Software Foundation
15641 gives unlimited permission to copy, distribute and modify it."
15642 srcdir=$srcdir
15643 INSTALL="$INSTALL"
15644 _ACEOF
15645
15646 cat >>$CONFIG_STATUS <<\_ACEOF
15647 # If no file are specified by the user, then we need to provide default
15648 # value. By we need to know if files were specified by the user.
15649 ac_need_defaults=:
15650 while test $# != 0
15651 do
15652 case $1 in
15653 --*=*)
15654 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15655 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15656 shift
15657 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
15658 shift
15659 ;;
15660 -*);;
15661 *) # This is not an option, so the user has probably given explicit
15662 # arguments.
15663 ac_need_defaults=false;;
15664 esac
15665
15666 case $1 in
15667 # Handling of the options.
15668 _ACEOF
15669 cat >>$CONFIG_STATUS <<_ACEOF
15670 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15671 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
15672 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
15673 _ACEOF
15674 cat >>$CONFIG_STATUS <<\_ACEOF
15675 --version | --vers* | -V )
15676 echo "$ac_cs_version"; exit 0 ;;
15677 --he | --h)
15678 # Conflict between --help and --header
15679 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15680 Try \`$0 --help' for more information." >&5
15681 echo "$as_me: error: ambiguous option: $1
15682 Try \`$0 --help' for more information." >&2;}
15683 { (exit 1); exit 1; }; };;
15684 --help | --hel | -h )
15685 echo "$ac_cs_usage"; exit 0 ;;
15686 --debug | --d* | -d )
15687 debug=: ;;
15688 --file | --fil | --fi | --f )
15689 shift
15690 CONFIG_FILES="$CONFIG_FILES $1"
15691 ac_need_defaults=false;;
15692 --header | --heade | --head | --hea )
15693 shift
15694 CONFIG_HEADERS="$CONFIG_HEADERS $1"
15695 ac_need_defaults=false;;
15696
15697 # This is an error.
15698 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15699 Try \`$0 --help' for more information." >&5
15700 echo "$as_me: error: unrecognized option: $1
15701 Try \`$0 --help' for more information." >&2;}
15702 { (exit 1); exit 1; }; } ;;
15703
15704 *) ac_config_targets="$ac_config_targets $1" ;;
15705
15706 esac
15707 shift
15708 done
15709
15710 _ACEOF
15711
15712 cat >>$CONFIG_STATUS <<_ACEOF
15713 #
15714 # INIT-COMMANDS section.
15715 #
15716
15717 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15718
15719 _ACEOF
15720
15721
15722
15723 cat >>$CONFIG_STATUS <<\_ACEOF
15724 for ac_config_target in $ac_config_targets
15725 do
15726 case "$ac_config_target" in
15727 # Handling of arguments.
15728 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15729 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15730 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15731 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15732 { (exit 1); exit 1; }; };;
15733 esac
15734 done
15735
15736 # If the user did not use the arguments to specify the items to instantiate,
15737 # then the envvar interface is used. Set only those that are not.
15738 # We use the long form for the default assignment because of an extremely
15739 # bizarre bug on SunOS 4.1.3.
15740 if $ac_need_defaults; then
15741 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15742 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15743 fi
15744
15745 # Create a temporary directory, and hook for its removal unless debugging.
15746 $debug ||
15747 {
15748 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15749 trap '{ (exit 1); exit 1; }' 1 2 13 15
15750 }
15751
15752 # Create a (secure) tmp directory for tmp files.
15753 : ${TMPDIR=/tmp}
15754 {
15755 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
15756 test -n "$tmp" && test -d "$tmp"
15757 } ||
15758 {
15759 tmp=$TMPDIR/cs$$-$RANDOM
15760 (umask 077 && mkdir $tmp)
15761 } ||
15762 {
15763 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
15764 { (exit 1); exit 1; }
15765 }
15766
15767 _ACEOF
15768
15769 cat >>$CONFIG_STATUS <<_ACEOF
15770
15771 #
15772 # CONFIG_FILES section.
15773 #
15774
15775 # No need to generate the scripts if there are no CONFIG_FILES.
15776 # This happens for instance when ./config.status config.h
15777 if test -n "\$CONFIG_FILES"; then
15778 # Protect against being on the right side of a sed subst in config.status.
15779 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15780 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15781 s,@SHELL@,$SHELL,;t t
15782 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15783 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15784 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15785 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15786 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15787 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15788 s,@exec_prefix@,$exec_prefix,;t t
15789 s,@prefix@,$prefix,;t t
15790 s,@program_transform_name@,$program_transform_name,;t t
15791 s,@bindir@,$bindir,;t t
15792 s,@sbindir@,$sbindir,;t t
15793 s,@libexecdir@,$libexecdir,;t t
15794 s,@datadir@,$datadir,;t t
15795 s,@sysconfdir@,$sysconfdir,;t t
15796 s,@sharedstatedir@,$sharedstatedir,;t t
15797 s,@localstatedir@,$localstatedir,;t t
15798 s,@libdir@,$libdir,;t t
15799 s,@includedir@,$includedir,;t t
15800 s,@oldincludedir@,$oldincludedir,;t t
15801 s,@infodir@,$infodir,;t t
15802 s,@mandir@,$mandir,;t t
15803 s,@build_alias@,$build_alias,;t t
15804 s,@host_alias@,$host_alias,;t t
15805 s,@target_alias@,$target_alias,;t t
15806 s,@DEFS@,$DEFS,;t t
15807 s,@ECHO_C@,$ECHO_C,;t t
15808 s,@ECHO_N@,$ECHO_N,;t t
15809 s,@ECHO_T@,$ECHO_T,;t t
15810 s,@LIBS@,$LIBS,;t t
15811 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15812 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15813 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15814 s,@PACKAGE@,$PACKAGE,;t t
15815 s,@VERSION@,$VERSION,;t t
15816 s,@ACLOCAL@,$ACLOCAL,;t t
15817 s,@AUTOCONF@,$AUTOCONF,;t t
15818 s,@AUTOMAKE@,$AUTOMAKE,;t t
15819 s,@AUTOHEADER@,$AUTOHEADER,;t t
15820 s,@MAKEINFO@,$MAKEINFO,;t t
15821 s,@AMTAR@,$AMTAR,;t t
15822 s,@install_sh@,$install_sh,;t t
15823 s,@STRIP@,$STRIP,;t t
15824 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15825 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15826 s,@AWK@,$AWK,;t t
15827 s,@SET_MAKE@,$SET_MAKE,;t t
15828 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15829 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15830 s,@MAINT@,$MAINT,;t t
15831 s,@INILINT@,$INILINT,;t t
15832 s,@ENABLERSYNC_TRUE@,$ENABLERSYNC_TRUE,;t t
15833 s,@ENABLERSYNC_FALSE@,$ENABLERSYNC_FALSE,;t t
15834 s,@subdirs@,$subdirs,;t t
15835 s,@RSYNC@,$RSYNC,;t t
15836 s,@RSYNCLIB@,$RSYNCLIB,;t t
15837 s,@CXX@,$CXX,;t t
15838 s,@CXXFLAGS@,$CXXFLAGS,;t t
15839 s,@LDFLAGS@,$LDFLAGS,;t t
15840 s,@CPPFLAGS@,$CPPFLAGS,;t t
15841 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
15842 s,@EXEEXT@,$EXEEXT,;t t
15843 s,@OBJEXT@,$OBJEXT,;t t
15844 s,@DEPDIR@,$DEPDIR,;t t
15845 s,@am__include@,$am__include,;t t
15846 s,@am__quote@,$am__quote,;t t
15847 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15848 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15849 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15850 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
15851 s,@CC@,$CC,;t t
15852 s,@CFLAGS@,$CFLAGS,;t t
15853 s,@ac_ct_CC@,$ac_ct_CC,;t t
15854 s,@CCDEPMODE@,$CCDEPMODE,;t t
15855 s,@LEX@,$LEX,;t t
15856 s,@LEXLIB@,$LEXLIB,;t t
15857 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
15858 s,@YACC@,$YACC,;t t
15859 s,@build@,$build,;t t
15860 s,@build_cpu@,$build_cpu,;t t
15861 s,@build_vendor@,$build_vendor,;t t
15862 s,@build_os@,$build_os,;t t
15863 s,@host@,$host,;t t
15864 s,@host_cpu@,$host_cpu,;t t
15865 s,@host_vendor@,$host_vendor,;t t
15866 s,@host_os@,$host_os,;t t
15867 s,@LN_S@,$LN_S,;t t
15868 s,@ECHO@,$ECHO,;t t
15869 s,@RANLIB@,$RANLIB,;t t
15870 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15871 s,@CPP@,$CPP,;t t
15872 s,@CXXCPP@,$CXXCPP,;t t
15873 s,@LIBTOOL@,$LIBTOOL,;t t
15874 s,@WINDRES@,$WINDRES,;t t
15875 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
15876 s,@MINGWTARGET_TRUE@,$MINGWTARGET_TRUE,;t t
15877 s,@MINGWTARGET_FALSE@,$MINGWTARGET_FALSE,;t t
15878 CEOF
15879
15880 _ACEOF
15881
15882 cat >>$CONFIG_STATUS <<\_ACEOF
15883 # Split the substitutions into bite-sized pieces for seds with
15884 # small command number limits, like on Digital OSF/1 and HP-UX.
15885 ac_max_sed_lines=48
15886 ac_sed_frag=1 # Number of current file.
15887 ac_beg=1 # First line for current file.
15888 ac_end=$ac_max_sed_lines # Line after last line for current file.
15889 ac_more_lines=:
15890 ac_sed_cmds=
15891 while $ac_more_lines; do
15892 if test $ac_beg -gt 1; then
15893 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15894 else
15895 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15896 fi
15897 if test ! -s $tmp/subs.frag; then
15898 ac_more_lines=false
15899 else
15900 # The purpose of the label and of the branching condition is to
15901 # speed up the sed processing (if there are no `@' at all, there
15902 # is no need to browse any of the substitutions).
15903 # These are the two extra sed commands mentioned above.
15904 (echo ':t
15905 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15906 if test -z "$ac_sed_cmds"; then
15907 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15908 else
15909 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15910 fi
15911 ac_sed_frag=`expr $ac_sed_frag + 1`
15912 ac_beg=$ac_end
15913 ac_end=`expr $ac_end + $ac_max_sed_lines`
15914 fi
15915 done
15916 if test -z "$ac_sed_cmds"; then
15917 ac_sed_cmds=cat
15918 fi
15919 fi # test -n "$CONFIG_FILES"
15920
15921 _ACEOF
15922 cat >>$CONFIG_STATUS <<\_ACEOF
15923 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15924 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15925 case $ac_file in
15926 - | *:- | *:-:* ) # input from stdin
15927 cat >$tmp/stdin
15928 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15929 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15930 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15931 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15932 * ) ac_file_in=$ac_file.in ;;
15933 esac
15934
15935 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15936 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15937 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15938 X"$ac_file" : 'X\(//\)[^/]' \| \
15939 X"$ac_file" : 'X\(//\)$' \| \
15940 X"$ac_file" : 'X\(/\)' \| \
15941 . : '\(.\)' 2>/dev/null ||
15942 echo X"$ac_file" |
15943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15944 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15945 /^X\(\/\/\)$/{ s//\1/; q; }
15946 /^X\(\/\).*/{ s//\1/; q; }
15947 s/.*/./; q'`
15948 { case "$ac_dir" in
15949 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15950 *) as_incr_dir=.;;
15951 esac
15952 as_dummy="$ac_dir"
15953 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15954 case $as_mkdir_dir in
15955 # Skip DOS drivespec
15956 ?:) as_incr_dir=$as_mkdir_dir ;;
15957 *)
15958 as_incr_dir=$as_incr_dir/$as_mkdir_dir
15959 test -d "$as_incr_dir" ||
15960 mkdir "$as_incr_dir" ||
15961 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
15962 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
15963 { (exit 1); exit 1; }; }
15964 ;;
15965 esac
15966 done; }
15967
15968 ac_builddir=.
15969
15970 if test "$ac_dir" != .; then
15971 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15972 # A "../" for each directory in $ac_dir_suffix.
15973 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15974 else
15975 ac_dir_suffix= ac_top_builddir=
15976 fi
15977
15978 case $srcdir in
15979 .) # No --srcdir option. We are building in place.
15980 ac_srcdir=.
15981 if test -z "$ac_top_builddir"; then
15982 ac_top_srcdir=.
15983 else
15984 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15985 fi ;;
15986 [\\/]* | ?:[\\/]* ) # Absolute path.
15987 ac_srcdir=$srcdir$ac_dir_suffix;
15988 ac_top_srcdir=$srcdir ;;
15989 *) # Relative path.
15990 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15991 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15992 esac
15993 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15994 # absolute.
15995 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15996 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
15997 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15998 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15999
16000
16001 case $INSTALL in
16002 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16003 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16004 esac
16005
16006 if test x"$ac_file" != x-; then
16007 { echo "$as_me:$LINENO: creating $ac_file" >&5
16008 echo "$as_me: creating $ac_file" >&6;}
16009 rm -f "$ac_file"
16010 fi
16011 # Let's still pretend it is `configure' which instantiates (i.e., don't
16012 # use $as_me), people would be surprised to read:
16013 # /* config.h. Generated by config.status. */
16014 if test x"$ac_file" = x-; then
16015 configure_input=
16016 else
16017 configure_input="$ac_file. "
16018 fi
16019 configure_input=$configure_input"Generated from `echo $ac_file_in |
16020 sed 's,.*/,,'` by configure."
16021
16022 # First look for the input files in the build tree, otherwise in the
16023 # src tree.
16024 ac_file_inputs=`IFS=:
16025 for f in $ac_file_in; do
16026 case $f in
16027 -) echo $tmp/stdin ;;
16028 [\\/$]*)
16029 # Absolute (can't be DOS-style, as IFS=:)
16030 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16031 echo "$as_me: error: cannot find input file: $f" >&2;}
16032 { (exit 1); exit 1; }; }
16033 echo $f;;
16034 *) # Relative
16035 if test -f "$f"; then
16036 # Build tree
16037 echo $f
16038 elif test -f "$srcdir/$f"; then
16039 # Source tree
16040 echo $srcdir/$f
16041 else
16042 # /dev/null tree
16043 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16044 echo "$as_me: error: cannot find input file: $f" >&2;}
16045 { (exit 1); exit 1; }; }
16046 fi;;
16047 esac
16048 done` || { (exit 1); exit 1; }
16049 _ACEOF
16050 cat >>$CONFIG_STATUS <<_ACEOF
16051 sed "$ac_vpsub
16052 $extrasub
16053 _ACEOF
16054 cat >>$CONFIG_STATUS <<\_ACEOF
16055 :t
16056 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16057 s,@configure_input@,$configure_input,;t t
16058 s,@srcdir@,$ac_srcdir,;t t
16059 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16060 s,@top_srcdir@,$ac_top_srcdir,;t t
16061 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16062 s,@builddir@,$ac_builddir,;t t
16063 s,@abs_builddir@,$ac_abs_builddir,;t t
16064 s,@top_builddir@,$ac_top_builddir,;t t
16065 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16066 s,@INSTALL@,$ac_INSTALL,;t t
16067 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16068 rm -f $tmp/stdin
16069 if test x"$ac_file" != x-; then
16070 mv $tmp/out $ac_file
16071 else
16072 cat $tmp/out
16073 rm -f $tmp/out
16074 fi
16075
16076 done
16077 _ACEOF
16078 cat >>$CONFIG_STATUS <<\_ACEOF
16079
16080 #
16081 # CONFIG_COMMANDS section.
16082 #
16083 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16084 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16085 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16086 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16087 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16088 X"$ac_dest" : 'X\(//\)[^/]' \| \
16089 X"$ac_dest" : 'X\(//\)$' \| \
16090 X"$ac_dest" : 'X\(/\)' \| \
16091 . : '\(.\)' 2>/dev/null ||
16092 echo X"$ac_dest" |
16093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16095 /^X\(\/\/\)$/{ s//\1/; q; }
16096 /^X\(\/\).*/{ s//\1/; q; }
16097 s/.*/./; q'`
16098 ac_builddir=.
16099
16100 if test "$ac_dir" != .; then
16101 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16102 # A "../" for each directory in $ac_dir_suffix.
16103 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16104 else
16105 ac_dir_suffix= ac_top_builddir=
16106 fi
16107
16108 case $srcdir in
16109 .) # No --srcdir option. We are building in place.
16110 ac_srcdir=.
16111 if test -z "$ac_top_builddir"; then
16112 ac_top_srcdir=.
16113 else
16114 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16115 fi ;;
16116 [\\/]* | ?:[\\/]* ) # Absolute path.
16117 ac_srcdir=$srcdir$ac_dir_suffix;
16118 ac_top_srcdir=$srcdir ;;
16119 *) # Relative path.
16120 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16121 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16122 esac
16123 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16124 # absolute.
16125 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16126 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16127 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16128 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16129
16130
16131 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16132 echo "$as_me: executing $ac_dest commands" >&6;}
16133 case $ac_dest in
16134 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16135 # Strip MF so we end up with the name of the file.
16136 mf=`echo "$mf" | sed -e 's/:.*$//'`
16137 if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
16138 dirpart=`(dirname "$mf") 2>/dev/null ||
16139 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16140 X"$mf" : 'X\(//\)[^/]' \| \
16141 X"$mf" : 'X\(//\)$' \| \
16142 X"$mf" : 'X\(/\)' \| \
16143 . : '\(.\)' 2>/dev/null ||
16144 echo X"$mf" |
16145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16147 /^X\(\/\/\)$/{ s//\1/; q; }
16148 /^X\(\/\).*/{ s//\1/; q; }
16149 s/.*/./; q'`
16150 else
16151 continue
16152 fi
16153 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
16154 # Extract the definition of DEP_FILES from the Makefile without
16155 # running `make'.
16156 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
16157 test -z "$DEPDIR" && continue
16158 # When using ansi2knr, U may be empty or an underscore; expand it
16159 U=`sed -n -e '/^U = / s///p' < "$mf"`
16160 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
16161 # We invoke sed twice because it is the simplest approach to
16162 # changing $(DEPDIR) to its actual value in the expansion.
16163 for file in `sed -n -e '
16164 /^DEP_FILES = .*\\\\$/ {
16165 s/^DEP_FILES = //
16166 :loop
16167 s/\\\\$//
16168 p
16169 n
16170 /\\\\$/ b loop
16171 p
16172 }
16173 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
16174 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16175 # Make sure the directory exists.
16176 test -f "$dirpart/$file" && continue
16177 fdir=`(dirname "$file") 2>/dev/null ||
16178 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16179 X"$file" : 'X\(//\)[^/]' \| \
16180 X"$file" : 'X\(//\)$' \| \
16181 X"$file" : 'X\(/\)' \| \
16182 . : '\(.\)' 2>/dev/null ||
16183 echo X"$file" |
16184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16185 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16186 /^X\(\/\/\)$/{ s//\1/; q; }
16187 /^X\(\/\).*/{ s//\1/; q; }
16188 s/.*/./; q'`
16189 { case $dirpart/$fdir in
16190 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16191 *) as_incr_dir=.;;
16192 esac
16193 as_dummy=$dirpart/$fdir
16194 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16195 case $as_mkdir_dir in
16196 # Skip DOS drivespec
16197 ?:) as_incr_dir=$as_mkdir_dir ;;
16198 *)
16199 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16200 test -d "$as_incr_dir" ||
16201 mkdir "$as_incr_dir" ||
16202 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
16203 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
16204 { (exit 1); exit 1; }; }
16205 ;;
16206 esac
16207 done; }
16208
16209 # echo "creating $dirpart/$file"
16210 echo '# dummy' > "$dirpart/$file"
16211 done
16212 done
16213 ;;
16214 esac
16215 done
16216 _ACEOF
16217
16218 cat >>$CONFIG_STATUS <<\_ACEOF
16219
16220 { (exit 0); exit 0; }
16221 _ACEOF
16222 chmod +x $CONFIG_STATUS
16223 ac_clean_files=$ac_clean_files_save
16224
16225
16226 # configure is writing to config.log, and then calls config.status.
16227 # config.status does its own redirection, appending to config.log.
16228 # Unfortunately, on DOS this fails, as config.log is still kept open
16229 # by configure, so config.status won't be able to write to it; its
16230 # output is simply discarded. So we exec the FD to /dev/null,
16231 # effectively closing config.log, so it can be properly (re)opened and
16232 # appended to by config.status. When coming back to configure, we
16233 # need to make the FD available again.
16234 if test "$no_create" != yes; then
16235 ac_cs_success=:
16236 exec 5>/dev/null
16237 $SHELL $CONFIG_STATUS || ac_cs_success=false
16238 exec 5>>config.log
16239 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16240 # would make configure fail if this is the last instruction.
16241 $ac_cs_success || { (exit 1); exit 1; }
16242 fi
16243
16244 #
16245 # CONFIG_SUBDIRS section.
16246 #
16247 if test "$no_recursion" != yes; then
16248
16249 # Remove --cache-file and --srcdir arguments so they do not pile up.
16250 ac_sub_configure_args=
16251 ac_prev=
16252 for ac_arg in $ac_configure_args; do
16253 if test -n "$ac_prev"; then
16254 ac_prev=
16255 continue
16256 fi
16257 case $ac_arg in
16258 -cache-file | --cache-file | --cache-fil | --cache-fi \
16259 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16260 ac_prev=cache_file ;;
16261 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16262 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16263 | --c=*)
16264 ;;
16265 --config-cache | -C)
16266 ;;
16267 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16268 ac_prev=srcdir ;;
16269 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16270 ;;
16271 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16272 ac_prev=prefix ;;
16273 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16274 ;;
16275 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
16276 esac
16277 done
16278
16279 # Always prepend --prefix to ensure using the same prefix
16280 # in subdir configurations.
16281 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
16282
16283 ac_popdir=`pwd`
16284 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16285
16286 # Do not complain, so a configure script can configure whichever
16287 # parts of a large source tree are present.
16288 test -d $srcdir/$ac_dir || continue
16289
16290 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
16291 echo "$as_me: configuring in $ac_dir" >&6;}
16292 { case "$ac_dir" in
16293 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16294 *) as_incr_dir=.;;
16295 esac
16296 as_dummy="$ac_dir"
16297 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16298 case $as_mkdir_dir in
16299 # Skip DOS drivespec
16300 ?:) as_incr_dir=$as_mkdir_dir ;;
16301 *)
16302 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16303 test -d "$as_incr_dir" ||
16304 mkdir "$as_incr_dir" ||
16305 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16306 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16307 { (exit 1); exit 1; }; }
16308 ;;
16309 esac
16310 done; }
16311
16312 ac_builddir=.
16313
16314 if test "$ac_dir" != .; then
16315 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16316 # A "../" for each directory in $ac_dir_suffix.
16317 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16318 else
16319 ac_dir_suffix= ac_top_builddir=
16320 fi
16321
16322 case $srcdir in
16323 .) # No --srcdir option. We are building in place.
16324 ac_srcdir=.
16325 if test -z "$ac_top_builddir"; then
16326 ac_top_srcdir=.
16327 else
16328 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16329 fi ;;
16330 [\\/]* | ?:[\\/]* ) # Absolute path.
16331 ac_srcdir=$srcdir$ac_dir_suffix;
16332 ac_top_srcdir=$srcdir ;;
16333 *) # Relative path.
16334 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16335 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16336 esac
16337 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16338 # absolute.
16339 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16340 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16341 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16342 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16343
16344
16345 cd $ac_dir
16346
16347 # Check for guested configure; otherwise get Cygnus style configure.
16348 if test -f $ac_srcdir/configure.gnu; then
16349 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
16350 elif test -f $ac_srcdir/configure; then
16351 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
16352 elif test -f $ac_srcdir/configure.in; then
16353 ac_sub_configure=$ac_configure
16354 else
16355 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
16356 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16357 ac_sub_configure=
16358 fi
16359
16360 # The recursion is here.
16361 if test -n "$ac_sub_configure"; then
16362 # Make the cache file name correct relative to the subdirectory.
16363 case $cache_file in
16364 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16365 *) # Relative path.
16366 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
16367 esac
16368
16369 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16370 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16371 # The eval makes quoting arguments work.
16372 eval $ac_sub_configure $ac_sub_configure_args \
16373 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
16374 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
16375 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
16376 { (exit 1); exit 1; }; }
16377 fi
16378
16379 cd $ac_popdir
16380 done
16381 fi
16382
This page took 0.865569 seconds and 5 git commands to generate.