Codebase list libetpan / 0b3fe8e
Import Upstream version 0.36 Ricardo Mones 5 years ago
67 changed file(s) with 24548 addition(s) and 664 deletion(s). Raw diff Collapse all Expand all
0 aclocal.m4
1 autom4te.cache
2 config.guess
3 config.h
4 config.h.in
5 config.log
6 config.status
7 config.sub
8 configure
9 include
10 libetpan-config
11 libetpan-config.h
12 libtool
13 ltmain.sh
14 Makefile
15 Rules
0 2005-02-22 - libetpan-0.36 - hoa
1
2 * release 0.36 - Silver Drop
3
4 * memory leak
5 * fixed maildir support
6
7 2005-17-02 - libetpan-0.35cvs4 - hoa
8
9 * src/engine/mailprivacy.c
10 does not check for owner of the folder:
11 this is the responsibility of the application.
12
13 2005-31-01 - libetpan-0.35cvs3 - hoa
14
15 * src/data-types/mmapstring.c
16 * src/engine/mailengine.c
17 reverted to initial in code in non-debug mode.
18 fixed thread safety.
19
20 2005-29-01 - libetpan-0.35cvs2 - hoa
21
22 * src/driver/implementation/imap/imapdriver_cached.c
23 * src/low-level/mime/mailmime_types.c
24 fixed some memory leaks.
25
26 2005-28-01 - libetpan-0.35cvs1 - hoa
27
28 * src/data-types/mailsem.c
29 support for Cygwin.
30
31 * src/driver/implementation/db/dbdriver.c
32 removed a log.
33
34 * src/driver/implementation/nntp/nntpdriver_cached.c
35 * src/engine/mailengine.c
36 fixed some memory leaks.
37
38 * src/engine/mailprivacy_tools.c
39 internal version of basename() can be used.
40
41 * src/low-level/maildir/maildir.c
42 fixed update of Maildir mailbox.
43
44 * src/low-level/pop3/mailpop3.[ch]
45 fixed data types to non-fixed size integers.
46
047 2004-12-28 - libetpan-0.35 - hoa
148
249 * release 0.35 - Dimebag Darrell
2222 SUBDIRS = src
2323
2424 #TARGET = libetpan.la
25 #VERSINFO = 2:2:1
25 #VERSINFO = 2:3:1
2626 #CC = gcc
2727 #LDFLAGS = -llockfile -lssl -lcrypto -pthread -ldb-4.2
2828
0 2005-02-22 - libetpan-0.36 - hoa
1
2 * release 0.36 - Silver Drop
3
4 * memory leak
5 * fixed maildir support
6
07 2004-12-28 - libetpan-0.35 - hoa
18
29 libEtPan! - a mail library
0 @%:@! /bin/sh
1 @%:@ Guess values for system-dependent variables and create Makefiles.
2 @%:@ Generated by GNU Autoconf 2.59.
3 @%:@
4 @%:@ Copyright (C) 2003 Free Software Foundation, Inc.
5 @%:@ This configure script is free software; the Free Software Foundation
6 @%:@ gives unlimited permission to copy, distribute and modify it.
7 ## --------------------- ##
8 ## M4sh Initialization. ##
9 ## --------------------- ##
10
11 # Be Bourne compatible
12 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13 emulate sh
14 NULLCMD=:
15 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16 # is contrary to our usage. Disable this feature.
17 alias -g '${1+"$@"}'='"$@"'
18 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19 set -o posix
20 fi
21 DUALCASE=1; export DUALCASE # for MKS sh
22
23 # Support unset when possible.
24 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25 as_unset=unset
26 else
27 as_unset=false
28 fi
29
30
31 # Work around bugs in pre-3.0 UWIN ksh.
32 $as_unset ENV MAIL MAILPATH
33 PS1='$ '
34 PS2='> '
35 PS4='+ '
36
37 # NLS nuisances.
38 for as_var in \
39 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41 LC_TELEPHONE LC_TIME
42 do
43 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44 eval $as_var=C; export $as_var
45 else
46 $as_unset $as_var
47 fi
48 done
49
50 # Required to use basename.
51 if expr a : '\(a\)' >/dev/null 2>&1; then
52 as_expr=expr
53 else
54 as_expr=false
55 fi
56
57 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
58 as_basename=basename
59 else
60 as_basename=false
61 fi
62
63
64 # Name of the executable.
65 as_me=`$as_basename "$0" ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
70 echo X/"$0" |
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
74 s/.*/./; q'`
75
76
77 # PATH needs CR, and LINENO needs CR and PATH.
78 # Avoid depending upon Character Ranges.
79 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
80 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
81 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
82 as_cr_digits='0123456789'
83 as_cr_alnum=$as_cr_Letters$as_cr_digits
84
85 # The user is always right.
86 if test "${PATH_SEPARATOR+set}" != set; then
87 echo "#! /bin/sh" >conf$$.sh
88 echo "exit 0" >>conf$$.sh
89 chmod +x conf$$.sh
90 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
91 PATH_SEPARATOR=';'
92 else
93 PATH_SEPARATOR=:
94 fi
95 rm -f conf$$.sh
96 fi
97
98
99 as_lineno_1=$LINENO
100 as_lineno_2=$LINENO
101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102 test "x$as_lineno_1" != "x$as_lineno_2" &&
103 test "x$as_lineno_3" = "x$as_lineno_2" || {
104 # Find who we are. Look in the path if we contain no path at all
105 # relative or not.
106 case $0 in
107 *[\\/]* ) as_myself=$0 ;;
108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
109 for as_dir in $PATH
110 do
111 IFS=$as_save_IFS
112 test -z "$as_dir" && as_dir=.
113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114 done
115
116 ;;
117 esac
118 # We did not find ourselves, most probably we were run as `sh COMMAND'
119 # in which case we are not to be found in the path.
120 if test "x$as_myself" = x; then
121 as_myself=$0
122 fi
123 if test ! -f "$as_myself"; then
124 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125 { (exit 1); exit 1; }; }
126 fi
127 case $CONFIG_SHELL in
128 '')
129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 do
132 IFS=$as_save_IFS
133 test -z "$as_dir" && as_dir=.
134 for as_base in sh bash ksh sh5; do
135 case $as_dir in
136 /*)
137 if ("$as_dir/$as_base" -c '
138 as_lineno_1=$LINENO
139 as_lineno_2=$LINENO
140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141 test "x$as_lineno_1" != "x$as_lineno_2" &&
142 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
143 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
144 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
145 CONFIG_SHELL=$as_dir/$as_base
146 export CONFIG_SHELL
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148 fi;;
149 esac
150 done
151 done
152 ;;
153 esac
154
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
164 sed '
165 N
166 s,$,-,
167 : loop
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 t loop
170 s,-$,,
171 s,^['$as_cr_digits']*\n,,
172 ' >$as_me.lineno &&
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
176
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
180 . ./$as_me.lineno
181 # Exit status is that of the last command.
182 exit
183 }
184
185
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T=' ' ;;
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 esac
192
193 if expr a : '\(a\)' >/dev/null 2>&1; then
194 as_expr=expr
195 else
196 as_expr=false
197 fi
198
199 rm -f conf$$ conf$$.exe conf$$.file
200 echo >conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
206 as_ln_s='cp -p'
207 else
208 as_ln_s='ln -s'
209 fi
210 elif ln conf$$.file conf$$ 2>/dev/null; then
211 as_ln_s=ln
212 else
213 as_ln_s='cp -p'
214 fi
215 rm -f conf$$ conf$$.exe conf$$.file
216
217 if mkdir -p . 2>/dev/null; then
218 as_mkdir_p=:
219 else
220 test -d ./-p && rmdir ./-p
221 as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243
244 # Check that we are running under the correct shell.
245 SHELL=${CONFIG_SHELL-/bin/sh}
246
247 case X$ECHO in
248 X*--fallback-echo)
249 # Remove one level of quotation (which was required for Make).
250 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
251 ;;
252 esac
253
254 echo=${ECHO-echo}
255 if test "X$1" = X--no-reexec; then
256 # Discard the --no-reexec flag, and continue.
257 shift
258 elif test "X$1" = X--fallback-echo; then
259 # Avoid inline document here, it may be left over
260 :
261 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
262 # Yippee, $echo works!
263 :
264 else
265 # Restart under the correct shell.
266 exec $SHELL "$0" --no-reexec ${1+"$@"}
267 fi
268
269 if test "X$1" = X--fallback-echo; then
270 # used as fallback echo
271 shift
272 cat <<EOF
273 $*
274 EOF
275 exit 0
276 fi
277
278 # The HP-UX ksh and POSIX shell print the target directory to stdout
279 # if CDPATH is set.
280 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
281
282 if test -z "$ECHO"; then
283 if test "X${echo_test_string+set}" != Xset; then
284 # find a string as large as possible, as long as the shell can cope with it
285 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
286 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
287 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
288 echo_test_string="`eval $cmd`" &&
289 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 echo="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$echo" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 echo='print -r'
327 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 echo='printf %s\n'
338 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 echo="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 echo=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 ECHO=$echo
386 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 tagnames=${tagnames+${tagnames},}CXX
394
395 tagnames=${tagnames+${tagnames},}F77
396
397 # Name of the host.
398 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
399 # so uname gets run too.
400 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
401
402 exec 6>&1
403
404 #
405 # Initializations.
406 #
407 ac_default_prefix=/usr/local
408 ac_config_libobj_dir=.
409 cross_compiling=no
410 subdirs=
411 MFLAGS=
412 MAKEFLAGS=
413 SHELL=${CONFIG_SHELL-/bin/sh}
414
415 # Maximum number of lines to put in a shell here document.
416 # This variable seems obsolete. It should probably be removed, and
417 # only ac_max_sed_lines should be used.
418 : ${ac_max_here_lines=38}
419
420 # Identity of this package.
421 PACKAGE_NAME=
422 PACKAGE_TARNAME=
423 PACKAGE_VERSION=
424 PACKAGE_STRING=
425 PACKAGE_BUGREPORT=
426
427 ac_unique_file="src/main/libetpan_version.h.in"
428 # Factoring default headers for most tests.
429 ac_includes_default="\
430 #include <stdio.h>
431 #if HAVE_SYS_TYPES_H
432 # include <sys/types.h>
433 #endif
434 #if HAVE_SYS_STAT_H
435 # include <sys/stat.h>
436 #endif
437 #if STDC_HEADERS
438 # include <stdlib.h>
439 # include <stddef.h>
440 #else
441 # if HAVE_STDLIB_H
442 # include <stdlib.h>
443 # endif
444 #endif
445 #if HAVE_STRING_H
446 # if !STDC_HEADERS && HAVE_MEMORY_H
447 # include <memory.h>
448 # endif
449 # include <string.h>
450 #endif
451 #if HAVE_STRINGS_H
452 # include <strings.h>
453 #endif
454 #if HAVE_INTTYPES_H
455 # include <inttypes.h>
456 #else
457 # if HAVE_STDINT_H
458 # include <stdint.h>
459 # endif
460 #endif
461 #if HAVE_UNISTD_H
462 # include <unistd.h>
463 #endif"
464
465 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS API_VERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL SET_MAKE SSLLIBS LIBICONV DBLIB LIBSUFFIX REENTRANT VERSION_MAJOR VERSION_MINOR VERSION LIB@&t@OBJS LTLIBOBJS'
466 ac_subst_files=''
467
468 # Initialize some variables set by options.
469 ac_init_help=
470 ac_init_version=false
471 # The variables have the same names as the options, with
472 # dashes changed to underlines.
473 cache_file=/dev/null
474 exec_prefix=NONE
475 no_create=
476 no_recursion=
477 prefix=NONE
478 program_prefix=NONE
479 program_suffix=NONE
480 program_transform_name=s,x,x,
481 silent=
482 site=
483 srcdir=
484 verbose=
485 x_includes=NONE
486 x_libraries=NONE
487
488 # Installation directory options.
489 # These are left unexpanded so users can "make install exec_prefix=/foo"
490 # and all the variables that are supposed to be based on exec_prefix
491 # by default will actually change.
492 # Use braces instead of parens because sh, perl, etc. also accept them.
493 bindir='${exec_prefix}/bin'
494 sbindir='${exec_prefix}/sbin'
495 libexecdir='${exec_prefix}/libexec'
496 datadir='${prefix}/share'
497 sysconfdir='${prefix}/etc'
498 sharedstatedir='${prefix}/com'
499 localstatedir='${prefix}/var'
500 libdir='${exec_prefix}/lib'
501 includedir='${prefix}/include'
502 oldincludedir='/usr/include'
503 infodir='${prefix}/info'
504 mandir='${prefix}/man'
505
506 ac_prev=
507 for ac_option
508 do
509 # If the previous option needs an argument, assign it.
510 if test -n "$ac_prev"; then
511 eval "$ac_prev=\$ac_option"
512 ac_prev=
513 continue
514 fi
515
516 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
517
518 # Accept the important Cygnus configure options, so we can diagnose typos.
519
520 case $ac_option in
521
522 -bindir | --bindir | --bindi | --bind | --bin | --bi)
523 ac_prev=bindir ;;
524 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
525 bindir=$ac_optarg ;;
526
527 -build | --build | --buil | --bui | --bu)
528 ac_prev=build_alias ;;
529 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
530 build_alias=$ac_optarg ;;
531
532 -cache-file | --cache-file | --cache-fil | --cache-fi \
533 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534 ac_prev=cache_file ;;
535 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537 cache_file=$ac_optarg ;;
538
539 --config-cache | -C)
540 cache_file=config.cache ;;
541
542 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543 ac_prev=datadir ;;
544 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545 | --da=*)
546 datadir=$ac_optarg ;;
547
548 -disable-* | --disable-*)
549 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553 { (exit 1); exit 1; }; }
554 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555 eval "enable_$ac_feature=no" ;;
556
557 -enable-* | --enable-*)
558 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559 # Reject names that are not valid shell variable names.
560 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562 { (exit 1); exit 1; }; }
563 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
564 case $ac_option in
565 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
566 *) ac_optarg=yes ;;
567 esac
568 eval "enable_$ac_feature='$ac_optarg'" ;;
569
570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572 | --exec | --exe | --ex)
573 ac_prev=exec_prefix ;;
574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576 | --exec=* | --exe=* | --ex=*)
577 exec_prefix=$ac_optarg ;;
578
579 -gas | --gas | --ga | --g)
580 # Obsolete; use --with-gas.
581 with_gas=yes ;;
582
583 -help | --help | --hel | --he | -h)
584 ac_init_help=long ;;
585 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586 ac_init_help=recursive ;;
587 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588 ac_init_help=short ;;
589
590 -host | --host | --hos | --ho)
591 ac_prev=host_alias ;;
592 -host=* | --host=* | --hos=* | --ho=*)
593 host_alias=$ac_optarg ;;
594
595 -includedir | --includedir | --includedi | --included | --include \
596 | --includ | --inclu | --incl | --inc)
597 ac_prev=includedir ;;
598 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599 | --includ=* | --inclu=* | --incl=* | --inc=*)
600 includedir=$ac_optarg ;;
601
602 -infodir | --infodir | --infodi | --infod | --info | --inf)
603 ac_prev=infodir ;;
604 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605 infodir=$ac_optarg ;;
606
607 -libdir | --libdir | --libdi | --libd)
608 ac_prev=libdir ;;
609 -libdir=* | --libdir=* | --libdi=* | --libd=*)
610 libdir=$ac_optarg ;;
611
612 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613 | --libexe | --libex | --libe)
614 ac_prev=libexecdir ;;
615 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616 | --libexe=* | --libex=* | --libe=*)
617 libexecdir=$ac_optarg ;;
618
619 -localstatedir | --localstatedir | --localstatedi | --localstated \
620 | --localstate | --localstat | --localsta | --localst \
621 | --locals | --local | --loca | --loc | --lo)
622 ac_prev=localstatedir ;;
623 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
625 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626 localstatedir=$ac_optarg ;;
627
628 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
629 ac_prev=mandir ;;
630 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631 mandir=$ac_optarg ;;
632
633 -nfp | --nfp | --nf)
634 # Obsolete; use --without-fp.
635 with_fp=no ;;
636
637 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
638 | --no-cr | --no-c | -n)
639 no_create=yes ;;
640
641 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
642 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
643 no_recursion=yes ;;
644
645 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647 | --oldin | --oldi | --old | --ol | --o)
648 ac_prev=oldincludedir ;;
649 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652 oldincludedir=$ac_optarg ;;
653
654 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
655 ac_prev=prefix ;;
656 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
657 prefix=$ac_optarg ;;
658
659 -program-prefix | --program-prefix | --program-prefi | --program-pref \
660 | --program-pre | --program-pr | --program-p)
661 ac_prev=program_prefix ;;
662 -program-prefix=* | --program-prefix=* | --program-prefi=* \
663 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664 program_prefix=$ac_optarg ;;
665
666 -program-suffix | --program-suffix | --program-suffi | --program-suff \
667 | --program-suf | --program-su | --program-s)
668 ac_prev=program_suffix ;;
669 -program-suffix=* | --program-suffix=* | --program-suffi=* \
670 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671 program_suffix=$ac_optarg ;;
672
673 -program-transform-name | --program-transform-name \
674 | --program-transform-nam | --program-transform-na \
675 | --program-transform-n | --program-transform- \
676 | --program-transform | --program-transfor \
677 | --program-transfo | --program-transf \
678 | --program-trans | --program-tran \
679 | --progr-tra | --program-tr | --program-t)
680 ac_prev=program_transform_name ;;
681 -program-transform-name=* | --program-transform-name=* \
682 | --program-transform-nam=* | --program-transform-na=* \
683 | --program-transform-n=* | --program-transform-=* \
684 | --program-transform=* | --program-transfor=* \
685 | --program-transfo=* | --program-transf=* \
686 | --program-trans=* | --program-tran=* \
687 | --progr-tra=* | --program-tr=* | --program-t=*)
688 program_transform_name=$ac_optarg ;;
689
690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
691 | -silent | --silent | --silen | --sile | --sil)
692 silent=yes ;;
693
694 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
695 ac_prev=sbindir ;;
696 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
697 | --sbi=* | --sb=*)
698 sbindir=$ac_optarg ;;
699
700 -sharedstatedir | --sharedstatedir | --sharedstatedi \
701 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702 | --sharedst | --shareds | --shared | --share | --shar \
703 | --sha | --sh)
704 ac_prev=sharedstatedir ;;
705 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
708 | --sha=* | --sh=*)
709 sharedstatedir=$ac_optarg ;;
710
711 -site | --site | --sit)
712 ac_prev=site ;;
713 -site=* | --site=* | --sit=*)
714 site=$ac_optarg ;;
715
716 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
717 ac_prev=srcdir ;;
718 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
719 srcdir=$ac_optarg ;;
720
721 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722 | --syscon | --sysco | --sysc | --sys | --sy)
723 ac_prev=sysconfdir ;;
724 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726 sysconfdir=$ac_optarg ;;
727
728 -target | --target | --targe | --targ | --tar | --ta | --t)
729 ac_prev=target_alias ;;
730 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731 target_alias=$ac_optarg ;;
732
733 -v | -verbose | --verbose | --verbos | --verbo | --verb)
734 verbose=yes ;;
735
736 -version | --version | --versio | --versi | --vers | -V)
737 ac_init_version=: ;;
738
739 -with-* | --with-*)
740 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741 # Reject names that are not valid shell variable names.
742 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743 { echo "$as_me: error: invalid package name: $ac_package" >&2
744 { (exit 1); exit 1; }; }
745 ac_package=`echo $ac_package| sed 's/-/_/g'`
746 case $ac_option in
747 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
748 *) ac_optarg=yes ;;
749 esac
750 eval "with_$ac_package='$ac_optarg'" ;;
751
752 -without-* | --without-*)
753 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754 # Reject names that are not valid shell variable names.
755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756 { echo "$as_me: error: invalid package name: $ac_package" >&2
757 { (exit 1); exit 1; }; }
758 ac_package=`echo $ac_package | sed 's/-/_/g'`
759 eval "with_$ac_package=no" ;;
760
761 --x)
762 # Obsolete; use --with-x.
763 with_x=yes ;;
764
765 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766 | --x-incl | --x-inc | --x-in | --x-i)
767 ac_prev=x_includes ;;
768 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770 x_includes=$ac_optarg ;;
771
772 -x-libraries | --x-libraries | --x-librarie | --x-librari \
773 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774 ac_prev=x_libraries ;;
775 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777 x_libraries=$ac_optarg ;;
778
779 -*) { echo "$as_me: error: unrecognized option: $ac_option
780 Try \`$0 --help' for more information." >&2
781 { (exit 1); exit 1; }; }
782 ;;
783
784 *=*)
785 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786 # Reject names that are not valid shell variable names.
787 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789 { (exit 1); exit 1; }; }
790 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791 eval "$ac_envvar='$ac_optarg'"
792 export $ac_envvar ;;
793
794 *)
795 # FIXME: should be removed in autoconf 3.0.
796 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
800 ;;
801
802 esac
803 done
804
805 if test -n "$ac_prev"; then
806 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807 { echo "$as_me: error: missing argument to $ac_option" >&2
808 { (exit 1); exit 1; }; }
809 fi
810
811 # Be sure to have absolute paths.
812 for ac_var in exec_prefix prefix
813 do
814 eval ac_val=$`echo $ac_var`
815 case $ac_val in
816 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818 { (exit 1); exit 1; }; };;
819 esac
820 done
821
822 # Be sure to have absolute paths.
823 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824 localstatedir libdir includedir oldincludedir infodir mandir
825 do
826 eval ac_val=$`echo $ac_var`
827 case $ac_val in
828 [\\/$]* | ?:[\\/]* ) ;;
829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830 { (exit 1); exit 1; }; };;
831 esac
832 done
833
834 # There might be people who depend on the old broken behavior: `$host'
835 # used to hold the argument of --host etc.
836 # FIXME: To remove some day.
837 build=$build_alias
838 host=$host_alias
839 target=$target_alias
840
841 # FIXME: To remove some day.
842 if test "x$host_alias" != x; then
843 if test "x$build_alias" = x; then
844 cross_compiling=maybe
845 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846 If a cross compiler is detected then cross compile mode will be used." >&2
847 elif test "x$build_alias" != "x$host_alias"; then
848 cross_compiling=yes
849 fi
850 fi
851
852 ac_tool_prefix=
853 test -n "$host_alias" && ac_tool_prefix=$host_alias-
854
855 test "$silent" = yes && exec 6>/dev/null
856
857
858 # Find the source files, if location was not specified.
859 if test -z "$srcdir"; then
860 ac_srcdir_defaulted=yes
861 # Try the directory containing this script, then its parent.
862 ac_confdir=`(dirname "$0") 2>/dev/null ||
863 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864 X"$0" : 'X\(//\)[^/]' \| \
865 X"$0" : 'X\(//\)$' \| \
866 X"$0" : 'X\(/\)' \| \
867 . : '\(.\)' 2>/dev/null ||
868 echo X"$0" |
869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871 /^X\(\/\/\)$/{ s//\1/; q; }
872 /^X\(\/\).*/{ s//\1/; q; }
873 s/.*/./; q'`
874 srcdir=$ac_confdir
875 if test ! -r $srcdir/$ac_unique_file; then
876 srcdir=..
877 fi
878 else
879 ac_srcdir_defaulted=no
880 fi
881 if test ! -r $srcdir/$ac_unique_file; then
882 if test "$ac_srcdir_defaulted" = yes; then
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884 { (exit 1); exit 1; }; }
885 else
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887 { (exit 1); exit 1; }; }
888 fi
889 fi
890 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892 { (exit 1); exit 1; }; }
893 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894 ac_env_build_alias_set=${build_alias+set}
895 ac_env_build_alias_value=$build_alias
896 ac_cv_env_build_alias_set=${build_alias+set}
897 ac_cv_env_build_alias_value=$build_alias
898 ac_env_host_alias_set=${host_alias+set}
899 ac_env_host_alias_value=$host_alias
900 ac_cv_env_host_alias_set=${host_alias+set}
901 ac_cv_env_host_alias_value=$host_alias
902 ac_env_target_alias_set=${target_alias+set}
903 ac_env_target_alias_value=$target_alias
904 ac_cv_env_target_alias_set=${target_alias+set}
905 ac_cv_env_target_alias_value=$target_alias
906 ac_env_CC_set=${CC+set}
907 ac_env_CC_value=$CC
908 ac_cv_env_CC_set=${CC+set}
909 ac_cv_env_CC_value=$CC
910 ac_env_CFLAGS_set=${CFLAGS+set}
911 ac_env_CFLAGS_value=$CFLAGS
912 ac_cv_env_CFLAGS_set=${CFLAGS+set}
913 ac_cv_env_CFLAGS_value=$CFLAGS
914 ac_env_LDFLAGS_set=${LDFLAGS+set}
915 ac_env_LDFLAGS_value=$LDFLAGS
916 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_cv_env_LDFLAGS_value=$LDFLAGS
918 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919 ac_env_CPPFLAGS_value=$CPPFLAGS
920 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922 ac_env_CPP_set=${CPP+set}
923 ac_env_CPP_value=$CPP
924 ac_cv_env_CPP_set=${CPP+set}
925 ac_cv_env_CPP_value=$CPP
926 ac_env_CXX_set=${CXX+set}
927 ac_env_CXX_value=$CXX
928 ac_cv_env_CXX_set=${CXX+set}
929 ac_cv_env_CXX_value=$CXX
930 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
931 ac_env_CXXFLAGS_value=$CXXFLAGS
932 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
934 ac_env_CXXCPP_set=${CXXCPP+set}
935 ac_env_CXXCPP_value=$CXXCPP
936 ac_cv_env_CXXCPP_set=${CXXCPP+set}
937 ac_cv_env_CXXCPP_value=$CXXCPP
938 ac_env_F77_set=${F77+set}
939 ac_env_F77_value=$F77
940 ac_cv_env_F77_set=${F77+set}
941 ac_cv_env_F77_value=$F77
942 ac_env_FFLAGS_set=${FFLAGS+set}
943 ac_env_FFLAGS_value=$FFLAGS
944 ac_cv_env_FFLAGS_set=${FFLAGS+set}
945 ac_cv_env_FFLAGS_value=$FFLAGS
946
947 #
948 # Report the --help message.
949 #
950 if test "$ac_init_help" = "long"; then
951 # Omit some internal or obsolete options to make the list less imposing.
952 # This message is too long to be a string in the A/UX 3.1 sh.
953 cat <<_ACEOF
954 \`configure' configures this package to adapt to many kinds of systems.
955
956 Usage: $0 [OPTION]... [VAR=VALUE]...
957
958 To assign environment variables (e.g., CC, CFLAGS...), specify them as
959 VAR=VALUE. See below for descriptions of some of the useful variables.
960
961 Defaults for the options are specified in brackets.
962
963 Configuration:
964 -h, --help display this help and exit
965 --help=short display options specific to this package
966 --help=recursive display the short help of all the included packages
967 -V, --version display version information and exit
968 -q, --quiet, --silent do not print \`checking...' messages
969 --cache-file=FILE cache test results in FILE [disabled]
970 -C, --config-cache alias for \`--cache-file=config.cache'
971 -n, --no-create do not create output files
972 --srcdir=DIR find the sources in DIR [configure dir or \`..']
973
974 _ACEOF
975
976 cat <<_ACEOF
977 Installation directories:
978 --prefix=PREFIX install architecture-independent files in PREFIX
979 [$ac_default_prefix]
980 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
981 [PREFIX]
982
983 By default, \`make install' will install all the files in
984 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
985 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
986 for instance \`--prefix=\$HOME'.
987
988 For better control, use the options below.
989
990 Fine tuning of the installation directories:
991 --bindir=DIR user executables [EPREFIX/bin]
992 --sbindir=DIR system admin executables [EPREFIX/sbin]
993 --libexecdir=DIR program executables [EPREFIX/libexec]
994 --datadir=DIR read-only architecture-independent data [PREFIX/share]
995 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
996 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
997 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
998 --libdir=DIR object code libraries [EPREFIX/lib]
999 --includedir=DIR C header files [PREFIX/include]
1000 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1001 --infodir=DIR info documentation [PREFIX/info]
1002 --mandir=DIR man documentation [PREFIX/man]
1003 _ACEOF
1004
1005 cat <<\_ACEOF
1006
1007 System types:
1008 --build=BUILD configure for building on BUILD [guessed]
1009 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1010 _ACEOF
1011 fi
1012
1013 if test -n "$ac_init_help"; then
1014
1015 cat <<\_ACEOF
1016
1017 Optional Features:
1018 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1019 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1020 --enable-debug setup flags (gcc) for debugging (default=no)
1021 --enable-optim setup flags (gcc) for optimizations (default=no)
1022 --enable-unstrict-syntax be lazy on syntax checking for protocols (default=no)
1023 --enable-shared@<:@=PKGS@:>@
1024 build shared libraries @<:@default=yes@:>@
1025 --enable-static@<:@=PKGS@:>@
1026 build static libraries @<:@default=yes@:>@
1027 --enable-fast-install@<:@=PKGS@:>@
1028 optimize for fast installation @<:@default=yes@:>@
1029 --disable-libtool-lock avoid locking (might break parallel builds)
1030 --disable-iconv make a version not using iconv
1031 --disable-db disable Berkeley DB (default=try to detect DB)
1032 --disable-threads do not include multithreading support using pthread
1033
1034 Optional Packages:
1035 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1036 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1037 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1038 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1039 both@:>@
1040 --with-tags@<:@=TAGS@:>@
1041 include additional configurations @<:@automatic@:>@
1042 --with-openssl=DIR include OpenSSL support (default=auto)
1043
1044 Some influential environment variables:
1045 CC C compiler command
1046 CFLAGS C compiler flags
1047 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1048 nonstandard directory <lib dir>
1049 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1050 headers in a nonstandard directory <include dir>
1051 CPP C preprocessor
1052 CXX C++ compiler command
1053 CXXFLAGS C++ compiler flags
1054 CXXCPP C++ preprocessor
1055 F77 Fortran 77 compiler command
1056 FFLAGS Fortran 77 compiler flags
1057
1058 Use these variables to override the choices made by `configure' or to help
1059 it to find libraries and programs with nonstandard names/locations.
1060
1061 _ACEOF
1062 fi
1063
1064 if test "$ac_init_help" = "recursive"; then
1065 # If there are subdirs, report their specific --help.
1066 ac_popdir=`pwd`
1067 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1068 test -d $ac_dir || continue
1069 ac_builddir=.
1070
1071 if test "$ac_dir" != .; then
1072 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1073 # A "../" for each directory in $ac_dir_suffix.
1074 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1075 else
1076 ac_dir_suffix= ac_top_builddir=
1077 fi
1078
1079 case $srcdir in
1080 .) # No --srcdir option. We are building in place.
1081 ac_srcdir=.
1082 if test -z "$ac_top_builddir"; then
1083 ac_top_srcdir=.
1084 else
1085 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1086 fi ;;
1087 [\\/]* | ?:[\\/]* ) # Absolute path.
1088 ac_srcdir=$srcdir$ac_dir_suffix;
1089 ac_top_srcdir=$srcdir ;;
1090 *) # Relative path.
1091 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1092 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1093 esac
1094
1095 # Do not use `cd foo && pwd` to compute absolute paths, because
1096 # the directories may not exist.
1097 case `pwd` in
1098 .) ac_abs_builddir="$ac_dir";;
1099 *)
1100 case "$ac_dir" in
1101 .) ac_abs_builddir=`pwd`;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1103 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1104 esac;;
1105 esac
1106 case $ac_abs_builddir in
1107 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1108 *)
1109 case ${ac_top_builddir}. in
1110 .) ac_abs_top_builddir=$ac_abs_builddir;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1112 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1113 esac;;
1114 esac
1115 case $ac_abs_builddir in
1116 .) ac_abs_srcdir=$ac_srcdir;;
1117 *)
1118 case $ac_srcdir in
1119 .) ac_abs_srcdir=$ac_abs_builddir;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1121 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1122 esac;;
1123 esac
1124 case $ac_abs_builddir in
1125 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1126 *)
1127 case $ac_top_srcdir in
1128 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1130 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1131 esac;;
1132 esac
1133
1134 cd $ac_dir
1135 # Check for guested configure; otherwise get Cygnus style configure.
1136 if test -f $ac_srcdir/configure.gnu; then
1137 echo
1138 $SHELL $ac_srcdir/configure.gnu --help=recursive
1139 elif test -f $ac_srcdir/configure; then
1140 echo
1141 $SHELL $ac_srcdir/configure --help=recursive
1142 elif test -f $ac_srcdir/configure.ac ||
1143 test -f $ac_srcdir/configure.in; then
1144 echo
1145 $ac_configure --help
1146 else
1147 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1148 fi
1149 cd "$ac_popdir"
1150 done
1151 fi
1152
1153 test -n "$ac_init_help" && exit 0
1154 if $ac_init_version; then
1155 cat <<\_ACEOF
1156
1157 Copyright (C) 2003 Free Software Foundation, Inc.
1158 This configure script is free software; the Free Software Foundation
1159 gives unlimited permission to copy, distribute and modify it.
1160 _ACEOF
1161 exit 0
1162 fi
1163 exec 5>config.log
1164 cat >&5 <<_ACEOF
1165 This file contains any messages produced by compilers while
1166 running configure, to aid debugging if configure makes a mistake.
1167
1168 It was created by $as_me, which was
1169 generated by GNU Autoconf 2.59. Invocation command line was
1170
1171 $ $0 $@
1172
1173 _ACEOF
1174 {
1175 cat <<_ASUNAME
1176 @%:@@%:@ --------- @%:@@%:@
1177 @%:@@%:@ Platform. @%:@@%:@
1178 @%:@@%:@ --------- @%:@@%:@
1179
1180 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1181 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1182 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1183 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1184 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1185
1186 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1187 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1188
1189 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1190 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1191 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1192 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1193 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1194 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1195 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1196
1197 _ASUNAME
1198
1199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1200 for as_dir in $PATH
1201 do
1202 IFS=$as_save_IFS
1203 test -z "$as_dir" && as_dir=.
1204 echo "PATH: $as_dir"
1205 done
1206
1207 } >&5
1208
1209 cat >&5 <<_ACEOF
1210
1211
1212 @%:@@%:@ ----------- @%:@@%:@
1213 @%:@@%:@ Core tests. @%:@@%:@
1214 @%:@@%:@ ----------- @%:@@%:@
1215
1216 _ACEOF
1217
1218
1219 # Keep a trace of the command line.
1220 # Strip out --no-create and --no-recursion so they do not pile up.
1221 # Strip out --silent because we don't want to record it for future runs.
1222 # Also quote any args containing shell meta-characters.
1223 # Make two passes to allow for proper duplicate-argument suppression.
1224 ac_configure_args=
1225 ac_configure_args0=
1226 ac_configure_args1=
1227 ac_sep=
1228 ac_must_keep_next=false
1229 for ac_pass in 1 2
1230 do
1231 for ac_arg
1232 do
1233 case $ac_arg in
1234 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1236 | -silent | --silent | --silen | --sile | --sil)
1237 continue ;;
1238 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1239 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1240 esac
1241 case $ac_pass in
1242 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1243 2)
1244 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1245 if test $ac_must_keep_next = true; then
1246 ac_must_keep_next=false # Got value, back to normal.
1247 else
1248 case $ac_arg in
1249 *=* | --config-cache | -C | -disable-* | --disable-* \
1250 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1251 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1252 | -with-* | --with-* | -without-* | --without-* | --x)
1253 case "$ac_configure_args0 " in
1254 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1255 esac
1256 ;;
1257 -* ) ac_must_keep_next=true ;;
1258 esac
1259 fi
1260 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1261 # Get rid of the leading space.
1262 ac_sep=" "
1263 ;;
1264 esac
1265 done
1266 done
1267 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1268 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1269
1270 # When interrupted or exit'd, cleanup temporary files, and complete
1271 # config.log. We remove comments because anyway the quotes in there
1272 # would cause problems or look ugly.
1273 # WARNING: Be sure not to use single quotes in there, as some shells,
1274 # such as our DU 5.0 friend, will then `close' the trap.
1275 trap 'exit_status=$?
1276 # Save into config.log some information that might help in debugging.
1277 {
1278 echo
1279
1280 cat <<\_ASBOX
1281 @%:@@%:@ ---------------- @%:@@%:@
1282 @%:@@%:@ Cache variables. @%:@@%:@
1283 @%:@@%:@ ---------------- @%:@@%:@
1284 _ASBOX
1285 echo
1286 # The following way of writing the cache mishandles newlines in values,
1287 {
1288 (set) 2>&1 |
1289 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1290 *ac_space=\ *)
1291 sed -n \
1292 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1293 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1294 ;;
1295 *)
1296 sed -n \
1297 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1298 ;;
1299 esac;
1300 }
1301 echo
1302
1303 cat <<\_ASBOX
1304 @%:@@%:@ ----------------- @%:@@%:@
1305 @%:@@%:@ Output variables. @%:@@%:@
1306 @%:@@%:@ ----------------- @%:@@%:@
1307 _ASBOX
1308 echo
1309 for ac_var in $ac_subst_vars
1310 do
1311 eval ac_val=$`echo $ac_var`
1312 echo "$ac_var='"'"'$ac_val'"'"'"
1313 done | sort
1314 echo
1315
1316 if test -n "$ac_subst_files"; then
1317 cat <<\_ASBOX
1318 @%:@@%:@ ------------- @%:@@%:@
1319 @%:@@%:@ Output files. @%:@@%:@
1320 @%:@@%:@ ------------- @%:@@%:@
1321 _ASBOX
1322 echo
1323 for ac_var in $ac_subst_files
1324 do
1325 eval ac_val=$`echo $ac_var`
1326 echo "$ac_var='"'"'$ac_val'"'"'"
1327 done | sort
1328 echo
1329 fi
1330
1331 if test -s confdefs.h; then
1332 cat <<\_ASBOX
1333 @%:@@%:@ ----------- @%:@@%:@
1334 @%:@@%:@ confdefs.h. @%:@@%:@
1335 @%:@@%:@ ----------- @%:@@%:@
1336 _ASBOX
1337 echo
1338 sed "/^$/d" confdefs.h | sort
1339 echo
1340 fi
1341 test "$ac_signal" != 0 &&
1342 echo "$as_me: caught signal $ac_signal"
1343 echo "$as_me: exit $exit_status"
1344 } >&5
1345 rm -f core *.core &&
1346 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1347 exit $exit_status
1348 ' 0
1349 for ac_signal in 1 2 13 15; do
1350 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1351 done
1352 ac_signal=0
1353
1354 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1355 rm -rf conftest* confdefs.h
1356 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1357 echo >confdefs.h
1358
1359 # Predefined preprocessor variables.
1360
1361 cat >>confdefs.h <<_ACEOF
1362 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1363 _ACEOF
1364
1365
1366 cat >>confdefs.h <<_ACEOF
1367 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1368 _ACEOF
1369
1370
1371 cat >>confdefs.h <<_ACEOF
1372 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1373 _ACEOF
1374
1375
1376 cat >>confdefs.h <<_ACEOF
1377 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1378 _ACEOF
1379
1380
1381 cat >>confdefs.h <<_ACEOF
1382 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1383 _ACEOF
1384
1385
1386 # Let the site file select an alternate cache file if it wants to.
1387 # Prefer explicitly selected file to automatically selected ones.
1388 if test -z "$CONFIG_SITE"; then
1389 if test "x$prefix" != xNONE; then
1390 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1391 else
1392 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1393 fi
1394 fi
1395 for ac_site_file in $CONFIG_SITE; do
1396 if test -r "$ac_site_file"; then
1397 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1398 echo "$as_me: loading site script $ac_site_file" >&6;}
1399 sed 's/^/| /' "$ac_site_file" >&5
1400 . "$ac_site_file"
1401 fi
1402 done
1403
1404 if test -r "$cache_file"; then
1405 # Some versions of bash will fail to source /dev/null (special
1406 # files actually), so we avoid doing that.
1407 if test -f "$cache_file"; then
1408 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1409 echo "$as_me: loading cache $cache_file" >&6;}
1410 case $cache_file in
1411 [\\/]* | ?:[\\/]* ) . $cache_file;;
1412 *) . ./$cache_file;;
1413 esac
1414 fi
1415 else
1416 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1417 echo "$as_me: creating cache $cache_file" >&6;}
1418 >$cache_file
1419 fi
1420
1421 # Check that the precious variables saved in the cache have kept the same
1422 # value.
1423 ac_cache_corrupted=false
1424 for ac_var in `(set) 2>&1 |
1425 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1426 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1427 eval ac_new_set=\$ac_env_${ac_var}_set
1428 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1429 eval ac_new_val="\$ac_env_${ac_var}_value"
1430 case $ac_old_set,$ac_new_set in
1431 set,)
1432 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1433 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1434 ac_cache_corrupted=: ;;
1435 ,set)
1436 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1437 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1438 ac_cache_corrupted=: ;;
1439 ,);;
1440 *)
1441 if test "x$ac_old_val" != "x$ac_new_val"; then
1442 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1443 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1444 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1445 echo "$as_me: former value: $ac_old_val" >&2;}
1446 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1447 echo "$as_me: current value: $ac_new_val" >&2;}
1448 ac_cache_corrupted=:
1449 fi;;
1450 esac
1451 # Pass precious variables to config.status.
1452 if test "$ac_new_set" = set; then
1453 case $ac_new_val in
1454 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1455 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1456 *) ac_arg=$ac_var=$ac_new_val ;;
1457 esac
1458 case " $ac_configure_args " in
1459 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1460 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1461 esac
1462 fi
1463 done
1464 if $ac_cache_corrupted; then
1465 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1466 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1467 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1468 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1469 { (exit 1); exit 1; }; }
1470 fi
1471
1472 ac_ext=c
1473 ac_cpp='$CPP $CPPFLAGS'
1474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497 VERSION_MAJOR=0
1498 VERSION_MINOR=36
1499
1500 API_CURRENT=2
1501 API_REVISION=3
1502 API_COMPATIBILITY=1
1503
1504 API_AGE=`expr $API_CURRENT - $API_COMPATIBILITY`
1505 API_VERSION="$API_CURRENT:$API_REVISION:$API_AGE"
1506
1507
1508 # Check whether --enable-debug or --disable-debug was given.
1509 if test "${enable_debug+set}" = set; then
1510 enableval="$enable_debug"
1511 CFLAGS="$CFLAGS -O2 -W -Wall -g"
1512 CPPFLAGS="$CPPFLAGS -DDEBUG"
1513 LDFLAGS="$LDFLAGS"
1514 fi;
1515 # Check whether --enable-optim or --disable-optim was given.
1516 if test "${enable_optim+set}" = set; then
1517 enableval="$enable_optim"
1518 if test "x$enable_debug" != "xyes" ; then
1519 CFLAGS="$CFLAGS -O2 -ffast-math -funroll-loops -g0"
1520 CPPFLAGS="$CPPFLAGS"
1521 LDFLAGS="$LDFLAGS -s"
1522 else
1523 { echo "$as_me:$LINENO: WARNING: enable-optim and enable-debug are incompatible -- disabling optimizations" >&5
1524 echo "$as_me: WARNING: enable-optim and enable-debug are incompatible -- disabling optimizations" >&2;}
1525 fi
1526 fi;
1527 # Check whether --enable-syntax or --disable-syntax was given.
1528 if test "${enable_syntax+set}" = set; then
1529 enableval="$enable_syntax"
1530
1531 else
1532
1533 cat >>confdefs.h <<\_ACEOF
1534 @%:@define UNSTRICT_SYNTAX 1
1535 _ACEOF
1536
1537 fi;
1538
1539 ac_config_headers="$ac_config_headers config.h"
1540
1541
1542 ac_aux_dir=
1543 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1544 if test -f $ac_dir/install-sh; then
1545 ac_aux_dir=$ac_dir
1546 ac_install_sh="$ac_aux_dir/install-sh -c"
1547 break
1548 elif test -f $ac_dir/install.sh; then
1549 ac_aux_dir=$ac_dir
1550 ac_install_sh="$ac_aux_dir/install.sh -c"
1551 break
1552 elif test -f $ac_dir/shtool; then
1553 ac_aux_dir=$ac_dir
1554 ac_install_sh="$ac_aux_dir/shtool install -c"
1555 break
1556 fi
1557 done
1558 if test -z "$ac_aux_dir"; then
1559 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1560 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1561 { (exit 1); exit 1; }; }
1562 fi
1563 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1564 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1565 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1566
1567 # Find a good install program. We prefer a C program (faster),
1568 # so one script is as good as another. But avoid the broken or
1569 # incompatible versions:
1570 # SysV /etc/install, /usr/sbin/install
1571 # SunOS /usr/etc/install
1572 # IRIX /sbin/install
1573 # AIX /bin/install
1574 # AmigaOS /C/install, which installs bootblocks on floppy discs
1575 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1576 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1577 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1578 # OS/2's system install, which has a completely different semantic
1579 # ./install, which can be erroneously created by make from ./install.sh.
1580 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1581 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1582 if test -z "$INSTALL"; then
1583 if test "${ac_cv_path_install+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 for as_dir in $PATH
1588 do
1589 IFS=$as_save_IFS
1590 test -z "$as_dir" && as_dir=.
1591 # Account for people who put trailing slashes in PATH elements.
1592 case $as_dir/ in
1593 ./ | .// | /cC/* | \
1594 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1595 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1596 /usr/ucb/* ) ;;
1597 *)
1598 # OSF1 and SCO ODT 3.0 have their own names for install.
1599 # Don't use installbsd from OSF since it installs stuff as root
1600 # by default.
1601 for ac_prog in ginstall scoinst install; do
1602 for ac_exec_ext in '' $ac_executable_extensions; do
1603 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1604 if test $ac_prog = install &&
1605 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1606 # AIX install. It has an incompatible calling convention.
1607 :
1608 elif test $ac_prog = install &&
1609 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1610 # program-specific install script used by HP pwplus--don't use.
1611 :
1612 else
1613 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1614 break 3
1615 fi
1616 fi
1617 done
1618 done
1619 ;;
1620 esac
1621 done
1622
1623
1624 fi
1625 if test "${ac_cv_path_install+set}" = set; then
1626 INSTALL=$ac_cv_path_install
1627 else
1628 # As a last resort, use the slow shell script. We don't cache a
1629 # path for INSTALL within a source directory, because that will
1630 # break other packages using the cache if that directory is
1631 # removed, or if the path is relative.
1632 INSTALL=$ac_install_sh
1633 fi
1634 fi
1635 echo "$as_me:$LINENO: result: $INSTALL" >&5
1636 echo "${ECHO_T}$INSTALL" >&6
1637
1638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1639 # It thinks the first close brace ends the variable substitution.
1640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1641
1642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1643
1644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1645
1646 ac_ext=c
1647 ac_cpp='$CPP $CPPFLAGS'
1648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1651 if test -n "$ac_tool_prefix"; then
1652 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1653 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659 if test -n "$CC"; then
1660 ac_cv_prog_CC="$CC" # Let the user override the test.
1661 else
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1664 do
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1672 fi
1673 done
1674 done
1675
1676 fi
1677 fi
1678 CC=$ac_cv_prog_CC
1679 if test -n "$CC"; then
1680 echo "$as_me:$LINENO: result: $CC" >&5
1681 echo "${ECHO_T}$CC" >&6
1682 else
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1685 fi
1686
1687 fi
1688 if test -z "$ac_cv_prog_CC"; then
1689 ac_ct_CC=$CC
1690 # Extract the first word of "gcc", so it can be a program name with args.
1691 set dummy gcc; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 else
1697 if test -n "$ac_ct_CC"; then
1698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1699 else
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703 IFS=$as_save_IFS
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 ac_cv_prog_ac_ct_CC="gcc"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709 break 2
1710 fi
1711 done
1712 done
1713
1714 fi
1715 fi
1716 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1717 if test -n "$ac_ct_CC"; then
1718 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1719 echo "${ECHO_T}$ac_ct_CC" >&6
1720 else
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1723 fi
1724
1725 CC=$ac_ct_CC
1726 else
1727 CC="$ac_cv_prog_CC"
1728 fi
1729
1730 if test -z "$CC"; then
1731 if test -n "$ac_tool_prefix"; then
1732 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1733 set dummy ${ac_tool_prefix}cc; ac_word=$2
1734 echo "$as_me:$LINENO: checking for $ac_word" >&5
1735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736 if test "${ac_cv_prog_CC+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1738 else
1739 if test -n "$CC"; then
1740 ac_cv_prog_CC="$CC" # Let the user override the test.
1741 else
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 for as_dir in $PATH
1744 do
1745 IFS=$as_save_IFS
1746 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749 ac_cv_prog_CC="${ac_tool_prefix}cc"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751 break 2
1752 fi
1753 done
1754 done
1755
1756 fi
1757 fi
1758 CC=$ac_cv_prog_CC
1759 if test -n "$CC"; then
1760 echo "$as_me:$LINENO: result: $CC" >&5
1761 echo "${ECHO_T}$CC" >&6
1762 else
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1765 fi
1766
1767 fi
1768 if test -z "$ac_cv_prog_CC"; then
1769 ac_ct_CC=$CC
1770 # Extract the first word of "cc", so it can be a program name with args.
1771 set dummy cc; ac_word=$2
1772 echo "$as_me:$LINENO: checking for $ac_word" >&5
1773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1774 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1775 echo $ECHO_N "(cached) $ECHO_C" >&6
1776 else
1777 if test -n "$ac_ct_CC"; then
1778 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1779 else
1780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781 for as_dir in $PATH
1782 do
1783 IFS=$as_save_IFS
1784 test -z "$as_dir" && as_dir=.
1785 for ac_exec_ext in '' $ac_executable_extensions; do
1786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1787 ac_cv_prog_ac_ct_CC="cc"
1788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1789 break 2
1790 fi
1791 done
1792 done
1793
1794 fi
1795 fi
1796 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1797 if test -n "$ac_ct_CC"; then
1798 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1799 echo "${ECHO_T}$ac_ct_CC" >&6
1800 else
1801 echo "$as_me:$LINENO: result: no" >&5
1802 echo "${ECHO_T}no" >&6
1803 fi
1804
1805 CC=$ac_ct_CC
1806 else
1807 CC="$ac_cv_prog_CC"
1808 fi
1809
1810 fi
1811 if test -z "$CC"; then
1812 # Extract the first word of "cc", so it can be a program name with args.
1813 set dummy cc; ac_word=$2
1814 echo "$as_me:$LINENO: checking for $ac_word" >&5
1815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816 if test "${ac_cv_prog_CC+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 else
1819 if test -n "$CC"; then
1820 ac_cv_prog_CC="$CC" # Let the user override the test.
1821 else
1822 ac_prog_rejected=no
1823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824 for as_dir in $PATH
1825 do
1826 IFS=$as_save_IFS
1827 test -z "$as_dir" && as_dir=.
1828 for ac_exec_ext in '' $ac_executable_extensions; do
1829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1830 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1831 ac_prog_rejected=yes
1832 continue
1833 fi
1834 ac_cv_prog_CC="cc"
1835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836 break 2
1837 fi
1838 done
1839 done
1840
1841 if test $ac_prog_rejected = yes; then
1842 # We found a bogon in the path, so make sure we never use it.
1843 set dummy $ac_cv_prog_CC
1844 shift
1845 if test $@%:@ != 0; then
1846 # We chose a different compiler from the bogus one.
1847 # However, it has the same basename, so the bogon will be chosen
1848 # first if we set CC to just the basename; use the full file name.
1849 shift
1850 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1851 fi
1852 fi
1853 fi
1854 fi
1855 CC=$ac_cv_prog_CC
1856 if test -n "$CC"; then
1857 echo "$as_me:$LINENO: result: $CC" >&5
1858 echo "${ECHO_T}$CC" >&6
1859 else
1860 echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1862 fi
1863
1864 fi
1865 if test -z "$CC"; then
1866 if test -n "$ac_tool_prefix"; then
1867 for ac_prog in cl
1868 do
1869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1870 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1871 echo "$as_me:$LINENO: checking for $ac_word" >&5
1872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873 if test "${ac_cv_prog_CC+set}" = set; then
1874 echo $ECHO_N "(cached) $ECHO_C" >&6
1875 else
1876 if test -n "$CC"; then
1877 ac_cv_prog_CC="$CC" # Let the user override the test.
1878 else
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880 for as_dir in $PATH
1881 do
1882 IFS=$as_save_IFS
1883 test -z "$as_dir" && as_dir=.
1884 for ac_exec_ext in '' $ac_executable_extensions; do
1885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1888 break 2
1889 fi
1890 done
1891 done
1892
1893 fi
1894 fi
1895 CC=$ac_cv_prog_CC
1896 if test -n "$CC"; then
1897 echo "$as_me:$LINENO: result: $CC" >&5
1898 echo "${ECHO_T}$CC" >&6
1899 else
1900 echo "$as_me:$LINENO: result: no" >&5
1901 echo "${ECHO_T}no" >&6
1902 fi
1903
1904 test -n "$CC" && break
1905 done
1906 fi
1907 if test -z "$CC"; then
1908 ac_ct_CC=$CC
1909 for ac_prog in cl
1910 do
1911 # Extract the first word of "$ac_prog", so it can be a program name with args.
1912 set dummy $ac_prog; ac_word=$2
1913 echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918 if test -n "$ac_ct_CC"; then
1919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1920 else
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 for as_dir in $PATH
1923 do
1924 IFS=$as_save_IFS
1925 test -z "$as_dir" && as_dir=.
1926 for ac_exec_ext in '' $ac_executable_extensions; do
1927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928 ac_cv_prog_ac_ct_CC="$ac_prog"
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930 break 2
1931 fi
1932 done
1933 done
1934
1935 fi
1936 fi
1937 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1938 if test -n "$ac_ct_CC"; then
1939 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1940 echo "${ECHO_T}$ac_ct_CC" >&6
1941 else
1942 echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6
1944 fi
1945
1946 test -n "$ac_ct_CC" && break
1947 done
1948
1949 CC=$ac_ct_CC
1950 fi
1951
1952 fi
1953
1954
1955 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1956 See \`config.log' for more details." >&5
1957 echo "$as_me: error: no acceptable C compiler found in \$PATH
1958 See \`config.log' for more details." >&2;}
1959 { (exit 1); exit 1; }; }
1960
1961 # Provide some information about the compiler.
1962 echo "$as_me:$LINENO:" \
1963 "checking for C compiler version" >&5
1964 ac_compiler=`set X $ac_compile; echo $2`
1965 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1966 (eval $ac_compiler --version </dev/null >&5) 2>&5
1967 ac_status=$?
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }
1970 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1971 (eval $ac_compiler -v </dev/null >&5) 2>&5
1972 ac_status=$?
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); }
1975 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1976 (eval $ac_compiler -V </dev/null >&5) 2>&5
1977 ac_status=$?
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }
1980
1981 cat >conftest.$ac_ext <<_ACEOF
1982 /* confdefs.h. */
1983 _ACEOF
1984 cat confdefs.h >>conftest.$ac_ext
1985 cat >>conftest.$ac_ext <<_ACEOF
1986 /* end confdefs.h. */
1987
1988 int
1989 main ()
1990 {
1991
1992 ;
1993 return 0;
1994 }
1995 _ACEOF
1996 ac_clean_files_save=$ac_clean_files
1997 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1998 # Try to create an executable without -o first, disregard a.out.
1999 # It will help us diagnose broken compilers, and finding out an intuition
2000 # of exeext.
2001 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2002 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2003 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2004 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2005 (eval $ac_link_default) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; then
2009 # Find the output, starting from the most likely. This scheme is
2010 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2011 # resort.
2012
2013 # Be careful to initialize this variable, since it used to be cached.
2014 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2015 ac_cv_exeext=
2016 # b.out is created by i960 compilers.
2017 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2018 do
2019 test -f "$ac_file" || continue
2020 case $ac_file in
2021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2022 ;;
2023 conftest.$ac_ext )
2024 # This is the source file.
2025 ;;
2026 [ab].out )
2027 # We found the default executable, but exeext='' is most
2028 # certainly right.
2029 break;;
2030 *.* )
2031 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2032 # FIXME: I believe we export ac_cv_exeext for Libtool,
2033 # but it would be cool to find out if it's true. Does anybody
2034 # maintain Libtool? --akim.
2035 export ac_cv_exeext
2036 break;;
2037 * )
2038 break;;
2039 esac
2040 done
2041 else
2042 echo "$as_me: failed program was:" >&5
2043 sed 's/^/| /' conftest.$ac_ext >&5
2044
2045 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2046 See \`config.log' for more details." >&5
2047 echo "$as_me: error: C compiler cannot create executables
2048 See \`config.log' for more details." >&2;}
2049 { (exit 77); exit 77; }; }
2050 fi
2051
2052 ac_exeext=$ac_cv_exeext
2053 echo "$as_me:$LINENO: result: $ac_file" >&5
2054 echo "${ECHO_T}$ac_file" >&6
2055
2056 # Check the compiler produces executables we can run. If not, either
2057 # the compiler is broken, or we cross compile.
2058 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2059 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2060 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2061 # If not cross compiling, check that we can run a simple program.
2062 if test "$cross_compiling" != yes; then
2063 if { ac_try='./$ac_file'
2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 (eval $ac_try) 2>&5
2066 ac_status=$?
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; }; then
2069 cross_compiling=no
2070 else
2071 if test "$cross_compiling" = maybe; then
2072 cross_compiling=yes
2073 else
2074 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2075 If you meant to cross compile, use \`--host'.
2076 See \`config.log' for more details." >&5
2077 echo "$as_me: error: cannot run C compiled programs.
2078 If you meant to cross compile, use \`--host'.
2079 See \`config.log' for more details." >&2;}
2080 { (exit 1); exit 1; }; }
2081 fi
2082 fi
2083 fi
2084 echo "$as_me:$LINENO: result: yes" >&5
2085 echo "${ECHO_T}yes" >&6
2086
2087 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2088 ac_clean_files=$ac_clean_files_save
2089 # Check the compiler produces executables we can run. If not, either
2090 # the compiler is broken, or we cross compile.
2091 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2092 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2093 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2094 echo "${ECHO_T}$cross_compiling" >&6
2095
2096 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2097 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2099 (eval $ac_link) 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }; then
2103 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2104 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2105 # work properly (i.e., refer to `conftest.exe'), while it won't with
2106 # `rm'.
2107 for ac_file in conftest.exe conftest conftest.*; do
2108 test -f "$ac_file" || continue
2109 case $ac_file in
2110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2111 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2112 export ac_cv_exeext
2113 break;;
2114 * ) break;;
2115 esac
2116 done
2117 else
2118 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2119 See \`config.log' for more details." >&5
2120 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2121 See \`config.log' for more details." >&2;}
2122 { (exit 1); exit 1; }; }
2123 fi
2124
2125 rm -f conftest$ac_cv_exeext
2126 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2127 echo "${ECHO_T}$ac_cv_exeext" >&6
2128
2129 rm -f conftest.$ac_ext
2130 EXEEXT=$ac_cv_exeext
2131 ac_exeext=$EXEEXT
2132 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2133 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2134 if test "${ac_cv_objext+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137 cat >conftest.$ac_ext <<_ACEOF
2138 /* confdefs.h. */
2139 _ACEOF
2140 cat confdefs.h >>conftest.$ac_ext
2141 cat >>conftest.$ac_ext <<_ACEOF
2142 /* end confdefs.h. */
2143
2144 int
2145 main ()
2146 {
2147
2148 ;
2149 return 0;
2150 }
2151 _ACEOF
2152 rm -f conftest.o conftest.obj
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154 (eval $ac_compile) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; then
2158 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2159 case $ac_file in
2160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2161 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2162 break;;
2163 esac
2164 done
2165 else
2166 echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.$ac_ext >&5
2168
2169 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2170 See \`config.log' for more details." >&5
2171 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2172 See \`config.log' for more details." >&2;}
2173 { (exit 1); exit 1; }; }
2174 fi
2175
2176 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2177 fi
2178 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2179 echo "${ECHO_T}$ac_cv_objext" >&6
2180 OBJEXT=$ac_cv_objext
2181 ac_objext=$OBJEXT
2182 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2183 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2184 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187 cat >conftest.$ac_ext <<_ACEOF
2188 /* confdefs.h. */
2189 _ACEOF
2190 cat confdefs.h >>conftest.$ac_ext
2191 cat >>conftest.$ac_ext <<_ACEOF
2192 /* end confdefs.h. */
2193
2194 int
2195 main ()
2196 {
2197 #ifndef __GNUC__
2198 choke me
2199 #endif
2200
2201 ;
2202 return 0;
2203 }
2204 _ACEOF
2205 rm -f conftest.$ac_objext
2206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207 (eval $ac_compile) 2>conftest.er1
2208 ac_status=$?
2209 grep -v '^ *+' conftest.er1 >conftest.err
2210 rm -f conftest.er1
2211 cat conftest.err >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); } &&
2214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 (eval $ac_try) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; } &&
2220 { ac_try='test -s conftest.$ac_objext'
2221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222 (eval $ac_try) 2>&5
2223 ac_status=$?
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2226 ac_compiler_gnu=yes
2227 else
2228 echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2230
2231 ac_compiler_gnu=no
2232 fi
2233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2234 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2235
2236 fi
2237 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2238 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2239 GCC=`test $ac_compiler_gnu = yes && echo yes`
2240 ac_test_CFLAGS=${CFLAGS+set}
2241 ac_save_CFLAGS=$CFLAGS
2242 CFLAGS="-g"
2243 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2244 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2245 if test "${ac_cv_prog_cc_g+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 else
2248 cat >conftest.$ac_ext <<_ACEOF
2249 /* confdefs.h. */
2250 _ACEOF
2251 cat confdefs.h >>conftest.$ac_ext
2252 cat >>conftest.$ac_ext <<_ACEOF
2253 /* end confdefs.h. */
2254
2255 int
2256 main ()
2257 {
2258
2259 ;
2260 return 0;
2261 }
2262 _ACEOF
2263 rm -f conftest.$ac_objext
2264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265 (eval $ac_compile) 2>conftest.er1
2266 ac_status=$?
2267 grep -v '^ *+' conftest.er1 >conftest.err
2268 rm -f conftest.er1
2269 cat conftest.err >&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); } &&
2272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274 (eval $ac_try) 2>&5
2275 ac_status=$?
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; } &&
2278 { ac_try='test -s conftest.$ac_objext'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280 (eval $ac_try) 2>&5
2281 ac_status=$?
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; }; then
2284 ac_cv_prog_cc_g=yes
2285 else
2286 echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.$ac_ext >&5
2288
2289 ac_cv_prog_cc_g=no
2290 fi
2291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2292 fi
2293 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2294 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2295 if test "$ac_test_CFLAGS" = set; then
2296 CFLAGS=$ac_save_CFLAGS
2297 elif test $ac_cv_prog_cc_g = yes; then
2298 if test "$GCC" = yes; then
2299 CFLAGS="-g -O2"
2300 else
2301 CFLAGS="-g"
2302 fi
2303 else
2304 if test "$GCC" = yes; then
2305 CFLAGS="-O2"
2306 else
2307 CFLAGS=
2308 fi
2309 fi
2310 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2311 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2312 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 else
2315 ac_cv_prog_cc_stdc=no
2316 ac_save_CC=$CC
2317 cat >conftest.$ac_ext <<_ACEOF
2318 /* confdefs.h. */
2319 _ACEOF
2320 cat confdefs.h >>conftest.$ac_ext
2321 cat >>conftest.$ac_ext <<_ACEOF
2322 /* end confdefs.h. */
2323 #include <stdarg.h>
2324 #include <stdio.h>
2325 #include <sys/types.h>
2326 #include <sys/stat.h>
2327 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2328 struct buf { int x; };
2329 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2330 static char *e (p, i)
2331 char **p;
2332 int i;
2333 {
2334 return p[i];
2335 }
2336 static char *f (char * (*g) (char **, int), char **p, ...)
2337 {
2338 char *s;
2339 va_list v;
2340 va_start (v,p);
2341 s = g (p, va_arg (v,int));
2342 va_end (v);
2343 return s;
2344 }
2345
2346 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2347 function prototypes and stuff, but not '\xHH' hex character constants.
2348 These don't provoke an error unfortunately, instead are silently treated
2349 as 'x'. The following induces an error, until -std1 is added to get
2350 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2351 array size at least. It's necessary to write '\x00'==0 to get something
2352 that's true only with -std1. */
2353 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2354
2355 int test (int i, double x);
2356 struct s1 {int (*f) (int a);};
2357 struct s2 {int (*f) (double a);};
2358 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2359 int argc;
2360 char **argv;
2361 int
2362 main ()
2363 {
2364 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2365 ;
2366 return 0;
2367 }
2368 _ACEOF
2369 # Don't try gcc -ansi; that turns off useful extensions and
2370 # breaks some systems' header files.
2371 # AIX -qlanglvl=ansi
2372 # Ultrix and OSF/1 -std1
2373 # HP-UX 10.20 and later -Ae
2374 # HP-UX older versions -Aa -D_HPUX_SOURCE
2375 # SVR4 -Xc -D__EXTENSIONS__
2376 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2377 do
2378 CC="$ac_save_CC $ac_arg"
2379 rm -f conftest.$ac_objext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381 (eval $ac_compile) 2>conftest.er1
2382 ac_status=$?
2383 grep -v '^ *+' conftest.er1 >conftest.err
2384 rm -f conftest.er1
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
2388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 (eval $ac_try) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; } &&
2394 { ac_try='test -s conftest.$ac_objext'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 (eval $ac_try) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2400 ac_cv_prog_cc_stdc=$ac_arg
2401 break
2402 else
2403 echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2405
2406 fi
2407 rm -f conftest.err conftest.$ac_objext
2408 done
2409 rm -f conftest.$ac_ext conftest.$ac_objext
2410 CC=$ac_save_CC
2411
2412 fi
2413
2414 case "x$ac_cv_prog_cc_stdc" in
2415 x|xno)
2416 echo "$as_me:$LINENO: result: none needed" >&5
2417 echo "${ECHO_T}none needed" >&6 ;;
2418 *)
2419 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2420 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2421 CC="$CC $ac_cv_prog_cc_stdc" ;;
2422 esac
2423
2424 # Some people use a C++ compiler to compile C. Since we use `exit',
2425 # in C++ we need to declare it. In case someone uses the same compiler
2426 # for both compiling C and C++ we need to have the C++ compiler decide
2427 # the declaration of exit, since it's the most demanding environment.
2428 cat >conftest.$ac_ext <<_ACEOF
2429 @%:@ifndef __cplusplus
2430 choke me
2431 @%:@endif
2432 _ACEOF
2433 rm -f conftest.$ac_objext
2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435 (eval $ac_compile) 2>conftest.er1
2436 ac_status=$?
2437 grep -v '^ *+' conftest.er1 >conftest.err
2438 rm -f conftest.er1
2439 cat conftest.err >&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); } &&
2442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 (eval $ac_try) 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; } &&
2448 { ac_try='test -s conftest.$ac_objext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 (eval $ac_try) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2454 for ac_declaration in \
2455 '' \
2456 'extern "C" void std::exit (int) throw (); using std::exit;' \
2457 'extern "C" void std::exit (int); using std::exit;' \
2458 'extern "C" void exit (int) throw ();' \
2459 'extern "C" void exit (int);' \
2460 'void exit (int);'
2461 do
2462 cat >conftest.$ac_ext <<_ACEOF
2463 /* confdefs.h. */
2464 _ACEOF
2465 cat confdefs.h >>conftest.$ac_ext
2466 cat >>conftest.$ac_ext <<_ACEOF
2467 /* end confdefs.h. */
2468 $ac_declaration
2469 @%:@include <stdlib.h>
2470 int
2471 main ()
2472 {
2473 exit (42);
2474 ;
2475 return 0;
2476 }
2477 _ACEOF
2478 rm -f conftest.$ac_objext
2479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2480 (eval $ac_compile) 2>conftest.er1
2481 ac_status=$?
2482 grep -v '^ *+' conftest.er1 >conftest.err
2483 rm -f conftest.er1
2484 cat conftest.err >&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); } &&
2487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2489 (eval $ac_try) 2>&5
2490 ac_status=$?
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; } &&
2493 { ac_try='test -s conftest.$ac_objext'
2494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495 (eval $ac_try) 2>&5
2496 ac_status=$?
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; }; then
2499 :
2500 else
2501 echo "$as_me: failed program was:" >&5
2502 sed 's/^/| /' conftest.$ac_ext >&5
2503
2504 continue
2505 fi
2506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2507 cat >conftest.$ac_ext <<_ACEOF
2508 /* confdefs.h. */
2509 _ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2513 $ac_declaration
2514 int
2515 main ()
2516 {
2517 exit (42);
2518 ;
2519 return 0;
2520 }
2521 _ACEOF
2522 rm -f conftest.$ac_objext
2523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524 (eval $ac_compile) 2>conftest.er1
2525 ac_status=$?
2526 grep -v '^ *+' conftest.er1 >conftest.err
2527 rm -f conftest.er1
2528 cat conftest.err >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); } &&
2531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 (eval $ac_try) 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; } &&
2537 { ac_try='test -s conftest.$ac_objext'
2538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539 (eval $ac_try) 2>&5
2540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; }; then
2543 break
2544 else
2545 echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2547
2548 fi
2549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2550 done
2551 rm -f conftest*
2552 if test -n "$ac_declaration"; then
2553 echo '#ifdef __cplusplus' >>confdefs.h
2554 echo $ac_declaration >>confdefs.h
2555 echo '#endif' >>confdefs.h
2556 fi
2557
2558 else
2559 echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2561
2562 fi
2563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2564 ac_ext=c
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569
2570 # Check whether --enable-shared or --disable-shared was given.
2571 if test "${enable_shared+set}" = set; then
2572 enableval="$enable_shared"
2573 p=${PACKAGE-default}
2574 case $enableval in
2575 yes) enable_shared=yes ;;
2576 no) enable_shared=no ;;
2577 *)
2578 enable_shared=no
2579 # Look at the argument we got. We use all the common list separators.
2580 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2581 for pkg in $enableval; do
2582 IFS="$lt_save_ifs"
2583 if test "X$pkg" = "X$p"; then
2584 enable_shared=yes
2585 fi
2586 done
2587 IFS="$lt_save_ifs"
2588 ;;
2589 esac
2590 else
2591 enable_shared=yes
2592 fi;
2593
2594 # Check whether --enable-static or --disable-static was given.
2595 if test "${enable_static+set}" = set; then
2596 enableval="$enable_static"
2597 p=${PACKAGE-default}
2598 case $enableval in
2599 yes) enable_static=yes ;;
2600 no) enable_static=no ;;
2601 *)
2602 enable_static=no
2603 # Look at the argument we got. We use all the common list separators.
2604 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2605 for pkg in $enableval; do
2606 IFS="$lt_save_ifs"
2607 if test "X$pkg" = "X$p"; then
2608 enable_static=yes
2609 fi
2610 done
2611 IFS="$lt_save_ifs"
2612 ;;
2613 esac
2614 else
2615 enable_static=yes
2616 fi;
2617
2618 # Check whether --enable-fast-install or --disable-fast-install was given.
2619 if test "${enable_fast_install+set}" = set; then
2620 enableval="$enable_fast_install"
2621 p=${PACKAGE-default}
2622 case $enableval in
2623 yes) enable_fast_install=yes ;;
2624 no) enable_fast_install=no ;;
2625 *)
2626 enable_fast_install=no
2627 # Look at the argument we got. We use all the common list separators.
2628 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2629 for pkg in $enableval; do
2630 IFS="$lt_save_ifs"
2631 if test "X$pkg" = "X$p"; then
2632 enable_fast_install=yes
2633 fi
2634 done
2635 IFS="$lt_save_ifs"
2636 ;;
2637 esac
2638 else
2639 enable_fast_install=yes
2640 fi;
2641
2642 # Make sure we can run config.sub.
2643 $ac_config_sub sun4 >/dev/null 2>&1 ||
2644 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2645 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2646 { (exit 1); exit 1; }; }
2647
2648 echo "$as_me:$LINENO: checking build system type" >&5
2649 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2650 if test "${ac_cv_build+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2652 else
2653 ac_cv_build_alias=$build_alias
2654 test -z "$ac_cv_build_alias" &&
2655 ac_cv_build_alias=`$ac_config_guess`
2656 test -z "$ac_cv_build_alias" &&
2657 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2658 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2659 { (exit 1); exit 1; }; }
2660 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2661 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2662 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2663 { (exit 1); exit 1; }; }
2664
2665 fi
2666 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2667 echo "${ECHO_T}$ac_cv_build" >&6
2668 build=$ac_cv_build
2669 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2670 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2671 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2672
2673
2674 echo "$as_me:$LINENO: checking host system type" >&5
2675 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2676 if test "${ac_cv_host+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 else
2679 ac_cv_host_alias=$host_alias
2680 test -z "$ac_cv_host_alias" &&
2681 ac_cv_host_alias=$ac_cv_build_alias
2682 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2683 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2684 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2685 { (exit 1); exit 1; }; }
2686
2687 fi
2688 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2689 echo "${ECHO_T}$ac_cv_host" >&6
2690 host=$ac_cv_host
2691 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2692 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2693 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2694
2695
2696 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2697 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2698 if test "${lt_cv_path_SED+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2700 else
2701 # Loop through the user's path and test for sed and gsed.
2702 # Then use that list of sed's as ones to test for truncation.
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for lt_ac_prog in sed gsed; do
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2711 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2712 fi
2713 done
2714 done
2715 done
2716 lt_ac_max=0
2717 lt_ac_count=0
2718 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2719 # along with /bin/sed that truncates output.
2720 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2721 test ! -f $lt_ac_sed && break
2722 cat /dev/null > conftest.in
2723 lt_ac_count=0
2724 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2725 # Check for GNU sed and select it if it is found.
2726 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2727 lt_cv_path_SED=$lt_ac_sed
2728 break
2729 fi
2730 while true; do
2731 cat conftest.in conftest.in >conftest.tmp
2732 mv conftest.tmp conftest.in
2733 cp conftest.in conftest.nl
2734 echo >>conftest.nl
2735 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2736 cmp -s conftest.out conftest.nl || break
2737 # 10000 chars as input seems more than enough
2738 test $lt_ac_count -gt 10 && break
2739 lt_ac_count=`expr $lt_ac_count + 1`
2740 if test $lt_ac_count -gt $lt_ac_max; then
2741 lt_ac_max=$lt_ac_count
2742 lt_cv_path_SED=$lt_ac_sed
2743 fi
2744 done
2745 done
2746 SED=$lt_cv_path_SED
2747
2748 fi
2749
2750 echo "$as_me:$LINENO: result: $SED" >&5
2751 echo "${ECHO_T}$SED" >&6
2752
2753 echo "$as_me:$LINENO: checking for egrep" >&5
2754 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2755 if test "${ac_cv_prog_egrep+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2759 then ac_cv_prog_egrep='grep -E'
2760 else ac_cv_prog_egrep='egrep'
2761 fi
2762 fi
2763 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2764 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2765 EGREP=$ac_cv_prog_egrep
2766
2767
2768
2769 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2770 if test "${with_gnu_ld+set}" = set; then
2771 withval="$with_gnu_ld"
2772 test "$withval" = no || with_gnu_ld=yes
2773 else
2774 with_gnu_ld=no
2775 fi;
2776 ac_prog=ld
2777 if test "$GCC" = yes; then
2778 # Check if gcc -print-prog-name=ld gives a path.
2779 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2780 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2781 case $host in
2782 *-*-mingw*)
2783 # gcc leaves a trailing carriage return which upsets mingw
2784 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2785 *)
2786 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2787 esac
2788 case $ac_prog in
2789 # Accept absolute paths.
2790 [\\/]* | ?:[\\/]*)
2791 re_direlt='/[^/][^/]*/\.\./'
2792 # Canonicalize the pathname of ld
2793 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2794 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2795 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2796 done
2797 test -z "$LD" && LD="$ac_prog"
2798 ;;
2799 "")
2800 # If it fails, then pretend we aren't using GCC.
2801 ac_prog=ld
2802 ;;
2803 *)
2804 # If it is relative, then search for the first ld in PATH.
2805 with_gnu_ld=unknown
2806 ;;
2807 esac
2808 elif test "$with_gnu_ld" = yes; then
2809 echo "$as_me:$LINENO: checking for GNU ld" >&5
2810 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2811 else
2812 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2813 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2814 fi
2815 if test "${lt_cv_path_LD+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818 if test -z "$LD"; then
2819 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2820 for ac_dir in $PATH; do
2821 IFS="$lt_save_ifs"
2822 test -z "$ac_dir" && ac_dir=.
2823 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2824 lt_cv_path_LD="$ac_dir/$ac_prog"
2825 # Check to see if the program is GNU ld. I'd rather use --version,
2826 # but apparently some GNU ld's only accept -v.
2827 # Break only if it was the GNU/non-GNU ld that we prefer.
2828 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2829 *GNU* | *'with BFD'*)
2830 test "$with_gnu_ld" != no && break
2831 ;;
2832 *)
2833 test "$with_gnu_ld" != yes && break
2834 ;;
2835 esac
2836 fi
2837 done
2838 IFS="$lt_save_ifs"
2839 else
2840 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2841 fi
2842 fi
2843
2844 LD="$lt_cv_path_LD"
2845 if test -n "$LD"; then
2846 echo "$as_me:$LINENO: result: $LD" >&5
2847 echo "${ECHO_T}$LD" >&6
2848 else
2849 echo "$as_me:$LINENO: result: no" >&5
2850 echo "${ECHO_T}no" >&6
2851 fi
2852 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2853 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2854 { (exit 1); exit 1; }; }
2855 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2856 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2857 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2861 case `$LD -v 2>&1 </dev/null` in
2862 *GNU* | *'with BFD'*)
2863 lt_cv_prog_gnu_ld=yes
2864 ;;
2865 *)
2866 lt_cv_prog_gnu_ld=no
2867 ;;
2868 esac
2869 fi
2870 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2871 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2872 with_gnu_ld=$lt_cv_prog_gnu_ld
2873
2874
2875 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2876 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2877 if test "${lt_cv_ld_reload_flag+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880 lt_cv_ld_reload_flag='-r'
2881 fi
2882 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2883 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2884 reload_flag=$lt_cv_ld_reload_flag
2885 case $reload_flag in
2886 "" | " "*) ;;
2887 *) reload_flag=" $reload_flag" ;;
2888 esac
2889 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2890
2891 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2892 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2893 if test "${lt_cv_path_NM+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 else
2896 if test -n "$NM"; then
2897 # Let the user override the test.
2898 lt_cv_path_NM="$NM"
2899 else
2900 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2901 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2902 IFS="$lt_save_ifs"
2903 test -z "$ac_dir" && ac_dir=.
2904 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2905 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2906 # Check to see if the nm accepts a BSD-compat flag.
2907 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2908 # nm: unknown option "B" ignored
2909 # Tru64's nm complains that /dev/null is an invalid object file
2910 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2911 */dev/null* | *'Invalid file or object type'*)
2912 lt_cv_path_NM="$tmp_nm -B"
2913 break
2914 ;;
2915 *)
2916 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2917 */dev/null*)
2918 lt_cv_path_NM="$tmp_nm -p"
2919 break
2920 ;;
2921 *)
2922 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2923 continue # so that we can try to find one that supports BSD flags
2924 ;;
2925 esac
2926 esac
2927 fi
2928 done
2929 IFS="$lt_save_ifs"
2930 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2931 fi
2932 fi
2933 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2934 echo "${ECHO_T}$lt_cv_path_NM" >&6
2935 NM="$lt_cv_path_NM"
2936
2937 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2938 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2939 LN_S=$as_ln_s
2940 if test "$LN_S" = "ln -s"; then
2941 echo "$as_me:$LINENO: result: yes" >&5
2942 echo "${ECHO_T}yes" >&6
2943 else
2944 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2945 echo "${ECHO_T}no, using $LN_S" >&6
2946 fi
2947
2948 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2949 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
2950 if test "${lt_cv_deplibs_check_method+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953 lt_cv_file_magic_cmd='$MAGIC_CMD'
2954 lt_cv_file_magic_test_file=
2955 lt_cv_deplibs_check_method='unknown'
2956 # Need to set the preceding variable on all platforms that support
2957 # interlibrary dependencies.
2958 # 'none' -- dependencies not supported.
2959 # `unknown' -- same as none, but documents that we really don't know.
2960 # 'pass_all' -- all dependencies passed with no checks.
2961 # 'test_compile' -- check by making test program.
2962 # 'file_magic [[regex]]' -- check by looking for files in library path
2963 # which responds to the $file_magic_cmd with a given extended regex.
2964 # If you have `file' or equivalent on your system and you're not sure
2965 # whether `pass_all' will *always* work, you probably want this one.
2966
2967 case $host_os in
2968 aix4* | aix5*)
2969 lt_cv_deplibs_check_method=pass_all
2970 ;;
2971
2972 beos*)
2973 lt_cv_deplibs_check_method=pass_all
2974 ;;
2975
2976 bsdi4*)
2977 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2978 lt_cv_file_magic_cmd='/usr/bin/file -L'
2979 lt_cv_file_magic_test_file=/shlib/libc.so
2980 ;;
2981
2982 cygwin*)
2983 # func_win32_libid is a shell function defined in ltmain.sh
2984 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2985 lt_cv_file_magic_cmd='func_win32_libid'
2986 ;;
2987
2988 mingw* | pw32*)
2989 # Base MSYS/MinGW do not provide the 'file' command needed by
2990 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2991 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2992 lt_cv_file_magic_cmd='$OBJDUMP -f'
2993 ;;
2994
2995 darwin* | rhapsody*)
2996 lt_cv_deplibs_check_method=pass_all
2997 ;;
2998
2999 freebsd* | kfreebsd*-gnu)
3000 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3001 case $host_cpu in
3002 i*86 )
3003 # Not sure whether the presence of OpenBSD here was a mistake.
3004 # Let's accept both of them until this is cleared up.
3005 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3006 lt_cv_file_magic_cmd=/usr/bin/file
3007 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3008 ;;
3009 esac
3010 else
3011 lt_cv_deplibs_check_method=pass_all
3012 fi
3013 ;;
3014
3015 gnu*)
3016 lt_cv_deplibs_check_method=pass_all
3017 ;;
3018
3019 hpux10.20* | hpux11*)
3020 lt_cv_file_magic_cmd=/usr/bin/file
3021 case "$host_cpu" in
3022 ia64*)
3023 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3024 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3025 ;;
3026 hppa*64*)
3027 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3028 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3029 ;;
3030 *)
3031 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3032 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3033 ;;
3034 esac
3035 ;;
3036
3037 irix5* | irix6* | nonstopux*)
3038 case $LD in
3039 *-32|*"-32 ") libmagic=32-bit;;
3040 *-n32|*"-n32 ") libmagic=N32;;
3041 *-64|*"-64 ") libmagic=64-bit;;
3042 *) libmagic=never-match;;
3043 esac
3044 lt_cv_deplibs_check_method=pass_all
3045 ;;
3046
3047 # This must be Linux ELF.
3048 linux*)
3049 lt_cv_deplibs_check_method=pass_all
3050 ;;
3051
3052 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3053 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3055 else
3056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3057 fi
3058 ;;
3059
3060 newos6*)
3061 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3062 lt_cv_file_magic_cmd=/usr/bin/file
3063 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3064 ;;
3065
3066 nto-qnx*)
3067 lt_cv_deplibs_check_method=unknown
3068 ;;
3069
3070 openbsd*)
3071 lt_cv_file_magic_cmd=/usr/bin/file
3072 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3073 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3074 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3075 else
3076 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3077 fi
3078 ;;
3079
3080 osf3* | osf4* | osf5*)
3081 lt_cv_deplibs_check_method=pass_all
3082 ;;
3083
3084 sco3.2v5*)
3085 lt_cv_deplibs_check_method=pass_all
3086 ;;
3087
3088 solaris*)
3089 lt_cv_deplibs_check_method=pass_all
3090 ;;
3091
3092 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3093 case $host_vendor in
3094 motorola)
3095 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]'
3096 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3097 ;;
3098 ncr)
3099 lt_cv_deplibs_check_method=pass_all
3100 ;;
3101 sequent)
3102 lt_cv_file_magic_cmd='/bin/file'
3103 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3104 ;;
3105 sni)
3106 lt_cv_file_magic_cmd='/bin/file'
3107 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3108 lt_cv_file_magic_test_file=/lib/libc.so
3109 ;;
3110 siemens)
3111 lt_cv_deplibs_check_method=pass_all
3112 ;;
3113 esac
3114 ;;
3115
3116 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3117 lt_cv_deplibs_check_method=pass_all
3118 ;;
3119 esac
3120
3121 fi
3122 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3123 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3124 file_magic_cmd=$lt_cv_file_magic_cmd
3125 deplibs_check_method=$lt_cv_deplibs_check_method
3126 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3127
3128
3129
3130
3131 # If no C compiler was specified, use CC.
3132 LTCC=${LTCC-"$CC"}
3133
3134 # Allow CC to be a program name with arguments.
3135 compiler=$CC
3136
3137
3138 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3139 if test "${enable_libtool_lock+set}" = set; then
3140 enableval="$enable_libtool_lock"
3141
3142 fi;
3143 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3144
3145 # Some flags need to be propagated to the compiler or linker for good
3146 # libtool support.
3147 case $host in
3148 ia64-*-hpux*)
3149 # Find out which ABI we are using.
3150 echo 'int i;' > conftest.$ac_ext
3151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3152 (eval $ac_compile) 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; then
3156 case `/usr/bin/file conftest.$ac_objext` in
3157 *ELF-32*)
3158 HPUX_IA64_MODE="32"
3159 ;;
3160 *ELF-64*)
3161 HPUX_IA64_MODE="64"
3162 ;;
3163 esac
3164 fi
3165 rm -rf conftest*
3166 ;;
3167 *-*-irix6*)
3168 # Find out which ABI we are using.
3169 echo '#line __oline__ "configure"' > conftest.$ac_ext
3170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3171 (eval $ac_compile) 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; then
3175 if test "$lt_cv_prog_gnu_ld" = yes; then
3176 case `/usr/bin/file conftest.$ac_objext` in
3177 *32-bit*)
3178 LD="${LD-ld} -melf32bsmip"
3179 ;;
3180 *N32*)
3181 LD="${LD-ld} -melf32bmipn32"
3182 ;;
3183 *64-bit*)
3184 LD="${LD-ld} -melf64bmip"
3185 ;;
3186 esac
3187 else
3188 case `/usr/bin/file conftest.$ac_objext` in
3189 *32-bit*)
3190 LD="${LD-ld} -32"
3191 ;;
3192 *N32*)
3193 LD="${LD-ld} -n32"
3194 ;;
3195 *64-bit*)
3196 LD="${LD-ld} -64"
3197 ;;
3198 esac
3199 fi
3200 fi
3201 rm -rf conftest*
3202 ;;
3203
3204 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3205 # Find out which ABI we are using.
3206 echo 'int i;' > conftest.$ac_ext
3207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3208 (eval $ac_compile) 2>&5
3209 ac_status=$?
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; then
3212 case "`/usr/bin/file conftest.o`" in
3213 *32-bit*)
3214 case $host in
3215 x86_64-*linux*)
3216 LD="${LD-ld} -m elf_i386"
3217 ;;
3218 ppc64-*linux*|powerpc64-*linux*)
3219 LD="${LD-ld} -m elf32ppclinux"
3220 ;;
3221 s390x-*linux*)
3222 LD="${LD-ld} -m elf_s390"
3223 ;;
3224 sparc64-*linux*)
3225 LD="${LD-ld} -m elf32_sparc"
3226 ;;
3227 esac
3228 ;;
3229 *64-bit*)
3230 case $host in
3231 x86_64-*linux*)
3232 LD="${LD-ld} -m elf_x86_64"
3233 ;;
3234 ppc*-*linux*|powerpc*-*linux*)
3235 LD="${LD-ld} -m elf64ppc"
3236 ;;
3237 s390*-*linux*)
3238 LD="${LD-ld} -m elf64_s390"
3239 ;;
3240 sparc*-*linux*)
3241 LD="${LD-ld} -m elf64_sparc"
3242 ;;
3243 esac
3244 ;;
3245 esac
3246 fi
3247 rm -rf conftest*
3248 ;;
3249
3250 *-*-sco3.2v5*)
3251 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3252 SAVE_CFLAGS="$CFLAGS"
3253 CFLAGS="$CFLAGS -belf"
3254 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3255 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3256 if test "${lt_cv_cc_needs_belf+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259 ac_ext=c
3260 ac_cpp='$CPP $CPPFLAGS'
3261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3264
3265 cat >conftest.$ac_ext <<_ACEOF
3266 /* confdefs.h. */
3267 _ACEOF
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h. */
3271
3272 int
3273 main ()
3274 {
3275
3276 ;
3277 return 0;
3278 }
3279 _ACEOF
3280 rm -f conftest.$ac_objext conftest$ac_exeext
3281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3282 (eval $ac_link) 2>conftest.er1
3283 ac_status=$?
3284 grep -v '^ *+' conftest.er1 >conftest.err
3285 rm -f conftest.er1
3286 cat conftest.err >&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } &&
3289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 (eval $ac_try) 2>&5
3292 ac_status=$?
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; } &&
3295 { ac_try='test -s conftest$ac_exeext'
3296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297 (eval $ac_try) 2>&5
3298 ac_status=$?
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }; }; then
3301 lt_cv_cc_needs_belf=yes
3302 else
3303 echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306 lt_cv_cc_needs_belf=no
3307 fi
3308 rm -f conftest.err conftest.$ac_objext \
3309 conftest$ac_exeext conftest.$ac_ext
3310 ac_ext=c
3311 ac_cpp='$CPP $CPPFLAGS'
3312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3315
3316 fi
3317 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3318 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3319 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3320 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3321 CFLAGS="$SAVE_CFLAGS"
3322 fi
3323 ;;
3324
3325 esac
3326
3327 need_locks="$enable_libtool_lock"
3328
3329
3330 ac_ext=c
3331 ac_cpp='$CPP $CPPFLAGS'
3332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3336 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3337 # On Suns, sometimes $CPP names a directory.
3338 if test -n "$CPP" && test -d "$CPP"; then
3339 CPP=
3340 fi
3341 if test -z "$CPP"; then
3342 if test "${ac_cv_prog_CPP+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 else
3345 # Double quotes because CPP needs to be expanded
3346 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3347 do
3348 ac_preproc_ok=false
3349 for ac_c_preproc_warn_flag in '' yes
3350 do
3351 # Use a header file that comes with gcc, so configuring glibc
3352 # with a fresh cross-compiler works.
3353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3354 # <limits.h> exists even on freestanding compilers.
3355 # On the NeXT, cc -E runs the code through the compiler's parser,
3356 # not just through cpp. "Syntax error" is here to catch this case.
3357 cat >conftest.$ac_ext <<_ACEOF
3358 /* confdefs.h. */
3359 _ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h. */
3363 @%:@ifdef __STDC__
3364 @%:@ include <limits.h>
3365 @%:@else
3366 @%:@ include <assert.h>
3367 @%:@endif
3368 Syntax error
3369 _ACEOF
3370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null; then
3378 if test -s conftest.err; then
3379 ac_cpp_err=$ac_c_preproc_warn_flag
3380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3381 else
3382 ac_cpp_err=
3383 fi
3384 else
3385 ac_cpp_err=yes
3386 fi
3387 if test -z "$ac_cpp_err"; then
3388 :
3389 else
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3392
3393 # Broken: fails on valid input.
3394 continue
3395 fi
3396 rm -f conftest.err conftest.$ac_ext
3397
3398 # OK, works on sane cases. Now check whether non-existent headers
3399 # can be detected and how.
3400 cat >conftest.$ac_ext <<_ACEOF
3401 /* confdefs.h. */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406 @%:@include <ac_nonexistent.h>
3407 _ACEOF
3408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3410 ac_status=$?
3411 grep -v '^ *+' conftest.er1 >conftest.err
3412 rm -f conftest.er1
3413 cat conftest.err >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } >/dev/null; then
3416 if test -s conftest.err; then
3417 ac_cpp_err=$ac_c_preproc_warn_flag
3418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3419 else
3420 ac_cpp_err=
3421 fi
3422 else
3423 ac_cpp_err=yes
3424 fi
3425 if test -z "$ac_cpp_err"; then
3426 # Broken: success on invalid input.
3427 continue
3428 else
3429 echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3431
3432 # Passes both tests.
3433 ac_preproc_ok=:
3434 break
3435 fi
3436 rm -f conftest.err conftest.$ac_ext
3437
3438 done
3439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3440 rm -f conftest.err conftest.$ac_ext
3441 if $ac_preproc_ok; then
3442 break
3443 fi
3444
3445 done
3446 ac_cv_prog_CPP=$CPP
3447
3448 fi
3449 CPP=$ac_cv_prog_CPP
3450 else
3451 ac_cv_prog_CPP=$CPP
3452 fi
3453 echo "$as_me:$LINENO: result: $CPP" >&5
3454 echo "${ECHO_T}$CPP" >&6
3455 ac_preproc_ok=false
3456 for ac_c_preproc_warn_flag in '' yes
3457 do
3458 # Use a header file that comes with gcc, so configuring glibc
3459 # with a fresh cross-compiler works.
3460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3461 # <limits.h> exists even on freestanding compilers.
3462 # On the NeXT, cc -E runs the code through the compiler's parser,
3463 # not just through cpp. "Syntax error" is here to catch this case.
3464 cat >conftest.$ac_ext <<_ACEOF
3465 /* confdefs.h. */
3466 _ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3470 @%:@ifdef __STDC__
3471 @%:@ include <limits.h>
3472 @%:@else
3473 @%:@ include <assert.h>
3474 @%:@endif
3475 Syntax error
3476 _ACEOF
3477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3479 ac_status=$?
3480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } >/dev/null; then
3485 if test -s conftest.err; then
3486 ac_cpp_err=$ac_c_preproc_warn_flag
3487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3488 else
3489 ac_cpp_err=
3490 fi
3491 else
3492 ac_cpp_err=yes
3493 fi
3494 if test -z "$ac_cpp_err"; then
3495 :
3496 else
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500 # Broken: fails on valid input.
3501 continue
3502 fi
3503 rm -f conftest.err conftest.$ac_ext
3504
3505 # OK, works on sane cases. Now check whether non-existent headers
3506 # can be detected and how.
3507 cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h. */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513 @%:@include <ac_nonexistent.h>
3514 _ACEOF
3515 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3517 ac_status=$?
3518 grep -v '^ *+' conftest.er1 >conftest.err
3519 rm -f conftest.er1
3520 cat conftest.err >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } >/dev/null; then
3523 if test -s conftest.err; then
3524 ac_cpp_err=$ac_c_preproc_warn_flag
3525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3526 else
3527 ac_cpp_err=
3528 fi
3529 else
3530 ac_cpp_err=yes
3531 fi
3532 if test -z "$ac_cpp_err"; then
3533 # Broken: success on invalid input.
3534 continue
3535 else
3536 echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3538
3539 # Passes both tests.
3540 ac_preproc_ok=:
3541 break
3542 fi
3543 rm -f conftest.err conftest.$ac_ext
3544
3545 done
3546 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3547 rm -f conftest.err conftest.$ac_ext
3548 if $ac_preproc_ok; then
3549 :
3550 else
3551 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3552 See \`config.log' for more details." >&5
3553 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3554 See \`config.log' for more details." >&2;}
3555 { (exit 1); exit 1; }; }
3556 fi
3557
3558 ac_ext=c
3559 ac_cpp='$CPP $CPPFLAGS'
3560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3563
3564
3565 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3566 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3567 if test "${ac_cv_header_stdc+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h. */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3576 #include <stdlib.h>
3577 #include <stdarg.h>
3578 #include <string.h>
3579 #include <float.h>
3580
3581 int
3582 main ()
3583 {
3584
3585 ;
3586 return 0;
3587 }
3588 _ACEOF
3589 rm -f conftest.$ac_objext
3590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3591 (eval $ac_compile) 2>conftest.er1
3592 ac_status=$?
3593 grep -v '^ *+' conftest.er1 >conftest.err
3594 rm -f conftest.er1
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } &&
3598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 (eval $ac_try) 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; } &&
3604 { ac_try='test -s conftest.$ac_objext'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 (eval $ac_try) 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; }; then
3610 ac_cv_header_stdc=yes
3611 else
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3614
3615 ac_cv_header_stdc=no
3616 fi
3617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3618
3619 if test $ac_cv_header_stdc = yes; then
3620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3621 cat >conftest.$ac_ext <<_ACEOF
3622 /* confdefs.h. */
3623 _ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3627 #include <string.h>
3628
3629 _ACEOF
3630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3631 $EGREP "memchr" >/dev/null 2>&1; then
3632 :
3633 else
3634 ac_cv_header_stdc=no
3635 fi
3636 rm -f conftest*
3637
3638 fi
3639
3640 if test $ac_cv_header_stdc = yes; then
3641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3642 cat >conftest.$ac_ext <<_ACEOF
3643 /* confdefs.h. */
3644 _ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3648 #include <stdlib.h>
3649
3650 _ACEOF
3651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3652 $EGREP "free" >/dev/null 2>&1; then
3653 :
3654 else
3655 ac_cv_header_stdc=no
3656 fi
3657 rm -f conftest*
3658
3659 fi
3660
3661 if test $ac_cv_header_stdc = yes; then
3662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3663 if test "$cross_compiling" = yes; then
3664 :
3665 else
3666 cat >conftest.$ac_ext <<_ACEOF
3667 /* confdefs.h. */
3668 _ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h. */
3672 #include <ctype.h>
3673 #if ((' ' & 0x0FF) == 0x020)
3674 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3675 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3676 #else
3677 # define ISLOWER(c) \
3678 (('a' <= (c) && (c) <= 'i') \
3679 || ('j' <= (c) && (c) <= 'r') \
3680 || ('s' <= (c) && (c) <= 'z'))
3681 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3682 #endif
3683
3684 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3685 int
3686 main ()
3687 {
3688 int i;
3689 for (i = 0; i < 256; i++)
3690 if (XOR (islower (i), ISLOWER (i))
3691 || toupper (i) != TOUPPER (i))
3692 exit(2);
3693 exit (0);
3694 }
3695 _ACEOF
3696 rm -f conftest$ac_exeext
3697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3698 (eval $ac_link) 2>&5
3699 ac_status=$?
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 (eval $ac_try) 2>&5
3704 ac_status=$?
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; }; then
3707 :
3708 else
3709 echo "$as_me: program exited with status $ac_status" >&5
3710 echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3712
3713 ( exit $ac_status )
3714 ac_cv_header_stdc=no
3715 fi
3716 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3717 fi
3718 fi
3719 fi
3720 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3721 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3722 if test $ac_cv_header_stdc = yes; then
3723
3724 cat >>confdefs.h <<\_ACEOF
3725 @%:@define STDC_HEADERS 1
3726 _ACEOF
3727
3728 fi
3729
3730 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3741 inttypes.h stdint.h unistd.h
3742 do
3743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3744 echo "$as_me:$LINENO: checking for $ac_header" >&5
3745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749 cat >conftest.$ac_ext <<_ACEOF
3750 /* confdefs.h. */
3751 _ACEOF
3752 cat confdefs.h >>conftest.$ac_ext
3753 cat >>conftest.$ac_ext <<_ACEOF
3754 /* end confdefs.h. */
3755 $ac_includes_default
3756
3757 @%:@include <$ac_header>
3758 _ACEOF
3759 rm -f conftest.$ac_objext
3760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3761 (eval $ac_compile) 2>conftest.er1
3762 ac_status=$?
3763 grep -v '^ *+' conftest.er1 >conftest.err
3764 rm -f conftest.er1
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770 (eval $ac_try) 2>&5
3771 ac_status=$?
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); }; } &&
3774 { ac_try='test -s conftest.$ac_objext'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 (eval $ac_try) 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; }; then
3780 eval "$as_ac_Header=yes"
3781 else
3782 echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.$ac_ext >&5
3784
3785 eval "$as_ac_Header=no"
3786 fi
3787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3788 fi
3789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3792 cat >>confdefs.h <<_ACEOF
3793 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3794 _ACEOF
3795
3796 fi
3797
3798 done
3799
3800
3801
3802 for ac_header in dlfcn.h
3803 do
3804 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3806 echo "$as_me:$LINENO: checking for $ac_header" >&5
3807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 fi
3811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3813 else
3814 # Is the header compilable?
3815 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3817 cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h. */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 $ac_includes_default
3824 @%:@include <$ac_header>
3825 _ACEOF
3826 rm -f conftest.$ac_objext
3827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3828 (eval $ac_compile) 2>conftest.er1
3829 ac_status=$?
3830 grep -v '^ *+' conftest.er1 >conftest.err
3831 rm -f conftest.er1
3832 cat conftest.err >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } &&
3835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837 (eval $ac_try) 2>&5
3838 ac_status=$?
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; } &&
3841 { ac_try='test -s conftest.$ac_objext'
3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 (eval $ac_try) 2>&5
3844 ac_status=$?
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; }; then
3847 ac_header_compiler=yes
3848 else
3849 echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3851
3852 ac_header_compiler=no
3853 fi
3854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3855 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3856 echo "${ECHO_T}$ac_header_compiler" >&6
3857
3858 # Is the header present?
3859 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3861 cat >conftest.$ac_ext <<_ACEOF
3862 /* confdefs.h. */
3863 _ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3867 @%:@include <$ac_header>
3868 _ACEOF
3869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3871 ac_status=$?
3872 grep -v '^ *+' conftest.er1 >conftest.err
3873 rm -f conftest.er1
3874 cat conftest.err >&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } >/dev/null; then
3877 if test -s conftest.err; then
3878 ac_cpp_err=$ac_c_preproc_warn_flag
3879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3880 else
3881 ac_cpp_err=
3882 fi
3883 else
3884 ac_cpp_err=yes
3885 fi
3886 if test -z "$ac_cpp_err"; then
3887 ac_header_preproc=yes
3888 else
3889 echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3891
3892 ac_header_preproc=no
3893 fi
3894 rm -f conftest.err conftest.$ac_ext
3895 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3896 echo "${ECHO_T}$ac_header_preproc" >&6
3897
3898 # So? What about this header?
3899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3900 yes:no: )
3901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3905 ac_header_preproc=yes
3906 ;;
3907 no:yes:* )
3908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3920 (
3921 cat <<\_ASBOX
3922 @%:@@%:@ ------------------------------------------ @%:@@%:@
3923 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
3924 @%:@@%:@ ------------------------------------------ @%:@@%:@
3925 _ASBOX
3926 ) |
3927 sed "s/^/$as_me: WARNING: /" >&2
3928 ;;
3929 esac
3930 echo "$as_me:$LINENO: checking for $ac_header" >&5
3931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935 eval "$as_ac_Header=\$ac_header_preproc"
3936 fi
3937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3939
3940 fi
3941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3942 cat >>confdefs.h <<_ACEOF
3943 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3944 _ACEOF
3945
3946 fi
3947
3948 done
3949
3950 ac_ext=cc
3951 ac_cpp='$CXXCPP $CPPFLAGS'
3952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3955 if test -n "$ac_tool_prefix"; then
3956 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3957 do
3958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3959 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3960 echo "$as_me:$LINENO: checking for $ac_word" >&5
3961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3962 if test "${ac_cv_prog_CXX+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965 if test -n "$CXX"; then
3966 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3967 else
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 for as_dir in $PATH
3970 do
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3975 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 break 2
3978 fi
3979 done
3980 done
3981
3982 fi
3983 fi
3984 CXX=$ac_cv_prog_CXX
3985 if test -n "$CXX"; then
3986 echo "$as_me:$LINENO: result: $CXX" >&5
3987 echo "${ECHO_T}$CXX" >&6
3988 else
3989 echo "$as_me:$LINENO: result: no" >&5
3990 echo "${ECHO_T}no" >&6
3991 fi
3992
3993 test -n "$CXX" && break
3994 done
3995 fi
3996 if test -z "$CXX"; then
3997 ac_ct_CXX=$CXX
3998 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3999 do
4000 # Extract the first word of "$ac_prog", so it can be a program name with args.
4001 set dummy $ac_prog; ac_word=$2
4002 echo "$as_me:$LINENO: checking for $ac_word" >&5
4003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4004 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007 if test -n "$ac_ct_CXX"; then
4008 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4009 else
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 for as_dir in $PATH
4012 do
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
4015 for ac_exec_ext in '' $ac_executable_extensions; do
4016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4017 ac_cv_prog_ac_ct_CXX="$ac_prog"
4018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 break 2
4020 fi
4021 done
4022 done
4023
4024 fi
4025 fi
4026 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4027 if test -n "$ac_ct_CXX"; then
4028 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4029 echo "${ECHO_T}$ac_ct_CXX" >&6
4030 else
4031 echo "$as_me:$LINENO: result: no" >&5
4032 echo "${ECHO_T}no" >&6
4033 fi
4034
4035 test -n "$ac_ct_CXX" && break
4036 done
4037 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4038
4039 CXX=$ac_ct_CXX
4040 fi
4041
4042
4043 # Provide some information about the compiler.
4044 echo "$as_me:$LINENO:" \
4045 "checking for C++ compiler version" >&5
4046 ac_compiler=`set X $ac_compile; echo $2`
4047 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4048 (eval $ac_compiler --version </dev/null >&5) 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }
4052 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4053 (eval $ac_compiler -v </dev/null >&5) 2>&5
4054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }
4057 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4058 (eval $ac_compiler -V </dev/null >&5) 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }
4062
4063 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4064 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4065 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 else
4068 cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h. */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074
4075 int
4076 main ()
4077 {
4078 #ifndef __GNUC__
4079 choke me
4080 #endif
4081
4082 ;
4083 return 0;
4084 }
4085 _ACEOF
4086 rm -f conftest.$ac_objext
4087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4088 (eval $ac_compile) 2>conftest.er1
4089 ac_status=$?
4090 grep -v '^ *+' conftest.er1 >conftest.err
4091 rm -f conftest.er1
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } &&
4095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 (eval $ac_try) 2>&5
4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; } &&
4101 { ac_try='test -s conftest.$ac_objext'
4102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 (eval $ac_try) 2>&5
4104 ac_status=$?
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
4107 ac_compiler_gnu=yes
4108 else
4109 echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4111
4112 ac_compiler_gnu=no
4113 fi
4114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4115 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4116
4117 fi
4118 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4119 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4120 GXX=`test $ac_compiler_gnu = yes && echo yes`
4121 ac_test_CXXFLAGS=${CXXFLAGS+set}
4122 ac_save_CXXFLAGS=$CXXFLAGS
4123 CXXFLAGS="-g"
4124 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4125 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4126 if test "${ac_cv_prog_cxx_g+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129 cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h. */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4135
4136 int
4137 main ()
4138 {
4139
4140 ;
4141 return 0;
4142 }
4143 _ACEOF
4144 rm -f conftest.$ac_objext
4145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4146 (eval $ac_compile) 2>conftest.er1
4147 ac_status=$?
4148 grep -v '^ *+' conftest.er1 >conftest.err
4149 rm -f conftest.er1
4150 cat conftest.err >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } &&
4153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155 (eval $ac_try) 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; } &&
4159 { ac_try='test -s conftest.$ac_objext'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 (eval $ac_try) 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; }; then
4165 ac_cv_prog_cxx_g=yes
4166 else
4167 echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4169
4170 ac_cv_prog_cxx_g=no
4171 fi
4172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4173 fi
4174 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4175 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4176 if test "$ac_test_CXXFLAGS" = set; then
4177 CXXFLAGS=$ac_save_CXXFLAGS
4178 elif test $ac_cv_prog_cxx_g = yes; then
4179 if test "$GXX" = yes; then
4180 CXXFLAGS="-g -O2"
4181 else
4182 CXXFLAGS="-g"
4183 fi
4184 else
4185 if test "$GXX" = yes; then
4186 CXXFLAGS="-O2"
4187 else
4188 CXXFLAGS=
4189 fi
4190 fi
4191 for ac_declaration in \
4192 '' \
4193 'extern "C" void std::exit (int) throw (); using std::exit;' \
4194 'extern "C" void std::exit (int); using std::exit;' \
4195 'extern "C" void exit (int) throw ();' \
4196 'extern "C" void exit (int);' \
4197 'void exit (int);'
4198 do
4199 cat >conftest.$ac_ext <<_ACEOF
4200 /* confdefs.h. */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4205 $ac_declaration
4206 @%:@include <stdlib.h>
4207 int
4208 main ()
4209 {
4210 exit (42);
4211 ;
4212 return 0;
4213 }
4214 _ACEOF
4215 rm -f conftest.$ac_objext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4217 (eval $ac_compile) 2>conftest.er1
4218 ac_status=$?
4219 grep -v '^ *+' conftest.er1 >conftest.err
4220 rm -f conftest.er1
4221 cat conftest.err >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 (eval $ac_try) 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; } &&
4230 { ac_try='test -s conftest.$ac_objext'
4231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 (eval $ac_try) 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 :
4237 else
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4240
4241 continue
4242 fi
4243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4244 cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h. */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 $ac_declaration
4251 int
4252 main ()
4253 {
4254 exit (42);
4255 ;
4256 return 0;
4257 }
4258 _ACEOF
4259 rm -f conftest.$ac_objext
4260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4261 (eval $ac_compile) 2>conftest.er1
4262 ac_status=$?
4263 grep -v '^ *+' conftest.er1 >conftest.err
4264 rm -f conftest.er1
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } &&
4268 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270 (eval $ac_try) 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; } &&
4274 { ac_try='test -s conftest.$ac_objext'
4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 (eval $ac_try) 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; }; then
4280 break
4281 else
4282 echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4284
4285 fi
4286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4287 done
4288 rm -f conftest*
4289 if test -n "$ac_declaration"; then
4290 echo '#ifdef __cplusplus' >>confdefs.h
4291 echo $ac_declaration >>confdefs.h
4292 echo '#endif' >>confdefs.h
4293 fi
4294
4295 ac_ext=cc
4296 ac_cpp='$CXXCPP $CPPFLAGS'
4297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4300
4301 ac_ext=cc
4302 ac_cpp='$CXXCPP $CPPFLAGS'
4303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4306 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4307 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4308 if test -z "$CXXCPP"; then
4309 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312 # Double quotes because CXXCPP needs to be expanded
4313 for CXXCPP in "$CXX -E" "/lib/cpp"
4314 do
4315 ac_preproc_ok=false
4316 for ac_cxx_preproc_warn_flag in '' yes
4317 do
4318 # Use a header file that comes with gcc, so configuring glibc
4319 # with a fresh cross-compiler works.
4320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4321 # <limits.h> exists even on freestanding compilers.
4322 # On the NeXT, cc -E runs the code through the compiler's parser,
4323 # not just through cpp. "Syntax error" is here to catch this case.
4324 cat >conftest.$ac_ext <<_ACEOF
4325 /* confdefs.h. */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 @%:@ifdef __STDC__
4331 @%:@ include <limits.h>
4332 @%:@else
4333 @%:@ include <assert.h>
4334 @%:@endif
4335 Syntax error
4336 _ACEOF
4337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4339 ac_status=$?
4340 grep -v '^ *+' conftest.er1 >conftest.err
4341 rm -f conftest.er1
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } >/dev/null; then
4345 if test -s conftest.err; then
4346 ac_cpp_err=$ac_cxx_preproc_warn_flag
4347 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4348 else
4349 ac_cpp_err=
4350 fi
4351 else
4352 ac_cpp_err=yes
4353 fi
4354 if test -z "$ac_cpp_err"; then
4355 :
4356 else
4357 echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4359
4360 # Broken: fails on valid input.
4361 continue
4362 fi
4363 rm -f conftest.err conftest.$ac_ext
4364
4365 # OK, works on sane cases. Now check whether non-existent headers
4366 # can be detected and how.
4367 cat >conftest.$ac_ext <<_ACEOF
4368 /* confdefs.h. */
4369 _ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4373 @%:@include <ac_nonexistent.h>
4374 _ACEOF
4375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4377 ac_status=$?
4378 grep -v '^ *+' conftest.er1 >conftest.err
4379 rm -f conftest.er1
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } >/dev/null; then
4383 if test -s conftest.err; then
4384 ac_cpp_err=$ac_cxx_preproc_warn_flag
4385 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4386 else
4387 ac_cpp_err=
4388 fi
4389 else
4390 ac_cpp_err=yes
4391 fi
4392 if test -z "$ac_cpp_err"; then
4393 # Broken: success on invalid input.
4394 continue
4395 else
4396 echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4398
4399 # Passes both tests.
4400 ac_preproc_ok=:
4401 break
4402 fi
4403 rm -f conftest.err conftest.$ac_ext
4404
4405 done
4406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4407 rm -f conftest.err conftest.$ac_ext
4408 if $ac_preproc_ok; then
4409 break
4410 fi
4411
4412 done
4413 ac_cv_prog_CXXCPP=$CXXCPP
4414
4415 fi
4416 CXXCPP=$ac_cv_prog_CXXCPP
4417 else
4418 ac_cv_prog_CXXCPP=$CXXCPP
4419 fi
4420 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4421 echo "${ECHO_T}$CXXCPP" >&6
4422 ac_preproc_ok=false
4423 for ac_cxx_preproc_warn_flag in '' yes
4424 do
4425 # Use a header file that comes with gcc, so configuring glibc
4426 # with a fresh cross-compiler works.
4427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4428 # <limits.h> exists even on freestanding compilers.
4429 # On the NeXT, cc -E runs the code through the compiler's parser,
4430 # not just through cpp. "Syntax error" is here to catch this case.
4431 cat >conftest.$ac_ext <<_ACEOF
4432 /* confdefs.h. */
4433 _ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4437 @%:@ifdef __STDC__
4438 @%:@ include <limits.h>
4439 @%:@else
4440 @%:@ include <assert.h>
4441 @%:@endif
4442 Syntax error
4443 _ACEOF
4444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4446 ac_status=$?
4447 grep -v '^ *+' conftest.er1 >conftest.err
4448 rm -f conftest.er1
4449 cat conftest.err >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } >/dev/null; then
4452 if test -s conftest.err; then
4453 ac_cpp_err=$ac_cxx_preproc_warn_flag
4454 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4455 else
4456 ac_cpp_err=
4457 fi
4458 else
4459 ac_cpp_err=yes
4460 fi
4461 if test -z "$ac_cpp_err"; then
4462 :
4463 else
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4466
4467 # Broken: fails on valid input.
4468 continue
4469 fi
4470 rm -f conftest.err conftest.$ac_ext
4471
4472 # OK, works on sane cases. Now check whether non-existent headers
4473 # can be detected and how.
4474 cat >conftest.$ac_ext <<_ACEOF
4475 /* confdefs.h. */
4476 _ACEOF
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h. */
4480 @%:@include <ac_nonexistent.h>
4481 _ACEOF
4482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4484 ac_status=$?
4485 grep -v '^ *+' conftest.er1 >conftest.err
4486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } >/dev/null; then
4490 if test -s conftest.err; then
4491 ac_cpp_err=$ac_cxx_preproc_warn_flag
4492 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4493 else
4494 ac_cpp_err=
4495 fi
4496 else
4497 ac_cpp_err=yes
4498 fi
4499 if test -z "$ac_cpp_err"; then
4500 # Broken: success on invalid input.
4501 continue
4502 else
4503 echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4505
4506 # Passes both tests.
4507 ac_preproc_ok=:
4508 break
4509 fi
4510 rm -f conftest.err conftest.$ac_ext
4511
4512 done
4513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4514 rm -f conftest.err conftest.$ac_ext
4515 if $ac_preproc_ok; then
4516 :
4517 else
4518 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4519 See \`config.log' for more details." >&5
4520 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4521 See \`config.log' for more details." >&2;}
4522 { (exit 1); exit 1; }; }
4523 fi
4524
4525 ac_ext=cc
4526 ac_cpp='$CXXCPP $CPPFLAGS'
4527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4530
4531
4532 ac_ext=f
4533 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4534 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4536 if test -n "$ac_tool_prefix"; then
4537 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4538 do
4539 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4540 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4541 echo "$as_me:$LINENO: checking for $ac_word" >&5
4542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4543 if test "${ac_cv_prog_F77+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546 if test -n "$F77"; then
4547 ac_cv_prog_F77="$F77" # Let the user override the test.
4548 else
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4551 do
4552 IFS=$as_save_IFS
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 break 2
4559 fi
4560 done
4561 done
4562
4563 fi
4564 fi
4565 F77=$ac_cv_prog_F77
4566 if test -n "$F77"; then
4567 echo "$as_me:$LINENO: result: $F77" >&5
4568 echo "${ECHO_T}$F77" >&6
4569 else
4570 echo "$as_me:$LINENO: result: no" >&5
4571 echo "${ECHO_T}no" >&6
4572 fi
4573
4574 test -n "$F77" && break
4575 done
4576 fi
4577 if test -z "$F77"; then
4578 ac_ct_F77=$F77
4579 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4580 do
4581 # Extract the first word of "$ac_prog", so it can be a program name with args.
4582 set dummy $ac_prog; ac_word=$2
4583 echo "$as_me:$LINENO: checking for $ac_word" >&5
4584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4585 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588 if test -n "$ac_ct_F77"; then
4589 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4590 else
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4593 do
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4598 ac_cv_prog_ac_ct_F77="$ac_prog"
4599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 break 2
4601 fi
4602 done
4603 done
4604
4605 fi
4606 fi
4607 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4608 if test -n "$ac_ct_F77"; then
4609 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4610 echo "${ECHO_T}$ac_ct_F77" >&6
4611 else
4612 echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6
4614 fi
4615
4616 test -n "$ac_ct_F77" && break
4617 done
4618
4619 F77=$ac_ct_F77
4620 fi
4621
4622
4623 # Provide some information about the compiler.
4624 echo "$as_me:__oline__:" \
4625 "checking for Fortran 77 compiler version" >&5
4626 ac_compiler=`set X $ac_compile; echo $2`
4627 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4628 (eval $ac_compiler --version </dev/null >&5) 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }
4632 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4633 (eval $ac_compiler -v </dev/null >&5) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }
4637 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4638 (eval $ac_compiler -V </dev/null >&5) 2>&5
4639 ac_status=$?
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }
4642 rm -f a.out
4643
4644 # If we don't use `.F' as extension, the preprocessor is not run on the
4645 # input file. (Note that this only needs to work for GNU compilers.)
4646 ac_save_ext=$ac_ext
4647 ac_ext=F
4648 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4649 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4650 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653 cat >conftest.$ac_ext <<_ACEOF
4654 program main
4655 #ifndef __GNUC__
4656 choke me
4657 #endif
4658
4659 end
4660 _ACEOF
4661 rm -f conftest.$ac_objext
4662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663 (eval $ac_compile) 2>conftest.er1
4664 ac_status=$?
4665 grep -v '^ *+' conftest.er1 >conftest.err
4666 rm -f conftest.er1
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 (eval $ac_try) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; } &&
4676 { ac_try='test -s conftest.$ac_objext'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678 (eval $ac_try) 2>&5
4679 ac_status=$?
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4682 ac_compiler_gnu=yes
4683 else
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4686
4687 ac_compiler_gnu=no
4688 fi
4689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4690 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4691
4692 fi
4693 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4694 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4695 ac_ext=$ac_save_ext
4696 ac_test_FFLAGS=${FFLAGS+set}
4697 ac_save_FFLAGS=$FFLAGS
4698 FFLAGS=
4699 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4700 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4701 if test "${ac_cv_prog_f77_g+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704 FFLAGS=-g
4705 cat >conftest.$ac_ext <<_ACEOF
4706 program main
4707
4708 end
4709 _ACEOF
4710 rm -f conftest.$ac_objext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4712 (eval $ac_compile) 2>conftest.er1
4713 ac_status=$?
4714 grep -v '^ *+' conftest.er1 >conftest.err
4715 rm -f conftest.er1
4716 cat conftest.err >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } &&
4719 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; } &&
4725 { ac_try='test -s conftest.$ac_objext'
4726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727 (eval $ac_try) 2>&5
4728 ac_status=$?
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; }; then
4731 ac_cv_prog_f77_g=yes
4732 else
4733 echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4735
4736 ac_cv_prog_f77_g=no
4737 fi
4738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4739
4740 fi
4741 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4742 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4743 if test "$ac_test_FFLAGS" = set; then
4744 FFLAGS=$ac_save_FFLAGS
4745 elif test $ac_cv_prog_f77_g = yes; then
4746 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4747 FFLAGS="-g -O2"
4748 else
4749 FFLAGS="-g"
4750 fi
4751 else
4752 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4753 FFLAGS="-O2"
4754 else
4755 FFLAGS=
4756 fi
4757 fi
4758
4759 G77=`test $ac_compiler_gnu = yes && echo yes`
4760 ac_ext=c
4761 ac_cpp='$CPP $CPPFLAGS'
4762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4765
4766
4767
4768 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4769
4770 # find the maximum length of command line arguments
4771 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4772 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4773 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 else
4776 i=0
4777 teststring="ABCD"
4778
4779 case $build_os in
4780 msdosdjgpp*)
4781 # On DJGPP, this test can blow up pretty badly due to problems in libc
4782 # (any single argument exceeding 2000 bytes causes a buffer overrun
4783 # during glob expansion). Even if it were fixed, the result of this
4784 # check would be larger than it should be.
4785 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4786 ;;
4787
4788 gnu*)
4789 # Under GNU Hurd, this test is not required because there is
4790 # no limit to the length of command line arguments.
4791 # Libtool will interpret -1 as no limit whatsoever
4792 lt_cv_sys_max_cmd_len=-1;
4793 ;;
4794
4795 cygwin* | mingw*)
4796 # On Win9x/ME, this test blows up -- it succeeds, but takes
4797 # about 5 minutes as the teststring grows exponentially.
4798 # Worse, since 9x/ME are not pre-emptively multitasking,
4799 # you end up with a "frozen" computer, even though with patience
4800 # the test eventually succeeds (with a max line length of 256k).
4801 # Instead, let's just punt: use the minimum linelength reported by
4802 # all of the supported platforms: 8192 (on NT/2K/XP).
4803 lt_cv_sys_max_cmd_len=8192;
4804 ;;
4805
4806 amigaos*)
4807 # On AmigaOS with pdksh, this test takes hours, literally.
4808 # So we just punt and use a minimum line length of 8192.
4809 lt_cv_sys_max_cmd_len=8192;
4810 ;;
4811
4812 *)
4813 # If test is not a shell built-in, we'll probably end up computing a
4814 # maximum length that is only half of the actual maximum length, but
4815 # we can't tell.
4816 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
4817 = "XX$teststring") >/dev/null 2>&1 &&
4818 new_result=`expr "X$teststring" : ".*" 2>&1` &&
4819 lt_cv_sys_max_cmd_len=$new_result &&
4820 test $i != 17 # 1/2 MB should be enough
4821 do
4822 i=`expr $i + 1`
4823 teststring=$teststring$teststring
4824 done
4825 teststring=
4826 # Add a significant safety factor because C++ compilers can tack on massive
4827 # amounts of additional arguments before passing them to the linker.
4828 # It appears as though 1/2 is a usable value.
4829 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4830 ;;
4831 esac
4832
4833 fi
4834
4835 if test -n $lt_cv_sys_max_cmd_len ; then
4836 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4837 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4838 else
4839 echo "$as_me:$LINENO: result: none" >&5
4840 echo "${ECHO_T}none" >&6
4841 fi
4842
4843
4844
4845
4846 # Check for command to grab the raw symbol name followed by C symbol from nm.
4847 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4848 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4849 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 else
4852
4853 # These are sane defaults that work on at least a few old systems.
4854 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4855
4856 # Character class describing NM global symbol codes.
4857 symcode='[BCDEGRST]'
4858
4859 # Regexp to match symbols that can be accessed directly from C.
4860 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4861
4862 # Transform the above into a raw symbol and a C symbol.
4863 symxfrm='\1 \2\3 \3'
4864
4865 # Transform an extracted symbol line into a proper C declaration
4866 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4867
4868 # Transform an extracted symbol line into symbol name and symbol address
4869 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'"
4870
4871 # Define system-specific variables.
4872 case $host_os in
4873 aix*)
4874 symcode='[BCDT]'
4875 ;;
4876 cygwin* | mingw* | pw32*)
4877 symcode='[ABCDGISTW]'
4878 ;;
4879 hpux*) # Its linker distinguishes data from code symbols
4880 if test "$host_cpu" = ia64; then
4881 symcode='[ABCDEGRST]'
4882 fi
4883 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4884 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'"
4885 ;;
4886 irix* | nonstopux*)
4887 symcode='[BCDEGRST]'
4888 ;;
4889 osf*)
4890 symcode='[BCDEGQRST]'
4891 ;;
4892 solaris* | sysv5*)
4893 symcode='[BDRT]'
4894 ;;
4895 sysv4)
4896 symcode='[DFNSTU]'
4897 ;;
4898 esac
4899
4900 # Handle CRLF in mingw tool chain
4901 opt_cr=
4902 case $build_os in
4903 mingw*)
4904 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4905 ;;
4906 esac
4907
4908 # If we're using GNU nm, then use its standard symbol codes.
4909 case `$NM -V 2>&1` in
4910 *GNU* | *'with BFD'*)
4911 symcode='[ABCDGIRSTW]' ;;
4912 esac
4913
4914 # Try without a prefix undercore, then with it.
4915 for ac_symprfx in "" "_"; do
4916
4917 # Write the raw and C identifiers.
4918 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4919
4920 # Check to see that the pipe works correctly.
4921 pipe_works=no
4922
4923 rm -f conftest*
4924 cat > conftest.$ac_ext <<EOF
4925 #ifdef __cplusplus
4926 extern "C" {
4927 #endif
4928 char nm_test_var;
4929 void nm_test_func(){}
4930 #ifdef __cplusplus
4931 }
4932 #endif
4933 int main(){nm_test_var='a';nm_test_func();return(0);}
4934 EOF
4935
4936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4937 (eval $ac_compile) 2>&5
4938 ac_status=$?
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; then
4941 # Now try to grab the symbols.
4942 nlist=conftest.nm
4943 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4944 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4945 ac_status=$?
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } && test -s "$nlist"; then
4948 # Try sorting and uniquifying the output.
4949 if sort "$nlist" | uniq > "$nlist"T; then
4950 mv -f "$nlist"T "$nlist"
4951 else
4952 rm -f "$nlist"T
4953 fi
4954
4955 # Make sure that we snagged all the symbols we need.
4956 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4957 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4958 cat <<EOF > conftest.$ac_ext
4959 #ifdef __cplusplus
4960 extern "C" {
4961 #endif
4962
4963 EOF
4964 # Now generate the symbol file.
4965 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4966
4967 cat <<EOF >> conftest.$ac_ext
4968 #if defined (__STDC__) && __STDC__
4969 # define lt_ptr_t void *
4970 #else
4971 # define lt_ptr_t char *
4972 # define const
4973 #endif
4974
4975 /* The mapping between symbol names and symbols. */
4976 const struct {
4977 const char *name;
4978 lt_ptr_t address;
4979 }
4980 lt_preloaded_symbols[] =
4981 {
4982 EOF
4983 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4984 cat <<\EOF >> conftest.$ac_ext
4985 {0, (lt_ptr_t) 0}
4986 };
4987
4988 #ifdef __cplusplus
4989 }
4990 #endif
4991 EOF
4992 # Now try linking the two files.
4993 mv conftest.$ac_objext conftstm.$ac_objext
4994 lt_save_LIBS="$LIBS"
4995 lt_save_CFLAGS="$CFLAGS"
4996 LIBS="conftstm.$ac_objext"
4997 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4999 (eval $ac_link) 2>&5
5000 ac_status=$?
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5003 pipe_works=yes
5004 fi
5005 LIBS="$lt_save_LIBS"
5006 CFLAGS="$lt_save_CFLAGS"
5007 else
5008 echo "cannot find nm_test_func in $nlist" >&5
5009 fi
5010 else
5011 echo "cannot find nm_test_var in $nlist" >&5
5012 fi
5013 else
5014 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5015 fi
5016 else
5017 echo "$progname: failed program was:" >&5
5018 cat conftest.$ac_ext >&5
5019 fi
5020 rm -f conftest* conftst*
5021
5022 # Do not use the global_symbol_pipe unless it works.
5023 if test "$pipe_works" = yes; then
5024 break
5025 else
5026 lt_cv_sys_global_symbol_pipe=
5027 fi
5028 done
5029
5030 fi
5031
5032 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5033 lt_cv_sys_global_symbol_to_cdecl=
5034 fi
5035 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5036 echo "$as_me:$LINENO: result: failed" >&5
5037 echo "${ECHO_T}failed" >&6
5038 else
5039 echo "$as_me:$LINENO: result: ok" >&5
5040 echo "${ECHO_T}ok" >&6
5041 fi
5042
5043 echo "$as_me:$LINENO: checking for objdir" >&5
5044 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5045 if test "${lt_cv_objdir+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
5048 rm -f .libs 2>/dev/null
5049 mkdir .libs 2>/dev/null
5050 if test -d .libs; then
5051 lt_cv_objdir=.libs
5052 else
5053 # MS-DOS does not allow filenames that begin with a dot.
5054 lt_cv_objdir=_libs
5055 fi
5056 rmdir .libs 2>/dev/null
5057 fi
5058 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5059 echo "${ECHO_T}$lt_cv_objdir" >&6
5060 objdir=$lt_cv_objdir
5061
5062
5063
5064
5065
5066 case $host_os in
5067 aix3*)
5068 # AIX sometimes has problems with the GCC collect2 program. For some
5069 # reason, if we set the COLLECT_NAMES environment variable, the problems
5070 # vanish in a puff of smoke.
5071 if test "X${COLLECT_NAMES+set}" != Xset; then
5072 COLLECT_NAMES=
5073 export COLLECT_NAMES
5074 fi
5075 ;;
5076 esac
5077
5078 # Sed substitution that helps us do robust quoting. It backslashifies
5079 # metacharacters that are still active within double-quoted strings.
5080 Xsed='sed -e s/^X//'
5081 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5082
5083 # Same as above, but do not quote variable references.
5084 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5085
5086 # Sed substitution to delay expansion of an escaped shell variable in a
5087 # double_quote_subst'ed string.
5088 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5089
5090 # Sed substitution to avoid accidental globbing in evaled expressions
5091 no_glob_subst='s/\*/\\\*/g'
5092
5093 # Constants:
5094 rm="rm -f"
5095
5096 # Global variables:
5097 default_ofile=libtool
5098 can_build_shared=yes
5099
5100 # All known linkers require a `.a' archive for static linking (except M$VC,
5101 # which needs '.lib').
5102 libext=a
5103 ltmain="$ac_aux_dir/ltmain.sh"
5104 ofile="$default_ofile"
5105 with_gnu_ld="$lt_cv_prog_gnu_ld"
5106
5107 if test -n "$ac_tool_prefix"; then
5108 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5109 set dummy ${ac_tool_prefix}ar; ac_word=$2
5110 echo "$as_me:$LINENO: checking for $ac_word" >&5
5111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5112 if test "${ac_cv_prog_AR+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115 if test -n "$AR"; then
5116 ac_cv_prog_AR="$AR" # Let the user override the test.
5117 else
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH
5120 do
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5125 ac_cv_prog_AR="${ac_tool_prefix}ar"
5126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 break 2
5128 fi
5129 done
5130 done
5131
5132 fi
5133 fi
5134 AR=$ac_cv_prog_AR
5135 if test -n "$AR"; then
5136 echo "$as_me:$LINENO: result: $AR" >&5
5137 echo "${ECHO_T}$AR" >&6
5138 else
5139 echo "$as_me:$LINENO: result: no" >&5
5140 echo "${ECHO_T}no" >&6
5141 fi
5142
5143 fi
5144 if test -z "$ac_cv_prog_AR"; then
5145 ac_ct_AR=$AR
5146 # Extract the first word of "ar", so it can be a program name with args.
5147 set dummy ar; ac_word=$2
5148 echo "$as_me:$LINENO: checking for $ac_word" >&5
5149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5150 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 else
5153 if test -n "$ac_ct_AR"; then
5154 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5155 else
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163 ac_cv_prog_ac_ct_AR="ar"
5164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5166 fi
5167 done
5168 done
5169
5170 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5171 fi
5172 fi
5173 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5174 if test -n "$ac_ct_AR"; then
5175 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5176 echo "${ECHO_T}$ac_ct_AR" >&6
5177 else
5178 echo "$as_me:$LINENO: result: no" >&5
5179 echo "${ECHO_T}no" >&6
5180 fi
5181
5182 AR=$ac_ct_AR
5183 else
5184 AR="$ac_cv_prog_AR"
5185 fi
5186
5187 if test -n "$ac_tool_prefix"; then
5188 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5189 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5190 echo "$as_me:$LINENO: checking for $ac_word" >&5
5191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5192 if test "${ac_cv_prog_RANLIB+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195 if test -n "$RANLIB"; then
5196 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5197 else
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5200 do
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 break 2
5208 fi
5209 done
5210 done
5211
5212 fi
5213 fi
5214 RANLIB=$ac_cv_prog_RANLIB
5215 if test -n "$RANLIB"; then
5216 echo "$as_me:$LINENO: result: $RANLIB" >&5
5217 echo "${ECHO_T}$RANLIB" >&6
5218 else
5219 echo "$as_me:$LINENO: result: no" >&5
5220 echo "${ECHO_T}no" >&6
5221 fi
5222
5223 fi
5224 if test -z "$ac_cv_prog_RANLIB"; then
5225 ac_ct_RANLIB=$RANLIB
5226 # Extract the first word of "ranlib", so it can be a program name with args.
5227 set dummy ranlib; ac_word=$2
5228 echo "$as_me:$LINENO: checking for $ac_word" >&5
5229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5230 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 else
5233 if test -n "$ac_ct_RANLIB"; then
5234 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5235 else
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH
5238 do
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243 ac_cv_prog_ac_ct_RANLIB="ranlib"
5244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 break 2
5246 fi
5247 done
5248 done
5249
5250 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5251 fi
5252 fi
5253 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5254 if test -n "$ac_ct_RANLIB"; then
5255 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5256 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5257 else
5258 echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6
5260 fi
5261
5262 RANLIB=$ac_ct_RANLIB
5263 else
5264 RANLIB="$ac_cv_prog_RANLIB"
5265 fi
5266
5267 if test -n "$ac_tool_prefix"; then
5268 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5269 set dummy ${ac_tool_prefix}strip; ac_word=$2
5270 echo "$as_me:$LINENO: checking for $ac_word" >&5
5271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5272 if test "${ac_cv_prog_STRIP+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 else
5275 if test -n "$STRIP"; then
5276 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5277 else
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH
5280 do
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5285 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 break 2
5288 fi
5289 done
5290 done
5291
5292 fi
5293 fi
5294 STRIP=$ac_cv_prog_STRIP
5295 if test -n "$STRIP"; then
5296 echo "$as_me:$LINENO: result: $STRIP" >&5
5297 echo "${ECHO_T}$STRIP" >&6
5298 else
5299 echo "$as_me:$LINENO: result: no" >&5
5300 echo "${ECHO_T}no" >&6
5301 fi
5302
5303 fi
5304 if test -z "$ac_cv_prog_STRIP"; then
5305 ac_ct_STRIP=$STRIP
5306 # Extract the first word of "strip", so it can be a program name with args.
5307 set dummy strip; ac_word=$2
5308 echo "$as_me:$LINENO: checking for $ac_word" >&5
5309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5310 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 else
5313 if test -n "$ac_ct_STRIP"; then
5314 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5315 else
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 for as_dir in $PATH
5318 do
5319 IFS=$as_save_IFS
5320 test -z "$as_dir" && as_dir=.
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5323 ac_cv_prog_ac_ct_STRIP="strip"
5324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5325 break 2
5326 fi
5327 done
5328 done
5329
5330 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5331 fi
5332 fi
5333 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5334 if test -n "$ac_ct_STRIP"; then
5335 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5336 echo "${ECHO_T}$ac_ct_STRIP" >&6
5337 else
5338 echo "$as_me:$LINENO: result: no" >&5
5339 echo "${ECHO_T}no" >&6
5340 fi
5341
5342 STRIP=$ac_ct_STRIP
5343 else
5344 STRIP="$ac_cv_prog_STRIP"
5345 fi
5346
5347
5348 old_CC="$CC"
5349 old_CFLAGS="$CFLAGS"
5350
5351 # Set sane defaults for various variables
5352 test -z "$AR" && AR=ar
5353 test -z "$AR_FLAGS" && AR_FLAGS=cru
5354 test -z "$AS" && AS=as
5355 test -z "$CC" && CC=cc
5356 test -z "$LTCC" && LTCC=$CC
5357 test -z "$DLLTOOL" && DLLTOOL=dlltool
5358 test -z "$LD" && LD=ld
5359 test -z "$LN_S" && LN_S="ln -s"
5360 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5361 test -z "$NM" && NM=nm
5362 test -z "$SED" && SED=sed
5363 test -z "$OBJDUMP" && OBJDUMP=objdump
5364 test -z "$RANLIB" && RANLIB=:
5365 test -z "$STRIP" && STRIP=:
5366 test -z "$ac_objext" && ac_objext=o
5367
5368 # Determine commands to create old-style static archives.
5369 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5370 old_postinstall_cmds='chmod 644 $oldlib'
5371 old_postuninstall_cmds=
5372
5373 if test -n "$RANLIB"; then
5374 case $host_os in
5375 openbsd*)
5376 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5377 ;;
5378 *)
5379 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5380 ;;
5381 esac
5382 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5383 fi
5384
5385 # Only perform the check for file, if the check method requires it
5386 case $deplibs_check_method in
5387 file_magic*)
5388 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5389 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5390 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5391 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 else
5394 case $MAGIC_CMD in
5395 [\\/*] | ?:[\\/]*)
5396 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5397 ;;
5398 *)
5399 lt_save_MAGIC_CMD="$MAGIC_CMD"
5400 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5401 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5402 for ac_dir in $ac_dummy; do
5403 IFS="$lt_save_ifs"
5404 test -z "$ac_dir" && ac_dir=.
5405 if test -f $ac_dir/${ac_tool_prefix}file; then
5406 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5407 if test -n "$file_magic_test_file"; then
5408 case $deplibs_check_method in
5409 "file_magic "*)
5410 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5411 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5412 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5413 $EGREP "$file_magic_regex" > /dev/null; then
5414 :
5415 else
5416 cat <<EOF 1>&2
5417
5418 *** Warning: the command libtool uses to detect shared libraries,
5419 *** $file_magic_cmd, produces output that libtool cannot recognize.
5420 *** The result is that libtool may fail to recognize shared libraries
5421 *** as such. This will affect the creation of libtool libraries that
5422 *** depend on shared libraries, but programs linked with such libtool
5423 *** libraries will work regardless of this problem. Nevertheless, you
5424 *** may want to report the problem to your system manager and/or to
5425 *** bug-libtool@gnu.org
5426
5427 EOF
5428 fi ;;
5429 esac
5430 fi
5431 break
5432 fi
5433 done
5434 IFS="$lt_save_ifs"
5435 MAGIC_CMD="$lt_save_MAGIC_CMD"
5436 ;;
5437 esac
5438 fi
5439
5440 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5441 if test -n "$MAGIC_CMD"; then
5442 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5443 echo "${ECHO_T}$MAGIC_CMD" >&6
5444 else
5445 echo "$as_me:$LINENO: result: no" >&5
5446 echo "${ECHO_T}no" >&6
5447 fi
5448
5449 if test -z "$lt_cv_path_MAGIC_CMD"; then
5450 if test -n "$ac_tool_prefix"; then
5451 echo "$as_me:$LINENO: checking for file" >&5
5452 echo $ECHO_N "checking for file... $ECHO_C" >&6
5453 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 else
5456 case $MAGIC_CMD in
5457 [\\/*] | ?:[\\/]*)
5458 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5459 ;;
5460 *)
5461 lt_save_MAGIC_CMD="$MAGIC_CMD"
5462 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5463 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5464 for ac_dir in $ac_dummy; do
5465 IFS="$lt_save_ifs"
5466 test -z "$ac_dir" && ac_dir=.
5467 if test -f $ac_dir/file; then
5468 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5469 if test -n "$file_magic_test_file"; then
5470 case $deplibs_check_method in
5471 "file_magic "*)
5472 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5473 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5474 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5475 $EGREP "$file_magic_regex" > /dev/null; then
5476 :
5477 else
5478 cat <<EOF 1>&2
5479
5480 *** Warning: the command libtool uses to detect shared libraries,
5481 *** $file_magic_cmd, produces output that libtool cannot recognize.
5482 *** The result is that libtool may fail to recognize shared libraries
5483 *** as such. This will affect the creation of libtool libraries that
5484 *** depend on shared libraries, but programs linked with such libtool
5485 *** libraries will work regardless of this problem. Nevertheless, you
5486 *** may want to report the problem to your system manager and/or to
5487 *** bug-libtool@gnu.org
5488
5489 EOF
5490 fi ;;
5491 esac
5492 fi
5493 break
5494 fi
5495 done
5496 IFS="$lt_save_ifs"
5497 MAGIC_CMD="$lt_save_MAGIC_CMD"
5498 ;;
5499 esac
5500 fi
5501
5502 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5503 if test -n "$MAGIC_CMD"; then
5504 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5505 echo "${ECHO_T}$MAGIC_CMD" >&6
5506 else
5507 echo "$as_me:$LINENO: result: no" >&5
5508 echo "${ECHO_T}no" >&6
5509 fi
5510
5511 else
5512 MAGIC_CMD=:
5513 fi
5514 fi
5515
5516 fi
5517 ;;
5518 esac
5519
5520 enable_dlopen=no
5521 enable_win32_dll=no
5522
5523 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5524 if test "${enable_libtool_lock+set}" = set; then
5525 enableval="$enable_libtool_lock"
5526
5527 fi;
5528 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5529
5530
5531 # Check whether --with-pic or --without-pic was given.
5532 if test "${with_pic+set}" = set; then
5533 withval="$with_pic"
5534 pic_mode="$withval"
5535 else
5536 pic_mode=default
5537 fi;
5538 test -z "$pic_mode" && pic_mode=default
5539
5540 # Use C for the default configuration in the libtool script
5541 tagname=
5542 lt_save_CC="$CC"
5543 ac_ext=c
5544 ac_cpp='$CPP $CPPFLAGS'
5545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5548
5549
5550 # Source file extension for C test sources.
5551 ac_ext=c
5552
5553 # Object file extension for compiled C test sources.
5554 objext=o
5555 objext=$objext
5556
5557 # Code to be used in simple compile tests
5558 lt_simple_compile_test_code="int some_variable = 0;\n"
5559
5560 # Code to be used in simple link tests
5561 lt_simple_link_test_code='int main(){return(0);}\n'
5562
5563
5564 # If no C compiler was specified, use CC.
5565 LTCC=${LTCC-"$CC"}
5566
5567 # Allow CC to be a program name with arguments.
5568 compiler=$CC
5569
5570
5571 #
5572 # Check for any special shared library compilation flags.
5573 #
5574 lt_prog_cc_shlib=
5575 if test "$GCC" = no; then
5576 case $host_os in
5577 sco3.2v5*)
5578 lt_prog_cc_shlib='-belf'
5579 ;;
5580 esac
5581 fi
5582 if test -n "$lt_prog_cc_shlib"; then
5583 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5584 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5585 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5586 else
5587 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5588 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5589 lt_cv_prog_cc_can_build_shared=no
5590 fi
5591 fi
5592
5593
5594 #
5595 # Check to make sure the static flag actually works.
5596 #
5597 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5598 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5599 if test "${lt_prog_compiler_static_works+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602 lt_prog_compiler_static_works=no
5603 save_LDFLAGS="$LDFLAGS"
5604 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5605 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5606 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5607 # The compiler can only warn and ignore the option if not recognized
5608 # So say no if there are warnings
5609 if test -s conftest.err; then
5610 # Append any errors to the config.log.
5611 cat conftest.err 1>&5
5612 else
5613 lt_prog_compiler_static_works=yes
5614 fi
5615 fi
5616 $rm conftest*
5617 LDFLAGS="$save_LDFLAGS"
5618
5619 fi
5620 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5621 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5622
5623 if test x"$lt_prog_compiler_static_works" = xyes; then
5624 :
5625 else
5626 lt_prog_compiler_static=
5627 fi
5628
5629
5630
5631
5632 lt_prog_compiler_no_builtin_flag=
5633
5634 if test "$GCC" = yes; then
5635 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5636
5637
5638 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5639 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5640 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643 lt_cv_prog_compiler_rtti_exceptions=no
5644 ac_outfile=conftest.$ac_objext
5645 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5646 lt_compiler_flag="-fno-rtti -fno-exceptions"
5647 # Insert the option either (1) after the last *FLAGS variable, or
5648 # (2) before a word containing "conftest.", or (3) at the end.
5649 # Note that $ac_compile itself does not contain backslashes and begins
5650 # with a dollar sign (not a hyphen), so the echo should work correctly.
5651 # The option is referenced via a variable to avoid confusing sed.
5652 lt_compile=`echo "$ac_compile" | $SED \
5653 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5655 -e 's:$: $lt_compiler_flag:'`
5656 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
5657 (eval "$lt_compile" 2>conftest.err)
5658 ac_status=$?
5659 cat conftest.err >&5
5660 echo "$as_me:__oline__: \$? = $ac_status" >&5
5661 if (exit $ac_status) && test -s "$ac_outfile"; then
5662 # The compiler can only warn and ignore the option if not recognized
5663 # So say no if there are warnings
5664 if test ! -s conftest.err; then
5665 lt_cv_prog_compiler_rtti_exceptions=yes
5666 fi
5667 fi
5668 $rm conftest*
5669
5670 fi
5671 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5672 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5673
5674 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5675 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5676 else
5677 :
5678 fi
5679
5680 fi
5681
5682 lt_prog_compiler_wl=
5683 lt_prog_compiler_pic=
5684 lt_prog_compiler_static=
5685
5686 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5687 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5688
5689 if test "$GCC" = yes; then
5690 lt_prog_compiler_wl='-Wl,'
5691 lt_prog_compiler_static='-static'
5692
5693 case $host_os in
5694 aix*)
5695 # All AIX code is PIC.
5696 if test "$host_cpu" = ia64; then
5697 # AIX 5 now supports IA64 processor
5698 lt_prog_compiler_static='-Bstatic'
5699 fi
5700 ;;
5701
5702 amigaos*)
5703 # FIXME: we need at least 68020 code to build shared libraries, but
5704 # adding the `-m68020' flag to GCC prevents building anything better,
5705 # like `-m68040'.
5706 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5707 ;;
5708
5709 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5710 # PIC is the default for these OSes.
5711 ;;
5712
5713 mingw* | pw32* | os2*)
5714 # This hack is so that the source file can tell whether it is being
5715 # built for inclusion in a dll (and should export symbols for example).
5716 lt_prog_compiler_pic='-DDLL_EXPORT'
5717 ;;
5718
5719 darwin* | rhapsody*)
5720 # PIC is the default on this platform
5721 # Common symbols not allowed in MH_DYLIB files
5722 lt_prog_compiler_pic='-fno-common'
5723 ;;
5724
5725 msdosdjgpp*)
5726 # Just because we use GCC doesn't mean we suddenly get shared libraries
5727 # on systems that don't support them.
5728 lt_prog_compiler_can_build_shared=no
5729 enable_shared=no
5730 ;;
5731
5732 sysv4*MP*)
5733 if test -d /usr/nec; then
5734 lt_prog_compiler_pic=-Kconform_pic
5735 fi
5736 ;;
5737
5738 hpux*)
5739 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5740 # not for PA HP-UX.
5741 case "$host_cpu" in
5742 hppa*64*|ia64*)
5743 # +Z the default
5744 ;;
5745 *)
5746 lt_prog_compiler_pic='-fPIC'
5747 ;;
5748 esac
5749 ;;
5750
5751 *)
5752 lt_prog_compiler_pic='-fPIC'
5753 ;;
5754 esac
5755 else
5756 # PORTME Check for flag to pass linker flags through the system compiler.
5757 case $host_os in
5758 aix*)
5759 lt_prog_compiler_wl='-Wl,'
5760 if test "$host_cpu" = ia64; then
5761 # AIX 5 now supports IA64 processor
5762 lt_prog_compiler_static='-Bstatic'
5763 else
5764 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5765 fi
5766 ;;
5767
5768 mingw* | pw32* | os2*)
5769 # This hack is so that the source file can tell whether it is being
5770 # built for inclusion in a dll (and should export symbols for example).
5771 lt_prog_compiler_pic='-DDLL_EXPORT'
5772 ;;
5773
5774 hpux9* | hpux10* | hpux11*)
5775 lt_prog_compiler_wl='-Wl,'
5776 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5777 # not for PA HP-UX.
5778 case "$host_cpu" in
5779 hppa*64*|ia64*)
5780 # +Z the default
5781 ;;
5782 *)
5783 lt_prog_compiler_pic='+Z'
5784 ;;
5785 esac
5786 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5787 lt_prog_compiler_static='${wl}-a ${wl}archive'
5788 ;;
5789
5790 irix5* | irix6* | nonstopux*)
5791 lt_prog_compiler_wl='-Wl,'
5792 # PIC (with -KPIC) is the default.
5793 lt_prog_compiler_static='-non_shared'
5794 ;;
5795
5796 newsos6)
5797 lt_prog_compiler_pic='-KPIC'
5798 lt_prog_compiler_static='-Bstatic'
5799 ;;
5800
5801 linux*)
5802 case $CC in
5803 icc* | ecc*)
5804 lt_prog_compiler_wl='-Wl,'
5805 lt_prog_compiler_pic='-KPIC'
5806 lt_prog_compiler_static='-static'
5807 ;;
5808 ccc*)
5809 lt_prog_compiler_wl='-Wl,'
5810 # All Alpha code is PIC.
5811 lt_prog_compiler_static='-non_shared'
5812 ;;
5813 esac
5814 ;;
5815
5816 osf3* | osf4* | osf5*)
5817 lt_prog_compiler_wl='-Wl,'
5818 # All OSF/1 code is PIC.
5819 lt_prog_compiler_static='-non_shared'
5820 ;;
5821
5822 sco3.2v5*)
5823 lt_prog_compiler_pic='-Kpic'
5824 lt_prog_compiler_static='-dn'
5825 ;;
5826
5827 solaris*)
5828 lt_prog_compiler_wl='-Wl,'
5829 lt_prog_compiler_pic='-KPIC'
5830 lt_prog_compiler_static='-Bstatic'
5831 ;;
5832
5833 sunos4*)
5834 lt_prog_compiler_wl='-Qoption ld '
5835 lt_prog_compiler_pic='-PIC'
5836 lt_prog_compiler_static='-Bstatic'
5837 ;;
5838
5839 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5840 lt_prog_compiler_wl='-Wl,'
5841 lt_prog_compiler_pic='-KPIC'
5842 lt_prog_compiler_static='-Bstatic'
5843 ;;
5844
5845 sysv4*MP*)
5846 if test -d /usr/nec ;then
5847 lt_prog_compiler_pic='-Kconform_pic'
5848 lt_prog_compiler_static='-Bstatic'
5849 fi
5850 ;;
5851
5852 uts4*)
5853 lt_prog_compiler_pic='-pic'
5854 lt_prog_compiler_static='-Bstatic'
5855 ;;
5856
5857 *)
5858 lt_prog_compiler_can_build_shared=no
5859 ;;
5860 esac
5861 fi
5862
5863 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5864 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5865
5866 #
5867 # Check to make sure the PIC flag actually works.
5868 #
5869 if test -n "$lt_prog_compiler_pic"; then
5870
5871 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5872 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5873 if test "${lt_prog_compiler_pic_works+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876 lt_prog_compiler_pic_works=no
5877 ac_outfile=conftest.$ac_objext
5878 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5879 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5880 # Insert the option either (1) after the last *FLAGS variable, or
5881 # (2) before a word containing "conftest.", or (3) at the end.
5882 # Note that $ac_compile itself does not contain backslashes and begins
5883 # with a dollar sign (not a hyphen), so the echo should work correctly.
5884 # The option is referenced via a variable to avoid confusing sed.
5885 lt_compile=`echo "$ac_compile" | $SED \
5886 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5888 -e 's:$: $lt_compiler_flag:'`
5889 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
5890 (eval "$lt_compile" 2>conftest.err)
5891 ac_status=$?
5892 cat conftest.err >&5
5893 echo "$as_me:__oline__: \$? = $ac_status" >&5
5894 if (exit $ac_status) && test -s "$ac_outfile"; then
5895 # The compiler can only warn and ignore the option if not recognized
5896 # So say no if there are warnings
5897 if test ! -s conftest.err; then
5898 lt_prog_compiler_pic_works=yes
5899 fi
5900 fi
5901 $rm conftest*
5902
5903 fi
5904 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5905 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5906
5907 if test x"$lt_prog_compiler_pic_works" = xyes; then
5908 case $lt_prog_compiler_pic in
5909 "" | " "*) ;;
5910 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5911 esac
5912 else
5913 lt_prog_compiler_pic=
5914 lt_prog_compiler_can_build_shared=no
5915 fi
5916
5917 fi
5918 case "$host_os" in
5919 # For platforms which do not support PIC, -DPIC is meaningless:
5920 *djgpp*)
5921 lt_prog_compiler_pic=
5922 ;;
5923 *)
5924 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5925 ;;
5926 esac
5927
5928 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5929 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5930 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933 lt_cv_prog_compiler_c_o=no
5934 $rm -r conftest 2>/dev/null
5935 mkdir conftest
5936 cd conftest
5937 mkdir out
5938 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5939
5940 lt_compiler_flag="-o out/conftest2.$ac_objext"
5941 # Insert the option either (1) after the last *FLAGS variable, or
5942 # (2) before a word containing "conftest.", or (3) at the end.
5943 # Note that $ac_compile itself does not contain backslashes and begins
5944 # with a dollar sign (not a hyphen), so the echo should work correctly.
5945 lt_compile=`echo "$ac_compile" | $SED \
5946 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5948 -e 's:$: $lt_compiler_flag:'`
5949 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
5950 (eval "$lt_compile" 2>out/conftest.err)
5951 ac_status=$?
5952 cat out/conftest.err >&5
5953 echo "$as_me:__oline__: \$? = $ac_status" >&5
5954 if (exit $ac_status) && test -s out/conftest2.$ac_objext
5955 then
5956 # The compiler can only warn and ignore the option if not recognized
5957 # So say no if there are warnings
5958 if test ! -s out/conftest.err; then
5959 lt_cv_prog_compiler_c_o=yes
5960 fi
5961 fi
5962 chmod u+w .
5963 $rm conftest*
5964 # SGI C++ compiler will create directory out/ii_files/ for
5965 # template instantiation
5966 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
5967 $rm out/* && rmdir out
5968 cd ..
5969 rmdir conftest
5970 $rm conftest*
5971
5972 fi
5973 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5974 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
5975
5976
5977 hard_links="nottested"
5978 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
5979 # do not overwrite the value of need_locks provided by the user
5980 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5981 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5982 hard_links=yes
5983 $rm conftest*
5984 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5985 touch conftest.a
5986 ln conftest.a conftest.b 2>&5 || hard_links=no
5987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5988 echo "$as_me:$LINENO: result: $hard_links" >&5
5989 echo "${ECHO_T}$hard_links" >&6
5990 if test "$hard_links" = no; then
5991 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5992 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5993 need_locks=warn
5994 fi
5995 else
5996 need_locks=no
5997 fi
5998
5999 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6000 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6001
6002 runpath_var=
6003 allow_undefined_flag=
6004 enable_shared_with_static_runtimes=no
6005 archive_cmds=
6006 archive_expsym_cmds=
6007 old_archive_From_new_cmds=
6008 old_archive_from_expsyms_cmds=
6009 export_dynamic_flag_spec=
6010 whole_archive_flag_spec=
6011 thread_safe_flag_spec=
6012 hardcode_libdir_flag_spec=
6013 hardcode_libdir_flag_spec_ld=
6014 hardcode_libdir_separator=
6015 hardcode_direct=no
6016 hardcode_minus_L=no
6017 hardcode_shlibpath_var=unsupported
6018 link_all_deplibs=unknown
6019 hardcode_automatic=no
6020 module_cmds=
6021 module_expsym_cmds=
6022 always_export_symbols=no
6023 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6024 # include_expsyms should be a list of space-separated symbols to be *always*
6025 # included in the symbol list
6026 include_expsyms=
6027 # exclude_expsyms can be an extended regexp of symbols to exclude
6028 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6029 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6030 # as well as any symbol that contains `d'.
6031 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6032 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6033 # platforms (ab)use it in PIC code, but their linkers get confused if
6034 # the symbol is explicitly referenced. Since portable code cannot
6035 # rely on this symbol name, it's probably fine to never include it in
6036 # preloaded symbol tables.
6037 extract_expsyms_cmds=
6038
6039 case $host_os in
6040 cygwin* | mingw* | pw32*)
6041 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6042 # When not using gcc, we currently assume that we are using
6043 # Microsoft Visual C++.
6044 if test "$GCC" != yes; then
6045 with_gnu_ld=no
6046 fi
6047 ;;
6048 openbsd*)
6049 with_gnu_ld=no
6050 ;;
6051 esac
6052
6053 ld_shlibs=yes
6054 if test "$with_gnu_ld" = yes; then
6055 # If archive_cmds runs LD, not CC, wlarc should be empty
6056 wlarc='${wl}'
6057
6058 # See if GNU ld supports shared libraries.
6059 case $host_os in
6060 aix3* | aix4* | aix5*)
6061 # On AIX/PPC, the GNU linker is very broken
6062 if test "$host_cpu" != ia64; then
6063 ld_shlibs=no
6064 cat <<EOF 1>&2
6065
6066 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6067 *** to be unable to reliably create shared libraries on AIX.
6068 *** Therefore, libtool is disabling shared libraries support. If you
6069 *** really care for shared libraries, you may want to modify your PATH
6070 *** so that a non-GNU linker is found, and then restart.
6071
6072 EOF
6073 fi
6074 ;;
6075
6076 amigaos*)
6077 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)'
6078 hardcode_libdir_flag_spec='-L$libdir'
6079 hardcode_minus_L=yes
6080
6081 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6082 # that the semantics of dynamic libraries on AmigaOS, at least up
6083 # to version 4, is to share data among multiple programs linked
6084 # with the same dynamic library. Since this doesn't match the
6085 # behavior of shared libraries on other platforms, we can't use
6086 # them.
6087 ld_shlibs=no
6088 ;;
6089
6090 beos*)
6091 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6092 allow_undefined_flag=unsupported
6093 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6094 # support --undefined. This deserves some investigation. FIXME
6095 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6096 else
6097 ld_shlibs=no
6098 fi
6099 ;;
6100
6101 cygwin* | mingw* | pw32*)
6102 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6103 # as there is no search path for DLLs.
6104 hardcode_libdir_flag_spec='-L$libdir'
6105 allow_undefined_flag=unsupported
6106 always_export_symbols=no
6107 enable_shared_with_static_runtimes=yes
6108 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6109
6110 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6112 # If the export-symbols file already is a .def file (1st line
6113 # is EXPORTS), use it as is; otherwise, prepend...
6114 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6115 cp $export_symbols $output_objdir/$soname.def;
6116 else
6117 echo EXPORTS > $output_objdir/$soname.def;
6118 cat $export_symbols >> $output_objdir/$soname.def;
6119 fi~
6120 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6121 else
6122 ld_shlibs=no
6123 fi
6124 ;;
6125
6126 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6127 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6128 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6129 wlarc=
6130 else
6131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6132 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6133 fi
6134 ;;
6135
6136 solaris* | sysv5*)
6137 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6138 ld_shlibs=no
6139 cat <<EOF 1>&2
6140
6141 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6142 *** create shared libraries on Solaris systems. Therefore, libtool
6143 *** is disabling shared libraries support. We urge you to upgrade GNU
6144 *** binutils to release 2.9.1 or newer. Another option is to modify
6145 *** your PATH or compiler configuration so that the native linker is
6146 *** used, and then restart.
6147
6148 EOF
6149 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6151 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6152 else
6153 ld_shlibs=no
6154 fi
6155 ;;
6156
6157 sunos4*)
6158 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6159 wlarc=
6160 hardcode_direct=yes
6161 hardcode_shlibpath_var=no
6162 ;;
6163
6164 linux*)
6165 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6166 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6167 archive_cmds="$tmp_archive_cmds"
6168 supports_anon_versioning=no
6169 case `$LD -v 2>/dev/null` in
6170 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6171 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6172 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6173 *\ 2.11.*) ;; # other 2.11 versions
6174 *) supports_anon_versioning=yes ;;
6175 esac
6176 if test $supports_anon_versioning = yes; then
6177 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6178 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6179 $echo "local: *; };" >> $output_objdir/$libname.ver~
6180 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6181 else
6182 archive_expsym_cmds="$tmp_archive_cmds"
6183 fi
6184 link_all_deplibs=no
6185 else
6186 ld_shlibs=no
6187 fi
6188 ;;
6189
6190 *)
6191 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6194 else
6195 ld_shlibs=no
6196 fi
6197 ;;
6198 esac
6199
6200 if test "$ld_shlibs" = yes; then
6201 runpath_var=LD_RUN_PATH
6202 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6203 export_dynamic_flag_spec='${wl}--export-dynamic'
6204 # ancient GNU ld didn't support --whole-archive et. al.
6205 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6206 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6207 else
6208 whole_archive_flag_spec=
6209 fi
6210 fi
6211 else
6212 # PORTME fill in a description of your system's linker (not GNU ld)
6213 case $host_os in
6214 aix3*)
6215 allow_undefined_flag=unsupported
6216 always_export_symbols=yes
6217 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'
6218 # Note: this linker hardcodes the directories in LIBPATH if there
6219 # are no directories specified by -L.
6220 hardcode_minus_L=yes
6221 if test "$GCC" = yes && test -z "$link_static_flag"; then
6222 # Neither direct hardcoding nor static linking is supported with a
6223 # broken collect2.
6224 hardcode_direct=unsupported
6225 fi
6226 ;;
6227
6228 aix4* | aix5*)
6229 if test "$host_cpu" = ia64; then
6230 # On IA64, the linker does run time linking by default, so we don't
6231 # have to do anything special.
6232 aix_use_runtimelinking=no
6233 exp_sym_flag='-Bexport'
6234 no_entry_flag=""
6235 else
6236 # If we're using GNU nm, then we don't want the "-C" option.
6237 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6238 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6239 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'
6240 else
6241 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'
6242 fi
6243 aix_use_runtimelinking=no
6244
6245 # Test if we are trying to use run time linking or normal
6246 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6247 # need to do runtime linking.
6248 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6249 for ld_flag in $LDFLAGS; do
6250 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6251 aix_use_runtimelinking=yes
6252 break
6253 fi
6254 done
6255 esac
6256
6257 exp_sym_flag='-bexport'
6258 no_entry_flag='-bnoentry'
6259 fi
6260
6261 # When large executables or shared objects are built, AIX ld can
6262 # have problems creating the table of contents. If linking a library
6263 # or program results in "error TOC overflow" add -mminimal-toc to
6264 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6265 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6266
6267 archive_cmds=''
6268 hardcode_direct=yes
6269 hardcode_libdir_separator=':'
6270 link_all_deplibs=yes
6271
6272 if test "$GCC" = yes; then
6273 case $host_os in aix4.012|aix4.012.*)
6274 # We only want to do this on AIX 4.2 and lower, the check
6275 # below for broken collect2 doesn't work under 4.3+
6276 collect2name=`${CC} -print-prog-name=collect2`
6277 if test -f "$collect2name" && \
6278 strings "$collect2name" | grep resolve_lib_name >/dev/null
6279 then
6280 # We have reworked collect2
6281 hardcode_direct=yes
6282 else
6283 # We have old collect2
6284 hardcode_direct=unsupported
6285 # It fails to find uninstalled libraries when the uninstalled
6286 # path is not listed in the libpath. Setting hardcode_minus_L
6287 # to unsupported forces relinking
6288 hardcode_minus_L=yes
6289 hardcode_libdir_flag_spec='-L$libdir'
6290 hardcode_libdir_separator=
6291 fi
6292 esac
6293 shared_flag='-shared'
6294 else
6295 # not using gcc
6296 if test "$host_cpu" = ia64; then
6297 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6298 # chokes on -Wl,-G. The following line is correct:
6299 shared_flag='-G'
6300 else
6301 if test "$aix_use_runtimelinking" = yes; then
6302 shared_flag='${wl}-G'
6303 else
6304 shared_flag='${wl}-bM:SRE'
6305 fi
6306 fi
6307 fi
6308
6309 # It seems that -bexpall does not export symbols beginning with
6310 # underscore (_), so it is better to generate a list of symbols to export.
6311 always_export_symbols=yes
6312 if test "$aix_use_runtimelinking" = yes; then
6313 # Warning - without using the other runtime loading flags (-brtl),
6314 # -berok will link without error, but may produce a broken library.
6315 allow_undefined_flag='-berok'
6316 # Determine the default libpath from the value encoded in an empty executable.
6317 cat >conftest.$ac_ext <<_ACEOF
6318 /* confdefs.h. */
6319 _ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6323
6324 int
6325 main ()
6326 {
6327
6328 ;
6329 return 0;
6330 }
6331 _ACEOF
6332 rm -f conftest.$ac_objext conftest$ac_exeext
6333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6334 (eval $ac_link) 2>conftest.er1
6335 ac_status=$?
6336 grep -v '^ *+' conftest.er1 >conftest.err
6337 rm -f conftest.er1
6338 cat conftest.err >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } &&
6341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 (eval $ac_try) 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; } &&
6347 { ac_try='test -s conftest$ac_exeext'
6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349 (eval $ac_try) 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; }; then
6353
6354 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6355 }'`
6356 # Check for a 64-bit object if we didn't find anything.
6357 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; }
6358 }'`; fi
6359 else
6360 echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.$ac_ext >&5
6362
6363 fi
6364 rm -f conftest.err conftest.$ac_objext \
6365 conftest$ac_exeext conftest.$ac_ext
6366 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6367
6368 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6369 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"
6370 else
6371 if test "$host_cpu" = ia64; then
6372 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6373 allow_undefined_flag="-z nodefs"
6374 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"
6375 else
6376 # Determine the default libpath from the value encoded in an empty executable.
6377 cat >conftest.$ac_ext <<_ACEOF
6378 /* confdefs.h. */
6379 _ACEOF
6380 cat confdefs.h >>conftest.$ac_ext
6381 cat >>conftest.$ac_ext <<_ACEOF
6382 /* end confdefs.h. */
6383
6384 int
6385 main ()
6386 {
6387
6388 ;
6389 return 0;
6390 }
6391 _ACEOF
6392 rm -f conftest.$ac_objext conftest$ac_exeext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6394 (eval $ac_link) 2>conftest.er1
6395 ac_status=$?
6396 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -f conftest.er1
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 (eval $ac_try) 2>&5
6404 ac_status=$?
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }; } &&
6407 { ac_try='test -s conftest$ac_exeext'
6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 (eval $ac_try) 2>&5
6410 ac_status=$?
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; }; then
6413
6414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6415 }'`
6416 # Check for a 64-bit object if we didn't find anything.
6417 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; }
6418 }'`; fi
6419 else
6420 echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.$ac_ext >&5
6422
6423 fi
6424 rm -f conftest.err conftest.$ac_objext \
6425 conftest$ac_exeext conftest.$ac_ext
6426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6427
6428 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6429 # Warning - without using the other run time loading flags,
6430 # -berok will link without error, but may produce a broken library.
6431 no_undefined_flag=' ${wl}-bernotok'
6432 allow_undefined_flag=' ${wl}-berok'
6433 # -bexpall does not export symbols beginning with underscore (_)
6434 always_export_symbols=yes
6435 # Exported symbols can be pulled into shared objects from archives
6436 whole_archive_flag_spec=' '
6437 archive_cmds_need_lc=yes
6438 # This is similar to how AIX traditionally builds it's shared libraries.
6439 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'
6440 fi
6441 fi
6442 ;;
6443
6444 amigaos*)
6445 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)'
6446 hardcode_libdir_flag_spec='-L$libdir'
6447 hardcode_minus_L=yes
6448 # see comment about different semantics on the GNU ld section
6449 ld_shlibs=no
6450 ;;
6451
6452 bsdi4*)
6453 export_dynamic_flag_spec=-rdynamic
6454 ;;
6455
6456 cygwin* | mingw* | pw32*)
6457 # When not using gcc, we currently assume that we are using
6458 # Microsoft Visual C++.
6459 # hardcode_libdir_flag_spec is actually meaningless, as there is
6460 # no search path for DLLs.
6461 hardcode_libdir_flag_spec=' '
6462 allow_undefined_flag=unsupported
6463 # Tell ltmain to make .lib files, not .a files.
6464 libext=lib
6465 # Tell ltmain to make .dll files, not .so files.
6466 shrext_cmds=".dll"
6467 # FIXME: Setting linknames here is a bad hack.
6468 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6469 # The linker will automatically build a .lib file if we build a DLL.
6470 old_archive_From_new_cmds='true'
6471 # FIXME: Should let the user specify the lib program.
6472 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6473 fix_srcfile_path='`cygpath -w "$srcfile"`'
6474 enable_shared_with_static_runtimes=yes
6475 ;;
6476
6477 darwin* | rhapsody*)
6478 if test "$GXX" = yes ; then
6479 archive_cmds_need_lc=no
6480 case "$host_os" in
6481 rhapsody* | darwin1.[012])
6482 allow_undefined_flag='-undefined suppress'
6483 ;;
6484 *) # Darwin 1.3 on
6485 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6486 allow_undefined_flag='-flat_namespace -undefined suppress'
6487 else
6488 case ${MACOSX_DEPLOYMENT_TARGET} in
6489 10.[012])
6490 allow_undefined_flag='-flat_namespace -undefined suppress'
6491 ;;
6492 10.*)
6493 allow_undefined_flag='-undefined dynamic_lookup'
6494 ;;
6495 esac
6496 fi
6497 ;;
6498 esac
6499 lt_int_apple_cc_single_mod=no
6500 output_verbose_link_cmd='echo'
6501 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6502 lt_int_apple_cc_single_mod=yes
6503 fi
6504 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6505 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6506 else
6507 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6508 fi
6509 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6510 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6511 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6512 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6513 else
6514 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6515 fi
6516 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6517 hardcode_direct=no
6518 hardcode_automatic=yes
6519 hardcode_shlibpath_var=unsupported
6520 whole_archive_flag_spec='-all_load $convenience'
6521 link_all_deplibs=yes
6522 else
6523 ld_shlibs=no
6524 fi
6525 ;;
6526
6527 dgux*)
6528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6529 hardcode_libdir_flag_spec='-L$libdir'
6530 hardcode_shlibpath_var=no
6531 ;;
6532
6533 freebsd1*)
6534 ld_shlibs=no
6535 ;;
6536
6537 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6538 # support. Future versions do this automatically, but an explicit c++rt0.o
6539 # does not break anything, and helps significantly (at the cost of a little
6540 # extra space).
6541 freebsd2.2*)
6542 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6543 hardcode_libdir_flag_spec='-R$libdir'
6544 hardcode_direct=yes
6545 hardcode_shlibpath_var=no
6546 ;;
6547
6548 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6549 freebsd2*)
6550 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6551 hardcode_direct=yes
6552 hardcode_minus_L=yes
6553 hardcode_shlibpath_var=no
6554 ;;
6555
6556 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6557 freebsd* | kfreebsd*-gnu)
6558 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6559 hardcode_libdir_flag_spec='-R$libdir'
6560 hardcode_direct=yes
6561 hardcode_shlibpath_var=no
6562 ;;
6563
6564 hpux9*)
6565 if test "$GCC" = yes; then
6566 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'
6567 else
6568 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'
6569 fi
6570 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6571 hardcode_libdir_separator=:
6572 hardcode_direct=yes
6573
6574 # hardcode_minus_L: Not really in the search PATH,
6575 # but as the default location of the library.
6576 hardcode_minus_L=yes
6577 export_dynamic_flag_spec='${wl}-E'
6578 ;;
6579
6580 hpux10* | hpux11*)
6581 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6582 case "$host_cpu" in
6583 hppa*64*|ia64*)
6584 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6585 ;;
6586 *)
6587 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6588 ;;
6589 esac
6590 else
6591 case "$host_cpu" in
6592 hppa*64*|ia64*)
6593 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6594 ;;
6595 *)
6596 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6597 ;;
6598 esac
6599 fi
6600 if test "$with_gnu_ld" = no; then
6601 case "$host_cpu" in
6602 hppa*64*)
6603 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6604 hardcode_libdir_flag_spec_ld='+b $libdir'
6605 hardcode_libdir_separator=:
6606 hardcode_direct=no
6607 hardcode_shlibpath_var=no
6608 ;;
6609 ia64*)
6610 hardcode_libdir_flag_spec='-L$libdir'
6611 hardcode_direct=no
6612 hardcode_shlibpath_var=no
6613
6614 # hardcode_minus_L: Not really in the search PATH,
6615 # but as the default location of the library.
6616 hardcode_minus_L=yes
6617 ;;
6618 *)
6619 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6620 hardcode_libdir_separator=:
6621 hardcode_direct=yes
6622 export_dynamic_flag_spec='${wl}-E'
6623
6624 # hardcode_minus_L: Not really in the search PATH,
6625 # but as the default location of the library.
6626 hardcode_minus_L=yes
6627 ;;
6628 esac
6629 fi
6630 ;;
6631
6632 irix5* | irix6* | nonstopux*)
6633 if test "$GCC" = yes; then
6634 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'
6635 else
6636 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'
6637 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6638 fi
6639 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6640 hardcode_libdir_separator=:
6641 link_all_deplibs=yes
6642 ;;
6643
6644 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6645 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6646 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6647 else
6648 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6649 fi
6650 hardcode_libdir_flag_spec='-R$libdir'
6651 hardcode_direct=yes
6652 hardcode_shlibpath_var=no
6653 ;;
6654
6655 newsos6)
6656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6657 hardcode_direct=yes
6658 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6659 hardcode_libdir_separator=:
6660 hardcode_shlibpath_var=no
6661 ;;
6662
6663 openbsd*)
6664 hardcode_direct=yes
6665 hardcode_shlibpath_var=no
6666 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6668 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6669 export_dynamic_flag_spec='${wl}-E'
6670 else
6671 case $host_os in
6672 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6673 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6674 hardcode_libdir_flag_spec='-R$libdir'
6675 ;;
6676 *)
6677 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6678 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6679 ;;
6680 esac
6681 fi
6682 ;;
6683
6684 os2*)
6685 hardcode_libdir_flag_spec='-L$libdir'
6686 hardcode_minus_L=yes
6687 allow_undefined_flag=unsupported
6688 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'
6689 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6690 ;;
6691
6692 osf3*)
6693 if test "$GCC" = yes; then
6694 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6695 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'
6696 else
6697 allow_undefined_flag=' -expect_unresolved \*'
6698 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'
6699 fi
6700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6701 hardcode_libdir_separator=:
6702 ;;
6703
6704 osf4* | osf5*) # as osf3* with the addition of -msym flag
6705 if test "$GCC" = yes; then
6706 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6707 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'
6708 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6709 else
6710 allow_undefined_flag=' -expect_unresolved \*'
6711 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'
6712 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6713 $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'
6714
6715 # Both c and cxx compiler support -rpath directly
6716 hardcode_libdir_flag_spec='-rpath $libdir'
6717 fi
6718 hardcode_libdir_separator=:
6719 ;;
6720
6721 sco3.2v5*)
6722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6723 hardcode_shlibpath_var=no
6724 export_dynamic_flag_spec='${wl}-Bexport'
6725 runpath_var=LD_RUN_PATH
6726 hardcode_runpath_var=yes
6727 ;;
6728
6729 solaris*)
6730 no_undefined_flag=' -z text'
6731 if test "$GCC" = yes; then
6732 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6733 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6734 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6735 else
6736 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6737 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6738 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6739 fi
6740 hardcode_libdir_flag_spec='-R$libdir'
6741 hardcode_shlibpath_var=no
6742 case $host_os in
6743 solaris2.[0-5] | solaris2.[0-5].*) ;;
6744 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6745 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6746 esac
6747 link_all_deplibs=yes
6748 ;;
6749
6750 sunos4*)
6751 if test "x$host_vendor" = xsequent; then
6752 # Use $CC to link under sequent, because it throws in some extra .o
6753 # files that make .init and .fini sections work.
6754 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6755 else
6756 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6757 fi
6758 hardcode_libdir_flag_spec='-L$libdir'
6759 hardcode_direct=yes
6760 hardcode_minus_L=yes
6761 hardcode_shlibpath_var=no
6762 ;;
6763
6764 sysv4)
6765 case $host_vendor in
6766 sni)
6767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6768 hardcode_direct=yes # is this really true???
6769 ;;
6770 siemens)
6771 ## LD is ld it makes a PLAMLIB
6772 ## CC just makes a GrossModule.
6773 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6774 reload_cmds='$CC -r -o $output$reload_objs'
6775 hardcode_direct=no
6776 ;;
6777 motorola)
6778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6779 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6780 ;;
6781 esac
6782 runpath_var='LD_RUN_PATH'
6783 hardcode_shlibpath_var=no
6784 ;;
6785
6786 sysv4.3*)
6787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6788 hardcode_shlibpath_var=no
6789 export_dynamic_flag_spec='-Bexport'
6790 ;;
6791
6792 sysv4*MP*)
6793 if test -d /usr/nec; then
6794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6795 hardcode_shlibpath_var=no
6796 runpath_var=LD_RUN_PATH
6797 hardcode_runpath_var=yes
6798 ld_shlibs=yes
6799 fi
6800 ;;
6801
6802 sysv4.2uw2*)
6803 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6804 hardcode_direct=yes
6805 hardcode_minus_L=no
6806 hardcode_shlibpath_var=no
6807 hardcode_runpath_var=yes
6808 runpath_var=LD_RUN_PATH
6809 ;;
6810
6811 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6812 no_undefined_flag='${wl}-z ${wl}text'
6813 if test "$GCC" = yes; then
6814 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6815 else
6816 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6817 fi
6818 runpath_var='LD_RUN_PATH'
6819 hardcode_shlibpath_var=no
6820 ;;
6821
6822 sysv5*)
6823 no_undefined_flag=' -z text'
6824 # $CC -shared without GNU ld will not create a library from C++
6825 # object files and a static libstdc++, better avoid it by now
6826 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6827 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6828 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6829 hardcode_libdir_flag_spec=
6830 hardcode_shlibpath_var=no
6831 runpath_var='LD_RUN_PATH'
6832 ;;
6833
6834 uts4*)
6835 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6836 hardcode_libdir_flag_spec='-L$libdir'
6837 hardcode_shlibpath_var=no
6838 ;;
6839
6840 *)
6841 ld_shlibs=no
6842 ;;
6843 esac
6844 fi
6845
6846 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6847 echo "${ECHO_T}$ld_shlibs" >&6
6848 test "$ld_shlibs" = no && can_build_shared=no
6849
6850 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6851 if test "$GCC" = yes; then
6852 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6853 fi
6854
6855 #
6856 # Do we need to explicitly link libc?
6857 #
6858 case "x$archive_cmds_need_lc" in
6859 x|xyes)
6860 # Assume -lc should be added
6861 archive_cmds_need_lc=yes
6862
6863 if test "$enable_shared" = yes && test "$GCC" = yes; then
6864 case $archive_cmds in
6865 *'~'*)
6866 # FIXME: we may have to deal with multi-command sequences.
6867 ;;
6868 '$CC '*)
6869 # Test whether the compiler implicitly links with -lc since on some
6870 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6871 # to ld, don't add -lc before -lgcc.
6872 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6873 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6874 $rm conftest*
6875 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6876
6877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6878 (eval $ac_compile) 2>&5
6879 ac_status=$?
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } 2>conftest.err; then
6882 soname=conftest
6883 lib=conftest
6884 libobjs=conftest.$ac_objext
6885 deplibs=
6886 wl=$lt_prog_compiler_wl
6887 compiler_flags=-v
6888 linker_flags=-v
6889 verstring=
6890 output_objdir=.
6891 libname=conftest
6892 lt_save_allow_undefined_flag=$allow_undefined_flag
6893 allow_undefined_flag=
6894 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6895 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6896 ac_status=$?
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }
6899 then
6900 archive_cmds_need_lc=no
6901 else
6902 archive_cmds_need_lc=yes
6903 fi
6904 allow_undefined_flag=$lt_save_allow_undefined_flag
6905 else
6906 cat conftest.err 1>&5
6907 fi
6908 $rm conftest*
6909 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6910 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6911 ;;
6912 esac
6913 fi
6914 ;;
6915 esac
6916
6917 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6918 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6919 library_names_spec=
6920 libname_spec='lib$name'
6921 soname_spec=
6922 shrext_cmds=".so"
6923 postinstall_cmds=
6924 postuninstall_cmds=
6925 finish_cmds=
6926 finish_eval=
6927 shlibpath_var=
6928 shlibpath_overrides_runpath=unknown
6929 version_type=none
6930 dynamic_linker="$host_os ld.so"
6931 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6932 if test "$GCC" = yes; then
6933 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6934 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6935 # if the path contains ";" then we assume it to be the separator
6936 # otherwise default to the standard path separator (i.e. ":") - it is
6937 # assumed that no part of a normal pathname contains ";" but that should
6938 # okay in the real world where ";" in dirpaths is itself problematic.
6939 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6940 else
6941 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6942 fi
6943 else
6944 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6945 fi
6946 need_lib_prefix=unknown
6947 hardcode_into_libs=no
6948
6949 # when you set need_version to no, make sure it does not cause -set_version
6950 # flags to be left without arguments
6951 need_version=unknown
6952
6953 case $host_os in
6954 aix3*)
6955 version_type=linux
6956 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6957 shlibpath_var=LIBPATH
6958
6959 # AIX 3 has no versioning support, so we append a major version to the name.
6960 soname_spec='${libname}${release}${shared_ext}$major'
6961 ;;
6962
6963 aix4* | aix5*)
6964 version_type=linux
6965 need_lib_prefix=no
6966 need_version=no
6967 hardcode_into_libs=yes
6968 if test "$host_cpu" = ia64; then
6969 # AIX 5 supports IA64
6970 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6971 shlibpath_var=LD_LIBRARY_PATH
6972 else
6973 # With GCC up to 2.95.x, collect2 would create an import file
6974 # for dependence libraries. The import file would start with
6975 # the line `#! .'. This would cause the generated library to
6976 # depend on `.', always an invalid library. This was fixed in
6977 # development snapshots of GCC prior to 3.0.
6978 case $host_os in
6979 aix4 | aix4.[01] | aix4.[01].*)
6980 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6981 echo ' yes '
6982 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6983 :
6984 else
6985 can_build_shared=no
6986 fi
6987 ;;
6988 esac
6989 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6990 # soname into executable. Probably we can add versioning support to
6991 # collect2, so additional links can be useful in future.
6992 if test "$aix_use_runtimelinking" = yes; then
6993 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6994 # instead of lib<name>.a to let people know that these are not
6995 # typical AIX shared libraries.
6996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6997 else
6998 # We preserve .a as extension for shared libraries through AIX4.2
6999 # and later when we are not doing run time linking.
7000 library_names_spec='${libname}${release}.a $libname.a'
7001 soname_spec='${libname}${release}${shared_ext}$major'
7002 fi
7003 shlibpath_var=LIBPATH
7004 fi
7005 ;;
7006
7007 amigaos*)
7008 library_names_spec='$libname.ixlibrary $libname.a'
7009 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7010 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'
7011 ;;
7012
7013 beos*)
7014 library_names_spec='${libname}${shared_ext}'
7015 dynamic_linker="$host_os ld.so"
7016 shlibpath_var=LIBRARY_PATH
7017 ;;
7018
7019 bsdi4*)
7020 version_type=linux
7021 need_version=no
7022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7023 soname_spec='${libname}${release}${shared_ext}$major'
7024 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7025 shlibpath_var=LD_LIBRARY_PATH
7026 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7027 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7028 # the default ld.so.conf also contains /usr/contrib/lib and
7029 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7030 # libtool to hard-code these into programs
7031 ;;
7032
7033 cygwin* | mingw* | pw32*)
7034 version_type=windows
7035 shrext_cmds=".dll"
7036 need_version=no
7037 need_lib_prefix=no
7038
7039 case $GCC,$host_os in
7040 yes,cygwin* | yes,mingw* | yes,pw32*)
7041 library_names_spec='$libname.dll.a'
7042 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7043 postinstall_cmds='base_file=`basename \${file}`~
7044 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7045 dldir=$destdir/`dirname \$dlpath`~
7046 test -d \$dldir || mkdir -p \$dldir~
7047 $install_prog $dir/$dlname \$dldir/$dlname'
7048 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7049 dlpath=$dir/\$dldll~
7050 $rm \$dlpath'
7051 shlibpath_overrides_runpath=yes
7052
7053 case $host_os in
7054 cygwin*)
7055 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7056 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7057 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7058 ;;
7059 mingw*)
7060 # MinGW DLLs use traditional 'lib' prefix
7061 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7062 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7063 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7064 # It is most probably a Windows format PATH printed by
7065 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7066 # path with ; separators, and with drive letters. We can handle the
7067 # drive letters (cygwin fileutils understands them), so leave them,
7068 # especially as we might pass files found there to a mingw objdump,
7069 # which wouldn't understand a cygwinified path. Ahh.
7070 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7071 else
7072 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7073 fi
7074 ;;
7075 pw32*)
7076 # pw32 DLLs use 'pw' prefix rather than 'lib'
7077 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7078 ;;
7079 esac
7080 ;;
7081
7082 *)
7083 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7084 ;;
7085 esac
7086 dynamic_linker='Win32 ld.exe'
7087 # FIXME: first we should search . and the directory the executable is in
7088 shlibpath_var=PATH
7089 ;;
7090
7091 darwin* | rhapsody*)
7092 dynamic_linker="$host_os dyld"
7093 version_type=darwin
7094 need_lib_prefix=no
7095 need_version=no
7096 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7097 soname_spec='${libname}${release}${major}$shared_ext'
7098 shlibpath_overrides_runpath=yes
7099 shlibpath_var=DYLD_LIBRARY_PATH
7100 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7101 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7102 if test "$GCC" = yes; then
7103 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7104 else
7105 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7106 fi
7107 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7108 ;;
7109
7110 dgux*)
7111 version_type=linux
7112 need_lib_prefix=no
7113 need_version=no
7114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7115 soname_spec='${libname}${release}${shared_ext}$major'
7116 shlibpath_var=LD_LIBRARY_PATH
7117 ;;
7118
7119 freebsd1*)
7120 dynamic_linker=no
7121 ;;
7122
7123 kfreebsd*-gnu)
7124 version_type=linux
7125 need_lib_prefix=no
7126 need_version=no
7127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7128 soname_spec='${libname}${release}${shared_ext}$major'
7129 shlibpath_var=LD_LIBRARY_PATH
7130 shlibpath_overrides_runpath=no
7131 hardcode_into_libs=yes
7132 dynamic_linker='GNU ld.so'
7133 ;;
7134
7135 freebsd*)
7136 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7137 version_type=freebsd-$objformat
7138 case $version_type in
7139 freebsd-elf*)
7140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7141 need_version=no
7142 need_lib_prefix=no
7143 ;;
7144 freebsd-*)
7145 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7146 need_version=yes
7147 ;;
7148 esac
7149 shlibpath_var=LD_LIBRARY_PATH
7150 case $host_os in
7151 freebsd2*)
7152 shlibpath_overrides_runpath=yes
7153 ;;
7154 freebsd3.01* | freebsdelf3.01*)
7155 shlibpath_overrides_runpath=yes
7156 hardcode_into_libs=yes
7157 ;;
7158 *) # from 3.2 on
7159 shlibpath_overrides_runpath=no
7160 hardcode_into_libs=yes
7161 ;;
7162 esac
7163 ;;
7164
7165 gnu*)
7166 version_type=linux
7167 need_lib_prefix=no
7168 need_version=no
7169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7170 soname_spec='${libname}${release}${shared_ext}$major'
7171 shlibpath_var=LD_LIBRARY_PATH
7172 hardcode_into_libs=yes
7173 ;;
7174
7175 hpux9* | hpux10* | hpux11*)
7176 # Give a soname corresponding to the major version so that dld.sl refuses to
7177 # link against other versions.
7178 version_type=sunos
7179 need_lib_prefix=no
7180 need_version=no
7181 case "$host_cpu" in
7182 ia64*)
7183 shrext_cmds='.so'
7184 hardcode_into_libs=yes
7185 dynamic_linker="$host_os dld.so"
7186 shlibpath_var=LD_LIBRARY_PATH
7187 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7189 soname_spec='${libname}${release}${shared_ext}$major'
7190 if test "X$HPUX_IA64_MODE" = X32; then
7191 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7192 else
7193 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7194 fi
7195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7196 ;;
7197 hppa*64*)
7198 shrext_cmds='.sl'
7199 hardcode_into_libs=yes
7200 dynamic_linker="$host_os dld.sl"
7201 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7202 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7204 soname_spec='${libname}${release}${shared_ext}$major'
7205 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7206 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7207 ;;
7208 *)
7209 shrext_cmds='.sl'
7210 dynamic_linker="$host_os dld.sl"
7211 shlibpath_var=SHLIB_PATH
7212 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7214 soname_spec='${libname}${release}${shared_ext}$major'
7215 ;;
7216 esac
7217 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7218 postinstall_cmds='chmod 555 $lib'
7219 ;;
7220
7221 irix5* | irix6* | nonstopux*)
7222 case $host_os in
7223 nonstopux*) version_type=nonstopux ;;
7224 *)
7225 if test "$lt_cv_prog_gnu_ld" = yes; then
7226 version_type=linux
7227 else
7228 version_type=irix
7229 fi ;;
7230 esac
7231 need_lib_prefix=no
7232 need_version=no
7233 soname_spec='${libname}${release}${shared_ext}$major'
7234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7235 case $host_os in
7236 irix5* | nonstopux*)
7237 libsuff= shlibsuff=
7238 ;;
7239 *)
7240 case $LD in # libtool.m4 will add one of these switches to LD
7241 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7242 libsuff= shlibsuff= libmagic=32-bit;;
7243 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7244 libsuff=32 shlibsuff=N32 libmagic=N32;;
7245 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7246 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7247 *) libsuff= shlibsuff= libmagic=never-match;;
7248 esac
7249 ;;
7250 esac
7251 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7252 shlibpath_overrides_runpath=no
7253 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7254 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7255 hardcode_into_libs=yes
7256 ;;
7257
7258 # No shared lib support for Linux oldld, aout, or coff.
7259 linux*oldld* | linux*aout* | linux*coff*)
7260 dynamic_linker=no
7261 ;;
7262
7263 # This must be Linux ELF.
7264 linux*)
7265 version_type=linux
7266 need_lib_prefix=no
7267 need_version=no
7268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7269 soname_spec='${libname}${release}${shared_ext}$major'
7270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7271 shlibpath_var=LD_LIBRARY_PATH
7272 shlibpath_overrides_runpath=no
7273 # This implies no fast_install, which is unacceptable.
7274 # Some rework will be needed to allow for fast_install
7275 # before this can be enabled.
7276 hardcode_into_libs=yes
7277
7278 # Append ld.so.conf contents to the search path
7279 if test -f /etc/ld.so.conf; then
7280 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7281 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7282 fi
7283
7284 # We used to test for /lib/ld.so.1 and disable shared libraries on
7285 # powerpc, because MkLinux only supported shared libraries with the
7286 # GNU dynamic linker. Since this was broken with cross compilers,
7287 # most powerpc-linux boxes support dynamic linking these days and
7288 # people can always --disable-shared, the test was removed, and we
7289 # assume the GNU/Linux dynamic linker is in use.
7290 dynamic_linker='GNU/Linux ld.so'
7291 ;;
7292
7293 netbsdelf*-gnu)
7294 version_type=linux
7295 need_lib_prefix=no
7296 need_version=no
7297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7298 soname_spec='${libname}${release}${shared_ext}$major'
7299 shlibpath_var=LD_LIBRARY_PATH
7300 shlibpath_overrides_runpath=no
7301 hardcode_into_libs=yes
7302 dynamic_linker='NetBSD ld.elf_so'
7303 ;;
7304
7305 knetbsd*-gnu)
7306 version_type=linux
7307 need_lib_prefix=no
7308 need_version=no
7309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7310 soname_spec='${libname}${release}${shared_ext}$major'
7311 shlibpath_var=LD_LIBRARY_PATH
7312 shlibpath_overrides_runpath=no
7313 hardcode_into_libs=yes
7314 dynamic_linker='GNU ld.so'
7315 ;;
7316
7317 netbsd*)
7318 version_type=sunos
7319 need_lib_prefix=no
7320 need_version=no
7321 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7324 dynamic_linker='NetBSD (a.out) ld.so'
7325 else
7326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7327 soname_spec='${libname}${release}${shared_ext}$major'
7328 dynamic_linker='NetBSD ld.elf_so'
7329 fi
7330 shlibpath_var=LD_LIBRARY_PATH
7331 shlibpath_overrides_runpath=yes
7332 hardcode_into_libs=yes
7333 ;;
7334
7335 newsos6)
7336 version_type=linux
7337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7338 shlibpath_var=LD_LIBRARY_PATH
7339 shlibpath_overrides_runpath=yes
7340 ;;
7341
7342 nto-qnx*)
7343 version_type=linux
7344 need_lib_prefix=no
7345 need_version=no
7346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7347 soname_spec='${libname}${release}${shared_ext}$major'
7348 shlibpath_var=LD_LIBRARY_PATH
7349 shlibpath_overrides_runpath=yes
7350 ;;
7351
7352 openbsd*)
7353 version_type=sunos
7354 need_lib_prefix=no
7355 need_version=yes
7356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7358 shlibpath_var=LD_LIBRARY_PATH
7359 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7360 case $host_os in
7361 openbsd2.[89] | openbsd2.[89].*)
7362 shlibpath_overrides_runpath=no
7363 ;;
7364 *)
7365 shlibpath_overrides_runpath=yes
7366 ;;
7367 esac
7368 else
7369 shlibpath_overrides_runpath=yes
7370 fi
7371 ;;
7372
7373 os2*)
7374 libname_spec='$name'
7375 shrext_cmds=".dll"
7376 need_lib_prefix=no
7377 library_names_spec='$libname${shared_ext} $libname.a'
7378 dynamic_linker='OS/2 ld.exe'
7379 shlibpath_var=LIBPATH
7380 ;;
7381
7382 osf3* | osf4* | osf5*)
7383 version_type=osf
7384 need_lib_prefix=no
7385 need_version=no
7386 soname_spec='${libname}${release}${shared_ext}$major'
7387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7388 shlibpath_var=LD_LIBRARY_PATH
7389 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7390 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7391 ;;
7392
7393 sco3.2v5*)
7394 version_type=osf
7395 soname_spec='${libname}${release}${shared_ext}$major'
7396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7397 shlibpath_var=LD_LIBRARY_PATH
7398 ;;
7399
7400 solaris*)
7401 version_type=linux
7402 need_lib_prefix=no
7403 need_version=no
7404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7405 soname_spec='${libname}${release}${shared_ext}$major'
7406 shlibpath_var=LD_LIBRARY_PATH
7407 shlibpath_overrides_runpath=yes
7408 hardcode_into_libs=yes
7409 # ldd complains unless libraries are executable
7410 postinstall_cmds='chmod +x $lib'
7411 ;;
7412
7413 sunos4*)
7414 version_type=sunos
7415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7416 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7417 shlibpath_var=LD_LIBRARY_PATH
7418 shlibpath_overrides_runpath=yes
7419 if test "$with_gnu_ld" = yes; then
7420 need_lib_prefix=no
7421 fi
7422 need_version=yes
7423 ;;
7424
7425 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7426 version_type=linux
7427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7428 soname_spec='${libname}${release}${shared_ext}$major'
7429 shlibpath_var=LD_LIBRARY_PATH
7430 case $host_vendor in
7431 sni)
7432 shlibpath_overrides_runpath=no
7433 need_lib_prefix=no
7434 export_dynamic_flag_spec='${wl}-Blargedynsym'
7435 runpath_var=LD_RUN_PATH
7436 ;;
7437 siemens)
7438 need_lib_prefix=no
7439 ;;
7440 motorola)
7441 need_lib_prefix=no
7442 need_version=no
7443 shlibpath_overrides_runpath=no
7444 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7445 ;;
7446 esac
7447 ;;
7448
7449 sysv4*MP*)
7450 if test -d /usr/nec ;then
7451 version_type=linux
7452 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7453 soname_spec='$libname${shared_ext}.$major'
7454 shlibpath_var=LD_LIBRARY_PATH
7455 fi
7456 ;;
7457
7458 uts4*)
7459 version_type=linux
7460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7461 soname_spec='${libname}${release}${shared_ext}$major'
7462 shlibpath_var=LD_LIBRARY_PATH
7463 ;;
7464
7465 *)
7466 dynamic_linker=no
7467 ;;
7468 esac
7469 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7470 echo "${ECHO_T}$dynamic_linker" >&6
7471 test "$dynamic_linker" = no && can_build_shared=no
7472
7473 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7474 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7475 hardcode_action=
7476 if test -n "$hardcode_libdir_flag_spec" || \
7477 test -n "$runpath_var " || \
7478 test "X$hardcode_automatic"="Xyes" ; then
7479
7480 # We can hardcode non-existant directories.
7481 if test "$hardcode_direct" != no &&
7482 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7483 # have to relink, otherwise we might link with an installed library
7484 # when we should be linking with a yet-to-be-installed one
7485 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7486 test "$hardcode_minus_L" != no; then
7487 # Linking always hardcodes the temporary library directory.
7488 hardcode_action=relink
7489 else
7490 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7491 hardcode_action=immediate
7492 fi
7493 else
7494 # We cannot hardcode anything, or else we can only hardcode existing
7495 # directories.
7496 hardcode_action=unsupported
7497 fi
7498 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7499 echo "${ECHO_T}$hardcode_action" >&6
7500
7501 if test "$hardcode_action" = relink; then
7502 # Fast installation is not supported
7503 enable_fast_install=no
7504 elif test "$shlibpath_overrides_runpath" = yes ||
7505 test "$enable_shared" = no; then
7506 # Fast installation is not necessary
7507 enable_fast_install=needless
7508 fi
7509
7510 striplib=
7511 old_striplib=
7512 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7513 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7514 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7515 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7516 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7517 echo "$as_me:$LINENO: result: yes" >&5
7518 echo "${ECHO_T}yes" >&6
7519 else
7520 # FIXME - insert some real tests, host_os isn't really good enough
7521 case $host_os in
7522 darwin*)
7523 if test -n "$STRIP" ; then
7524 striplib="$STRIP -x"
7525 echo "$as_me:$LINENO: result: yes" >&5
7526 echo "${ECHO_T}yes" >&6
7527 else
7528 echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6
7530 fi
7531 ;;
7532 *)
7533 echo "$as_me:$LINENO: result: no" >&5
7534 echo "${ECHO_T}no" >&6
7535 ;;
7536 esac
7537 fi
7538
7539 if test "x$enable_dlopen" != xyes; then
7540 enable_dlopen=unknown
7541 enable_dlopen_self=unknown
7542 enable_dlopen_self_static=unknown
7543 else
7544 lt_cv_dlopen=no
7545 lt_cv_dlopen_libs=
7546
7547 case $host_os in
7548 beos*)
7549 lt_cv_dlopen="load_add_on"
7550 lt_cv_dlopen_libs=
7551 lt_cv_dlopen_self=yes
7552 ;;
7553
7554 mingw* | pw32*)
7555 lt_cv_dlopen="LoadLibrary"
7556 lt_cv_dlopen_libs=
7557 ;;
7558
7559 cygwin*)
7560 lt_cv_dlopen="dlopen"
7561 lt_cv_dlopen_libs=
7562 ;;
7563
7564 darwin*)
7565 # if libdl is installed we need to link against it
7566 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7567 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7568 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 else
7571 ac_check_lib_save_LIBS=$LIBS
7572 LIBS="-ldl $LIBS"
7573 cat >conftest.$ac_ext <<_ACEOF
7574 /* confdefs.h. */
7575 _ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7579
7580 /* Override any gcc2 internal prototype to avoid an error. */
7581 #ifdef __cplusplus
7582 extern "C"
7583 #endif
7584 /* We use char because int might match the return type of a gcc2
7585 builtin and then its argument prototype would still apply. */
7586 char dlopen ();
7587 int
7588 main ()
7589 {
7590 dlopen ();
7591 ;
7592 return 0;
7593 }
7594 _ACEOF
7595 rm -f conftest.$ac_objext conftest$ac_exeext
7596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7597 (eval $ac_link) 2>conftest.er1
7598 ac_status=$?
7599 grep -v '^ *+' conftest.er1 >conftest.err
7600 rm -f conftest.er1
7601 cat conftest.err >&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); } &&
7604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606 (eval $ac_try) 2>&5
7607 ac_status=$?
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); }; } &&
7610 { ac_try='test -s conftest$ac_exeext'
7611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612 (eval $ac_try) 2>&5
7613 ac_status=$?
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); }; }; then
7616 ac_cv_lib_dl_dlopen=yes
7617 else
7618 echo "$as_me: failed program was:" >&5
7619 sed 's/^/| /' conftest.$ac_ext >&5
7620
7621 ac_cv_lib_dl_dlopen=no
7622 fi
7623 rm -f conftest.err conftest.$ac_objext \
7624 conftest$ac_exeext conftest.$ac_ext
7625 LIBS=$ac_check_lib_save_LIBS
7626 fi
7627 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7628 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7629 if test $ac_cv_lib_dl_dlopen = yes; then
7630 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7631 else
7632
7633 lt_cv_dlopen="dyld"
7634 lt_cv_dlopen_libs=
7635 lt_cv_dlopen_self=yes
7636
7637 fi
7638
7639 ;;
7640
7641 *)
7642 echo "$as_me:$LINENO: checking for shl_load" >&5
7643 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7644 if test "${ac_cv_func_shl_load+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 else
7647 cat >conftest.$ac_ext <<_ACEOF
7648 /* confdefs.h. */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7653 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7655 #define shl_load innocuous_shl_load
7656
7657 /* System header to define __stub macros and hopefully few prototypes,
7658 which can conflict with char shl_load (); below.
7659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7660 <limits.h> exists even on freestanding compilers. */
7661
7662 #ifdef __STDC__
7663 # include <limits.h>
7664 #else
7665 # include <assert.h>
7666 #endif
7667
7668 #undef shl_load
7669
7670 /* Override any gcc2 internal prototype to avoid an error. */
7671 #ifdef __cplusplus
7672 extern "C"
7673 {
7674 #endif
7675 /* We use char because int might match the return type of a gcc2
7676 builtin and then its argument prototype would still apply. */
7677 char shl_load ();
7678 /* The GNU C library defines this for functions which it implements
7679 to always fail with ENOSYS. Some functions are actually named
7680 something starting with __ and the normal name is an alias. */
7681 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7682 choke me
7683 #else
7684 char (*f) () = shl_load;
7685 #endif
7686 #ifdef __cplusplus
7687 }
7688 #endif
7689
7690 int
7691 main ()
7692 {
7693 return f != shl_load;
7694 ;
7695 return 0;
7696 }
7697 _ACEOF
7698 rm -f conftest.$ac_objext conftest$ac_exeext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7700 (eval $ac_link) 2>conftest.er1
7701 ac_status=$?
7702 grep -v '^ *+' conftest.er1 >conftest.err
7703 rm -f conftest.er1
7704 cat conftest.err >&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } &&
7707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709 (eval $ac_try) 2>&5
7710 ac_status=$?
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; } &&
7713 { ac_try='test -s conftest$ac_exeext'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 (eval $ac_try) 2>&5
7716 ac_status=$?
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; }; then
7719 ac_cv_func_shl_load=yes
7720 else
7721 echo "$as_me: failed program was:" >&5
7722 sed 's/^/| /' conftest.$ac_ext >&5
7723
7724 ac_cv_func_shl_load=no
7725 fi
7726 rm -f conftest.err conftest.$ac_objext \
7727 conftest$ac_exeext conftest.$ac_ext
7728 fi
7729 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7730 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7731 if test $ac_cv_func_shl_load = yes; then
7732 lt_cv_dlopen="shl_load"
7733 else
7734 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7735 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7736 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
7738 else
7739 ac_check_lib_save_LIBS=$LIBS
7740 LIBS="-ldld $LIBS"
7741 cat >conftest.$ac_ext <<_ACEOF
7742 /* confdefs.h. */
7743 _ACEOF
7744 cat confdefs.h >>conftest.$ac_ext
7745 cat >>conftest.$ac_ext <<_ACEOF
7746 /* end confdefs.h. */
7747
7748 /* Override any gcc2 internal prototype to avoid an error. */
7749 #ifdef __cplusplus
7750 extern "C"
7751 #endif
7752 /* We use char because int might match the return type of a gcc2
7753 builtin and then its argument prototype would still apply. */
7754 char shl_load ();
7755 int
7756 main ()
7757 {
7758 shl_load ();
7759 ;
7760 return 0;
7761 }
7762 _ACEOF
7763 rm -f conftest.$ac_objext conftest$ac_exeext
7764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7765 (eval $ac_link) 2>conftest.er1
7766 ac_status=$?
7767 grep -v '^ *+' conftest.er1 >conftest.err
7768 rm -f conftest.er1
7769 cat conftest.err >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } &&
7772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7774 (eval $ac_try) 2>&5
7775 ac_status=$?
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); }; } &&
7778 { ac_try='test -s conftest$ac_exeext'
7779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780 (eval $ac_try) 2>&5
7781 ac_status=$?
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; }; then
7784 ac_cv_lib_dld_shl_load=yes
7785 else
7786 echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7788
7789 ac_cv_lib_dld_shl_load=no
7790 fi
7791 rm -f conftest.err conftest.$ac_objext \
7792 conftest$ac_exeext conftest.$ac_ext
7793 LIBS=$ac_check_lib_save_LIBS
7794 fi
7795 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7796 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7797 if test $ac_cv_lib_dld_shl_load = yes; then
7798 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7799 else
7800 echo "$as_me:$LINENO: checking for dlopen" >&5
7801 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7802 if test "${ac_cv_func_dlopen+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805 cat >conftest.$ac_ext <<_ACEOF
7806 /* confdefs.h. */
7807 _ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7811 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7813 #define dlopen innocuous_dlopen
7814
7815 /* System header to define __stub macros and hopefully few prototypes,
7816 which can conflict with char dlopen (); below.
7817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7818 <limits.h> exists even on freestanding compilers. */
7819
7820 #ifdef __STDC__
7821 # include <limits.h>
7822 #else
7823 # include <assert.h>
7824 #endif
7825
7826 #undef dlopen
7827
7828 /* Override any gcc2 internal prototype to avoid an error. */
7829 #ifdef __cplusplus
7830 extern "C"
7831 {
7832 #endif
7833 /* We use char because int might match the return type of a gcc2
7834 builtin and then its argument prototype would still apply. */
7835 char dlopen ();
7836 /* The GNU C library defines this for functions which it implements
7837 to always fail with ENOSYS. Some functions are actually named
7838 something starting with __ and the normal name is an alias. */
7839 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7840 choke me
7841 #else
7842 char (*f) () = dlopen;
7843 #endif
7844 #ifdef __cplusplus
7845 }
7846 #endif
7847
7848 int
7849 main ()
7850 {
7851 return f != dlopen;
7852 ;
7853 return 0;
7854 }
7855 _ACEOF
7856 rm -f conftest.$ac_objext conftest$ac_exeext
7857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7858 (eval $ac_link) 2>conftest.er1
7859 ac_status=$?
7860 grep -v '^ *+' conftest.er1 >conftest.err
7861 rm -f conftest.er1
7862 cat conftest.err >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } &&
7865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867 (eval $ac_try) 2>&5
7868 ac_status=$?
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }; } &&
7871 { ac_try='test -s conftest$ac_exeext'
7872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873 (eval $ac_try) 2>&5
7874 ac_status=$?
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; }; then
7877 ac_cv_func_dlopen=yes
7878 else
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7881
7882 ac_cv_func_dlopen=no
7883 fi
7884 rm -f conftest.err conftest.$ac_objext \
7885 conftest$ac_exeext conftest.$ac_ext
7886 fi
7887 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7888 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7889 if test $ac_cv_func_dlopen = yes; then
7890 lt_cv_dlopen="dlopen"
7891 else
7892 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7893 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7894 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 else
7897 ac_check_lib_save_LIBS=$LIBS
7898 LIBS="-ldl $LIBS"
7899 cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h. */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7905
7906 /* Override any gcc2 internal prototype to avoid an error. */
7907 #ifdef __cplusplus
7908 extern "C"
7909 #endif
7910 /* We use char because int might match the return type of a gcc2
7911 builtin and then its argument prototype would still apply. */
7912 char dlopen ();
7913 int
7914 main ()
7915 {
7916 dlopen ();
7917 ;
7918 return 0;
7919 }
7920 _ACEOF
7921 rm -f conftest.$ac_objext conftest$ac_exeext
7922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7923 (eval $ac_link) 2>conftest.er1
7924 ac_status=$?
7925 grep -v '^ *+' conftest.er1 >conftest.err
7926 rm -f conftest.er1
7927 cat conftest.err >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } &&
7930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7932 (eval $ac_try) 2>&5
7933 ac_status=$?
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); }; } &&
7936 { ac_try='test -s conftest$ac_exeext'
7937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938 (eval $ac_try) 2>&5
7939 ac_status=$?
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; }; then
7942 ac_cv_lib_dl_dlopen=yes
7943 else
7944 echo "$as_me: failed program was:" >&5
7945 sed 's/^/| /' conftest.$ac_ext >&5
7946
7947 ac_cv_lib_dl_dlopen=no
7948 fi
7949 rm -f conftest.err conftest.$ac_objext \
7950 conftest$ac_exeext conftest.$ac_ext
7951 LIBS=$ac_check_lib_save_LIBS
7952 fi
7953 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7954 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7955 if test $ac_cv_lib_dl_dlopen = yes; then
7956 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7957 else
7958 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7959 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7960 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7962 else
7963 ac_check_lib_save_LIBS=$LIBS
7964 LIBS="-lsvld $LIBS"
7965 cat >conftest.$ac_ext <<_ACEOF
7966 /* confdefs.h. */
7967 _ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7971
7972 /* Override any gcc2 internal prototype to avoid an error. */
7973 #ifdef __cplusplus
7974 extern "C"
7975 #endif
7976 /* We use char because int might match the return type of a gcc2
7977 builtin and then its argument prototype would still apply. */
7978 char dlopen ();
7979 int
7980 main ()
7981 {
7982 dlopen ();
7983 ;
7984 return 0;
7985 }
7986 _ACEOF
7987 rm -f conftest.$ac_objext conftest$ac_exeext
7988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7989 (eval $ac_link) 2>conftest.er1
7990 ac_status=$?
7991 grep -v '^ *+' conftest.er1 >conftest.err
7992 rm -f conftest.er1
7993 cat conftest.err >&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } &&
7996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998 (eval $ac_try) 2>&5
7999 ac_status=$?
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; } &&
8002 { ac_try='test -s conftest$ac_exeext'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 (eval $ac_try) 2>&5
8005 ac_status=$?
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8008 ac_cv_lib_svld_dlopen=yes
8009 else
8010 echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8012
8013 ac_cv_lib_svld_dlopen=no
8014 fi
8015 rm -f conftest.err conftest.$ac_objext \
8016 conftest$ac_exeext conftest.$ac_ext
8017 LIBS=$ac_check_lib_save_LIBS
8018 fi
8019 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8020 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8021 if test $ac_cv_lib_svld_dlopen = yes; then
8022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8023 else
8024 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8025 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8026 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 else
8029 ac_check_lib_save_LIBS=$LIBS
8030 LIBS="-ldld $LIBS"
8031 cat >conftest.$ac_ext <<_ACEOF
8032 /* confdefs.h. */
8033 _ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h. */
8037
8038 /* Override any gcc2 internal prototype to avoid an error. */
8039 #ifdef __cplusplus
8040 extern "C"
8041 #endif
8042 /* We use char because int might match the return type of a gcc2
8043 builtin and then its argument prototype would still apply. */
8044 char dld_link ();
8045 int
8046 main ()
8047 {
8048 dld_link ();
8049 ;
8050 return 0;
8051 }
8052 _ACEOF
8053 rm -f conftest.$ac_objext conftest$ac_exeext
8054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8055 (eval $ac_link) 2>conftest.er1
8056 ac_status=$?
8057 grep -v '^ *+' conftest.er1 >conftest.err
8058 rm -f conftest.er1
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } &&
8062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064 (eval $ac_try) 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; } &&
8068 { ac_try='test -s conftest$ac_exeext'
8069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 (eval $ac_try) 2>&5
8071 ac_status=$?
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }; }; then
8074 ac_cv_lib_dld_dld_link=yes
8075 else
8076 echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8078
8079 ac_cv_lib_dld_dld_link=no
8080 fi
8081 rm -f conftest.err conftest.$ac_objext \
8082 conftest$ac_exeext conftest.$ac_ext
8083 LIBS=$ac_check_lib_save_LIBS
8084 fi
8085 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8086 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8087 if test $ac_cv_lib_dld_dld_link = yes; then
8088 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8089 fi
8090
8091
8092 fi
8093
8094
8095 fi
8096
8097
8098 fi
8099
8100
8101 fi
8102
8103
8104 fi
8105
8106 ;;
8107 esac
8108
8109 if test "x$lt_cv_dlopen" != xno; then
8110 enable_dlopen=yes
8111 else
8112 enable_dlopen=no
8113 fi
8114
8115 case $lt_cv_dlopen in
8116 dlopen)
8117 save_CPPFLAGS="$CPPFLAGS"
8118 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8119
8120 save_LDFLAGS="$LDFLAGS"
8121 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8122
8123 save_LIBS="$LIBS"
8124 LIBS="$lt_cv_dlopen_libs $LIBS"
8125
8126 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8127 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8128 if test "${lt_cv_dlopen_self+set}" = set; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
8130 else
8131 if test "$cross_compiling" = yes; then :
8132 lt_cv_dlopen_self=cross
8133 else
8134 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8135 lt_status=$lt_dlunknown
8136 cat > conftest.$ac_ext <<EOF
8137 #line __oline__ "configure"
8138 #include "confdefs.h"
8139
8140 #if HAVE_DLFCN_H
8141 #include <dlfcn.h>
8142 #endif
8143
8144 #include <stdio.h>
8145
8146 #ifdef RTLD_GLOBAL
8147 # define LT_DLGLOBAL RTLD_GLOBAL
8148 #else
8149 # ifdef DL_GLOBAL
8150 # define LT_DLGLOBAL DL_GLOBAL
8151 # else
8152 # define LT_DLGLOBAL 0
8153 # endif
8154 #endif
8155
8156 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8157 find out it does not work in some platform. */
8158 #ifndef LT_DLLAZY_OR_NOW
8159 # ifdef RTLD_LAZY
8160 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8161 # else
8162 # ifdef DL_LAZY
8163 # define LT_DLLAZY_OR_NOW DL_LAZY
8164 # else
8165 # ifdef RTLD_NOW
8166 # define LT_DLLAZY_OR_NOW RTLD_NOW
8167 # else
8168 # ifdef DL_NOW
8169 # define LT_DLLAZY_OR_NOW DL_NOW
8170 # else
8171 # define LT_DLLAZY_OR_NOW 0
8172 # endif
8173 # endif
8174 # endif
8175 # endif
8176 #endif
8177
8178 #ifdef __cplusplus
8179 extern "C" void exit (int);
8180 #endif
8181
8182 void fnord() { int i=42;}
8183 int main ()
8184 {
8185 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8186 int status = $lt_dlunknown;
8187
8188 if (self)
8189 {
8190 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8191 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8192 /* dlclose (self); */
8193 }
8194
8195 exit (status);
8196 }
8197 EOF
8198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8199 (eval $ac_link) 2>&5
8200 ac_status=$?
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8203 (./conftest; exit; ) 2>/dev/null
8204 lt_status=$?
8205 case x$lt_status in
8206 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8207 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8208 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8209 esac
8210 else :
8211 # compilation failed
8212 lt_cv_dlopen_self=no
8213 fi
8214 fi
8215 rm -fr conftest*
8216
8217
8218 fi
8219 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8220 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8221
8222 if test "x$lt_cv_dlopen_self" = xyes; then
8223 LDFLAGS="$LDFLAGS $link_static_flag"
8224 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8225 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8226 if test "${lt_cv_dlopen_self_static+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229 if test "$cross_compiling" = yes; then :
8230 lt_cv_dlopen_self_static=cross
8231 else
8232 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8233 lt_status=$lt_dlunknown
8234 cat > conftest.$ac_ext <<EOF
8235 #line __oline__ "configure"
8236 #include "confdefs.h"
8237
8238 #if HAVE_DLFCN_H
8239 #include <dlfcn.h>
8240 #endif
8241
8242 #include <stdio.h>
8243
8244 #ifdef RTLD_GLOBAL
8245 # define LT_DLGLOBAL RTLD_GLOBAL
8246 #else
8247 # ifdef DL_GLOBAL
8248 # define LT_DLGLOBAL DL_GLOBAL
8249 # else
8250 # define LT_DLGLOBAL 0
8251 # endif
8252 #endif
8253
8254 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8255 find out it does not work in some platform. */
8256 #ifndef LT_DLLAZY_OR_NOW
8257 # ifdef RTLD_LAZY
8258 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8259 # else
8260 # ifdef DL_LAZY
8261 # define LT_DLLAZY_OR_NOW DL_LAZY
8262 # else
8263 # ifdef RTLD_NOW
8264 # define LT_DLLAZY_OR_NOW RTLD_NOW
8265 # else
8266 # ifdef DL_NOW
8267 # define LT_DLLAZY_OR_NOW DL_NOW
8268 # else
8269 # define LT_DLLAZY_OR_NOW 0
8270 # endif
8271 # endif
8272 # endif
8273 # endif
8274 #endif
8275
8276 #ifdef __cplusplus
8277 extern "C" void exit (int);
8278 #endif
8279
8280 void fnord() { int i=42;}
8281 int main ()
8282 {
8283 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8284 int status = $lt_dlunknown;
8285
8286 if (self)
8287 {
8288 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8289 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8290 /* dlclose (self); */
8291 }
8292
8293 exit (status);
8294 }
8295 EOF
8296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8297 (eval $ac_link) 2>&5
8298 ac_status=$?
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8301 (./conftest; exit; ) 2>/dev/null
8302 lt_status=$?
8303 case x$lt_status in
8304 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8305 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8306 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8307 esac
8308 else :
8309 # compilation failed
8310 lt_cv_dlopen_self_static=no
8311 fi
8312 fi
8313 rm -fr conftest*
8314
8315
8316 fi
8317 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8318 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8319 fi
8320
8321 CPPFLAGS="$save_CPPFLAGS"
8322 LDFLAGS="$save_LDFLAGS"
8323 LIBS="$save_LIBS"
8324 ;;
8325 esac
8326
8327 case $lt_cv_dlopen_self in
8328 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8329 *) enable_dlopen_self=unknown ;;
8330 esac
8331
8332 case $lt_cv_dlopen_self_static in
8333 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8334 *) enable_dlopen_self_static=unknown ;;
8335 esac
8336 fi
8337
8338
8339 # Report which librarie types wil actually be built
8340 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8341 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8342 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8343 echo "${ECHO_T}$can_build_shared" >&6
8344
8345 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8346 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8347 test "$can_build_shared" = "no" && enable_shared=no
8348
8349 # On AIX, shared libraries and static libraries use the same namespace, and
8350 # are all built from PIC.
8351 case "$host_os" in
8352 aix3*)
8353 test "$enable_shared" = yes && enable_static=no
8354 if test -n "$RANLIB"; then
8355 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8356 postinstall_cmds='$RANLIB $lib'
8357 fi
8358 ;;
8359
8360 aix4* | aix5*)
8361 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8362 test "$enable_shared" = yes && enable_static=no
8363 fi
8364 ;;
8365 darwin* | rhapsody*)
8366 if test "$GCC" = yes; then
8367 archive_cmds_need_lc=no
8368 case "$host_os" in
8369 rhapsody* | darwin1.[012])
8370 allow_undefined_flag='-undefined suppress'
8371 ;;
8372 *) # Darwin 1.3 on
8373 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8374 allow_undefined_flag='-flat_namespace -undefined suppress'
8375 else
8376 case ${MACOSX_DEPLOYMENT_TARGET} in
8377 10.[012])
8378 allow_undefined_flag='-flat_namespace -undefined suppress'
8379 ;;
8380 10.*)
8381 allow_undefined_flag='-undefined dynamic_lookup'
8382 ;;
8383 esac
8384 fi
8385 ;;
8386 esac
8387 output_verbose_link_cmd='echo'
8388 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8389 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8390 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8391 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8392 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8393 hardcode_direct=no
8394 hardcode_automatic=yes
8395 hardcode_shlibpath_var=unsupported
8396 whole_archive_flag_spec='-all_load $convenience'
8397 link_all_deplibs=yes
8398 else
8399 ld_shlibs=no
8400 fi
8401 ;;
8402 esac
8403 echo "$as_me:$LINENO: result: $enable_shared" >&5
8404 echo "${ECHO_T}$enable_shared" >&6
8405
8406 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8407 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8408 # Make sure either enable_shared or enable_static is yes.
8409 test "$enable_shared" = yes || enable_static=yes
8410 echo "$as_me:$LINENO: result: $enable_static" >&5
8411 echo "${ECHO_T}$enable_static" >&6
8412
8413 # The else clause should only fire when bootstrapping the
8414 # libtool distribution, otherwise you forgot to ship ltmain.sh
8415 # with your package, and you will get complaints that there are
8416 # no rules to generate ltmain.sh.
8417 if test -f "$ltmain"; then
8418 # See if we are running on zsh, and set the options which allow our commands through
8419 # without removal of \ escapes.
8420 if test -n "${ZSH_VERSION+set}" ; then
8421 setopt NO_GLOB_SUBST
8422 fi
8423 # Now quote all the things that may contain metacharacters while being
8424 # careful not to overquote the AC_SUBSTed values. We take copies of the
8425 # variables and quote the copies for generation of the libtool script.
8426 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8427 SED SHELL STRIP \
8428 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8429 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8430 deplibs_check_method reload_flag reload_cmds need_locks \
8431 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8432 lt_cv_sys_global_symbol_to_c_name_address \
8433 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8434 old_postinstall_cmds old_postuninstall_cmds \
8435 compiler \
8436 CC \
8437 LD \
8438 lt_prog_compiler_wl \
8439 lt_prog_compiler_pic \
8440 lt_prog_compiler_static \
8441 lt_prog_compiler_no_builtin_flag \
8442 export_dynamic_flag_spec \
8443 thread_safe_flag_spec \
8444 whole_archive_flag_spec \
8445 enable_shared_with_static_runtimes \
8446 old_archive_cmds \
8447 old_archive_from_new_cmds \
8448 predep_objects \
8449 postdep_objects \
8450 predeps \
8451 postdeps \
8452 compiler_lib_search_path \
8453 archive_cmds \
8454 archive_expsym_cmds \
8455 postinstall_cmds \
8456 postuninstall_cmds \
8457 old_archive_from_expsyms_cmds \
8458 allow_undefined_flag \
8459 no_undefined_flag \
8460 export_symbols_cmds \
8461 hardcode_libdir_flag_spec \
8462 hardcode_libdir_flag_spec_ld \
8463 hardcode_libdir_separator \
8464 hardcode_automatic \
8465 module_cmds \
8466 module_expsym_cmds \
8467 lt_cv_prog_compiler_c_o \
8468 exclude_expsyms \
8469 include_expsyms; do
8470
8471 case $var in
8472 old_archive_cmds | \
8473 old_archive_from_new_cmds | \
8474 archive_cmds | \
8475 archive_expsym_cmds | \
8476 module_cmds | \
8477 module_expsym_cmds | \
8478 old_archive_from_expsyms_cmds | \
8479 export_symbols_cmds | \
8480 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8481 postinstall_cmds | postuninstall_cmds | \
8482 old_postinstall_cmds | old_postuninstall_cmds | \
8483 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8484 # Double-quote double-evaled strings.
8485 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8486 ;;
8487 *)
8488 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8489 ;;
8490 esac
8491 done
8492
8493 case $lt_echo in
8494 *'\$0 --fallback-echo"')
8495 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8496 ;;
8497 esac
8498
8499 cfgfile="${ofile}T"
8500 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8501 $rm -f "$cfgfile"
8502 { echo "$as_me:$LINENO: creating $ofile" >&5
8503 echo "$as_me: creating $ofile" >&6;}
8504
8505 cat <<__EOF__ >> "$cfgfile"
8506 #! $SHELL
8507
8508 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8509 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8510 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8511 #
8512 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8513 # Free Software Foundation, Inc.
8514 #
8515 # This file is part of GNU Libtool:
8516 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8517 #
8518 # This program is free software; you can redistribute it and/or modify
8519 # it under the terms of the GNU General Public License as published by
8520 # the Free Software Foundation; either version 2 of the License, or
8521 # (at your option) any later version.
8522 #
8523 # This program is distributed in the hope that it will be useful, but
8524 # WITHOUT ANY WARRANTY; without even the implied warranty of
8525 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8526 # General Public License for more details.
8527 #
8528 # You should have received a copy of the GNU General Public License
8529 # along with this program; if not, write to the Free Software
8530 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8531 #
8532 # As a special exception to the GNU General Public License, if you
8533 # distribute this file as part of a program that contains a
8534 # configuration script generated by Autoconf, you may include it under
8535 # the same distribution terms that you use for the rest of that program.
8536
8537 # A sed program that does not truncate output.
8538 SED=$lt_SED
8539
8540 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8541 Xsed="$SED -e s/^X//"
8542
8543 # The HP-UX ksh and POSIX shell print the target directory to stdout
8544 # if CDPATH is set.
8545 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8546
8547 # The names of the tagged configurations supported by this script.
8548 available_tags=
8549
8550 # ### BEGIN LIBTOOL CONFIG
8551
8552 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8553
8554 # Shell to use when invoking shell scripts.
8555 SHELL=$lt_SHELL
8556
8557 # Whether or not to build shared libraries.
8558 build_libtool_libs=$enable_shared
8559
8560 # Whether or not to build static libraries.
8561 build_old_libs=$enable_static
8562
8563 # Whether or not to add -lc for building shared libraries.
8564 build_libtool_need_lc=$archive_cmds_need_lc
8565
8566 # Whether or not to disallow shared libs when runtime libs are static
8567 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8568
8569 # Whether or not to optimize for fast installation.
8570 fast_install=$enable_fast_install
8571
8572 # The host system.
8573 host_alias=$host_alias
8574 host=$host
8575
8576 # An echo program that does not interpret backslashes.
8577 echo=$lt_echo
8578
8579 # The archiver.
8580 AR=$lt_AR
8581 AR_FLAGS=$lt_AR_FLAGS
8582
8583 # A C compiler.
8584 LTCC=$lt_LTCC
8585
8586 # A language-specific compiler.
8587 CC=$lt_compiler
8588
8589 # Is the compiler the GNU C compiler?
8590 with_gcc=$GCC
8591
8592 # An ERE matcher.
8593 EGREP=$lt_EGREP
8594
8595 # The linker used to build libraries.
8596 LD=$lt_LD
8597
8598 # Whether we need hard or soft links.
8599 LN_S=$lt_LN_S
8600
8601 # A BSD-compatible nm program.
8602 NM=$lt_NM
8603
8604 # A symbol stripping program
8605 STRIP=$lt_STRIP
8606
8607 # Used to examine libraries when file_magic_cmd begins "file"
8608 MAGIC_CMD=$MAGIC_CMD
8609
8610 # Used on cygwin: DLL creation program.
8611 DLLTOOL="$DLLTOOL"
8612
8613 # Used on cygwin: object dumper.
8614 OBJDUMP="$OBJDUMP"
8615
8616 # Used on cygwin: assembler.
8617 AS="$AS"
8618
8619 # The name of the directory that contains temporary libtool files.
8620 objdir=$objdir
8621
8622 # How to create reloadable object files.
8623 reload_flag=$lt_reload_flag
8624 reload_cmds=$lt_reload_cmds
8625
8626 # How to pass a linker flag through the compiler.
8627 wl=$lt_lt_prog_compiler_wl
8628
8629 # Object file suffix (normally "o").
8630 objext="$ac_objext"
8631
8632 # Old archive suffix (normally "a").
8633 libext="$libext"
8634
8635 # Shared library suffix (normally ".so").
8636 shrext_cmds='$shrext_cmds'
8637
8638 # Executable file suffix (normally "").
8639 exeext="$exeext"
8640
8641 # Additional compiler flags for building library objects.
8642 pic_flag=$lt_lt_prog_compiler_pic
8643 pic_mode=$pic_mode
8644
8645 # What is the maximum length of a command?
8646 max_cmd_len=$lt_cv_sys_max_cmd_len
8647
8648 # Does compiler simultaneously support -c and -o options?
8649 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8650
8651 # Must we lock files when doing compilation ?
8652 need_locks=$lt_need_locks
8653
8654 # Do we need the lib prefix for modules?
8655 need_lib_prefix=$need_lib_prefix
8656
8657 # Do we need a version for libraries?
8658 need_version=$need_version
8659
8660 # Whether dlopen is supported.
8661 dlopen_support=$enable_dlopen
8662
8663 # Whether dlopen of programs is supported.
8664 dlopen_self=$enable_dlopen_self
8665
8666 # Whether dlopen of statically linked programs is supported.
8667 dlopen_self_static=$enable_dlopen_self_static
8668
8669 # Compiler flag to prevent dynamic linking.
8670 link_static_flag=$lt_lt_prog_compiler_static
8671
8672 # Compiler flag to turn off builtin functions.
8673 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8674
8675 # Compiler flag to allow reflexive dlopens.
8676 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8677
8678 # Compiler flag to generate shared objects directly from archives.
8679 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8680
8681 # Compiler flag to generate thread-safe objects.
8682 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8683
8684 # Library versioning type.
8685 version_type=$version_type
8686
8687 # Format of library name prefix.
8688 libname_spec=$lt_libname_spec
8689
8690 # List of archive names. First name is the real one, the rest are links.
8691 # The last name is the one that the linker finds with -lNAME.
8692 library_names_spec=$lt_library_names_spec
8693
8694 # The coded name of the library, if different from the real name.
8695 soname_spec=$lt_soname_spec
8696
8697 # Commands used to build and install an old-style archive.
8698 RANLIB=$lt_RANLIB
8699 old_archive_cmds=$lt_old_archive_cmds
8700 old_postinstall_cmds=$lt_old_postinstall_cmds
8701 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8702
8703 # Create an old-style archive from a shared archive.
8704 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8705
8706 # Create a temporary old-style archive to link instead of a shared archive.
8707 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8708
8709 # Commands used to build and install a shared archive.
8710 archive_cmds=$lt_archive_cmds
8711 archive_expsym_cmds=$lt_archive_expsym_cmds
8712 postinstall_cmds=$lt_postinstall_cmds
8713 postuninstall_cmds=$lt_postuninstall_cmds
8714
8715 # Commands used to build a loadable module (assumed same as above if empty)
8716 module_cmds=$lt_module_cmds
8717 module_expsym_cmds=$lt_module_expsym_cmds
8718
8719 # Commands to strip libraries.
8720 old_striplib=$lt_old_striplib
8721 striplib=$lt_striplib
8722
8723 # Dependencies to place before the objects being linked to create a
8724 # shared library.
8725 predep_objects=$lt_predep_objects
8726
8727 # Dependencies to place after the objects being linked to create a
8728 # shared library.
8729 postdep_objects=$lt_postdep_objects
8730
8731 # Dependencies to place before the objects being linked to create a
8732 # shared library.
8733 predeps=$lt_predeps
8734
8735 # Dependencies to place after the objects being linked to create a
8736 # shared library.
8737 postdeps=$lt_postdeps
8738
8739 # The library search path used internally by the compiler when linking
8740 # a shared library.
8741 compiler_lib_search_path=$lt_compiler_lib_search_path
8742
8743 # Method to check whether dependent libraries are shared objects.
8744 deplibs_check_method=$lt_deplibs_check_method
8745
8746 # Command to use when deplibs_check_method == file_magic.
8747 file_magic_cmd=$lt_file_magic_cmd
8748
8749 # Flag that allows shared libraries with undefined symbols to be built.
8750 allow_undefined_flag=$lt_allow_undefined_flag
8751
8752 # Flag that forces no undefined symbols.
8753 no_undefined_flag=$lt_no_undefined_flag
8754
8755 # Commands used to finish a libtool library installation in a directory.
8756 finish_cmds=$lt_finish_cmds
8757
8758 # Same as above, but a single script fragment to be evaled but not shown.
8759 finish_eval=$lt_finish_eval
8760
8761 # Take the output of nm and produce a listing of raw symbols and C names.
8762 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8763
8764 # Transform the output of nm in a proper C declaration
8765 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8766
8767 # Transform the output of nm in a C name address pair
8768 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8769
8770 # This is the shared library runtime path variable.
8771 runpath_var=$runpath_var
8772
8773 # This is the shared library path variable.
8774 shlibpath_var=$shlibpath_var
8775
8776 # Is shlibpath searched before the hard-coded library search path?
8777 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8778
8779 # How to hardcode a shared library path into an executable.
8780 hardcode_action=$hardcode_action
8781
8782 # Whether we should hardcode library paths into libraries.
8783 hardcode_into_libs=$hardcode_into_libs
8784
8785 # Flag to hardcode \$libdir into a binary during linking.
8786 # This must work even if \$libdir does not exist.
8787 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8788
8789 # If ld is used when linking, flag to hardcode \$libdir into
8790 # a binary during linking. This must work even if \$libdir does
8791 # not exist.
8792 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8793
8794 # Whether we need a single -rpath flag with a separated argument.
8795 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8796
8797 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8798 # resulting binary.
8799 hardcode_direct=$hardcode_direct
8800
8801 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8802 # resulting binary.
8803 hardcode_minus_L=$hardcode_minus_L
8804
8805 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8806 # the resulting binary.
8807 hardcode_shlibpath_var=$hardcode_shlibpath_var
8808
8809 # Set to yes if building a shared library automatically hardcodes DIR into the library
8810 # and all subsequent libraries and executables linked against it.
8811 hardcode_automatic=$hardcode_automatic
8812
8813 # Variables whose values should be saved in libtool wrapper scripts and
8814 # restored at relink time.
8815 variables_saved_for_relink="$variables_saved_for_relink"
8816
8817 # Whether libtool must link a program against all its dependency libraries.
8818 link_all_deplibs=$link_all_deplibs
8819
8820 # Compile-time system search path for libraries
8821 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8822
8823 # Run-time system search path for libraries
8824 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8825
8826 # Fix the shell variable \$srcfile for the compiler.
8827 fix_srcfile_path="$fix_srcfile_path"
8828
8829 # Set to yes if exported symbols are required.
8830 always_export_symbols=$always_export_symbols
8831
8832 # The commands to list exported symbols.
8833 export_symbols_cmds=$lt_export_symbols_cmds
8834
8835 # The commands to extract the exported symbol list from a shared archive.
8836 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8837
8838 # Symbols that should not be listed in the preloaded symbols.
8839 exclude_expsyms=$lt_exclude_expsyms
8840
8841 # Symbols that must always be exported.
8842 include_expsyms=$lt_include_expsyms
8843
8844 # ### END LIBTOOL CONFIG
8845
8846 __EOF__
8847
8848
8849 case $host_os in
8850 aix3*)
8851 cat <<\EOF >> "$cfgfile"
8852
8853 # AIX sometimes has problems with the GCC collect2 program. For some
8854 # reason, if we set the COLLECT_NAMES environment variable, the problems
8855 # vanish in a puff of smoke.
8856 if test "X${COLLECT_NAMES+set}" != Xset; then
8857 COLLECT_NAMES=
8858 export COLLECT_NAMES
8859 fi
8860 EOF
8861 ;;
8862 esac
8863
8864 # We use sed instead of cat because bash on DJGPP gets confused if
8865 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8866 # text mode, it properly converts lines to CR/LF. This bash problem
8867 # is reportedly fixed, but why not run on old versions too?
8868 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8869
8870 mv -f "$cfgfile" "$ofile" || \
8871 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8872 chmod +x "$ofile"
8873
8874 else
8875 # If there is no Makefile yet, we rely on a make rule to execute
8876 # `config.status --recheck' to rerun these tests and create the
8877 # libtool script then.
8878 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8879 if test -f "$ltmain_in"; then
8880 test -f Makefile && make "$ltmain"
8881 fi
8882 fi
8883
8884
8885 ac_ext=c
8886 ac_cpp='$CPP $CPPFLAGS'
8887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8890
8891 CC="$lt_save_CC"
8892
8893
8894 # Check whether --with-tags or --without-tags was given.
8895 if test "${with_tags+set}" = set; then
8896 withval="$with_tags"
8897 tagnames="$withval"
8898 fi;
8899
8900 if test -f "$ltmain" && test -n "$tagnames"; then
8901 if test ! -f "${ofile}"; then
8902 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8903 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8904 fi
8905
8906 if test -z "$LTCC"; then
8907 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8908 if test -z "$LTCC"; then
8909 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8910 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8911 else
8912 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8913 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8914 fi
8915 fi
8916
8917 # Extract list of available tagged configurations in $ofile.
8918 # Note that this assumes the entire list is on one line.
8919 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8920
8921 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8922 for tagname in $tagnames; do
8923 IFS="$lt_save_ifs"
8924 # Check whether tagname contains only valid characters
8925 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8926 "") ;;
8927 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8928 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8929 { (exit 1); exit 1; }; }
8930 ;;
8931 esac
8932
8933 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8934 then
8935 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8936 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8937 { (exit 1); exit 1; }; }
8938 fi
8939
8940 # Update the list of available tags.
8941 if test -n "$tagname"; then
8942 echo appending configuration tag \"$tagname\" to $ofile
8943
8944 case $tagname in
8945 CXX)
8946 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8947 ac_ext=cc
8948 ac_cpp='$CXXCPP $CPPFLAGS'
8949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8952
8953
8954
8955
8956 archive_cmds_need_lc_CXX=no
8957 allow_undefined_flag_CXX=
8958 always_export_symbols_CXX=no
8959 archive_expsym_cmds_CXX=
8960 export_dynamic_flag_spec_CXX=
8961 hardcode_direct_CXX=no
8962 hardcode_libdir_flag_spec_CXX=
8963 hardcode_libdir_flag_spec_ld_CXX=
8964 hardcode_libdir_separator_CXX=
8965 hardcode_minus_L_CXX=no
8966 hardcode_automatic_CXX=no
8967 module_cmds_CXX=
8968 module_expsym_cmds_CXX=
8969 link_all_deplibs_CXX=unknown
8970 old_archive_cmds_CXX=$old_archive_cmds
8971 no_undefined_flag_CXX=
8972 whole_archive_flag_spec_CXX=
8973 enable_shared_with_static_runtimes_CXX=no
8974
8975 # Dependencies to place before and after the object being linked:
8976 predep_objects_CXX=
8977 postdep_objects_CXX=
8978 predeps_CXX=
8979 postdeps_CXX=
8980 compiler_lib_search_path_CXX=
8981
8982 # Source file extension for C++ test sources.
8983 ac_ext=cc
8984
8985 # Object file extension for compiled C++ test sources.
8986 objext=o
8987 objext_CXX=$objext
8988
8989 # Code to be used in simple compile tests
8990 lt_simple_compile_test_code="int some_variable = 0;\n"
8991
8992 # Code to be used in simple link tests
8993 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8994
8995 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8996
8997 # If no C compiler was specified, use CC.
8998 LTCC=${LTCC-"$CC"}
8999
9000 # Allow CC to be a program name with arguments.
9001 compiler=$CC
9002
9003
9004 # Allow CC to be a program name with arguments.
9005 lt_save_CC=$CC
9006 lt_save_LD=$LD
9007 lt_save_GCC=$GCC
9008 GCC=$GXX
9009 lt_save_with_gnu_ld=$with_gnu_ld
9010 lt_save_path_LD=$lt_cv_path_LD
9011 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9012 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9013 else
9014 unset lt_cv_prog_gnu_ld
9015 fi
9016 if test -n "${lt_cv_path_LDCXX+set}"; then
9017 lt_cv_path_LD=$lt_cv_path_LDCXX
9018 else
9019 unset lt_cv_path_LD
9020 fi
9021 test -z "${LDCXX+set}" || LD=$LDCXX
9022 CC=${CXX-"c++"}
9023 compiler=$CC
9024 compiler_CXX=$CC
9025 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9026
9027 # We don't want -fno-exception wen compiling C++ code, so set the
9028 # no_builtin_flag separately
9029 if test "$GXX" = yes; then
9030 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9031 else
9032 lt_prog_compiler_no_builtin_flag_CXX=
9033 fi
9034
9035 if test "$GXX" = yes; then
9036 # Set up default GNU C++ configuration
9037
9038
9039 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9040 if test "${with_gnu_ld+set}" = set; then
9041 withval="$with_gnu_ld"
9042 test "$withval" = no || with_gnu_ld=yes
9043 else
9044 with_gnu_ld=no
9045 fi;
9046 ac_prog=ld
9047 if test "$GCC" = yes; then
9048 # Check if gcc -print-prog-name=ld gives a path.
9049 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9050 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9051 case $host in
9052 *-*-mingw*)
9053 # gcc leaves a trailing carriage return which upsets mingw
9054 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9055 *)
9056 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9057 esac
9058 case $ac_prog in
9059 # Accept absolute paths.
9060 [\\/]* | ?:[\\/]*)
9061 re_direlt='/[^/][^/]*/\.\./'
9062 # Canonicalize the pathname of ld
9063 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9064 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9065 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9066 done
9067 test -z "$LD" && LD="$ac_prog"
9068 ;;
9069 "")
9070 # If it fails, then pretend we aren't using GCC.
9071 ac_prog=ld
9072 ;;
9073 *)
9074 # If it is relative, then search for the first ld in PATH.
9075 with_gnu_ld=unknown
9076 ;;
9077 esac
9078 elif test "$with_gnu_ld" = yes; then
9079 echo "$as_me:$LINENO: checking for GNU ld" >&5
9080 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9081 else
9082 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9083 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9084 fi
9085 if test "${lt_cv_path_LD+set}" = set; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 else
9088 if test -z "$LD"; then
9089 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9090 for ac_dir in $PATH; do
9091 IFS="$lt_save_ifs"
9092 test -z "$ac_dir" && ac_dir=.
9093 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9094 lt_cv_path_LD="$ac_dir/$ac_prog"
9095 # Check to see if the program is GNU ld. I'd rather use --version,
9096 # but apparently some GNU ld's only accept -v.
9097 # Break only if it was the GNU/non-GNU ld that we prefer.
9098 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9099 *GNU* | *'with BFD'*)
9100 test "$with_gnu_ld" != no && break
9101 ;;
9102 *)
9103 test "$with_gnu_ld" != yes && break
9104 ;;
9105 esac
9106 fi
9107 done
9108 IFS="$lt_save_ifs"
9109 else
9110 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9111 fi
9112 fi
9113
9114 LD="$lt_cv_path_LD"
9115 if test -n "$LD"; then
9116 echo "$as_me:$LINENO: result: $LD" >&5
9117 echo "${ECHO_T}$LD" >&6
9118 else
9119 echo "$as_me:$LINENO: result: no" >&5
9120 echo "${ECHO_T}no" >&6
9121 fi
9122 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9123 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9124 { (exit 1); exit 1; }; }
9125 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9126 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9127 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9128 echo $ECHO_N "(cached) $ECHO_C" >&6
9129 else
9130 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9131 case `$LD -v 2>&1 </dev/null` in
9132 *GNU* | *'with BFD'*)
9133 lt_cv_prog_gnu_ld=yes
9134 ;;
9135 *)
9136 lt_cv_prog_gnu_ld=no
9137 ;;
9138 esac
9139 fi
9140 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9141 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9142 with_gnu_ld=$lt_cv_prog_gnu_ld
9143
9144
9145
9146 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9147 # archiving commands below assume that GNU ld is being used.
9148 if test "$with_gnu_ld" = yes; then
9149 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9150 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'
9151
9152 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9153 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9154
9155 # If archive_cmds runs LD, not CC, wlarc should be empty
9156 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9157 # investigate it a little bit more. (MM)
9158 wlarc='${wl}'
9159
9160 # ancient GNU ld didn't support --whole-archive et. al.
9161 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9162 grep 'no-whole-archive' > /dev/null; then
9163 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9164 else
9165 whole_archive_flag_spec_CXX=
9166 fi
9167 else
9168 with_gnu_ld=no
9169 wlarc=
9170
9171 # A generic and very simple default shared library creation
9172 # command for GNU C++ for the case where it uses the native
9173 # linker, instead of GNU ld. If possible, this setting should
9174 # overridden to take advantage of the native linker features on
9175 # the platform it is being used on.
9176 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9177 fi
9178
9179 # Commands to make compiler produce verbose output that lists
9180 # what "hidden" libraries, object files and flags are used when
9181 # linking a shared library.
9182 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9183
9184 else
9185 GXX=no
9186 with_gnu_ld=no
9187 wlarc=
9188 fi
9189
9190 # PORTME: fill in a description of your system's C++ link characteristics
9191 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9192 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9193 ld_shlibs_CXX=yes
9194 case $host_os in
9195 aix3*)
9196 # FIXME: insert proper C++ library support
9197 ld_shlibs_CXX=no
9198 ;;
9199 aix4* | aix5*)
9200 if test "$host_cpu" = ia64; then
9201 # On IA64, the linker does run time linking by default, so we don't
9202 # have to do anything special.
9203 aix_use_runtimelinking=no
9204 exp_sym_flag='-Bexport'
9205 no_entry_flag=""
9206 else
9207 aix_use_runtimelinking=no
9208
9209 # Test if we are trying to use run time linking or normal
9210 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9211 # need to do runtime linking.
9212 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9213 for ld_flag in $LDFLAGS; do
9214 case $ld_flag in
9215 *-brtl*)
9216 aix_use_runtimelinking=yes
9217 break
9218 ;;
9219 esac
9220 done
9221 esac
9222
9223 exp_sym_flag='-bexport'
9224 no_entry_flag='-bnoentry'
9225 fi
9226
9227 # When large executables or shared objects are built, AIX ld can
9228 # have problems creating the table of contents. If linking a library
9229 # or program results in "error TOC overflow" add -mminimal-toc to
9230 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9231 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9232
9233 archive_cmds_CXX=''
9234 hardcode_direct_CXX=yes
9235 hardcode_libdir_separator_CXX=':'
9236 link_all_deplibs_CXX=yes
9237
9238 if test "$GXX" = yes; then
9239 case $host_os in aix4.012|aix4.012.*)
9240 # We only want to do this on AIX 4.2 and lower, the check
9241 # below for broken collect2 doesn't work under 4.3+
9242 collect2name=`${CC} -print-prog-name=collect2`
9243 if test -f "$collect2name" && \
9244 strings "$collect2name" | grep resolve_lib_name >/dev/null
9245 then
9246 # We have reworked collect2
9247 hardcode_direct_CXX=yes
9248 else
9249 # We have old collect2
9250 hardcode_direct_CXX=unsupported
9251 # It fails to find uninstalled libraries when the uninstalled
9252 # path is not listed in the libpath. Setting hardcode_minus_L
9253 # to unsupported forces relinking
9254 hardcode_minus_L_CXX=yes
9255 hardcode_libdir_flag_spec_CXX='-L$libdir'
9256 hardcode_libdir_separator_CXX=
9257 fi
9258 esac
9259 shared_flag='-shared'
9260 else
9261 # not using gcc
9262 if test "$host_cpu" = ia64; then
9263 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9264 # chokes on -Wl,-G. The following line is correct:
9265 shared_flag='-G'
9266 else
9267 if test "$aix_use_runtimelinking" = yes; then
9268 shared_flag='${wl}-G'
9269 else
9270 shared_flag='${wl}-bM:SRE'
9271 fi
9272 fi
9273 fi
9274
9275 # It seems that -bexpall does not export symbols beginning with
9276 # underscore (_), so it is better to generate a list of symbols to export.
9277 always_export_symbols_CXX=yes
9278 if test "$aix_use_runtimelinking" = yes; then
9279 # Warning - without using the other runtime loading flags (-brtl),
9280 # -berok will link without error, but may produce a broken library.
9281 allow_undefined_flag_CXX='-berok'
9282 # Determine the default libpath from the value encoded in an empty executable.
9283 cat >conftest.$ac_ext <<_ACEOF
9284 /* confdefs.h. */
9285 _ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h. */
9289
9290 int
9291 main ()
9292 {
9293
9294 ;
9295 return 0;
9296 }
9297 _ACEOF
9298 rm -f conftest.$ac_objext conftest$ac_exeext
9299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9300 (eval $ac_link) 2>conftest.er1
9301 ac_status=$?
9302 grep -v '^ *+' conftest.er1 >conftest.err
9303 rm -f conftest.er1
9304 cat conftest.err >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } &&
9307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 (eval $ac_try) 2>&5
9310 ac_status=$?
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; } &&
9313 { ac_try='test -s conftest$ac_exeext'
9314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315 (eval $ac_try) 2>&5
9316 ac_status=$?
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; }; then
9319
9320 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9321 }'`
9322 # Check for a 64-bit object if we didn't find anything.
9323 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; }
9324 }'`; fi
9325 else
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9328
9329 fi
9330 rm -f conftest.err conftest.$ac_objext \
9331 conftest$ac_exeext conftest.$ac_ext
9332 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9333
9334 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9335
9336 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"
9337 else
9338 if test "$host_cpu" = ia64; then
9339 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9340 allow_undefined_flag_CXX="-z nodefs"
9341 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"
9342 else
9343 # Determine the default libpath from the value encoded in an empty executable.
9344 cat >conftest.$ac_ext <<_ACEOF
9345 /* confdefs.h. */
9346 _ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9350
9351 int
9352 main ()
9353 {
9354
9355 ;
9356 return 0;
9357 }
9358 _ACEOF
9359 rm -f conftest.$ac_objext conftest$ac_exeext
9360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9361 (eval $ac_link) 2>conftest.er1
9362 ac_status=$?
9363 grep -v '^ *+' conftest.er1 >conftest.err
9364 rm -f conftest.er1
9365 cat conftest.err >&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } &&
9368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370 (eval $ac_try) 2>&5
9371 ac_status=$?
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; } &&
9374 { ac_try='test -s conftest$ac_exeext'
9375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9376 (eval $ac_try) 2>&5
9377 ac_status=$?
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); }; }; then
9380
9381 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9382 }'`
9383 # Check for a 64-bit object if we didn't find anything.
9384 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; }
9385 }'`; fi
9386 else
9387 echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9389
9390 fi
9391 rm -f conftest.err conftest.$ac_objext \
9392 conftest$ac_exeext conftest.$ac_ext
9393 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9394
9395 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9396 # Warning - without using the other run time loading flags,
9397 # -berok will link without error, but may produce a broken library.
9398 no_undefined_flag_CXX=' ${wl}-bernotok'
9399 allow_undefined_flag_CXX=' ${wl}-berok'
9400 # -bexpall does not export symbols beginning with underscore (_)
9401 always_export_symbols_CXX=yes
9402 # Exported symbols can be pulled into shared objects from archives
9403 whole_archive_flag_spec_CXX=' '
9404 archive_cmds_need_lc_CXX=yes
9405 # This is similar to how AIX traditionally builds it's shared libraries.
9406 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'
9407 fi
9408 fi
9409 ;;
9410 chorus*)
9411 case $cc_basename in
9412 *)
9413 # FIXME: insert proper C++ library support
9414 ld_shlibs_CXX=no
9415 ;;
9416 esac
9417 ;;
9418
9419 cygwin* | mingw* | pw32*)
9420 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9421 # as there is no search path for DLLs.
9422 hardcode_libdir_flag_spec_CXX='-L$libdir'
9423 allow_undefined_flag_CXX=unsupported
9424 always_export_symbols_CXX=no
9425 enable_shared_with_static_runtimes_CXX=yes
9426
9427 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9428 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'
9429 # If the export-symbols file already is a .def file (1st line
9430 # is EXPORTS), use it as is; otherwise, prepend...
9431 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9432 cp $export_symbols $output_objdir/$soname.def;
9433 else
9434 echo EXPORTS > $output_objdir/$soname.def;
9435 cat $export_symbols >> $output_objdir/$soname.def;
9436 fi~
9437 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9438 else
9439 ld_shlibs_CXX=no
9440 fi
9441 ;;
9442
9443 darwin* | rhapsody*)
9444 if test "$GXX" = yes; then
9445 archive_cmds_need_lc_CXX=no
9446 case "$host_os" in
9447 rhapsody* | darwin1.[012])
9448 allow_undefined_flag_CXX='-undefined suppress'
9449 ;;
9450 *) # Darwin 1.3 on
9451 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9452 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9453 else
9454 case ${MACOSX_DEPLOYMENT_TARGET} in
9455 10.[012])
9456 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9457 ;;
9458 10.*)
9459 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9460 ;;
9461 esac
9462 fi
9463 ;;
9464 esac
9465 lt_int_apple_cc_single_mod=no
9466 output_verbose_link_cmd='echo'
9467 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9468 lt_int_apple_cc_single_mod=yes
9469 fi
9470 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9471 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9472 else
9473 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9474 fi
9475 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9476
9477 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9478 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9479 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9480 else
9481 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9482 fi
9483 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9484 hardcode_direct_CXX=no
9485 hardcode_automatic_CXX=yes
9486 hardcode_shlibpath_var_CXX=unsupported
9487 whole_archive_flag_spec_CXX='-all_load $convenience'
9488 link_all_deplibs_CXX=yes
9489 else
9490 ld_shlibs_CXX=no
9491 fi
9492 ;;
9493
9494 dgux*)
9495 case $cc_basename in
9496 ec++)
9497 # FIXME: insert proper C++ library support
9498 ld_shlibs_CXX=no
9499 ;;
9500 ghcx)
9501 # Green Hills C++ Compiler
9502 # FIXME: insert proper C++ library support
9503 ld_shlibs_CXX=no
9504 ;;
9505 *)
9506 # FIXME: insert proper C++ library support
9507 ld_shlibs_CXX=no
9508 ;;
9509 esac
9510 ;;
9511 freebsd12*)
9512 # C++ shared libraries reported to be fairly broken before switch to ELF
9513 ld_shlibs_CXX=no
9514 ;;
9515 freebsd-elf*)
9516 archive_cmds_need_lc_CXX=no
9517 ;;
9518 freebsd* | kfreebsd*-gnu)
9519 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9520 # conventions
9521 ld_shlibs_CXX=yes
9522 ;;
9523 gnu*)
9524 ;;
9525 hpux9*)
9526 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9527 hardcode_libdir_separator_CXX=:
9528 export_dynamic_flag_spec_CXX='${wl}-E'
9529 hardcode_direct_CXX=yes
9530 hardcode_minus_L_CXX=yes # Not in the search PATH,
9531 # but as the default
9532 # location of the library.
9533
9534 case $cc_basename in
9535 CC)
9536 # FIXME: insert proper C++ library support
9537 ld_shlibs_CXX=no
9538 ;;
9539 aCC)
9540 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'
9541 # Commands to make compiler produce verbose output that lists
9542 # what "hidden" libraries, object files and flags are used when
9543 # linking a shared library.
9544 #
9545 # There doesn't appear to be a way to prevent this compiler from
9546 # explicitly linking system object files so we need to strip them
9547 # from the output so that they don't get included in the library
9548 # dependencies.
9549 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9550 ;;
9551 *)
9552 if test "$GXX" = yes; then
9553 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'
9554 else
9555 # FIXME: insert proper C++ library support
9556 ld_shlibs_CXX=no
9557 fi
9558 ;;
9559 esac
9560 ;;
9561 hpux10*|hpux11*)
9562 if test $with_gnu_ld = no; then
9563 case "$host_cpu" in
9564 hppa*64*)
9565 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9566 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9567 hardcode_libdir_separator_CXX=:
9568 ;;
9569 ia64*)
9570 hardcode_libdir_flag_spec_CXX='-L$libdir'
9571 ;;
9572 *)
9573 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9574 hardcode_libdir_separator_CXX=:
9575 export_dynamic_flag_spec_CXX='${wl}-E'
9576 ;;
9577 esac
9578 fi
9579 case "$host_cpu" in
9580 hppa*64*)
9581 hardcode_direct_CXX=no
9582 hardcode_shlibpath_var_CXX=no
9583 ;;
9584 ia64*)
9585 hardcode_direct_CXX=no
9586 hardcode_shlibpath_var_CXX=no
9587 hardcode_minus_L_CXX=yes # Not in the search PATH,
9588 # but as the default
9589 # location of the library.
9590 ;;
9591 *)
9592 hardcode_direct_CXX=yes
9593 hardcode_minus_L_CXX=yes # Not in the search PATH,
9594 # but as the default
9595 # location of the library.
9596 ;;
9597 esac
9598
9599 case $cc_basename in
9600 CC)
9601 # FIXME: insert proper C++ library support
9602 ld_shlibs_CXX=no
9603 ;;
9604 aCC)
9605 case "$host_cpu" in
9606 hppa*64*|ia64*)
9607 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9608 ;;
9609 *)
9610 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9611 ;;
9612 esac
9613 # Commands to make compiler produce verbose output that lists
9614 # what "hidden" libraries, object files and flags are used when
9615 # linking a shared library.
9616 #
9617 # There doesn't appear to be a way to prevent this compiler from
9618 # explicitly linking system object files so we need to strip them
9619 # from the output so that they don't get included in the library
9620 # dependencies.
9621 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9622 ;;
9623 *)
9624 if test "$GXX" = yes; then
9625 if test $with_gnu_ld = no; then
9626 case "$host_cpu" in
9627 ia64*|hppa*64*)
9628 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9629 ;;
9630 *)
9631 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'
9632 ;;
9633 esac
9634 fi
9635 else
9636 # FIXME: insert proper C++ library support
9637 ld_shlibs_CXX=no
9638 fi
9639 ;;
9640 esac
9641 ;;
9642 irix5* | irix6*)
9643 case $cc_basename in
9644 CC)
9645 # SGI C++
9646 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'
9647
9648 # Archives containing C++ object files must be created using
9649 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9650 # necessary to make sure instantiated templates are included
9651 # in the archive.
9652 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9653 ;;
9654 *)
9655 if test "$GXX" = yes; then
9656 if test "$with_gnu_ld" = no; then
9657 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'
9658 else
9659 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` -o $lib'
9660 fi
9661 fi
9662 link_all_deplibs_CXX=yes
9663 ;;
9664 esac
9665 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9666 hardcode_libdir_separator_CXX=:
9667 ;;
9668 linux*)
9669 case $cc_basename in
9670 KCC)
9671 # Kuck and Associates, Inc. (KAI) C++ Compiler
9672
9673 # KCC will only create a shared library if the output file
9674 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9675 # to its proper name (with version) after linking.
9676 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9677 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
9678 # Commands to make compiler produce verbose output that lists
9679 # what "hidden" libraries, object files and flags are used when
9680 # linking a shared library.
9681 #
9682 # There doesn't appear to be a way to prevent this compiler from
9683 # explicitly linking system object files so we need to strip them
9684 # from the output so that they don't get included in the library
9685 # dependencies.
9686 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9687
9688 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9689 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9690
9691 # Archives containing C++ object files must be created using
9692 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9693 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9694 ;;
9695 icpc)
9696 # Intel C++
9697 with_gnu_ld=yes
9698 archive_cmds_need_lc_CXX=no
9699 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9700 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9701 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9702 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9703 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9704 ;;
9705 cxx)
9706 # Compaq C++
9707 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9708 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'
9709
9710 runpath_var=LD_RUN_PATH
9711 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9712 hardcode_libdir_separator_CXX=:
9713
9714 # Commands to make compiler produce verbose output that lists
9715 # what "hidden" libraries, object files and flags are used when
9716 # linking a shared library.
9717 #
9718 # There doesn't appear to be a way to prevent this compiler from
9719 # explicitly linking system object files so we need to strip them
9720 # from the output so that they don't get included in the library
9721 # dependencies.
9722 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'
9723 ;;
9724 esac
9725 ;;
9726 lynxos*)
9727 # FIXME: insert proper C++ library support
9728 ld_shlibs_CXX=no
9729 ;;
9730 m88k*)
9731 # FIXME: insert proper C++ library support
9732 ld_shlibs_CXX=no
9733 ;;
9734 mvs*)
9735 case $cc_basename in
9736 cxx)
9737 # FIXME: insert proper C++ library support
9738 ld_shlibs_CXX=no
9739 ;;
9740 *)
9741 # FIXME: insert proper C++ library support
9742 ld_shlibs_CXX=no
9743 ;;
9744 esac
9745 ;;
9746 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
9747 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9748 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9749 wlarc=
9750 hardcode_libdir_flag_spec_CXX='-R$libdir'
9751 hardcode_direct_CXX=yes
9752 hardcode_shlibpath_var_CXX=no
9753 fi
9754 # Workaround some broken pre-1.5 toolchains
9755 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9756 ;;
9757 osf3*)
9758 case $cc_basename in
9759 KCC)
9760 # Kuck and Associates, Inc. (KAI) C++ Compiler
9761
9762 # KCC will only create a shared library if the output file
9763 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9764 # to its proper name (with version) after linking.
9765 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9766
9767 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9768 hardcode_libdir_separator_CXX=:
9769
9770 # Archives containing C++ object files must be created using
9771 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9772 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9773
9774 ;;
9775 RCC)
9776 # Rational C++ 2.4.1
9777 # FIXME: insert proper C++ library support
9778 ld_shlibs_CXX=no
9779 ;;
9780 cxx)
9781 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9782 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'
9783
9784 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9785 hardcode_libdir_separator_CXX=:
9786
9787 # Commands to make compiler produce verbose output that lists
9788 # what "hidden" libraries, object files and flags are used when
9789 # linking a shared library.
9790 #
9791 # There doesn't appear to be a way to prevent this compiler from
9792 # explicitly linking system object files so we need to strip them
9793 # from the output so that they don't get included in the library
9794 # dependencies.
9795 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'
9796 ;;
9797 *)
9798 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9799 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9800 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'
9801
9802 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9803 hardcode_libdir_separator_CXX=:
9804
9805 # Commands to make compiler produce verbose output that lists
9806 # what "hidden" libraries, object files and flags are used when
9807 # linking a shared library.
9808 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9809
9810 else
9811 # FIXME: insert proper C++ library support
9812 ld_shlibs_CXX=no
9813 fi
9814 ;;
9815 esac
9816 ;;
9817 osf4* | osf5*)
9818 case $cc_basename in
9819 KCC)
9820 # Kuck and Associates, Inc. (KAI) C++ Compiler
9821
9822 # KCC will only create a shared library if the output file
9823 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9824 # to its proper name (with version) after linking.
9825 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9826
9827 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9828 hardcode_libdir_separator_CXX=:
9829
9830 # Archives containing C++ object files must be created using
9831 # the KAI C++ compiler.
9832 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9833 ;;
9834 RCC)
9835 # Rational C++ 2.4.1
9836 # FIXME: insert proper C++ library support
9837 ld_shlibs_CXX=no
9838 ;;
9839 cxx)
9840 allow_undefined_flag_CXX=' -expect_unresolved \*'
9841 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'
9842 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9843 echo "-hidden">> $lib.exp~
9844 $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~
9845 $rm $lib.exp'
9846
9847 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9848 hardcode_libdir_separator_CXX=:
9849
9850 # Commands to make compiler produce verbose output that lists
9851 # what "hidden" libraries, object files and flags are used when
9852 # linking a shared library.
9853 #
9854 # There doesn't appear to be a way to prevent this compiler from
9855 # explicitly linking system object files so we need to strip them
9856 # from the output so that they don't get included in the library
9857 # dependencies.
9858 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'
9859 ;;
9860 *)
9861 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9862 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9863 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'
9864
9865 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9866 hardcode_libdir_separator_CXX=:
9867
9868 # Commands to make compiler produce verbose output that lists
9869 # what "hidden" libraries, object files and flags are used when
9870 # linking a shared library.
9871 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9872
9873 else
9874 # FIXME: insert proper C++ library support
9875 ld_shlibs_CXX=no
9876 fi
9877 ;;
9878 esac
9879 ;;
9880 psos*)
9881 # FIXME: insert proper C++ library support
9882 ld_shlibs_CXX=no
9883 ;;
9884 sco*)
9885 archive_cmds_need_lc_CXX=no
9886 case $cc_basename in
9887 CC)
9888 # FIXME: insert proper C++ library support
9889 ld_shlibs_CXX=no
9890 ;;
9891 *)
9892 # FIXME: insert proper C++ library support
9893 ld_shlibs_CXX=no
9894 ;;
9895 esac
9896 ;;
9897 sunos4*)
9898 case $cc_basename in
9899 CC)
9900 # Sun C++ 4.x
9901 # FIXME: insert proper C++ library support
9902 ld_shlibs_CXX=no
9903 ;;
9904 lcc)
9905 # Lucid
9906 # FIXME: insert proper C++ library support
9907 ld_shlibs_CXX=no
9908 ;;
9909 *)
9910 # FIXME: insert proper C++ library support
9911 ld_shlibs_CXX=no
9912 ;;
9913 esac
9914 ;;
9915 solaris*)
9916 case $cc_basename in
9917 CC)
9918 # Sun C++ 4.2, 5.x and Centerline C++
9919 no_undefined_flag_CXX=' -zdefs'
9920 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9921 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9922 $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'
9923
9924 hardcode_libdir_flag_spec_CXX='-R$libdir'
9925 hardcode_shlibpath_var_CXX=no
9926 case $host_os in
9927 solaris2.0-5 | solaris2.0-5.*) ;;
9928 *)
9929 # The C++ compiler is used as linker so we must use $wl
9930 # flag to pass the commands to the underlying system
9931 # linker.
9932 # Supported since Solaris 2.6 (maybe 2.5.1?)
9933 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9934 ;;
9935 esac
9936 link_all_deplibs_CXX=yes
9937
9938 # Commands to make compiler produce verbose output that lists
9939 # what "hidden" libraries, object files and flags are used when
9940 # linking a shared library.
9941 #
9942 # There doesn't appear to be a way to prevent this compiler from
9943 # explicitly linking system object files so we need to strip them
9944 # from the output so that they don't get included in the library
9945 # dependencies.
9946 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9947
9948 # Archives containing C++ object files must be created using
9949 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9950 # necessary to make sure instantiated templates are included
9951 # in the archive.
9952 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9953 ;;
9954 gcx)
9955 # Green Hills C++ Compiler
9956 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9957
9958 # The C++ compiler must be used to create the archive.
9959 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9960 ;;
9961 *)
9962 # GNU C++ compiler with Solaris linker
9963 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9964 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9965 if $CC --version | grep -v '^2\.7' > /dev/null; then
9966 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9967 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9968 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9969
9970 # Commands to make compiler produce verbose output that lists
9971 # what "hidden" libraries, object files and flags are used when
9972 # linking a shared library.
9973 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9974 else
9975 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9976 # platform.
9977 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9978 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9979 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9980
9981 # Commands to make compiler produce verbose output that lists
9982 # what "hidden" libraries, object files and flags are used when
9983 # linking a shared library.
9984 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9985 fi
9986
9987 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9988 fi
9989 ;;
9990 esac
9991 ;;
9992 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9993 archive_cmds_need_lc_CXX=no
9994 ;;
9995 tandem*)
9996 case $cc_basename in
9997 NCC)
9998 # NonStop-UX NCC 3.20
9999 # FIXME: insert proper C++ library support
10000 ld_shlibs_CXX=no
10001 ;;
10002 *)
10003 # FIXME: insert proper C++ library support
10004 ld_shlibs_CXX=no
10005 ;;
10006 esac
10007 ;;
10008 vxworks*)
10009 # FIXME: insert proper C++ library support
10010 ld_shlibs_CXX=no
10011 ;;
10012 *)
10013 # FIXME: insert proper C++ library support
10014 ld_shlibs_CXX=no
10015 ;;
10016 esac
10017 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10018 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10019 test "$ld_shlibs_CXX" = no && can_build_shared=no
10020
10021 GCC_CXX="$GXX"
10022 LD_CXX="$LD"
10023
10024
10025 cat > conftest.$ac_ext <<EOF
10026 class Foo
10027 {
10028 public:
10029 Foo (void) { a = 0; }
10030 private:
10031 int a;
10032 };
10033 EOF
10034
10035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10036 (eval $ac_compile) 2>&5
10037 ac_status=$?
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; then
10040 # Parse the compiler output and extract the necessary
10041 # objects, libraries and library flags.
10042
10043 # Sentinel used to keep track of whether or not we are before
10044 # the conftest object file.
10045 pre_test_object_deps_done=no
10046
10047 # The `*' in the case matches for architectures that use `case' in
10048 # $output_verbose_cmd can trigger glob expansion during the loop
10049 # eval without this substitution.
10050 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10051
10052 for p in `eval $output_verbose_link_cmd`; do
10053 case $p in
10054
10055 -L* | -R* | -l*)
10056 # Some compilers place space between "-{L,R}" and the path.
10057 # Remove the space.
10058 if test $p = "-L" \
10059 || test $p = "-R"; then
10060 prev=$p
10061 continue
10062 else
10063 prev=
10064 fi
10065
10066 if test "$pre_test_object_deps_done" = no; then
10067 case $p in
10068 -L* | -R*)
10069 # Internal compiler library paths should come after those
10070 # provided the user. The postdeps already come after the
10071 # user supplied libs so there is no need to process them.
10072 if test -z "$compiler_lib_search_path_CXX"; then
10073 compiler_lib_search_path_CXX="${prev}${p}"
10074 else
10075 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10076 fi
10077 ;;
10078 # The "-l" case would never come before the object being
10079 # linked, so don't bother handling this case.
10080 esac
10081 else
10082 if test -z "$postdeps_CXX"; then
10083 postdeps_CXX="${prev}${p}"
10084 else
10085 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10086 fi
10087 fi
10088 ;;
10089
10090 *.$objext)
10091 # This assumes that the test object file only shows up
10092 # once in the compiler output.
10093 if test "$p" = "conftest.$objext"; then
10094 pre_test_object_deps_done=yes
10095 continue
10096 fi
10097
10098 if test "$pre_test_object_deps_done" = no; then
10099 if test -z "$predep_objects_CXX"; then
10100 predep_objects_CXX="$p"
10101 else
10102 predep_objects_CXX="$predep_objects_CXX $p"
10103 fi
10104 else
10105 if test -z "$postdep_objects_CXX"; then
10106 postdep_objects_CXX="$p"
10107 else
10108 postdep_objects_CXX="$postdep_objects_CXX $p"
10109 fi
10110 fi
10111 ;;
10112
10113 *) ;; # Ignore the rest.
10114
10115 esac
10116 done
10117
10118 # Clean up.
10119 rm -f a.out a.exe
10120 else
10121 echo "libtool.m4: error: problem compiling CXX test program"
10122 fi
10123
10124 $rm -f confest.$objext
10125
10126 case " $postdeps_CXX " in
10127 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10128 esac
10129
10130 lt_prog_compiler_wl_CXX=
10131 lt_prog_compiler_pic_CXX=
10132 lt_prog_compiler_static_CXX=
10133
10134 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10135 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10136
10137 # C++ specific cases for pic, static, wl, etc.
10138 if test "$GXX" = yes; then
10139 lt_prog_compiler_wl_CXX='-Wl,'
10140 lt_prog_compiler_static_CXX='-static'
10141
10142 case $host_os in
10143 aix*)
10144 # All AIX code is PIC.
10145 if test "$host_cpu" = ia64; then
10146 # AIX 5 now supports IA64 processor
10147 lt_prog_compiler_static_CXX='-Bstatic'
10148 fi
10149 ;;
10150 amigaos*)
10151 # FIXME: we need at least 68020 code to build shared libraries, but
10152 # adding the `-m68020' flag to GCC prevents building anything better,
10153 # like `-m68040'.
10154 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10155 ;;
10156 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10157 # PIC is the default for these OSes.
10158 ;;
10159 mingw* | os2* | pw32*)
10160 # This hack is so that the source file can tell whether it is being
10161 # built for inclusion in a dll (and should export symbols for example).
10162 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10163 ;;
10164 darwin* | rhapsody*)
10165 # PIC is the default on this platform
10166 # Common symbols not allowed in MH_DYLIB files
10167 lt_prog_compiler_pic_CXX='-fno-common'
10168 ;;
10169 *djgpp*)
10170 # DJGPP does not support shared libraries at all
10171 lt_prog_compiler_pic_CXX=
10172 ;;
10173 sysv4*MP*)
10174 if test -d /usr/nec; then
10175 lt_prog_compiler_pic_CXX=-Kconform_pic
10176 fi
10177 ;;
10178 hpux*)
10179 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10180 # not for PA HP-UX.
10181 case "$host_cpu" in
10182 hppa*64*|ia64*)
10183 ;;
10184 *)
10185 lt_prog_compiler_pic_CXX='-fPIC'
10186 ;;
10187 esac
10188 ;;
10189 *)
10190 lt_prog_compiler_pic_CXX='-fPIC'
10191 ;;
10192 esac
10193 else
10194 case $host_os in
10195 aix4* | aix5*)
10196 # All AIX code is PIC.
10197 if test "$host_cpu" = ia64; then
10198 # AIX 5 now supports IA64 processor
10199 lt_prog_compiler_static_CXX='-Bstatic'
10200 else
10201 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10202 fi
10203 ;;
10204 chorus*)
10205 case $cc_basename in
10206 cxch68)
10207 # Green Hills C++ Compiler
10208 # _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"
10209 ;;
10210 esac
10211 ;;
10212 dgux*)
10213 case $cc_basename in
10214 ec++)
10215 lt_prog_compiler_pic_CXX='-KPIC'
10216 ;;
10217 ghcx)
10218 # Green Hills C++ Compiler
10219 lt_prog_compiler_pic_CXX='-pic'
10220 ;;
10221 *)
10222 ;;
10223 esac
10224 ;;
10225 freebsd* | kfreebsd*-gnu)
10226 # FreeBSD uses GNU C++
10227 ;;
10228 hpux9* | hpux10* | hpux11*)
10229 case $cc_basename in
10230 CC)
10231 lt_prog_compiler_wl_CXX='-Wl,'
10232 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10233 if test "$host_cpu" != ia64; then
10234 lt_prog_compiler_pic_CXX='+Z'
10235 fi
10236 ;;
10237 aCC)
10238 lt_prog_compiler_wl_CXX='-Wl,'
10239 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10240 case "$host_cpu" in
10241 hppa*64*|ia64*)
10242 # +Z the default
10243 ;;
10244 *)
10245 lt_prog_compiler_pic_CXX='+Z'
10246 ;;
10247 esac
10248 ;;
10249 *)
10250 ;;
10251 esac
10252 ;;
10253 irix5* | irix6* | nonstopux*)
10254 case $cc_basename in
10255 CC)
10256 lt_prog_compiler_wl_CXX='-Wl,'
10257 lt_prog_compiler_static_CXX='-non_shared'
10258 # CC pic flag -KPIC is the default.
10259 ;;
10260 *)
10261 ;;
10262 esac
10263 ;;
10264 linux*)
10265 case $cc_basename in
10266 KCC)
10267 # KAI C++ Compiler
10268 lt_prog_compiler_wl_CXX='--backend -Wl,'
10269 lt_prog_compiler_pic_CXX='-fPIC'
10270 ;;
10271 icpc)
10272 # Intel C++
10273 lt_prog_compiler_wl_CXX='-Wl,'
10274 lt_prog_compiler_pic_CXX='-KPIC'
10275 lt_prog_compiler_static_CXX='-static'
10276 ;;
10277 cxx)
10278 # Compaq C++
10279 # Make sure the PIC flag is empty. It appears that all Alpha
10280 # Linux and Compaq Tru64 Unix objects are PIC.
10281 lt_prog_compiler_pic_CXX=
10282 lt_prog_compiler_static_CXX='-non_shared'
10283 ;;
10284 *)
10285 ;;
10286 esac
10287 ;;
10288 lynxos*)
10289 ;;
10290 m88k*)
10291 ;;
10292 mvs*)
10293 case $cc_basename in
10294 cxx)
10295 lt_prog_compiler_pic_CXX='-W c,exportall'
10296 ;;
10297 *)
10298 ;;
10299 esac
10300 ;;
10301 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10302 ;;
10303 osf3* | osf4* | osf5*)
10304 case $cc_basename in
10305 KCC)
10306 lt_prog_compiler_wl_CXX='--backend -Wl,'
10307 ;;
10308 RCC)
10309 # Rational C++ 2.4.1
10310 lt_prog_compiler_pic_CXX='-pic'
10311 ;;
10312 cxx)
10313 # Digital/Compaq C++
10314 lt_prog_compiler_wl_CXX='-Wl,'
10315 # Make sure the PIC flag is empty. It appears that all Alpha
10316 # Linux and Compaq Tru64 Unix objects are PIC.
10317 lt_prog_compiler_pic_CXX=
10318 lt_prog_compiler_static_CXX='-non_shared'
10319 ;;
10320 *)
10321 ;;
10322 esac
10323 ;;
10324 psos*)
10325 ;;
10326 sco*)
10327 case $cc_basename in
10328 CC)
10329 lt_prog_compiler_pic_CXX='-fPIC'
10330 ;;
10331 *)
10332 ;;
10333 esac
10334 ;;
10335 solaris*)
10336 case $cc_basename in
10337 CC)
10338 # Sun C++ 4.2, 5.x and Centerline C++
10339 lt_prog_compiler_pic_CXX='-KPIC'
10340 lt_prog_compiler_static_CXX='-Bstatic'
10341 lt_prog_compiler_wl_CXX='-Qoption ld '
10342 ;;
10343 gcx)
10344 # Green Hills C++ Compiler
10345 lt_prog_compiler_pic_CXX='-PIC'
10346 ;;
10347 *)
10348 ;;
10349 esac
10350 ;;
10351 sunos4*)
10352 case $cc_basename in
10353 CC)
10354 # Sun C++ 4.x
10355 lt_prog_compiler_pic_CXX='-pic'
10356 lt_prog_compiler_static_CXX='-Bstatic'
10357 ;;
10358 lcc)
10359 # Lucid
10360 lt_prog_compiler_pic_CXX='-pic'
10361 ;;
10362 *)
10363 ;;
10364 esac
10365 ;;
10366 tandem*)
10367 case $cc_basename in
10368 NCC)
10369 # NonStop-UX NCC 3.20
10370 lt_prog_compiler_pic_CXX='-KPIC'
10371 ;;
10372 *)
10373 ;;
10374 esac
10375 ;;
10376 unixware*)
10377 ;;
10378 vxworks*)
10379 ;;
10380 *)
10381 lt_prog_compiler_can_build_shared_CXX=no
10382 ;;
10383 esac
10384 fi
10385
10386 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10387 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10388
10389 #
10390 # Check to make sure the PIC flag actually works.
10391 #
10392 if test -n "$lt_prog_compiler_pic_CXX"; then
10393
10394 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10395 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10396 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10398 else
10399 lt_prog_compiler_pic_works_CXX=no
10400 ac_outfile=conftest.$ac_objext
10401 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10402 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10403 # Insert the option either (1) after the last *FLAGS variable, or
10404 # (2) before a word containing "conftest.", or (3) at the end.
10405 # Note that $ac_compile itself does not contain backslashes and begins
10406 # with a dollar sign (not a hyphen), so the echo should work correctly.
10407 # The option is referenced via a variable to avoid confusing sed.
10408 lt_compile=`echo "$ac_compile" | $SED \
10409 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10411 -e 's:$: $lt_compiler_flag:'`
10412 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
10413 (eval "$lt_compile" 2>conftest.err)
10414 ac_status=$?
10415 cat conftest.err >&5
10416 echo "$as_me:__oline__: \$? = $ac_status" >&5
10417 if (exit $ac_status) && test -s "$ac_outfile"; then
10418 # The compiler can only warn and ignore the option if not recognized
10419 # So say no if there are warnings
10420 if test ! -s conftest.err; then
10421 lt_prog_compiler_pic_works_CXX=yes
10422 fi
10423 fi
10424 $rm conftest*
10425
10426 fi
10427 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10428 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10429
10430 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10431 case $lt_prog_compiler_pic_CXX in
10432 "" | " "*) ;;
10433 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10434 esac
10435 else
10436 lt_prog_compiler_pic_CXX=
10437 lt_prog_compiler_can_build_shared_CXX=no
10438 fi
10439
10440 fi
10441 case "$host_os" in
10442 # For platforms which do not support PIC, -DPIC is meaningless:
10443 *djgpp*)
10444 lt_prog_compiler_pic_CXX=
10445 ;;
10446 *)
10447 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10448 ;;
10449 esac
10450
10451 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10452 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10453 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10455 else
10456 lt_cv_prog_compiler_c_o_CXX=no
10457 $rm -r conftest 2>/dev/null
10458 mkdir conftest
10459 cd conftest
10460 mkdir out
10461 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10462
10463 lt_compiler_flag="-o out/conftest2.$ac_objext"
10464 # Insert the option either (1) after the last *FLAGS variable, or
10465 # (2) before a word containing "conftest.", or (3) at the end.
10466 # Note that $ac_compile itself does not contain backslashes and begins
10467 # with a dollar sign (not a hyphen), so the echo should work correctly.
10468 lt_compile=`echo "$ac_compile" | $SED \
10469 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10471 -e 's:$: $lt_compiler_flag:'`
10472 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
10473 (eval "$lt_compile" 2>out/conftest.err)
10474 ac_status=$?
10475 cat out/conftest.err >&5
10476 echo "$as_me:__oline__: \$? = $ac_status" >&5
10477 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10478 then
10479 # The compiler can only warn and ignore the option if not recognized
10480 # So say no if there are warnings
10481 if test ! -s out/conftest.err; then
10482 lt_cv_prog_compiler_c_o_CXX=yes
10483 fi
10484 fi
10485 chmod u+w .
10486 $rm conftest*
10487 # SGI C++ compiler will create directory out/ii_files/ for
10488 # template instantiation
10489 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10490 $rm out/* && rmdir out
10491 cd ..
10492 rmdir conftest
10493 $rm conftest*
10494
10495 fi
10496 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10497 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10498
10499
10500 hard_links="nottested"
10501 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10502 # do not overwrite the value of need_locks provided by the user
10503 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10504 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10505 hard_links=yes
10506 $rm conftest*
10507 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10508 touch conftest.a
10509 ln conftest.a conftest.b 2>&5 || hard_links=no
10510 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10511 echo "$as_me:$LINENO: result: $hard_links" >&5
10512 echo "${ECHO_T}$hard_links" >&6
10513 if test "$hard_links" = no; then
10514 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10515 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10516 need_locks=warn
10517 fi
10518 else
10519 need_locks=no
10520 fi
10521
10522 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10523 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10524
10525 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10526 case $host_os in
10527 aix4* | aix5*)
10528 # If we're using GNU nm, then we don't want the "-C" option.
10529 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10530 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10531 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'
10532 else
10533 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'
10534 fi
10535 ;;
10536 pw32*)
10537 export_symbols_cmds_CXX="$ltdll_cmds"
10538 ;;
10539 cygwin* | mingw*)
10540 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10541 ;;
10542 linux*)
10543 link_all_deplibs_CXX=no
10544 ;;
10545 *)
10546 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10547 ;;
10548 esac
10549
10550 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10551 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10552 test "$ld_shlibs_CXX" = no && can_build_shared=no
10553
10554 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10555 if test "$GCC" = yes; then
10556 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10557 fi
10558
10559 #
10560 # Do we need to explicitly link libc?
10561 #
10562 case "x$archive_cmds_need_lc_CXX" in
10563 x|xyes)
10564 # Assume -lc should be added
10565 archive_cmds_need_lc_CXX=yes
10566
10567 if test "$enable_shared" = yes && test "$GCC" = yes; then
10568 case $archive_cmds_CXX in
10569 *'~'*)
10570 # FIXME: we may have to deal with multi-command sequences.
10571 ;;
10572 '$CC '*)
10573 # Test whether the compiler implicitly links with -lc since on some
10574 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10575 # to ld, don't add -lc before -lgcc.
10576 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10577 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10578 $rm conftest*
10579 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10580
10581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10582 (eval $ac_compile) 2>&5
10583 ac_status=$?
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } 2>conftest.err; then
10586 soname=conftest
10587 lib=conftest
10588 libobjs=conftest.$ac_objext
10589 deplibs=
10590 wl=$lt_prog_compiler_wl_CXX
10591 compiler_flags=-v
10592 linker_flags=-v
10593 verstring=
10594 output_objdir=.
10595 libname=conftest
10596 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10597 allow_undefined_flag_CXX=
10598 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10599 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10600 ac_status=$?
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); }
10603 then
10604 archive_cmds_need_lc_CXX=no
10605 else
10606 archive_cmds_need_lc_CXX=yes
10607 fi
10608 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10609 else
10610 cat conftest.err 1>&5
10611 fi
10612 $rm conftest*
10613 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10614 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10615 ;;
10616 esac
10617 fi
10618 ;;
10619 esac
10620
10621 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10622 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10623 library_names_spec=
10624 libname_spec='lib$name'
10625 soname_spec=
10626 shrext_cmds=".so"
10627 postinstall_cmds=
10628 postuninstall_cmds=
10629 finish_cmds=
10630 finish_eval=
10631 shlibpath_var=
10632 shlibpath_overrides_runpath=unknown
10633 version_type=none
10634 dynamic_linker="$host_os ld.so"
10635 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10636 if test "$GCC" = yes; then
10637 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10638 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10639 # if the path contains ";" then we assume it to be the separator
10640 # otherwise default to the standard path separator (i.e. ":") - it is
10641 # assumed that no part of a normal pathname contains ";" but that should
10642 # okay in the real world where ";" in dirpaths is itself problematic.
10643 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10644 else
10645 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10646 fi
10647 else
10648 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10649 fi
10650 need_lib_prefix=unknown
10651 hardcode_into_libs=no
10652
10653 # when you set need_version to no, make sure it does not cause -set_version
10654 # flags to be left without arguments
10655 need_version=unknown
10656
10657 case $host_os in
10658 aix3*)
10659 version_type=linux
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10661 shlibpath_var=LIBPATH
10662
10663 # AIX 3 has no versioning support, so we append a major version to the name.
10664 soname_spec='${libname}${release}${shared_ext}$major'
10665 ;;
10666
10667 aix4* | aix5*)
10668 version_type=linux
10669 need_lib_prefix=no
10670 need_version=no
10671 hardcode_into_libs=yes
10672 if test "$host_cpu" = ia64; then
10673 # AIX 5 supports IA64
10674 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10675 shlibpath_var=LD_LIBRARY_PATH
10676 else
10677 # With GCC up to 2.95.x, collect2 would create an import file
10678 # for dependence libraries. The import file would start with
10679 # the line `#! .'. This would cause the generated library to
10680 # depend on `.', always an invalid library. This was fixed in
10681 # development snapshots of GCC prior to 3.0.
10682 case $host_os in
10683 aix4 | aix4.[01] | aix4.[01].*)
10684 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10685 echo ' yes '
10686 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10687 :
10688 else
10689 can_build_shared=no
10690 fi
10691 ;;
10692 esac
10693 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10694 # soname into executable. Probably we can add versioning support to
10695 # collect2, so additional links can be useful in future.
10696 if test "$aix_use_runtimelinking" = yes; then
10697 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10698 # instead of lib<name>.a to let people know that these are not
10699 # typical AIX shared libraries.
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701 else
10702 # We preserve .a as extension for shared libraries through AIX4.2
10703 # and later when we are not doing run time linking.
10704 library_names_spec='${libname}${release}.a $libname.a'
10705 soname_spec='${libname}${release}${shared_ext}$major'
10706 fi
10707 shlibpath_var=LIBPATH
10708 fi
10709 ;;
10710
10711 amigaos*)
10712 library_names_spec='$libname.ixlibrary $libname.a'
10713 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10714 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'
10715 ;;
10716
10717 beos*)
10718 library_names_spec='${libname}${shared_ext}'
10719 dynamic_linker="$host_os ld.so"
10720 shlibpath_var=LIBRARY_PATH
10721 ;;
10722
10723 bsdi4*)
10724 version_type=linux
10725 need_version=no
10726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10727 soname_spec='${libname}${release}${shared_ext}$major'
10728 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10729 shlibpath_var=LD_LIBRARY_PATH
10730 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10731 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10732 # the default ld.so.conf also contains /usr/contrib/lib and
10733 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10734 # libtool to hard-code these into programs
10735 ;;
10736
10737 cygwin* | mingw* | pw32*)
10738 version_type=windows
10739 shrext_cmds=".dll"
10740 need_version=no
10741 need_lib_prefix=no
10742
10743 case $GCC,$host_os in
10744 yes,cygwin* | yes,mingw* | yes,pw32*)
10745 library_names_spec='$libname.dll.a'
10746 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10747 postinstall_cmds='base_file=`basename \${file}`~
10748 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10749 dldir=$destdir/`dirname \$dlpath`~
10750 test -d \$dldir || mkdir -p \$dldir~
10751 $install_prog $dir/$dlname \$dldir/$dlname'
10752 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10753 dlpath=$dir/\$dldll~
10754 $rm \$dlpath'
10755 shlibpath_overrides_runpath=yes
10756
10757 case $host_os in
10758 cygwin*)
10759 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10760 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10761 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10762 ;;
10763 mingw*)
10764 # MinGW DLLs use traditional 'lib' prefix
10765 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10766 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10767 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10768 # It is most probably a Windows format PATH printed by
10769 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10770 # path with ; separators, and with drive letters. We can handle the
10771 # drive letters (cygwin fileutils understands them), so leave them,
10772 # especially as we might pass files found there to a mingw objdump,
10773 # which wouldn't understand a cygwinified path. Ahh.
10774 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10775 else
10776 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10777 fi
10778 ;;
10779 pw32*)
10780 # pw32 DLLs use 'pw' prefix rather than 'lib'
10781 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10782 ;;
10783 esac
10784 ;;
10785
10786 *)
10787 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10788 ;;
10789 esac
10790 dynamic_linker='Win32 ld.exe'
10791 # FIXME: first we should search . and the directory the executable is in
10792 shlibpath_var=PATH
10793 ;;
10794
10795 darwin* | rhapsody*)
10796 dynamic_linker="$host_os dyld"
10797 version_type=darwin
10798 need_lib_prefix=no
10799 need_version=no
10800 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10801 soname_spec='${libname}${release}${major}$shared_ext'
10802 shlibpath_overrides_runpath=yes
10803 shlibpath_var=DYLD_LIBRARY_PATH
10804 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10805 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10806 if test "$GCC" = yes; then
10807 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10808 else
10809 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10810 fi
10811 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10812 ;;
10813
10814 dgux*)
10815 version_type=linux
10816 need_lib_prefix=no
10817 need_version=no
10818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10819 soname_spec='${libname}${release}${shared_ext}$major'
10820 shlibpath_var=LD_LIBRARY_PATH
10821 ;;
10822
10823 freebsd1*)
10824 dynamic_linker=no
10825 ;;
10826
10827 kfreebsd*-gnu)
10828 version_type=linux
10829 need_lib_prefix=no
10830 need_version=no
10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10832 soname_spec='${libname}${release}${shared_ext}$major'
10833 shlibpath_var=LD_LIBRARY_PATH
10834 shlibpath_overrides_runpath=no
10835 hardcode_into_libs=yes
10836 dynamic_linker='GNU ld.so'
10837 ;;
10838
10839 freebsd*)
10840 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10841 version_type=freebsd-$objformat
10842 case $version_type in
10843 freebsd-elf*)
10844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10845 need_version=no
10846 need_lib_prefix=no
10847 ;;
10848 freebsd-*)
10849 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10850 need_version=yes
10851 ;;
10852 esac
10853 shlibpath_var=LD_LIBRARY_PATH
10854 case $host_os in
10855 freebsd2*)
10856 shlibpath_overrides_runpath=yes
10857 ;;
10858 freebsd3.01* | freebsdelf3.01*)
10859 shlibpath_overrides_runpath=yes
10860 hardcode_into_libs=yes
10861 ;;
10862 *) # from 3.2 on
10863 shlibpath_overrides_runpath=no
10864 hardcode_into_libs=yes
10865 ;;
10866 esac
10867 ;;
10868
10869 gnu*)
10870 version_type=linux
10871 need_lib_prefix=no
10872 need_version=no
10873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10874 soname_spec='${libname}${release}${shared_ext}$major'
10875 shlibpath_var=LD_LIBRARY_PATH
10876 hardcode_into_libs=yes
10877 ;;
10878
10879 hpux9* | hpux10* | hpux11*)
10880 # Give a soname corresponding to the major version so that dld.sl refuses to
10881 # link against other versions.
10882 version_type=sunos
10883 need_lib_prefix=no
10884 need_version=no
10885 case "$host_cpu" in
10886 ia64*)
10887 shrext_cmds='.so'
10888 hardcode_into_libs=yes
10889 dynamic_linker="$host_os dld.so"
10890 shlibpath_var=LD_LIBRARY_PATH
10891 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10893 soname_spec='${libname}${release}${shared_ext}$major'
10894 if test "X$HPUX_IA64_MODE" = X32; then
10895 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10896 else
10897 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10898 fi
10899 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10900 ;;
10901 hppa*64*)
10902 shrext_cmds='.sl'
10903 hardcode_into_libs=yes
10904 dynamic_linker="$host_os dld.sl"
10905 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10908 soname_spec='${libname}${release}${shared_ext}$major'
10909 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10911 ;;
10912 *)
10913 shrext_cmds='.sl'
10914 dynamic_linker="$host_os dld.sl"
10915 shlibpath_var=SHLIB_PATH
10916 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10918 soname_spec='${libname}${release}${shared_ext}$major'
10919 ;;
10920 esac
10921 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10922 postinstall_cmds='chmod 555 $lib'
10923 ;;
10924
10925 irix5* | irix6* | nonstopux*)
10926 case $host_os in
10927 nonstopux*) version_type=nonstopux ;;
10928 *)
10929 if test "$lt_cv_prog_gnu_ld" = yes; then
10930 version_type=linux
10931 else
10932 version_type=irix
10933 fi ;;
10934 esac
10935 need_lib_prefix=no
10936 need_version=no
10937 soname_spec='${libname}${release}${shared_ext}$major'
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10939 case $host_os in
10940 irix5* | nonstopux*)
10941 libsuff= shlibsuff=
10942 ;;
10943 *)
10944 case $LD in # libtool.m4 will add one of these switches to LD
10945 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10946 libsuff= shlibsuff= libmagic=32-bit;;
10947 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10948 libsuff=32 shlibsuff=N32 libmagic=N32;;
10949 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10950 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10951 *) libsuff= shlibsuff= libmagic=never-match;;
10952 esac
10953 ;;
10954 esac
10955 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10956 shlibpath_overrides_runpath=no
10957 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10958 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10959 hardcode_into_libs=yes
10960 ;;
10961
10962 # No shared lib support for Linux oldld, aout, or coff.
10963 linux*oldld* | linux*aout* | linux*coff*)
10964 dynamic_linker=no
10965 ;;
10966
10967 # This must be Linux ELF.
10968 linux*)
10969 version_type=linux
10970 need_lib_prefix=no
10971 need_version=no
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 soname_spec='${libname}${release}${shared_ext}$major'
10974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10975 shlibpath_var=LD_LIBRARY_PATH
10976 shlibpath_overrides_runpath=no
10977 # This implies no fast_install, which is unacceptable.
10978 # Some rework will be needed to allow for fast_install
10979 # before this can be enabled.
10980 hardcode_into_libs=yes
10981
10982 # Append ld.so.conf contents to the search path
10983 if test -f /etc/ld.so.conf; then
10984 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
10985 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10986 fi
10987
10988 # We used to test for /lib/ld.so.1 and disable shared libraries on
10989 # powerpc, because MkLinux only supported shared libraries with the
10990 # GNU dynamic linker. Since this was broken with cross compilers,
10991 # most powerpc-linux boxes support dynamic linking these days and
10992 # people can always --disable-shared, the test was removed, and we
10993 # assume the GNU/Linux dynamic linker is in use.
10994 dynamic_linker='GNU/Linux ld.so'
10995 ;;
10996
10997 netbsdelf*-gnu)
10998 version_type=linux
10999 need_lib_prefix=no
11000 need_version=no
11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11002 soname_spec='${libname}${release}${shared_ext}$major'
11003 shlibpath_var=LD_LIBRARY_PATH
11004 shlibpath_overrides_runpath=no
11005 hardcode_into_libs=yes
11006 dynamic_linker='NetBSD ld.elf_so'
11007 ;;
11008
11009 knetbsd*-gnu)
11010 version_type=linux
11011 need_lib_prefix=no
11012 need_version=no
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11014 soname_spec='${libname}${release}${shared_ext}$major'
11015 shlibpath_var=LD_LIBRARY_PATH
11016 shlibpath_overrides_runpath=no
11017 hardcode_into_libs=yes
11018 dynamic_linker='GNU ld.so'
11019 ;;
11020
11021 netbsd*)
11022 version_type=sunos
11023 need_lib_prefix=no
11024 need_version=no
11025 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11028 dynamic_linker='NetBSD (a.out) ld.so'
11029 else
11030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11031 soname_spec='${libname}${release}${shared_ext}$major'
11032 dynamic_linker='NetBSD ld.elf_so'
11033 fi
11034 shlibpath_var=LD_LIBRARY_PATH
11035 shlibpath_overrides_runpath=yes
11036 hardcode_into_libs=yes
11037 ;;
11038
11039 newsos6)
11040 version_type=linux
11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042 shlibpath_var=LD_LIBRARY_PATH
11043 shlibpath_overrides_runpath=yes
11044 ;;
11045
11046 nto-qnx*)
11047 version_type=linux
11048 need_lib_prefix=no
11049 need_version=no
11050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11051 soname_spec='${libname}${release}${shared_ext}$major'
11052 shlibpath_var=LD_LIBRARY_PATH
11053 shlibpath_overrides_runpath=yes
11054 ;;
11055
11056 openbsd*)
11057 version_type=sunos
11058 need_lib_prefix=no
11059 need_version=yes
11060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11062 shlibpath_var=LD_LIBRARY_PATH
11063 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11064 case $host_os in
11065 openbsd2.[89] | openbsd2.[89].*)
11066 shlibpath_overrides_runpath=no
11067 ;;
11068 *)
11069 shlibpath_overrides_runpath=yes
11070 ;;
11071 esac
11072 else
11073 shlibpath_overrides_runpath=yes
11074 fi
11075 ;;
11076
11077 os2*)
11078 libname_spec='$name'
11079 shrext_cmds=".dll"
11080 need_lib_prefix=no
11081 library_names_spec='$libname${shared_ext} $libname.a'
11082 dynamic_linker='OS/2 ld.exe'
11083 shlibpath_var=LIBPATH
11084 ;;
11085
11086 osf3* | osf4* | osf5*)
11087 version_type=osf
11088 need_lib_prefix=no
11089 need_version=no
11090 soname_spec='${libname}${release}${shared_ext}$major'
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092 shlibpath_var=LD_LIBRARY_PATH
11093 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11094 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11095 ;;
11096
11097 sco3.2v5*)
11098 version_type=osf
11099 soname_spec='${libname}${release}${shared_ext}$major'
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11101 shlibpath_var=LD_LIBRARY_PATH
11102 ;;
11103
11104 solaris*)
11105 version_type=linux
11106 need_lib_prefix=no
11107 need_version=no
11108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11109 soname_spec='${libname}${release}${shared_ext}$major'
11110 shlibpath_var=LD_LIBRARY_PATH
11111 shlibpath_overrides_runpath=yes
11112 hardcode_into_libs=yes
11113 # ldd complains unless libraries are executable
11114 postinstall_cmds='chmod +x $lib'
11115 ;;
11116
11117 sunos4*)
11118 version_type=sunos
11119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11120 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11121 shlibpath_var=LD_LIBRARY_PATH
11122 shlibpath_overrides_runpath=yes
11123 if test "$with_gnu_ld" = yes; then
11124 need_lib_prefix=no
11125 fi
11126 need_version=yes
11127 ;;
11128
11129 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11130 version_type=linux
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11132 soname_spec='${libname}${release}${shared_ext}$major'
11133 shlibpath_var=LD_LIBRARY_PATH
11134 case $host_vendor in
11135 sni)
11136 shlibpath_overrides_runpath=no
11137 need_lib_prefix=no
11138 export_dynamic_flag_spec='${wl}-Blargedynsym'
11139 runpath_var=LD_RUN_PATH
11140 ;;
11141 siemens)
11142 need_lib_prefix=no
11143 ;;
11144 motorola)
11145 need_lib_prefix=no
11146 need_version=no
11147 shlibpath_overrides_runpath=no
11148 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11149 ;;
11150 esac
11151 ;;
11152
11153 sysv4*MP*)
11154 if test -d /usr/nec ;then
11155 version_type=linux
11156 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11157 soname_spec='$libname${shared_ext}.$major'
11158 shlibpath_var=LD_LIBRARY_PATH
11159 fi
11160 ;;
11161
11162 uts4*)
11163 version_type=linux
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165 soname_spec='${libname}${release}${shared_ext}$major'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 ;;
11168
11169 *)
11170 dynamic_linker=no
11171 ;;
11172 esac
11173 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11174 echo "${ECHO_T}$dynamic_linker" >&6
11175 test "$dynamic_linker" = no && can_build_shared=no
11176
11177 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11178 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11179 hardcode_action_CXX=
11180 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11181 test -n "$runpath_var CXX" || \
11182 test "X$hardcode_automatic_CXX"="Xyes" ; then
11183
11184 # We can hardcode non-existant directories.
11185 if test "$hardcode_direct_CXX" != no &&
11186 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11187 # have to relink, otherwise we might link with an installed library
11188 # when we should be linking with a yet-to-be-installed one
11189 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11190 test "$hardcode_minus_L_CXX" != no; then
11191 # Linking always hardcodes the temporary library directory.
11192 hardcode_action_CXX=relink
11193 else
11194 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11195 hardcode_action_CXX=immediate
11196 fi
11197 else
11198 # We cannot hardcode anything, or else we can only hardcode existing
11199 # directories.
11200 hardcode_action_CXX=unsupported
11201 fi
11202 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11203 echo "${ECHO_T}$hardcode_action_CXX" >&6
11204
11205 if test "$hardcode_action_CXX" = relink; then
11206 # Fast installation is not supported
11207 enable_fast_install=no
11208 elif test "$shlibpath_overrides_runpath" = yes ||
11209 test "$enable_shared" = no; then
11210 # Fast installation is not necessary
11211 enable_fast_install=needless
11212 fi
11213
11214 striplib=
11215 old_striplib=
11216 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11217 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11218 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11219 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11220 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11221 echo "$as_me:$LINENO: result: yes" >&5
11222 echo "${ECHO_T}yes" >&6
11223 else
11224 # FIXME - insert some real tests, host_os isn't really good enough
11225 case $host_os in
11226 darwin*)
11227 if test -n "$STRIP" ; then
11228 striplib="$STRIP -x"
11229 echo "$as_me:$LINENO: result: yes" >&5
11230 echo "${ECHO_T}yes" >&6
11231 else
11232 echo "$as_me:$LINENO: result: no" >&5
11233 echo "${ECHO_T}no" >&6
11234 fi
11235 ;;
11236 *)
11237 echo "$as_me:$LINENO: result: no" >&5
11238 echo "${ECHO_T}no" >&6
11239 ;;
11240 esac
11241 fi
11242
11243 if test "x$enable_dlopen" != xyes; then
11244 enable_dlopen=unknown
11245 enable_dlopen_self=unknown
11246 enable_dlopen_self_static=unknown
11247 else
11248 lt_cv_dlopen=no
11249 lt_cv_dlopen_libs=
11250
11251 case $host_os in
11252 beos*)
11253 lt_cv_dlopen="load_add_on"
11254 lt_cv_dlopen_libs=
11255 lt_cv_dlopen_self=yes
11256 ;;
11257
11258 mingw* | pw32*)
11259 lt_cv_dlopen="LoadLibrary"
11260 lt_cv_dlopen_libs=
11261 ;;
11262
11263 cygwin*)
11264 lt_cv_dlopen="dlopen"
11265 lt_cv_dlopen_libs=
11266 ;;
11267
11268 darwin*)
11269 # if libdl is installed we need to link against it
11270 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11271 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11272 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11274 else
11275 ac_check_lib_save_LIBS=$LIBS
11276 LIBS="-ldl $LIBS"
11277 cat >conftest.$ac_ext <<_ACEOF
11278 /* confdefs.h. */
11279 _ACEOF
11280 cat confdefs.h >>conftest.$ac_ext
11281 cat >>conftest.$ac_ext <<_ACEOF
11282 /* end confdefs.h. */
11283
11284 /* Override any gcc2 internal prototype to avoid an error. */
11285 #ifdef __cplusplus
11286 extern "C"
11287 #endif
11288 /* We use char because int might match the return type of a gcc2
11289 builtin and then its argument prototype would still apply. */
11290 char dlopen ();
11291 int
11292 main ()
11293 {
11294 dlopen ();
11295 ;
11296 return 0;
11297 }
11298 _ACEOF
11299 rm -f conftest.$ac_objext conftest$ac_exeext
11300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11301 (eval $ac_link) 2>conftest.er1
11302 ac_status=$?
11303 grep -v '^ *+' conftest.er1 >conftest.err
11304 rm -f conftest.er1
11305 cat conftest.err >&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } &&
11308 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11310 (eval $ac_try) 2>&5
11311 ac_status=$?
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; } &&
11314 { ac_try='test -s conftest$ac_exeext'
11315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316 (eval $ac_try) 2>&5
11317 ac_status=$?
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; }; then
11320 ac_cv_lib_dl_dlopen=yes
11321 else
11322 echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11324
11325 ac_cv_lib_dl_dlopen=no
11326 fi
11327 rm -f conftest.err conftest.$ac_objext \
11328 conftest$ac_exeext conftest.$ac_ext
11329 LIBS=$ac_check_lib_save_LIBS
11330 fi
11331 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11332 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11333 if test $ac_cv_lib_dl_dlopen = yes; then
11334 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11335 else
11336
11337 lt_cv_dlopen="dyld"
11338 lt_cv_dlopen_libs=
11339 lt_cv_dlopen_self=yes
11340
11341 fi
11342
11343 ;;
11344
11345 *)
11346 echo "$as_me:$LINENO: checking for shl_load" >&5
11347 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11348 if test "${ac_cv_func_shl_load+set}" = set; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11350 else
11351 cat >conftest.$ac_ext <<_ACEOF
11352 /* confdefs.h. */
11353 _ACEOF
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11357 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11359 #define shl_load innocuous_shl_load
11360
11361 /* System header to define __stub macros and hopefully few prototypes,
11362 which can conflict with char shl_load (); below.
11363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11364 <limits.h> exists even on freestanding compilers. */
11365
11366 #ifdef __STDC__
11367 # include <limits.h>
11368 #else
11369 # include <assert.h>
11370 #endif
11371
11372 #undef shl_load
11373
11374 /* Override any gcc2 internal prototype to avoid an error. */
11375 #ifdef __cplusplus
11376 extern "C"
11377 {
11378 #endif
11379 /* We use char because int might match the return type of a gcc2
11380 builtin and then its argument prototype would still apply. */
11381 char shl_load ();
11382 /* The GNU C library defines this for functions which it implements
11383 to always fail with ENOSYS. Some functions are actually named
11384 something starting with __ and the normal name is an alias. */
11385 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11386 choke me
11387 #else
11388 char (*f) () = shl_load;
11389 #endif
11390 #ifdef __cplusplus
11391 }
11392 #endif
11393
11394 int
11395 main ()
11396 {
11397 return f != shl_load;
11398 ;
11399 return 0;
11400 }
11401 _ACEOF
11402 rm -f conftest.$ac_objext conftest$ac_exeext
11403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11404 (eval $ac_link) 2>conftest.er1
11405 ac_status=$?
11406 grep -v '^ *+' conftest.er1 >conftest.err
11407 rm -f conftest.er1
11408 cat conftest.err >&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); } &&
11411 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413 (eval $ac_try) 2>&5
11414 ac_status=$?
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; } &&
11417 { ac_try='test -s conftest$ac_exeext'
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11420 ac_status=$?
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; }; then
11423 ac_cv_func_shl_load=yes
11424 else
11425 echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11427
11428 ac_cv_func_shl_load=no
11429 fi
11430 rm -f conftest.err conftest.$ac_objext \
11431 conftest$ac_exeext conftest.$ac_ext
11432 fi
11433 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11434 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11435 if test $ac_cv_func_shl_load = yes; then
11436 lt_cv_dlopen="shl_load"
11437 else
11438 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11439 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11440 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
11442 else
11443 ac_check_lib_save_LIBS=$LIBS
11444 LIBS="-ldld $LIBS"
11445 cat >conftest.$ac_ext <<_ACEOF
11446 /* confdefs.h. */
11447 _ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11451
11452 /* Override any gcc2 internal prototype to avoid an error. */
11453 #ifdef __cplusplus
11454 extern "C"
11455 #endif
11456 /* We use char because int might match the return type of a gcc2
11457 builtin and then its argument prototype would still apply. */
11458 char shl_load ();
11459 int
11460 main ()
11461 {
11462 shl_load ();
11463 ;
11464 return 0;
11465 }
11466 _ACEOF
11467 rm -f conftest.$ac_objext conftest$ac_exeext
11468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11469 (eval $ac_link) 2>conftest.er1
11470 ac_status=$?
11471 grep -v '^ *+' conftest.er1 >conftest.err
11472 rm -f conftest.er1
11473 cat conftest.err >&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } &&
11476 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478 (eval $ac_try) 2>&5
11479 ac_status=$?
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; } &&
11482 { ac_try='test -s conftest$ac_exeext'
11483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484 (eval $ac_try) 2>&5
11485 ac_status=$?
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; }; then
11488 ac_cv_lib_dld_shl_load=yes
11489 else
11490 echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11492
11493 ac_cv_lib_dld_shl_load=no
11494 fi
11495 rm -f conftest.err conftest.$ac_objext \
11496 conftest$ac_exeext conftest.$ac_ext
11497 LIBS=$ac_check_lib_save_LIBS
11498 fi
11499 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11500 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11501 if test $ac_cv_lib_dld_shl_load = yes; then
11502 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11503 else
11504 echo "$as_me:$LINENO: checking for dlopen" >&5
11505 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11506 if test "${ac_cv_func_dlopen+set}" = set; then
11507 echo $ECHO_N "(cached) $ECHO_C" >&6
11508 else
11509 cat >conftest.$ac_ext <<_ACEOF
11510 /* confdefs.h. */
11511 _ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11517 #define dlopen innocuous_dlopen
11518
11519 /* System header to define __stub macros and hopefully few prototypes,
11520 which can conflict with char dlopen (); below.
11521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11522 <limits.h> exists even on freestanding compilers. */
11523
11524 #ifdef __STDC__
11525 # include <limits.h>
11526 #else
11527 # include <assert.h>
11528 #endif
11529
11530 #undef dlopen
11531
11532 /* Override any gcc2 internal prototype to avoid an error. */
11533 #ifdef __cplusplus
11534 extern "C"
11535 {
11536 #endif
11537 /* We use char because int might match the return type of a gcc2
11538 builtin and then its argument prototype would still apply. */
11539 char dlopen ();
11540 /* The GNU C library defines this for functions which it implements
11541 to always fail with ENOSYS. Some functions are actually named
11542 something starting with __ and the normal name is an alias. */
11543 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11544 choke me
11545 #else
11546 char (*f) () = dlopen;
11547 #endif
11548 #ifdef __cplusplus
11549 }
11550 #endif
11551
11552 int
11553 main ()
11554 {
11555 return f != dlopen;
11556 ;
11557 return 0;
11558 }
11559 _ACEOF
11560 rm -f conftest.$ac_objext conftest$ac_exeext
11561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11562 (eval $ac_link) 2>conftest.er1
11563 ac_status=$?
11564 grep -v '^ *+' conftest.er1 >conftest.err
11565 rm -f conftest.er1
11566 cat conftest.err >&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } &&
11569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571 (eval $ac_try) 2>&5
11572 ac_status=$?
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); }; } &&
11575 { ac_try='test -s conftest$ac_exeext'
11576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11577 (eval $ac_try) 2>&5
11578 ac_status=$?
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); }; }; then
11581 ac_cv_func_dlopen=yes
11582 else
11583 echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11585
11586 ac_cv_func_dlopen=no
11587 fi
11588 rm -f conftest.err conftest.$ac_objext \
11589 conftest$ac_exeext conftest.$ac_ext
11590 fi
11591 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11592 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11593 if test $ac_cv_func_dlopen = yes; then
11594 lt_cv_dlopen="dlopen"
11595 else
11596 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11597 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11598 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 else
11601 ac_check_lib_save_LIBS=$LIBS
11602 LIBS="-ldl $LIBS"
11603 cat >conftest.$ac_ext <<_ACEOF
11604 /* confdefs.h. */
11605 _ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11609
11610 /* Override any gcc2 internal prototype to avoid an error. */
11611 #ifdef __cplusplus
11612 extern "C"
11613 #endif
11614 /* We use char because int might match the return type of a gcc2
11615 builtin and then its argument prototype would still apply. */
11616 char dlopen ();
11617 int
11618 main ()
11619 {
11620 dlopen ();
11621 ;
11622 return 0;
11623 }
11624 _ACEOF
11625 rm -f conftest.$ac_objext conftest$ac_exeext
11626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11627 (eval $ac_link) 2>conftest.er1
11628 ac_status=$?
11629 grep -v '^ *+' conftest.er1 >conftest.err
11630 rm -f conftest.er1
11631 cat conftest.err >&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } &&
11634 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636 (eval $ac_try) 2>&5
11637 ac_status=$?
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; } &&
11640 { ac_try='test -s conftest$ac_exeext'
11641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642 (eval $ac_try) 2>&5
11643 ac_status=$?
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); }; }; then
11646 ac_cv_lib_dl_dlopen=yes
11647 else
11648 echo "$as_me: failed program was:" >&5
11649 sed 's/^/| /' conftest.$ac_ext >&5
11650
11651 ac_cv_lib_dl_dlopen=no
11652 fi
11653 rm -f conftest.err conftest.$ac_objext \
11654 conftest$ac_exeext conftest.$ac_ext
11655 LIBS=$ac_check_lib_save_LIBS
11656 fi
11657 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11658 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11659 if test $ac_cv_lib_dl_dlopen = yes; then
11660 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11661 else
11662 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11663 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11664 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11665 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 else
11667 ac_check_lib_save_LIBS=$LIBS
11668 LIBS="-lsvld $LIBS"
11669 cat >conftest.$ac_ext <<_ACEOF
11670 /* confdefs.h. */
11671 _ACEOF
11672 cat confdefs.h >>conftest.$ac_ext
11673 cat >>conftest.$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11675
11676 /* Override any gcc2 internal prototype to avoid an error. */
11677 #ifdef __cplusplus
11678 extern "C"
11679 #endif
11680 /* We use char because int might match the return type of a gcc2
11681 builtin and then its argument prototype would still apply. */
11682 char dlopen ();
11683 int
11684 main ()
11685 {
11686 dlopen ();
11687 ;
11688 return 0;
11689 }
11690 _ACEOF
11691 rm -f conftest.$ac_objext conftest$ac_exeext
11692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11693 (eval $ac_link) 2>conftest.er1
11694 ac_status=$?
11695 grep -v '^ *+' conftest.er1 >conftest.err
11696 rm -f conftest.er1
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } &&
11700 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702 (eval $ac_try) 2>&5
11703 ac_status=$?
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; } &&
11706 { ac_try='test -s conftest$ac_exeext'
11707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11708 (eval $ac_try) 2>&5
11709 ac_status=$?
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); }; }; then
11712 ac_cv_lib_svld_dlopen=yes
11713 else
11714 echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.$ac_ext >&5
11716
11717 ac_cv_lib_svld_dlopen=no
11718 fi
11719 rm -f conftest.err conftest.$ac_objext \
11720 conftest$ac_exeext conftest.$ac_ext
11721 LIBS=$ac_check_lib_save_LIBS
11722 fi
11723 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11724 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11725 if test $ac_cv_lib_svld_dlopen = yes; then
11726 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11727 else
11728 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11729 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11730 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11732 else
11733 ac_check_lib_save_LIBS=$LIBS
11734 LIBS="-ldld $LIBS"
11735 cat >conftest.$ac_ext <<_ACEOF
11736 /* confdefs.h. */
11737 _ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11741
11742 /* Override any gcc2 internal prototype to avoid an error. */
11743 #ifdef __cplusplus
11744 extern "C"
11745 #endif
11746 /* We use char because int might match the return type of a gcc2
11747 builtin and then its argument prototype would still apply. */
11748 char dld_link ();
11749 int
11750 main ()
11751 {
11752 dld_link ();
11753 ;
11754 return 0;
11755 }
11756 _ACEOF
11757 rm -f conftest.$ac_objext conftest$ac_exeext
11758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11759 (eval $ac_link) 2>conftest.er1
11760 ac_status=$?
11761 grep -v '^ *+' conftest.er1 >conftest.err
11762 rm -f conftest.er1
11763 cat conftest.err >&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } &&
11766 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; } &&
11772 { ac_try='test -s conftest$ac_exeext'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11775 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
11778 ac_cv_lib_dld_dld_link=yes
11779 else
11780 echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11782
11783 ac_cv_lib_dld_dld_link=no
11784 fi
11785 rm -f conftest.err conftest.$ac_objext \
11786 conftest$ac_exeext conftest.$ac_ext
11787 LIBS=$ac_check_lib_save_LIBS
11788 fi
11789 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11790 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11791 if test $ac_cv_lib_dld_dld_link = yes; then
11792 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11793 fi
11794
11795
11796 fi
11797
11798
11799 fi
11800
11801
11802 fi
11803
11804
11805 fi
11806
11807
11808 fi
11809
11810 ;;
11811 esac
11812
11813 if test "x$lt_cv_dlopen" != xno; then
11814 enable_dlopen=yes
11815 else
11816 enable_dlopen=no
11817 fi
11818
11819 case $lt_cv_dlopen in
11820 dlopen)
11821 save_CPPFLAGS="$CPPFLAGS"
11822 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11823
11824 save_LDFLAGS="$LDFLAGS"
11825 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11826
11827 save_LIBS="$LIBS"
11828 LIBS="$lt_cv_dlopen_libs $LIBS"
11829
11830 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11831 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11832 if test "${lt_cv_dlopen_self+set}" = set; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11834 else
11835 if test "$cross_compiling" = yes; then :
11836 lt_cv_dlopen_self=cross
11837 else
11838 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11839 lt_status=$lt_dlunknown
11840 cat > conftest.$ac_ext <<EOF
11841 #line __oline__ "configure"
11842 #include "confdefs.h"
11843
11844 #if HAVE_DLFCN_H
11845 #include <dlfcn.h>
11846 #endif
11847
11848 #include <stdio.h>
11849
11850 #ifdef RTLD_GLOBAL
11851 # define LT_DLGLOBAL RTLD_GLOBAL
11852 #else
11853 # ifdef DL_GLOBAL
11854 # define LT_DLGLOBAL DL_GLOBAL
11855 # else
11856 # define LT_DLGLOBAL 0
11857 # endif
11858 #endif
11859
11860 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11861 find out it does not work in some platform. */
11862 #ifndef LT_DLLAZY_OR_NOW
11863 # ifdef RTLD_LAZY
11864 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11865 # else
11866 # ifdef DL_LAZY
11867 # define LT_DLLAZY_OR_NOW DL_LAZY
11868 # else
11869 # ifdef RTLD_NOW
11870 # define LT_DLLAZY_OR_NOW RTLD_NOW
11871 # else
11872 # ifdef DL_NOW
11873 # define LT_DLLAZY_OR_NOW DL_NOW
11874 # else
11875 # define LT_DLLAZY_OR_NOW 0
11876 # endif
11877 # endif
11878 # endif
11879 # endif
11880 #endif
11881
11882 #ifdef __cplusplus
11883 extern "C" void exit (int);
11884 #endif
11885
11886 void fnord() { int i=42;}
11887 int main ()
11888 {
11889 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11890 int status = $lt_dlunknown;
11891
11892 if (self)
11893 {
11894 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11895 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11896 /* dlclose (self); */
11897 }
11898
11899 exit (status);
11900 }
11901 EOF
11902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11903 (eval $ac_link) 2>&5
11904 ac_status=$?
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11907 (./conftest; exit; ) 2>/dev/null
11908 lt_status=$?
11909 case x$lt_status in
11910 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11911 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11912 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11913 esac
11914 else :
11915 # compilation failed
11916 lt_cv_dlopen_self=no
11917 fi
11918 fi
11919 rm -fr conftest*
11920
11921
11922 fi
11923 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11924 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11925
11926 if test "x$lt_cv_dlopen_self" = xyes; then
11927 LDFLAGS="$LDFLAGS $link_static_flag"
11928 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11929 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11930 if test "${lt_cv_dlopen_self_static+set}" = set; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11932 else
11933 if test "$cross_compiling" = yes; then :
11934 lt_cv_dlopen_self_static=cross
11935 else
11936 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11937 lt_status=$lt_dlunknown
11938 cat > conftest.$ac_ext <<EOF
11939 #line __oline__ "configure"
11940 #include "confdefs.h"
11941
11942 #if HAVE_DLFCN_H
11943 #include <dlfcn.h>
11944 #endif
11945
11946 #include <stdio.h>
11947
11948 #ifdef RTLD_GLOBAL
11949 # define LT_DLGLOBAL RTLD_GLOBAL
11950 #else
11951 # ifdef DL_GLOBAL
11952 # define LT_DLGLOBAL DL_GLOBAL
11953 # else
11954 # define LT_DLGLOBAL 0
11955 # endif
11956 #endif
11957
11958 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11959 find out it does not work in some platform. */
11960 #ifndef LT_DLLAZY_OR_NOW
11961 # ifdef RTLD_LAZY
11962 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11963 # else
11964 # ifdef DL_LAZY
11965 # define LT_DLLAZY_OR_NOW DL_LAZY
11966 # else
11967 # ifdef RTLD_NOW
11968 # define LT_DLLAZY_OR_NOW RTLD_NOW
11969 # else
11970 # ifdef DL_NOW
11971 # define LT_DLLAZY_OR_NOW DL_NOW
11972 # else
11973 # define LT_DLLAZY_OR_NOW 0
11974 # endif
11975 # endif
11976 # endif
11977 # endif
11978 #endif
11979
11980 #ifdef __cplusplus
11981 extern "C" void exit (int);
11982 #endif
11983
11984 void fnord() { int i=42;}
11985 int main ()
11986 {
11987 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11988 int status = $lt_dlunknown;
11989
11990 if (self)
11991 {
11992 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11993 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11994 /* dlclose (self); */
11995 }
11996
11997 exit (status);
11998 }
11999 EOF
12000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12001 (eval $ac_link) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12005 (./conftest; exit; ) 2>/dev/null
12006 lt_status=$?
12007 case x$lt_status in
12008 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12009 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12010 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12011 esac
12012 else :
12013 # compilation failed
12014 lt_cv_dlopen_self_static=no
12015 fi
12016 fi
12017 rm -fr conftest*
12018
12019
12020 fi
12021 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12022 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12023 fi
12024
12025 CPPFLAGS="$save_CPPFLAGS"
12026 LDFLAGS="$save_LDFLAGS"
12027 LIBS="$save_LIBS"
12028 ;;
12029 esac
12030
12031 case $lt_cv_dlopen_self in
12032 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12033 *) enable_dlopen_self=unknown ;;
12034 esac
12035
12036 case $lt_cv_dlopen_self_static in
12037 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12038 *) enable_dlopen_self_static=unknown ;;
12039 esac
12040 fi
12041
12042
12043 # The else clause should only fire when bootstrapping the
12044 # libtool distribution, otherwise you forgot to ship ltmain.sh
12045 # with your package, and you will get complaints that there are
12046 # no rules to generate ltmain.sh.
12047 if test -f "$ltmain"; then
12048 # See if we are running on zsh, and set the options which allow our commands through
12049 # without removal of \ escapes.
12050 if test -n "${ZSH_VERSION+set}" ; then
12051 setopt NO_GLOB_SUBST
12052 fi
12053 # Now quote all the things that may contain metacharacters while being
12054 # careful not to overquote the AC_SUBSTed values. We take copies of the
12055 # variables and quote the copies for generation of the libtool script.
12056 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12057 SED SHELL STRIP \
12058 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12059 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12060 deplibs_check_method reload_flag reload_cmds need_locks \
12061 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12062 lt_cv_sys_global_symbol_to_c_name_address \
12063 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12064 old_postinstall_cmds old_postuninstall_cmds \
12065 compiler_CXX \
12066 CC_CXX \
12067 LD_CXX \
12068 lt_prog_compiler_wl_CXX \
12069 lt_prog_compiler_pic_CXX \
12070 lt_prog_compiler_static_CXX \
12071 lt_prog_compiler_no_builtin_flag_CXX \
12072 export_dynamic_flag_spec_CXX \
12073 thread_safe_flag_spec_CXX \
12074 whole_archive_flag_spec_CXX \
12075 enable_shared_with_static_runtimes_CXX \
12076 old_archive_cmds_CXX \
12077 old_archive_from_new_cmds_CXX \
12078 predep_objects_CXX \
12079 postdep_objects_CXX \
12080 predeps_CXX \
12081 postdeps_CXX \
12082 compiler_lib_search_path_CXX \
12083 archive_cmds_CXX \
12084 archive_expsym_cmds_CXX \
12085 postinstall_cmds_CXX \
12086 postuninstall_cmds_CXX \
12087 old_archive_from_expsyms_cmds_CXX \
12088 allow_undefined_flag_CXX \
12089 no_undefined_flag_CXX \
12090 export_symbols_cmds_CXX \
12091 hardcode_libdir_flag_spec_CXX \
12092 hardcode_libdir_flag_spec_ld_CXX \
12093 hardcode_libdir_separator_CXX \
12094 hardcode_automatic_CXX \
12095 module_cmds_CXX \
12096 module_expsym_cmds_CXX \
12097 lt_cv_prog_compiler_c_o_CXX \
12098 exclude_expsyms_CXX \
12099 include_expsyms_CXX; do
12100
12101 case $var in
12102 old_archive_cmds_CXX | \
12103 old_archive_from_new_cmds_CXX | \
12104 archive_cmds_CXX | \
12105 archive_expsym_cmds_CXX | \
12106 module_cmds_CXX | \
12107 module_expsym_cmds_CXX | \
12108 old_archive_from_expsyms_cmds_CXX | \
12109 export_symbols_cmds_CXX | \
12110 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12111 postinstall_cmds | postuninstall_cmds | \
12112 old_postinstall_cmds | old_postuninstall_cmds | \
12113 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12114 # Double-quote double-evaled strings.
12115 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12116 ;;
12117 *)
12118 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12119 ;;
12120 esac
12121 done
12122
12123 case $lt_echo in
12124 *'\$0 --fallback-echo"')
12125 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12126 ;;
12127 esac
12128
12129 cfgfile="$ofile"
12130
12131 cat <<__EOF__ >> "$cfgfile"
12132 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12133
12134 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12135
12136 # Shell to use when invoking shell scripts.
12137 SHELL=$lt_SHELL
12138
12139 # Whether or not to build shared libraries.
12140 build_libtool_libs=$enable_shared
12141
12142 # Whether or not to build static libraries.
12143 build_old_libs=$enable_static
12144
12145 # Whether or not to add -lc for building shared libraries.
12146 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12147
12148 # Whether or not to disallow shared libs when runtime libs are static
12149 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12150
12151 # Whether or not to optimize for fast installation.
12152 fast_install=$enable_fast_install
12153
12154 # The host system.
12155 host_alias=$host_alias
12156 host=$host
12157
12158 # An echo program that does not interpret backslashes.
12159 echo=$lt_echo
12160
12161 # The archiver.
12162 AR=$lt_AR
12163 AR_FLAGS=$lt_AR_FLAGS
12164
12165 # A C compiler.
12166 LTCC=$lt_LTCC
12167
12168 # A language-specific compiler.
12169 CC=$lt_compiler_CXX
12170
12171 # Is the compiler the GNU C compiler?
12172 with_gcc=$GCC_CXX
12173
12174 # An ERE matcher.
12175 EGREP=$lt_EGREP
12176
12177 # The linker used to build libraries.
12178 LD=$lt_LD_CXX
12179
12180 # Whether we need hard or soft links.
12181 LN_S=$lt_LN_S
12182
12183 # A BSD-compatible nm program.
12184 NM=$lt_NM
12185
12186 # A symbol stripping program
12187 STRIP=$lt_STRIP
12188
12189 # Used to examine libraries when file_magic_cmd begins "file"
12190 MAGIC_CMD=$MAGIC_CMD
12191
12192 # Used on cygwin: DLL creation program.
12193 DLLTOOL="$DLLTOOL"
12194
12195 # Used on cygwin: object dumper.
12196 OBJDUMP="$OBJDUMP"
12197
12198 # Used on cygwin: assembler.
12199 AS="$AS"
12200
12201 # The name of the directory that contains temporary libtool files.
12202 objdir=$objdir
12203
12204 # How to create reloadable object files.
12205 reload_flag=$lt_reload_flag
12206 reload_cmds=$lt_reload_cmds
12207
12208 # How to pass a linker flag through the compiler.
12209 wl=$lt_lt_prog_compiler_wl_CXX
12210
12211 # Object file suffix (normally "o").
12212 objext="$ac_objext"
12213
12214 # Old archive suffix (normally "a").
12215 libext="$libext"
12216
12217 # Shared library suffix (normally ".so").
12218 shrext_cmds='$shrext_cmds'
12219
12220 # Executable file suffix (normally "").
12221 exeext="$exeext"
12222
12223 # Additional compiler flags for building library objects.
12224 pic_flag=$lt_lt_prog_compiler_pic_CXX
12225 pic_mode=$pic_mode
12226
12227 # What is the maximum length of a command?
12228 max_cmd_len=$lt_cv_sys_max_cmd_len
12229
12230 # Does compiler simultaneously support -c and -o options?
12231 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12232
12233 # Must we lock files when doing compilation ?
12234 need_locks=$lt_need_locks
12235
12236 # Do we need the lib prefix for modules?
12237 need_lib_prefix=$need_lib_prefix
12238
12239 # Do we need a version for libraries?
12240 need_version=$need_version
12241
12242 # Whether dlopen is supported.
12243 dlopen_support=$enable_dlopen
12244
12245 # Whether dlopen of programs is supported.
12246 dlopen_self=$enable_dlopen_self
12247
12248 # Whether dlopen of statically linked programs is supported.
12249 dlopen_self_static=$enable_dlopen_self_static
12250
12251 # Compiler flag to prevent dynamic linking.
12252 link_static_flag=$lt_lt_prog_compiler_static_CXX
12253
12254 # Compiler flag to turn off builtin functions.
12255 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12256
12257 # Compiler flag to allow reflexive dlopens.
12258 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12259
12260 # Compiler flag to generate shared objects directly from archives.
12261 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12262
12263 # Compiler flag to generate thread-safe objects.
12264 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12265
12266 # Library versioning type.
12267 version_type=$version_type
12268
12269 # Format of library name prefix.
12270 libname_spec=$lt_libname_spec
12271
12272 # List of archive names. First name is the real one, the rest are links.
12273 # The last name is the one that the linker finds with -lNAME.
12274 library_names_spec=$lt_library_names_spec
12275
12276 # The coded name of the library, if different from the real name.
12277 soname_spec=$lt_soname_spec
12278
12279 # Commands used to build and install an old-style archive.
12280 RANLIB=$lt_RANLIB
12281 old_archive_cmds=$lt_old_archive_cmds_CXX
12282 old_postinstall_cmds=$lt_old_postinstall_cmds
12283 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12284
12285 # Create an old-style archive from a shared archive.
12286 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12287
12288 # Create a temporary old-style archive to link instead of a shared archive.
12289 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12290
12291 # Commands used to build and install a shared archive.
12292 archive_cmds=$lt_archive_cmds_CXX
12293 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12294 postinstall_cmds=$lt_postinstall_cmds
12295 postuninstall_cmds=$lt_postuninstall_cmds
12296
12297 # Commands used to build a loadable module (assumed same as above if empty)
12298 module_cmds=$lt_module_cmds_CXX
12299 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12300
12301 # Commands to strip libraries.
12302 old_striplib=$lt_old_striplib
12303 striplib=$lt_striplib
12304
12305 # Dependencies to place before the objects being linked to create a
12306 # shared library.
12307 predep_objects=$lt_predep_objects_CXX
12308
12309 # Dependencies to place after the objects being linked to create a
12310 # shared library.
12311 postdep_objects=$lt_postdep_objects_CXX
12312
12313 # Dependencies to place before the objects being linked to create a
12314 # shared library.
12315 predeps=$lt_predeps_CXX
12316
12317 # Dependencies to place after the objects being linked to create a
12318 # shared library.
12319 postdeps=$lt_postdeps_CXX
12320
12321 # The library search path used internally by the compiler when linking
12322 # a shared library.
12323 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12324
12325 # Method to check whether dependent libraries are shared objects.
12326 deplibs_check_method=$lt_deplibs_check_method
12327
12328 # Command to use when deplibs_check_method == file_magic.
12329 file_magic_cmd=$lt_file_magic_cmd
12330
12331 # Flag that allows shared libraries with undefined symbols to be built.
12332 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12333
12334 # Flag that forces no undefined symbols.
12335 no_undefined_flag=$lt_no_undefined_flag_CXX
12336
12337 # Commands used to finish a libtool library installation in a directory.
12338 finish_cmds=$lt_finish_cmds
12339
12340 # Same as above, but a single script fragment to be evaled but not shown.
12341 finish_eval=$lt_finish_eval
12342
12343 # Take the output of nm and produce a listing of raw symbols and C names.
12344 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12345
12346 # Transform the output of nm in a proper C declaration
12347 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12348
12349 # Transform the output of nm in a C name address pair
12350 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12351
12352 # This is the shared library runtime path variable.
12353 runpath_var=$runpath_var
12354
12355 # This is the shared library path variable.
12356 shlibpath_var=$shlibpath_var
12357
12358 # Is shlibpath searched before the hard-coded library search path?
12359 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12360
12361 # How to hardcode a shared library path into an executable.
12362 hardcode_action=$hardcode_action_CXX
12363
12364 # Whether we should hardcode library paths into libraries.
12365 hardcode_into_libs=$hardcode_into_libs
12366
12367 # Flag to hardcode \$libdir into a binary during linking.
12368 # This must work even if \$libdir does not exist.
12369 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12370
12371 # If ld is used when linking, flag to hardcode \$libdir into
12372 # a binary during linking. This must work even if \$libdir does
12373 # not exist.
12374 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12375
12376 # Whether we need a single -rpath flag with a separated argument.
12377 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12378
12379 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12380 # resulting binary.
12381 hardcode_direct=$hardcode_direct_CXX
12382
12383 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12384 # resulting binary.
12385 hardcode_minus_L=$hardcode_minus_L_CXX
12386
12387 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12388 # the resulting binary.
12389 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12390
12391 # Set to yes if building a shared library automatically hardcodes DIR into the library
12392 # and all subsequent libraries and executables linked against it.
12393 hardcode_automatic=$hardcode_automatic_CXX
12394
12395 # Variables whose values should be saved in libtool wrapper scripts and
12396 # restored at relink time.
12397 variables_saved_for_relink="$variables_saved_for_relink"
12398
12399 # Whether libtool must link a program against all its dependency libraries.
12400 link_all_deplibs=$link_all_deplibs_CXX
12401
12402 # Compile-time system search path for libraries
12403 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12404
12405 # Run-time system search path for libraries
12406 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12407
12408 # Fix the shell variable \$srcfile for the compiler.
12409 fix_srcfile_path="$fix_srcfile_path_CXX"
12410
12411 # Set to yes if exported symbols are required.
12412 always_export_symbols=$always_export_symbols_CXX
12413
12414 # The commands to list exported symbols.
12415 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12416
12417 # The commands to extract the exported symbol list from a shared archive.
12418 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12419
12420 # Symbols that should not be listed in the preloaded symbols.
12421 exclude_expsyms=$lt_exclude_expsyms_CXX
12422
12423 # Symbols that must always be exported.
12424 include_expsyms=$lt_include_expsyms_CXX
12425
12426 # ### END LIBTOOL TAG CONFIG: $tagname
12427
12428 __EOF__
12429
12430
12431 else
12432 # If there is no Makefile yet, we rely on a make rule to execute
12433 # `config.status --recheck' to rerun these tests and create the
12434 # libtool script then.
12435 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12436 if test -f "$ltmain_in"; then
12437 test -f Makefile && make "$ltmain"
12438 fi
12439 fi
12440
12441
12442 ac_ext=c
12443 ac_cpp='$CPP $CPPFLAGS'
12444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12447
12448 CC=$lt_save_CC
12449 LDCXX=$LD
12450 LD=$lt_save_LD
12451 GCC=$lt_save_GCC
12452 with_gnu_ldcxx=$with_gnu_ld
12453 with_gnu_ld=$lt_save_with_gnu_ld
12454 lt_cv_path_LDCXX=$lt_cv_path_LD
12455 lt_cv_path_LD=$lt_save_path_LD
12456 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12457 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12458
12459 else
12460 tagname=""
12461 fi
12462 ;;
12463
12464 F77)
12465 if test -n "$F77" && test "X$F77" != "Xno"; then
12466
12467 ac_ext=f
12468 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12469 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12470 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12471
12472
12473 archive_cmds_need_lc_F77=no
12474 allow_undefined_flag_F77=
12475 always_export_symbols_F77=no
12476 archive_expsym_cmds_F77=
12477 export_dynamic_flag_spec_F77=
12478 hardcode_direct_F77=no
12479 hardcode_libdir_flag_spec_F77=
12480 hardcode_libdir_flag_spec_ld_F77=
12481 hardcode_libdir_separator_F77=
12482 hardcode_minus_L_F77=no
12483 hardcode_automatic_F77=no
12484 module_cmds_F77=
12485 module_expsym_cmds_F77=
12486 link_all_deplibs_F77=unknown
12487 old_archive_cmds_F77=$old_archive_cmds
12488 no_undefined_flag_F77=
12489 whole_archive_flag_spec_F77=
12490 enable_shared_with_static_runtimes_F77=no
12491
12492 # Source file extension for f77 test sources.
12493 ac_ext=f
12494
12495 # Object file extension for compiled f77 test sources.
12496 objext=o
12497 objext_F77=$objext
12498
12499 # Code to be used in simple compile tests
12500 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12501
12502 # Code to be used in simple link tests
12503 lt_simple_link_test_code=" program t\n end\n"
12504
12505 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12506
12507 # If no C compiler was specified, use CC.
12508 LTCC=${LTCC-"$CC"}
12509
12510 # Allow CC to be a program name with arguments.
12511 compiler=$CC
12512
12513
12514 # Allow CC to be a program name with arguments.
12515 lt_save_CC="$CC"
12516 CC=${F77-"f77"}
12517 compiler=$CC
12518 compiler_F77=$CC
12519 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12520
12521 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12522 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12523 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12524 echo "${ECHO_T}$can_build_shared" >&6
12525
12526 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12527 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12528 test "$can_build_shared" = "no" && enable_shared=no
12529
12530 # On AIX, shared libraries and static libraries use the same namespace, and
12531 # are all built from PIC.
12532 case "$host_os" in
12533 aix3*)
12534 test "$enable_shared" = yes && enable_static=no
12535 if test -n "$RANLIB"; then
12536 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12537 postinstall_cmds='$RANLIB $lib'
12538 fi
12539 ;;
12540 aix4* | aix5*)
12541 test "$enable_shared" = yes && enable_static=no
12542 ;;
12543 esac
12544 echo "$as_me:$LINENO: result: $enable_shared" >&5
12545 echo "${ECHO_T}$enable_shared" >&6
12546
12547 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12548 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12549 # Make sure either enable_shared or enable_static is yes.
12550 test "$enable_shared" = yes || enable_static=yes
12551 echo "$as_me:$LINENO: result: $enable_static" >&5
12552 echo "${ECHO_T}$enable_static" >&6
12553
12554 test "$ld_shlibs_F77" = no && can_build_shared=no
12555
12556 GCC_F77="$G77"
12557 LD_F77="$LD"
12558
12559 lt_prog_compiler_wl_F77=
12560 lt_prog_compiler_pic_F77=
12561 lt_prog_compiler_static_F77=
12562
12563 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12564 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12565
12566 if test "$GCC" = yes; then
12567 lt_prog_compiler_wl_F77='-Wl,'
12568 lt_prog_compiler_static_F77='-static'
12569
12570 case $host_os in
12571 aix*)
12572 # All AIX code is PIC.
12573 if test "$host_cpu" = ia64; then
12574 # AIX 5 now supports IA64 processor
12575 lt_prog_compiler_static_F77='-Bstatic'
12576 fi
12577 ;;
12578
12579 amigaos*)
12580 # FIXME: we need at least 68020 code to build shared libraries, but
12581 # adding the `-m68020' flag to GCC prevents building anything better,
12582 # like `-m68040'.
12583 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12584 ;;
12585
12586 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12587 # PIC is the default for these OSes.
12588 ;;
12589
12590 mingw* | pw32* | os2*)
12591 # This hack is so that the source file can tell whether it is being
12592 # built for inclusion in a dll (and should export symbols for example).
12593 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12594 ;;
12595
12596 darwin* | rhapsody*)
12597 # PIC is the default on this platform
12598 # Common symbols not allowed in MH_DYLIB files
12599 lt_prog_compiler_pic_F77='-fno-common'
12600 ;;
12601
12602 msdosdjgpp*)
12603 # Just because we use GCC doesn't mean we suddenly get shared libraries
12604 # on systems that don't support them.
12605 lt_prog_compiler_can_build_shared_F77=no
12606 enable_shared=no
12607 ;;
12608
12609 sysv4*MP*)
12610 if test -d /usr/nec; then
12611 lt_prog_compiler_pic_F77=-Kconform_pic
12612 fi
12613 ;;
12614
12615 hpux*)
12616 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12617 # not for PA HP-UX.
12618 case "$host_cpu" in
12619 hppa*64*|ia64*)
12620 # +Z the default
12621 ;;
12622 *)
12623 lt_prog_compiler_pic_F77='-fPIC'
12624 ;;
12625 esac
12626 ;;
12627
12628 *)
12629 lt_prog_compiler_pic_F77='-fPIC'
12630 ;;
12631 esac
12632 else
12633 # PORTME Check for flag to pass linker flags through the system compiler.
12634 case $host_os in
12635 aix*)
12636 lt_prog_compiler_wl_F77='-Wl,'
12637 if test "$host_cpu" = ia64; then
12638 # AIX 5 now supports IA64 processor
12639 lt_prog_compiler_static_F77='-Bstatic'
12640 else
12641 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12642 fi
12643 ;;
12644
12645 mingw* | pw32* | os2*)
12646 # This hack is so that the source file can tell whether it is being
12647 # built for inclusion in a dll (and should export symbols for example).
12648 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12649 ;;
12650
12651 hpux9* | hpux10* | hpux11*)
12652 lt_prog_compiler_wl_F77='-Wl,'
12653 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12654 # not for PA HP-UX.
12655 case "$host_cpu" in
12656 hppa*64*|ia64*)
12657 # +Z the default
12658 ;;
12659 *)
12660 lt_prog_compiler_pic_F77='+Z'
12661 ;;
12662 esac
12663 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12664 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12665 ;;
12666
12667 irix5* | irix6* | nonstopux*)
12668 lt_prog_compiler_wl_F77='-Wl,'
12669 # PIC (with -KPIC) is the default.
12670 lt_prog_compiler_static_F77='-non_shared'
12671 ;;
12672
12673 newsos6)
12674 lt_prog_compiler_pic_F77='-KPIC'
12675 lt_prog_compiler_static_F77='-Bstatic'
12676 ;;
12677
12678 linux*)
12679 case $CC in
12680 icc* | ecc*)
12681 lt_prog_compiler_wl_F77='-Wl,'
12682 lt_prog_compiler_pic_F77='-KPIC'
12683 lt_prog_compiler_static_F77='-static'
12684 ;;
12685 ccc*)
12686 lt_prog_compiler_wl_F77='-Wl,'
12687 # All Alpha code is PIC.
12688 lt_prog_compiler_static_F77='-non_shared'
12689 ;;
12690 esac
12691 ;;
12692
12693 osf3* | osf4* | osf5*)
12694 lt_prog_compiler_wl_F77='-Wl,'
12695 # All OSF/1 code is PIC.
12696 lt_prog_compiler_static_F77='-non_shared'
12697 ;;
12698
12699 sco3.2v5*)
12700 lt_prog_compiler_pic_F77='-Kpic'
12701 lt_prog_compiler_static_F77='-dn'
12702 ;;
12703
12704 solaris*)
12705 lt_prog_compiler_wl_F77='-Wl,'
12706 lt_prog_compiler_pic_F77='-KPIC'
12707 lt_prog_compiler_static_F77='-Bstatic'
12708 ;;
12709
12710 sunos4*)
12711 lt_prog_compiler_wl_F77='-Qoption ld '
12712 lt_prog_compiler_pic_F77='-PIC'
12713 lt_prog_compiler_static_F77='-Bstatic'
12714 ;;
12715
12716 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12717 lt_prog_compiler_wl_F77='-Wl,'
12718 lt_prog_compiler_pic_F77='-KPIC'
12719 lt_prog_compiler_static_F77='-Bstatic'
12720 ;;
12721
12722 sysv4*MP*)
12723 if test -d /usr/nec ;then
12724 lt_prog_compiler_pic_F77='-Kconform_pic'
12725 lt_prog_compiler_static_F77='-Bstatic'
12726 fi
12727 ;;
12728
12729 uts4*)
12730 lt_prog_compiler_pic_F77='-pic'
12731 lt_prog_compiler_static_F77='-Bstatic'
12732 ;;
12733
12734 *)
12735 lt_prog_compiler_can_build_shared_F77=no
12736 ;;
12737 esac
12738 fi
12739
12740 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12741 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12742
12743 #
12744 # Check to make sure the PIC flag actually works.
12745 #
12746 if test -n "$lt_prog_compiler_pic_F77"; then
12747
12748 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12749 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12750 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 else
12753 lt_prog_compiler_pic_works_F77=no
12754 ac_outfile=conftest.$ac_objext
12755 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12756 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12757 # Insert the option either (1) after the last *FLAGS variable, or
12758 # (2) before a word containing "conftest.", or (3) at the end.
12759 # Note that $ac_compile itself does not contain backslashes and begins
12760 # with a dollar sign (not a hyphen), so the echo should work correctly.
12761 # The option is referenced via a variable to avoid confusing sed.
12762 lt_compile=`echo "$ac_compile" | $SED \
12763 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12765 -e 's:$: $lt_compiler_flag:'`
12766 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12767 (eval "$lt_compile" 2>conftest.err)
12768 ac_status=$?
12769 cat conftest.err >&5
12770 echo "$as_me:__oline__: \$? = $ac_status" >&5
12771 if (exit $ac_status) && test -s "$ac_outfile"; then
12772 # The compiler can only warn and ignore the option if not recognized
12773 # So say no if there are warnings
12774 if test ! -s conftest.err; then
12775 lt_prog_compiler_pic_works_F77=yes
12776 fi
12777 fi
12778 $rm conftest*
12779
12780 fi
12781 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12782 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12783
12784 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12785 case $lt_prog_compiler_pic_F77 in
12786 "" | " "*) ;;
12787 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12788 esac
12789 else
12790 lt_prog_compiler_pic_F77=
12791 lt_prog_compiler_can_build_shared_F77=no
12792 fi
12793
12794 fi
12795 case "$host_os" in
12796 # For platforms which do not support PIC, -DPIC is meaningless:
12797 *djgpp*)
12798 lt_prog_compiler_pic_F77=
12799 ;;
12800 *)
12801 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12802 ;;
12803 esac
12804
12805 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12806 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12807 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12809 else
12810 lt_cv_prog_compiler_c_o_F77=no
12811 $rm -r conftest 2>/dev/null
12812 mkdir conftest
12813 cd conftest
12814 mkdir out
12815 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12816
12817 lt_compiler_flag="-o out/conftest2.$ac_objext"
12818 # Insert the option either (1) after the last *FLAGS variable, or
12819 # (2) before a word containing "conftest.", or (3) at the end.
12820 # Note that $ac_compile itself does not contain backslashes and begins
12821 # with a dollar sign (not a hyphen), so the echo should work correctly.
12822 lt_compile=`echo "$ac_compile" | $SED \
12823 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12825 -e 's:$: $lt_compiler_flag:'`
12826 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12827 (eval "$lt_compile" 2>out/conftest.err)
12828 ac_status=$?
12829 cat out/conftest.err >&5
12830 echo "$as_me:__oline__: \$? = $ac_status" >&5
12831 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12832 then
12833 # The compiler can only warn and ignore the option if not recognized
12834 # So say no if there are warnings
12835 if test ! -s out/conftest.err; then
12836 lt_cv_prog_compiler_c_o_F77=yes
12837 fi
12838 fi
12839 chmod u+w .
12840 $rm conftest*
12841 # SGI C++ compiler will create directory out/ii_files/ for
12842 # template instantiation
12843 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12844 $rm out/* && rmdir out
12845 cd ..
12846 rmdir conftest
12847 $rm conftest*
12848
12849 fi
12850 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12851 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12852
12853
12854 hard_links="nottested"
12855 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12856 # do not overwrite the value of need_locks provided by the user
12857 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12858 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12859 hard_links=yes
12860 $rm conftest*
12861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12862 touch conftest.a
12863 ln conftest.a conftest.b 2>&5 || hard_links=no
12864 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12865 echo "$as_me:$LINENO: result: $hard_links" >&5
12866 echo "${ECHO_T}$hard_links" >&6
12867 if test "$hard_links" = no; then
12868 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12869 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12870 need_locks=warn
12871 fi
12872 else
12873 need_locks=no
12874 fi
12875
12876 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12877 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12878
12879 runpath_var=
12880 allow_undefined_flag_F77=
12881 enable_shared_with_static_runtimes_F77=no
12882 archive_cmds_F77=
12883 archive_expsym_cmds_F77=
12884 old_archive_From_new_cmds_F77=
12885 old_archive_from_expsyms_cmds_F77=
12886 export_dynamic_flag_spec_F77=
12887 whole_archive_flag_spec_F77=
12888 thread_safe_flag_spec_F77=
12889 hardcode_libdir_flag_spec_F77=
12890 hardcode_libdir_flag_spec_ld_F77=
12891 hardcode_libdir_separator_F77=
12892 hardcode_direct_F77=no
12893 hardcode_minus_L_F77=no
12894 hardcode_shlibpath_var_F77=unsupported
12895 link_all_deplibs_F77=unknown
12896 hardcode_automatic_F77=no
12897 module_cmds_F77=
12898 module_expsym_cmds_F77=
12899 always_export_symbols_F77=no
12900 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12901 # include_expsyms should be a list of space-separated symbols to be *always*
12902 # included in the symbol list
12903 include_expsyms_F77=
12904 # exclude_expsyms can be an extended regexp of symbols to exclude
12905 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12906 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12907 # as well as any symbol that contains `d'.
12908 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12909 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12910 # platforms (ab)use it in PIC code, but their linkers get confused if
12911 # the symbol is explicitly referenced. Since portable code cannot
12912 # rely on this symbol name, it's probably fine to never include it in
12913 # preloaded symbol tables.
12914 extract_expsyms_cmds=
12915
12916 case $host_os in
12917 cygwin* | mingw* | pw32*)
12918 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12919 # When not using gcc, we currently assume that we are using
12920 # Microsoft Visual C++.
12921 if test "$GCC" != yes; then
12922 with_gnu_ld=no
12923 fi
12924 ;;
12925 openbsd*)
12926 with_gnu_ld=no
12927 ;;
12928 esac
12929
12930 ld_shlibs_F77=yes
12931 if test "$with_gnu_ld" = yes; then
12932 # If archive_cmds runs LD, not CC, wlarc should be empty
12933 wlarc='${wl}'
12934
12935 # See if GNU ld supports shared libraries.
12936 case $host_os in
12937 aix3* | aix4* | aix5*)
12938 # On AIX/PPC, the GNU linker is very broken
12939 if test "$host_cpu" != ia64; then
12940 ld_shlibs_F77=no
12941 cat <<EOF 1>&2
12942
12943 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12944 *** to be unable to reliably create shared libraries on AIX.
12945 *** Therefore, libtool is disabling shared libraries support. If you
12946 *** really care for shared libraries, you may want to modify your PATH
12947 *** so that a non-GNU linker is found, and then restart.
12948
12949 EOF
12950 fi
12951 ;;
12952
12953 amigaos*)
12954 archive_cmds_F77='$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)'
12955 hardcode_libdir_flag_spec_F77='-L$libdir'
12956 hardcode_minus_L_F77=yes
12957
12958 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12959 # that the semantics of dynamic libraries on AmigaOS, at least up
12960 # to version 4, is to share data among multiple programs linked
12961 # with the same dynamic library. Since this doesn't match the
12962 # behavior of shared libraries on other platforms, we can't use
12963 # them.
12964 ld_shlibs_F77=no
12965 ;;
12966
12967 beos*)
12968 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12969 allow_undefined_flag_F77=unsupported
12970 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12971 # support --undefined. This deserves some investigation. FIXME
12972 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12973 else
12974 ld_shlibs_F77=no
12975 fi
12976 ;;
12977
12978 cygwin* | mingw* | pw32*)
12979 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12980 # as there is no search path for DLLs.
12981 hardcode_libdir_flag_spec_F77='-L$libdir'
12982 allow_undefined_flag_F77=unsupported
12983 always_export_symbols_F77=no
12984 enable_shared_with_static_runtimes_F77=yes
12985 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12986
12987 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12988 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12989 # If the export-symbols file already is a .def file (1st line
12990 # is EXPORTS), use it as is; otherwise, prepend...
12991 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12992 cp $export_symbols $output_objdir/$soname.def;
12993 else
12994 echo EXPORTS > $output_objdir/$soname.def;
12995 cat $export_symbols >> $output_objdir/$soname.def;
12996 fi~
12997 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12998 else
12999 ld_shlibs=no
13000 fi
13001 ;;
13002
13003 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13004 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13005 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13006 wlarc=
13007 else
13008 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13009 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13010 fi
13011 ;;
13012
13013 solaris* | sysv5*)
13014 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13015 ld_shlibs_F77=no
13016 cat <<EOF 1>&2
13017
13018 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13019 *** create shared libraries on Solaris systems. Therefore, libtool
13020 *** is disabling shared libraries support. We urge you to upgrade GNU
13021 *** binutils to release 2.9.1 or newer. Another option is to modify
13022 *** your PATH or compiler configuration so that the native linker is
13023 *** used, and then restart.
13024
13025 EOF
13026 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13027 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13028 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13029 else
13030 ld_shlibs_F77=no
13031 fi
13032 ;;
13033
13034 sunos4*)
13035 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13036 wlarc=
13037 hardcode_direct_F77=yes
13038 hardcode_shlibpath_var_F77=no
13039 ;;
13040
13041 linux*)
13042 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13043 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13044 archive_cmds_F77="$tmp_archive_cmds"
13045 supports_anon_versioning=no
13046 case `$LD -v 2>/dev/null` in
13047 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13048 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13049 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13050 *\ 2.11.*) ;; # other 2.11 versions
13051 *) supports_anon_versioning=yes ;;
13052 esac
13053 if test $supports_anon_versioning = yes; then
13054 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13055 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13056 $echo "local: *; };" >> $output_objdir/$libname.ver~
13057 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13058 else
13059 archive_expsym_cmds_F77="$tmp_archive_cmds"
13060 fi
13061 link_all_deplibs_F77=no
13062 else
13063 ld_shlibs_F77=no
13064 fi
13065 ;;
13066
13067 *)
13068 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13069 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13070 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13071 else
13072 ld_shlibs_F77=no
13073 fi
13074 ;;
13075 esac
13076
13077 if test "$ld_shlibs_F77" = yes; then
13078 runpath_var=LD_RUN_PATH
13079 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13080 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13081 # ancient GNU ld didn't support --whole-archive et. al.
13082 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13083 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13084 else
13085 whole_archive_flag_spec_F77=
13086 fi
13087 fi
13088 else
13089 # PORTME fill in a description of your system's linker (not GNU ld)
13090 case $host_os in
13091 aix3*)
13092 allow_undefined_flag_F77=unsupported
13093 always_export_symbols_F77=yes
13094 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13095 # Note: this linker hardcodes the directories in LIBPATH if there
13096 # are no directories specified by -L.
13097 hardcode_minus_L_F77=yes
13098 if test "$GCC" = yes && test -z "$link_static_flag"; then
13099 # Neither direct hardcoding nor static linking is supported with a
13100 # broken collect2.
13101 hardcode_direct_F77=unsupported
13102 fi
13103 ;;
13104
13105 aix4* | aix5*)
13106 if test "$host_cpu" = ia64; then
13107 # On IA64, the linker does run time linking by default, so we don't
13108 # have to do anything special.
13109 aix_use_runtimelinking=no
13110 exp_sym_flag='-Bexport'
13111 no_entry_flag=""
13112 else
13113 # If we're using GNU nm, then we don't want the "-C" option.
13114 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13115 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13116 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13117 else
13118 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13119 fi
13120 aix_use_runtimelinking=no
13121
13122 # Test if we are trying to use run time linking or normal
13123 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13124 # need to do runtime linking.
13125 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13126 for ld_flag in $LDFLAGS; do
13127 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13128 aix_use_runtimelinking=yes
13129 break
13130 fi
13131 done
13132 esac
13133
13134 exp_sym_flag='-bexport'
13135 no_entry_flag='-bnoentry'
13136 fi
13137
13138 # When large executables or shared objects are built, AIX ld can
13139 # have problems creating the table of contents. If linking a library
13140 # or program results in "error TOC overflow" add -mminimal-toc to
13141 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13142 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13143
13144 archive_cmds_F77=''
13145 hardcode_direct_F77=yes
13146 hardcode_libdir_separator_F77=':'
13147 link_all_deplibs_F77=yes
13148
13149 if test "$GCC" = yes; then
13150 case $host_os in aix4.012|aix4.012.*)
13151 # We only want to do this on AIX 4.2 and lower, the check
13152 # below for broken collect2 doesn't work under 4.3+
13153 collect2name=`${CC} -print-prog-name=collect2`
13154 if test -f "$collect2name" && \
13155 strings "$collect2name" | grep resolve_lib_name >/dev/null
13156 then
13157 # We have reworked collect2
13158 hardcode_direct_F77=yes
13159 else
13160 # We have old collect2
13161 hardcode_direct_F77=unsupported
13162 # It fails to find uninstalled libraries when the uninstalled
13163 # path is not listed in the libpath. Setting hardcode_minus_L
13164 # to unsupported forces relinking
13165 hardcode_minus_L_F77=yes
13166 hardcode_libdir_flag_spec_F77='-L$libdir'
13167 hardcode_libdir_separator_F77=
13168 fi
13169 esac
13170 shared_flag='-shared'
13171 else
13172 # not using gcc
13173 if test "$host_cpu" = ia64; then
13174 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13175 # chokes on -Wl,-G. The following line is correct:
13176 shared_flag='-G'
13177 else
13178 if test "$aix_use_runtimelinking" = yes; then
13179 shared_flag='${wl}-G'
13180 else
13181 shared_flag='${wl}-bM:SRE'
13182 fi
13183 fi
13184 fi
13185
13186 # It seems that -bexpall does not export symbols beginning with
13187 # underscore (_), so it is better to generate a list of symbols to export.
13188 always_export_symbols_F77=yes
13189 if test "$aix_use_runtimelinking" = yes; then
13190 # Warning - without using the other runtime loading flags (-brtl),
13191 # -berok will link without error, but may produce a broken library.
13192 allow_undefined_flag_F77='-berok'
13193 # Determine the default libpath from the value encoded in an empty executable.
13194 cat >conftest.$ac_ext <<_ACEOF
13195 program main
13196
13197 end
13198 _ACEOF
13199 rm -f conftest.$ac_objext conftest$ac_exeext
13200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13201 (eval $ac_link) 2>conftest.er1
13202 ac_status=$?
13203 grep -v '^ *+' conftest.er1 >conftest.err
13204 rm -f conftest.er1
13205 cat conftest.err >&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } &&
13208 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210 (eval $ac_try) 2>&5
13211 ac_status=$?
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; } &&
13214 { ac_try='test -s conftest$ac_exeext'
13215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216 (eval $ac_try) 2>&5
13217 ac_status=$?
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; }; then
13220
13221 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13222 }'`
13223 # Check for a 64-bit object if we didn't find anything.
13224 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; }
13225 }'`; fi
13226 else
13227 echo "$as_me: failed program was:" >&5
13228 sed 's/^/| /' conftest.$ac_ext >&5
13229
13230 fi
13231 rm -f conftest.err conftest.$ac_objext \
13232 conftest$ac_exeext conftest.$ac_ext
13233 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13234
13235 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13236 archive_expsym_cmds_F77="\$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"
13237 else
13238 if test "$host_cpu" = ia64; then
13239 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13240 allow_undefined_flag_F77="-z nodefs"
13241 archive_expsym_cmds_F77="\$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"
13242 else
13243 # Determine the default libpath from the value encoded in an empty executable.
13244 cat >conftest.$ac_ext <<_ACEOF
13245 program main
13246
13247 end
13248 _ACEOF
13249 rm -f conftest.$ac_objext conftest$ac_exeext
13250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13251 (eval $ac_link) 2>conftest.er1
13252 ac_status=$?
13253 grep -v '^ *+' conftest.er1 >conftest.err
13254 rm -f conftest.er1
13255 cat conftest.err >&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } &&
13258 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13260 (eval $ac_try) 2>&5
13261 ac_status=$?
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); }; } &&
13264 { ac_try='test -s conftest$ac_exeext'
13265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13267 ac_status=$?
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; }; then
13270
13271 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13272 }'`
13273 # Check for a 64-bit object if we didn't find anything.
13274 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; }
13275 }'`; fi
13276 else
13277 echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13279
13280 fi
13281 rm -f conftest.err conftest.$ac_objext \
13282 conftest$ac_exeext conftest.$ac_ext
13283 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13284
13285 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13286 # Warning - without using the other run time loading flags,
13287 # -berok will link without error, but may produce a broken library.
13288 no_undefined_flag_F77=' ${wl}-bernotok'
13289 allow_undefined_flag_F77=' ${wl}-berok'
13290 # -bexpall does not export symbols beginning with underscore (_)
13291 always_export_symbols_F77=yes
13292 # Exported symbols can be pulled into shared objects from archives
13293 whole_archive_flag_spec_F77=' '
13294 archive_cmds_need_lc_F77=yes
13295 # This is similar to how AIX traditionally builds it's shared libraries.
13296 archive_expsym_cmds_F77="\$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'
13297 fi
13298 fi
13299 ;;
13300
13301 amigaos*)
13302 archive_cmds_F77='$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)'
13303 hardcode_libdir_flag_spec_F77='-L$libdir'
13304 hardcode_minus_L_F77=yes
13305 # see comment about different semantics on the GNU ld section
13306 ld_shlibs_F77=no
13307 ;;
13308
13309 bsdi4*)
13310 export_dynamic_flag_spec_F77=-rdynamic
13311 ;;
13312
13313 cygwin* | mingw* | pw32*)
13314 # When not using gcc, we currently assume that we are using
13315 # Microsoft Visual C++.
13316 # hardcode_libdir_flag_spec is actually meaningless, as there is
13317 # no search path for DLLs.
13318 hardcode_libdir_flag_spec_F77=' '
13319 allow_undefined_flag_F77=unsupported
13320 # Tell ltmain to make .lib files, not .a files.
13321 libext=lib
13322 # Tell ltmain to make .dll files, not .so files.
13323 shrext_cmds=".dll"
13324 # FIXME: Setting linknames here is a bad hack.
13325 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13326 # The linker will automatically build a .lib file if we build a DLL.
13327 old_archive_From_new_cmds_F77='true'
13328 # FIXME: Should let the user specify the lib program.
13329 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13330 fix_srcfile_path='`cygpath -w "$srcfile"`'
13331 enable_shared_with_static_runtimes_F77=yes
13332 ;;
13333
13334 darwin* | rhapsody*)
13335 if test "$GXX" = yes ; then
13336 archive_cmds_need_lc_F77=no
13337 case "$host_os" in
13338 rhapsody* | darwin1.[012])
13339 allow_undefined_flag_F77='-undefined suppress'
13340 ;;
13341 *) # Darwin 1.3 on
13342 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13343 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13344 else
13345 case ${MACOSX_DEPLOYMENT_TARGET} in
13346 10.[012])
13347 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13348 ;;
13349 10.*)
13350 allow_undefined_flag_F77='-undefined dynamic_lookup'
13351 ;;
13352 esac
13353 fi
13354 ;;
13355 esac
13356 lt_int_apple_cc_single_mod=no
13357 output_verbose_link_cmd='echo'
13358 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13359 lt_int_apple_cc_single_mod=yes
13360 fi
13361 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13362 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13363 else
13364 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13365 fi
13366 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13367 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13368 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13369 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13370 else
13371 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13372 fi
13373 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13374 hardcode_direct_F77=no
13375 hardcode_automatic_F77=yes
13376 hardcode_shlibpath_var_F77=unsupported
13377 whole_archive_flag_spec_F77='-all_load $convenience'
13378 link_all_deplibs_F77=yes
13379 else
13380 ld_shlibs_F77=no
13381 fi
13382 ;;
13383
13384 dgux*)
13385 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13386 hardcode_libdir_flag_spec_F77='-L$libdir'
13387 hardcode_shlibpath_var_F77=no
13388 ;;
13389
13390 freebsd1*)
13391 ld_shlibs_F77=no
13392 ;;
13393
13394 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13395 # support. Future versions do this automatically, but an explicit c++rt0.o
13396 # does not break anything, and helps significantly (at the cost of a little
13397 # extra space).
13398 freebsd2.2*)
13399 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13400 hardcode_libdir_flag_spec_F77='-R$libdir'
13401 hardcode_direct_F77=yes
13402 hardcode_shlibpath_var_F77=no
13403 ;;
13404
13405 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13406 freebsd2*)
13407 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13408 hardcode_direct_F77=yes
13409 hardcode_minus_L_F77=yes
13410 hardcode_shlibpath_var_F77=no
13411 ;;
13412
13413 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13414 freebsd* | kfreebsd*-gnu)
13415 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13416 hardcode_libdir_flag_spec_F77='-R$libdir'
13417 hardcode_direct_F77=yes
13418 hardcode_shlibpath_var_F77=no
13419 ;;
13420
13421 hpux9*)
13422 if test "$GCC" = yes; then
13423 archive_cmds_F77='$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'
13424 else
13425 archive_cmds_F77='$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'
13426 fi
13427 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13428 hardcode_libdir_separator_F77=:
13429 hardcode_direct_F77=yes
13430
13431 # hardcode_minus_L: Not really in the search PATH,
13432 # but as the default location of the library.
13433 hardcode_minus_L_F77=yes
13434 export_dynamic_flag_spec_F77='${wl}-E'
13435 ;;
13436
13437 hpux10* | hpux11*)
13438 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13439 case "$host_cpu" in
13440 hppa*64*|ia64*)
13441 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13442 ;;
13443 *)
13444 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13445 ;;
13446 esac
13447 else
13448 case "$host_cpu" in
13449 hppa*64*|ia64*)
13450 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13451 ;;
13452 *)
13453 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13454 ;;
13455 esac
13456 fi
13457 if test "$with_gnu_ld" = no; then
13458 case "$host_cpu" in
13459 hppa*64*)
13460 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13461 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13462 hardcode_libdir_separator_F77=:
13463 hardcode_direct_F77=no
13464 hardcode_shlibpath_var_F77=no
13465 ;;
13466 ia64*)
13467 hardcode_libdir_flag_spec_F77='-L$libdir'
13468 hardcode_direct_F77=no
13469 hardcode_shlibpath_var_F77=no
13470
13471 # hardcode_minus_L: Not really in the search PATH,
13472 # but as the default location of the library.
13473 hardcode_minus_L_F77=yes
13474 ;;
13475 *)
13476 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13477 hardcode_libdir_separator_F77=:
13478 hardcode_direct_F77=yes
13479 export_dynamic_flag_spec_F77='${wl}-E'
13480
13481 # hardcode_minus_L: Not really in the search PATH,
13482 # but as the default location of the library.
13483 hardcode_minus_L_F77=yes
13484 ;;
13485 esac
13486 fi
13487 ;;
13488
13489 irix5* | irix6* | nonstopux*)
13490 if test "$GCC" = yes; then
13491 archive_cmds_F77='$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'
13492 else
13493 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13494 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13495 fi
13496 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13497 hardcode_libdir_separator_F77=:
13498 link_all_deplibs_F77=yes
13499 ;;
13500
13501 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13502 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13503 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13504 else
13505 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13506 fi
13507 hardcode_libdir_flag_spec_F77='-R$libdir'
13508 hardcode_direct_F77=yes
13509 hardcode_shlibpath_var_F77=no
13510 ;;
13511
13512 newsos6)
13513 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13514 hardcode_direct_F77=yes
13515 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13516 hardcode_libdir_separator_F77=:
13517 hardcode_shlibpath_var_F77=no
13518 ;;
13519
13520 openbsd*)
13521 hardcode_direct_F77=yes
13522 hardcode_shlibpath_var_F77=no
13523 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13524 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13525 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13526 export_dynamic_flag_spec_F77='${wl}-E'
13527 else
13528 case $host_os in
13529 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13530 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13531 hardcode_libdir_flag_spec_F77='-R$libdir'
13532 ;;
13533 *)
13534 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13535 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13536 ;;
13537 esac
13538 fi
13539 ;;
13540
13541 os2*)
13542 hardcode_libdir_flag_spec_F77='-L$libdir'
13543 hardcode_minus_L_F77=yes
13544 allow_undefined_flag_F77=unsupported
13545 archive_cmds_F77='$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'
13546 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13547 ;;
13548
13549 osf3*)
13550 if test "$GCC" = yes; then
13551 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13552 archive_cmds_F77='$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'
13553 else
13554 allow_undefined_flag_F77=' -expect_unresolved \*'
13555 archive_cmds_F77='$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'
13556 fi
13557 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13558 hardcode_libdir_separator_F77=:
13559 ;;
13560
13561 osf4* | osf5*) # as osf3* with the addition of -msym flag
13562 if test "$GCC" = yes; then
13563 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13564 archive_cmds_F77='$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'
13565 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13566 else
13567 allow_undefined_flag_F77=' -expect_unresolved \*'
13568 archive_cmds_F77='$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'
13569 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13570 $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'
13571
13572 # Both c and cxx compiler support -rpath directly
13573 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13574 fi
13575 hardcode_libdir_separator_F77=:
13576 ;;
13577
13578 sco3.2v5*)
13579 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13580 hardcode_shlibpath_var_F77=no
13581 export_dynamic_flag_spec_F77='${wl}-Bexport'
13582 runpath_var=LD_RUN_PATH
13583 hardcode_runpath_var=yes
13584 ;;
13585
13586 solaris*)
13587 no_undefined_flag_F77=' -z text'
13588 if test "$GCC" = yes; then
13589 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13590 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13591 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13592 else
13593 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13594 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13595 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13596 fi
13597 hardcode_libdir_flag_spec_F77='-R$libdir'
13598 hardcode_shlibpath_var_F77=no
13599 case $host_os in
13600 solaris2.[0-5] | solaris2.[0-5].*) ;;
13601 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13602 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13603 esac
13604 link_all_deplibs_F77=yes
13605 ;;
13606
13607 sunos4*)
13608 if test "x$host_vendor" = xsequent; then
13609 # Use $CC to link under sequent, because it throws in some extra .o
13610 # files that make .init and .fini sections work.
13611 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13612 else
13613 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13614 fi
13615 hardcode_libdir_flag_spec_F77='-L$libdir'
13616 hardcode_direct_F77=yes
13617 hardcode_minus_L_F77=yes
13618 hardcode_shlibpath_var_F77=no
13619 ;;
13620
13621 sysv4)
13622 case $host_vendor in
13623 sni)
13624 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13625 hardcode_direct_F77=yes # is this really true???
13626 ;;
13627 siemens)
13628 ## LD is ld it makes a PLAMLIB
13629 ## CC just makes a GrossModule.
13630 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13631 reload_cmds_F77='$CC -r -o $output$reload_objs'
13632 hardcode_direct_F77=no
13633 ;;
13634 motorola)
13635 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13636 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13637 ;;
13638 esac
13639 runpath_var='LD_RUN_PATH'
13640 hardcode_shlibpath_var_F77=no
13641 ;;
13642
13643 sysv4.3*)
13644 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13645 hardcode_shlibpath_var_F77=no
13646 export_dynamic_flag_spec_F77='-Bexport'
13647 ;;
13648
13649 sysv4*MP*)
13650 if test -d /usr/nec; then
13651 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13652 hardcode_shlibpath_var_F77=no
13653 runpath_var=LD_RUN_PATH
13654 hardcode_runpath_var=yes
13655 ld_shlibs_F77=yes
13656 fi
13657 ;;
13658
13659 sysv4.2uw2*)
13660 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13661 hardcode_direct_F77=yes
13662 hardcode_minus_L_F77=no
13663 hardcode_shlibpath_var_F77=no
13664 hardcode_runpath_var=yes
13665 runpath_var=LD_RUN_PATH
13666 ;;
13667
13668 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13669 no_undefined_flag_F77='${wl}-z ${wl}text'
13670 if test "$GCC" = yes; then
13671 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13672 else
13673 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13674 fi
13675 runpath_var='LD_RUN_PATH'
13676 hardcode_shlibpath_var_F77=no
13677 ;;
13678
13679 sysv5*)
13680 no_undefined_flag_F77=' -z text'
13681 # $CC -shared without GNU ld will not create a library from C++
13682 # object files and a static libstdc++, better avoid it by now
13683 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13684 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13685 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13686 hardcode_libdir_flag_spec_F77=
13687 hardcode_shlibpath_var_F77=no
13688 runpath_var='LD_RUN_PATH'
13689 ;;
13690
13691 uts4*)
13692 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13693 hardcode_libdir_flag_spec_F77='-L$libdir'
13694 hardcode_shlibpath_var_F77=no
13695 ;;
13696
13697 *)
13698 ld_shlibs_F77=no
13699 ;;
13700 esac
13701 fi
13702
13703 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13704 echo "${ECHO_T}$ld_shlibs_F77" >&6
13705 test "$ld_shlibs_F77" = no && can_build_shared=no
13706
13707 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13708 if test "$GCC" = yes; then
13709 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13710 fi
13711
13712 #
13713 # Do we need to explicitly link libc?
13714 #
13715 case "x$archive_cmds_need_lc_F77" in
13716 x|xyes)
13717 # Assume -lc should be added
13718 archive_cmds_need_lc_F77=yes
13719
13720 if test "$enable_shared" = yes && test "$GCC" = yes; then
13721 case $archive_cmds_F77 in
13722 *'~'*)
13723 # FIXME: we may have to deal with multi-command sequences.
13724 ;;
13725 '$CC '*)
13726 # Test whether the compiler implicitly links with -lc since on some
13727 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13728 # to ld, don't add -lc before -lgcc.
13729 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13730 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13731 $rm conftest*
13732 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13733
13734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13735 (eval $ac_compile) 2>&5
13736 ac_status=$?
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } 2>conftest.err; then
13739 soname=conftest
13740 lib=conftest
13741 libobjs=conftest.$ac_objext
13742 deplibs=
13743 wl=$lt_prog_compiler_wl_F77
13744 compiler_flags=-v
13745 linker_flags=-v
13746 verstring=
13747 output_objdir=.
13748 libname=conftest
13749 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13750 allow_undefined_flag_F77=
13751 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13752 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13753 ac_status=$?
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }
13756 then
13757 archive_cmds_need_lc_F77=no
13758 else
13759 archive_cmds_need_lc_F77=yes
13760 fi
13761 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13762 else
13763 cat conftest.err 1>&5
13764 fi
13765 $rm conftest*
13766 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13767 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13768 ;;
13769 esac
13770 fi
13771 ;;
13772 esac
13773
13774 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13775 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13776 library_names_spec=
13777 libname_spec='lib$name'
13778 soname_spec=
13779 shrext_cmds=".so"
13780 postinstall_cmds=
13781 postuninstall_cmds=
13782 finish_cmds=
13783 finish_eval=
13784 shlibpath_var=
13785 shlibpath_overrides_runpath=unknown
13786 version_type=none
13787 dynamic_linker="$host_os ld.so"
13788 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13789 if test "$GCC" = yes; then
13790 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13791 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13792 # if the path contains ";" then we assume it to be the separator
13793 # otherwise default to the standard path separator (i.e. ":") - it is
13794 # assumed that no part of a normal pathname contains ";" but that should
13795 # okay in the real world where ";" in dirpaths is itself problematic.
13796 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13797 else
13798 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13799 fi
13800 else
13801 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13802 fi
13803 need_lib_prefix=unknown
13804 hardcode_into_libs=no
13805
13806 # when you set need_version to no, make sure it does not cause -set_version
13807 # flags to be left without arguments
13808 need_version=unknown
13809
13810 case $host_os in
13811 aix3*)
13812 version_type=linux
13813 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13814 shlibpath_var=LIBPATH
13815
13816 # AIX 3 has no versioning support, so we append a major version to the name.
13817 soname_spec='${libname}${release}${shared_ext}$major'
13818 ;;
13819
13820 aix4* | aix5*)
13821 version_type=linux
13822 need_lib_prefix=no
13823 need_version=no
13824 hardcode_into_libs=yes
13825 if test "$host_cpu" = ia64; then
13826 # AIX 5 supports IA64
13827 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13828 shlibpath_var=LD_LIBRARY_PATH
13829 else
13830 # With GCC up to 2.95.x, collect2 would create an import file
13831 # for dependence libraries. The import file would start with
13832 # the line `#! .'. This would cause the generated library to
13833 # depend on `.', always an invalid library. This was fixed in
13834 # development snapshots of GCC prior to 3.0.
13835 case $host_os in
13836 aix4 | aix4.[01] | aix4.[01].*)
13837 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13838 echo ' yes '
13839 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13840 :
13841 else
13842 can_build_shared=no
13843 fi
13844 ;;
13845 esac
13846 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13847 # soname into executable. Probably we can add versioning support to
13848 # collect2, so additional links can be useful in future.
13849 if test "$aix_use_runtimelinking" = yes; then
13850 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13851 # instead of lib<name>.a to let people know that these are not
13852 # typical AIX shared libraries.
13853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13854 else
13855 # We preserve .a as extension for shared libraries through AIX4.2
13856 # and later when we are not doing run time linking.
13857 library_names_spec='${libname}${release}.a $libname.a'
13858 soname_spec='${libname}${release}${shared_ext}$major'
13859 fi
13860 shlibpath_var=LIBPATH
13861 fi
13862 ;;
13863
13864 amigaos*)
13865 library_names_spec='$libname.ixlibrary $libname.a'
13866 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13867 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'
13868 ;;
13869
13870 beos*)
13871 library_names_spec='${libname}${shared_ext}'
13872 dynamic_linker="$host_os ld.so"
13873 shlibpath_var=LIBRARY_PATH
13874 ;;
13875
13876 bsdi4*)
13877 version_type=linux
13878 need_version=no
13879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13880 soname_spec='${libname}${release}${shared_ext}$major'
13881 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13882 shlibpath_var=LD_LIBRARY_PATH
13883 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13884 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13885 # the default ld.so.conf also contains /usr/contrib/lib and
13886 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13887 # libtool to hard-code these into programs
13888 ;;
13889
13890 cygwin* | mingw* | pw32*)
13891 version_type=windows
13892 shrext_cmds=".dll"
13893 need_version=no
13894 need_lib_prefix=no
13895
13896 case $GCC,$host_os in
13897 yes,cygwin* | yes,mingw* | yes,pw32*)
13898 library_names_spec='$libname.dll.a'
13899 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13900 postinstall_cmds='base_file=`basename \${file}`~
13901 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13902 dldir=$destdir/`dirname \$dlpath`~
13903 test -d \$dldir || mkdir -p \$dldir~
13904 $install_prog $dir/$dlname \$dldir/$dlname'
13905 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13906 dlpath=$dir/\$dldll~
13907 $rm \$dlpath'
13908 shlibpath_overrides_runpath=yes
13909
13910 case $host_os in
13911 cygwin*)
13912 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13913 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13914 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13915 ;;
13916 mingw*)
13917 # MinGW DLLs use traditional 'lib' prefix
13918 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13919 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13920 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13921 # It is most probably a Windows format PATH printed by
13922 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13923 # path with ; separators, and with drive letters. We can handle the
13924 # drive letters (cygwin fileutils understands them), so leave them,
13925 # especially as we might pass files found there to a mingw objdump,
13926 # which wouldn't understand a cygwinified path. Ahh.
13927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13928 else
13929 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13930 fi
13931 ;;
13932 pw32*)
13933 # pw32 DLLs use 'pw' prefix rather than 'lib'
13934 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13935 ;;
13936 esac
13937 ;;
13938
13939 *)
13940 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13941 ;;
13942 esac
13943 dynamic_linker='Win32 ld.exe'
13944 # FIXME: first we should search . and the directory the executable is in
13945 shlibpath_var=PATH
13946 ;;
13947
13948 darwin* | rhapsody*)
13949 dynamic_linker="$host_os dyld"
13950 version_type=darwin
13951 need_lib_prefix=no
13952 need_version=no
13953 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13954 soname_spec='${libname}${release}${major}$shared_ext'
13955 shlibpath_overrides_runpath=yes
13956 shlibpath_var=DYLD_LIBRARY_PATH
13957 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13958 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13959 if test "$GCC" = yes; then
13960 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13961 else
13962 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13963 fi
13964 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13965 ;;
13966
13967 dgux*)
13968 version_type=linux
13969 need_lib_prefix=no
13970 need_version=no
13971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13972 soname_spec='${libname}${release}${shared_ext}$major'
13973 shlibpath_var=LD_LIBRARY_PATH
13974 ;;
13975
13976 freebsd1*)
13977 dynamic_linker=no
13978 ;;
13979
13980 kfreebsd*-gnu)
13981 version_type=linux
13982 need_lib_prefix=no
13983 need_version=no
13984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13985 soname_spec='${libname}${release}${shared_ext}$major'
13986 shlibpath_var=LD_LIBRARY_PATH
13987 shlibpath_overrides_runpath=no
13988 hardcode_into_libs=yes
13989 dynamic_linker='GNU ld.so'
13990 ;;
13991
13992 freebsd*)
13993 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13994 version_type=freebsd-$objformat
13995 case $version_type in
13996 freebsd-elf*)
13997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13998 need_version=no
13999 need_lib_prefix=no
14000 ;;
14001 freebsd-*)
14002 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14003 need_version=yes
14004 ;;
14005 esac
14006 shlibpath_var=LD_LIBRARY_PATH
14007 case $host_os in
14008 freebsd2*)
14009 shlibpath_overrides_runpath=yes
14010 ;;
14011 freebsd3.01* | freebsdelf3.01*)
14012 shlibpath_overrides_runpath=yes
14013 hardcode_into_libs=yes
14014 ;;
14015 *) # from 3.2 on
14016 shlibpath_overrides_runpath=no
14017 hardcode_into_libs=yes
14018 ;;
14019 esac
14020 ;;
14021
14022 gnu*)
14023 version_type=linux
14024 need_lib_prefix=no
14025 need_version=no
14026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14027 soname_spec='${libname}${release}${shared_ext}$major'
14028 shlibpath_var=LD_LIBRARY_PATH
14029 hardcode_into_libs=yes
14030 ;;
14031
14032 hpux9* | hpux10* | hpux11*)
14033 # Give a soname corresponding to the major version so that dld.sl refuses to
14034 # link against other versions.
14035 version_type=sunos
14036 need_lib_prefix=no
14037 need_version=no
14038 case "$host_cpu" in
14039 ia64*)
14040 shrext_cmds='.so'
14041 hardcode_into_libs=yes
14042 dynamic_linker="$host_os dld.so"
14043 shlibpath_var=LD_LIBRARY_PATH
14044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14046 soname_spec='${libname}${release}${shared_ext}$major'
14047 if test "X$HPUX_IA64_MODE" = X32; then
14048 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14049 else
14050 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14051 fi
14052 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14053 ;;
14054 hppa*64*)
14055 shrext_cmds='.sl'
14056 hardcode_into_libs=yes
14057 dynamic_linker="$host_os dld.sl"
14058 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14059 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14061 soname_spec='${libname}${release}${shared_ext}$major'
14062 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14063 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14064 ;;
14065 *)
14066 shrext_cmds='.sl'
14067 dynamic_linker="$host_os dld.sl"
14068 shlibpath_var=SHLIB_PATH
14069 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14071 soname_spec='${libname}${release}${shared_ext}$major'
14072 ;;
14073 esac
14074 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14075 postinstall_cmds='chmod 555 $lib'
14076 ;;
14077
14078 irix5* | irix6* | nonstopux*)
14079 case $host_os in
14080 nonstopux*) version_type=nonstopux ;;
14081 *)
14082 if test "$lt_cv_prog_gnu_ld" = yes; then
14083 version_type=linux
14084 else
14085 version_type=irix
14086 fi ;;
14087 esac
14088 need_lib_prefix=no
14089 need_version=no
14090 soname_spec='${libname}${release}${shared_ext}$major'
14091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14092 case $host_os in
14093 irix5* | nonstopux*)
14094 libsuff= shlibsuff=
14095 ;;
14096 *)
14097 case $LD in # libtool.m4 will add one of these switches to LD
14098 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14099 libsuff= shlibsuff= libmagic=32-bit;;
14100 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14101 libsuff=32 shlibsuff=N32 libmagic=N32;;
14102 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14103 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14104 *) libsuff= shlibsuff= libmagic=never-match;;
14105 esac
14106 ;;
14107 esac
14108 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14109 shlibpath_overrides_runpath=no
14110 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14111 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14112 hardcode_into_libs=yes
14113 ;;
14114
14115 # No shared lib support for Linux oldld, aout, or coff.
14116 linux*oldld* | linux*aout* | linux*coff*)
14117 dynamic_linker=no
14118 ;;
14119
14120 # This must be Linux ELF.
14121 linux*)
14122 version_type=linux
14123 need_lib_prefix=no
14124 need_version=no
14125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14126 soname_spec='${libname}${release}${shared_ext}$major'
14127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14128 shlibpath_var=LD_LIBRARY_PATH
14129 shlibpath_overrides_runpath=no
14130 # This implies no fast_install, which is unacceptable.
14131 # Some rework will be needed to allow for fast_install
14132 # before this can be enabled.
14133 hardcode_into_libs=yes
14134
14135 # Append ld.so.conf contents to the search path
14136 if test -f /etc/ld.so.conf; then
14137 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14138 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14139 fi
14140
14141 # We used to test for /lib/ld.so.1 and disable shared libraries on
14142 # powerpc, because MkLinux only supported shared libraries with the
14143 # GNU dynamic linker. Since this was broken with cross compilers,
14144 # most powerpc-linux boxes support dynamic linking these days and
14145 # people can always --disable-shared, the test was removed, and we
14146 # assume the GNU/Linux dynamic linker is in use.
14147 dynamic_linker='GNU/Linux ld.so'
14148 ;;
14149
14150 netbsdelf*-gnu)
14151 version_type=linux
14152 need_lib_prefix=no
14153 need_version=no
14154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14155 soname_spec='${libname}${release}${shared_ext}$major'
14156 shlibpath_var=LD_LIBRARY_PATH
14157 shlibpath_overrides_runpath=no
14158 hardcode_into_libs=yes
14159 dynamic_linker='NetBSD ld.elf_so'
14160 ;;
14161
14162 knetbsd*-gnu)
14163 version_type=linux
14164 need_lib_prefix=no
14165 need_version=no
14166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14167 soname_spec='${libname}${release}${shared_ext}$major'
14168 shlibpath_var=LD_LIBRARY_PATH
14169 shlibpath_overrides_runpath=no
14170 hardcode_into_libs=yes
14171 dynamic_linker='GNU ld.so'
14172 ;;
14173
14174 netbsd*)
14175 version_type=sunos
14176 need_lib_prefix=no
14177 need_version=no
14178 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14181 dynamic_linker='NetBSD (a.out) ld.so'
14182 else
14183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14184 soname_spec='${libname}${release}${shared_ext}$major'
14185 dynamic_linker='NetBSD ld.elf_so'
14186 fi
14187 shlibpath_var=LD_LIBRARY_PATH
14188 shlibpath_overrides_runpath=yes
14189 hardcode_into_libs=yes
14190 ;;
14191
14192 newsos6)
14193 version_type=linux
14194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14195 shlibpath_var=LD_LIBRARY_PATH
14196 shlibpath_overrides_runpath=yes
14197 ;;
14198
14199 nto-qnx*)
14200 version_type=linux
14201 need_lib_prefix=no
14202 need_version=no
14203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14204 soname_spec='${libname}${release}${shared_ext}$major'
14205 shlibpath_var=LD_LIBRARY_PATH
14206 shlibpath_overrides_runpath=yes
14207 ;;
14208
14209 openbsd*)
14210 version_type=sunos
14211 need_lib_prefix=no
14212 need_version=yes
14213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14215 shlibpath_var=LD_LIBRARY_PATH
14216 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14217 case $host_os in
14218 openbsd2.[89] | openbsd2.[89].*)
14219 shlibpath_overrides_runpath=no
14220 ;;
14221 *)
14222 shlibpath_overrides_runpath=yes
14223 ;;
14224 esac
14225 else
14226 shlibpath_overrides_runpath=yes
14227 fi
14228 ;;
14229
14230 os2*)
14231 libname_spec='$name'
14232 shrext_cmds=".dll"
14233 need_lib_prefix=no
14234 library_names_spec='$libname${shared_ext} $libname.a'
14235 dynamic_linker='OS/2 ld.exe'
14236 shlibpath_var=LIBPATH
14237 ;;
14238
14239 osf3* | osf4* | osf5*)
14240 version_type=osf
14241 need_lib_prefix=no
14242 need_version=no
14243 soname_spec='${libname}${release}${shared_ext}$major'
14244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14245 shlibpath_var=LD_LIBRARY_PATH
14246 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14247 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14248 ;;
14249
14250 sco3.2v5*)
14251 version_type=osf
14252 soname_spec='${libname}${release}${shared_ext}$major'
14253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14254 shlibpath_var=LD_LIBRARY_PATH
14255 ;;
14256
14257 solaris*)
14258 version_type=linux
14259 need_lib_prefix=no
14260 need_version=no
14261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14262 soname_spec='${libname}${release}${shared_ext}$major'
14263 shlibpath_var=LD_LIBRARY_PATH
14264 shlibpath_overrides_runpath=yes
14265 hardcode_into_libs=yes
14266 # ldd complains unless libraries are executable
14267 postinstall_cmds='chmod +x $lib'
14268 ;;
14269
14270 sunos4*)
14271 version_type=sunos
14272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14273 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14274 shlibpath_var=LD_LIBRARY_PATH
14275 shlibpath_overrides_runpath=yes
14276 if test "$with_gnu_ld" = yes; then
14277 need_lib_prefix=no
14278 fi
14279 need_version=yes
14280 ;;
14281
14282 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14283 version_type=linux
14284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14285 soname_spec='${libname}${release}${shared_ext}$major'
14286 shlibpath_var=LD_LIBRARY_PATH
14287 case $host_vendor in
14288 sni)
14289 shlibpath_overrides_runpath=no
14290 need_lib_prefix=no
14291 export_dynamic_flag_spec='${wl}-Blargedynsym'
14292 runpath_var=LD_RUN_PATH
14293 ;;
14294 siemens)
14295 need_lib_prefix=no
14296 ;;
14297 motorola)
14298 need_lib_prefix=no
14299 need_version=no
14300 shlibpath_overrides_runpath=no
14301 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14302 ;;
14303 esac
14304 ;;
14305
14306 sysv4*MP*)
14307 if test -d /usr/nec ;then
14308 version_type=linux
14309 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14310 soname_spec='$libname${shared_ext}.$major'
14311 shlibpath_var=LD_LIBRARY_PATH
14312 fi
14313 ;;
14314
14315 uts4*)
14316 version_type=linux
14317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14318 soname_spec='${libname}${release}${shared_ext}$major'
14319 shlibpath_var=LD_LIBRARY_PATH
14320 ;;
14321
14322 *)
14323 dynamic_linker=no
14324 ;;
14325 esac
14326 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14327 echo "${ECHO_T}$dynamic_linker" >&6
14328 test "$dynamic_linker" = no && can_build_shared=no
14329
14330 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14331 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14332 hardcode_action_F77=
14333 if test -n "$hardcode_libdir_flag_spec_F77" || \
14334 test -n "$runpath_var F77" || \
14335 test "X$hardcode_automatic_F77"="Xyes" ; then
14336
14337 # We can hardcode non-existant directories.
14338 if test "$hardcode_direct_F77" != no &&
14339 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14340 # have to relink, otherwise we might link with an installed library
14341 # when we should be linking with a yet-to-be-installed one
14342 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14343 test "$hardcode_minus_L_F77" != no; then
14344 # Linking always hardcodes the temporary library directory.
14345 hardcode_action_F77=relink
14346 else
14347 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14348 hardcode_action_F77=immediate
14349 fi
14350 else
14351 # We cannot hardcode anything, or else we can only hardcode existing
14352 # directories.
14353 hardcode_action_F77=unsupported
14354 fi
14355 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14356 echo "${ECHO_T}$hardcode_action_F77" >&6
14357
14358 if test "$hardcode_action_F77" = relink; then
14359 # Fast installation is not supported
14360 enable_fast_install=no
14361 elif test "$shlibpath_overrides_runpath" = yes ||
14362 test "$enable_shared" = no; then
14363 # Fast installation is not necessary
14364 enable_fast_install=needless
14365 fi
14366
14367 striplib=
14368 old_striplib=
14369 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14370 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14371 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14372 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14373 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14374 echo "$as_me:$LINENO: result: yes" >&5
14375 echo "${ECHO_T}yes" >&6
14376 else
14377 # FIXME - insert some real tests, host_os isn't really good enough
14378 case $host_os in
14379 darwin*)
14380 if test -n "$STRIP" ; then
14381 striplib="$STRIP -x"
14382 echo "$as_me:$LINENO: result: yes" >&5
14383 echo "${ECHO_T}yes" >&6
14384 else
14385 echo "$as_me:$LINENO: result: no" >&5
14386 echo "${ECHO_T}no" >&6
14387 fi
14388 ;;
14389 *)
14390 echo "$as_me:$LINENO: result: no" >&5
14391 echo "${ECHO_T}no" >&6
14392 ;;
14393 esac
14394 fi
14395
14396
14397
14398 # The else clause should only fire when bootstrapping the
14399 # libtool distribution, otherwise you forgot to ship ltmain.sh
14400 # with your package, and you will get complaints that there are
14401 # no rules to generate ltmain.sh.
14402 if test -f "$ltmain"; then
14403 # See if we are running on zsh, and set the options which allow our commands through
14404 # without removal of \ escapes.
14405 if test -n "${ZSH_VERSION+set}" ; then
14406 setopt NO_GLOB_SUBST
14407 fi
14408 # Now quote all the things that may contain metacharacters while being
14409 # careful not to overquote the AC_SUBSTed values. We take copies of the
14410 # variables and quote the copies for generation of the libtool script.
14411 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14412 SED SHELL STRIP \
14413 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14414 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14415 deplibs_check_method reload_flag reload_cmds need_locks \
14416 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14417 lt_cv_sys_global_symbol_to_c_name_address \
14418 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14419 old_postinstall_cmds old_postuninstall_cmds \
14420 compiler_F77 \
14421 CC_F77 \
14422 LD_F77 \
14423 lt_prog_compiler_wl_F77 \
14424 lt_prog_compiler_pic_F77 \
14425 lt_prog_compiler_static_F77 \
14426 lt_prog_compiler_no_builtin_flag_F77 \
14427 export_dynamic_flag_spec_F77 \
14428 thread_safe_flag_spec_F77 \
14429 whole_archive_flag_spec_F77 \
14430 enable_shared_with_static_runtimes_F77 \
14431 old_archive_cmds_F77 \
14432 old_archive_from_new_cmds_F77 \
14433 predep_objects_F77 \
14434 postdep_objects_F77 \
14435 predeps_F77 \
14436 postdeps_F77 \
14437 compiler_lib_search_path_F77 \
14438 archive_cmds_F77 \
14439 archive_expsym_cmds_F77 \
14440 postinstall_cmds_F77 \
14441 postuninstall_cmds_F77 \
14442 old_archive_from_expsyms_cmds_F77 \
14443 allow_undefined_flag_F77 \
14444 no_undefined_flag_F77 \
14445 export_symbols_cmds_F77 \
14446 hardcode_libdir_flag_spec_F77 \
14447 hardcode_libdir_flag_spec_ld_F77 \
14448 hardcode_libdir_separator_F77 \
14449 hardcode_automatic_F77 \
14450 module_cmds_F77 \
14451 module_expsym_cmds_F77 \
14452 lt_cv_prog_compiler_c_o_F77 \
14453 exclude_expsyms_F77 \
14454 include_expsyms_F77; do
14455
14456 case $var in
14457 old_archive_cmds_F77 | \
14458 old_archive_from_new_cmds_F77 | \
14459 archive_cmds_F77 | \
14460 archive_expsym_cmds_F77 | \
14461 module_cmds_F77 | \
14462 module_expsym_cmds_F77 | \
14463 old_archive_from_expsyms_cmds_F77 | \
14464 export_symbols_cmds_F77 | \
14465 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14466 postinstall_cmds | postuninstall_cmds | \
14467 old_postinstall_cmds | old_postuninstall_cmds | \
14468 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14469 # Double-quote double-evaled strings.
14470 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14471 ;;
14472 *)
14473 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14474 ;;
14475 esac
14476 done
14477
14478 case $lt_echo in
14479 *'\$0 --fallback-echo"')
14480 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14481 ;;
14482 esac
14483
14484 cfgfile="$ofile"
14485
14486 cat <<__EOF__ >> "$cfgfile"
14487 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14488
14489 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14490
14491 # Shell to use when invoking shell scripts.
14492 SHELL=$lt_SHELL
14493
14494 # Whether or not to build shared libraries.
14495 build_libtool_libs=$enable_shared
14496
14497 # Whether or not to build static libraries.
14498 build_old_libs=$enable_static
14499
14500 # Whether or not to add -lc for building shared libraries.
14501 build_libtool_need_lc=$archive_cmds_need_lc_F77
14502
14503 # Whether or not to disallow shared libs when runtime libs are static
14504 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14505
14506 # Whether or not to optimize for fast installation.
14507 fast_install=$enable_fast_install
14508
14509 # The host system.
14510 host_alias=$host_alias
14511 host=$host
14512
14513 # An echo program that does not interpret backslashes.
14514 echo=$lt_echo
14515
14516 # The archiver.
14517 AR=$lt_AR
14518 AR_FLAGS=$lt_AR_FLAGS
14519
14520 # A C compiler.
14521 LTCC=$lt_LTCC
14522
14523 # A language-specific compiler.
14524 CC=$lt_compiler_F77
14525
14526 # Is the compiler the GNU C compiler?
14527 with_gcc=$GCC_F77
14528
14529 # An ERE matcher.
14530 EGREP=$lt_EGREP
14531
14532 # The linker used to build libraries.
14533 LD=$lt_LD_F77
14534
14535 # Whether we need hard or soft links.
14536 LN_S=$lt_LN_S
14537
14538 # A BSD-compatible nm program.
14539 NM=$lt_NM
14540
14541 # A symbol stripping program
14542 STRIP=$lt_STRIP
14543
14544 # Used to examine libraries when file_magic_cmd begins "file"
14545 MAGIC_CMD=$MAGIC_CMD
14546
14547 # Used on cygwin: DLL creation program.
14548 DLLTOOL="$DLLTOOL"
14549
14550 # Used on cygwin: object dumper.
14551 OBJDUMP="$OBJDUMP"
14552
14553 # Used on cygwin: assembler.
14554 AS="$AS"
14555
14556 # The name of the directory that contains temporary libtool files.
14557 objdir=$objdir
14558
14559 # How to create reloadable object files.
14560 reload_flag=$lt_reload_flag
14561 reload_cmds=$lt_reload_cmds
14562
14563 # How to pass a linker flag through the compiler.
14564 wl=$lt_lt_prog_compiler_wl_F77
14565
14566 # Object file suffix (normally "o").
14567 objext="$ac_objext"
14568
14569 # Old archive suffix (normally "a").
14570 libext="$libext"
14571
14572 # Shared library suffix (normally ".so").
14573 shrext_cmds='$shrext_cmds'
14574
14575 # Executable file suffix (normally "").
14576 exeext="$exeext"
14577
14578 # Additional compiler flags for building library objects.
14579 pic_flag=$lt_lt_prog_compiler_pic_F77
14580 pic_mode=$pic_mode
14581
14582 # What is the maximum length of a command?
14583 max_cmd_len=$lt_cv_sys_max_cmd_len
14584
14585 # Does compiler simultaneously support -c and -o options?
14586 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14587
14588 # Must we lock files when doing compilation ?
14589 need_locks=$lt_need_locks
14590
14591 # Do we need the lib prefix for modules?
14592 need_lib_prefix=$need_lib_prefix
14593
14594 # Do we need a version for libraries?
14595 need_version=$need_version
14596
14597 # Whether dlopen is supported.
14598 dlopen_support=$enable_dlopen
14599
14600 # Whether dlopen of programs is supported.
14601 dlopen_self=$enable_dlopen_self
14602
14603 # Whether dlopen of statically linked programs is supported.
14604 dlopen_self_static=$enable_dlopen_self_static
14605
14606 # Compiler flag to prevent dynamic linking.
14607 link_static_flag=$lt_lt_prog_compiler_static_F77
14608
14609 # Compiler flag to turn off builtin functions.
14610 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14611
14612 # Compiler flag to allow reflexive dlopens.
14613 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14614
14615 # Compiler flag to generate shared objects directly from archives.
14616 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14617
14618 # Compiler flag to generate thread-safe objects.
14619 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14620
14621 # Library versioning type.
14622 version_type=$version_type
14623
14624 # Format of library name prefix.
14625 libname_spec=$lt_libname_spec
14626
14627 # List of archive names. First name is the real one, the rest are links.
14628 # The last name is the one that the linker finds with -lNAME.
14629 library_names_spec=$lt_library_names_spec
14630
14631 # The coded name of the library, if different from the real name.
14632 soname_spec=$lt_soname_spec
14633
14634 # Commands used to build and install an old-style archive.
14635 RANLIB=$lt_RANLIB
14636 old_archive_cmds=$lt_old_archive_cmds_F77
14637 old_postinstall_cmds=$lt_old_postinstall_cmds
14638 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14639
14640 # Create an old-style archive from a shared archive.
14641 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14642
14643 # Create a temporary old-style archive to link instead of a shared archive.
14644 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14645
14646 # Commands used to build and install a shared archive.
14647 archive_cmds=$lt_archive_cmds_F77
14648 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14649 postinstall_cmds=$lt_postinstall_cmds
14650 postuninstall_cmds=$lt_postuninstall_cmds
14651
14652 # Commands used to build a loadable module (assumed same as above if empty)
14653 module_cmds=$lt_module_cmds_F77
14654 module_expsym_cmds=$lt_module_expsym_cmds_F77
14655
14656 # Commands to strip libraries.
14657 old_striplib=$lt_old_striplib
14658 striplib=$lt_striplib
14659
14660 # Dependencies to place before the objects being linked to create a
14661 # shared library.
14662 predep_objects=$lt_predep_objects_F77
14663
14664 # Dependencies to place after the objects being linked to create a
14665 # shared library.
14666 postdep_objects=$lt_postdep_objects_F77
14667
14668 # Dependencies to place before the objects being linked to create a
14669 # shared library.
14670 predeps=$lt_predeps_F77
14671
14672 # Dependencies to place after the objects being linked to create a
14673 # shared library.
14674 postdeps=$lt_postdeps_F77
14675
14676 # The library search path used internally by the compiler when linking
14677 # a shared library.
14678 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14679
14680 # Method to check whether dependent libraries are shared objects.
14681 deplibs_check_method=$lt_deplibs_check_method
14682
14683 # Command to use when deplibs_check_method == file_magic.
14684 file_magic_cmd=$lt_file_magic_cmd
14685
14686 # Flag that allows shared libraries with undefined symbols to be built.
14687 allow_undefined_flag=$lt_allow_undefined_flag_F77
14688
14689 # Flag that forces no undefined symbols.
14690 no_undefined_flag=$lt_no_undefined_flag_F77
14691
14692 # Commands used to finish a libtool library installation in a directory.
14693 finish_cmds=$lt_finish_cmds
14694
14695 # Same as above, but a single script fragment to be evaled but not shown.
14696 finish_eval=$lt_finish_eval
14697
14698 # Take the output of nm and produce a listing of raw symbols and C names.
14699 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14700
14701 # Transform the output of nm in a proper C declaration
14702 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14703
14704 # Transform the output of nm in a C name address pair
14705 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14706
14707 # This is the shared library runtime path variable.
14708 runpath_var=$runpath_var
14709
14710 # This is the shared library path variable.
14711 shlibpath_var=$shlibpath_var
14712
14713 # Is shlibpath searched before the hard-coded library search path?
14714 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14715
14716 # How to hardcode a shared library path into an executable.
14717 hardcode_action=$hardcode_action_F77
14718
14719 # Whether we should hardcode library paths into libraries.
14720 hardcode_into_libs=$hardcode_into_libs
14721
14722 # Flag to hardcode \$libdir into a binary during linking.
14723 # This must work even if \$libdir does not exist.
14724 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14725
14726 # If ld is used when linking, flag to hardcode \$libdir into
14727 # a binary during linking. This must work even if \$libdir does
14728 # not exist.
14729 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14730
14731 # Whether we need a single -rpath flag with a separated argument.
14732 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14733
14734 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14735 # resulting binary.
14736 hardcode_direct=$hardcode_direct_F77
14737
14738 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14739 # resulting binary.
14740 hardcode_minus_L=$hardcode_minus_L_F77
14741
14742 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14743 # the resulting binary.
14744 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14745
14746 # Set to yes if building a shared library automatically hardcodes DIR into the library
14747 # and all subsequent libraries and executables linked against it.
14748 hardcode_automatic=$hardcode_automatic_F77
14749
14750 # Variables whose values should be saved in libtool wrapper scripts and
14751 # restored at relink time.
14752 variables_saved_for_relink="$variables_saved_for_relink"
14753
14754 # Whether libtool must link a program against all its dependency libraries.
14755 link_all_deplibs=$link_all_deplibs_F77
14756
14757 # Compile-time system search path for libraries
14758 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14759
14760 # Run-time system search path for libraries
14761 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14762
14763 # Fix the shell variable \$srcfile for the compiler.
14764 fix_srcfile_path="$fix_srcfile_path_F77"
14765
14766 # Set to yes if exported symbols are required.
14767 always_export_symbols=$always_export_symbols_F77
14768
14769 # The commands to list exported symbols.
14770 export_symbols_cmds=$lt_export_symbols_cmds_F77
14771
14772 # The commands to extract the exported symbol list from a shared archive.
14773 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14774
14775 # Symbols that should not be listed in the preloaded symbols.
14776 exclude_expsyms=$lt_exclude_expsyms_F77
14777
14778 # Symbols that must always be exported.
14779 include_expsyms=$lt_include_expsyms_F77
14780
14781 # ### END LIBTOOL TAG CONFIG: $tagname
14782
14783 __EOF__
14784
14785
14786 else
14787 # If there is no Makefile yet, we rely on a make rule to execute
14788 # `config.status --recheck' to rerun these tests and create the
14789 # libtool script then.
14790 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14791 if test -f "$ltmain_in"; then
14792 test -f Makefile && make "$ltmain"
14793 fi
14794 fi
14795
14796
14797 ac_ext=c
14798 ac_cpp='$CPP $CPPFLAGS'
14799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14802
14803 CC="$lt_save_CC"
14804
14805 else
14806 tagname=""
14807 fi
14808 ;;
14809
14810 GCJ)
14811 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14812
14813
14814
14815 # Source file extension for Java test sources.
14816 ac_ext=java
14817
14818 # Object file extension for compiled Java test sources.
14819 objext=o
14820 objext_GCJ=$objext
14821
14822 # Code to be used in simple compile tests
14823 lt_simple_compile_test_code="class foo {}\n"
14824
14825 # Code to be used in simple link tests
14826 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14827
14828 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14829
14830 # If no C compiler was specified, use CC.
14831 LTCC=${LTCC-"$CC"}
14832
14833 # Allow CC to be a program name with arguments.
14834 compiler=$CC
14835
14836
14837 # Allow CC to be a program name with arguments.
14838 lt_save_CC="$CC"
14839 CC=${GCJ-"gcj"}
14840 compiler=$CC
14841 compiler_GCJ=$CC
14842
14843 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14844 archive_cmds_need_lc_GCJ=no
14845
14846
14847 lt_prog_compiler_no_builtin_flag_GCJ=
14848
14849 if test "$GCC" = yes; then
14850 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14851
14852
14853 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14854 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14855 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14856 echo $ECHO_N "(cached) $ECHO_C" >&6
14857 else
14858 lt_cv_prog_compiler_rtti_exceptions=no
14859 ac_outfile=conftest.$ac_objext
14860 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14861 lt_compiler_flag="-fno-rtti -fno-exceptions"
14862 # Insert the option either (1) after the last *FLAGS variable, or
14863 # (2) before a word containing "conftest.", or (3) at the end.
14864 # Note that $ac_compile itself does not contain backslashes and begins
14865 # with a dollar sign (not a hyphen), so the echo should work correctly.
14866 # The option is referenced via a variable to avoid confusing sed.
14867 lt_compile=`echo "$ac_compile" | $SED \
14868 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14870 -e 's:$: $lt_compiler_flag:'`
14871 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14872 (eval "$lt_compile" 2>conftest.err)
14873 ac_status=$?
14874 cat conftest.err >&5
14875 echo "$as_me:__oline__: \$? = $ac_status" >&5
14876 if (exit $ac_status) && test -s "$ac_outfile"; then
14877 # The compiler can only warn and ignore the option if not recognized
14878 # So say no if there are warnings
14879 if test ! -s conftest.err; then
14880 lt_cv_prog_compiler_rtti_exceptions=yes
14881 fi
14882 fi
14883 $rm conftest*
14884
14885 fi
14886 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14887 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14888
14889 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14890 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14891 else
14892 :
14893 fi
14894
14895 fi
14896
14897 lt_prog_compiler_wl_GCJ=
14898 lt_prog_compiler_pic_GCJ=
14899 lt_prog_compiler_static_GCJ=
14900
14901 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14902 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14903
14904 if test "$GCC" = yes; then
14905 lt_prog_compiler_wl_GCJ='-Wl,'
14906 lt_prog_compiler_static_GCJ='-static'
14907
14908 case $host_os in
14909 aix*)
14910 # All AIX code is PIC.
14911 if test "$host_cpu" = ia64; then
14912 # AIX 5 now supports IA64 processor
14913 lt_prog_compiler_static_GCJ='-Bstatic'
14914 fi
14915 ;;
14916
14917 amigaos*)
14918 # FIXME: we need at least 68020 code to build shared libraries, but
14919 # adding the `-m68020' flag to GCC prevents building anything better,
14920 # like `-m68040'.
14921 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14922 ;;
14923
14924 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14925 # PIC is the default for these OSes.
14926 ;;
14927
14928 mingw* | pw32* | os2*)
14929 # This hack is so that the source file can tell whether it is being
14930 # built for inclusion in a dll (and should export symbols for example).
14931 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14932 ;;
14933
14934 darwin* | rhapsody*)
14935 # PIC is the default on this platform
14936 # Common symbols not allowed in MH_DYLIB files
14937 lt_prog_compiler_pic_GCJ='-fno-common'
14938 ;;
14939
14940 msdosdjgpp*)
14941 # Just because we use GCC doesn't mean we suddenly get shared libraries
14942 # on systems that don't support them.
14943 lt_prog_compiler_can_build_shared_GCJ=no
14944 enable_shared=no
14945 ;;
14946
14947 sysv4*MP*)
14948 if test -d /usr/nec; then
14949 lt_prog_compiler_pic_GCJ=-Kconform_pic
14950 fi
14951 ;;
14952
14953 hpux*)
14954 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14955 # not for PA HP-UX.
14956 case "$host_cpu" in
14957 hppa*64*|ia64*)
14958 # +Z the default
14959 ;;
14960 *)
14961 lt_prog_compiler_pic_GCJ='-fPIC'
14962 ;;
14963 esac
14964 ;;
14965
14966 *)
14967 lt_prog_compiler_pic_GCJ='-fPIC'
14968 ;;
14969 esac
14970 else
14971 # PORTME Check for flag to pass linker flags through the system compiler.
14972 case $host_os in
14973 aix*)
14974 lt_prog_compiler_wl_GCJ='-Wl,'
14975 if test "$host_cpu" = ia64; then
14976 # AIX 5 now supports IA64 processor
14977 lt_prog_compiler_static_GCJ='-Bstatic'
14978 else
14979 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14980 fi
14981 ;;
14982
14983 mingw* | pw32* | os2*)
14984 # This hack is so that the source file can tell whether it is being
14985 # built for inclusion in a dll (and should export symbols for example).
14986 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14987 ;;
14988
14989 hpux9* | hpux10* | hpux11*)
14990 lt_prog_compiler_wl_GCJ='-Wl,'
14991 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14992 # not for PA HP-UX.
14993 case "$host_cpu" in
14994 hppa*64*|ia64*)
14995 # +Z the default
14996 ;;
14997 *)
14998 lt_prog_compiler_pic_GCJ='+Z'
14999 ;;
15000 esac
15001 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15002 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15003 ;;
15004
15005 irix5* | irix6* | nonstopux*)
15006 lt_prog_compiler_wl_GCJ='-Wl,'
15007 # PIC (with -KPIC) is the default.
15008 lt_prog_compiler_static_GCJ='-non_shared'
15009 ;;
15010
15011 newsos6)
15012 lt_prog_compiler_pic_GCJ='-KPIC'
15013 lt_prog_compiler_static_GCJ='-Bstatic'
15014 ;;
15015
15016 linux*)
15017 case $CC in
15018 icc* | ecc*)
15019 lt_prog_compiler_wl_GCJ='-Wl,'
15020 lt_prog_compiler_pic_GCJ='-KPIC'
15021 lt_prog_compiler_static_GCJ='-static'
15022 ;;
15023 ccc*)
15024 lt_prog_compiler_wl_GCJ='-Wl,'
15025 # All Alpha code is PIC.
15026 lt_prog_compiler_static_GCJ='-non_shared'
15027 ;;
15028 esac
15029 ;;
15030
15031 osf3* | osf4* | osf5*)
15032 lt_prog_compiler_wl_GCJ='-Wl,'
15033 # All OSF/1 code is PIC.
15034 lt_prog_compiler_static_GCJ='-non_shared'
15035 ;;
15036
15037 sco3.2v5*)
15038 lt_prog_compiler_pic_GCJ='-Kpic'
15039 lt_prog_compiler_static_GCJ='-dn'
15040 ;;
15041
15042 solaris*)
15043 lt_prog_compiler_wl_GCJ='-Wl,'
15044 lt_prog_compiler_pic_GCJ='-KPIC'
15045 lt_prog_compiler_static_GCJ='-Bstatic'
15046 ;;
15047
15048 sunos4*)
15049 lt_prog_compiler_wl_GCJ='-Qoption ld '
15050 lt_prog_compiler_pic_GCJ='-PIC'
15051 lt_prog_compiler_static_GCJ='-Bstatic'
15052 ;;
15053
15054 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15055 lt_prog_compiler_wl_GCJ='-Wl,'
15056 lt_prog_compiler_pic_GCJ='-KPIC'
15057 lt_prog_compiler_static_GCJ='-Bstatic'
15058 ;;
15059
15060 sysv4*MP*)
15061 if test -d /usr/nec ;then
15062 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15063 lt_prog_compiler_static_GCJ='-Bstatic'
15064 fi
15065 ;;
15066
15067 uts4*)
15068 lt_prog_compiler_pic_GCJ='-pic'
15069 lt_prog_compiler_static_GCJ='-Bstatic'
15070 ;;
15071
15072 *)
15073 lt_prog_compiler_can_build_shared_GCJ=no
15074 ;;
15075 esac
15076 fi
15077
15078 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15079 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15080
15081 #
15082 # Check to make sure the PIC flag actually works.
15083 #
15084 if test -n "$lt_prog_compiler_pic_GCJ"; then
15085
15086 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15087 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15088 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15090 else
15091 lt_prog_compiler_pic_works_GCJ=no
15092 ac_outfile=conftest.$ac_objext
15093 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15094 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15095 # Insert the option either (1) after the last *FLAGS variable, or
15096 # (2) before a word containing "conftest.", or (3) at the end.
15097 # Note that $ac_compile itself does not contain backslashes and begins
15098 # with a dollar sign (not a hyphen), so the echo should work correctly.
15099 # The option is referenced via a variable to avoid confusing sed.
15100 lt_compile=`echo "$ac_compile" | $SED \
15101 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15103 -e 's:$: $lt_compiler_flag:'`
15104 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15105 (eval "$lt_compile" 2>conftest.err)
15106 ac_status=$?
15107 cat conftest.err >&5
15108 echo "$as_me:__oline__: \$? = $ac_status" >&5
15109 if (exit $ac_status) && test -s "$ac_outfile"; then
15110 # The compiler can only warn and ignore the option if not recognized
15111 # So say no if there are warnings
15112 if test ! -s conftest.err; then
15113 lt_prog_compiler_pic_works_GCJ=yes
15114 fi
15115 fi
15116 $rm conftest*
15117
15118 fi
15119 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15120 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15121
15122 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15123 case $lt_prog_compiler_pic_GCJ in
15124 "" | " "*) ;;
15125 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15126 esac
15127 else
15128 lt_prog_compiler_pic_GCJ=
15129 lt_prog_compiler_can_build_shared_GCJ=no
15130 fi
15131
15132 fi
15133 case "$host_os" in
15134 # For platforms which do not support PIC, -DPIC is meaningless:
15135 *djgpp*)
15136 lt_prog_compiler_pic_GCJ=
15137 ;;
15138 *)
15139 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15140 ;;
15141 esac
15142
15143 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15144 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15145 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15146 echo $ECHO_N "(cached) $ECHO_C" >&6
15147 else
15148 lt_cv_prog_compiler_c_o_GCJ=no
15149 $rm -r conftest 2>/dev/null
15150 mkdir conftest
15151 cd conftest
15152 mkdir out
15153 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15154
15155 lt_compiler_flag="-o out/conftest2.$ac_objext"
15156 # Insert the option either (1) after the last *FLAGS variable, or
15157 # (2) before a word containing "conftest.", or (3) at the end.
15158 # Note that $ac_compile itself does not contain backslashes and begins
15159 # with a dollar sign (not a hyphen), so the echo should work correctly.
15160 lt_compile=`echo "$ac_compile" | $SED \
15161 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15163 -e 's:$: $lt_compiler_flag:'`
15164 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15165 (eval "$lt_compile" 2>out/conftest.err)
15166 ac_status=$?
15167 cat out/conftest.err >&5
15168 echo "$as_me:__oline__: \$? = $ac_status" >&5
15169 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15170 then
15171 # The compiler can only warn and ignore the option if not recognized
15172 # So say no if there are warnings
15173 if test ! -s out/conftest.err; then
15174 lt_cv_prog_compiler_c_o_GCJ=yes
15175 fi
15176 fi
15177 chmod u+w .
15178 $rm conftest*
15179 # SGI C++ compiler will create directory out/ii_files/ for
15180 # template instantiation
15181 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15182 $rm out/* && rmdir out
15183 cd ..
15184 rmdir conftest
15185 $rm conftest*
15186
15187 fi
15188 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15189 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15190
15191
15192 hard_links="nottested"
15193 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15194 # do not overwrite the value of need_locks provided by the user
15195 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15196 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15197 hard_links=yes
15198 $rm conftest*
15199 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15200 touch conftest.a
15201 ln conftest.a conftest.b 2>&5 || hard_links=no
15202 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15203 echo "$as_me:$LINENO: result: $hard_links" >&5
15204 echo "${ECHO_T}$hard_links" >&6
15205 if test "$hard_links" = no; then
15206 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15207 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15208 need_locks=warn
15209 fi
15210 else
15211 need_locks=no
15212 fi
15213
15214 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15215 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15216
15217 runpath_var=
15218 allow_undefined_flag_GCJ=
15219 enable_shared_with_static_runtimes_GCJ=no
15220 archive_cmds_GCJ=
15221 archive_expsym_cmds_GCJ=
15222 old_archive_From_new_cmds_GCJ=
15223 old_archive_from_expsyms_cmds_GCJ=
15224 export_dynamic_flag_spec_GCJ=
15225 whole_archive_flag_spec_GCJ=
15226 thread_safe_flag_spec_GCJ=
15227 hardcode_libdir_flag_spec_GCJ=
15228 hardcode_libdir_flag_spec_ld_GCJ=
15229 hardcode_libdir_separator_GCJ=
15230 hardcode_direct_GCJ=no
15231 hardcode_minus_L_GCJ=no
15232 hardcode_shlibpath_var_GCJ=unsupported
15233 link_all_deplibs_GCJ=unknown
15234 hardcode_automatic_GCJ=no
15235 module_cmds_GCJ=
15236 module_expsym_cmds_GCJ=
15237 always_export_symbols_GCJ=no
15238 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15239 # include_expsyms should be a list of space-separated symbols to be *always*
15240 # included in the symbol list
15241 include_expsyms_GCJ=
15242 # exclude_expsyms can be an extended regexp of symbols to exclude
15243 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15244 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15245 # as well as any symbol that contains `d'.
15246 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15247 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15248 # platforms (ab)use it in PIC code, but their linkers get confused if
15249 # the symbol is explicitly referenced. Since portable code cannot
15250 # rely on this symbol name, it's probably fine to never include it in
15251 # preloaded symbol tables.
15252 extract_expsyms_cmds=
15253
15254 case $host_os in
15255 cygwin* | mingw* | pw32*)
15256 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15257 # When not using gcc, we currently assume that we are using
15258 # Microsoft Visual C++.
15259 if test "$GCC" != yes; then
15260 with_gnu_ld=no
15261 fi
15262 ;;
15263 openbsd*)
15264 with_gnu_ld=no
15265 ;;
15266 esac
15267
15268 ld_shlibs_GCJ=yes
15269 if test "$with_gnu_ld" = yes; then
15270 # If archive_cmds runs LD, not CC, wlarc should be empty
15271 wlarc='${wl}'
15272
15273 # See if GNU ld supports shared libraries.
15274 case $host_os in
15275 aix3* | aix4* | aix5*)
15276 # On AIX/PPC, the GNU linker is very broken
15277 if test "$host_cpu" != ia64; then
15278 ld_shlibs_GCJ=no
15279 cat <<EOF 1>&2
15280
15281 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15282 *** to be unable to reliably create shared libraries on AIX.
15283 *** Therefore, libtool is disabling shared libraries support. If you
15284 *** really care for shared libraries, you may want to modify your PATH
15285 *** so that a non-GNU linker is found, and then restart.
15286
15287 EOF
15288 fi
15289 ;;
15290
15291 amigaos*)
15292 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)'
15293 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15294 hardcode_minus_L_GCJ=yes
15295
15296 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15297 # that the semantics of dynamic libraries on AmigaOS, at least up
15298 # to version 4, is to share data among multiple programs linked
15299 # with the same dynamic library. Since this doesn't match the
15300 # behavior of shared libraries on other platforms, we can't use
15301 # them.
15302 ld_shlibs_GCJ=no
15303 ;;
15304
15305 beos*)
15306 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15307 allow_undefined_flag_GCJ=unsupported
15308 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15309 # support --undefined. This deserves some investigation. FIXME
15310 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15311 else
15312 ld_shlibs_GCJ=no
15313 fi
15314 ;;
15315
15316 cygwin* | mingw* | pw32*)
15317 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15318 # as there is no search path for DLLs.
15319 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15320 allow_undefined_flag_GCJ=unsupported
15321 always_export_symbols_GCJ=no
15322 enable_shared_with_static_runtimes_GCJ=yes
15323 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15324
15325 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15326 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15327 # If the export-symbols file already is a .def file (1st line
15328 # is EXPORTS), use it as is; otherwise, prepend...
15329 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15330 cp $export_symbols $output_objdir/$soname.def;
15331 else
15332 echo EXPORTS > $output_objdir/$soname.def;
15333 cat $export_symbols >> $output_objdir/$soname.def;
15334 fi~
15335 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15336 else
15337 ld_shlibs=no
15338 fi
15339 ;;
15340
15341 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15342 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15343 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15344 wlarc=
15345 else
15346 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15347 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15348 fi
15349 ;;
15350
15351 solaris* | sysv5*)
15352 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15353 ld_shlibs_GCJ=no
15354 cat <<EOF 1>&2
15355
15356 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15357 *** create shared libraries on Solaris systems. Therefore, libtool
15358 *** is disabling shared libraries support. We urge you to upgrade GNU
15359 *** binutils to release 2.9.1 or newer. Another option is to modify
15360 *** your PATH or compiler configuration so that the native linker is
15361 *** used, and then restart.
15362
15363 EOF
15364 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15365 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15366 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15367 else
15368 ld_shlibs_GCJ=no
15369 fi
15370 ;;
15371
15372 sunos4*)
15373 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15374 wlarc=
15375 hardcode_direct_GCJ=yes
15376 hardcode_shlibpath_var_GCJ=no
15377 ;;
15378
15379 linux*)
15380 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15381 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15382 archive_cmds_GCJ="$tmp_archive_cmds"
15383 supports_anon_versioning=no
15384 case `$LD -v 2>/dev/null` in
15385 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15386 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15387 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15388 *\ 2.11.*) ;; # other 2.11 versions
15389 *) supports_anon_versioning=yes ;;
15390 esac
15391 if test $supports_anon_versioning = yes; then
15392 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15393 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15394 $echo "local: *; };" >> $output_objdir/$libname.ver~
15395 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15396 else
15397 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15398 fi
15399 link_all_deplibs_GCJ=no
15400 else
15401 ld_shlibs_GCJ=no
15402 fi
15403 ;;
15404
15405 *)
15406 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15407 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15408 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15409 else
15410 ld_shlibs_GCJ=no
15411 fi
15412 ;;
15413 esac
15414
15415 if test "$ld_shlibs_GCJ" = yes; then
15416 runpath_var=LD_RUN_PATH
15417 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15418 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15419 # ancient GNU ld didn't support --whole-archive et. al.
15420 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15421 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15422 else
15423 whole_archive_flag_spec_GCJ=
15424 fi
15425 fi
15426 else
15427 # PORTME fill in a description of your system's linker (not GNU ld)
15428 case $host_os in
15429 aix3*)
15430 allow_undefined_flag_GCJ=unsupported
15431 always_export_symbols_GCJ=yes
15432 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'
15433 # Note: this linker hardcodes the directories in LIBPATH if there
15434 # are no directories specified by -L.
15435 hardcode_minus_L_GCJ=yes
15436 if test "$GCC" = yes && test -z "$link_static_flag"; then
15437 # Neither direct hardcoding nor static linking is supported with a
15438 # broken collect2.
15439 hardcode_direct_GCJ=unsupported
15440 fi
15441 ;;
15442
15443 aix4* | aix5*)
15444 if test "$host_cpu" = ia64; then
15445 # On IA64, the linker does run time linking by default, so we don't
15446 # have to do anything special.
15447 aix_use_runtimelinking=no
15448 exp_sym_flag='-Bexport'
15449 no_entry_flag=""
15450 else
15451 # If we're using GNU nm, then we don't want the "-C" option.
15452 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15453 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15454 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'
15455 else
15456 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'
15457 fi
15458 aix_use_runtimelinking=no
15459
15460 # Test if we are trying to use run time linking or normal
15461 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15462 # need to do runtime linking.
15463 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15464 for ld_flag in $LDFLAGS; do
15465 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15466 aix_use_runtimelinking=yes
15467 break
15468 fi
15469 done
15470 esac
15471
15472 exp_sym_flag='-bexport'
15473 no_entry_flag='-bnoentry'
15474 fi
15475
15476 # When large executables or shared objects are built, AIX ld can
15477 # have problems creating the table of contents. If linking a library
15478 # or program results in "error TOC overflow" add -mminimal-toc to
15479 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15480 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15481
15482 archive_cmds_GCJ=''
15483 hardcode_direct_GCJ=yes
15484 hardcode_libdir_separator_GCJ=':'
15485 link_all_deplibs_GCJ=yes
15486
15487 if test "$GCC" = yes; then
15488 case $host_os in aix4.012|aix4.012.*)
15489 # We only want to do this on AIX 4.2 and lower, the check
15490 # below for broken collect2 doesn't work under 4.3+
15491 collect2name=`${CC} -print-prog-name=collect2`
15492 if test -f "$collect2name" && \
15493 strings "$collect2name" | grep resolve_lib_name >/dev/null
15494 then
15495 # We have reworked collect2
15496 hardcode_direct_GCJ=yes
15497 else
15498 # We have old collect2
15499 hardcode_direct_GCJ=unsupported
15500 # It fails to find uninstalled libraries when the uninstalled
15501 # path is not listed in the libpath. Setting hardcode_minus_L
15502 # to unsupported forces relinking
15503 hardcode_minus_L_GCJ=yes
15504 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15505 hardcode_libdir_separator_GCJ=
15506 fi
15507 esac
15508 shared_flag='-shared'
15509 else
15510 # not using gcc
15511 if test "$host_cpu" = ia64; then
15512 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15513 # chokes on -Wl,-G. The following line is correct:
15514 shared_flag='-G'
15515 else
15516 if test "$aix_use_runtimelinking" = yes; then
15517 shared_flag='${wl}-G'
15518 else
15519 shared_flag='${wl}-bM:SRE'
15520 fi
15521 fi
15522 fi
15523
15524 # It seems that -bexpall does not export symbols beginning with
15525 # underscore (_), so it is better to generate a list of symbols to export.
15526 always_export_symbols_GCJ=yes
15527 if test "$aix_use_runtimelinking" = yes; then
15528 # Warning - without using the other runtime loading flags (-brtl),
15529 # -berok will link without error, but may produce a broken library.
15530 allow_undefined_flag_GCJ='-berok'
15531 # Determine the default libpath from the value encoded in an empty executable.
15532 cat >conftest.$ac_ext <<_ACEOF
15533 /* confdefs.h. */
15534 _ACEOF
15535 cat confdefs.h >>conftest.$ac_ext
15536 cat >>conftest.$ac_ext <<_ACEOF
15537 /* end confdefs.h. */
15538
15539 int
15540 main ()
15541 {
15542
15543 ;
15544 return 0;
15545 }
15546 _ACEOF
15547 rm -f conftest.$ac_objext conftest$ac_exeext
15548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15549 (eval $ac_link) 2>conftest.er1
15550 ac_status=$?
15551 grep -v '^ *+' conftest.er1 >conftest.err
15552 rm -f conftest.er1
15553 cat conftest.err >&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } &&
15556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15558 (eval $ac_try) 2>&5
15559 ac_status=$?
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); }; } &&
15562 { ac_try='test -s conftest$ac_exeext'
15563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564 (eval $ac_try) 2>&5
15565 ac_status=$?
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; }; then
15568
15569 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15570 }'`
15571 # Check for a 64-bit object if we didn't find anything.
15572 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; }
15573 }'`; fi
15574 else
15575 echo "$as_me: failed program was:" >&5
15576 sed 's/^/| /' conftest.$ac_ext >&5
15577
15578 fi
15579 rm -f conftest.err conftest.$ac_objext \
15580 conftest$ac_exeext conftest.$ac_ext
15581 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15582
15583 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15584 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"
15585 else
15586 if test "$host_cpu" = ia64; then
15587 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15588 allow_undefined_flag_GCJ="-z nodefs"
15589 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"
15590 else
15591 # Determine the default libpath from the value encoded in an empty executable.
15592 cat >conftest.$ac_ext <<_ACEOF
15593 /* confdefs.h. */
15594 _ACEOF
15595 cat confdefs.h >>conftest.$ac_ext
15596 cat >>conftest.$ac_ext <<_ACEOF
15597 /* end confdefs.h. */
15598
15599 int
15600 main ()
15601 {
15602
15603 ;
15604 return 0;
15605 }
15606 _ACEOF
15607 rm -f conftest.$ac_objext conftest$ac_exeext
15608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15609 (eval $ac_link) 2>conftest.er1
15610 ac_status=$?
15611 grep -v '^ *+' conftest.er1 >conftest.err
15612 rm -f conftest.er1
15613 cat conftest.err >&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); } &&
15616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618 (eval $ac_try) 2>&5
15619 ac_status=$?
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; } &&
15622 { ac_try='test -s conftest$ac_exeext'
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15625 ac_status=$?
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; }; then
15628
15629 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15630 }'`
15631 # Check for a 64-bit object if we didn't find anything.
15632 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; }
15633 }'`; fi
15634 else
15635 echo "$as_me: failed program was:" >&5
15636 sed 's/^/| /' conftest.$ac_ext >&5
15637
15638 fi
15639 rm -f conftest.err conftest.$ac_objext \
15640 conftest$ac_exeext conftest.$ac_ext
15641 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15642
15643 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15644 # Warning - without using the other run time loading flags,
15645 # -berok will link without error, but may produce a broken library.
15646 no_undefined_flag_GCJ=' ${wl}-bernotok'
15647 allow_undefined_flag_GCJ=' ${wl}-berok'
15648 # -bexpall does not export symbols beginning with underscore (_)
15649 always_export_symbols_GCJ=yes
15650 # Exported symbols can be pulled into shared objects from archives
15651 whole_archive_flag_spec_GCJ=' '
15652 archive_cmds_need_lc_GCJ=yes
15653 # This is similar to how AIX traditionally builds it's shared libraries.
15654 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'
15655 fi
15656 fi
15657 ;;
15658
15659 amigaos*)
15660 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)'
15661 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15662 hardcode_minus_L_GCJ=yes
15663 # see comment about different semantics on the GNU ld section
15664 ld_shlibs_GCJ=no
15665 ;;
15666
15667 bsdi4*)
15668 export_dynamic_flag_spec_GCJ=-rdynamic
15669 ;;
15670
15671 cygwin* | mingw* | pw32*)
15672 # When not using gcc, we currently assume that we are using
15673 # Microsoft Visual C++.
15674 # hardcode_libdir_flag_spec is actually meaningless, as there is
15675 # no search path for DLLs.
15676 hardcode_libdir_flag_spec_GCJ=' '
15677 allow_undefined_flag_GCJ=unsupported
15678 # Tell ltmain to make .lib files, not .a files.
15679 libext=lib
15680 # Tell ltmain to make .dll files, not .so files.
15681 shrext_cmds=".dll"
15682 # FIXME: Setting linknames here is a bad hack.
15683 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15684 # The linker will automatically build a .lib file if we build a DLL.
15685 old_archive_From_new_cmds_GCJ='true'
15686 # FIXME: Should let the user specify the lib program.
15687 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15688 fix_srcfile_path='`cygpath -w "$srcfile"`'
15689 enable_shared_with_static_runtimes_GCJ=yes
15690 ;;
15691
15692 darwin* | rhapsody*)
15693 if test "$GXX" = yes ; then
15694 archive_cmds_need_lc_GCJ=no
15695 case "$host_os" in
15696 rhapsody* | darwin1.[012])
15697 allow_undefined_flag_GCJ='-undefined suppress'
15698 ;;
15699 *) # Darwin 1.3 on
15700 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15701 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15702 else
15703 case ${MACOSX_DEPLOYMENT_TARGET} in
15704 10.[012])
15705 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15706 ;;
15707 10.*)
15708 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15709 ;;
15710 esac
15711 fi
15712 ;;
15713 esac
15714 lt_int_apple_cc_single_mod=no
15715 output_verbose_link_cmd='echo'
15716 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15717 lt_int_apple_cc_single_mod=yes
15718 fi
15719 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15720 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15721 else
15722 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15723 fi
15724 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15725 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15726 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15727 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15728 else
15729 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15730 fi
15731 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15732 hardcode_direct_GCJ=no
15733 hardcode_automatic_GCJ=yes
15734 hardcode_shlibpath_var_GCJ=unsupported
15735 whole_archive_flag_spec_GCJ='-all_load $convenience'
15736 link_all_deplibs_GCJ=yes
15737 else
15738 ld_shlibs_GCJ=no
15739 fi
15740 ;;
15741
15742 dgux*)
15743 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15744 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15745 hardcode_shlibpath_var_GCJ=no
15746 ;;
15747
15748 freebsd1*)
15749 ld_shlibs_GCJ=no
15750 ;;
15751
15752 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15753 # support. Future versions do this automatically, but an explicit c++rt0.o
15754 # does not break anything, and helps significantly (at the cost of a little
15755 # extra space).
15756 freebsd2.2*)
15757 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15758 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15759 hardcode_direct_GCJ=yes
15760 hardcode_shlibpath_var_GCJ=no
15761 ;;
15762
15763 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15764 freebsd2*)
15765 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15766 hardcode_direct_GCJ=yes
15767 hardcode_minus_L_GCJ=yes
15768 hardcode_shlibpath_var_GCJ=no
15769 ;;
15770
15771 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15772 freebsd* | kfreebsd*-gnu)
15773 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15774 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15775 hardcode_direct_GCJ=yes
15776 hardcode_shlibpath_var_GCJ=no
15777 ;;
15778
15779 hpux9*)
15780 if test "$GCC" = yes; then
15781 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'
15782 else
15783 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'
15784 fi
15785 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15786 hardcode_libdir_separator_GCJ=:
15787 hardcode_direct_GCJ=yes
15788
15789 # hardcode_minus_L: Not really in the search PATH,
15790 # but as the default location of the library.
15791 hardcode_minus_L_GCJ=yes
15792 export_dynamic_flag_spec_GCJ='${wl}-E'
15793 ;;
15794
15795 hpux10* | hpux11*)
15796 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15797 case "$host_cpu" in
15798 hppa*64*|ia64*)
15799 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15800 ;;
15801 *)
15802 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15803 ;;
15804 esac
15805 else
15806 case "$host_cpu" in
15807 hppa*64*|ia64*)
15808 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15809 ;;
15810 *)
15811 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15812 ;;
15813 esac
15814 fi
15815 if test "$with_gnu_ld" = no; then
15816 case "$host_cpu" in
15817 hppa*64*)
15818 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15819 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15820 hardcode_libdir_separator_GCJ=:
15821 hardcode_direct_GCJ=no
15822 hardcode_shlibpath_var_GCJ=no
15823 ;;
15824 ia64*)
15825 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15826 hardcode_direct_GCJ=no
15827 hardcode_shlibpath_var_GCJ=no
15828
15829 # hardcode_minus_L: Not really in the search PATH,
15830 # but as the default location of the library.
15831 hardcode_minus_L_GCJ=yes
15832 ;;
15833 *)
15834 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15835 hardcode_libdir_separator_GCJ=:
15836 hardcode_direct_GCJ=yes
15837 export_dynamic_flag_spec_GCJ='${wl}-E'
15838
15839 # hardcode_minus_L: Not really in the search PATH,
15840 # but as the default location of the library.
15841 hardcode_minus_L_GCJ=yes
15842 ;;
15843 esac
15844 fi
15845 ;;
15846
15847 irix5* | irix6* | nonstopux*)
15848 if test "$GCC" = yes; then
15849 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'
15850 else
15851 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'
15852 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15853 fi
15854 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15855 hardcode_libdir_separator_GCJ=:
15856 link_all_deplibs_GCJ=yes
15857 ;;
15858
15859 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15860 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15861 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15862 else
15863 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15864 fi
15865 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15866 hardcode_direct_GCJ=yes
15867 hardcode_shlibpath_var_GCJ=no
15868 ;;
15869
15870 newsos6)
15871 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15872 hardcode_direct_GCJ=yes
15873 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15874 hardcode_libdir_separator_GCJ=:
15875 hardcode_shlibpath_var_GCJ=no
15876 ;;
15877
15878 openbsd*)
15879 hardcode_direct_GCJ=yes
15880 hardcode_shlibpath_var_GCJ=no
15881 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15882 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15883 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15884 export_dynamic_flag_spec_GCJ='${wl}-E'
15885 else
15886 case $host_os in
15887 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15888 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15889 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15890 ;;
15891 *)
15892 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15893 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15894 ;;
15895 esac
15896 fi
15897 ;;
15898
15899 os2*)
15900 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15901 hardcode_minus_L_GCJ=yes
15902 allow_undefined_flag_GCJ=unsupported
15903 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'
15904 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15905 ;;
15906
15907 osf3*)
15908 if test "$GCC" = yes; then
15909 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15910 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'
15911 else
15912 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15913 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'
15914 fi
15915 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15916 hardcode_libdir_separator_GCJ=:
15917 ;;
15918
15919 osf4* | osf5*) # as osf3* with the addition of -msym flag
15920 if test "$GCC" = yes; then
15921 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15922 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'
15923 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15924 else
15925 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15926 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'
15927 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15928 $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'
15929
15930 # Both c and cxx compiler support -rpath directly
15931 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15932 fi
15933 hardcode_libdir_separator_GCJ=:
15934 ;;
15935
15936 sco3.2v5*)
15937 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15938 hardcode_shlibpath_var_GCJ=no
15939 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15940 runpath_var=LD_RUN_PATH
15941 hardcode_runpath_var=yes
15942 ;;
15943
15944 solaris*)
15945 no_undefined_flag_GCJ=' -z text'
15946 if test "$GCC" = yes; then
15947 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15948 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15949 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15950 else
15951 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15952 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15953 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15954 fi
15955 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15956 hardcode_shlibpath_var_GCJ=no
15957 case $host_os in
15958 solaris2.[0-5] | solaris2.[0-5].*) ;;
15959 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15960 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15961 esac
15962 link_all_deplibs_GCJ=yes
15963 ;;
15964
15965 sunos4*)
15966 if test "x$host_vendor" = xsequent; then
15967 # Use $CC to link under sequent, because it throws in some extra .o
15968 # files that make .init and .fini sections work.
15969 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15970 else
15971 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15972 fi
15973 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15974 hardcode_direct_GCJ=yes
15975 hardcode_minus_L_GCJ=yes
15976 hardcode_shlibpath_var_GCJ=no
15977 ;;
15978
15979 sysv4)
15980 case $host_vendor in
15981 sni)
15982 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15983 hardcode_direct_GCJ=yes # is this really true???
15984 ;;
15985 siemens)
15986 ## LD is ld it makes a PLAMLIB
15987 ## CC just makes a GrossModule.
15988 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15989 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15990 hardcode_direct_GCJ=no
15991 ;;
15992 motorola)
15993 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15994 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15995 ;;
15996 esac
15997 runpath_var='LD_RUN_PATH'
15998 hardcode_shlibpath_var_GCJ=no
15999 ;;
16000
16001 sysv4.3*)
16002 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16003 hardcode_shlibpath_var_GCJ=no
16004 export_dynamic_flag_spec_GCJ='-Bexport'
16005 ;;
16006
16007 sysv4*MP*)
16008 if test -d /usr/nec; then
16009 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16010 hardcode_shlibpath_var_GCJ=no
16011 runpath_var=LD_RUN_PATH
16012 hardcode_runpath_var=yes
16013 ld_shlibs_GCJ=yes
16014 fi
16015 ;;
16016
16017 sysv4.2uw2*)
16018 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16019 hardcode_direct_GCJ=yes
16020 hardcode_minus_L_GCJ=no
16021 hardcode_shlibpath_var_GCJ=no
16022 hardcode_runpath_var=yes
16023 runpath_var=LD_RUN_PATH
16024 ;;
16025
16026 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16027 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16028 if test "$GCC" = yes; then
16029 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16030 else
16031 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16032 fi
16033 runpath_var='LD_RUN_PATH'
16034 hardcode_shlibpath_var_GCJ=no
16035 ;;
16036
16037 sysv5*)
16038 no_undefined_flag_GCJ=' -z text'
16039 # $CC -shared without GNU ld will not create a library from C++
16040 # object files and a static libstdc++, better avoid it by now
16041 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16042 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16043 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16044 hardcode_libdir_flag_spec_GCJ=
16045 hardcode_shlibpath_var_GCJ=no
16046 runpath_var='LD_RUN_PATH'
16047 ;;
16048
16049 uts4*)
16050 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16051 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16052 hardcode_shlibpath_var_GCJ=no
16053 ;;
16054
16055 *)
16056 ld_shlibs_GCJ=no
16057 ;;
16058 esac
16059 fi
16060
16061 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16062 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16063 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16064
16065 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16066 if test "$GCC" = yes; then
16067 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16068 fi
16069
16070 #
16071 # Do we need to explicitly link libc?
16072 #
16073 case "x$archive_cmds_need_lc_GCJ" in
16074 x|xyes)
16075 # Assume -lc should be added
16076 archive_cmds_need_lc_GCJ=yes
16077
16078 if test "$enable_shared" = yes && test "$GCC" = yes; then
16079 case $archive_cmds_GCJ in
16080 *'~'*)
16081 # FIXME: we may have to deal with multi-command sequences.
16082 ;;
16083 '$CC '*)
16084 # Test whether the compiler implicitly links with -lc since on some
16085 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16086 # to ld, don't add -lc before -lgcc.
16087 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16088 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16089 $rm conftest*
16090 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16091
16092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16093 (eval $ac_compile) 2>&5
16094 ac_status=$?
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } 2>conftest.err; then
16097 soname=conftest
16098 lib=conftest
16099 libobjs=conftest.$ac_objext
16100 deplibs=
16101 wl=$lt_prog_compiler_wl_GCJ
16102 compiler_flags=-v
16103 linker_flags=-v
16104 verstring=
16105 output_objdir=.
16106 libname=conftest
16107 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16108 allow_undefined_flag_GCJ=
16109 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16110 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16111 ac_status=$?
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); }
16114 then
16115 archive_cmds_need_lc_GCJ=no
16116 else
16117 archive_cmds_need_lc_GCJ=yes
16118 fi
16119 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16120 else
16121 cat conftest.err 1>&5
16122 fi
16123 $rm conftest*
16124 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16125 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16126 ;;
16127 esac
16128 fi
16129 ;;
16130 esac
16131
16132 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16133 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16134 library_names_spec=
16135 libname_spec='lib$name'
16136 soname_spec=
16137 shrext_cmds=".so"
16138 postinstall_cmds=
16139 postuninstall_cmds=
16140 finish_cmds=
16141 finish_eval=
16142 shlibpath_var=
16143 shlibpath_overrides_runpath=unknown
16144 version_type=none
16145 dynamic_linker="$host_os ld.so"
16146 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16147 if test "$GCC" = yes; then
16148 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16149 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16150 # if the path contains ";" then we assume it to be the separator
16151 # otherwise default to the standard path separator (i.e. ":") - it is
16152 # assumed that no part of a normal pathname contains ";" but that should
16153 # okay in the real world where ";" in dirpaths is itself problematic.
16154 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16155 else
16156 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16157 fi
16158 else
16159 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16160 fi
16161 need_lib_prefix=unknown
16162 hardcode_into_libs=no
16163
16164 # when you set need_version to no, make sure it does not cause -set_version
16165 # flags to be left without arguments
16166 need_version=unknown
16167
16168 case $host_os in
16169 aix3*)
16170 version_type=linux
16171 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16172 shlibpath_var=LIBPATH
16173
16174 # AIX 3 has no versioning support, so we append a major version to the name.
16175 soname_spec='${libname}${release}${shared_ext}$major'
16176 ;;
16177
16178 aix4* | aix5*)
16179 version_type=linux
16180 need_lib_prefix=no
16181 need_version=no
16182 hardcode_into_libs=yes
16183 if test "$host_cpu" = ia64; then
16184 # AIX 5 supports IA64
16185 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16186 shlibpath_var=LD_LIBRARY_PATH
16187 else
16188 # With GCC up to 2.95.x, collect2 would create an import file
16189 # for dependence libraries. The import file would start with
16190 # the line `#! .'. This would cause the generated library to
16191 # depend on `.', always an invalid library. This was fixed in
16192 # development snapshots of GCC prior to 3.0.
16193 case $host_os in
16194 aix4 | aix4.[01] | aix4.[01].*)
16195 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16196 echo ' yes '
16197 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16198 :
16199 else
16200 can_build_shared=no
16201 fi
16202 ;;
16203 esac
16204 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16205 # soname into executable. Probably we can add versioning support to
16206 # collect2, so additional links can be useful in future.
16207 if test "$aix_use_runtimelinking" = yes; then
16208 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16209 # instead of lib<name>.a to let people know that these are not
16210 # typical AIX shared libraries.
16211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16212 else
16213 # We preserve .a as extension for shared libraries through AIX4.2
16214 # and later when we are not doing run time linking.
16215 library_names_spec='${libname}${release}.a $libname.a'
16216 soname_spec='${libname}${release}${shared_ext}$major'
16217 fi
16218 shlibpath_var=LIBPATH
16219 fi
16220 ;;
16221
16222 amigaos*)
16223 library_names_spec='$libname.ixlibrary $libname.a'
16224 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16225 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'
16226 ;;
16227
16228 beos*)
16229 library_names_spec='${libname}${shared_ext}'
16230 dynamic_linker="$host_os ld.so"
16231 shlibpath_var=LIBRARY_PATH
16232 ;;
16233
16234 bsdi4*)
16235 version_type=linux
16236 need_version=no
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238 soname_spec='${libname}${release}${shared_ext}$major'
16239 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16240 shlibpath_var=LD_LIBRARY_PATH
16241 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16242 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16243 # the default ld.so.conf also contains /usr/contrib/lib and
16244 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16245 # libtool to hard-code these into programs
16246 ;;
16247
16248 cygwin* | mingw* | pw32*)
16249 version_type=windows
16250 shrext_cmds=".dll"
16251 need_version=no
16252 need_lib_prefix=no
16253
16254 case $GCC,$host_os in
16255 yes,cygwin* | yes,mingw* | yes,pw32*)
16256 library_names_spec='$libname.dll.a'
16257 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16258 postinstall_cmds='base_file=`basename \${file}`~
16259 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16260 dldir=$destdir/`dirname \$dlpath`~
16261 test -d \$dldir || mkdir -p \$dldir~
16262 $install_prog $dir/$dlname \$dldir/$dlname'
16263 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16264 dlpath=$dir/\$dldll~
16265 $rm \$dlpath'
16266 shlibpath_overrides_runpath=yes
16267
16268 case $host_os in
16269 cygwin*)
16270 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16271 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16272 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16273 ;;
16274 mingw*)
16275 # MinGW DLLs use traditional 'lib' prefix
16276 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16277 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16278 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16279 # It is most probably a Windows format PATH printed by
16280 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16281 # path with ; separators, and with drive letters. We can handle the
16282 # drive letters (cygwin fileutils understands them), so leave them,
16283 # especially as we might pass files found there to a mingw objdump,
16284 # which wouldn't understand a cygwinified path. Ahh.
16285 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16286 else
16287 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16288 fi
16289 ;;
16290 pw32*)
16291 # pw32 DLLs use 'pw' prefix rather than 'lib'
16292 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16293 ;;
16294 esac
16295 ;;
16296
16297 *)
16298 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16299 ;;
16300 esac
16301 dynamic_linker='Win32 ld.exe'
16302 # FIXME: first we should search . and the directory the executable is in
16303 shlibpath_var=PATH
16304 ;;
16305
16306 darwin* | rhapsody*)
16307 dynamic_linker="$host_os dyld"
16308 version_type=darwin
16309 need_lib_prefix=no
16310 need_version=no
16311 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16312 soname_spec='${libname}${release}${major}$shared_ext'
16313 shlibpath_overrides_runpath=yes
16314 shlibpath_var=DYLD_LIBRARY_PATH
16315 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16316 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16317 if test "$GCC" = yes; then
16318 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16319 else
16320 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16321 fi
16322 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16323 ;;
16324
16325 dgux*)
16326 version_type=linux
16327 need_lib_prefix=no
16328 need_version=no
16329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16330 soname_spec='${libname}${release}${shared_ext}$major'
16331 shlibpath_var=LD_LIBRARY_PATH
16332 ;;
16333
16334 freebsd1*)
16335 dynamic_linker=no
16336 ;;
16337
16338 kfreebsd*-gnu)
16339 version_type=linux
16340 need_lib_prefix=no
16341 need_version=no
16342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16343 soname_spec='${libname}${release}${shared_ext}$major'
16344 shlibpath_var=LD_LIBRARY_PATH
16345 shlibpath_overrides_runpath=no
16346 hardcode_into_libs=yes
16347 dynamic_linker='GNU ld.so'
16348 ;;
16349
16350 freebsd*)
16351 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16352 version_type=freebsd-$objformat
16353 case $version_type in
16354 freebsd-elf*)
16355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16356 need_version=no
16357 need_lib_prefix=no
16358 ;;
16359 freebsd-*)
16360 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16361 need_version=yes
16362 ;;
16363 esac
16364 shlibpath_var=LD_LIBRARY_PATH
16365 case $host_os in
16366 freebsd2*)
16367 shlibpath_overrides_runpath=yes
16368 ;;
16369 freebsd3.01* | freebsdelf3.01*)
16370 shlibpath_overrides_runpath=yes
16371 hardcode_into_libs=yes
16372 ;;
16373 *) # from 3.2 on
16374 shlibpath_overrides_runpath=no
16375 hardcode_into_libs=yes
16376 ;;
16377 esac
16378 ;;
16379
16380 gnu*)
16381 version_type=linux
16382 need_lib_prefix=no
16383 need_version=no
16384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16385 soname_spec='${libname}${release}${shared_ext}$major'
16386 shlibpath_var=LD_LIBRARY_PATH
16387 hardcode_into_libs=yes
16388 ;;
16389
16390 hpux9* | hpux10* | hpux11*)
16391 # Give a soname corresponding to the major version so that dld.sl refuses to
16392 # link against other versions.
16393 version_type=sunos
16394 need_lib_prefix=no
16395 need_version=no
16396 case "$host_cpu" in
16397 ia64*)
16398 shrext_cmds='.so'
16399 hardcode_into_libs=yes
16400 dynamic_linker="$host_os dld.so"
16401 shlibpath_var=LD_LIBRARY_PATH
16402 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16404 soname_spec='${libname}${release}${shared_ext}$major'
16405 if test "X$HPUX_IA64_MODE" = X32; then
16406 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16407 else
16408 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16409 fi
16410 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16411 ;;
16412 hppa*64*)
16413 shrext_cmds='.sl'
16414 hardcode_into_libs=yes
16415 dynamic_linker="$host_os dld.sl"
16416 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16417 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16419 soname_spec='${libname}${release}${shared_ext}$major'
16420 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16421 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16422 ;;
16423 *)
16424 shrext_cmds='.sl'
16425 dynamic_linker="$host_os dld.sl"
16426 shlibpath_var=SHLIB_PATH
16427 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16429 soname_spec='${libname}${release}${shared_ext}$major'
16430 ;;
16431 esac
16432 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16433 postinstall_cmds='chmod 555 $lib'
16434 ;;
16435
16436 irix5* | irix6* | nonstopux*)
16437 case $host_os in
16438 nonstopux*) version_type=nonstopux ;;
16439 *)
16440 if test "$lt_cv_prog_gnu_ld" = yes; then
16441 version_type=linux
16442 else
16443 version_type=irix
16444 fi ;;
16445 esac
16446 need_lib_prefix=no
16447 need_version=no
16448 soname_spec='${libname}${release}${shared_ext}$major'
16449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16450 case $host_os in
16451 irix5* | nonstopux*)
16452 libsuff= shlibsuff=
16453 ;;
16454 *)
16455 case $LD in # libtool.m4 will add one of these switches to LD
16456 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16457 libsuff= shlibsuff= libmagic=32-bit;;
16458 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16459 libsuff=32 shlibsuff=N32 libmagic=N32;;
16460 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16461 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16462 *) libsuff= shlibsuff= libmagic=never-match;;
16463 esac
16464 ;;
16465 esac
16466 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16467 shlibpath_overrides_runpath=no
16468 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16469 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16470 hardcode_into_libs=yes
16471 ;;
16472
16473 # No shared lib support for Linux oldld, aout, or coff.
16474 linux*oldld* | linux*aout* | linux*coff*)
16475 dynamic_linker=no
16476 ;;
16477
16478 # This must be Linux ELF.
16479 linux*)
16480 version_type=linux
16481 need_lib_prefix=no
16482 need_version=no
16483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16484 soname_spec='${libname}${release}${shared_ext}$major'
16485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16486 shlibpath_var=LD_LIBRARY_PATH
16487 shlibpath_overrides_runpath=no
16488 # This implies no fast_install, which is unacceptable.
16489 # Some rework will be needed to allow for fast_install
16490 # before this can be enabled.
16491 hardcode_into_libs=yes
16492
16493 # Append ld.so.conf contents to the search path
16494 if test -f /etc/ld.so.conf; then
16495 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16496 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16497 fi
16498
16499 # We used to test for /lib/ld.so.1 and disable shared libraries on
16500 # powerpc, because MkLinux only supported shared libraries with the
16501 # GNU dynamic linker. Since this was broken with cross compilers,
16502 # most powerpc-linux boxes support dynamic linking these days and
16503 # people can always --disable-shared, the test was removed, and we
16504 # assume the GNU/Linux dynamic linker is in use.
16505 dynamic_linker='GNU/Linux ld.so'
16506 ;;
16507
16508 netbsdelf*-gnu)
16509 version_type=linux
16510 need_lib_prefix=no
16511 need_version=no
16512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16513 soname_spec='${libname}${release}${shared_ext}$major'
16514 shlibpath_var=LD_LIBRARY_PATH
16515 shlibpath_overrides_runpath=no
16516 hardcode_into_libs=yes
16517 dynamic_linker='NetBSD ld.elf_so'
16518 ;;
16519
16520 knetbsd*-gnu)
16521 version_type=linux
16522 need_lib_prefix=no
16523 need_version=no
16524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16525 soname_spec='${libname}${release}${shared_ext}$major'
16526 shlibpath_var=LD_LIBRARY_PATH
16527 shlibpath_overrides_runpath=no
16528 hardcode_into_libs=yes
16529 dynamic_linker='GNU ld.so'
16530 ;;
16531
16532 netbsd*)
16533 version_type=sunos
16534 need_lib_prefix=no
16535 need_version=no
16536 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16539 dynamic_linker='NetBSD (a.out) ld.so'
16540 else
16541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16542 soname_spec='${libname}${release}${shared_ext}$major'
16543 dynamic_linker='NetBSD ld.elf_so'
16544 fi
16545 shlibpath_var=LD_LIBRARY_PATH
16546 shlibpath_overrides_runpath=yes
16547 hardcode_into_libs=yes
16548 ;;
16549
16550 newsos6)
16551 version_type=linux
16552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16553 shlibpath_var=LD_LIBRARY_PATH
16554 shlibpath_overrides_runpath=yes
16555 ;;
16556
16557 nto-qnx*)
16558 version_type=linux
16559 need_lib_prefix=no
16560 need_version=no
16561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16562 soname_spec='${libname}${release}${shared_ext}$major'
16563 shlibpath_var=LD_LIBRARY_PATH
16564 shlibpath_overrides_runpath=yes
16565 ;;
16566
16567 openbsd*)
16568 version_type=sunos
16569 need_lib_prefix=no
16570 need_version=yes
16571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16573 shlibpath_var=LD_LIBRARY_PATH
16574 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16575 case $host_os in
16576 openbsd2.[89] | openbsd2.[89].*)
16577 shlibpath_overrides_runpath=no
16578 ;;
16579 *)
16580 shlibpath_overrides_runpath=yes
16581 ;;
16582 esac
16583 else
16584 shlibpath_overrides_runpath=yes
16585 fi
16586 ;;
16587
16588 os2*)
16589 libname_spec='$name'
16590 shrext_cmds=".dll"
16591 need_lib_prefix=no
16592 library_names_spec='$libname${shared_ext} $libname.a'
16593 dynamic_linker='OS/2 ld.exe'
16594 shlibpath_var=LIBPATH
16595 ;;
16596
16597 osf3* | osf4* | osf5*)
16598 version_type=osf
16599 need_lib_prefix=no
16600 need_version=no
16601 soname_spec='${libname}${release}${shared_ext}$major'
16602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16603 shlibpath_var=LD_LIBRARY_PATH
16604 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16605 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16606 ;;
16607
16608 sco3.2v5*)
16609 version_type=osf
16610 soname_spec='${libname}${release}${shared_ext}$major'
16611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16612 shlibpath_var=LD_LIBRARY_PATH
16613 ;;
16614
16615 solaris*)
16616 version_type=linux
16617 need_lib_prefix=no
16618 need_version=no
16619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16620 soname_spec='${libname}${release}${shared_ext}$major'
16621 shlibpath_var=LD_LIBRARY_PATH
16622 shlibpath_overrides_runpath=yes
16623 hardcode_into_libs=yes
16624 # ldd complains unless libraries are executable
16625 postinstall_cmds='chmod +x $lib'
16626 ;;
16627
16628 sunos4*)
16629 version_type=sunos
16630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16631 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16632 shlibpath_var=LD_LIBRARY_PATH
16633 shlibpath_overrides_runpath=yes
16634 if test "$with_gnu_ld" = yes; then
16635 need_lib_prefix=no
16636 fi
16637 need_version=yes
16638 ;;
16639
16640 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16641 version_type=linux
16642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16643 soname_spec='${libname}${release}${shared_ext}$major'
16644 shlibpath_var=LD_LIBRARY_PATH
16645 case $host_vendor in
16646 sni)
16647 shlibpath_overrides_runpath=no
16648 need_lib_prefix=no
16649 export_dynamic_flag_spec='${wl}-Blargedynsym'
16650 runpath_var=LD_RUN_PATH
16651 ;;
16652 siemens)
16653 need_lib_prefix=no
16654 ;;
16655 motorola)
16656 need_lib_prefix=no
16657 need_version=no
16658 shlibpath_overrides_runpath=no
16659 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16660 ;;
16661 esac
16662 ;;
16663
16664 sysv4*MP*)
16665 if test -d /usr/nec ;then
16666 version_type=linux
16667 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16668 soname_spec='$libname${shared_ext}.$major'
16669 shlibpath_var=LD_LIBRARY_PATH
16670 fi
16671 ;;
16672
16673 uts4*)
16674 version_type=linux
16675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16676 soname_spec='${libname}${release}${shared_ext}$major'
16677 shlibpath_var=LD_LIBRARY_PATH
16678 ;;
16679
16680 *)
16681 dynamic_linker=no
16682 ;;
16683 esac
16684 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16685 echo "${ECHO_T}$dynamic_linker" >&6
16686 test "$dynamic_linker" = no && can_build_shared=no
16687
16688 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16689 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16690 hardcode_action_GCJ=
16691 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16692 test -n "$runpath_var GCJ" || \
16693 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16694
16695 # We can hardcode non-existant directories.
16696 if test "$hardcode_direct_GCJ" != no &&
16697 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16698 # have to relink, otherwise we might link with an installed library
16699 # when we should be linking with a yet-to-be-installed one
16700 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16701 test "$hardcode_minus_L_GCJ" != no; then
16702 # Linking always hardcodes the temporary library directory.
16703 hardcode_action_GCJ=relink
16704 else
16705 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16706 hardcode_action_GCJ=immediate
16707 fi
16708 else
16709 # We cannot hardcode anything, or else we can only hardcode existing
16710 # directories.
16711 hardcode_action_GCJ=unsupported
16712 fi
16713 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16714 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16715
16716 if test "$hardcode_action_GCJ" = relink; then
16717 # Fast installation is not supported
16718 enable_fast_install=no
16719 elif test "$shlibpath_overrides_runpath" = yes ||
16720 test "$enable_shared" = no; then
16721 # Fast installation is not necessary
16722 enable_fast_install=needless
16723 fi
16724
16725 striplib=
16726 old_striplib=
16727 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16728 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16729 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16730 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16731 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16732 echo "$as_me:$LINENO: result: yes" >&5
16733 echo "${ECHO_T}yes" >&6
16734 else
16735 # FIXME - insert some real tests, host_os isn't really good enough
16736 case $host_os in
16737 darwin*)
16738 if test -n "$STRIP" ; then
16739 striplib="$STRIP -x"
16740 echo "$as_me:$LINENO: result: yes" >&5
16741 echo "${ECHO_T}yes" >&6
16742 else
16743 echo "$as_me:$LINENO: result: no" >&5
16744 echo "${ECHO_T}no" >&6
16745 fi
16746 ;;
16747 *)
16748 echo "$as_me:$LINENO: result: no" >&5
16749 echo "${ECHO_T}no" >&6
16750 ;;
16751 esac
16752 fi
16753
16754 if test "x$enable_dlopen" != xyes; then
16755 enable_dlopen=unknown
16756 enable_dlopen_self=unknown
16757 enable_dlopen_self_static=unknown
16758 else
16759 lt_cv_dlopen=no
16760 lt_cv_dlopen_libs=
16761
16762 case $host_os in
16763 beos*)
16764 lt_cv_dlopen="load_add_on"
16765 lt_cv_dlopen_libs=
16766 lt_cv_dlopen_self=yes
16767 ;;
16768
16769 mingw* | pw32*)
16770 lt_cv_dlopen="LoadLibrary"
16771 lt_cv_dlopen_libs=
16772 ;;
16773
16774 cygwin*)
16775 lt_cv_dlopen="dlopen"
16776 lt_cv_dlopen_libs=
16777 ;;
16778
16779 darwin*)
16780 # if libdl is installed we need to link against it
16781 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16782 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16783 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16784 echo $ECHO_N "(cached) $ECHO_C" >&6
16785 else
16786 ac_check_lib_save_LIBS=$LIBS
16787 LIBS="-ldl $LIBS"
16788 cat >conftest.$ac_ext <<_ACEOF
16789 /* confdefs.h. */
16790 _ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16794
16795 /* Override any gcc2 internal prototype to avoid an error. */
16796 #ifdef __cplusplus
16797 extern "C"
16798 #endif
16799 /* We use char because int might match the return type of a gcc2
16800 builtin and then its argument prototype would still apply. */
16801 char dlopen ();
16802 int
16803 main ()
16804 {
16805 dlopen ();
16806 ;
16807 return 0;
16808 }
16809 _ACEOF
16810 rm -f conftest.$ac_objext conftest$ac_exeext
16811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16812 (eval $ac_link) 2>conftest.er1
16813 ac_status=$?
16814 grep -v '^ *+' conftest.er1 >conftest.err
16815 rm -f conftest.er1
16816 cat conftest.err >&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); } &&
16819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16821 (eval $ac_try) 2>&5
16822 ac_status=$?
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); }; } &&
16825 { ac_try='test -s conftest$ac_exeext'
16826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827 (eval $ac_try) 2>&5
16828 ac_status=$?
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; }; then
16831 ac_cv_lib_dl_dlopen=yes
16832 else
16833 echo "$as_me: failed program was:" >&5
16834 sed 's/^/| /' conftest.$ac_ext >&5
16835
16836 ac_cv_lib_dl_dlopen=no
16837 fi
16838 rm -f conftest.err conftest.$ac_objext \
16839 conftest$ac_exeext conftest.$ac_ext
16840 LIBS=$ac_check_lib_save_LIBS
16841 fi
16842 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16843 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16844 if test $ac_cv_lib_dl_dlopen = yes; then
16845 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16846 else
16847
16848 lt_cv_dlopen="dyld"
16849 lt_cv_dlopen_libs=
16850 lt_cv_dlopen_self=yes
16851
16852 fi
16853
16854 ;;
16855
16856 *)
16857 echo "$as_me:$LINENO: checking for shl_load" >&5
16858 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16859 if test "${ac_cv_func_shl_load+set}" = set; then
16860 echo $ECHO_N "(cached) $ECHO_C" >&6
16861 else
16862 cat >conftest.$ac_ext <<_ACEOF
16863 /* confdefs.h. */
16864 _ACEOF
16865 cat confdefs.h >>conftest.$ac_ext
16866 cat >>conftest.$ac_ext <<_ACEOF
16867 /* end confdefs.h. */
16868 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16870 #define shl_load innocuous_shl_load
16871
16872 /* System header to define __stub macros and hopefully few prototypes,
16873 which can conflict with char shl_load (); below.
16874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16875 <limits.h> exists even on freestanding compilers. */
16876
16877 #ifdef __STDC__
16878 # include <limits.h>
16879 #else
16880 # include <assert.h>
16881 #endif
16882
16883 #undef shl_load
16884
16885 /* Override any gcc2 internal prototype to avoid an error. */
16886 #ifdef __cplusplus
16887 extern "C"
16888 {
16889 #endif
16890 /* We use char because int might match the return type of a gcc2
16891 builtin and then its argument prototype would still apply. */
16892 char shl_load ();
16893 /* The GNU C library defines this for functions which it implements
16894 to always fail with ENOSYS. Some functions are actually named
16895 something starting with __ and the normal name is an alias. */
16896 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16897 choke me
16898 #else
16899 char (*f) () = shl_load;
16900 #endif
16901 #ifdef __cplusplus
16902 }
16903 #endif
16904
16905 int
16906 main ()
16907 {
16908 return f != shl_load;
16909 ;
16910 return 0;
16911 }
16912 _ACEOF
16913 rm -f conftest.$ac_objext conftest$ac_exeext
16914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16915 (eval $ac_link) 2>conftest.er1
16916 ac_status=$?
16917 grep -v '^ *+' conftest.er1 >conftest.err
16918 rm -f conftest.er1
16919 cat conftest.err >&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); } &&
16922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924 (eval $ac_try) 2>&5
16925 ac_status=$?
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; } &&
16928 { ac_try='test -s conftest$ac_exeext'
16929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16930 (eval $ac_try) 2>&5
16931 ac_status=$?
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; }; then
16934 ac_cv_func_shl_load=yes
16935 else
16936 echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16938
16939 ac_cv_func_shl_load=no
16940 fi
16941 rm -f conftest.err conftest.$ac_objext \
16942 conftest$ac_exeext conftest.$ac_ext
16943 fi
16944 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16945 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16946 if test $ac_cv_func_shl_load = yes; then
16947 lt_cv_dlopen="shl_load"
16948 else
16949 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16950 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16951 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16953 else
16954 ac_check_lib_save_LIBS=$LIBS
16955 LIBS="-ldld $LIBS"
16956 cat >conftest.$ac_ext <<_ACEOF
16957 /* confdefs.h. */
16958 _ACEOF
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h. */
16962
16963 /* Override any gcc2 internal prototype to avoid an error. */
16964 #ifdef __cplusplus
16965 extern "C"
16966 #endif
16967 /* We use char because int might match the return type of a gcc2
16968 builtin and then its argument prototype would still apply. */
16969 char shl_load ();
16970 int
16971 main ()
16972 {
16973 shl_load ();
16974 ;
16975 return 0;
16976 }
16977 _ACEOF
16978 rm -f conftest.$ac_objext conftest$ac_exeext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16980 (eval $ac_link) 2>conftest.er1
16981 ac_status=$?
16982 grep -v '^ *+' conftest.er1 >conftest.err
16983 rm -f conftest.er1
16984 cat conftest.err >&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5
16990 ac_status=$?
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; } &&
16993 { ac_try='test -s conftest$ac_exeext'
16994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16996 ac_status=$?
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; }; then
16999 ac_cv_lib_dld_shl_load=yes
17000 else
17001 echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17003
17004 ac_cv_lib_dld_shl_load=no
17005 fi
17006 rm -f conftest.err conftest.$ac_objext \
17007 conftest$ac_exeext conftest.$ac_ext
17008 LIBS=$ac_check_lib_save_LIBS
17009 fi
17010 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17011 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17012 if test $ac_cv_lib_dld_shl_load = yes; then
17013 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17014 else
17015 echo "$as_me:$LINENO: checking for dlopen" >&5
17016 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17017 if test "${ac_cv_func_dlopen+set}" = set; then
17018 echo $ECHO_N "(cached) $ECHO_C" >&6
17019 else
17020 cat >conftest.$ac_ext <<_ACEOF
17021 /* confdefs.h. */
17022 _ACEOF
17023 cat confdefs.h >>conftest.$ac_ext
17024 cat >>conftest.$ac_ext <<_ACEOF
17025 /* end confdefs.h. */
17026 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17028 #define dlopen innocuous_dlopen
17029
17030 /* System header to define __stub macros and hopefully few prototypes,
17031 which can conflict with char dlopen (); below.
17032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17033 <limits.h> exists even on freestanding compilers. */
17034
17035 #ifdef __STDC__
17036 # include <limits.h>
17037 #else
17038 # include <assert.h>
17039 #endif
17040
17041 #undef dlopen
17042
17043 /* Override any gcc2 internal prototype to avoid an error. */
17044 #ifdef __cplusplus
17045 extern "C"
17046 {
17047 #endif
17048 /* We use char because int might match the return type of a gcc2
17049 builtin and then its argument prototype would still apply. */
17050 char dlopen ();
17051 /* The GNU C library defines this for functions which it implements
17052 to always fail with ENOSYS. Some functions are actually named
17053 something starting with __ and the normal name is an alias. */
17054 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17055 choke me
17056 #else
17057 char (*f) () = dlopen;
17058 #endif
17059 #ifdef __cplusplus
17060 }
17061 #endif
17062
17063 int
17064 main ()
17065 {
17066 return f != dlopen;
17067 ;
17068 return 0;
17069 }
17070 _ACEOF
17071 rm -f conftest.$ac_objext conftest$ac_exeext
17072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17073 (eval $ac_link) 2>conftest.er1
17074 ac_status=$?
17075 grep -v '^ *+' conftest.er1 >conftest.err
17076 rm -f conftest.er1
17077 cat conftest.err >&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } &&
17080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17082 (eval $ac_try) 2>&5
17083 ac_status=$?
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; } &&
17086 { ac_try='test -s conftest$ac_exeext'
17087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17088 (eval $ac_try) 2>&5
17089 ac_status=$?
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); }; }; then
17092 ac_cv_func_dlopen=yes
17093 else
17094 echo "$as_me: failed program was:" >&5
17095 sed 's/^/| /' conftest.$ac_ext >&5
17096
17097 ac_cv_func_dlopen=no
17098 fi
17099 rm -f conftest.err conftest.$ac_objext \
17100 conftest$ac_exeext conftest.$ac_ext
17101 fi
17102 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17103 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17104 if test $ac_cv_func_dlopen = yes; then
17105 lt_cv_dlopen="dlopen"
17106 else
17107 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17108 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17109 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17111 else
17112 ac_check_lib_save_LIBS=$LIBS
17113 LIBS="-ldl $LIBS"
17114 cat >conftest.$ac_ext <<_ACEOF
17115 /* confdefs.h. */
17116 _ACEOF
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
17119 /* end confdefs.h. */
17120
17121 /* Override any gcc2 internal prototype to avoid an error. */
17122 #ifdef __cplusplus
17123 extern "C"
17124 #endif
17125 /* We use char because int might match the return type of a gcc2
17126 builtin and then its argument prototype would still apply. */
17127 char dlopen ();
17128 int
17129 main ()
17130 {
17131 dlopen ();
17132 ;
17133 return 0;
17134 }
17135 _ACEOF
17136 rm -f conftest.$ac_objext conftest$ac_exeext
17137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17138 (eval $ac_link) 2>conftest.er1
17139 ac_status=$?
17140 grep -v '^ *+' conftest.er1 >conftest.err
17141 rm -f conftest.er1
17142 cat conftest.err >&5
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); } &&
17145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147 (eval $ac_try) 2>&5
17148 ac_status=$?
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); }; } &&
17151 { ac_try='test -s conftest$ac_exeext'
17152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17153 (eval $ac_try) 2>&5
17154 ac_status=$?
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; }; then
17157 ac_cv_lib_dl_dlopen=yes
17158 else
17159 echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17161
17162 ac_cv_lib_dl_dlopen=no
17163 fi
17164 rm -f conftest.err conftest.$ac_objext \
17165 conftest$ac_exeext conftest.$ac_ext
17166 LIBS=$ac_check_lib_save_LIBS
17167 fi
17168 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17169 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17170 if test $ac_cv_lib_dl_dlopen = yes; then
17171 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17172 else
17173 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17174 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17175 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17176 echo $ECHO_N "(cached) $ECHO_C" >&6
17177 else
17178 ac_check_lib_save_LIBS=$LIBS
17179 LIBS="-lsvld $LIBS"
17180 cat >conftest.$ac_ext <<_ACEOF
17181 /* confdefs.h. */
17182 _ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h. */
17186
17187 /* Override any gcc2 internal prototype to avoid an error. */
17188 #ifdef __cplusplus
17189 extern "C"
17190 #endif
17191 /* We use char because int might match the return type of a gcc2
17192 builtin and then its argument prototype would still apply. */
17193 char dlopen ();
17194 int
17195 main ()
17196 {
17197 dlopen ();
17198 ;
17199 return 0;
17200 }
17201 _ACEOF
17202 rm -f conftest.$ac_objext conftest$ac_exeext
17203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17204 (eval $ac_link) 2>conftest.er1
17205 ac_status=$?
17206 grep -v '^ *+' conftest.er1 >conftest.err
17207 rm -f conftest.er1
17208 cat conftest.err >&5
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); } &&
17211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213 (eval $ac_try) 2>&5
17214 ac_status=$?
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; } &&
17217 { ac_try='test -s conftest$ac_exeext'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17220 ac_status=$?
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; }; then
17223 ac_cv_lib_svld_dlopen=yes
17224 else
17225 echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.$ac_ext >&5
17227
17228 ac_cv_lib_svld_dlopen=no
17229 fi
17230 rm -f conftest.err conftest.$ac_objext \
17231 conftest$ac_exeext conftest.$ac_ext
17232 LIBS=$ac_check_lib_save_LIBS
17233 fi
17234 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17235 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17236 if test $ac_cv_lib_svld_dlopen = yes; then
17237 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17238 else
17239 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17240 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17241 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17242 echo $ECHO_N "(cached) $ECHO_C" >&6
17243 else
17244 ac_check_lib_save_LIBS=$LIBS
17245 LIBS="-ldld $LIBS"
17246 cat >conftest.$ac_ext <<_ACEOF
17247 /* confdefs.h. */
17248 _ACEOF
17249 cat confdefs.h >>conftest.$ac_ext
17250 cat >>conftest.$ac_ext <<_ACEOF
17251 /* end confdefs.h. */
17252
17253 /* Override any gcc2 internal prototype to avoid an error. */
17254 #ifdef __cplusplus
17255 extern "C"
17256 #endif
17257 /* We use char because int might match the return type of a gcc2
17258 builtin and then its argument prototype would still apply. */
17259 char dld_link ();
17260 int
17261 main ()
17262 {
17263 dld_link ();
17264 ;
17265 return 0;
17266 }
17267 _ACEOF
17268 rm -f conftest.$ac_objext conftest$ac_exeext
17269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17270 (eval $ac_link) 2>conftest.er1
17271 ac_status=$?
17272 grep -v '^ *+' conftest.er1 >conftest.err
17273 rm -f conftest.er1
17274 cat conftest.err >&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } &&
17277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279 (eval $ac_try) 2>&5
17280 ac_status=$?
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; } &&
17283 { ac_try='test -s conftest$ac_exeext'
17284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17285 (eval $ac_try) 2>&5
17286 ac_status=$?
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; }; then
17289 ac_cv_lib_dld_dld_link=yes
17290 else
17291 echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17293
17294 ac_cv_lib_dld_dld_link=no
17295 fi
17296 rm -f conftest.err conftest.$ac_objext \
17297 conftest$ac_exeext conftest.$ac_ext
17298 LIBS=$ac_check_lib_save_LIBS
17299 fi
17300 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17301 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17302 if test $ac_cv_lib_dld_dld_link = yes; then
17303 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17304 fi
17305
17306
17307 fi
17308
17309
17310 fi
17311
17312
17313 fi
17314
17315
17316 fi
17317
17318
17319 fi
17320
17321 ;;
17322 esac
17323
17324 if test "x$lt_cv_dlopen" != xno; then
17325 enable_dlopen=yes
17326 else
17327 enable_dlopen=no
17328 fi
17329
17330 case $lt_cv_dlopen in
17331 dlopen)
17332 save_CPPFLAGS="$CPPFLAGS"
17333 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17334
17335 save_LDFLAGS="$LDFLAGS"
17336 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17337
17338 save_LIBS="$LIBS"
17339 LIBS="$lt_cv_dlopen_libs $LIBS"
17340
17341 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17342 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17343 if test "${lt_cv_dlopen_self+set}" = set; then
17344 echo $ECHO_N "(cached) $ECHO_C" >&6
17345 else
17346 if test "$cross_compiling" = yes; then :
17347 lt_cv_dlopen_self=cross
17348 else
17349 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17350 lt_status=$lt_dlunknown
17351 cat > conftest.$ac_ext <<EOF
17352 #line __oline__ "configure"
17353 #include "confdefs.h"
17354
17355 #if HAVE_DLFCN_H
17356 #include <dlfcn.h>
17357 #endif
17358
17359 #include <stdio.h>
17360
17361 #ifdef RTLD_GLOBAL
17362 # define LT_DLGLOBAL RTLD_GLOBAL
17363 #else
17364 # ifdef DL_GLOBAL
17365 # define LT_DLGLOBAL DL_GLOBAL
17366 # else
17367 # define LT_DLGLOBAL 0
17368 # endif
17369 #endif
17370
17371 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17372 find out it does not work in some platform. */
17373 #ifndef LT_DLLAZY_OR_NOW
17374 # ifdef RTLD_LAZY
17375 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17376 # else
17377 # ifdef DL_LAZY
17378 # define LT_DLLAZY_OR_NOW DL_LAZY
17379 # else
17380 # ifdef RTLD_NOW
17381 # define LT_DLLAZY_OR_NOW RTLD_NOW
17382 # else
17383 # ifdef DL_NOW
17384 # define LT_DLLAZY_OR_NOW DL_NOW
17385 # else
17386 # define LT_DLLAZY_OR_NOW 0
17387 # endif
17388 # endif
17389 # endif
17390 # endif
17391 #endif
17392
17393 #ifdef __cplusplus
17394 extern "C" void exit (int);
17395 #endif
17396
17397 void fnord() { int i=42;}
17398 int main ()
17399 {
17400 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17401 int status = $lt_dlunknown;
17402
17403 if (self)
17404 {
17405 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17406 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17407 /* dlclose (self); */
17408 }
17409
17410 exit (status);
17411 }
17412 EOF
17413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17414 (eval $ac_link) 2>&5
17415 ac_status=$?
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17418 (./conftest; exit; ) 2>/dev/null
17419 lt_status=$?
17420 case x$lt_status in
17421 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17422 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17423 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17424 esac
17425 else :
17426 # compilation failed
17427 lt_cv_dlopen_self=no
17428 fi
17429 fi
17430 rm -fr conftest*
17431
17432
17433 fi
17434 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17435 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17436
17437 if test "x$lt_cv_dlopen_self" = xyes; then
17438 LDFLAGS="$LDFLAGS $link_static_flag"
17439 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17440 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17441 if test "${lt_cv_dlopen_self_static+set}" = set; then
17442 echo $ECHO_N "(cached) $ECHO_C" >&6
17443 else
17444 if test "$cross_compiling" = yes; then :
17445 lt_cv_dlopen_self_static=cross
17446 else
17447 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17448 lt_status=$lt_dlunknown
17449 cat > conftest.$ac_ext <<EOF
17450 #line __oline__ "configure"
17451 #include "confdefs.h"
17452
17453 #if HAVE_DLFCN_H
17454 #include <dlfcn.h>
17455 #endif
17456
17457 #include <stdio.h>
17458
17459 #ifdef RTLD_GLOBAL
17460 # define LT_DLGLOBAL RTLD_GLOBAL
17461 #else
17462 # ifdef DL_GLOBAL
17463 # define LT_DLGLOBAL DL_GLOBAL
17464 # else
17465 # define LT_DLGLOBAL 0
17466 # endif
17467 #endif
17468
17469 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17470 find out it does not work in some platform. */
17471 #ifndef LT_DLLAZY_OR_NOW
17472 # ifdef RTLD_LAZY
17473 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17474 # else
17475 # ifdef DL_LAZY
17476 # define LT_DLLAZY_OR_NOW DL_LAZY
17477 # else
17478 # ifdef RTLD_NOW
17479 # define LT_DLLAZY_OR_NOW RTLD_NOW
17480 # else
17481 # ifdef DL_NOW
17482 # define LT_DLLAZY_OR_NOW DL_NOW
17483 # else
17484 # define LT_DLLAZY_OR_NOW 0
17485 # endif
17486 # endif
17487 # endif
17488 # endif
17489 #endif
17490
17491 #ifdef __cplusplus
17492 extern "C" void exit (int);
17493 #endif
17494
17495 void fnord() { int i=42;}
17496 int main ()
17497 {
17498 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17499 int status = $lt_dlunknown;
17500
17501 if (self)
17502 {
17503 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17504 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17505 /* dlclose (self); */
17506 }
17507
17508 exit (status);
17509 }
17510 EOF
17511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17512 (eval $ac_link) 2>&5
17513 ac_status=$?
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17516 (./conftest; exit; ) 2>/dev/null
17517 lt_status=$?
17518 case x$lt_status in
17519 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17520 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17521 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17522 esac
17523 else :
17524 # compilation failed
17525 lt_cv_dlopen_self_static=no
17526 fi
17527 fi
17528 rm -fr conftest*
17529
17530
17531 fi
17532 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17533 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17534 fi
17535
17536 CPPFLAGS="$save_CPPFLAGS"
17537 LDFLAGS="$save_LDFLAGS"
17538 LIBS="$save_LIBS"
17539 ;;
17540 esac
17541
17542 case $lt_cv_dlopen_self in
17543 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17544 *) enable_dlopen_self=unknown ;;
17545 esac
17546
17547 case $lt_cv_dlopen_self_static in
17548 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17549 *) enable_dlopen_self_static=unknown ;;
17550 esac
17551 fi
17552
17553
17554 # The else clause should only fire when bootstrapping the
17555 # libtool distribution, otherwise you forgot to ship ltmain.sh
17556 # with your package, and you will get complaints that there are
17557 # no rules to generate ltmain.sh.
17558 if test -f "$ltmain"; then
17559 # See if we are running on zsh, and set the options which allow our commands through
17560 # without removal of \ escapes.
17561 if test -n "${ZSH_VERSION+set}" ; then
17562 setopt NO_GLOB_SUBST
17563 fi
17564 # Now quote all the things that may contain metacharacters while being
17565 # careful not to overquote the AC_SUBSTed values. We take copies of the
17566 # variables and quote the copies for generation of the libtool script.
17567 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17568 SED SHELL STRIP \
17569 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17570 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17571 deplibs_check_method reload_flag reload_cmds need_locks \
17572 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17573 lt_cv_sys_global_symbol_to_c_name_address \
17574 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17575 old_postinstall_cmds old_postuninstall_cmds \
17576 compiler_GCJ \
17577 CC_GCJ \
17578 LD_GCJ \
17579 lt_prog_compiler_wl_GCJ \
17580 lt_prog_compiler_pic_GCJ \
17581 lt_prog_compiler_static_GCJ \
17582 lt_prog_compiler_no_builtin_flag_GCJ \
17583 export_dynamic_flag_spec_GCJ \
17584 thread_safe_flag_spec_GCJ \
17585 whole_archive_flag_spec_GCJ \
17586 enable_shared_with_static_runtimes_GCJ \
17587 old_archive_cmds_GCJ \
17588 old_archive_from_new_cmds_GCJ \
17589 predep_objects_GCJ \
17590 postdep_objects_GCJ \
17591 predeps_GCJ \
17592 postdeps_GCJ \
17593 compiler_lib_search_path_GCJ \
17594 archive_cmds_GCJ \
17595 archive_expsym_cmds_GCJ \
17596 postinstall_cmds_GCJ \
17597 postuninstall_cmds_GCJ \
17598 old_archive_from_expsyms_cmds_GCJ \
17599 allow_undefined_flag_GCJ \
17600 no_undefined_flag_GCJ \
17601 export_symbols_cmds_GCJ \
17602 hardcode_libdir_flag_spec_GCJ \
17603 hardcode_libdir_flag_spec_ld_GCJ \
17604 hardcode_libdir_separator_GCJ \
17605 hardcode_automatic_GCJ \
17606 module_cmds_GCJ \
17607 module_expsym_cmds_GCJ \
17608 lt_cv_prog_compiler_c_o_GCJ \
17609 exclude_expsyms_GCJ \
17610 include_expsyms_GCJ; do
17611
17612 case $var in
17613 old_archive_cmds_GCJ | \
17614 old_archive_from_new_cmds_GCJ | \
17615 archive_cmds_GCJ | \
17616 archive_expsym_cmds_GCJ | \
17617 module_cmds_GCJ | \
17618 module_expsym_cmds_GCJ | \
17619 old_archive_from_expsyms_cmds_GCJ | \
17620 export_symbols_cmds_GCJ | \
17621 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17622 postinstall_cmds | postuninstall_cmds | \
17623 old_postinstall_cmds | old_postuninstall_cmds | \
17624 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17625 # Double-quote double-evaled strings.
17626 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17627 ;;
17628 *)
17629 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17630 ;;
17631 esac
17632 done
17633
17634 case $lt_echo in
17635 *'\$0 --fallback-echo"')
17636 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17637 ;;
17638 esac
17639
17640 cfgfile="$ofile"
17641
17642 cat <<__EOF__ >> "$cfgfile"
17643 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17644
17645 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17646
17647 # Shell to use when invoking shell scripts.
17648 SHELL=$lt_SHELL
17649
17650 # Whether or not to build shared libraries.
17651 build_libtool_libs=$enable_shared
17652
17653 # Whether or not to build static libraries.
17654 build_old_libs=$enable_static
17655
17656 # Whether or not to add -lc for building shared libraries.
17657 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17658
17659 # Whether or not to disallow shared libs when runtime libs are static
17660 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17661
17662 # Whether or not to optimize for fast installation.
17663 fast_install=$enable_fast_install
17664
17665 # The host system.
17666 host_alias=$host_alias
17667 host=$host
17668
17669 # An echo program that does not interpret backslashes.
17670 echo=$lt_echo
17671
17672 # The archiver.
17673 AR=$lt_AR
17674 AR_FLAGS=$lt_AR_FLAGS
17675
17676 # A C compiler.
17677 LTCC=$lt_LTCC
17678
17679 # A language-specific compiler.
17680 CC=$lt_compiler_GCJ
17681
17682 # Is the compiler the GNU C compiler?
17683 with_gcc=$GCC_GCJ
17684
17685 # An ERE matcher.
17686 EGREP=$lt_EGREP
17687
17688 # The linker used to build libraries.
17689 LD=$lt_LD_GCJ
17690
17691 # Whether we need hard or soft links.
17692 LN_S=$lt_LN_S
17693
17694 # A BSD-compatible nm program.
17695 NM=$lt_NM
17696
17697 # A symbol stripping program
17698 STRIP=$lt_STRIP
17699
17700 # Used to examine libraries when file_magic_cmd begins "file"
17701 MAGIC_CMD=$MAGIC_CMD
17702
17703 # Used on cygwin: DLL creation program.
17704 DLLTOOL="$DLLTOOL"
17705
17706 # Used on cygwin: object dumper.
17707 OBJDUMP="$OBJDUMP"
17708
17709 # Used on cygwin: assembler.
17710 AS="$AS"
17711
17712 # The name of the directory that contains temporary libtool files.
17713 objdir=$objdir
17714
17715 # How to create reloadable object files.
17716 reload_flag=$lt_reload_flag
17717 reload_cmds=$lt_reload_cmds
17718
17719 # How to pass a linker flag through the compiler.
17720 wl=$lt_lt_prog_compiler_wl_GCJ
17721
17722 # Object file suffix (normally "o").
17723 objext="$ac_objext"
17724
17725 # Old archive suffix (normally "a").
17726 libext="$libext"
17727
17728 # Shared library suffix (normally ".so").
17729 shrext_cmds='$shrext_cmds'
17730
17731 # Executable file suffix (normally "").
17732 exeext="$exeext"
17733
17734 # Additional compiler flags for building library objects.
17735 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17736 pic_mode=$pic_mode
17737
17738 # What is the maximum length of a command?
17739 max_cmd_len=$lt_cv_sys_max_cmd_len
17740
17741 # Does compiler simultaneously support -c and -o options?
17742 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17743
17744 # Must we lock files when doing compilation ?
17745 need_locks=$lt_need_locks
17746
17747 # Do we need the lib prefix for modules?
17748 need_lib_prefix=$need_lib_prefix
17749
17750 # Do we need a version for libraries?
17751 need_version=$need_version
17752
17753 # Whether dlopen is supported.
17754 dlopen_support=$enable_dlopen
17755
17756 # Whether dlopen of programs is supported.
17757 dlopen_self=$enable_dlopen_self
17758
17759 # Whether dlopen of statically linked programs is supported.
17760 dlopen_self_static=$enable_dlopen_self_static
17761
17762 # Compiler flag to prevent dynamic linking.
17763 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17764
17765 # Compiler flag to turn off builtin functions.
17766 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17767
17768 # Compiler flag to allow reflexive dlopens.
17769 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17770
17771 # Compiler flag to generate shared objects directly from archives.
17772 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17773
17774 # Compiler flag to generate thread-safe objects.
17775 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17776
17777 # Library versioning type.
17778 version_type=$version_type
17779
17780 # Format of library name prefix.
17781 libname_spec=$lt_libname_spec
17782
17783 # List of archive names. First name is the real one, the rest are links.
17784 # The last name is the one that the linker finds with -lNAME.
17785 library_names_spec=$lt_library_names_spec
17786
17787 # The coded name of the library, if different from the real name.
17788 soname_spec=$lt_soname_spec
17789
17790 # Commands used to build and install an old-style archive.
17791 RANLIB=$lt_RANLIB
17792 old_archive_cmds=$lt_old_archive_cmds_GCJ
17793 old_postinstall_cmds=$lt_old_postinstall_cmds
17794 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17795
17796 # Create an old-style archive from a shared archive.
17797 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17798
17799 # Create a temporary old-style archive to link instead of a shared archive.
17800 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17801
17802 # Commands used to build and install a shared archive.
17803 archive_cmds=$lt_archive_cmds_GCJ
17804 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17805 postinstall_cmds=$lt_postinstall_cmds
17806 postuninstall_cmds=$lt_postuninstall_cmds
17807
17808 # Commands used to build a loadable module (assumed same as above if empty)
17809 module_cmds=$lt_module_cmds_GCJ
17810 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17811
17812 # Commands to strip libraries.
17813 old_striplib=$lt_old_striplib
17814 striplib=$lt_striplib
17815
17816 # Dependencies to place before the objects being linked to create a
17817 # shared library.
17818 predep_objects=$lt_predep_objects_GCJ
17819
17820 # Dependencies to place after the objects being linked to create a
17821 # shared library.
17822 postdep_objects=$lt_postdep_objects_GCJ
17823
17824 # Dependencies to place before the objects being linked to create a
17825 # shared library.
17826 predeps=$lt_predeps_GCJ
17827
17828 # Dependencies to place after the objects being linked to create a
17829 # shared library.
17830 postdeps=$lt_postdeps_GCJ
17831
17832 # The library search path used internally by the compiler when linking
17833 # a shared library.
17834 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17835
17836 # Method to check whether dependent libraries are shared objects.
17837 deplibs_check_method=$lt_deplibs_check_method
17838
17839 # Command to use when deplibs_check_method == file_magic.
17840 file_magic_cmd=$lt_file_magic_cmd
17841
17842 # Flag that allows shared libraries with undefined symbols to be built.
17843 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17844
17845 # Flag that forces no undefined symbols.
17846 no_undefined_flag=$lt_no_undefined_flag_GCJ
17847
17848 # Commands used to finish a libtool library installation in a directory.
17849 finish_cmds=$lt_finish_cmds
17850
17851 # Same as above, but a single script fragment to be evaled but not shown.
17852 finish_eval=$lt_finish_eval
17853
17854 # Take the output of nm and produce a listing of raw symbols and C names.
17855 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17856
17857 # Transform the output of nm in a proper C declaration
17858 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17859
17860 # Transform the output of nm in a C name address pair
17861 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17862
17863 # This is the shared library runtime path variable.
17864 runpath_var=$runpath_var
17865
17866 # This is the shared library path variable.
17867 shlibpath_var=$shlibpath_var
17868
17869 # Is shlibpath searched before the hard-coded library search path?
17870 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17871
17872 # How to hardcode a shared library path into an executable.
17873 hardcode_action=$hardcode_action_GCJ
17874
17875 # Whether we should hardcode library paths into libraries.
17876 hardcode_into_libs=$hardcode_into_libs
17877
17878 # Flag to hardcode \$libdir into a binary during linking.
17879 # This must work even if \$libdir does not exist.
17880 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17881
17882 # If ld is used when linking, flag to hardcode \$libdir into
17883 # a binary during linking. This must work even if \$libdir does
17884 # not exist.
17885 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17886
17887 # Whether we need a single -rpath flag with a separated argument.
17888 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17889
17890 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17891 # resulting binary.
17892 hardcode_direct=$hardcode_direct_GCJ
17893
17894 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17895 # resulting binary.
17896 hardcode_minus_L=$hardcode_minus_L_GCJ
17897
17898 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17899 # the resulting binary.
17900 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17901
17902 # Set to yes if building a shared library automatically hardcodes DIR into the library
17903 # and all subsequent libraries and executables linked against it.
17904 hardcode_automatic=$hardcode_automatic_GCJ
17905
17906 # Variables whose values should be saved in libtool wrapper scripts and
17907 # restored at relink time.
17908 variables_saved_for_relink="$variables_saved_for_relink"
17909
17910 # Whether libtool must link a program against all its dependency libraries.
17911 link_all_deplibs=$link_all_deplibs_GCJ
17912
17913 # Compile-time system search path for libraries
17914 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17915
17916 # Run-time system search path for libraries
17917 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17918
17919 # Fix the shell variable \$srcfile for the compiler.
17920 fix_srcfile_path="$fix_srcfile_path_GCJ"
17921
17922 # Set to yes if exported symbols are required.
17923 always_export_symbols=$always_export_symbols_GCJ
17924
17925 # The commands to list exported symbols.
17926 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17927
17928 # The commands to extract the exported symbol list from a shared archive.
17929 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17930
17931 # Symbols that should not be listed in the preloaded symbols.
17932 exclude_expsyms=$lt_exclude_expsyms_GCJ
17933
17934 # Symbols that must always be exported.
17935 include_expsyms=$lt_include_expsyms_GCJ
17936
17937 # ### END LIBTOOL TAG CONFIG: $tagname
17938
17939 __EOF__
17940
17941
17942 else
17943 # If there is no Makefile yet, we rely on a make rule to execute
17944 # `config.status --recheck' to rerun these tests and create the
17945 # libtool script then.
17946 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17947 if test -f "$ltmain_in"; then
17948 test -f Makefile && make "$ltmain"
17949 fi
17950 fi
17951
17952
17953 ac_ext=c
17954 ac_cpp='$CPP $CPPFLAGS'
17955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17958
17959 CC="$lt_save_CC"
17960
17961 else
17962 tagname=""
17963 fi
17964 ;;
17965
17966 RC)
17967
17968
17969
17970 # Source file extension for RC test sources.
17971 ac_ext=rc
17972
17973 # Object file extension for compiled RC test sources.
17974 objext=o
17975 objext_RC=$objext
17976
17977 # Code to be used in simple compile tests
17978 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17979
17980 # Code to be used in simple link tests
17981 lt_simple_link_test_code="$lt_simple_compile_test_code"
17982
17983 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17984
17985 # If no C compiler was specified, use CC.
17986 LTCC=${LTCC-"$CC"}
17987
17988 # Allow CC to be a program name with arguments.
17989 compiler=$CC
17990
17991
17992 # Allow CC to be a program name with arguments.
17993 lt_save_CC="$CC"
17994 CC=${RC-"windres"}
17995 compiler=$CC
17996 compiler_RC=$CC
17997 lt_cv_prog_compiler_c_o_RC=yes
17998
17999 # The else clause should only fire when bootstrapping the
18000 # libtool distribution, otherwise you forgot to ship ltmain.sh
18001 # with your package, and you will get complaints that there are
18002 # no rules to generate ltmain.sh.
18003 if test -f "$ltmain"; then
18004 # See if we are running on zsh, and set the options which allow our commands through
18005 # without removal of \ escapes.
18006 if test -n "${ZSH_VERSION+set}" ; then
18007 setopt NO_GLOB_SUBST
18008 fi
18009 # Now quote all the things that may contain metacharacters while being
18010 # careful not to overquote the AC_SUBSTed values. We take copies of the
18011 # variables and quote the copies for generation of the libtool script.
18012 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18013 SED SHELL STRIP \
18014 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18015 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18016 deplibs_check_method reload_flag reload_cmds need_locks \
18017 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18018 lt_cv_sys_global_symbol_to_c_name_address \
18019 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18020 old_postinstall_cmds old_postuninstall_cmds \
18021 compiler_RC \
18022 CC_RC \
18023 LD_RC \
18024 lt_prog_compiler_wl_RC \
18025 lt_prog_compiler_pic_RC \
18026 lt_prog_compiler_static_RC \
18027 lt_prog_compiler_no_builtin_flag_RC \
18028 export_dynamic_flag_spec_RC \
18029 thread_safe_flag_spec_RC \
18030 whole_archive_flag_spec_RC \
18031 enable_shared_with_static_runtimes_RC \
18032 old_archive_cmds_RC \
18033 old_archive_from_new_cmds_RC \
18034 predep_objects_RC \
18035 postdep_objects_RC \
18036 predeps_RC \
18037 postdeps_RC \
18038 compiler_lib_search_path_RC \
18039 archive_cmds_RC \
18040 archive_expsym_cmds_RC \
18041 postinstall_cmds_RC \
18042 postuninstall_cmds_RC \
18043 old_archive_from_expsyms_cmds_RC \
18044 allow_undefined_flag_RC \
18045 no_undefined_flag_RC \
18046 export_symbols_cmds_RC \
18047 hardcode_libdir_flag_spec_RC \
18048 hardcode_libdir_flag_spec_ld_RC \
18049 hardcode_libdir_separator_RC \
18050 hardcode_automatic_RC \
18051 module_cmds_RC \
18052 module_expsym_cmds_RC \
18053 lt_cv_prog_compiler_c_o_RC \
18054 exclude_expsyms_RC \
18055 include_expsyms_RC; do
18056
18057 case $var in
18058 old_archive_cmds_RC | \
18059 old_archive_from_new_cmds_RC | \
18060 archive_cmds_RC | \
18061 archive_expsym_cmds_RC | \
18062 module_cmds_RC | \
18063 module_expsym_cmds_RC | \
18064 old_archive_from_expsyms_cmds_RC | \
18065 export_symbols_cmds_RC | \
18066 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18067 postinstall_cmds | postuninstall_cmds | \
18068 old_postinstall_cmds | old_postuninstall_cmds | \
18069 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18070 # Double-quote double-evaled strings.
18071 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18072 ;;
18073 *)
18074 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18075 ;;
18076 esac
18077 done
18078
18079 case $lt_echo in
18080 *'\$0 --fallback-echo"')
18081 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18082 ;;
18083 esac
18084
18085 cfgfile="$ofile"
18086
18087 cat <<__EOF__ >> "$cfgfile"
18088 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18089
18090 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18091
18092 # Shell to use when invoking shell scripts.
18093 SHELL=$lt_SHELL
18094
18095 # Whether or not to build shared libraries.
18096 build_libtool_libs=$enable_shared
18097
18098 # Whether or not to build static libraries.
18099 build_old_libs=$enable_static
18100
18101 # Whether or not to add -lc for building shared libraries.
18102 build_libtool_need_lc=$archive_cmds_need_lc_RC
18103
18104 # Whether or not to disallow shared libs when runtime libs are static
18105 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18106
18107 # Whether or not to optimize for fast installation.
18108 fast_install=$enable_fast_install
18109
18110 # The host system.
18111 host_alias=$host_alias
18112 host=$host
18113
18114 # An echo program that does not interpret backslashes.
18115 echo=$lt_echo
18116
18117 # The archiver.
18118 AR=$lt_AR
18119 AR_FLAGS=$lt_AR_FLAGS
18120
18121 # A C compiler.
18122 LTCC=$lt_LTCC
18123
18124 # A language-specific compiler.
18125 CC=$lt_compiler_RC
18126
18127 # Is the compiler the GNU C compiler?
18128 with_gcc=$GCC_RC
18129
18130 # An ERE matcher.
18131 EGREP=$lt_EGREP
18132
18133 # The linker used to build libraries.
18134 LD=$lt_LD_RC
18135
18136 # Whether we need hard or soft links.
18137 LN_S=$lt_LN_S
18138
18139 # A BSD-compatible nm program.
18140 NM=$lt_NM
18141
18142 # A symbol stripping program
18143 STRIP=$lt_STRIP
18144
18145 # Used to examine libraries when file_magic_cmd begins "file"
18146 MAGIC_CMD=$MAGIC_CMD
18147
18148 # Used on cygwin: DLL creation program.
18149 DLLTOOL="$DLLTOOL"
18150
18151 # Used on cygwin: object dumper.
18152 OBJDUMP="$OBJDUMP"
18153
18154 # Used on cygwin: assembler.
18155 AS="$AS"
18156
18157 # The name of the directory that contains temporary libtool files.
18158 objdir=$objdir
18159
18160 # How to create reloadable object files.
18161 reload_flag=$lt_reload_flag
18162 reload_cmds=$lt_reload_cmds
18163
18164 # How to pass a linker flag through the compiler.
18165 wl=$lt_lt_prog_compiler_wl_RC
18166
18167 # Object file suffix (normally "o").
18168 objext="$ac_objext"
18169
18170 # Old archive suffix (normally "a").
18171 libext="$libext"
18172
18173 # Shared library suffix (normally ".so").
18174 shrext_cmds='$shrext_cmds'
18175
18176 # Executable file suffix (normally "").
18177 exeext="$exeext"
18178
18179 # Additional compiler flags for building library objects.
18180 pic_flag=$lt_lt_prog_compiler_pic_RC
18181 pic_mode=$pic_mode
18182
18183 # What is the maximum length of a command?
18184 max_cmd_len=$lt_cv_sys_max_cmd_len
18185
18186 # Does compiler simultaneously support -c and -o options?
18187 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18188
18189 # Must we lock files when doing compilation ?
18190 need_locks=$lt_need_locks
18191
18192 # Do we need the lib prefix for modules?
18193 need_lib_prefix=$need_lib_prefix
18194
18195 # Do we need a version for libraries?
18196 need_version=$need_version
18197
18198 # Whether dlopen is supported.
18199 dlopen_support=$enable_dlopen
18200
18201 # Whether dlopen of programs is supported.
18202 dlopen_self=$enable_dlopen_self
18203
18204 # Whether dlopen of statically linked programs is supported.
18205 dlopen_self_static=$enable_dlopen_self_static
18206
18207 # Compiler flag to prevent dynamic linking.
18208 link_static_flag=$lt_lt_prog_compiler_static_RC
18209
18210 # Compiler flag to turn off builtin functions.
18211 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18212
18213 # Compiler flag to allow reflexive dlopens.
18214 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18215
18216 # Compiler flag to generate shared objects directly from archives.
18217 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18218
18219 # Compiler flag to generate thread-safe objects.
18220 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18221
18222 # Library versioning type.
18223 version_type=$version_type
18224
18225 # Format of library name prefix.
18226 libname_spec=$lt_libname_spec
18227
18228 # List of archive names. First name is the real one, the rest are links.
18229 # The last name is the one that the linker finds with -lNAME.
18230 library_names_spec=$lt_library_names_spec
18231
18232 # The coded name of the library, if different from the real name.
18233 soname_spec=$lt_soname_spec
18234
18235 # Commands used to build and install an old-style archive.
18236 RANLIB=$lt_RANLIB
18237 old_archive_cmds=$lt_old_archive_cmds_RC
18238 old_postinstall_cmds=$lt_old_postinstall_cmds
18239 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18240
18241 # Create an old-style archive from a shared archive.
18242 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18243
18244 # Create a temporary old-style archive to link instead of a shared archive.
18245 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18246
18247 # Commands used to build and install a shared archive.
18248 archive_cmds=$lt_archive_cmds_RC
18249 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18250 postinstall_cmds=$lt_postinstall_cmds
18251 postuninstall_cmds=$lt_postuninstall_cmds
18252
18253 # Commands used to build a loadable module (assumed same as above if empty)
18254 module_cmds=$lt_module_cmds_RC
18255 module_expsym_cmds=$lt_module_expsym_cmds_RC
18256
18257 # Commands to strip libraries.
18258 old_striplib=$lt_old_striplib
18259 striplib=$lt_striplib
18260
18261 # Dependencies to place before the objects being linked to create a
18262 # shared library.
18263 predep_objects=$lt_predep_objects_RC
18264
18265 # Dependencies to place after the objects being linked to create a
18266 # shared library.
18267 postdep_objects=$lt_postdep_objects_RC
18268
18269 # Dependencies to place before the objects being linked to create a
18270 # shared library.
18271 predeps=$lt_predeps_RC
18272
18273 # Dependencies to place after the objects being linked to create a
18274 # shared library.
18275 postdeps=$lt_postdeps_RC
18276
18277 # The library search path used internally by the compiler when linking
18278 # a shared library.
18279 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18280
18281 # Method to check whether dependent libraries are shared objects.
18282 deplibs_check_method=$lt_deplibs_check_method
18283
18284 # Command to use when deplibs_check_method == file_magic.
18285 file_magic_cmd=$lt_file_magic_cmd
18286
18287 # Flag that allows shared libraries with undefined symbols to be built.
18288 allow_undefined_flag=$lt_allow_undefined_flag_RC
18289
18290 # Flag that forces no undefined symbols.
18291 no_undefined_flag=$lt_no_undefined_flag_RC
18292
18293 # Commands used to finish a libtool library installation in a directory.
18294 finish_cmds=$lt_finish_cmds
18295
18296 # Same as above, but a single script fragment to be evaled but not shown.
18297 finish_eval=$lt_finish_eval
18298
18299 # Take the output of nm and produce a listing of raw symbols and C names.
18300 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18301
18302 # Transform the output of nm in a proper C declaration
18303 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18304
18305 # Transform the output of nm in a C name address pair
18306 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18307
18308 # This is the shared library runtime path variable.
18309 runpath_var=$runpath_var
18310
18311 # This is the shared library path variable.
18312 shlibpath_var=$shlibpath_var
18313
18314 # Is shlibpath searched before the hard-coded library search path?
18315 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18316
18317 # How to hardcode a shared library path into an executable.
18318 hardcode_action=$hardcode_action_RC
18319
18320 # Whether we should hardcode library paths into libraries.
18321 hardcode_into_libs=$hardcode_into_libs
18322
18323 # Flag to hardcode \$libdir into a binary during linking.
18324 # This must work even if \$libdir does not exist.
18325 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18326
18327 # If ld is used when linking, flag to hardcode \$libdir into
18328 # a binary during linking. This must work even if \$libdir does
18329 # not exist.
18330 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18331
18332 # Whether we need a single -rpath flag with a separated argument.
18333 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18334
18335 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18336 # resulting binary.
18337 hardcode_direct=$hardcode_direct_RC
18338
18339 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18340 # resulting binary.
18341 hardcode_minus_L=$hardcode_minus_L_RC
18342
18343 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18344 # the resulting binary.
18345 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18346
18347 # Set to yes if building a shared library automatically hardcodes DIR into the library
18348 # and all subsequent libraries and executables linked against it.
18349 hardcode_automatic=$hardcode_automatic_RC
18350
18351 # Variables whose values should be saved in libtool wrapper scripts and
18352 # restored at relink time.
18353 variables_saved_for_relink="$variables_saved_for_relink"
18354
18355 # Whether libtool must link a program against all its dependency libraries.
18356 link_all_deplibs=$link_all_deplibs_RC
18357
18358 # Compile-time system search path for libraries
18359 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18360
18361 # Run-time system search path for libraries
18362 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18363
18364 # Fix the shell variable \$srcfile for the compiler.
18365 fix_srcfile_path="$fix_srcfile_path_RC"
18366
18367 # Set to yes if exported symbols are required.
18368 always_export_symbols=$always_export_symbols_RC
18369
18370 # The commands to list exported symbols.
18371 export_symbols_cmds=$lt_export_symbols_cmds_RC
18372
18373 # The commands to extract the exported symbol list from a shared archive.
18374 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18375
18376 # Symbols that should not be listed in the preloaded symbols.
18377 exclude_expsyms=$lt_exclude_expsyms_RC
18378
18379 # Symbols that must always be exported.
18380 include_expsyms=$lt_include_expsyms_RC
18381
18382 # ### END LIBTOOL TAG CONFIG: $tagname
18383
18384 __EOF__
18385
18386
18387 else
18388 # If there is no Makefile yet, we rely on a make rule to execute
18389 # `config.status --recheck' to rerun these tests and create the
18390 # libtool script then.
18391 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18392 if test -f "$ltmain_in"; then
18393 test -f Makefile && make "$ltmain"
18394 fi
18395 fi
18396
18397
18398 ac_ext=c
18399 ac_cpp='$CPP $CPPFLAGS'
18400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18403
18404 CC="$lt_save_CC"
18405
18406 ;;
18407
18408 *)
18409 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18410 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18411 { (exit 1); exit 1; }; }
18412 ;;
18413 esac
18414
18415 # Append the new tag name to the list of available tags.
18416 if test -n "$tagname" ; then
18417 available_tags="$available_tags $tagname"
18418 fi
18419 fi
18420 done
18421 IFS="$lt_save_ifs"
18422
18423 # Now substitute the updated list of available tags.
18424 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18425 mv "${ofile}T" "$ofile"
18426 chmod +x "$ofile"
18427 else
18428 rm -f "${ofile}T"
18429 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18430 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18431 { (exit 1); exit 1; }; }
18432 fi
18433 fi
18434
18435
18436
18437 # This can be used to rebuild libtool when needed
18438 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18439
18440 # Always use our own libtool.
18441 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18442
18443 # Prevent multiple expansion
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18465 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
18466 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
18467 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
18468 echo $ECHO_N "(cached) $ECHO_C" >&6
18469 else
18470 cat >conftest.make <<\_ACEOF
18471 all:
18472 @echo 'ac_maketemp="$(MAKE)"'
18473 _ACEOF
18474 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18475 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
18476 if test -n "$ac_maketemp"; then
18477 eval ac_cv_prog_make_${ac_make}_set=yes
18478 else
18479 eval ac_cv_prog_make_${ac_make}_set=no
18480 fi
18481 rm -f conftest.make
18482 fi
18483 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18484 echo "$as_me:$LINENO: result: yes" >&5
18485 echo "${ECHO_T}yes" >&6
18486 SET_MAKE=
18487 else
18488 echo "$as_me:$LINENO: result: no" >&5
18489 echo "${ECHO_T}no" >&6
18490 SET_MAKE="MAKE=${MAKE-make}"
18491 fi
18492
18493
18494 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18495 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18496 if test "${ac_cv_header_stdc+set}" = set; then
18497 echo $ECHO_N "(cached) $ECHO_C" >&6
18498 else
18499 cat >conftest.$ac_ext <<_ACEOF
18500 /* confdefs.h. */
18501 _ACEOF
18502 cat confdefs.h >>conftest.$ac_ext
18503 cat >>conftest.$ac_ext <<_ACEOF
18504 /* end confdefs.h. */
18505 #include <stdlib.h>
18506 #include <stdarg.h>
18507 #include <string.h>
18508 #include <float.h>
18509
18510 int
18511 main ()
18512 {
18513
18514 ;
18515 return 0;
18516 }
18517 _ACEOF
18518 rm -f conftest.$ac_objext
18519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18520 (eval $ac_compile) 2>conftest.er1
18521 ac_status=$?
18522 grep -v '^ *+' conftest.er1 >conftest.err
18523 rm -f conftest.er1
18524 cat conftest.err >&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } &&
18527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529 (eval $ac_try) 2>&5
18530 ac_status=$?
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; } &&
18533 { ac_try='test -s conftest.$ac_objext'
18534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18535 (eval $ac_try) 2>&5
18536 ac_status=$?
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); }; }; then
18539 ac_cv_header_stdc=yes
18540 else
18541 echo "$as_me: failed program was:" >&5
18542 sed 's/^/| /' conftest.$ac_ext >&5
18543
18544 ac_cv_header_stdc=no
18545 fi
18546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18547
18548 if test $ac_cv_header_stdc = yes; then
18549 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18550 cat >conftest.$ac_ext <<_ACEOF
18551 /* confdefs.h. */
18552 _ACEOF
18553 cat confdefs.h >>conftest.$ac_ext
18554 cat >>conftest.$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18556 #include <string.h>
18557
18558 _ACEOF
18559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18560 $EGREP "memchr" >/dev/null 2>&1; then
18561 :
18562 else
18563 ac_cv_header_stdc=no
18564 fi
18565 rm -f conftest*
18566
18567 fi
18568
18569 if test $ac_cv_header_stdc = yes; then
18570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18571 cat >conftest.$ac_ext <<_ACEOF
18572 /* confdefs.h. */
18573 _ACEOF
18574 cat confdefs.h >>conftest.$ac_ext
18575 cat >>conftest.$ac_ext <<_ACEOF
18576 /* end confdefs.h. */
18577 #include <stdlib.h>
18578
18579 _ACEOF
18580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18581 $EGREP "free" >/dev/null 2>&1; then
18582 :
18583 else
18584 ac_cv_header_stdc=no
18585 fi
18586 rm -f conftest*
18587
18588 fi
18589
18590 if test $ac_cv_header_stdc = yes; then
18591 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18592 if test "$cross_compiling" = yes; then
18593 :
18594 else
18595 cat >conftest.$ac_ext <<_ACEOF
18596 /* confdefs.h. */
18597 _ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h. */
18601 #include <ctype.h>
18602 #if ((' ' & 0x0FF) == 0x020)
18603 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18604 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18605 #else
18606 # define ISLOWER(c) \
18607 (('a' <= (c) && (c) <= 'i') \
18608 || ('j' <= (c) && (c) <= 'r') \
18609 || ('s' <= (c) && (c) <= 'z'))
18610 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18611 #endif
18612
18613 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18614 int
18615 main ()
18616 {
18617 int i;
18618 for (i = 0; i < 256; i++)
18619 if (XOR (islower (i), ISLOWER (i))
18620 || toupper (i) != TOUPPER (i))
18621 exit(2);
18622 exit (0);
18623 }
18624 _ACEOF
18625 rm -f conftest$ac_exeext
18626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18627 (eval $ac_link) 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18632 (eval $ac_try) 2>&5
18633 ac_status=$?
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; }; then
18636 :
18637 else
18638 echo "$as_me: program exited with status $ac_status" >&5
18639 echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.$ac_ext >&5
18641
18642 ( exit $ac_status )
18643 ac_cv_header_stdc=no
18644 fi
18645 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18646 fi
18647 fi
18648 fi
18649 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18650 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18651 if test $ac_cv_header_stdc = yes; then
18652
18653 cat >>confdefs.h <<\_ACEOF
18654 @%:@define STDC_HEADERS 1
18655 _ACEOF
18656
18657 fi
18658
18659
18660
18661
18662
18663
18664
18665
18666 for ac_header in fcntl.h unistd.h ctype.h sys/types.h sys/stat.h sys/mman.h limits.h
18667 do
18668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18670 echo "$as_me:$LINENO: checking for $ac_header" >&5
18671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18673 echo $ECHO_N "(cached) $ECHO_C" >&6
18674 fi
18675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18677 else
18678 # Is the header compilable?
18679 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18681 cat >conftest.$ac_ext <<_ACEOF
18682 /* confdefs.h. */
18683 _ACEOF
18684 cat confdefs.h >>conftest.$ac_ext
18685 cat >>conftest.$ac_ext <<_ACEOF
18686 /* end confdefs.h. */
18687 $ac_includes_default
18688 @%:@include <$ac_header>
18689 _ACEOF
18690 rm -f conftest.$ac_objext
18691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18692 (eval $ac_compile) 2>conftest.er1
18693 ac_status=$?
18694 grep -v '^ *+' conftest.er1 >conftest.err
18695 rm -f conftest.er1
18696 cat conftest.err >&5
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); } &&
18699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18701 (eval $ac_try) 2>&5
18702 ac_status=$?
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); }; } &&
18705 { ac_try='test -s conftest.$ac_objext'
18706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18707 (eval $ac_try) 2>&5
18708 ac_status=$?
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); }; }; then
18711 ac_header_compiler=yes
18712 else
18713 echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18715
18716 ac_header_compiler=no
18717 fi
18718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18720 echo "${ECHO_T}$ac_header_compiler" >&6
18721
18722 # Is the header present?
18723 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18725 cat >conftest.$ac_ext <<_ACEOF
18726 /* confdefs.h. */
18727 _ACEOF
18728 cat confdefs.h >>conftest.$ac_ext
18729 cat >>conftest.$ac_ext <<_ACEOF
18730 /* end confdefs.h. */
18731 @%:@include <$ac_header>
18732 _ACEOF
18733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18735 ac_status=$?
18736 grep -v '^ *+' conftest.er1 >conftest.err
18737 rm -f conftest.er1
18738 cat conftest.err >&5
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); } >/dev/null; then
18741 if test -s conftest.err; then
18742 ac_cpp_err=$ac_c_preproc_warn_flag
18743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18744 else
18745 ac_cpp_err=
18746 fi
18747 else
18748 ac_cpp_err=yes
18749 fi
18750 if test -z "$ac_cpp_err"; then
18751 ac_header_preproc=yes
18752 else
18753 echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.$ac_ext >&5
18755
18756 ac_header_preproc=no
18757 fi
18758 rm -f conftest.err conftest.$ac_ext
18759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18760 echo "${ECHO_T}$ac_header_preproc" >&6
18761
18762 # So? What about this header?
18763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18764 yes:no: )
18765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18769 ac_header_preproc=yes
18770 ;;
18771 no:yes:* )
18772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18779 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18784 (
18785 cat <<\_ASBOX
18786 @%:@@%:@ ------------------------------------------ @%:@@%:@
18787 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
18788 @%:@@%:@ ------------------------------------------ @%:@@%:@
18789 _ASBOX
18790 ) |
18791 sed "s/^/$as_me: WARNING: /" >&2
18792 ;;
18793 esac
18794 echo "$as_me:$LINENO: checking for $ac_header" >&5
18795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18798 else
18799 eval "$as_ac_Header=\$ac_header_preproc"
18800 fi
18801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18803
18804 fi
18805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18806 cat >>confdefs.h <<_ACEOF
18807 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18808 _ACEOF
18809
18810 fi
18811
18812 done
18813
18814
18815
18816
18817 for ac_header in netdb.h netinet/in.h sys/socket.h
18818 do
18819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18821 echo "$as_me:$LINENO: checking for $ac_header" >&5
18822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18824 echo $ECHO_N "(cached) $ECHO_C" >&6
18825 fi
18826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18828 else
18829 # Is the header compilable?
18830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18832 cat >conftest.$ac_ext <<_ACEOF
18833 /* confdefs.h. */
18834 _ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18838 $ac_includes_default
18839 @%:@include <$ac_header>
18840 _ACEOF
18841 rm -f conftest.$ac_objext
18842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18843 (eval $ac_compile) 2>conftest.er1
18844 ac_status=$?
18845 grep -v '^ *+' conftest.er1 >conftest.err
18846 rm -f conftest.er1
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } &&
18850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; } &&
18856 { ac_try='test -s conftest.$ac_objext'
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862 ac_header_compiler=yes
18863 else
18864 echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.$ac_ext >&5
18866
18867 ac_header_compiler=no
18868 fi
18869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18870 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18871 echo "${ECHO_T}$ac_header_compiler" >&6
18872
18873 # Is the header present?
18874 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18876 cat >conftest.$ac_ext <<_ACEOF
18877 /* confdefs.h. */
18878 _ACEOF
18879 cat confdefs.h >>conftest.$ac_ext
18880 cat >>conftest.$ac_ext <<_ACEOF
18881 /* end confdefs.h. */
18882 @%:@include <$ac_header>
18883 _ACEOF
18884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18886 ac_status=$?
18887 grep -v '^ *+' conftest.er1 >conftest.err
18888 rm -f conftest.er1
18889 cat conftest.err >&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); } >/dev/null; then
18892 if test -s conftest.err; then
18893 ac_cpp_err=$ac_c_preproc_warn_flag
18894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18895 else
18896 ac_cpp_err=
18897 fi
18898 else
18899 ac_cpp_err=yes
18900 fi
18901 if test -z "$ac_cpp_err"; then
18902 ac_header_preproc=yes
18903 else
18904 echo "$as_me: failed program was:" >&5
18905 sed 's/^/| /' conftest.$ac_ext >&5
18906
18907 ac_header_preproc=no
18908 fi
18909 rm -f conftest.err conftest.$ac_ext
18910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18911 echo "${ECHO_T}$ac_header_preproc" >&6
18912
18913 # So? What about this header?
18914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18915 yes:no: )
18916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18920 ac_header_preproc=yes
18921 ;;
18922 no:yes:* )
18923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18930 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18935 (
18936 cat <<\_ASBOX
18937 @%:@@%:@ ------------------------------------------ @%:@@%:@
18938 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
18939 @%:@@%:@ ------------------------------------------ @%:@@%:@
18940 _ASBOX
18941 ) |
18942 sed "s/^/$as_me: WARNING: /" >&2
18943 ;;
18944 esac
18945 echo "$as_me:$LINENO: checking for $ac_header" >&5
18946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18948 echo $ECHO_N "(cached) $ECHO_C" >&6
18949 else
18950 eval "$as_ac_Header=\$ac_header_preproc"
18951 fi
18952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18954
18955 fi
18956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18957 cat >>confdefs.h <<_ACEOF
18958 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18959 _ACEOF
18960
18961 fi
18962
18963 done
18964
18965
18966 for ac_header in sys/param.h
18967 do
18968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18970 echo "$as_me:$LINENO: checking for $ac_header" >&5
18971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18973 echo $ECHO_N "(cached) $ECHO_C" >&6
18974 fi
18975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18977 else
18978 # Is the header compilable?
18979 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18981 cat >conftest.$ac_ext <<_ACEOF
18982 /* confdefs.h. */
18983 _ACEOF
18984 cat confdefs.h >>conftest.$ac_ext
18985 cat >>conftest.$ac_ext <<_ACEOF
18986 /* end confdefs.h. */
18987 $ac_includes_default
18988 @%:@include <$ac_header>
18989 _ACEOF
18990 rm -f conftest.$ac_objext
18991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18992 (eval $ac_compile) 2>conftest.er1
18993 ac_status=$?
18994 grep -v '^ *+' conftest.er1 >conftest.err
18995 rm -f conftest.er1
18996 cat conftest.err >&5
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); } &&
18999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19001 (eval $ac_try) 2>&5
19002 ac_status=$?
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); }; } &&
19005 { ac_try='test -s conftest.$ac_objext'
19006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007 (eval $ac_try) 2>&5
19008 ac_status=$?
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; }; then
19011 ac_header_compiler=yes
19012 else
19013 echo "$as_me: failed program was:" >&5
19014 sed 's/^/| /' conftest.$ac_ext >&5
19015
19016 ac_header_compiler=no
19017 fi
19018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19019 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19020 echo "${ECHO_T}$ac_header_compiler" >&6
19021
19022 # Is the header present?
19023 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19025 cat >conftest.$ac_ext <<_ACEOF
19026 /* confdefs.h. */
19027 _ACEOF
19028 cat confdefs.h >>conftest.$ac_ext
19029 cat >>conftest.$ac_ext <<_ACEOF
19030 /* end confdefs.h. */
19031 @%:@include <$ac_header>
19032 _ACEOF
19033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19035 ac_status=$?
19036 grep -v '^ *+' conftest.er1 >conftest.err
19037 rm -f conftest.er1
19038 cat conftest.err >&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); } >/dev/null; then
19041 if test -s conftest.err; then
19042 ac_cpp_err=$ac_c_preproc_warn_flag
19043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19044 else
19045 ac_cpp_err=
19046 fi
19047 else
19048 ac_cpp_err=yes
19049 fi
19050 if test -z "$ac_cpp_err"; then
19051 ac_header_preproc=yes
19052 else
19053 echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19055
19056 ac_header_preproc=no
19057 fi
19058 rm -f conftest.err conftest.$ac_ext
19059 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19060 echo "${ECHO_T}$ac_header_preproc" >&6
19061
19062 # So? What about this header?
19063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19064 yes:no: )
19065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19069 ac_header_preproc=yes
19070 ;;
19071 no:yes:* )
19072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19076 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19078 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19079 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19082 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19084 (
19085 cat <<\_ASBOX
19086 @%:@@%:@ ------------------------------------------ @%:@@%:@
19087 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
19088 @%:@@%:@ ------------------------------------------ @%:@@%:@
19089 _ASBOX
19090 ) |
19091 sed "s/^/$as_me: WARNING: /" >&2
19092 ;;
19093 esac
19094 echo "$as_me:$LINENO: checking for $ac_header" >&5
19095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19097 echo $ECHO_N "(cached) $ECHO_C" >&6
19098 else
19099 eval "$as_ac_Header=\$ac_header_preproc"
19100 fi
19101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19103
19104 fi
19105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19106 cat >>confdefs.h <<_ACEOF
19107 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19108 _ACEOF
19109
19110 fi
19111
19112 done
19113
19114
19115
19116
19117 for ac_header in stdlib.h unistd.h
19118 do
19119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19121 echo "$as_me:$LINENO: checking for $ac_header" >&5
19122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19124 echo $ECHO_N "(cached) $ECHO_C" >&6
19125 fi
19126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19128 else
19129 # Is the header compilable?
19130 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19132 cat >conftest.$ac_ext <<_ACEOF
19133 /* confdefs.h. */
19134 _ACEOF
19135 cat confdefs.h >>conftest.$ac_ext
19136 cat >>conftest.$ac_ext <<_ACEOF
19137 /* end confdefs.h. */
19138 $ac_includes_default
19139 @%:@include <$ac_header>
19140 _ACEOF
19141 rm -f conftest.$ac_objext
19142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19143 (eval $ac_compile) 2>conftest.er1
19144 ac_status=$?
19145 grep -v '^ *+' conftest.er1 >conftest.err
19146 rm -f conftest.er1
19147 cat conftest.err >&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); } &&
19150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19152 (eval $ac_try) 2>&5
19153 ac_status=$?
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); }; } &&
19156 { ac_try='test -s conftest.$ac_objext'
19157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19158 (eval $ac_try) 2>&5
19159 ac_status=$?
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); }; }; then
19162 ac_header_compiler=yes
19163 else
19164 echo "$as_me: failed program was:" >&5
19165 sed 's/^/| /' conftest.$ac_ext >&5
19166
19167 ac_header_compiler=no
19168 fi
19169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19171 echo "${ECHO_T}$ac_header_compiler" >&6
19172
19173 # Is the header present?
19174 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19176 cat >conftest.$ac_ext <<_ACEOF
19177 /* confdefs.h. */
19178 _ACEOF
19179 cat confdefs.h >>conftest.$ac_ext
19180 cat >>conftest.$ac_ext <<_ACEOF
19181 /* end confdefs.h. */
19182 @%:@include <$ac_header>
19183 _ACEOF
19184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19186 ac_status=$?
19187 grep -v '^ *+' conftest.er1 >conftest.err
19188 rm -f conftest.er1
19189 cat conftest.err >&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); } >/dev/null; then
19192 if test -s conftest.err; then
19193 ac_cpp_err=$ac_c_preproc_warn_flag
19194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19195 else
19196 ac_cpp_err=
19197 fi
19198 else
19199 ac_cpp_err=yes
19200 fi
19201 if test -z "$ac_cpp_err"; then
19202 ac_header_preproc=yes
19203 else
19204 echo "$as_me: failed program was:" >&5
19205 sed 's/^/| /' conftest.$ac_ext >&5
19206
19207 ac_header_preproc=no
19208 fi
19209 rm -f conftest.err conftest.$ac_ext
19210 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19211 echo "${ECHO_T}$ac_header_preproc" >&6
19212
19213 # So? What about this header?
19214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19215 yes:no: )
19216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19220 ac_header_preproc=yes
19221 ;;
19222 no:yes:* )
19223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19235 (
19236 cat <<\_ASBOX
19237 @%:@@%:@ ------------------------------------------ @%:@@%:@
19238 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
19239 @%:@@%:@ ------------------------------------------ @%:@@%:@
19240 _ASBOX
19241 ) |
19242 sed "s/^/$as_me: WARNING: /" >&2
19243 ;;
19244 esac
19245 echo "$as_me:$LINENO: checking for $ac_header" >&5
19246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19248 echo $ECHO_N "(cached) $ECHO_C" >&6
19249 else
19250 eval "$as_ac_Header=\$ac_header_preproc"
19251 fi
19252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19254
19255 fi
19256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19257 cat >>confdefs.h <<_ACEOF
19258 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19259 _ACEOF
19260
19261 fi
19262
19263 done
19264
19265
19266 for ac_func in getpagesize
19267 do
19268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19269 echo "$as_me:$LINENO: checking for $ac_func" >&5
19270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19271 if eval "test \"\${$as_ac_var+set}\" = set"; then
19272 echo $ECHO_N "(cached) $ECHO_C" >&6
19273 else
19274 cat >conftest.$ac_ext <<_ACEOF
19275 /* confdefs.h. */
19276 _ACEOF
19277 cat confdefs.h >>conftest.$ac_ext
19278 cat >>conftest.$ac_ext <<_ACEOF
19279 /* end confdefs.h. */
19280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19282 #define $ac_func innocuous_$ac_func
19283
19284 /* System header to define __stub macros and hopefully few prototypes,
19285 which can conflict with char $ac_func (); below.
19286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19287 <limits.h> exists even on freestanding compilers. */
19288
19289 #ifdef __STDC__
19290 # include <limits.h>
19291 #else
19292 # include <assert.h>
19293 #endif
19294
19295 #undef $ac_func
19296
19297 /* Override any gcc2 internal prototype to avoid an error. */
19298 #ifdef __cplusplus
19299 extern "C"
19300 {
19301 #endif
19302 /* We use char because int might match the return type of a gcc2
19303 builtin and then its argument prototype would still apply. */
19304 char $ac_func ();
19305 /* The GNU C library defines this for functions which it implements
19306 to always fail with ENOSYS. Some functions are actually named
19307 something starting with __ and the normal name is an alias. */
19308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19309 choke me
19310 #else
19311 char (*f) () = $ac_func;
19312 #endif
19313 #ifdef __cplusplus
19314 }
19315 #endif
19316
19317 int
19318 main ()
19319 {
19320 return f != $ac_func;
19321 ;
19322 return 0;
19323 }
19324 _ACEOF
19325 rm -f conftest.$ac_objext conftest$ac_exeext
19326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19327 (eval $ac_link) 2>conftest.er1
19328 ac_status=$?
19329 grep -v '^ *+' conftest.er1 >conftest.err
19330 rm -f conftest.er1
19331 cat conftest.err >&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } &&
19334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19337 ac_status=$?
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; } &&
19340 { ac_try='test -s conftest$ac_exeext'
19341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342 (eval $ac_try) 2>&5
19343 ac_status=$?
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; }; then
19346 eval "$as_ac_var=yes"
19347 else
19348 echo "$as_me: failed program was:" >&5
19349 sed 's/^/| /' conftest.$ac_ext >&5
19350
19351 eval "$as_ac_var=no"
19352 fi
19353 rm -f conftest.err conftest.$ac_objext \
19354 conftest$ac_exeext conftest.$ac_ext
19355 fi
19356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19358 if test `eval echo '${'$as_ac_var'}'` = yes; then
19359 cat >>confdefs.h <<_ACEOF
19360 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19361 _ACEOF
19362
19363 fi
19364 done
19365
19366 echo "$as_me:$LINENO: checking for working mmap" >&5
19367 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
19368 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19369 echo $ECHO_N "(cached) $ECHO_C" >&6
19370 else
19371 if test "$cross_compiling" = yes; then
19372 ac_cv_func_mmap_fixed_mapped=no
19373 else
19374 cat >conftest.$ac_ext <<_ACEOF
19375 /* confdefs.h. */
19376 _ACEOF
19377 cat confdefs.h >>conftest.$ac_ext
19378 cat >>conftest.$ac_ext <<_ACEOF
19379 /* end confdefs.h. */
19380 $ac_includes_default
19381 /* malloc might have been renamed as rpl_malloc. */
19382 #undef malloc
19383
19384 /* Thanks to Mike Haertel and Jim Avera for this test.
19385 Here is a matrix of mmap possibilities:
19386 mmap private not fixed
19387 mmap private fixed at somewhere currently unmapped
19388 mmap private fixed at somewhere already mapped
19389 mmap shared not fixed
19390 mmap shared fixed at somewhere currently unmapped
19391 mmap shared fixed at somewhere already mapped
19392 For private mappings, we should verify that changes cannot be read()
19393 back from the file, nor mmap's back from the file at a different
19394 address. (There have been systems where private was not correctly
19395 implemented like the infamous i386 svr4.0, and systems where the
19396 VM page cache was not coherent with the file system buffer cache
19397 like early versions of FreeBSD and possibly contemporary NetBSD.)
19398 For shared mappings, we should conversely verify that changes get
19399 propagated back to all the places they're supposed to be.
19400
19401 Grep wants private fixed already mapped.
19402 The main things grep needs to know about mmap are:
19403 * does it exist and is it safe to write into the mmap'd area
19404 * how to use it (BSD variants) */
19405
19406 #include <fcntl.h>
19407 #include <sys/mman.h>
19408
19409 #if !STDC_HEADERS && !HAVE_STDLIB_H
19410 char *malloc ();
19411 #endif
19412
19413 /* This mess was copied from the GNU getpagesize.h. */
19414 #if !HAVE_GETPAGESIZE
19415 /* Assume that all systems that can run configure have sys/param.h. */
19416 # if !HAVE_SYS_PARAM_H
19417 # define HAVE_SYS_PARAM_H 1
19418 # endif
19419
19420 # ifdef _SC_PAGESIZE
19421 # define getpagesize() sysconf(_SC_PAGESIZE)
19422 # else /* no _SC_PAGESIZE */
19423 # if HAVE_SYS_PARAM_H
19424 # include <sys/param.h>
19425 # ifdef EXEC_PAGESIZE
19426 # define getpagesize() EXEC_PAGESIZE
19427 # else /* no EXEC_PAGESIZE */
19428 # ifdef NBPG
19429 # define getpagesize() NBPG * CLSIZE
19430 # ifndef CLSIZE
19431 # define CLSIZE 1
19432 # endif /* no CLSIZE */
19433 # else /* no NBPG */
19434 # ifdef NBPC
19435 # define getpagesize() NBPC
19436 # else /* no NBPC */
19437 # ifdef PAGESIZE
19438 # define getpagesize() PAGESIZE
19439 # endif /* PAGESIZE */
19440 # endif /* no NBPC */
19441 # endif /* no NBPG */
19442 # endif /* no EXEC_PAGESIZE */
19443 # else /* no HAVE_SYS_PARAM_H */
19444 # define getpagesize() 8192 /* punt totally */
19445 # endif /* no HAVE_SYS_PARAM_H */
19446 # endif /* no _SC_PAGESIZE */
19447
19448 #endif /* no HAVE_GETPAGESIZE */
19449
19450 int
19451 main ()
19452 {
19453 char *data, *data2, *data3;
19454 int i, pagesize;
19455 int fd;
19456
19457 pagesize = getpagesize ();
19458
19459 /* First, make a file with some known garbage in it. */
19460 data = (char *) malloc (pagesize);
19461 if (!data)
19462 exit (1);
19463 for (i = 0; i < pagesize; ++i)
19464 *(data + i) = rand ();
19465 umask (0);
19466 fd = creat ("conftest.mmap", 0600);
19467 if (fd < 0)
19468 exit (1);
19469 if (write (fd, data, pagesize) != pagesize)
19470 exit (1);
19471 close (fd);
19472
19473 /* Next, try to mmap the file at a fixed address which already has
19474 something else allocated at it. If we can, also make sure that
19475 we see the same garbage. */
19476 fd = open ("conftest.mmap", O_RDWR);
19477 if (fd < 0)
19478 exit (1);
19479 data2 = (char *) malloc (2 * pagesize);
19480 if (!data2)
19481 exit (1);
19482 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
19483 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19484 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19485 exit (1);
19486 for (i = 0; i < pagesize; ++i)
19487 if (*(data + i) != *(data2 + i))
19488 exit (1);
19489
19490 /* Finally, make sure that changes to the mapped area do not
19491 percolate back to the file as seen by read(). (This is a bug on
19492 some variants of i386 svr4.0.) */
19493 for (i = 0; i < pagesize; ++i)
19494 *(data2 + i) = *(data2 + i) + 1;
19495 data3 = (char *) malloc (pagesize);
19496 if (!data3)
19497 exit (1);
19498 if (read (fd, data3, pagesize) != pagesize)
19499 exit (1);
19500 for (i = 0; i < pagesize; ++i)
19501 if (*(data + i) != *(data3 + i))
19502 exit (1);
19503 close (fd);
19504 exit (0);
19505 }
19506 _ACEOF
19507 rm -f conftest$ac_exeext
19508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19509 (eval $ac_link) 2>&5
19510 ac_status=$?
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; }; then
19518 ac_cv_func_mmap_fixed_mapped=yes
19519 else
19520 echo "$as_me: program exited with status $ac_status" >&5
19521 echo "$as_me: failed program was:" >&5
19522 sed 's/^/| /' conftest.$ac_ext >&5
19523
19524 ( exit $ac_status )
19525 ac_cv_func_mmap_fixed_mapped=no
19526 fi
19527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19528 fi
19529 fi
19530 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19531 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
19532 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19533
19534 cat >>confdefs.h <<\_ACEOF
19535 @%:@define HAVE_MMAP 1
19536 _ACEOF
19537
19538 fi
19539 rm -f conftest.mmap
19540
19541
19542 echo "$as_me:$LINENO: checking for connect" >&5
19543 echo $ECHO_N "checking for connect... $ECHO_C" >&6
19544 if test "${ac_cv_func_connect+set}" = set; then
19545 echo $ECHO_N "(cached) $ECHO_C" >&6
19546 else
19547 cat >conftest.$ac_ext <<_ACEOF
19548 /* confdefs.h. */
19549 _ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h. */
19553 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19555 #define connect innocuous_connect
19556
19557 /* System header to define __stub macros and hopefully few prototypes,
19558 which can conflict with char connect (); below.
19559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19560 <limits.h> exists even on freestanding compilers. */
19561
19562 #ifdef __STDC__
19563 # include <limits.h>
19564 #else
19565 # include <assert.h>
19566 #endif
19567
19568 #undef connect
19569
19570 /* Override any gcc2 internal prototype to avoid an error. */
19571 #ifdef __cplusplus
19572 extern "C"
19573 {
19574 #endif
19575 /* We use char because int might match the return type of a gcc2
19576 builtin and then its argument prototype would still apply. */
19577 char connect ();
19578 /* The GNU C library defines this for functions which it implements
19579 to always fail with ENOSYS. Some functions are actually named
19580 something starting with __ and the normal name is an alias. */
19581 #if defined (__stub_connect) || defined (__stub___connect)
19582 choke me
19583 #else
19584 char (*f) () = connect;
19585 #endif
19586 #ifdef __cplusplus
19587 }
19588 #endif
19589
19590 int
19591 main ()
19592 {
19593 return f != connect;
19594 ;
19595 return 0;
19596 }
19597 _ACEOF
19598 rm -f conftest.$ac_objext conftest$ac_exeext
19599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19600 (eval $ac_link) 2>conftest.er1
19601 ac_status=$?
19602 grep -v '^ *+' conftest.er1 >conftest.err
19603 rm -f conftest.er1
19604 cat conftest.err >&5
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); } &&
19607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609 (eval $ac_try) 2>&5
19610 ac_status=$?
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; } &&
19613 { ac_try='test -s conftest$ac_exeext'
19614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19615 (eval $ac_try) 2>&5
19616 ac_status=$?
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); }; }; then
19619 ac_cv_func_connect=yes
19620 else
19621 echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19623
19624 ac_cv_func_connect=no
19625 fi
19626 rm -f conftest.err conftest.$ac_objext \
19627 conftest$ac_exeext conftest.$ac_ext
19628 fi
19629 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19630 echo "${ECHO_T}$ac_cv_func_connect" >&6
19631 if test $ac_cv_func_connect = yes; then
19632 checksocket=no
19633 else
19634 checksocket=yes
19635 fi
19636
19637 if test "x$checksocket" = "xyes"; then
19638 case "x$LIBS" in
19639 *-lsocket*);;
19640 *)
19641 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19642 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
19643 if test "${ac_cv_lib_socket_connect+set}" = set; then
19644 echo $ECHO_N "(cached) $ECHO_C" >&6
19645 else
19646 ac_check_lib_save_LIBS=$LIBS
19647 LIBS="-lsocket $LIBS"
19648 cat >conftest.$ac_ext <<_ACEOF
19649 /* confdefs.h. */
19650 _ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h. */
19654
19655 /* Override any gcc2 internal prototype to avoid an error. */
19656 #ifdef __cplusplus
19657 extern "C"
19658 #endif
19659 /* We use char because int might match the return type of a gcc2
19660 builtin and then its argument prototype would still apply. */
19661 char connect ();
19662 int
19663 main ()
19664 {
19665 connect ();
19666 ;
19667 return 0;
19668 }
19669 _ACEOF
19670 rm -f conftest.$ac_objext conftest$ac_exeext
19671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19672 (eval $ac_link) 2>conftest.er1
19673 ac_status=$?
19674 grep -v '^ *+' conftest.er1 >conftest.err
19675 rm -f conftest.er1
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } &&
19679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19681 (eval $ac_try) 2>&5
19682 ac_status=$?
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); }; } &&
19685 { ac_try='test -s conftest$ac_exeext'
19686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19687 (eval $ac_try) 2>&5
19688 ac_status=$?
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); }; }; then
19691 ac_cv_lib_socket_connect=yes
19692 else
19693 echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19695
19696 ac_cv_lib_socket_connect=no
19697 fi
19698 rm -f conftest.err conftest.$ac_objext \
19699 conftest$ac_exeext conftest.$ac_ext
19700 LIBS=$ac_check_lib_save_LIBS
19701 fi
19702 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19703 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
19704 if test $ac_cv_lib_socket_connect = yes; then
19705 cat >>confdefs.h <<_ACEOF
19706 @%:@define HAVE_LIBSOCKET 1
19707 _ACEOF
19708
19709 LIBS="-lsocket $LIBS"
19710
19711 fi
19712 ;;
19713 esac
19714 fi
19715 echo "$as_me:$LINENO: checking for inet_ntoa" >&5
19716 echo $ECHO_N "checking for inet_ntoa... $ECHO_C" >&6
19717 if test "${ac_cv_func_inet_ntoa+set}" = set; then
19718 echo $ECHO_N "(cached) $ECHO_C" >&6
19719 else
19720 cat >conftest.$ac_ext <<_ACEOF
19721 /* confdefs.h. */
19722 _ACEOF
19723 cat confdefs.h >>conftest.$ac_ext
19724 cat >>conftest.$ac_ext <<_ACEOF
19725 /* end confdefs.h. */
19726 /* Define inet_ntoa to an innocuous variant, in case <limits.h> declares inet_ntoa.
19727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19728 #define inet_ntoa innocuous_inet_ntoa
19729
19730 /* System header to define __stub macros and hopefully few prototypes,
19731 which can conflict with char inet_ntoa (); below.
19732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19733 <limits.h> exists even on freestanding compilers. */
19734
19735 #ifdef __STDC__
19736 # include <limits.h>
19737 #else
19738 # include <assert.h>
19739 #endif
19740
19741 #undef inet_ntoa
19742
19743 /* Override any gcc2 internal prototype to avoid an error. */
19744 #ifdef __cplusplus
19745 extern "C"
19746 {
19747 #endif
19748 /* We use char because int might match the return type of a gcc2
19749 builtin and then its argument prototype would still apply. */
19750 char inet_ntoa ();
19751 /* The GNU C library defines this for functions which it implements
19752 to always fail with ENOSYS. Some functions are actually named
19753 something starting with __ and the normal name is an alias. */
19754 #if defined (__stub_inet_ntoa) || defined (__stub___inet_ntoa)
19755 choke me
19756 #else
19757 char (*f) () = inet_ntoa;
19758 #endif
19759 #ifdef __cplusplus
19760 }
19761 #endif
19762
19763 int
19764 main ()
19765 {
19766 return f != inet_ntoa;
19767 ;
19768 return 0;
19769 }
19770 _ACEOF
19771 rm -f conftest.$ac_objext conftest$ac_exeext
19772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19773 (eval $ac_link) 2>conftest.er1
19774 ac_status=$?
19775 grep -v '^ *+' conftest.er1 >conftest.err
19776 rm -f conftest.er1
19777 cat conftest.err >&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } &&
19780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try='test -s conftest$ac_exeext'
19787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19788 (eval $ac_try) 2>&5
19789 ac_status=$?
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; }; then
19792 ac_cv_func_inet_ntoa=yes
19793 else
19794 echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19796
19797 ac_cv_func_inet_ntoa=no
19798 fi
19799 rm -f conftest.err conftest.$ac_objext \
19800 conftest$ac_exeext conftest.$ac_ext
19801 fi
19802 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntoa" >&5
19803 echo "${ECHO_T}$ac_cv_func_inet_ntoa" >&6
19804 if test $ac_cv_func_inet_ntoa = yes; then
19805 checknsl=no
19806 else
19807 checknsl=yes
19808 fi
19809
19810 if test "x$checknsl" = "xyes"; then
19811 case "x$LIBS" in
19812 *-lnsl*);;
19813 *)
19814 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
19815 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
19816 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
19817 echo $ECHO_N "(cached) $ECHO_C" >&6
19818 else
19819 ac_check_lib_save_LIBS=$LIBS
19820 LIBS="-lnsl $LIBS"
19821 cat >conftest.$ac_ext <<_ACEOF
19822 /* confdefs.h. */
19823 _ACEOF
19824 cat confdefs.h >>conftest.$ac_ext
19825 cat >>conftest.$ac_ext <<_ACEOF
19826 /* end confdefs.h. */
19827
19828 /* Override any gcc2 internal prototype to avoid an error. */
19829 #ifdef __cplusplus
19830 extern "C"
19831 #endif
19832 /* We use char because int might match the return type of a gcc2
19833 builtin and then its argument prototype would still apply. */
19834 char inet_ntoa ();
19835 int
19836 main ()
19837 {
19838 inet_ntoa ();
19839 ;
19840 return 0;
19841 }
19842 _ACEOF
19843 rm -f conftest.$ac_objext conftest$ac_exeext
19844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19845 (eval $ac_link) 2>conftest.er1
19846 ac_status=$?
19847 grep -v '^ *+' conftest.er1 >conftest.err
19848 rm -f conftest.er1
19849 cat conftest.err >&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); } &&
19852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19854 (eval $ac_try) 2>&5
19855 ac_status=$?
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); }; } &&
19858 { ac_try='test -s conftest$ac_exeext'
19859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19860 (eval $ac_try) 2>&5
19861 ac_status=$?
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); }; }; then
19864 ac_cv_lib_nsl_inet_ntoa=yes
19865 else
19866 echo "$as_me: failed program was:" >&5
19867 sed 's/^/| /' conftest.$ac_ext >&5
19868
19869 ac_cv_lib_nsl_inet_ntoa=no
19870 fi
19871 rm -f conftest.err conftest.$ac_objext \
19872 conftest$ac_exeext conftest.$ac_ext
19873 LIBS=$ac_check_lib_save_LIBS
19874 fi
19875 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
19876 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
19877 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
19878 cat >>confdefs.h <<_ACEOF
19879 @%:@define HAVE_LIBNSL 1
19880 _ACEOF
19881
19882 LIBS="-lnsl $LIBS"
19883
19884 fi
19885 ;;
19886 esac
19887 fi
19888
19889
19890 # Check whether --with-openssl or --without-openssl was given.
19891 if test "${with_openssl+set}" = set; then
19892 withval="$with_openssl"
19893
19894 else
19895 with_openssl=yes
19896 fi;
19897 if test "x$with_openssl" != "xno"; then
19898 OCPPFLAGS="$CPPFLAGS"
19899 OLDFLAGS="$LDFLAGS"
19900 if test "x$with_openssl" != "xyes" ; then
19901 CPPFLAGS="$CPPFLAGS -I$with_openssl/include"
19902 LDFLAGS="$LDFLAGS -L$with_openssl/lib"
19903 fi
19904 with_openssl=no
19905 SSLLIBS=""
19906 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
19907 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
19908 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
19909 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
19910 echo $ECHO_N "(cached) $ECHO_C" >&6
19911 fi
19912 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
19913 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
19914 else
19915 # Is the header compilable?
19916 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
19917 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
19918 cat >conftest.$ac_ext <<_ACEOF
19919 /* confdefs.h. */
19920 _ACEOF
19921 cat confdefs.h >>conftest.$ac_ext
19922 cat >>conftest.$ac_ext <<_ACEOF
19923 /* end confdefs.h. */
19924 $ac_includes_default
19925 @%:@include <openssl/ssl.h>
19926 _ACEOF
19927 rm -f conftest.$ac_objext
19928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19929 (eval $ac_compile) 2>conftest.er1
19930 ac_status=$?
19931 grep -v '^ *+' conftest.er1 >conftest.err
19932 rm -f conftest.er1
19933 cat conftest.err >&5
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); } &&
19936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19938 (eval $ac_try) 2>&5
19939 ac_status=$?
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); }; } &&
19942 { ac_try='test -s conftest.$ac_objext'
19943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19944 (eval $ac_try) 2>&5
19945 ac_status=$?
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); }; }; then
19948 ac_header_compiler=yes
19949 else
19950 echo "$as_me: failed program was:" >&5
19951 sed 's/^/| /' conftest.$ac_ext >&5
19952
19953 ac_header_compiler=no
19954 fi
19955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19957 echo "${ECHO_T}$ac_header_compiler" >&6
19958
19959 # Is the header present?
19960 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
19961 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
19962 cat >conftest.$ac_ext <<_ACEOF
19963 /* confdefs.h. */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19968 @%:@include <openssl/ssl.h>
19969 _ACEOF
19970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19972 ac_status=$?
19973 grep -v '^ *+' conftest.er1 >conftest.err
19974 rm -f conftest.er1
19975 cat conftest.err >&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); } >/dev/null; then
19978 if test -s conftest.err; then
19979 ac_cpp_err=$ac_c_preproc_warn_flag
19980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19981 else
19982 ac_cpp_err=
19983 fi
19984 else
19985 ac_cpp_err=yes
19986 fi
19987 if test -z "$ac_cpp_err"; then
19988 ac_header_preproc=yes
19989 else
19990 echo "$as_me: failed program was:" >&5
19991 sed 's/^/| /' conftest.$ac_ext >&5
19992
19993 ac_header_preproc=no
19994 fi
19995 rm -f conftest.err conftest.$ac_ext
19996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19997 echo "${ECHO_T}$ac_header_preproc" >&6
19998
19999 # So? What about this header?
20000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20001 yes:no: )
20002 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20003 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20004 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
20005 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
20006 ac_header_preproc=yes
20007 ;;
20008 no:yes:* )
20009 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
20010 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
20011 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
20012 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
20013 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
20014 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
20015 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
20016 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20017 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
20018 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
20019 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
20020 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
20021 (
20022 cat <<\_ASBOX
20023 @%:@@%:@ ------------------------------------------ @%:@@%:@
20024 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
20025 @%:@@%:@ ------------------------------------------ @%:@@%:@
20026 _ASBOX
20027 ) |
20028 sed "s/^/$as_me: WARNING: /" >&2
20029 ;;
20030 esac
20031 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
20032 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
20033 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
20034 echo $ECHO_N "(cached) $ECHO_C" >&6
20035 else
20036 ac_cv_header_openssl_ssl_h=$ac_header_preproc
20037 fi
20038 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
20039 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
20040
20041 fi
20042 if test $ac_cv_header_openssl_ssl_h = yes; then
20043
20044 echo "$as_me:$LINENO: checking for main in -lrsaref" >&5
20045 echo $ECHO_N "checking for main in -lrsaref... $ECHO_C" >&6
20046 if test "${ac_cv_lib_rsaref_main+set}" = set; then
20047 echo $ECHO_N "(cached) $ECHO_C" >&6
20048 else
20049 ac_check_lib_save_LIBS=$LIBS
20050 LIBS="-lrsaref $LIBS"
20051 cat >conftest.$ac_ext <<_ACEOF
20052 /* confdefs.h. */
20053 _ACEOF
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h. */
20057
20058
20059 int
20060 main ()
20061 {
20062 main ();
20063 ;
20064 return 0;
20065 }
20066 _ACEOF
20067 rm -f conftest.$ac_objext conftest$ac_exeext
20068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20069 (eval $ac_link) 2>conftest.er1
20070 ac_status=$?
20071 grep -v '^ *+' conftest.er1 >conftest.err
20072 rm -f conftest.er1
20073 cat conftest.err >&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } &&
20076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078 (eval $ac_try) 2>&5
20079 ac_status=$?
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; } &&
20082 { ac_try='test -s conftest$ac_exeext'
20083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20084 (eval $ac_try) 2>&5
20085 ac_status=$?
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); }; }; then
20088 ac_cv_lib_rsaref_main=yes
20089 else
20090 echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20092
20093 ac_cv_lib_rsaref_main=no
20094 fi
20095 rm -f conftest.err conftest.$ac_objext \
20096 conftest$ac_exeext conftest.$ac_ext
20097 LIBS=$ac_check_lib_save_LIBS
20098 fi
20099 echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_main" >&5
20100 echo "${ECHO_T}$ac_cv_lib_rsaref_main" >&6
20101 if test $ac_cv_lib_rsaref_main = yes; then
20102 SSLLIBS="-lrsaref"
20103 fi
20104
20105 echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
20106 echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
20107 if test "${ac_cv_lib_crypto_main+set}" = set; then
20108 echo $ECHO_N "(cached) $ECHO_C" >&6
20109 else
20110 ac_check_lib_save_LIBS=$LIBS
20111 LIBS="-lcrypto $SSLLIBS $LIBS"
20112 cat >conftest.$ac_ext <<_ACEOF
20113 /* confdefs.h. */
20114 _ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h. */
20118
20119
20120 int
20121 main ()
20122 {
20123 main ();
20124 ;
20125 return 0;
20126 }
20127 _ACEOF
20128 rm -f conftest.$ac_objext conftest$ac_exeext
20129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20130 (eval $ac_link) 2>conftest.er1
20131 ac_status=$?
20132 grep -v '^ *+' conftest.er1 >conftest.err
20133 rm -f conftest.er1
20134 cat conftest.err >&5
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); } &&
20137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20139 (eval $ac_try) 2>&5
20140 ac_status=$?
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); }; } &&
20143 { ac_try='test -s conftest$ac_exeext'
20144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20145 (eval $ac_try) 2>&5
20146 ac_status=$?
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }; }; then
20149 ac_cv_lib_crypto_main=yes
20150 else
20151 echo "$as_me: failed program was:" >&5
20152 sed 's/^/| /' conftest.$ac_ext >&5
20153
20154 ac_cv_lib_crypto_main=no
20155 fi
20156 rm -f conftest.err conftest.$ac_objext \
20157 conftest$ac_exeext conftest.$ac_ext
20158 LIBS=$ac_check_lib_save_LIBS
20159 fi
20160 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
20161 echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
20162 if test $ac_cv_lib_crypto_main = yes; then
20163 SSLLIBS="-lcrypto $SSLLIBS"
20164 fi
20165
20166 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
20167 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
20168 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
20169 echo $ECHO_N "(cached) $ECHO_C" >&6
20170 else
20171 ac_check_lib_save_LIBS=$LIBS
20172 LIBS="-lssl $SSLLIBS $LIBS"
20173 cat >conftest.$ac_ext <<_ACEOF
20174 /* confdefs.h. */
20175 _ACEOF
20176 cat confdefs.h >>conftest.$ac_ext
20177 cat >>conftest.$ac_ext <<_ACEOF
20178 /* end confdefs.h. */
20179
20180 /* Override any gcc2 internal prototype to avoid an error. */
20181 #ifdef __cplusplus
20182 extern "C"
20183 #endif
20184 /* We use char because int might match the return type of a gcc2
20185 builtin and then its argument prototype would still apply. */
20186 char SSL_library_init ();
20187 int
20188 main ()
20189 {
20190 SSL_library_init ();
20191 ;
20192 return 0;
20193 }
20194 _ACEOF
20195 rm -f conftest.$ac_objext conftest$ac_exeext
20196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20197 (eval $ac_link) 2>conftest.er1
20198 ac_status=$?
20199 grep -v '^ *+' conftest.er1 >conftest.err
20200 rm -f conftest.er1
20201 cat conftest.err >&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } &&
20204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20206 (eval $ac_try) 2>&5
20207 ac_status=$?
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); }; } &&
20210 { ac_try='test -s conftest$ac_exeext'
20211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212 (eval $ac_try) 2>&5
20213 ac_status=$?
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; }; then
20216 ac_cv_lib_ssl_SSL_library_init=yes
20217 else
20218 echo "$as_me: failed program was:" >&5
20219 sed 's/^/| /' conftest.$ac_ext >&5
20220
20221 ac_cv_lib_ssl_SSL_library_init=no
20222 fi
20223 rm -f conftest.err conftest.$ac_objext \
20224 conftest$ac_exeext conftest.$ac_ext
20225 LIBS=$ac_check_lib_save_LIBS
20226 fi
20227 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
20228 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
20229 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
20230 with_openssl=yes
20231 fi
20232
20233 fi
20234
20235
20236 if test "x$with_openssl" != "xyes"; then
20237 CPPFLAGS="$OCPPFLAGS"
20238 LDFLAGS="$OLDFLAGS"
20239 fi
20240 fi
20241 if test "x$with_openssl" = "xyes"; then
20242
20243 cat >>confdefs.h <<\_ACEOF
20244 @%:@define USE_SSL 1
20245 _ACEOF
20246
20247 SSLLIBS="-lssl $SSLLIBS"
20248 else
20249 { echo "$as_me:$LINENO: WARNING: OpenSSL support disabled." >&5
20250 echo "$as_me: WARNING: OpenSSL support disabled." >&2;}
20251 SSLLIBS=""
20252 fi
20253
20254
20255 LIBICONV=""
20256
20257 # Check whether --enable-iconv or --disable-iconv was given.
20258 if test "${enable_iconv+set}" = set; then
20259 enableval="$enable_iconv"
20260 enable_iconv=no
20261 else
20262 enable_iconv=yes
20263 fi;
20264 if test x$enable_iconv = xyes; then
20265 if test "${ac_cv_header_iconv_h+set}" = set; then
20266 echo "$as_me:$LINENO: checking for iconv.h" >&5
20267 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
20268 if test "${ac_cv_header_iconv_h+set}" = set; then
20269 echo $ECHO_N "(cached) $ECHO_C" >&6
20270 fi
20271 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
20272 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
20273 else
20274 # Is the header compilable?
20275 echo "$as_me:$LINENO: checking iconv.h usability" >&5
20276 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
20277 cat >conftest.$ac_ext <<_ACEOF
20278 /* confdefs.h. */
20279 _ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h. */
20283 $ac_includes_default
20284 @%:@include <iconv.h>
20285 _ACEOF
20286 rm -f conftest.$ac_objext
20287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20288 (eval $ac_compile) 2>conftest.er1
20289 ac_status=$?
20290 grep -v '^ *+' conftest.er1 >conftest.err
20291 rm -f conftest.er1
20292 cat conftest.err >&5
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); } &&
20295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20297 (eval $ac_try) 2>&5
20298 ac_status=$?
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); }; } &&
20301 { ac_try='test -s conftest.$ac_objext'
20302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303 (eval $ac_try) 2>&5
20304 ac_status=$?
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; }; then
20307 ac_header_compiler=yes
20308 else
20309 echo "$as_me: failed program was:" >&5
20310 sed 's/^/| /' conftest.$ac_ext >&5
20311
20312 ac_header_compiler=no
20313 fi
20314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20315 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20316 echo "${ECHO_T}$ac_header_compiler" >&6
20317
20318 # Is the header present?
20319 echo "$as_me:$LINENO: checking iconv.h presence" >&5
20320 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
20321 cat >conftest.$ac_ext <<_ACEOF
20322 /* confdefs.h. */
20323 _ACEOF
20324 cat confdefs.h >>conftest.$ac_ext
20325 cat >>conftest.$ac_ext <<_ACEOF
20326 /* end confdefs.h. */
20327 @%:@include <iconv.h>
20328 _ACEOF
20329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20331 ac_status=$?
20332 grep -v '^ *+' conftest.er1 >conftest.err
20333 rm -f conftest.er1
20334 cat conftest.err >&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } >/dev/null; then
20337 if test -s conftest.err; then
20338 ac_cpp_err=$ac_c_preproc_warn_flag
20339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20340 else
20341 ac_cpp_err=
20342 fi
20343 else
20344 ac_cpp_err=yes
20345 fi
20346 if test -z "$ac_cpp_err"; then
20347 ac_header_preproc=yes
20348 else
20349 echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20351
20352 ac_header_preproc=no
20353 fi
20354 rm -f conftest.err conftest.$ac_ext
20355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20356 echo "${ECHO_T}$ac_header_preproc" >&6
20357
20358 # So? What about this header?
20359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20360 yes:no: )
20361 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
20362 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20363 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
20364 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
20365 ac_header_preproc=yes
20366 ;;
20367 no:yes:* )
20368 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
20369 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
20370 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
20371 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
20372 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
20373 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
20374 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
20375 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
20376 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
20377 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
20378 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
20379 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
20380 (
20381 cat <<\_ASBOX
20382 @%:@@%:@ ------------------------------------------ @%:@@%:@
20383 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
20384 @%:@@%:@ ------------------------------------------ @%:@@%:@
20385 _ASBOX
20386 ) |
20387 sed "s/^/$as_me: WARNING: /" >&2
20388 ;;
20389 esac
20390 echo "$as_me:$LINENO: checking for iconv.h" >&5
20391 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
20392 if test "${ac_cv_header_iconv_h+set}" = set; then
20393 echo $ECHO_N "(cached) $ECHO_C" >&6
20394 else
20395 ac_cv_header_iconv_h=$ac_header_preproc
20396 fi
20397 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
20398 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
20399
20400 fi
20401 if test $ac_cv_header_iconv_h = yes; then
20402 ICONV_HEADER=1
20403 else
20404 ICONV_HEADER=0
20405 fi
20406
20407
20408
20409 ICONV_PROTO=no
20410 echo "$as_me:$LINENO: checking checking iconv() prototype" >&5
20411 echo $ECHO_N "checking checking iconv() prototype... $ECHO_C" >&6
20412 if test "x$ICONV_HEADER" = x1 ; then
20413 SAVED_CPPFLAGS="$CPPFLAGS"
20414 CPPFLAGS="-std=c99 $CPPFLAGS"
20415 cat >conftest.$ac_ext <<_ACEOF
20416 /* confdefs.h. */
20417 _ACEOF
20418 cat confdefs.h >>conftest.$ac_ext
20419 cat >>conftest.$ac_ext <<_ACEOF
20420 /* end confdefs.h. */
20421 #include <iconv.h>
20422 size_t iconv (iconv_t cd, char ** restrict inbuf,
20423 size_t * restrict inbytesleft,
20424 char ** restrict outbuf,
20425 size_t * restrict outbytesleft);
20426 int
20427 main ()
20428 {
20429
20430 ;
20431 return 0;
20432 }
20433 _ACEOF
20434 rm -f conftest.$ac_objext
20435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20436 (eval $ac_compile) 2>conftest.er1
20437 ac_status=$?
20438 grep -v '^ *+' conftest.er1 >conftest.err
20439 rm -f conftest.er1
20440 cat conftest.err >&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); } &&
20443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20445 (eval $ac_try) 2>&5
20446 ac_status=$?
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); }; } &&
20449 { ac_try='test -s conftest.$ac_objext'
20450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20451 (eval $ac_try) 2>&5
20452 ac_status=$?
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); }; }; then
20455 ICONV_PROTO=noconst
20456
20457 else
20458 echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20460
20461 fi
20462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20463 cat >conftest.$ac_ext <<_ACEOF
20464 /* confdefs.h. */
20465 _ACEOF
20466 cat confdefs.h >>conftest.$ac_ext
20467 cat >>conftest.$ac_ext <<_ACEOF
20468 /* end confdefs.h. */
20469 #include <iconv.h>
20470 size_t iconv (iconv_t cd, const char ** restrict inbuf,
20471 size_t * restrict inbytesleft,
20472 char ** restrict outbuf,
20473 size_t * restrict outbytesleft);
20474 int
20475 main ()
20476 {
20477
20478 ;
20479 return 0;
20480 }
20481 _ACEOF
20482 rm -f conftest.$ac_objext
20483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20484 (eval $ac_compile) 2>conftest.er1
20485 ac_status=$?
20486 grep -v '^ *+' conftest.er1 >conftest.err
20487 rm -f conftest.er1
20488 cat conftest.err >&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } &&
20491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20493 (eval $ac_try) 2>&5
20494 ac_status=$?
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); }; } &&
20497 { ac_try='test -s conftest.$ac_objext'
20498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20499 (eval $ac_try) 2>&5
20500 ac_status=$?
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); }; }; then
20503 ICONV_PROTO=const
20504
20505 else
20506 echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20508
20509 fi
20510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20511 CPPFLAGS="$SAVED_CPPFLAGS"
20512 fi
20513
20514 ICONV_LINKED=NO
20515 if test "$ICONV_PROTO" != "xno" ; then
20516 echo "$as_me:$LINENO: result: ok" >&5
20517 echo "${ECHO_T}ok" >&6
20518
20519 echo "$as_me:$LINENO: checking for iconv" >&5
20520 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
20521
20522 ICONV_LINKED=0
20523 cat >conftest.$ac_ext <<_ACEOF
20524 /* confdefs.h. */
20525 _ACEOF
20526 cat confdefs.h >>conftest.$ac_ext
20527 cat >>conftest.$ac_ext <<_ACEOF
20528 /* end confdefs.h. */
20529 #include <stdlib.h>
20530 #include <iconv.h>
20531 int
20532 main ()
20533 {
20534 iconv_t cd = iconv_open("","");
20535 iconv(cd,NULL,NULL,NULL,NULL);
20536 iconv_close(cd);
20537 ;
20538 return 0;
20539 }
20540 _ACEOF
20541 rm -f conftest.$ac_objext conftest$ac_exeext
20542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20543 (eval $ac_link) 2>conftest.er1
20544 ac_status=$?
20545 grep -v '^ *+' conftest.er1 >conftest.err
20546 rm -f conftest.er1
20547 cat conftest.err >&5
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); } &&
20550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20552 (eval $ac_try) 2>&5
20553 ac_status=$?
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; } &&
20556 { ac_try='test -s conftest$ac_exeext'
20557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20558 (eval $ac_try) 2>&5
20559 ac_status=$?
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); }; }; then
20562 ICONV_LINKED=1
20563 else
20564 echo "$as_me: failed program was:" >&5
20565 sed 's/^/| /' conftest.$ac_ext >&5
20566
20567 fi
20568 rm -f conftest.err conftest.$ac_objext \
20569 conftest$ac_exeext conftest.$ac_ext
20570 for lib in iconv ; do
20571 if test "x$ICONV_LINKED" = "x0" ; then
20572 LIBS=-l$lib
20573 cat >conftest.$ac_ext <<_ACEOF
20574 /* confdefs.h. */
20575 _ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h. */
20579 #include <stdlib.h>
20580 #include <iconv.h>
20581 int
20582 main ()
20583 {
20584 iconv_t cd = iconv_open("","");
20585 iconv(cd,NULL,NULL,NULL,NULL);
20586 iconv_close(cd);
20587 ;
20588 return 0;
20589 }
20590 _ACEOF
20591 rm -f conftest.$ac_objext conftest$ac_exeext
20592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20593 (eval $ac_link) 2>conftest.er1
20594 ac_status=$?
20595 grep -v '^ *+' conftest.er1 >conftest.err
20596 rm -f conftest.er1
20597 cat conftest.err >&5
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); } &&
20600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20602 (eval $ac_try) 2>&5
20603 ac_status=$?
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); }; } &&
20606 { ac_try='test -s conftest$ac_exeext'
20607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20608 (eval $ac_try) 2>&5
20609 ac_status=$?
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); }; }; then
20612 LIBICONV="$LIBS" ; ICONV_LINKED=1
20613 else
20614 echo "$as_me: failed program was:" >&5
20615 sed 's/^/| /' conftest.$ac_ext >&5
20616
20617 fi
20618 rm -f conftest.err conftest.$ac_objext \
20619 conftest$ac_exeext conftest.$ac_ext
20620 fi
20621 done
20622 LIBS=""
20623
20624 if test "x$ICONV_LINKED" = "x1" ; then
20625 echo "$as_me:$LINENO: result: found" >&5
20626 echo "${ECHO_T}found" >&6
20627 else
20628 echo "$as_me:$LINENO: result: not found" >&5
20629 echo "${ECHO_T}not found" >&6
20630 fi
20631 else
20632 echo "$as_me:$LINENO: result: failed" >&5
20633 echo "${ECHO_T}failed" >&6
20634 fi
20635
20636 if test "x$ICONV_LINKED" = "x1" ; then
20637
20638 cat >>confdefs.h <<\_ACEOF
20639 @%:@define HAVE_ICONV 1
20640 _ACEOF
20641
20642 fi
20643
20644 ICONV_PROTO_CONST=0
20645 if test "x$ICONV_PROTO" = "xconst" ; then
20646
20647 cat >>confdefs.h <<_ACEOF
20648 @%:@define HAVE_ICONV_PROTO_CONST 1
20649 _ACEOF
20650
20651 fi
20652 fi
20653
20654
20655
20656 DBVERS=0
20657 DBLINKED=0
20658 DBLIB=""
20659
20660 # Check whether --enable-db or --disable-db was given.
20661 if test "${enable_db+set}" = set; then
20662 enableval="$enable_db"
20663 enable_db=$enableval
20664 else
20665 enable_db=yes
20666 fi;
20667
20668 if test "x$enable_db" != "xyes"; then
20669 { echo "$as_me:$LINENO: WARNING: cache support disabled" >&5
20670 echo "$as_me: WARNING: cache support disabled" >&2;}
20671 else
20672 if test "${ac_cv_header_db_h+set}" = set; then
20673 echo "$as_me:$LINENO: checking for db.h" >&5
20674 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
20675 if test "${ac_cv_header_db_h+set}" = set; then
20676 echo $ECHO_N "(cached) $ECHO_C" >&6
20677 fi
20678 echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
20679 echo "${ECHO_T}$ac_cv_header_db_h" >&6
20680 else
20681 # Is the header compilable?
20682 echo "$as_me:$LINENO: checking db.h usability" >&5
20683 echo $ECHO_N "checking db.h usability... $ECHO_C" >&6
20684 cat >conftest.$ac_ext <<_ACEOF
20685 /* confdefs.h. */
20686 _ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h. */
20690 $ac_includes_default
20691 @%:@include <db.h>
20692 _ACEOF
20693 rm -f conftest.$ac_objext
20694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20695 (eval $ac_compile) 2>conftest.er1
20696 ac_status=$?
20697 grep -v '^ *+' conftest.er1 >conftest.err
20698 rm -f conftest.er1
20699 cat conftest.err >&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } &&
20702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20704 (eval $ac_try) 2>&5
20705 ac_status=$?
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; } &&
20708 { ac_try='test -s conftest.$ac_objext'
20709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710 (eval $ac_try) 2>&5
20711 ac_status=$?
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); }; }; then
20714 ac_header_compiler=yes
20715 else
20716 echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20718
20719 ac_header_compiler=no
20720 fi
20721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20722 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20723 echo "${ECHO_T}$ac_header_compiler" >&6
20724
20725 # Is the header present?
20726 echo "$as_me:$LINENO: checking db.h presence" >&5
20727 echo $ECHO_N "checking db.h presence... $ECHO_C" >&6
20728 cat >conftest.$ac_ext <<_ACEOF
20729 /* confdefs.h. */
20730 _ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h. */
20734 @%:@include <db.h>
20735 _ACEOF
20736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20738 ac_status=$?
20739 grep -v '^ *+' conftest.er1 >conftest.err
20740 rm -f conftest.er1
20741 cat conftest.err >&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); } >/dev/null; then
20744 if test -s conftest.err; then
20745 ac_cpp_err=$ac_c_preproc_warn_flag
20746 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20747 else
20748 ac_cpp_err=
20749 fi
20750 else
20751 ac_cpp_err=yes
20752 fi
20753 if test -z "$ac_cpp_err"; then
20754 ac_header_preproc=yes
20755 else
20756 echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20758
20759 ac_header_preproc=no
20760 fi
20761 rm -f conftest.err conftest.$ac_ext
20762 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20763 echo "${ECHO_T}$ac_header_preproc" >&6
20764
20765 # So? What about this header?
20766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20767 yes:no: )
20768 { echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5
20769 echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20770 { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the compiler's result" >&5
20771 echo "$as_me: WARNING: db.h: proceeding with the compiler's result" >&2;}
20772 ac_header_preproc=yes
20773 ;;
20774 no:yes:* )
20775 { echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5
20776 echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;}
20777 { echo "$as_me:$LINENO: WARNING: db.h: check for missing prerequisite headers?" >&5
20778 echo "$as_me: WARNING: db.h: check for missing prerequisite headers?" >&2;}
20779 { echo "$as_me:$LINENO: WARNING: db.h: see the Autoconf documentation" >&5
20780 echo "$as_me: WARNING: db.h: see the Autoconf documentation" >&2;}
20781 { echo "$as_me:$LINENO: WARNING: db.h: section \"Present But Cannot Be Compiled\"" >&5
20782 echo "$as_me: WARNING: db.h: section \"Present But Cannot Be Compiled\"" >&2;}
20783 { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
20784 echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
20785 { echo "$as_me:$LINENO: WARNING: db.h: in the future, the compiler will take precedence" >&5
20786 echo "$as_me: WARNING: db.h: in the future, the compiler will take precedence" >&2;}
20787 (
20788 cat <<\_ASBOX
20789 @%:@@%:@ ------------------------------------------ @%:@@%:@
20790 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
20791 @%:@@%:@ ------------------------------------------ @%:@@%:@
20792 _ASBOX
20793 ) |
20794 sed "s/^/$as_me: WARNING: /" >&2
20795 ;;
20796 esac
20797 echo "$as_me:$LINENO: checking for db.h" >&5
20798 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
20799 if test "${ac_cv_header_db_h+set}" = set; then
20800 echo $ECHO_N "(cached) $ECHO_C" >&6
20801 else
20802 ac_cv_header_db_h=$ac_header_preproc
20803 fi
20804 echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
20805 echo "${ECHO_T}$ac_cv_header_db_h" >&6
20806
20807 fi
20808 if test $ac_cv_header_db_h = yes; then
20809 DB_HEADER=1
20810 else
20811 DB_HEADER=0
20812 fi
20813
20814
20815 fi
20816
20817 if test "x$DB_HEADER" = "x1"; then
20818 echo "$as_me:$LINENO: checking version of Berkeley DB" >&5
20819 echo $ECHO_N "checking version of Berkeley DB... $ECHO_C" >&6
20820
20821 cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h. */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20827 #include <db.h>
20828 int
20829 main ()
20830 {
20831 #if DB_VERSION_MAJOR < 3
20832 #error DB version 3 or above needed
20833 #endif
20834 ;
20835 return 0;
20836 }
20837 _ACEOF
20838 rm -f conftest.$ac_objext
20839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20840 (eval $ac_compile) 2>conftest.er1
20841 ac_status=$?
20842 grep -v '^ *+' conftest.er1 >conftest.err
20843 rm -f conftest.er1
20844 cat conftest.err >&5
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); } &&
20847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20849 (eval $ac_try) 2>&5
20850 ac_status=$?
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); }; } &&
20853 { ac_try='test -s conftest.$ac_objext'
20854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20855 (eval $ac_try) 2>&5
20856 ac_status=$?
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); }; }; then
20859 DBVERS=3
20860
20861 else
20862 echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20864
20865 fi
20866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20867
20868 if test "x$DBVERS" = "x0"; then
20869 cat >conftest.$ac_ext <<_ACEOF
20870 /* confdefs.h. */
20871 _ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h. */
20875 #include <db.h>
20876 int
20877 main ()
20878 {
20879 #if DB_VERSION_MAJOR != 2
20880 #error DB version 2 needed
20881 #endif
20882 ;
20883 return 0;
20884 }
20885 _ACEOF
20886 rm -f conftest.$ac_objext
20887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20888 (eval $ac_compile) 2>conftest.er1
20889 ac_status=$?
20890 grep -v '^ *+' conftest.er1 >conftest.err
20891 rm -f conftest.er1
20892 cat conftest.err >&5
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); } &&
20895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20897 (eval $ac_try) 2>&5
20898 ac_status=$?
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); }; } &&
20901 { ac_try='test -s conftest.$ac_objext'
20902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903 (eval $ac_try) 2>&5
20904 ac_status=$?
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); }; }; then
20907 DBVERS=2
20908
20909 else
20910 echo "$as_me: failed program was:" >&5
20911 sed 's/^/| /' conftest.$ac_ext >&5
20912
20913 fi
20914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20915 fi
20916
20917 if test "x$DBVERS" = "x0"; then
20918 DBVERS=1
20919 fi
20920
20921
20922 case "$DBVERS" in
20923 3)
20924 echo "$as_me:$LINENO: result: version 3.x or above" >&5
20925 echo "${ECHO_T}version 3.x or above" >&6
20926 for lib in db-4.2 db-4.1 db-4.0 db-4 db4 db-3.2 db-3 db3 db; do
20927 if test "x$DBLINKED" = "x0"; then
20928 echo "$as_me:$LINENO: checking for db_create() in -l$lib" >&5
20929 echo $ECHO_N "checking for db_create() in -l$lib... $ECHO_C" >&6
20930 LIBS=-l$lib
20931 cat >conftest.$ac_ext <<_ACEOF
20932 /* confdefs.h. */
20933 _ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h. */
20937 #include <db.h>
20938 int
20939 main ()
20940 {
20941 db_create(0,0,0)
20942 ;
20943 return 0;
20944 }
20945 _ACEOF
20946 rm -f conftest.$ac_objext conftest$ac_exeext
20947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20948 (eval $ac_link) 2>conftest.er1
20949 ac_status=$?
20950 grep -v '^ *+' conftest.er1 >conftest.err
20951 rm -f conftest.er1
20952 cat conftest.err >&5
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); } &&
20955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20957 (eval $ac_try) 2>&5
20958 ac_status=$?
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); }; } &&
20961 { ac_try='test -s conftest$ac_exeext'
20962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20963 (eval $ac_try) 2>&5
20964 ac_status=$?
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); }; }; then
20967 DBLIB="-l$lib"; DBLINKED=1; echo "$as_me:$LINENO: result: found" >&5
20968 echo "${ECHO_T}found" >&6
20969 else
20970 echo "$as_me: failed program was:" >&5
20971 sed 's/^/| /' conftest.$ac_ext >&5
20972
20973 echo "$as_me:$LINENO: result: not found" >&5
20974 echo "${ECHO_T}not found" >&6
20975 fi
20976 rm -f conftest.err conftest.$ac_objext \
20977 conftest$ac_exeext conftest.$ac_ext
20978 fi
20979 done
20980 LIBS=""
20981 ;;
20982
20983 2)
20984 echo "$as_me:$LINENO: result: version 2.x" >&5
20985 echo "${ECHO_T}version 2.x" >&6
20986 for lib in db2 db; do
20987 if test "x$DBLINKED" = "x0"; then
20988 as_ac_Lib=`echo "ac_cv_lib_$lib''_db_open" | $as_tr_sh`
20989 echo "$as_me:$LINENO: checking for db_open in -l$lib" >&5
20990 echo $ECHO_N "checking for db_open in -l$lib... $ECHO_C" >&6
20991 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
20992 echo $ECHO_N "(cached) $ECHO_C" >&6
20993 else
20994 ac_check_lib_save_LIBS=$LIBS
20995 LIBS="-l$lib $LIBS"
20996 cat >conftest.$ac_ext <<_ACEOF
20997 /* confdefs.h. */
20998 _ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h. */
21002
21003 /* Override any gcc2 internal prototype to avoid an error. */
21004 #ifdef __cplusplus
21005 extern "C"
21006 #endif
21007 /* We use char because int might match the return type of a gcc2
21008 builtin and then its argument prototype would still apply. */
21009 char db_open ();
21010 int
21011 main ()
21012 {
21013 db_open ();
21014 ;
21015 return 0;
21016 }
21017 _ACEOF
21018 rm -f conftest.$ac_objext conftest$ac_exeext
21019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21020 (eval $ac_link) 2>conftest.er1
21021 ac_status=$?
21022 grep -v '^ *+' conftest.er1 >conftest.err
21023 rm -f conftest.er1
21024 cat conftest.err >&5
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); } &&
21027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21029 (eval $ac_try) 2>&5
21030 ac_status=$?
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; } &&
21033 { ac_try='test -s conftest$ac_exeext'
21034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035 (eval $ac_try) 2>&5
21036 ac_status=$?
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; }; then
21039 eval "$as_ac_Lib=yes"
21040 else
21041 echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21043
21044 eval "$as_ac_Lib=no"
21045 fi
21046 rm -f conftest.err conftest.$ac_objext \
21047 conftest$ac_exeext conftest.$ac_ext
21048 LIBS=$ac_check_lib_save_LIBS
21049 fi
21050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21051 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21052 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21053 DBLIB="-l$lib"; DBLINKED=1
21054 fi
21055
21056 fi
21057 done
21058 ;;
21059
21060 *)
21061 echo "$as_me:$LINENO: result: version 1.x" >&5
21062 echo "${ECHO_T}version 1.x" >&6
21063 echo "$as_me:$LINENO: checking for dbopen" >&5
21064 echo $ECHO_N "checking for dbopen... $ECHO_C" >&6
21065 if test "${ac_cv_func_dbopen+set}" = set; then
21066 echo $ECHO_N "(cached) $ECHO_C" >&6
21067 else
21068 cat >conftest.$ac_ext <<_ACEOF
21069 /* confdefs.h. */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h. */
21074 /* Define dbopen to an innocuous variant, in case <limits.h> declares dbopen.
21075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21076 #define dbopen innocuous_dbopen
21077
21078 /* System header to define __stub macros and hopefully few prototypes,
21079 which can conflict with char dbopen (); below.
21080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21081 <limits.h> exists even on freestanding compilers. */
21082
21083 #ifdef __STDC__
21084 # include <limits.h>
21085 #else
21086 # include <assert.h>
21087 #endif
21088
21089 #undef dbopen
21090
21091 /* Override any gcc2 internal prototype to avoid an error. */
21092 #ifdef __cplusplus
21093 extern "C"
21094 {
21095 #endif
21096 /* We use char because int might match the return type of a gcc2
21097 builtin and then its argument prototype would still apply. */
21098 char dbopen ();
21099 /* The GNU C library defines this for functions which it implements
21100 to always fail with ENOSYS. Some functions are actually named
21101 something starting with __ and the normal name is an alias. */
21102 #if defined (__stub_dbopen) || defined (__stub___dbopen)
21103 choke me
21104 #else
21105 char (*f) () = dbopen;
21106 #endif
21107 #ifdef __cplusplus
21108 }
21109 #endif
21110
21111 int
21112 main ()
21113 {
21114 return f != dbopen;
21115 ;
21116 return 0;
21117 }
21118 _ACEOF
21119 rm -f conftest.$ac_objext conftest$ac_exeext
21120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21121 (eval $ac_link) 2>conftest.er1
21122 ac_status=$?
21123 grep -v '^ *+' conftest.er1 >conftest.err
21124 rm -f conftest.er1
21125 cat conftest.err >&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); } &&
21128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21130 (eval $ac_try) 2>&5
21131 ac_status=$?
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); }; } &&
21134 { ac_try='test -s conftest$ac_exeext'
21135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136 (eval $ac_try) 2>&5
21137 ac_status=$?
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); }; }; then
21140 ac_cv_func_dbopen=yes
21141 else
21142 echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21144
21145 ac_cv_func_dbopen=no
21146 fi
21147 rm -f conftest.err conftest.$ac_objext \
21148 conftest$ac_exeext conftest.$ac_ext
21149 fi
21150 echo "$as_me:$LINENO: result: $ac_cv_func_dbopen" >&5
21151 echo "${ECHO_T}$ac_cv_func_dbopen" >&6
21152 if test $ac_cv_func_dbopen = yes; then
21153 DBLINKED=1
21154 fi
21155
21156 for lib in db-1 db1 db; do
21157 if test "x$DBLINKED" = "x0"; then
21158 as_ac_Lib=`echo "ac_cv_lib_$lib''_dbopen" | $as_tr_sh`
21159 echo "$as_me:$LINENO: checking for dbopen in -l$lib" >&5
21160 echo $ECHO_N "checking for dbopen in -l$lib... $ECHO_C" >&6
21161 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21162 echo $ECHO_N "(cached) $ECHO_C" >&6
21163 else
21164 ac_check_lib_save_LIBS=$LIBS
21165 LIBS="-l$lib $LIBS"
21166 cat >conftest.$ac_ext <<_ACEOF
21167 /* confdefs.h. */
21168 _ACEOF
21169 cat confdefs.h >>conftest.$ac_ext
21170 cat >>conftest.$ac_ext <<_ACEOF
21171 /* end confdefs.h. */
21172
21173 /* Override any gcc2 internal prototype to avoid an error. */
21174 #ifdef __cplusplus
21175 extern "C"
21176 #endif
21177 /* We use char because int might match the return type of a gcc2
21178 builtin and then its argument prototype would still apply. */
21179 char dbopen ();
21180 int
21181 main ()
21182 {
21183 dbopen ();
21184 ;
21185 return 0;
21186 }
21187 _ACEOF
21188 rm -f conftest.$ac_objext conftest$ac_exeext
21189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21190 (eval $ac_link) 2>conftest.er1
21191 ac_status=$?
21192 grep -v '^ *+' conftest.er1 >conftest.err
21193 rm -f conftest.er1
21194 cat conftest.err >&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); } &&
21197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21200 ac_status=$?
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; } &&
21203 { ac_try='test -s conftest$ac_exeext'
21204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21205 (eval $ac_try) 2>&5
21206 ac_status=$?
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); }; }; then
21209 eval "$as_ac_Lib=yes"
21210 else
21211 echo "$as_me: failed program was:" >&5
21212 sed 's/^/| /' conftest.$ac_ext >&5
21213
21214 eval "$as_ac_Lib=no"
21215 fi
21216 rm -f conftest.err conftest.$ac_objext \
21217 conftest$ac_exeext conftest.$ac_ext
21218 LIBS=$ac_check_lib_save_LIBS
21219 fi
21220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21221 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21222 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21223 DBLIB="-l$lib"; DBLINKED=1
21224 fi
21225
21226 fi
21227 done
21228 ;;
21229 esac
21230 fi
21231
21232 if test "x$DBLINKED" = "x0"; then
21233 DBVERS=0
21234 if test "x$enable_db" = "xyes"; then
21235 { echo "$as_me:$LINENO: WARNING: cache support disabled (Berkeley DB is missing)." >&5
21236 echo "$as_me: WARNING: cache support disabled (Berkeley DB is missing)." >&2;}
21237 fi
21238 fi
21239
21240
21241 cat >>confdefs.h <<_ACEOF
21242 @%:@define DBVERS $DBVERS
21243 _ACEOF
21244
21245
21246
21247 # Check whether --enable-threads or --disable-threads was given.
21248 if test "${enable_threads+set}" = set; then
21249 enableval="$enable_threads"
21250
21251 else
21252 enable_threads=yes
21253 fi;
21254
21255 if test "x$enable_threads" = "xyes"; then
21256
21257 for ac_header in pthread.h
21258 do
21259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21261 echo "$as_me:$LINENO: checking for $ac_header" >&5
21262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21264 echo $ECHO_N "(cached) $ECHO_C" >&6
21265 fi
21266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21268 else
21269 # Is the header compilable?
21270 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21272 cat >conftest.$ac_ext <<_ACEOF
21273 /* confdefs.h. */
21274 _ACEOF
21275 cat confdefs.h >>conftest.$ac_ext
21276 cat >>conftest.$ac_ext <<_ACEOF
21277 /* end confdefs.h. */
21278 $ac_includes_default
21279 @%:@include <$ac_header>
21280 _ACEOF
21281 rm -f conftest.$ac_objext
21282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21283 (eval $ac_compile) 2>conftest.er1
21284 ac_status=$?
21285 grep -v '^ *+' conftest.er1 >conftest.err
21286 rm -f conftest.er1
21287 cat conftest.err >&5
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); } &&
21290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21292 (eval $ac_try) 2>&5
21293 ac_status=$?
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); }; } &&
21296 { ac_try='test -s conftest.$ac_objext'
21297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298 (eval $ac_try) 2>&5
21299 ac_status=$?
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); }; }; then
21302 ac_header_compiler=yes
21303 else
21304 echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21306
21307 ac_header_compiler=no
21308 fi
21309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21311 echo "${ECHO_T}$ac_header_compiler" >&6
21312
21313 # Is the header present?
21314 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21316 cat >conftest.$ac_ext <<_ACEOF
21317 /* confdefs.h. */
21318 _ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h. */
21322 @%:@include <$ac_header>
21323 _ACEOF
21324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21326 ac_status=$?
21327 grep -v '^ *+' conftest.er1 >conftest.err
21328 rm -f conftest.er1
21329 cat conftest.err >&5
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); } >/dev/null; then
21332 if test -s conftest.err; then
21333 ac_cpp_err=$ac_c_preproc_warn_flag
21334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21335 else
21336 ac_cpp_err=
21337 fi
21338 else
21339 ac_cpp_err=yes
21340 fi
21341 if test -z "$ac_cpp_err"; then
21342 ac_header_preproc=yes
21343 else
21344 echo "$as_me: failed program was:" >&5
21345 sed 's/^/| /' conftest.$ac_ext >&5
21346
21347 ac_header_preproc=no
21348 fi
21349 rm -f conftest.err conftest.$ac_ext
21350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21351 echo "${ECHO_T}$ac_header_preproc" >&6
21352
21353 # So? What about this header?
21354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21355 yes:no: )
21356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21360 ac_header_preproc=yes
21361 ;;
21362 no:yes:* )
21363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21375 (
21376 cat <<\_ASBOX
21377 @%:@@%:@ ------------------------------------------ @%:@@%:@
21378 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
21379 @%:@@%:@ ------------------------------------------ @%:@@%:@
21380 _ASBOX
21381 ) |
21382 sed "s/^/$as_me: WARNING: /" >&2
21383 ;;
21384 esac
21385 echo "$as_me:$LINENO: checking for $ac_header" >&5
21386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21388 echo $ECHO_N "(cached) $ECHO_C" >&6
21389 else
21390 eval "$as_ac_Header=\$ac_header_preproc"
21391 fi
21392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21394
21395 fi
21396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21397 cat >>confdefs.h <<_ACEOF
21398 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21399 _ACEOF
21400
21401 else
21402 { { echo "$as_me:$LINENO: error: pthread support required" >&5
21403 echo "$as_me: error: pthread support required" >&2;}
21404 { (exit 1); exit 1; }; }
21405 fi
21406
21407 done
21408
21409 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
21410 checkpthread=yes
21411
21412 echo "$as_me:$LINENO: checking for pthread_create with libc" >&5
21413 echo $ECHO_N "checking for pthread_create with libc... $ECHO_C" >&6
21414 cat >conftest.$ac_ext <<_ACEOF
21415 /* confdefs.h. */
21416 _ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h. */
21420
21421 int
21422 main ()
21423 {
21424 pthread_create();
21425 ;
21426 return 0;
21427 }
21428 _ACEOF
21429 rm -f conftest.$ac_objext conftest$ac_exeext
21430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21431 (eval $ac_link) 2>conftest.er1
21432 ac_status=$?
21433 grep -v '^ *+' conftest.er1 >conftest.err
21434 rm -f conftest.er1
21435 cat conftest.err >&5
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); } &&
21438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21440 (eval $ac_try) 2>&5
21441 ac_status=$?
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); }; } &&
21444 { ac_try='test -s conftest$ac_exeext'
21445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21446 (eval $ac_try) 2>&5
21447 ac_status=$?
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); }; }; then
21450 pthflag=yes; checkpthread=no
21451 else
21452 echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21454
21455 pthflag=no
21456 fi
21457 rm -f conftest.err conftest.$ac_objext \
21458 conftest$ac_exeext conftest.$ac_ext
21459 echo "$as_me:$LINENO: result: $pthflag" >&5
21460 echo "${ECHO_T}$pthflag" >&6
21461
21462 for flag in "pthreads" "pthread"; do
21463 if test "x$checkpthread" = "xyes"; then
21464 echo "$as_me:$LINENO: checking for pthread_create with -$flag" >&5
21465 echo $ECHO_N "checking for pthread_create with -$flag... $ECHO_C" >&6
21466 OLDFLAGS="$LDFLAGS"
21467 LDFLAGS="-$flag $LDFLAGS"
21468 cat >conftest.$ac_ext <<_ACEOF
21469 /* confdefs.h. */
21470 _ACEOF
21471 cat confdefs.h >>conftest.$ac_ext
21472 cat >>conftest.$ac_ext <<_ACEOF
21473 /* end confdefs.h. */
21474
21475 int
21476 main ()
21477 {
21478 pthread_create();
21479 ;
21480 return 0;
21481 }
21482 _ACEOF
21483 rm -f conftest.$ac_objext conftest$ac_exeext
21484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21485 (eval $ac_link) 2>conftest.er1
21486 ac_status=$?
21487 grep -v '^ *+' conftest.er1 >conftest.err
21488 rm -f conftest.er1
21489 cat conftest.err >&5
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); } &&
21492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21494 (eval $ac_try) 2>&5
21495 ac_status=$?
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); }; } &&
21498 { ac_try='test -s conftest$ac_exeext'
21499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500 (eval $ac_try) 2>&5
21501 ac_status=$?
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); }; }; then
21504 pthflag=yes; checkpthread=no
21505 else
21506 echo "$as_me: failed program was:" >&5
21507 sed 's/^/| /' conftest.$ac_ext >&5
21508
21509 pthflag=no; LDFLAGS="$OLDCFLAGS"
21510 fi
21511 rm -f conftest.err conftest.$ac_objext \
21512 conftest$ac_exeext conftest.$ac_ext
21513 echo "$as_me:$LINENO: result: $pthflag" >&5
21514 echo "${ECHO_T}$pthflag" >&6
21515 fi
21516 done
21517
21518 for lib in "c_r" "pthread"; do
21519 if test "x$checkpthread" = "xyes"; then
21520 case "x$LIBS" in
21521 *-l$lib*);;
21522 *) as_ac_Lib=`echo "ac_cv_lib_$lib''_pthread_create" | $as_tr_sh`
21523 echo "$as_me:$LINENO: checking for pthread_create in -l$lib" >&5
21524 echo $ECHO_N "checking for pthread_create in -l$lib... $ECHO_C" >&6
21525 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21526 echo $ECHO_N "(cached) $ECHO_C" >&6
21527 else
21528 ac_check_lib_save_LIBS=$LIBS
21529 LIBS="-l$lib $LIBS"
21530 cat >conftest.$ac_ext <<_ACEOF
21531 /* confdefs.h. */
21532 _ACEOF
21533 cat confdefs.h >>conftest.$ac_ext
21534 cat >>conftest.$ac_ext <<_ACEOF
21535 /* end confdefs.h. */
21536
21537 /* Override any gcc2 internal prototype to avoid an error. */
21538 #ifdef __cplusplus
21539 extern "C"
21540 #endif
21541 /* We use char because int might match the return type of a gcc2
21542 builtin and then its argument prototype would still apply. */
21543 char pthread_create ();
21544 int
21545 main ()
21546 {
21547 pthread_create ();
21548 ;
21549 return 0;
21550 }
21551 _ACEOF
21552 rm -f conftest.$ac_objext conftest$ac_exeext
21553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21554 (eval $ac_link) 2>conftest.er1
21555 ac_status=$?
21556 grep -v '^ *+' conftest.er1 >conftest.err
21557 rm -f conftest.er1
21558 cat conftest.err >&5
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); } &&
21561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21563 (eval $ac_try) 2>&5
21564 ac_status=$?
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); }; } &&
21567 { ac_try='test -s conftest$ac_exeext'
21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569 (eval $ac_try) 2>&5
21570 ac_status=$?
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); }; }; then
21573 eval "$as_ac_Lib=yes"
21574 else
21575 echo "$as_me: failed program was:" >&5
21576 sed 's/^/| /' conftest.$ac_ext >&5
21577
21578 eval "$as_ac_Lib=no"
21579 fi
21580 rm -f conftest.err conftest.$ac_objext \
21581 conftest$ac_exeext conftest.$ac_ext
21582 LIBS=$ac_check_lib_save_LIBS
21583 fi
21584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21585 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21586 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21587 LIBS="$LIBS -l$lib"; checkpthread=no
21588 fi
21589 ;;
21590 esac
21591 fi
21592 done
21593
21594 if test "x$checkpthread" = "xyes"; then
21595 echo "$as_me:$LINENO: checking for pthread_create" >&5
21596 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
21597 if test "${ac_cv_func_pthread_create+set}" = set; then
21598 echo $ECHO_N "(cached) $ECHO_C" >&6
21599 else
21600 cat >conftest.$ac_ext <<_ACEOF
21601 /* confdefs.h. */
21602 _ACEOF
21603 cat confdefs.h >>conftest.$ac_ext
21604 cat >>conftest.$ac_ext <<_ACEOF
21605 /* end confdefs.h. */
21606 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
21607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21608 #define pthread_create innocuous_pthread_create
21609
21610 /* System header to define __stub macros and hopefully few prototypes,
21611 which can conflict with char pthread_create (); below.
21612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21613 <limits.h> exists even on freestanding compilers. */
21614
21615 #ifdef __STDC__
21616 # include <limits.h>
21617 #else
21618 # include <assert.h>
21619 #endif
21620
21621 #undef pthread_create
21622
21623 /* Override any gcc2 internal prototype to avoid an error. */
21624 #ifdef __cplusplus
21625 extern "C"
21626 {
21627 #endif
21628 /* We use char because int might match the return type of a gcc2
21629 builtin and then its argument prototype would still apply. */
21630 char pthread_create ();
21631 /* The GNU C library defines this for functions which it implements
21632 to always fail with ENOSYS. Some functions are actually named
21633 something starting with __ and the normal name is an alias. */
21634 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
21635 choke me
21636 #else
21637 char (*f) () = pthread_create;
21638 #endif
21639 #ifdef __cplusplus
21640 }
21641 #endif
21642
21643 int
21644 main ()
21645 {
21646 return f != pthread_create;
21647 ;
21648 return 0;
21649 }
21650 _ACEOF
21651 rm -f conftest.$ac_objext conftest$ac_exeext
21652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21653 (eval $ac_link) 2>conftest.er1
21654 ac_status=$?
21655 grep -v '^ *+' conftest.er1 >conftest.err
21656 rm -f conftest.er1
21657 cat conftest.err >&5
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); } &&
21660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21662 (eval $ac_try) 2>&5
21663 ac_status=$?
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); }; } &&
21666 { ac_try='test -s conftest$ac_exeext'
21667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21668 (eval $ac_try) 2>&5
21669 ac_status=$?
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); }; }; then
21672 ac_cv_func_pthread_create=yes
21673 else
21674 echo "$as_me: failed program was:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21676
21677 ac_cv_func_pthread_create=no
21678 fi
21679 rm -f conftest.err conftest.$ac_objext \
21680 conftest$ac_exeext conftest.$ac_ext
21681 fi
21682 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
21683 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
21684 if test $ac_cv_func_pthread_create = yes; then
21685 checkpthread=no
21686 fi
21687
21688 text "x$checkpthread" = "xyes" && { { echo "$as_me:$LINENO: error: pthread library required" >&5
21689 echo "$as_me: error: pthread library required" >&2;}
21690 { (exit 1); exit 1; }; }
21691 fi
21692
21693 cat >>confdefs.h <<\_ACEOF
21694 @%:@define LIBETPAN_REENTRANT 1
21695 _ACEOF
21696
21697 LIBSUFFIX=
21698 REENTRANT=1
21699 else
21700 REENTRANT=0
21701 LIBSUFFIX=-no-mt
21702 fi
21703
21704
21705
21706
21707 echo "$as_me:$LINENO: checking for lockfile_create in -llockfile" >&5
21708 echo $ECHO_N "checking for lockfile_create in -llockfile... $ECHO_C" >&6
21709 if test "${ac_cv_lib_lockfile_lockfile_create+set}" = set; then
21710 echo $ECHO_N "(cached) $ECHO_C" >&6
21711 else
21712 ac_check_lib_save_LIBS=$LIBS
21713 LIBS="-llockfile $LIBS"
21714 cat >conftest.$ac_ext <<_ACEOF
21715 /* confdefs.h. */
21716 _ACEOF
21717 cat confdefs.h >>conftest.$ac_ext
21718 cat >>conftest.$ac_ext <<_ACEOF
21719 /* end confdefs.h. */
21720
21721 /* Override any gcc2 internal prototype to avoid an error. */
21722 #ifdef __cplusplus
21723 extern "C"
21724 #endif
21725 /* We use char because int might match the return type of a gcc2
21726 builtin and then its argument prototype would still apply. */
21727 char lockfile_create ();
21728 int
21729 main ()
21730 {
21731 lockfile_create ();
21732 ;
21733 return 0;
21734 }
21735 _ACEOF
21736 rm -f conftest.$ac_objext conftest$ac_exeext
21737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21738 (eval $ac_link) 2>conftest.er1
21739 ac_status=$?
21740 grep -v '^ *+' conftest.er1 >conftest.err
21741 rm -f conftest.er1
21742 cat conftest.err >&5
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); } &&
21745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747 (eval $ac_try) 2>&5
21748 ac_status=$?
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; } &&
21751 { ac_try='test -s conftest$ac_exeext'
21752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21753 (eval $ac_try) 2>&5
21754 ac_status=$?
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); }; }; then
21757 ac_cv_lib_lockfile_lockfile_create=yes
21758 else
21759 echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21761
21762 ac_cv_lib_lockfile_lockfile_create=no
21763 fi
21764 rm -f conftest.err conftest.$ac_objext \
21765 conftest$ac_exeext conftest.$ac_ext
21766 LIBS=$ac_check_lib_save_LIBS
21767 fi
21768 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_lockfile_create" >&5
21769 echo "${ECHO_T}$ac_cv_lib_lockfile_lockfile_create" >&6
21770 if test $ac_cv_lib_lockfile_lockfile_create = yes; then
21771 cat >>confdefs.h <<_ACEOF
21772 @%:@define HAVE_LIBLOCKFILE 1
21773 _ACEOF
21774
21775 LIBS="-llockfile $LIBS"
21776
21777 fi
21778
21779
21780
21781 cat >>confdefs.h <<_ACEOF
21782 @%:@define LIBETPAN_VERSION_MAJOR $VERSION_MAJOR
21783 _ACEOF
21784
21785
21786 cat >>confdefs.h <<_ACEOF
21787 @%:@define LIBETPAN_VERSION_MINOR $VERSION_MINOR
21788 _ACEOF
21789
21790
21791
21792
21793 VERSION="$VERSION_MAJOR.$VERSION_MINOR"
21794 test -d CVS && VERSION="$VERSION-dev-"`date +'%Y%m%d'`
21795
21796 cat >>confdefs.h <<_ACEOF
21797 @%:@define LIBETPAN_VERSION "$VERSION"
21798 _ACEOF
21799
21800
21801
21802
21803 ac_config_files="$ac_config_files Makefile Rules libetpan-config src/Makefile src/main/libetpan_version.h"
21804 cat >confcache <<\_ACEOF
21805 # This file is a shell script that caches the results of configure
21806 # tests run on this system so they can be shared between configure
21807 # scripts and configure runs, see configure's option --config-cache.
21808 # It is not useful on other systems. If it contains results you don't
21809 # want to keep, you may remove or edit it.
21810 #
21811 # config.status only pays attention to the cache file if you give it
21812 # the --recheck option to rerun configure.
21813 #
21814 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21815 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21816 # following values.
21817
21818 _ACEOF
21819
21820 # The following way of writing the cache mishandles newlines in values,
21821 # but we know of no workaround that is simple, portable, and efficient.
21822 # So, don't put newlines in cache variables' values.
21823 # Ultrix sh set writes to stderr and can't be redirected directly,
21824 # and sets the high bit in the cache file unless we assign to the vars.
21825 {
21826 (set) 2>&1 |
21827 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21828 *ac_space=\ *)
21829 # `set' does not quote correctly, so add quotes (double-quote
21830 # substitution turns \\\\ into \\, and sed turns \\ into \).
21831 sed -n \
21832 "s/'/'\\\\''/g;
21833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21834 ;;
21835 *)
21836 # `set' quotes correctly as required by POSIX, so do not add quotes.
21837 sed -n \
21838 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21839 ;;
21840 esac;
21841 } |
21842 sed '
21843 t clear
21844 : clear
21845 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21846 t end
21847 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21848 : end' >>confcache
21849 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21850 if test -w $cache_file; then
21851 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21852 cat confcache >$cache_file
21853 else
21854 echo "not updating unwritable cache $cache_file"
21855 fi
21856 fi
21857 rm -f confcache
21858
21859 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21860 # Let make expand exec_prefix.
21861 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21862
21863 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21864 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21865 # trailing colons and then remove the whole line if VPATH becomes empty
21866 # (actually we leave an empty line to preserve line numbers).
21867 if test "x$srcdir" = x.; then
21868 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21869 s/:*\$(srcdir):*/:/;
21870 s/:*\${srcdir}:*/:/;
21871 s/:*@srcdir@:*/:/;
21872 s/^\([^=]*=[ ]*\):*/\1/;
21873 s/:*$//;
21874 s/^[^=]*=[ ]*$//;
21875 }'
21876 fi
21877
21878 DEFS=-DHAVE_CONFIG_H
21879
21880 ac_libobjs=
21881 ac_ltlibobjs=
21882 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
21883 # 1. Remove the extension, and $U if already installed.
21884 ac_i=`echo "$ac_i" |
21885 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21886 # 2. Add them.
21887 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21888 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21889 done
21890 LIB@&t@OBJS=$ac_libobjs
21891
21892 LTLIBOBJS=$ac_ltlibobjs
21893
21894
21895
21896 : ${CONFIG_STATUS=./config.status}
21897 ac_clean_files_save=$ac_clean_files
21898 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21899 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21900 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21901 cat >$CONFIG_STATUS <<_ACEOF
21902 #! $SHELL
21903 # Generated by $as_me.
21904 # Run this file to recreate the current configuration.
21905 # Compiler output produced by configure, useful for debugging
21906 # configure, is in config.log if it exists.
21907
21908 debug=false
21909 ac_cs_recheck=false
21910 ac_cs_silent=false
21911 SHELL=\${CONFIG_SHELL-$SHELL}
21912 _ACEOF
21913
21914 cat >>$CONFIG_STATUS <<\_ACEOF
21915 ## --------------------- ##
21916 ## M4sh Initialization. ##
21917 ## --------------------- ##
21918
21919 # Be Bourne compatible
21920 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21921 emulate sh
21922 NULLCMD=:
21923 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21924 # is contrary to our usage. Disable this feature.
21925 alias -g '${1+"$@"}'='"$@"'
21926 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21927 set -o posix
21928 fi
21929 DUALCASE=1; export DUALCASE # for MKS sh
21930
21931 # Support unset when possible.
21932 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21933 as_unset=unset
21934 else
21935 as_unset=false
21936 fi
21937
21938
21939 # Work around bugs in pre-3.0 UWIN ksh.
21940 $as_unset ENV MAIL MAILPATH
21941 PS1='$ '
21942 PS2='> '
21943 PS4='+ '
21944
21945 # NLS nuisances.
21946 for as_var in \
21947 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21948 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21949 LC_TELEPHONE LC_TIME
21950 do
21951 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21952 eval $as_var=C; export $as_var
21953 else
21954 $as_unset $as_var
21955 fi
21956 done
21957
21958 # Required to use basename.
21959 if expr a : '\(a\)' >/dev/null 2>&1; then
21960 as_expr=expr
21961 else
21962 as_expr=false
21963 fi
21964
21965 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21966 as_basename=basename
21967 else
21968 as_basename=false
21969 fi
21970
21971
21972 # Name of the executable.
21973 as_me=`$as_basename "$0" ||
21974 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21975 X"$0" : 'X\(//\)$' \| \
21976 X"$0" : 'X\(/\)$' \| \
21977 . : '\(.\)' 2>/dev/null ||
21978 echo X/"$0" |
21979 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21980 /^X\/\(\/\/\)$/{ s//\1/; q; }
21981 /^X\/\(\/\).*/{ s//\1/; q; }
21982 s/.*/./; q'`
21983
21984
21985 # PATH needs CR, and LINENO needs CR and PATH.
21986 # Avoid depending upon Character Ranges.
21987 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21988 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21989 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21990 as_cr_digits='0123456789'
21991 as_cr_alnum=$as_cr_Letters$as_cr_digits
21992
21993 # The user is always right.
21994 if test "${PATH_SEPARATOR+set}" != set; then
21995 echo "#! /bin/sh" >conf$$.sh
21996 echo "exit 0" >>conf$$.sh
21997 chmod +x conf$$.sh
21998 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21999 PATH_SEPARATOR=';'
22000 else
22001 PATH_SEPARATOR=:
22002 fi
22003 rm -f conf$$.sh
22004 fi
22005
22006
22007 as_lineno_1=$LINENO
22008 as_lineno_2=$LINENO
22009 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22010 test "x$as_lineno_1" != "x$as_lineno_2" &&
22011 test "x$as_lineno_3" = "x$as_lineno_2" || {
22012 # Find who we are. Look in the path if we contain no path at all
22013 # relative or not.
22014 case $0 in
22015 *[\\/]* ) as_myself=$0 ;;
22016 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22017 for as_dir in $PATH
22018 do
22019 IFS=$as_save_IFS
22020 test -z "$as_dir" && as_dir=.
22021 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22022 done
22023
22024 ;;
22025 esac
22026 # We did not find ourselves, most probably we were run as `sh COMMAND'
22027 # in which case we are not to be found in the path.
22028 if test "x$as_myself" = x; then
22029 as_myself=$0
22030 fi
22031 if test ! -f "$as_myself"; then
22032 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22033 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22034 { (exit 1); exit 1; }; }
22035 fi
22036 case $CONFIG_SHELL in
22037 '')
22038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22039 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22040 do
22041 IFS=$as_save_IFS
22042 test -z "$as_dir" && as_dir=.
22043 for as_base in sh bash ksh sh5; do
22044 case $as_dir in
22045 /*)
22046 if ("$as_dir/$as_base" -c '
22047 as_lineno_1=$LINENO
22048 as_lineno_2=$LINENO
22049 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22050 test "x$as_lineno_1" != "x$as_lineno_2" &&
22051 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22052 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22053 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22054 CONFIG_SHELL=$as_dir/$as_base
22055 export CONFIG_SHELL
22056 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22057 fi;;
22058 esac
22059 done
22060 done
22061 ;;
22062 esac
22063
22064 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22065 # uniformly replaced by the line number. The first 'sed' inserts a
22066 # line-number line before each line; the second 'sed' does the real
22067 # work. The second script uses 'N' to pair each line-number line
22068 # with the numbered line, and appends trailing '-' during
22069 # substitution so that $LINENO is not a special case at line end.
22070 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22071 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22072 sed '=' <$as_myself |
22073 sed '
22074 N
22075 s,$,-,
22076 : loop
22077 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22078 t loop
22079 s,-$,,
22080 s,^['$as_cr_digits']*\n,,
22081 ' >$as_me.lineno &&
22082 chmod +x $as_me.lineno ||
22083 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22084 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22085 { (exit 1); exit 1; }; }
22086
22087 # Don't try to exec as it changes $[0], causing all sort of problems
22088 # (the dirname of $[0] is not the place where we might find the
22089 # original and so on. Autoconf is especially sensible to this).
22090 . ./$as_me.lineno
22091 # Exit status is that of the last command.
22092 exit
22093 }
22094
22095
22096 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22097 *c*,-n*) ECHO_N= ECHO_C='
22098 ' ECHO_T=' ' ;;
22099 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22100 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22101 esac
22102
22103 if expr a : '\(a\)' >/dev/null 2>&1; then
22104 as_expr=expr
22105 else
22106 as_expr=false
22107 fi
22108
22109 rm -f conf$$ conf$$.exe conf$$.file
22110 echo >conf$$.file
22111 if ln -s conf$$.file conf$$ 2>/dev/null; then
22112 # We could just check for DJGPP; but this test a) works b) is more generic
22113 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22114 if test -f conf$$.exe; then
22115 # Don't use ln at all; we don't have any links
22116 as_ln_s='cp -p'
22117 else
22118 as_ln_s='ln -s'
22119 fi
22120 elif ln conf$$.file conf$$ 2>/dev/null; then
22121 as_ln_s=ln
22122 else
22123 as_ln_s='cp -p'
22124 fi
22125 rm -f conf$$ conf$$.exe conf$$.file
22126
22127 if mkdir -p . 2>/dev/null; then
22128 as_mkdir_p=:
22129 else
22130 test -d ./-p && rmdir ./-p
22131 as_mkdir_p=false
22132 fi
22133
22134 as_executable_p="test -f"
22135
22136 # Sed expression to map a string onto a valid CPP name.
22137 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22138
22139 # Sed expression to map a string onto a valid variable name.
22140 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22141
22142
22143 # IFS
22144 # We need space, tab and new line, in precisely that order.
22145 as_nl='
22146 '
22147 IFS=" $as_nl"
22148
22149 # CDPATH.
22150 $as_unset CDPATH
22151
22152 exec 6>&1
22153
22154 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22155 # report actual input values of CONFIG_FILES etc. instead of their
22156 # values after options handling. Logging --version etc. is OK.
22157 exec 5>>config.log
22158 {
22159 echo
22160 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
22161 @%:@@%:@ Running $as_me. @%:@@%:@
22162 _ASBOX
22163 } >&5
22164 cat >&5 <<_CSEOF
22165
22166 This file was extended by $as_me, which was
22167 generated by GNU Autoconf 2.59. Invocation command line was
22168
22169 CONFIG_FILES = $CONFIG_FILES
22170 CONFIG_HEADERS = $CONFIG_HEADERS
22171 CONFIG_LINKS = $CONFIG_LINKS
22172 CONFIG_COMMANDS = $CONFIG_COMMANDS
22173 $ $0 $@
22174
22175 _CSEOF
22176 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22177 echo >&5
22178 _ACEOF
22179
22180 # Files that config.status was made for.
22181 if test -n "$ac_config_files"; then
22182 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22183 fi
22184
22185 if test -n "$ac_config_headers"; then
22186 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22187 fi
22188
22189 if test -n "$ac_config_links"; then
22190 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22191 fi
22192
22193 if test -n "$ac_config_commands"; then
22194 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22195 fi
22196
22197 cat >>$CONFIG_STATUS <<\_ACEOF
22198
22199 ac_cs_usage="\
22200 \`$as_me' instantiates files from templates according to the
22201 current configuration.
22202
22203 Usage: $0 [OPTIONS] [FILE]...
22204
22205 -h, --help print this help, then exit
22206 -V, --version print version number, then exit
22207 -q, --quiet do not print progress messages
22208 -d, --debug don't remove temporary files
22209 --recheck update $as_me by reconfiguring in the same conditions
22210 --file=FILE[:TEMPLATE]
22211 instantiate the configuration file FILE
22212 --header=FILE[:TEMPLATE]
22213 instantiate the configuration header FILE
22214
22215 Configuration files:
22216 $config_files
22217
22218 Configuration headers:
22219 $config_headers
22220
22221 Report bugs to <bug-autoconf@gnu.org>."
22222 _ACEOF
22223
22224 cat >>$CONFIG_STATUS <<_ACEOF
22225 ac_cs_version="\\
22226 config.status
22227 configured by $0, generated by GNU Autoconf 2.59,
22228 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22229
22230 Copyright (C) 2003 Free Software Foundation, Inc.
22231 This config.status script is free software; the Free Software Foundation
22232 gives unlimited permission to copy, distribute and modify it."
22233 srcdir=$srcdir
22234 INSTALL="$INSTALL"
22235 _ACEOF
22236
22237 cat >>$CONFIG_STATUS <<\_ACEOF
22238 # If no file are specified by the user, then we need to provide default
22239 # value. By we need to know if files were specified by the user.
22240 ac_need_defaults=:
22241 while test $# != 0
22242 do
22243 case $1 in
22244 --*=*)
22245 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22246 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22247 ac_shift=:
22248 ;;
22249 -*)
22250 ac_option=$1
22251 ac_optarg=$2
22252 ac_shift=shift
22253 ;;
22254 *) # This is not an option, so the user has probably given explicit
22255 # arguments.
22256 ac_option=$1
22257 ac_need_defaults=false;;
22258 esac
22259
22260 case $ac_option in
22261 # Handling of the options.
22262 _ACEOF
22263 cat >>$CONFIG_STATUS <<\_ACEOF
22264 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22265 ac_cs_recheck=: ;;
22266 --version | --vers* | -V )
22267 echo "$ac_cs_version"; exit 0 ;;
22268 --he | --h)
22269 # Conflict between --help and --header
22270 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22271 Try \`$0 --help' for more information." >&5
22272 echo "$as_me: error: ambiguous option: $1
22273 Try \`$0 --help' for more information." >&2;}
22274 { (exit 1); exit 1; }; };;
22275 --help | --hel | -h )
22276 echo "$ac_cs_usage"; exit 0 ;;
22277 --debug | --d* | -d )
22278 debug=: ;;
22279 --file | --fil | --fi | --f )
22280 $ac_shift
22281 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22282 ac_need_defaults=false;;
22283 --header | --heade | --head | --hea )
22284 $ac_shift
22285 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22286 ac_need_defaults=false;;
22287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22288 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22289 ac_cs_silent=: ;;
22290
22291 # This is an error.
22292 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22293 Try \`$0 --help' for more information." >&5
22294 echo "$as_me: error: unrecognized option: $1
22295 Try \`$0 --help' for more information." >&2;}
22296 { (exit 1); exit 1; }; } ;;
22297
22298 *) ac_config_targets="$ac_config_targets $1" ;;
22299
22300 esac
22301 shift
22302 done
22303
22304 ac_configure_extra_args=
22305
22306 if $ac_cs_silent; then
22307 exec 6>/dev/null
22308 ac_configure_extra_args="$ac_configure_extra_args --silent"
22309 fi
22310
22311 _ACEOF
22312 cat >>$CONFIG_STATUS <<_ACEOF
22313 if \$ac_cs_recheck; then
22314 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22315 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22316 fi
22317
22318 _ACEOF
22319
22320
22321
22322
22323
22324 cat >>$CONFIG_STATUS <<\_ACEOF
22325 for ac_config_target in $ac_config_targets
22326 do
22327 case "$ac_config_target" in
22328 # Handling of arguments.
22329 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22330 "Rules" ) CONFIG_FILES="$CONFIG_FILES Rules" ;;
22331 "libetpan-config" ) CONFIG_FILES="$CONFIG_FILES libetpan-config" ;;
22332 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22333 "src/main/libetpan_version.h" ) CONFIG_FILES="$CONFIG_FILES src/main/libetpan_version.h" ;;
22334 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22335 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22336 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22337 { (exit 1); exit 1; }; };;
22338 esac
22339 done
22340
22341 # If the user did not use the arguments to specify the items to instantiate,
22342 # then the envvar interface is used. Set only those that are not.
22343 # We use the long form for the default assignment because of an extremely
22344 # bizarre bug on SunOS 4.1.3.
22345 if $ac_need_defaults; then
22346 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22347 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22348 fi
22349
22350 # Have a temporary directory for convenience. Make it in the build tree
22351 # simply because there is no reason to put it here, and in addition,
22352 # creating and moving files from /tmp can sometimes cause problems.
22353 # Create a temporary directory, and hook for its removal unless debugging.
22354 $debug ||
22355 {
22356 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22357 trap '{ (exit 1); exit 1; }' 1 2 13 15
22358 }
22359
22360 # Create a (secure) tmp directory for tmp files.
22361
22362 {
22363 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22364 test -n "$tmp" && test -d "$tmp"
22365 } ||
22366 {
22367 tmp=./confstat$$-$RANDOM
22368 (umask 077 && mkdir $tmp)
22369 } ||
22370 {
22371 echo "$me: cannot create a temporary directory in ." >&2
22372 { (exit 1); exit 1; }
22373 }
22374
22375 _ACEOF
22376
22377 cat >>$CONFIG_STATUS <<_ACEOF
22378
22379 #
22380 # CONFIG_FILES section.
22381 #
22382
22383 # No need to generate the scripts if there are no CONFIG_FILES.
22384 # This happens for instance when ./config.status config.h
22385 if test -n "\$CONFIG_FILES"; then
22386 # Protect against being on the right side of a sed subst in config.status.
22387 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22388 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22389 s,@SHELL@,$SHELL,;t t
22390 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22391 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22392 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22393 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22394 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22395 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22396 s,@exec_prefix@,$exec_prefix,;t t
22397 s,@prefix@,$prefix,;t t
22398 s,@program_transform_name@,$program_transform_name,;t t
22399 s,@bindir@,$bindir,;t t
22400 s,@sbindir@,$sbindir,;t t
22401 s,@libexecdir@,$libexecdir,;t t
22402 s,@datadir@,$datadir,;t t
22403 s,@sysconfdir@,$sysconfdir,;t t
22404 s,@sharedstatedir@,$sharedstatedir,;t t
22405 s,@localstatedir@,$localstatedir,;t t
22406 s,@libdir@,$libdir,;t t
22407 s,@includedir@,$includedir,;t t
22408 s,@oldincludedir@,$oldincludedir,;t t
22409 s,@infodir@,$infodir,;t t
22410 s,@mandir@,$mandir,;t t
22411 s,@build_alias@,$build_alias,;t t
22412 s,@host_alias@,$host_alias,;t t
22413 s,@target_alias@,$target_alias,;t t
22414 s,@DEFS@,$DEFS,;t t
22415 s,@ECHO_C@,$ECHO_C,;t t
22416 s,@ECHO_N@,$ECHO_N,;t t
22417 s,@ECHO_T@,$ECHO_T,;t t
22418 s,@LIBS@,$LIBS,;t t
22419 s,@API_VERSION@,$API_VERSION,;t t
22420 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22421 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22422 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22423 s,@CC@,$CC,;t t
22424 s,@CFLAGS@,$CFLAGS,;t t
22425 s,@LDFLAGS@,$LDFLAGS,;t t
22426 s,@CPPFLAGS@,$CPPFLAGS,;t t
22427 s,@ac_ct_CC@,$ac_ct_CC,;t t
22428 s,@EXEEXT@,$EXEEXT,;t t
22429 s,@OBJEXT@,$OBJEXT,;t t
22430 s,@build@,$build,;t t
22431 s,@build_cpu@,$build_cpu,;t t
22432 s,@build_vendor@,$build_vendor,;t t
22433 s,@build_os@,$build_os,;t t
22434 s,@host@,$host,;t t
22435 s,@host_cpu@,$host_cpu,;t t
22436 s,@host_vendor@,$host_vendor,;t t
22437 s,@host_os@,$host_os,;t t
22438 s,@EGREP@,$EGREP,;t t
22439 s,@LN_S@,$LN_S,;t t
22440 s,@ECHO@,$ECHO,;t t
22441 s,@AR@,$AR,;t t
22442 s,@ac_ct_AR@,$ac_ct_AR,;t t
22443 s,@RANLIB@,$RANLIB,;t t
22444 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22445 s,@STRIP@,$STRIP,;t t
22446 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22447 s,@CPP@,$CPP,;t t
22448 s,@CXX@,$CXX,;t t
22449 s,@CXXFLAGS@,$CXXFLAGS,;t t
22450 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22451 s,@CXXCPP@,$CXXCPP,;t t
22452 s,@F77@,$F77,;t t
22453 s,@FFLAGS@,$FFLAGS,;t t
22454 s,@ac_ct_F77@,$ac_ct_F77,;t t
22455 s,@LIBTOOL@,$LIBTOOL,;t t
22456 s,@SET_MAKE@,$SET_MAKE,;t t
22457 s,@SSLLIBS@,$SSLLIBS,;t t
22458 s,@LIBICONV@,$LIBICONV,;t t
22459 s,@DBLIB@,$DBLIB,;t t
22460 s,@LIBSUFFIX@,$LIBSUFFIX,;t t
22461 s,@REENTRANT@,$REENTRANT,;t t
22462 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
22463 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
22464 s,@VERSION@,$VERSION,;t t
22465 s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
22466 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22467 CEOF
22468
22469 _ACEOF
22470
22471 cat >>$CONFIG_STATUS <<\_ACEOF
22472 # Split the substitutions into bite-sized pieces for seds with
22473 # small command number limits, like on Digital OSF/1 and HP-UX.
22474 ac_max_sed_lines=48
22475 ac_sed_frag=1 # Number of current file.
22476 ac_beg=1 # First line for current file.
22477 ac_end=$ac_max_sed_lines # Line after last line for current file.
22478 ac_more_lines=:
22479 ac_sed_cmds=
22480 while $ac_more_lines; do
22481 if test $ac_beg -gt 1; then
22482 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22483 else
22484 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22485 fi
22486 if test ! -s $tmp/subs.frag; then
22487 ac_more_lines=false
22488 else
22489 # The purpose of the label and of the branching condition is to
22490 # speed up the sed processing (if there are no `@' at all, there
22491 # is no need to browse any of the substitutions).
22492 # These are the two extra sed commands mentioned above.
22493 (echo ':t
22494 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22495 if test -z "$ac_sed_cmds"; then
22496 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22497 else
22498 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22499 fi
22500 ac_sed_frag=`expr $ac_sed_frag + 1`
22501 ac_beg=$ac_end
22502 ac_end=`expr $ac_end + $ac_max_sed_lines`
22503 fi
22504 done
22505 if test -z "$ac_sed_cmds"; then
22506 ac_sed_cmds=cat
22507 fi
22508 fi # test -n "$CONFIG_FILES"
22509
22510 _ACEOF
22511 cat >>$CONFIG_STATUS <<\_ACEOF
22512 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22513 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22514 case $ac_file in
22515 - | *:- | *:-:* ) # input from stdin
22516 cat >$tmp/stdin
22517 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22518 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22519 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22520 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22521 * ) ac_file_in=$ac_file.in ;;
22522 esac
22523
22524 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22525 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22526 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22527 X"$ac_file" : 'X\(//\)[^/]' \| \
22528 X"$ac_file" : 'X\(//\)$' \| \
22529 X"$ac_file" : 'X\(/\)' \| \
22530 . : '\(.\)' 2>/dev/null ||
22531 echo X"$ac_file" |
22532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22533 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22534 /^X\(\/\/\)$/{ s//\1/; q; }
22535 /^X\(\/\).*/{ s//\1/; q; }
22536 s/.*/./; q'`
22537 { if $as_mkdir_p; then
22538 mkdir -p "$ac_dir"
22539 else
22540 as_dir="$ac_dir"
22541 as_dirs=
22542 while test ! -d "$as_dir"; do
22543 as_dirs="$as_dir $as_dirs"
22544 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22545 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22546 X"$as_dir" : 'X\(//\)[^/]' \| \
22547 X"$as_dir" : 'X\(//\)$' \| \
22548 X"$as_dir" : 'X\(/\)' \| \
22549 . : '\(.\)' 2>/dev/null ||
22550 echo X"$as_dir" |
22551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22552 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22553 /^X\(\/\/\)$/{ s//\1/; q; }
22554 /^X\(\/\).*/{ s//\1/; q; }
22555 s/.*/./; q'`
22556 done
22557 test ! -n "$as_dirs" || mkdir $as_dirs
22558 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22559 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22560 { (exit 1); exit 1; }; }; }
22561
22562 ac_builddir=.
22563
22564 if test "$ac_dir" != .; then
22565 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22566 # A "../" for each directory in $ac_dir_suffix.
22567 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22568 else
22569 ac_dir_suffix= ac_top_builddir=
22570 fi
22571
22572 case $srcdir in
22573 .) # No --srcdir option. We are building in place.
22574 ac_srcdir=.
22575 if test -z "$ac_top_builddir"; then
22576 ac_top_srcdir=.
22577 else
22578 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22579 fi ;;
22580 [\\/]* | ?:[\\/]* ) # Absolute path.
22581 ac_srcdir=$srcdir$ac_dir_suffix;
22582 ac_top_srcdir=$srcdir ;;
22583 *) # Relative path.
22584 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22585 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22586 esac
22587
22588 # Do not use `cd foo && pwd` to compute absolute paths, because
22589 # the directories may not exist.
22590 case `pwd` in
22591 .) ac_abs_builddir="$ac_dir";;
22592 *)
22593 case "$ac_dir" in
22594 .) ac_abs_builddir=`pwd`;;
22595 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22596 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22597 esac;;
22598 esac
22599 case $ac_abs_builddir in
22600 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22601 *)
22602 case ${ac_top_builddir}. in
22603 .) ac_abs_top_builddir=$ac_abs_builddir;;
22604 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22605 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22606 esac;;
22607 esac
22608 case $ac_abs_builddir in
22609 .) ac_abs_srcdir=$ac_srcdir;;
22610 *)
22611 case $ac_srcdir in
22612 .) ac_abs_srcdir=$ac_abs_builddir;;
22613 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22614 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22615 esac;;
22616 esac
22617 case $ac_abs_builddir in
22618 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22619 *)
22620 case $ac_top_srcdir in
22621 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22622 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22623 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22624 esac;;
22625 esac
22626
22627
22628 case $INSTALL in
22629 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22630 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22631 esac
22632
22633 # Let's still pretend it is `configure' which instantiates (i.e., don't
22634 # use $as_me), people would be surprised to read:
22635 # /* config.h. Generated by config.status. */
22636 if test x"$ac_file" = x-; then
22637 configure_input=
22638 else
22639 configure_input="$ac_file. "
22640 fi
22641 configure_input=$configure_input"Generated from `echo $ac_file_in |
22642 sed 's,.*/,,'` by configure."
22643
22644 # First look for the input files in the build tree, otherwise in the
22645 # src tree.
22646 ac_file_inputs=`IFS=:
22647 for f in $ac_file_in; do
22648 case $f in
22649 -) echo $tmp/stdin ;;
22650 [\\/$]*)
22651 # Absolute (can't be DOS-style, as IFS=:)
22652 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22653 echo "$as_me: error: cannot find input file: $f" >&2;}
22654 { (exit 1); exit 1; }; }
22655 echo "$f";;
22656 *) # Relative
22657 if test -f "$f"; then
22658 # Build tree
22659 echo "$f"
22660 elif test -f "$srcdir/$f"; then
22661 # Source tree
22662 echo "$srcdir/$f"
22663 else
22664 # /dev/null tree
22665 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22666 echo "$as_me: error: cannot find input file: $f" >&2;}
22667 { (exit 1); exit 1; }; }
22668 fi;;
22669 esac
22670 done` || { (exit 1); exit 1; }
22671
22672 if test x"$ac_file" != x-; then
22673 { echo "$as_me:$LINENO: creating $ac_file" >&5
22674 echo "$as_me: creating $ac_file" >&6;}
22675 rm -f "$ac_file"
22676 fi
22677 _ACEOF
22678 cat >>$CONFIG_STATUS <<_ACEOF
22679 sed "$ac_vpsub
22680 $extrasub
22681 _ACEOF
22682 cat >>$CONFIG_STATUS <<\_ACEOF
22683 :t
22684 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22685 s,@configure_input@,$configure_input,;t t
22686 s,@srcdir@,$ac_srcdir,;t t
22687 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22688 s,@top_srcdir@,$ac_top_srcdir,;t t
22689 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22690 s,@builddir@,$ac_builddir,;t t
22691 s,@abs_builddir@,$ac_abs_builddir,;t t
22692 s,@top_builddir@,$ac_top_builddir,;t t
22693 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22694 s,@INSTALL@,$ac_INSTALL,;t t
22695 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22696 rm -f $tmp/stdin
22697 if test x"$ac_file" != x-; then
22698 mv $tmp/out $ac_file
22699 else
22700 cat $tmp/out
22701 rm -f $tmp/out
22702 fi
22703
22704 done
22705 _ACEOF
22706 cat >>$CONFIG_STATUS <<\_ACEOF
22707
22708 #
22709 # CONFIG_HEADER section.
22710 #
22711
22712 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22713 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22714 #
22715 # ac_d sets the value in "#define NAME VALUE" lines.
22716 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22717 ac_dB='[ ].*$,\1#\2'
22718 ac_dC=' '
22719 ac_dD=',;t'
22720 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22721 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22722 ac_uB='$,\1#\2define\3'
22723 ac_uC=' '
22724 ac_uD=',;t'
22725
22726 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22727 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22728 case $ac_file in
22729 - | *:- | *:-:* ) # input from stdin
22730 cat >$tmp/stdin
22731 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22732 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22733 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22734 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22735 * ) ac_file_in=$ac_file.in ;;
22736 esac
22737
22738 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22739 echo "$as_me: creating $ac_file" >&6;}
22740
22741 # First look for the input files in the build tree, otherwise in the
22742 # src tree.
22743 ac_file_inputs=`IFS=:
22744 for f in $ac_file_in; do
22745 case $f in
22746 -) echo $tmp/stdin ;;
22747 [\\/$]*)
22748 # Absolute (can't be DOS-style, as IFS=:)
22749 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22750 echo "$as_me: error: cannot find input file: $f" >&2;}
22751 { (exit 1); exit 1; }; }
22752 # Do quote $f, to prevent DOS paths from being IFS'd.
22753 echo "$f";;
22754 *) # Relative
22755 if test -f "$f"; then
22756 # Build tree
22757 echo "$f"
22758 elif test -f "$srcdir/$f"; then
22759 # Source tree
22760 echo "$srcdir/$f"
22761 else
22762 # /dev/null tree
22763 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22764 echo "$as_me: error: cannot find input file: $f" >&2;}
22765 { (exit 1); exit 1; }; }
22766 fi;;
22767 esac
22768 done` || { (exit 1); exit 1; }
22769 # Remove the trailing spaces.
22770 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22771
22772 _ACEOF
22773
22774 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22775 # `conftest.undefs', that substitutes the proper values into
22776 # config.h.in to produce config.h. The first handles `#define'
22777 # templates, and the second `#undef' templates.
22778 # And first: Protect against being on the right side of a sed subst in
22779 # config.status. Protect against being in an unquoted here document
22780 # in config.status.
22781 rm -f conftest.defines conftest.undefs
22782 # Using a here document instead of a string reduces the quoting nightmare.
22783 # Putting comments in sed scripts is not portable.
22784 #
22785 # `end' is used to avoid that the second main sed command (meant for
22786 # 0-ary CPP macros) applies to n-ary macro definitions.
22787 # See the Autoconf documentation for `clear'.
22788 cat >confdef2sed.sed <<\_ACEOF
22789 s/[\\&,]/\\&/g
22790 s,[\\$`],\\&,g
22791 t clear
22792 : clear
22793 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22794 t end
22795 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22796 : end
22797 _ACEOF
22798 # If some macros were called several times there might be several times
22799 # the same #defines, which is useless. Nevertheless, we may not want to
22800 # sort them, since we want the *last* AC-DEFINE to be honored.
22801 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22802 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22803 rm -f confdef2sed.sed
22804
22805 # This sed command replaces #undef with comments. This is necessary, for
22806 # example, in the case of _POSIX_SOURCE, which is predefined and required
22807 # on some systems where configure will not decide to define it.
22808 cat >>conftest.undefs <<\_ACEOF
22809 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22810 _ACEOF
22811
22812 # Break up conftest.defines because some shells have a limit on the size
22813 # of here documents, and old seds have small limits too (100 cmds).
22814 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22815 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22816 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22817 echo ' :' >>$CONFIG_STATUS
22818 rm -f conftest.tail
22819 while grep . conftest.defines >/dev/null
22820 do
22821 # Write a limited-size here document to $tmp/defines.sed.
22822 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22823 # Speed up: don't consider the non `#define' lines.
22824 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22825 # Work around the forget-to-reset-the-flag bug.
22826 echo 't clr' >>$CONFIG_STATUS
22827 echo ': clr' >>$CONFIG_STATUS
22828 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22829 echo 'CEOF
22830 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22831 rm -f $tmp/in
22832 mv $tmp/out $tmp/in
22833 ' >>$CONFIG_STATUS
22834 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22835 rm -f conftest.defines
22836 mv conftest.tail conftest.defines
22837 done
22838 rm -f conftest.defines
22839 echo ' fi # grep' >>$CONFIG_STATUS
22840 echo >>$CONFIG_STATUS
22841
22842 # Break up conftest.undefs because some shells have a limit on the size
22843 # of here documents, and old seds have small limits too (100 cmds).
22844 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22845 rm -f conftest.tail
22846 while grep . conftest.undefs >/dev/null
22847 do
22848 # Write a limited-size here document to $tmp/undefs.sed.
22849 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22850 # Speed up: don't consider the non `#undef'
22851 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22852 # Work around the forget-to-reset-the-flag bug.
22853 echo 't clr' >>$CONFIG_STATUS
22854 echo ': clr' >>$CONFIG_STATUS
22855 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22856 echo 'CEOF
22857 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22858 rm -f $tmp/in
22859 mv $tmp/out $tmp/in
22860 ' >>$CONFIG_STATUS
22861 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22862 rm -f conftest.undefs
22863 mv conftest.tail conftest.undefs
22864 done
22865 rm -f conftest.undefs
22866
22867 cat >>$CONFIG_STATUS <<\_ACEOF
22868 # Let's still pretend it is `configure' which instantiates (i.e., don't
22869 # use $as_me), people would be surprised to read:
22870 # /* config.h. Generated by config.status. */
22871 if test x"$ac_file" = x-; then
22872 echo "/* Generated by configure. */" >$tmp/config.h
22873 else
22874 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22875 fi
22876 cat $tmp/in >>$tmp/config.h
22877 rm -f $tmp/in
22878 if test x"$ac_file" != x-; then
22879 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22880 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22881 echo "$as_me: $ac_file is unchanged" >&6;}
22882 else
22883 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22884 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22885 X"$ac_file" : 'X\(//\)[^/]' \| \
22886 X"$ac_file" : 'X\(//\)$' \| \
22887 X"$ac_file" : 'X\(/\)' \| \
22888 . : '\(.\)' 2>/dev/null ||
22889 echo X"$ac_file" |
22890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22891 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22892 /^X\(\/\/\)$/{ s//\1/; q; }
22893 /^X\(\/\).*/{ s//\1/; q; }
22894 s/.*/./; q'`
22895 { if $as_mkdir_p; then
22896 mkdir -p "$ac_dir"
22897 else
22898 as_dir="$ac_dir"
22899 as_dirs=
22900 while test ! -d "$as_dir"; do
22901 as_dirs="$as_dir $as_dirs"
22902 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22903 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22904 X"$as_dir" : 'X\(//\)[^/]' \| \
22905 X"$as_dir" : 'X\(//\)$' \| \
22906 X"$as_dir" : 'X\(/\)' \| \
22907 . : '\(.\)' 2>/dev/null ||
22908 echo X"$as_dir" |
22909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22910 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22911 /^X\(\/\/\)$/{ s//\1/; q; }
22912 /^X\(\/\).*/{ s//\1/; q; }
22913 s/.*/./; q'`
22914 done
22915 test ! -n "$as_dirs" || mkdir $as_dirs
22916 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22917 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22918 { (exit 1); exit 1; }; }; }
22919
22920 rm -f $ac_file
22921 mv $tmp/config.h $ac_file
22922 fi
22923 else
22924 cat $tmp/config.h
22925 rm -f $tmp/config.h
22926 fi
22927 done
22928 _ACEOF
22929
22930 cat >>$CONFIG_STATUS <<\_ACEOF
22931
22932 { (exit 0); exit 0; }
22933 _ACEOF
22934 chmod +x $CONFIG_STATUS
22935 ac_clean_files=$ac_clean_files_save
22936
22937
22938 # configure is writing to config.log, and then calls config.status.
22939 # config.status does its own redirection, appending to config.log.
22940 # Unfortunately, on DOS this fails, as config.log is still kept open
22941 # by configure, so config.status won't be able to write to it; its
22942 # output is simply discarded. So we exec the FD to /dev/null,
22943 # effectively closing config.log, so it can be properly (re)opened and
22944 # appended to by config.status. When coming back to configure, we
22945 # need to make the FD available again.
22946 if test "$no_create" != yes; then
22947 ac_cs_success=:
22948 ac_config_status_args=
22949 test "$silent" = yes &&
22950 ac_config_status_args="$ac_config_status_args --quiet"
22951 exec 5>/dev/null
22952 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22953 exec 5>>config.log
22954 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22955 # would make configure fail if this is the last instruction.
22956 $ac_cs_success || { (exit 1); exit 1; }
22957 fi
22958
22959
22960
22961 echo "$as_me:$LINENO: result: creating libetpan-config.h" >&5
22962 echo "${ECHO_T}creating libetpan-config.h" >&6
22963 cpp -I. libetpan-config.h.in | \
22964 sed -e '/^#/d;/^[ \t]*$/d;s/^@/#/' > libetpan-config.h
0 # This file was generated by Autom4te Sat Jan 8 16:59:54 PST 2005.
1 # It contains the lists of macros which have been traced.
2 # It can be safely removed.
3
4 @request = (
5 bless( [
6 '0',
7 1,
8 [
9 '/usr/share/autoconf'
10 ],
11 [
12 '/usr/share/autoconf/autoconf/autoconf.m4f',
13 'aclocal.m4',
14 'configure.in'
15 ],
16 {
17 'm4_pattern_forbid' => 1,
18 'AC_CONFIG_LIBOBJ_DIR' => 1,
19 'AC_C_VOLATILE' => 1,
20 'AC_TYPE_OFF_T' => 1,
21 'AC_FUNC_CLOSEDIR_VOID' => 1,
22 'AC_REPLACE_FNMATCH' => 1,
23 'AC_PROG_LIBTOOL' => 1,
24 'AC_FUNC_STAT' => 1,
25 'AC_FUNC_WAIT3' => 1,
26 'AC_HEADER_TIME' => 1,
27 'AC_FUNC_LSTAT' => 1,
28 'AC_STRUCT_TM' => 1,
29 'AM_AUTOMAKE_VERSION' => 1,
30 'AC_FUNC_GETMNTENT' => 1,
31 'AC_TYPE_MODE_T' => 1,
32 'AC_FUNC_STRTOD' => 1,
33 'AC_CHECK_HEADERS' => 1,
34 'AC_FUNC_STRNLEN' => 1,
35 'm4_sinclude' => 1,
36 'AC_PROG_CXX' => 1,
37 'AC_PATH_X' => 1,
38 'AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK' => 1,
39 'AC_PROG_AWK' => 1,
40 '_m4_warn' => 1,
41 'AC_HEADER_STDC' => 1,
42 'AC_HEADER_MAJOR' => 1,
43 'AC_FUNC_ERROR_AT_LINE' => 1,
44 'AC_PROG_GCC_TRADITIONAL' => 1,
45 'AC_LIBSOURCE' => 1,
46 'AC_FUNC_MBRTOWC' => 1,
47 'AC_STRUCT_ST_BLOCKS' => 1,
48 'AC_TYPE_SIGNAL' => 1,
49 'AC_TYPE_UID_T' => 1,
50 'AC_PROG_MAKE_SET' => 1,
51 'AC_CONFIG_AUX_DIR' => 1,
52 'm4_pattern_allow' => 1,
53 'sinclude' => 1,
54 'AC_DEFINE_TRACE_LITERAL' => 1,
55 'AC_FUNC_STRERROR_R' => 1,
56 'AC_PROG_CC' => 1,
57 'AC_FUNC_FORK' => 1,
58 'AC_DECL_SYS_SIGLIST' => 1,
59 'AC_FUNC_STRCOLL' => 1,
60 'AC_FUNC_VPRINTF' => 1,
61 'AC_PROG_YACC' => 1,
62 'AC_INIT' => 1,
63 'AC_STRUCT_TIMEZONE' => 1,
64 'AC_FUNC_CHOWN' => 1,
65 'AC_SUBST' => 1,
66 'AC_FUNC_ALLOCA' => 1,
67 'AC_CANONICAL_HOST' => 1,
68 'AC_FUNC_GETPGRP' => 1,
69 'AC_PROG_RANLIB' => 1,
70 'AM_INIT_AUTOMAKE' => 1,
71 'AC_FUNC_SETPGRP' => 1,
72 'AC_CONFIG_SUBDIRS' => 1,
73 'AC_FUNC_MMAP' => 1,
74 'AC_FUNC_REALLOC' => 1,
75 'AC_TYPE_SIZE_T' => 1,
76 'AC_CONFIG_LINKS' => 1,
77 'AC_CHECK_TYPES' => 1,
78 'AC_CHECK_MEMBERS' => 1,
79 'AM_MAINTAINER_MODE' => 1,
80 'AC_FUNC_UTIME_NULL' => 1,
81 'AC_FUNC_SELECT_ARGTYPES' => 1,
82 'AC_HEADER_STAT' => 1,
83 'AC_FUNC_STRFTIME' => 1,
84 'AC_PROG_CPP' => 1,
85 'AC_C_INLINE' => 1,
86 'AC_PROG_LEX' => 1,
87 'AC_C_CONST' => 1,
88 'AC_TYPE_PID_T' => 1,
89 'AC_CONFIG_FILES' => 1,
90 'include' => 1,
91 'AC_FUNC_SETVBUF_REVERSED' => 1,
92 'AC_PROG_INSTALL' => 1,
93 'AM_GNU_GETTEXT' => 1,
94 'AC_FUNC_OBSTACK' => 1,
95 'AC_CHECK_LIB' => 1,
96 'AC_FUNC_MALLOC' => 1,
97 'AC_FUNC_GETGROUPS' => 1,
98 'AC_FUNC_GETLOADAVG' => 1,
99 'AH_OUTPUT' => 1,
100 'AC_FUNC_FSEEKO' => 1,
101 'AM_PROG_CC_C_O' => 1,
102 'AC_FUNC_MKTIME' => 1,
103 'AC_CANONICAL_SYSTEM' => 1,
104 'AM_CONDITIONAL' => 1,
105 'AC_CONFIG_HEADERS' => 1,
106 'AC_HEADER_SYS_WAIT' => 1,
107 'AC_PROG_LN_S' => 1,
108 'AC_FUNC_MEMCMP' => 1,
109 'm4_include' => 1,
110 'AC_HEADER_DIRENT' => 1,
111 'AC_CHECK_FUNCS' => 1
112 }
113 ], 'Autom4te::Request' )
114 );
115
0 m4trace:configure.in:4: -1- AC_INIT([src/main/libetpan_version.h.in])
1 m4trace:configure.in:4: -1- m4_pattern_forbid([^_?A[CHUM]_])
2 m4trace:configure.in:4: -1- m4_pattern_forbid([_AC_])
3 m4trace:configure.in:4: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
4 m4trace:configure.in:4: -1- m4_pattern_allow([^AS_FLAGS$])
5 m4trace:configure.in:4: -1- m4_pattern_forbid([^_?m4_])
6 m4trace:configure.in:4: -1- m4_pattern_forbid([^dnl$])
7 m4trace:configure.in:4: -1- m4_pattern_forbid([^_?AS_])
8 m4trace:configure.in:4: -1- AC_SUBST([SHELL], [${CONFIG_SHELL-/bin/sh}])
9 m4trace:configure.in:4: -1- AC_SUBST([PATH_SEPARATOR])
10 m4trace:configure.in:4: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])])
11 m4trace:configure.in:4: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])])
12 m4trace:configure.in:4: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])])
13 m4trace:configure.in:4: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])])
14 m4trace:configure.in:4: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])])
15 m4trace:configure.in:4: -1- AC_SUBST([exec_prefix], [NONE])
16 m4trace:configure.in:4: -1- AC_SUBST([prefix], [NONE])
17 m4trace:configure.in:4: -1- AC_SUBST([program_transform_name], [s,x,x,])
18 m4trace:configure.in:4: -1- AC_SUBST([bindir], ['${exec_prefix}/bin'])
19 m4trace:configure.in:4: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin'])
20 m4trace:configure.in:4: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec'])
21 m4trace:configure.in:4: -1- AC_SUBST([datadir], ['${prefix}/share'])
22 m4trace:configure.in:4: -1- AC_SUBST([sysconfdir], ['${prefix}/etc'])
23 m4trace:configure.in:4: -1- AC_SUBST([sharedstatedir], ['${prefix}/com'])
24 m4trace:configure.in:4: -1- AC_SUBST([localstatedir], ['${prefix}/var'])
25 m4trace:configure.in:4: -1- AC_SUBST([libdir], ['${exec_prefix}/lib'])
26 m4trace:configure.in:4: -1- AC_SUBST([includedir], ['${prefix}/include'])
27 m4trace:configure.in:4: -1- AC_SUBST([oldincludedir], ['/usr/include'])
28 m4trace:configure.in:4: -1- AC_SUBST([infodir], ['${prefix}/info'])
29 m4trace:configure.in:4: -1- AC_SUBST([mandir], ['${prefix}/man'])
30 m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME])
31 m4trace:configure.in:4: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */
32 #undef PACKAGE_NAME])
33 m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME])
34 m4trace:configure.in:4: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */
35 #undef PACKAGE_TARNAME])
36 m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION])
37 m4trace:configure.in:4: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */
38 #undef PACKAGE_VERSION])
39 m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING])
40 m4trace:configure.in:4: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */
41 #undef PACKAGE_STRING])
42 m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT])
43 m4trace:configure.in:4: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */
44 #undef PACKAGE_BUGREPORT])
45 m4trace:configure.in:4: -1- AC_SUBST([build_alias])
46 m4trace:configure.in:4: -1- AC_SUBST([host_alias])
47 m4trace:configure.in:4: -1- AC_SUBST([target_alias])
48 m4trace:configure.in:4: -1- AC_SUBST([DEFS])
49 m4trace:configure.in:4: -1- AC_SUBST([ECHO_C])
50 m4trace:configure.in:4: -1- AC_SUBST([ECHO_N])
51 m4trace:configure.in:4: -1- AC_SUBST([ECHO_T])
52 m4trace:configure.in:4: -1- AC_SUBST([LIBS])
53 m4trace:configure.in:30: -1- AC_SUBST([API_VERSION])
54 m4trace:configure.in:44: -1- AC_DEFINE_TRACE_LITERAL([UNSTRICT_SYNTAX])
55 m4trace:configure.in:44: -1- AH_OUTPUT([UNSTRICT_SYNTAX], [/* Define to be lazy on protocol syntax */
56 #undef UNSTRICT_SYNTAX])
57 m4trace:configure.in:46: -1- AC_CONFIG_HEADERS([config.h])
58 m4trace:configure.in:49: -1- AC_PROG_INSTALL
59 m4trace:configure.in:49: -1- AC_SUBST([INSTALL_PROGRAM])
60 m4trace:configure.in:49: -1- AC_SUBST([INSTALL_SCRIPT])
61 m4trace:configure.in:49: -1- AC_SUBST([INSTALL_DATA])
62 m4trace:configure.in:50: -1- AC_PROG_CC
63 m4trace:configure.in:50: -1- AC_SUBST([CC])
64 m4trace:configure.in:50: -1- AC_SUBST([CFLAGS])
65 m4trace:configure.in:50: -1- AC_SUBST([LDFLAGS])
66 m4trace:configure.in:50: -1- AC_SUBST([CPPFLAGS])
67 m4trace:configure.in:50: -1- AC_SUBST([CC])
68 m4trace:configure.in:50: -1- AC_SUBST([ac_ct_CC])
69 m4trace:configure.in:50: -1- AC_SUBST([CC])
70 m4trace:configure.in:50: -1- AC_SUBST([ac_ct_CC])
71 m4trace:configure.in:50: -1- AC_SUBST([CC])
72 m4trace:configure.in:50: -1- AC_SUBST([CC])
73 m4trace:configure.in:50: -1- AC_SUBST([ac_ct_CC])
74 m4trace:configure.in:50: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext])
75 m4trace:configure.in:50: -1- AC_SUBST([OBJEXT], [$ac_cv_objext])
76 m4trace:configure.in:51: -1- AC_PROG_LIBTOOL
77 m4trace:configure.in:51: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
78 You should run autoupdate.], [autoconf/general.m4:219: AC_HELP_STRING is expanded from...
79 autoconf/general.m4:1303: AC_ARG_ENABLE is expanded from...
80 aclocal.m4:1774: AC_ENABLE_SHARED is expanded from...
81 configure.in:51: AC_ENABLE_SHARED is required by...
82 aclocal.m4:224: AC_LIBTOOL_SETUP is expanded from...
83 configure.in:51: AC_LIBTOOL_SETUP is required by...
84 aclocal.m4:82: _AC_PROG_LIBTOOL is expanded from...
85 configure.in:51: _AC_PROG_LIBTOOL is required by...
86 aclocal.m4:62: AC_PROG_LIBTOOL is expanded from...
87 configure.in:51: the top level])
88 m4trace:configure.in:51: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
89 You should run autoupdate.], [autoconf/general.m4:219: AC_HELP_STRING is expanded from...
90 autoconf/general.m4:1303: AC_ARG_ENABLE is expanded from...
91 aclocal.m4:1813: AC_ENABLE_STATIC is expanded from...
92 configure.in:51: AC_ENABLE_STATIC is required by...
93 aclocal.m4:224: AC_LIBTOOL_SETUP is expanded from...
94 configure.in:51: AC_LIBTOOL_SETUP is required by...
95 aclocal.m4:82: _AC_PROG_LIBTOOL is expanded from...
96 configure.in:51: _AC_PROG_LIBTOOL is required by...
97 aclocal.m4:62: AC_PROG_LIBTOOL is expanded from...
98 configure.in:51: the top level])
99 m4trace:configure.in:51: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
100 You should run autoupdate.], [autoconf/general.m4:219: AC_HELP_STRING is expanded from...
101 autoconf/general.m4:1303: AC_ARG_ENABLE is expanded from...
102 aclocal.m4:1852: AC_ENABLE_FAST_INSTALL is expanded from...
103 configure.in:51: AC_ENABLE_FAST_INSTALL is required by...
104 aclocal.m4:224: AC_LIBTOOL_SETUP is expanded from...
105 configure.in:51: AC_LIBTOOL_SETUP is required by...
106 aclocal.m4:82: _AC_PROG_LIBTOOL is expanded from...
107 configure.in:51: _AC_PROG_LIBTOOL is required by...
108 aclocal.m4:62: AC_PROG_LIBTOOL is expanded from...
109 configure.in:51: the top level])
110 m4trace:configure.in:51: -1- AC_CANONICAL_HOST
111 m4trace:configure.in:51: -1- AC_SUBST([build], [$ac_cv_build])
112 m4trace:configure.in:51: -1- AC_SUBST([build_cpu], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`])
113 m4trace:configure.in:51: -1- AC_SUBST([build_vendor], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`])
114 m4trace:configure.in:51: -1- AC_SUBST([build_os], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`])
115 m4trace:configure.in:51: -1- AC_SUBST([host], [$ac_cv_host])
116 m4trace:configure.in:51: -1- AC_SUBST([host_cpu], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`])
117 m4trace:configure.in:51: -1- AC_SUBST([host_vendor], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`])
118 m4trace:configure.in:51: -1- AC_SUBST([host_os], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`])
119 m4trace:configure.in:51: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
120 You should run autoupdate.], [autoconf/general.m4:219: AC_HELP_STRING is expanded from...
121 autoconf/general.m4:1331: AC_ARG_WITH is expanded from...
122 aclocal.m4:2049: AC_PROG_LD is expanded from...
123 configure.in:51: AC_PROG_LD is required by...
124 aclocal.m4:224: AC_LIBTOOL_SETUP is expanded from...
125 configure.in:51: AC_LIBTOOL_SETUP is required by...
126 aclocal.m4:82: _AC_PROG_LIBTOOL is expanded from...
127 configure.in:51: _AC_PROG_LIBTOOL is required by...
128 aclocal.m4:62: AC_PROG_LIBTOOL is expanded from...
129 configure.in:51: the top level])
130 m4trace:configure.in:51: -1- AC_SUBST([EGREP])
131 m4trace:configure.in:51: -1- AC_PROG_LN_S
132 m4trace:configure.in:51: -1- AC_SUBST([LN_S], [$as_ln_s])
133 m4trace:configure.in:51: -1- AC_SUBST([ECHO])
134 m4trace:configure.in:51: -1- AC_SUBST([AR])
135 m4trace:configure.in:51: -1- AC_SUBST([ac_ct_AR])
136 m4trace:configure.in:51: -1- AC_SUBST([RANLIB])
137 m4trace:configure.in:51: -1- AC_SUBST([ac_ct_RANLIB])
138 m4trace:configure.in:51: -1- AC_SUBST([STRIP])
139 m4trace:configure.in:51: -1- AC_SUBST([ac_ct_STRIP])
140 m4trace:configure.in:51: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
141 You should run autoupdate.], [autoconf/general.m4:219: AC_HELP_STRING is expanded from...
142 autoconf/general.m4:1303: AC_ARG_ENABLE is expanded from...
143 aclocal.m4:224: AC_LIBTOOL_SETUP is expanded from...
144 configure.in:51: AC_LIBTOOL_SETUP is required by...
145 aclocal.m4:82: _AC_PROG_LIBTOOL is expanded from...
146 configure.in:51: _AC_PROG_LIBTOOL is required by...
147 aclocal.m4:62: AC_PROG_LIBTOOL is expanded from...
148 configure.in:51: the top level])
149 m4trace:configure.in:51: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
150 You should run autoupdate.], [autoconf/general.m4:219: AC_HELP_STRING is expanded from...
151 autoconf/general.m4:1331: AC_ARG_WITH is expanded from...
152 aclocal.m4:224: AC_LIBTOOL_SETUP is expanded from...
153 configure.in:51: AC_LIBTOOL_SETUP is required by...
154 aclocal.m4:82: _AC_PROG_LIBTOOL is expanded from...
155 configure.in:51: _AC_PROG_LIBTOOL is required by...
156 aclocal.m4:62: AC_PROG_LIBTOOL is expanded from...
157 configure.in:51: the top level])
158 m4trace:configure.in:51: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete.
159 You should run autoupdate.], [autoconf/general.m4:2223: AC_TRY_LINK is expanded from...
160 autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
161 autoconf/general.m4:1808: AC_CACHE_CHECK is expanded from...
162 aclocal.m4:551: _LT_AC_LOCK is expanded from...
163 configure.in:51: _LT_AC_LOCK is required by...
164 aclocal.m4:982: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
165 aclocal.m4:2596: _LT_AC_LANG_C_CONFIG is expanded from...
166 aclocal.m4:2463: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
167 aclocal.m4:224: AC_LIBTOOL_SETUP is expanded from...
168 configure.in:51: AC_LIBTOOL_SETUP is required by...
169 aclocal.m4:82: _AC_PROG_LIBTOOL is expanded from...
170 configure.in:51: _AC_PROG_LIBTOOL is required by...
171 aclocal.m4:62: AC_PROG_LIBTOOL is expanded from...
172 configure.in:51: the top level])
173 m4trace:configure.in:51: -1- AC_CHECK_HEADERS([dlfcn.h])
174 m4trace:configure.in:51: -1- AH_OUTPUT([HAVE_DLFCN_H], [/* Define to 1 if you have the <dlfcn.h> header file. */
175 #undef HAVE_DLFCN_H])
176 m4trace:configure.in:51: -1- AC_HEADER_STDC
177 m4trace:configure.in:51: -1- AC_PROG_CPP
178 m4trace:configure.in:51: -1- AC_SUBST([CPP])
179 m4trace:configure.in:51: -1- AC_SUBST([CPPFLAGS])
180 m4trace:configure.in:51: -1- AC_SUBST([CPP])
181 m4trace:configure.in:51: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS])
182 m4trace:configure.in:51: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */
183 #undef STDC_HEADERS])
184 m4trace:configure.in:51: -1- AC_CHECK_HEADERS([sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
185 inttypes.h stdint.h unistd.h], [], [], [$ac_includes_default])
186 m4trace:configure.in:51: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the <sys/types.h> header file. */
187 #undef HAVE_SYS_TYPES_H])
188 m4trace:configure.in:51: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the <sys/stat.h> header file. */
189 #undef HAVE_SYS_STAT_H])
190 m4trace:configure.in:51: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the <stdlib.h> header file. */
191 #undef HAVE_STDLIB_H])
192 m4trace:configure.in:51: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the <string.h> header file. */
193 #undef HAVE_STRING_H])
194 m4trace:configure.in:51: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the <memory.h> header file. */
195 #undef HAVE_MEMORY_H])
196 m4trace:configure.in:51: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */
197 #undef HAVE_STRINGS_H])
198 m4trace:configure.in:51: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the <inttypes.h> header file. */
199 #undef HAVE_INTTYPES_H])
200 m4trace:configure.in:51: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the <stdint.h> header file. */
201 #undef HAVE_STDINT_H])
202 m4trace:configure.in:51: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */
203 #undef HAVE_UNISTD_H])
204 m4trace:configure.in:51: -1- AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [
205 lt_cv_dlopen="dyld"
206 lt_cv_dlopen_libs=
207 lt_cv_dlopen_self=yes
208 ])
209 m4trace:configure.in:51: -1- AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], [AC_CHECK_FUNC([dlopen],
210 [lt_cv_dlopen="dlopen"],
211 [AC_CHECK_LIB([dl], [dlopen],
212 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
213 [AC_CHECK_LIB([svld], [dlopen],
214 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
215 [AC_CHECK_LIB([dld], [dld_link],
216 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
217 ])
218 ])
219 ])
220 ])
221 m4trace:configure.in:51: -1- AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen],
222 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
223 [AC_CHECK_LIB([dld], [dld_link],
224 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
225 ])
226 ])
227 m4trace:configure.in:51: -1- AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link],
228 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
229 ])
230 m4trace:configure.in:51: -1- AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
231 m4trace:configure.in:51: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
232 You should run autoupdate.], [autoconf/general.m4:219: AC_HELP_STRING is expanded from...
233 autoconf/general.m4:1331: AC_ARG_WITH is expanded from...
234 aclocal.m4:1728: _LT_AC_TAGCONFIG is expanded from...
235 aclocal.m4:224: AC_LIBTOOL_SETUP is expanded from...
236 configure.in:51: AC_LIBTOOL_SETUP is required by...
237 aclocal.m4:82: _AC_PROG_LIBTOOL is expanded from...
238 configure.in:51: _AC_PROG_LIBTOOL is required by...
239 aclocal.m4:62: AC_PROG_LIBTOOL is expanded from...
240 configure.in:51: the top level])
241 m4trace:configure.in:51: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me:$LINENO: error: tag name \"$tagname\" already exists], [aclocal.m4:1728: _LT_AC_TAGCONFIG is expanded from...
242 aclocal.m4:224: AC_LIBTOOL_SETUP is expanded from...
243 configure.in:51: AC_LIBTOOL_SETUP is required by...
244 aclocal.m4:82: _AC_PROG_LIBTOOL is expanded from...
245 configure.in:51: _AC_PROG_LIBTOOL is required by...
246 aclocal.m4:62: AC_PROG_LIBTOOL is expanded from...
247 configure.in:51: the top level])
248 m4trace:configure.in:51: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me: error: tag name \"$tagname\" already exists], [aclocal.m4:1728: _LT_AC_TAGCONFIG is expanded from...
249 aclocal.m4:224: AC_LIBTOOL_SETUP is expanded from...
250 configure.in:51: AC_LIBTOOL_SETUP is required by...
251 aclocal.m4:82: _AC_PROG_LIBTOOL is expanded from...
252 configure.in:51: _AC_PROG_LIBTOOL is required by...
253 aclocal.m4:62: AC_PROG_LIBTOOL is expanded from...
254 configure.in:51: the top level])
255 m4trace:configure.in:51: -1- AC_PROG_CXX
256 m4trace:configure.in:51: -1- AC_SUBST([CXX])
257 m4trace:configure.in:51: -1- AC_SUBST([CXXFLAGS])
258 m4trace:configure.in:51: -1- AC_SUBST([LDFLAGS])
259 m4trace:configure.in:51: -1- AC_SUBST([CPPFLAGS])
260 m4trace:configure.in:51: -1- AC_SUBST([CXX])
261 m4trace:configure.in:51: -1- AC_SUBST([ac_ct_CXX])
262 m4trace:configure.in:51: -1- AC_SUBST([CXXCPP])
263 m4trace:configure.in:51: -1- AC_SUBST([CPPFLAGS])
264 m4trace:configure.in:51: -1- AC_SUBST([CXXCPP])
265 m4trace:configure.in:51: -1- AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [
266 lt_cv_dlopen="dyld"
267 lt_cv_dlopen_libs=
268 lt_cv_dlopen_self=yes
269 ])
270 m4trace:configure.in:51: -1- AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], [AC_CHECK_FUNC([dlopen],
271 [lt_cv_dlopen="dlopen"],
272 [AC_CHECK_LIB([dl], [dlopen],
273 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
274 [AC_CHECK_LIB([svld], [dlopen],
275 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
276 [AC_CHECK_LIB([dld], [dld_link],
277 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
278 ])
279 ])
280 ])
281 ])
282 m4trace:configure.in:51: -1- AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen],
283 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
284 [AC_CHECK_LIB([dld], [dld_link],
285 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
286 ])
287 ])
288 m4trace:configure.in:51: -1- AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link],
289 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
290 ])
291 m4trace:configure.in:51: -1- AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
292 m4trace:configure.in:51: -1- AC_SUBST([F77])
293 m4trace:configure.in:51: -1- AC_SUBST([FFLAGS])
294 m4trace:configure.in:51: -1- AC_SUBST([LDFLAGS])
295 m4trace:configure.in:51: -1- AC_SUBST([F77])
296 m4trace:configure.in:51: -1- AC_SUBST([ac_ct_F77])
297 m4trace:configure.in:51: -1- _m4_warn([obsolete], [The macro `AC_LANG_SAVE' is obsolete.
298 You should run autoupdate.], [autoconf/lang.m4:166: AC_LANG_SAVE is expanded from...
299 aclocal.m4:3773: _LT_AC_LANG_GCJ_CONFIG is expanded from...
300 aclocal.m4:3730: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
301 aclocal.m4:1728: _LT_AC_TAGCONFIG is expanded from...
302 aclocal.m4:224: AC_LIBTOOL_SETUP is expanded from...
303 configure.in:51: AC_LIBTOOL_SETUP is required by...
304 aclocal.m4:82: _AC_PROG_LIBTOOL is expanded from...
305 configure.in:51: _AC_PROG_LIBTOOL is required by...
306 aclocal.m4:62: AC_PROG_LIBTOOL is expanded from...
307 configure.in:51: the top level])
308 m4trace:configure.in:51: -1- _m4_warn([obsolete], [instead of using `AC_LANG', `AC_LANG_SAVE',
309 and `AC_LANG_RESTORE', you should use `AC_LANG_PUSH' and `AC_LANG_POP'.], [autoconf/lang.m4:166: AC_LANG_SAVE is expanded from...
310 aclocal.m4:3773: _LT_AC_LANG_GCJ_CONFIG is expanded from...
311 aclocal.m4:3730: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
312 aclocal.m4:1728: _LT_AC_TAGCONFIG is expanded from...
313 aclocal.m4:224: AC_LIBTOOL_SETUP is expanded from...
314 configure.in:51: AC_LIBTOOL_SETUP is required by...
315 aclocal.m4:82: _AC_PROG_LIBTOOL is expanded from...
316 configure.in:51: _AC_PROG_LIBTOOL is required by...
317 aclocal.m4:62: AC_PROG_LIBTOOL is expanded from...
318 configure.in:51: the top level])
319 m4trace:configure.in:51: -1- AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [
320 lt_cv_dlopen="dyld"
321 lt_cv_dlopen_libs=
322 lt_cv_dlopen_self=yes
323 ])
324 m4trace:configure.in:51: -1- AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], [AC_CHECK_FUNC([dlopen],
325 [lt_cv_dlopen="dlopen"],
326 [AC_CHECK_LIB([dl], [dlopen],
327 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
328 [AC_CHECK_LIB([svld], [dlopen],
329 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
330 [AC_CHECK_LIB([dld], [dld_link],
331 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
332 ])
333 ])
334 ])
335 ])
336 m4trace:configure.in:51: -1- AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen],
337 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
338 [AC_CHECK_LIB([dld], [dld_link],
339 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
340 ])
341 ])
342 m4trace:configure.in:51: -1- AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link],
343 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
344 ])
345 m4trace:configure.in:51: -1- AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
346 m4trace:configure.in:51: -1- _m4_warn([obsolete], [The macro `AC_LANG_RESTORE' is obsolete.
347 You should run autoupdate.], [autoconf/lang.m4:172: AC_LANG_RESTORE is expanded from...
348 aclocal.m4:3773: _LT_AC_LANG_GCJ_CONFIG is expanded from...
349 aclocal.m4:3730: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
350 aclocal.m4:1728: _LT_AC_TAGCONFIG is expanded from...
351 aclocal.m4:224: AC_LIBTOOL_SETUP is expanded from...
352 configure.in:51: AC_LIBTOOL_SETUP is required by...
353 aclocal.m4:82: _AC_PROG_LIBTOOL is expanded from...
354 configure.in:51: _AC_PROG_LIBTOOL is required by...
355 aclocal.m4:62: AC_PROG_LIBTOOL is expanded from...
356 configure.in:51: the top level])
357 m4trace:configure.in:51: -1- _m4_warn([obsolete], [The macro `AC_LANG_SAVE' is obsolete.
358 You should run autoupdate.], [autoconf/lang.m4:166: AC_LANG_SAVE is expanded from...
359 aclocal.m4:3812: _LT_AC_LANG_RC_CONFIG is expanded from...
360 aclocal.m4:3781: AC_LIBTOOL_LANG_RC_CONFIG is expanded from...
361 aclocal.m4:1728: _LT_AC_TAGCONFIG is expanded from...
362 aclocal.m4:224: AC_LIBTOOL_SETUP is expanded from...
363 configure.in:51: AC_LIBTOOL_SETUP is required by...
364 aclocal.m4:82: _AC_PROG_LIBTOOL is expanded from...
365 configure.in:51: _AC_PROG_LIBTOOL is required by...
366 aclocal.m4:62: AC_PROG_LIBTOOL is expanded from...
367 configure.in:51: the top level])
368 m4trace:configure.in:51: -1- _m4_warn([obsolete], [instead of using `AC_LANG', `AC_LANG_SAVE',
369 and `AC_LANG_RESTORE', you should use `AC_LANG_PUSH' and `AC_LANG_POP'.], [autoconf/lang.m4:166: AC_LANG_SAVE is expanded from...
370 aclocal.m4:3812: _LT_AC_LANG_RC_CONFIG is expanded from...
371 aclocal.m4:3781: AC_LIBTOOL_LANG_RC_CONFIG is expanded from...
372 aclocal.m4:1728: _LT_AC_TAGCONFIG is expanded from...
373 aclocal.m4:224: AC_LIBTOOL_SETUP is expanded from...
374 configure.in:51: AC_LIBTOOL_SETUP is required by...
375 aclocal.m4:82: _AC_PROG_LIBTOOL is expanded from...
376 configure.in:51: _AC_PROG_LIBTOOL is required by...
377 aclocal.m4:62: AC_PROG_LIBTOOL is expanded from...
378 configure.in:51: the top level])
379 m4trace:configure.in:51: -1- _m4_warn([obsolete], [The macro `AC_LANG_RESTORE' is obsolete.
380 You should run autoupdate.], [autoconf/lang.m4:172: AC_LANG_RESTORE is expanded from...
381 aclocal.m4:3812: _LT_AC_LANG_RC_CONFIG is expanded from...
382 aclocal.m4:3781: AC_LIBTOOL_LANG_RC_CONFIG is expanded from...
383 aclocal.m4:1728: _LT_AC_TAGCONFIG is expanded from...
384 aclocal.m4:224: AC_LIBTOOL_SETUP is expanded from...
385 configure.in:51: AC_LIBTOOL_SETUP is required by...
386 aclocal.m4:82: _AC_PROG_LIBTOOL is expanded from...
387 configure.in:51: _AC_PROG_LIBTOOL is required by...
388 aclocal.m4:62: AC_PROG_LIBTOOL is expanded from...
389 configure.in:51: the top level])
390 m4trace:configure.in:51: -1- AC_SUBST([LIBTOOL])
391 m4trace:configure.in:52: -1- AC_PROG_MAKE_SET
392 m4trace:configure.in:52: -1- AC_SUBST([SET_MAKE])
393 m4trace:configure.in:55: -1- AC_HEADER_STDC
394 m4trace:configure.in:55: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS])
395 m4trace:configure.in:55: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */
396 #undef STDC_HEADERS])
397 m4trace:configure.in:56: -1- AC_CHECK_HEADERS([fcntl.h unistd.h ctype.h sys/types.h sys/stat.h sys/mman.h limits.h])
398 m4trace:configure.in:56: -1- AH_OUTPUT([HAVE_FCNTL_H], [/* Define to 1 if you have the <fcntl.h> header file. */
399 #undef HAVE_FCNTL_H])
400 m4trace:configure.in:56: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */
401 #undef HAVE_UNISTD_H])
402 m4trace:configure.in:56: -1- AH_OUTPUT([HAVE_CTYPE_H], [/* Define to 1 if you have the <ctype.h> header file. */
403 #undef HAVE_CTYPE_H])
404 m4trace:configure.in:56: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the <sys/types.h> header file. */
405 #undef HAVE_SYS_TYPES_H])
406 m4trace:configure.in:56: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the <sys/stat.h> header file. */
407 #undef HAVE_SYS_STAT_H])
408 m4trace:configure.in:56: -1- AH_OUTPUT([HAVE_SYS_MMAN_H], [/* Define to 1 if you have the <sys/mman.h> header file. */
409 #undef HAVE_SYS_MMAN_H])
410 m4trace:configure.in:56: -1- AH_OUTPUT([HAVE_LIMITS_H], [/* Define to 1 if you have the <limits.h> header file. */
411 #undef HAVE_LIMITS_H])
412 m4trace:configure.in:57: -1- AC_CHECK_HEADERS([netdb.h netinet/in.h sys/socket.h])
413 m4trace:configure.in:57: -1- AH_OUTPUT([HAVE_NETDB_H], [/* Define to 1 if you have the <netdb.h> header file. */
414 #undef HAVE_NETDB_H])
415 m4trace:configure.in:57: -1- AH_OUTPUT([HAVE_NETINET_IN_H], [/* Define to 1 if you have the <netinet/in.h> header file. */
416 #undef HAVE_NETINET_IN_H])
417 m4trace:configure.in:57: -1- AH_OUTPUT([HAVE_SYS_SOCKET_H], [/* Define to 1 if you have the <sys/socket.h> header file. */
418 #undef HAVE_SYS_SOCKET_H])
419 m4trace:configure.in:58: -1- AC_CHECK_HEADERS([sys/param.h])
420 m4trace:configure.in:58: -1- AH_OUTPUT([HAVE_SYS_PARAM_H], [/* Define to 1 if you have the <sys/param.h> header file. */
421 #undef HAVE_SYS_PARAM_H])
422 m4trace:configure.in:61: -1- AC_FUNC_MMAP
423 m4trace:configure.in:61: -1- AC_CHECK_HEADERS([stdlib.h unistd.h])
424 m4trace:configure.in:61: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the <stdlib.h> header file. */
425 #undef HAVE_STDLIB_H])
426 m4trace:configure.in:61: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */
427 #undef HAVE_UNISTD_H])
428 m4trace:configure.in:61: -1- AC_CHECK_FUNCS([getpagesize])
429 m4trace:configure.in:61: -1- AH_OUTPUT([HAVE_GETPAGESIZE], [/* Define to 1 if you have the `getpagesize\' function. */
430 #undef HAVE_GETPAGESIZE])
431 m4trace:configure.in:61: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MMAP])
432 m4trace:configure.in:61: -1- AH_OUTPUT([HAVE_MMAP], [/* Define to 1 if you have a working `mmap\' system call. */
433 #undef HAVE_MMAP])
434 m4trace:configure.in:68: -1- AC_CHECK_LIB([socket], [connect])
435 m4trace:configure.in:68: -1- AH_OUTPUT([HAVE_LIBSOCKET], [/* Define to 1 if you have the `socket\' library (-lsocket). */
436 #undef HAVE_LIBSOCKET])
437 m4trace:configure.in:68: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBSOCKET])
438 m4trace:configure.in:75: -1- AC_CHECK_LIB([nsl], [inet_ntoa])
439 m4trace:configure.in:75: -1- AH_OUTPUT([HAVE_LIBNSL], [/* Define to 1 if you have the `nsl\' library (-lnsl). */
440 #undef HAVE_LIBNSL])
441 m4trace:configure.in:75: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBNSL])
442 m4trace:configure.in:94: -1- AC_CHECK_LIB([rsaref], [main], [SSLLIBS="-lrsaref"])
443 m4trace:configure.in:94: -1- AC_CHECK_LIB([crypto], [main], [SSLLIBS="-lcrypto $SSLLIBS"], [], [$SSLLIBS])
444 m4trace:configure.in:94: -1- AC_CHECK_LIB([ssl], [SSL_library_init], [with_openssl=yes], [], [$SSLLIBS])
445 m4trace:configure.in:101: -1- AC_DEFINE_TRACE_LITERAL([USE_SSL])
446 m4trace:configure.in:101: -1- AH_OUTPUT([USE_SSL], [/* Define to use OpenSSL */
447 #undef USE_SSL])
448 m4trace:configure.in:107: -1- AC_SUBST([SSLLIBS])
449 m4trace:configure.in:131: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete.
450 You should run autoupdate.], [autoconf/general.m4:2180: AC_TRY_COMPILE is expanded from...
451 configure.in:131: the top level])
452 m4trace:configure.in:139: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete.
453 You should run autoupdate.], [autoconf/general.m4:2180: AC_TRY_COMPILE is expanded from...
454 configure.in:139: the top level])
455 m4trace:configure.in:157: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete.
456 You should run autoupdate.], [autoconf/general.m4:2223: AC_TRY_LINK is expanded from...
457 configure.in:157: the top level])
458 m4trace:configure.in:167: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete.
459 You should run autoupdate.], [autoconf/general.m4:2223: AC_TRY_LINK is expanded from...
460 configure.in:167: the top level])
461 m4trace:configure.in:182: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ICONV])
462 m4trace:configure.in:182: -1- AH_OUTPUT([HAVE_ICONV], [/* Define if you have the iconv() function. */
463 #undef HAVE_ICONV])
464 m4trace:configure.in:188: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ICONV_PROTO_CONST])
465 m4trace:configure.in:188: -1- AH_OUTPUT([HAVE_ICONV_PROTO_CONST], [/* prototype of iconv() has const parameters */
466 #undef HAVE_ICONV_PROTO_CONST])
467 m4trace:configure.in:191: -1- AC_SUBST([LIBICONV])
468 m4trace:configure.in:219: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete.
469 You should run autoupdate.], [autoconf/general.m4:2180: AC_TRY_COMPILE is expanded from...
470 configure.in:219: the top level])
471 m4trace:configure.in:228: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete.
472 You should run autoupdate.], [autoconf/general.m4:2180: AC_TRY_COMPILE is expanded from...
473 configure.in:228: the top level])
474 m4trace:configure.in:253: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete.
475 You should run autoupdate.], [autoconf/general.m4:2223: AC_TRY_LINK is expanded from...
476 configure.in:253: the top level])
477 m4trace:configure.in:264: -1- AC_CHECK_LIB([$lib], [db_open], [DBLIB="-l$lib"; DBLINKED=1], [])
478 m4trace:configure.in:275: -1- AC_CHECK_LIB([$lib], [dbopen], [DBLIB="-l$lib"; DBLINKED=1], [])
479 m4trace:configure.in:291: -1- AC_DEFINE_TRACE_LITERAL([DBVERS])
480 m4trace:configure.in:291: -1- AH_OUTPUT([DBVERS], [/* Define to detected Berkeley DB major version number */
481 #undef DBVERS])
482 m4trace:configure.in:292: -1- AC_SUBST([DBLIB])
483 m4trace:configure.in:299: -1- AC_CHECK_HEADERS([pthread.h], [], [AC_MSG_ERROR([pthread support required])])
484 m4trace:configure.in:299: -1- AH_OUTPUT([HAVE_PTHREAD_H], [/* Define to 1 if you have the <pthread.h> header file. */
485 #undef HAVE_PTHREAD_H])
486 m4trace:configure.in:306: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete.
487 You should run autoupdate.], [autoconf/general.m4:2223: AC_TRY_LINK is expanded from...
488 configure.in:306: the top level])
489 m4trace:configure.in:316: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete.
490 You should run autoupdate.], [autoconf/general.m4:2223: AC_TRY_LINK is expanded from...
491 configure.in:316: the top level])
492 m4trace:configure.in:325: -1- AC_CHECK_LIB([$lib], [pthread_create], [LIBS="$LIBS -l$lib"; checkpthread=no])
493 m4trace:configure.in:334: -1- AC_DEFINE_TRACE_LITERAL([LIBETPAN_REENTRANT])
494 m4trace:configure.in:334: -1- AH_OUTPUT([LIBETPAN_REENTRANT], [/* Define to include multithreading support */
495 #undef LIBETPAN_REENTRANT])
496 m4trace:configure.in:341: -1- AC_SUBST([LIBSUFFIX])
497 m4trace:configure.in:342: -1- AC_SUBST([REENTRANT])
498 m4trace:configure.in:345: -1- AC_CHECK_LIB([lockfile], [lockfile_create])
499 m4trace:configure.in:345: -1- AH_OUTPUT([HAVE_LIBLOCKFILE], [/* Define to 1 if you have the `lockfile\' library (-llockfile). */
500 #undef HAVE_LIBLOCKFILE])
501 m4trace:configure.in:345: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBLOCKFILE])
502 m4trace:configure.in:348: -1- AC_DEFINE_TRACE_LITERAL([LIBETPAN_VERSION_MAJOR])
503 m4trace:configure.in:348: -1- AH_OUTPUT([LIBETPAN_VERSION_MAJOR], [/* Define this to the major version of libEtPan */
504 #undef LIBETPAN_VERSION_MAJOR])
505 m4trace:configure.in:350: -1- AC_DEFINE_TRACE_LITERAL([LIBETPAN_VERSION_MINOR])
506 m4trace:configure.in:350: -1- AH_OUTPUT([LIBETPAN_VERSION_MINOR], [/* Define this to the minor version of libEtPan */
507 #undef LIBETPAN_VERSION_MINOR])
508 m4trace:configure.in:351: -1- AC_SUBST([VERSION_MAJOR])
509 m4trace:configure.in:352: -1- AC_SUBST([VERSION_MINOR])
510 m4trace:configure.in:358: -1- AC_DEFINE_TRACE_LITERAL([LIBETPAN_VERSION])
511 m4trace:configure.in:358: -1- AH_OUTPUT([LIBETPAN_VERSION], [/* Define this to the version of libEtPan */
512 #undef LIBETPAN_VERSION])
513 m4trace:configure.in:359: -1- AC_SUBST([VERSION])
514 m4trace:configure.in:367: -1- AC_CONFIG_FILES([Makefile \
515 Rules \
516 libetpan-config \
517 src/Makefile \
518 src/main/libetpan_version.h \
519 ])
520 m4trace:configure.in:367: -1- _m4_warn([obsolete], [AC_OUTPUT should be used without arguments.
521 You should run autoupdate.], [])
522 m4trace:configure.in:367: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
523 m4trace:configure.in:367: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
8585 #define LIBETPAN_REENTRANT 1
8686
8787 /* Define this to the version of libEtPan */
88 #define LIBETPAN_VERSION "0.35"
88 #define LIBETPAN_VERSION "0.36"
8989
9090 /* Define this to the major version of libEtPan */
9191 #define LIBETPAN_VERSION_MAJOR 0
9292
9393 /* Define this to the minor version of libEtPan */
94 #define LIBETPAN_VERSION_MINOR 35
94 #define LIBETPAN_VERSION_MINOR 36
9595
9696 /* Define to the address where bug reports for this package should be sent. */
9797 #define PACKAGE_BUGREPORT ""
2626 /usr/bin/oslevel = unknown
2727 /bin/universe = unknown
2828
29 PATH: /home/alfie/bin
3029 PATH: /home/alfie/bin
3130 PATH: /home/alfie/bin
3231 PATH: /home/alfie/bin
4847 configure:1719: result: gcc
4948 configure:1963: checking for C compiler version
5049 configure:1966: gcc --version </dev/null >&5
51 gcc (GCC) 3.3.4 (Debian 1:3.3.4-13)
50 gcc (GCC) 3.3.5 (Debian 1:3.3.5-8)
5251 Copyright (C) 2003 Free Software Foundation, Inc.
5352 This is free software; see the source for copying conditions. There is NO
5453 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5554
5655 configure:1969: $? = 0
5756 configure:1971: gcc -v </dev/null >&5
58 Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.4/specs
57 Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
5958 Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
6059 Thread model: posix
61 gcc version 3.3.4 (Debian 1:3.3.4-13)
60 gcc version 3.3.5 (Debian 1:3.3.5-8)
6261 configure:1974: $? = 0
6362 configure:1976: gcc -V </dev/null >&5
6463 gcc: `-V' option must have argument
271270 configure:4026: result: g++
272271 configure:4042: checking for C++ compiler version
273272 configure:4045: g++ --version </dev/null >&5
274 g++ (GCC) 3.3.4 (Debian 1:3.3.4-13)
273 g++ (GCC) 3.3.5 (Debian 1:3.3.5-8)
275274 Copyright (C) 2003 Free Software Foundation, Inc.
276275 This is free software; see the source for copying conditions. There is NO
277276 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
278277
279278 configure:4048: $? = 0
280279 configure:4050: g++ -v </dev/null >&5
281 Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.4/specs
280 Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
282281 Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
283282 Thread model: posix
284 gcc version 3.3.4 (Debian 1:3.3.4-13)
283 gcc version 3.3.5 (Debian 1:3.3.5-8)
285284 configure:4053: $? = 0
286285 configure:4055: g++ -V </dev/null >&5
287286 g++: `-V' option must have argument
949948 configure:21425: gcc -o conftest -O2 -W -Wall -g -DDEBUG -D_REENTRANT conftest.c >&5
950949 conftest.c: In function `main':
951950 conftest.c:48: warning: implicit declaration of function `pthread_create'
952 /tmp/ccmvJiPD.o(.text+0xa): In function `main':
953 /home/alfie/work/code/libetpan/libetpan-0.35/conftest.c:48: undefined reference to `pthread_create'
951 /tmp/ccO4SnAL.o(.text+0xa): In function `main':
952 /home/alfie/work/code/libetpan/libetpan-0.36/conftest.c:48: undefined reference to `pthread_create'
954953 collect2: ld returned 1 exit status
955954 configure:21431: $? = 1
956955 configure: failed program was:
10111010 gcc: unrecognized option `-pthreads'
10121011 conftest.c: In function `main':
10131012 conftest.c:48: warning: implicit declaration of function `pthread_create'
1014 /tmp/ccaIjAoc.o(.text+0xa): In function `main':
1015 /home/alfie/work/code/libetpan/libetpan-0.35/conftest.c:48: undefined reference to `pthread_create'
1013 /tmp/ccmfKepg.o(.text+0xa): In function `main':
1014 /home/alfie/work/code/libetpan/libetpan-0.36/conftest.c:48: undefined reference to `pthread_create'
10161015 collect2: ld returned 1 exit status
10171016 configure:21485: $? = 1
10181017 configure: failed program was:
12231222 ## Output variables. ##
12241223 ## ----------------- ##
12251224
1226 API_VERSION='2:2:1'
1225 API_VERSION='2:3:1'
12271226 AR='ar'
12281227 CC='gcc'
12291228 CFLAGS=' -O2 -W -Wall -g'
12661265 SHELL='/bin/sh'
12671266 SSLLIBS='-lssl -lcrypto '
12681267 STRIP='strip'
1269 VERSION='0.35'
1268 VERSION='0.36'
12701269 VERSION_MAJOR='0'
1271 VERSION_MINOR='35'
1270 VERSION_MINOR='36'
12721271 ac_ct_AR='ar'
12731272 ac_ct_CC='gcc'
12741273 ac_ct_CXX='g++'
13361335 #define HAVE_UNISTD_H 1
13371336 #define HAVE_UNISTD_H 1
13381337 #define LIBETPAN_REENTRANT 1
1339 #define LIBETPAN_VERSION "0.35"
1338 #define LIBETPAN_VERSION "0.36"
13401339 #define LIBETPAN_VERSION_MAJOR 0
1341 #define LIBETPAN_VERSION_MINOR 35
1340 #define LIBETPAN_VERSION_MINOR 36
13421341 #define PACKAGE_BUGREPORT ""
13431342 #define PACKAGE_NAME ""
13441343 #define PACKAGE_STRING ""
473473 s,@ECHO_N@,-n,;t t
474474 s,@ECHO_T@,,;t t
475475 s,@LIBS@,-llockfile ,;t t
476 s,@API_VERSION@,2:2:1,;t t
476 s,@API_VERSION@,2:3:1,;t t
477477 s,@INSTALL_PROGRAM@,${INSTALL},;t t
478478 s,@INSTALL_SCRIPT@,${INSTALL},;t t
479479 s,@INSTALL_DATA@,${INSTALL} -m 644,;t t
517517 s,@LIBSUFFIX@,,;t t
518518 s,@REENTRANT@,1,;t t
519519 s,@VERSION_MAJOR@,0,;t t
520 s,@VERSION_MINOR@,35,;t t
521 s,@VERSION@,0.35,;t t
520 s,@VERSION_MINOR@,36,;t t
521 s,@VERSION@,0.36,;t t
522522 s,@LIBOBJS@,,;t t
523523 s,@LTLIBOBJS@,,;t t
524524 CEOF
879879 : clr
880880 ${ac_dA}HAVE_LIBLOCKFILE${ac_dB}HAVE_LIBLOCKFILE${ac_dC}1${ac_dD}
881881 ${ac_dA}LIBETPAN_VERSION_MAJOR${ac_dB}LIBETPAN_VERSION_MAJOR${ac_dC}0${ac_dD}
882 ${ac_dA}LIBETPAN_VERSION_MINOR${ac_dB}LIBETPAN_VERSION_MINOR${ac_dC}35${ac_dD}
883 ${ac_dA}LIBETPAN_VERSION${ac_dB}LIBETPAN_VERSION${ac_dC}"0.35"${ac_dD}
882 ${ac_dA}LIBETPAN_VERSION_MINOR${ac_dB}LIBETPAN_VERSION_MINOR${ac_dC}36${ac_dD}
883 ${ac_dA}LIBETPAN_VERSION${ac_dB}LIBETPAN_VERSION${ac_dC}"0.36"${ac_dD}
884884 CEOF
885885 sed -f $tmp/defines.sed $tmp/in >$tmp/out
886886 rm -f $tmp/in
942942 : clr
943943 ${ac_uA}HAVE_LIBLOCKFILE${ac_uB}HAVE_LIBLOCKFILE${ac_uC}1${ac_uD}
944944 ${ac_uA}LIBETPAN_VERSION_MAJOR${ac_uB}LIBETPAN_VERSION_MAJOR${ac_uC}0${ac_uD}
945 ${ac_uA}LIBETPAN_VERSION_MINOR${ac_uB}LIBETPAN_VERSION_MINOR${ac_uC}35${ac_uD}
946 ${ac_uA}LIBETPAN_VERSION${ac_uB}LIBETPAN_VERSION${ac_uC}"0.35"${ac_uD}
945 ${ac_uA}LIBETPAN_VERSION_MINOR${ac_uB}LIBETPAN_VERSION_MINOR${ac_uC}36${ac_uD}
946 ${ac_uA}LIBETPAN_VERSION${ac_uB}LIBETPAN_VERSION${ac_uC}"0.36"${ac_uD}
947947 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
948948 CEOF
949949 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14951495
14961496
14971497 VERSION_MAJOR=0
1498 VERSION_MINOR=35
1498 VERSION_MINOR=36
14991499
15001500 API_CURRENT=2
1501 API_REVISION=2
1501 API_REVISION=3
15021502 API_COMPATIBILITY=1
15031503
15041504 API_AGE=`expr $API_CURRENT - $API_COMPATIBILITY`
00 dnl Process this file with autoconf to create configure
1 dnl $Id: configure.in,v 1.39 2004/12/28 07:46:50 alfie Exp $
1 dnl $Id: configure.in,v 1.40 2005/02/22 14:55:00 alfie Exp $
22
33 AC_INIT(src/main/libetpan_version.h.in)
44
55 dnl Version major and minor
66 VERSION_MAJOR=0
7 VERSION_MINOR=35
7 VERSION_MINOR=36
88
99 dnl API version
10 dnl 1. If you have changed any of the sources for this library, the revision
11 dnl number must be incremented. This is a new revision of the current
12 dnl interface.
13 dnl 2. If the interface has changed, then current must be incremented, and
14 dnl revision reset to `0'. This is the first revision of a new interface.
15 dnl 3. If the new interface is a superset of the previous interface (that is,
16 dnl if the previous interface has not been broken by the changes in this new
17 dnl release), then age must be incremented. This release is backwards
18 dnl compatible with the previous release.
19 dnl 4. If the new interface has removed elements with respect to the previous
20 dnl interface, then you have broken backward compatibility and age must be
21 dnl reset to `0'. This release has a new, but backwards incompatible
22 dnl interface.
1023 API_CURRENT=2
11 API_REVISION=2
24 API_REVISION=3
1225 API_COMPATIBILITY=1
1326
1427 API_AGE=`expr $API_CURRENT - $API_COMPATIBILITY`
0 API
1 API.html
2 API.txt
3 README
4 README.html
5 README.txt
118118 ></DT
119119 ><DT
120120 ><A
121 HREF="x78.htm#PACKAGE-DEBIAN"
122 >Debian</A
123 ></DT
124 ><DT
125 ><A
121126 HREF="x78.htm#PACKAGE-MANDRAKE"
122127 >Mandrake Linux</A
123128 ></DT
125130 ></DD
126131 ><DT
127132 ><A
128 HREF="x87.htm"
133 HREF="x90.htm"
129134 >Compilation</A
130135 ></DT
131136 ><DD
132137 ><DL
133138 ><DT
134139 ><A
135 HREF="x87.htm#COMPILE-FREEBSD"
140 HREF="x90.htm#COMPILE-FREEBSD"
136141 >FreeBSD</A
137142 ></DT
138143 ><DT
139144 ><A
140 HREF="x87.htm#COMPILE-MACOSX"
145 HREF="x90.htm#COMPILE-MACOSX"
141146 >Mac OS X</A
142147 ></DT
143148 ><DT
144149 ><A
145 HREF="x87.htm#LINUX"
150 HREF="x90.htm#LINUX"
146151 >Linux</A
147152 ></DT
148153 ><DT
149154 ><A
150 HREF="x87.htm#CONFIGURE"
155 HREF="x90.htm#CONFIGURE"
151156 >configure</A
152157 ></DT
153158 ><DT
154159 ><A
155 HREF="x87.htm#INSTALL"
160 HREF="x90.htm#INSTALL"
156161 >Compile and install</A
157162 ></DT
158163 ></DL
161166 ></DD
162167 ><DT
163168 >3. <A
164 HREF="c150.htm"
169 HREF="c153.htm"
165170 >Use of libEtPan!</A
166171 ></DT
167172 ><DD
168173 ><DL
169174 ><DT
170175 ><A
171 HREF="c150.htm#HOTMAIL"
176 HREF="c153.htm#HOTMAIL"
172177 >How to open an Hotmail mailbox</A
173178 ></DT
174179 ></DL
+0
-167
doc/README/c150.htm less more
0 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
1 <HTML
2 ><HEAD
3 ><TITLE
4 >Use of libEtPan!</TITLE
5 ><META
6 NAME="GENERATOR"
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
8 REL="HOME"
9 TITLE="libEtPan!"
10 HREF="book1.htm"><LINK
11 REL="PREVIOUS"
12 TITLE="Compilation"
13 HREF="x87.htm"></HEAD
14 ><BODY
15 CLASS="CHAPTER"
16 BGCOLOR="#FFFFFF"
17 TEXT="#000000"
18 LINK="#0000FF"
19 VLINK="#840084"
20 ALINK="#0000FF"
21 ><DIV
22 CLASS="NAVHEADER"
23 ><TABLE
24 SUMMARY="Header navigation table"
25 WIDTH="100%"
26 BORDER="0"
27 CELLPADDING="0"
28 CELLSPACING="0"
29 ><TR
30 ><TH
31 COLSPAN="3"
32 ALIGN="center"
33 >libEtPan!</TH
34 ></TR
35 ><TR
36 ><TD
37 WIDTH="10%"
38 ALIGN="left"
39 VALIGN="bottom"
40 ><A
41 HREF="x87.htm"
42 ACCESSKEY="P"
43 >Prev</A
44 ></TD
45 ><TD
46 WIDTH="80%"
47 ALIGN="center"
48 VALIGN="bottom"
49 ></TD
50 ><TD
51 WIDTH="10%"
52 ALIGN="right"
53 VALIGN="bottom"
54 >&nbsp;</TD
55 ></TR
56 ></TABLE
57 ><HR
58 ALIGN="LEFT"
59 WIDTH="100%"></DIV
60 ><DIV
61 CLASS="CHAPTER"
62 ><H1
63 ><A
64 NAME="USE"
65 ></A
66 >Chapter 3. Use of libEtPan!</H1
67 ><DIV
68 CLASS="SECT1"
69 ><H1
70 CLASS="SECT1"
71 ><A
72 NAME="HOTMAIL"
73 >How to open an Hotmail mailbox</A
74 ></H1
75 ><P
76 > If you wish to access hotmail using libEtPan!, you can, by
77 using <A
78 HREF="http://hotwayd.sf.net"
79 TARGET="_top"
80 >hotwayd</A
81 >.
82 Then, create a POP3 storage with the given parameters :
83 command as clear text for connection type
84 (<B
85 CLASS="COMMAND"
86 >CONNECTION_TYPE_COMMAND</B
87 >),
88 <B
89 CLASS="COMMAND"
90 >"/usr/bin/hotwayd"</B
91 >
92 as command, plain text authentication
93 (<B
94 CLASS="COMMAND"
95 >ePOP3_AUTH_TYPE_PLAIN</B
96 >),
97 full hotmail address as login
98 (<B
99 CLASS="COMMAND"
100 >foobar@hotmail.com</B
101 > or
102 <B
103 CLASS="COMMAND"
104 >foobar@hotmail.com/mailbox_name</B
105 > if you want
106 to access a specific mailbox) and give your password.
107 </P
108 ></DIV
109 ></DIV
110 ><DIV
111 CLASS="NAVFOOTER"
112 ><HR
113 ALIGN="LEFT"
114 WIDTH="100%"><TABLE
115 SUMMARY="Footer navigation table"
116 WIDTH="100%"
117 BORDER="0"
118 CELLPADDING="0"
119 CELLSPACING="0"
120 ><TR
121 ><TD
122 WIDTH="33%"
123 ALIGN="left"
124 VALIGN="top"
125 ><A
126 HREF="x87.htm"
127 ACCESSKEY="P"
128 >Prev</A
129 ></TD
130 ><TD
131 WIDTH="34%"
132 ALIGN="center"
133 VALIGN="top"
134 ><A
135 HREF="book1.htm"
136 ACCESSKEY="H"
137 >Home</A
138 ></TD
139 ><TD
140 WIDTH="33%"
141 ALIGN="right"
142 VALIGN="top"
143 >&nbsp;</TD
144 ></TR
145 ><TR
146 ><TD
147 WIDTH="33%"
148 ALIGN="left"
149 VALIGN="top"
150 >Compilation</TD
151 ><TD
152 WIDTH="34%"
153 ALIGN="center"
154 VALIGN="top"
155 >&nbsp;</TD
156 ><TD
157 WIDTH="33%"
158 ALIGN="right"
159 VALIGN="top"
160 >&nbsp;</TD
161 ></TR
162 ></TABLE
163 ></DIV
164 ></BODY
165 ></HTML
166 >
0 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
1 <HTML
2 ><HEAD
3 ><TITLE
4 >Use of libEtPan!</TITLE
5 ><META
6 NAME="GENERATOR"
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
8 REL="HOME"
9 TITLE="libEtPan!"
10 HREF="book1.htm"><LINK
11 REL="PREVIOUS"
12 TITLE="Compilation"
13 HREF="x90.htm"></HEAD
14 ><BODY
15 CLASS="CHAPTER"
16 BGCOLOR="#FFFFFF"
17 TEXT="#000000"
18 LINK="#0000FF"
19 VLINK="#840084"
20 ALINK="#0000FF"
21 ><DIV
22 CLASS="NAVHEADER"
23 ><TABLE
24 SUMMARY="Header navigation table"
25 WIDTH="100%"
26 BORDER="0"
27 CELLPADDING="0"
28 CELLSPACING="0"
29 ><TR
30 ><TH
31 COLSPAN="3"
32 ALIGN="center"
33 >libEtPan!</TH
34 ></TR
35 ><TR
36 ><TD
37 WIDTH="10%"
38 ALIGN="left"
39 VALIGN="bottom"
40 ><A
41 HREF="x90.htm"
42 ACCESSKEY="P"
43 >Prev</A
44 ></TD
45 ><TD
46 WIDTH="80%"
47 ALIGN="center"
48 VALIGN="bottom"
49 ></TD
50 ><TD
51 WIDTH="10%"
52 ALIGN="right"
53 VALIGN="bottom"
54 >&nbsp;</TD
55 ></TR
56 ></TABLE
57 ><HR
58 ALIGN="LEFT"
59 WIDTH="100%"></DIV
60 ><DIV
61 CLASS="CHAPTER"
62 ><H1
63 ><A
64 NAME="USE"
65 ></A
66 >Chapter 3. Use of libEtPan!</H1
67 ><DIV
68 CLASS="SECT1"
69 ><H1
70 CLASS="SECT1"
71 ><A
72 NAME="HOTMAIL"
73 >How to open an Hotmail mailbox</A
74 ></H1
75 ><P
76 > If you wish to access hotmail using libEtPan!, you can, by
77 using <A
78 HREF="http://hotwayd.sf.net"
79 TARGET="_top"
80 >hotwayd</A
81 >.
82 Then, create a POP3 storage with the given parameters :
83 command as clear text for connection type
84 (<B
85 CLASS="COMMAND"
86 >CONNECTION_TYPE_COMMAND</B
87 >),
88 <B
89 CLASS="COMMAND"
90 >"/usr/bin/hotwayd"</B
91 >
92 as command, plain text authentication
93 (<B
94 CLASS="COMMAND"
95 >ePOP3_AUTH_TYPE_PLAIN</B
96 >),
97 full hotmail address as login
98 (<B
99 CLASS="COMMAND"
100 >foobar@hotmail.com</B
101 > or
102 <B
103 CLASS="COMMAND"
104 >foobar@hotmail.com/mailbox_name</B
105 > if you want
106 to access a specific mailbox) and give your password.
107 </P
108 ></DIV
109 ></DIV
110 ><DIV
111 CLASS="NAVFOOTER"
112 ><HR
113 ALIGN="LEFT"
114 WIDTH="100%"><TABLE
115 SUMMARY="Footer navigation table"
116 WIDTH="100%"
117 BORDER="0"
118 CELLPADDING="0"
119 CELLSPACING="0"
120 ><TR
121 ><TD
122 WIDTH="33%"
123 ALIGN="left"
124 VALIGN="top"
125 ><A
126 HREF="x90.htm"
127 ACCESSKEY="P"
128 >Prev</A
129 ></TD
130 ><TD
131 WIDTH="34%"
132 ALIGN="center"
133 VALIGN="top"
134 ><A
135 HREF="book1.htm"
136 ACCESSKEY="H"
137 >Home</A
138 ></TD
139 ><TD
140 WIDTH="33%"
141 ALIGN="right"
142 VALIGN="top"
143 >&nbsp;</TD
144 ></TR
145 ><TR
146 ><TD
147 WIDTH="33%"
148 ALIGN="left"
149 VALIGN="top"
150 >Compilation</TD
151 ><TD
152 WIDTH="34%"
153 ALIGN="center"
154 VALIGN="top"
155 >&nbsp;</TD
156 ><TD
157 WIDTH="33%"
158 ALIGN="right"
159 VALIGN="top"
160 >&nbsp;</TD
161 ></TR
162 ></TABLE
163 ></DIV
164 ></BODY
165 ></HTML
166 >
9090 ></DT
9191 ><DT
9292 ><A
93 HREF="x87.htm"
93 HREF="x90.htm"
9494 >Compilation</A
9595 ></DT
9696 ></DL
1616 HREF="c49.htm"><LINK
1717 REL="NEXT"
1818 TITLE="Compilation"
19 HREF="x87.htm"></HEAD
19 HREF="x90.htm"></HEAD
2020 ><BODY
2121 CLASS="SECT1"
2222 BGCOLOR="#FFFFFF"
5858 ALIGN="right"
5959 VALIGN="bottom"
6060 ><A
61 HREF="x87.htm"
61 HREF="x90.htm"
6262 ACCESSKEY="N"
6363 >Next</A
6464 ></TD
8989 ></H2
9090 ><P
9191 > you can find it in ports/mail/libetpan.
92 This is currently 0.32 for -stable and -current.
92 This is currently 0.35 for -stable and -current.
9393 </P
94 ></DIV
95 ><DIV
96 CLASS="SECT2"
97 ><H2
98 CLASS="SECT2"
99 ><A
100 NAME="PACKAGE-DEBIAN"
101 >Debian</A
102 ></H2
103 ><P
104 > This is in the package collection.
105 This is currently 0.35
106 </P
94107 ></DIV
95108 ><DIV
96109 CLASS="SECT2"
101114 >Mandrake Linux</A
102115 ></H2
103116 ><P
104 > you can find it in packages of PowerPack 10.
105 This is currently 0.32.
117 > This is currently 0.33.
106118 </P
107119 ></DIV
108120 ></DIV
140152 ALIGN="right"
141153 VALIGN="top"
142154 ><A
143 HREF="x87.htm"
155 HREF="x90.htm"
144156 ACCESSKEY="N"
145157 >Next</A
146158 ></TD
+0
-394
doc/README/x87.htm less more
0 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
1 <HTML
2 ><HEAD
3 ><TITLE
4 >Compilation</TITLE
5 ><META
6 NAME="GENERATOR"
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
8 REL="HOME"
9 TITLE="libEtPan!"
10 HREF="book1.htm"><LINK
11 REL="UP"
12 TITLE="Installation"
13 HREF="c49.htm"><LINK
14 REL="PREVIOUS"
15 TITLE="Existing packages"
16 HREF="x78.htm"><LINK
17 REL="NEXT"
18 TITLE="Use of libEtPan!"
19 HREF="c150.htm"></HEAD
20 ><BODY
21 CLASS="SECT1"
22 BGCOLOR="#FFFFFF"
23 TEXT="#000000"
24 LINK="#0000FF"
25 VLINK="#840084"
26 ALINK="#0000FF"
27 ><DIV
28 CLASS="NAVHEADER"
29 ><TABLE
30 SUMMARY="Header navigation table"
31 WIDTH="100%"
32 BORDER="0"
33 CELLPADDING="0"
34 CELLSPACING="0"
35 ><TR
36 ><TH
37 COLSPAN="3"
38 ALIGN="center"
39 >libEtPan!</TH
40 ></TR
41 ><TR
42 ><TD
43 WIDTH="10%"
44 ALIGN="left"
45 VALIGN="bottom"
46 ><A
47 HREF="x78.htm"
48 ACCESSKEY="P"
49 >Prev</A
50 ></TD
51 ><TD
52 WIDTH="80%"
53 ALIGN="center"
54 VALIGN="bottom"
55 >Chapter 2. Installation</TD
56 ><TD
57 WIDTH="10%"
58 ALIGN="right"
59 VALIGN="bottom"
60 ><A
61 HREF="c150.htm"
62 ACCESSKEY="N"
63 >Next</A
64 ></TD
65 ></TR
66 ></TABLE
67 ><HR
68 ALIGN="LEFT"
69 WIDTH="100%"></DIV
70 ><DIV
71 CLASS="SECT1"
72 ><H1
73 CLASS="SECT1"
74 ><A
75 NAME="COMPILATION"
76 >Compilation</A
77 ></H1
78 ><P
79 > Generic installation instructions are in the
80 <TT
81 CLASS="FILENAME"
82 >INSTALL</TT
83 > file
84 You can pass the following extra options to configure :
85 </P
86 ><DIV
87 CLASS="SECT2"
88 ><H2
89 CLASS="SECT2"
90 ><A
91 NAME="COMPILE-FREEBSD"
92 >FreeBSD</A
93 ></H2
94 ><P
95 ></P
96 ><UL
97 ><LI
98 ><P
99 > make sure libiconv is installed from the ports collection (see
100 <B
101 CLASS="COMMAND"
102 >pkg_info</B
103 >).
104 </P
105 ></LI
106 ><LI
107 ><P
108 > issue configure with the following parameter:
109 <PRE
110 CLASS="SCREEN"
111 ><SAMP
112 CLASS="PROMPT"
113 >$</SAMP
114 > <KBD
115 CLASS="USERINPUT"
116 >./configure --with-libiconv-prefix=/usr/local</KBD
117 >
118 </PRE
119 >
120 </P
121 ></LI
122 ></UL
123 ></DIV
124 ><DIV
125 CLASS="SECT2"
126 ><H2
127 CLASS="SECT2"
128 ><A
129 NAME="COMPILE-MACOSX"
130 >Mac OS X</A
131 ></H2
132 ><P
133 ></P
134 ><UL
135 ><LI
136 ><P
137 > in tests/option-parser.c, change the inclusion
138 of <TT
139 CLASS="FILENAME"
140 >getopt.h</TT
141 > to
142 <TT
143 CLASS="FILENAME"
144 >gnugetopt/getopt.h</TT
145 >
146 </P
147 ></LI
148 ><LI
149 ><P
150 > in <TT
151 CLASS="FILENAME"
152 >tests/Makefile</TT
153 >, add
154 <B
155 CLASS="COMMAND"
156 >-I/sw/include</B
157 > for the
158 <B
159 CLASS="COMMAND"
160 >CFLAGS</B
161 > and
162 -L/sw/lib -lgnugetopt for the LDFLAGS.
163 </P
164 ></LI
165 ></UL
166 ></DIV
167 ><DIV
168 CLASS="SECT2"
169 ><H2
170 CLASS="SECT2"
171 ><A
172 NAME="LINUX"
173 >Linux</A
174 ></H2
175 ><P
176 ></P
177 ><UL
178 ><LI
179 ><DIV
180 CLASS="WARNING"
181 ><P
182 ></P
183 ><TABLE
184 CLASS="WARNING"
185 BORDER="1"
186 WIDTH="90%"
187 ><TR
188 ><TD
189 ALIGN="CENTER"
190 ><B
191 >Warning</B
192 ></TD
193 ></TR
194 ><TR
195 ><TD
196 ALIGN="LEFT"
197 ><P
198 > Since libEtPan! is making high usage of
199 <B
200 CLASS="COMMAND"
201 >mmap()</B
202 > even for
203 writing, when your mailboxes are on
204 <B
205 CLASS="COMMAND"
206 >NFS</B
207 > filesystem with
208 a Linux server, it is advised to use option
209 <B
210 CLASS="COMMAND"
211 >no_subtree_check</B
212 > in
213 <TT
214 CLASS="FILENAME"
215 >/etc/exports</TT
216 >.
217 This should avoid corruption of data.
218 </P
219 ><P
220 > The problem exist in Linux 2.4.22 and earlier versions.
221 </P
222 ></TD
223 ></TR
224 ></TABLE
225 ></DIV
226 ></LI
227 ><LI
228 ><P
229 > On RedHat systems, you have to configure using the
230 following command line :
231 <B
232 CLASS="COMMAND"
233 >./configure --with-openssl=/usr/kerberos</B
234 >
235 </P
236 ></LI
237 ><LI
238 ><P
239 > On Debian systems, if the <B
240 CLASS="COMMAND"
241 >./autogen</B
242 >
243 script fails on missing <B
244 CLASS="COMMAND"
245 >AM_ICONV</B
246 >, you
247 have to install <B
248 CLASS="COMMAND"
249 >gettext</B
250 > package.
251 </P
252 ></LI
253 ></UL
254 ></DIV
255 ><DIV
256 CLASS="SECT2"
257 ><H2
258 CLASS="SECT2"
259 ><A
260 NAME="CONFIGURE"
261 >configure</A
262 ></H2
263 ><P
264 > You can use the following options :
265 </P
266 ><P
267 ></P
268 ><UL
269 ><LI
270 ><P
271 > <B
272 CLASS="COMMAND"
273 >--enable-debug</B
274 > Compiles with
275 debugging turned on
276 </P
277 ></LI
278 ><LI
279 ><P
280 > <B
281 CLASS="COMMAND"
282 >--enable-optim</B
283 > Turns on some
284 optimizations flags for gcc
285 </P
286 ></LI
287 ><LI
288 ><P
289 > <B
290 CLASS="COMMAND"
291 >--without-openssl</B
292 > Disables OpenSSL (do
293 not look for it)
294 </P
295 ></LI
296 ></UL
297 ></DIV
298 ><DIV
299 CLASS="SECT2"
300 ><H2
301 CLASS="SECT2"
302 ><A
303 NAME="INSTALL"
304 >Compile and install</A
305 ></H2
306 ><P
307 > Download the package and do the following :
308 </P
309 ><PRE
310 CLASS="PROGRAMLISTING"
311 >$ tar xzvf libetpan-XX.XX.tar.gz # to decompress the package
312
313 $ cd libetpan-XX.XX
314
315 $ ./configure --help # to get options of configure
316
317 $ ./configure # you can specify your own options
318
319 $ make # to compile the package
320
321 $ su
322
323 # make install
324
325 # logout
326 </PRE
327 ></DIV
328 ></DIV
329 ><DIV
330 CLASS="NAVFOOTER"
331 ><HR
332 ALIGN="LEFT"
333 WIDTH="100%"><TABLE
334 SUMMARY="Footer navigation table"
335 WIDTH="100%"
336 BORDER="0"
337 CELLPADDING="0"
338 CELLSPACING="0"
339 ><TR
340 ><TD
341 WIDTH="33%"
342 ALIGN="left"
343 VALIGN="top"
344 ><A
345 HREF="x78.htm"
346 ACCESSKEY="P"
347 >Prev</A
348 ></TD
349 ><TD
350 WIDTH="34%"
351 ALIGN="center"
352 VALIGN="top"
353 ><A
354 HREF="book1.htm"
355 ACCESSKEY="H"
356 >Home</A
357 ></TD
358 ><TD
359 WIDTH="33%"
360 ALIGN="right"
361 VALIGN="top"
362 ><A
363 HREF="c150.htm"
364 ACCESSKEY="N"
365 >Next</A
366 ></TD
367 ></TR
368 ><TR
369 ><TD
370 WIDTH="33%"
371 ALIGN="left"
372 VALIGN="top"
373 >Existing packages</TD
374 ><TD
375 WIDTH="34%"
376 ALIGN="center"
377 VALIGN="top"
378 ><A
379 HREF="c49.htm"
380 ACCESSKEY="U"
381 >Up</A
382 ></TD
383 ><TD
384 WIDTH="33%"
385 ALIGN="right"
386 VALIGN="top"
387 >Use of libEtPan!</TD
388 ></TR
389 ></TABLE
390 ></DIV
391 ></BODY
392 ></HTML
393 >
0 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
1 <HTML
2 ><HEAD
3 ><TITLE
4 >Compilation</TITLE
5 ><META
6 NAME="GENERATOR"
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
8 REL="HOME"
9 TITLE="libEtPan!"
10 HREF="book1.htm"><LINK
11 REL="UP"
12 TITLE="Installation"
13 HREF="c49.htm"><LINK
14 REL="PREVIOUS"
15 TITLE="Existing packages"
16 HREF="x78.htm"><LINK
17 REL="NEXT"
18 TITLE="Use of libEtPan!"
19 HREF="c153.htm"></HEAD
20 ><BODY
21 CLASS="SECT1"
22 BGCOLOR="#FFFFFF"
23 TEXT="#000000"
24 LINK="#0000FF"
25 VLINK="#840084"
26 ALINK="#0000FF"
27 ><DIV
28 CLASS="NAVHEADER"
29 ><TABLE
30 SUMMARY="Header navigation table"
31 WIDTH="100%"
32 BORDER="0"
33 CELLPADDING="0"
34 CELLSPACING="0"
35 ><TR
36 ><TH
37 COLSPAN="3"
38 ALIGN="center"
39 >libEtPan!</TH
40 ></TR
41 ><TR
42 ><TD
43 WIDTH="10%"
44 ALIGN="left"
45 VALIGN="bottom"
46 ><A
47 HREF="x78.htm"
48 ACCESSKEY="P"
49 >Prev</A
50 ></TD
51 ><TD
52 WIDTH="80%"
53 ALIGN="center"
54 VALIGN="bottom"
55 >Chapter 2. Installation</TD
56 ><TD
57 WIDTH="10%"
58 ALIGN="right"
59 VALIGN="bottom"
60 ><A
61 HREF="c153.htm"
62 ACCESSKEY="N"
63 >Next</A
64 ></TD
65 ></TR
66 ></TABLE
67 ><HR
68 ALIGN="LEFT"
69 WIDTH="100%"></DIV
70 ><DIV
71 CLASS="SECT1"
72 ><H1
73 CLASS="SECT1"
74 ><A
75 NAME="COMPILATION"
76 >Compilation</A
77 ></H1
78 ><P
79 > Generic installation instructions are in the
80 <TT
81 CLASS="FILENAME"
82 >INSTALL</TT
83 > file
84 You can pass the following extra options to configure :
85 </P
86 ><DIV
87 CLASS="SECT2"
88 ><H2
89 CLASS="SECT2"
90 ><A
91 NAME="COMPILE-FREEBSD"
92 >FreeBSD</A
93 ></H2
94 ><P
95 ></P
96 ><UL
97 ><LI
98 ><P
99 > make sure libiconv is installed from the ports collection (see
100 <B
101 CLASS="COMMAND"
102 >pkg_info</B
103 >).
104 </P
105 ></LI
106 ><LI
107 ><P
108 > issue configure with the following parameter:
109 <PRE
110 CLASS="SCREEN"
111 ><SAMP
112 CLASS="PROMPT"
113 >$</SAMP
114 > <KBD
115 CLASS="USERINPUT"
116 >./configure --with-libiconv-prefix=/usr/local</KBD
117 >
118 </PRE
119 >
120 </P
121 ></LI
122 ></UL
123 ></DIV
124 ><DIV
125 CLASS="SECT2"
126 ><H2
127 CLASS="SECT2"
128 ><A
129 NAME="COMPILE-MACOSX"
130 >Mac OS X</A
131 ></H2
132 ><P
133 ></P
134 ><UL
135 ><LI
136 ><P
137 > in tests/option-parser.c, change the inclusion
138 of <TT
139 CLASS="FILENAME"
140 >getopt.h</TT
141 > to
142 <TT
143 CLASS="FILENAME"
144 >gnugetopt/getopt.h</TT
145 >
146 </P
147 ></LI
148 ><LI
149 ><P
150 > in <TT
151 CLASS="FILENAME"
152 >tests/Makefile</TT
153 >, add
154 <B
155 CLASS="COMMAND"
156 >-I/sw/include</B
157 > for the
158 <B
159 CLASS="COMMAND"
160 >CFLAGS</B
161 > and
162 -L/sw/lib -lgnugetopt for the LDFLAGS.
163 </P
164 ></LI
165 ></UL
166 ></DIV
167 ><DIV
168 CLASS="SECT2"
169 ><H2
170 CLASS="SECT2"
171 ><A
172 NAME="LINUX"
173 >Linux</A
174 ></H2
175 ><P
176 ></P
177 ><UL
178 ><LI
179 ><DIV
180 CLASS="WARNING"
181 ><P
182 ></P
183 ><TABLE
184 CLASS="WARNING"
185 BORDER="1"
186 WIDTH="90%"
187 ><TR
188 ><TD
189 ALIGN="CENTER"
190 ><B
191 >Warning</B
192 ></TD
193 ></TR
194 ><TR
195 ><TD
196 ALIGN="LEFT"
197 ><P
198 > Since libEtPan! is making high usage of
199 <B
200 CLASS="COMMAND"
201 >mmap()</B
202 > even for
203 writing, when your mailboxes are on
204 <B
205 CLASS="COMMAND"
206 >NFS</B
207 > filesystem with
208 a Linux server, it is advised to use option
209 <B
210 CLASS="COMMAND"
211 >no_subtree_check</B
212 > in
213 <TT
214 CLASS="FILENAME"
215 >/etc/exports</TT
216 >.
217 This should avoid corruption of data.
218 </P
219 ><P
220 > The problem exist in Linux 2.4.22 and earlier versions.
221 </P
222 ></TD
223 ></TR
224 ></TABLE
225 ></DIV
226 ></LI
227 ><LI
228 ><P
229 > On RedHat systems, you have to configure using the
230 following command line :
231 <B
232 CLASS="COMMAND"
233 >./configure --with-openssl=/usr/kerberos</B
234 >
235 </P
236 ></LI
237 ><LI
238 ><P
239 > On Debian systems, if the <B
240 CLASS="COMMAND"
241 >./autogen</B
242 >
243 script fails on missing <B
244 CLASS="COMMAND"
245 >AM_ICONV</B
246 >, you
247 have to install <B
248 CLASS="COMMAND"
249 >gettext</B
250 > package.
251 </P
252 ></LI
253 ></UL
254 ></DIV
255 ><DIV
256 CLASS="SECT2"
257 ><H2
258 CLASS="SECT2"
259 ><A
260 NAME="CONFIGURE"
261 >configure</A
262 ></H2
263 ><P
264 > You can use the following options :
265 </P
266 ><P
267 ></P
268 ><UL
269 ><LI
270 ><P
271 > <B
272 CLASS="COMMAND"
273 >--enable-debug</B
274 > Compiles with
275 debugging turned on
276 </P
277 ></LI
278 ><LI
279 ><P
280 > <B
281 CLASS="COMMAND"
282 >--enable-optim</B
283 > Turns on some
284 optimizations flags for gcc
285 </P
286 ></LI
287 ><LI
288 ><P
289 > <B
290 CLASS="COMMAND"
291 >--without-openssl</B
292 > Disables OpenSSL (do
293 not look for it)
294 </P
295 ></LI
296 ></UL
297 ></DIV
298 ><DIV
299 CLASS="SECT2"
300 ><H2
301 CLASS="SECT2"
302 ><A
303 NAME="INSTALL"
304 >Compile and install</A
305 ></H2
306 ><P
307 > Download the package and do the following :
308 </P
309 ><PRE
310 CLASS="PROGRAMLISTING"
311 >$ tar xzvf libetpan-XX.XX.tar.gz # to decompress the package
312
313 $ cd libetpan-XX.XX
314
315 $ ./configure --help # to get options of configure
316
317 $ ./configure # you can specify your own options
318
319 $ make # to compile the package
320
321 $ su
322
323 # make install
324
325 # logout
326 </PRE
327 ></DIV
328 ></DIV
329 ><DIV
330 CLASS="NAVFOOTER"
331 ><HR
332 ALIGN="LEFT"
333 WIDTH="100%"><TABLE
334 SUMMARY="Footer navigation table"
335 WIDTH="100%"
336 BORDER="0"
337 CELLPADDING="0"
338 CELLSPACING="0"
339 ><TR
340 ><TD
341 WIDTH="33%"
342 ALIGN="left"
343 VALIGN="top"
344 ><A
345 HREF="x78.htm"
346 ACCESSKEY="P"
347 >Prev</A
348 ></TD
349 ><TD
350 WIDTH="34%"
351 ALIGN="center"
352 VALIGN="top"
353 ><A
354 HREF="book1.htm"
355 ACCESSKEY="H"
356 >Home</A
357 ></TD
358 ><TD
359 WIDTH="33%"
360 ALIGN="right"
361 VALIGN="top"
362 ><A
363 HREF="c153.htm"
364 ACCESSKEY="N"
365 >Next</A
366 ></TD
367 ></TR
368 ><TR
369 ><TD
370 WIDTH="33%"
371 ALIGN="left"
372 VALIGN="top"
373 >Existing packages</TD
374 ><TD
375 WIDTH="34%"
376 ALIGN="center"
377 VALIGN="top"
378 ><A
379 HREF="c49.htm"
380 ACCESSKEY="U"
381 >Up</A
382 ></TD
383 ><TD
384 WIDTH="33%"
385 ALIGN="right"
386 VALIGN="top"
387 >Use of libEtPan!</TD
388 ></TR
389 ></TABLE
390 ></DIV
391 ></BODY
392 ></HTML
393 >
115115 ></DT
116116 ><DT
117117 ><A
118 HREF="#PACKAGE-DEBIAN"
119 >Debian</A
120 ></DT
121 ><DT
122 ><A
118123 HREF="#PACKAGE-MANDRAKE"
119124 >Mandrake Linux</A
120125 ></DT
421426 ></H3
422427 ><P
423428 > you can find it in ports/mail/libetpan.
424 This is currently 0.32 for -stable and -current.
429 This is currently 0.35 for -stable and -current.
425430 </P
431 ></DIV
432 ><DIV
433 CLASS="SECT2"
434 ><HR><H3
435 CLASS="SECT2"
436 ><A
437 NAME="PACKAGE-DEBIAN"
438 >Debian</A
439 ></H3
440 ><P
441 > This is in the package collection.
442 This is currently 0.35
443 </P
426444 ></DIV
427445 ><DIV
428446 CLASS="SECT2"
433451 >Mandrake Linux</A
434452 ></H3
435453 ><P
436 > you can find it in packages of PowerPack 10.
437 This is currently 0.32.
454 > This is currently 0.33.
438455 </P
439456 ></DIV
440457 ></DIV
189189 <title>FreeBSD</title>
190190 <para>
191191 you can find it in ports/mail/libetpan.
192 This is currently 0.32 for -stable and -current.
193 </para>
194 </sect2>
195
192 This is currently 0.35 for -stable and -current.
193 </para>
194 </sect2>
195
196 <!-- Debian -->
197 <sect2 id="package-debian">
198 <title>Debian</title>
199 <para>
200 This is in the package collection.
201 This is currently 0.35
202 </para>
203 </sect2>
204
196205 <!-- Mandrake -->
197206 <sect2 id="package-mandrake">
198207 <title>Mandrake Linux</title>
199208 <para>
200 you can find it in packages of PowerPack 10.
201 This is currently 0.32.
209 This is currently 0.33.
202210 </para>
203211 </sect2>
204212 </sect1>
2424 Existing packages
2525
2626 FreeBSD
27 Debian
2728 Mandrake Linux
2829
2930 Compilation
102103
103104 FreeBSD
104105
105 you can find it in ports/mail/libetpan. This is currently 0.32 for
106 you can find it in ports/mail/libetpan. This is currently 0.35 for
106107 -stable and -current.
108 _________________________________________________________________
109
110 Debian
111
112 This is in the package collection. This is currently 0.35
107113 _________________________________________________________________
108114
109115 Mandrake Linux
110116
111 you can find it in packages of PowerPack 10. This is currently 0.32.
117 This is currently 0.33.
112118 _________________________________________________________________
113119
114120 Compilation
3535 echo $exec_prefix
3636 ;;
3737 --version)
38 echo 0.35
38 echo 0.36
3939 ;;
4040 --cflags)
4141 if test "${prefix}/include" = "/usr/include" ; then
315315 link_all_deplibs=no
316316
317317 # Compile-time system search path for libraries
318 sys_lib_search_path_spec=" /usr/lib/gcc-lib/i486-linux/3.3.4/ /usr/lib/gcc/i486-linux/3.3.4/ /usr/lib/gcc-lib/i486-linux/3.3.4/../../../../i486-linux/lib/i486-linux/3.3.4/ /usr/lib/gcc-lib/i486-linux/3.3.4/../../../../i486-linux/lib/ /usr/lib/gcc-lib/i486-linux/3.3.4/../../../i486-linux/3.3.4/ /usr/lib/gcc-lib/i486-linux/3.3.4/../../../ /lib/i486-linux/3.3.4/ /lib/ /usr/lib/i486-linux/3.3.4/ /usr/lib/"
318 sys_lib_search_path_spec=" /usr/lib/gcc-lib/i486-linux/3.3.5/ /usr/lib/gcc/i486-linux/3.3.5/ /usr/lib/gcc-lib/i486-linux/3.3.5/../../../../i486-linux/lib/i486-linux/3.3.5/ /usr/lib/gcc-lib/i486-linux/3.3.5/../../../../i486-linux/lib/ /usr/lib/gcc-lib/i486-linux/3.3.5/../../../i486-linux/3.3.5/ /usr/lib/gcc-lib/i486-linux/3.3.5/../../../ /lib/i486-linux/3.3.5/ /lib/ /usr/lib/i486-linux/3.3.5/ /usr/lib/"
319319
320320 # Run-time system search path for libraries
321321 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib "
69416941
69426942 # Dependencies to place before the objects being linked to create a
69436943 # shared library.
6944 predep_objects="/usr/lib/gcc-lib/i486-linux/3.3.4/../../../crti.o /usr/lib/gcc-lib/i486-linux/3.3.4/crtbeginS.o"
6944 predep_objects="/usr/lib/gcc-lib/i486-linux/3.3.5/../../../crti.o /usr/lib/gcc-lib/i486-linux/3.3.5/crtbeginS.o"
69456945
69466946 # Dependencies to place after the objects being linked to create a
69476947 # shared library.
6948 postdep_objects="/usr/lib/gcc-lib/i486-linux/3.3.4/crtendS.o /usr/lib/gcc-lib/i486-linux/3.3.4/../../../crtn.o"
6948 postdep_objects="/usr/lib/gcc-lib/i486-linux/3.3.5/crtendS.o /usr/lib/gcc-lib/i486-linux/3.3.5/../../../crtn.o"
69496949
69506950 # Dependencies to place before the objects being linked to create a
69516951 # shared library.
69576957
69586958 # The library search path used internally by the compiler when linking
69596959 # a shared library.
6960 compiler_lib_search_path="-L/usr/lib/gcc-lib/i486-linux/3.3.4 -L/usr/lib/gcc-lib/i486-linux/3.3.4/../../.."
6960 compiler_lib_search_path="-L/usr/lib/gcc-lib/i486-linux/3.3.5 -L/usr/lib/gcc-lib/i486-linux/3.3.5/../../.."
69616961
69626962 # Method to check whether dependent libraries are shared objects.
69636963 deplibs_check_method="pass_all"
70377037 link_all_deplibs=no
70387038
70397039 # Compile-time system search path for libraries
7040 sys_lib_search_path_spec=" /usr/lib/gcc-lib/i486-linux/3.3.4/ /usr/lib/gcc/i486-linux/3.3.4/ /usr/lib/gcc-lib/i486-linux/3.3.4/../../../../i486-linux/lib/i486-linux/3.3.4/ /usr/lib/gcc-lib/i486-linux/3.3.4/../../../../i486-linux/lib/ /usr/lib/gcc-lib/i486-linux/3.3.4/../../../i486-linux/3.3.4/ /usr/lib/gcc-lib/i486-linux/3.3.4/../../../ /lib/i486-linux/3.3.4/ /lib/ /usr/lib/i486-linux/3.3.4/ /usr/lib/"
7040 sys_lib_search_path_spec=" /usr/lib/gcc-lib/i486-linux/3.3.5/ /usr/lib/gcc/i486-linux/3.3.5/ /usr/lib/gcc-lib/i486-linux/3.3.5/../../../../i486-linux/lib/i486-linux/3.3.5/ /usr/lib/gcc-lib/i486-linux/3.3.5/../../../../i486-linux/lib/ /usr/lib/gcc-lib/i486-linux/3.3.5/../../../i486-linux/3.3.5/ /usr/lib/gcc-lib/i486-linux/3.3.5/../../../ /lib/i486-linux/3.3.5/ /lib/ /usr/lib/i486-linux/3.3.5/ /usr/lib/"
70417041
70427042 # Run-time system search path for libraries
70437043 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib "
0 .libs
1 Makefile
2 *.la
1212
1313 TARGET = libetpan.la
1414
15 VERSINFO = 2:2:1
15 VERSINFO = 2:3:1
1616 CC = gcc
1717 LDFLAGS = -llockfile -lssl -lcrypto -pthread -ldb-4.2
1818
0 .libs
1 *.la
2 *.lo
2929 */
3030
3131 /*
32 * $Id: mailsem.c,v 1.3 2004/11/21 21:53:31 hoa Exp $
32 * $Id: mailsem.c,v 1.4 2005/01/28 01:43:11 hoa Exp $
3333 */
3434
3535 #include "mailsem.h"
6464
6565 snprintf(name, sizeof(name), "sem-%p", sem);
6666
67 #ifndef __CYGWIN__
6768 sem->sem_sem = sem_open(name, O_CREAT, 0600, 0);
6869 if (sem->sem_sem == NULL)
6970 goto err;
7071
7172 sem->sem_kind = SEMKIND_SEMOPEN;
73 #else
74 goto err;
75 #endif
7276 }
7377 else {
7478 sem->sem_kind = SEMKIND_SEMINIT;
8589 if (sem->sem_kind == SEMKIND_SEMOPEN) {
8690 char name[SEMNAME_LEN];
8791
92 #ifndef __CYGWIN__
8893 sem_close((sem_t *) sem->sem_sem);
8994 snprintf(name, sizeof(name), "sem-%p", sem);
9095 sem_unlink(name);
96 #endif
9197 }
9298 else {
9399 sem_destroy((sem_t *) sem->sem_sem);
2929 */
3030
3131 /*
32 * $Id: mmapstring.c,v 1.18 2004/11/21 21:53:31 hoa Exp $
32 * $Id: mmapstring.c,v 1.19 2005/01/31 01:07:50 hoa Exp $
3333 */
3434
3535 #include "mmapstring.h"
3636
3737 #include "chash.h"
38
39 #ifndef CONFIG_H
40 #define CONFIG_H
41 #include "config.h"
42 #endif
3843
3944 #include <stdlib.h>
4045 #include <unistd.h>
2929 */
3030
3131 /*
32 * $Id: dbdriver.c,v 1.3 2004/12/12 12:07:15 hoa Exp $
32 * $Id: dbdriver.c,v 1.4 2005/01/28 01:43:11 hoa Exp $
3333 */
3434
3535 #include "dbdriver.h"
980980
981981 mail_cache_db_close_unlock(data->db_filename, maildb);
982982
983 fprintf(stderr, "%p\n", driver_msglist);
984
985983 * result = driver_msglist;
986984
987985 return MAIL_NO_ERROR;
2929 */
3030
3131 /*
32 * $Id: imapdriver_cached.c,v 1.43 2004/11/21 21:53:32 hoa Exp $
32 * $Id: imapdriver_cached.c,v 1.44 2005/01/29 15:40:23 hoa Exp $
3333 */
3434
3535 #include "imapdriver_cached.h"
870870 mailmessage * msg;
871871
872872 msg = carray_get(env_list->msg_tab, i);
873 if (msg->msg_index < uid_max + 1)
873 if (msg->msg_index < uid_max + 1) {
874 mailmessage * msg;
875
876 msg = carray_get(env_list->msg_tab, i);
877 mailmessage_free(msg);
874878 carray_delete(env_list->msg_tab, i);
875 else
879 }
880 else {
876881 i ++;
882 }
877883 }
878884
879885 tab = carray_new(carray_count(env_list->msg_tab) +
2929 */
3030
3131 /*
32 * $Id: nntpdriver_cached.c,v 1.45 2004/11/21 21:53:33 hoa Exp $
32 * $Id: nntpdriver_cached.c,v 1.46 2005/01/28 01:43:11 hoa Exp $
3333 */
3434
3535 #include "nntpdriver_cached.h"
504504 i, &flags);
505505 if (r == MAIL_NO_ERROR) {
506506 if ((flags->fl_flags & MAIL_FLAG_CANCELLED) != 0) {
507 mail_flags_free(flags);
507508 continue;
508509 }
509510
0 .libs
1 *.la
2 *.lo
0 .libs
1 *.la
2 *.lo
2929 */
3030
3131 /*
32 * $Id: mailengine.c,v 1.5 2004/11/21 21:53:35 hoa Exp $
32 * $Id: mailengine.c,v 1.7 2005/01/31 01:07:50 hoa Exp $
3333 */
3434
3535 #include "mailengine.h"
36
37 #ifndef CONFIG_H
38 #define CONFIG_H
39 #include "config.h"
40 #endif
41
3642 #include "mailfolder.h"
3743 #include "maildriver.h"
3844 #include "imapdriver_cached.h"
2929 */
3030
3131 /*
32 * $Id: mailprivacy.c,v 1.2 2004/11/21 21:53:35 hoa Exp $
32 * $Id: mailprivacy.c,v 1.3 2005/02/17 01:44:50 hoa Exp $
3333 */
3434
3535 #include "mailprivacy.h"
6161 r = stat(tmp_dir, &stat_info);
6262 if (r < 0)
6363 return MAIL_ERROR_FILE;
64
64
6565 /* check if the directory belongs to the user */
6666 if (stat_info.st_uid != getuid())
6767 return MAIL_ERROR_INVAL;
8080 struct mailprivacy * privacy;
8181 int r;
8282
83 #if 0
8384 r = check_tmp_dir(tmp_dir);
8485 if (r != MAIL_NO_ERROR)
8586 goto err;
87 #endif
8688
8789 privacy = malloc(sizeof(* privacy));
8890 if (privacy == NULL)
2929 */
3030
3131 /*
32 * $Id: mailprivacy_tools.c,v 1.3 2004/11/21 21:53:35 hoa Exp $
32 * $Id: mailprivacy_tools.c,v 1.4 2005/01/28 01:43:12 hoa Exp $
3333 */
3434
3535 #include "mailprivacy_tools.h"
450450 return res;
451451 }
452452
453 #ifndef LIBETPAN_SYSTEM_BASENAME
454 static char * libetpan_basename(char * filename)
455 {
456 char * next;
457 char * p;
458
459 p = filename;
460 next = strchr(p, '/');
461
462 while (next != NULL) {
463 p = next;
464 next = strchr(p + 1, '/');
465 }
466
467 if (p == filename)
468 return filename;
469 else
470 return p + 1;
471 }
472 #else
473 #define libetpan_basename(a) basename(a)
474 #endif
453475
454476 struct mailmime *
455477 mailprivacy_new_file_part(struct mailprivacy * privacy,
470492
471493 if (filename != NULL) {
472494 strncpy(basename_buf, filename, PATH_MAX);
473 name = basename(basename_buf);
495 name = libetpan_basename(basename_buf);
474496 }
475497 else {
476498 name = NULL;
2929 */
3030
3131 /*
32 * $Id: maildir.c,v 1.11 2004/12/27 14:08:25 hoa Exp $
32 * $Id: maildir.c,v 1.12 2005/01/28 01:43:12 hoa Exp $
3333 */
3434
3535 #include "maildir.h"
380380 char path_maildirfolder[PATH_MAX];
381381 int r;
382382 int res;
383 int changed;
383384
384385 snprintf(path_new, sizeof(path_new), "%s/new", md->mdir_path);
385386 snprintf(path_cur, sizeof(path_cur), "%s/cur", md->mdir_path);
386387
388 changed = 0;
389
387390 /* did new/ changed ? */
388391
389392 r = stat(path_new, &stat_info);
394397
395398 if (md->mdir_mtime_new != stat_info.st_mtime) {
396399 md->mdir_mtime_new = stat_info.st_mtime;
400 changed = 1;
401 }
402
403 /* did cur/ changed ? */
404
405 r = stat(path_cur, &stat_info);
406 if (r < 0) {
407 res = MAILDIR_ERROR_DIRECTORY;
408 goto free;
409 }
410
411 if (md->mdir_mtime_cur != stat_info.st_mtime) {
412 md->mdir_mtime_cur = stat_info.st_mtime;
413 changed = 1;
414 }
415
416 if (changed) {
417
418 carray_set_size(md->mdir_msg_list, 0);
419 chash_clear(md->mdir_msg_hash);
397420
398421 maildir_flush(md, 1);
399422
403426 res = r;
404427 goto free;
405428 }
406 }
407
408 /* did cur/ changed ? */
409
410 r = stat(path_cur, &stat_info);
411 if (r < 0) {
412 res = MAILDIR_ERROR_DIRECTORY;
413 goto free;
414 }
415
416 if (md->mdir_mtime_cur != stat_info.st_mtime) {
417 md->mdir_mtime_cur = stat_info.st_mtime;
418429
419430 maildir_flush(md, 0);
420431
0 .libs
1 *.la
2 *.lo
2929 */
3030
3131 /*
32 * $Id: mailmime_types.c,v 1.18 2004/11/21 21:53:39 hoa Exp $
32 * $Id: mailmime_types.c,v 1.19 2005/01/29 15:40:24 hoa Exp $
3333 */
3434
3535 #include "mailmime_types.h"
457457
458458 void mailmime_free(struct mailmime * mime)
459459 {
460 if (mime->mm_body != NULL)
461 mailmime_data_free(mime->mm_body);
462460 switch (mime->mm_type) {
463461 case MAILMIME_SINGLE:
462 if ((mime->mm_body == NULL) && (mime->mm_data.mm_single != NULL))
463 mailmime_data_free(mime->mm_data.mm_single);
464464 /* do nothing */
465465 break;
466466
482482 break;
483483
484484 }
485 if (mime->mm_body != NULL)
486 mailmime_data_free(mime->mm_body);
487
485488 if (mime->mm_mime_fields != NULL)
486489 mailmime_fields_free(mime->mm_mime_fields);
487490 if (mime->mm_content_type != NULL)
2929 */
3030
3131 /*
32 * $Id: mailpop3.c,v 1.21 2004/11/21 21:53:39 hoa Exp $
32 * $Id: mailpop3.c,v 1.22 2005/01/28 01:43:13 hoa Exp $
3333 */
3434
3535 /*
720720 }
721721
722722 int mailpop3_top(mailpop3 * f, unsigned int index,
723 uint32_t count, char ** result,
723 unsigned int count, char ** result,
724724 size_t * result_len)
725725 {
726726 char command[POP3_STRING_SIZE];
2929 */
3030
3131 /*
32 * $Id: mailpop3.h,v 1.14 2004/11/21 21:53:39 hoa Exp $
32 * $Id: mailpop3.h,v 1.15 2005/01/28 01:43:13 hoa Exp $
3333 */
3434
3535 #ifndef MAILPOP3_H
6767
6868 void mailpop3_list(mailpop3 * f, carray ** result);
6969
70 int mailpop3_retr(mailpop3 * f, uint32_t index, char ** result,
70 int mailpop3_retr(mailpop3 * f, unsigned int index, char ** result,
7171 size_t * result_len);
7272
73 int mailpop3_top(mailpop3 * f, uint32_t index, uint32_t count,
74 char ** result, size_t * result_len);
73 int mailpop3_top(mailpop3 * f, unsigned int index,
74 unsigned int count, char ** result,
75 size_t * result_len);
7576
76 int mailpop3_dele(mailpop3 * f, uint32_t index);
77 int mailpop3_dele(mailpop3 * f, unsigned int index);
7778
7879 int mailpop3_noop(mailpop3 * f);
7980
8384
8485 void mailpop3_retr_free(char * str);
8586
86 int mailpop3_get_msg_info(mailpop3 * f, uint32_t index,
87 int mailpop3_get_msg_info(mailpop3 * f, unsigned int index,
8788 struct mailpop3_msg_info ** result);
8889
8990 int mailpop3_capa(mailpop3 * f, clist ** result);
0 libetpan_version.h
1 .libs
2 *.la
3 *.lo
4141 #endif
4242
4343 #ifndef LIBETPAN_VERSION_MINOR
44 #define LIBETPAN_VERSION_MINOR 35
44 #define LIBETPAN_VERSION_MINOR 36
4545 #endif
4646
4747 #ifndef LIBETPAN_REENTRANT