]>
Commit | Line | Data |
---|---|---|
739457f4 | 1 | #! /bin/sh |
b92028a4 | 2 | # From configure.in Revision: 2.8 . |
739457f4 | 3 | # Guess values for system-dependent variables and create Makefiles. |
db04fc41 | 4 | # Generated by GNU Autoconf 2.53. |
739457f4 | 5 | # |
db04fc41 RC |
6 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
7 | # Free Software Foundation, Inc. | |
739457f4 CF |
8 | # This configure script is free software; the Free Software Foundation |
9 | # gives unlimited permission to copy, distribute and modify it. | |
10 | ||
6908b7d7 RC |
11 | |
12 | # Check that we are running under the correct shell. | |
13 | SHELL=${CONFIG_SHELL-/bin/sh} | |
14 | ||
15 | case X$ECHO in | |
16 | X*--fallback-echo) | |
17 | # Remove one level of quotation (which was required for Make). | |
18 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
19 | ;; | |
20 | esac | |
21 | ||
22 | echo=${ECHO-echo} | |
23 | if test "X$1" = X--no-reexec; then | |
24 | # Discard the --no-reexec flag, and continue. | |
25 | shift | |
26 | elif test "X$1" = X--fallback-echo; then | |
27 | # Avoid inline document here, it may be left over | |
28 | : | |
29 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then | |
30 | # Yippee, $echo works! | |
31 | : | |
32 | else | |
33 | # Restart under the correct shell. | |
34 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
35 | fi | |
36 | ||
37 | if test "X$1" = X--fallback-echo; then | |
38 | # used as fallback echo | |
39 | shift | |
40 | cat <<EOF | |
41 | $* | |
42 | EOF | |
43 | exit 0 | |
44 | fi | |
45 | ||
46 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
47 | # if CDPATH is set. | |
48 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | |
49 | ||
50 | if test -z "$ECHO"; then | |
51 | if test "X${echo_test_string+set}" != Xset; then | |
52 | # find a string as large as possible, as long as the shell can cope with it | |
53 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
54 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
55 | if (echo_test_string="`eval $cmd`") 2>/dev/null && | |
56 | echo_test_string="`eval $cmd`" && | |
57 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | |
58 | then | |
59 | break | |
60 | fi | |
61 | done | |
62 | fi | |
63 | ||
64 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
65 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
66 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
67 | : | |
68 | else | |
69 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
70 | # backslashes. This makes it impossible to quote backslashes using | |
71 | # echo "$something" | sed 's/\\/\\\\/g' | |
72 | # | |
73 | # So, first we look for a working echo in the user's PATH. | |
74 | ||
75 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
76 | for dir in $PATH /usr/ucb; do | |
77 | IFS="$lt_save_ifs" | |
78 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
79 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
80 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
81 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
82 | echo="$dir/echo" | |
83 | break | |
84 | fi | |
85 | done | |
86 | IFS="$lt_save_ifs" | |
87 | ||
88 | if test "X$echo" = Xecho; then | |
89 | # We didn't find a better echo, so look for alternatives. | |
90 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | |
91 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | |
92 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
93 | # This shell has a builtin print -r that does the trick. | |
94 | echo='print -r' | |
95 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | |
96 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
97 | # If we have ksh, try running configure again with it. | |
98 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
99 | export ORIGINAL_CONFIG_SHELL | |
100 | CONFIG_SHELL=/bin/ksh | |
101 | export CONFIG_SHELL | |
102 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
103 | else | |
104 | # Try using printf. | |
105 | echo='printf %s\n' | |
106 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
107 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
108 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
109 | # Cool, printf works | |
110 | : | |
111 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
112 | test "X$echo_testing_string" = 'X\t' && | |
113 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
114 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
115 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
116 | export CONFIG_SHELL | |
117 | SHELL="$CONFIG_SHELL" | |
118 | export SHELL | |
119 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
120 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
121 | test "X$echo_testing_string" = 'X\t' && | |
122 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
123 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
124 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
125 | else | |
126 | # maybe with a smaller string... | |
127 | prev=: | |
128 | ||
129 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
130 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | |
131 | then | |
132 | break | |
133 | fi | |
134 | prev="$cmd" | |
135 | done | |
136 | ||
137 | if test "$prev" != 'sed 50q "$0"'; then | |
138 | echo_test_string=`eval $prev` | |
139 | export echo_test_string | |
140 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
141 | else | |
142 | # Oops. We lost completely, so just stick with echo. | |
143 | echo=echo | |
144 | fi | |
145 | fi | |
146 | fi | |
147 | fi | |
148 | fi | |
149 | fi | |
150 | ||
151 | # Copy echo and quote the copy suitably for passing to libtool from | |
152 | # the Makefile, instead of quoting the original, which is used later. | |
153 | ECHO=$echo | |
154 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
155 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
156 | fi | |
157 | ||
158 | ||
159 | ||
db04fc41 RC |
160 | if expr a : '\(a\)' >/dev/null 2>&1; then |
161 | as_expr=expr | |
162 | else | |
163 | as_expr=false | |
164 | fi | |
165 | ||
166 | ||
167 | ## --------------------- ## | |
168 | ## M4sh Initialization. ## | |
169 | ## --------------------- ## | |
170 | ||
171 | # Be Bourne compatible | |
172 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
173 | emulate sh | |
174 | NULLCMD=: | |
175 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
176 | set -o posix | |
177 | fi | |
178 | ||
179 | # NLS nuisances. | |
180 | # Support unset when possible. | |
181 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
182 | as_unset=unset | |
183 | else | |
184 | as_unset=false | |
185 | fi | |
186 | ||
187 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | |
188 | { $as_unset LANG || test "${LANG+set}" != set; } || | |
189 | { LANG=C; export LANG; } | |
190 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | |
191 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | |
192 | { LC_ALL=C; export LC_ALL; } | |
193 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | |
194 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | |
195 | { LC_TIME=C; export LC_TIME; } | |
196 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | |
197 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | |
198 | { LC_CTYPE=C; export LC_CTYPE; } | |
199 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | |
200 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | |
201 | { LANGUAGE=C; export LANGUAGE; } | |
202 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | |
203 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | |
204 | { LC_COLLATE=C; export LC_COLLATE; } | |
205 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | |
206 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | |
207 | { LC_NUMERIC=C; export LC_NUMERIC; } | |
208 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | |
209 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | |
210 | { LC_MESSAGES=C; export LC_MESSAGES; } | |
211 | ||
212 | ||
213 | # Name of the executable. | |
214 | as_me=`(basename "$0") 2>/dev/null || | |
215 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
216 | X"$0" : 'X\(//\)$' \| \ | |
217 | X"$0" : 'X\(/\)$' \| \ | |
218 | . : '\(.\)' 2>/dev/null || | |
219 | echo X/"$0" | | |
220 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
221 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
222 | /^X\/\(\/\).*/{ s//\1/; q; } | |
223 | s/.*/./; q'` | |
224 | ||
225 | # PATH needs CR, and LINENO needs CR and PATH. | |
226 | # Avoid depending upon Character Ranges. | |
227 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
228 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
229 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
230 | as_cr_digits='0123456789' | |
231 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
232 | ||
233 | # The user is always right. | |
234 | if test "${PATH_SEPARATOR+set}" != set; then | |
235 | echo "#! /bin/sh" >conftest.sh | |
236 | echo "exit 0" >>conftest.sh | |
237 | chmod +x conftest.sh | |
238 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | |
239 | PATH_SEPARATOR=';' | |
240 | else | |
241 | PATH_SEPARATOR=: | |
242 | fi | |
243 | rm -f conftest.sh | |
244 | fi | |
245 | ||
246 | ||
247 | as_lineno_1=$LINENO | |
248 | as_lineno_2=$LINENO | |
249 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
250 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
251 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
252 | # Find who we are. Look in the path if we contain no path at all | |
253 | # relative or not. | |
254 | case $0 in | |
255 | *[\\/]* ) as_myself=$0 ;; | |
256 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
257 | for as_dir in $PATH | |
258 | do | |
259 | IFS=$as_save_IFS | |
260 | test -z "$as_dir" && as_dir=. | |
261 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
262 | done | |
263 | ||
264 | ;; | |
265 | esac | |
266 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
267 | # in which case we are not to be found in the path. | |
268 | if test "x$as_myself" = x; then | |
269 | as_myself=$0 | |
270 | fi | |
271 | if test ! -f "$as_myself"; then | |
272 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
273 | { (exit 1); exit 1; }; } | |
274 | fi | |
275 | case $CONFIG_SHELL in | |
276 | '') | |
277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
278 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
279 | do | |
280 | IFS=$as_save_IFS | |
281 | test -z "$as_dir" && as_dir=. | |
282 | for as_base in sh bash ksh sh5; do | |
283 | case $as_dir in | |
284 | /*) | |
285 | if ("$as_dir/$as_base" -c ' | |
286 | as_lineno_1=$LINENO | |
287 | as_lineno_2=$LINENO | |
288 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
289 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
290 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
291 | CONFIG_SHELL=$as_dir/$as_base | |
292 | export CONFIG_SHELL | |
293 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
294 | fi;; | |
295 | esac | |
296 | done | |
297 | done | |
298 | ;; | |
299 | esac | |
300 | ||
301 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
302 | # uniformly replaced by the line number. The first 'sed' inserts a | |
303 | # line-number line before each line; the second 'sed' does the real | |
304 | # work. The second script uses 'N' to pair each line-number line | |
305 | # with the numbered line, and appends trailing '-' during | |
306 | # substitution so that $LINENO is not a special case at line end. | |
307 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
308 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
309 | sed '=' <$as_myself | | |
310 | sed ' | |
311 | N | |
312 | s,$,-, | |
313 | : loop | |
314 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
315 | t loop | |
316 | s,-$,, | |
317 | s,^['$as_cr_digits']*\n,, | |
318 | ' >$as_me.lineno && | |
319 | chmod +x $as_me.lineno || | |
320 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
321 | { (exit 1); exit 1; }; } | |
322 | ||
323 | # Don't try to exec as it changes $[0], causing all sort of problems | |
324 | # (the dirname of $[0] is not the place where we might find the | |
325 | # original and so on. Autoconf is especially sensible to this). | |
326 | . ./$as_me.lineno | |
327 | # Exit status is that of the last command. | |
328 | exit | |
329 | } | |
330 | ||
331 | ||
332 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
333 | *c*,-n*) ECHO_N= ECHO_C=' | |
334 | ' ECHO_T=' ' ;; | |
335 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
336 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
337 | esac | |
338 | ||
339 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
340 | as_expr=expr | |
341 | else | |
342 | as_expr=false | |
343 | fi | |
344 | ||
345 | rm -f conf$$ conf$$.exe conf$$.file | |
346 | echo >conf$$.file | |
347 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
348 | # We could just check for DJGPP; but this test a) works b) is more generic | |
349 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
350 | if test -f conf$$.exe; then | |
351 | # Don't use ln at all; we don't have any links | |
352 | as_ln_s='cp -p' | |
353 | else | |
354 | as_ln_s='ln -s' | |
355 | fi | |
356 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
357 | as_ln_s=ln | |
358 | else | |
359 | as_ln_s='cp -p' | |
360 | fi | |
361 | rm -f conf$$ conf$$.exe conf$$.file | |
362 | ||
363 | as_executable_p="test -f" | |
364 | ||
365 | # Sed expression to map a string onto a valid CPP name. | |
366 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
367 | ||
368 | # Sed expression to map a string onto a valid variable name. | |
369 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
370 | ||
371 | ||
372 | # IFS | |
373 | # We need space, tab and new line, in precisely that order. | |
374 | as_nl=' | |
375 | ' | |
376 | IFS=" $as_nl" | |
377 | ||
378 | # CDPATH. | |
379 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } | |
380 | ||
381 | ||
382 | # Name of the host. | |
383 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
384 | # so uname gets run too. | |
385 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
386 | ||
387 | exec 6>&1 | |
388 | ||
389 | # | |
390 | # Initializations. | |
391 | # | |
739457f4 | 392 | ac_default_prefix=/usr/local |
db04fc41 RC |
393 | cross_compiling=no |
394 | subdirs= | |
395 | MFLAGS= | |
396 | MAKEFLAGS= | |
397 | SHELL=${CONFIG_SHELL-/bin/sh} | |
398 | ||
399 | # Maximum number of lines to put in a shell here document. | |
400 | # This variable seems obsolete. It should probably be removed, and | |
401 | # only ac_max_sed_lines should be used. | |
402 | : ${ac_max_here_lines=38} | |
403 | ||
404 | # Identity of this package. | |
405 | PACKAGE_NAME= | |
406 | PACKAGE_TARNAME= | |
407 | PACKAGE_VERSION= | |
408 | PACKAGE_STRING= | |
409 | PACKAGE_BUGREPORT= | |
410 | ||
411 | ac_unique_file="Makefile.in" | |
6908b7d7 RC |
412 | # Factoring default headers for most tests. |
413 | ac_includes_default="\ | |
414 | #include <stdio.h> | |
415 | #if HAVE_SYS_TYPES_H | |
416 | # include <sys/types.h> | |
417 | #endif | |
418 | #if HAVE_SYS_STAT_H | |
419 | # include <sys/stat.h> | |
420 | #endif | |
421 | #if STDC_HEADERS | |
422 | # include <stdlib.h> | |
423 | # include <stddef.h> | |
424 | #else | |
425 | # if HAVE_STDLIB_H | |
426 | # include <stdlib.h> | |
427 | # endif | |
428 | #endif | |
429 | #if HAVE_STRING_H | |
430 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
431 | # include <memory.h> | |
432 | # endif | |
433 | # include <string.h> | |
434 | #endif | |
435 | #if HAVE_STRINGS_H | |
436 | # include <strings.h> | |
437 | #endif | |
438 | #if HAVE_INTTYPES_H | |
439 | # include <inttypes.h> | |
440 | #else | |
441 | # if HAVE_STDINT_H | |
442 | # include <stdint.h> | |
443 | # endif | |
444 | #endif | |
445 | #if HAVE_UNISTD_H | |
446 | # include <unistd.h> | |
447 | #endif" | |
448 | ||
db04fc41 RC |
449 | ac_subdirs_all="$ac_subdirs_all zlib" |
450 | ac_subdirs_all="$ac_subdirs_all bz2lib" | |
6908b7d7 | 451 | ac_subdirs_all="$ac_subdirs_all libgetopt++" |
739457f4 CF |
452 | |
453 | # Initialize some variables set by options. | |
db04fc41 RC |
454 | ac_init_help= |
455 | ac_init_version=false | |
739457f4 CF |
456 | # The variables have the same names as the options, with |
457 | # dashes changed to underlines. | |
db04fc41 | 458 | cache_file=/dev/null |
739457f4 | 459 | exec_prefix=NONE |
739457f4 | 460 | no_create= |
739457f4 CF |
461 | no_recursion= |
462 | prefix=NONE | |
463 | program_prefix=NONE | |
464 | program_suffix=NONE | |
465 | program_transform_name=s,x,x, | |
466 | silent= | |
467 | site= | |
739457f4 | 468 | srcdir= |
739457f4 CF |
469 | verbose= |
470 | x_includes=NONE | |
471 | x_libraries=NONE | |
db04fc41 RC |
472 | |
473 | # Installation directory options. | |
474 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
475 | # and all the variables that are supposed to be based on exec_prefix | |
476 | # by default will actually change. | |
477 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
739457f4 CF |
478 | bindir='${exec_prefix}/bin' |
479 | sbindir='${exec_prefix}/sbin' | |
480 | libexecdir='${exec_prefix}/libexec' | |
481 | datadir='${prefix}/share' | |
482 | sysconfdir='${prefix}/etc' | |
483 | sharedstatedir='${prefix}/com' | |
484 | localstatedir='${prefix}/var' | |
485 | libdir='${exec_prefix}/lib' | |
486 | includedir='${prefix}/include' | |
487 | oldincludedir='/usr/include' | |
488 | infodir='${prefix}/info' | |
489 | mandir='${prefix}/man' | |
490 | ||
739457f4 CF |
491 | ac_prev= |
492 | for ac_option | |
493 | do | |
739457f4 CF |
494 | # If the previous option needs an argument, assign it. |
495 | if test -n "$ac_prev"; then | |
496 | eval "$ac_prev=\$ac_option" | |
497 | ac_prev= | |
498 | continue | |
499 | fi | |
500 | ||
db04fc41 | 501 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
739457f4 CF |
502 | |
503 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
504 | ||
db04fc41 | 505 | case $ac_option in |
739457f4 CF |
506 | |
507 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
508 | ac_prev=bindir ;; | |
509 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
db04fc41 | 510 | bindir=$ac_optarg ;; |
739457f4 CF |
511 | |
512 | -build | --build | --buil | --bui | --bu) | |
db04fc41 | 513 | ac_prev=build_alias ;; |
739457f4 | 514 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
db04fc41 | 515 | build_alias=$ac_optarg ;; |
739457f4 CF |
516 | |
517 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
518 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
519 | ac_prev=cache_file ;; | |
520 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
521 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
db04fc41 RC |
522 | cache_file=$ac_optarg ;; |
523 | ||
524 | --config-cache | -C) | |
525 | cache_file=config.cache ;; | |
739457f4 CF |
526 | |
527 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
528 | ac_prev=datadir ;; | |
529 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
530 | | --da=*) | |
db04fc41 | 531 | datadir=$ac_optarg ;; |
739457f4 CF |
532 | |
533 | -disable-* | --disable-*) | |
db04fc41 | 534 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
739457f4 | 535 | # Reject names that are not valid shell variable names. |
db04fc41 RC |
536 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
537 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
538 | { (exit 1); exit 1; }; } | |
539 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
540 | eval "enable_$ac_feature=no" ;; | |
739457f4 CF |
541 | |
542 | -enable-* | --enable-*) | |
db04fc41 | 543 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
739457f4 | 544 | # Reject names that are not valid shell variable names. |
db04fc41 RC |
545 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
546 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
547 | { (exit 1); exit 1; }; } | |
548 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
549 | case $ac_option in | |
550 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
739457f4 CF |
551 | *) ac_optarg=yes ;; |
552 | esac | |
db04fc41 | 553 | eval "enable_$ac_feature='$ac_optarg'" ;; |
739457f4 CF |
554 | |
555 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
556 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
557 | | --exec | --exe | --ex) | |
558 | ac_prev=exec_prefix ;; | |
559 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
560 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
561 | | --exec=* | --exe=* | --ex=*) | |
db04fc41 | 562 | exec_prefix=$ac_optarg ;; |
739457f4 CF |
563 | |
564 | -gas | --gas | --ga | --g) | |
565 | # Obsolete; use --with-gas. | |
566 | with_gas=yes ;; | |
567 | ||
db04fc41 RC |
568 | -help | --help | --hel | --he | -h) |
569 | ac_init_help=long ;; | |
570 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
571 | ac_init_help=recursive ;; | |
572 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
573 | ac_init_help=short ;; | |
739457f4 CF |
574 | |
575 | -host | --host | --hos | --ho) | |
db04fc41 | 576 | ac_prev=host_alias ;; |
739457f4 | 577 | -host=* | --host=* | --hos=* | --ho=*) |
db04fc41 | 578 | host_alias=$ac_optarg ;; |
739457f4 CF |
579 | |
580 | -includedir | --includedir | --includedi | --included | --include \ | |
581 | | --includ | --inclu | --incl | --inc) | |
582 | ac_prev=includedir ;; | |
583 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
584 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
db04fc41 | 585 | includedir=$ac_optarg ;; |
739457f4 CF |
586 | |
587 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
588 | ac_prev=infodir ;; | |
589 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
db04fc41 | 590 | infodir=$ac_optarg ;; |
739457f4 CF |
591 | |
592 | -libdir | --libdir | --libdi | --libd) | |
593 | ac_prev=libdir ;; | |
594 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
db04fc41 | 595 | libdir=$ac_optarg ;; |
739457f4 CF |
596 | |
597 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
598 | | --libexe | --libex | --libe) | |
599 | ac_prev=libexecdir ;; | |
600 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
601 | | --libexe=* | --libex=* | --libe=*) | |
db04fc41 | 602 | libexecdir=$ac_optarg ;; |
739457f4 CF |
603 | |
604 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
605 | | --localstate | --localstat | --localsta | --localst \ | |
606 | | --locals | --local | --loca | --loc | --lo) | |
607 | ac_prev=localstatedir ;; | |
608 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
609 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
610 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
db04fc41 | 611 | localstatedir=$ac_optarg ;; |
739457f4 CF |
612 | |
613 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
614 | ac_prev=mandir ;; | |
615 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
db04fc41 | 616 | mandir=$ac_optarg ;; |
739457f4 CF |
617 | |
618 | -nfp | --nfp | --nf) | |
619 | # Obsolete; use --without-fp. | |
620 | with_fp=no ;; | |
621 | ||
622 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
db04fc41 | 623 | | --no-cr | --no-c | -n) |
739457f4 CF |
624 | no_create=yes ;; |
625 | ||
626 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
627 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
628 | no_recursion=yes ;; | |
629 | ||
630 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
631 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
632 | | --oldin | --oldi | --old | --ol | --o) | |
633 | ac_prev=oldincludedir ;; | |
634 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
635 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
636 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
db04fc41 | 637 | oldincludedir=$ac_optarg ;; |
739457f4 CF |
638 | |
639 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
640 | ac_prev=prefix ;; | |
641 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
db04fc41 | 642 | prefix=$ac_optarg ;; |
739457f4 CF |
643 | |
644 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
645 | | --program-pre | --program-pr | --program-p) | |
646 | ac_prev=program_prefix ;; | |
647 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
648 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
db04fc41 | 649 | program_prefix=$ac_optarg ;; |
739457f4 CF |
650 | |
651 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
652 | | --program-suf | --program-su | --program-s) | |
653 | ac_prev=program_suffix ;; | |
654 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
655 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
db04fc41 | 656 | program_suffix=$ac_optarg ;; |
739457f4 CF |
657 | |
658 | -program-transform-name | --program-transform-name \ | |
659 | | --program-transform-nam | --program-transform-na \ | |
660 | | --program-transform-n | --program-transform- \ | |
661 | | --program-transform | --program-transfor \ | |
662 | | --program-transfo | --program-transf \ | |
663 | | --program-trans | --program-tran \ | |
664 | | --progr-tra | --program-tr | --program-t) | |
665 | ac_prev=program_transform_name ;; | |
666 | -program-transform-name=* | --program-transform-name=* \ | |
667 | | --program-transform-nam=* | --program-transform-na=* \ | |
668 | | --program-transform-n=* | --program-transform-=* \ | |
669 | | --program-transform=* | --program-transfor=* \ | |
670 | | --program-transfo=* | --program-transf=* \ | |
671 | | --program-trans=* | --program-tran=* \ | |
672 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
db04fc41 | 673 | program_transform_name=$ac_optarg ;; |
739457f4 CF |
674 | |
675 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
676 | | -silent | --silent | --silen | --sile | --sil) | |
677 | silent=yes ;; | |
678 | ||
679 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
680 | ac_prev=sbindir ;; | |
681 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
682 | | --sbi=* | --sb=*) | |
db04fc41 | 683 | sbindir=$ac_optarg ;; |
739457f4 CF |
684 | |
685 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
686 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
687 | | --sharedst | --shareds | --shared | --share | --shar \ | |
688 | | --sha | --sh) | |
689 | ac_prev=sharedstatedir ;; | |
690 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
691 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
692 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
693 | | --sha=* | --sh=*) | |
db04fc41 | 694 | sharedstatedir=$ac_optarg ;; |
739457f4 CF |
695 | |
696 | -site | --site | --sit) | |
697 | ac_prev=site ;; | |
698 | -site=* | --site=* | --sit=*) | |
db04fc41 | 699 | site=$ac_optarg ;; |
739457f4 | 700 | |
739457f4 CF |
701 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
702 | ac_prev=srcdir ;; | |
703 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
db04fc41 | 704 | srcdir=$ac_optarg ;; |
739457f4 CF |
705 | |
706 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
707 | | --syscon | --sysco | --sysc | --sys | --sy) | |
708 | ac_prev=sysconfdir ;; | |
709 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
710 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
db04fc41 | 711 | sysconfdir=$ac_optarg ;; |
739457f4 CF |
712 | |
713 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
db04fc41 | 714 | ac_prev=target_alias ;; |
739457f4 | 715 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
db04fc41 | 716 | target_alias=$ac_optarg ;; |
739457f4 CF |
717 | |
718 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
719 | verbose=yes ;; | |
720 | ||
db04fc41 RC |
721 | -version | --version | --versio | --versi | --vers | -V) |
722 | ac_init_version=: ;; | |
739457f4 CF |
723 | |
724 | -with-* | --with-*) | |
db04fc41 | 725 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
739457f4 | 726 | # Reject names that are not valid shell variable names. |
db04fc41 RC |
727 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
728 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
729 | { (exit 1); exit 1; }; } | |
739457f4 | 730 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
db04fc41 RC |
731 | case $ac_option in |
732 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
739457f4 CF |
733 | *) ac_optarg=yes ;; |
734 | esac | |
db04fc41 | 735 | eval "with_$ac_package='$ac_optarg'" ;; |
739457f4 CF |
736 | |
737 | -without-* | --without-*) | |
db04fc41 | 738 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
739457f4 | 739 | # Reject names that are not valid shell variable names. |
db04fc41 RC |
740 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
741 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
742 | { (exit 1); exit 1; }; } | |
743 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
744 | eval "with_$ac_package=no" ;; | |
739457f4 CF |
745 | |
746 | --x) | |
747 | # Obsolete; use --with-x. | |
748 | with_x=yes ;; | |
749 | ||
750 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
751 | | --x-incl | --x-inc | --x-in | --x-i) | |
752 | ac_prev=x_includes ;; | |
753 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
754 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
db04fc41 | 755 | x_includes=$ac_optarg ;; |
739457f4 CF |
756 | |
757 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
758 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
759 | ac_prev=x_libraries ;; | |
760 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
761 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
db04fc41 | 762 | x_libraries=$ac_optarg ;; |
739457f4 | 763 | |
db04fc41 RC |
764 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
765 | Try \`$0 --help' for more information." >&2 | |
766 | { (exit 1); exit 1; }; } | |
739457f4 CF |
767 | ;; |
768 | ||
db04fc41 RC |
769 | *=*) |
770 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
771 | # Reject names that are not valid shell variable names. | |
772 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
773 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
774 | { (exit 1); exit 1; }; } | |
775 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
776 | eval "$ac_envvar='$ac_optarg'" | |
777 | export $ac_envvar ;; | |
778 | ||
739457f4 | 779 | *) |
db04fc41 RC |
780 | # FIXME: should be removed in autoconf 3.0. |
781 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
782 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
783 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
784 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
739457f4 CF |
785 | ;; |
786 | ||
787 | esac | |
788 | done | |
789 | ||
790 | if test -n "$ac_prev"; then | |
db04fc41 RC |
791 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
792 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
793 | { (exit 1); exit 1; }; } | |
739457f4 | 794 | fi |
739457f4 | 795 | |
db04fc41 RC |
796 | # Be sure to have absolute paths. |
797 | for ac_var in exec_prefix prefix | |
798 | do | |
799 | eval ac_val=$`echo $ac_var` | |
800 | case $ac_val in | |
801 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
802 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
803 | { (exit 1); exit 1; }; };; | |
804 | esac | |
805 | done | |
739457f4 | 806 | |
db04fc41 RC |
807 | # Be sure to have absolute paths. |
808 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
809 | localstatedir libdir includedir oldincludedir infodir mandir | |
739457f4 | 810 | do |
db04fc41 RC |
811 | eval ac_val=$`echo $ac_var` |
812 | case $ac_val in | |
813 | [\\/$]* | ?:[\\/]* ) ;; | |
814 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
815 | { (exit 1); exit 1; }; };; | |
739457f4 CF |
816 | esac |
817 | done | |
818 | ||
db04fc41 RC |
819 | # There might be people who depend on the old broken behavior: `$host' |
820 | # used to hold the argument of --host etc. | |
821 | # FIXME: To remove some day. | |
822 | build=$build_alias | |
823 | host=$host_alias | |
824 | target=$target_alias | |
825 | ||
826 | # FIXME: To remove some day. | |
827 | if test "x$host_alias" != x; then | |
828 | if test "x$build_alias" = x; then | |
829 | cross_compiling=maybe | |
830 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
831 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
832 | elif test "x$build_alias" != "x$host_alias"; then | |
833 | cross_compiling=yes | |
834 | fi | |
835 | fi | |
739457f4 | 836 | |
db04fc41 RC |
837 | ac_tool_prefix= |
838 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
839 | ||
840 | test "$silent" = yes && exec 6>/dev/null | |
739457f4 | 841 | |
739457f4 CF |
842 | |
843 | # Find the source files, if location was not specified. | |
844 | if test -z "$srcdir"; then | |
845 | ac_srcdir_defaulted=yes | |
846 | # Try the directory containing this script, then its parent. | |
db04fc41 RC |
847 | ac_confdir=`(dirname "$0") 2>/dev/null || |
848 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
849 | X"$0" : 'X\(//\)[^/]' \| \ | |
850 | X"$0" : 'X\(//\)$' \| \ | |
851 | X"$0" : 'X\(/\)' \| \ | |
852 | . : '\(.\)' 2>/dev/null || | |
853 | echo X"$0" | | |
854 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
855 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
856 | /^X\(\/\/\)$/{ s//\1/; q; } | |
857 | /^X\(\/\).*/{ s//\1/; q; } | |
858 | s/.*/./; q'` | |
739457f4 CF |
859 | srcdir=$ac_confdir |
860 | if test ! -r $srcdir/$ac_unique_file; then | |
861 | srcdir=.. | |
862 | fi | |
863 | else | |
864 | ac_srcdir_defaulted=no | |
865 | fi | |
866 | if test ! -r $srcdir/$ac_unique_file; then | |
867 | if test "$ac_srcdir_defaulted" = yes; then | |
db04fc41 RC |
868 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
869 | { (exit 1); exit 1; }; } | |
739457f4 | 870 | else |
db04fc41 RC |
871 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
872 | { (exit 1); exit 1; }; } | |
739457f4 CF |
873 | fi |
874 | fi | |
db04fc41 RC |
875 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
876 | ac_env_build_alias_set=${build_alias+set} | |
877 | ac_env_build_alias_value=$build_alias | |
878 | ac_cv_env_build_alias_set=${build_alias+set} | |
879 | ac_cv_env_build_alias_value=$build_alias | |
880 | ac_env_host_alias_set=${host_alias+set} | |
881 | ac_env_host_alias_value=$host_alias | |
882 | ac_cv_env_host_alias_set=${host_alias+set} | |
883 | ac_cv_env_host_alias_value=$host_alias | |
884 | ac_env_target_alias_set=${target_alias+set} | |
885 | ac_env_target_alias_value=$target_alias | |
886 | ac_cv_env_target_alias_set=${target_alias+set} | |
887 | ac_cv_env_target_alias_value=$target_alias | |
888 | ac_env_CXX_set=${CXX+set} | |
889 | ac_env_CXX_value=$CXX | |
890 | ac_cv_env_CXX_set=${CXX+set} | |
891 | ac_cv_env_CXX_value=$CXX | |
892 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
893 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
894 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
895 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
896 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
897 | ac_env_LDFLAGS_value=$LDFLAGS | |
898 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
899 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
900 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
901 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
902 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
903 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
904 | ac_env_CC_set=${CC+set} | |
905 | ac_env_CC_value=$CC | |
906 | ac_cv_env_CC_set=${CC+set} | |
907 | ac_cv_env_CC_value=$CC | |
908 | ac_env_CFLAGS_set=${CFLAGS+set} | |
909 | ac_env_CFLAGS_value=$CFLAGS | |
910 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
911 | ac_cv_env_CFLAGS_value=$CFLAGS | |
6908b7d7 RC |
912 | ac_env_CPP_set=${CPP+set} |
913 | ac_env_CPP_value=$CPP | |
914 | ac_cv_env_CPP_set=${CPP+set} | |
915 | ac_cv_env_CPP_value=$CPP | |
916 | ac_env_CXXCPP_set=${CXXCPP+set} | |
917 | ac_env_CXXCPP_value=$CXXCPP | |
918 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
919 | ac_cv_env_CXXCPP_value=$CXXCPP | |
db04fc41 RC |
920 | |
921 | # | |
922 | # Report the --help message. | |
923 | # | |
924 | if test "$ac_init_help" = "long"; then | |
925 | # Omit some internal or obsolete options to make the list less imposing. | |
926 | # This message is too long to be a string in the A/UX 3.1 sh. | |
927 | cat <<_ACEOF | |
928 | \`configure' configures this package to adapt to many kinds of systems. | |
929 | ||
930 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
931 | ||
932 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
933 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
934 | ||
935 | Defaults for the options are specified in brackets. | |
936 | ||
937 | Configuration: | |
938 | -h, --help display this help and exit | |
939 | --help=short display options specific to this package | |
940 | --help=recursive display the short help of all the included packages | |
941 | -V, --version display version information and exit | |
942 | -q, --quiet, --silent do not print \`checking...' messages | |
943 | --cache-file=FILE cache test results in FILE [disabled] | |
944 | -C, --config-cache alias for \`--cache-file=config.cache' | |
945 | -n, --no-create do not create output files | |
946 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
947 | ||
948 | _ACEOF | |
949 | ||
950 | cat <<_ACEOF | |
951 | Installation directories: | |
952 | --prefix=PREFIX install architecture-independent files in PREFIX | |
953 | [$ac_default_prefix] | |
954 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
955 | [PREFIX] | |
956 | ||
957 | By default, \`make install' will install all the files in | |
958 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
959 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
960 | for instance \`--prefix=\$HOME'. | |
961 | ||
962 | For better control, use the options below. | |
963 | ||
964 | Fine tuning of the installation directories: | |
965 | --bindir=DIR user executables [EPREFIX/bin] | |
966 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
967 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
968 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
969 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
970 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
971 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
972 | --libdir=DIR object code libraries [EPREFIX/lib] | |
973 | --includedir=DIR C header files [PREFIX/include] | |
974 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
975 | --infodir=DIR info documentation [PREFIX/info] | |
976 | --mandir=DIR man documentation [PREFIX/man] | |
977 | _ACEOF | |
978 | ||
979 | cat <<\_ACEOF | |
980 | ||
f6100b6f RC |
981 | Program names: |
982 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
983 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
984 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
985 | ||
db04fc41 RC |
986 | System types: |
987 | --build=BUILD configure for building on BUILD [guessed] | |
988 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
989 | _ACEOF | |
990 | fi | |
991 | ||
992 | if test -n "$ac_init_help"; then | |
993 | ||
994 | cat <<\_ACEOF | |
995 | ||
f6100b6f RC |
996 | Optional Features: |
997 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
998 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
999 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1000 | (and sometimes confusing) to the casual installer | |
1001 | --disable-dependency-tracking Speeds up one-time builds | |
1002 | --enable-dependency-tracking Do not reject slow dependency extractors | |
6908b7d7 RC |
1003 | --enable-shared[=PKGS] |
1004 | build shared libraries [default=yes] | |
1005 | --enable-static[=PKGS] | |
1006 | build static libraries [default=yes] | |
1007 | --enable-fast-install[=PKGS] | |
1008 | optimize for fast installation [default=yes] | |
1009 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1010 | ||
1011 | Optional Packages: | |
1012 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1013 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1014 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1015 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1016 | both] | |
1017 | --with-tags=TAGS include additional configurations [CXX,GCJ] | |
f6100b6f | 1018 | |
db04fc41 RC |
1019 | Some influential environment variables: |
1020 | CXX C++ compiler command | |
1021 | CXXFLAGS C++ compiler flags | |
1022 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1023 | nonstandard directory <lib dir> | |
1024 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1025 | headers in a nonstandard directory <include dir> | |
1026 | CC C compiler command | |
1027 | CFLAGS C compiler flags | |
6908b7d7 RC |
1028 | CPP C preprocessor |
1029 | CXXCPP C++ preprocessor | |
db04fc41 RC |
1030 | |
1031 | Use these variables to override the choices made by `configure' or to help | |
1032 | it to find libraries and programs with nonstandard names/locations. | |
1033 | ||
1034 | _ACEOF | |
1035 | fi | |
1036 | ||
1037 | if test "$ac_init_help" = "recursive"; then | |
1038 | # If there are subdirs, report their specific --help. | |
1039 | ac_popdir=`pwd` | |
1040 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1041 | test -d $ac_dir || continue | |
1042 | ac_builddir=. | |
1043 | ||
1044 | if test "$ac_dir" != .; then | |
1045 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1046 | # A "../" for each directory in $ac_dir_suffix. | |
1047 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1048 | else | |
1049 | ac_dir_suffix= ac_top_builddir= | |
1050 | fi | |
1051 | ||
1052 | case $srcdir in | |
1053 | .) # No --srcdir option. We are building in place. | |
1054 | ac_srcdir=. | |
1055 | if test -z "$ac_top_builddir"; then | |
1056 | ac_top_srcdir=. | |
1057 | else | |
1058 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1059 | fi ;; | |
1060 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1061 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1062 | ac_top_srcdir=$srcdir ;; | |
1063 | *) # Relative path. | |
1064 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1065 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1066 | esac | |
1067 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
1068 | # absolute. | |
1069 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
1070 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
1071 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
1072 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
1073 | ||
1074 | cd $ac_dir | |
1075 | # Check for guested configure; otherwise get Cygnus style configure. | |
1076 | if test -f $ac_srcdir/configure.gnu; then | |
1077 | echo | |
1078 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1079 | elif test -f $ac_srcdir/configure; then | |
1080 | echo | |
1081 | $SHELL $ac_srcdir/configure --help=recursive | |
1082 | elif test -f $ac_srcdir/configure.ac || | |
1083 | test -f $ac_srcdir/configure.in; then | |
1084 | echo | |
1085 | $ac_configure --help | |
1086 | else | |
1087 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1088 | fi | |
1089 | cd $ac_popdir | |
1090 | done | |
1091 | fi | |
1092 | ||
1093 | test -n "$ac_init_help" && exit 0 | |
1094 | if $ac_init_version; then | |
1095 | cat <<\_ACEOF | |
1096 | ||
1097 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
1098 | Free Software Foundation, Inc. | |
1099 | This configure script is free software; the Free Software Foundation | |
1100 | gives unlimited permission to copy, distribute and modify it. | |
1101 | _ACEOF | |
1102 | exit 0 | |
1103 | fi | |
1104 | exec 5>config.log | |
1105 | cat >&5 <<_ACEOF | |
1106 | This file contains any messages produced by compilers while | |
1107 | running configure, to aid debugging if configure makes a mistake. | |
1108 | ||
1109 | It was created by $as_me, which was | |
1110 | generated by GNU Autoconf 2.53. Invocation command line was | |
1111 | ||
1112 | $ $0 $@ | |
1113 | ||
1114 | _ACEOF | |
1115 | { | |
1116 | cat <<_ASUNAME | |
1117 | ## --------- ## | |
1118 | ## Platform. ## | |
1119 | ## --------- ## | |
1120 | ||
1121 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1122 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1123 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1124 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1125 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1126 | ||
1127 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1128 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1129 | ||
1130 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1131 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1132 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1133 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1134 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1135 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1136 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1137 | ||
1138 | _ASUNAME | |
1139 | ||
1140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1141 | for as_dir in $PATH | |
1142 | do | |
1143 | IFS=$as_save_IFS | |
1144 | test -z "$as_dir" && as_dir=. | |
1145 | echo "PATH: $as_dir" | |
1146 | done | |
1147 | ||
1148 | } >&5 | |
1149 | ||
1150 | cat >&5 <<_ACEOF | |
1151 | ||
1152 | ||
1153 | ## ----------- ## | |
1154 | ## Core tests. ## | |
1155 | ## ----------- ## | |
1156 | ||
1157 | _ACEOF | |
1158 | ||
1159 | ||
1160 | # Keep a trace of the command line. | |
1161 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1162 | # Also quote any args containing shell meta-characters. | |
1163 | ac_configure_args= | |
1164 | ac_sep= | |
1165 | for ac_arg | |
1166 | do | |
1167 | case $ac_arg in | |
1168 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1169 | | --no-cr | --no-c | -n ) continue ;; | |
1170 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1171 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1172 | continue ;; | |
1173 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1174 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1175 | esac | |
1176 | case " $ac_configure_args " in | |
1177 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1178 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1179 | ac_sep=" " ;; | |
1180 | esac | |
1181 | # Get rid of the leading space. | |
1182 | done | |
1183 | ||
1184 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1185 | # config.log. We remove comments because anyway the quotes in there | |
1186 | # would cause problems or look ugly. | |
1187 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1188 | # such as our DU 5.0 friend, will then `close' the trap. | |
1189 | trap 'exit_status=$? | |
1190 | # Save into config.log some information that might help in debugging. | |
1191 | { | |
1192 | echo | |
1193 | cat <<\_ASBOX | |
1194 | ## ---------------- ## | |
1195 | ## Cache variables. ## | |
1196 | ## ---------------- ## | |
1197 | _ASBOX | |
1198 | echo | |
1199 | # The following way of writing the cache mishandles newlines in values, | |
1200 | { | |
1201 | (set) 2>&1 | | |
1202 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1203 | *ac_space=\ *) | |
1204 | sed -n \ | |
1205 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1206 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1207 | ;; | |
1208 | *) | |
1209 | sed -n \ | |
1210 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1211 | ;; | |
1212 | esac; | |
1213 | } | |
1214 | echo | |
1215 | if test -s confdefs.h; then | |
1216 | cat <<\_ASBOX | |
1217 | ## ----------- ## | |
1218 | ## confdefs.h. ## | |
1219 | ## ----------- ## | |
1220 | _ASBOX | |
1221 | echo | |
1222 | sed "/^$/d" confdefs.h | |
1223 | echo | |
1224 | fi | |
1225 | test "$ac_signal" != 0 && | |
1226 | echo "$as_me: caught signal $ac_signal" | |
1227 | echo "$as_me: exit $exit_status" | |
1228 | } >&5 | |
1229 | rm -f core core.* *.core && | |
1230 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1231 | exit $exit_status | |
1232 | ' 0 | |
1233 | for ac_signal in 1 2 13 15; do | |
1234 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1235 | done | |
1236 | ac_signal=0 | |
1237 | ||
1238 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1239 | rm -rf conftest* confdefs.h | |
1240 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1241 | echo >confdefs.h | |
1242 | ||
1243 | # Predefined preprocessor variables. | |
1244 | ||
1245 | cat >>confdefs.h <<_ACEOF | |
1246 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1247 | _ACEOF | |
1248 | ||
739457f4 | 1249 | |
db04fc41 RC |
1250 | cat >>confdefs.h <<_ACEOF |
1251 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1252 | _ACEOF | |
1253 | ||
1254 | ||
1255 | cat >>confdefs.h <<_ACEOF | |
1256 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1257 | _ACEOF | |
1258 | ||
1259 | ||
1260 | cat >>confdefs.h <<_ACEOF | |
1261 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1262 | _ACEOF | |
1263 | ||
1264 | ||
1265 | cat >>confdefs.h <<_ACEOF | |
1266 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1267 | _ACEOF | |
1268 | ||
1269 | ||
1270 | # Let the site file select an alternate cache file if it wants to. | |
739457f4 | 1271 | # Prefer explicitly selected file to automatically selected ones. |
cef493d7 CF |
1272 | if test -z "$CONFIG_SITE"; then |
1273 | if test "x$prefix" != xNONE; then | |
1274 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1275 | else | |
1276 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
739457f4 | 1277 | fi |
739457f4 CF |
1278 | fi |
1279 | for ac_site_file in $CONFIG_SITE; do | |
1280 | if test -r "$ac_site_file"; then | |
db04fc41 RC |
1281 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1282 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1283 | sed 's/^/| /' "$ac_site_file" >&5 | |
739457f4 CF |
1284 | . "$ac_site_file" |
1285 | fi | |
1286 | done | |
1287 | ||
1288 | if test -r "$cache_file"; then | |
db04fc41 RC |
1289 | # Some versions of bash will fail to source /dev/null (special |
1290 | # files actually), so we avoid doing that. | |
1291 | if test -f "$cache_file"; then | |
1292 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1293 | echo "$as_me: loading cache $cache_file" >&6;} | |
1294 | case $cache_file in | |
1295 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1296 | *) . ./$cache_file;; | |
1297 | esac | |
1298 | fi | |
739457f4 | 1299 | else |
db04fc41 RC |
1300 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1301 | echo "$as_me: creating cache $cache_file" >&6;} | |
1302 | >$cache_file | |
1303 | fi | |
1304 | ||
1305 | # Check that the precious variables saved in the cache have kept the same | |
1306 | # value. | |
1307 | ac_cache_corrupted=false | |
1308 | for ac_var in `(set) 2>&1 | | |
1309 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1310 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1311 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1312 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1313 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1314 | case $ac_old_set,$ac_new_set in | |
1315 | set,) | |
1316 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1317 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1318 | ac_cache_corrupted=: ;; | |
1319 | ,set) | |
1320 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1321 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1322 | ac_cache_corrupted=: ;; | |
1323 | ,);; | |
1324 | *) | |
1325 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1326 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1327 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1328 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1329 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1330 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1331 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1332 | ac_cache_corrupted=: | |
1333 | fi;; | |
1334 | esac | |
1335 | # Pass precious variables to config.status. | |
1336 | if test "$ac_new_set" = set; then | |
1337 | case $ac_new_val in | |
1338 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1339 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1340 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1341 | esac | |
1342 | case " $ac_configure_args " in | |
1343 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1344 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1345 | esac | |
1346 | fi | |
1347 | done | |
1348 | if $ac_cache_corrupted; then | |
1349 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1350 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1351 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1352 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1353 | { (exit 1); exit 1; }; } | |
739457f4 CF |
1354 | fi |
1355 | ||
1356 | ac_ext=c | |
739457f4 | 1357 | ac_cpp='$CPP $CPPFLAGS' |
db04fc41 RC |
1358 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1359 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1360 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1361 | ||
1362 | ||
1363 | ||
1364 | ||
1365 | ||
1366 | ||
1367 | ||
1368 | ||
1369 | ||
1370 | ||
1371 | ||
739457f4 CF |
1372 | |
1373 | ||
1374 | ||
1375 | ||
1376 | ||
1377 | ||
72826a5b CF |
1378 | |
1379 | ||
1380 | ac_aux_dir= | |
db04fc41 | 1381 | for ac_dir in cfgaux $srcdir/cfgaux; do |
72826a5b CF |
1382 | if test -f $ac_dir/install-sh; then |
1383 | ac_aux_dir=$ac_dir | |
1384 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1385 | break | |
1386 | elif test -f $ac_dir/install.sh; then | |
1387 | ac_aux_dir=$ac_dir | |
1388 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1389 | break | |
db04fc41 RC |
1390 | elif test -f $ac_dir/shtool; then |
1391 | ac_aux_dir=$ac_dir | |
1392 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1393 | break | |
72826a5b CF |
1394 | fi |
1395 | done | |
1396 | if test -z "$ac_aux_dir"; then | |
db04fc41 RC |
1397 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cfgaux $srcdir/cfgaux" >&5 |
1398 | echo "$as_me: error: cannot find install-sh or install.sh in cfgaux $srcdir/cfgaux" >&2;} | |
1399 | { (exit 1); exit 1; }; } | |
72826a5b | 1400 | fi |
db04fc41 RC |
1401 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1402 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1403 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
72826a5b | 1404 | |
f6100b6f RC |
1405 | am__api_version="1.6" |
1406 | # Find a good install program. We prefer a C program (faster), | |
1407 | # so one script is as good as another. But avoid the broken or | |
1408 | # incompatible versions: | |
1409 | # SysV /etc/install, /usr/sbin/install | |
1410 | # SunOS /usr/etc/install | |
1411 | # IRIX /sbin/install | |
1412 | # AIX /bin/install | |
1413 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1414 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1415 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1416 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1417 | # ./install, which can be erroneously created by make from ./install.sh. | |
1418 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1419 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1420 | if test -z "$INSTALL"; then | |
1421 | if test "${ac_cv_path_install+set}" = set; then | |
1422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1423 | else | |
1424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1425 | for as_dir in $PATH | |
1426 | do | |
1427 | IFS=$as_save_IFS | |
1428 | test -z "$as_dir" && as_dir=. | |
1429 | # Account for people who put trailing slashes in PATH elements. | |
1430 | case $as_dir/ in | |
1431 | ./ | .// | /cC/* | \ | |
1432 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1433 | /usr/ucb/* ) ;; | |
1434 | *) | |
1435 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1436 | # Don't use installbsd from OSF since it installs stuff as root | |
1437 | # by default. | |
1438 | for ac_prog in ginstall scoinst install; do | |
1439 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1440 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1441 | if test $ac_prog = install && | |
1442 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1443 | # AIX install. It has an incompatible calling convention. | |
1444 | : | |
1445 | elif test $ac_prog = install && | |
1446 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1447 | # program-specific install script used by HP pwplus--don't use. | |
1448 | : | |
1449 | else | |
1450 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1451 | break 3 | |
1452 | fi | |
1453 | fi | |
1454 | done | |
1455 | done | |
1456 | ;; | |
1457 | esac | |
1458 | done | |
1459 | ||
1460 | ||
1461 | fi | |
1462 | if test "${ac_cv_path_install+set}" = set; then | |
1463 | INSTALL=$ac_cv_path_install | |
1464 | else | |
1465 | # As a last resort, use the slow shell script. We don't cache a | |
1466 | # path for INSTALL within a source directory, because that will | |
1467 | # break other packages using the cache if that directory is | |
1468 | # removed, or if the path is relative. | |
1469 | INSTALL=$ac_install_sh | |
1470 | fi | |
1471 | fi | |
1472 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1473 | echo "${ECHO_T}$INSTALL" >&6 | |
1474 | ||
1475 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1476 | # It thinks the first close brace ends the variable substitution. | |
1477 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1478 | ||
1479 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1480 | ||
1481 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1482 | ||
1483 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1484 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1485 | # Just in case | |
1486 | sleep 1 | |
1487 | echo timestamp > conftest.file | |
1488 | # Do `set' in a subshell so we don't clobber the current shell's | |
1489 | # arguments. Must try -L first in case configure is actually a | |
1490 | # symlink; some systems play weird games with the mod time of symlinks | |
1491 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1492 | # directory). | |
1493 | if ( | |
1494 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1495 | if test "$*" = "X"; then | |
1496 | # -L didn't work. | |
1497 | set X `ls -t $srcdir/configure conftest.file` | |
1498 | fi | |
1499 | rm -f conftest.file | |
1500 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1501 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1502 | ||
1503 | # If neither matched, then we have a broken ls. This can happen | |
1504 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1505 | # broken ls alias from the environment. This has actually | |
1506 | # happened. Such a system could not be considered "sane". | |
1507 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1508 | alias in your environment" >&5 | |
1509 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1510 | alias in your environment" >&2;} | |
1511 | { (exit 1); exit 1; }; } | |
1512 | fi | |
1513 | ||
1514 | test "$2" = conftest.file | |
1515 | ) | |
1516 | then | |
1517 | # Ok. | |
1518 | : | |
1519 | else | |
1520 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1521 | Check your system clock" >&5 | |
1522 | echo "$as_me: error: newly created file is older than distributed files! | |
1523 | Check your system clock" >&2;} | |
1524 | { (exit 1); exit 1; }; } | |
1525 | fi | |
1526 | echo "$as_me:$LINENO: result: yes" >&5 | |
1527 | echo "${ECHO_T}yes" >&6 | |
1528 | test "$program_prefix" != NONE && | |
1529 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1530 | # Use a double $ so make ignores it. | |
1531 | test "$program_suffix" != NONE && | |
1532 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1533 | # Double any \ or $. echo might interpret backslashes. | |
1534 | # By default was `s,x,x', remove it if useless. | |
1535 | cat <<\_ACEOF >conftest.sed | |
1536 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1537 | _ACEOF | |
1538 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1539 | rm conftest.sed | |
1540 | ||
1541 | ||
1542 | # expand $ac_aux_dir to an absolute path | |
1543 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1544 | ||
1545 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1546 | # Use eval to expand $SHELL | |
1547 | if eval "$MISSING --run true"; then | |
1548 | am_missing_run="$MISSING --run " | |
1549 | else | |
1550 | am_missing_run= | |
1551 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1552 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1553 | fi | |
1554 | ||
1555 | for ac_prog in gawk mawk nawk awk | |
1556 | do | |
1557 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1558 | set dummy $ac_prog; ac_word=$2 | |
1559 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1560 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1561 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1563 | else | |
1564 | if test -n "$AWK"; then | |
1565 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1566 | else | |
1567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1568 | for as_dir in $PATH | |
1569 | do | |
1570 | IFS=$as_save_IFS | |
1571 | test -z "$as_dir" && as_dir=. | |
1572 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1573 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1574 | ac_cv_prog_AWK="$ac_prog" | |
1575 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1576 | break 2 | |
1577 | fi | |
1578 | done | |
1579 | done | |
1580 | ||
1581 | fi | |
1582 | fi | |
1583 | AWK=$ac_cv_prog_AWK | |
1584 | if test -n "$AWK"; then | |
1585 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
1586 | echo "${ECHO_T}$AWK" >&6 | |
1587 | else | |
1588 | echo "$as_me:$LINENO: result: no" >&5 | |
1589 | echo "${ECHO_T}no" >&6 | |
1590 | fi | |
1591 | ||
1592 | test -n "$AWK" && break | |
1593 | done | |
1594 | ||
1595 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
1596 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 | |
1597 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
1598 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1600 | else | |
1601 | cat >conftest.make <<\_ACEOF | |
1602 | all: | |
1603 | @echo 'ac_maketemp="${MAKE}"' | |
1604 | _ACEOF | |
1605 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1606 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1607 | if test -n "$ac_maketemp"; then | |
1608 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1609 | else | |
1610 | eval ac_cv_prog_make_${ac_make}_set=no | |
1611 | fi | |
1612 | rm -f conftest.make | |
1613 | fi | |
1614 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1615 | echo "$as_me:$LINENO: result: yes" >&5 | |
1616 | echo "${ECHO_T}yes" >&6 | |
1617 | SET_MAKE= | |
1618 | else | |
1619 | echo "$as_me:$LINENO: result: no" >&5 | |
1620 | echo "${ECHO_T}no" >&6 | |
1621 | SET_MAKE="MAKE=${MAKE-make}" | |
1622 | fi | |
1623 | ||
1624 | # test to see if srcdir already configured | |
1625 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
1626 | test -f $srcdir/config.status; then | |
1627 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1628 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1629 | { (exit 1); exit 1; }; } | |
1630 | fi | |
1631 | ||
1632 | # Define the identity of the package. | |
1633 | PACKAGE=setup | |
1634 | VERSION=0 | |
1635 | ||
1636 | ||
1637 | cat >>confdefs.h <<_ACEOF | |
1638 | #define PACKAGE "$PACKAGE" | |
1639 | _ACEOF | |
1640 | ||
1641 | ||
1642 | cat >>confdefs.h <<_ACEOF | |
1643 | #define VERSION "$VERSION" | |
1644 | _ACEOF | |
1645 | ||
1646 | # Some tools Automake needs. | |
1647 | ||
1648 | ACLOCAL=${ACLOCAL-"${am_missing_run}"aclocal-${am__api_version}""} | |
1649 | ||
1650 | ||
1651 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1652 | ||
1653 | ||
1654 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}"automake-${am__api_version}""} | |
1655 | ||
1656 | ||
1657 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1658 | ||
1659 | ||
1660 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1661 | ||
1662 | ||
1663 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1664 | ||
1665 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
1666 | ||
1667 | # Installed binaries are usually stripped using `strip' when the user | |
1668 | # run `make install-strip'. However `strip' might not be the right | |
1669 | # tool to use in cross-compilation environments, therefore Automake | |
1670 | # will honor the `STRIP' environment variable to overrule this program. | |
1671 | if test "$cross_compiling" != no; then | |
1672 | if test -n "$ac_tool_prefix"; then | |
1673 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1674 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1675 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1676 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1677 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
1678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1679 | else | |
1680 | if test -n "$STRIP"; then | |
1681 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1682 | else | |
1683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1684 | for as_dir in $PATH | |
1685 | do | |
1686 | IFS=$as_save_IFS | |
1687 | test -z "$as_dir" && as_dir=. | |
1688 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1689 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1690 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1691 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1692 | break 2 | |
1693 | fi | |
1694 | done | |
1695 | done | |
1696 | ||
1697 | fi | |
1698 | fi | |
1699 | STRIP=$ac_cv_prog_STRIP | |
1700 | if test -n "$STRIP"; then | |
1701 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
1702 | echo "${ECHO_T}$STRIP" >&6 | |
1703 | else | |
1704 | echo "$as_me:$LINENO: result: no" >&5 | |
1705 | echo "${ECHO_T}no" >&6 | |
1706 | fi | |
1707 | ||
1708 | fi | |
1709 | if test -z "$ac_cv_prog_STRIP"; then | |
1710 | ac_ct_STRIP=$STRIP | |
1711 | # Extract the first word of "strip", so it can be a program name with args. | |
1712 | set dummy strip; ac_word=$2 | |
1713 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1714 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1715 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1717 | else | |
1718 | if test -n "$ac_ct_STRIP"; then | |
1719 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1720 | else | |
1721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1722 | for as_dir in $PATH | |
1723 | do | |
1724 | IFS=$as_save_IFS | |
1725 | test -z "$as_dir" && as_dir=. | |
1726 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1727 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1728 | ac_cv_prog_ac_ct_STRIP="strip" | |
1729 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1730 | break 2 | |
1731 | fi | |
1732 | done | |
1733 | done | |
1734 | ||
1735 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
1736 | fi | |
1737 | fi | |
1738 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
1739 | if test -n "$ac_ct_STRIP"; then | |
1740 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
1741 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
1742 | else | |
1743 | echo "$as_me:$LINENO: result: no" >&5 | |
1744 | echo "${ECHO_T}no" >&6 | |
1745 | fi | |
1746 | ||
1747 | STRIP=$ac_ct_STRIP | |
1748 | else | |
1749 | STRIP="$ac_cv_prog_STRIP" | |
1750 | fi | |
1751 | ||
1752 | fi | |
1753 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
1754 | ||
1755 | # We need awk for the "check" target. The system "awk" is bad on | |
1756 | # some platforms. | |
1757 | ||
1758 | ||
1759 | ||
1760 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
1761 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
1762 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
1763 | if test "${enable_maintainer_mode+set}" = set; then | |
1764 | enableval="$enable_maintainer_mode" | |
1765 | USE_MAINTAINER_MODE=$enableval | |
1766 | else | |
1767 | USE_MAINTAINER_MODE=no | |
1768 | fi; | |
1769 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1770 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
1771 | ||
72826a5b | 1772 | |
f6100b6f RC |
1773 | if test $USE_MAINTAINER_MODE = yes; then |
1774 | MAINTAINER_MODE_TRUE= | |
1775 | MAINTAINER_MODE_FALSE='#' | |
1776 | else | |
1777 | MAINTAINER_MODE_TRUE='#' | |
1778 | MAINTAINER_MODE_FALSE= | |
1779 | fi | |
1780 | ||
1781 | MAINT=$MAINTAINER_MODE_TRUE | |
1782 | ||
1783 | ||
1784 | ||
1785 | ||
1786 | ac_ext=cc | |
1787 | ac_cpp='$CXXCPP $CPPFLAGS' | |
1788 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1789 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1790 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
72826a5b | 1791 | |
db04fc41 RC |
1792 | ac_ext=cc |
1793 | ac_cpp='$CXXCPP $CPPFLAGS' | |
1794 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1795 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1796 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1797 | if test -n "$ac_tool_prefix"; then | |
1798 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
1799 | do | |
1800 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1801 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1802 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1803 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1804 | if test "${ac_cv_prog_CXX+set}" = set; then | |
1805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
739457f4 | 1806 | else |
db04fc41 RC |
1807 | if test -n "$CXX"; then |
1808 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
739457f4 | 1809 | else |
db04fc41 RC |
1810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1811 | for as_dir in $PATH | |
1812 | do | |
1813 | IFS=$as_save_IFS | |
1814 | test -z "$as_dir" && as_dir=. | |
1815 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1816 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1817 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
1818 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1819 | break 2 | |
1820 | fi | |
1821 | done | |
1822 | done | |
1823 | ||
739457f4 CF |
1824 | fi |
1825 | fi | |
db04fc41 RC |
1826 | CXX=$ac_cv_prog_CXX |
1827 | if test -n "$CXX"; then | |
1828 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
1829 | echo "${ECHO_T}$CXX" >&6 | |
739457f4 | 1830 | else |
db04fc41 RC |
1831 | echo "$as_me:$LINENO: result: no" >&5 |
1832 | echo "${ECHO_T}no" >&6 | |
739457f4 CF |
1833 | fi |
1834 | ||
db04fc41 | 1835 | test -n "$CXX" && break |
739457f4 | 1836 | done |
739457f4 | 1837 | fi |
db04fc41 RC |
1838 | if test -z "$CXX"; then |
1839 | ac_ct_CXX=$CXX | |
1840 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
1841 | do | |
1842 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1843 | set dummy $ac_prog; ac_word=$2 | |
1844 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1845 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1846 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
1847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1848 | else | |
1849 | if test -n "$ac_ct_CXX"; then | |
1850 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
1851 | else | |
1852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1853 | for as_dir in $PATH | |
1854 | do | |
1855 | IFS=$as_save_IFS | |
1856 | test -z "$as_dir" && as_dir=. | |
1857 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1858 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1859 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
1860 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1861 | break 2 | |
1862 | fi | |
1863 | done | |
1864 | done | |
1865 | ||
739457f4 CF |
1866 | fi |
1867 | fi | |
db04fc41 RC |
1868 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
1869 | if test -n "$ac_ct_CXX"; then | |
1870 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
1871 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
739457f4 | 1872 | else |
db04fc41 RC |
1873 | echo "$as_me:$LINENO: result: no" >&5 |
1874 | echo "${ECHO_T}no" >&6 | |
739457f4 CF |
1875 | fi |
1876 | ||
db04fc41 RC |
1877 | test -n "$ac_ct_CXX" && break |
1878 | done | |
1879 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
1880 | ||
1881 | CXX=$ac_ct_CXX | |
1882 | fi | |
1883 | ||
1884 | ||
1885 | # Provide some information about the compiler. | |
1886 | echo "$as_me:$LINENO:" \ | |
1887 | "checking for C++ compiler version" >&5 | |
1888 | ac_compiler=`set X $ac_compile; echo $2` | |
1889 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1890 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1891 | ac_status=$? | |
1892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1893 | (exit $ac_status); } | |
1894 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1895 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1896 | ac_status=$? | |
1897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1898 | (exit $ac_status); } | |
1899 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1900 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1901 | ac_status=$? | |
1902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1903 | (exit $ac_status); } | |
1904 | ||
1905 | cat >conftest.$ac_ext <<_ACEOF | |
1906 | #line $LINENO "configure" | |
1907 | #include "confdefs.h" | |
1908 | ||
1909 | #ifdef F77_DUMMY_MAIN | |
1910 | # ifdef __cplusplus | |
1911 | extern "C" | |
1912 | # endif | |
1913 | int F77_DUMMY_MAIN() { return 1; } | |
739457f4 | 1914 | #endif |
db04fc41 RC |
1915 | int |
1916 | main () | |
1917 | { | |
1918 | ||
1919 | ; | |
1920 | return 0; | |
1921 | } | |
1922 | _ACEOF | |
1923 | ac_clean_files_save=$ac_clean_files | |
1924 | ac_clean_files="$ac_clean_files a.out a.exe" | |
1925 | # Try to create an executable without -o first, disregard a.out. | |
1926 | # It will help us diagnose broken compilers, and finding out an intuition | |
1927 | # of exeext. | |
1928 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 | |
1929 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 | |
1930 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1931 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1932 | (eval $ac_link_default) 2>&5 | |
1933 | ac_status=$? | |
1934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1935 | (exit $ac_status); }; then | |
1936 | # Find the output, starting from the most likely. This scheme is | |
1937 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1938 | # resort. | |
1939 | ||
1940 | # Be careful to initialize this variable, since it used to be cached. | |
1941 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1942 | ac_cv_exeext= | |
1943 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; | |
1944 | ls a.out conftest 2>/dev/null; | |
1945 | ls a.* conftest.* 2>/dev/null`; do | |
1946 | case $ac_file in | |
1947 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; | |
1948 | a.out ) # We found the default executable, but exeext='' is most | |
1949 | # certainly right. | |
1950 | break;; | |
1951 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1952 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | |
1953 | export ac_cv_exeext | |
1954 | break;; | |
1955 | * ) break;; | |
1956 | esac | |
1957 | done | |
739457f4 | 1958 | else |
db04fc41 RC |
1959 | echo "$as_me: failed program was:" >&5 |
1960 | cat conftest.$ac_ext >&5 | |
1961 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5 | |
1962 | echo "$as_me: error: C++ compiler cannot create executables" >&2;} | |
1963 | { (exit 77); exit 77; }; } | |
1964 | fi | |
1965 | ||
1966 | ac_exeext=$ac_cv_exeext | |
1967 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1968 | echo "${ECHO_T}$ac_file" >&6 | |
1969 | ||
1970 | # Check the compiler produces executables we can run. If not, either | |
1971 | # the compiler is broken, or we cross compile. | |
1972 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 | |
1973 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 | |
1974 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1975 | # If not cross compiling, check that we can run a simple program. | |
1976 | if test "$cross_compiling" != yes; then | |
1977 | if { ac_try='./$ac_file' | |
1978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1979 | (eval $ac_try) 2>&5 | |
1980 | ac_status=$? | |
1981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1982 | (exit $ac_status); }; }; then | |
1983 | cross_compiling=no | |
1984 | else | |
1985 | if test "$cross_compiling" = maybe; then | |
1986 | cross_compiling=yes | |
1987 | else | |
1988 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. | |
1989 | If you meant to cross compile, use \`--host'." >&5 | |
1990 | echo "$as_me: error: cannot run C++ compiled programs. | |
1991 | If you meant to cross compile, use \`--host'." >&2;} | |
1992 | { (exit 1); exit 1; }; } | |
1993 | fi | |
1994 | fi | |
739457f4 | 1995 | fi |
db04fc41 RC |
1996 | echo "$as_me:$LINENO: result: yes" >&5 |
1997 | echo "${ECHO_T}yes" >&6 | |
1998 | ||
1999 | rm -f a.out a.exe conftest$ac_cv_exeext | |
2000 | ac_clean_files=$ac_clean_files_save | |
2001 | # Check the compiler produces executables we can run. If not, either | |
2002 | # the compiler is broken, or we cross compile. | |
2003 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2004 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2005 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2006 | echo "${ECHO_T}$cross_compiling" >&6 | |
2007 | ||
2008 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2009 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2010 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2011 | (eval $ac_link) 2>&5 | |
2012 | ac_status=$? | |
2013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2014 | (exit $ac_status); }; then | |
2015 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2016 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2017 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2018 | # `rm'. | |
2019 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
2020 | case $ac_file in | |
2021 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
2022 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2023 | export ac_cv_exeext | |
2024 | break;; | |
2025 | * ) break;; | |
2026 | esac | |
2027 | done | |
2028 | else | |
2029 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 | |
2030 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} | |
2031 | { (exit 1); exit 1; }; } | |
739457f4 CF |
2032 | fi |
2033 | ||
db04fc41 RC |
2034 | rm -f conftest$ac_cv_exeext |
2035 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2036 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
739457f4 | 2037 | |
db04fc41 RC |
2038 | rm -f conftest.$ac_ext |
2039 | EXEEXT=$ac_cv_exeext | |
2040 | ac_exeext=$EXEEXT | |
2041 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2042 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2043 | if test "${ac_cv_objext+set}" = set; then | |
2044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
739457f4 | 2045 | else |
db04fc41 RC |
2046 | cat >conftest.$ac_ext <<_ACEOF |
2047 | #line $LINENO "configure" | |
2048 | #include "confdefs.h" | |
2049 | ||
2050 | #ifdef F77_DUMMY_MAIN | |
2051 | # ifdef __cplusplus | |
2052 | extern "C" | |
2053 | # endif | |
2054 | int F77_DUMMY_MAIN() { return 1; } | |
2055 | #endif | |
2056 | int | |
2057 | main () | |
2058 | { | |
2059 | ||
2060 | ; | |
2061 | return 0; | |
2062 | } | |
2063 | _ACEOF | |
2064 | rm -f conftest.o conftest.obj | |
2065 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2066 | (eval $ac_compile) 2>&5 | |
2067 | ac_status=$? | |
2068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2069 | (exit $ac_status); }; then | |
2070 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2071 | case $ac_file in | |
2072 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
2073 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2074 | break;; | |
2075 | esac | |
2076 | done | |
739457f4 | 2077 | else |
db04fc41 RC |
2078 | echo "$as_me: failed program was:" >&5 |
2079 | cat conftest.$ac_ext >&5 | |
2080 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 | |
2081 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} | |
2082 | { (exit 1); exit 1; }; } | |
739457f4 | 2083 | fi |
739457f4 | 2084 | |
db04fc41 | 2085 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
739457f4 | 2086 | fi |
db04fc41 RC |
2087 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2088 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2089 | OBJEXT=$ac_cv_objext | |
2090 | ac_objext=$OBJEXT | |
2091 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
2092 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
2093 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
2094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2095 | else | |
2096 | cat >conftest.$ac_ext <<_ACEOF | |
2097 | #line $LINENO "configure" | |
2098 | #include "confdefs.h" | |
739457f4 | 2099 | |
db04fc41 RC |
2100 | #ifdef F77_DUMMY_MAIN |
2101 | # ifdef __cplusplus | |
2102 | extern "C" | |
2103 | # endif | |
2104 | int F77_DUMMY_MAIN() { return 1; } | |
2105 | #endif | |
2106 | int | |
2107 | main () | |
2108 | { | |
2109 | #ifndef __GNUC__ | |
2110 | choke me | |
2111 | #endif | |
2112 | ||
2113 | ; | |
2114 | return 0; | |
2115 | } | |
2116 | _ACEOF | |
2117 | rm -f conftest.$ac_objext | |
2118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2119 | (eval $ac_compile) 2>&5 | |
2120 | ac_status=$? | |
2121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2122 | (exit $ac_status); } && | |
2123 | { ac_try='test -s conftest.$ac_objext' | |
2124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2125 | (eval $ac_try) 2>&5 | |
2126 | ac_status=$? | |
2127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2128 | (exit $ac_status); }; }; then | |
2129 | ac_compiler_gnu=yes | |
2130 | else | |
2131 | echo "$as_me: failed program was:" >&5 | |
2132 | cat conftest.$ac_ext >&5 | |
2133 | ac_compiler_gnu=no | |
2134 | fi | |
2135 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2136 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
2137 | ||
2138 | fi | |
2139 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
2140 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
2141 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
2142 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
2143 | ac_save_CXXFLAGS=$CXXFLAGS | |
2144 | CXXFLAGS="-g" | |
2145 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
2146 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
2147 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
2148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2149 | else | |
2150 | cat >conftest.$ac_ext <<_ACEOF | |
2151 | #line $LINENO "configure" | |
2152 | #include "confdefs.h" | |
2153 | ||
2154 | #ifdef F77_DUMMY_MAIN | |
2155 | # ifdef __cplusplus | |
2156 | extern "C" | |
2157 | # endif | |
2158 | int F77_DUMMY_MAIN() { return 1; } | |
2159 | #endif | |
2160 | int | |
2161 | main () | |
2162 | { | |
2163 | ||
2164 | ; | |
2165 | return 0; | |
2166 | } | |
2167 | _ACEOF | |
2168 | rm -f conftest.$ac_objext | |
2169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2170 | (eval $ac_compile) 2>&5 | |
2171 | ac_status=$? | |
2172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2173 | (exit $ac_status); } && | |
2174 | { ac_try='test -s conftest.$ac_objext' | |
2175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2176 | (eval $ac_try) 2>&5 | |
2177 | ac_status=$? | |
2178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2179 | (exit $ac_status); }; }; then | |
2180 | ac_cv_prog_cxx_g=yes | |
2181 | else | |
2182 | echo "$as_me: failed program was:" >&5 | |
2183 | cat conftest.$ac_ext >&5 | |
2184 | ac_cv_prog_cxx_g=no | |
2185 | fi | |
2186 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2187 | fi | |
2188 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
2189 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
2190 | if test "$ac_test_CXXFLAGS" = set; then | |
2191 | CXXFLAGS=$ac_save_CXXFLAGS | |
2192 | elif test $ac_cv_prog_cxx_g = yes; then | |
2193 | if test "$GXX" = yes; then | |
2194 | CXXFLAGS="-g -O2" | |
739457f4 | 2195 | else |
db04fc41 | 2196 | CXXFLAGS="-g" |
739457f4 CF |
2197 | fi |
2198 | else | |
db04fc41 RC |
2199 | if test "$GXX" = yes; then |
2200 | CXXFLAGS="-O2" | |
2201 | else | |
2202 | CXXFLAGS= | |
2203 | fi | |
2204 | fi | |
2205 | for ac_declaration in \ | |
2206 | ''\ | |
2207 | '#include <stdlib.h>' \ | |
2208 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2209 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2210 | 'extern "C" void exit (int) throw ();' \ | |
2211 | 'extern "C" void exit (int);' \ | |
2212 | 'void exit (int);' | |
2213 | do | |
2214 | cat >conftest.$ac_ext <<_ACEOF | |
2215 | #line $LINENO "configure" | |
2216 | #include "confdefs.h" | |
2217 | #include <stdlib.h> | |
2218 | $ac_declaration | |
2219 | #ifdef F77_DUMMY_MAIN | |
2220 | # ifdef __cplusplus | |
2221 | extern "C" | |
2222 | # endif | |
2223 | int F77_DUMMY_MAIN() { return 1; } | |
2224 | #endif | |
2225 | int | |
2226 | main () | |
2227 | { | |
2228 | exit (42); | |
2229 | ; | |
2230 | return 0; | |
2231 | } | |
2232 | _ACEOF | |
2233 | rm -f conftest.$ac_objext | |
2234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2235 | (eval $ac_compile) 2>&5 | |
2236 | ac_status=$? | |
2237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2238 | (exit $ac_status); } && | |
2239 | { ac_try='test -s conftest.$ac_objext' | |
2240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2241 | (eval $ac_try) 2>&5 | |
2242 | ac_status=$? | |
2243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2244 | (exit $ac_status); }; }; then | |
2245 | : | |
2246 | else | |
2247 | echo "$as_me: failed program was:" >&5 | |
2248 | cat conftest.$ac_ext >&5 | |
2249 | continue | |
2250 | fi | |
2251 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2252 | cat >conftest.$ac_ext <<_ACEOF | |
2253 | #line $LINENO "configure" | |
2254 | #include "confdefs.h" | |
2255 | $ac_declaration | |
2256 | #ifdef F77_DUMMY_MAIN | |
2257 | # ifdef __cplusplus | |
2258 | extern "C" | |
2259 | # endif | |
2260 | int F77_DUMMY_MAIN() { return 1; } | |
2261 | #endif | |
2262 | int | |
2263 | main () | |
2264 | { | |
2265 | exit (42); | |
2266 | ; | |
2267 | return 0; | |
2268 | } | |
2269 | _ACEOF | |
2270 | rm -f conftest.$ac_objext | |
2271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2272 | (eval $ac_compile) 2>&5 | |
2273 | ac_status=$? | |
2274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2275 | (exit $ac_status); } && | |
2276 | { ac_try='test -s conftest.$ac_objext' | |
2277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2278 | (eval $ac_try) 2>&5 | |
2279 | ac_status=$? | |
2280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2281 | (exit $ac_status); }; }; then | |
2282 | break | |
2283 | else | |
2284 | echo "$as_me: failed program was:" >&5 | |
2285 | cat conftest.$ac_ext >&5 | |
2286 | fi | |
2287 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2288 | done | |
2289 | rm -f conftest* | |
2290 | if test -n "$ac_declaration"; then | |
2291 | echo '#ifdef __cplusplus' >>confdefs.h | |
2292 | echo $ac_declaration >>confdefs.h | |
2293 | echo '#endif' >>confdefs.h | |
739457f4 CF |
2294 | fi |
2295 | ||
f6100b6f RC |
2296 | ac_ext=cc |
2297 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2298 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2299 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2300 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
2301 | rm -f .deps 2>/dev/null | |
2302 | mkdir .deps 2>/dev/null | |
2303 | if test -d .deps; then | |
2304 | DEPDIR=.deps | |
2305 | else | |
2306 | # MS-DOS does not allow filenames that begin with a dot. | |
2307 | DEPDIR=_deps | |
2308 | fi | |
2309 | rmdir .deps 2>/dev/null | |
2310 | ||
2311 | ||
2312 | ac_config_commands="$ac_config_commands depfiles" | |
2313 | ||
2314 | ||
2315 | am_make=${MAKE-make} | |
2316 | cat > confinc << 'END' | |
2317 | doit: | |
2318 | @echo done | |
2319 | END | |
2320 | # If we don't find an include directive, just comment out the code. | |
2321 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2322 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2323 | am__include="#" | |
2324 | am__quote= | |
2325 | _am_result=none | |
2326 | # First try GNU make style include. | |
2327 | echo "include confinc" > confmf | |
2328 | # We grep out `Entering directory' and `Leaving directory' | |
2329 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2330 | # In particular we don't look at `^make:' because GNU make might | |
2331 | # be invoked under some other name (usually "gmake"), in which | |
2332 | # case it prints its new name instead of `make'. | |
2333 | if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then | |
2334 | am__include=include | |
2335 | am__quote= | |
2336 | _am_result=GNU | |
2337 | fi | |
2338 | # Now try BSD make style include. | |
2339 | if test "$am__include" = "#"; then | |
2340 | echo '.include "confinc"' > confmf | |
2341 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2342 | am__include=.include | |
2343 | am__quote="\"" | |
2344 | _am_result=BSD | |
2345 | fi | |
2346 | fi | |
2347 | ||
2348 | ||
2349 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2350 | echo "${ECHO_T}$_am_result" >&6 | |
2351 | rm -f confinc confmf | |
2352 | ||
2353 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2354 | if test "${enable_dependency_tracking+set}" = set; then | |
2355 | enableval="$enable_dependency_tracking" | |
2356 | ||
2357 | fi; | |
2358 | if test "x$enable_dependency_tracking" != xno; then | |
2359 | am_depcomp="$ac_aux_dir/depcomp" | |
2360 | AMDEPBACKSLASH='\' | |
2361 | fi | |
2362 | ||
2363 | ||
2364 | if test "x$enable_dependency_tracking" != xno; then | |
2365 | AMDEP_TRUE= | |
2366 | AMDEP_FALSE='#' | |
2367 | else | |
2368 | AMDEP_TRUE='#' | |
2369 | AMDEP_FALSE= | |
2370 | fi | |
db04fc41 | 2371 | |
f6100b6f RC |
2372 | |
2373 | ||
2374 | ||
2375 | depcc="$CXX" am_compiler_list= | |
2376 | ||
2377 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
2378 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2379 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
2380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2381 | else | |
2382 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
2383 | # We make a subdir and do the tests there. Otherwise we can end up | |
2384 | # making bogus files that we don't know about and never remove. For | |
2385 | # instance it was reported that on HP-UX the gcc test will end up | |
2386 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2387 | # in D'. | |
2388 | mkdir conftest.dir | |
2389 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2390 | # using a relative directory. | |
2391 | cp "$am_depcomp" conftest.dir | |
2392 | cd conftest.dir | |
2393 | ||
2394 | am_cv_CXX_dependencies_compiler_type=none | |
2395 | if test "$am_compiler_list" = ""; then | |
2396 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2397 | fi | |
2398 | for depmode in $am_compiler_list; do | |
2399 | # We need to recreate these files for each test, as the compiler may | |
2400 | # overwrite some of them when testing with obscure command lines. | |
2401 | # This happens at least with the AIX C compiler. | |
2402 | echo '#include "conftest.h"' > conftest.c | |
2403 | echo 'int i;' > conftest.h | |
2404 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf | |
2405 | ||
2406 | case $depmode in | |
2407 | nosideeffect) | |
2408 | # after this tag, mechanisms are not by side-effect, so they'll | |
2409 | # only be used when explicitly requested | |
2410 | if test "x$enable_dependency_tracking" = xyes; then | |
2411 | continue | |
2412 | else | |
2413 | break | |
2414 | fi | |
2415 | ;; | |
2416 | none) break ;; | |
2417 | esac | |
2418 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
2419 | # mode. It turns out that the SunPro C++ compiler does not properly | |
2420 | # handle `-M -o', and we need to detect this. | |
2421 | if depmode=$depmode \ | |
2422 | source=conftest.c object=conftest.o \ | |
2423 | depfile=conftest.Po tmpdepfile=conftest.TPo \ | |
2424 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && | |
2425 | grep conftest.h conftest.Po > /dev/null 2>&1 && | |
2426 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
2427 | am_cv_CXX_dependencies_compiler_type=$depmode | |
2428 | break | |
2429 | fi | |
2430 | done | |
2431 | ||
2432 | cd .. | |
2433 | rm -rf conftest.dir | |
2434 | else | |
2435 | am_cv_CXX_dependencies_compiler_type=none | |
2436 | fi | |
2437 | ||
2438 | fi | |
2439 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
2440 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 | |
2441 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
2442 | ||
2443 | ||
2444 | ac_ext=c | |
2445 | ac_cpp='$CPP $CPPFLAGS' | |
2446 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2447 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2448 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2449 | if test -n "$ac_tool_prefix"; then | |
2450 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
db04fc41 RC |
2451 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2452 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2453 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2454 | if test "${ac_cv_prog_CC+set}" = set; then | |
2455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2456 | else | |
2457 | if test -n "$CC"; then | |
2458 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
72826a5b | 2459 | else |
db04fc41 RC |
2460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2461 | for as_dir in $PATH | |
2462 | do | |
2463 | IFS=$as_save_IFS | |
2464 | test -z "$as_dir" && as_dir=. | |
2465 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2466 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2467 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2468 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2469 | break 2 | |
2470 | fi | |
2471 | done | |
2472 | done | |
2473 | ||
2474 | fi | |
2475 | fi | |
2476 | CC=$ac_cv_prog_CC | |
2477 | if test -n "$CC"; then | |
2478 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2479 | echo "${ECHO_T}$CC" >&6 | |
2480 | else | |
2481 | echo "$as_me:$LINENO: result: no" >&5 | |
2482 | echo "${ECHO_T}no" >&6 | |
739457f4 | 2483 | fi |
739457f4 | 2484 | |
db04fc41 RC |
2485 | fi |
2486 | if test -z "$ac_cv_prog_CC"; then | |
2487 | ac_ct_CC=$CC | |
2488 | # Extract the first word of "gcc", so it can be a program name with args. | |
2489 | set dummy gcc; ac_word=$2 | |
2490 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2491 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2492 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
72826a5b | 2494 | else |
db04fc41 RC |
2495 | if test -n "$ac_ct_CC"; then |
2496 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
72826a5b | 2497 | else |
db04fc41 RC |
2498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2499 | for as_dir in $PATH | |
2500 | do | |
2501 | IFS=$as_save_IFS | |
2502 | test -z "$as_dir" && as_dir=. | |
2503 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2504 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2505 | ac_cv_prog_ac_ct_CC="gcc" | |
2506 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2507 | break 2 | |
2508 | fi | |
2509 | done | |
2510 | done | |
2511 | ||
72826a5b CF |
2512 | fi |
2513 | fi | |
db04fc41 RC |
2514 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2515 | if test -n "$ac_ct_CC"; then | |
2516 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2517 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
72826a5b | 2518 | else |
db04fc41 RC |
2519 | echo "$as_me:$LINENO: result: no" >&5 |
2520 | echo "${ECHO_T}no" >&6 | |
739457f4 CF |
2521 | fi |
2522 | ||
db04fc41 RC |
2523 | CC=$ac_ct_CC |
2524 | else | |
2525 | CC="$ac_cv_prog_CC" | |
2526 | fi | |
739457f4 | 2527 | |
db04fc41 RC |
2528 | if test -z "$CC"; then |
2529 | if test -n "$ac_tool_prefix"; then | |
2530 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2531 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2532 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2533 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2534 | if test "${ac_cv_prog_CC+set}" = set; then | |
2535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
72826a5b | 2536 | else |
db04fc41 RC |
2537 | if test -n "$CC"; then |
2538 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
72826a5b | 2539 | else |
db04fc41 RC |
2540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2541 | for as_dir in $PATH | |
2542 | do | |
2543 | IFS=$as_save_IFS | |
2544 | test -z "$as_dir" && as_dir=. | |
2545 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2546 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2547 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2548 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2549 | break 2 | |
2550 | fi | |
2551 | done | |
2552 | done | |
2553 | ||
72826a5b CF |
2554 | fi |
2555 | fi | |
db04fc41 RC |
2556 | CC=$ac_cv_prog_CC |
2557 | if test -n "$CC"; then | |
2558 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2559 | echo "${ECHO_T}$CC" >&6 | |
72826a5b | 2560 | else |
db04fc41 RC |
2561 | echo "$as_me:$LINENO: result: no" >&5 |
2562 | echo "${ECHO_T}no" >&6 | |
72826a5b | 2563 | fi |
739457f4 | 2564 | |
db04fc41 RC |
2565 | fi |
2566 | if test -z "$ac_cv_prog_CC"; then | |
2567 | ac_ct_CC=$CC | |
2568 | # Extract the first word of "cc", so it can be a program name with args. | |
2569 | set dummy cc; ac_word=$2 | |
2570 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2571 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2572 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2574 | else | |
2575 | if test -n "$ac_ct_CC"; then | |
2576 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
72826a5b | 2577 | else |
db04fc41 RC |
2578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2579 | for as_dir in $PATH | |
2580 | do | |
2581 | IFS=$as_save_IFS | |
2582 | test -z "$as_dir" && as_dir=. | |
2583 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2584 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2585 | ac_cv_prog_ac_ct_CC="cc" | |
2586 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2587 | break 2 | |
2588 | fi | |
2589 | done | |
2590 | done | |
2591 | ||
72826a5b | 2592 | fi |
db04fc41 RC |
2593 | fi |
2594 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2595 | if test -n "$ac_ct_CC"; then | |
2596 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2597 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2598 | else | |
2599 | echo "$as_me:$LINENO: result: no" >&5 | |
2600 | echo "${ECHO_T}no" >&6 | |
72826a5b | 2601 | fi |
739457f4 | 2602 | |
db04fc41 | 2603 | CC=$ac_ct_CC |
72826a5b | 2604 | else |
db04fc41 RC |
2605 | CC="$ac_cv_prog_CC" |
2606 | fi | |
2607 | ||
2608 | fi | |
2609 | if test -z "$CC"; then | |
2610 | # Extract the first word of "cc", so it can be a program name with args. | |
2611 | set dummy cc; ac_word=$2 | |
2612 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2613 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2614 | if test "${ac_cv_prog_CC+set}" = set; then | |
2615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
72826a5b | 2616 | else |
db04fc41 RC |
2617 | if test -n "$CC"; then |
2618 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2619 | else | |
2620 | ac_prog_rejected=no | |
2621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2622 | for as_dir in $PATH | |
2623 | do | |
2624 | IFS=$as_save_IFS | |
2625 | test -z "$as_dir" && as_dir=. | |
2626 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2627 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2628 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2629 | ac_prog_rejected=yes | |
2630 | continue | |
2631 | fi | |
2632 | ac_cv_prog_CC="cc" | |
2633 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2634 | break 2 | |
2635 | fi | |
2636 | done | |
2637 | done | |
2638 | ||
2639 | if test $ac_prog_rejected = yes; then | |
2640 | # We found a bogon in the path, so make sure we never use it. | |
2641 | set dummy $ac_cv_prog_CC | |
2642 | shift | |
2643 | if test $# != 0; then | |
2644 | # We chose a different compiler from the bogus one. | |
2645 | # However, it has the same basename, so the bogon will be chosen | |
2646 | # first if we set CC to just the basename; use the full file name. | |
2647 | shift | |
2648 | set dummy "$as_dir/$ac_word" ${1+"$@"} | |
2649 | shift | |
2650 | ac_cv_prog_CC="$@" | |
2651 | fi | |
72826a5b CF |
2652 | fi |
2653 | fi | |
db04fc41 RC |
2654 | fi |
2655 | CC=$ac_cv_prog_CC | |
2656 | if test -n "$CC"; then | |
2657 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2658 | echo "${ECHO_T}$CC" >&6 | |
72826a5b | 2659 | else |
db04fc41 RC |
2660 | echo "$as_me:$LINENO: result: no" >&5 |
2661 | echo "${ECHO_T}no" >&6 | |
72826a5b | 2662 | fi |
739457f4 | 2663 | |
72826a5b | 2664 | fi |
db04fc41 RC |
2665 | if test -z "$CC"; then |
2666 | if test -n "$ac_tool_prefix"; then | |
2667 | for ac_prog in cl | |
2668 | do | |
2669 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2670 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2671 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2672 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2673 | if test "${ac_cv_prog_CC+set}" = set; then | |
2674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2675 | else | |
2676 | if test -n "$CC"; then | |
2677 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2678 | else | |
2679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2680 | for as_dir in $PATH | |
2681 | do | |
2682 | IFS=$as_save_IFS | |
2683 | test -z "$as_dir" && as_dir=. | |
2684 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2685 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2686 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2687 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2688 | break 2 | |
2689 | fi | |
2690 | done | |
2691 | done | |
739457f4 | 2692 | |
db04fc41 RC |
2693 | fi |
2694 | fi | |
2695 | CC=$ac_cv_prog_CC | |
2696 | if test -n "$CC"; then | |
2697 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2698 | echo "${ECHO_T}$CC" >&6 | |
2699 | else | |
2700 | echo "$as_me:$LINENO: result: no" >&5 | |
2701 | echo "${ECHO_T}no" >&6 | |
2702 | fi | |
739457f4 | 2703 | |
db04fc41 RC |
2704 | test -n "$CC" && break |
2705 | done | |
2706 | fi | |
2707 | if test -z "$CC"; then | |
2708 | ac_ct_CC=$CC | |
2709 | for ac_prog in cl | |
2710 | do | |
2711 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2712 | set dummy $ac_prog; ac_word=$2 | |
2713 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2714 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2715 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2717 | else | |
2718 | if test -n "$ac_ct_CC"; then | |
2719 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2720 | else | |
2721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2722 | for as_dir in $PATH | |
2723 | do | |
2724 | IFS=$as_save_IFS | |
2725 | test -z "$as_dir" && as_dir=. | |
2726 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2727 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2728 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2729 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2730 | break 2 | |
2731 | fi | |
2732 | done | |
2733 | done | |
739457f4 | 2734 | |
db04fc41 RC |
2735 | fi |
2736 | fi | |
2737 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2738 | if test -n "$ac_ct_CC"; then | |
2739 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2740 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
739457f4 | 2741 | else |
db04fc41 RC |
2742 | echo "$as_me:$LINENO: result: no" >&5 |
2743 | echo "${ECHO_T}no" >&6 | |
2744 | fi | |
2745 | ||
2746 | test -n "$ac_ct_CC" && break | |
2747 | done | |
2748 | ||
2749 | CC=$ac_ct_CC | |
739457f4 | 2750 | fi |
739457f4 | 2751 | |
db04fc41 RC |
2752 | fi |
2753 | ||
2754 | ||
2755 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 | |
2756 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} | |
2757 | { (exit 1); exit 1; }; } | |
739457f4 | 2758 | |
db04fc41 RC |
2759 | # Provide some information about the compiler. |
2760 | echo "$as_me:$LINENO:" \ | |
2761 | "checking for C compiler version" >&5 | |
2762 | ac_compiler=`set X $ac_compile; echo $2` | |
2763 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2764 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2765 | ac_status=$? | |
2766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2767 | (exit $ac_status); } | |
2768 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2769 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2770 | ac_status=$? | |
2771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2772 | (exit $ac_status); } | |
2773 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2774 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2775 | ac_status=$? | |
2776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2777 | (exit $ac_status); } | |
739457f4 | 2778 | |
db04fc41 RC |
2779 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2780 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2781 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2783 | else | |
2784 | cat >conftest.$ac_ext <<_ACEOF | |
2785 | #line $LINENO "configure" | |
2786 | #include "confdefs.h" | |
2787 | ||
2788 | #ifdef F77_DUMMY_MAIN | |
2789 | # ifdef __cplusplus | |
2790 | extern "C" | |
2791 | # endif | |
2792 | int F77_DUMMY_MAIN() { return 1; } | |
2793 | #endif | |
2794 | int | |
2795 | main () | |
2796 | { | |
2797 | #ifndef __GNUC__ | |
2798 | choke me | |
2799 | #endif | |
2800 | ||
2801 | ; | |
2802 | return 0; | |
2803 | } | |
2804 | _ACEOF | |
2805 | rm -f conftest.$ac_objext | |
2806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2807 | (eval $ac_compile) 2>&5 | |
2808 | ac_status=$? | |
2809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2810 | (exit $ac_status); } && | |
2811 | { ac_try='test -s conftest.$ac_objext' | |
2812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2813 | (eval $ac_try) 2>&5 | |
2814 | ac_status=$? | |
2815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2816 | (exit $ac_status); }; }; then | |
2817 | ac_compiler_gnu=yes | |
2818 | else | |
2819 | echo "$as_me: failed program was:" >&5 | |
2820 | cat conftest.$ac_ext >&5 | |
2821 | ac_compiler_gnu=no | |
2822 | fi | |
2823 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2824 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2825 | ||
2826 | fi | |
2827 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2828 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2829 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2830 | ac_test_CFLAGS=${CFLAGS+set} | |
2831 | ac_save_CFLAGS=$CFLAGS | |
2832 | CFLAGS="-g" | |
2833 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2834 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2835 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2837 | else | |
2838 | cat >conftest.$ac_ext <<_ACEOF | |
2839 | #line $LINENO "configure" | |
2840 | #include "confdefs.h" | |
2841 | ||
2842 | #ifdef F77_DUMMY_MAIN | |
2843 | # ifdef __cplusplus | |
2844 | extern "C" | |
2845 | # endif | |
2846 | int F77_DUMMY_MAIN() { return 1; } | |
2847 | #endif | |
2848 | int | |
2849 | main () | |
2850 | { | |
2851 | ||
2852 | ; | |
2853 | return 0; | |
2854 | } | |
2855 | _ACEOF | |
2856 | rm -f conftest.$ac_objext | |
2857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2858 | (eval $ac_compile) 2>&5 | |
2859 | ac_status=$? | |
2860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2861 | (exit $ac_status); } && | |
2862 | { ac_try='test -s conftest.$ac_objext' | |
2863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2864 | (eval $ac_try) 2>&5 | |
2865 | ac_status=$? | |
2866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2867 | (exit $ac_status); }; }; then | |
2868 | ac_cv_prog_cc_g=yes | |
2869 | else | |
2870 | echo "$as_me: failed program was:" >&5 | |
2871 | cat conftest.$ac_ext >&5 | |
2872 | ac_cv_prog_cc_g=no | |
2873 | fi | |
2874 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2875 | fi | |
2876 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2877 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2878 | if test "$ac_test_CFLAGS" = set; then | |
2879 | CFLAGS=$ac_save_CFLAGS | |
2880 | elif test $ac_cv_prog_cc_g = yes; then | |
2881 | if test "$GCC" = yes; then | |
2882 | CFLAGS="-g -O2" | |
2883 | else | |
2884 | CFLAGS="-g" | |
739457f4 | 2885 | fi |
db04fc41 RC |
2886 | else |
2887 | if test "$GCC" = yes; then | |
2888 | CFLAGS="-O2" | |
739457f4 | 2889 | else |
db04fc41 RC |
2890 | CFLAGS= |
2891 | fi | |
2892 | fi | |
2893 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2894 | # in C++ we need to declare it. In case someone uses the same compiler | |
2895 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2896 | # the declaration of exit, since it's the most demanding environment. | |
2897 | cat >conftest.$ac_ext <<_ACEOF | |
2898 | #ifndef __cplusplus | |
2899 | choke me | |
2900 | #endif | |
2901 | _ACEOF | |
2902 | rm -f conftest.$ac_objext | |
2903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2904 | (eval $ac_compile) 2>&5 | |
2905 | ac_status=$? | |
2906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2907 | (exit $ac_status); } && | |
2908 | { ac_try='test -s conftest.$ac_objext' | |
2909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2910 | (eval $ac_try) 2>&5 | |
2911 | ac_status=$? | |
2912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2913 | (exit $ac_status); }; }; then | |
2914 | for ac_declaration in \ | |
2915 | ''\ | |
2916 | '#include <stdlib.h>' \ | |
2917 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2918 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2919 | 'extern "C" void exit (int) throw ();' \ | |
2920 | 'extern "C" void exit (int);' \ | |
2921 | 'void exit (int);' | |
2922 | do | |
2923 | cat >conftest.$ac_ext <<_ACEOF | |
2924 | #line $LINENO "configure" | |
2925 | #include "confdefs.h" | |
2926 | #include <stdlib.h> | |
2927 | $ac_declaration | |
2928 | #ifdef F77_DUMMY_MAIN | |
2929 | # ifdef __cplusplus | |
2930 | extern "C" | |
2931 | # endif | |
2932 | int F77_DUMMY_MAIN() { return 1; } | |
2933 | #endif | |
2934 | int | |
2935 | main () | |
2936 | { | |
2937 | exit (42); | |
2938 | ; | |
2939 | return 0; | |
2940 | } | |
2941 | _ACEOF | |
2942 | rm -f conftest.$ac_objext | |
2943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2944 | (eval $ac_compile) 2>&5 | |
2945 | ac_status=$? | |
2946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2947 | (exit $ac_status); } && | |
2948 | { ac_try='test -s conftest.$ac_objext' | |
2949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2950 | (eval $ac_try) 2>&5 | |
2951 | ac_status=$? | |
2952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2953 | (exit $ac_status); }; }; then | |
2954 | : | |
2955 | else | |
2956 | echo "$as_me: failed program was:" >&5 | |
2957 | cat conftest.$ac_ext >&5 | |
2958 | continue | |
2959 | fi | |
2960 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2961 | cat >conftest.$ac_ext <<_ACEOF | |
2962 | #line $LINENO "configure" | |
2963 | #include "confdefs.h" | |
2964 | $ac_declaration | |
2965 | #ifdef F77_DUMMY_MAIN | |
2966 | # ifdef __cplusplus | |
2967 | extern "C" | |
2968 | # endif | |
2969 | int F77_DUMMY_MAIN() { return 1; } | |
2970 | #endif | |
2971 | int | |
2972 | main () | |
2973 | { | |
2974 | exit (42); | |
2975 | ; | |
2976 | return 0; | |
2977 | } | |
2978 | _ACEOF | |
2979 | rm -f conftest.$ac_objext | |
2980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2981 | (eval $ac_compile) 2>&5 | |
2982 | ac_status=$? | |
2983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2984 | (exit $ac_status); } && | |
2985 | { ac_try='test -s conftest.$ac_objext' | |
2986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2987 | (eval $ac_try) 2>&5 | |
2988 | ac_status=$? | |
2989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2990 | (exit $ac_status); }; }; then | |
2991 | break | |
2992 | else | |
2993 | echo "$as_me: failed program was:" >&5 | |
2994 | cat conftest.$ac_ext >&5 | |
2995 | fi | |
2996 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2997 | done | |
2998 | rm -f conftest* | |
2999 | if test -n "$ac_declaration"; then | |
3000 | echo '#ifdef __cplusplus' >>confdefs.h | |
3001 | echo $ac_declaration >>confdefs.h | |
3002 | echo '#endif' >>confdefs.h | |
3003 | fi | |
3004 | ||
3005 | else | |
3006 | echo "$as_me: failed program was:" >&5 | |
3007 | cat conftest.$ac_ext >&5 | |
3008 | fi | |
3009 | rm -f conftest.$ac_objext conftest.$ac_ext | |
f6100b6f RC |
3010 | ac_ext=cc |
3011 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3012 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3013 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3014 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3015 | ||
3016 | depcc="$CC" am_compiler_list= | |
3017 | ||
3018 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3019 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3020 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3022 | else | |
3023 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3024 | # We make a subdir and do the tests there. Otherwise we can end up | |
3025 | # making bogus files that we don't know about and never remove. For | |
3026 | # instance it was reported that on HP-UX the gcc test will end up | |
3027 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3028 | # in D'. | |
3029 | mkdir conftest.dir | |
3030 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3031 | # using a relative directory. | |
3032 | cp "$am_depcomp" conftest.dir | |
3033 | cd conftest.dir | |
3034 | ||
3035 | am_cv_CC_dependencies_compiler_type=none | |
3036 | if test "$am_compiler_list" = ""; then | |
3037 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3038 | fi | |
3039 | for depmode in $am_compiler_list; do | |
3040 | # We need to recreate these files for each test, as the compiler may | |
3041 | # overwrite some of them when testing with obscure command lines. | |
3042 | # This happens at least with the AIX C compiler. | |
3043 | echo '#include "conftest.h"' > conftest.c | |
3044 | echo 'int i;' > conftest.h | |
3045 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf | |
3046 | ||
3047 | case $depmode in | |
3048 | nosideeffect) | |
3049 | # after this tag, mechanisms are not by side-effect, so they'll | |
3050 | # only be used when explicitly requested | |
3051 | if test "x$enable_dependency_tracking" = xyes; then | |
3052 | continue | |
3053 | else | |
3054 | break | |
3055 | fi | |
3056 | ;; | |
3057 | none) break ;; | |
3058 | esac | |
3059 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3060 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3061 | # handle `-M -o', and we need to detect this. | |
3062 | if depmode=$depmode \ | |
3063 | source=conftest.c object=conftest.o \ | |
3064 | depfile=conftest.Po tmpdepfile=conftest.TPo \ | |
3065 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && | |
3066 | grep conftest.h conftest.Po > /dev/null 2>&1 && | |
3067 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3068 | am_cv_CC_dependencies_compiler_type=$depmode | |
3069 | break | |
3070 | fi | |
3071 | done | |
3072 | ||
3073 | cd .. | |
3074 | rm -rf conftest.dir | |
3075 | else | |
3076 | am_cv_CC_dependencies_compiler_type=none | |
3077 | fi | |
3078 | ||
3079 | fi | |
3080 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3081 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3082 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3083 | ||
db04fc41 RC |
3084 | |
3085 | if test "x$CC" != xcc; then | |
3086 | echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 | |
3087 | echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6 | |
3088 | else | |
3089 | echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 | |
3090 | echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6 | |
3091 | fi | |
3092 | set dummy $CC; ac_cc=`echo $2 | | |
3093 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
3094 | if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then | |
3095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3096 | else | |
3097 | cat >conftest.$ac_ext <<_ACEOF | |
3098 | #line $LINENO "configure" | |
3099 | #include "confdefs.h" | |
3100 | ||
3101 | #ifdef F77_DUMMY_MAIN | |
3102 | # ifdef __cplusplus | |
3103 | extern "C" | |
3104 | # endif | |
3105 | int F77_DUMMY_MAIN() { return 1; } | |
3106 | #endif | |
3107 | int | |
3108 | main () | |
3109 | { | |
3110 | ||
3111 | ; | |
3112 | return 0; | |
3113 | } | |
3114 | _ACEOF | |
3115 | # Make sure it works both with $CC and with simple cc. | |
3116 | # We do the test twice because some compilers refuse to overwrite an | |
3117 | # existing .o file with -o, though they will create one. | |
3118 | ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5' | |
3119 | if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3120 | (eval $ac_try) 2>&5 | |
3121 | ac_status=$? | |
3122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3123 | (exit $ac_status); } && | |
3124 | test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3125 | (eval $ac_try) 2>&5 | |
3126 | ac_status=$? | |
3127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3128 | (exit $ac_status); }; | |
3129 | then | |
3130 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
3131 | if test "x$CC" != xcc; then | |
3132 | # Test first that cc exists at all. | |
3133 | if { ac_try='cc -c conftest.$ac_ext >&5' | |
3134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3135 | (eval $ac_try) 2>&5 | |
3136 | ac_status=$? | |
3137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3138 | (exit $ac_status); }; }; then | |
3139 | ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5' | |
3140 | if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3141 | (eval $ac_try) 2>&5 | |
3142 | ac_status=$? | |
3143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3144 | (exit $ac_status); } && | |
3145 | test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3146 | (eval $ac_try) 2>&5 | |
3147 | ac_status=$? | |
3148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3149 | (exit $ac_status); }; | |
3150 | then | |
3151 | # cc works too. | |
3152 | : | |
3153 | else | |
3154 | # cc exists but doesn't like -o. | |
3155 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
3156 | fi | |
3157 | fi | |
739457f4 | 3158 | fi |
db04fc41 RC |
3159 | else |
3160 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
739457f4 | 3161 | fi |
db04fc41 RC |
3162 | rm -f conftest* |
3163 | ||
3164 | fi | |
3165 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then | |
3166 | echo "$as_me:$LINENO: result: yes" >&5 | |
3167 | echo "${ECHO_T}yes" >&6 | |
3168 | else | |
3169 | echo "$as_me:$LINENO: result: no" >&5 | |
3170 | echo "${ECHO_T}no" >&6 | |
3171 | ||
3172 | cat >>confdefs.h <<\_ACEOF | |
3173 | #define NO_MINUS_C_MINUS_O 1 | |
3174 | _ACEOF | |
3175 | ||
3176 | fi | |
3177 | ||
f6100b6f RC |
3178 | # FIXME: we rely on the cache variable name because |
3179 | # there is no other way. | |
3180 | set dummy $CC | |
3181 | ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
3182 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then | |
3183 | # Losing compiler, so override with the script. | |
3184 | # FIXME: It is wrong to rewrite CC. | |
3185 | # But if we don't then we get into trouble of one sort or another. | |
3186 | # A longer-term fix would be to have automake use am__CC in this case, | |
3187 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3188 | CC="$am_aux_dir/compile $CC" | |
db04fc41 | 3189 | fi |
db04fc41 RC |
3190 | |
3191 | ||
f6100b6f | 3192 | for ac_prog in flex lex |
db04fc41 | 3193 | do |
f6100b6f RC |
3194 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3195 | set dummy $ac_prog; ac_word=$2 | |
db04fc41 RC |
3196 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3197 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
f6100b6f | 3198 | if test "${ac_cv_prog_LEX+set}" = set; then |
db04fc41 | 3199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
739457f4 | 3200 | else |
f6100b6f RC |
3201 | if test -n "$LEX"; then |
3202 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
739457f4 | 3203 | else |
db04fc41 RC |
3204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3205 | for as_dir in $PATH | |
3206 | do | |
3207 | IFS=$as_save_IFS | |
3208 | test -z "$as_dir" && as_dir=. | |
3209 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3210 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
f6100b6f | 3211 | ac_cv_prog_LEX="$ac_prog" |
db04fc41 RC |
3212 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3213 | break 2 | |
3214 | fi | |
3215 | done | |
3216 | done | |
3217 | ||
739457f4 CF |
3218 | fi |
3219 | fi | |
f6100b6f RC |
3220 | LEX=$ac_cv_prog_LEX |
3221 | if test -n "$LEX"; then | |
3222 | echo "$as_me:$LINENO: result: $LEX" >&5 | |
3223 | echo "${ECHO_T}$LEX" >&6 | |
739457f4 | 3224 | else |
db04fc41 RC |
3225 | echo "$as_me:$LINENO: result: no" >&5 |
3226 | echo "${ECHO_T}no" >&6 | |
739457f4 CF |
3227 | fi |
3228 | ||
f6100b6f | 3229 | test -n "$LEX" && break |
db04fc41 | 3230 | done |
f6100b6f | 3231 | test -n "$LEX" || LEX=":" |
db04fc41 | 3232 | |
f6100b6f RC |
3233 | if test -z "$LEXLIB" |
3234 | then | |
3235 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 | |
3236 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | |
3237 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | |
db04fc41 | 3238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
739457f4 | 3239 | else |
f6100b6f RC |
3240 | ac_check_lib_save_LIBS=$LIBS |
3241 | LIBS="-lfl $LIBS" | |
3242 | cat >conftest.$ac_ext <<_ACEOF | |
3243 | #line $LINENO "configure" | |
3244 | #include "confdefs.h" | |
db04fc41 | 3245 | |
f6100b6f RC |
3246 | /* Override any gcc2 internal prototype to avoid an error. */ |
3247 | #ifdef __cplusplus | |
3248 | extern "C" | |
3249 | #endif | |
3250 | /* We use char because int might match the return type of a gcc2 | |
3251 | builtin and then its argument prototype would still apply. */ | |
3252 | char yywrap (); | |
3253 | #ifdef F77_DUMMY_MAIN | |
3254 | # ifdef __cplusplus | |
3255 | extern "C" | |
3256 | # endif | |
3257 | int F77_DUMMY_MAIN() { return 1; } | |
3258 | #endif | |
3259 | int | |
3260 | main () | |
3261 | { | |
3262 | yywrap (); | |
3263 | ; | |
3264 | return 0; | |
3265 | } | |
3266 | _ACEOF | |
3267 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3269 | (eval $ac_link) 2>&5 | |
3270 | ac_status=$? | |
3271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3272 | (exit $ac_status); } && | |
3273 | { ac_try='test -s conftest$ac_exeext' | |
3274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3275 | (eval $ac_try) 2>&5 | |
3276 | ac_status=$? | |
3277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3278 | (exit $ac_status); }; }; then | |
3279 | ac_cv_lib_fl_yywrap=yes | |
739457f4 | 3280 | else |
f6100b6f RC |
3281 | echo "$as_me: failed program was:" >&5 |
3282 | cat conftest.$ac_ext >&5 | |
3283 | ac_cv_lib_fl_yywrap=no | |
739457f4 | 3284 | fi |
f6100b6f RC |
3285 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3286 | LIBS=$ac_check_lib_save_LIBS | |
db04fc41 | 3287 | fi |
f6100b6f RC |
3288 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
3289 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | |
3290 | if test $ac_cv_lib_fl_yywrap = yes; then | |
3291 | LEXLIB="-lfl" | |
739457f4 | 3292 | else |
f6100b6f RC |
3293 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
3294 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | |
3295 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | |
3296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
739457f4 | 3297 | else |
f6100b6f RC |
3298 | ac_check_lib_save_LIBS=$LIBS |
3299 | LIBS="-ll $LIBS" | |
3300 | cat >conftest.$ac_ext <<_ACEOF | |
3301 | #line $LINENO "configure" | |
3302 | #include "confdefs.h" | |
db04fc41 | 3303 | |
f6100b6f RC |
3304 | /* Override any gcc2 internal prototype to avoid an error. */ |
3305 | #ifdef __cplusplus | |
3306 | extern "C" | |
3307 | #endif | |
3308 | /* We use char because int might match the return type of a gcc2 | |
3309 | builtin and then its argument prototype would still apply. */ | |
3310 | char yywrap (); | |
3311 | #ifdef F77_DUMMY_MAIN | |
3312 | # ifdef __cplusplus | |
3313 | extern "C" | |
3314 | # endif | |
3315 | int F77_DUMMY_MAIN() { return 1; } | |
3316 | #endif | |
3317 | int | |
3318 | main () | |
3319 | { | |
3320 | yywrap (); | |
3321 | ; | |
3322 | return 0; | |
3323 | } | |
3324 | _ACEOF | |
3325 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3326 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3327 | (eval $ac_link) 2>&5 | |
3328 | ac_status=$? | |
3329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3330 | (exit $ac_status); } && | |
3331 | { ac_try='test -s conftest$ac_exeext' | |
3332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3333 | (eval $ac_try) 2>&5 | |
3334 | ac_status=$? | |
3335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3336 | (exit $ac_status); }; }; then | |
3337 | ac_cv_lib_l_yywrap=yes | |
3338 | else | |
3339 | echo "$as_me: failed program was:" >&5 | |
3340 | cat conftest.$ac_ext >&5 | |
3341 | ac_cv_lib_l_yywrap=no | |
739457f4 | 3342 | fi |
f6100b6f RC |
3343 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3344 | LIBS=$ac_check_lib_save_LIBS | |
739457f4 | 3345 | fi |
f6100b6f RC |
3346 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
3347 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | |
3348 | if test $ac_cv_lib_l_yywrap = yes; then | |
3349 | LEXLIB="-ll" | |
739457f4 CF |
3350 | fi |
3351 | ||
739457f4 CF |
3352 | fi |
3353 | ||
739457f4 CF |
3354 | fi |
3355 | ||
f6100b6f RC |
3356 | if test "x$LEX" != "x:"; then |
3357 | echo "$as_me:$LINENO: checking lex output file root" >&5 | |
3358 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | |
3359 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
db04fc41 | 3360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
739457f4 | 3361 | else |
f6100b6f RC |
3362 | # The minimal lex program is just a single line: %%. But some broken lexes |
3363 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
3364 | cat >conftest.l <<_ACEOF | |
3365 | %% | |
3366 | %% | |
3367 | _ACEOF | |
3368 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | |
3369 | (eval $LEX conftest.l) 2>&5 | |
3370 | ac_status=$? | |
3371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3372 | (exit $ac_status); } | |
3373 | if test -f lex.yy.c; then | |
3374 | ac_cv_prog_lex_root=lex.yy | |
3375 | elif test -f lexyy.c; then | |
3376 | ac_cv_prog_lex_root=lexyy | |
739457f4 | 3377 | else |
f6100b6f RC |
3378 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
3379 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
3380 | { (exit 1); exit 1; }; } | |
739457f4 | 3381 | fi |
739457f4 | 3382 | fi |
f6100b6f RC |
3383 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
3384 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | |
3385 | rm -f conftest.l | |
3386 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
739457f4 | 3387 | |
f6100b6f RC |
3388 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
3389 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | |
3390 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
db04fc41 | 3391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
739457f4 | 3392 | else |
f6100b6f RC |
3393 | # POSIX says lex can declare yytext either as a pointer or an array; the |
3394 | # default is implementation-dependent. Figure out which it is, since | |
3395 | # not all implementations provide the %pointer and %array declarations. | |
3396 | ac_cv_prog_lex_yytext_pointer=no | |
3397 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
3398 | ac_save_LIBS=$LIBS | |
3399 | LIBS="$LIBS $LEXLIB" | |
3400 | cat >conftest.$ac_ext <<_ACEOF | |
3401 | `cat $LEX_OUTPUT_ROOT.c` | |
3402 | _ACEOF | |
3403 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3404 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3405 | (eval $ac_link) 2>&5 | |
3406 | ac_status=$? | |
3407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3408 | (exit $ac_status); } && | |
3409 | { ac_try='test -s conftest$ac_exeext' | |
3410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3411 | (eval $ac_try) 2>&5 | |
3412 | ac_status=$? | |
3413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3414 | (exit $ac_status); }; }; then | |
3415 | ac_cv_prog_lex_yytext_pointer=yes | |
3416 | else | |
3417 | echo "$as_me: failed program was:" >&5 | |
3418 | cat conftest.$ac_ext >&5 | |
739457f4 | 3419 | fi |
f6100b6f RC |
3420 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3421 | LIBS=$ac_save_LIBS | |
3422 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
3423 | ||
739457f4 | 3424 | fi |
f6100b6f RC |
3425 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
3426 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | |
3427 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
3428 | ||
3429 | cat >>confdefs.h <<\_ACEOF | |
3430 | #define YYTEXT_POINTER 1 | |
3431 | _ACEOF | |
3432 | ||
739457f4 CF |
3433 | fi |
3434 | ||
db04fc41 | 3435 | fi |
f6100b6f RC |
3436 | if test "$LEX" = :; then |
3437 | LEX=${am_missing_run}flex | |
3438 | fi | |
3439 | for ac_prog in 'bison -y' byacc | |
3440 | do | |
3441 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3442 | set dummy $ac_prog; ac_word=$2 | |
db04fc41 RC |
3443 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3444 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
f6100b6f | 3445 | if test "${ac_cv_prog_YACC+set}" = set; then |
db04fc41 | 3446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
739457f4 | 3447 | else |
f6100b6f RC |
3448 | if test -n "$YACC"; then |
3449 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
739457f4 | 3450 | else |
db04fc41 RC |
3451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3452 | for as_dir in $PATH | |
3453 | do | |
3454 | IFS=$as_save_IFS | |
3455 | test -z "$as_dir" && as_dir=. | |
3456 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3457 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
f6100b6f | 3458 | ac_cv_prog_YACC="$ac_prog" |
db04fc41 RC |
3459 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3460 | break 2 | |
3461 | fi | |
3462 | done | |
3463 | done | |
3464 | ||
739457f4 CF |
3465 | fi |
3466 | fi | |
f6100b6f RC |
3467 | YACC=$ac_cv_prog_YACC |
3468 | if test -n "$YACC"; then | |
3469 | echo "$as_me:$LINENO: result: $YACC" >&5 | |
3470 | echo "${ECHO_T}$YACC" >&6 | |
739457f4 | 3471 | else |
db04fc41 RC |
3472 | echo "$as_me:$LINENO: result: no" >&5 |
3473 | echo "${ECHO_T}no" >&6 | |
739457f4 CF |
3474 | fi |
3475 | ||
f6100b6f RC |
3476 | test -n "$YACC" && break |
3477 | done | |
3478 | test -n "$YACC" || YACC="yacc" | |
739457f4 | 3479 | |
f6100b6f RC |
3480 | # Make sure we can run config.sub. |
3481 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
3482 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
3483 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
3484 | { (exit 1); exit 1; }; } | |
739457f4 | 3485 | |
f6100b6f RC |
3486 | echo "$as_me:$LINENO: checking build system type" >&5 |
3487 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
3488 | if test "${ac_cv_build+set}" = set; then | |
db04fc41 | 3489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
739457f4 | 3490 | else |
f6100b6f RC |
3491 | ac_cv_build_alias=$build_alias |
3492 | test -z "$ac_cv_build_alias" && | |
3493 | ac_cv_build_alias=`$ac_config_guess` | |
3494 | test -z "$ac_cv_build_alias" && | |
3495 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
3496 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
3497 | { (exit 1); exit 1; }; } | |
3498 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
3499 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
3500 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
3501 | { (exit 1); exit 1; }; } | |
db04fc41 | 3502 | |
739457f4 | 3503 | fi |
f6100b6f RC |
3504 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3505 | echo "${ECHO_T}$ac_cv_build" >&6 | |
3506 | build=$ac_cv_build | |
3507 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3508 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3509 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
739457f4 | 3510 | |
f6100b6f RC |
3511 | |
3512 | echo "$as_me:$LINENO: checking host system type" >&5 | |
3513 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
3514 | if test "${ac_cv_host+set}" = set; then | |
db04fc41 | 3515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
739457f4 | 3516 | else |
f6100b6f RC |
3517 | ac_cv_host_alias=$host_alias |
3518 | test -z "$ac_cv_host_alias" && | |
3519 | ac_cv_host_alias=$ac_cv_build_alias | |
3520 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
3521 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
3522 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
3523 | { (exit 1); exit 1; }; } | |
db04fc41 | 3524 | |
739457f4 | 3525 | fi |
f6100b6f RC |
3526 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3527 | echo "${ECHO_T}$ac_cv_host" >&6 | |
3528 | host=$ac_cv_host | |
3529 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3530 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3531 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
739457f4 | 3532 | |
739457f4 | 3533 | |
6908b7d7 RC |
3534 | # Check whether --enable-shared or --disable-shared was given. |
3535 | if test "${enable_shared+set}" = set; then | |
3536 | enableval="$enable_shared" | |
3537 | p=${PACKAGE-default} | |
3538 | case $enableval in | |
3539 | yes) enable_shared=yes ;; | |
3540 | no) enable_shared=no ;; | |
3541 | *) | |
3542 | enable_shared=no | |
3543 | # Look at the argument we got. We use all the common list separators. | |
3544 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3545 | for pkg in $enableval; do | |
3546 | IFS="$lt_save_ifs" | |
3547 | if test "X$pkg" = "X$p"; then | |
3548 | enable_shared=yes | |
3549 | fi | |
3550 | done | |
3551 | IFS="$lt_save_ifs" | |
3552 | ;; | |
3553 | esac | |
3554 | else | |
3555 | enable_shared=yes | |
3556 | fi; | |
739457f4 | 3557 | |
6908b7d7 RC |
3558 | # Check whether --enable-static or --disable-static was given. |
3559 | if test "${enable_static+set}" = set; then | |
3560 | enableval="$enable_static" | |
3561 | p=${PACKAGE-default} | |
3562 | case $enableval in | |
3563 | yes) enable_static=yes ;; | |
3564 | no) enable_static=no ;; | |
3565 | *) | |
3566 | enable_static=no | |
3567 | # Look at the argument we got. We use all the common list separators. | |
3568 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3569 | for pkg in $enableval; do | |
3570 | IFS="$lt_save_ifs" | |
3571 | if test "X$pkg" = "X$p"; then | |
3572 | enable_static=yes | |
3573 | fi | |
3574 | done | |
3575 | IFS="$lt_save_ifs" | |
3576 | ;; | |
3577 | esac | |
739457f4 | 3578 | else |
6908b7d7 RC |
3579 | enable_static=yes |
3580 | fi; | |
3581 | ||
3582 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
3583 | if test "${enable_fast_install+set}" = set; then | |
3584 | enableval="$enable_fast_install" | |
3585 | p=${PACKAGE-default} | |
3586 | case $enableval in | |
3587 | yes) enable_fast_install=yes ;; | |
3588 | no) enable_fast_install=no ;; | |
3589 | *) | |
3590 | enable_fast_install=no | |
3591 | # Look at the argument we got. We use all the common list separators. | |
3592 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3593 | for pkg in $enableval; do | |
3594 | IFS="$lt_save_ifs" | |
3595 | if test "X$pkg" = "X$p"; then | |
3596 | enable_fast_install=yes | |
3597 | fi | |
3598 | done | |
3599 | IFS="$lt_save_ifs" | |
3600 | ;; | |
3601 | esac | |
739457f4 | 3602 | else |
6908b7d7 RC |
3603 | enable_fast_install=yes |
3604 | fi; | |
db04fc41 | 3605 | |
6908b7d7 RC |
3606 | |
3607 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
3608 | if test "${with_gnu_ld+set}" = set; then | |
3609 | withval="$with_gnu_ld" | |
3610 | test "$withval" = no || with_gnu_ld=yes | |
3611 | else | |
3612 | with_gnu_ld=no | |
3613 | fi; | |
3614 | ac_prog=ld | |
3615 | if test "$GCC" = yes; then | |
3616 | # Check if gcc -print-prog-name=ld gives a path. | |
3617 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
3618 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
3619 | case $host in | |
3620 | *-*-mingw*) | |
3621 | # gcc leaves a trailing carriage return which upsets mingw | |
3622 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3623 | *) | |
3624 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3625 | esac | |
3626 | case $ac_prog in | |
3627 | # Accept absolute paths. | |
3628 | [\\/]* | ?:[\\/]*) | |
3629 | re_direlt='/[^/][^/]*/\.\./' | |
3630 | # Canonicalize the path of ld | |
3631 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3632 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3633 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3634 | done | |
3635 | test -z "$LD" && LD="$ac_prog" | |
3636 | ;; | |
3637 | "") | |
3638 | # If it fails, then pretend we aren't using GCC. | |
3639 | ac_prog=ld | |
3640 | ;; | |
3641 | *) | |
3642 | # If it is relative, then search for the first ld in PATH. | |
3643 | with_gnu_ld=unknown | |
3644 | ;; | |
3645 | esac | |
3646 | elif test "$with_gnu_ld" = yes; then | |
3647 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
3648 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
3649 | else | |
3650 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
3651 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
739457f4 | 3652 | fi |
6908b7d7 RC |
3653 | if test "${lt_cv_path_LD+set}" = set; then |
3654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3655 | else | |
3656 | if test -z "$LD"; then | |
3657 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3658 | for ac_dir in $PATH; do | |
3659 | IFS="$lt_save_ifs" | |
3660 | test -z "$ac_dir" && ac_dir=. | |
3661 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3662 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3663 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3664 | # but apparently some GNU ld's only accept -v. | |
3665 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3666 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
3667 | test "$with_gnu_ld" != no && break | |
3668 | else | |
3669 | test "$with_gnu_ld" != yes && break | |
3670 | fi | |
3671 | fi | |
3672 | done | |
3673 | IFS="$lt_save_ifs" | |
3674 | else | |
3675 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
739457f4 | 3676 | fi |
6908b7d7 RC |
3677 | fi |
3678 | ||
3679 | LD="$lt_cv_path_LD" | |
3680 | if test -n "$LD"; then | |
3681 | echo "$as_me:$LINENO: result: $LD" >&5 | |
3682 | echo "${ECHO_T}$LD" >&6 | |
739457f4 | 3683 | else |
db04fc41 RC |
3684 | echo "$as_me:$LINENO: result: no" >&5 |
3685 | echo "${ECHO_T}no" >&6 | |
739457f4 | 3686 | fi |
6908b7d7 RC |
3687 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3688 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3689 | { (exit 1); exit 1; }; } | |
3690 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3691 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3692 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3694 | else | |
3695 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3696 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
3697 | lt_cv_prog_gnu_ld=yes | |
3698 | else | |
3699 | lt_cv_prog_gnu_ld=no | |
db04fc41 | 3700 | fi |
6908b7d7 RC |
3701 | fi |
3702 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
3703 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
3704 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
3705 | ||
3706 | ||
3707 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
3708 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3709 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
db04fc41 | 3710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
739457f4 | 3711 | else |
6908b7d7 RC |
3712 | lt_cv_ld_reload_flag='-r' |
3713 | fi | |
3714 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
3715 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
3716 | reload_flag=$lt_cv_ld_reload_flag | |
3717 | case $reload_flag in | |
3718 | "" | " "*) ;; | |
3719 | *) reload_flag=" $reload_flag" ;; | |
3720 | esac | |
3721 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
3722 | ||
3723 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
3724 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3725 | if test "${lt_cv_path_NM+set}" = set; then | |
3726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3727 | else | |
3728 | if test -n "$NM"; then | |
3729 | # Let the user override the test. | |
3730 | lt_cv_path_NM="$NM" | |
3731 | else | |
3732 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3733 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | |
3734 | IFS="$lt_save_ifs" | |
3735 | test -z "$ac_dir" && ac_dir=. | |
3736 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" | |
3737 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
3738 | # Check to see if the nm accepts a BSD-compat flag. | |
3739 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3740 | # nm: unknown option "B" ignored | |
3741 | # Tru64's nm complains that /dev/null is an invalid object file | |
3742 | if ("$tmp_nm" -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
3743 | lt_cv_path_NM="$tmp_nm -B" | |
3744 | break | |
3745 | elif ("$tmp_nm" -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
3746 | lt_cv_path_NM="$tmp_nm -p" | |
3747 | break | |
3748 | else | |
3749 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3750 | continue # so that we can try to find one that supports BSD flags | |
3751 | fi | |
3752 | fi | |
3753 | done | |
3754 | IFS="$lt_save_ifs" | |
3755 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
3756 | fi | |
3757 | fi | |
3758 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
3759 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
3760 | NM="$lt_cv_path_NM" | |
3761 | ||
3762 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
3763 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
3764 | if test "${lt_cv_path_SED+set}" = set; then | |
3765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
739457f4 | 3766 | else |
6908b7d7 RC |
3767 | # Loop through the user's path and test for sed and gsed. |
3768 | # Then use that list of sed's as ones to test for truncation. | |
db04fc41 RC |
3769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3770 | for as_dir in $PATH | |
3771 | do | |
3772 | IFS=$as_save_IFS | |
3773 | test -z "$as_dir" && as_dir=. | |
6908b7d7 RC |
3774 | for ac_prog in sed gsed; do |
3775 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3776 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
3777 | _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" | |
3778 | fi | |
3779 | done | |
3780 | done | |
db04fc41 RC |
3781 | done |
3782 | ||
6908b7d7 RC |
3783 | # Create a temporary directory, and hook for its removal unless debugging. |
3784 | $debug || | |
3785 | { | |
3786 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
3787 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
3788 | } | |
3789 | ||
3790 | # Create a (secure) tmp directory for tmp files. | |
3791 | : ${TMPDIR=/tmp} | |
3792 | { | |
3793 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && | |
3794 | test -n "$tmp" && test -d "$tmp" | |
3795 | } || | |
3796 | { | |
3797 | tmp=$TMPDIR/sed$$-$RANDOM | |
3798 | (umask 077 && mkdir $tmp) | |
3799 | } || | |
3800 | { | |
3801 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
3802 | { (exit 1); exit 1; } | |
3803 | } | |
3804 | _max=0 | |
3805 | _count=0 | |
3806 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
3807 | # along with /bin/sed that truncates output. | |
3808 | for _sed in $_sed_list /usr/xpg4/bin/sed; do | |
3809 | test ! -f ${_sed} && break | |
3810 | cat /dev/null > "$tmp/sed.in" | |
3811 | _count=0 | |
3812 | echo $ECHO_N "0123456789$ECHO_C" >"$tmp/sed.in" | |
3813 | # Check for GNU sed and select it if it is found. | |
3814 | if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then | |
3815 | lt_cv_path_SED=${_sed} | |
3816 | break; | |
3817 | fi | |
3818 | while true; do | |
3819 | cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" | |
3820 | mv "$tmp/sed.tmp" "$tmp/sed.in" | |
3821 | cp "$tmp/sed.in" "$tmp/sed.nl" | |
3822 | echo >>"$tmp/sed.nl" | |
3823 | ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break | |
3824 | cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break | |
3825 | # 10000 chars as input seems more than enough | |
3826 | test $_count -gt 10 && break | |
3827 | _count=`expr $_count + 1` | |
3828 | if test $_count -gt $_max; then | |
3829 | _max=$_count | |
3830 | lt_cv_path_SED=$_sed | |
3831 | fi | |
3832 | done | |
3833 | done | |
3834 | rm -rf "$tmp" | |
3835 | ||
739457f4 | 3836 | fi |
6908b7d7 RC |
3837 | |
3838 | echo "$as_me:$LINENO: result: $SED" >&5 | |
3839 | echo "${ECHO_T}$SED" >&6 | |
3840 | ||
3841 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
3842 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3843 | LN_S=$as_ln_s | |
3844 | if test "$LN_S" = "ln -s"; then | |
3845 | echo "$as_me:$LINENO: result: yes" >&5 | |
3846 | echo "${ECHO_T}yes" >&6 | |
739457f4 | 3847 | else |
6908b7d7 RC |
3848 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3849 | echo "${ECHO_T}no, using $LN_S" >&6 | |
739457f4 CF |
3850 | fi |
3851 | ||
6908b7d7 RC |
3852 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
3853 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3854 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
739457f4 | 3856 | else |
6908b7d7 RC |
3857 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
3858 | lt_cv_file_magic_test_file= | |
3859 | lt_cv_deplibs_check_method='unknown' | |
3860 | # Need to set the preceding variable on all platforms that support | |
3861 | # interlibrary dependencies. | |
3862 | # 'none' -- dependencies not supported. | |
3863 | # `unknown' -- same as none, but documents that we really don't know. | |
3864 | # 'pass_all' -- all dependencies passed with no checks. | |
3865 | # 'test_compile' -- check by making test program. | |
3866 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
3867 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3868 | # If you have `file' or equivalent on your system and you're not sure | |
3869 | # whether `pass_all' will *always* work, you probably want this one. | |
3870 | ||
3871 | case $host_os in | |
3872 | aix4* | aix5*) | |
3873 | lt_cv_deplibs_check_method=pass_all | |
3874 | ;; | |
3875 | ||
3876 | beos*) | |
3877 | lt_cv_deplibs_check_method=pass_all | |
3878 | ;; | |
3879 | ||
3880 | bsdi4*) | |
3881 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
3882 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3883 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3884 | ;; | |
3885 | ||
3886 | cygwin* | mingw* | pw32*) | |
3887 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
3888 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
3889 | ;; | |
3890 | ||
3891 | darwin* | rhapsody*) | |
3892 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
3893 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3894 | case "$host_os" in | |
3895 | rhapsody* | darwin1.[012]) | |
3896 | lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` | |
3897 | ;; | |
3898 | *) # Darwin 1.3 on | |
3899 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3900 | ;; | |
3901 | esac | |
3902 | ;; | |
3903 | ||
3904 | freebsd*) | |
3905 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3906 | case $host_cpu in | |
3907 | i*86 ) | |
3908 | # Not sure whether the presence of OpenBSD here was a mistake. | |
3909 | # Let's accept both of them until this is cleared up. | |
3910 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | |
3911 | lt_cv_file_magic_cmd=/usr/bin/file | |
3912 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3913 | ;; | |
3914 | esac | |
3915 | else | |
3916 | lt_cv_deplibs_check_method=pass_all | |
3917 | fi | |
3918 | ;; | |
3919 | ||
3920 | gnu*) | |
3921 | lt_cv_deplibs_check_method=pass_all | |
3922 | ;; | |
3923 | ||
3924 | hpux10.20* | hpux11*) | |
3925 | lt_cv_file_magic_cmd=/usr/bin/file | |
3926 | if test "$host_cpu" = ia64; then | |
3927 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3928 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3929 | else | |
3930 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3931 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3932 | fi | |
3933 | ;; | |
3934 | ||
3935 | irix5* | irix6* | nonstopux*) | |
3936 | case $host_os in | |
3937 | irix5* | nonstopux*) | |
3938 | # this will be overridden with pass_all, but let us keep it just in case | |
3939 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3940 | ;; | |
3941 | *) | |
3942 | case $LD in | |
3943 | *-32|*"-32 ") libmagic=32-bit;; | |
3944 | *-n32|*"-n32 ") libmagic=N32;; | |
3945 | *-64|*"-64 ") libmagic=64-bit;; | |
3946 | *) libmagic=never-match;; | |
3947 | esac | |
3948 | # this will be overridden with pass_all, but let us keep it just in case | |
3949 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | |
3950 | ;; | |
3951 | esac | |
3952 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3953 | lt_cv_deplibs_check_method=pass_all | |
3954 | ;; | |
3955 | ||
3956 | # This must be Linux ELF. | |
3957 | linux*) | |
3958 | case $host_cpu in | |
3959 | alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) | |
3960 | lt_cv_deplibs_check_method=pass_all ;; | |
3961 | *) | |
3962 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
3963 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; | |
3964 | esac | |
3965 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | |
3966 | ;; | |
3967 | ||
3968 | netbsd*) | |
3969 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3970 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
3971 | else | |
3972 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' | |
3973 | fi | |
3974 | ;; | |
3975 | ||
3976 | newos6*) | |
3977 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3978 | lt_cv_file_magic_cmd=/usr/bin/file | |
3979 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3980 | ;; | |
3981 | ||
3982 | nto-qnx) | |
3983 | lt_cv_deplibs_check_method=unknown | |
3984 | ;; | |
3985 | ||
3986 | openbsd*) | |
3987 | lt_cv_file_magic_cmd=/usr/bin/file | |
3988 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3989 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
3990 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' | |
3991 | else | |
3992 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' | |
3993 | fi | |
3994 | ;; | |
3995 | ||
3996 | osf3* | osf4* | osf5*) | |
3997 | # this will be overridden with pass_all, but let us keep it just in case | |
3998 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3999 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4000 | lt_cv_deplibs_check_method=pass_all | |
4001 | ;; | |
4002 | ||
4003 | sco3.2v5*) | |
4004 | lt_cv_deplibs_check_method=pass_all | |
4005 | ;; | |
4006 | ||
4007 | solaris*) | |
4008 | lt_cv_deplibs_check_method=pass_all | |
4009 | lt_cv_file_magic_test_file=/lib/libc.so | |
4010 | ;; | |
4011 | ||
4012 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
4013 | case $host_vendor in | |
4014 | motorola) | |
4015 | 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]' | |
4016 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4017 | ;; | |
4018 | ncr) | |
4019 | lt_cv_deplibs_check_method=pass_all | |
4020 | ;; | |
4021 | sequent) | |
4022 | lt_cv_file_magic_cmd='/bin/file' | |
4023 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
4024 | ;; | |
4025 | sni) | |
4026 | lt_cv_file_magic_cmd='/bin/file' | |
4027 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
4028 | lt_cv_file_magic_test_file=/lib/libc.so | |
4029 | ;; | |
4030 | esac | |
4031 | ;; | |
4032 | ||
4033 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) | |
4034 | lt_cv_deplibs_check_method=pass_all | |
4035 | ;; | |
4036 | esac | |
4037 | ||
739457f4 | 4038 | fi |
6908b7d7 RC |
4039 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
4040 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
4041 | file_magic_cmd=$lt_cv_file_magic_cmd | |
4042 | deplibs_check_method=$lt_cv_deplibs_check_method | |
4043 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
739457f4 CF |
4044 | |
4045 | ||
4046 | ||
739457f4 | 4047 | |
6908b7d7 RC |
4048 | # If no C compiler was specified, use CC. |
4049 | LTCC=${LTCC-"$CC"} | |
739457f4 | 4050 | |
6908b7d7 RC |
4051 | # Allow CC to be a program name with arguments. |
4052 | set dummy $CC | |
4053 | compiler="$2" | |
db04fc41 RC |
4054 | |
4055 | ||
6908b7d7 RC |
4056 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
4057 | if test "${enable_libtool_lock+set}" = set; then | |
4058 | enableval="$enable_libtool_lock" | |
db04fc41 | 4059 | |
6908b7d7 RC |
4060 | fi; |
4061 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
4062 | ||
4063 | # Some flags need to be propagated to the compiler or linker for good | |
4064 | # libtool support. | |
4065 | case $host in | |
4066 | ia64-*-hpux*) | |
4067 | # Find out which ABI we are using. | |
4068 | echo 'int i;' > conftest.$ac_ext | |
4069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4070 | (eval $ac_compile) 2>&5 | |
4071 | ac_status=$? | |
4072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4073 | (exit $ac_status); }; then | |
4074 | case `/usr/bin/file conftest.$ac_objext` in | |
4075 | *ELF-32*) | |
4076 | HPUX_IA64_MODE="32" | |
4077 | ;; | |
4078 | *ELF-64*) | |
4079 | HPUX_IA64_MODE="64" | |
4080 | ;; | |
4081 | esac | |
4082 | fi | |
4083 | rm -rf conftest* | |
4084 | ;; | |
4085 | *-*-irix6*) | |
4086 | # Find out which ABI we are using. | |
4087 | echo '#line 4087 "configure"' > conftest.$ac_ext | |
4088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4089 | (eval $ac_compile) 2>&5 | |
4090 | ac_status=$? | |
4091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4092 | (exit $ac_status); }; then | |
4093 | case `/usr/bin/file conftest.$ac_objext` in | |
4094 | *32-bit*) | |
4095 | LD="${LD-ld} -32" | |
4096 | ;; | |
4097 | *N32*) | |
4098 | LD="${LD-ld} -n32" | |
4099 | ;; | |
4100 | *64-bit*) | |
4101 | LD="${LD-ld} -64" | |
4102 | ;; | |
4103 | esac | |
4104 | fi | |
4105 | rm -rf conftest* | |
4106 | ;; | |
4107 | ||
4108 | *-*-sco3.2v5*) | |
4109 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
4110 | SAVE_CFLAGS="$CFLAGS" | |
4111 | CFLAGS="$CFLAGS -belf" | |
4112 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
4113 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4114 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4116 | else | |
4117 | ac_ext=c | |
4118 | ac_cpp='$CPP $CPPFLAGS' | |
4119 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4120 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4121 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4122 | ||
4123 | cat >conftest.$ac_ext <<_ACEOF | |
4124 | #line $LINENO "configure" | |
4125 | #include "confdefs.h" | |
4126 | ||
4127 | #ifdef F77_DUMMY_MAIN | |
4128 | # ifdef __cplusplus | |
4129 | extern "C" | |
4130 | # endif | |
4131 | int F77_DUMMY_MAIN() { return 1; } | |
4132 | #endif | |
4133 | int | |
4134 | main () | |
4135 | { | |
4136 | ||
4137 | ; | |
4138 | return 0; | |
4139 | } | |
4140 | _ACEOF | |
4141 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4142 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4143 | (eval $ac_link) 2>&5 | |
4144 | ac_status=$? | |
4145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4146 | (exit $ac_status); } && | |
4147 | { ac_try='test -s conftest$ac_exeext' | |
4148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4149 | (eval $ac_try) 2>&5 | |
4150 | ac_status=$? | |
4151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4152 | (exit $ac_status); }; }; then | |
4153 | lt_cv_cc_needs_belf=yes | |
4154 | else | |
4155 | echo "$as_me: failed program was:" >&5 | |
4156 | cat conftest.$ac_ext >&5 | |
4157 | lt_cv_cc_needs_belf=no | |
4158 | fi | |
4159 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4160 | ac_ext=c | |
4161 | ac_cpp='$CPP $CPPFLAGS' | |
4162 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4163 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4164 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4165 | ||
4166 | fi | |
4167 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
4168 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
4169 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
4170 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4171 | CFLAGS="$SAVE_CFLAGS" | |
4172 | fi | |
4173 | ;; | |
4174 | ||
4175 | esac | |
4176 | ||
4177 | need_locks="$enable_libtool_lock" | |
4178 | ||
4179 | ||
4180 | ac_ext=c | |
4181 | ac_cpp='$CPP $CPPFLAGS' | |
4182 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4183 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4184 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4185 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
4186 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
4187 | # On Suns, sometimes $CPP names a directory. | |
4188 | if test -n "$CPP" && test -d "$CPP"; then | |
4189 | CPP= | |
4190 | fi | |
4191 | if test -z "$CPP"; then | |
4192 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4194 | else | |
4195 | # Double quotes because CPP needs to be expanded | |
4196 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4197 | do | |
4198 | ac_preproc_ok=false | |
4199 | for ac_c_preproc_warn_flag in '' yes | |
4200 | do | |
4201 | # Use a header file that comes with gcc, so configuring glibc | |
4202 | # with a fresh cross-compiler works. | |
4203 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4204 | # not just through cpp. "Syntax error" is here to catch this case. | |
4205 | cat >conftest.$ac_ext <<_ACEOF | |
4206 | #line $LINENO "configure" | |
4207 | #include "confdefs.h" | |
4208 | #include <assert.h> | |
4209 | Syntax error | |
4210 | _ACEOF | |
4211 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4212 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4213 | ac_status=$? | |
4214 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4215 | rm -f conftest.er1 | |
4216 | cat conftest.err >&5 | |
4217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4218 | (exit $ac_status); } >/dev/null; then | |
4219 | if test -s conftest.err; then | |
4220 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4221 | else | |
4222 | ac_cpp_err= | |
4223 | fi | |
4224 | else | |
4225 | ac_cpp_err=yes | |
4226 | fi | |
4227 | if test -z "$ac_cpp_err"; then | |
4228 | : | |
4229 | else | |
4230 | echo "$as_me: failed program was:" >&5 | |
4231 | cat conftest.$ac_ext >&5 | |
4232 | # Broken: fails on valid input. | |
4233 | continue | |
4234 | fi | |
4235 | rm -f conftest.err conftest.$ac_ext | |
4236 | ||
4237 | # OK, works on sane cases. Now check whether non-existent headers | |
4238 | # can be detected and how. | |
4239 | cat >conftest.$ac_ext <<_ACEOF | |
4240 | #line $LINENO "configure" | |
4241 | #include "confdefs.h" | |
4242 | #include <ac_nonexistent.h> | |
4243 | _ACEOF | |
4244 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4245 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4246 | ac_status=$? | |
4247 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4248 | rm -f conftest.er1 | |
4249 | cat conftest.err >&5 | |
4250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4251 | (exit $ac_status); } >/dev/null; then | |
4252 | if test -s conftest.err; then | |
4253 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4254 | else | |
4255 | ac_cpp_err= | |
4256 | fi | |
4257 | else | |
4258 | ac_cpp_err=yes | |
4259 | fi | |
4260 | if test -z "$ac_cpp_err"; then | |
4261 | # Broken: success on invalid input. | |
4262 | continue | |
4263 | else | |
4264 | echo "$as_me: failed program was:" >&5 | |
4265 | cat conftest.$ac_ext >&5 | |
4266 | # Passes both tests. | |
4267 | ac_preproc_ok=: | |
4268 | break | |
4269 | fi | |
4270 | rm -f conftest.err conftest.$ac_ext | |
4271 | ||
4272 | done | |
4273 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4274 | rm -f conftest.err conftest.$ac_ext | |
4275 | if $ac_preproc_ok; then | |
4276 | break | |
4277 | fi | |
4278 | ||
4279 | done | |
4280 | ac_cv_prog_CPP=$CPP | |
4281 | ||
4282 | fi | |
4283 | CPP=$ac_cv_prog_CPP | |
4284 | else | |
4285 | ac_cv_prog_CPP=$CPP | |
4286 | fi | |
4287 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
4288 | echo "${ECHO_T}$CPP" >&6 | |
4289 | ac_preproc_ok=false | |
4290 | for ac_c_preproc_warn_flag in '' yes | |
4291 | do | |
4292 | # Use a header file that comes with gcc, so configuring glibc | |
4293 | # with a fresh cross-compiler works. | |
4294 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4295 | # not just through cpp. "Syntax error" is here to catch this case. | |
4296 | cat >conftest.$ac_ext <<_ACEOF | |
4297 | #line $LINENO "configure" | |
4298 | #include "confdefs.h" | |
4299 | #include <assert.h> | |
4300 | Syntax error | |
4301 | _ACEOF | |
4302 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4303 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4304 | ac_status=$? | |
4305 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4306 | rm -f conftest.er1 | |
4307 | cat conftest.err >&5 | |
4308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4309 | (exit $ac_status); } >/dev/null; then | |
4310 | if test -s conftest.err; then | |
4311 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4312 | else | |
4313 | ac_cpp_err= | |
4314 | fi | |
4315 | else | |
4316 | ac_cpp_err=yes | |
4317 | fi | |
4318 | if test -z "$ac_cpp_err"; then | |
4319 | : | |
4320 | else | |
4321 | echo "$as_me: failed program was:" >&5 | |
4322 | cat conftest.$ac_ext >&5 | |
4323 | # Broken: fails on valid input. | |
4324 | continue | |
4325 | fi | |
4326 | rm -f conftest.err conftest.$ac_ext | |
4327 | ||
4328 | # OK, works on sane cases. Now check whether non-existent headers | |
4329 | # can be detected and how. | |
4330 | cat >conftest.$ac_ext <<_ACEOF | |
4331 | #line $LINENO "configure" | |
4332 | #include "confdefs.h" | |
4333 | #include <ac_nonexistent.h> | |
4334 | _ACEOF | |
4335 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4336 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4337 | ac_status=$? | |
4338 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4339 | rm -f conftest.er1 | |
4340 | cat conftest.err >&5 | |
4341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4342 | (exit $ac_status); } >/dev/null; then | |
4343 | if test -s conftest.err; then | |
4344 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4345 | else | |
4346 | ac_cpp_err= | |
4347 | fi | |
4348 | else | |
4349 | ac_cpp_err=yes | |
4350 | fi | |
4351 | if test -z "$ac_cpp_err"; then | |
4352 | # Broken: success on invalid input. | |
4353 | continue | |
4354 | else | |
4355 | echo "$as_me: failed program was:" >&5 | |
4356 | cat conftest.$ac_ext >&5 | |
4357 | # Passes both tests. | |
4358 | ac_preproc_ok=: | |
4359 | break | |
4360 | fi | |
4361 | rm -f conftest.err conftest.$ac_ext | |
4362 | ||
4363 | done | |
4364 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4365 | rm -f conftest.err conftest.$ac_ext | |
4366 | if $ac_preproc_ok; then | |
4367 | : | |
4368 | else | |
4369 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 | |
4370 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} | |
4371 | { (exit 1); exit 1; }; } | |
4372 | fi | |
4373 | ||
4374 | ac_ext=c | |
4375 | ac_cpp='$CPP $CPPFLAGS' | |
4376 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4377 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4378 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4379 | ||
4380 | ||
4381 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4382 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4383 | if test "${ac_cv_header_stdc+set}" = set; then | |
4384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4385 | else | |
4386 | cat >conftest.$ac_ext <<_ACEOF | |
4387 | #line $LINENO "configure" | |
4388 | #include "confdefs.h" | |
4389 | #include <stdlib.h> | |
4390 | #include <stdarg.h> | |
4391 | #include <string.h> | |
4392 | #include <float.h> | |
4393 | ||
4394 | _ACEOF | |
4395 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4396 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4397 | ac_status=$? | |
4398 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4399 | rm -f conftest.er1 | |
4400 | cat conftest.err >&5 | |
4401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4402 | (exit $ac_status); } >/dev/null; then | |
4403 | if test -s conftest.err; then | |
4404 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4405 | else | |
4406 | ac_cpp_err= | |
4407 | fi | |
4408 | else | |
4409 | ac_cpp_err=yes | |
4410 | fi | |
4411 | if test -z "$ac_cpp_err"; then | |
4412 | ac_cv_header_stdc=yes | |
4413 | else | |
4414 | echo "$as_me: failed program was:" >&5 | |
4415 | cat conftest.$ac_ext >&5 | |
4416 | ac_cv_header_stdc=no | |
4417 | fi | |
4418 | rm -f conftest.err conftest.$ac_ext | |
4419 | ||
4420 | if test $ac_cv_header_stdc = yes; then | |
4421 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4422 | cat >conftest.$ac_ext <<_ACEOF | |
4423 | #line $LINENO "configure" | |
4424 | #include "confdefs.h" | |
4425 | #include <string.h> | |
4426 | ||
4427 | _ACEOF | |
4428 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4429 | egrep "memchr" >/dev/null 2>&1; then | |
4430 | : | |
4431 | else | |
4432 | ac_cv_header_stdc=no | |
4433 | fi | |
4434 | rm -f conftest* | |
4435 | ||
4436 | fi | |
4437 | ||
4438 | if test $ac_cv_header_stdc = yes; then | |
4439 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4440 | cat >conftest.$ac_ext <<_ACEOF | |
4441 | #line $LINENO "configure" | |
4442 | #include "confdefs.h" | |
4443 | #include <stdlib.h> | |
4444 | ||
4445 | _ACEOF | |
4446 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4447 | egrep "free" >/dev/null 2>&1; then | |
4448 | : | |
4449 | else | |
4450 | ac_cv_header_stdc=no | |
4451 | fi | |
4452 | rm -f conftest* | |
4453 | ||
4454 | fi | |
4455 | ||
4456 | if test $ac_cv_header_stdc = yes; then | |
4457 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4458 | if test "$cross_compiling" = yes; then | |
4459 | : | |
4460 | else | |
4461 | cat >conftest.$ac_ext <<_ACEOF | |
4462 | #line $LINENO "configure" | |
4463 | #include "confdefs.h" | |
4464 | #include <ctype.h> | |
4465 | #if ((' ' & 0x0FF) == 0x020) | |
4466 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4467 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4468 | #else | |
4469 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4470 | || ('j' <= (c) && (c) <= 'r') \ | |
4471 | || ('s' <= (c) && (c) <= 'z')) | |
4472 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4473 | #endif | |
4474 | ||
4475 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4476 | int | |
4477 | main () | |
4478 | { | |
4479 | int i; | |
4480 | for (i = 0; i < 256; i++) | |
4481 | if (XOR (islower (i), ISLOWER (i)) | |
4482 | || toupper (i) != TOUPPER (i)) | |
4483 | exit(2); | |
4484 | exit (0); | |
4485 | } | |
4486 | _ACEOF | |
4487 | rm -f conftest$ac_exeext | |
4488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4489 | (eval $ac_link) 2>&5 | |
4490 | ac_status=$? | |
4491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4492 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4494 | (eval $ac_try) 2>&5 | |
4495 | ac_status=$? | |
4496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4497 | (exit $ac_status); }; }; then | |
4498 | : | |
4499 | else | |
4500 | echo "$as_me: program exited with status $ac_status" >&5 | |
4501 | echo "$as_me: failed program was:" >&5 | |
4502 | cat conftest.$ac_ext >&5 | |
4503 | ( exit $ac_status ) | |
4504 | ac_cv_header_stdc=no | |
4505 | fi | |
4506 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4507 | fi | |
4508 | fi | |
4509 | fi | |
4510 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4511 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4512 | if test $ac_cv_header_stdc = yes; then | |
4513 | ||
4514 | cat >>confdefs.h <<\_ACEOF | |
4515 | #define STDC_HEADERS 1 | |
4516 | _ACEOF | |
4517 | ||
4518 | fi | |
4519 | ||
4520 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4521 | ||
4522 | ||
4523 | ||
4524 | ||
4525 | ||
4526 | ||
4527 | ||
4528 | ||
4529 | ||
4530 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4531 | inttypes.h stdint.h unistd.h | |
4532 | do | |
4533 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4534 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4535 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4536 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4538 | else | |
4539 | cat >conftest.$ac_ext <<_ACEOF | |
4540 | #line $LINENO "configure" | |
4541 | #include "confdefs.h" | |
4542 | $ac_includes_default | |
4543 | ||
4544 | #include <$ac_header> | |
4545 | _ACEOF | |
4546 | rm -f conftest.$ac_objext | |
4547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4548 | (eval $ac_compile) 2>&5 | |
4549 | ac_status=$? | |
4550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4551 | (exit $ac_status); } && | |
4552 | { ac_try='test -s conftest.$ac_objext' | |
4553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4554 | (eval $ac_try) 2>&5 | |
4555 | ac_status=$? | |
4556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4557 | (exit $ac_status); }; }; then | |
4558 | eval "$as_ac_Header=yes" | |
4559 | else | |
4560 | echo "$as_me: failed program was:" >&5 | |
4561 | cat conftest.$ac_ext >&5 | |
4562 | eval "$as_ac_Header=no" | |
4563 | fi | |
4564 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4565 | fi | |
4566 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4567 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4568 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4569 | cat >>confdefs.h <<_ACEOF | |
4570 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4571 | _ACEOF | |
4572 | ||
4573 | fi | |
4574 | ||
4575 | done | |
4576 | ||
4577 | ||
4578 | ||
4579 | for ac_header in dlfcn.h | |
4580 | do | |
4581 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4582 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4583 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4584 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4585 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4587 | fi | |
4588 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4589 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4590 | else | |
4591 | # Is the header compilable? | |
4592 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4593 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4594 | cat >conftest.$ac_ext <<_ACEOF | |
4595 | #line $LINENO "configure" | |
4596 | #include "confdefs.h" | |
4597 | $ac_includes_default | |
4598 | #include <$ac_header> | |
4599 | _ACEOF | |
4600 | rm -f conftest.$ac_objext | |
4601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4602 | (eval $ac_compile) 2>&5 | |
4603 | ac_status=$? | |
4604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4605 | (exit $ac_status); } && | |
4606 | { ac_try='test -s conftest.$ac_objext' | |
4607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4608 | (eval $ac_try) 2>&5 | |
4609 | ac_status=$? | |
4610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4611 | (exit $ac_status); }; }; then | |
4612 | ac_header_compiler=yes | |
4613 | else | |
4614 | echo "$as_me: failed program was:" >&5 | |
4615 | cat conftest.$ac_ext >&5 | |
4616 | ac_header_compiler=no | |
4617 | fi | |
4618 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4619 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4620 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4621 | ||
4622 | # Is the header present? | |
4623 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4624 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4625 | cat >conftest.$ac_ext <<_ACEOF | |
4626 | #line $LINENO "configure" | |
4627 | #include "confdefs.h" | |
4628 | #include <$ac_header> | |
4629 | _ACEOF | |
4630 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4631 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4632 | ac_status=$? | |
4633 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4634 | rm -f conftest.er1 | |
4635 | cat conftest.err >&5 | |
4636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4637 | (exit $ac_status); } >/dev/null; then | |
4638 | if test -s conftest.err; then | |
4639 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4640 | else | |
4641 | ac_cpp_err= | |
4642 | fi | |
4643 | else | |
4644 | ac_cpp_err=yes | |
4645 | fi | |
4646 | if test -z "$ac_cpp_err"; then | |
4647 | ac_header_preproc=yes | |
4648 | else | |
4649 | echo "$as_me: failed program was:" >&5 | |
4650 | cat conftest.$ac_ext >&5 | |
4651 | ac_header_preproc=no | |
4652 | fi | |
4653 | rm -f conftest.err conftest.$ac_ext | |
4654 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4655 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4656 | ||
4657 | # So? What about this header? | |
4658 | case $ac_header_compiler:$ac_header_preproc in | |
4659 | yes:no ) | |
4660 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4661 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4662 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4663 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
4664 | no:yes ) | |
4665 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4666 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4667 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4668 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4669 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4670 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
4671 | esac | |
4672 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4673 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4674 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4676 | else | |
4677 | eval "$as_ac_Header=$ac_header_preproc" | |
4678 | fi | |
4679 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4680 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4681 | ||
4682 | fi | |
4683 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4684 | cat >>confdefs.h <<_ACEOF | |
4685 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4686 | _ACEOF | |
4687 | ||
4688 | fi | |
4689 | ||
4690 | done | |
4691 | ||
4692 | ac_ext=cc | |
4693 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4694 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4695 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4696 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4697 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
4698 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
4699 | if test -z "$CXXCPP"; then | |
4700 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
4701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4702 | else | |
4703 | # Double quotes because CXXCPP needs to be expanded | |
4704 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
4705 | do | |
4706 | ac_preproc_ok=false | |
4707 | for ac_cxx_preproc_warn_flag in '' yes | |
4708 | do | |
4709 | # Use a header file that comes with gcc, so configuring glibc | |
4710 | # with a fresh cross-compiler works. | |
4711 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4712 | # not just through cpp. "Syntax error" is here to catch this case. | |
4713 | cat >conftest.$ac_ext <<_ACEOF | |
4714 | #line $LINENO "configure" | |
4715 | #include "confdefs.h" | |
4716 | #include <assert.h> | |
4717 | Syntax error | |
4718 | _ACEOF | |
4719 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4720 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4721 | ac_status=$? | |
4722 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4723 | rm -f conftest.er1 | |
4724 | cat conftest.err >&5 | |
4725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4726 | (exit $ac_status); } >/dev/null; then | |
4727 | if test -s conftest.err; then | |
4728 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
4729 | else | |
4730 | ac_cpp_err= | |
4731 | fi | |
4732 | else | |
4733 | ac_cpp_err=yes | |
4734 | fi | |
4735 | if test -z "$ac_cpp_err"; then | |
4736 | : | |
4737 | else | |
4738 | echo "$as_me: failed program was:" >&5 | |
4739 | cat conftest.$ac_ext >&5 | |
4740 | # Broken: fails on valid input. | |
4741 | continue | |
4742 | fi | |
4743 | rm -f conftest.err conftest.$ac_ext | |
4744 | ||
4745 | # OK, works on sane cases. Now check whether non-existent headers | |
4746 | # can be detected and how. | |
4747 | cat >conftest.$ac_ext <<_ACEOF | |
4748 | #line $LINENO "configure" | |
4749 | #include "confdefs.h" | |
4750 | #include <ac_nonexistent.h> | |
4751 | _ACEOF | |
4752 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4753 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4754 | ac_status=$? | |
4755 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4756 | rm -f conftest.er1 | |
4757 | cat conftest.err >&5 | |
4758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4759 | (exit $ac_status); } >/dev/null; then | |
4760 | if test -s conftest.err; then | |
4761 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
4762 | else | |
4763 | ac_cpp_err= | |
4764 | fi | |
4765 | else | |
4766 | ac_cpp_err=yes | |
4767 | fi | |
4768 | if test -z "$ac_cpp_err"; then | |
4769 | # Broken: success on invalid input. | |
4770 | continue | |
4771 | else | |
4772 | echo "$as_me: failed program was:" >&5 | |
4773 | cat conftest.$ac_ext >&5 | |
4774 | # Passes both tests. | |
4775 | ac_preproc_ok=: | |
4776 | break | |
4777 | fi | |
4778 | rm -f conftest.err conftest.$ac_ext | |
4779 | ||
4780 | done | |
4781 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4782 | rm -f conftest.err conftest.$ac_ext | |
4783 | if $ac_preproc_ok; then | |
4784 | break | |
4785 | fi | |
4786 | ||
4787 | done | |
4788 | ac_cv_prog_CXXCPP=$CXXCPP | |
4789 | ||
4790 | fi | |
4791 | CXXCPP=$ac_cv_prog_CXXCPP | |
4792 | else | |
4793 | ac_cv_prog_CXXCPP=$CXXCPP | |
4794 | fi | |
4795 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
4796 | echo "${ECHO_T}$CXXCPP" >&6 | |
4797 | ac_preproc_ok=false | |
4798 | for ac_cxx_preproc_warn_flag in '' yes | |
4799 | do | |
4800 | # Use a header file that comes with gcc, so configuring glibc | |
4801 | # with a fresh cross-compiler works. | |
4802 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4803 | # not just through cpp. "Syntax error" is here to catch this case. | |
4804 | cat >conftest.$ac_ext <<_ACEOF | |
4805 | #line $LINENO "configure" | |
4806 | #include "confdefs.h" | |
4807 | #include <assert.h> | |
4808 | Syntax error | |
4809 | _ACEOF | |
4810 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4811 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4812 | ac_status=$? | |
4813 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4814 | rm -f conftest.er1 | |
4815 | cat conftest.err >&5 | |
4816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4817 | (exit $ac_status); } >/dev/null; then | |
4818 | if test -s conftest.err; then | |
4819 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
4820 | else | |
4821 | ac_cpp_err= | |
4822 | fi | |
4823 | else | |
4824 | ac_cpp_err=yes | |
4825 | fi | |
4826 | if test -z "$ac_cpp_err"; then | |
4827 | : | |
4828 | else | |
4829 | echo "$as_me: failed program was:" >&5 | |
4830 | cat conftest.$ac_ext >&5 | |
4831 | # Broken: fails on valid input. | |
4832 | continue | |
4833 | fi | |
4834 | rm -f conftest.err conftest.$ac_ext | |
4835 | ||
4836 | # OK, works on sane cases. Now check whether non-existent headers | |
4837 | # can be detected and how. | |
4838 | cat >conftest.$ac_ext <<_ACEOF | |
4839 | #line $LINENO "configure" | |
4840 | #include "confdefs.h" | |
4841 | #include <ac_nonexistent.h> | |
4842 | _ACEOF | |
4843 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4844 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4845 | ac_status=$? | |
4846 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4847 | rm -f conftest.er1 | |
4848 | cat conftest.err >&5 | |
4849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4850 | (exit $ac_status); } >/dev/null; then | |
4851 | if test -s conftest.err; then | |
4852 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
4853 | else | |
4854 | ac_cpp_err= | |
4855 | fi | |
4856 | else | |
4857 | ac_cpp_err=yes | |
4858 | fi | |
4859 | if test -z "$ac_cpp_err"; then | |
4860 | # Broken: success on invalid input. | |
4861 | continue | |
4862 | else | |
4863 | echo "$as_me: failed program was:" >&5 | |
4864 | cat conftest.$ac_ext >&5 | |
4865 | # Passes both tests. | |
4866 | ac_preproc_ok=: | |
4867 | break | |
4868 | fi | |
4869 | rm -f conftest.err conftest.$ac_ext | |
4870 | ||
4871 | done | |
4872 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4873 | rm -f conftest.err conftest.$ac_ext | |
4874 | if $ac_preproc_ok; then | |
4875 | : | |
4876 | else | |
4877 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5 | |
4878 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;} | |
4879 | { (exit 1); exit 1; }; } | |
4880 | fi | |
4881 | ||
4882 | ac_ext=cc | |
4883 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4884 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4885 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4886 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4887 | ||
4888 | ||
4889 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
4890 | ||
4891 | # find the maximum length of command line arguments | |
4892 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
4893 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
4894 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
4895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4896 | else | |
4897 | i=0 | |
4898 | testring="ABCD" | |
4899 | ||
4900 | case $host_os in | |
4901 | msdosdjgpp*) | |
4902 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4903 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4904 | # during glob expansion). Even if it were fixed, the result of this | |
4905 | # check would be larger than it should be. | |
4906 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4907 | ;; | |
4908 | ||
4909 | gnu*) | |
4910 | # Under GNU Hurd, this test is not required because there is | |
4911 | # no limit to the length of command line arguments. | |
4912 | # Libtool will interpret -1 as no limit whatsoever | |
4913 | lt_cv_sys_max_cmd_len=-1; | |
4914 | ;; | |
4915 | ||
4916 | *) | |
4917 | # If test is not a shell built-in, we'll probably end up computing a | |
4918 | # maximum length that is only half of the actual maximum length, but | |
4919 | # we can't tell. | |
4920 | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ | |
4921 | = "XX$testring") >/dev/null 2>&1 && | |
4922 | new_result=`expr "X$testring" : ".*" 2>&1` && | |
4923 | lt_cv_sys_max_cmd_len=$new_result && | |
4924 | test $i != 17 # 1/2 MB should be enough | |
4925 | do | |
4926 | i=`expr $i + 1` | |
4927 | testring=$testring$testring | |
4928 | done | |
4929 | testring= | |
4930 | # Add a significant safety factor because C++ compilers can tack on massive | |
4931 | # amounts of additional arguments before passing them to the linker. | |
4932 | # It appears as though 1/2 is a usable value. | |
4933 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4934 | ;; | |
4935 | esac | |
4936 | ||
4937 | fi | |
4938 | ||
4939 | if test -n $lt_cv_sys_max_cmd_len ; then | |
4940 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
4941 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
4942 | else | |
4943 | echo "$as_me:$LINENO: result: none" >&5 | |
4944 | echo "${ECHO_T}none" >&6 | |
4945 | fi | |
4946 | ||
4947 | ||
4948 | ||
4949 | ||
4950 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
4951 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
4952 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
4953 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
4954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4955 | else | |
4956 | ||
4957 | # These are sane defaults that work on at least a few old systems. | |
4958 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
4959 | ||
4960 | # Character class describing NM global symbol codes. | |
4961 | symcode='[BCDEGRST]' | |
4962 | ||
4963 | # Regexp to match symbols that can be accessed directly from C. | |
4964 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
4965 | ||
4966 | # Transform the above into a raw symbol and a C symbol. | |
4967 | symxfrm='\1 \2\3 \3' | |
4968 | ||
4969 | # Transform an extracted symbol line into a proper C declaration | |
4970 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | |
4971 | ||
4972 | # Transform an extracted symbol line into symbol name and symbol address | |
4973 | 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'" | |
4974 | ||
4975 | # Define system-specific variables. | |
4976 | case $host_os in | |
4977 | aix*) | |
4978 | symcode='[BCDT]' | |
4979 | ;; | |
4980 | cygwin* | mingw* | pw32*) | |
4981 | symcode='[ABCDGISTW]' | |
4982 | ;; | |
4983 | hpux*) # Its linker distinguishes data from code symbols | |
4984 | if test "$host_cpu" = ia64; then | |
4985 | symcode='[ABCDEGRST]' | |
4986 | fi | |
4987 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
4988 | 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'" | |
4989 | ;; | |
4990 | irix* | nonstopux*) | |
4991 | symcode='[BCDEGRST]' | |
4992 | ;; | |
4993 | solaris* | sysv5*) | |
4994 | symcode='[BDT]' | |
4995 | ;; | |
4996 | sysv4) | |
4997 | symcode='[DFNSTU]' | |
4998 | ;; | |
4999 | esac | |
5000 | ||
5001 | # Handle CRLF in mingw tool chain | |
5002 | opt_cr= | |
5003 | case $host_os in | |
5004 | mingw*) | |
5005 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5006 | ;; | |
5007 | esac | |
5008 | ||
5009 | # If we're using GNU nm, then use its standard symbol codes. | |
5010 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then | |
5011 | symcode='[ABCDGISTW]' | |
5012 | fi | |
5013 | ||
5014 | # Try without a prefix undercore, then with it. | |
5015 | for ac_symprfx in "" "_"; do | |
5016 | ||
5017 | # Write the raw and C identifiers. | |
5018 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | |
5019 | ||
5020 | # Check to see that the pipe works correctly. | |
5021 | pipe_works=no | |
5022 | ||
5023 | rm -f conftest* | |
5024 | cat > conftest.$ac_ext <<EOF | |
5025 | #ifdef __cplusplus | |
5026 | extern "C" { | |
5027 | #endif | |
5028 | char nm_test_var; | |
5029 | void nm_test_func(){} | |
5030 | #ifdef __cplusplus | |
5031 | } | |
5032 | #endif | |
5033 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5034 | EOF | |
5035 | ||
5036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5037 | (eval $ac_compile) 2>&5 | |
5038 | ac_status=$? | |
5039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5040 | (exit $ac_status); }; then | |
5041 | # Now try to grab the symbols. | |
5042 | nlist=conftest.nm | |
5043 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5044 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5045 | ac_status=$? | |
5046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5047 | (exit $ac_status); } && test -s "$nlist"; then | |
5048 | # Try sorting and uniquifying the output. | |
5049 | if sort "$nlist" | uniq > "$nlist"T; then | |
5050 | mv -f "$nlist"T "$nlist" | |
5051 | else | |
5052 | rm -f "$nlist"T | |
5053 | fi | |
5054 | ||
5055 | # Make sure that we snagged all the symbols we need. | |
5056 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then | |
5057 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then | |
5058 | cat <<EOF > conftest.$ac_ext | |
5059 | #ifdef __cplusplus | |
5060 | extern "C" { | |
5061 | #endif | |
5062 | ||
5063 | EOF | |
5064 | # Now generate the symbol file. | |
5065 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | |
5066 | ||
5067 | cat <<EOF >> conftest.$ac_ext | |
5068 | #if defined (__STDC__) && __STDC__ | |
5069 | # define lt_ptr_t void * | |
5070 | #else | |
5071 | # define lt_ptr_t char * | |
5072 | # define const | |
5073 | #endif | |
5074 | ||
5075 | /* The mapping between symbol names and symbols. */ | |
5076 | const struct { | |
5077 | const char *name; | |
5078 | lt_ptr_t address; | |
5079 | } | |
5080 | lt_preloaded_symbols[] = | |
5081 | { | |
5082 | EOF | |
5083 | sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | |
5084 | cat <<\EOF >> conftest.$ac_ext | |
5085 | {0, (lt_ptr_t) 0} | |
5086 | }; | |
5087 | ||
5088 | #ifdef __cplusplus | |
5089 | } | |
5090 | #endif | |
5091 | EOF | |
5092 | # Now try linking the two files. | |
5093 | mv conftest.$ac_objext conftstm.$ac_objext | |
5094 | lt_save_LIBS="$LIBS" | |
5095 | lt_save_CFLAGS="$CFLAGS" | |
5096 | LIBS="conftstm.$ac_objext" | |
5097 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5098 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5099 | (eval $ac_link) 2>&5 | |
5100 | ac_status=$? | |
5101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5102 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
5103 | pipe_works=yes | |
5104 | fi | |
5105 | LIBS="$lt_save_LIBS" | |
5106 | CFLAGS="$lt_save_CFLAGS" | |
5107 | else | |
5108 | echo "cannot find nm_test_func in $nlist" >&5 | |
5109 | fi | |
5110 | else | |
5111 | echo "cannot find nm_test_var in $nlist" >&5 | |
5112 | fi | |
5113 | else | |
5114 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5115 | fi | |
5116 | else | |
5117 | echo "$progname: failed program was:" >&5 | |
5118 | cat conftest.$ac_ext >&5 | |
5119 | fi | |
5120 | rm -f conftest* conftst* | |
5121 | ||
5122 | # Do not use the global_symbol_pipe unless it works. | |
5123 | if test "$pipe_works" = yes; then | |
5124 | break | |
5125 | else | |
5126 | lt_cv_sys_global_symbol_pipe= | |
5127 | fi | |
5128 | done | |
5129 | ||
5130 | fi | |
5131 | ||
5132 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5133 | lt_cv_sys_global_symbol_to_cdecl= | |
5134 | fi | |
5135 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5136 | echo "$as_me:$LINENO: result: failed" >&5 | |
5137 | echo "${ECHO_T}failed" >&6 | |
5138 | else | |
5139 | echo "$as_me:$LINENO: result: ok" >&5 | |
5140 | echo "${ECHO_T}ok" >&6 | |
5141 | fi | |
5142 | ||
5143 | echo "$as_me:$LINENO: checking for objdir" >&5 | |
5144 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
5145 | if test "${lt_cv_objdir+set}" = set; then | |
5146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5147 | else | |
5148 | rm -f .libs 2>/dev/null | |
5149 | mkdir .libs 2>/dev/null | |
5150 | if test -d .libs; then | |
5151 | lt_cv_objdir=.libs | |
5152 | else | |
5153 | # MS-DOS does not allow filenames that begin with a dot. | |
5154 | lt_cv_objdir=_libs | |
5155 | fi | |
5156 | rmdir .libs 2>/dev/null | |
5157 | fi | |
5158 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
5159 | echo "${ECHO_T}$lt_cv_objdir" >&6 | |
5160 | objdir=$lt_cv_objdir | |
5161 | ||
5162 | ||
5163 | ||
5164 | ||
5165 | ||
5166 | case $host_os in | |
5167 | aix3*) | |
5168 | # AIX sometimes has problems with the GCC collect2 program. For some | |
5169 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
5170 | # vanish in a puff of smoke. | |
5171 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
5172 | COLLECT_NAMES= | |
5173 | export COLLECT_NAMES | |
5174 | fi | |
5175 | ;; | |
5176 | esac | |
5177 | ||
5178 | # Sed substitution that helps us do robust quoting. It backslashifies | |
5179 | # metacharacters that are still active within double-quoted strings. | |
5180 | Xsed='sed -e s/^X//' | |
5181 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | |
5182 | ||
5183 | # Same as above, but do not quote variable references. | |
5184 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | |
5185 | ||
5186 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5187 | # double_quote_subst'ed string. | |
5188 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5189 | ||
5190 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5191 | no_glob_subst='s/\*/\\\*/g' | |
5192 | ||
5193 | # Constants: | |
5194 | rm="rm -f" | |
5195 | ||
5196 | # Global variables: | |
5197 | default_ofile=libtool | |
5198 | can_build_shared=yes | |
5199 | ||
5200 | # All known linkers require a `.a' archive for static linking (except M$VC, | |
5201 | # which needs '.lib'). | |
5202 | libext=a | |
5203 | ltmain="$ac_aux_dir/ltmain.sh" | |
5204 | ofile="$default_ofile" | |
5205 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
5206 | ||
5207 | if test -n "$ac_tool_prefix"; then | |
5208 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5209 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5210 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5212 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5214 | else | |
5215 | if test -n "$RANLIB"; then | |
5216 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5217 | else | |
5218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5219 | for as_dir in $PATH | |
5220 | do | |
5221 | IFS=$as_save_IFS | |
5222 | test -z "$as_dir" && as_dir=. | |
5223 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5224 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5225 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5226 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5227 | break 2 | |
5228 | fi | |
5229 | done | |
5230 | done | |
5231 | ||
5232 | fi | |
5233 | fi | |
5234 | RANLIB=$ac_cv_prog_RANLIB | |
5235 | if test -n "$RANLIB"; then | |
5236 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5237 | echo "${ECHO_T}$RANLIB" >&6 | |
5238 | else | |
5239 | echo "$as_me:$LINENO: result: no" >&5 | |
5240 | echo "${ECHO_T}no" >&6 | |
5241 | fi | |
5242 | ||
5243 | fi | |
5244 | if test -z "$ac_cv_prog_RANLIB"; then | |
5245 | ac_ct_RANLIB=$RANLIB | |
5246 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5247 | set dummy ranlib; ac_word=$2 | |
5248 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5249 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5250 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5252 | else | |
5253 | if test -n "$ac_ct_RANLIB"; then | |
5254 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5255 | else | |
5256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5257 | for as_dir in $PATH | |
5258 | do | |
5259 | IFS=$as_save_IFS | |
5260 | test -z "$as_dir" && as_dir=. | |
5261 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5262 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5263 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5264 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5265 | break 2 | |
5266 | fi | |
5267 | done | |
5268 | done | |
5269 | ||
5270 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
5271 | fi | |
5272 | fi | |
5273 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5274 | if test -n "$ac_ct_RANLIB"; then | |
5275 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5276 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
5277 | else | |
5278 | echo "$as_me:$LINENO: result: no" >&5 | |
5279 | echo "${ECHO_T}no" >&6 | |
5280 | fi | |
5281 | ||
5282 | RANLIB=$ac_ct_RANLIB | |
5283 | else | |
5284 | RANLIB="$ac_cv_prog_RANLIB" | |
5285 | fi | |
5286 | ||
5287 | if test -n "$ac_tool_prefix"; then | |
5288 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5289 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5290 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5291 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5292 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
5293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5294 | else | |
5295 | if test -n "$STRIP"; then | |
5296 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5297 | else | |
5298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5299 | for as_dir in $PATH | |
5300 | do | |
5301 | IFS=$as_save_IFS | |
5302 | test -z "$as_dir" && as_dir=. | |
5303 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5304 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5305 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5306 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5307 | break 2 | |
5308 | fi | |
5309 | done | |
5310 | done | |
5311 | ||
5312 | fi | |
5313 | fi | |
5314 | STRIP=$ac_cv_prog_STRIP | |
5315 | if test -n "$STRIP"; then | |
5316 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
5317 | echo "${ECHO_T}$STRIP" >&6 | |
5318 | else | |
5319 | echo "$as_me:$LINENO: result: no" >&5 | |
5320 | echo "${ECHO_T}no" >&6 | |
5321 | fi | |
5322 | ||
5323 | fi | |
5324 | if test -z "$ac_cv_prog_STRIP"; then | |
5325 | ac_ct_STRIP=$STRIP | |
5326 | # Extract the first word of "strip", so it can be a program name with args. | |
5327 | set dummy strip; ac_word=$2 | |
5328 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5329 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5330 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
5331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5332 | else | |
5333 | if test -n "$ac_ct_STRIP"; then | |
5334 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5335 | else | |
5336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5337 | for as_dir in $PATH | |
5338 | do | |
5339 | IFS=$as_save_IFS | |
5340 | test -z "$as_dir" && as_dir=. | |
5341 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5342 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5343 | ac_cv_prog_ac_ct_STRIP="strip" | |
5344 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5345 | break 2 | |
5346 | fi | |
5347 | done | |
5348 | done | |
5349 | ||
5350 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
5351 | fi | |
5352 | fi | |
5353 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5354 | if test -n "$ac_ct_STRIP"; then | |
5355 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
5356 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
5357 | else | |
5358 | echo "$as_me:$LINENO: result: no" >&5 | |
5359 | echo "${ECHO_T}no" >&6 | |
5360 | fi | |
5361 | ||
5362 | STRIP=$ac_ct_STRIP | |
5363 | else | |
5364 | STRIP="$ac_cv_prog_STRIP" | |
5365 | fi | |
5366 | ||
5367 | ||
5368 | old_CC="$CC" | |
5369 | old_CFLAGS="$CFLAGS" | |
5370 | ||
5371 | # Set sane defaults for various variables | |
5372 | test -z "$AR" && AR=ar | |
5373 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
5374 | test -z "$AS" && AS=as | |
5375 | test -z "$CC" && CC=cc | |
5376 | test -z "$LTCC" && LTCC=$CC | |
5377 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
5378 | test -z "$LD" && LD=ld | |
5379 | test -z "$LN_S" && LN_S="ln -s" | |
5380 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
5381 | test -z "$NM" && NM=nm | |
5382 | test -z "$SED" && SED=sed | |
5383 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5384 | test -z "$RANLIB" && RANLIB=: | |
5385 | test -z "$STRIP" && STRIP=: | |
5386 | test -z "$ac_objext" && ac_objext=o | |
5387 | ||
5388 | # Determine commands to create old-style static archives. | |
5389 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
5390 | old_postinstall_cmds='chmod 644 $oldlib' | |
5391 | old_postuninstall_cmds= | |
5392 | ||
5393 | if test -n "$RANLIB"; then | |
5394 | case $host_os in | |
5395 | openbsd*) | |
5396 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | |
5397 | ;; | |
5398 | *) | |
5399 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | |
5400 | ;; | |
5401 | esac | |
5402 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
5403 | fi | |
5404 | ||
5405 | # Only perform the check for file, if the check method requires it | |
5406 | case $deplibs_check_method in | |
5407 | file_magic*) | |
5408 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
5409 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
5410 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
5411 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
5412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5413 | else | |
5414 | case $MAGIC_CMD in | |
5415 | [\\/*] | ?:[\\/]*) | |
5416 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
5417 | ;; | |
5418 | *) | |
5419 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
5420 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5421 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
5422 | for ac_dir in $ac_dummy; do | |
5423 | IFS="$lt_save_ifs" | |
5424 | test -z "$ac_dir" && ac_dir=. | |
5425 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
5426 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
5427 | if test -n "$file_magic_test_file"; then | |
5428 | case $deplibs_check_method in | |
5429 | "file_magic "*) | |
5430 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
5431 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
5432 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
5433 | egrep "$file_magic_regex" > /dev/null; then | |
5434 | : | |
5435 | else | |
5436 | cat <<EOF 1>&2 | |
5437 | ||
5438 | *** Warning: the command libtool uses to detect shared libraries, | |
5439 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
5440 | *** The result is that libtool may fail to recognize shared libraries | |
5441 | *** as such. This will affect the creation of libtool libraries that | |
5442 | *** depend on shared libraries, but programs linked with such libtool | |
5443 | *** libraries will work regardless of this problem. Nevertheless, you | |
5444 | *** may want to report the problem to your system manager and/or to | |
5445 | *** bug-libtool@gnu.org | |
5446 | ||
5447 | EOF | |
5448 | fi ;; | |
5449 | esac | |
5450 | fi | |
5451 | break | |
5452 | fi | |
5453 | done | |
5454 | IFS="$lt_save_ifs" | |
5455 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
5456 | ;; | |
5457 | esac | |
5458 | fi | |
5459 | ||
5460 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
5461 | if test -n "$MAGIC_CMD"; then | |
5462 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
5463 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
5464 | else | |
5465 | echo "$as_me:$LINENO: result: no" >&5 | |
5466 | echo "${ECHO_T}no" >&6 | |
5467 | fi | |
5468 | ||
5469 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
5470 | if test -n "$ac_tool_prefix"; then | |
5471 | echo "$as_me:$LINENO: checking for file" >&5 | |
5472 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
5473 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
5474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5475 | else | |
5476 | case $MAGIC_CMD in | |
5477 | [\\/*] | ?:[\\/]*) | |
5478 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
5479 | ;; | |
5480 | *) | |
5481 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
5482 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5483 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
5484 | for ac_dir in $ac_dummy; do | |
5485 | IFS="$lt_save_ifs" | |
5486 | test -z "$ac_dir" && ac_dir=. | |
5487 | if test -f $ac_dir/file; then | |
5488 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
5489 | if test -n "$file_magic_test_file"; then | |
5490 | case $deplibs_check_method in | |
5491 | "file_magic "*) | |
5492 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
5493 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
5494 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
5495 | egrep "$file_magic_regex" > /dev/null; then | |
5496 | : | |
5497 | else | |
5498 | cat <<EOF 1>&2 | |
5499 | ||
5500 | *** Warning: the command libtool uses to detect shared libraries, | |
5501 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
5502 | *** The result is that libtool may fail to recognize shared libraries | |
5503 | *** as such. This will affect the creation of libtool libraries that | |
5504 | *** depend on shared libraries, but programs linked with such libtool | |
5505 | *** libraries will work regardless of this problem. Nevertheless, you | |
5506 | *** may want to report the problem to your system manager and/or to | |
5507 | *** bug-libtool@gnu.org | |
5508 | ||
5509 | EOF | |
5510 | fi ;; | |
5511 | esac | |
5512 | fi | |
5513 | break | |
5514 | fi | |
5515 | done | |
5516 | IFS="$lt_save_ifs" | |
5517 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
5518 | ;; | |
5519 | esac | |
5520 | fi | |
5521 | ||
5522 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
5523 | if test -n "$MAGIC_CMD"; then | |
5524 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
5525 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
5526 | else | |
5527 | echo "$as_me:$LINENO: result: no" >&5 | |
5528 | echo "${ECHO_T}no" >&6 | |
5529 | fi | |
5530 | ||
5531 | else | |
5532 | MAGIC_CMD=: | |
5533 | fi | |
5534 | fi | |
5535 | ||
5536 | fi | |
5537 | ;; | |
5538 | esac | |
5539 | ||
5540 | enable_dlopen=no | |
5541 | enable_win32_dll=no | |
5542 | ||
5543 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
5544 | if test "${enable_libtool_lock+set}" = set; then | |
5545 | enableval="$enable_libtool_lock" | |
5546 | ||
5547 | fi; | |
5548 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5549 | ||
5550 | ||
5551 | # Check whether --with-pic or --without-pic was given. | |
5552 | if test "${with_pic+set}" = set; then | |
5553 | withval="$with_pic" | |
5554 | pic_mode="$withval" | |
5555 | else | |
5556 | pic_mode=default | |
5557 | fi; | |
5558 | test -z "$pic_mode" && pic_mode=default | |
5559 | ||
5560 | # Use C for the default configuration in the libtool script | |
5561 | tagname= | |
5562 | lt_save_CC="$CC" | |
5563 | ac_ext=c | |
5564 | ac_cpp='$CPP $CPPFLAGS' | |
5565 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5566 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5567 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5568 | ||
5569 | ||
5570 | # Source file extension for C test sources. | |
5571 | ac_ext=c | |
5572 | ||
5573 | # Object file extension for compiled C test sources. | |
5574 | objext=o | |
5575 | objext=$objext | |
5576 | ||
5577 | # Code to be used in simple compile tests | |
5578 | lt_simple_compile_test_code="int some_variable = 0;" | |
5579 | ||
5580 | # Code to be used in simple link tests | |
5581 | lt_simple_link_test_code='main(){return(0);}' | |
5582 | ||
5583 | ||
5584 | # If no C compiler was specified, use CC. | |
5585 | LTCC=${LTCC-"$CC"} | |
5586 | ||
5587 | # Allow CC to be a program name with arguments. | |
5588 | set dummy $CC | |
5589 | compiler="$2" | |
5590 | ||
5591 | ||
5592 | # | |
5593 | # Check for any special shared library compilation flags. | |
5594 | # | |
5595 | lt_prog_cc_shlib= | |
5596 | if test "$GCC" = no; then | |
5597 | case $host_os in | |
5598 | sco3.2v5*) | |
5599 | lt_prog_cc_shlib='-belf' | |
5600 | ;; | |
5601 | esac | |
5602 | fi | |
5603 | if test -n "$lt_prog_cc_shlib"; then | |
5604 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 | |
5605 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} | |
5606 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : | |
5607 | else | |
5608 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 | |
5609 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} | |
5610 | lt_cv_prog_cc_can_build_shared=no | |
5611 | fi | |
5612 | fi | |
5613 | ||
5614 | ||
5615 | # | |
5616 | # Check to make sure the static flag actually works. | |
5617 | # | |
5618 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 | |
5619 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 | |
5620 | if test "${lt_prog_compiler_static_works+set}" = set; then | |
5621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5622 | else | |
5623 | lt_prog_compiler_static_works=no | |
5624 | save_LDFLAGS="$LDFLAGS" | |
5625 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" | |
5626 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
5627 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
5628 | # The compiler can only warn and ignore the option if not recognized | |
5629 | # So say no if there are warnings | |
5630 | if test -s conftest.err; then | |
5631 | # Append any errors to the config.log. | |
5632 | cat conftest.err 1>&5 | |
5633 | else | |
5634 | lt_prog_compiler_static_works=yes | |
5635 | fi | |
5636 | fi | |
5637 | $rm conftest* | |
5638 | LDFLAGS="$save_LDFLAGS" | |
5639 | ||
5640 | fi | |
5641 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
5642 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | |
5643 | ||
5644 | if test x"$lt_prog_compiler_static_works" = xyes; then | |
5645 | : | |
5646 | else | |
5647 | lt_prog_compiler_static= | |
5648 | fi | |
5649 | ||
5650 | ||
5651 | ||
5652 | ||
5653 | lt_prog_compiler_no_builtin_flag= | |
5654 | ||
5655 | if test "$GCC" = yes; then | |
5656 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
5657 | ||
5658 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
5659 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
5660 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
5661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5662 | else | |
5663 | lt_cv_prog_compiler_rtti_exceptions=no | |
5664 | ac_outfile=conftest.$ac_objext | |
5665 | save_CFLAGS="$CFLAGS" | |
5666 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" | |
5667 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
5668 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
5669 | # The compiler can only warn and ignore the option if not recognized | |
5670 | # So say no if there are warnings | |
5671 | if test -s conftest.err; then | |
5672 | # Append any errors to the config.log. | |
5673 | cat conftest.err 1>&5 | |
5674 | else | |
5675 | lt_cv_prog_compiler_rtti_exceptions=yes | |
5676 | fi | |
5677 | fi | |
5678 | $rm conftest* | |
5679 | CFLAGS="$save_CFLAGS" | |
5680 | ||
5681 | fi | |
5682 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
5683 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
5684 | ||
5685 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
5686 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
5687 | else | |
5688 | : | |
5689 | fi | |
5690 | ||
5691 | fi | |
5692 | ||
5693 | lt_prog_compiler_wl= | |
5694 | lt_prog_compiler_pic= | |
5695 | lt_prog_compiler_static= | |
5696 | ||
5697 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
5698 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
5699 | ||
5700 | if test "$GCC" = yes; then | |
5701 | lt_prog_compiler_wl='-Wl,' | |
5702 | lt_prog_compiler_static='-static' | |
5703 | ||
5704 | case $host_os in | |
5705 | aix*) | |
5706 | # All AIX code is PIC. | |
5707 | if test "$host_cpu" = ia64; then | |
5708 | # AIX 5 now supports IA64 processor | |
5709 | lt_prog_compiler_static='-Bstatic' | |
5710 | fi | |
5711 | ;; | |
5712 | ||
5713 | amigaos*) | |
5714 | # FIXME: we need at least 68020 code to build shared libraries, but | |
5715 | # adding the `-m68020' flag to GCC prevents building anything better, | |
5716 | # like `-m68040'. | |
5717 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
5718 | ;; | |
5719 | ||
5720 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
5721 | # PIC is the default for these OSes. | |
5722 | ;; | |
5723 | ||
5724 | mingw* | pw32* | os2*) | |
5725 | # This hack is so that the source file can tell whether it is being | |
5726 | # built for inclusion in a dll (and should export symbols for example). | |
5727 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
5728 | ;; | |
5729 | ||
5730 | darwin* | rhapsody*) | |
5731 | # PIC is the default on this platform | |
5732 | # Common symbols not allowed in MH_DYLIB files | |
5733 | lt_prog_compiler_pic='-fno-common' | |
5734 | ;; | |
5735 | ||
5736 | msdosdjgpp*) | |
5737 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
5738 | # on systems that don't support them. | |
5739 | lt_prog_compiler_can_build_shared=no | |
5740 | enable_shared=no | |
5741 | ;; | |
5742 | ||
5743 | sysv4*MP*) | |
5744 | if test -d /usr/nec; then | |
5745 | lt_prog_compiler_pic=-Kconform_pic | |
5746 | fi | |
5747 | ;; | |
5748 | ||
5749 | hpux*) | |
5750 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. | |
5751 | if test "$host_cpu" != ia64; then | |
5752 | lt_prog_compiler_pic='-fPIC' | |
5753 | fi | |
5754 | ;; | |
5755 | ||
5756 | *) | |
5757 | lt_prog_compiler_pic='-fPIC' | |
5758 | ;; | |
5759 | esac | |
5760 | else | |
5761 | # PORTME Check for flag to pass linker flags through the system compiler. | |
5762 | case $host_os in | |
5763 | aix*) | |
5764 | lt_prog_compiler_wl='-Wl,' | |
5765 | if test "$host_cpu" = ia64; then | |
5766 | # AIX 5 now supports IA64 processor | |
5767 | lt_prog_compiler_static='-Bstatic' | |
5768 | else | |
5769 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
5770 | fi | |
5771 | ;; | |
5772 | ||
5773 | mingw* | pw32* | os2*) | |
5774 | # This hack is so that the source file can tell whether it is being | |
5775 | # built for inclusion in a dll (and should export symbols for example). | |
5776 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
5777 | ;; | |
5778 | ||
5779 | hpux9* | hpux10* | hpux11*) | |
5780 | lt_prog_compiler_wl='-Wl,' | |
5781 | if test "$host_cpu" != ia64; then | |
5782 | lt_prog_compiler_pic='+Z' | |
5783 | fi | |
5784 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
5785 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
5786 | ;; | |
5787 | ||
5788 | irix5* | irix6* | nonstopux*) | |
5789 | lt_prog_compiler_wl='-Wl,' | |
5790 | # PIC (with -KPIC) is the default. | |
5791 | lt_prog_compiler_static='-non_shared' | |
5792 | ;; | |
5793 | ||
5794 | newsos6) | |
5795 | lt_prog_compiler_pic='-KPIC' | |
5796 | lt_prog_compiler_static='-Bstatic' | |
5797 | ;; | |
5798 | ||
5799 | osf3* | osf4* | osf5*) | |
5800 | lt_prog_compiler_wl='-Wl,' | |
5801 | # All OSF/1 code is PIC. | |
5802 | lt_prog_compiler_static='-non_shared' | |
5803 | ;; | |
5804 | ||
5805 | sco3.2v5*) | |
5806 | lt_prog_compiler_pic='-Kpic' | |
5807 | lt_prog_compiler_static='-dn' | |
5808 | ;; | |
5809 | ||
5810 | solaris*) | |
5811 | lt_prog_compiler_wl='-Wl,' | |
5812 | lt_prog_compiler_pic='-KPIC' | |
5813 | lt_prog_compiler_static='-Bstatic' | |
5814 | ;; | |
5815 | ||
5816 | sunos4*) | |
5817 | lt_prog_compiler_wl='-Qoption ld ' | |
5818 | lt_prog_compiler_pic='-PIC' | |
5819 | lt_prog_compiler_static='-Bstatic' | |
5820 | ;; | |
5821 | ||
5822 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
5823 | if test "x$host_vendor" = xsni; then | |
5824 | lt_prog_compiler_wl='-LD' | |
5825 | else | |
5826 | lt_prog_compiler_wl='-Wl,' | |
5827 | fi | |
5828 | lt_prog_compiler_pic='-KPIC' | |
5829 | lt_prog_compiler_static='-Bstatic' | |
5830 | ;; | |
5831 | ||
5832 | sysv4*MP*) | |
5833 | if test -d /usr/nec ;then | |
5834 | lt_prog_compiler_pic='-Kconform_pic' | |
5835 | lt_prog_compiler_static='-Bstatic' | |
5836 | fi | |
5837 | ;; | |
5838 | ||
5839 | uts4*) | |
5840 | lt_prog_compiler_pic='-pic' | |
5841 | lt_prog_compiler_static='-Bstatic' | |
5842 | ;; | |
5843 | ||
5844 | *) | |
5845 | lt_prog_compiler_can_build_shared=no | |
5846 | ;; | |
5847 | esac | |
5848 | fi | |
5849 | ||
5850 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
5851 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
5852 | ||
5853 | # | |
5854 | # Check to make sure the PIC flag actually works. | |
5855 | # | |
5856 | if test -n "$lt_prog_compiler_pic"; then | |
5857 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
5858 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
5859 | if test "${lt_prog_compiler_pic_works+set}" = set; then | |
5860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5861 | else | |
5862 | lt_prog_compiler_pic_works=no | |
5863 | ac_outfile=conftest.$ac_objext | |
5864 | save_CFLAGS="$CFLAGS" | |
5865 | CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC" | |
5866 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
5867 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
5868 | # The compiler can only warn and ignore the option if not recognized | |
5869 | # So say no if there are warnings | |
5870 | if test -s conftest.err; then | |
5871 | # Append any errors to the config.log. | |
5872 | cat conftest.err 1>&5 | |
5873 | else | |
5874 | lt_prog_compiler_pic_works=yes | |
5875 | fi | |
5876 | fi | |
5877 | $rm conftest* | |
5878 | CFLAGS="$save_CFLAGS" | |
5879 | ||
5880 | fi | |
5881 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
5882 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | |
5883 | ||
5884 | if test x"$lt_prog_compiler_pic_works" = xyes; then | |
5885 | case $lt_prog_compiler_pic in | |
5886 | "" | " "*) ;; | |
5887 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
5888 | esac | |
5889 | else | |
5890 | lt_prog_compiler_pic= | |
5891 | lt_prog_compiler_can_build_shared=no | |
5892 | fi | |
5893 | ||
5894 | fi | |
5895 | case "$host_os" in | |
5896 | # For platforms which do not support PIC, -DPIC is meaningless: | |
5897 | *djgpp*) | |
5898 | lt_prog_compiler_pic= | |
5899 | ;; | |
5900 | *) | |
5901 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
5902 | ;; | |
5903 | esac | |
5904 | ||
5905 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
5906 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
5907 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
5908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5909 | else | |
5910 | lt_cv_prog_compiler_c_o=no | |
5911 | $rm -r conftest 2>/dev/null | |
5912 | mkdir conftest | |
5913 | cd conftest | |
5914 | mkdir out | |
5915 | save_CFLAGS="$CFLAGS" | |
5916 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" | |
5917 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
5918 | ||
5919 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | |
5920 | # that will create temporary files in the current directory regardless of | |
5921 | # the output directory. Thus, making CWD read-only will cause this test | |
5922 | # to fail, enabling locking or at least warning the user not to do parallel | |
5923 | # builds. | |
5924 | chmod -w . | |
5925 | ||
5926 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext | |
5927 | then | |
5928 | # The compiler can only warn and ignore the option if not recognized | |
5929 | # So say no if there are warnings | |
5930 | if test -s out/conftest.err; then | |
5931 | # Append any errors to the config.log. | |
5932 | cat out/conftest.err 1>&5 | |
5933 | else | |
5934 | lt_cv_prog_compiler_c_o=yes | |
5935 | fi | |
5936 | fi | |
5937 | CFLAGS="$save_CFLAGS" | |
5938 | chmod u+w . | |
5939 | $rm conftest* out/* | |
5940 | rmdir out | |
5941 | cd .. | |
5942 | rmdir conftest | |
5943 | $rm conftest* | |
5944 | ||
5945 | fi | |
5946 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
5947 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
5948 | ||
5949 | ||
5950 | hard_links="nottested" | |
5951 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
5952 | # do not overwrite the value of need_locks provided by the user | |
5953 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
5954 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
5955 | hard_links=yes | |
5956 | $rm conftest* | |
5957 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5958 | touch conftest.a | |
5959 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
5960 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5961 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
5962 | echo "${ECHO_T}$hard_links" >&6 | |
5963 | if test "$hard_links" = no; then | |
5964 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
5965 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
5966 | need_locks=warn | |
5967 | fi | |
5968 | else | |
5969 | need_locks=no | |
5970 | fi | |
5971 | ||
5972 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
5973 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
5974 | ||
5975 | runpath_var= | |
5976 | allow_undefined_flag= | |
5977 | ||
5978 | archive_cmds= | |
5979 | archive_cmds_need_lc= | |
5980 | archive_expsym_cmds= | |
5981 | old_archive_From_new_cmds= | |
5982 | old_archive_from_expsyms_cmds= | |
5983 | export_dynamic_flag_spec= | |
5984 | whole_archive_flag_spec= | |
5985 | thread_safe_flag_spec= | |
5986 | hardcode_libdir_flag_spec= | |
5987 | hardcode_libdir_separator= | |
5988 | hardcode_direct=no | |
5989 | hardcode_minus_L=no | |
5990 | hardcode_shlibpath_var=unsupported | |
5991 | link_all_deplibs=unknown | |
5992 | always_export_symbols=no | |
5993 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
5994 | # include_expsyms should be a list of space-separated symbols to be *always* | |
5995 | # included in the symbol list | |
5996 | include_expsyms= | |
5997 | # exclude_expsyms can be an egrep regular expression of symbols to exclude | |
5998 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
5999 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
6000 | # as well as any symbol that contains `d'. | |
6001 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
6002 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
6003 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
6004 | # the symbol is explicitly referenced. Since portable code cannot | |
6005 | # rely on this symbol name, it's probably fine to never include it in | |
6006 | # preloaded symbol tables. | |
6007 | extract_expsyms_cmds= | |
6008 | ||
6009 | case $host_os in | |
6010 | cygwin* | mingw* | pw32*) | |
6011 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
6012 | # When not using gcc, we currently assume that we are using | |
6013 | # Microsoft Visual C++. | |
6014 | if test "$GCC" != yes; then | |
6015 | with_gnu_ld=no | |
6016 | fi | |
6017 | ;; | |
6018 | openbsd*) | |
6019 | with_gnu_ld=no | |
6020 | ;; | |
6021 | esac | |
6022 | ||
6023 | ld_shlibs=yes | |
6024 | if test "$with_gnu_ld" = yes; then | |
6025 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
6026 | wlarc='${wl}' | |
6027 | ||
6028 | # See if GNU ld supports shared libraries. | |
6029 | case $host_os in | |
6030 | aix3* | aix4* | aix5*) | |
6031 | # On AIX/PPC, the GNU linker is very broken | |
6032 | if test "$host_cpu" != ia64; then | |
6033 | ld_shlibs=no | |
6034 | cat <<EOF 1>&2 | |
6035 | ||
6036 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
6037 | *** to be unable to reliably create shared libraries on AIX. | |
6038 | *** Therefore, libtool is disabling shared libraries support. If you | |
6039 | *** really care for shared libraries, you may want to modify your PATH | |
6040 | *** so that a non-GNU linker is found, and then restart. | |
6041 | ||
6042 | EOF | |
6043 | fi | |
6044 | ;; | |
6045 | ||
6046 | amigaos*) | |
6047 | 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)' | |
6048 | hardcode_libdir_flag_spec='-L$libdir' | |
6049 | hardcode_minus_L=yes | |
6050 | ||
6051 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
6052 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
6053 | # to version 4, is to share data among multiple programs linked | |
6054 | # with the same dynamic library. Since this doesn't match the | |
6055 | # behavior of shared libraries on other platforms, we can't use | |
6056 | # them. | |
6057 | ld_shlibs=no | |
6058 | ;; | |
6059 | ||
6060 | beos*) | |
6061 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
6062 | allow_undefined_flag=unsupported | |
6063 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
6064 | # support --undefined. This deserves some investigation. FIXME | |
6065 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6066 | else | |
6067 | ld_shlibs=no | |
6068 | fi | |
6069 | ;; | |
6070 | ||
6071 | cygwin*) | |
6072 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
6073 | # as there is no search path for DLLs. | |
6074 | hardcode_libdir_flag_spec='-L$libdir' | |
6075 | allow_undefined_flag= | |
6076 | always_export_symbols=yes | |
6077 | ||
6078 | if $LD --help 2>&1 | egrep 'auto-import' > /dev/null; then | |
6079 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
6080 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-retain-symbols-file $wl$export_symbols ${wl}--out-implib,$lib' | |
6081 | else | |
6082 | ld_shlibs=no | |
6083 | fi | |
6084 | ;; | |
6085 | ||
6086 | mingw* | pw32*) | |
6087 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is | |
6088 | # no search path for DLLs. | |
6089 | hardcode_libdir_flag_spec='-L$libdir' | |
6090 | allow_undefined_flag=unsupported | |
6091 | always_export_symbols=yes | |
6092 | ||
6093 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ | |
6094 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ | |
6095 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ | |
6096 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ | |
6097 | else $CC -o impgen impgen.c ; fi)~ | |
6098 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' | |
6099 | ||
6100 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' | |
6101 | ||
6102 | # FIXME: what about values for MSVC? | |
6103 | dll_entry=__cygwin_dll_entry@12 | |
6104 | case $host_os in | |
6105 | mingw*) | |
6106 | # mingw values | |
6107 | dll_entry=_DllMainCRTStartup@12 | |
6108 | ;; | |
6109 | esac | |
6110 | ||
6111 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 | |
6112 | ||
6113 | # recent cygwin and mingw systems supply a stub DllMain which the user | |
6114 | # can override, but on older systems we have to supply one (in ltdll.c) | |
6115 | if test "x$lt_cv_need_dllmain" = "xyes"; then | |
6116 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " | |
6117 | ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ | |
6118 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' | |
6119 | else | |
6120 | ltdll_obj= | |
6121 | ltdll_cmds= | |
6122 | fi | |
6123 | ||
6124 | # Extract the symbol export list from an `--export-all' def file, | |
6125 | # then regenerate the def file from the symbol export list, so that | |
6126 | # the compiled dll only exports the symbol export list. | |
6127 | # Be careful not to strip the DATA tag left by newer dlltools. | |
6128 | export_symbols_cmds="$ltdll_cmds"' | |
6129 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ | |
6130 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' | |
6131 | ||
6132 | # If the export-symbols file already is a .def file (1st line | |
6133 | # is EXPORTS), use it as is. | |
6134 | # If DATA tags from a recent dlltool are present, honour them! | |
6135 | archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then | |
6136 | cp $export_symbols $output_objdir/$soname-def; | |
6137 | else | |
6138 | echo EXPORTS > $output_objdir/$soname-def; | |
6139 | _lt_hint=1; | |
6140 | cat $export_symbols | while read symbol; do | |
6141 | set dummy \$symbol; | |
6142 | case \$# in | |
6143 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; | |
6144 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; | |
6145 | esac; | |
6146 | _lt_hint=`expr 1 + \$_lt_hint`; | |
6147 | done; | |
6148 | fi~ | |
6149 | '"$ltdll_cmds"' | |
6150 | $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ | |
6151 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ | |
6152 | $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ | |
6153 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ | |
6154 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' | |
6155 | ;; | |
6156 | ||
6157 | netbsd*) | |
6158 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
6159 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
6160 | wlarc= | |
6161 | else | |
6162 | archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6163 | archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
6164 | fi | |
6165 | ;; | |
6166 | ||
6167 | solaris* | sysv5*) | |
6168 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then | |
6169 | ld_shlibs=no | |
6170 | cat <<EOF 1>&2 | |
6171 | ||
6172 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
6173 | *** create shared libraries on Solaris systems. Therefore, libtool | |
6174 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
6175 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
6176 | *** your PATH or compiler configuration so that the native linker is | |
6177 | *** used, and then restart. | |
6178 | ||
6179 | EOF | |
6180 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
6181 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6182 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
6183 | else | |
6184 | ld_shlibs=no | |
6185 | fi | |
6186 | ;; | |
6187 | ||
6188 | sunos4*) | |
6189 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
6190 | wlarc= | |
6191 | hardcode_direct=yes | |
6192 | hardcode_shlibpath_var=no | |
6193 | ;; | |
6194 | ||
6195 | *) | |
6196 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
6197 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6198 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
6199 | else | |
6200 | ld_shlibs=no | |
6201 | fi | |
6202 | ;; | |
6203 | esac | |
6204 | ||
6205 | if test "$ld_shlibs" = yes; then | |
6206 | runpath_var=LD_RUN_PATH | |
6207 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | |
6208 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
6209 | case $host_os in | |
6210 | cygwin* | mingw* | pw32*) | |
6211 | # dlltool doesn't understand --whole-archive et. al. | |
6212 | whole_archive_flag_spec= | |
6213 | ;; | |
6214 | *) | |
6215 | # ancient GNU ld didn't support --whole-archive et. al. | |
6216 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then | |
6217 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
6218 | else | |
6219 | whole_archive_flag_spec= | |
6220 | fi | |
6221 | ;; | |
6222 | esac | |
6223 | fi | |
6224 | else | |
6225 | # PORTME fill in a description of your system's linker (not GNU ld) | |
6226 | case $host_os in | |
6227 | aix3*) | |
6228 | allow_undefined_flag=unsupported | |
6229 | always_export_symbols=yes | |
6230 | 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' | |
6231 | # Note: this linker hardcodes the directories in LIBPATH if there | |
6232 | # are no directories specified by -L. | |
6233 | hardcode_minus_L=yes | |
6234 | if test "$GCC" = yes && test -z "$link_static_flag"; then | |
6235 | # Neither direct hardcoding nor static linking is supported with a | |
6236 | # broken collect2. | |
6237 | hardcode_direct=unsupported | |
6238 | fi | |
6239 | ;; | |
6240 | ||
6241 | aix4* | aix5*) | |
6242 | if test "$host_cpu" = ia64; then | |
6243 | # On IA64, the linker does run time linking by default, so we don't | |
6244 | # have to do anything special. | |
6245 | aix_use_runtimelinking=no | |
6246 | exp_sym_flag='-Bexport' | |
6247 | no_entry_flag="" | |
6248 | else | |
6249 | # If we're using GNU nm, then we don't want the "-C" option. | |
6250 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
6251 | if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then | |
6252 | 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' | |
6253 | else | |
6254 | 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' | |
6255 | fi | |
6256 | aix_use_runtimelinking=no | |
6257 | ||
6258 | # Test if we are trying to use run time linking or normal | |
6259 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
6260 | # need to do runtime linking. | |
6261 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
6262 | for ld_flag in $LDFLAGS; do | |
6263 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
6264 | aix_use_runtimelinking=yes | |
6265 | break | |
6266 | fi | |
6267 | done | |
6268 | esac | |
6269 | ||
6270 | exp_sym_flag='-bexport' | |
6271 | no_entry_flag='-bnoentry' | |
6272 | fi | |
6273 | ||
6274 | # When large executables or shared objects are built, AIX ld can | |
6275 | # have problems creating the table of contents. If linking a library | |
6276 | # or program results in "error TOC overflow" add -mminimal-toc to | |
6277 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
6278 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
6279 | ||
6280 | archive_cmds='' | |
6281 | hardcode_direct=yes | |
6282 | hardcode_libdir_separator=':' | |
6283 | link_all_deplibs=yes | |
6284 | ||
6285 | if test "$GCC" = yes; then | |
6286 | case $host_os in aix4.012|aix4.012.*) | |
6287 | # We only want to do this on AIX 4.2 and lower, the check | |
6288 | # below for broken collect2 doesn't work under 4.3+ | |
6289 | collect2name=`${CC} -print-prog-name=collect2` | |
6290 | if test -f "$collect2name" && \ | |
6291 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
6292 | then | |
6293 | # We have reworked collect2 | |
6294 | hardcode_direct=yes | |
6295 | else | |
6296 | # We have old collect2 | |
6297 | hardcode_direct=unsupported | |
6298 | # It fails to find uninstalled libraries when the uninstalled | |
6299 | # path is not listed in the libpath. Setting hardcode_minus_L | |
6300 | # to unsupported forces relinking | |
6301 | hardcode_minus_L=yes | |
6302 | hardcode_libdir_flag_spec='-L$libdir' | |
6303 | hardcode_libdir_separator= | |
6304 | fi | |
6305 | esac | |
6306 | shared_flag='-shared' | |
6307 | else | |
6308 | # not using gcc | |
6309 | if test "$host_cpu" = ia64; then | |
6310 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
6311 | # chokes on -Wl,-G. The following line is correct: | |
6312 | shared_flag='-G' | |
6313 | else | |
6314 | if test "$aix_use_runtimelinking" = yes; then | |
6315 | shared_flag='${wl}-G' | |
6316 | else | |
6317 | shared_flag='${wl}-bM:SRE' | |
6318 | fi | |
6319 | fi | |
6320 | fi | |
6321 | ||
6322 | # It seems that -bexpall does not export symbols beginning with | |
6323 | # underscore (_), so it is better to generate a list of symbols to export. | |
6324 | always_export_symbols=yes | |
6325 | if test "$aix_use_runtimelinking" = yes; then | |
6326 | # Warning - without using the other runtime loading flags (-brtl), | |
6327 | # -berok will link without error, but may produce a broken library. | |
6328 | allow_undefined_flag='-berok' | |
6329 | # Determine the default libpath from the value encoded in an empty executable. | |
6330 | cat >conftest.$ac_ext <<_ACEOF | |
6331 | #line $LINENO "configure" | |
6332 | #include "confdefs.h" | |
6333 | ||
6334 | #ifdef F77_DUMMY_MAIN | |
6335 | # ifdef __cplusplus | |
6336 | extern "C" | |
6337 | # endif | |
6338 | int F77_DUMMY_MAIN() { return 1; } | |
6339 | #endif | |
6340 | int | |
6341 | main () | |
6342 | { | |
6343 | ||
6344 | ; | |
6345 | return 0; | |
6346 | } | |
6347 | _ACEOF | |
6348 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6349 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6350 | (eval $ac_link) 2>&5 | |
6351 | ac_status=$? | |
6352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6353 | (exit $ac_status); } && | |
6354 | { ac_try='test -s conftest$ac_exeext' | |
6355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6356 | (eval $ac_try) 2>&5 | |
6357 | ac_status=$? | |
6358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6359 | (exit $ac_status); }; }; then | |
6360 | ||
6361 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
6362 | }'` | |
6363 | # Check for a 64-bit object if we didn't find anything. | |
6364 | 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; } | |
6365 | }'`; fi | |
6366 | else | |
6367 | echo "$as_me: failed program was:" >&5 | |
6368 | cat conftest.$ac_ext >&5 | |
6369 | fi | |
6370 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6371 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
6372 | ||
6373 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
6374 | 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" | |
6375 | else | |
6376 | if test "$host_cpu" = ia64; then | |
6377 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
6378 | allow_undefined_flag="-z nodefs" | |
6379 | 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" | |
6380 | else | |
6381 | # Determine the default libpath from the value encoded in an empty executable. | |
6382 | cat >conftest.$ac_ext <<_ACEOF | |
6383 | #line $LINENO "configure" | |
6384 | #include "confdefs.h" | |
6385 | ||
6386 | #ifdef F77_DUMMY_MAIN | |
6387 | # ifdef __cplusplus | |
6388 | extern "C" | |
6389 | # endif | |
6390 | int F77_DUMMY_MAIN() { return 1; } | |
6391 | #endif | |
6392 | int | |
6393 | main () | |
6394 | { | |
6395 | ||
6396 | ; | |
6397 | return 0; | |
6398 | } | |
6399 | _ACEOF | |
6400 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6402 | (eval $ac_link) 2>&5 | |
6403 | ac_status=$? | |
6404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6405 | (exit $ac_status); } && | |
6406 | { ac_try='test -s conftest$ac_exeext' | |
6407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6408 | (eval $ac_try) 2>&5 | |
6409 | ac_status=$? | |
6410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6411 | (exit $ac_status); }; }; then | |
6412 | ||
6413 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
6414 | }'` | |
6415 | # Check for a 64-bit object if we didn't find anything. | |
6416 | 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; } | |
6417 | }'`; fi | |
6418 | else | |
6419 | echo "$as_me: failed program was:" >&5 | |
6420 | cat conftest.$ac_ext >&5 | |
6421 | fi | |
6422 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6423 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
6424 | ||
6425 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
6426 | # Warning - without using the other run time loading flags, | |
6427 | # -berok will link without error, but may produce a broken library. | |
6428 | no_undefined_flag=' ${wl}-bernotok' | |
6429 | allow_undefined_flag=' ${wl}-berok' | |
6430 | # -bexpall does not export symbols beginning with underscore (_) | |
6431 | always_export_symbols=yes | |
6432 | # Exported symbols can be pulled into shared objects from archives | |
6433 | whole_archive_flag_spec=' ' | |
6434 | archive_cmds_need_lc=yes | |
6435 | # This is similar to how AIX traditionally builds it's shared libraries. | |
6436 | 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' | |
6437 | fi | |
6438 | fi | |
6439 | ;; | |
6440 | ||
6441 | amigaos*) | |
6442 | 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)' | |
6443 | hardcode_libdir_flag_spec='-L$libdir' | |
6444 | hardcode_minus_L=yes | |
6445 | # see comment about different semantics on the GNU ld section | |
6446 | ld_shlibs=no | |
6447 | ;; | |
6448 | ||
6449 | bsdi4*) | |
6450 | export_dynamic_flag_spec=-rdynamic | |
6451 | ;; | |
6452 | ||
6453 | cygwin* | mingw* | pw32*) | |
6454 | # When not using gcc, we currently assume that we are using | |
6455 | # Microsoft Visual C++. | |
6456 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
6457 | # no search path for DLLs. | |
6458 | hardcode_libdir_flag_spec=' ' | |
6459 | allow_undefined_flag=unsupported | |
6460 | # Tell ltmain to make .lib files, not .a files. | |
6461 | libext=lib | |
6462 | # FIXME: Setting linknames here is a bad hack. | |
6463 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
6464 | # The linker will automatically build a .lib file if we build a DLL. | |
6465 | old_archive_From_new_cmds='true' | |
6466 | # FIXME: Should let the user specify the lib program. | |
6467 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
6468 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
6469 | ;; | |
6470 | ||
6471 | darwin* | rhapsody*) | |
6472 | case "$host_os" in | |
6473 | rhapsody* | darwin1.[012]) | |
6474 | allow_undefined_flag='-undefined suppress' | |
6475 | ;; | |
6476 | *) # Darwin 1.3 on | |
6477 | allow_undefined_flag='-flat_namespace -undefined suppress' | |
6478 | ;; | |
6479 | esac | |
6480 | ||
6481 | # FIXME: Relying on posixy $() will cause problems for | |
6482 | # cross-compilation, but unfortunately the echo tests do not | |
6483 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles | |
6484 | # `"' quotes if we put them in here... so don't! | |
6485 | archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' | |
6486 | # We need to add '_' to the symbols in $export_symbols first | |
6487 | #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols' | |
6488 | hardcode_direct=yes | |
6489 | hardcode_shlibpath_var=no | |
6490 | whole_archive_flag_spec='-all_load $convenience' | |
6491 | ;; | |
6492 | ||
6493 | dgux*) | |
6494 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6495 | hardcode_libdir_flag_spec='-L$libdir' | |
6496 | hardcode_shlibpath_var=no | |
6497 | ;; | |
6498 | ||
6499 | freebsd1*) | |
6500 | ld_shlibs=no | |
6501 | ;; | |
6502 | ||
6503 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
6504 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
6505 | # does not break anything, and helps significantly (at the cost of a little | |
6506 | # extra space). | |
6507 | freebsd2.2*) | |
6508 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
6509 | hardcode_libdir_flag_spec='-R$libdir' | |
6510 | hardcode_direct=yes | |
6511 | hardcode_shlibpath_var=no | |
6512 | ;; | |
6513 | ||
6514 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
6515 | freebsd2*) | |
6516 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
6517 | hardcode_direct=yes | |
6518 | hardcode_minus_L=yes | |
6519 | hardcode_shlibpath_var=no | |
6520 | ;; | |
6521 | ||
6522 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
6523 | freebsd*) | |
6524 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
6525 | hardcode_libdir_flag_spec='-R$libdir' | |
6526 | hardcode_direct=yes | |
6527 | hardcode_shlibpath_var=no | |
6528 | ;; | |
6529 | ||
6530 | hpux9* | hpux10* | hpux11*) | |
6531 | if test "$GCC" = yes; then | |
6532 | case $host_os in | |
6533 | hpux9*) | |
6534 | 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' | |
6535 | ;; | |
6536 | *) | |
6537 | if test "$host_cpu" = ia64; then | |
6538 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6539 | else | |
6540 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
6541 | fi | |
6542 | ;; | |
6543 | esac | |
6544 | else | |
6545 | case $host_os in | |
6546 | hpux9*) | |
6547 | 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' | |
6548 | ;; | |
6549 | *) | |
6550 | if test "$host_cpu" = ia64; then | |
6551 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6552 | else | |
6553 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
6554 | fi | |
6555 | ;; | |
6556 | esac | |
6557 | fi | |
6558 | if test "$host_cpu" = ia64; then | |
6559 | hardcode_libdir_flag_spec='-L$libdir' | |
6560 | hardcode_direct=no | |
6561 | hardcode_shlibpath_var=no | |
6562 | else | |
6563 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
6564 | hardcode_libdir_separator=: | |
6565 | hardcode_direct=yes | |
6566 | fi | |
6567 | # hardcode_minus_L: Not really in the search PATH, | |
6568 | # but as the default location of the library. | |
6569 | hardcode_minus_L=yes | |
6570 | export_dynamic_flag_spec='${wl}-E' | |
6571 | ;; | |
6572 | ||
6573 | irix5* | irix6* | nonstopux*) | |
6574 | if test "$GCC" = yes; then | |
6575 | 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' | |
6576 | else | |
6577 | 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' | |
6578 | fi | |
6579 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
6580 | hardcode_libdir_separator=: | |
6581 | link_all_deplibs=yes | |
6582 | ;; | |
6583 | ||
6584 | netbsd*) | |
6585 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
6586 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
6587 | else | |
6588 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
6589 | fi | |
6590 | hardcode_libdir_flag_spec='-R$libdir' | |
6591 | hardcode_direct=yes | |
6592 | hardcode_shlibpath_var=no | |
6593 | ;; | |
6594 | ||
6595 | newsos6) | |
6596 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6597 | hardcode_direct=yes | |
6598 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
6599 | hardcode_libdir_separator=: | |
6600 | hardcode_shlibpath_var=no | |
6601 | ;; | |
6602 | ||
6603 | openbsd*) | |
6604 | hardcode_direct=yes | |
6605 | hardcode_shlibpath_var=no | |
6606 | ||
6607 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6608 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
6609 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
6610 | export_dynamic_flag_spec='${wl}-E' | |
6611 | else | |
6612 | case $host_os in | |
6613 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
6614 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
6615 | hardcode_libdir_flag_spec='-R$libdir' | |
6616 | ;; | |
6617 | *) | |
6618 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
6619 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
6620 | ;; | |
6621 | esac | |
6622 | fi | |
6623 | ;; | |
6624 | ||
6625 | os2*) | |
6626 | hardcode_libdir_flag_spec='-L$libdir' | |
6627 | hardcode_minus_L=yes | |
6628 | allow_undefined_flag=unsupported | |
6629 | 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' | |
6630 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
6631 | ;; | |
6632 | ||
6633 | osf3*) | |
6634 | if test "$GCC" = yes; then | |
6635 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
6636 | 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' | |
6637 | else | |
6638 | allow_undefined_flag=' -expect_unresolved \*' | |
6639 | 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' | |
6640 | fi | |
6641 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
6642 | hardcode_libdir_separator=: | |
6643 | ;; | |
6644 | ||
6645 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
6646 | if test "$GCC" = yes; then | |
6647 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
6648 | 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' | |
6649 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
6650 | else | |
6651 | allow_undefined_flag=' -expect_unresolved \*' | |
6652 | 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' | |
6653 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
6654 | $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' | |
6655 | ||
6656 | # Both c and cxx compiler support -rpath directly | |
6657 | hardcode_libdir_flag_spec='-rpath $libdir' | |
6658 | fi | |
6659 | hardcode_libdir_separator=: | |
6660 | ;; | |
6661 | ||
6662 | sco3.2v5*) | |
6663 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6664 | hardcode_shlibpath_var=no | |
6665 | export_dynamic_flag_spec='${wl}-Bexport' | |
6666 | runpath_var=LD_RUN_PATH | |
6667 | hardcode_runpath_var=yes | |
6668 | ;; | |
6669 | ||
6670 | solaris*) | |
6671 | no_undefined_flag=' -z text' | |
6672 | if test "$GCC" = yes; then | |
6673 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6674 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
6675 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
6676 | else | |
6677 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6678 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
6679 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
6680 | fi | |
6681 | hardcode_libdir_flag_spec='-R$libdir' | |
6682 | hardcode_shlibpath_var=no | |
6683 | case $host_os in | |
6684 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
6685 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | |
6686 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | |
6687 | esac | |
6688 | link_all_deplibs=yes | |
6689 | ;; | |
6690 | ||
6691 | sunos4*) | |
6692 | if test "x$host_vendor" = xsequent; then | |
6693 | # Use $CC to link under sequent, because it throws in some extra .o | |
6694 | # files that make .init and .fini sections work. | |
6695 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
6696 | else | |
6697 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
6698 | fi | |
6699 | hardcode_libdir_flag_spec='-L$libdir' | |
6700 | hardcode_direct=yes | |
6701 | hardcode_minus_L=yes | |
6702 | hardcode_shlibpath_var=no | |
6703 | ;; | |
6704 | ||
6705 | sysv4) | |
6706 | if test "x$host_vendor" = xsni; then | |
6707 | archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6708 | hardcode_direct=yes # is this really true??? | |
6709 | else | |
6710 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6711 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
6712 | fi | |
6713 | runpath_var='LD_RUN_PATH' | |
6714 | hardcode_shlibpath_var=no | |
6715 | ;; | |
6716 | ||
6717 | sysv4.3*) | |
6718 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6719 | hardcode_shlibpath_var=no | |
6720 | export_dynamic_flag_spec='-Bexport' | |
6721 | ;; | |
6722 | ||
6723 | sysv4*MP*) | |
6724 | if test -d /usr/nec; then | |
6725 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6726 | hardcode_shlibpath_var=no | |
6727 | runpath_var=LD_RUN_PATH | |
6728 | hardcode_runpath_var=yes | |
6729 | ld_shlibs=yes | |
6730 | fi | |
6731 | ;; | |
6732 | ||
6733 | sysv4.2uw2*) | |
6734 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
6735 | hardcode_direct=yes | |
6736 | hardcode_minus_L=no | |
6737 | hardcode_shlibpath_var=no | |
6738 | hardcode_runpath_var=yes | |
6739 | runpath_var=LD_RUN_PATH | |
6740 | ;; | |
6741 | ||
6742 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
6743 | no_undefined_flag='${wl}-z ${wl}text' | |
6744 | if test "$GCC" = yes; then | |
6745 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6746 | else | |
6747 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6748 | fi | |
6749 | runpath_var='LD_RUN_PATH' | |
6750 | hardcode_shlibpath_var=no | |
6751 | ;; | |
6752 | ||
6753 | sysv5*) | |
6754 | no_undefined_flag=' -z text' | |
6755 | # $CC -shared without GNU ld will not create a library from C++ | |
6756 | # object files and a static libstdc++, better avoid it by now | |
6757 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6758 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
6759 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
6760 | hardcode_libdir_flag_spec= | |
6761 | hardcode_shlibpath_var=no | |
6762 | runpath_var='LD_RUN_PATH' | |
6763 | ;; | |
6764 | ||
6765 | uts4*) | |
6766 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6767 | hardcode_libdir_flag_spec='-L$libdir' | |
6768 | hardcode_shlibpath_var=no | |
6769 | ;; | |
6770 | ||
6771 | *) | |
6772 | ld_shlibs=no | |
6773 | ;; | |
6774 | esac | |
6775 | fi | |
6776 | ||
6777 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
6778 | echo "${ECHO_T}$ld_shlibs" >&6 | |
6779 | test "$ld_shlibs" = no && can_build_shared=no | |
6780 | ||
6781 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
6782 | if test "$GCC" = yes; then | |
6783 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
6784 | fi | |
6785 | ||
6786 | # | |
6787 | # Do we need to explicitly link libc? | |
6788 | # | |
6789 | archive_cmds_need_lc=yes | |
6790 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
6791 | case $archive_cmds in | |
6792 | *'~'*) | |
6793 | # FIXME: we may have to deal with multi-command sequences. | |
6794 | ;; | |
6795 | '$CC '*) | |
6796 | # Test whether the compiler implicitly links with -lc since on some | |
6797 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
6798 | # to ld, don't add -lc before -lgcc. | |
6799 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
6800 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
6801 | $rm conftest* | |
6802 | echo 'static int dummy;' > conftest.$ac_ext | |
6803 | ||
6804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6805 | (eval $ac_compile) 2>&5 | |
6806 | ac_status=$? | |
6807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6808 | (exit $ac_status); } 2>conftest.err; then | |
6809 | soname=conftest | |
6810 | lib=conftest | |
6811 | libobjs=conftest.$ac_objext | |
6812 | deplibs= | |
6813 | wl=$lt_prog_compiler_wl | |
6814 | compiler_flags=-v | |
6815 | linker_flags=-v | |
6816 | verstring= | |
6817 | output_objdir=. | |
6818 | libname=conftest | |
6819 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
6820 | allow_undefined_flag= | |
6821 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
6822 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
6823 | ac_status=$? | |
6824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6825 | (exit $ac_status); } | |
6826 | then | |
6827 | archive_cmds_need_lc=no | |
6828 | else | |
6829 | archive_cmds_need_lc=yes | |
6830 | fi | |
6831 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
6832 | else | |
6833 | cat conftest.err 1>&5 | |
6834 | fi | |
6835 | $rm conftest* | |
6836 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
6837 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | |
6838 | ;; | |
6839 | esac | |
6840 | fi | |
6841 | ||
6842 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
6843 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
6844 | hardcode_action= | |
6845 | if test -n "$hardcode_libdir_flag_spec" || \ | |
6846 | test -n "$runpath_var "; then | |
6847 | ||
6848 | # We can hardcode non-existant directories. | |
6849 | if test "$hardcode_direct" != no && | |
6850 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
6851 | # have to relink, otherwise we might link with an installed library | |
6852 | # when we should be linking with a yet-to-be-installed one | |
6853 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | |
6854 | test "$hardcode_minus_L" != no; then | |
6855 | # Linking always hardcodes the temporary library directory. | |
6856 | hardcode_action=relink | |
6857 | else | |
6858 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
6859 | hardcode_action=immediate | |
6860 | fi | |
6861 | else | |
6862 | # We cannot hardcode anything, or else we can only hardcode existing | |
6863 | # directories. | |
6864 | hardcode_action=unsupported | |
6865 | fi | |
6866 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
6867 | echo "${ECHO_T}$hardcode_action" >&6 | |
6868 | ||
6869 | if test "$hardcode_action" = relink; then | |
6870 | # Fast installation is not supported | |
6871 | enable_fast_install=no | |
6872 | elif test "$shlibpath_overrides_runpath" = yes || | |
6873 | test "$enable_shared" = no; then | |
6874 | # Fast installation is not necessary | |
6875 | enable_fast_install=needless | |
6876 | fi | |
6877 | ||
6878 | striplib= | |
6879 | old_striplib= | |
6880 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
6881 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
6882 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
6883 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
6884 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
6885 | echo "$as_me:$LINENO: result: yes" >&5 | |
6886 | echo "${ECHO_T}yes" >&6 | |
6887 | else | |
6888 | echo "$as_me:$LINENO: result: no" >&5 | |
6889 | echo "${ECHO_T}no" >&6 | |
6890 | fi | |
6891 | ||
6892 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
6893 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
6894 | library_names_spec= | |
6895 | libname_spec='lib$name' | |
6896 | soname_spec= | |
6897 | postinstall_cmds= | |
6898 | postuninstall_cmds= | |
6899 | finish_cmds= | |
6900 | finish_eval= | |
6901 | shlibpath_var= | |
6902 | shlibpath_overrides_runpath=unknown | |
6903 | version_type=none | |
6904 | dynamic_linker="$host_os ld.so" | |
6905 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
6906 | if test "$GCC" = yes; then | |
6907 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
6908 | if echo "$sys_lib_search_path_spec" | egrep ';' >/dev/null ; then | |
6909 | # if the path contains ";" then we assume it to be the separator | |
6910 | # otherwise default to the standard path separator (i.e. ":") - it is | |
6911 | # assumed that no part of a normal pathname contains ";" but that should | |
6912 | # okay in the real world where ";" in dirpaths is itself problematic. | |
6913 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
6914 | else | |
6915 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
6916 | fi | |
6917 | else | |
6918 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
6919 | fi | |
6920 | need_lib_prefix=unknown | |
6921 | hardcode_into_libs=no | |
6922 | ||
6923 | # when you set need_version to no, make sure it does not cause -set_version | |
6924 | # flags to be left without arguments | |
6925 | need_version=unknown | |
6926 | ||
6927 | case $host_os in | |
6928 | aix3*) | |
6929 | version_type=linux | |
6930 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | |
6931 | shlibpath_var=LIBPATH | |
6932 | ||
6933 | # AIX 3 has no versioning support, so we append a major version to the name. | |
6934 | soname_spec='${libname}${release}.so$major' | |
6935 | ;; | |
6936 | ||
6937 | aix4* | aix5*) | |
6938 | version_type=linux | |
6939 | if test "$host_cpu" = ia64; then | |
6940 | # AIX 5 supports IA64 | |
6941 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | |
6942 | shlibpath_var=LD_LIBRARY_PATH | |
6943 | else | |
6944 | # With GCC up to 2.95.x, collect2 would create an import file | |
6945 | # for dependence libraries. The import file would start with | |
6946 | # the line `#! .'. This would cause the generated library to | |
6947 | # depend on `.', always an invalid library. This was fixed in | |
6948 | # development snapshots of GCC prior to 3.0. | |
6949 | case $host_os in | |
6950 | aix4 | aix4.[01] | aix4.[01].*) | |
6951 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
6952 | echo ' yes ' | |
6953 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
6954 | : | |
6955 | else | |
6956 | can_build_shared=no | |
6957 | fi | |
6958 | ;; | |
6959 | esac | |
6960 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
6961 | # soname into executable. Probably we can add versioning support to | |
6962 | # collect2, so additional links can be useful in future. | |
6963 | if test "$aix_use_runtimelinking" = yes; then | |
6964 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
6965 | # instead of lib<name>.a to let people know that these are not | |
6966 | # typical AIX shared libraries. | |
6967 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
6968 | else | |
6969 | # We preserve .a as extension for shared libraries through AIX4.2 | |
6970 | # and later when we are not doing run time linking. | |
6971 | library_names_spec='${libname}${release}.a $libname.a' | |
6972 | soname_spec='${libname}${release}.so$major' | |
6973 | fi | |
6974 | shlibpath_var=LIBPATH | |
6975 | fi | |
6976 | ;; | |
6977 | ||
6978 | amigaos*) | |
6979 | library_names_spec='$libname.ixlibrary $libname.a' | |
6980 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
6981 | 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' | |
6982 | ;; | |
6983 | ||
6984 | beos*) | |
6985 | library_names_spec='${libname}.so' | |
6986 | dynamic_linker="$host_os ld.so" | |
6987 | shlibpath_var=LIBRARY_PATH | |
6988 | ;; | |
6989 | ||
6990 | bsdi4*) | |
6991 | version_type=linux | |
6992 | need_version=no | |
6993 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
6994 | soname_spec='${libname}${release}.so$major' | |
6995 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
6996 | shlibpath_var=LD_LIBRARY_PATH | |
6997 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
6998 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
6999 | # the default ld.so.conf also contains /usr/contrib/lib and | |
7000 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
7001 | # libtool to hard-code these into programs | |
7002 | ;; | |
7003 | ||
7004 | cygwin* | mingw* | pw32*) | |
7005 | version_type=windows | |
7006 | need_version=no | |
7007 | need_lib_prefix=no | |
7008 | case $GCC,$host_os in | |
7009 | yes,cygwin*) | |
7010 | library_names_spec='$libname.dll.a' | |
7011 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | |
7012 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
7013 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | |
7014 | dldir=$destdir/`dirname \$dlpath`~ | |
7015 | test -d \$dldir || mkdir -p \$dldir~ | |
7016 | $install_prog .libs/$dlname \$dldir/$dlname' | |
7017 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
7018 | dlpath=$dir/\$dldll~ | |
7019 | $rm \$dlpath' | |
7020 | shlibpath_overrides_runpath=yes | |
7021 | ;; | |
7022 | yes,mingw*) | |
7023 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
7024 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
7025 | if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then | |
7026 | # It is most probably a Windows format PATH printed by | |
7027 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
7028 | # path with ; separators, and with drive letters. We can handle the | |
7029 | # drive letters (cygwin fileutils understands them), so leave them, | |
7030 | # especially as we might pass files found there to a mingw objdump, | |
7031 | # which wouldn't understand a cygwinified path. Ahh. | |
7032 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
7033 | else | |
7034 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
7035 | fi | |
7036 | ;; | |
7037 | yes,pw32*) | |
7038 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | |
7039 | ;; | |
7040 | *) | |
7041 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | |
7042 | ;; | |
7043 | esac | |
7044 | dynamic_linker='Win32 ld.exe' | |
7045 | # FIXME: first we should search . and the directory the executable is in | |
7046 | shlibpath_var=PATH | |
7047 | ;; | |
7048 | ||
7049 | darwin* | rhapsody*) | |
7050 | dynamic_linker="$host_os dyld" | |
7051 | version_type=darwin | |
7052 | need_lib_prefix=no | |
7053 | need_version=no | |
7054 | # FIXME: Relying on posixy $() will cause problems for | |
7055 | # cross-compilation, but unfortunately the echo tests do not | |
7056 | # yet detect zsh echo's removal of \ escapes. | |
7057 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' | |
7058 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | |
7059 | shlibpath_overrides_runpath=yes | |
7060 | shlibpath_var=DYLD_LIBRARY_PATH | |
7061 | ;; | |
7062 | ||
7063 | dgux*) | |
7064 | version_type=linux | |
7065 | need_lib_prefix=no | |
7066 | need_version=no | |
7067 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7068 | soname_spec='${libname}${release}.so$major' | |
7069 | shlibpath_var=LD_LIBRARY_PATH | |
7070 | ;; | |
7071 | ||
7072 | freebsd1*) | |
7073 | dynamic_linker=no | |
7074 | ;; | |
7075 | ||
7076 | freebsd*) | |
7077 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
7078 | version_type=freebsd-$objformat | |
7079 | case $version_type in | |
7080 | freebsd-elf*) | |
7081 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
7082 | need_version=no | |
7083 | need_lib_prefix=no | |
7084 | ;; | |
7085 | freebsd-*) | |
7086 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | |
7087 | need_version=yes | |
7088 | ;; | |
7089 | esac | |
7090 | shlibpath_var=LD_LIBRARY_PATH | |
7091 | case $host_os in | |
7092 | freebsd2*) | |
7093 | shlibpath_overrides_runpath=yes | |
7094 | ;; | |
7095 | freebsd3.01* | freebsdelf3.01*) | |
7096 | shlibpath_overrides_runpath=yes | |
7097 | hardcode_into_libs=yes | |
7098 | ;; | |
7099 | *) # from 3.2 on | |
7100 | shlibpath_overrides_runpath=no | |
7101 | hardcode_into_libs=yes | |
7102 | ;; | |
7103 | esac | |
7104 | ;; | |
7105 | ||
7106 | gnu*) | |
7107 | version_type=linux | |
7108 | need_lib_prefix=no | |
7109 | need_version=no | |
7110 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | |
7111 | soname_spec='${libname}${release}.so$major' | |
7112 | shlibpath_var=LD_LIBRARY_PATH | |
7113 | hardcode_into_libs=yes | |
7114 | ;; | |
7115 | ||
7116 | hpux9* | hpux10* | hpux11*) | |
7117 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
7118 | # link against other versions. | |
7119 | version_type=sunos | |
7120 | need_lib_prefix=no | |
7121 | need_version=no | |
7122 | if test "$host_cpu" = ia64; then | |
7123 | hardcode_into_libs=yes | |
7124 | dynamic_linker="$host_os dld.so" | |
7125 | shlibpath_var=LD_LIBRARY_PATH | |
7126 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
7127 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7128 | soname_spec='${libname}${release}.so$major' | |
7129 | if test "X$HPUX_IA64_MODE" = X32; then | |
7130 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
7131 | else | |
7132 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
7133 | fi | |
7134 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
7135 | else | |
7136 | dynamic_linker="$host_os dld.sl" | |
7137 | shlibpath_var=SHLIB_PATH | |
7138 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
7139 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | |
7140 | soname_spec='${libname}${release}.sl$major' | |
7141 | fi | |
7142 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
7143 | postinstall_cmds='chmod 555 $lib' | |
7144 | ;; | |
7145 | ||
7146 | irix5* | irix6* | nonstopux*) | |
7147 | case $host_os in | |
7148 | nonstopux*) version_type=nonstopux ;; | |
7149 | *) version_type=irix ;; | |
7150 | esac | |
7151 | need_lib_prefix=no | |
7152 | need_version=no | |
7153 | soname_spec='${libname}${release}.so$major' | |
7154 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | |
7155 | case $host_os in | |
7156 | irix5* | nonstopux*) | |
7157 | libsuff= shlibsuff= | |
7158 | ;; | |
7159 | *) | |
7160 | case $LD in # libtool.m4 will add one of these switches to LD | |
7161 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | |
7162 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | |
7163 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
7164 | *) libsuff= shlibsuff= libmagic=never-match;; | |
7165 | esac | |
7166 | ;; | |
7167 | esac | |
7168 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
7169 | shlibpath_overrides_runpath=no | |
7170 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
7171 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
7172 | ;; | |
7173 | ||
7174 | # No shared lib support for Linux oldld, aout, or coff. | |
7175 | linux*oldld* | linux*aout* | linux*coff*) | |
7176 | dynamic_linker=no | |
7177 | ;; | |
7178 | ||
7179 | # This must be Linux ELF. | |
7180 | linux*) | |
7181 | version_type=linux | |
7182 | need_lib_prefix=no | |
7183 | need_version=no | |
7184 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7185 | soname_spec='${libname}${release}.so$major' | |
7186 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
7187 | shlibpath_var=LD_LIBRARY_PATH | |
7188 | shlibpath_overrides_runpath=no | |
7189 | # This implies no fast_install, which is unacceptable. | |
7190 | # Some rework will be needed to allow for fast_install | |
7191 | # before this can be enabled. | |
7192 | hardcode_into_libs=yes | |
7193 | ||
7194 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
7195 | # powerpc, because MkLinux only supported shared libraries with the | |
7196 | # GNU dynamic linker. Since this was broken with cross compilers, | |
7197 | # most powerpc-linux boxes support dynamic linking these days and | |
7198 | # people can always --disable-shared, the test was removed, and we | |
7199 | # assume the GNU/Linux dynamic linker is in use. | |
7200 | dynamic_linker='GNU/Linux ld.so' | |
7201 | ;; | |
7202 | ||
7203 | netbsd*) | |
7204 | version_type=sunos | |
7205 | need_lib_prefix=no | |
7206 | need_version=no | |
7207 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
7208 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
7209 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
7210 | dynamic_linker='NetBSD (a.out) ld.so' | |
7211 | else | |
7212 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | |
7213 | soname_spec='${libname}${release}.so$major' | |
7214 | dynamic_linker='NetBSD ld.elf_so' | |
7215 | fi | |
7216 | shlibpath_var=LD_LIBRARY_PATH | |
7217 | shlibpath_overrides_runpath=yes | |
7218 | hardcode_into_libs=yes | |
7219 | ;; | |
7220 | ||
7221 | newsos6) | |
7222 | version_type=linux | |
7223 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7224 | shlibpath_var=LD_LIBRARY_PATH | |
7225 | shlibpath_overrides_runpath=yes | |
7226 | ;; | |
7227 | ||
7228 | nto-qnx) | |
7229 | version_type=linux | |
7230 | need_lib_prefix=no | |
7231 | need_version=no | |
7232 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7233 | soname_spec='${libname}${release}.so$major' | |
7234 | shlibpath_var=LD_LIBRARY_PATH | |
7235 | shlibpath_overrides_runpath=yes | |
7236 | ;; | |
7237 | ||
7238 | openbsd*) | |
7239 | version_type=sunos | |
7240 | need_lib_prefix=no | |
7241 | need_version=no | |
7242 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
7243 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
7244 | shlibpath_var=LD_LIBRARY_PATH | |
7245 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7246 | case $host_os in | |
7247 | openbsd2.[89] | openbsd2.[89].*) | |
7248 | shlibpath_overrides_runpath=no | |
7249 | ;; | |
7250 | *) | |
7251 | shlibpath_overrides_runpath=yes | |
7252 | ;; | |
7253 | esac | |
7254 | else | |
7255 | shlibpath_overrides_runpath=yes | |
7256 | fi | |
7257 | ;; | |
7258 | ||
7259 | os2*) | |
7260 | libname_spec='$name' | |
7261 | need_lib_prefix=no | |
7262 | library_names_spec='$libname.dll $libname.a' | |
7263 | dynamic_linker='OS/2 ld.exe' | |
7264 | shlibpath_var=LIBPATH | |
7265 | ;; | |
7266 | ||
7267 | osf3* | osf4* | osf5*) | |
7268 | version_type=osf | |
7269 | need_lib_prefix=no | |
7270 | need_version=no | |
7271 | soname_spec='${libname}${release}.so' | |
7272 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
7273 | shlibpath_var=LD_LIBRARY_PATH | |
7274 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
7275 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
7276 | ;; | |
7277 | ||
7278 | sco3.2v5*) | |
7279 | version_type=osf | |
7280 | soname_spec='${libname}${release}.so$major' | |
7281 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7282 | shlibpath_var=LD_LIBRARY_PATH | |
7283 | ;; | |
7284 | ||
7285 | solaris*) | |
7286 | version_type=linux | |
7287 | need_lib_prefix=no | |
7288 | need_version=no | |
7289 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7290 | soname_spec='${libname}${release}.so$major' | |
7291 | shlibpath_var=LD_LIBRARY_PATH | |
7292 | shlibpath_overrides_runpath=yes | |
7293 | hardcode_into_libs=yes | |
7294 | # ldd complains unless libraries are executable | |
7295 | postinstall_cmds='chmod +x $lib' | |
7296 | ;; | |
7297 | ||
7298 | sunos4*) | |
7299 | version_type=sunos | |
7300 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
7301 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
7302 | shlibpath_var=LD_LIBRARY_PATH | |
7303 | shlibpath_overrides_runpath=yes | |
7304 | if test "$with_gnu_ld" = yes; then | |
7305 | need_lib_prefix=no | |
7306 | fi | |
7307 | need_version=yes | |
7308 | ;; | |
7309 | ||
7310 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
7311 | version_type=linux | |
7312 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7313 | soname_spec='${libname}${release}.so$major' | |
7314 | shlibpath_var=LD_LIBRARY_PATH | |
7315 | case $host_vendor in | |
7316 | sni) | |
7317 | shlibpath_overrides_runpath=no | |
7318 | ;; | |
7319 | motorola) | |
7320 | need_lib_prefix=no | |
7321 | need_version=no | |
7322 | shlibpath_overrides_runpath=no | |
7323 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
7324 | ;; | |
7325 | esac | |
7326 | ;; | |
7327 | ||
7328 | sysv4*MP*) | |
7329 | if test -d /usr/nec ;then | |
7330 | version_type=linux | |
7331 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | |
7332 | soname_spec='$libname.so.$major' | |
7333 | shlibpath_var=LD_LIBRARY_PATH | |
7334 | fi | |
7335 | ;; | |
7336 | ||
7337 | uts4*) | |
7338 | version_type=linux | |
7339 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7340 | soname_spec='${libname}${release}.so$major' | |
7341 | shlibpath_var=LD_LIBRARY_PATH | |
7342 | ;; | |
7343 | ||
7344 | *) | |
7345 | dynamic_linker=no | |
7346 | ;; | |
7347 | esac | |
7348 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
7349 | echo "${ECHO_T}$dynamic_linker" >&6 | |
7350 | test "$dynamic_linker" = no && can_build_shared=no | |
7351 | ||
7352 | if test "x$enable_dlopen" != xyes; then | |
7353 | enable_dlopen=unknown | |
7354 | enable_dlopen_self=unknown | |
7355 | enable_dlopen_self_static=unknown | |
7356 | else | |
7357 | lt_cv_dlopen=no | |
7358 | lt_cv_dlopen_libs= | |
7359 | ||
7360 | case $host_os in | |
7361 | beos*) | |
7362 | lt_cv_dlopen="load_add_on" | |
7363 | lt_cv_dlopen_libs= | |
7364 | lt_cv_dlopen_self=yes | |
7365 | ;; | |
7366 | ||
7367 | cygwin* | mingw* | pw32*) | |
7368 | lt_cv_dlopen="LoadLibrary" | |
7369 | lt_cv_dlopen_libs= | |
7370 | ;; | |
7371 | ||
7372 | *) | |
7373 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
7374 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
7375 | if test "${ac_cv_func_shl_load+set}" = set; then | |
7376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7377 | else | |
7378 | cat >conftest.$ac_ext <<_ACEOF | |
7379 | #line $LINENO "configure" | |
7380 | #include "confdefs.h" | |
7381 | /* System header to define __stub macros and hopefully few prototypes, | |
7382 | which can conflict with char shl_load (); below. */ | |
7383 | #include <assert.h> | |
7384 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7385 | #ifdef __cplusplus | |
7386 | extern "C" | |
7387 | #endif | |
7388 | /* We use char because int might match the return type of a gcc2 | |
7389 | builtin and then its argument prototype would still apply. */ | |
7390 | char shl_load (); | |
7391 | char (*f) (); | |
7392 | ||
7393 | #ifdef F77_DUMMY_MAIN | |
7394 | # ifdef __cplusplus | |
7395 | extern "C" | |
7396 | # endif | |
7397 | int F77_DUMMY_MAIN() { return 1; } | |
7398 | #endif | |
7399 | int | |
7400 | main () | |
7401 | { | |
7402 | /* The GNU C library defines this for functions which it implements | |
7403 | to always fail with ENOSYS. Some functions are actually named | |
7404 | something starting with __ and the normal name is an alias. */ | |
7405 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
7406 | choke me | |
7407 | #else | |
7408 | f = shl_load; | |
7409 | #endif | |
7410 | ||
7411 | ; | |
7412 | return 0; | |
7413 | } | |
7414 | _ACEOF | |
7415 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7416 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7417 | (eval $ac_link) 2>&5 | |
7418 | ac_status=$? | |
7419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7420 | (exit $ac_status); } && | |
7421 | { ac_try='test -s conftest$ac_exeext' | |
7422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7423 | (eval $ac_try) 2>&5 | |
7424 | ac_status=$? | |
7425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7426 | (exit $ac_status); }; }; then | |
7427 | ac_cv_func_shl_load=yes | |
7428 | else | |
7429 | echo "$as_me: failed program was:" >&5 | |
7430 | cat conftest.$ac_ext >&5 | |
7431 | ac_cv_func_shl_load=no | |
7432 | fi | |
7433 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7434 | fi | |
7435 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
7436 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
7437 | if test $ac_cv_func_shl_load = yes; then | |
7438 | lt_cv_dlopen="shl_load" | |
7439 | else | |
7440 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
7441 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
7442 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
7443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7444 | else | |
7445 | ac_check_lib_save_LIBS=$LIBS | |
7446 | LIBS="-ldld $LIBS" | |
7447 | cat >conftest.$ac_ext <<_ACEOF | |
7448 | #line $LINENO "configure" | |
7449 | #include "confdefs.h" | |
7450 | ||
7451 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7452 | #ifdef __cplusplus | |
7453 | extern "C" | |
7454 | #endif | |
7455 | /* We use char because int might match the return type of a gcc2 | |
7456 | builtin and then its argument prototype would still apply. */ | |
7457 | char shl_load (); | |
7458 | #ifdef F77_DUMMY_MAIN | |
7459 | # ifdef __cplusplus | |
7460 | extern "C" | |
7461 | # endif | |
7462 | int F77_DUMMY_MAIN() { return 1; } | |
7463 | #endif | |
7464 | int | |
7465 | main () | |
7466 | { | |
7467 | shl_load (); | |
7468 | ; | |
7469 | return 0; | |
7470 | } | |
7471 | _ACEOF | |
7472 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7473 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7474 | (eval $ac_link) 2>&5 | |
7475 | ac_status=$? | |
7476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7477 | (exit $ac_status); } && | |
7478 | { ac_try='test -s conftest$ac_exeext' | |
7479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7480 | (eval $ac_try) 2>&5 | |
7481 | ac_status=$? | |
7482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7483 | (exit $ac_status); }; }; then | |
7484 | ac_cv_lib_dld_shl_load=yes | |
7485 | else | |
7486 | echo "$as_me: failed program was:" >&5 | |
7487 | cat conftest.$ac_ext >&5 | |
7488 | ac_cv_lib_dld_shl_load=no | |
7489 | fi | |
7490 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7491 | LIBS=$ac_check_lib_save_LIBS | |
7492 | fi | |
7493 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
7494 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
7495 | if test $ac_cv_lib_dld_shl_load = yes; then | |
7496 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
7497 | else | |
7498 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
7499 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
7500 | if test "${ac_cv_func_dlopen+set}" = set; then | |
7501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7502 | else | |
7503 | cat >conftest.$ac_ext <<_ACEOF | |
7504 | #line $LINENO "configure" | |
7505 | #include "confdefs.h" | |
7506 | /* System header to define __stub macros and hopefully few prototypes, | |
7507 | which can conflict with char dlopen (); below. */ | |
7508 | #include <assert.h> | |
7509 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7510 | #ifdef __cplusplus | |
7511 | extern "C" | |
7512 | #endif | |
7513 | /* We use char because int might match the return type of a gcc2 | |
7514 | builtin and then its argument prototype would still apply. */ | |
7515 | char dlopen (); | |
7516 | char (*f) (); | |
7517 | ||
7518 | #ifdef F77_DUMMY_MAIN | |
7519 | # ifdef __cplusplus | |
7520 | extern "C" | |
7521 | # endif | |
7522 | int F77_DUMMY_MAIN() { return 1; } | |
7523 | #endif | |
7524 | int | |
7525 | main () | |
7526 | { | |
7527 | /* The GNU C library defines this for functions which it implements | |
7528 | to always fail with ENOSYS. Some functions are actually named | |
7529 | something starting with __ and the normal name is an alias. */ | |
7530 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
7531 | choke me | |
7532 | #else | |
7533 | f = dlopen; | |
7534 | #endif | |
7535 | ||
7536 | ; | |
7537 | return 0; | |
7538 | } | |
7539 | _ACEOF | |
7540 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7542 | (eval $ac_link) 2>&5 | |
7543 | ac_status=$? | |
7544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7545 | (exit $ac_status); } && | |
7546 | { ac_try='test -s conftest$ac_exeext' | |
7547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7548 | (eval $ac_try) 2>&5 | |
7549 | ac_status=$? | |
7550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7551 | (exit $ac_status); }; }; then | |
7552 | ac_cv_func_dlopen=yes | |
7553 | else | |
7554 | echo "$as_me: failed program was:" >&5 | |
7555 | cat conftest.$ac_ext >&5 | |
7556 | ac_cv_func_dlopen=no | |
7557 | fi | |
7558 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7559 | fi | |
7560 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
7561 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
7562 | if test $ac_cv_func_dlopen = yes; then | |
7563 | lt_cv_dlopen="dlopen" | |
7564 | else | |
7565 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
7566 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
7567 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
7568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7569 | else | |
7570 | ac_check_lib_save_LIBS=$LIBS | |
7571 | LIBS="-ldl $LIBS" | |
7572 | cat >conftest.$ac_ext <<_ACEOF | |
7573 | #line $LINENO "configure" | |
7574 | #include "confdefs.h" | |
7575 | ||
7576 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7577 | #ifdef __cplusplus | |
7578 | extern "C" | |
7579 | #endif | |
7580 | /* We use char because int might match the return type of a gcc2 | |
7581 | builtin and then its argument prototype would still apply. */ | |
7582 | char dlopen (); | |
7583 | #ifdef F77_DUMMY_MAIN | |
7584 | # ifdef __cplusplus | |
7585 | extern "C" | |
7586 | # endif | |
7587 | int F77_DUMMY_MAIN() { return 1; } | |
7588 | #endif | |
7589 | int | |
7590 | main () | |
7591 | { | |
7592 | dlopen (); | |
7593 | ; | |
7594 | return 0; | |
7595 | } | |
7596 | _ACEOF | |
7597 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7598 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7599 | (eval $ac_link) 2>&5 | |
7600 | ac_status=$? | |
7601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7602 | (exit $ac_status); } && | |
7603 | { ac_try='test -s conftest$ac_exeext' | |
7604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7605 | (eval $ac_try) 2>&5 | |
7606 | ac_status=$? | |
7607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7608 | (exit $ac_status); }; }; then | |
7609 | ac_cv_lib_dl_dlopen=yes | |
7610 | else | |
7611 | echo "$as_me: failed program was:" >&5 | |
7612 | cat conftest.$ac_ext >&5 | |
7613 | ac_cv_lib_dl_dlopen=no | |
7614 | fi | |
7615 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7616 | LIBS=$ac_check_lib_save_LIBS | |
7617 | fi | |
7618 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
7619 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
7620 | if test $ac_cv_lib_dl_dlopen = yes; then | |
7621 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
7622 | else | |
7623 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
7624 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
7625 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
7626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7627 | else | |
7628 | ac_check_lib_save_LIBS=$LIBS | |
7629 | LIBS="-lsvld $LIBS" | |
7630 | cat >conftest.$ac_ext <<_ACEOF | |
7631 | #line $LINENO "configure" | |
7632 | #include "confdefs.h" | |
7633 | ||
7634 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7635 | #ifdef __cplusplus | |
7636 | extern "C" | |
7637 | #endif | |
7638 | /* We use char because int might match the return type of a gcc2 | |
7639 | builtin and then its argument prototype would still apply. */ | |
7640 | char dlopen (); | |
7641 | #ifdef F77_DUMMY_MAIN | |
7642 | # ifdef __cplusplus | |
7643 | extern "C" | |
7644 | # endif | |
7645 | int F77_DUMMY_MAIN() { return 1; } | |
7646 | #endif | |
7647 | int | |
7648 | main () | |
7649 | { | |
7650 | dlopen (); | |
7651 | ; | |
7652 | return 0; | |
7653 | } | |
7654 | _ACEOF | |
7655 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7656 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7657 | (eval $ac_link) 2>&5 | |
7658 | ac_status=$? | |
7659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7660 | (exit $ac_status); } && | |
7661 | { ac_try='test -s conftest$ac_exeext' | |
7662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7663 | (eval $ac_try) 2>&5 | |
7664 | ac_status=$? | |
7665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7666 | (exit $ac_status); }; }; then | |
7667 | ac_cv_lib_svld_dlopen=yes | |
7668 | else | |
7669 | echo "$as_me: failed program was:" >&5 | |
7670 | cat conftest.$ac_ext >&5 | |
7671 | ac_cv_lib_svld_dlopen=no | |
7672 | fi | |
7673 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7674 | LIBS=$ac_check_lib_save_LIBS | |
7675 | fi | |
7676 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
7677 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
7678 | if test $ac_cv_lib_svld_dlopen = yes; then | |
7679 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
7680 | else | |
7681 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
7682 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
7683 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
7684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7685 | else | |
7686 | ac_check_lib_save_LIBS=$LIBS | |
7687 | LIBS="-ldld $LIBS" | |
7688 | cat >conftest.$ac_ext <<_ACEOF | |
7689 | #line $LINENO "configure" | |
7690 | #include "confdefs.h" | |
7691 | ||
7692 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7693 | #ifdef __cplusplus | |
7694 | extern "C" | |
7695 | #endif | |
7696 | /* We use char because int might match the return type of a gcc2 | |
7697 | builtin and then its argument prototype would still apply. */ | |
7698 | char dld_link (); | |
7699 | #ifdef F77_DUMMY_MAIN | |
7700 | # ifdef __cplusplus | |
7701 | extern "C" | |
7702 | # endif | |
7703 | int F77_DUMMY_MAIN() { return 1; } | |
7704 | #endif | |
7705 | int | |
7706 | main () | |
7707 | { | |
7708 | dld_link (); | |
7709 | ; | |
7710 | return 0; | |
7711 | } | |
7712 | _ACEOF | |
7713 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7715 | (eval $ac_link) 2>&5 | |
7716 | ac_status=$? | |
7717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7718 | (exit $ac_status); } && | |
7719 | { ac_try='test -s conftest$ac_exeext' | |
7720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7721 | (eval $ac_try) 2>&5 | |
7722 | ac_status=$? | |
7723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7724 | (exit $ac_status); }; }; then | |
7725 | ac_cv_lib_dld_dld_link=yes | |
7726 | else | |
7727 | echo "$as_me: failed program was:" >&5 | |
7728 | cat conftest.$ac_ext >&5 | |
7729 | ac_cv_lib_dld_dld_link=no | |
7730 | fi | |
7731 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7732 | LIBS=$ac_check_lib_save_LIBS | |
7733 | fi | |
7734 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
7735 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
7736 | if test $ac_cv_lib_dld_dld_link = yes; then | |
7737 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
7738 | fi | |
7739 | ||
7740 | ||
7741 | fi | |
7742 | ||
7743 | ||
7744 | fi | |
7745 | ||
7746 | ||
7747 | fi | |
7748 | ||
7749 | ||
7750 | fi | |
7751 | ||
7752 | ||
7753 | fi | |
7754 | ||
7755 | ;; | |
7756 | esac | |
7757 | ||
7758 | if test "x$lt_cv_dlopen" != xno; then | |
7759 | enable_dlopen=yes | |
7760 | else | |
7761 | enable_dlopen=no | |
7762 | fi | |
7763 | ||
7764 | case $lt_cv_dlopen in | |
7765 | dlopen) | |
7766 | save_CPPFLAGS="$CPPFLAGS" | |
7767 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
7768 | ||
7769 | save_LDFLAGS="$LDFLAGS" | |
7770 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
7771 | ||
7772 | save_LIBS="$LIBS" | |
7773 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
7774 | ||
7775 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
7776 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
7777 | if test "${lt_cv_dlopen_self+set}" = set; then | |
7778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7779 | else | |
7780 | if test "$cross_compiling" = yes; then : | |
7781 | lt_cv_dlopen_self=cross | |
7782 | else | |
7783 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
7784 | lt_status=$lt_dlunknown | |
7785 | cat > conftest.$ac_ext <<EOF | |
7786 | #line 7786 "configure" | |
7787 | #include "confdefs.h" | |
7788 | ||
7789 | #if HAVE_DLFCN_H | |
7790 | #include <dlfcn.h> | |
7791 | #endif | |
7792 | ||
7793 | #include <stdio.h> | |
7794 | ||
7795 | #ifdef RTLD_GLOBAL | |
7796 | # define LT_DLGLOBAL RTLD_GLOBAL | |
7797 | #else | |
7798 | # ifdef DL_GLOBAL | |
7799 | # define LT_DLGLOBAL DL_GLOBAL | |
7800 | # else | |
7801 | # define LT_DLGLOBAL 0 | |
7802 | # endif | |
7803 | #endif | |
7804 | ||
7805 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
7806 | find out it does not work in some platform. */ | |
7807 | #ifndef LT_DLLAZY_OR_NOW | |
7808 | # ifdef RTLD_LAZY | |
7809 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
7810 | # else | |
7811 | # ifdef DL_LAZY | |
7812 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
7813 | # else | |
7814 | # ifdef RTLD_NOW | |
7815 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
7816 | # else | |
7817 | # ifdef DL_NOW | |
7818 | # define LT_DLLAZY_OR_NOW DL_NOW | |
7819 | # else | |
7820 | # define LT_DLLAZY_OR_NOW 0 | |
7821 | # endif | |
7822 | # endif | |
7823 | # endif | |
7824 | # endif | |
7825 | #endif | |
7826 | ||
7827 | #ifdef __cplusplus | |
7828 | extern "C" void exit (int); | |
7829 | #endif | |
7830 | ||
7831 | void fnord() { int i=42;} | |
7832 | int main () | |
7833 | { | |
7834 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
7835 | int status = $lt_dlunknown; | |
7836 | ||
7837 | if (self) | |
7838 | { | |
7839 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
7840 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
7841 | /* dlclose (self); */ | |
7842 | } | |
7843 | ||
7844 | exit (status); | |
7845 | } | |
7846 | EOF | |
7847 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7848 | (eval $ac_link) 2>&5 | |
7849 | ac_status=$? | |
7850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7851 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
7852 | (./conftest; exit; ) 2>/dev/null | |
7853 | lt_status=$? | |
7854 | case x$lt_status in | |
7855 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
7856 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
7857 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
7858 | esac | |
7859 | else : | |
7860 | # compilation failed | |
7861 | lt_cv_dlopen_self=no | |
7862 | fi | |
7863 | fi | |
7864 | rm -fr conftest* | |
7865 | ||
7866 | ||
7867 | fi | |
7868 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
7869 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
7870 | ||
7871 | if test "x$lt_cv_dlopen_self" = xyes; then | |
7872 | LDFLAGS="$LDFLAGS $link_static_flag" | |
7873 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
7874 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
7875 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
7876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7877 | else | |
7878 | if test "$cross_compiling" = yes; then : | |
7879 | lt_cv_dlopen_self_static=cross | |
7880 | else | |
7881 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
7882 | lt_status=$lt_dlunknown | |
7883 | cat > conftest.$ac_ext <<EOF | |
7884 | #line 7884 "configure" | |
7885 | #include "confdefs.h" | |
7886 | ||
7887 | #if HAVE_DLFCN_H | |
7888 | #include <dlfcn.h> | |
7889 | #endif | |
7890 | ||
7891 | #include <stdio.h> | |
7892 | ||
7893 | #ifdef RTLD_GLOBAL | |
7894 | # define LT_DLGLOBAL RTLD_GLOBAL | |
7895 | #else | |
7896 | # ifdef DL_GLOBAL | |
7897 | # define LT_DLGLOBAL DL_GLOBAL | |
7898 | # else | |
7899 | # define LT_DLGLOBAL 0 | |
7900 | # endif | |
7901 | #endif | |
7902 | ||
7903 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
7904 | find out it does not work in some platform. */ | |
7905 | #ifndef LT_DLLAZY_OR_NOW | |
7906 | # ifdef RTLD_LAZY | |
7907 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
7908 | # else | |
7909 | # ifdef DL_LAZY | |
7910 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
7911 | # else | |
7912 | # ifdef RTLD_NOW | |
7913 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
7914 | # else | |
7915 | # ifdef DL_NOW | |
7916 | # define LT_DLLAZY_OR_NOW DL_NOW | |
7917 | # else | |
7918 | # define LT_DLLAZY_OR_NOW 0 | |
7919 | # endif | |
7920 | # endif | |
7921 | # endif | |
7922 | # endif | |
7923 | #endif | |
7924 | ||
7925 | #ifdef __cplusplus | |
7926 | extern "C" void exit (int); | |
7927 | #endif | |
7928 | ||
7929 | void fnord() { int i=42;} | |
7930 | int main () | |
7931 | { | |
7932 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
7933 | int status = $lt_dlunknown; | |
7934 | ||
7935 | if (self) | |
7936 | { | |
7937 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
7938 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
7939 | /* dlclose (self); */ | |
7940 | } | |
7941 | ||
7942 | exit (status); | |
7943 | } | |
7944 | EOF | |
7945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7946 | (eval $ac_link) 2>&5 | |
7947 | ac_status=$? | |
7948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7949 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
7950 | (./conftest; exit; ) 2>/dev/null | |
7951 | lt_status=$? | |
7952 | case x$lt_status in | |
7953 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
7954 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
7955 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
7956 | esac | |
7957 | else : | |
7958 | # compilation failed | |
7959 | lt_cv_dlopen_self_static=no | |
7960 | fi | |
7961 | fi | |
7962 | rm -fr conftest* | |
7963 | ||
7964 | ||
7965 | fi | |
7966 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
7967 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
7968 | fi | |
7969 | ||
7970 | CPPFLAGS="$save_CPPFLAGS" | |
7971 | LDFLAGS="$save_LDFLAGS" | |
7972 | LIBS="$save_LIBS" | |
7973 | ;; | |
7974 | esac | |
7975 | ||
7976 | case $lt_cv_dlopen_self in | |
7977 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
7978 | *) enable_dlopen_self=unknown ;; | |
7979 | esac | |
7980 | ||
7981 | case $lt_cv_dlopen_self_static in | |
7982 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
7983 | *) enable_dlopen_self_static=unknown ;; | |
7984 | esac | |
7985 | fi | |
7986 | ||
7987 | ||
7988 | # Report which librarie types wil actually be built | |
7989 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
7990 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
7991 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
7992 | echo "${ECHO_T}$can_build_shared" >&6 | |
7993 | ||
7994 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
7995 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
7996 | test "$can_build_shared" = "no" && enable_shared=no | |
7997 | ||
7998 | # On AIX, shared libraries and static libraries use the same namespace, and | |
7999 | # are all built from PIC. | |
8000 | case "$host_os" in | |
8001 | aix3*) | |
8002 | test "$enable_shared" = yes && enable_static=no | |
8003 | if test -n "$RANLIB"; then | |
8004 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
8005 | postinstall_cmds='$RANLIB $lib' | |
8006 | fi | |
8007 | ;; | |
8008 | ||
8009 | aix4*) | |
8010 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
8011 | test "$enable_shared" = yes && enable_static=no | |
8012 | fi | |
8013 | ;; | |
8014 | esac | |
8015 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
8016 | echo "${ECHO_T}$enable_shared" >&6 | |
8017 | ||
8018 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
8019 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
8020 | # Make sure either enable_shared or enable_static is yes. | |
8021 | test "$enable_shared" = yes || enable_static=yes | |
8022 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
8023 | echo "${ECHO_T}$enable_static" >&6 | |
8024 | ||
8025 | # The else clause should only fire when bootstrapping the | |
8026 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
8027 | # with your package, and you will get complaints that there are | |
8028 | # no rules to generate ltmain.sh. | |
8029 | if test -f "$ltmain"; then | |
8030 | # Now quote all the things that may contain metacharacters while being | |
8031 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
8032 | # variables and quote the copies for generation of the libtool script. | |
8033 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
8034 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
8035 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
8036 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
8037 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
8038 | lt_cv_sys_global_symbol_to_c_name_address \ | |
8039 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
8040 | old_postinstall_cmds old_postuninstall_cmds \ | |
8041 | compiler \ | |
8042 | CC \ | |
8043 | LD \ | |
8044 | lt_prog_compiler_wl \ | |
8045 | lt_prog_compiler_pic \ | |
8046 | lt_prog_compiler_static \ | |
8047 | lt_prog_compiler_no_builtin_flag \ | |
8048 | export_dynamic_flag_spec \ | |
8049 | thread_safe_flag_spec \ | |
8050 | whole_archive_flag_spec \ | |
8051 | old_archive_cmds \ | |
8052 | old_archive_from_new_cmds \ | |
8053 | predep_objects \ | |
8054 | postdep_objects \ | |
8055 | predeps \ | |
8056 | postdeps \ | |
8057 | compiler_lib_search_path \ | |
8058 | archive_cmds \ | |
8059 | archive_expsym_cmds \ | |
8060 | postinstall_cmds \ | |
8061 | postuninstall_cmds \ | |
8062 | old_archive_from_expsyms_cmds \ | |
8063 | allow_undefined_flag \ | |
8064 | no_undefined_flag \ | |
8065 | export_symbols_cmds \ | |
8066 | hardcode_libdir_flag_spec \ | |
8067 | hardcode_libdir_separator \ | |
8068 | lt_cv_prog_compiler_c_o \ | |
8069 | exclude_expsyms \ | |
8070 | include_expsyms; do | |
8071 | ||
8072 | case $var in | |
8073 | old_archive_cmds | \ | |
8074 | old_archive_from_new_cmds | \ | |
8075 | archive_cmds | \ | |
8076 | archive_expsym_cmds | \ | |
8077 | old_archive_from_expsyms_cmds | \ | |
8078 | export_symbols_cmds | \ | |
8079 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
8080 | postinstall_cmds | postuninstall_cmds | \ | |
8081 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
8082 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
8083 | # Double-quote double-evaled strings. | |
8084 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
8085 | ;; | |
8086 | *) | |
8087 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
8088 | ;; | |
8089 | esac | |
8090 | done | |
8091 | ||
8092 | case $lt_echo in | |
8093 | *'\$0 --fallback-echo"') | |
8094 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
8095 | ;; | |
8096 | esac | |
8097 | ||
8098 | cfgfile="${ofile}T" | |
8099 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | |
8100 | $rm -f "$cfgfile" | |
8101 | { echo "$as_me:$LINENO: creating $ofile" >&5 | |
8102 | echo "$as_me: creating $ofile" >&6;} | |
8103 | ||
8104 | cat <<__EOF__ >> "$cfgfile" | |
8105 | #! $SHELL | |
8106 | ||
8107 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
8108 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | |
8109 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
8110 | # | |
8111 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | |
8112 | # Free Software Foundation, Inc. | |
8113 | # | |
8114 | # This file is part of GNU Libtool: | |
8115 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
8116 | # | |
8117 | # This program is free software; you can redistribute it and/or modify | |
8118 | # it under the terms of the GNU General Public License as published by | |
8119 | # the Free Software Foundation; either version 2 of the License, or | |
8120 | # (at your option) any later version. | |
8121 | # | |
8122 | # This program is distributed in the hope that it will be useful, but | |
8123 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
8124 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
8125 | # General Public License for more details. | |
8126 | # | |
8127 | # You should have received a copy of the GNU General Public License | |
8128 | # along with this program; if not, write to the Free Software | |
8129 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
8130 | # | |
8131 | # As a special exception to the GNU General Public License, if you | |
8132 | # distribute this file as part of a program that contains a | |
8133 | # configuration script generated by Autoconf, you may include it under | |
8134 | # the same distribution terms that you use for the rest of that program. | |
8135 | ||
8136 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
8137 | Xsed="sed -e s/^X//" | |
8138 | ||
8139 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
8140 | # if CDPATH is set. | |
8141 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | |
8142 | ||
8143 | # The names of the tagged configurations supported by this script. | |
8144 | available_tags= | |
8145 | ||
8146 | # ### BEGIN LIBTOOL CONFIG | |
8147 | ||
8148 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
8149 | ||
8150 | # Shell to use when invoking shell scripts. | |
8151 | SHELL=$lt_SHELL | |
8152 | ||
8153 | # Whether or not to build shared libraries. | |
8154 | build_libtool_libs=$enable_shared | |
8155 | ||
8156 | # Whether or not to build static libraries. | |
8157 | build_old_libs=$enable_static | |
8158 | ||
8159 | # Whether or not to add -lc for building shared libraries. | |
8160 | build_libtool_need_lc=$archive_cmds_need_lc | |
8161 | ||
8162 | # Whether or not to optimize for fast installation. | |
8163 | fast_install=$enable_fast_install | |
8164 | ||
8165 | # The host system. | |
8166 | host_alias=$host_alias | |
8167 | host=$host | |
8168 | ||
8169 | # An echo program that does not interpret backslashes. | |
8170 | echo=$lt_echo | |
8171 | ||
8172 | # The archiver. | |
8173 | AR=$lt_AR | |
8174 | AR_FLAGS=$lt_AR_FLAGS | |
8175 | ||
8176 | # A C compiler. | |
8177 | LTCC=$lt_LTCC | |
8178 | ||
8179 | # A language-specific compiler. | |
8180 | CC=$lt_compiler | |
8181 | ||
8182 | # Is the compiler the GNU C compiler? | |
8183 | with_gcc=$GCC | |
8184 | ||
8185 | # The linker used to build libraries. | |
8186 | LD=$lt_LD | |
8187 | ||
8188 | # Whether we need hard or soft links. | |
8189 | LN_S=$lt_LN_S | |
8190 | ||
8191 | # A BSD-compatible nm program. | |
8192 | NM=$lt_NM | |
8193 | ||
8194 | # A sed program that does not truncate output. | |
8195 | SED=$lt_SED | |
8196 | ||
8197 | # A symbol stripping program | |
8198 | STRIP=$STRIP | |
8199 | ||
8200 | # Used to examine libraries when file_magic_cmd begins "file" | |
8201 | MAGIC_CMD=$MAGIC_CMD | |
8202 | ||
8203 | # Used on cygwin: DLL creation program. | |
8204 | DLLTOOL="$DLLTOOL" | |
8205 | ||
8206 | # Used on cygwin: object dumper. | |
8207 | OBJDUMP="$OBJDUMP" | |
8208 | ||
8209 | # Used on cygwin: assembler. | |
8210 | AS="$AS" | |
8211 | ||
8212 | # The name of the directory that contains temporary libtool files. | |
8213 | objdir=$objdir | |
8214 | ||
8215 | # How to create reloadable object files. | |
8216 | reload_flag=$lt_reload_flag | |
8217 | reload_cmds=$lt_reload_cmds | |
8218 | ||
8219 | # How to pass a linker flag through the compiler. | |
8220 | wl=$lt_lt_prog_compiler_wl | |
8221 | ||
8222 | # Object file suffix (normally "o"). | |
8223 | objext="$ac_objext" | |
8224 | ||
8225 | # Old archive suffix (normally "a"). | |
8226 | libext="$libext" | |
8227 | ||
8228 | # Executable file suffix (normally ""). | |
8229 | exeext="$exeext" | |
8230 | ||
8231 | # Additional compiler flags for building library objects. | |
8232 | pic_flag=$lt_lt_prog_compiler_pic | |
8233 | pic_mode=$pic_mode | |
8234 | ||
8235 | # What is the maximum length of a command? | |
8236 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
8237 | ||
8238 | # Does compiler simultaneously support -c and -o options? | |
8239 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
8240 | ||
8241 | # Must we lock files when doing compilation ? | |
8242 | need_locks=$lt_need_locks | |
8243 | ||
8244 | # Do we need the lib prefix for modules? | |
8245 | need_lib_prefix=$need_lib_prefix | |
8246 | ||
8247 | # Do we need a version for libraries? | |
8248 | need_version=$need_version | |
8249 | ||
8250 | # Whether dlopen is supported. | |
8251 | dlopen_support=$enable_dlopen | |
8252 | ||
8253 | # Whether dlopen of programs is supported. | |
8254 | dlopen_self=$enable_dlopen_self | |
8255 | ||
8256 | # Whether dlopen of statically linked programs is supported. | |
8257 | dlopen_self_static=$enable_dlopen_self_static | |
8258 | ||
8259 | # Compiler flag to prevent dynamic linking. | |
8260 | link_static_flag=$lt_lt_prog_compiler_static | |
8261 | ||
8262 | # Compiler flag to turn off builtin functions. | |
8263 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
8264 | ||
8265 | # Compiler flag to allow reflexive dlopens. | |
8266 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
8267 | ||
8268 | # Compiler flag to generate shared objects directly from archives. | |
8269 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
8270 | ||
8271 | # Compiler flag to generate thread-safe objects. | |
8272 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | |
8273 | ||
8274 | # Library versioning type. | |
8275 | version_type=$version_type | |
8276 | ||
8277 | # Format of library name prefix. | |
8278 | libname_spec=$lt_libname_spec | |
8279 | ||
8280 | # List of archive names. First name is the real one, the rest are links. | |
8281 | # The last name is the one that the linker finds with -lNAME. | |
8282 | library_names_spec=$lt_library_names_spec | |
8283 | ||
8284 | # The coded name of the library, if different from the real name. | |
8285 | soname_spec=$lt_soname_spec | |
8286 | ||
8287 | # Commands used to build and install an old-style archive. | |
8288 | RANLIB=$lt_RANLIB | |
8289 | old_archive_cmds=$lt_old_archive_cmds | |
8290 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
8291 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
8292 | ||
8293 | # Create an old-style archive from a shared archive. | |
8294 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
8295 | ||
8296 | # Create a temporary old-style archive to link instead of a shared archive. | |
8297 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
8298 | ||
8299 | # Commands used to build and install a shared archive. | |
8300 | archive_cmds=$lt_archive_cmds | |
8301 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
8302 | postinstall_cmds=$lt_postinstall_cmds | |
8303 | postuninstall_cmds=$lt_postuninstall_cmds | |
8304 | ||
8305 | # Commands to strip libraries. | |
8306 | old_striplib=$lt_old_striplib | |
8307 | striplib=$lt_striplib | |
8308 | ||
8309 | # Dependencies to place before the objects being linked to create a | |
8310 | # shared library. | |
8311 | predep_objects=$lt_predep_objects | |
8312 | ||
8313 | # Dependencies to place after the objects being linked to create a | |
8314 | # shared library. | |
8315 | postdep_objects=$lt_postdep_objects | |
8316 | ||
8317 | # Dependencies to place before the objects being linked to create a | |
8318 | # shared library. | |
8319 | predeps=$lt_predeps | |
8320 | ||
8321 | # Dependencies to place after the objects being linked to create a | |
8322 | # shared library. | |
8323 | postdeps=$lt_postdeps | |
8324 | ||
8325 | # The library search path used internally by the compiler when linking | |
8326 | # a shared library. | |
8327 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
8328 | ||
8329 | # Method to check whether dependent libraries are shared objects. | |
8330 | deplibs_check_method=$lt_deplibs_check_method | |
8331 | ||
8332 | # Command to use when deplibs_check_method == file_magic. | |
8333 | file_magic_cmd=$lt_file_magic_cmd | |
8334 | ||
8335 | # Flag that allows shared libraries with undefined symbols to be built. | |
8336 | allow_undefined_flag=$lt_allow_undefined_flag | |
8337 | ||
8338 | # Flag that forces no undefined symbols. | |
8339 | no_undefined_flag=$lt_no_undefined_flag | |
8340 | ||
8341 | # Commands used to finish a libtool library installation in a directory. | |
8342 | finish_cmds=$lt_finish_cmds | |
8343 | ||
8344 | # Same as above, but a single script fragment to be evaled but not shown. | |
8345 | finish_eval=$lt_finish_eval | |
8346 | ||
8347 | # Take the output of nm and produce a listing of raw symbols and C names. | |
8348 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
8349 | ||
8350 | # Transform the output of nm in a proper C declaration | |
8351 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
8352 | ||
8353 | # Transform the output of nm in a C name address pair | |
8354 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
8355 | ||
8356 | # This is the shared library runtime path variable. | |
8357 | runpath_var=$runpath_var | |
8358 | ||
8359 | # This is the shared library path variable. | |
8360 | shlibpath_var=$shlibpath_var | |
8361 | ||
8362 | # Is shlibpath searched before the hard-coded library search path? | |
8363 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
8364 | ||
8365 | # How to hardcode a shared library path into an executable. | |
8366 | hardcode_action=$hardcode_action | |
8367 | ||
8368 | # Whether we should hardcode library paths into libraries. | |
8369 | hardcode_into_libs=$hardcode_into_libs | |
8370 | ||
8371 | # Flag to hardcode \$libdir into a binary during linking. | |
8372 | # This must work even if \$libdir does not exist. | |
8373 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
8374 | ||
8375 | # Whether we need a single -rpath flag with a separated argument. | |
8376 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
8377 | ||
8378 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
8379 | # resulting binary. | |
8380 | hardcode_direct=$hardcode_direct | |
8381 | ||
8382 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
8383 | # resulting binary. | |
8384 | hardcode_minus_L=$hardcode_minus_L | |
8385 | ||
8386 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
8387 | # the resulting binary. | |
8388 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
8389 | ||
8390 | # Variables whose values should be saved in libtool wrapper scripts and | |
8391 | # restored at relink time. | |
8392 | variables_saved_for_relink="$variables_saved_for_relink" | |
8393 | ||
8394 | # Whether libtool must link a program against all its dependency libraries. | |
8395 | link_all_deplibs=$link_all_deplibs | |
8396 | ||
8397 | # Compile-time system search path for libraries | |
8398 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
8399 | ||
8400 | # Run-time system search path for libraries | |
8401 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
8402 | ||
8403 | # Fix the shell variable \$srcfile for the compiler. | |
8404 | fix_srcfile_path="$fix_srcfile_path" | |
8405 | ||
8406 | # Set to yes if exported symbols are required. | |
8407 | always_export_symbols=$always_export_symbols | |
8408 | ||
8409 | # The commands to list exported symbols. | |
8410 | export_symbols_cmds=$lt_export_symbols_cmds | |
8411 | ||
8412 | # The commands to extract the exported symbol list from a shared archive. | |
8413 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
8414 | ||
8415 | # Symbols that should not be listed in the preloaded symbols. | |
8416 | exclude_expsyms=$lt_exclude_expsyms | |
8417 | ||
8418 | # Symbols that must always be exported. | |
8419 | include_expsyms=$lt_include_expsyms | |
8420 | ||
8421 | # ### END LIBTOOL CONFIG | |
8422 | ||
8423 | __EOF__ | |
8424 | ||
8425 | ||
8426 | case $host_os in | |
8427 | aix3*) | |
8428 | cat <<\EOF >> "$cfgfile" | |
8429 | ||
8430 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8431 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8432 | # vanish in a puff of smoke. | |
8433 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8434 | COLLECT_NAMES= | |
8435 | export COLLECT_NAMES | |
8436 | fi | |
8437 | EOF | |
8438 | ;; | |
8439 | ||
8440 | cygwin* | mingw* | pw32* | os2*) | |
8441 | cat <<'EOF' >> "$cfgfile" | |
8442 | # This is a source program that is used to create dlls on Windows | |
8443 | # Don't remove nor modify the starting and closing comments | |
8444 | ||
8445 | # /* ltdll.c starts here */ | |
8446 | # #define WIN32_LEAN_AND_MEAN | |
8447 | # #include <windows.h> | |
8448 | # #undef WIN32_LEAN_AND_MEAN | |
8449 | # #include <stdio.h> | |
8450 | # | |
8451 | # #ifndef __CYGWIN__ | |
8452 | # # ifdef __CYGWIN32__ | |
8453 | # # define __CYGWIN__ __CYGWIN32__ | |
8454 | # # endif | |
8455 | # #endif | |
8456 | # | |
8457 | # #ifdef __cplusplus | |
8458 | # extern "C" { | |
8459 | # #endif | |
8460 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); | |
8461 | # #ifdef __cplusplus | |
8462 | # } | |
8463 | # #endif | |
8464 | # | |
8465 | # #ifdef __CYGWIN__ | |
8466 | # #include <cygwin/cygwin_dll.h> | |
8467 | # DECLARE_CYGWIN_DLL( DllMain ); | |
8468 | # #endif | |
8469 | # HINSTANCE __hDllInstance_base; | |
8470 | # | |
8471 | # BOOL APIENTRY | |
8472 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) | |
8473 | # { | |
8474 | # __hDllInstance_base = hInst; | |
8475 | # return TRUE; | |
8476 | # } | |
8477 | # /* ltdll.c ends here */ | |
8478 | ||
8479 | # This is a source program that is used to create import libraries | |
8480 | # on Windows for dlls which lack them. Don't remove nor modify the | |
8481 | # starting and closing comments | |
8482 | ||
8483 | # /* impgen.c starts here */ | |
8484 | # /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. | |
8485 | # | |
8486 | # This file is part of GNU libtool. | |
8487 | # | |
8488 | # This program is free software; you can redistribute it and/or modify | |
8489 | # it under the terms of the GNU General Public License as published by | |
8490 | # the Free Software Foundation; either version 2 of the License, or | |
8491 | # (at your option) any later version. | |
8492 | # | |
8493 | # This program is distributed in the hope that it will be useful, | |
8494 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
8495 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
8496 | # GNU General Public License for more details. | |
8497 | # | |
8498 | # You should have received a copy of the GNU General Public License | |
8499 | # along with this program; if not, write to the Free Software | |
8500 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
8501 | # */ | |
8502 | # | |
8503 | # #include <stdio.h> /* for printf() */ | |
8504 | # #include <unistd.h> /* for open(), lseek(), read() */ | |
8505 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ | |
8506 | # #include <string.h> /* for strdup() */ | |
8507 | # | |
8508 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ | |
8509 | # #ifndef O_BINARY | |
8510 | # #define O_BINARY 0 | |
8511 | # #endif | |
8512 | # | |
8513 | # static unsigned int | |
8514 | # pe_get16 (fd, offset) | |
8515 | # int fd; | |
8516 | # int offset; | |
8517 | # { | |
8518 | # unsigned char b[2]; | |
8519 | # lseek (fd, offset, SEEK_SET); | |
8520 | # read (fd, b, 2); | |
8521 | # return b[0] + (b[1]<<8); | |
8522 | # } | |
8523 | # | |
8524 | # static unsigned int | |
8525 | # pe_get32 (fd, offset) | |
8526 | # int fd; | |
8527 | # int offset; | |
8528 | # { | |
8529 | # unsigned char b[4]; | |
8530 | # lseek (fd, offset, SEEK_SET); | |
8531 | # read (fd, b, 4); | |
8532 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); | |
8533 | # } | |
8534 | # | |
8535 | # static unsigned int | |
8536 | # pe_as32 (ptr) | |
8537 | # void *ptr; | |
8538 | # { | |
8539 | # unsigned char *b = ptr; | |
8540 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); | |
8541 | # } | |
8542 | # | |
8543 | # int | |
8544 | # main (argc, argv) | |
8545 | # int argc; | |
8546 | # char *argv[]; | |
8547 | # { | |
8548 | # int dll; | |
8549 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; | |
8550 | # unsigned long export_rva, export_size, nsections, secptr, expptr; | |
8551 | # unsigned long name_rvas, nexp; | |
8552 | # unsigned char *expdata, *erva; | |
8553 | # char *filename, *dll_name; | |
8554 | # | |
8555 | # filename = argv[1]; | |
8556 | # | |
8557 | # dll = open(filename, O_RDONLY|O_BINARY); | |
8558 | # if (dll < 1) | |
8559 | # return 1; | |
8560 | # | |
8561 | # dll_name = filename; | |
8562 | # | |
8563 | # for (i=0; filename[i]; i++) | |
8564 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') | |
8565 | # dll_name = filename + i +1; | |
8566 | # | |
8567 | # pe_header_offset = pe_get32 (dll, 0x3c); | |
8568 | # opthdr_ofs = pe_header_offset + 4 + 20; | |
8569 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); | |
8570 | # | |
8571 | # if (num_entries < 1) /* no exports */ | |
8572 | # return 1; | |
8573 | # | |
8574 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); | |
8575 | # export_size = pe_get32 (dll, opthdr_ofs + 100); | |
8576 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); | |
8577 | # secptr = (pe_header_offset + 4 + 20 + | |
8578 | # pe_get16 (dll, pe_header_offset + 4 + 16)); | |
8579 | # | |
8580 | # expptr = 0; | |
8581 | # for (i = 0; i < nsections; i++) | |
8582 | # { | |
8583 | # char sname[8]; | |
8584 | # unsigned long secptr1 = secptr + 40 * i; | |
8585 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); | |
8586 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); | |
8587 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); | |
8588 | # lseek(dll, secptr1, SEEK_SET); | |
8589 | # read(dll, sname, 8); | |
8590 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) | |
8591 | # { | |
8592 | # expptr = fptr + (export_rva - vaddr); | |
8593 | # if (export_rva + export_size > vaddr + vsize) | |
8594 | # export_size = vsize - (export_rva - vaddr); | |
8595 | # break; | |
8596 | # } | |
8597 | # } | |
8598 | # | |
8599 | # expdata = (unsigned char*)malloc(export_size); | |
8600 | # lseek (dll, expptr, SEEK_SET); | |
8601 | # read (dll, expdata, export_size); | |
8602 | # erva = expdata - export_rva; | |
8603 | # | |
8604 | # nexp = pe_as32 (expdata+24); | |
8605 | # name_rvas = pe_as32 (expdata+32); | |
8606 | # | |
8607 | # printf ("EXPORTS\n"); | |
8608 | # for (i = 0; i<nexp; i++) | |
8609 | # { | |
8610 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); | |
8611 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); | |
8612 | # } | |
8613 | # | |
8614 | # return 0; | |
8615 | # } | |
8616 | # /* impgen.c ends here */ | |
8617 | ||
8618 | EOF | |
8619 | ;; | |
8620 | esac | |
8621 | ||
8622 | # We use sed instead of cat because bash on DJGPP gets confused if | |
8623 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
8624 | # text mode, it properly converts lines to CR/LF. This bash problem | |
8625 | # is reportedly fixed, but why not run on old versions too? | |
8626 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | |
8627 | ||
8628 | mv -f "$cfgfile" "$ofile" || \ | |
8629 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
8630 | chmod +x "$ofile" | |
8631 | ||
8632 | else | |
8633 | # If there is no Makefile yet, we rely on a make rule to execute | |
8634 | # `config.status --recheck' to rerun these tests and create the | |
8635 | # libtool script then. | |
8636 | test -f Makefile && make "$ltmain" | |
8637 | fi | |
8638 | ||
8639 | ||
8640 | ac_ext=cc | |
8641 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8642 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8643 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8644 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8645 | ||
8646 | CC="$lt_save_CC" | |
8647 | ||
8648 | ||
8649 | # Check whether --with-tags or --without-tags was given. | |
8650 | if test "${with_tags+set}" = set; then | |
8651 | withval="$with_tags" | |
8652 | tagnames="$withval" | |
8653 | else | |
8654 | tagnames="CXX,GCJ" | |
8655 | case $host_os in | |
8656 | mingw*|cygwin*) tagnames="$tagnames,RC" ;; | |
8657 | esac | |
8658 | fi; | |
8659 | ||
8660 | if test -f "$ltmain" && test -n "$tagnames"; then | |
8661 | if test ! -f "${ofile}"; then | |
8662 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | |
8663 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | |
8664 | fi | |
8665 | ||
8666 | if test -z "$LTCC"; then | |
8667 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | |
8668 | if test -z "$LTCC"; then | |
8669 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | |
8670 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | |
8671 | else | |
8672 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | |
8673 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | |
8674 | fi | |
8675 | fi | |
8676 | ||
8677 | # Extract list of available tagged configurations in $ofile. | |
8678 | # Note that this assumes the entire list is on one line. | |
8679 | available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | |
8680 | ||
8681 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8682 | for tagname in $tagnames; do | |
8683 | IFS="$lt_save_ifs" | |
8684 | # Check whether tagname contains only valid characters | |
8685 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | |
8686 | "") ;; | |
8687 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | |
8688 | echo "$as_me: error: invalid tag name: $tagname" >&2;} | |
8689 | { (exit 1); exit 1; }; } | |
8690 | ;; | |
8691 | esac | |
8692 | ||
8693 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | |
8694 | then | |
8695 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | |
8696 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | |
8697 | { (exit 1); exit 1; }; } | |
8698 | fi | |
8699 | ||
8700 | # Update the list of available tags. | |
8701 | if test -n "$tagname"; then | |
8702 | echo appending configuration tag \"$tagname\" to $ofile | |
8703 | ||
8704 | case $tagname in | |
8705 | CXX) | |
8706 | ac_ext=cc | |
8707 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8708 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8709 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8710 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8711 | ||
8712 | ||
8713 | ||
8714 | ||
8715 | archive_cmds_need_lc_CXX=no | |
8716 | allow_undefined_flag_CXX= | |
8717 | always_export_symbols_CXX=no | |
8718 | archive_expsym_cmds_CXX= | |
8719 | export_dynamic_flag_spec_CXX= | |
8720 | hardcode_direct_CXX=no | |
8721 | hardcode_libdir_flag_spec_CXX= | |
8722 | hardcode_libdir_separator_CXX= | |
8723 | hardcode_minus_L_CXX=no | |
8724 | link_all_deplibs_CXX=unknown | |
8725 | old_archive_cmds_CXX=$old_archive_cmds | |
8726 | no_undefined_flag_CXX= | |
8727 | whole_archive_flag_spec_CXX= | |
8728 | ||
8729 | # Dependencies to place before and after the object being linked: | |
8730 | predep_objects_CXX= | |
8731 | postdep_objects_CXX= | |
8732 | predeps_CXX= | |
8733 | postdeps_CXX= | |
8734 | compiler_lib_search_path_CXX= | |
8735 | ||
8736 | # Source file extension for C test sources. | |
8737 | ac_ext=cc | |
8738 | ||
8739 | # Object file extension for compiled C test sources. | |
8740 | objext=o | |
8741 | objext_CXX=$objext | |
8742 | ||
8743 | # Code to be used in simple compile tests | |
8744 | lt_simple_compile_test_code="int some_variable = 0;" | |
8745 | ||
8746 | # Code to be used in simple link tests | |
8747 | lt_simple_link_test_code='int main(int char *) { return(0); }' | |
8748 | ||
8749 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
8750 | ||
8751 | # If no C compiler was specified, use CC. | |
8752 | LTCC=${LTCC-"$CC"} | |
8753 | ||
8754 | # Allow CC to be a program name with arguments. | |
8755 | set dummy $CC | |
8756 | compiler="$2" | |
8757 | ||
8758 | ||
8759 | # Allow CC to be a program name with arguments. | |
8760 | lt_save_CC="$CC" | |
8761 | CC=${CXX-"c++"} | |
8762 | set dummy $CC | |
8763 | compiler="$2" | |
8764 | compiler_CXX=$CC | |
8765 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | |
8766 | ||
8767 | # We don't want -fno-exception wen compiling C++ code, so set the | |
8768 | # no_builtin_flag separately | |
8769 | if test "$GXX" = yes; then | |
8770 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
8771 | else | |
8772 | lt_prog_compiler_no_builtin_flag_CXX= | |
8773 | fi | |
8774 | ||
8775 | if test "$GXX" = yes; then | |
8776 | # Set up default GNU C++ configuration | |
8777 | ||
8778 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
8779 | # archiving commands below assume that GNU ld is being used. | |
8780 | if eval "`$CC -print-prog-name=ld` --version 2>&1" | \ | |
8781 | egrep 'GNU ld' > /dev/null; then | |
8782 | with_gnu_ld=yes | |
8783 | ||
8784 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8785 | 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' | |
8786 | ||
8787 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
8788 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
8789 | ||
8790 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8791 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
8792 | # investigate it a little bit more. (MM) | |
8793 | wlarc='${wl}' | |
8794 | ||
8795 | # ancient GNU ld didn't support --whole-archive et. al. | |
8796 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | |
8797 | egrep 'no-whole-archive' > /dev/null; then | |
8798 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8799 | else | |
8800 | whole_archive_flag_spec_CXX= | |
8801 | fi | |
8802 | else | |
8803 | with_gnu_ld=no | |
8804 | wlarc= | |
8805 | ||
8806 | # A generic and very simple default shared library creation | |
8807 | # command for GNU C++ for the case where it uses the native | |
8808 | # linker, instead of GNU ld. If possible, this setting should | |
8809 | # overridden to take advantage of the native linker features on | |
8810 | # the platform it is being used on. | |
8811 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
8812 | fi | |
8813 | ||
8814 | # Commands to make compiler produce verbose output that lists | |
8815 | # what "hidden" libraries, object files and flags are used when | |
8816 | # linking a shared library. | |
8817 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' | |
8818 | ||
8819 | else | |
8820 | GXX=no | |
8821 | with_gnu_ld=no | |
8822 | wlarc= | |
8823 | fi | |
8824 | ||
8825 | # PORTME: fill in a description of your system's C++ link characteristics | |
8826 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
8827 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
8828 | ld_shlibs_CXX=yes | |
8829 | case $host_os in | |
8830 | aix3*) | |
8831 | # FIXME: insert proper C++ library support | |
8832 | ld_shlibs_CXX=no | |
8833 | ;; | |
8834 | aix4* | aix5*) | |
8835 | if test "$host_cpu" = ia64; then | |
8836 | # On IA64, the linker does run time linking by default, so we don't | |
8837 | # have to do anything special. | |
8838 | aix_use_runtimelinking=no | |
8839 | exp_sym_flag='-Bexport' | |
8840 | no_entry_flag="" | |
8841 | else | |
8842 | aix_use_runtimelinking=no | |
8843 | ||
8844 | # Test if we are trying to use run time linking or normal | |
8845 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8846 | # need to do runtime linking. | |
8847 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
8848 | for ld_flag in $LDFLAGS; do | |
8849 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8850 | aix_use_runtimelinking=yes | |
8851 | break | |
8852 | fi | |
8853 | done | |
8854 | esac | |
8855 | ||
8856 | exp_sym_flag='-bexport' | |
8857 | no_entry_flag='-bnoentry' | |
8858 | fi | |
8859 | ||
8860 | # When large executables or shared objects are built, AIX ld can | |
8861 | # have problems creating the table of contents. If linking a library | |
8862 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8863 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8864 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
8865 | ||
8866 | archive_cmds_CXX='' | |
8867 | hardcode_direct_CXX=yes | |
8868 | hardcode_libdir_separator_CXX=':' | |
8869 | link_all_deplibs_CXX=yes | |
8870 | ||
8871 | if test "$GXX" = yes; then | |
8872 | case $host_os in aix4.012|aix4.012.*) | |
8873 | # We only want to do this on AIX 4.2 and lower, the check | |
8874 | # below for broken collect2 doesn't work under 4.3+ | |
8875 | collect2name=`${CC} -print-prog-name=collect2` | |
8876 | if test -f "$collect2name" && \ | |
8877 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
8878 | then | |
8879 | # We have reworked collect2 | |
8880 | hardcode_direct_CXX=yes | |
8881 | else | |
8882 | # We have old collect2 | |
8883 | hardcode_direct_CXX=unsupported | |
8884 | # It fails to find uninstalled libraries when the uninstalled | |
8885 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8886 | # to unsupported forces relinking | |
8887 | hardcode_minus_L_CXX=yes | |
8888 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
8889 | hardcode_libdir_separator_CXX= | |
8890 | fi | |
8891 | esac | |
8892 | shared_flag='-shared' | |
8893 | else | |
8894 | # not using gcc | |
8895 | if test "$host_cpu" = ia64; then | |
8896 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8897 | # chokes on -Wl,-G. The following line is correct: | |
8898 | shared_flag='-G' | |
8899 | else | |
8900 | if test "$aix_use_runtimelinking" = yes; then | |
8901 | shared_flag='${wl}-G' | |
8902 | else | |
8903 | shared_flag='${wl}-bM:SRE' | |
8904 | fi | |
8905 | fi | |
8906 | fi | |
8907 | ||
8908 | # It seems that -bexpall does not export symbols beginning with | |
8909 | # underscore (_), so it is better to generate a list of symbols to export. | |
8910 | always_export_symbols_CXX=yes | |
8911 | if test "$aix_use_runtimelinking" = yes; then | |
8912 | # Warning - without using the other runtime loading flags (-brtl), | |
8913 | # -berok will link without error, but may produce a broken library. | |
8914 | allow_undefined_flag_CXX='-berok' | |
8915 | # Determine the default libpath from the value encoded in an empty executable. | |
8916 | cat >conftest.$ac_ext <<_ACEOF | |
8917 | #line $LINENO "configure" | |
8918 | #include "confdefs.h" | |
8919 | ||
8920 | #ifdef F77_DUMMY_MAIN | |
8921 | # ifdef __cplusplus | |
8922 | extern "C" | |
8923 | # endif | |
8924 | int F77_DUMMY_MAIN() { return 1; } | |
8925 | #endif | |
8926 | int | |
8927 | main () | |
8928 | { | |
8929 | ||
8930 | ; | |
8931 | return 0; | |
8932 | } | |
8933 | _ACEOF | |
8934 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8936 | (eval $ac_link) 2>&5 | |
8937 | ac_status=$? | |
8938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8939 | (exit $ac_status); } && | |
8940 | { ac_try='test -s conftest$ac_exeext' | |
8941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8942 | (eval $ac_try) 2>&5 | |
8943 | ac_status=$? | |
8944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8945 | (exit $ac_status); }; }; then | |
8946 | ||
8947 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
8948 | }'` | |
8949 | # Check for a 64-bit object if we didn't find anything. | |
8950 | 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; } | |
8951 | }'`; fi | |
8952 | else | |
8953 | echo "$as_me: failed program was:" >&5 | |
8954 | cat conftest.$ac_ext >&5 | |
8955 | fi | |
8956 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8957 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8958 | ||
8959 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8960 | ||
8961 | 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" | |
8962 | else | |
8963 | if test "$host_cpu" = ia64; then | |
8964 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
8965 | allow_undefined_flag_CXX="-z nodefs" | |
8966 | 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" | |
8967 | else | |
8968 | # Determine the default libpath from the value encoded in an empty executable. | |
8969 | cat >conftest.$ac_ext <<_ACEOF | |
8970 | #line $LINENO "configure" | |
8971 | #include "confdefs.h" | |
8972 | ||
8973 | #ifdef F77_DUMMY_MAIN | |
8974 | # ifdef __cplusplus | |
8975 | extern "C" | |
8976 | # endif | |
8977 | int F77_DUMMY_MAIN() { return 1; } | |
8978 | #endif | |
8979 | int | |
8980 | main () | |
8981 | { | |
8982 | ||
8983 | ; | |
8984 | return 0; | |
8985 | } | |
8986 | _ACEOF | |
8987 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8988 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8989 | (eval $ac_link) 2>&5 | |
8990 | ac_status=$? | |
8991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8992 | (exit $ac_status); } && | |
8993 | { ac_try='test -s conftest$ac_exeext' | |
8994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8995 | (eval $ac_try) 2>&5 | |
8996 | ac_status=$? | |
8997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8998 | (exit $ac_status); }; }; then | |
8999 | ||
9000 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
9001 | }'` | |
9002 | # Check for a 64-bit object if we didn't find anything. | |
9003 | 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; } | |
9004 | }'`; fi | |
9005 | else | |
9006 | echo "$as_me: failed program was:" >&5 | |
9007 | cat conftest.$ac_ext >&5 | |
9008 | fi | |
9009 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9010 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9011 | ||
9012 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9013 | # Warning - without using the other run time loading flags, | |
9014 | # -berok will link without error, but may produce a broken library. | |
9015 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
9016 | allow_undefined_flag_CXX=' ${wl}-berok' | |
9017 | # -bexpall does not export symbols beginning with underscore (_) | |
9018 | always_export_symbols_CXX=yes | |
9019 | # Exported symbols can be pulled into shared objects from archives | |
9020 | whole_archive_flag_spec_CXX=' ' | |
9021 | archive_cmds_need_lc_CXX=yes | |
9022 | # This is similar to how AIX traditionally builds it's shared libraries. | |
9023 | 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' | |
9024 | fi | |
9025 | fi | |
9026 | ;; | |
9027 | chorus*) | |
9028 | case $cc_basename in | |
9029 | *) | |
9030 | # FIXME: insert proper C++ library support | |
9031 | ld_shlibs_CXX=no | |
9032 | ;; | |
9033 | esac | |
9034 | ;; | |
9035 | ||
9036 | cygwin*) | |
9037 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
9038 | # as there is no search path for DLLs. | |
9039 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
9040 | allow_undefined_flag_CXX= | |
9041 | always_export_symbols_CXX=yes | |
9042 | ||
9043 | if $LD --help 2>&1 | egrep 'auto-import' > /dev/null; then | |
9044 | 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' | |
9045 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}-retain-symbols-file $wl$export_symbols ${wl}--out-implib,$lib' | |
9046 | else | |
9047 | ld_shlibs_CXX=no | |
9048 | fi | |
9049 | ;; | |
9050 | ||
9051 | mingw* | pw32*) | |
9052 | # FIXME: insert proper C++ library support | |
9053 | ld_shlibs_CXX=no | |
9054 | ;; | |
9055 | ||
9056 | dgux*) | |
9057 | case $cc_basename in | |
9058 | ec++) | |
9059 | # FIXME: insert proper C++ library support | |
9060 | ld_shlibs_CXX=no | |
9061 | ;; | |
9062 | ghcx) | |
9063 | # Green Hills C++ Compiler | |
9064 | # FIXME: insert proper C++ library support | |
9065 | ld_shlibs_CXX=no | |
9066 | ;; | |
9067 | *) | |
9068 | # FIXME: insert proper C++ library support | |
9069 | ld_shlibs_CXX=no | |
9070 | ;; | |
9071 | esac | |
9072 | ;; | |
9073 | freebsd12*) | |
9074 | # C++ shared libraries reported to be fairly broken before switch to ELF | |
9075 | ld_shlibs_CXX=no | |
9076 | ;; | |
9077 | freebsd-elf*) | |
9078 | archive_cmds_need_lc_CXX=no | |
9079 | ;; | |
9080 | freebsd*) | |
9081 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
9082 | # conventions | |
9083 | ld_shlibs_CXX=yes | |
9084 | ;; | |
9085 | gnu*) | |
9086 | ;; | |
9087 | hpux*) | |
9088 | if test $with_gnu_ld = no; then | |
9089 | if test "$host_cpu" = ia64; then | |
9090 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
9091 | else | |
9092 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
9093 | hardcode_libdir_separator_CXX=: | |
9094 | export_dynamic_flag_spec_CXX='${wl}-E' | |
9095 | fi | |
9096 | fi | |
9097 | if test "$host_cpu" = ia64; then | |
9098 | hardcode_direct_CXX=no | |
9099 | hardcode_shlibpath_var_CXX=no | |
9100 | else | |
9101 | hardcode_direct_CXX=yes | |
9102 | fi | |
9103 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
9104 | # but as the default | |
9105 | # location of the library. | |
9106 | ||
9107 | case $cc_basename in | |
9108 | CC) | |
9109 | # FIXME: insert proper C++ library support | |
9110 | ld_shlibs_CXX=no | |
9111 | ;; | |
9112 | aCC) | |
9113 | case $host_os in | |
9114 | hpux9*) | |
9115 | 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' | |
9116 | ;; | |
9117 | *) | |
9118 | if test "$host_cpu" = ia64; then | |
9119 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | |
9120 | else | |
9121 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
9122 | fi | |
9123 | ;; | |
9124 | esac | |
9125 | # Commands to make compiler produce verbose output that lists | |
9126 | # what "hidden" libraries, object files and flags are used when | |
9127 | # linking a shared library. | |
9128 | # | |
9129 | # There doesn't appear to be a way to prevent this compiler from | |
9130 | # explicitly linking system object files so we need to strip them | |
9131 | # from the output so that they don't get included in the library | |
9132 | # dependencies. | |
9133 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
9134 | ;; | |
9135 | *) | |
9136 | if test "$GXX" = yes; then | |
9137 | if test $with_gnu_ld = no; then | |
9138 | case $host_os in | |
9139 | hpux9*) | |
9140 | 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' | |
9141 | ;; | |
9142 | *) | |
9143 | if test "$host_cpu" = ia64; then | |
9144 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | |
9145 | else | |
9146 | 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' | |
9147 | fi | |
9148 | ;; | |
9149 | esac | |
9150 | fi | |
9151 | else | |
9152 | # FIXME: insert proper C++ library support | |
9153 | ld_shlibs_CXX=no | |
9154 | fi | |
9155 | ;; | |
9156 | esac | |
9157 | ;; | |
9158 | irix5* | irix6*) | |
9159 | case $cc_basename in | |
9160 | CC) | |
9161 | # SGI C++ | |
9162 | 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' | |
9163 | ||
9164 | # Archives containing C++ object files must be created using | |
9165 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
9166 | # necessary to make sure instantiated templates are included | |
9167 | # in the archive. | |
9168 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
9169 | ;; | |
9170 | *) | |
9171 | if test "$GXX" = yes; then | |
9172 | if test "$with_gnu_ld" = no; then | |
9173 | 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' | |
9174 | else | |
9175 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib' | |
9176 | fi | |
9177 | fi | |
9178 | link_all_deplibs_CXX=yes | |
9179 | ;; | |
9180 | esac | |
9181 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
9182 | hardcode_libdir_separator_CXX=: | |
9183 | ;; | |
9184 | linux*) | |
9185 | case $cc_basename in | |
9186 | KCC) | |
9187 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9188 | ||
9189 | # KCC will only create a shared library if the output file | |
9190 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
9191 | # to its proper name (with version) after linking. | |
9192 | archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
9193 | archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
9194 | ||
9195 | # Commands to make compiler produce verbose output that lists | |
9196 | # what "hidden" libraries, object files and flags are used when | |
9197 | # linking a shared library. | |
9198 | # | |
9199 | # There doesn't appear to be a way to prevent this compiler from | |
9200 | # explicitly linking system object files so we need to strip them | |
9201 | # from the output so that they don't get included in the library | |
9202 | # dependencies. | |
9203 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
9204 | ||
9205 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | |
9206 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9207 | ||
9208 | # Archives containing C++ object files must be created using | |
9209 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
9210 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
9211 | ;; | |
9212 | cxx) | |
9213 | # Compaq C++ | |
9214 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9215 | 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' | |
9216 | ||
9217 | runpath_var=LD_RUN_PATH | |
9218 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
9219 | hardcode_libdir_separator_CXX=: | |
9220 | ||
9221 | # Commands to make compiler produce verbose output that lists | |
9222 | # what "hidden" libraries, object files and flags are used when | |
9223 | # linking a shared library. | |
9224 | # | |
9225 | # There doesn't appear to be a way to prevent this compiler from | |
9226 | # explicitly linking system object files so we need to strip them | |
9227 | # from the output so that they don't get included in the library | |
9228 | # dependencies. | |
9229 | 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' | |
9230 | ;; | |
9231 | esac | |
9232 | ;; | |
9233 | lynxos*) | |
9234 | # FIXME: insert proper C++ library support | |
9235 | ld_shlibs_CXX=no | |
9236 | ;; | |
9237 | m88k*) | |
9238 | # FIXME: insert proper C++ library support | |
9239 | ld_shlibs_CXX=no | |
9240 | ;; | |
9241 | mvs*) | |
9242 | case $cc_basename in | |
9243 | cxx) | |
9244 | # FIXME: insert proper C++ library support | |
9245 | ld_shlibs_CXX=no | |
9246 | ;; | |
9247 | *) | |
9248 | # FIXME: insert proper C++ library support | |
9249 | ld_shlibs_CXX=no | |
9250 | ;; | |
9251 | esac | |
9252 | ;; | |
9253 | netbsd*) | |
9254 | # NetBSD uses g++ - do we need to do anything? | |
9255 | ;; | |
9256 | osf3*) | |
9257 | case $cc_basename in | |
9258 | KCC) | |
9259 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9260 | ||
9261 | # KCC will only create a shared library if the output file | |
9262 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
9263 | # to its proper name (with version) after linking. | |
9264 | archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
9265 | ||
9266 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
9267 | hardcode_libdir_separator_CXX=: | |
9268 | ||
9269 | # Archives containing C++ object files must be created using | |
9270 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
9271 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
9272 | ||
9273 | ;; | |
9274 | RCC) | |
9275 | # Rational C++ 2.4.1 | |
9276 | # FIXME: insert proper C++ library support | |
9277 | ld_shlibs_CXX=no | |
9278 | ;; | |
9279 | cxx) | |
9280 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
9281 | 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' | |
9282 | ||
9283 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
9284 | hardcode_libdir_separator_CXX=: | |
9285 | ||
9286 | # Commands to make compiler produce verbose output that lists | |
9287 | # what "hidden" libraries, object files and flags are used when | |
9288 | # linking a shared library. | |
9289 | # | |
9290 | # There doesn't appear to be a way to prevent this compiler from | |
9291 | # explicitly linking system object files so we need to strip them | |
9292 | # from the output so that they don't get included in the library | |
9293 | # dependencies. | |
9294 | 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' | |
9295 | ;; | |
9296 | *) | |
9297 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
9298 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
9299 | 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' | |
9300 | ||
9301 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
9302 | hardcode_libdir_separator_CXX=: | |
9303 | ||
9304 | # Commands to make compiler produce verbose output that lists | |
9305 | # what "hidden" libraries, object files and flags are used when | |
9306 | # linking a shared library. | |
9307 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' | |
9308 | ||
9309 | else | |
9310 | # FIXME: insert proper C++ library support | |
9311 | ld_shlibs_CXX=no | |
9312 | fi | |
9313 | ;; | |
9314 | esac | |
9315 | ;; | |
9316 | osf4* | osf5*) | |
9317 | case $cc_basename in | |
9318 | KCC) | |
9319 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9320 | ||
9321 | # KCC will only create a shared library if the output file | |
9322 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
9323 | # to its proper name (with version) after linking. | |
9324 | archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
9325 | ||
9326 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
9327 | hardcode_libdir_separator_CXX=: | |
9328 | ||
9329 | # Archives containing C++ object files must be created using | |
9330 | # the KAI C++ compiler. | |
9331 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | |
9332 | ;; | |
9333 | RCC) | |
9334 | # Rational C++ 2.4.1 | |
9335 | # FIXME: insert proper C++ library support | |
9336 | ld_shlibs_CXX=no | |
9337 | ;; | |
9338 | cxx) | |
9339 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
9340 | 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' | |
9341 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~ | |
9342 | echo "-hidden">> $lib.exp~ | |
9343 | $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~ | |
9344 | $rm $lib.exp' | |
9345 | ||
9346 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
9347 | hardcode_libdir_separator_CXX=: | |
9348 | ||
9349 | # Commands to make compiler produce verbose output that lists | |
9350 | # what "hidden" libraries, object files and flags are used when | |
9351 | # linking a shared library. | |
9352 | # | |
9353 | # There doesn't appear to be a way to prevent this compiler from | |
9354 | # explicitly linking system object files so we need to strip them | |
9355 | # from the output so that they don't get included in the library | |
9356 | # dependencies. | |
9357 | 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' | |
9358 | ;; | |
9359 | *) | |
9360 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
9361 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
9362 | 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' | |
9363 | ||
9364 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
9365 | hardcode_libdir_separator_CXX=: | |
9366 | ||
9367 | # Commands to make compiler produce verbose output that lists | |
9368 | # what "hidden" libraries, object files and flags are used when | |
9369 | # linking a shared library. | |
9370 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' | |
9371 | ||
9372 | else | |
9373 | # FIXME: insert proper C++ library support | |
9374 | ld_shlibs_CXX=no | |
9375 | fi | |
9376 | ;; | |
9377 | esac | |
9378 | ;; | |
9379 | psos*) | |
9380 | # FIXME: insert proper C++ library support | |
9381 | ld_shlibs_CXX=no | |
9382 | ;; | |
9383 | sco*) | |
9384 | archive_cmds_need_lc_CXX=no | |
9385 | case $cc_basename in | |
9386 | CC) | |
9387 | # FIXME: insert proper C++ library support | |
9388 | ld_shlibs_CXX=no | |
9389 | ;; | |
9390 | *) | |
9391 | # FIXME: insert proper C++ library support | |
9392 | ld_shlibs_CXX=no | |
9393 | ;; | |
9394 | esac | |
9395 | ;; | |
9396 | sunos4*) | |
9397 | case $cc_basename in | |
9398 | CC) | |
9399 | # Sun C++ 4.x | |
9400 | # FIXME: insert proper C++ library support | |
9401 | ld_shlibs_CXX=no | |
9402 | ;; | |
9403 | lcc) | |
9404 | # Lucid | |
9405 | # FIXME: insert proper C++ library support | |
9406 | ld_shlibs_CXX=no | |
9407 | ;; | |
9408 | *) | |
9409 | # FIXME: insert proper C++ library support | |
9410 | ld_shlibs_CXX=no | |
9411 | ;; | |
9412 | esac | |
9413 | ;; | |
9414 | solaris*) | |
9415 | case $cc_basename in | |
9416 | CC) | |
9417 | # Sun C++ 4.2, 5.x and Centerline C++ | |
9418 | no_undefined_flag_CXX=' -zdefs' | |
9419 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
9420 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
9421 | $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' | |
9422 | ||
9423 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
9424 | hardcode_shlibpath_var_CXX=no | |
9425 | case $host_os in | |
9426 | solaris2.0-5 | solaris2.0-5.*) ;; | |
9427 | *) | |
9428 | # The C++ compiler is used as linker so we must use $wl | |
9429 | # flag to pass the commands to the underlying system | |
9430 | # linker. | |
9431 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9432 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9433 | ;; | |
9434 | esac | |
9435 | link_all_deplibs_CXX=yes | |
9436 | ||
9437 | # Commands to make compiler produce verbose output that lists | |
9438 | # what "hidden" libraries, object files and flags are used when | |
9439 | # linking a shared library. | |
9440 | # | |
9441 | # There doesn't appear to be a way to prevent this compiler from | |
9442 | # explicitly linking system object files so we need to strip them | |
9443 | # from the output so that they don't get included in the library | |
9444 | # dependencies. | |
9445 | output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
9446 | ||
9447 | # Archives containing C++ object files must be created using | |
9448 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
9449 | # necessary to make sure instantiated templates are included | |
9450 | # in the archive. | |
9451 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
9452 | ;; | |
9453 | gcx) | |
9454 | # Green Hills C++ Compiler | |
9455 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
9456 | ||
9457 | # The C++ compiler must be used to create the archive. | |
9458 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
9459 | ;; | |
9460 | *) | |
9461 | # GNU C++ compiler with Solaris linker | |
9462 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
9463 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
9464 | if $CC --version | egrep -v '^2\.7' > /dev/null; then | |
9465 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' | |
9466 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
9467 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' | |
9468 | ||
9469 | # Commands to make compiler produce verbose output that lists | |
9470 | # what "hidden" libraries, object files and flags are used when | |
9471 | # linking a shared library. | |
9472 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" | |
9473 | else | |
9474 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
9475 | # platform. | |
9476 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' | |
9477 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
9478 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' | |
9479 | ||
9480 | # Commands to make compiler produce verbose output that lists | |
9481 | # what "hidden" libraries, object files and flags are used when | |
9482 | # linking a shared library. | |
9483 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" | |
9484 | fi | |
9485 | ||
9486 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
9487 | fi | |
9488 | ;; | |
9489 | esac | |
9490 | ;; | |
9491 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
9492 | archive_cmds_need_lc_CXX=no | |
9493 | ;; | |
9494 | tandem*) | |
9495 | case $cc_basename in | |
9496 | NCC) | |
9497 | # NonStop-UX NCC 3.20 | |
9498 | # FIXME: insert proper C++ library support | |
9499 | ld_shlibs_CXX=no | |
9500 | ;; | |
9501 | *) | |
9502 | # FIXME: insert proper C++ library support | |
9503 | ld_shlibs_CXX=no | |
9504 | ;; | |
9505 | esac | |
9506 | ;; | |
9507 | vxworks*) | |
9508 | # FIXME: insert proper C++ library support | |
9509 | ld_shlibs_CXX=no | |
9510 | ;; | |
9511 | *) | |
9512 | # FIXME: insert proper C++ library support | |
9513 | ld_shlibs_CXX=no | |
9514 | ;; | |
9515 | esac | |
9516 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
9517 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
9518 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
9519 | ||
9520 | # Figure out "hidden" C++ library dependencies from verbose | |
9521 | # compiler output whening linking a shared library. | |
9522 | cat > conftest.$ac_ext <<EOF | |
9523 | class Foo | |
9524 | { | |
9525 | public: | |
9526 | Foo (void) { a = 0; } | |
9527 | private: | |
9528 | int a; | |
9529 | }; | |
9530 | EOF | |
9531 | ||
9532 | ||
9533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9534 | (eval $ac_compile) 2>&5 | |
9535 | ac_status=$? | |
9536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9537 | (exit $ac_status); }; then | |
9538 | # Parse the compiler output and extract the necessary | |
9539 | # objects, libraries and library flags. | |
9540 | ||
9541 | # Sentinel used to keep track of whether or not we are before | |
9542 | # the conftest object file. | |
9543 | pre_test_object_deps_done=no | |
9544 | ||
9545 | # The `*' in the case matches for architectures that use `case' in | |
9546 | # $output_verbose_cmd can trigger glob expansion during the loop | |
9547 | # eval without this substitution. | |
9548 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" | |
9549 | ||
9550 | for p in `eval $output_verbose_link_cmd`; do | |
9551 | case $p in | |
9552 | ||
9553 | -L* | -R* | -l*) | |
9554 | # Some compilers place space between "-{L,R}" and the path. | |
9555 | # Remove the space. | |
9556 | if test $p = "-L" \ | |
9557 | || test $p = "-R"; then | |
9558 | prev=$p | |
9559 | continue | |
9560 | else | |
9561 | prev= | |
9562 | fi | |
9563 | ||
9564 | if test "$pre_test_object_deps_done" = no; then | |
9565 | case $p in | |
9566 | -L* | -R*) | |
9567 | # Internal compiler library paths should come after those | |
9568 | # provided the user. The postdeps already come after the | |
9569 | # user supplied libs so there is no need to process them. | |
9570 | if test -z "$compiler_lib_search_path_CXX"; then | |
9571 | compiler_lib_search_path_CXX="${prev}${p}" | |
9572 | else | |
9573 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
9574 | fi | |
9575 | ;; | |
9576 | # The "-l" case would never come before the object being | |
9577 | # linked, so don't bother handling this case. | |
9578 | esac | |
9579 | else | |
9580 | if test -z "$postdeps_CXX"; then | |
9581 | postdeps_CXX="${prev}${p}" | |
9582 | else | |
9583 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
9584 | fi | |
9585 | fi | |
9586 | ;; | |
9587 | ||
9588 | *.$objext) | |
9589 | # This assumes that the test object file only shows up | |
9590 | # once in the compiler output. | |
9591 | if test "$p" = "conftest.$objext"; then | |
9592 | pre_test_object_deps_done=yes | |
9593 | continue | |
9594 | fi | |
9595 | ||
9596 | if test "$pre_test_object_deps_done" = no; then | |
9597 | if test -z "$predep_objects_CXX"; then | |
9598 | predep_objects_CXX="$p" | |
9599 | else | |
9600 | predep_objects_CXX="$predep_objects_CXX $p" | |
9601 | fi | |
9602 | else | |
9603 | if test -z "$postdep_objects_CXX"; then | |
9604 | postdep_objects_CXX="$p" | |
9605 | else | |
9606 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
9607 | fi | |
9608 | fi | |
9609 | ;; | |
9610 | ||
9611 | *) ;; # Ignore the rest. | |
9612 | ||
9613 | esac | |
9614 | done | |
9615 | ||
9616 | # Clean up. | |
9617 | rm -f a.out | |
9618 | else | |
9619 | echo "libtool.m4: error: problem compiling C++ test program" | |
9620 | fi | |
9621 | ||
9622 | $rm -f confest.$objext | |
9623 | ||
9624 | case " $postdeps_CXX " in | |
9625 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
9626 | *) archive_cmds_need_lc_CXX=yes ;; | |
9627 | esac | |
9628 | ||
9629 | GCC_CXX="$GXX" | |
9630 | LD_CXX="$LD" | |
9631 | ||
9632 | lt_prog_compiler_wl_CXX= | |
9633 | lt_prog_compiler_pic_CXX= | |
9634 | lt_prog_compiler_static_CXX= | |
9635 | ||
9636 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
9637 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
9638 | ||
9639 | # C++ specific cases for pic, static, wl, etc. | |
9640 | if test "$GXX" = yes; then | |
9641 | lt_prog_compiler_wl_CXX='-Wl,' | |
9642 | lt_prog_compiler_static_CXX='-static' | |
9643 | ||
9644 | case $host_os in | |
9645 | aix*) | |
9646 | # All AIX code is PIC. | |
9647 | if test "$host_cpu" = ia64; then | |
9648 | # AIX 5 now supports IA64 processor | |
9649 | lt_prog_compiler_static_CXX='-Bstatic' | |
9650 | fi | |
9651 | ;; | |
9652 | amigaos*) | |
9653 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9654 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9655 | # like `-m68040'. | |
9656 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
9657 | ;; | |
9658 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9659 | # PIC is the default for these OSes. | |
9660 | ;; | |
9661 | mingw* | os2*) | |
9662 | # This hack is so that the source file can tell whether it is being | |
9663 | # built for inclusion in a dll (and should export symbols for example). | |
9664 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
9665 | ;; | |
9666 | darwin* | rhapsody*) | |
9667 | # PIC is the default on this platform | |
9668 | # Common symbols not allowed in MH_DYLIB files | |
9669 | lt_prog_compiler_pic_CXX='-fno-common' | |
9670 | ;; | |
9671 | *djgpp*) | |
9672 | # DJGPP does not support shared libraries at all | |
9673 | lt_prog_compiler_pic_CXX= | |
9674 | ;; | |
9675 | sysv4*MP*) | |
9676 | if test -d /usr/nec; then | |
9677 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
9678 | fi | |
9679 | ;; | |
9680 | hpux*) | |
9681 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. | |
9682 | if test "$host_cpu" != ia64; then | |
9683 | lt_prog_compiler_pic_CXX='-fPIC' | |
9684 | fi | |
9685 | ;; | |
9686 | *) | |
9687 | lt_prog_compiler_pic_CXX='-fPIC' | |
9688 | ;; | |
9689 | esac | |
9690 | else | |
9691 | case $host_os in | |
9692 | aix4* | aix5*) | |
9693 | # All AIX code is PIC. | |
9694 | if test "$host_cpu" = ia64; then | |
9695 | # AIX 5 now supports IA64 processor | |
9696 | lt_prog_compiler_static_CXX='-Bstatic' | |
9697 | else | |
9698 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
9699 | fi | |
9700 | ;; | |
9701 | chorus*) | |
9702 | case $cc_basename in | |
9703 | cxch68) | |
9704 | # Green Hills C++ Compiler | |
9705 | # _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" | |
9706 | ;; | |
9707 | esac | |
9708 | ;; | |
9709 | dgux*) | |
9710 | case $cc_basename in | |
9711 | ec++) | |
9712 | lt_prog_compiler_pic_CXX='-KPIC' | |
9713 | ;; | |
9714 | ghcx) | |
9715 | # Green Hills C++ Compiler | |
9716 | lt_prog_compiler_pic_CXX='-pic' | |
9717 | ;; | |
9718 | *) | |
9719 | ;; | |
9720 | esac | |
9721 | ;; | |
9722 | freebsd*) | |
9723 | # FreeBSD uses GNU C++ | |
9724 | ;; | |
9725 | hpux9* | hpux10* | hpux11*) | |
9726 | case $cc_basename in | |
9727 | CC) | |
9728 | lt_prog_compiler_wl_CXX='-Wl,' | |
9729 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | |
9730 | if test "$host_cpu" != ia64; then | |
9731 | lt_prog_compiler_pic_CXX='+Z' | |
9732 | fi | |
9733 | ;; | |
9734 | aCC) | |
9735 | lt_prog_compiler_wl_CXX='-Wl,' | |
9736 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | |
9737 | if test "$host_cpu" != ia64; then | |
9738 | lt_prog_compiler_pic_CXX='+Z' | |
9739 | fi | |
9740 | ;; | |
9741 | *) | |
9742 | ;; | |
9743 | esac | |
9744 | ;; | |
9745 | irix5* | irix6* | nonstopux*) | |
9746 | case $cc_basename in | |
9747 | CC) | |
9748 | lt_prog_compiler_wl_CXX='-Wl,' | |
9749 | lt_prog_compiler_static_CXX='-non_shared' | |
9750 | # CC pic flag -KPIC is the default. | |
9751 | ;; | |
9752 | *) | |
9753 | ;; | |
9754 | esac | |
9755 | ;; | |
9756 | linux*) | |
9757 | case $cc_basename in | |
9758 | KCC) | |
9759 | # KAI C++ Compiler | |
9760 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
9761 | lt_prog_compiler_pic_CXX='-fPIC' | |
9762 | ;; | |
9763 | cxx) | |
9764 | # Compaq C++ | |
9765 | # Make sure the PIC flag is empty. It appears that all Alpha | |
9766 | # Linux and Compaq Tru64 Unix objects are PIC. | |
9767 | lt_prog_compiler_pic_CXX= | |
9768 | lt_prog_compiler_static_CXX='-non_shared' | |
9769 | ;; | |
9770 | *) | |
9771 | ;; | |
9772 | esac | |
9773 | ;; | |
9774 | lynxos*) | |
9775 | ;; | |
9776 | m88k*) | |
9777 | ;; | |
9778 | mvs*) | |
9779 | case $cc_basename in | |
9780 | cxx) | |
9781 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
9782 | ;; | |
9783 | *) | |
9784 | ;; | |
9785 | esac | |
9786 | ;; | |
9787 | netbsd*) | |
9788 | ;; | |
9789 | osf3* | osf4* | osf5*) | |
9790 | case $cc_basename in | |
9791 | KCC) | |
9792 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
9793 | ;; | |
9794 | RCC) | |
9795 | # Rational C++ 2.4.1 | |
9796 | lt_prog_compiler_pic_CXX='-pic' | |
9797 | ;; | |
9798 | cxx) | |
9799 | # Digital/Compaq C++ | |
9800 | lt_prog_compiler_wl_CXX='-Wl,' | |
9801 | # Make sure the PIC flag is empty. It appears that all Alpha | |
9802 | # Linux and Compaq Tru64 Unix objects are PIC. | |
9803 | lt_prog_compiler_pic_CXX= | |
9804 | lt_prog_compiler_static_CXX='-non_shared' | |
9805 | ;; | |
9806 | *) | |
9807 | ;; | |
9808 | esac | |
9809 | ;; | |
9810 | psos*) | |
9811 | ;; | |
9812 | sco*) | |
9813 | case $cc_basename in | |
9814 | CC) | |
9815 | lt_prog_compiler_pic_CXX='-fPIC' | |
9816 | ;; | |
9817 | *) | |
9818 | ;; | |
9819 | esac | |
9820 | ;; | |
9821 | solaris*) | |
9822 | case $cc_basename in | |
9823 | CC) | |
9824 | # Sun C++ 4.2, 5.x and Centerline C++ | |
9825 | lt_prog_compiler_pic_CXX='-KPIC' | |
9826 | lt_prog_compiler_static_CXX='-Bstatic' | |
9827 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
9828 | ;; | |
9829 | gcx) | |
9830 | # Green Hills C++ Compiler | |
9831 | lt_prog_compiler_pic_CXX='-PIC' | |
9832 | ;; | |
9833 | *) | |
9834 | ;; | |
9835 | esac | |
9836 | ;; | |
9837 | sunos4*) | |
9838 | case $cc_basename in | |
9839 | CC) | |
9840 | # Sun C++ 4.x | |
9841 | lt_prog_compiler_pic_CXX='-pic' | |
9842 | lt_prog_compiler_static_CXX='-Bstatic' | |
9843 | ;; | |
9844 | lcc) | |
9845 | # Lucid | |
9846 | lt_prog_compiler_pic_CXX='-pic' | |
9847 | ;; | |
9848 | *) | |
9849 | ;; | |
9850 | esac | |
9851 | ;; | |
9852 | tandem*) | |
9853 | case $cc_basename in | |
9854 | NCC) | |
9855 | # NonStop-UX NCC 3.20 | |
9856 | lt_prog_compiler_pic_CXX='-KPIC' | |
9857 | ;; | |
9858 | *) | |
9859 | ;; | |
9860 | esac | |
9861 | ;; | |
9862 | unixware*) | |
9863 | ;; | |
9864 | vxworks*) | |
9865 | ;; | |
9866 | *) | |
9867 | lt_prog_compiler_can_build_shared_CXX=no | |
9868 | ;; | |
9869 | esac | |
9870 | fi | |
9871 | ||
9872 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | |
9873 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | |
9874 | ||
9875 | # | |
9876 | # Check to make sure the PIC flag actually works. | |
9877 | # | |
9878 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
9879 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
9880 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 | |
9881 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | |
9882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9883 | else | |
9884 | lt_prog_compiler_pic_works_CXX=no | |
9885 | ac_outfile=conftest.$ac_objext | |
9886 | save_CFLAGS="$CFLAGS" | |
9887 | CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC" | |
9888 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9889 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
9890 | # The compiler can only warn and ignore the option if not recognized | |
9891 | # So say no if there are warnings | |
9892 | if test -s conftest.err; then | |
9893 | # Append any errors to the config.log. | |
9894 | cat conftest.err 1>&5 | |
9895 | else | |
9896 | lt_prog_compiler_pic_works_CXX=yes | |
9897 | fi | |
9898 | fi | |
9899 | $rm conftest* | |
9900 | CFLAGS="$save_CFLAGS" | |
9901 | ||
9902 | fi | |
9903 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | |
9904 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 | |
9905 | ||
9906 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | |
9907 | case $lt_prog_compiler_pic_CXX in | |
9908 | "" | " "*) ;; | |
9909 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
9910 | esac | |
9911 | else | |
9912 | lt_prog_compiler_pic_CXX= | |
9913 | lt_prog_compiler_can_build_shared_CXX=no | |
9914 | fi | |
9915 | ||
9916 | fi | |
9917 | case "$host_os" in | |
9918 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9919 | *djgpp*) | |
9920 | lt_prog_compiler_pic_CXX= | |
9921 | ;; | |
9922 | *) | |
9923 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
9924 | ;; | |
9925 | esac | |
9926 | ||
9927 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9928 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
9929 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
9930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9931 | else | |
9932 | lt_cv_prog_compiler_c_o_CXX=no | |
9933 | $rm -r conftest 2>/dev/null | |
9934 | mkdir conftest | |
9935 | cd conftest | |
9936 | mkdir out | |
9937 | save_CXXFLAGS="$CXXFLAGS" | |
9938 | CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext" | |
9939 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9940 | ||
9941 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | |
9942 | # that will create temporary files in the current directory regardless of | |
9943 | # the output directory. Thus, making CWD read-only will cause this test | |
9944 | # to fail, enabling locking or at least warning the user not to do parallel | |
9945 | # builds. | |
9946 | chmod -w . | |
9947 | ||
9948 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext | |
9949 | then | |
9950 | # The compiler can only warn and ignore the option if not recognized | |
9951 | # So say no if there are warnings | |
9952 | if test -s out/conftest.err; then | |
9953 | # Append any errors to the config.log. | |
9954 | cat out/conftest.err 1>&5 | |
9955 | else | |
9956 | lt_cv_prog_compiler_c_o_CXX=yes | |
9957 | fi | |
9958 | fi | |
9959 | CXXFLAGS="$save_CXXFLAGS" | |
9960 | chmod u+w . | |
9961 | $rm conftest* out/* | |
9962 | rmdir out | |
9963 | cd .. | |
9964 | rmdir conftest | |
9965 | $rm conftest* | |
9966 | ||
9967 | fi | |
9968 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
9969 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | |
9970 | ||
9971 | ||
9972 | hard_links="nottested" | |
9973 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
9974 | # do not overwrite the value of need_locks provided by the user | |
9975 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
9976 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
9977 | hard_links=yes | |
9978 | $rm conftest* | |
9979 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9980 | touch conftest.a | |
9981 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9982 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9983 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
9984 | echo "${ECHO_T}$hard_links" >&6 | |
9985 | if test "$hard_links" = no; then | |
9986 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9987 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9988 | need_locks=warn | |
9989 | fi | |
9990 | else | |
9991 | need_locks=no | |
9992 | fi | |
9993 | ||
9994 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9995 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
9996 | ||
9997 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9998 | case $host_os in | |
9999 | aix4* | aix5*) | |
10000 | # If we're using GNU nm, then we don't want the "-C" option. | |
10001 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
10002 | if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then | |
10003 | 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' | |
10004 | else | |
10005 | 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' | |
10006 | fi | |
10007 | ;; | |
10008 | cygwin*) | |
10009 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10010 | ;; | |
10011 | mingw* | pw32*) | |
10012 | export_symbols_cmds_CXX="$ltdll_cmds" | |
10013 | ;; | |
10014 | *) | |
10015 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10016 | ;; | |
10017 | esac | |
10018 | ||
10019 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
10020 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
10021 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
10022 | ||
10023 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10024 | if test "$GCC" = yes; then | |
10025 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10026 | fi | |
10027 | ||
10028 | # | |
10029 | # Do we need to explicitly link libc? | |
10030 | # | |
10031 | archive_cmds_need_lc_CXX=yes | |
10032 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10033 | case $archive_cmds_CXX in | |
10034 | *'~'*) | |
10035 | # FIXME: we may have to deal with multi-command sequences. | |
10036 | ;; | |
10037 | '$CC '*) | |
10038 | # Test whether the compiler implicitly links with -lc since on some | |
10039 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10040 | # to ld, don't add -lc before -lgcc. | |
10041 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
10042 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
10043 | $rm conftest* | |
10044 | echo 'static int dummy;' > conftest.$ac_ext | |
10045 | ||
10046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10047 | (eval $ac_compile) 2>&5 | |
10048 | ac_status=$? | |
10049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10050 | (exit $ac_status); } 2>conftest.err; then | |
10051 | soname=conftest | |
10052 | lib=conftest | |
10053 | libobjs=conftest.$ac_objext | |
10054 | deplibs= | |
10055 | wl=$lt_prog_compiler_wl_CXX | |
10056 | compiler_flags=-v | |
10057 | linker_flags=-v | |
10058 | verstring= | |
10059 | output_objdir=. | |
10060 | libname=conftest | |
10061 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
10062 | allow_undefined_flag_CXX= | |
10063 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
10064 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10065 | ac_status=$? | |
10066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10067 | (exit $ac_status); } | |
10068 | then | |
10069 | archive_cmds_need_lc_CXX=no | |
10070 | else | |
10071 | archive_cmds_need_lc_CXX=yes | |
10072 | fi | |
10073 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
10074 | else | |
10075 | cat conftest.err 1>&5 | |
10076 | fi | |
10077 | $rm conftest* | |
10078 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | |
10079 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 | |
10080 | ;; | |
10081 | esac | |
10082 | fi | |
10083 | ||
10084 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
10085 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
10086 | hardcode_action_CXX= | |
10087 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | |
10088 | test -n "$runpath_var CXX"; then | |
10089 | ||
10090 | # We can hardcode non-existant directories. | |
10091 | if test "$hardcode_direct_CXX" != no && | |
10092 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10093 | # have to relink, otherwise we might link with an installed library | |
10094 | # when we should be linking with a yet-to-be-installed one | |
10095 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
10096 | test "$hardcode_minus_L_CXX" != no; then | |
10097 | # Linking always hardcodes the temporary library directory. | |
10098 | hardcode_action_CXX=relink | |
10099 | else | |
10100 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10101 | hardcode_action_CXX=immediate | |
10102 | fi | |
10103 | else | |
10104 | # We cannot hardcode anything, or else we can only hardcode existing | |
10105 | # directories. | |
10106 | hardcode_action_CXX=unsupported | |
10107 | fi | |
10108 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | |
10109 | echo "${ECHO_T}$hardcode_action_CXX" >&6 | |
10110 | ||
10111 | if test "$hardcode_action_CXX" = relink; then | |
10112 | # Fast installation is not supported | |
10113 | enable_fast_install=no | |
10114 | elif test "$shlibpath_overrides_runpath" = yes || | |
10115 | test "$enable_shared" = no; then | |
10116 | # Fast installation is not necessary | |
10117 | enable_fast_install=needless | |
10118 | fi | |
10119 | ||
10120 | striplib= | |
10121 | old_striplib= | |
10122 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
10123 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
10124 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
10125 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
10126 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
10127 | echo "$as_me:$LINENO: result: yes" >&5 | |
10128 | echo "${ECHO_T}yes" >&6 | |
10129 | else | |
10130 | echo "$as_me:$LINENO: result: no" >&5 | |
10131 | echo "${ECHO_T}no" >&6 | |
10132 | fi | |
10133 | ||
10134 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
10135 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
10136 | library_names_spec= | |
10137 | libname_spec='lib$name' | |
10138 | soname_spec= | |
10139 | postinstall_cmds= | |
10140 | postuninstall_cmds= | |
10141 | finish_cmds= | |
10142 | finish_eval= | |
10143 | shlibpath_var= | |
10144 | shlibpath_overrides_runpath=unknown | |
10145 | version_type=none | |
10146 | dynamic_linker="$host_os ld.so" | |
10147 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10148 | if test "$GCC" = yes; then | |
10149 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
10150 | if echo "$sys_lib_search_path_spec" | egrep ';' >/dev/null ; then | |
10151 | # if the path contains ";" then we assume it to be the separator | |
10152 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10153 | # assumed that no part of a normal pathname contains ";" but that should | |
10154 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10155 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
10156 | else | |
10157 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
10158 | fi | |
10159 | else | |
10160 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10161 | fi | |
10162 | need_lib_prefix=unknown | |
10163 | hardcode_into_libs=no | |
10164 | ||
10165 | # when you set need_version to no, make sure it does not cause -set_version | |
10166 | # flags to be left without arguments | |
10167 | need_version=unknown | |
10168 | ||
10169 | case $host_os in | |
10170 | aix3*) | |
10171 | version_type=linux | |
10172 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | |
10173 | shlibpath_var=LIBPATH | |
10174 | ||
10175 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10176 | soname_spec='${libname}${release}.so$major' | |
10177 | ;; | |
10178 | ||
10179 | aix4* | aix5*) | |
10180 | version_type=linux | |
10181 | if test "$host_cpu" = ia64; then | |
10182 | # AIX 5 supports IA64 | |
10183 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | |
10184 | shlibpath_var=LD_LIBRARY_PATH | |
10185 | else | |
10186 | # With GCC up to 2.95.x, collect2 would create an import file | |
10187 | # for dependence libraries. The import file would start with | |
10188 | # the line `#! .'. This would cause the generated library to | |
10189 | # depend on `.', always an invalid library. This was fixed in | |
10190 | # development snapshots of GCC prior to 3.0. | |
10191 | case $host_os in | |
10192 | aix4 | aix4.[01] | aix4.[01].*) | |
10193 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10194 | echo ' yes ' | |
10195 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
10196 | : | |
10197 | else | |
10198 | can_build_shared=no | |
10199 | fi | |
10200 | ;; | |
10201 | esac | |
10202 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10203 | # soname into executable. Probably we can add versioning support to | |
10204 | # collect2, so additional links can be useful in future. | |
10205 | if test "$aix_use_runtimelinking" = yes; then | |
10206 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10207 | # instead of lib<name>.a to let people know that these are not | |
10208 | # typical AIX shared libraries. | |
10209 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10210 | else | |
10211 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10212 | # and later when we are not doing run time linking. | |
10213 | library_names_spec='${libname}${release}.a $libname.a' | |
10214 | soname_spec='${libname}${release}.so$major' | |
10215 | fi | |
10216 | shlibpath_var=LIBPATH | |
10217 | fi | |
10218 | ;; | |
10219 | ||
10220 | amigaos*) | |
10221 | library_names_spec='$libname.ixlibrary $libname.a' | |
10222 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10223 | 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' | |
10224 | ;; | |
10225 | ||
10226 | beos*) | |
10227 | library_names_spec='${libname}.so' | |
10228 | dynamic_linker="$host_os ld.so" | |
10229 | shlibpath_var=LIBRARY_PATH | |
10230 | ;; | |
10231 | ||
10232 | bsdi4*) | |
10233 | version_type=linux | |
10234 | need_version=no | |
10235 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10236 | soname_spec='${libname}${release}.so$major' | |
10237 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10238 | shlibpath_var=LD_LIBRARY_PATH | |
10239 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10240 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10241 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10242 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10243 | # libtool to hard-code these into programs | |
10244 | ;; | |
10245 | ||
10246 | cygwin* | mingw* | pw32*) | |
10247 | version_type=windows | |
10248 | need_version=no | |
10249 | need_lib_prefix=no | |
10250 | case $GCC,$host_os in | |
10251 | yes,cygwin*) | |
10252 | library_names_spec='$libname.dll.a' | |
10253 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | |
10254 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
10255 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | |
10256 | dldir=$destdir/`dirname \$dlpath`~ | |
10257 | test -d \$dldir || mkdir -p \$dldir~ | |
10258 | $install_prog .libs/$dlname \$dldir/$dlname' | |
10259 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10260 | dlpath=$dir/\$dldll~ | |
10261 | $rm \$dlpath' | |
10262 | shlibpath_overrides_runpath=yes | |
10263 | ;; | |
10264 | yes,mingw*) | |
10265 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
10266 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
10267 | if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then | |
10268 | # It is most probably a Windows format PATH printed by | |
10269 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
10270 | # path with ; separators, and with drive letters. We can handle the | |
10271 | # drive letters (cygwin fileutils understands them), so leave them, | |
10272 | # especially as we might pass files found there to a mingw objdump, | |
10273 | # which wouldn't understand a cygwinified path. Ahh. | |
10274 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
10275 | else | |
10276 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
10277 | fi | |
10278 | ;; | |
10279 | yes,pw32*) | |
10280 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | |
10281 | ;; | |
10282 | *) | |
10283 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | |
10284 | ;; | |
10285 | esac | |
10286 | dynamic_linker='Win32 ld.exe' | |
10287 | # FIXME: first we should search . and the directory the executable is in | |
10288 | shlibpath_var=PATH | |
10289 | ;; | |
10290 | ||
10291 | darwin* | rhapsody*) | |
10292 | dynamic_linker="$host_os dyld" | |
10293 | version_type=darwin | |
10294 | need_lib_prefix=no | |
10295 | need_version=no | |
10296 | # FIXME: Relying on posixy $() will cause problems for | |
10297 | # cross-compilation, but unfortunately the echo tests do not | |
10298 | # yet detect zsh echo's removal of \ escapes. | |
10299 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' | |
10300 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | |
10301 | shlibpath_overrides_runpath=yes | |
10302 | shlibpath_var=DYLD_LIBRARY_PATH | |
10303 | ;; | |
10304 | ||
10305 | dgux*) | |
10306 | version_type=linux | |
10307 | need_lib_prefix=no | |
10308 | need_version=no | |
10309 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10310 | soname_spec='${libname}${release}.so$major' | |
10311 | shlibpath_var=LD_LIBRARY_PATH | |
10312 | ;; | |
10313 | ||
10314 | freebsd1*) | |
10315 | dynamic_linker=no | |
10316 | ;; | |
10317 | ||
10318 | freebsd*) | |
10319 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
10320 | version_type=freebsd-$objformat | |
10321 | case $version_type in | |
10322 | freebsd-elf*) | |
10323 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
10324 | need_version=no | |
10325 | need_lib_prefix=no | |
10326 | ;; | |
10327 | freebsd-*) | |
10328 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | |
10329 | need_version=yes | |
10330 | ;; | |
10331 | esac | |
10332 | shlibpath_var=LD_LIBRARY_PATH | |
10333 | case $host_os in | |
10334 | freebsd2*) | |
10335 | shlibpath_overrides_runpath=yes | |
10336 | ;; | |
10337 | freebsd3.01* | freebsdelf3.01*) | |
10338 | shlibpath_overrides_runpath=yes | |
10339 | hardcode_into_libs=yes | |
10340 | ;; | |
10341 | *) # from 3.2 on | |
10342 | shlibpath_overrides_runpath=no | |
10343 | hardcode_into_libs=yes | |
10344 | ;; | |
10345 | esac | |
10346 | ;; | |
10347 | ||
10348 | gnu*) | |
10349 | version_type=linux | |
10350 | need_lib_prefix=no | |
10351 | need_version=no | |
10352 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | |
10353 | soname_spec='${libname}${release}.so$major' | |
10354 | shlibpath_var=LD_LIBRARY_PATH | |
10355 | hardcode_into_libs=yes | |
10356 | ;; | |
10357 | ||
10358 | hpux9* | hpux10* | hpux11*) | |
10359 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10360 | # link against other versions. | |
10361 | version_type=sunos | |
10362 | need_lib_prefix=no | |
10363 | need_version=no | |
10364 | if test "$host_cpu" = ia64; then | |
10365 | hardcode_into_libs=yes | |
10366 | dynamic_linker="$host_os dld.so" | |
10367 | shlibpath_var=LD_LIBRARY_PATH | |
10368 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10369 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10370 | soname_spec='${libname}${release}.so$major' | |
10371 | if test "X$HPUX_IA64_MODE" = X32; then | |
10372 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10373 | else | |
10374 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10375 | fi | |
10376 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10377 | else | |
10378 | dynamic_linker="$host_os dld.sl" | |
10379 | shlibpath_var=SHLIB_PATH | |
10380 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10381 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | |
10382 | soname_spec='${libname}${release}.sl$major' | |
10383 | fi | |
10384 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
10385 | postinstall_cmds='chmod 555 $lib' | |
10386 | ;; | |
10387 | ||
10388 | irix5* | irix6* | nonstopux*) | |
10389 | case $host_os in | |
10390 | nonstopux*) version_type=nonstopux ;; | |
10391 | *) version_type=irix ;; | |
10392 | esac | |
10393 | need_lib_prefix=no | |
10394 | need_version=no | |
10395 | soname_spec='${libname}${release}.so$major' | |
10396 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | |
10397 | case $host_os in | |
10398 | irix5* | nonstopux*) | |
10399 | libsuff= shlibsuff= | |
10400 | ;; | |
10401 | *) | |
10402 | case $LD in # libtool.m4 will add one of these switches to LD | |
10403 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | |
10404 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10405 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10406 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10407 | esac | |
10408 | ;; | |
10409 | esac | |
10410 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10411 | shlibpath_overrides_runpath=no | |
10412 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10413 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10414 | ;; | |
10415 | ||
10416 | # No shared lib support for Linux oldld, aout, or coff. | |
10417 | linux*oldld* | linux*aout* | linux*coff*) | |
10418 | dynamic_linker=no | |
10419 | ;; | |
10420 | ||
10421 | # This must be Linux ELF. | |
10422 | linux*) | |
10423 | version_type=linux | |
10424 | need_lib_prefix=no | |
10425 | need_version=no | |
10426 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10427 | soname_spec='${libname}${release}.so$major' | |
10428 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10429 | shlibpath_var=LD_LIBRARY_PATH | |
10430 | shlibpath_overrides_runpath=no | |
10431 | # This implies no fast_install, which is unacceptable. | |
10432 | # Some rework will be needed to allow for fast_install | |
10433 | # before this can be enabled. | |
10434 | hardcode_into_libs=yes | |
10435 | ||
10436 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10437 | # powerpc, because MkLinux only supported shared libraries with the | |
10438 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10439 | # most powerpc-linux boxes support dynamic linking these days and | |
10440 | # people can always --disable-shared, the test was removed, and we | |
10441 | # assume the GNU/Linux dynamic linker is in use. | |
10442 | dynamic_linker='GNU/Linux ld.so' | |
10443 | ;; | |
10444 | ||
10445 | netbsd*) | |
10446 | version_type=sunos | |
10447 | need_lib_prefix=no | |
10448 | need_version=no | |
10449 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
10450 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
10451 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10452 | dynamic_linker='NetBSD (a.out) ld.so' | |
10453 | else | |
10454 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | |
10455 | soname_spec='${libname}${release}.so$major' | |
10456 | dynamic_linker='NetBSD ld.elf_so' | |
10457 | fi | |
10458 | shlibpath_var=LD_LIBRARY_PATH | |
10459 | shlibpath_overrides_runpath=yes | |
10460 | hardcode_into_libs=yes | |
10461 | ;; | |
10462 | ||
10463 | newsos6) | |
10464 | version_type=linux | |
10465 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10466 | shlibpath_var=LD_LIBRARY_PATH | |
10467 | shlibpath_overrides_runpath=yes | |
10468 | ;; | |
10469 | ||
10470 | nto-qnx) | |
10471 | version_type=linux | |
10472 | need_lib_prefix=no | |
10473 | need_version=no | |
10474 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10475 | soname_spec='${libname}${release}.so$major' | |
10476 | shlibpath_var=LD_LIBRARY_PATH | |
10477 | shlibpath_overrides_runpath=yes | |
10478 | ;; | |
10479 | ||
10480 | openbsd*) | |
10481 | version_type=sunos | |
10482 | need_lib_prefix=no | |
10483 | need_version=no | |
10484 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
10485 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10486 | shlibpath_var=LD_LIBRARY_PATH | |
10487 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10488 | case $host_os in | |
10489 | openbsd2.[89] | openbsd2.[89].*) | |
10490 | shlibpath_overrides_runpath=no | |
10491 | ;; | |
10492 | *) | |
10493 | shlibpath_overrides_runpath=yes | |
10494 | ;; | |
10495 | esac | |
10496 | else | |
10497 | shlibpath_overrides_runpath=yes | |
10498 | fi | |
10499 | ;; | |
10500 | ||
10501 | os2*) | |
10502 | libname_spec='$name' | |
10503 | need_lib_prefix=no | |
10504 | library_names_spec='$libname.dll $libname.a' | |
10505 | dynamic_linker='OS/2 ld.exe' | |
10506 | shlibpath_var=LIBPATH | |
10507 | ;; | |
10508 | ||
10509 | osf3* | osf4* | osf5*) | |
10510 | version_type=osf | |
10511 | need_lib_prefix=no | |
10512 | need_version=no | |
10513 | soname_spec='${libname}${release}.so' | |
10514 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
10515 | shlibpath_var=LD_LIBRARY_PATH | |
10516 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10517 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10518 | ;; | |
10519 | ||
10520 | sco3.2v5*) | |
10521 | version_type=osf | |
10522 | soname_spec='${libname}${release}.so$major' | |
10523 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10524 | shlibpath_var=LD_LIBRARY_PATH | |
10525 | ;; | |
10526 | ||
10527 | solaris*) | |
10528 | version_type=linux | |
10529 | need_lib_prefix=no | |
10530 | need_version=no | |
10531 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10532 | soname_spec='${libname}${release}.so$major' | |
10533 | shlibpath_var=LD_LIBRARY_PATH | |
10534 | shlibpath_overrides_runpath=yes | |
10535 | hardcode_into_libs=yes | |
10536 | # ldd complains unless libraries are executable | |
10537 | postinstall_cmds='chmod +x $lib' | |
10538 | ;; | |
10539 | ||
10540 | sunos4*) | |
10541 | version_type=sunos | |
10542 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
10543 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10544 | shlibpath_var=LD_LIBRARY_PATH | |
10545 | shlibpath_overrides_runpath=yes | |
10546 | if test "$with_gnu_ld" = yes; then | |
10547 | need_lib_prefix=no | |
10548 | fi | |
10549 | need_version=yes | |
10550 | ;; | |
10551 | ||
10552 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10553 | version_type=linux | |
10554 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10555 | soname_spec='${libname}${release}.so$major' | |
10556 | shlibpath_var=LD_LIBRARY_PATH | |
10557 | case $host_vendor in | |
10558 | sni) | |
10559 | shlibpath_overrides_runpath=no | |
10560 | ;; | |
10561 | motorola) | |
10562 | need_lib_prefix=no | |
10563 | need_version=no | |
10564 | shlibpath_overrides_runpath=no | |
10565 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10566 | ;; | |
10567 | esac | |
10568 | ;; | |
10569 | ||
10570 | sysv4*MP*) | |
10571 | if test -d /usr/nec ;then | |
10572 | version_type=linux | |
10573 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | |
10574 | soname_spec='$libname.so.$major' | |
10575 | shlibpath_var=LD_LIBRARY_PATH | |
10576 | fi | |
10577 | ;; | |
10578 | ||
10579 | uts4*) | |
10580 | version_type=linux | |
10581 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10582 | soname_spec='${libname}${release}.so$major' | |
10583 | shlibpath_var=LD_LIBRARY_PATH | |
10584 | ;; | |
10585 | ||
10586 | *) | |
10587 | dynamic_linker=no | |
10588 | ;; | |
10589 | esac | |
10590 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
10591 | echo "${ECHO_T}$dynamic_linker" >&6 | |
10592 | test "$dynamic_linker" = no && can_build_shared=no | |
10593 | ||
10594 | if test "x$enable_dlopen" != xyes; then | |
10595 | enable_dlopen=unknown | |
10596 | enable_dlopen_self=unknown | |
10597 | enable_dlopen_self_static=unknown | |
10598 | else | |
10599 | lt_cv_dlopen=no | |
10600 | lt_cv_dlopen_libs= | |
10601 | ||
10602 | case $host_os in | |
10603 | beos*) | |
10604 | lt_cv_dlopen="load_add_on" | |
10605 | lt_cv_dlopen_libs= | |
10606 | lt_cv_dlopen_self=yes | |
10607 | ;; | |
10608 | ||
10609 | cygwin* | mingw* | pw32*) | |
10610 | lt_cv_dlopen="LoadLibrary" | |
10611 | lt_cv_dlopen_libs= | |
10612 | ;; | |
10613 | ||
10614 | *) | |
10615 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
10616 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
10617 | if test "${ac_cv_func_shl_load+set}" = set; then | |
10618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10619 | else | |
10620 | cat >conftest.$ac_ext <<_ACEOF | |
10621 | #line $LINENO "configure" | |
10622 | #include "confdefs.h" | |
10623 | /* System header to define __stub macros and hopefully few prototypes, | |
10624 | which can conflict with char shl_load (); below. */ | |
10625 | #include <assert.h> | |
10626 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10627 | #ifdef __cplusplus | |
10628 | extern "C" | |
10629 | #endif | |
10630 | /* We use char because int might match the return type of a gcc2 | |
10631 | builtin and then its argument prototype would still apply. */ | |
10632 | char shl_load (); | |
10633 | char (*f) (); | |
10634 | ||
10635 | #ifdef F77_DUMMY_MAIN | |
10636 | # ifdef __cplusplus | |
10637 | extern "C" | |
10638 | # endif | |
10639 | int F77_DUMMY_MAIN() { return 1; } | |
10640 | #endif | |
10641 | int | |
10642 | main () | |
10643 | { | |
10644 | /* The GNU C library defines this for functions which it implements | |
10645 | to always fail with ENOSYS. Some functions are actually named | |
10646 | something starting with __ and the normal name is an alias. */ | |
10647 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
10648 | choke me | |
10649 | #else | |
10650 | f = shl_load; | |
10651 | #endif | |
10652 | ||
10653 | ; | |
10654 | return 0; | |
10655 | } | |
10656 | _ACEOF | |
10657 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10658 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10659 | (eval $ac_link) 2>&5 | |
10660 | ac_status=$? | |
10661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10662 | (exit $ac_status); } && | |
10663 | { ac_try='test -s conftest$ac_exeext' | |
10664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10665 | (eval $ac_try) 2>&5 | |
10666 | ac_status=$? | |
10667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10668 | (exit $ac_status); }; }; then | |
10669 | ac_cv_func_shl_load=yes | |
10670 | else | |
10671 | echo "$as_me: failed program was:" >&5 | |
10672 | cat conftest.$ac_ext >&5 | |
10673 | ac_cv_func_shl_load=no | |
10674 | fi | |
10675 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10676 | fi | |
10677 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
10678 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
10679 | if test $ac_cv_func_shl_load = yes; then | |
10680 | lt_cv_dlopen="shl_load" | |
10681 | else | |
10682 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
10683 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
10684 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
10685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10686 | else | |
10687 | ac_check_lib_save_LIBS=$LIBS | |
10688 | LIBS="-ldld $LIBS" | |
10689 | cat >conftest.$ac_ext <<_ACEOF | |
10690 | #line $LINENO "configure" | |
10691 | #include "confdefs.h" | |
10692 | ||
10693 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10694 | #ifdef __cplusplus | |
10695 | extern "C" | |
10696 | #endif | |
10697 | /* We use char because int might match the return type of a gcc2 | |
10698 | builtin and then its argument prototype would still apply. */ | |
10699 | char shl_load (); | |
10700 | #ifdef F77_DUMMY_MAIN | |
10701 | # ifdef __cplusplus | |
10702 | extern "C" | |
10703 | # endif | |
10704 | int F77_DUMMY_MAIN() { return 1; } | |
10705 | #endif | |
10706 | int | |
10707 | main () | |
10708 | { | |
10709 | shl_load (); | |
10710 | ; | |
10711 | return 0; | |
10712 | } | |
10713 | _ACEOF | |
10714 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10715 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10716 | (eval $ac_link) 2>&5 | |
10717 | ac_status=$? | |
10718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10719 | (exit $ac_status); } && | |
10720 | { ac_try='test -s conftest$ac_exeext' | |
10721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10722 | (eval $ac_try) 2>&5 | |
10723 | ac_status=$? | |
10724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10725 | (exit $ac_status); }; }; then | |
10726 | ac_cv_lib_dld_shl_load=yes | |
10727 | else | |
10728 | echo "$as_me: failed program was:" >&5 | |
10729 | cat conftest.$ac_ext >&5 | |
10730 | ac_cv_lib_dld_shl_load=no | |
10731 | fi | |
10732 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10733 | LIBS=$ac_check_lib_save_LIBS | |
10734 | fi | |
10735 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
10736 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
10737 | if test $ac_cv_lib_dld_shl_load = yes; then | |
10738 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
10739 | else | |
10740 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
10741 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
10742 | if test "${ac_cv_func_dlopen+set}" = set; then | |
10743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10744 | else | |
10745 | cat >conftest.$ac_ext <<_ACEOF | |
10746 | #line $LINENO "configure" | |
10747 | #include "confdefs.h" | |
10748 | /* System header to define __stub macros and hopefully few prototypes, | |
10749 | which can conflict with char dlopen (); below. */ | |
10750 | #include <assert.h> | |
10751 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10752 | #ifdef __cplusplus | |
10753 | extern "C" | |
10754 | #endif | |
10755 | /* We use char because int might match the return type of a gcc2 | |
10756 | builtin and then its argument prototype would still apply. */ | |
10757 | char dlopen (); | |
10758 | char (*f) (); | |
10759 | ||
10760 | #ifdef F77_DUMMY_MAIN | |
10761 | # ifdef __cplusplus | |
10762 | extern "C" | |
10763 | # endif | |
10764 | int F77_DUMMY_MAIN() { return 1; } | |
10765 | #endif | |
10766 | int | |
10767 | main () | |
10768 | { | |
10769 | /* The GNU C library defines this for functions which it implements | |
10770 | to always fail with ENOSYS. Some functions are actually named | |
10771 | something starting with __ and the normal name is an alias. */ | |
10772 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
10773 | choke me | |
10774 | #else | |
10775 | f = dlopen; | |
10776 | #endif | |
10777 | ||
10778 | ; | |
10779 | return 0; | |
10780 | } | |
10781 | _ACEOF | |
10782 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10784 | (eval $ac_link) 2>&5 | |
10785 | ac_status=$? | |
10786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10787 | (exit $ac_status); } && | |
10788 | { ac_try='test -s conftest$ac_exeext' | |
10789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10790 | (eval $ac_try) 2>&5 | |
10791 | ac_status=$? | |
10792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10793 | (exit $ac_status); }; }; then | |
10794 | ac_cv_func_dlopen=yes | |
10795 | else | |
10796 | echo "$as_me: failed program was:" >&5 | |
10797 | cat conftest.$ac_ext >&5 | |
10798 | ac_cv_func_dlopen=no | |
10799 | fi | |
10800 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10801 | fi | |
10802 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
10803 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
10804 | if test $ac_cv_func_dlopen = yes; then | |
10805 | lt_cv_dlopen="dlopen" | |
10806 | else | |
10807 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10808 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
10809 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10811 | else | |
10812 | ac_check_lib_save_LIBS=$LIBS | |
10813 | LIBS="-ldl $LIBS" | |
10814 | cat >conftest.$ac_ext <<_ACEOF | |
10815 | #line $LINENO "configure" | |
10816 | #include "confdefs.h" | |
10817 | ||
10818 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10819 | #ifdef __cplusplus | |
10820 | extern "C" | |
10821 | #endif | |
10822 | /* We use char because int might match the return type of a gcc2 | |
10823 | builtin and then its argument prototype would still apply. */ | |
10824 | char dlopen (); | |
10825 | #ifdef F77_DUMMY_MAIN | |
10826 | # ifdef __cplusplus | |
10827 | extern "C" | |
10828 | # endif | |
10829 | int F77_DUMMY_MAIN() { return 1; } | |
10830 | #endif | |
10831 | int | |
10832 | main () | |
10833 | { | |
10834 | dlopen (); | |
10835 | ; | |
10836 | return 0; | |
10837 | } | |
10838 | _ACEOF | |
10839 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10840 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10841 | (eval $ac_link) 2>&5 | |
10842 | ac_status=$? | |
10843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10844 | (exit $ac_status); } && | |
10845 | { ac_try='test -s conftest$ac_exeext' | |
10846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10847 | (eval $ac_try) 2>&5 | |
10848 | ac_status=$? | |
10849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10850 | (exit $ac_status); }; }; then | |
10851 | ac_cv_lib_dl_dlopen=yes | |
10852 | else | |
10853 | echo "$as_me: failed program was:" >&5 | |
10854 | cat conftest.$ac_ext >&5 | |
10855 | ac_cv_lib_dl_dlopen=no | |
10856 | fi | |
10857 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10858 | LIBS=$ac_check_lib_save_LIBS | |
10859 | fi | |
10860 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10861 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
10862 | if test $ac_cv_lib_dl_dlopen = yes; then | |
10863 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10864 | else | |
10865 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
10866 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
10867 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
10868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10869 | else | |
10870 | ac_check_lib_save_LIBS=$LIBS | |
10871 | LIBS="-lsvld $LIBS" | |
10872 | cat >conftest.$ac_ext <<_ACEOF | |
10873 | #line $LINENO "configure" | |
10874 | #include "confdefs.h" | |
10875 | ||
10876 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10877 | #ifdef __cplusplus | |
10878 | extern "C" | |
10879 | #endif | |
10880 | /* We use char because int might match the return type of a gcc2 | |
10881 | builtin and then its argument prototype would still apply. */ | |
10882 | char dlopen (); | |
10883 | #ifdef F77_DUMMY_MAIN | |
10884 | # ifdef __cplusplus | |
10885 | extern "C" | |
10886 | # endif | |
10887 | int F77_DUMMY_MAIN() { return 1; } | |
10888 | #endif | |
10889 | int | |
10890 | main () | |
10891 | { | |
10892 | dlopen (); | |
10893 | ; | |
10894 | return 0; | |
10895 | } | |
10896 | _ACEOF | |
10897 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10899 | (eval $ac_link) 2>&5 | |
10900 | ac_status=$? | |
10901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10902 | (exit $ac_status); } && | |
10903 | { ac_try='test -s conftest$ac_exeext' | |
10904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10905 | (eval $ac_try) 2>&5 | |
10906 | ac_status=$? | |
10907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10908 | (exit $ac_status); }; }; then | |
10909 | ac_cv_lib_svld_dlopen=yes | |
10910 | else | |
10911 | echo "$as_me: failed program was:" >&5 | |
10912 | cat conftest.$ac_ext >&5 | |
10913 | ac_cv_lib_svld_dlopen=no | |
10914 | fi | |
10915 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10916 | LIBS=$ac_check_lib_save_LIBS | |
10917 | fi | |
10918 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
10919 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
10920 | if test $ac_cv_lib_svld_dlopen = yes; then | |
10921 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
10922 | else | |
10923 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
10924 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
10925 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
10926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10927 | else | |
10928 | ac_check_lib_save_LIBS=$LIBS | |
10929 | LIBS="-ldld $LIBS" | |
10930 | cat >conftest.$ac_ext <<_ACEOF | |
10931 | #line $LINENO "configure" | |
10932 | #include "confdefs.h" | |
10933 | ||
10934 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10935 | #ifdef __cplusplus | |
10936 | extern "C" | |
10937 | #endif | |
10938 | /* We use char because int might match the return type of a gcc2 | |
10939 | builtin and then its argument prototype would still apply. */ | |
10940 | char dld_link (); | |
10941 | #ifdef F77_DUMMY_MAIN | |
10942 | # ifdef __cplusplus | |
10943 | extern "C" | |
10944 | # endif | |
10945 | int F77_DUMMY_MAIN() { return 1; } | |
10946 | #endif | |
10947 | int | |
10948 | main () | |
10949 | { | |
10950 | dld_link (); | |
10951 | ; | |
10952 | return 0; | |
10953 | } | |
10954 | _ACEOF | |
10955 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10956 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10957 | (eval $ac_link) 2>&5 | |
10958 | ac_status=$? | |
10959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10960 | (exit $ac_status); } && | |
10961 | { ac_try='test -s conftest$ac_exeext' | |
10962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10963 | (eval $ac_try) 2>&5 | |
10964 | ac_status=$? | |
10965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10966 | (exit $ac_status); }; }; then | |
10967 | ac_cv_lib_dld_dld_link=yes | |
10968 | else | |
10969 | echo "$as_me: failed program was:" >&5 | |
10970 | cat conftest.$ac_ext >&5 | |
10971 | ac_cv_lib_dld_dld_link=no | |
10972 | fi | |
10973 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10974 | LIBS=$ac_check_lib_save_LIBS | |
10975 | fi | |
10976 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
10977 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
10978 | if test $ac_cv_lib_dld_dld_link = yes; then | |
10979 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
10980 | fi | |
10981 | ||
10982 | ||
10983 | fi | |
10984 | ||
10985 | ||
10986 | fi | |
10987 | ||
10988 | ||
10989 | fi | |
10990 | ||
10991 | ||
10992 | fi | |
10993 | ||
10994 | ||
10995 | fi | |
10996 | ||
10997 | ;; | |
10998 | esac | |
10999 | ||
11000 | if test "x$lt_cv_dlopen" != xno; then | |
11001 | enable_dlopen=yes | |
11002 | else | |
11003 | enable_dlopen=no | |
11004 | fi | |
11005 | ||
11006 | case $lt_cv_dlopen in | |
11007 | dlopen) | |
11008 | save_CPPFLAGS="$CPPFLAGS" | |
11009 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11010 | ||
11011 | save_LDFLAGS="$LDFLAGS" | |
11012 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11013 | ||
11014 | save_LIBS="$LIBS" | |
11015 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11016 | ||
11017 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
11018 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
11019 | if test "${lt_cv_dlopen_self+set}" = set; then | |
11020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11021 | else | |
11022 | if test "$cross_compiling" = yes; then : | |
11023 | lt_cv_dlopen_self=cross | |
11024 | else | |
11025 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11026 | lt_status=$lt_dlunknown | |
11027 | cat > conftest.$ac_ext <<EOF | |
11028 | #line 11028 "configure" | |
11029 | #include "confdefs.h" | |
11030 | ||
11031 | #if HAVE_DLFCN_H | |
11032 | #include <dlfcn.h> | |
11033 | #endif | |
11034 | ||
11035 | #include <stdio.h> | |
11036 | ||
11037 | #ifdef RTLD_GLOBAL | |
11038 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11039 | #else | |
11040 | # ifdef DL_GLOBAL | |
11041 | # define LT_DLGLOBAL DL_GLOBAL | |
11042 | # else | |
11043 | # define LT_DLGLOBAL 0 | |
11044 | # endif | |
11045 | #endif | |
11046 | ||
11047 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11048 | find out it does not work in some platform. */ | |
11049 | #ifndef LT_DLLAZY_OR_NOW | |
11050 | # ifdef RTLD_LAZY | |
11051 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11052 | # else | |
11053 | # ifdef DL_LAZY | |
11054 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11055 | # else | |
11056 | # ifdef RTLD_NOW | |
11057 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11058 | # else | |
11059 | # ifdef DL_NOW | |
11060 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11061 | # else | |
11062 | # define LT_DLLAZY_OR_NOW 0 | |
11063 | # endif | |
11064 | # endif | |
11065 | # endif | |
11066 | # endif | |
11067 | #endif | |
11068 | ||
11069 | #ifdef __cplusplus | |
11070 | extern "C" void exit (int); | |
11071 | #endif | |
11072 | ||
11073 | void fnord() { int i=42;} | |
11074 | int main () | |
11075 | { | |
11076 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11077 | int status = $lt_dlunknown; | |
11078 | ||
11079 | if (self) | |
11080 | { | |
11081 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11082 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11083 | /* dlclose (self); */ | |
11084 | } | |
11085 | ||
11086 | exit (status); | |
11087 | } | |
11088 | EOF | |
11089 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11090 | (eval $ac_link) 2>&5 | |
11091 | ac_status=$? | |
11092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11093 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11094 | (./conftest; exit; ) 2>/dev/null | |
11095 | lt_status=$? | |
11096 | case x$lt_status in | |
11097 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11098 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11099 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
11100 | esac | |
11101 | else : | |
11102 | # compilation failed | |
11103 | lt_cv_dlopen_self=no | |
11104 | fi | |
11105 | fi | |
11106 | rm -fr conftest* | |
11107 | ||
11108 | ||
11109 | fi | |
11110 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
11111 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
11112 | ||
11113 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11114 | LDFLAGS="$LDFLAGS $link_static_flag" | |
11115 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
11116 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
11117 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
11118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11119 | else | |
11120 | if test "$cross_compiling" = yes; then : | |
11121 | lt_cv_dlopen_self_static=cross | |
11122 | else | |
11123 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11124 | lt_status=$lt_dlunknown | |
11125 | cat > conftest.$ac_ext <<EOF | |
11126 | #line 11126 "configure" | |
11127 | #include "confdefs.h" | |
11128 | ||
11129 | #if HAVE_DLFCN_H | |
11130 | #include <dlfcn.h> | |
11131 | #endif | |
11132 | ||
11133 | #include <stdio.h> | |
11134 | ||
11135 | #ifdef RTLD_GLOBAL | |
11136 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11137 | #else | |
11138 | # ifdef DL_GLOBAL | |
11139 | # define LT_DLGLOBAL DL_GLOBAL | |
11140 | # else | |
11141 | # define LT_DLGLOBAL 0 | |
11142 | # endif | |
11143 | #endif | |
11144 | ||
11145 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11146 | find out it does not work in some platform. */ | |
11147 | #ifndef LT_DLLAZY_OR_NOW | |
11148 | # ifdef RTLD_LAZY | |
11149 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11150 | # else | |
11151 | # ifdef DL_LAZY | |
11152 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11153 | # else | |
11154 | # ifdef RTLD_NOW | |
11155 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11156 | # else | |
11157 | # ifdef DL_NOW | |
11158 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11159 | # else | |
11160 | # define LT_DLLAZY_OR_NOW 0 | |
11161 | # endif | |
11162 | # endif | |
11163 | # endif | |
11164 | # endif | |
11165 | #endif | |
11166 | ||
11167 | #ifdef __cplusplus | |
11168 | extern "C" void exit (int); | |
11169 | #endif | |
11170 | ||
11171 | void fnord() { int i=42;} | |
11172 | int main () | |
11173 | { | |
11174 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11175 | int status = $lt_dlunknown; | |
11176 | ||
11177 | if (self) | |
11178 | { | |
11179 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11180 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11181 | /* dlclose (self); */ | |
11182 | } | |
11183 | ||
11184 | exit (status); | |
11185 | } | |
11186 | EOF | |
11187 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11188 | (eval $ac_link) 2>&5 | |
11189 | ac_status=$? | |
11190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11191 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11192 | (./conftest; exit; ) 2>/dev/null | |
11193 | lt_status=$? | |
11194 | case x$lt_status in | |
11195 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11196 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11197 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
11198 | esac | |
11199 | else : | |
11200 | # compilation failed | |
11201 | lt_cv_dlopen_self_static=no | |
11202 | fi | |
11203 | fi | |
11204 | rm -fr conftest* | |
11205 | ||
11206 | ||
11207 | fi | |
11208 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
11209 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
11210 | fi | |
11211 | ||
11212 | CPPFLAGS="$save_CPPFLAGS" | |
11213 | LDFLAGS="$save_LDFLAGS" | |
11214 | LIBS="$save_LIBS" | |
11215 | ;; | |
11216 | esac | |
11217 | ||
11218 | case $lt_cv_dlopen_self in | |
11219 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11220 | *) enable_dlopen_self=unknown ;; | |
11221 | esac | |
11222 | ||
11223 | case $lt_cv_dlopen_self_static in | |
11224 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11225 | *) enable_dlopen_self_static=unknown ;; | |
11226 | esac | |
11227 | fi | |
11228 | ||
11229 | ||
11230 | # The else clause should only fire when bootstrapping the | |
11231 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
11232 | # with your package, and you will get complaints that there are | |
11233 | # no rules to generate ltmain.sh. | |
11234 | if test -f "$ltmain"; then | |
11235 | # Now quote all the things that may contain metacharacters while being | |
11236 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
11237 | # variables and quote the copies for generation of the libtool script. | |
11238 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
11239 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
11240 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
11241 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
11242 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
11243 | lt_cv_sys_global_symbol_to_c_name_address \ | |
11244 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
11245 | old_postinstall_cmds old_postuninstall_cmds \ | |
11246 | compiler_CXX \ | |
11247 | CC_CXX \ | |
11248 | LD_CXX \ | |
11249 | lt_prog_compiler_wl_CXX \ | |
11250 | lt_prog_compiler_pic_CXX \ | |
11251 | lt_prog_compiler_static_CXX \ | |
11252 | lt_prog_compiler_no_builtin_flag_CXX \ | |
11253 | export_dynamic_flag_spec_CXX \ | |
11254 | thread_safe_flag_spec_CXX \ | |
11255 | whole_archive_flag_spec_CXX \ | |
11256 | old_archive_cmds_CXX \ | |
11257 | old_archive_from_new_cmds_CXX \ | |
11258 | predep_objects_CXX \ | |
11259 | postdep_objects_CXX \ | |
11260 | predeps_CXX \ | |
11261 | postdeps_CXX \ | |
11262 | compiler_lib_search_path_CXX \ | |
11263 | archive_cmds_CXX \ | |
11264 | archive_expsym_cmds_CXX \ | |
11265 | postinstall_cmds_CXX \ | |
11266 | postuninstall_cmds_CXX \ | |
11267 | old_archive_from_expsyms_cmds_CXX \ | |
11268 | allow_undefined_flag_CXX \ | |
11269 | no_undefined_flag_CXX \ | |
11270 | export_symbols_cmds_CXX \ | |
11271 | hardcode_libdir_flag_spec_CXX \ | |
11272 | hardcode_libdir_separator_CXX \ | |
11273 | lt_cv_prog_compiler_c_o_CXX \ | |
11274 | exclude_expsyms_CXX \ | |
11275 | include_expsyms_CXX; do | |
11276 | ||
11277 | case $var in | |
11278 | old_archive_cmds_CXX | \ | |
11279 | old_archive_from_new_cmds_CXX | \ | |
11280 | archive_cmds_CXX | \ | |
11281 | archive_expsym_cmds_CXX | \ | |
11282 | old_archive_from_expsyms_cmds_CXX | \ | |
11283 | export_symbols_cmds_CXX | \ | |
11284 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
11285 | postinstall_cmds | postuninstall_cmds | \ | |
11286 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
11287 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
11288 | # Double-quote double-evaled strings. | |
11289 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
11290 | ;; | |
11291 | *) | |
11292 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
11293 | ;; | |
11294 | esac | |
11295 | done | |
11296 | ||
11297 | case $lt_echo in | |
11298 | *'\$0 --fallback-echo"') | |
11299 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
11300 | ;; | |
11301 | esac | |
11302 | ||
11303 | cfgfile="$ofile" | |
11304 | ||
11305 | cat <<__EOF__ >> "$cfgfile" | |
11306 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
11307 | ||
11308 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
11309 | ||
11310 | # Shell to use when invoking shell scripts. | |
11311 | SHELL=$lt_SHELL | |
11312 | ||
11313 | # Whether or not to build shared libraries. | |
11314 | build_libtool_libs=$enable_shared | |
11315 | ||
11316 | # Whether or not to build static libraries. | |
11317 | build_old_libs=$enable_static | |
11318 | ||
11319 | # Whether or not to add -lc for building shared libraries. | |
11320 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
11321 | ||
11322 | # Whether or not to optimize for fast installation. | |
11323 | fast_install=$enable_fast_install | |
11324 | ||
11325 | # The host system. | |
11326 | host_alias=$host_alias | |
11327 | host=$host | |
11328 | ||
11329 | # An echo program that does not interpret backslashes. | |
11330 | echo=$lt_echo | |
11331 | ||
11332 | # The archiver. | |
11333 | AR=$lt_AR | |
11334 | AR_FLAGS=$lt_AR_FLAGS | |
11335 | ||
11336 | # A C compiler. | |
11337 | LTCC=$lt_LTCC | |
11338 | ||
11339 | # A language-specific compiler. | |
11340 | CC=$lt_compiler_CXX | |
11341 | ||
11342 | # Is the compiler the GNU C compiler? | |
11343 | with_gcc=$GCC_CXX | |
11344 | ||
11345 | # The linker used to build libraries. | |
11346 | LD=$lt_LD_CXX | |
11347 | ||
11348 | # Whether we need hard or soft links. | |
11349 | LN_S=$lt_LN_S | |
11350 | ||
11351 | # A BSD-compatible nm program. | |
11352 | NM=$lt_NM | |
11353 | ||
11354 | # A sed program that does not truncate output. | |
11355 | SED=$lt_SED | |
11356 | ||
11357 | # A symbol stripping program | |
11358 | STRIP=$STRIP | |
11359 | ||
11360 | # Used to examine libraries when file_magic_cmd begins "file" | |
11361 | MAGIC_CMD=$MAGIC_CMD | |
11362 | ||
11363 | # Used on cygwin: DLL creation program. | |
11364 | DLLTOOL="$DLLTOOL" | |
11365 | ||
11366 | # Used on cygwin: object dumper. | |
11367 | OBJDUMP="$OBJDUMP" | |
11368 | ||
11369 | # Used on cygwin: assembler. | |
11370 | AS="$AS" | |
11371 | ||
11372 | # The name of the directory that contains temporary libtool files. | |
11373 | objdir=$objdir | |
11374 | ||
11375 | # How to create reloadable object files. | |
11376 | reload_flag=$lt_reload_flag | |
11377 | reload_cmds=$lt_reload_cmds | |
11378 | ||
11379 | # How to pass a linker flag through the compiler. | |
11380 | wl=$lt_lt_prog_compiler_wl_CXX | |
11381 | ||
11382 | # Object file suffix (normally "o"). | |
11383 | objext="$ac_objext" | |
11384 | ||
11385 | # Old archive suffix (normally "a"). | |
11386 | libext="$libext" | |
11387 | ||
11388 | # Executable file suffix (normally ""). | |
11389 | exeext="$exeext" | |
11390 | ||
11391 | # Additional compiler flags for building library objects. | |
11392 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
11393 | pic_mode=$pic_mode | |
11394 | ||
11395 | # What is the maximum length of a command? | |
11396 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
11397 | ||
11398 | # Does compiler simultaneously support -c and -o options? | |
11399 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
11400 | ||
11401 | # Must we lock files when doing compilation ? | |
11402 | need_locks=$lt_need_locks | |
11403 | ||
11404 | # Do we need the lib prefix for modules? | |
11405 | need_lib_prefix=$need_lib_prefix | |
11406 | ||
11407 | # Do we need a version for libraries? | |
11408 | need_version=$need_version | |
11409 | ||
11410 | # Whether dlopen is supported. | |
11411 | dlopen_support=$enable_dlopen | |
11412 | ||
11413 | # Whether dlopen of programs is supported. | |
11414 | dlopen_self=$enable_dlopen_self | |
11415 | ||
11416 | # Whether dlopen of statically linked programs is supported. | |
11417 | dlopen_self_static=$enable_dlopen_self_static | |
11418 | ||
11419 | # Compiler flag to prevent dynamic linking. | |
11420 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
11421 | ||
11422 | # Compiler flag to turn off builtin functions. | |
11423 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
11424 | ||
11425 | # Compiler flag to allow reflexive dlopens. | |
11426 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
11427 | ||
11428 | # Compiler flag to generate shared objects directly from archives. | |
11429 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
11430 | ||
11431 | # Compiler flag to generate thread-safe objects. | |
11432 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | |
11433 | ||
11434 | # Library versioning type. | |
11435 | version_type=$version_type | |
11436 | ||
11437 | # Format of library name prefix. | |
11438 | libname_spec=$lt_libname_spec | |
11439 | ||
11440 | # List of archive names. First name is the real one, the rest are links. | |
11441 | # The last name is the one that the linker finds with -lNAME. | |
11442 | library_names_spec=$lt_library_names_spec | |
11443 | ||
11444 | # The coded name of the library, if different from the real name. | |
11445 | soname_spec=$lt_soname_spec | |
11446 | ||
11447 | # Commands used to build and install an old-style archive. | |
11448 | RANLIB=$lt_RANLIB | |
11449 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
11450 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
11451 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
11452 | ||
11453 | # Create an old-style archive from a shared archive. | |
11454 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
11455 | ||
11456 | # Create a temporary old-style archive to link instead of a shared archive. | |
11457 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
11458 | ||
11459 | # Commands used to build and install a shared archive. | |
11460 | archive_cmds=$lt_archive_cmds_CXX | |
11461 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
11462 | postinstall_cmds=$lt_postinstall_cmds | |
11463 | postuninstall_cmds=$lt_postuninstall_cmds | |
11464 | ||
11465 | # Commands to strip libraries. | |
11466 | old_striplib=$lt_old_striplib | |
11467 | striplib=$lt_striplib | |
11468 | ||
11469 | # Dependencies to place before the objects being linked to create a | |
11470 | # shared library. | |
11471 | predep_objects=$lt_predep_objects_CXX | |
11472 | ||
11473 | # Dependencies to place after the objects being linked to create a | |
11474 | # shared library. | |
11475 | postdep_objects=$lt_postdep_objects_CXX | |
11476 | ||
11477 | # Dependencies to place before the objects being linked to create a | |
11478 | # shared library. | |
11479 | predeps=$lt_predeps_CXX | |
11480 | ||
11481 | # Dependencies to place after the objects being linked to create a | |
11482 | # shared library. | |
11483 | postdeps=$lt_postdeps_CXX | |
11484 | ||
11485 | # The library search path used internally by the compiler when linking | |
11486 | # a shared library. | |
11487 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
11488 | ||
11489 | # Method to check whether dependent libraries are shared objects. | |
11490 | deplibs_check_method=$lt_deplibs_check_method | |
11491 | ||
11492 | # Command to use when deplibs_check_method == file_magic. | |
11493 | file_magic_cmd=$lt_file_magic_cmd | |
11494 | ||
11495 | # Flag that allows shared libraries with undefined symbols to be built. | |
11496 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
11497 | ||
11498 | # Flag that forces no undefined symbols. | |
11499 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
11500 | ||
11501 | # Commands used to finish a libtool library installation in a directory. | |
11502 | finish_cmds=$lt_finish_cmds | |
11503 | ||
11504 | # Same as above, but a single script fragment to be evaled but not shown. | |
11505 | finish_eval=$lt_finish_eval | |
11506 | ||
11507 | # Take the output of nm and produce a listing of raw symbols and C names. | |
11508 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
11509 | ||
11510 | # Transform the output of nm in a proper C declaration | |
11511 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
11512 | ||
11513 | # Transform the output of nm in a C name address pair | |
11514 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
11515 | ||
11516 | # This is the shared library runtime path variable. | |
11517 | runpath_var=$runpath_var | |
11518 | ||
11519 | # This is the shared library path variable. | |
11520 | shlibpath_var=$shlibpath_var | |
11521 | ||
11522 | # Is shlibpath searched before the hard-coded library search path? | |
11523 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
11524 | ||
11525 | # How to hardcode a shared library path into an executable. | |
11526 | hardcode_action=$hardcode_action_CXX | |
11527 | ||
11528 | # Whether we should hardcode library paths into libraries. | |
11529 | hardcode_into_libs=$hardcode_into_libs | |
11530 | ||
11531 | # Flag to hardcode \$libdir into a binary during linking. | |
11532 | # This must work even if \$libdir does not exist. | |
11533 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
11534 | ||
11535 | # Whether we need a single -rpath flag with a separated argument. | |
11536 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
11537 | ||
11538 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
11539 | # resulting binary. | |
11540 | hardcode_direct=$hardcode_direct_CXX | |
11541 | ||
11542 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
11543 | # resulting binary. | |
11544 | hardcode_minus_L=$hardcode_minus_L_CXX | |
11545 | ||
11546 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
11547 | # the resulting binary. | |
11548 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
11549 | ||
11550 | # Variables whose values should be saved in libtool wrapper scripts and | |
11551 | # restored at relink time. | |
11552 | variables_saved_for_relink="$variables_saved_for_relink" | |
11553 | ||
11554 | # Whether libtool must link a program against all its dependency libraries. | |
11555 | link_all_deplibs=$link_all_deplibs_CXX | |
11556 | ||
11557 | # Compile-time system search path for libraries | |
11558 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
11559 | ||
11560 | # Run-time system search path for libraries | |
11561 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
11562 | ||
11563 | # Fix the shell variable \$srcfile for the compiler. | |
11564 | fix_srcfile_path="$fix_srcfile_path_CXX" | |
11565 | ||
11566 | # Set to yes if exported symbols are required. | |
11567 | always_export_symbols=$always_export_symbols_CXX | |
11568 | ||
11569 | # The commands to list exported symbols. | |
11570 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
11571 | ||
11572 | # The commands to extract the exported symbol list from a shared archive. | |
11573 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
11574 | ||
11575 | # Symbols that should not be listed in the preloaded symbols. | |
11576 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
11577 | ||
11578 | # Symbols that must always be exported. | |
11579 | include_expsyms=$lt_include_expsyms_CXX | |
11580 | ||
11581 | # ### END LIBTOOL TAG CONFIG: $tagname | |
11582 | ||
11583 | __EOF__ | |
11584 | ||
11585 | ||
11586 | else | |
11587 | # If there is no Makefile yet, we rely on a make rule to execute | |
11588 | # `config.status --recheck' to rerun these tests and create the | |
11589 | # libtool script then. | |
11590 | test -f Makefile && make "$ltmain" | |
11591 | fi | |
11592 | ||
11593 | ||
11594 | ac_ext=cc | |
11595 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11596 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11597 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11598 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11599 | ||
11600 | CC="$lt_save_CC" | |
11601 | ||
11602 | ;; | |
11603 | ||
11604 | GCJ) | |
11605 | ||
11606 | ||
11607 | ||
11608 | # Source file extension for C test sources. | |
11609 | ac_ext=java | |
11610 | ||
11611 | # Object file extension for compiled C test sources. | |
11612 | objext=o | |
11613 | objext_GCJ=$objext | |
11614 | ||
11615 | # Code to be used in simple compile tests | |
11616 | lt_simple_compile_test_code="class foo {};" | |
11617 | ||
11618 | # Code to be used in simple link tests | |
11619 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }' | |
11620 | ||
11621 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
11622 | ||
11623 | # If no C compiler was specified, use CC. | |
11624 | LTCC=${LTCC-"$CC"} | |
11625 | ||
11626 | # Allow CC to be a program name with arguments. | |
11627 | set dummy $CC | |
11628 | compiler="$2" | |
11629 | ||
11630 | ||
11631 | # Allow CC to be a program name with arguments. | |
11632 | lt_save_CC="$CC" | |
11633 | CC=${GCJ-"gcj"} | |
11634 | set dummy $CC | |
11635 | compiler="$2" | |
11636 | compiler_GCJ=$CC | |
11637 | ||
11638 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
11639 | archive_cmds_need_lc_GCJ=no | |
11640 | ||
11641 | ||
11642 | lt_prog_compiler_no_builtin_flag_GCJ= | |
11643 | ||
11644 | if test "$GCC" = yes; then | |
11645 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | |
11646 | ||
11647 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
11648 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
11649 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
11650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11651 | else | |
11652 | lt_cv_prog_compiler_rtti_exceptions=no | |
11653 | ac_outfile=conftest.$ac_objext | |
11654 | save_CFLAGS="$CFLAGS" | |
11655 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" | |
11656 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11657 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
11658 | # The compiler can only warn and ignore the option if not recognized | |
11659 | # So say no if there are warnings | |
11660 | if test -s conftest.err; then | |
11661 | # Append any errors to the config.log. | |
11662 | cat conftest.err 1>&5 | |
11663 | else | |
11664 | lt_cv_prog_compiler_rtti_exceptions=yes | |
11665 | fi | |
11666 | fi | |
11667 | $rm conftest* | |
11668 | CFLAGS="$save_CFLAGS" | |
11669 | ||
11670 | fi | |
11671 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
11672 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
11673 | ||
11674 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
11675 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | |
11676 | else | |
11677 | : | |
11678 | fi | |
11679 | ||
11680 | fi | |
11681 | ||
11682 | lt_prog_compiler_wl_GCJ= | |
11683 | lt_prog_compiler_pic_GCJ= | |
11684 | lt_prog_compiler_static_GCJ= | |
11685 | ||
11686 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
11687 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
11688 | ||
11689 | if test "$GCC" = yes; then | |
11690 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11691 | lt_prog_compiler_static_GCJ='-static' | |
11692 | ||
11693 | case $host_os in | |
11694 | aix*) | |
11695 | # All AIX code is PIC. | |
11696 | if test "$host_cpu" = ia64; then | |
11697 | # AIX 5 now supports IA64 processor | |
11698 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11699 | fi | |
11700 | ;; | |
11701 | ||
11702 | amigaos*) | |
11703 | # FIXME: we need at least 68020 code to build shared libraries, but | |
11704 | # adding the `-m68020' flag to GCC prevents building anything better, | |
11705 | # like `-m68040'. | |
11706 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | |
11707 | ;; | |
11708 | ||
11709 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
11710 | # PIC is the default for these OSes. | |
11711 | ;; | |
11712 | ||
11713 | mingw* | pw32* | os2*) | |
11714 | # This hack is so that the source file can tell whether it is being | |
11715 | # built for inclusion in a dll (and should export symbols for example). | |
11716 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
11717 | ;; | |
11718 | ||
11719 | darwin* | rhapsody*) | |
11720 | # PIC is the default on this platform | |
11721 | # Common symbols not allowed in MH_DYLIB files | |
11722 | lt_prog_compiler_pic_GCJ='-fno-common' | |
11723 | ;; | |
11724 | ||
11725 | msdosdjgpp*) | |
11726 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
11727 | # on systems that don't support them. | |
11728 | lt_prog_compiler_can_build_shared_GCJ=no | |
11729 | enable_shared=no | |
11730 | ;; | |
11731 | ||
11732 | sysv4*MP*) | |
11733 | if test -d /usr/nec; then | |
11734 | lt_prog_compiler_pic_GCJ=-Kconform_pic | |
11735 | fi | |
11736 | ;; | |
11737 | ||
11738 | hpux*) | |
11739 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. | |
11740 | if test "$host_cpu" != ia64; then | |
11741 | lt_prog_compiler_pic_GCJ='-fPIC' | |
11742 | fi | |
11743 | ;; | |
11744 | ||
11745 | *) | |
11746 | lt_prog_compiler_pic_GCJ='-fPIC' | |
11747 | ;; | |
11748 | esac | |
11749 | else | |
11750 | # PORTME Check for flag to pass linker flags through the system compiler. | |
11751 | case $host_os in | |
11752 | aix*) | |
11753 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11754 | if test "$host_cpu" = ia64; then | |
11755 | # AIX 5 now supports IA64 processor | |
11756 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11757 | else | |
11758 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | |
11759 | fi | |
11760 | ;; | |
11761 | ||
11762 | mingw* | pw32* | os2*) | |
11763 | # This hack is so that the source file can tell whether it is being | |
11764 | # built for inclusion in a dll (and should export symbols for example). | |
11765 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
11766 | ;; | |
11767 | ||
11768 | hpux9* | hpux10* | hpux11*) | |
11769 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11770 | if test "$host_cpu" != ia64; then | |
11771 | lt_prog_compiler_pic_GCJ='+Z' | |
11772 | fi | |
11773 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
11774 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | |
11775 | ;; | |
11776 | ||
11777 | irix5* | irix6* | nonstopux*) | |
11778 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11779 | # PIC (with -KPIC) is the default. | |
11780 | lt_prog_compiler_static_GCJ='-non_shared' | |
11781 | ;; | |
11782 | ||
11783 | newsos6) | |
11784 | lt_prog_compiler_pic_GCJ='-KPIC' | |
11785 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11786 | ;; | |
11787 | ||
11788 | osf3* | osf4* | osf5*) | |
11789 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11790 | # All OSF/1 code is PIC. | |
11791 | lt_prog_compiler_static_GCJ='-non_shared' | |
11792 | ;; | |
11793 | ||
11794 | sco3.2v5*) | |
11795 | lt_prog_compiler_pic_GCJ='-Kpic' | |
11796 | lt_prog_compiler_static_GCJ='-dn' | |
11797 | ;; | |
11798 | ||
11799 | solaris*) | |
11800 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11801 | lt_prog_compiler_pic_GCJ='-KPIC' | |
11802 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11803 | ;; | |
11804 | ||
11805 | sunos4*) | |
11806 | lt_prog_compiler_wl_GCJ='-Qoption ld ' | |
11807 | lt_prog_compiler_pic_GCJ='-PIC' | |
11808 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11809 | ;; | |
11810 | ||
11811 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11812 | if test "x$host_vendor" = xsni; then | |
11813 | lt_prog_compiler_wl_GCJ='-LD' | |
11814 | else | |
11815 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11816 | fi | |
11817 | lt_prog_compiler_pic_GCJ='-KPIC' | |
11818 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11819 | ;; | |
11820 | ||
11821 | sysv4*MP*) | |
11822 | if test -d /usr/nec ;then | |
11823 | lt_prog_compiler_pic_GCJ='-Kconform_pic' | |
11824 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11825 | fi | |
11826 | ;; | |
11827 | ||
11828 | uts4*) | |
11829 | lt_prog_compiler_pic_GCJ='-pic' | |
11830 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11831 | ;; | |
11832 | ||
11833 | *) | |
11834 | lt_prog_compiler_can_build_shared_GCJ=no | |
11835 | ;; | |
11836 | esac | |
11837 | fi | |
11838 | ||
11839 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | |
11840 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 | |
11841 | ||
11842 | # | |
11843 | # Check to make sure the PIC flag actually works. | |
11844 | # | |
11845 | if test -n "$lt_prog_compiler_pic_GCJ"; then | |
11846 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | |
11847 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 | |
11848 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | |
11849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11850 | else | |
11851 | lt_prog_compiler_pic_works_GCJ=no | |
11852 | ac_outfile=conftest.$ac_objext | |
11853 | save_CFLAGS="$CFLAGS" | |
11854 | CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ" | |
11855 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11856 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
11857 | # The compiler can only warn and ignore the option if not recognized | |
11858 | # So say no if there are warnings | |
11859 | if test -s conftest.err; then | |
11860 | # Append any errors to the config.log. | |
11861 | cat conftest.err 1>&5 | |
11862 | else | |
11863 | lt_prog_compiler_pic_works_GCJ=yes | |
11864 | fi | |
11865 | fi | |
11866 | $rm conftest* | |
11867 | CFLAGS="$save_CFLAGS" | |
11868 | ||
11869 | fi | |
11870 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | |
11871 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 | |
11872 | ||
11873 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | |
11874 | case $lt_prog_compiler_pic_GCJ in | |
11875 | "" | " "*) ;; | |
11876 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | |
11877 | esac | |
11878 | else | |
11879 | lt_prog_compiler_pic_GCJ= | |
11880 | lt_prog_compiler_can_build_shared_GCJ=no | |
11881 | fi | |
11882 | ||
11883 | fi | |
11884 | case "$host_os" in | |
11885 | # For platforms which do not support PIC, -DPIC is meaningless: | |
11886 | *djgpp*) | |
11887 | lt_prog_compiler_pic_GCJ= | |
11888 | ;; | |
11889 | *) | |
11890 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | |
11891 | ;; | |
11892 | esac | |
11893 | ||
11894 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
11895 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
11896 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | |
11897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11898 | else | |
11899 | lt_cv_prog_compiler_c_o_GCJ=no | |
11900 | $rm -r conftest 2>/dev/null | |
11901 | mkdir conftest | |
11902 | cd conftest | |
11903 | mkdir out | |
11904 | save_GCJFLAGS="$CFLAGS" | |
11905 | CFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext" | |
11906 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11907 | ||
11908 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | |
11909 | # that will create temporary files in the current directory regardless of | |
11910 | # the output directory. Thus, making CWD read-only will cause this test | |
11911 | # to fail, enabling locking or at least warning the user not to do parallel | |
11912 | # builds. | |
11913 | chmod -w . | |
11914 | ||
11915 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext | |
11916 | then | |
11917 | # The compiler can only warn and ignore the option if not recognized | |
11918 | # So say no if there are warnings | |
11919 | if test -s out/conftest.err; then | |
11920 | # Append any errors to the config.log. | |
11921 | cat out/conftest.err 1>&5 | |
11922 | else | |
11923 | lt_cv_prog_compiler_c_o_GCJ=yes | |
11924 | fi | |
11925 | fi | |
11926 | CFLAGS="$save_CFLAGS" | |
11927 | chmod u+w . | |
11928 | $rm conftest* out/* | |
11929 | rmdir out | |
11930 | cd .. | |
11931 | rmdir conftest | |
11932 | $rm conftest* | |
11933 | ||
11934 | fi | |
11935 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | |
11936 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 | |
11937 | ||
11938 | ||
11939 | hard_links="nottested" | |
11940 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | |
11941 | # do not overwrite the value of need_locks provided by the user | |
11942 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
11943 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
11944 | hard_links=yes | |
11945 | $rm conftest* | |
11946 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
11947 | touch conftest.a | |
11948 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
11949 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
11950 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
11951 | echo "${ECHO_T}$hard_links" >&6 | |
11952 | if test "$hard_links" = no; then | |
11953 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
11954 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
11955 | need_locks=warn | |
11956 | fi | |
11957 | else | |
11958 | need_locks=no | |
11959 | fi | |
11960 | ||
11961 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
11962 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
11963 | ||
11964 | runpath_var= | |
11965 | allow_undefined_flag_GCJ= | |
11966 | ||
11967 | archive_cmds_GCJ= | |
11968 | archive_cmds_need_lc_GCJ= | |
11969 | archive_expsym_cmds_GCJ= | |
11970 | old_archive_From_new_cmds_GCJ= | |
11971 | old_archive_from_expsyms_cmds_GCJ= | |
11972 | export_dynamic_flag_spec_GCJ= | |
11973 | whole_archive_flag_spec_GCJ= | |
11974 | thread_safe_flag_spec_GCJ= | |
11975 | hardcode_libdir_flag_spec_GCJ= | |
11976 | hardcode_libdir_separator_GCJ= | |
11977 | hardcode_direct_GCJ=no | |
11978 | hardcode_minus_L_GCJ=no | |
11979 | hardcode_shlibpath_var_GCJ=unsupported | |
11980 | link_all_deplibs_GCJ=unknown | |
11981 | always_export_symbols_GCJ=no | |
11982 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
11983 | # include_expsyms should be a list of space-separated symbols to be *always* | |
11984 | # included in the symbol list | |
11985 | include_expsyms_GCJ= | |
11986 | # exclude_expsyms can be an egrep regular expression of symbols to exclude | |
11987 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
11988 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
11989 | # as well as any symbol that contains `d'. | |
11990 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | |
11991 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
11992 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
11993 | # the symbol is explicitly referenced. Since portable code cannot | |
11994 | # rely on this symbol name, it's probably fine to never include it in | |
11995 | # preloaded symbol tables. | |
11996 | extract_expsyms_cmds= | |
11997 | ||
11998 | case $host_os in | |
11999 | cygwin* | mingw* | pw32*) | |
12000 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
12001 | # When not using gcc, we currently assume that we are using | |
12002 | # Microsoft Visual C++. | |
12003 | if test "$GCC" != yes; then | |
12004 | with_gnu_ld=no | |
12005 | fi | |
12006 | ;; | |
12007 | openbsd*) | |
12008 | with_gnu_ld=no | |
12009 | ;; | |
12010 | esac | |
12011 | ||
12012 | ld_shlibs_GCJ=yes | |
12013 | if test "$with_gnu_ld" = yes; then | |
12014 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
12015 | wlarc='${wl}' | |
12016 | ||
12017 | # See if GNU ld supports shared libraries. | |
12018 | case $host_os in | |
12019 | aix3* | aix4* | aix5*) | |
12020 | # On AIX/PPC, the GNU linker is very broken | |
12021 | if test "$host_cpu" != ia64; then | |
12022 | ld_shlibs_GCJ=no | |
12023 | cat <<EOF 1>&2 | |
12024 | ||
12025 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
12026 | *** to be unable to reliably create shared libraries on AIX. | |
12027 | *** Therefore, libtool is disabling shared libraries support. If you | |
12028 | *** really care for shared libraries, you may want to modify your PATH | |
12029 | *** so that a non-GNU linker is found, and then restart. | |
12030 | ||
12031 | EOF | |
12032 | fi | |
12033 | ;; | |
12034 | ||
12035 | amigaos*) | |
12036 | 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)' | |
12037 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12038 | hardcode_minus_L_GCJ=yes | |
12039 | ||
12040 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
12041 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
12042 | # to version 4, is to share data among multiple programs linked | |
12043 | # with the same dynamic library. Since this doesn't match the | |
12044 | # behavior of shared libraries on other platforms, we can't use | |
12045 | # them. | |
12046 | ld_shlibs_GCJ=no | |
12047 | ;; | |
12048 | ||
12049 | beos*) | |
12050 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
12051 | allow_undefined_flag_GCJ=unsupported | |
12052 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
12053 | # support --undefined. This deserves some investigation. FIXME | |
12054 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12055 | else | |
12056 | ld_shlibs_GCJ=no | |
12057 | fi | |
12058 | ;; | |
12059 | ||
12060 | cygwin*) | |
12061 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | |
12062 | # as there is no search path for DLLs. | |
12063 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12064 | allow_undefined_flag_GCJ= | |
12065 | always_export_symbols_GCJ=yes | |
12066 | ||
12067 | if $LD --help 2>&1 | egrep 'auto-import' > /dev/null; then | |
12068 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
12069 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-retain-symbols-file $wl$export_symbols ${wl}--out-implib,$lib' | |
12070 | else | |
12071 | ld_shlibs=no | |
12072 | fi | |
12073 | ;; | |
12074 | ||
12075 | mingw* | pw32*) | |
12076 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is | |
12077 | # no search path for DLLs. | |
12078 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12079 | allow_undefined_flag_GCJ=unsupported | |
12080 | always_export_symbols_GCJ=yes | |
12081 | ||
12082 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ | |
12083 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ | |
12084 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ | |
12085 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ | |
12086 | else $CC -o impgen impgen.c ; fi)~ | |
12087 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' | |
12088 | ||
12089 | old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' | |
12090 | ||
12091 | # FIXME: what about values for MSVC? | |
12092 | dll_entry=__cygwin_dll_entry@12 | |
12093 | case $host_os in | |
12094 | mingw*) | |
12095 | # mingw values | |
12096 | dll_entry=_DllMainCRTStartup@12 | |
12097 | ;; | |
12098 | esac | |
12099 | ||
12100 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 | |
12101 | ||
12102 | # recent cygwin and mingw systems supply a stub DllMain which the user | |
12103 | # can override, but on older systems we have to supply one (in ltdll.c) | |
12104 | if test "x$lt_cv_need_dllmain" = "xyes"; then | |
12105 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " | |
12106 | ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ | |
12107 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' | |
12108 | else | |
12109 | ltdll_obj= | |
12110 | ltdll_cmds= | |
12111 | fi | |
12112 | ||
12113 | # Extract the symbol export list from an `--export-all' def file, | |
12114 | # then regenerate the def file from the symbol export list, so that | |
12115 | # the compiled dll only exports the symbol export list. | |
12116 | # Be careful not to strip the DATA tag left by newer dlltools. | |
12117 | export_symbols_cmds_GCJ="$ltdll_cmds"' | |
12118 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ | |
12119 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' | |
12120 | ||
12121 | # If the export-symbols file already is a .def file (1st line | |
12122 | # is EXPORTS), use it as is. | |
12123 | # If DATA tags from a recent dlltool are present, honour them! | |
12124 | archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then | |
12125 | cp $export_symbols $output_objdir/$soname-def; | |
12126 | else | |
12127 | echo EXPORTS > $output_objdir/$soname-def; | |
12128 | _lt_hint=1; | |
12129 | cat $export_symbols | while read symbol; do | |
12130 | set dummy \$symbol; | |
12131 | case \$# in | |
12132 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; | |
12133 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; | |
12134 | esac; | |
12135 | _lt_hint=`expr 1 + \$_lt_hint`; | |
12136 | done; | |
12137 | fi~ | |
12138 | '"$ltdll_cmds"' | |
12139 | $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ | |
12140 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ | |
12141 | $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ | |
12142 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ | |
12143 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' | |
12144 | ;; | |
12145 | ||
12146 | netbsd*) | |
12147 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
12148 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
12149 | wlarc= | |
12150 | else | |
12151 | archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12152 | archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12153 | fi | |
12154 | ;; | |
12155 | ||
12156 | solaris* | sysv5*) | |
12157 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then | |
12158 | ld_shlibs_GCJ=no | |
12159 | cat <<EOF 1>&2 | |
12160 | ||
12161 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
12162 | *** create shared libraries on Solaris systems. Therefore, libtool | |
12163 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
12164 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
12165 | *** your PATH or compiler configuration so that the native linker is | |
12166 | *** used, and then restart. | |
12167 | ||
12168 | EOF | |
12169 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
12170 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12171 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12172 | else | |
12173 | ld_shlibs_GCJ=no | |
12174 | fi | |
12175 | ;; | |
12176 | ||
12177 | sunos4*) | |
12178 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
12179 | wlarc= | |
12180 | hardcode_direct_GCJ=yes | |
12181 | hardcode_shlibpath_var_GCJ=no | |
12182 | ;; | |
12183 | ||
12184 | *) | |
12185 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
12186 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12187 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12188 | else | |
12189 | ld_shlibs_GCJ=no | |
12190 | fi | |
12191 | ;; | |
12192 | esac | |
12193 | ||
12194 | if test "$ld_shlibs_GCJ" = yes; then | |
12195 | runpath_var=LD_RUN_PATH | |
12196 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | |
12197 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | |
12198 | case $host_os in | |
12199 | cygwin* | mingw* | pw32*) | |
12200 | # dlltool doesn't understand --whole-archive et. al. | |
12201 | whole_archive_flag_spec_GCJ= | |
12202 | ;; | |
12203 | *) | |
12204 | # ancient GNU ld didn't support --whole-archive et. al. | |
12205 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then | |
12206 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12207 | else | |
12208 | whole_archive_flag_spec_GCJ= | |
12209 | fi | |
12210 | ;; | |
12211 | esac | |
12212 | fi | |
12213 | else | |
12214 | # PORTME fill in a description of your system's linker (not GNU ld) | |
12215 | case $host_os in | |
12216 | aix3*) | |
12217 | allow_undefined_flag_GCJ=unsupported | |
12218 | always_export_symbols_GCJ=yes | |
12219 | 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' | |
12220 | # Note: this linker hardcodes the directories in LIBPATH if there | |
12221 | # are no directories specified by -L. | |
12222 | hardcode_minus_L_GCJ=yes | |
12223 | if test "$GCC" = yes && test -z "$link_static_flag"; then | |
12224 | # Neither direct hardcoding nor static linking is supported with a | |
12225 | # broken collect2. | |
12226 | hardcode_direct_GCJ=unsupported | |
12227 | fi | |
12228 | ;; | |
12229 | ||
12230 | aix4* | aix5*) | |
12231 | if test "$host_cpu" = ia64; then | |
12232 | # On IA64, the linker does run time linking by default, so we don't | |
12233 | # have to do anything special. | |
12234 | aix_use_runtimelinking=no | |
12235 | exp_sym_flag='-Bexport' | |
12236 | no_entry_flag="" | |
12237 | else | |
12238 | # If we're using GNU nm, then we don't want the "-C" option. | |
12239 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
12240 | if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then | |
12241 | 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' | |
12242 | else | |
12243 | 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' | |
12244 | fi | |
12245 | aix_use_runtimelinking=no | |
12246 | ||
12247 | # Test if we are trying to use run time linking or normal | |
12248 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
12249 | # need to do runtime linking. | |
12250 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
12251 | for ld_flag in $LDFLAGS; do | |
12252 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
12253 | aix_use_runtimelinking=yes | |
12254 | break | |
12255 | fi | |
12256 | done | |
12257 | esac | |
12258 | ||
12259 | exp_sym_flag='-bexport' | |
12260 | no_entry_flag='-bnoentry' | |
12261 | fi | |
12262 | ||
12263 | # When large executables or shared objects are built, AIX ld can | |
12264 | # have problems creating the table of contents. If linking a library | |
12265 | # or program results in "error TOC overflow" add -mminimal-toc to | |
12266 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
12267 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
12268 | ||
12269 | archive_cmds_GCJ='' | |
12270 | hardcode_direct_GCJ=yes | |
12271 | hardcode_libdir_separator_GCJ=':' | |
12272 | link_all_deplibs_GCJ=yes | |
12273 | ||
12274 | if test "$GCC" = yes; then | |
12275 | case $host_os in aix4.012|aix4.012.*) | |
12276 | # We only want to do this on AIX 4.2 and lower, the check | |
12277 | # below for broken collect2 doesn't work under 4.3+ | |
12278 | collect2name=`${CC} -print-prog-name=collect2` | |
12279 | if test -f "$collect2name" && \ | |
12280 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
12281 | then | |
12282 | # We have reworked collect2 | |
12283 | hardcode_direct_GCJ=yes | |
12284 | else | |
12285 | # We have old collect2 | |
12286 | hardcode_direct_GCJ=unsupported | |
12287 | # It fails to find uninstalled libraries when the uninstalled | |
12288 | # path is not listed in the libpath. Setting hardcode_minus_L | |
12289 | # to unsupported forces relinking | |
12290 | hardcode_minus_L_GCJ=yes | |
12291 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12292 | hardcode_libdir_separator_GCJ= | |
12293 | fi | |
12294 | esac | |
12295 | shared_flag='-shared' | |
12296 | else | |
12297 | # not using gcc | |
12298 | if test "$host_cpu" = ia64; then | |
12299 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
12300 | # chokes on -Wl,-G. The following line is correct: | |
12301 | shared_flag='-G' | |
12302 | else | |
12303 | if test "$aix_use_runtimelinking" = yes; then | |
12304 | shared_flag='${wl}-G' | |
12305 | else | |
12306 | shared_flag='${wl}-bM:SRE' | |
12307 | fi | |
12308 | fi | |
12309 | fi | |
12310 | ||
12311 | # It seems that -bexpall does not export symbols beginning with | |
12312 | # underscore (_), so it is better to generate a list of symbols to export. | |
12313 | always_export_symbols_GCJ=yes | |
12314 | if test "$aix_use_runtimelinking" = yes; then | |
12315 | # Warning - without using the other runtime loading flags (-brtl), | |
12316 | # -berok will link without error, but may produce a broken library. | |
12317 | allow_undefined_flag_GCJ='-berok' | |
12318 | # Determine the default libpath from the value encoded in an empty executable. | |
12319 | cat >conftest.$ac_ext <<_ACEOF | |
12320 | #line $LINENO "configure" | |
12321 | #include "confdefs.h" | |
12322 | ||
12323 | #ifdef F77_DUMMY_MAIN | |
12324 | # ifdef __cplusplus | |
12325 | extern "C" | |
12326 | # endif | |
12327 | int F77_DUMMY_MAIN() { return 1; } | |
12328 | #endif | |
12329 | int | |
12330 | main () | |
12331 | { | |
12332 | ||
12333 | ; | |
12334 | return 0; | |
12335 | } | |
12336 | _ACEOF | |
12337 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12338 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12339 | (eval $ac_link) 2>&5 | |
12340 | ac_status=$? | |
12341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12342 | (exit $ac_status); } && | |
12343 | { ac_try='test -s conftest$ac_exeext' | |
12344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12345 | (eval $ac_try) 2>&5 | |
12346 | ac_status=$? | |
12347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12348 | (exit $ac_status); }; }; then | |
12349 | ||
12350 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
12351 | }'` | |
12352 | # Check for a 64-bit object if we didn't find anything. | |
12353 | 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; } | |
12354 | }'`; fi | |
12355 | else | |
12356 | echo "$as_me: failed program was:" >&5 | |
12357 | cat conftest.$ac_ext >&5 | |
12358 | fi | |
12359 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12360 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12361 | ||
12362 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12363 | 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" | |
12364 | else | |
12365 | if test "$host_cpu" = ia64; then | |
12366 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | |
12367 | allow_undefined_flag_GCJ="-z nodefs" | |
12368 | 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" | |
12369 | else | |
12370 | # Determine the default libpath from the value encoded in an empty executable. | |
12371 | cat >conftest.$ac_ext <<_ACEOF | |
12372 | #line $LINENO "configure" | |
12373 | #include "confdefs.h" | |
12374 | ||
12375 | #ifdef F77_DUMMY_MAIN | |
12376 | # ifdef __cplusplus | |
12377 | extern "C" | |
12378 | # endif | |
12379 | int F77_DUMMY_MAIN() { return 1; } | |
12380 | #endif | |
12381 | int | |
12382 | main () | |
12383 | { | |
12384 | ||
12385 | ; | |
12386 | return 0; | |
12387 | } | |
12388 | _ACEOF | |
12389 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12391 | (eval $ac_link) 2>&5 | |
12392 | ac_status=$? | |
12393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12394 | (exit $ac_status); } && | |
12395 | { ac_try='test -s conftest$ac_exeext' | |
12396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12397 | (eval $ac_try) 2>&5 | |
12398 | ac_status=$? | |
12399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12400 | (exit $ac_status); }; }; then | |
12401 | ||
12402 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
12403 | }'` | |
12404 | # Check for a 64-bit object if we didn't find anything. | |
12405 | 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; } | |
12406 | }'`; fi | |
12407 | else | |
12408 | echo "$as_me: failed program was:" >&5 | |
12409 | cat conftest.$ac_ext >&5 | |
12410 | fi | |
12411 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12412 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12413 | ||
12414 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12415 | # Warning - without using the other run time loading flags, | |
12416 | # -berok will link without error, but may produce a broken library. | |
12417 | no_undefined_flag_GCJ=' ${wl}-bernotok' | |
12418 | allow_undefined_flag_GCJ=' ${wl}-berok' | |
12419 | # -bexpall does not export symbols beginning with underscore (_) | |
12420 | always_export_symbols_GCJ=yes | |
12421 | # Exported symbols can be pulled into shared objects from archives | |
12422 | whole_archive_flag_spec_GCJ=' ' | |
12423 | archive_cmds_need_lc_GCJ=yes | |
12424 | # This is similar to how AIX traditionally builds it's shared libraries. | |
12425 | 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' | |
12426 | fi | |
12427 | fi | |
12428 | ;; | |
12429 | ||
12430 | amigaos*) | |
12431 | 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)' | |
12432 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12433 | hardcode_minus_L_GCJ=yes | |
12434 | # see comment about different semantics on the GNU ld section | |
12435 | ld_shlibs_GCJ=no | |
12436 | ;; | |
12437 | ||
12438 | bsdi4*) | |
12439 | export_dynamic_flag_spec_GCJ=-rdynamic | |
12440 | ;; | |
12441 | ||
12442 | cygwin* | mingw* | pw32*) | |
12443 | # When not using gcc, we currently assume that we are using | |
12444 | # Microsoft Visual C++. | |
12445 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
12446 | # no search path for DLLs. | |
12447 | hardcode_libdir_flag_spec_GCJ=' ' | |
12448 | allow_undefined_flag_GCJ=unsupported | |
12449 | # Tell ltmain to make .lib files, not .a files. | |
12450 | libext=lib | |
12451 | # FIXME: Setting linknames here is a bad hack. | |
12452 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
12453 | # The linker will automatically build a .lib file if we build a DLL. | |
12454 | old_archive_From_new_cmds_GCJ='true' | |
12455 | # FIXME: Should let the user specify the lib program. | |
12456 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
12457 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
12458 | ;; | |
12459 | ||
12460 | darwin* | rhapsody*) | |
12461 | case "$host_os" in | |
12462 | rhapsody* | darwin1.[012]) | |
12463 | allow_undefined_flag_GCJ='-undefined suppress' | |
12464 | ;; | |
12465 | *) # Darwin 1.3 on | |
12466 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' | |
12467 | ;; | |
12468 | esac | |
12469 | ||
12470 | # FIXME: Relying on posixy $() will cause problems for | |
12471 | # cross-compilation, but unfortunately the echo tests do not | |
12472 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles | |
12473 | # `"' quotes if we put them in here... so don't! | |
12474 | archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' | |
12475 | # We need to add '_' to the symbols in $export_symbols first | |
12476 | #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols' | |
12477 | hardcode_direct_GCJ=yes | |
12478 | hardcode_shlibpath_var_GCJ=no | |
12479 | whole_archive_flag_spec_GCJ='-all_load $convenience' | |
12480 | ;; | |
12481 | ||
12482 | dgux*) | |
12483 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12484 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12485 | hardcode_shlibpath_var_GCJ=no | |
12486 | ;; | |
12487 | ||
12488 | freebsd1*) | |
12489 | ld_shlibs_GCJ=no | |
12490 | ;; | |
12491 | ||
12492 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
12493 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
12494 | # does not break anything, and helps significantly (at the cost of a little | |
12495 | # extra space). | |
12496 | freebsd2.2*) | |
12497 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
12498 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
12499 | hardcode_direct_GCJ=yes | |
12500 | hardcode_shlibpath_var_GCJ=no | |
12501 | ;; | |
12502 | ||
12503 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
12504 | freebsd2*) | |
12505 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
12506 | hardcode_direct_GCJ=yes | |
12507 | hardcode_minus_L_GCJ=yes | |
12508 | hardcode_shlibpath_var_GCJ=no | |
12509 | ;; | |
12510 | ||
12511 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
12512 | freebsd*) | |
12513 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
12514 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
12515 | hardcode_direct_GCJ=yes | |
12516 | hardcode_shlibpath_var_GCJ=no | |
12517 | ;; | |
12518 | ||
12519 | hpux9* | hpux10* | hpux11*) | |
12520 | if test "$GCC" = yes; then | |
12521 | case $host_os in | |
12522 | hpux9*) | |
12523 | 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' | |
12524 | ;; | |
12525 | *) | |
12526 | if test "$host_cpu" = ia64; then | |
12527 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12528 | else | |
12529 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
12530 | fi | |
12531 | ;; | |
12532 | esac | |
12533 | else | |
12534 | case $host_os in | |
12535 | hpux9*) | |
12536 | 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' | |
12537 | ;; | |
12538 | *) | |
12539 | if test "$host_cpu" = ia64; then | |
12540 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12541 | else | |
12542 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
12543 | fi | |
12544 | ;; | |
12545 | esac | |
12546 | fi | |
12547 | if test "$host_cpu" = ia64; then | |
12548 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12549 | hardcode_direct_GCJ=no | |
12550 | hardcode_shlibpath_var_GCJ=no | |
12551 | else | |
12552 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
12553 | hardcode_libdir_separator_GCJ=: | |
12554 | hardcode_direct_GCJ=yes | |
12555 | fi | |
12556 | # hardcode_minus_L: Not really in the search PATH, | |
12557 | # but as the default location of the library. | |
12558 | hardcode_minus_L_GCJ=yes | |
12559 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
12560 | ;; | |
12561 | ||
12562 | irix5* | irix6* | nonstopux*) | |
12563 | if test "$GCC" = yes; then | |
12564 | 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' | |
12565 | else | |
12566 | 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' | |
12567 | fi | |
12568 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
12569 | hardcode_libdir_separator_GCJ=: | |
12570 | link_all_deplibs_GCJ=yes | |
12571 | ;; | |
12572 | ||
12573 | netbsd*) | |
12574 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
12575 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
12576 | else | |
12577 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
12578 | fi | |
12579 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
12580 | hardcode_direct_GCJ=yes | |
12581 | hardcode_shlibpath_var_GCJ=no | |
12582 | ;; | |
12583 | ||
12584 | newsos6) | |
12585 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12586 | hardcode_direct_GCJ=yes | |
12587 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
12588 | hardcode_libdir_separator_GCJ=: | |
12589 | hardcode_shlibpath_var_GCJ=no | |
12590 | ;; | |
12591 | ||
12592 | openbsd*) | |
12593 | hardcode_direct_GCJ=yes | |
12594 | hardcode_shlibpath_var_GCJ=no | |
12595 | ||
12596 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12597 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
12598 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
12599 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
12600 | else | |
12601 | case $host_os in | |
12602 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
12603 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
12604 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
12605 | ;; | |
12606 | *) | |
12607 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
12608 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
12609 | ;; | |
12610 | esac | |
12611 | fi | |
12612 | ;; | |
12613 | ||
12614 | os2*) | |
12615 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12616 | hardcode_minus_L_GCJ=yes | |
12617 | allow_undefined_flag_GCJ=unsupported | |
12618 | 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' | |
12619 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
12620 | ;; | |
12621 | ||
12622 | osf3*) | |
12623 | if test "$GCC" = yes; then | |
12624 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
12625 | 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' | |
12626 | else | |
12627 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
12628 | 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' | |
12629 | fi | |
12630 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
12631 | hardcode_libdir_separator_GCJ=: | |
12632 | ;; | |
12633 | ||
12634 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
12635 | if test "$GCC" = yes; then | |
12636 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
12637 | 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' | |
12638 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
12639 | else | |
12640 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
12641 | 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' | |
12642 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
12643 | $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' | |
12644 | ||
12645 | # Both c and cxx compiler support -rpath directly | |
12646 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | |
12647 | fi | |
12648 | hardcode_libdir_separator_GCJ=: | |
12649 | ;; | |
12650 | ||
12651 | sco3.2v5*) | |
12652 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12653 | hardcode_shlibpath_var_GCJ=no | |
12654 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' | |
12655 | runpath_var=LD_RUN_PATH | |
12656 | hardcode_runpath_var=yes | |
12657 | ;; | |
12658 | ||
12659 | solaris*) | |
12660 | no_undefined_flag_GCJ=' -z text' | |
12661 | if test "$GCC" = yes; then | |
12662 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12663 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
12664 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
12665 | else | |
12666 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12667 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
12668 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
12669 | fi | |
12670 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
12671 | hardcode_shlibpath_var_GCJ=no | |
12672 | case $host_os in | |
12673 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
12674 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | |
12675 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | |
12676 | esac | |
12677 | link_all_deplibs_GCJ=yes | |
12678 | ;; | |
12679 | ||
12680 | sunos4*) | |
12681 | if test "x$host_vendor" = xsequent; then | |
12682 | # Use $CC to link under sequent, because it throws in some extra .o | |
12683 | # files that make .init and .fini sections work. | |
12684 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
12685 | else | |
12686 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
12687 | fi | |
12688 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12689 | hardcode_direct_GCJ=yes | |
12690 | hardcode_minus_L_GCJ=yes | |
12691 | hardcode_shlibpath_var_GCJ=no | |
12692 | ;; | |
12693 | ||
12694 | sysv4) | |
12695 | if test "x$host_vendor" = xsni; then | |
12696 | archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12697 | hardcode_direct_GCJ=yes # is this really true??? | |
12698 | else | |
12699 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12700 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | |
12701 | fi | |
12702 | runpath_var='LD_RUN_PATH' | |
12703 | hardcode_shlibpath_var_GCJ=no | |
12704 | ;; | |
12705 | ||
12706 | sysv4.3*) | |
12707 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12708 | hardcode_shlibpath_var_GCJ=no | |
12709 | export_dynamic_flag_spec_GCJ='-Bexport' | |
12710 | ;; | |
12711 | ||
12712 | sysv4*MP*) | |
12713 | if test -d /usr/nec; then | |
12714 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12715 | hardcode_shlibpath_var_GCJ=no | |
12716 | runpath_var=LD_RUN_PATH | |
12717 | hardcode_runpath_var=yes | |
12718 | ld_shlibs_GCJ=yes | |
12719 | fi | |
12720 | ;; | |
12721 | ||
12722 | sysv4.2uw2*) | |
12723 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
12724 | hardcode_direct_GCJ=yes | |
12725 | hardcode_minus_L_GCJ=no | |
12726 | hardcode_shlibpath_var_GCJ=no | |
12727 | hardcode_runpath_var=yes | |
12728 | runpath_var=LD_RUN_PATH | |
12729 | ;; | |
12730 | ||
12731 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
12732 | no_undefined_flag_GCJ='${wl}-z ${wl}text' | |
12733 | if test "$GCC" = yes; then | |
12734 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12735 | else | |
12736 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12737 | fi | |
12738 | runpath_var='LD_RUN_PATH' | |
12739 | hardcode_shlibpath_var_GCJ=no | |
12740 | ;; | |
12741 | ||
12742 | sysv5*) | |
12743 | no_undefined_flag_GCJ=' -z text' | |
12744 | # $CC -shared without GNU ld will not create a library from C++ | |
12745 | # object files and a static libstdc++, better avoid it by now | |
12746 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12747 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
12748 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
12749 | hardcode_libdir_flag_spec_GCJ= | |
12750 | hardcode_shlibpath_var_GCJ=no | |
12751 | runpath_var='LD_RUN_PATH' | |
12752 | ;; | |
12753 | ||
12754 | uts4*) | |
12755 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12756 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12757 | hardcode_shlibpath_var_GCJ=no | |
12758 | ;; | |
12759 | ||
12760 | *) | |
12761 | ld_shlibs_GCJ=no | |
12762 | ;; | |
12763 | esac | |
12764 | fi | |
12765 | ||
12766 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | |
12767 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | |
12768 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | |
12769 | ||
12770 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12771 | if test "$GCC" = yes; then | |
12772 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12773 | fi | |
12774 | ||
12775 | # | |
12776 | # Do we need to explicitly link libc? | |
12777 | # | |
12778 | archive_cmds_need_lc_GCJ=yes | |
12779 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
12780 | case $archive_cmds_GCJ in | |
12781 | *'~'*) | |
12782 | # FIXME: we may have to deal with multi-command sequences. | |
12783 | ;; | |
12784 | '$CC '*) | |
12785 | # Test whether the compiler implicitly links with -lc since on some | |
12786 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
12787 | # to ld, don't add -lc before -lgcc. | |
12788 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
12789 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
12790 | $rm conftest* | |
12791 | echo 'static int dummy;' > conftest.$ac_ext | |
12792 | ||
12793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12794 | (eval $ac_compile) 2>&5 | |
12795 | ac_status=$? | |
12796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12797 | (exit $ac_status); } 2>conftest.err; then | |
12798 | soname=conftest | |
12799 | lib=conftest | |
12800 | libobjs=conftest.$ac_objext | |
12801 | deplibs= | |
12802 | wl=$lt_prog_compiler_wl_GCJ | |
12803 | compiler_flags=-v | |
12804 | linker_flags=-v | |
12805 | verstring= | |
12806 | output_objdir=. | |
12807 | libname=conftest | |
12808 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | |
12809 | allow_undefined_flag_GCJ= | |
12810 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
12811 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
12812 | ac_status=$? | |
12813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12814 | (exit $ac_status); } | |
12815 | then | |
12816 | archive_cmds_need_lc_GCJ=no | |
12817 | else | |
12818 | archive_cmds_need_lc_GCJ=yes | |
12819 | fi | |
12820 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | |
12821 | else | |
12822 | cat conftest.err 1>&5 | |
12823 | fi | |
12824 | $rm conftest* | |
12825 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | |
12826 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 | |
12827 | ;; | |
12828 | esac | |
12829 | fi | |
12830 | ||
12831 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
12832 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
12833 | hardcode_action_GCJ= | |
12834 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | |
12835 | test -n "$runpath_var GCJ"; then | |
12836 | ||
12837 | # We can hardcode non-existant directories. | |
12838 | if test "$hardcode_direct_GCJ" != no && | |
12839 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12840 | # have to relink, otherwise we might link with an installed library | |
12841 | # when we should be linking with a yet-to-be-installed one | |
12842 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | |
12843 | test "$hardcode_minus_L_GCJ" != no; then | |
12844 | # Linking always hardcodes the temporary library directory. | |
12845 | hardcode_action_GCJ=relink | |
12846 | else | |
12847 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12848 | hardcode_action_GCJ=immediate | |
12849 | fi | |
12850 | else | |
12851 | # We cannot hardcode anything, or else we can only hardcode existing | |
12852 | # directories. | |
12853 | hardcode_action_GCJ=unsupported | |
12854 | fi | |
12855 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | |
12856 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 | |
12857 | ||
12858 | if test "$hardcode_action_GCJ" = relink; then | |
12859 | # Fast installation is not supported | |
12860 | enable_fast_install=no | |
12861 | elif test "$shlibpath_overrides_runpath" = yes || | |
12862 | test "$enable_shared" = no; then | |
12863 | # Fast installation is not necessary | |
12864 | enable_fast_install=needless | |
12865 | fi | |
12866 | ||
12867 | striplib= | |
12868 | old_striplib= | |
12869 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
12870 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
12871 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
12872 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12873 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12874 | echo "$as_me:$LINENO: result: yes" >&5 | |
12875 | echo "${ECHO_T}yes" >&6 | |
12876 | else | |
12877 | echo "$as_me:$LINENO: result: no" >&5 | |
12878 | echo "${ECHO_T}no" >&6 | |
12879 | fi | |
12880 | ||
12881 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
12882 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
12883 | library_names_spec= | |
12884 | libname_spec='lib$name' | |
12885 | soname_spec= | |
12886 | postinstall_cmds= | |
12887 | postuninstall_cmds= | |
12888 | finish_cmds= | |
12889 | finish_eval= | |
12890 | shlibpath_var= | |
12891 | shlibpath_overrides_runpath=unknown | |
12892 | version_type=none | |
12893 | dynamic_linker="$host_os ld.so" | |
12894 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
12895 | if test "$GCC" = yes; then | |
12896 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
12897 | if echo "$sys_lib_search_path_spec" | egrep ';' >/dev/null ; then | |
12898 | # if the path contains ";" then we assume it to be the separator | |
12899 | # otherwise default to the standard path separator (i.e. ":") - it is | |
12900 | # assumed that no part of a normal pathname contains ";" but that should | |
12901 | # okay in the real world where ";" in dirpaths is itself problematic. | |
12902 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
12903 | else | |
12904 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
12905 | fi | |
12906 | else | |
12907 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
12908 | fi | |
12909 | need_lib_prefix=unknown | |
12910 | hardcode_into_libs=no | |
12911 | ||
12912 | # when you set need_version to no, make sure it does not cause -set_version | |
12913 | # flags to be left without arguments | |
12914 | need_version=unknown | |
12915 | ||
12916 | case $host_os in | |
12917 | aix3*) | |
12918 | version_type=linux | |
12919 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | |
12920 | shlibpath_var=LIBPATH | |
12921 | ||
12922 | # AIX 3 has no versioning support, so we append a major version to the name. | |
12923 | soname_spec='${libname}${release}.so$major' | |
12924 | ;; | |
12925 | ||
12926 | aix4* | aix5*) | |
12927 | version_type=linux | |
12928 | if test "$host_cpu" = ia64; then | |
12929 | # AIX 5 supports IA64 | |
12930 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | |
12931 | shlibpath_var=LD_LIBRARY_PATH | |
12932 | else | |
12933 | # With GCC up to 2.95.x, collect2 would create an import file | |
12934 | # for dependence libraries. The import file would start with | |
12935 | # the line `#! .'. This would cause the generated library to | |
12936 | # depend on `.', always an invalid library. This was fixed in | |
12937 | # development snapshots of GCC prior to 3.0. | |
12938 | case $host_os in | |
12939 | aix4 | aix4.[01] | aix4.[01].*) | |
12940 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
12941 | echo ' yes ' | |
12942 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
12943 | : | |
12944 | else | |
12945 | can_build_shared=no | |
12946 | fi | |
12947 | ;; | |
12948 | esac | |
12949 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
12950 | # soname into executable. Probably we can add versioning support to | |
12951 | # collect2, so additional links can be useful in future. | |
12952 | if test "$aix_use_runtimelinking" = yes; then | |
12953 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
12954 | # instead of lib<name>.a to let people know that these are not | |
12955 | # typical AIX shared libraries. | |
12956 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
12957 | else | |
12958 | # We preserve .a as extension for shared libraries through AIX4.2 | |
12959 | # and later when we are not doing run time linking. | |
12960 | library_names_spec='${libname}${release}.a $libname.a' | |
12961 | soname_spec='${libname}${release}.so$major' | |
12962 | fi | |
12963 | shlibpath_var=LIBPATH | |
12964 | fi | |
12965 | ;; | |
12966 | ||
12967 | amigaos*) | |
12968 | library_names_spec='$libname.ixlibrary $libname.a' | |
12969 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
12970 | 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' | |
12971 | ;; | |
12972 | ||
12973 | beos*) | |
12974 | library_names_spec='${libname}.so' | |
12975 | dynamic_linker="$host_os ld.so" | |
12976 | shlibpath_var=LIBRARY_PATH | |
12977 | ;; | |
12978 | ||
12979 | bsdi4*) | |
12980 | version_type=linux | |
12981 | need_version=no | |
12982 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
12983 | soname_spec='${libname}${release}.so$major' | |
12984 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
12985 | shlibpath_var=LD_LIBRARY_PATH | |
12986 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
12987 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
12988 | # the default ld.so.conf also contains /usr/contrib/lib and | |
12989 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
12990 | # libtool to hard-code these into programs | |
12991 | ;; | |
12992 | ||
12993 | cygwin* | mingw* | pw32*) | |
12994 | version_type=windows | |
12995 | need_version=no | |
12996 | need_lib_prefix=no | |
12997 | case $GCC,$host_os in | |
12998 | yes,cygwin*) | |
12999 | library_names_spec='$libname.dll.a' | |
13000 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | |
13001 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
13002 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | |
13003 | dldir=$destdir/`dirname \$dlpath`~ | |
13004 | test -d \$dldir || mkdir -p \$dldir~ | |
13005 | $install_prog .libs/$dlname \$dldir/$dlname' | |
13006 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
13007 | dlpath=$dir/\$dldll~ | |
13008 | $rm \$dlpath' | |
13009 | shlibpath_overrides_runpath=yes | |
13010 | ;; | |
13011 | yes,mingw*) | |
13012 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
13013 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
13014 | if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then | |
13015 | # It is most probably a Windows format PATH printed by | |
13016 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
13017 | # path with ; separators, and with drive letters. We can handle the | |
13018 | # drive letters (cygwin fileutils understands them), so leave them, | |
13019 | # especially as we might pass files found there to a mingw objdump, | |
13020 | # which wouldn't understand a cygwinified path. Ahh. | |
13021 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
13022 | else | |
13023 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
13024 | fi | |
13025 | ;; | |
13026 | yes,pw32*) | |
13027 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | |
13028 | ;; | |
13029 | *) | |
13030 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | |
13031 | ;; | |
13032 | esac | |
13033 | dynamic_linker='Win32 ld.exe' | |
13034 | # FIXME: first we should search . and the directory the executable is in | |
13035 | shlibpath_var=PATH | |
13036 | ;; | |
13037 | ||
13038 | darwin* | rhapsody*) | |
13039 | dynamic_linker="$host_os dyld" | |
13040 | version_type=darwin | |
13041 | need_lib_prefix=no | |
13042 | need_version=no | |
13043 | # FIXME: Relying on posixy $() will cause problems for | |
13044 | # cross-compilation, but unfortunately the echo tests do not | |
13045 | # yet detect zsh echo's removal of \ escapes. | |
13046 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' | |
13047 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | |
13048 | shlibpath_overrides_runpath=yes | |
13049 | shlibpath_var=DYLD_LIBRARY_PATH | |
13050 | ;; | |
13051 | ||
13052 | dgux*) | |
13053 | version_type=linux | |
13054 | need_lib_prefix=no | |
13055 | need_version=no | |
13056 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13057 | soname_spec='${libname}${release}.so$major' | |
13058 | shlibpath_var=LD_LIBRARY_PATH | |
13059 | ;; | |
13060 | ||
13061 | freebsd1*) | |
13062 | dynamic_linker=no | |
13063 | ;; | |
13064 | ||
13065 | freebsd*) | |
13066 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
13067 | version_type=freebsd-$objformat | |
13068 | case $version_type in | |
13069 | freebsd-elf*) | |
13070 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
13071 | need_version=no | |
13072 | need_lib_prefix=no | |
13073 | ;; | |
13074 | freebsd-*) | |
13075 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | |
13076 | need_version=yes | |
13077 | ;; | |
13078 | esac | |
13079 | shlibpath_var=LD_LIBRARY_PATH | |
13080 | case $host_os in | |
13081 | freebsd2*) | |
13082 | shlibpath_overrides_runpath=yes | |
13083 | ;; | |
13084 | freebsd3.01* | freebsdelf3.01*) | |
13085 | shlibpath_overrides_runpath=yes | |
13086 | hardcode_into_libs=yes | |
13087 | ;; | |
13088 | *) # from 3.2 on | |
13089 | shlibpath_overrides_runpath=no | |
13090 | hardcode_into_libs=yes | |
13091 | ;; | |
13092 | esac | |
13093 | ;; | |
13094 | ||
13095 | gnu*) | |
13096 | version_type=linux | |
13097 | need_lib_prefix=no | |
13098 | need_version=no | |
13099 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | |
13100 | soname_spec='${libname}${release}.so$major' | |
13101 | shlibpath_var=LD_LIBRARY_PATH | |
13102 | hardcode_into_libs=yes | |
13103 | ;; | |
13104 | ||
13105 | hpux9* | hpux10* | hpux11*) | |
13106 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
13107 | # link against other versions. | |
13108 | version_type=sunos | |
13109 | need_lib_prefix=no | |
13110 | need_version=no | |
13111 | if test "$host_cpu" = ia64; then | |
13112 | hardcode_into_libs=yes | |
13113 | dynamic_linker="$host_os dld.so" | |
13114 | shlibpath_var=LD_LIBRARY_PATH | |
13115 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13116 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13117 | soname_spec='${libname}${release}.so$major' | |
13118 | if test "X$HPUX_IA64_MODE" = X32; then | |
13119 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
13120 | else | |
13121 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
13122 | fi | |
13123 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13124 | else | |
13125 | dynamic_linker="$host_os dld.sl" | |
13126 | shlibpath_var=SHLIB_PATH | |
13127 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
13128 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | |
13129 | soname_spec='${libname}${release}.sl$major' | |
13130 | fi | |
13131 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
13132 | postinstall_cmds='chmod 555 $lib' | |
13133 | ;; | |
13134 | ||
13135 | irix5* | irix6* | nonstopux*) | |
13136 | case $host_os in | |
13137 | nonstopux*) version_type=nonstopux ;; | |
13138 | *) version_type=irix ;; | |
13139 | esac | |
13140 | need_lib_prefix=no | |
13141 | need_version=no | |
13142 | soname_spec='${libname}${release}.so$major' | |
13143 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | |
13144 | case $host_os in | |
13145 | irix5* | nonstopux*) | |
13146 | libsuff= shlibsuff= | |
13147 | ;; | |
13148 | *) | |
13149 | case $LD in # libtool.m4 will add one of these switches to LD | |
13150 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | |
13151 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | |
13152 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
13153 | *) libsuff= shlibsuff= libmagic=never-match;; | |
13154 | esac | |
13155 | ;; | |
13156 | esac | |
13157 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
13158 | shlibpath_overrides_runpath=no | |
13159 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
13160 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
13161 | ;; | |
13162 | ||
13163 | # No shared lib support for Linux oldld, aout, or coff. | |
13164 | linux*oldld* | linux*aout* | linux*coff*) | |
13165 | dynamic_linker=no | |
13166 | ;; | |
13167 | ||
13168 | # This must be Linux ELF. | |
13169 | linux*) | |
13170 | version_type=linux | |
13171 | need_lib_prefix=no | |
13172 | need_version=no | |
13173 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13174 | soname_spec='${libname}${release}.so$major' | |
13175 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
13176 | shlibpath_var=LD_LIBRARY_PATH | |
13177 | shlibpath_overrides_runpath=no | |
13178 | # This implies no fast_install, which is unacceptable. | |
13179 | # Some rework will be needed to allow for fast_install | |
13180 | # before this can be enabled. | |
13181 | hardcode_into_libs=yes | |
13182 | ||
13183 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
13184 | # powerpc, because MkLinux only supported shared libraries with the | |
13185 | # GNU dynamic linker. Since this was broken with cross compilers, | |
13186 | # most powerpc-linux boxes support dynamic linking these days and | |
13187 | # people can always --disable-shared, the test was removed, and we | |
13188 | # assume the GNU/Linux dynamic linker is in use. | |
13189 | dynamic_linker='GNU/Linux ld.so' | |
13190 | ;; | |
13191 | ||
13192 | netbsd*) | |
13193 | version_type=sunos | |
13194 | need_lib_prefix=no | |
13195 | need_version=no | |
13196 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
13197 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
13198 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13199 | dynamic_linker='NetBSD (a.out) ld.so' | |
13200 | else | |
13201 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | |
13202 | soname_spec='${libname}${release}.so$major' | |
13203 | dynamic_linker='NetBSD ld.elf_so' | |
13204 | fi | |
13205 | shlibpath_var=LD_LIBRARY_PATH | |
13206 | shlibpath_overrides_runpath=yes | |
13207 | hardcode_into_libs=yes | |
13208 | ;; | |
13209 | ||
13210 | newsos6) | |
13211 | version_type=linux | |
13212 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13213 | shlibpath_var=LD_LIBRARY_PATH | |
13214 | shlibpath_overrides_runpath=yes | |
13215 | ;; | |
13216 | ||
13217 | nto-qnx) | |
13218 | version_type=linux | |
13219 | need_lib_prefix=no | |
13220 | need_version=no | |
13221 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13222 | soname_spec='${libname}${release}.so$major' | |
13223 | shlibpath_var=LD_LIBRARY_PATH | |
13224 | shlibpath_overrides_runpath=yes | |
13225 | ;; | |
13226 | ||
13227 | openbsd*) | |
13228 | version_type=sunos | |
13229 | need_lib_prefix=no | |
13230 | need_version=no | |
13231 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
13232 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13233 | shlibpath_var=LD_LIBRARY_PATH | |
13234 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13235 | case $host_os in | |
13236 | openbsd2.[89] | openbsd2.[89].*) | |
13237 | shlibpath_overrides_runpath=no | |
13238 | ;; | |
13239 | *) | |
13240 | shlibpath_overrides_runpath=yes | |
13241 | ;; | |
13242 | esac | |
13243 | else | |
13244 | shlibpath_overrides_runpath=yes | |
13245 | fi | |
13246 | ;; | |
13247 | ||
13248 | os2*) | |
13249 | libname_spec='$name' | |
13250 | need_lib_prefix=no | |
13251 | library_names_spec='$libname.dll $libname.a' | |
13252 | dynamic_linker='OS/2 ld.exe' | |
13253 | shlibpath_var=LIBPATH | |
13254 | ;; | |
13255 | ||
13256 | osf3* | osf4* | osf5*) | |
13257 | version_type=osf | |
13258 | need_lib_prefix=no | |
13259 | need_version=no | |
13260 | soname_spec='${libname}${release}.so' | |
13261 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
13262 | shlibpath_var=LD_LIBRARY_PATH | |
13263 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
13264 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
13265 | ;; | |
13266 | ||
13267 | sco3.2v5*) | |
13268 | version_type=osf | |
13269 | soname_spec='${libname}${release}.so$major' | |
13270 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13271 | shlibpath_var=LD_LIBRARY_PATH | |
13272 | ;; | |
13273 | ||
13274 | solaris*) | |
13275 | version_type=linux | |
13276 | need_lib_prefix=no | |
13277 | need_version=no | |
13278 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13279 | soname_spec='${libname}${release}.so$major' | |
13280 | shlibpath_var=LD_LIBRARY_PATH | |
13281 | shlibpath_overrides_runpath=yes | |
13282 | hardcode_into_libs=yes | |
13283 | # ldd complains unless libraries are executable | |
13284 | postinstall_cmds='chmod +x $lib' | |
13285 | ;; | |
13286 | ||
13287 | sunos4*) | |
13288 | version_type=sunos | |
13289 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
13290 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
13291 | shlibpath_var=LD_LIBRARY_PATH | |
13292 | shlibpath_overrides_runpath=yes | |
13293 | if test "$with_gnu_ld" = yes; then | |
13294 | need_lib_prefix=no | |
13295 | fi | |
13296 | need_version=yes | |
13297 | ;; | |
13298 | ||
13299 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
13300 | version_type=linux | |
13301 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13302 | soname_spec='${libname}${release}.so$major' | |
13303 | shlibpath_var=LD_LIBRARY_PATH | |
13304 | case $host_vendor in | |
13305 | sni) | |
13306 | shlibpath_overrides_runpath=no | |
13307 | ;; | |
13308 | motorola) | |
13309 | need_lib_prefix=no | |
13310 | need_version=no | |
13311 | shlibpath_overrides_runpath=no | |
13312 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
13313 | ;; | |
13314 | esac | |
13315 | ;; | |
13316 | ||
13317 | sysv4*MP*) | |
13318 | if test -d /usr/nec ;then | |
13319 | version_type=linux | |
13320 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | |
13321 | soname_spec='$libname.so.$major' | |
13322 | shlibpath_var=LD_LIBRARY_PATH | |
13323 | fi | |
13324 | ;; | |
13325 | ||
13326 | uts4*) | |
13327 | version_type=linux | |
13328 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13329 | soname_spec='${libname}${release}.so$major' | |
13330 | shlibpath_var=LD_LIBRARY_PATH | |
13331 | ;; | |
13332 | ||
13333 | *) | |
13334 | dynamic_linker=no | |
13335 | ;; | |
13336 | esac | |
13337 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
13338 | echo "${ECHO_T}$dynamic_linker" >&6 | |
13339 | test "$dynamic_linker" = no && can_build_shared=no | |
13340 | ||
13341 | if test "x$enable_dlopen" != xyes; then | |
13342 | enable_dlopen=unknown | |
13343 | enable_dlopen_self=unknown | |
13344 | enable_dlopen_self_static=unknown | |
13345 | else | |
13346 | lt_cv_dlopen=no | |
13347 | lt_cv_dlopen_libs= | |
13348 | ||
13349 | case $host_os in | |
13350 | beos*) | |
13351 | lt_cv_dlopen="load_add_on" | |
13352 | lt_cv_dlopen_libs= | |
13353 | lt_cv_dlopen_self=yes | |
13354 | ;; | |
13355 | ||
13356 | cygwin* | mingw* | pw32*) | |
13357 | lt_cv_dlopen="LoadLibrary" | |
13358 | lt_cv_dlopen_libs= | |
13359 | ;; | |
13360 | ||
13361 | *) | |
13362 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
13363 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
13364 | if test "${ac_cv_func_shl_load+set}" = set; then | |
13365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13366 | else | |
13367 | cat >conftest.$ac_ext <<_ACEOF | |
13368 | #line $LINENO "configure" | |
13369 | #include "confdefs.h" | |
13370 | /* System header to define __stub macros and hopefully few prototypes, | |
13371 | which can conflict with char shl_load (); below. */ | |
13372 | #include <assert.h> | |
13373 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13374 | #ifdef __cplusplus | |
13375 | extern "C" | |
13376 | #endif | |
13377 | /* We use char because int might match the return type of a gcc2 | |
13378 | builtin and then its argument prototype would still apply. */ | |
13379 | char shl_load (); | |
13380 | char (*f) (); | |
13381 | ||
13382 | #ifdef F77_DUMMY_MAIN | |
13383 | # ifdef __cplusplus | |
13384 | extern "C" | |
13385 | # endif | |
13386 | int F77_DUMMY_MAIN() { return 1; } | |
13387 | #endif | |
13388 | int | |
13389 | main () | |
13390 | { | |
13391 | /* The GNU C library defines this for functions which it implements | |
13392 | to always fail with ENOSYS. Some functions are actually named | |
13393 | something starting with __ and the normal name is an alias. */ | |
13394 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
13395 | choke me | |
13396 | #else | |
13397 | f = shl_load; | |
13398 | #endif | |
13399 | ||
13400 | ; | |
13401 | return 0; | |
13402 | } | |
13403 | _ACEOF | |
13404 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13405 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13406 | (eval $ac_link) 2>&5 | |
13407 | ac_status=$? | |
13408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13409 | (exit $ac_status); } && | |
13410 | { ac_try='test -s conftest$ac_exeext' | |
13411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13412 | (eval $ac_try) 2>&5 | |
13413 | ac_status=$? | |
13414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13415 | (exit $ac_status); }; }; then | |
13416 | ac_cv_func_shl_load=yes | |
13417 | else | |
13418 | echo "$as_me: failed program was:" >&5 | |
13419 | cat conftest.$ac_ext >&5 | |
13420 | ac_cv_func_shl_load=no | |
13421 | fi | |
13422 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13423 | fi | |
13424 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
13425 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
13426 | if test $ac_cv_func_shl_load = yes; then | |
13427 | lt_cv_dlopen="shl_load" | |
13428 | else | |
13429 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
13430 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
13431 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
13432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13433 | else | |
13434 | ac_check_lib_save_LIBS=$LIBS | |
13435 | LIBS="-ldld $LIBS" | |
13436 | cat >conftest.$ac_ext <<_ACEOF | |
13437 | #line $LINENO "configure" | |
13438 | #include "confdefs.h" | |
13439 | ||
13440 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13441 | #ifdef __cplusplus | |
13442 | extern "C" | |
13443 | #endif | |
13444 | /* We use char because int might match the return type of a gcc2 | |
13445 | builtin and then its argument prototype would still apply. */ | |
13446 | char shl_load (); | |
13447 | #ifdef F77_DUMMY_MAIN | |
13448 | # ifdef __cplusplus | |
13449 | extern "C" | |
13450 | # endif | |
13451 | int F77_DUMMY_MAIN() { return 1; } | |
13452 | #endif | |
13453 | int | |
13454 | main () | |
13455 | { | |
13456 | shl_load (); | |
13457 | ; | |
13458 | return 0; | |
13459 | } | |
13460 | _ACEOF | |
13461 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13462 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13463 | (eval $ac_link) 2>&5 | |
13464 | ac_status=$? | |
13465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13466 | (exit $ac_status); } && | |
13467 | { ac_try='test -s conftest$ac_exeext' | |
13468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13469 | (eval $ac_try) 2>&5 | |
13470 | ac_status=$? | |
13471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13472 | (exit $ac_status); }; }; then | |
13473 | ac_cv_lib_dld_shl_load=yes | |
13474 | else | |
13475 | echo "$as_me: failed program was:" >&5 | |
13476 | cat conftest.$ac_ext >&5 | |
13477 | ac_cv_lib_dld_shl_load=no | |
13478 | fi | |
13479 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13480 | LIBS=$ac_check_lib_save_LIBS | |
13481 | fi | |
13482 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
13483 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
13484 | if test $ac_cv_lib_dld_shl_load = yes; then | |
13485 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
13486 | else | |
13487 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
13488 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
13489 | if test "${ac_cv_func_dlopen+set}" = set; then | |
13490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13491 | else | |
13492 | cat >conftest.$ac_ext <<_ACEOF | |
13493 | #line $LINENO "configure" | |
13494 | #include "confdefs.h" | |
13495 | /* System header to define __stub macros and hopefully few prototypes, | |
13496 | which can conflict with char dlopen (); below. */ | |
13497 | #include <assert.h> | |
13498 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13499 | #ifdef __cplusplus | |
13500 | extern "C" | |
13501 | #endif | |
13502 | /* We use char because int might match the return type of a gcc2 | |
13503 | builtin and then its argument prototype would still apply. */ | |
13504 | char dlopen (); | |
13505 | char (*f) (); | |
13506 | ||
13507 | #ifdef F77_DUMMY_MAIN | |
13508 | # ifdef __cplusplus | |
13509 | extern "C" | |
13510 | # endif | |
13511 | int F77_DUMMY_MAIN() { return 1; } | |
13512 | #endif | |
13513 | int | |
13514 | main () | |
13515 | { | |
13516 | /* The GNU C library defines this for functions which it implements | |
13517 | to always fail with ENOSYS. Some functions are actually named | |
13518 | something starting with __ and the normal name is an alias. */ | |
13519 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
13520 | choke me | |
13521 | #else | |
13522 | f = dlopen; | |
13523 | #endif | |
13524 | ||
13525 | ; | |
13526 | return 0; | |
13527 | } | |
13528 | _ACEOF | |
13529 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13531 | (eval $ac_link) 2>&5 | |
13532 | ac_status=$? | |
13533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13534 | (exit $ac_status); } && | |
13535 | { ac_try='test -s conftest$ac_exeext' | |
13536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13537 | (eval $ac_try) 2>&5 | |
13538 | ac_status=$? | |
13539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13540 | (exit $ac_status); }; }; then | |
13541 | ac_cv_func_dlopen=yes | |
13542 | else | |
13543 | echo "$as_me: failed program was:" >&5 | |
13544 | cat conftest.$ac_ext >&5 | |
13545 | ac_cv_func_dlopen=no | |
13546 | fi | |
13547 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13548 | fi | |
13549 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
13550 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
13551 | if test $ac_cv_func_dlopen = yes; then | |
13552 | lt_cv_dlopen="dlopen" | |
13553 | else | |
13554 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
13555 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
13556 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
13557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13558 | else | |
13559 | ac_check_lib_save_LIBS=$LIBS | |
13560 | LIBS="-ldl $LIBS" | |
13561 | cat >conftest.$ac_ext <<_ACEOF | |
13562 | #line $LINENO "configure" | |
13563 | #include "confdefs.h" | |
13564 | ||
13565 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13566 | #ifdef __cplusplus | |
13567 | extern "C" | |
13568 | #endif | |
13569 | /* We use char because int might match the return type of a gcc2 | |
13570 | builtin and then its argument prototype would still apply. */ | |
13571 | char dlopen (); | |
13572 | #ifdef F77_DUMMY_MAIN | |
13573 | # ifdef __cplusplus | |
13574 | extern "C" | |
13575 | # endif | |
13576 | int F77_DUMMY_MAIN() { return 1; } | |
13577 | #endif | |
13578 | int | |
13579 | main () | |
13580 | { | |
13581 | dlopen (); | |
13582 | ; | |
13583 | return 0; | |
13584 | } | |
13585 | _ACEOF | |
13586 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13587 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13588 | (eval $ac_link) 2>&5 | |
13589 | ac_status=$? | |
13590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13591 | (exit $ac_status); } && | |
13592 | { ac_try='test -s conftest$ac_exeext' | |
13593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13594 | (eval $ac_try) 2>&5 | |
13595 | ac_status=$? | |
13596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13597 | (exit $ac_status); }; }; then | |
13598 | ac_cv_lib_dl_dlopen=yes | |
13599 | else | |
13600 | echo "$as_me: failed program was:" >&5 | |
13601 | cat conftest.$ac_ext >&5 | |
13602 | ac_cv_lib_dl_dlopen=no | |
13603 | fi | |
13604 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13605 | LIBS=$ac_check_lib_save_LIBS | |
13606 | fi | |
13607 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
13608 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
13609 | if test $ac_cv_lib_dl_dlopen = yes; then | |
13610 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
13611 | else | |
13612 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
13613 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
13614 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
13615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13616 | else | |
13617 | ac_check_lib_save_LIBS=$LIBS | |
13618 | LIBS="-lsvld $LIBS" | |
13619 | cat >conftest.$ac_ext <<_ACEOF | |
13620 | #line $LINENO "configure" | |
13621 | #include "confdefs.h" | |
13622 | ||
13623 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13624 | #ifdef __cplusplus | |
13625 | extern "C" | |
13626 | #endif | |
13627 | /* We use char because int might match the return type of a gcc2 | |
13628 | builtin and then its argument prototype would still apply. */ | |
13629 | char dlopen (); | |
13630 | #ifdef F77_DUMMY_MAIN | |
13631 | # ifdef __cplusplus | |
13632 | extern "C" | |
13633 | # endif | |
13634 | int F77_DUMMY_MAIN() { return 1; } | |
13635 | #endif | |
13636 | int | |
13637 | main () | |
13638 | { | |
13639 | dlopen (); | |
13640 | ; | |
13641 | return 0; | |
13642 | } | |
13643 | _ACEOF | |
13644 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13645 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13646 | (eval $ac_link) 2>&5 | |
13647 | ac_status=$? | |
13648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13649 | (exit $ac_status); } && | |
13650 | { ac_try='test -s conftest$ac_exeext' | |
13651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13652 | (eval $ac_try) 2>&5 | |
13653 | ac_status=$? | |
13654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13655 | (exit $ac_status); }; }; then | |
13656 | ac_cv_lib_svld_dlopen=yes | |
13657 | else | |
13658 | echo "$as_me: failed program was:" >&5 | |
13659 | cat conftest.$ac_ext >&5 | |
13660 | ac_cv_lib_svld_dlopen=no | |
13661 | fi | |
13662 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13663 | LIBS=$ac_check_lib_save_LIBS | |
13664 | fi | |
13665 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
13666 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
13667 | if test $ac_cv_lib_svld_dlopen = yes; then | |
13668 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
13669 | else | |
13670 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
13671 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
13672 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
13673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13674 | else | |
13675 | ac_check_lib_save_LIBS=$LIBS | |
13676 | LIBS="-ldld $LIBS" | |
13677 | cat >conftest.$ac_ext <<_ACEOF | |
13678 | #line $LINENO "configure" | |
13679 | #include "confdefs.h" | |
13680 | ||
13681 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13682 | #ifdef __cplusplus | |
13683 | extern "C" | |
13684 | #endif | |
13685 | /* We use char because int might match the return type of a gcc2 | |
13686 | builtin and then its argument prototype would still apply. */ | |
13687 | char dld_link (); | |
13688 | #ifdef F77_DUMMY_MAIN | |
13689 | # ifdef __cplusplus | |
13690 | extern "C" | |
13691 | # endif | |
13692 | int F77_DUMMY_MAIN() { return 1; } | |
13693 | #endif | |
13694 | int | |
13695 | main () | |
13696 | { | |
13697 | dld_link (); | |
13698 | ; | |
13699 | return 0; | |
13700 | } | |
13701 | _ACEOF | |
13702 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13704 | (eval $ac_link) 2>&5 | |
13705 | ac_status=$? | |
13706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13707 | (exit $ac_status); } && | |
13708 | { ac_try='test -s conftest$ac_exeext' | |
13709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13710 | (eval $ac_try) 2>&5 | |
13711 | ac_status=$? | |
13712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13713 | (exit $ac_status); }; }; then | |
13714 | ac_cv_lib_dld_dld_link=yes | |
13715 | else | |
13716 | echo "$as_me: failed program was:" >&5 | |
13717 | cat conftest.$ac_ext >&5 | |
13718 | ac_cv_lib_dld_dld_link=no | |
13719 | fi | |
13720 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13721 | LIBS=$ac_check_lib_save_LIBS | |
13722 | fi | |
13723 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
13724 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
13725 | if test $ac_cv_lib_dld_dld_link = yes; then | |
13726 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
13727 | fi | |
13728 | ||
13729 | ||
13730 | fi | |
13731 | ||
13732 | ||
13733 | fi | |
13734 | ||
13735 | ||
13736 | fi | |
13737 | ||
13738 | ||
13739 | fi | |
13740 | ||
13741 | ||
13742 | fi | |
13743 | ||
13744 | ;; | |
13745 | esac | |
13746 | ||
13747 | if test "x$lt_cv_dlopen" != xno; then | |
13748 | enable_dlopen=yes | |
13749 | else | |
13750 | enable_dlopen=no | |
13751 | fi | |
13752 | ||
13753 | case $lt_cv_dlopen in | |
13754 | dlopen) | |
13755 | save_CPPFLAGS="$CPPFLAGS" | |
13756 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
13757 | ||
13758 | save_LDFLAGS="$LDFLAGS" | |
13759 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
13760 | ||
13761 | save_LIBS="$LIBS" | |
13762 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
13763 | ||
13764 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
13765 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
13766 | if test "${lt_cv_dlopen_self+set}" = set; then | |
13767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13768 | else | |
13769 | if test "$cross_compiling" = yes; then : | |
13770 | lt_cv_dlopen_self=cross | |
13771 | else | |
13772 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
13773 | lt_status=$lt_dlunknown | |
13774 | cat > conftest.$ac_ext <<EOF | |
13775 | #line 13775 "configure" | |
13776 | #include "confdefs.h" | |
13777 | ||
13778 | #if HAVE_DLFCN_H | |
13779 | #include <dlfcn.h> | |
13780 | #endif | |
13781 | ||
13782 | #include <stdio.h> | |
13783 | ||
13784 | #ifdef RTLD_GLOBAL | |
13785 | # define LT_DLGLOBAL RTLD_GLOBAL | |
13786 | #else | |
13787 | # ifdef DL_GLOBAL | |
13788 | # define LT_DLGLOBAL DL_GLOBAL | |
13789 | # else | |
13790 | # define LT_DLGLOBAL 0 | |
13791 | # endif | |
13792 | #endif | |
13793 | ||
13794 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
13795 | find out it does not work in some platform. */ | |
13796 | #ifndef LT_DLLAZY_OR_NOW | |
13797 | # ifdef RTLD_LAZY | |
13798 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
13799 | # else | |
13800 | # ifdef DL_LAZY | |
13801 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
13802 | # else | |
13803 | # ifdef RTLD_NOW | |
13804 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
13805 | # else | |
13806 | # ifdef DL_NOW | |
13807 | # define LT_DLLAZY_OR_NOW DL_NOW | |
13808 | # else | |
13809 | # define LT_DLLAZY_OR_NOW 0 | |
13810 | # endif | |
13811 | # endif | |
13812 | # endif | |
13813 | # endif | |
13814 | #endif | |
13815 | ||
13816 | #ifdef __cplusplus | |
13817 | extern "C" void exit (int); | |
13818 | #endif | |
13819 | ||
13820 | void fnord() { int i=42;} | |
13821 | int main () | |
13822 | { | |
13823 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
13824 | int status = $lt_dlunknown; | |
13825 | ||
13826 | if (self) | |
13827 | { | |
13828 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
13829 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
13830 | /* dlclose (self); */ | |
13831 | } | |
13832 | ||
13833 | exit (status); | |
13834 | } | |
13835 | EOF | |
13836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13837 | (eval $ac_link) 2>&5 | |
13838 | ac_status=$? | |
13839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13840 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
13841 | (./conftest; exit; ) 2>/dev/null | |
13842 | lt_status=$? | |
13843 | case x$lt_status in | |
13844 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
13845 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
13846 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
13847 | esac | |
13848 | else : | |
13849 | # compilation failed | |
13850 | lt_cv_dlopen_self=no | |
13851 | fi | |
13852 | fi | |
13853 | rm -fr conftest* | |
13854 | ||
13855 | ||
13856 | fi | |
13857 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
13858 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
13859 | ||
13860 | if test "x$lt_cv_dlopen_self" = xyes; then | |
13861 | LDFLAGS="$LDFLAGS $link_static_flag" | |
13862 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
13863 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
13864 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
13865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13866 | else | |
13867 | if test "$cross_compiling" = yes; then : | |
13868 | lt_cv_dlopen_self_static=cross | |
13869 | else | |
13870 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
13871 | lt_status=$lt_dlunknown | |
13872 | cat > conftest.$ac_ext <<EOF | |
13873 | #line 13873 "configure" | |
13874 | #include "confdefs.h" | |
13875 | ||
13876 | #if HAVE_DLFCN_H | |
13877 | #include <dlfcn.h> | |
13878 | #endif | |
13879 | ||
13880 | #include <stdio.h> | |
13881 | ||
13882 | #ifdef RTLD_GLOBAL | |
13883 | # define LT_DLGLOBAL RTLD_GLOBAL | |
13884 | #else | |
13885 | # ifdef DL_GLOBAL | |
13886 | # define LT_DLGLOBAL DL_GLOBAL | |
13887 | # else | |
13888 | # define LT_DLGLOBAL 0 | |
13889 | # endif | |
13890 | #endif | |
13891 | ||
13892 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
13893 | find out it does not work in some platform. */ | |
13894 | #ifndef LT_DLLAZY_OR_NOW | |
13895 | # ifdef RTLD_LAZY | |
13896 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
13897 | # else | |
13898 | # ifdef DL_LAZY | |
13899 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
13900 | # else | |
13901 | # ifdef RTLD_NOW | |
13902 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
13903 | # else | |
13904 | # ifdef DL_NOW | |
13905 | # define LT_DLLAZY_OR_NOW DL_NOW | |
13906 | # else | |
13907 | # define LT_DLLAZY_OR_NOW 0 | |
13908 | # endif | |
13909 | # endif | |
13910 | # endif | |
13911 | # endif | |
13912 | #endif | |
13913 | ||
13914 | #ifdef __cplusplus | |
13915 | extern "C" void exit (int); | |
13916 | #endif | |
13917 | ||
13918 | void fnord() { int i=42;} | |
13919 | int main () | |
13920 | { | |
13921 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
13922 | int status = $lt_dlunknown; | |
13923 | ||
13924 | if (self) | |
13925 | { | |
13926 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
13927 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
13928 | /* dlclose (self); */ | |
13929 | } | |
13930 | ||
13931 | exit (status); | |
13932 | } | |
13933 | EOF | |
13934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13935 | (eval $ac_link) 2>&5 | |
13936 | ac_status=$? | |
13937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13938 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
13939 | (./conftest; exit; ) 2>/dev/null | |
13940 | lt_status=$? | |
13941 | case x$lt_status in | |
13942 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
13943 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
13944 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
13945 | esac | |
13946 | else : | |
13947 | # compilation failed | |
13948 | lt_cv_dlopen_self_static=no | |
13949 | fi | |
13950 | fi | |
13951 | rm -fr conftest* | |
13952 | ||
13953 | ||
13954 | fi | |
13955 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
13956 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
13957 | fi | |
13958 | ||
13959 | CPPFLAGS="$save_CPPFLAGS" | |
13960 | LDFLAGS="$save_LDFLAGS" | |
13961 | LIBS="$save_LIBS" | |
13962 | ;; | |
13963 | esac | |
13964 | ||
13965 | case $lt_cv_dlopen_self in | |
13966 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
13967 | *) enable_dlopen_self=unknown ;; | |
13968 | esac | |
13969 | ||
13970 | case $lt_cv_dlopen_self_static in | |
13971 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
13972 | *) enable_dlopen_self_static=unknown ;; | |
13973 | esac | |
13974 | fi | |
13975 | ||
13976 | ||
13977 | # The else clause should only fire when bootstrapping the | |
13978 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
13979 | # with your package, and you will get complaints that there are | |
13980 | # no rules to generate ltmain.sh. | |
13981 | if test -f "$ltmain"; then | |
13982 | # Now quote all the things that may contain metacharacters while being | |
13983 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
13984 | # variables and quote the copies for generation of the libtool script. | |
13985 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
13986 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
13987 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
13988 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
13989 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
13990 | lt_cv_sys_global_symbol_to_c_name_address \ | |
13991 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
13992 | old_postinstall_cmds old_postuninstall_cmds \ | |
13993 | compiler_GCJ \ | |
13994 | CC_GCJ \ | |
13995 | LD_GCJ \ | |
13996 | lt_prog_compiler_wl_GCJ \ | |
13997 | lt_prog_compiler_pic_GCJ \ | |
13998 | lt_prog_compiler_static_GCJ \ | |
13999 | lt_prog_compiler_no_builtin_flag_GCJ \ | |
14000 | export_dynamic_flag_spec_GCJ \ | |
14001 | thread_safe_flag_spec_GCJ \ | |
14002 | whole_archive_flag_spec_GCJ \ | |
14003 | old_archive_cmds_GCJ \ | |
14004 | old_archive_from_new_cmds_GCJ \ | |
14005 | predep_objects_GCJ \ | |
14006 | postdep_objects_GCJ \ | |
14007 | predeps_GCJ \ | |
14008 | postdeps_GCJ \ | |
14009 | compiler_lib_search_path_GCJ \ | |
14010 | archive_cmds_GCJ \ | |
14011 | archive_expsym_cmds_GCJ \ | |
14012 | postinstall_cmds_GCJ \ | |
14013 | postuninstall_cmds_GCJ \ | |
14014 | old_archive_from_expsyms_cmds_GCJ \ | |
14015 | allow_undefined_flag_GCJ \ | |
14016 | no_undefined_flag_GCJ \ | |
14017 | export_symbols_cmds_GCJ \ | |
14018 | hardcode_libdir_flag_spec_GCJ \ | |
14019 | hardcode_libdir_separator_GCJ \ | |
14020 | lt_cv_prog_compiler_c_o_GCJ \ | |
14021 | exclude_expsyms_GCJ \ | |
14022 | include_expsyms_GCJ; do | |
14023 | ||
14024 | case $var in | |
14025 | old_archive_cmds_GCJ | \ | |
14026 | old_archive_from_new_cmds_GCJ | \ | |
14027 | archive_cmds_GCJ | \ | |
14028 | archive_expsym_cmds_GCJ | \ | |
14029 | old_archive_from_expsyms_cmds_GCJ | \ | |
14030 | export_symbols_cmds_GCJ | \ | |
14031 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
14032 | postinstall_cmds | postuninstall_cmds | \ | |
14033 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
14034 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
14035 | # Double-quote double-evaled strings. | |
14036 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
14037 | ;; | |
14038 | *) | |
14039 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
14040 | ;; | |
14041 | esac | |
14042 | done | |
14043 | ||
14044 | case $lt_echo in | |
14045 | *'\$0 --fallback-echo"') | |
14046 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
14047 | ;; | |
14048 | esac | |
14049 | ||
14050 | cfgfile="$ofile" | |
14051 | ||
14052 | cat <<__EOF__ >> "$cfgfile" | |
14053 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
14054 | ||
14055 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
14056 | ||
14057 | # Shell to use when invoking shell scripts. | |
14058 | SHELL=$lt_SHELL | |
14059 | ||
14060 | # Whether or not to build shared libraries. | |
14061 | build_libtool_libs=$enable_shared | |
14062 | ||
14063 | # Whether or not to build static libraries. | |
14064 | build_old_libs=$enable_static | |
14065 | ||
14066 | # Whether or not to add -lc for building shared libraries. | |
14067 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | |
14068 | ||
14069 | # Whether or not to optimize for fast installation. | |
14070 | fast_install=$enable_fast_install | |
14071 | ||
14072 | # The host system. | |
14073 | host_alias=$host_alias | |
14074 | host=$host | |
14075 | ||
14076 | # An echo program that does not interpret backslashes. | |
14077 | echo=$lt_echo | |
14078 | ||
14079 | # The archiver. | |
14080 | AR=$lt_AR | |
14081 | AR_FLAGS=$lt_AR_FLAGS | |
14082 | ||
14083 | # A C compiler. | |
14084 | LTCC=$lt_LTCC | |
14085 | ||
14086 | # A language-specific compiler. | |
14087 | CC=$lt_compiler_GCJ | |
14088 | ||
14089 | # Is the compiler the GNU C compiler? | |
14090 | with_gcc=$GCC_GCJ | |
14091 | ||
14092 | # The linker used to build libraries. | |
14093 | LD=$lt_LD_GCJ | |
14094 | ||
14095 | # Whether we need hard or soft links. | |
14096 | LN_S=$lt_LN_S | |
14097 | ||
14098 | # A BSD-compatible nm program. | |
14099 | NM=$lt_NM | |
14100 | ||
14101 | # A sed program that does not truncate output. | |
14102 | SED=$lt_SED | |
14103 | ||
14104 | # A symbol stripping program | |
14105 | STRIP=$STRIP | |
14106 | ||
14107 | # Used to examine libraries when file_magic_cmd begins "file" | |
14108 | MAGIC_CMD=$MAGIC_CMD | |
14109 | ||
14110 | # Used on cygwin: DLL creation program. | |
14111 | DLLTOOL="$DLLTOOL" | |
14112 | ||
14113 | # Used on cygwin: object dumper. | |
14114 | OBJDUMP="$OBJDUMP" | |
14115 | ||
14116 | # Used on cygwin: assembler. | |
14117 | AS="$AS" | |
14118 | ||
14119 | # The name of the directory that contains temporary libtool files. | |
14120 | objdir=$objdir | |
14121 | ||
14122 | # How to create reloadable object files. | |
14123 | reload_flag=$lt_reload_flag | |
14124 | reload_cmds=$lt_reload_cmds | |
14125 | ||
14126 | # How to pass a linker flag through the compiler. | |
14127 | wl=$lt_lt_prog_compiler_wl_GCJ | |
14128 | ||
14129 | # Object file suffix (normally "o"). | |
14130 | objext="$ac_objext" | |
14131 | ||
14132 | # Old archive suffix (normally "a"). | |
14133 | libext="$libext" | |
14134 | ||
14135 | # Executable file suffix (normally ""). | |
14136 | exeext="$exeext" | |
14137 | ||
14138 | # Additional compiler flags for building library objects. | |
14139 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | |
14140 | pic_mode=$pic_mode | |
14141 | ||
14142 | # What is the maximum length of a command? | |
14143 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
14144 | ||
14145 | # Does compiler simultaneously support -c and -o options? | |
14146 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | |
14147 | ||
14148 | # Must we lock files when doing compilation ? | |
14149 | need_locks=$lt_need_locks | |
14150 | ||
14151 | # Do we need the lib prefix for modules? | |
14152 | need_lib_prefix=$need_lib_prefix | |
14153 | ||
14154 | # Do we need a version for libraries? | |
14155 | need_version=$need_version | |
14156 | ||
14157 | # Whether dlopen is supported. | |
14158 | dlopen_support=$enable_dlopen | |
14159 | ||
14160 | # Whether dlopen of programs is supported. | |
14161 | dlopen_self=$enable_dlopen_self | |
14162 | ||
14163 | # Whether dlopen of statically linked programs is supported. | |
14164 | dlopen_self_static=$enable_dlopen_self_static | |
14165 | ||
14166 | # Compiler flag to prevent dynamic linking. | |
14167 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | |
14168 | ||
14169 | # Compiler flag to turn off builtin functions. | |
14170 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | |
14171 | ||
14172 | # Compiler flag to allow reflexive dlopens. | |
14173 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | |
14174 | ||
14175 | # Compiler flag to generate shared objects directly from archives. | |
14176 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | |
14177 | ||
14178 | # Compiler flag to generate thread-safe objects. | |
14179 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | |
14180 | ||
14181 | # Library versioning type. | |
14182 | version_type=$version_type | |
14183 | ||
14184 | # Format of library name prefix. | |
14185 | libname_spec=$lt_libname_spec | |
14186 | ||
14187 | # List of archive names. First name is the real one, the rest are links. | |
14188 | # The last name is the one that the linker finds with -lNAME. | |
14189 | library_names_spec=$lt_library_names_spec | |
14190 | ||
14191 | # The coded name of the library, if different from the real name. | |
14192 | soname_spec=$lt_soname_spec | |
14193 | ||
14194 | # Commands used to build and install an old-style archive. | |
14195 | RANLIB=$lt_RANLIB | |
14196 | old_archive_cmds=$lt_old_archive_cmds_GCJ | |
14197 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14198 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
14199 | ||
14200 | # Create an old-style archive from a shared archive. | |
14201 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | |
14202 | ||
14203 | # Create a temporary old-style archive to link instead of a shared archive. | |
14204 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | |
14205 | ||
14206 | # Commands used to build and install a shared archive. | |
14207 | archive_cmds=$lt_archive_cmds_GCJ | |
14208 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | |
14209 | postinstall_cmds=$lt_postinstall_cmds | |
14210 | postuninstall_cmds=$lt_postuninstall_cmds | |
14211 | ||
14212 | # Commands to strip libraries. | |
14213 | old_striplib=$lt_old_striplib | |
14214 | striplib=$lt_striplib | |
14215 | ||
14216 | # Dependencies to place before the objects being linked to create a | |
14217 | # shared library. | |
14218 | predep_objects=$lt_predep_objects_GCJ | |
14219 | ||
14220 | # Dependencies to place after the objects being linked to create a | |
14221 | # shared library. | |
14222 | postdep_objects=$lt_postdep_objects_GCJ | |
14223 | ||
14224 | # Dependencies to place before the objects being linked to create a | |
14225 | # shared library. | |
14226 | predeps=$lt_predeps_GCJ | |
14227 | ||
14228 | # Dependencies to place after the objects being linked to create a | |
14229 | # shared library. | |
14230 | postdeps=$lt_postdeps_GCJ | |
14231 | ||
14232 | # The library search path used internally by the compiler when linking | |
14233 | # a shared library. | |
14234 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | |
14235 | ||
14236 | # Method to check whether dependent libraries are shared objects. | |
14237 | deplibs_check_method=$lt_deplibs_check_method | |
14238 | ||
14239 | # Command to use when deplibs_check_method == file_magic. | |
14240 | file_magic_cmd=$lt_file_magic_cmd | |
14241 | ||
14242 | # Flag that allows shared libraries with undefined symbols to be built. | |
14243 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | |
14244 | ||
14245 | # Flag that forces no undefined symbols. | |
14246 | no_undefined_flag=$lt_no_undefined_flag_GCJ | |
14247 | ||
14248 | # Commands used to finish a libtool library installation in a directory. | |
14249 | finish_cmds=$lt_finish_cmds | |
14250 | ||
14251 | # Same as above, but a single script fragment to be evaled but not shown. | |
14252 | finish_eval=$lt_finish_eval | |
14253 | ||
14254 | # Take the output of nm and produce a listing of raw symbols and C names. | |
14255 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
14256 | ||
14257 | # Transform the output of nm in a proper C declaration | |
14258 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
14259 | ||
14260 | # Transform the output of nm in a C name address pair | |
14261 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
14262 | ||
14263 | # This is the shared library runtime path variable. | |
14264 | runpath_var=$runpath_var | |
14265 | ||
14266 | # This is the shared library path variable. | |
14267 | shlibpath_var=$shlibpath_var | |
14268 | ||
14269 | # Is shlibpath searched before the hard-coded library search path? | |
14270 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
14271 | ||
14272 | # How to hardcode a shared library path into an executable. | |
14273 | hardcode_action=$hardcode_action_GCJ | |
14274 | ||
14275 | # Whether we should hardcode library paths into libraries. | |
14276 | hardcode_into_libs=$hardcode_into_libs | |
14277 | ||
14278 | # Flag to hardcode \$libdir into a binary during linking. | |
14279 | # This must work even if \$libdir does not exist. | |
14280 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | |
14281 | ||
14282 | # Whether we need a single -rpath flag with a separated argument. | |
14283 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | |
14284 | ||
14285 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
14286 | # resulting binary. | |
14287 | hardcode_direct=$hardcode_direct_GCJ | |
14288 | ||
14289 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
14290 | # resulting binary. | |
14291 | hardcode_minus_L=$hardcode_minus_L_GCJ | |
14292 | ||
14293 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
14294 | # the resulting binary. | |
14295 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | |
14296 | ||
14297 | # Variables whose values should be saved in libtool wrapper scripts and | |
14298 | # restored at relink time. | |
14299 | variables_saved_for_relink="$variables_saved_for_relink" | |
14300 | ||
14301 | # Whether libtool must link a program against all its dependency libraries. | |
14302 | link_all_deplibs=$link_all_deplibs_GCJ | |
14303 | ||
14304 | # Compile-time system search path for libraries | |
14305 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
14306 | ||
14307 | # Run-time system search path for libraries | |
14308 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
14309 | ||
14310 | # Fix the shell variable \$srcfile for the compiler. | |
14311 | fix_srcfile_path="$fix_srcfile_path_GCJ" | |
14312 | ||
14313 | # Set to yes if exported symbols are required. | |
14314 | always_export_symbols=$always_export_symbols_GCJ | |
14315 | ||
14316 | # The commands to list exported symbols. | |
14317 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | |
14318 | ||
14319 | # The commands to extract the exported symbol list from a shared archive. | |
14320 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
14321 | ||
14322 | # Symbols that should not be listed in the preloaded symbols. | |
14323 | exclude_expsyms=$lt_exclude_expsyms_GCJ | |
14324 | ||
14325 | # Symbols that must always be exported. | |
14326 | include_expsyms=$lt_include_expsyms_GCJ | |
14327 | ||
14328 | # ### END LIBTOOL TAG CONFIG: $tagname | |
14329 | ||
14330 | __EOF__ | |
14331 | ||
14332 | ||
14333 | else | |
14334 | # If there is no Makefile yet, we rely on a make rule to execute | |
14335 | # `config.status --recheck' to rerun these tests and create the | |
14336 | # libtool script then. | |
14337 | test -f Makefile && make "$ltmain" | |
14338 | fi | |
14339 | ||
14340 | ||
14341 | ac_ext=cc | |
14342 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14343 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14344 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14345 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14346 | ||
14347 | CC="$lt_save_CC" | |
14348 | ||
14349 | ;; | |
14350 | ||
14351 | RC) | |
14352 | ||
14353 | ||
14354 | ||
14355 | # Source file extension for RC test sources. | |
14356 | ac_ext=rc | |
14357 | ||
14358 | # Object file extension for compiled RC test sources. | |
14359 | objext=o | |
14360 | objext_RC=$objext | |
14361 | ||
14362 | # Code to be used in simple compile tests | |
14363 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' | |
14364 | ||
14365 | # Code to be used in simple link tests | |
14366 | lt_simple_link_test_code="$lt_simple_compile_test_code" | |
14367 | ||
14368 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
14369 | ||
14370 | # If no C compiler was specified, use CC. | |
14371 | LTCC=${LTCC-"$CC"} | |
14372 | ||
14373 | # Allow CC to be a program name with arguments. | |
14374 | set dummy $CC | |
14375 | compiler="$2" | |
14376 | ||
14377 | ||
14378 | # Allow CC to be a program name with arguments. | |
14379 | lt_save_CC="$CC" | |
14380 | CC=${RC-"windres"} | |
14381 | set dummy $CC | |
14382 | compiler="$2" | |
14383 | compiler_RC=$CC | |
14384 | lt_cv_prog_compiler_c_o_RC=yes | |
14385 | ||
14386 | # The else clause should only fire when bootstrapping the | |
14387 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
14388 | # with your package, and you will get complaints that there are | |
14389 | # no rules to generate ltmain.sh. | |
14390 | if test -f "$ltmain"; then | |
14391 | # Now quote all the things that may contain metacharacters while being | |
14392 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
14393 | # variables and quote the copies for generation of the libtool script. | |
14394 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
14395 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
14396 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
14397 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
14398 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
14399 | lt_cv_sys_global_symbol_to_c_name_address \ | |
14400 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
14401 | old_postinstall_cmds old_postuninstall_cmds \ | |
14402 | compiler_RC \ | |
14403 | CC_RC \ | |
14404 | LD_RC \ | |
14405 | lt_prog_compiler_wl_RC \ | |
14406 | lt_prog_compiler_pic_RC \ | |
14407 | lt_prog_compiler_static_RC \ | |
14408 | lt_prog_compiler_no_builtin_flag_RC \ | |
14409 | export_dynamic_flag_spec_RC \ | |
14410 | thread_safe_flag_spec_RC \ | |
14411 | whole_archive_flag_spec_RC \ | |
14412 | old_archive_cmds_RC \ | |
14413 | old_archive_from_new_cmds_RC \ | |
14414 | predep_objects_RC \ | |
14415 | postdep_objects_RC \ | |
14416 | predeps_RC \ | |
14417 | postdeps_RC \ | |
14418 | compiler_lib_search_path_RC \ | |
14419 | archive_cmds_RC \ | |
14420 | archive_expsym_cmds_RC \ | |
14421 | postinstall_cmds_RC \ | |
14422 | postuninstall_cmds_RC \ | |
14423 | old_archive_from_expsyms_cmds_RC \ | |
14424 | allow_undefined_flag_RC \ | |
14425 | no_undefined_flag_RC \ | |
14426 | export_symbols_cmds_RC \ | |
14427 | hardcode_libdir_flag_spec_RC \ | |
14428 | hardcode_libdir_separator_RC \ | |
14429 | lt_cv_prog_compiler_c_o_RC \ | |
14430 | exclude_expsyms_RC \ | |
14431 | include_expsyms_RC; do | |
14432 | ||
14433 | case $var in | |
14434 | old_archive_cmds_RC | \ | |
14435 | old_archive_from_new_cmds_RC | \ | |
14436 | archive_cmds_RC | \ | |
14437 | archive_expsym_cmds_RC | \ | |
14438 | old_archive_from_expsyms_cmds_RC | \ | |
14439 | export_symbols_cmds_RC | \ | |
14440 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
14441 | postinstall_cmds | postuninstall_cmds | \ | |
14442 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
14443 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
14444 | # Double-quote double-evaled strings. | |
14445 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
14446 | ;; | |
14447 | *) | |
14448 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
14449 | ;; | |
14450 | esac | |
14451 | done | |
14452 | ||
14453 | case $lt_echo in | |
14454 | *'\$0 --fallback-echo"') | |
14455 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
14456 | ;; | |
14457 | esac | |
14458 | ||
14459 | cfgfile="$ofile" | |
14460 | ||
14461 | cat <<__EOF__ >> "$cfgfile" | |
14462 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
14463 | ||
14464 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
14465 | ||
14466 | # Shell to use when invoking shell scripts. | |
14467 | SHELL=$lt_SHELL | |
14468 | ||
14469 | # Whether or not to build shared libraries. | |
14470 | build_libtool_libs=$enable_shared | |
14471 | ||
14472 | # Whether or not to build static libraries. | |
14473 | build_old_libs=$enable_static | |
14474 | ||
14475 | # Whether or not to add -lc for building shared libraries. | |
14476 | build_libtool_need_lc=$archive_cmds_need_lc_RC | |
14477 | ||
14478 | # Whether or not to optimize for fast installation. | |
14479 | fast_install=$enable_fast_install | |
14480 | ||
14481 | # The host system. | |
14482 | host_alias=$host_alias | |
14483 | host=$host | |
14484 | ||
14485 | # An echo program that does not interpret backslashes. | |
14486 | echo=$lt_echo | |
14487 | ||
14488 | # The archiver. | |
14489 | AR=$lt_AR | |
14490 | AR_FLAGS=$lt_AR_FLAGS | |
14491 | ||
14492 | # A C compiler. | |
14493 | LTCC=$lt_LTCC | |
14494 | ||
14495 | # A language-specific compiler. | |
14496 | CC=$lt_compiler_RC | |
14497 | ||
14498 | # Is the compiler the GNU C compiler? | |
14499 | with_gcc=$GCC_RC | |
14500 | ||
14501 | # The linker used to build libraries. | |
14502 | LD=$lt_LD_RC | |
14503 | ||
14504 | # Whether we need hard or soft links. | |
14505 | LN_S=$lt_LN_S | |
14506 | ||
14507 | # A BSD-compatible nm program. | |
14508 | NM=$lt_NM | |
14509 | ||
14510 | # A sed program that does not truncate output. | |
14511 | SED=$lt_SED | |
14512 | ||
14513 | # A symbol stripping program | |
14514 | STRIP=$STRIP | |
14515 | ||
14516 | # Used to examine libraries when file_magic_cmd begins "file" | |
14517 | MAGIC_CMD=$MAGIC_CMD | |
14518 | ||
14519 | # Used on cygwin: DLL creation program. | |
14520 | DLLTOOL="$DLLTOOL" | |
14521 | ||
14522 | # Used on cygwin: object dumper. | |
14523 | OBJDUMP="$OBJDUMP" | |
14524 | ||
14525 | # Used on cygwin: assembler. | |
14526 | AS="$AS" | |
14527 | ||
14528 | # The name of the directory that contains temporary libtool files. | |
14529 | objdir=$objdir | |
14530 | ||
14531 | # How to create reloadable object files. | |
14532 | reload_flag=$lt_reload_flag | |
14533 | reload_cmds=$lt_reload_cmds | |
14534 | ||
14535 | # How to pass a linker flag through the compiler. | |
14536 | wl=$lt_lt_prog_compiler_wl_RC | |
14537 | ||
14538 | # Object file suffix (normally "o"). | |
14539 | objext="$ac_objext" | |
14540 | ||
14541 | # Old archive suffix (normally "a"). | |
14542 | libext="$libext" | |
14543 | ||
14544 | # Executable file suffix (normally ""). | |
14545 | exeext="$exeext" | |
14546 | ||
14547 | # Additional compiler flags for building library objects. | |
14548 | pic_flag=$lt_lt_prog_compiler_pic_RC | |
14549 | pic_mode=$pic_mode | |
14550 | ||
14551 | # What is the maximum length of a command? | |
14552 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
14553 | ||
14554 | # Does compiler simultaneously support -c and -o options? | |
14555 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | |
14556 | ||
14557 | # Must we lock files when doing compilation ? | |
14558 | need_locks=$lt_need_locks | |
14559 | ||
14560 | # Do we need the lib prefix for modules? | |
14561 | need_lib_prefix=$need_lib_prefix | |
14562 | ||
14563 | # Do we need a version for libraries? | |
14564 | need_version=$need_version | |
14565 | ||
14566 | # Whether dlopen is supported. | |
14567 | dlopen_support=$enable_dlopen | |
14568 | ||
14569 | # Whether dlopen of programs is supported. | |
14570 | dlopen_self=$enable_dlopen_self | |
14571 | ||
14572 | # Whether dlopen of statically linked programs is supported. | |
14573 | dlopen_self_static=$enable_dlopen_self_static | |
14574 | ||
14575 | # Compiler flag to prevent dynamic linking. | |
14576 | link_static_flag=$lt_lt_prog_compiler_static_RC | |
14577 | ||
14578 | # Compiler flag to turn off builtin functions. | |
14579 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | |
14580 | ||
14581 | # Compiler flag to allow reflexive dlopens. | |
14582 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | |
14583 | ||
14584 | # Compiler flag to generate shared objects directly from archives. | |
14585 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | |
14586 | ||
14587 | # Compiler flag to generate thread-safe objects. | |
14588 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | |
14589 | ||
14590 | # Library versioning type. | |
14591 | version_type=$version_type | |
14592 | ||
14593 | # Format of library name prefix. | |
14594 | libname_spec=$lt_libname_spec | |
14595 | ||
14596 | # List of archive names. First name is the real one, the rest are links. | |
14597 | # The last name is the one that the linker finds with -lNAME. | |
14598 | library_names_spec=$lt_library_names_spec | |
14599 | ||
14600 | # The coded name of the library, if different from the real name. | |
14601 | soname_spec=$lt_soname_spec | |
14602 | ||
14603 | # Commands used to build and install an old-style archive. | |
14604 | RANLIB=$lt_RANLIB | |
14605 | old_archive_cmds=$lt_old_archive_cmds_RC | |
14606 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14607 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
14608 | ||
14609 | # Create an old-style archive from a shared archive. | |
14610 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | |
14611 | ||
14612 | # Create a temporary old-style archive to link instead of a shared archive. | |
14613 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | |
14614 | ||
14615 | # Commands used to build and install a shared archive. | |
14616 | archive_cmds=$lt_archive_cmds_RC | |
14617 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | |
14618 | postinstall_cmds=$lt_postinstall_cmds | |
14619 | postuninstall_cmds=$lt_postuninstall_cmds | |
14620 | ||
14621 | # Commands to strip libraries. | |
14622 | old_striplib=$lt_old_striplib | |
14623 | striplib=$lt_striplib | |
14624 | ||
14625 | # Dependencies to place before the objects being linked to create a | |
14626 | # shared library. | |
14627 | predep_objects=$lt_predep_objects_RC | |
14628 | ||
14629 | # Dependencies to place after the objects being linked to create a | |
14630 | # shared library. | |
14631 | postdep_objects=$lt_postdep_objects_RC | |
14632 | ||
14633 | # Dependencies to place before the objects being linked to create a | |
14634 | # shared library. | |
14635 | predeps=$lt_predeps_RC | |
14636 | ||
14637 | # Dependencies to place after the objects being linked to create a | |
14638 | # shared library. | |
14639 | postdeps=$lt_postdeps_RC | |
14640 | ||
14641 | # The library search path used internally by the compiler when linking | |
14642 | # a shared library. | |
14643 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | |
14644 | ||
14645 | # Method to check whether dependent libraries are shared objects. | |
14646 | deplibs_check_method=$lt_deplibs_check_method | |
14647 | ||
14648 | # Command to use when deplibs_check_method == file_magic. | |
14649 | file_magic_cmd=$lt_file_magic_cmd | |
14650 | ||
14651 | # Flag that allows shared libraries with undefined symbols to be built. | |
14652 | allow_undefined_flag=$lt_allow_undefined_flag_RC | |
14653 | ||
14654 | # Flag that forces no undefined symbols. | |
14655 | no_undefined_flag=$lt_no_undefined_flag_RC | |
14656 | ||
14657 | # Commands used to finish a libtool library installation in a directory. | |
14658 | finish_cmds=$lt_finish_cmds | |
14659 | ||
14660 | # Same as above, but a single script fragment to be evaled but not shown. | |
14661 | finish_eval=$lt_finish_eval | |
14662 | ||
14663 | # Take the output of nm and produce a listing of raw symbols and C names. | |
14664 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
14665 | ||
14666 | # Transform the output of nm in a proper C declaration | |
14667 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
14668 | ||
14669 | # Transform the output of nm in a C name address pair | |
14670 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
14671 | ||
14672 | # This is the shared library runtime path variable. | |
14673 | runpath_var=$runpath_var | |
14674 | ||
14675 | # This is the shared library path variable. | |
14676 | shlibpath_var=$shlibpath_var | |
14677 | ||
14678 | # Is shlibpath searched before the hard-coded library search path? | |
14679 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
14680 | ||
14681 | # How to hardcode a shared library path into an executable. | |
14682 | hardcode_action=$hardcode_action_RC | |
14683 | ||
14684 | # Whether we should hardcode library paths into libraries. | |
14685 | hardcode_into_libs=$hardcode_into_libs | |
14686 | ||
14687 | # Flag to hardcode \$libdir into a binary during linking. | |
14688 | # This must work even if \$libdir does not exist. | |
14689 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | |
14690 | ||
14691 | # Whether we need a single -rpath flag with a separated argument. | |
14692 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | |
14693 | ||
14694 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
14695 | # resulting binary. | |
14696 | hardcode_direct=$hardcode_direct_RC | |
14697 | ||
14698 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
14699 | # resulting binary. | |
14700 | hardcode_minus_L=$hardcode_minus_L_RC | |
14701 | ||
14702 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
14703 | # the resulting binary. | |
14704 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | |
14705 | ||
14706 | # Variables whose values should be saved in libtool wrapper scripts and | |
14707 | # restored at relink time. | |
14708 | variables_saved_for_relink="$variables_saved_for_relink" | |
14709 | ||
14710 | # Whether libtool must link a program against all its dependency libraries. | |
14711 | link_all_deplibs=$link_all_deplibs_RC | |
14712 | ||
14713 | # Compile-time system search path for libraries | |
14714 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
14715 | ||
14716 | # Run-time system search path for libraries | |
14717 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
14718 | ||
14719 | # Fix the shell variable \$srcfile for the compiler. | |
14720 | fix_srcfile_path="$fix_srcfile_path_RC" | |
14721 | ||
14722 | # Set to yes if exported symbols are required. | |
14723 | always_export_symbols=$always_export_symbols_RC | |
14724 | ||
14725 | # The commands to list exported symbols. | |
14726 | export_symbols_cmds=$lt_export_symbols_cmds_RC | |
14727 | ||
14728 | # The commands to extract the exported symbol list from a shared archive. | |
14729 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
14730 | ||
14731 | # Symbols that should not be listed in the preloaded symbols. | |
14732 | exclude_expsyms=$lt_exclude_expsyms_RC | |
14733 | ||
14734 | # Symbols that must always be exported. | |
14735 | include_expsyms=$lt_include_expsyms_RC | |
14736 | ||
14737 | # ### END LIBTOOL TAG CONFIG: $tagname | |
14738 | ||
14739 | __EOF__ | |
14740 | ||
14741 | ||
14742 | else | |
14743 | # If there is no Makefile yet, we rely on a make rule to execute | |
14744 | # `config.status --recheck' to rerun these tests and create the | |
14745 | # libtool script then. | |
14746 | test -f Makefile && make "$ltmain" | |
14747 | fi | |
14748 | ||
14749 | ||
14750 | ac_ext=cc | |
14751 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14752 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14753 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14754 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14755 | ||
14756 | CC="$lt_save_CC" | |
14757 | ||
14758 | ;; | |
14759 | ||
14760 | *) | |
14761 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | |
14762 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | |
14763 | { (exit 1); exit 1; }; } | |
14764 | ;; | |
14765 | esac | |
14766 | ||
14767 | # Append the new tag name to the list of available tags. | |
14768 | available_tags="$available_tags $tagname" | |
14769 | fi | |
14770 | done | |
14771 | IFS="$lt_save_ifs" | |
14772 | ||
14773 | # Now substitute the updated list of available tags. | |
14774 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | |
14775 | mv "${ofile}T" "$ofile" | |
14776 | chmod +x "$ofile" | |
14777 | else | |
14778 | rm -f "${ofile}T" | |
14779 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | |
14780 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | |
14781 | { (exit 1); exit 1; }; } | |
14782 | fi | |
14783 | fi | |
14784 | ||
14785 | ||
14786 | ||
14787 | # This can be used to rebuild libtool when needed | |
14788 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | |
14789 | ||
14790 | # Always use our own libtool. | |
14791 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
14792 | ||
14793 | # Prevent multiple expansion | |
14794 | ||
14795 | ||
14796 | ||
14797 | ||
14798 | ||
14799 | ||
14800 | ||
14801 | ||
14802 | ||
14803 | ||
14804 | ||
14805 | ||
14806 | ||
14807 | if test -n "$ac_tool_prefix"; then | |
14808 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
14809 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
14810 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14811 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14812 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
14813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14814 | else | |
14815 | if test -n "$WINDRES"; then | |
14816 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
14817 | else | |
14818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14819 | for as_dir in $PATH | |
14820 | do | |
14821 | IFS=$as_save_IFS | |
14822 | test -z "$as_dir" && as_dir=. | |
14823 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14824 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14825 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
14826 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14827 | break 2 | |
14828 | fi | |
14829 | done | |
14830 | done | |
14831 | ||
14832 | fi | |
14833 | fi | |
14834 | WINDRES=$ac_cv_prog_WINDRES | |
14835 | if test -n "$WINDRES"; then | |
14836 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
14837 | echo "${ECHO_T}$WINDRES" >&6 | |
14838 | else | |
14839 | echo "$as_me:$LINENO: result: no" >&5 | |
14840 | echo "${ECHO_T}no" >&6 | |
14841 | fi | |
14842 | ||
14843 | fi | |
14844 | if test -z "$ac_cv_prog_WINDRES"; then | |
14845 | ac_ct_WINDRES=$WINDRES | |
14846 | # Extract the first word of "windres", so it can be a program name with args. | |
14847 | set dummy windres; ac_word=$2 | |
14848 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14849 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14850 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then | |
14851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14852 | else | |
14853 | if test -n "$ac_ct_WINDRES"; then | |
14854 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
14855 | else | |
14856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14857 | for as_dir in $PATH | |
14858 | do | |
14859 | IFS=$as_save_IFS | |
14860 | test -z "$as_dir" && as_dir=. | |
14861 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14862 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14863 | ac_cv_prog_ac_ct_WINDRES="windres" | |
14864 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14865 | break 2 | |
14866 | fi | |
14867 | done | |
14868 | done | |
14869 | ||
14870 | test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="windres" | |
14871 | fi | |
14872 | fi | |
14873 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
14874 | if test -n "$ac_ct_WINDRES"; then | |
14875 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
14876 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
14877 | else | |
14878 | echo "$as_me:$LINENO: result: no" >&5 | |
14879 | echo "${ECHO_T}no" >&6 | |
14880 | fi | |
14881 | ||
14882 | WINDRES=$ac_ct_WINDRES | |
14883 | else | |
14884 | WINDRES="$ac_cv_prog_WINDRES" | |
14885 | fi | |
14886 | ||
14887 | ||
14888 | ||
14889 | ||
45e01f23 RC |
14890 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
14891 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 | |
14892 | if test "${ac_cv_lib_mingw32_main+set}" = set; then | |
14893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14894 | else | |
14895 | ac_check_lib_save_LIBS=$LIBS | |
14896 | LIBS="-lmingw32 $LIBS" | |
14897 | cat >conftest.$ac_ext <<_ACEOF | |
14898 | #line $LINENO "configure" | |
14899 | #include "confdefs.h" | |
14900 | ||
14901 | ||
14902 | #ifdef F77_DUMMY_MAIN | |
14903 | # ifdef __cplusplus | |
14904 | extern "C" | |
14905 | # endif | |
14906 | int F77_DUMMY_MAIN() { return 1; } | |
14907 | #endif | |
14908 | int | |
14909 | main () | |
14910 | { | |
14911 | main (); | |
14912 | ; | |
14913 | return 0; | |
14914 | } | |
14915 | _ACEOF | |
14916 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14917 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14918 | (eval $ac_link) 2>&5 | |
14919 | ac_status=$? | |
14920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14921 | (exit $ac_status); } && | |
14922 | { ac_try='test -s conftest$ac_exeext' | |
14923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14924 | (eval $ac_try) 2>&5 | |
14925 | ac_status=$? | |
14926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14927 | (exit $ac_status); }; }; then | |
14928 | ac_cv_lib_mingw32_main=yes | |
14929 | else | |
14930 | echo "$as_me: failed program was:" >&5 | |
14931 | cat conftest.$ac_ext >&5 | |
14932 | ac_cv_lib_mingw32_main=no | |
14933 | fi | |
14934 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14935 | LIBS=$ac_check_lib_save_LIBS | |
14936 | fi | |
14937 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 | |
14938 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 | |
14939 | if test $ac_cv_lib_mingw32_main = yes; then | |
14940 | cat >>confdefs.h <<_ACEOF | |
14941 | #define HAVE_LIBMINGW32 1 | |
14942 | _ACEOF | |
14943 | ||
14944 | LIBS="-lmingw32 $LIBS" | |
14945 | ||
14946 | fi | |
14947 | ||
14948 | ||
14949 | ||
45e01f23 RC |
14950 | for ac_header in alloca.h |
14951 | do | |
14952 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ac65f5c5 | 14953 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
45e01f23 RC |
14954 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
14955 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45e01f23 | 14957 | else |
ac65f5c5 | 14958 | cat >conftest.$ac_ext <<_ACEOF |
45e01f23 RC |
14959 | #line $LINENO "configure" |
14960 | #include "confdefs.h" | |
ac65f5c5 RC |
14961 | \ |
14962 | string.h | |
14963 | ||
45e01f23 RC |
14964 | #include <$ac_header> |
14965 | _ACEOF | |
14966 | rm -f conftest.$ac_objext | |
14967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14968 | (eval $ac_compile) 2>&5 | |
14969 | ac_status=$? | |
14970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14971 | (exit $ac_status); } && | |
14972 | { ac_try='test -s conftest.$ac_objext' | |
14973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14974 | (eval $ac_try) 2>&5 | |
14975 | ac_status=$? | |
14976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14977 | (exit $ac_status); }; }; then | |
ac65f5c5 | 14978 | eval "$as_ac_Header=yes" |
45e01f23 RC |
14979 | else |
14980 | echo "$as_me: failed program was:" >&5 | |
14981 | cat conftest.$ac_ext >&5 | |
ac65f5c5 | 14982 | eval "$as_ac_Header=no" |
45e01f23 RC |
14983 | fi |
14984 | rm -f conftest.$ac_objext conftest.$ac_ext | |
45e01f23 RC |
14985 | fi |
14986 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14987 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
45e01f23 RC |
14988 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
14989 | cat >>confdefs.h <<_ACEOF | |
14990 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14991 | _ACEOF | |
14992 | \ | |
14993 | errno.h | |
e06ded88 RC |
14994 | else |
14995 | \ | |
ac65f5c5 | 14996 | string |
45e01f23 RC |
14997 | fi |
14998 | ||
14999 | done | |
15000 | ||
15001 | ||
15002 | ||
6908b7d7 RC |
15003 | |
15004 | subdirs="$subdirs zlib" | |
15005 | ||
15006 | ||
15007 | ||
15008 | subdirs="$subdirs bz2lib" | |
15009 | ||
15010 | ||
15011 | ||
15012 | subdirs="$subdirs libgetopt++" | |
db04fc41 RC |
15013 | |
15014 | ||
15015 | ac_config_files="$ac_config_files Makefile" | |
15016 | ||
15017 | cat >confcache <<\_ACEOF | |
739457f4 CF |
15018 | # This file is a shell script that caches the results of configure |
15019 | # tests run on this system so they can be shared between configure | |
db04fc41 RC |
15020 | # scripts and configure runs, see configure's option --config-cache. |
15021 | # It is not useful on other systems. If it contains results you don't | |
15022 | # want to keep, you may remove or edit it. | |
739457f4 | 15023 | # |
db04fc41 RC |
15024 | # config.status only pays attention to the cache file if you give it |
15025 | # the --recheck option to rerun configure. | |
739457f4 | 15026 | # |
db04fc41 RC |
15027 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
15028 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15029 | # following values. | |
15030 | ||
15031 | _ACEOF | |
15032 | ||
739457f4 CF |
15033 | # The following way of writing the cache mishandles newlines in values, |
15034 | # but we know of no workaround that is simple, portable, and efficient. | |
15035 | # So, don't put newlines in cache variables' values. | |
15036 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
15037 | # and sets the high bit in the cache file unless we assign to the vars. | |
db04fc41 RC |
15038 | { |
15039 | (set) 2>&1 | | |
15040 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
15041 | *ac_space=\ *) | |
15042 | # `set' does not quote correctly, so add quotes (double-quote | |
15043 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
15044 | sed -n \ | |
15045 | "s/'/'\\\\''/g; | |
15046 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
15047 | ;; | |
15048 | *) | |
15049 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
15050 | sed -n \ | |
15051 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
15052 | ;; | |
15053 | esac; | |
15054 | } | | |
15055 | sed ' | |
15056 | t clear | |
15057 | : clear | |
15058 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
15059 | t end | |
15060 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
15061 | : end' >>confcache | |
15062 | if cmp -s $cache_file confcache; then :; else | |
739457f4 | 15063 | if test -w $cache_file; then |
db04fc41 RC |
15064 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
15065 | cat confcache >$cache_file | |
739457f4 CF |
15066 | else |
15067 | echo "not updating unwritable cache $cache_file" | |
15068 | fi | |
15069 | fi | |
15070 | rm -f confcache | |
15071 | ||
739457f4 CF |
15072 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15073 | # Let make expand exec_prefix. | |
15074 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15075 | ||
db04fc41 RC |
15076 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
15077 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15078 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15079 | # (actually we leave an empty line to preserve line numbers). | |
739457f4 | 15080 | if test "x$srcdir" = x.; then |
db04fc41 RC |
15081 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
15082 | s/:*\$(srcdir):*/:/; | |
15083 | s/:*\${srcdir}:*/:/; | |
15084 | s/:*@srcdir@:*/:/; | |
15085 | s/^\([^=]*=[ ]*\):*/\1/; | |
15086 | s/:*$//; | |
15087 | s/^[^=]*=[ ]*$//; | |
15088 | }' | |
739457f4 CF |
15089 | fi |
15090 | ||
739457f4 CF |
15091 | # Transform confdefs.h into DEFS. |
15092 | # Protect against shell expansion while executing Makefile rules. | |
15093 | # Protect against Makefile macro expansion. | |
db04fc41 RC |
15094 | # |
15095 | # If the first sed substitution is executed (which looks for macros that | |
15096 | # take arguments), then we branch to the quote section. Otherwise, | |
15097 | # look for a macro that doesn't take arguments. | |
15098 | cat >confdef2opt.sed <<\_ACEOF | |
15099 | t clear | |
15100 | : clear | |
15101 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g | |
15102 | t quote | |
15103 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g | |
15104 | t quote | |
15105 | d | |
15106 | : quote | |
15107 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g | |
15108 | s,\[,\\&,g | |
15109 | s,\],\\&,g | |
15110 | s,\$,$$,g | |
15111 | p | |
15112 | _ACEOF | |
15113 | # We use echo to avoid assuming a particular line-breaking character. | |
15114 | # The extra dot is to prevent the shell from consuming trailing | |
15115 | # line-breaks from the sub-command output. A line-break within | |
15116 | # single-quotes doesn't work because, if this script is created in a | |
15117 | # platform that uses two characters for line-breaks (e.g., DOS), tr | |
15118 | # would break. | |
15119 | ac_LF_and_DOT=`echo; echo .` | |
15120 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` | |
15121 | rm -f confdef2opt.sed | |
739457f4 | 15122 | |
db04fc41 | 15123 | |
f6100b6f RC |
15124 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
15125 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
15126 | Usually this means the macro was only invoked conditionally." >&5 | |
15127 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
15128 | Usually this means the macro was only invoked conditionally." >&2;} | |
15129 | { (exit 1); exit 1; }; } | |
15130 | fi | |
15131 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
15132 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
15133 | Usually this means the macro was only invoked conditionally." >&5 | |
15134 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
15135 | Usually this means the macro was only invoked conditionally." >&2;} | |
15136 | { (exit 1); exit 1; }; } | |
15137 | fi | |
db04fc41 RC |
15138 | |
15139 | : ${CONFIG_STATUS=./config.status} | |
15140 | ac_clean_files_save=$ac_clean_files | |
15141 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
15142 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
15143 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15144 | cat >$CONFIG_STATUS <<_ACEOF | |
15145 | #! $SHELL | |
15146 | # Generated by $as_me. | |
739457f4 | 15147 | # Run this file to recreate the current configuration. |
739457f4 | 15148 | # Compiler output produced by configure, useful for debugging |
db04fc41 | 15149 | # configure, is in config.log if it exists. |
739457f4 | 15150 | |
db04fc41 RC |
15151 | debug=false |
15152 | SHELL=\${CONFIG_SHELL-$SHELL} | |
15153 | _ACEOF | |
15154 | ||
15155 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15156 | ||
15157 | ## --------------------- ## | |
15158 | ## M4sh Initialization. ## | |
15159 | ## --------------------- ## | |
15160 | ||
15161 | # Be Bourne compatible | |
15162 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
15163 | emulate sh | |
15164 | NULLCMD=: | |
15165 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
15166 | set -o posix | |
15167 | fi | |
15168 | ||
15169 | # NLS nuisances. | |
15170 | # Support unset when possible. | |
15171 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
15172 | as_unset=unset | |
15173 | else | |
15174 | as_unset=false | |
15175 | fi | |
15176 | ||
15177 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | |
15178 | { $as_unset LANG || test "${LANG+set}" != set; } || | |
15179 | { LANG=C; export LANG; } | |
15180 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | |
15181 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | |
15182 | { LC_ALL=C; export LC_ALL; } | |
15183 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | |
15184 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | |
15185 | { LC_TIME=C; export LC_TIME; } | |
15186 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | |
15187 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | |
15188 | { LC_CTYPE=C; export LC_CTYPE; } | |
15189 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | |
15190 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | |
15191 | { LANGUAGE=C; export LANGUAGE; } | |
15192 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | |
15193 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | |
15194 | { LC_COLLATE=C; export LC_COLLATE; } | |
15195 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | |
15196 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | |
15197 | { LC_NUMERIC=C; export LC_NUMERIC; } | |
15198 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | |
15199 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | |
15200 | { LC_MESSAGES=C; export LC_MESSAGES; } | |
15201 | ||
15202 | ||
15203 | # Name of the executable. | |
15204 | as_me=`(basename "$0") 2>/dev/null || | |
15205 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
15206 | X"$0" : 'X\(//\)$' \| \ | |
15207 | X"$0" : 'X\(/\)$' \| \ | |
15208 | . : '\(.\)' 2>/dev/null || | |
15209 | echo X/"$0" | | |
15210 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
15211 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
15212 | /^X\/\(\/\).*/{ s//\1/; q; } | |
15213 | s/.*/./; q'` | |
15214 | ||
15215 | # PATH needs CR, and LINENO needs CR and PATH. | |
15216 | # Avoid depending upon Character Ranges. | |
15217 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15218 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15219 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15220 | as_cr_digits='0123456789' | |
15221 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15222 | ||
15223 | # The user is always right. | |
15224 | if test "${PATH_SEPARATOR+set}" != set; then | |
15225 | echo "#! /bin/sh" >conftest.sh | |
15226 | echo "exit 0" >>conftest.sh | |
15227 | chmod +x conftest.sh | |
15228 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | |
15229 | PATH_SEPARATOR=';' | |
15230 | else | |
15231 | PATH_SEPARATOR=: | |
15232 | fi | |
15233 | rm -f conftest.sh | |
15234 | fi | |
15235 | ||
15236 | ||
15237 | as_lineno_1=$LINENO | |
15238 | as_lineno_2=$LINENO | |
15239 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
15240 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
15241 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
15242 | # Find who we are. Look in the path if we contain no path at all | |
15243 | # relative or not. | |
15244 | case $0 in | |
15245 | *[\\/]* ) as_myself=$0 ;; | |
15246 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15247 | for as_dir in $PATH | |
15248 | do | |
15249 | IFS=$as_save_IFS | |
15250 | test -z "$as_dir" && as_dir=. | |
15251 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15252 | done | |
15253 | ||
15254 | ;; | |
15255 | esac | |
15256 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15257 | # in which case we are not to be found in the path. | |
15258 | if test "x$as_myself" = x; then | |
15259 | as_myself=$0 | |
15260 | fi | |
15261 | if test ! -f "$as_myself"; then | |
15262 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
15263 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
15264 | { (exit 1); exit 1; }; } | |
15265 | fi | |
15266 | case $CONFIG_SHELL in | |
15267 | '') | |
15268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15269 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
15270 | do | |
15271 | IFS=$as_save_IFS | |
15272 | test -z "$as_dir" && as_dir=. | |
15273 | for as_base in sh bash ksh sh5; do | |
15274 | case $as_dir in | |
15275 | /*) | |
15276 | if ("$as_dir/$as_base" -c ' | |
15277 | as_lineno_1=$LINENO | |
15278 | as_lineno_2=$LINENO | |
15279 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
15280 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
15281 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
15282 | CONFIG_SHELL=$as_dir/$as_base | |
15283 | export CONFIG_SHELL | |
15284 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
15285 | fi;; | |
15286 | esac | |
15287 | done | |
15288 | done | |
15289 | ;; | |
15290 | esac | |
15291 | ||
15292 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
15293 | # uniformly replaced by the line number. The first 'sed' inserts a | |
15294 | # line-number line before each line; the second 'sed' does the real | |
15295 | # work. The second script uses 'N' to pair each line-number line | |
15296 | # with the numbered line, and appends trailing '-' during | |
15297 | # substitution so that $LINENO is not a special case at line end. | |
15298 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
15299 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
15300 | sed '=' <$as_myself | | |
15301 | sed ' | |
15302 | N | |
15303 | s,$,-, | |
15304 | : loop | |
15305 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
15306 | t loop | |
15307 | s,-$,, | |
15308 | s,^['$as_cr_digits']*\n,, | |
15309 | ' >$as_me.lineno && | |
15310 | chmod +x $as_me.lineno || | |
15311 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
15312 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
15313 | { (exit 1); exit 1; }; } | |
15314 | ||
15315 | # Don't try to exec as it changes $[0], causing all sort of problems | |
15316 | # (the dirname of $[0] is not the place where we might find the | |
15317 | # original and so on. Autoconf is especially sensible to this). | |
15318 | . ./$as_me.lineno | |
15319 | # Exit status is that of the last command. | |
15320 | exit | |
15321 | } | |
15322 | ||
15323 | ||
15324 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
15325 | *c*,-n*) ECHO_N= ECHO_C=' | |
15326 | ' ECHO_T=' ' ;; | |
15327 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
15328 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
15329 | esac | |
15330 | ||
15331 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
15332 | as_expr=expr | |
15333 | else | |
15334 | as_expr=false | |
15335 | fi | |
15336 | ||
15337 | rm -f conf$$ conf$$.exe conf$$.file | |
15338 | echo >conf$$.file | |
15339 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
15340 | # We could just check for DJGPP; but this test a) works b) is more generic | |
15341 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
15342 | if test -f conf$$.exe; then | |
15343 | # Don't use ln at all; we don't have any links | |
15344 | as_ln_s='cp -p' | |
15345 | else | |
15346 | as_ln_s='ln -s' | |
15347 | fi | |
15348 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15349 | as_ln_s=ln | |
15350 | else | |
15351 | as_ln_s='cp -p' | |
15352 | fi | |
15353 | rm -f conf$$ conf$$.exe conf$$.file | |
15354 | ||
15355 | as_executable_p="test -f" | |
15356 | ||
15357 | # Sed expression to map a string onto a valid CPP name. | |
15358 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
15359 | ||
15360 | # Sed expression to map a string onto a valid variable name. | |
15361 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
15362 | ||
15363 | ||
15364 | # IFS | |
15365 | # We need space, tab and new line, in precisely that order. | |
15366 | as_nl=' | |
15367 | ' | |
15368 | IFS=" $as_nl" | |
15369 | ||
15370 | # CDPATH. | |
15371 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } | |
15372 | ||
15373 | exec 6>&1 | |
15374 | ||
15375 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
15376 | # report actual input values of CONFIG_FILES etc. instead of their | |
15377 | # values after options handling. Logging --version etc. is OK. | |
15378 | exec 5>>config.log | |
15379 | { | |
15380 | echo | |
15381 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15382 | ## Running $as_me. ## | |
15383 | _ASBOX | |
15384 | } >&5 | |
15385 | cat >&5 <<_CSEOF | |
15386 | ||
15387 | This file was extended by $as_me, which was | |
15388 | generated by GNU Autoconf 2.53. Invocation command line was | |
15389 | ||
15390 | CONFIG_FILES = $CONFIG_FILES | |
15391 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15392 | CONFIG_LINKS = $CONFIG_LINKS | |
15393 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15394 | $ $0 $@ | |
15395 | ||
15396 | _CSEOF | |
15397 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
15398 | echo >&5 | |
15399 | _ACEOF | |
15400 | ||
15401 | # Files that config.status was made for. | |
15402 | if test -n "$ac_config_files"; then | |
15403 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
15404 | fi | |
15405 | ||
15406 | if test -n "$ac_config_headers"; then | |
15407 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
15408 | fi | |
15409 | ||
15410 | if test -n "$ac_config_links"; then | |
15411 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
15412 | fi | |
15413 | ||
15414 | if test -n "$ac_config_commands"; then | |
15415 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
15416 | fi | |
15417 | ||
15418 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15419 | ||
15420 | ac_cs_usage="\ | |
15421 | \`$as_me' instantiates files from templates according to the | |
15422 | current configuration. | |
15423 | ||
15424 | Usage: $0 [OPTIONS] [FILE]... | |
15425 | ||
15426 | -h, --help print this help, then exit | |
15427 | -V, --version print version number, then exit | |
15428 | -d, --debug don't remove temporary files | |
15429 | --recheck update $as_me by reconfiguring in the same conditions | |
15430 | --file=FILE[:TEMPLATE] | |
15431 | instantiate the configuration file FILE | |
15432 | ||
15433 | Configuration files: | |
15434 | $config_files | |
15435 | ||
f6100b6f RC |
15436 | Configuration commands: |
15437 | $config_commands | |
15438 | ||
db04fc41 RC |
15439 | Report bugs to <bug-autoconf@gnu.org>." |
15440 | _ACEOF | |
15441 | ||
15442 | cat >>$CONFIG_STATUS <<_ACEOF | |
15443 | ac_cs_version="\\ | |
15444 | config.status | |
15445 | configured by $0, generated by GNU Autoconf 2.53, | |
15446 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
15447 | ||
15448 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
15449 | Free Software Foundation, Inc. | |
15450 | This config.status script is free software; the Free Software Foundation | |
15451 | gives unlimited permission to copy, distribute and modify it." | |
15452 | srcdir=$srcdir | |
15453 | INSTALL="$INSTALL" | |
15454 | _ACEOF | |
15455 | ||
15456 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15457 | # If no file are specified by the user, then we need to provide default | |
15458 | # value. By we need to know if files were specified by the user. | |
15459 | ac_need_defaults=: | |
15460 | while test $# != 0 | |
739457f4 | 15461 | do |
db04fc41 RC |
15462 | case $1 in |
15463 | --*=*) | |
15464 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
15465 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
15466 | shift | |
15467 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
15468 | shift | |
15469 | ;; | |
15470 | -*);; | |
15471 | *) # This is not an option, so the user has probably given explicit | |
15472 | # arguments. | |
15473 | ac_need_defaults=false;; | |
15474 | esac | |
15475 | ||
15476 | case $1 in | |
15477 | # Handling of the options. | |
15478 | _ACEOF | |
15479 | cat >>$CONFIG_STATUS <<_ACEOF | |
739457f4 | 15480 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
db04fc41 RC |
15481 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
15482 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
15483 | _ACEOF | |
15484 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15485 | --version | --vers* | -V ) | |
15486 | echo "$ac_cs_version"; exit 0 ;; | |
15487 | --he | --h) | |
15488 | # Conflict between --help and --header | |
15489 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
15490 | Try \`$0 --help' for more information." >&5 | |
15491 | echo "$as_me: error: ambiguous option: $1 | |
15492 | Try \`$0 --help' for more information." >&2;} | |
15493 | { (exit 1); exit 1; }; };; | |
15494 | --help | --hel | -h ) | |
15495 | echo "$ac_cs_usage"; exit 0 ;; | |
15496 | --debug | --d* | -d ) | |
15497 | debug=: ;; | |
15498 | --file | --fil | --fi | --f ) | |
15499 | shift | |
15500 | CONFIG_FILES="$CONFIG_FILES $1" | |
15501 | ac_need_defaults=false;; | |
15502 | --header | --heade | --head | --hea ) | |
15503 | shift | |
15504 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
15505 | ac_need_defaults=false;; | |
15506 | ||
15507 | # This is an error. | |
15508 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
15509 | Try \`$0 --help' for more information." >&5 | |
15510 | echo "$as_me: error: unrecognized option: $1 | |
15511 | Try \`$0 --help' for more information." >&2;} | |
15512 | { (exit 1); exit 1; }; } ;; | |
15513 | ||
15514 | *) ac_config_targets="$ac_config_targets $1" ;; | |
15515 | ||
739457f4 | 15516 | esac |
db04fc41 | 15517 | shift |
739457f4 CF |
15518 | done |
15519 | ||
db04fc41 | 15520 | _ACEOF |
739457f4 | 15521 | |
f6100b6f RC |
15522 | cat >>$CONFIG_STATUS <<_ACEOF |
15523 | # | |
15524 | # INIT-COMMANDS section. | |
15525 | # | |
15526 | ||
15527 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
739457f4 | 15528 | |
f6100b6f | 15529 | _ACEOF |
739457f4 | 15530 | |
db04fc41 RC |
15531 | |
15532 | ||
15533 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15534 | for ac_config_target in $ac_config_targets | |
15535 | do | |
15536 | case "$ac_config_target" in | |
15537 | # Handling of arguments. | |
15538 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
f6100b6f | 15539 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
db04fc41 RC |
15540 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
15541 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
15542 | { (exit 1); exit 1; }; };; | |
15543 | esac | |
15544 | done | |
15545 | ||
15546 | # If the user did not use the arguments to specify the items to instantiate, | |
15547 | # then the envvar interface is used. Set only those that are not. | |
15548 | # We use the long form for the default assignment because of an extremely | |
15549 | # bizarre bug on SunOS 4.1.3. | |
15550 | if $ac_need_defaults; then | |
15551 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
f6100b6f | 15552 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
db04fc41 RC |
15553 | fi |
15554 | ||
15555 | # Create a temporary directory, and hook for its removal unless debugging. | |
15556 | $debug || | |
15557 | { | |
15558 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
15559 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
15560 | } | |
15561 | ||
15562 | # Create a (secure) tmp directory for tmp files. | |
15563 | : ${TMPDIR=/tmp} | |
15564 | { | |
15565 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
15566 | test -n "$tmp" && test -d "$tmp" | |
15567 | } || | |
15568 | { | |
15569 | tmp=$TMPDIR/cs$$-$RANDOM | |
15570 | (umask 077 && mkdir $tmp) | |
15571 | } || | |
15572 | { | |
15573 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
15574 | { (exit 1); exit 1; } | |
15575 | } | |
15576 | ||
15577 | _ACEOF | |
15578 | ||
15579 | cat >>$CONFIG_STATUS <<_ACEOF | |
15580 | ||
15581 | # | |
15582 | # CONFIG_FILES section. | |
15583 | # | |
15584 | ||
15585 | # No need to generate the scripts if there are no CONFIG_FILES. | |
15586 | # This happens for instance when ./config.status config.h | |
15587 | if test -n "\$CONFIG_FILES"; then | |
15588 | # Protect against being on the right side of a sed subst in config.status. | |
15589 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
15590 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
15591 | s,@SHELL@,$SHELL,;t t | |
15592 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
15593 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
15594 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
15595 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
15596 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
15597 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
15598 | s,@exec_prefix@,$exec_prefix,;t t | |
15599 | s,@prefix@,$prefix,;t t | |
15600 | s,@program_transform_name@,$program_transform_name,;t t | |
15601 | s,@bindir@,$bindir,;t t | |
15602 | s,@sbindir@,$sbindir,;t t | |
15603 | s,@libexecdir@,$libexecdir,;t t | |
15604 | s,@datadir@,$datadir,;t t | |
15605 | s,@sysconfdir@,$sysconfdir,;t t | |
15606 | s,@sharedstatedir@,$sharedstatedir,;t t | |
15607 | s,@localstatedir@,$localstatedir,;t t | |
15608 | s,@libdir@,$libdir,;t t | |
15609 | s,@includedir@,$includedir,;t t | |
15610 | s,@oldincludedir@,$oldincludedir,;t t | |
15611 | s,@infodir@,$infodir,;t t | |
15612 | s,@mandir@,$mandir,;t t | |
15613 | s,@build_alias@,$build_alias,;t t | |
15614 | s,@host_alias@,$host_alias,;t t | |
15615 | s,@target_alias@,$target_alias,;t t | |
15616 | s,@DEFS@,$DEFS,;t t | |
15617 | s,@ECHO_C@,$ECHO_C,;t t | |
15618 | s,@ECHO_N@,$ECHO_N,;t t | |
15619 | s,@ECHO_T@,$ECHO_T,;t t | |
15620 | s,@LIBS@,$LIBS,;t t | |
f6100b6f RC |
15621 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
15622 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
15623 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
15624 | s,@PACKAGE@,$PACKAGE,;t t | |
15625 | s,@VERSION@,$VERSION,;t t | |
15626 | s,@ACLOCAL@,$ACLOCAL,;t t | |
15627 | s,@AUTOCONF@,$AUTOCONF,;t t | |
15628 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
15629 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
15630 | s,@MAKEINFO@,$MAKEINFO,;t t | |
15631 | s,@AMTAR@,$AMTAR,;t t | |
15632 | s,@install_sh@,$install_sh,;t t | |
15633 | s,@STRIP@,$STRIP,;t t | |
15634 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
15635 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
15636 | s,@AWK@,$AWK,;t t | |
15637 | s,@SET_MAKE@,$SET_MAKE,;t t | |
15638 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
15639 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
15640 | s,@MAINT@,$MAINT,;t t | |
db04fc41 RC |
15641 | s,@CXX@,$CXX,;t t |
15642 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
15643 | s,@LDFLAGS@,$LDFLAGS,;t t | |
15644 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
15645 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
15646 | s,@EXEEXT@,$EXEEXT,;t t | |
15647 | s,@OBJEXT@,$OBJEXT,;t t | |
f6100b6f RC |
15648 | s,@DEPDIR@,$DEPDIR,;t t |
15649 | s,@am__include@,$am__include,;t t | |
15650 | s,@am__quote@,$am__quote,;t t | |
15651 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
15652 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
15653 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
15654 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t | |
db04fc41 RC |
15655 | s,@CC@,$CC,;t t |
15656 | s,@CFLAGS@,$CFLAGS,;t t | |
15657 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
f6100b6f RC |
15658 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
15659 | s,@LEX@,$LEX,;t t | |
15660 | s,@LEXLIB@,$LEXLIB,;t t | |
15661 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | |
15662 | s,@YACC@,$YACC,;t t | |
db04fc41 RC |
15663 | s,@build@,$build,;t t |
15664 | s,@build_cpu@,$build_cpu,;t t | |
15665 | s,@build_vendor@,$build_vendor,;t t | |
15666 | s,@build_os@,$build_os,;t t | |
15667 | s,@host@,$host,;t t | |
15668 | s,@host_cpu@,$host_cpu,;t t | |
15669 | s,@host_vendor@,$host_vendor,;t t | |
15670 | s,@host_os@,$host_os,;t t | |
6908b7d7 RC |
15671 | s,@LN_S@,$LN_S,;t t |
15672 | s,@ECHO@,$ECHO,;t t | |
15673 | s,@RANLIB@,$RANLIB,;t t | |
15674 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
15675 | s,@CPP@,$CPP,;t t | |
15676 | s,@CXXCPP@,$CXXCPP,;t t | |
15677 | s,@LIBTOOL@,$LIBTOOL,;t t | |
db04fc41 RC |
15678 | s,@WINDRES@,$WINDRES,;t t |
15679 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
db04fc41 | 15680 | s,@subdirs@,$subdirs,;t t |
739457f4 | 15681 | CEOF |
db04fc41 RC |
15682 | |
15683 | _ACEOF | |
15684 | ||
15685 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15686 | # Split the substitutions into bite-sized pieces for seds with | |
15687 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
15688 | ac_max_sed_lines=48 | |
15689 | ac_sed_frag=1 # Number of current file. | |
15690 | ac_beg=1 # First line for current file. | |
15691 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
15692 | ac_more_lines=: | |
15693 | ac_sed_cmds= | |
15694 | while $ac_more_lines; do | |
15695 | if test $ac_beg -gt 1; then | |
15696 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
15697 | else | |
15698 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
15699 | fi | |
15700 | if test ! -s $tmp/subs.frag; then | |
15701 | ac_more_lines=false | |
739457f4 | 15702 | else |
db04fc41 RC |
15703 | # The purpose of the label and of the branching condition is to |
15704 | # speed up the sed processing (if there are no `@' at all, there | |
15705 | # is no need to browse any of the substitutions). | |
15706 | # These are the two extra sed commands mentioned above. | |
15707 | (echo ':t | |
15708 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
15709 | if test -z "$ac_sed_cmds"; then | |
15710 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
15711 | else | |
15712 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
15713 | fi | |
15714 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
15715 | ac_beg=$ac_end | |
15716 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
739457f4 | 15717 | fi |
db04fc41 RC |
15718 | done |
15719 | if test -z "$ac_sed_cmds"; then | |
15720 | ac_sed_cmds=cat | |
739457f4 | 15721 | fi |
db04fc41 | 15722 | fi # test -n "$CONFIG_FILES" |
739457f4 | 15723 | |
db04fc41 RC |
15724 | _ACEOF |
15725 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15726 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
739457f4 | 15727 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
db04fc41 RC |
15728 | case $ac_file in |
15729 | - | *:- | *:-:* ) # input from stdin | |
15730 | cat >$tmp/stdin | |
15731 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
15732 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
15733 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
15734 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
15735 | * ) ac_file_in=$ac_file.in ;; | |
15736 | esac | |
15737 | ||
15738 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
15739 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
15740 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15741 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15742 | X"$ac_file" : 'X\(//\)$' \| \ | |
15743 | X"$ac_file" : 'X\(/\)' \| \ | |
15744 | . : '\(.\)' 2>/dev/null || | |
15745 | echo X"$ac_file" | | |
15746 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15747 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15748 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15749 | /^X\(\/\).*/{ s//\1/; q; } | |
15750 | s/.*/./; q'` | |
15751 | { case "$ac_dir" in | |
15752 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
15753 | *) as_incr_dir=.;; | |
15754 | esac | |
15755 | as_dummy="$ac_dir" | |
15756 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
15757 | case $as_mkdir_dir in | |
15758 | # Skip DOS drivespec | |
15759 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
15760 | *) | |
15761 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
15762 | test -d "$as_incr_dir" || | |
15763 | mkdir "$as_incr_dir" || | |
15764 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | |
15765 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | |
15766 | { (exit 1); exit 1; }; } | |
15767 | ;; | |
739457f4 | 15768 | esac |
db04fc41 | 15769 | done; } |
739457f4 | 15770 | |
db04fc41 | 15771 | ac_builddir=. |
739457f4 | 15772 | |
db04fc41 RC |
15773 | if test "$ac_dir" != .; then |
15774 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
15775 | # A "../" for each directory in $ac_dir_suffix. | |
15776 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
15777 | else | |
15778 | ac_dir_suffix= ac_top_builddir= | |
15779 | fi | |
739457f4 | 15780 | |
db04fc41 RC |
15781 | case $srcdir in |
15782 | .) # No --srcdir option. We are building in place. | |
15783 | ac_srcdir=. | |
15784 | if test -z "$ac_top_builddir"; then | |
15785 | ac_top_srcdir=. | |
15786 | else | |
15787 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
15788 | fi ;; | |
15789 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
15790 | ac_srcdir=$srcdir$ac_dir_suffix; | |
15791 | ac_top_srcdir=$srcdir ;; | |
739457f4 | 15792 | *) # Relative path. |
db04fc41 RC |
15793 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
15794 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
15795 | esac | |
15796 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
15797 | # absolute. | |
15798 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
15799 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
15800 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
15801 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
739457f4 | 15802 | |
739457f4 | 15803 | |
db04fc41 RC |
15804 | case $INSTALL in |
15805 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
15806 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
739457f4 CF |
15807 | esac |
15808 | ||
db04fc41 RC |
15809 | if test x"$ac_file" != x-; then |
15810 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
15811 | echo "$as_me: creating $ac_file" >&6;} | |
15812 | rm -f "$ac_file" | |
15813 | fi | |
15814 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
15815 | # use $as_me), people would be surprised to read: | |
15816 | # /* config.h. Generated by config.status. */ | |
15817 | if test x"$ac_file" = x-; then | |
15818 | configure_input= | |
15819 | else | |
15820 | configure_input="$ac_file. " | |
15821 | fi | |
15822 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
15823 | sed 's,.*/,,'` by configure." | |
15824 | ||
15825 | # First look for the input files in the build tree, otherwise in the | |
15826 | # src tree. | |
15827 | ac_file_inputs=`IFS=: | |
15828 | for f in $ac_file_in; do | |
15829 | case $f in | |
15830 | -) echo $tmp/stdin ;; | |
15831 | [\\/$]*) | |
15832 | # Absolute (can't be DOS-style, as IFS=:) | |
15833 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
15834 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
15835 | { (exit 1); exit 1; }; } | |
15836 | echo $f;; | |
15837 | *) # Relative | |
15838 | if test -f "$f"; then | |
15839 | # Build tree | |
15840 | echo $f | |
15841 | elif test -f "$srcdir/$f"; then | |
15842 | # Source tree | |
15843 | echo $srcdir/$f | |
15844 | else | |
15845 | # /dev/null tree | |
15846 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
15847 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
15848 | { (exit 1); exit 1; }; } | |
15849 | fi;; | |
15850 | esac | |
15851 | done` || { (exit 1); exit 1; } | |
15852 | _ACEOF | |
15853 | cat >>$CONFIG_STATUS <<_ACEOF | |
15854 | sed "$ac_vpsub | |
15855 | $extrasub | |
15856 | _ACEOF | |
15857 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15858 | :t | |
15859 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
15860 | s,@configure_input@,$configure_input,;t t | |
15861 | s,@srcdir@,$ac_srcdir,;t t | |
15862 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
15863 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
15864 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
15865 | s,@builddir@,$ac_builddir,;t t | |
15866 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
15867 | s,@top_builddir@,$ac_top_builddir,;t t | |
15868 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
15869 | s,@INSTALL@,$ac_INSTALL,;t t | |
15870 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
15871 | rm -f $tmp/stdin | |
15872 | if test x"$ac_file" != x-; then | |
15873 | mv $tmp/out $ac_file | |
15874 | else | |
15875 | cat $tmp/out | |
15876 | rm -f $tmp/out | |
15877 | fi | |
739457f4 | 15878 | |
db04fc41 RC |
15879 | done |
15880 | _ACEOF | |
f6100b6f RC |
15881 | cat >>$CONFIG_STATUS <<\_ACEOF |
15882 | ||
15883 | # | |
15884 | # CONFIG_COMMANDS section. | |
15885 | # | |
15886 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
15887 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
15888 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
15889 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
15890 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15891 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
15892 | X"$ac_dest" : 'X\(//\)$' \| \ | |
15893 | X"$ac_dest" : 'X\(/\)' \| \ | |
15894 | . : '\(.\)' 2>/dev/null || | |
15895 | echo X"$ac_dest" | | |
15896 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15897 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15898 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15899 | /^X\(\/\).*/{ s//\1/; q; } | |
15900 | s/.*/./; q'` | |
15901 | ac_builddir=. | |
15902 | ||
15903 | if test "$ac_dir" != .; then | |
15904 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
15905 | # A "../" for each directory in $ac_dir_suffix. | |
15906 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
15907 | else | |
15908 | ac_dir_suffix= ac_top_builddir= | |
15909 | fi | |
15910 | ||
15911 | case $srcdir in | |
15912 | .) # No --srcdir option. We are building in place. | |
15913 | ac_srcdir=. | |
15914 | if test -z "$ac_top_builddir"; then | |
15915 | ac_top_srcdir=. | |
15916 | else | |
15917 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
15918 | fi ;; | |
15919 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
15920 | ac_srcdir=$srcdir$ac_dir_suffix; | |
15921 | ac_top_srcdir=$srcdir ;; | |
15922 | *) # Relative path. | |
15923 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
15924 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
15925 | esac | |
15926 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
15927 | # absolute. | |
15928 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
15929 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
15930 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
15931 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
15932 | ||
15933 | ||
15934 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
15935 | echo "$as_me: executing $ac_dest commands" >&6;} | |
15936 | case $ac_dest in | |
15937 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
15938 | # Strip MF so we end up with the name of the file. | |
15939 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
15940 | if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then | |
15941 | dirpart=`(dirname "$mf") 2>/dev/null || | |
15942 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15943 | X"$mf" : 'X\(//\)[^/]' \| \ | |
15944 | X"$mf" : 'X\(//\)$' \| \ | |
15945 | X"$mf" : 'X\(/\)' \| \ | |
15946 | . : '\(.\)' 2>/dev/null || | |
15947 | echo X"$mf" | | |
15948 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15949 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15950 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15951 | /^X\(\/\).*/{ s//\1/; q; } | |
15952 | s/.*/./; q'` | |
15953 | else | |
15954 | continue | |
15955 | fi | |
15956 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue | |
15957 | # Extract the definition of DEP_FILES from the Makefile without | |
15958 | # running `make'. | |
15959 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` | |
15960 | test -z "$DEPDIR" && continue | |
15961 | # When using ansi2knr, U may be empty or an underscore; expand it | |
15962 | U=`sed -n -e '/^U = / s///p' < "$mf"` | |
15963 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" | |
15964 | # We invoke sed twice because it is the simplest approach to | |
15965 | # changing $(DEPDIR) to its actual value in the expansion. | |
15966 | for file in `sed -n -e ' | |
15967 | /^DEP_FILES = .*\\\\$/ { | |
15968 | s/^DEP_FILES = // | |
15969 | :loop | |
15970 | s/\\\\$// | |
15971 | p | |
15972 | n | |
15973 | /\\\\$/ b loop | |
15974 | p | |
15975 | } | |
15976 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ | |
15977 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
15978 | # Make sure the directory exists. | |
15979 | test -f "$dirpart/$file" && continue | |
15980 | fdir=`(dirname "$file") 2>/dev/null || | |
15981 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15982 | X"$file" : 'X\(//\)[^/]' \| \ | |
15983 | X"$file" : 'X\(//\)$' \| \ | |
15984 | X"$file" : 'X\(/\)' \| \ | |
15985 | . : '\(.\)' 2>/dev/null || | |
15986 | echo X"$file" | | |
15987 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15988 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15989 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15990 | /^X\(\/\).*/{ s//\1/; q; } | |
15991 | s/.*/./; q'` | |
15992 | { case $dirpart/$fdir in | |
15993 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
15994 | *) as_incr_dir=.;; | |
15995 | esac | |
15996 | as_dummy=$dirpart/$fdir | |
15997 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
15998 | case $as_mkdir_dir in | |
15999 | # Skip DOS drivespec | |
16000 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
16001 | *) | |
16002 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
16003 | test -d "$as_incr_dir" || | |
16004 | mkdir "$as_incr_dir" || | |
16005 | { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5 | |
16006 | echo "$as_me: error: cannot create $dirpart/$fdir" >&2;} | |
16007 | { (exit 1); exit 1; }; } | |
16008 | ;; | |
16009 | esac | |
16010 | done; } | |
16011 | ||
16012 | # echo "creating $dirpart/$file" | |
16013 | echo '# dummy' > "$dirpart/$file" | |
16014 | done | |
16015 | done | |
16016 | ;; | |
16017 | esac | |
16018 | done | |
16019 | _ACEOF | |
739457f4 | 16020 | |
db04fc41 | 16021 | cat >>$CONFIG_STATUS <<\_ACEOF |
739457f4 | 16022 | |
db04fc41 RC |
16023 | { (exit 0); exit 0; } |
16024 | _ACEOF | |
739457f4 | 16025 | chmod +x $CONFIG_STATUS |
db04fc41 RC |
16026 | ac_clean_files=$ac_clean_files_save |
16027 | ||
16028 | ||
16029 | # configure is writing to config.log, and then calls config.status. | |
16030 | # config.status does its own redirection, appending to config.log. | |
16031 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16032 | # by configure, so config.status won't be able to write to it; its | |
16033 | # output is simply discarded. So we exec the FD to /dev/null, | |
16034 | # effectively closing config.log, so it can be properly (re)opened and | |
16035 | # appended to by config.status. When coming back to configure, we | |
16036 | # need to make the FD available again. | |
16037 | if test "$no_create" != yes; then | |
16038 | ac_cs_success=: | |
16039 | exec 5>/dev/null | |
16040 | $SHELL $CONFIG_STATUS || ac_cs_success=false | |
16041 | exec 5>>config.log | |
16042 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16043 | # would make configure fail if this is the last instruction. | |
16044 | $ac_cs_success || { (exit 1); exit 1; } | |
16045 | fi | |
739457f4 | 16046 | |
db04fc41 RC |
16047 | # |
16048 | # CONFIG_SUBDIRS section. | |
16049 | # | |
739457f4 CF |
16050 | if test "$no_recursion" != yes; then |
16051 | ||
16052 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
16053 | ac_sub_configure_args= | |
16054 | ac_prev= | |
16055 | for ac_arg in $ac_configure_args; do | |
16056 | if test -n "$ac_prev"; then | |
16057 | ac_prev= | |
16058 | continue | |
16059 | fi | |
db04fc41 | 16060 | case $ac_arg in |
739457f4 CF |
16061 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
16062 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
16063 | ac_prev=cache_file ;; | |
16064 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
db04fc41 RC |
16065 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
16066 | | --c=*) | |
16067 | ;; | |
16068 | --config-cache | -C) | |
739457f4 CF |
16069 | ;; |
16070 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
16071 | ac_prev=srcdir ;; | |
16072 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
16073 | ;; | |
db04fc41 RC |
16074 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
16075 | ac_prev=prefix ;; | |
16076 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
16077 | ;; | |
739457f4 CF |
16078 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
16079 | esac | |
16080 | done | |
16081 | ||
db04fc41 RC |
16082 | # Always prepend --prefix to ensure using the same prefix |
16083 | # in subdir configurations. | |
16084 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
16085 | ||
16086 | ac_popdir=`pwd` | |
16087 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
739457f4 CF |
16088 | |
16089 | # Do not complain, so a configure script can configure whichever | |
16090 | # parts of a large source tree are present. | |
db04fc41 | 16091 | test -d $srcdir/$ac_dir || continue |
739457f4 | 16092 | |
db04fc41 RC |
16093 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
16094 | echo "$as_me: configuring in $ac_dir" >&6;} | |
16095 | { case "$ac_dir" in | |
16096 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
16097 | *) as_incr_dir=.;; | |
16098 | esac | |
16099 | as_dummy="$ac_dir" | |
16100 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
16101 | case $as_mkdir_dir in | |
16102 | # Skip DOS drivespec | |
16103 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
739457f4 | 16104 | *) |
db04fc41 RC |
16105 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
16106 | test -d "$as_incr_dir" || | |
16107 | mkdir "$as_incr_dir" || | |
16108 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | |
16109 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | |
16110 | { (exit 1); exit 1; }; } | |
16111 | ;; | |
16112 | esac | |
16113 | done; } | |
739457f4 | 16114 | |
db04fc41 | 16115 | ac_builddir=. |
739457f4 | 16116 | |
db04fc41 RC |
16117 | if test "$ac_dir" != .; then |
16118 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
16119 | # A "../" for each directory in $ac_dir_suffix. | |
16120 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
16121 | else | |
16122 | ac_dir_suffix= ac_top_builddir= | |
16123 | fi | |
16124 | ||
16125 | case $srcdir in | |
16126 | .) # No --srcdir option. We are building in place. | |
16127 | ac_srcdir=. | |
16128 | if test -z "$ac_top_builddir"; then | |
16129 | ac_top_srcdir=. | |
16130 | else | |
16131 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
16132 | fi ;; | |
16133 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
16134 | ac_srcdir=$srcdir$ac_dir_suffix; | |
16135 | ac_top_srcdir=$srcdir ;; | |
16136 | *) # Relative path. | |
16137 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
16138 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
16139 | esac | |
16140 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
16141 | # absolute. | |
16142 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
16143 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
16144 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
16145 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
739457f4 | 16146 | |
db04fc41 RC |
16147 | |
16148 | cd $ac_dir | |
739457f4 CF |
16149 | |
16150 | # Check for guested configure; otherwise get Cygnus style configure. | |
db04fc41 RC |
16151 | if test -f $ac_srcdir/configure.gnu; then |
16152 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
16153 | elif test -f $ac_srcdir/configure; then | |
16154 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
16155 | elif test -f $ac_srcdir/configure.in; then | |
739457f4 CF |
16156 | ac_sub_configure=$ac_configure |
16157 | else | |
db04fc41 RC |
16158 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
16159 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
739457f4 CF |
16160 | ac_sub_configure= |
16161 | fi | |
16162 | ||
16163 | # The recursion is here. | |
16164 | if test -n "$ac_sub_configure"; then | |
739457f4 | 16165 | # Make the cache file name correct relative to the subdirectory. |
db04fc41 RC |
16166 | case $cache_file in |
16167 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
739457f4 | 16168 | *) # Relative path. |
db04fc41 | 16169 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
739457f4 | 16170 | esac |
739457f4 | 16171 | |
db04fc41 RC |
16172 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
16173 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
739457f4 | 16174 | # The eval makes quoting arguments work. |
db04fc41 RC |
16175 | eval $ac_sub_configure $ac_sub_configure_args \ |
16176 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | |
16177 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
16178 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
16179 | { (exit 1); exit 1; }; } | |
739457f4 CF |
16180 | fi |
16181 | ||
16182 | cd $ac_popdir | |
16183 | done | |
16184 | fi | |
16185 |