1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.59 for ThirdPartyBlas 1.0stable. |
---|
4 | # |
---|
5 | # Report bugs to <http://projects.coin-or.org/BuildTools/newticket>. |
---|
6 | # |
---|
7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
---|
8 | # This configure script is free software; the Free Software Foundation |
---|
9 | # gives unlimited permission to copy, distribute and modify it. |
---|
10 | # |
---|
11 | # |
---|
12 | # Copyright 2006 International Business Machines and others. |
---|
13 | # All Rights Reserved. |
---|
14 | # This file is part of the open source package Coin which is distributed |
---|
15 | # under the Common Public License. |
---|
16 | ## --------------------- ## |
---|
17 | ## M4sh Initialization. ## |
---|
18 | ## --------------------- ## |
---|
19 | |
---|
20 | # Be Bourne compatible |
---|
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
22 | emulate sh |
---|
23 | NULLCMD=: |
---|
24 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
25 | # is contrary to our usage. Disable this feature. |
---|
26 | alias -g '${1+"$@"}'='"$@"' |
---|
27 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
28 | set -o posix |
---|
29 | fi |
---|
30 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
31 | |
---|
32 | # Support unset when possible. |
---|
33 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
34 | as_unset=unset |
---|
35 | else |
---|
36 | as_unset=false |
---|
37 | fi |
---|
38 | |
---|
39 | |
---|
40 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
41 | $as_unset ENV MAIL MAILPATH |
---|
42 | PS1='$ ' |
---|
43 | PS2='> ' |
---|
44 | PS4='+ ' |
---|
45 | |
---|
46 | # NLS nuisances. |
---|
47 | for as_var in \ |
---|
48 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
49 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
50 | LC_TELEPHONE LC_TIME |
---|
51 | do |
---|
52 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
53 | eval $as_var=C; export $as_var |
---|
54 | else |
---|
55 | $as_unset $as_var |
---|
56 | fi |
---|
57 | done |
---|
58 | |
---|
59 | # Required to use basename. |
---|
60 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
61 | as_expr=expr |
---|
62 | else |
---|
63 | as_expr=false |
---|
64 | fi |
---|
65 | |
---|
66 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
67 | as_basename=basename |
---|
68 | else |
---|
69 | as_basename=false |
---|
70 | fi |
---|
71 | |
---|
72 | |
---|
73 | # Name of the executable. |
---|
74 | as_me=`$as_basename "$0" || |
---|
75 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
76 | X"$0" : 'X\(//\)$' \| \ |
---|
77 | X"$0" : 'X\(/\)$' \| \ |
---|
78 | . : '\(.\)' 2>/dev/null || |
---|
79 | echo X/"$0" | |
---|
80 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
81 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
82 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
83 | s/.*/./; q'` |
---|
84 | |
---|
85 | |
---|
86 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
87 | # Avoid depending upon Character Ranges. |
---|
88 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
89 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
90 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
91 | as_cr_digits='0123456789' |
---|
92 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
93 | |
---|
94 | # The user is always right. |
---|
95 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
96 | echo "#! /bin/sh" >conf$$.sh |
---|
97 | echo "exit 0" >>conf$$.sh |
---|
98 | chmod +x conf$$.sh |
---|
99 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
100 | PATH_SEPARATOR=';' |
---|
101 | else |
---|
102 | PATH_SEPARATOR=: |
---|
103 | fi |
---|
104 | rm -f conf$$.sh |
---|
105 | fi |
---|
106 | |
---|
107 | |
---|
108 | as_lineno_1=$LINENO |
---|
109 | as_lineno_2=$LINENO |
---|
110 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
111 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
112 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
113 | # Find who we are. Look in the path if we contain no path at all |
---|
114 | # relative or not. |
---|
115 | case $0 in |
---|
116 | *[\\/]* ) as_myself=$0 ;; |
---|
117 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
118 | for as_dir in $PATH |
---|
119 | do |
---|
120 | IFS=$as_save_IFS |
---|
121 | test -z "$as_dir" && as_dir=. |
---|
122 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
123 | done |
---|
124 | |
---|
125 | ;; |
---|
126 | esac |
---|
127 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
128 | # in which case we are not to be found in the path. |
---|
129 | if test "x$as_myself" = x; then |
---|
130 | as_myself=$0 |
---|
131 | fi |
---|
132 | if test ! -f "$as_myself"; then |
---|
133 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
134 | { (exit 1); exit 1; }; } |
---|
135 | fi |
---|
136 | case $CONFIG_SHELL in |
---|
137 | '') |
---|
138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
139 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
140 | do |
---|
141 | IFS=$as_save_IFS |
---|
142 | test -z "$as_dir" && as_dir=. |
---|
143 | for as_base in sh bash ksh sh5; do |
---|
144 | case $as_dir in |
---|
145 | /*) |
---|
146 | if ("$as_dir/$as_base" -c ' |
---|
147 | as_lineno_1=$LINENO |
---|
148 | as_lineno_2=$LINENO |
---|
149 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
150 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
151 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
152 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
153 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
154 | CONFIG_SHELL=$as_dir/$as_base |
---|
155 | export CONFIG_SHELL |
---|
156 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
157 | fi;; |
---|
158 | esac |
---|
159 | done |
---|
160 | done |
---|
161 | ;; |
---|
162 | esac |
---|
163 | |
---|
164 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
165 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
166 | # line-number line before each line; the second 'sed' does the real |
---|
167 | # work. The second script uses 'N' to pair each line-number line |
---|
168 | # with the numbered line, and appends trailing '-' during |
---|
169 | # substitution so that $LINENO is not a special case at line end. |
---|
170 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
171 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
172 | sed '=' <$as_myself | |
---|
173 | sed ' |
---|
174 | N |
---|
175 | s,$,-, |
---|
176 | : loop |
---|
177 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
178 | t loop |
---|
179 | s,-$,, |
---|
180 | s,^['$as_cr_digits']*\n,, |
---|
181 | ' >$as_me.lineno && |
---|
182 | chmod +x $as_me.lineno || |
---|
183 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
184 | { (exit 1); exit 1; }; } |
---|
185 | |
---|
186 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
187 | # (the dirname of $[0] is not the place where we might find the |
---|
188 | # original and so on. Autoconf is especially sensible to this). |
---|
189 | . ./$as_me.lineno |
---|
190 | # Exit status is that of the last command. |
---|
191 | exit |
---|
192 | } |
---|
193 | |
---|
194 | |
---|
195 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
196 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
197 | ' ECHO_T=' ' ;; |
---|
198 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
199 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
200 | esac |
---|
201 | |
---|
202 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
203 | as_expr=expr |
---|
204 | else |
---|
205 | as_expr=false |
---|
206 | fi |
---|
207 | |
---|
208 | rm -f conf$$ conf$$.exe conf$$.file |
---|
209 | echo >conf$$.file |
---|
210 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
211 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
212 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
213 | if test -f conf$$.exe; then |
---|
214 | # Don't use ln at all; we don't have any links |
---|
215 | as_ln_s='cp -p' |
---|
216 | else |
---|
217 | as_ln_s='ln -s' |
---|
218 | fi |
---|
219 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
220 | as_ln_s=ln |
---|
221 | else |
---|
222 | as_ln_s='cp -p' |
---|
223 | fi |
---|
224 | rm -f conf$$ conf$$.exe conf$$.file |
---|
225 | |
---|
226 | if mkdir -p . 2>/dev/null; then |
---|
227 | as_mkdir_p=: |
---|
228 | else |
---|
229 | test -d ./-p && rmdir ./-p |
---|
230 | as_mkdir_p=false |
---|
231 | fi |
---|
232 | |
---|
233 | as_executable_p="test -f" |
---|
234 | |
---|
235 | # Sed expression to map a string onto a valid CPP name. |
---|
236 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
237 | |
---|
238 | # Sed expression to map a string onto a valid variable name. |
---|
239 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
240 | |
---|
241 | |
---|
242 | # IFS |
---|
243 | # We need space, tab and new line, in precisely that order. |
---|
244 | as_nl=' |
---|
245 | ' |
---|
246 | IFS=" $as_nl" |
---|
247 | |
---|
248 | # CDPATH. |
---|
249 | $as_unset CDPATH |
---|
250 | |
---|
251 | |
---|
252 | |
---|
253 | # Check that we are running under the correct shell. |
---|
254 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
255 | |
---|
256 | case X$ECHO in |
---|
257 | X*--fallback-echo) |
---|
258 | # Remove one level of quotation (which was required for Make). |
---|
259 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
---|
260 | ;; |
---|
261 | esac |
---|
262 | |
---|
263 | echo=${ECHO-echo} |
---|
264 | if test "X$1" = X--no-reexec; then |
---|
265 | # Discard the --no-reexec flag, and continue. |
---|
266 | shift |
---|
267 | elif test "X$1" = X--fallback-echo; then |
---|
268 | # Avoid inline document here, it may be left over |
---|
269 | : |
---|
270 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
---|
271 | # Yippee, $echo works! |
---|
272 | : |
---|
273 | else |
---|
274 | # Restart under the correct shell. |
---|
275 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
---|
276 | fi |
---|
277 | |
---|
278 | if test "X$1" = X--fallback-echo; then |
---|
279 | # used as fallback echo |
---|
280 | shift |
---|
281 | cat <<EOF |
---|
282 | $* |
---|
283 | EOF |
---|
284 | exit 0 |
---|
285 | fi |
---|
286 | |
---|
287 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
---|
288 | # if CDPATH is set. |
---|
289 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
290 | |
---|
291 | if test -z "$ECHO"; then |
---|
292 | if test "X${echo_test_string+set}" != Xset; then |
---|
293 | # find a string as large as possible, as long as the shell can cope with it |
---|
294 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
---|
295 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
---|
296 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
---|
297 | echo_test_string=`eval $cmd` && |
---|
298 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
---|
299 | then |
---|
300 | break |
---|
301 | fi |
---|
302 | done |
---|
303 | fi |
---|
304 | |
---|
305 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
---|
306 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
---|
307 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
308 | : |
---|
309 | else |
---|
310 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
---|
311 | # backslashes. This makes it impossible to quote backslashes using |
---|
312 | # echo "$something" | sed 's/\\/\\\\/g' |
---|
313 | # |
---|
314 | # So, first we look for a working echo in the user's PATH. |
---|
315 | |
---|
316 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
317 | for dir in $PATH /usr/ucb; do |
---|
318 | IFS="$lt_save_ifs" |
---|
319 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
---|
320 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
---|
321 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
---|
322 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
323 | echo="$dir/echo" |
---|
324 | break |
---|
325 | fi |
---|
326 | done |
---|
327 | IFS="$lt_save_ifs" |
---|
328 | |
---|
329 | if test "X$echo" = Xecho; then |
---|
330 | # We didn't find a better echo, so look for alternatives. |
---|
331 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
---|
332 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
---|
333 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
334 | # This shell has a builtin print -r that does the trick. |
---|
335 | echo='print -r' |
---|
336 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
---|
337 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
---|
338 | # If we have ksh, try running configure again with it. |
---|
339 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
---|
340 | export ORIGINAL_CONFIG_SHELL |
---|
341 | CONFIG_SHELL=/bin/ksh |
---|
342 | export CONFIG_SHELL |
---|
343 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
---|
344 | else |
---|
345 | # Try using printf. |
---|
346 | echo='printf %s\n' |
---|
347 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
---|
348 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
---|
349 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
350 | # Cool, printf works |
---|
351 | : |
---|
352 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
---|
353 | test "X$echo_testing_string" = 'X\t' && |
---|
354 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
---|
355 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
356 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
---|
357 | export CONFIG_SHELL |
---|
358 | SHELL="$CONFIG_SHELL" |
---|
359 | export SHELL |
---|
360 | echo="$CONFIG_SHELL $0 --fallback-echo" |
---|
361 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
---|
362 | test "X$echo_testing_string" = 'X\t' && |
---|
363 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
---|
364 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
365 | echo="$CONFIG_SHELL $0 --fallback-echo" |
---|
366 | else |
---|
367 | # maybe with a smaller string... |
---|
368 | prev=: |
---|
369 | |
---|
370 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
---|
371 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
---|
372 | then |
---|
373 | break |
---|
374 | fi |
---|
375 | prev="$cmd" |
---|
376 | done |
---|
377 | |
---|
378 | if test "$prev" != 'sed 50q "$0"'; then |
---|
379 | echo_test_string=`eval $prev` |
---|
380 | export echo_test_string |
---|
381 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
---|
382 | else |
---|
383 | # Oops. We lost completely, so just stick with echo. |
---|
384 | echo=echo |
---|
385 | fi |
---|
386 | fi |
---|
387 | fi |
---|
388 | fi |
---|
389 | fi |
---|
390 | fi |
---|
391 | |
---|
392 | # Copy echo and quote the copy suitably for passing to libtool from |
---|
393 | # the Makefile, instead of quoting the original, which is used later. |
---|
394 | ECHO=$echo |
---|
395 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
---|
396 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
---|
397 | fi |
---|
398 | |
---|
399 | |
---|
400 | |
---|
401 | |
---|
402 | tagnames=${tagnames+${tagnames},}CXX |
---|
403 | |
---|
404 | tagnames=${tagnames+${tagnames},}F77 |
---|
405 | |
---|
406 | # Name of the host. |
---|
407 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
408 | # so uname gets run too. |
---|
409 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
410 | |
---|
411 | exec 6>&1 |
---|
412 | |
---|
413 | # |
---|
414 | # Initializations. |
---|
415 | # |
---|
416 | ac_default_prefix=/usr/local |
---|
417 | ac_config_libobj_dir=. |
---|
418 | cross_compiling=no |
---|
419 | subdirs= |
---|
420 | MFLAGS= |
---|
421 | MAKEFLAGS= |
---|
422 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
423 | |
---|
424 | # Maximum number of lines to put in a shell here document. |
---|
425 | # This variable seems obsolete. It should probably be removed, and |
---|
426 | # only ac_max_sed_lines should be used. |
---|
427 | : ${ac_max_here_lines=38} |
---|
428 | |
---|
429 | # Identity of this package. |
---|
430 | PACKAGE_NAME='ThirdPartyBlas' |
---|
431 | PACKAGE_TARNAME='thirdpartyblas' |
---|
432 | PACKAGE_VERSION='1.0stable' |
---|
433 | PACKAGE_STRING='ThirdPartyBlas 1.0stable' |
---|
434 | PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket' |
---|
435 | |
---|
436 | ac_unique_file="dgemm.f" |
---|
437 | ac_default_prefix=`pwd` |
---|
438 | # Factoring default headers for most tests. |
---|
439 | ac_includes_default="\ |
---|
440 | #include <stdio.h> |
---|
441 | #if HAVE_SYS_TYPES_H |
---|
442 | # include <sys/types.h> |
---|
443 | #endif |
---|
444 | #if HAVE_SYS_STAT_H |
---|
445 | # include <sys/stat.h> |
---|
446 | #endif |
---|
447 | #if STDC_HEADERS |
---|
448 | # include <stdlib.h> |
---|
449 | # include <stddef.h> |
---|
450 | #else |
---|
451 | # if HAVE_STDLIB_H |
---|
452 | # include <stdlib.h> |
---|
453 | # endif |
---|
454 | #endif |
---|
455 | #if HAVE_STRING_H |
---|
456 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
457 | # include <memory.h> |
---|
458 | # endif |
---|
459 | # include <string.h> |
---|
460 | #endif |
---|
461 | #if HAVE_STRINGS_H |
---|
462 | # include <strings.h> |
---|
463 | #endif |
---|
464 | #if HAVE_INTTYPES_H |
---|
465 | # include <inttypes.h> |
---|
466 | #else |
---|
467 | # if HAVE_STDINT_H |
---|
468 | # include <stdint.h> |
---|
469 | # endif |
---|
470 | #endif |
---|
471 | #if HAVE_UNISTD_H |
---|
472 | # include <unistd.h> |
---|
473 | #endif" |
---|
474 | |
---|
475 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS FLIBS COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_BUILD_BLAS_TRUE COIN_BUILD_BLAS_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS' |
---|
476 | ac_subst_files='' |
---|
477 | |
---|
478 | # Initialize some variables set by options. |
---|
479 | ac_init_help= |
---|
480 | ac_init_version=false |
---|
481 | # The variables have the same names as the options, with |
---|
482 | # dashes changed to underlines. |
---|
483 | cache_file=/dev/null |
---|
484 | exec_prefix=NONE |
---|
485 | no_create= |
---|
486 | no_recursion= |
---|
487 | prefix=NONE |
---|
488 | program_prefix=NONE |
---|
489 | program_suffix=NONE |
---|
490 | program_transform_name=s,x,x, |
---|
491 | silent= |
---|
492 | site= |
---|
493 | srcdir= |
---|
494 | verbose= |
---|
495 | x_includes=NONE |
---|
496 | x_libraries=NONE |
---|
497 | |
---|
498 | # Installation directory options. |
---|
499 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
500 | # and all the variables that are supposed to be based on exec_prefix |
---|
501 | # by default will actually change. |
---|
502 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
503 | bindir='${exec_prefix}/bin' |
---|
504 | sbindir='${exec_prefix}/sbin' |
---|
505 | libexecdir='${exec_prefix}/libexec' |
---|
506 | datadir='${prefix}/share' |
---|
507 | sysconfdir='${prefix}/etc' |
---|
508 | sharedstatedir='${prefix}/com' |
---|
509 | localstatedir='${prefix}/var' |
---|
510 | libdir='${exec_prefix}/lib' |
---|
511 | includedir='${prefix}/include' |
---|
512 | oldincludedir='/usr/include' |
---|
513 | infodir='${prefix}/info' |
---|
514 | mandir='${prefix}/man' |
---|
515 | |
---|
516 | ac_prev= |
---|
517 | for ac_option |
---|
518 | do |
---|
519 | # If the previous option needs an argument, assign it. |
---|
520 | if test -n "$ac_prev"; then |
---|
521 | eval "$ac_prev=\$ac_option" |
---|
522 | ac_prev= |
---|
523 | continue |
---|
524 | fi |
---|
525 | |
---|
526 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
527 | |
---|
528 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
529 | |
---|
530 | case $ac_option in |
---|
531 | |
---|
532 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
533 | ac_prev=bindir ;; |
---|
534 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
535 | bindir=$ac_optarg ;; |
---|
536 | |
---|
537 | -build | --build | --buil | --bui | --bu) |
---|
538 | ac_prev=build_alias ;; |
---|
539 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
540 | build_alias=$ac_optarg ;; |
---|
541 | |
---|
542 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
543 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
544 | ac_prev=cache_file ;; |
---|
545 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
546 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
547 | cache_file=$ac_optarg ;; |
---|
548 | |
---|
549 | --config-cache | -C) |
---|
550 | cache_file=config.cache ;; |
---|
551 | |
---|
552 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
553 | ac_prev=datadir ;; |
---|
554 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
555 | | --da=*) |
---|
556 | datadir=$ac_optarg ;; |
---|
557 | |
---|
558 | -disable-* | --disable-*) |
---|
559 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
560 | # Reject names that are not valid shell variable names. |
---|
561 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
562 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
563 | { (exit 1); exit 1; }; } |
---|
564 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
565 | eval "enable_$ac_feature=no" ;; |
---|
566 | |
---|
567 | -enable-* | --enable-*) |
---|
568 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
569 | # Reject names that are not valid shell variable names. |
---|
570 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
571 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
572 | { (exit 1); exit 1; }; } |
---|
573 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
574 | case $ac_option in |
---|
575 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
576 | *) ac_optarg=yes ;; |
---|
577 | esac |
---|
578 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
579 | |
---|
580 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
581 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
582 | | --exec | --exe | --ex) |
---|
583 | ac_prev=exec_prefix ;; |
---|
584 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
585 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
586 | | --exec=* | --exe=* | --ex=*) |
---|
587 | exec_prefix=$ac_optarg ;; |
---|
588 | |
---|
589 | -gas | --gas | --ga | --g) |
---|
590 | # Obsolete; use --with-gas. |
---|
591 | with_gas=yes ;; |
---|
592 | |
---|
593 | -help | --help | --hel | --he | -h) |
---|
594 | ac_init_help=long ;; |
---|
595 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
596 | ac_init_help=recursive ;; |
---|
597 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
598 | ac_init_help=short ;; |
---|
599 | |
---|
600 | -host | --host | --hos | --ho) |
---|
601 | ac_prev=host_alias ;; |
---|
602 | -host=* | --host=* | --hos=* | --ho=*) |
---|
603 | host_alias=$ac_optarg ;; |
---|
604 | |
---|
605 | -includedir | --includedir | --includedi | --included | --include \ |
---|
606 | | --includ | --inclu | --incl | --inc) |
---|
607 | ac_prev=includedir ;; |
---|
608 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
609 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
610 | includedir=$ac_optarg ;; |
---|
611 | |
---|
612 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
613 | ac_prev=infodir ;; |
---|
614 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
615 | infodir=$ac_optarg ;; |
---|
616 | |
---|
617 | -libdir | --libdir | --libdi | --libd) |
---|
618 | ac_prev=libdir ;; |
---|
619 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
620 | libdir=$ac_optarg ;; |
---|
621 | |
---|
622 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
623 | | --libexe | --libex | --libe) |
---|
624 | ac_prev=libexecdir ;; |
---|
625 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
626 | | --libexe=* | --libex=* | --libe=*) |
---|
627 | libexecdir=$ac_optarg ;; |
---|
628 | |
---|
629 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
630 | | --localstate | --localstat | --localsta | --localst \ |
---|
631 | | --locals | --local | --loca | --loc | --lo) |
---|
632 | ac_prev=localstatedir ;; |
---|
633 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
634 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
635 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
636 | localstatedir=$ac_optarg ;; |
---|
637 | |
---|
638 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
639 | ac_prev=mandir ;; |
---|
640 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
641 | mandir=$ac_optarg ;; |
---|
642 | |
---|
643 | -nfp | --nfp | --nf) |
---|
644 | # Obsolete; use --without-fp. |
---|
645 | with_fp=no ;; |
---|
646 | |
---|
647 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
648 | | --no-cr | --no-c | -n) |
---|
649 | no_create=yes ;; |
---|
650 | |
---|
651 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
652 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
653 | no_recursion=yes ;; |
---|
654 | |
---|
655 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
656 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
657 | | --oldin | --oldi | --old | --ol | --o) |
---|
658 | ac_prev=oldincludedir ;; |
---|
659 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
660 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
661 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
662 | oldincludedir=$ac_optarg ;; |
---|
663 | |
---|
664 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
665 | ac_prev=prefix ;; |
---|
666 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
667 | prefix=$ac_optarg ;; |
---|
668 | |
---|
669 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
670 | | --program-pre | --program-pr | --program-p) |
---|
671 | ac_prev=program_prefix ;; |
---|
672 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
673 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
674 | program_prefix=$ac_optarg ;; |
---|
675 | |
---|
676 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
677 | | --program-suf | --program-su | --program-s) |
---|
678 | ac_prev=program_suffix ;; |
---|
679 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
680 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
681 | program_suffix=$ac_optarg ;; |
---|
682 | |
---|
683 | -program-transform-name | --program-transform-name \ |
---|
684 | | --program-transform-nam | --program-transform-na \ |
---|
685 | | --program-transform-n | --program-transform- \ |
---|
686 | | --program-transform | --program-transfor \ |
---|
687 | | --program-transfo | --program-transf \ |
---|
688 | | --program-trans | --program-tran \ |
---|
689 | | --progr-tra | --program-tr | --program-t) |
---|
690 | ac_prev=program_transform_name ;; |
---|
691 | -program-transform-name=* | --program-transform-name=* \ |
---|
692 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
693 | | --program-transform-n=* | --program-transform-=* \ |
---|
694 | | --program-transform=* | --program-transfor=* \ |
---|
695 | | --program-transfo=* | --program-transf=* \ |
---|
696 | | --program-trans=* | --program-tran=* \ |
---|
697 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
698 | program_transform_name=$ac_optarg ;; |
---|
699 | |
---|
700 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
701 | | -silent | --silent | --silen | --sile | --sil) |
---|
702 | silent=yes ;; |
---|
703 | |
---|
704 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
705 | ac_prev=sbindir ;; |
---|
706 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
707 | | --sbi=* | --sb=*) |
---|
708 | sbindir=$ac_optarg ;; |
---|
709 | |
---|
710 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
711 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
712 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
713 | | --sha | --sh) |
---|
714 | ac_prev=sharedstatedir ;; |
---|
715 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
716 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
717 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
718 | | --sha=* | --sh=*) |
---|
719 | sharedstatedir=$ac_optarg ;; |
---|
720 | |
---|
721 | -site | --site | --sit) |
---|
722 | ac_prev=site ;; |
---|
723 | -site=* | --site=* | --sit=*) |
---|
724 | site=$ac_optarg ;; |
---|
725 | |
---|
726 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
727 | ac_prev=srcdir ;; |
---|
728 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
729 | srcdir=$ac_optarg ;; |
---|
730 | |
---|
731 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
732 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
733 | ac_prev=sysconfdir ;; |
---|
734 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
735 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
736 | sysconfdir=$ac_optarg ;; |
---|
737 | |
---|
738 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
739 | ac_prev=target_alias ;; |
---|
740 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
741 | target_alias=$ac_optarg ;; |
---|
742 | |
---|
743 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
744 | verbose=yes ;; |
---|
745 | |
---|
746 | -version | --version | --versio | --versi | --vers | -V) |
---|
747 | ac_init_version=: ;; |
---|
748 | |
---|
749 | -with-* | --with-*) |
---|
750 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
751 | # Reject names that are not valid shell variable names. |
---|
752 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
753 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
754 | { (exit 1); exit 1; }; } |
---|
755 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
756 | case $ac_option in |
---|
757 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
758 | *) ac_optarg=yes ;; |
---|
759 | esac |
---|
760 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
761 | |
---|
762 | -without-* | --without-*) |
---|
763 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
764 | # Reject names that are not valid shell variable names. |
---|
765 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
766 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
767 | { (exit 1); exit 1; }; } |
---|
768 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
769 | eval "with_$ac_package=no" ;; |
---|
770 | |
---|
771 | --x) |
---|
772 | # Obsolete; use --with-x. |
---|
773 | with_x=yes ;; |
---|
774 | |
---|
775 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
776 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
777 | ac_prev=x_includes ;; |
---|
778 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
779 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
780 | x_includes=$ac_optarg ;; |
---|
781 | |
---|
782 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
783 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
784 | ac_prev=x_libraries ;; |
---|
785 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
786 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
787 | x_libraries=$ac_optarg ;; |
---|
788 | |
---|
789 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
790 | Try \`$0 --help' for more information." >&2 |
---|
791 | { (exit 1); exit 1; }; } |
---|
792 | ;; |
---|
793 | |
---|
794 | *=*) |
---|
795 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
796 | # Reject names that are not valid shell variable names. |
---|
797 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
798 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
799 | { (exit 1); exit 1; }; } |
---|
800 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
801 | eval "$ac_envvar='$ac_optarg'" |
---|
802 | export $ac_envvar ;; |
---|
803 | |
---|
804 | *) |
---|
805 | # FIXME: should be removed in autoconf 3.0. |
---|
806 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
807 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
808 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
809 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
810 | ;; |
---|
811 | |
---|
812 | esac |
---|
813 | done |
---|
814 | |
---|
815 | if test -n "$ac_prev"; then |
---|
816 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
817 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
818 | { (exit 1); exit 1; }; } |
---|
819 | fi |
---|
820 | |
---|
821 | # Be sure to have absolute paths. |
---|
822 | for ac_var in exec_prefix prefix |
---|
823 | do |
---|
824 | eval ac_val=$`echo $ac_var` |
---|
825 | case $ac_val in |
---|
826 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
827 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
828 | { (exit 1); exit 1; }; };; |
---|
829 | esac |
---|
830 | done |
---|
831 | |
---|
832 | # Be sure to have absolute paths. |
---|
833 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
834 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
835 | do |
---|
836 | eval ac_val=$`echo $ac_var` |
---|
837 | case $ac_val in |
---|
838 | [\\/$]* | ?:[\\/]* ) ;; |
---|
839 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
840 | { (exit 1); exit 1; }; };; |
---|
841 | esac |
---|
842 | done |
---|
843 | |
---|
844 | # There might be people who depend on the old broken behavior: `$host' |
---|
845 | # used to hold the argument of --host etc. |
---|
846 | # FIXME: To remove some day. |
---|
847 | build=$build_alias |
---|
848 | host=$host_alias |
---|
849 | target=$target_alias |
---|
850 | |
---|
851 | # FIXME: To remove some day. |
---|
852 | if test "x$host_alias" != x; then |
---|
853 | if test "x$build_alias" = x; then |
---|
854 | cross_compiling=maybe |
---|
855 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
856 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
857 | elif test "x$build_alias" != "x$host_alias"; then |
---|
858 | cross_compiling=yes |
---|
859 | fi |
---|
860 | fi |
---|
861 | |
---|
862 | ac_tool_prefix= |
---|
863 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
864 | |
---|
865 | test "$silent" = yes && exec 6>/dev/null |
---|
866 | |
---|
867 | |
---|
868 | # Find the source files, if location was not specified. |
---|
869 | if test -z "$srcdir"; then |
---|
870 | ac_srcdir_defaulted=yes |
---|
871 | # Try the directory containing this script, then its parent. |
---|
872 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
873 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
874 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
875 | X"$0" : 'X\(//\)$' \| \ |
---|
876 | X"$0" : 'X\(/\)' \| \ |
---|
877 | . : '\(.\)' 2>/dev/null || |
---|
878 | echo X"$0" | |
---|
879 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
880 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
881 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
882 | /^X\(\/\).*/{ s//\1/; q; } |
---|
883 | s/.*/./; q'` |
---|
884 | srcdir=$ac_confdir |
---|
885 | if test ! -r $srcdir/$ac_unique_file; then |
---|
886 | srcdir=.. |
---|
887 | fi |
---|
888 | else |
---|
889 | ac_srcdir_defaulted=no |
---|
890 | fi |
---|
891 | if test ! -r $srcdir/$ac_unique_file; then |
---|
892 | if test "$ac_srcdir_defaulted" = yes; then |
---|
893 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
894 | { (exit 1); exit 1; }; } |
---|
895 | else |
---|
896 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
897 | { (exit 1); exit 1; }; } |
---|
898 | fi |
---|
899 | fi |
---|
900 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
901 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
902 | { (exit 1); exit 1; }; } |
---|
903 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
904 | ac_env_build_alias_set=${build_alias+set} |
---|
905 | ac_env_build_alias_value=$build_alias |
---|
906 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
907 | ac_cv_env_build_alias_value=$build_alias |
---|
908 | ac_env_host_alias_set=${host_alias+set} |
---|
909 | ac_env_host_alias_value=$host_alias |
---|
910 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
911 | ac_cv_env_host_alias_value=$host_alias |
---|
912 | ac_env_target_alias_set=${target_alias+set} |
---|
913 | ac_env_target_alias_value=$target_alias |
---|
914 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
915 | ac_cv_env_target_alias_value=$target_alias |
---|
916 | ac_env_CDEFS_set=${CDEFS+set} |
---|
917 | ac_env_CDEFS_value=$CDEFS |
---|
918 | ac_cv_env_CDEFS_set=${CDEFS+set} |
---|
919 | ac_cv_env_CDEFS_value=$CDEFS |
---|
920 | ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} |
---|
921 | ac_env_ADD_CFLAGS_value=$ADD_CFLAGS |
---|
922 | ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} |
---|
923 | ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS |
---|
924 | ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} |
---|
925 | ac_env_DBG_CFLAGS_value=$DBG_CFLAGS |
---|
926 | ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} |
---|
927 | ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS |
---|
928 | ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} |
---|
929 | ac_env_OPT_CFLAGS_value=$OPT_CFLAGS |
---|
930 | ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} |
---|
931 | ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS |
---|
932 | ac_env_CC_set=${CC+set} |
---|
933 | ac_env_CC_value=$CC |
---|
934 | ac_cv_env_CC_set=${CC+set} |
---|
935 | ac_cv_env_CC_value=$CC |
---|
936 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
937 | ac_env_CFLAGS_value=$CFLAGS |
---|
938 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
939 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
940 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
941 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
942 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
943 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
944 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
945 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
946 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
947 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
948 | ac_env_MPICC_set=${MPICC+set} |
---|
949 | ac_env_MPICC_value=$MPICC |
---|
950 | ac_cv_env_MPICC_set=${MPICC+set} |
---|
951 | ac_cv_env_MPICC_value=$MPICC |
---|
952 | ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set} |
---|
953 | ac_env_ADD_FFLAGS_value=$ADD_FFLAGS |
---|
954 | ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set} |
---|
955 | ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS |
---|
956 | ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set} |
---|
957 | ac_env_DBG_FFLAGS_value=$DBG_FFLAGS |
---|
958 | ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set} |
---|
959 | ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS |
---|
960 | ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set} |
---|
961 | ac_env_OPT_FFLAGS_value=$OPT_FFLAGS |
---|
962 | ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set} |
---|
963 | ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS |
---|
964 | ac_env_F77_set=${F77+set} |
---|
965 | ac_env_F77_value=$F77 |
---|
966 | ac_cv_env_F77_set=${F77+set} |
---|
967 | ac_cv_env_F77_value=$F77 |
---|
968 | ac_env_FFLAGS_set=${FFLAGS+set} |
---|
969 | ac_env_FFLAGS_value=$FFLAGS |
---|
970 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
---|
971 | ac_cv_env_FFLAGS_value=$FFLAGS |
---|
972 | ac_env_MPIF77_set=${MPIF77+set} |
---|
973 | ac_env_MPIF77_value=$MPIF77 |
---|
974 | ac_cv_env_MPIF77_set=${MPIF77+set} |
---|
975 | ac_cv_env_MPIF77_value=$MPIF77 |
---|
976 | ac_env_CPP_set=${CPP+set} |
---|
977 | ac_env_CPP_value=$CPP |
---|
978 | ac_cv_env_CPP_set=${CPP+set} |
---|
979 | ac_cv_env_CPP_value=$CPP |
---|
980 | ac_env_CXX_set=${CXX+set} |
---|
981 | ac_env_CXX_value=$CXX |
---|
982 | ac_cv_env_CXX_set=${CXX+set} |
---|
983 | ac_cv_env_CXX_value=$CXX |
---|
984 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
985 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
986 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
987 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
988 | ac_env_CXXCPP_set=${CXXCPP+set} |
---|
989 | ac_env_CXXCPP_value=$CXXCPP |
---|
990 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
---|
991 | ac_cv_env_CXXCPP_value=$CXXCPP |
---|
992 | |
---|
993 | # |
---|
994 | # Report the --help message. |
---|
995 | # |
---|
996 | if test "$ac_init_help" = "long"; then |
---|
997 | # Omit some internal or obsolete options to make the list less imposing. |
---|
998 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
999 | cat <<_ACEOF |
---|
1000 | \`configure' configures ThirdPartyBlas 1.0stable to adapt to many kinds of systems. |
---|
1001 | |
---|
1002 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1003 | |
---|
1004 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1005 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1006 | |
---|
1007 | Defaults for the options are specified in brackets. |
---|
1008 | |
---|
1009 | Configuration: |
---|
1010 | -h, --help display this help and exit |
---|
1011 | --help=short display options specific to this package |
---|
1012 | --help=recursive display the short help of all the included packages |
---|
1013 | -V, --version display version information and exit |
---|
1014 | -q, --quiet, --silent do not print \`checking...' messages |
---|
1015 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1016 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1017 | -n, --no-create do not create output files |
---|
1018 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1019 | |
---|
1020 | _ACEOF |
---|
1021 | |
---|
1022 | cat <<_ACEOF |
---|
1023 | Installation directories: |
---|
1024 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1025 | [$ac_default_prefix] |
---|
1026 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1027 | [PREFIX] |
---|
1028 | |
---|
1029 | By default, \`make install' will install all the files in |
---|
1030 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1031 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1032 | for instance \`--prefix=\$HOME'. |
---|
1033 | |
---|
1034 | For better control, use the options below. |
---|
1035 | |
---|
1036 | Fine tuning of the installation directories: |
---|
1037 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1038 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1039 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1040 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
1041 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1042 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1043 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1044 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1045 | --includedir=DIR C header files [PREFIX/include] |
---|
1046 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1047 | --infodir=DIR info documentation [PREFIX/info] |
---|
1048 | --mandir=DIR man documentation [PREFIX/man] |
---|
1049 | _ACEOF |
---|
1050 | |
---|
1051 | cat <<\_ACEOF |
---|
1052 | |
---|
1053 | Program names: |
---|
1054 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1055 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1056 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1057 | |
---|
1058 | System types: |
---|
1059 | --build=BUILD configure for building on BUILD [guessed] |
---|
1060 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1061 | _ACEOF |
---|
1062 | fi |
---|
1063 | |
---|
1064 | if test -n "$ac_init_help"; then |
---|
1065 | case $ac_init_help in |
---|
1066 | short | recursive ) echo "Configuration of ThirdPartyBlas 1.0stable:";; |
---|
1067 | esac |
---|
1068 | cat <<\_ACEOF |
---|
1069 | |
---|
1070 | Optional Features: |
---|
1071 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1072 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1073 | --enable-debug compile all projects with debug options tests |
---|
1074 | --enable-debug-blas compile this project (Blas) with debug options |
---|
1075 | --enable-doscompile Under Cygwin, compile so that executables run under |
---|
1076 | DOS. Set to mingw to use gcc/g++/ld with |
---|
1077 | -mno-cygwin. Set to msvc to use cl/link (or |
---|
1078 | icl/link). Default when mentioned: mingw. Default |
---|
1079 | when not mentioned: disabled. |
---|
1080 | --enable-static[=PKGS] |
---|
1081 | build static libraries [default=no] |
---|
1082 | --disable-dependency-tracking speeds up one-time build |
---|
1083 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
1084 | --enable-maintainer-mode enable make rules and dependencies not useful |
---|
1085 | (and sometimes confusing) to the casual installer |
---|
1086 | --enable-shared[=PKGS] |
---|
1087 | build shared libraries [default=yes] |
---|
1088 | --enable-fast-install[=PKGS] |
---|
1089 | optimize for fast installation [default=yes] |
---|
1090 | --disable-libtool-lock avoid locking (might break parallel builds) |
---|
1091 | |
---|
1092 | Optional Packages: |
---|
1093 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1094 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1095 | --with-blas-verbosity specify the debug verbosity level for project Blas |
---|
1096 | --with-blas-checklevel specify the sanity check level for project Blas |
---|
1097 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
---|
1098 | --with-pic try to use only PIC/non-PIC objects [default=use |
---|
1099 | both] |
---|
1100 | --with-tags[=TAGS] |
---|
1101 | include additional configurations [automatic] |
---|
1102 | --with-blas specify BLAS library (or BUILD for compilation) |
---|
1103 | |
---|
1104 | Some influential environment variables: |
---|
1105 | CDEFS Additional -D flags to be used when compiling C code. |
---|
1106 | ADD_CFLAGS Additional C compiler options |
---|
1107 | DBG_CFLAGS Debug C compiler options |
---|
1108 | OPT_CFLAGS Optimize C compiler options |
---|
1109 | CC C compiler command |
---|
1110 | CFLAGS C compiler flags |
---|
1111 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1112 | nonstandard directory <lib dir> |
---|
1113 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
1114 | headers in a nonstandard directory <include dir> |
---|
1115 | MPICC C MPI Compiler |
---|
1116 | ADD_FFLAGS Additional Fortran compiler options |
---|
1117 | DBG_FFLAGS Debug Fortran compiler options |
---|
1118 | OPT_FFLAGS Optimize Fortran compiler options |
---|
1119 | F77 Fortran 77 compiler command |
---|
1120 | FFLAGS Fortran 77 compiler flags |
---|
1121 | MPIF77 Fortran MPI Compiler |
---|
1122 | CPP C preprocessor |
---|
1123 | CXX C++ compiler command |
---|
1124 | CXXFLAGS C++ compiler flags |
---|
1125 | CXXCPP C++ preprocessor |
---|
1126 | |
---|
1127 | Use these variables to override the choices made by `configure' or to help |
---|
1128 | it to find libraries and programs with nonstandard names/locations. |
---|
1129 | |
---|
1130 | Report bugs to <http://projects.coin-or.org/BuildTools/newticket>. |
---|
1131 | _ACEOF |
---|
1132 | fi |
---|
1133 | |
---|
1134 | if test "$ac_init_help" = "recursive"; then |
---|
1135 | # If there are subdirs, report their specific --help. |
---|
1136 | ac_popdir=`pwd` |
---|
1137 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1138 | test -d $ac_dir || continue |
---|
1139 | ac_builddir=. |
---|
1140 | |
---|
1141 | if test "$ac_dir" != .; then |
---|
1142 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
1143 | # A "../" for each directory in $ac_dir_suffix. |
---|
1144 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
1145 | else |
---|
1146 | ac_dir_suffix= ac_top_builddir= |
---|
1147 | fi |
---|
1148 | |
---|
1149 | case $srcdir in |
---|
1150 | .) # No --srcdir option. We are building in place. |
---|
1151 | ac_srcdir=. |
---|
1152 | if test -z "$ac_top_builddir"; then |
---|
1153 | ac_top_srcdir=. |
---|
1154 | else |
---|
1155 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
1156 | fi ;; |
---|
1157 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
1158 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1159 | ac_top_srcdir=$srcdir ;; |
---|
1160 | *) # Relative path. |
---|
1161 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
1162 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
1163 | esac |
---|
1164 | |
---|
1165 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
1166 | # the directories may not exist. |
---|
1167 | case `pwd` in |
---|
1168 | .) ac_abs_builddir="$ac_dir";; |
---|
1169 | *) |
---|
1170 | case "$ac_dir" in |
---|
1171 | .) ac_abs_builddir=`pwd`;; |
---|
1172 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
1173 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
1174 | esac;; |
---|
1175 | esac |
---|
1176 | case $ac_abs_builddir in |
---|
1177 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
1178 | *) |
---|
1179 | case ${ac_top_builddir}. in |
---|
1180 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
1181 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
1182 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
1183 | esac;; |
---|
1184 | esac |
---|
1185 | case $ac_abs_builddir in |
---|
1186 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
1187 | *) |
---|
1188 | case $ac_srcdir in |
---|
1189 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
1190 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
1191 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
1192 | esac;; |
---|
1193 | esac |
---|
1194 | case $ac_abs_builddir in |
---|
1195 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
1196 | *) |
---|
1197 | case $ac_top_srcdir in |
---|
1198 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
1199 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
1200 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
1201 | esac;; |
---|
1202 | esac |
---|
1203 | |
---|
1204 | cd $ac_dir |
---|
1205 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
1206 | if test -f $ac_srcdir/configure.gnu; then |
---|
1207 | echo |
---|
1208 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
1209 | elif test -f $ac_srcdir/configure; then |
---|
1210 | echo |
---|
1211 | $SHELL $ac_srcdir/configure --help=recursive |
---|
1212 | elif test -f $ac_srcdir/configure.ac || |
---|
1213 | test -f $ac_srcdir/configure.in; then |
---|
1214 | echo |
---|
1215 | $ac_configure --help |
---|
1216 | else |
---|
1217 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1218 | fi |
---|
1219 | cd $ac_popdir |
---|
1220 | done |
---|
1221 | fi |
---|
1222 | |
---|
1223 | test -n "$ac_init_help" && exit 0 |
---|
1224 | if $ac_init_version; then |
---|
1225 | cat <<\_ACEOF |
---|
1226 | ThirdPartyBlas configure 1.0stable |
---|
1227 | generated by GNU Autoconf 2.59 |
---|
1228 | |
---|
1229 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
1230 | This configure script is free software; the Free Software Foundation |
---|
1231 | gives unlimited permission to copy, distribute and modify it. |
---|
1232 | |
---|
1233 | |
---|
1234 | Copyright 2006 International Business Machines and others. |
---|
1235 | All Rights Reserved. |
---|
1236 | This file is part of the open source package Coin which is distributed |
---|
1237 | under the Common Public License. |
---|
1238 | _ACEOF |
---|
1239 | exit 0 |
---|
1240 | fi |
---|
1241 | exec 5>config.log |
---|
1242 | cat >&5 <<_ACEOF |
---|
1243 | This file contains any messages produced by compilers while |
---|
1244 | running configure, to aid debugging if configure makes a mistake. |
---|
1245 | |
---|
1246 | It was created by ThirdPartyBlas $as_me 1.0stable, which was |
---|
1247 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
1248 | |
---|
1249 | $ $0 $@ |
---|
1250 | |
---|
1251 | _ACEOF |
---|
1252 | { |
---|
1253 | cat <<_ASUNAME |
---|
1254 | ## --------- ## |
---|
1255 | ## Platform. ## |
---|
1256 | ## --------- ## |
---|
1257 | |
---|
1258 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1259 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1260 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1261 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1262 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1263 | |
---|
1264 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1265 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1266 | |
---|
1267 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1268 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1269 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1270 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1271 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1272 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1273 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1274 | |
---|
1275 | _ASUNAME |
---|
1276 | |
---|
1277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1278 | for as_dir in $PATH |
---|
1279 | do |
---|
1280 | IFS=$as_save_IFS |
---|
1281 | test -z "$as_dir" && as_dir=. |
---|
1282 | echo "PATH: $as_dir" |
---|
1283 | done |
---|
1284 | |
---|
1285 | } >&5 |
---|
1286 | |
---|
1287 | cat >&5 <<_ACEOF |
---|
1288 | |
---|
1289 | |
---|
1290 | ## ----------- ## |
---|
1291 | ## Core tests. ## |
---|
1292 | ## ----------- ## |
---|
1293 | |
---|
1294 | _ACEOF |
---|
1295 | |
---|
1296 | |
---|
1297 | # Keep a trace of the command line. |
---|
1298 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1299 | # Strip out --silent because we don't want to record it for future runs. |
---|
1300 | # Also quote any args containing shell meta-characters. |
---|
1301 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1302 | ac_configure_args= |
---|
1303 | ac_configure_args0= |
---|
1304 | ac_configure_args1= |
---|
1305 | ac_sep= |
---|
1306 | ac_must_keep_next=false |
---|
1307 | for ac_pass in 1 2 |
---|
1308 | do |
---|
1309 | for ac_arg |
---|
1310 | do |
---|
1311 | case $ac_arg in |
---|
1312 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1313 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1314 | | -silent | --silent | --silen | --sile | --sil) |
---|
1315 | continue ;; |
---|
1316 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1317 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1318 | esac |
---|
1319 | case $ac_pass in |
---|
1320 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1321 | 2) |
---|
1322 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1323 | if test $ac_must_keep_next = true; then |
---|
1324 | ac_must_keep_next=false # Got value, back to normal. |
---|
1325 | else |
---|
1326 | case $ac_arg in |
---|
1327 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1328 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1329 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1330 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1331 | case "$ac_configure_args0 " in |
---|
1332 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1333 | esac |
---|
1334 | ;; |
---|
1335 | -* ) ac_must_keep_next=true ;; |
---|
1336 | esac |
---|
1337 | fi |
---|
1338 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1339 | # Get rid of the leading space. |
---|
1340 | ac_sep=" " |
---|
1341 | ;; |
---|
1342 | esac |
---|
1343 | done |
---|
1344 | done |
---|
1345 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1346 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1347 | |
---|
1348 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1349 | # config.log. We remove comments because anyway the quotes in there |
---|
1350 | # would cause problems or look ugly. |
---|
1351 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1352 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1353 | trap 'exit_status=$? |
---|
1354 | # Save into config.log some information that might help in debugging. |
---|
1355 | { |
---|
1356 | echo |
---|
1357 | |
---|
1358 | cat <<\_ASBOX |
---|
1359 | ## ---------------- ## |
---|
1360 | ## Cache variables. ## |
---|
1361 | ## ---------------- ## |
---|
1362 | _ASBOX |
---|
1363 | echo |
---|
1364 | # The following way of writing the cache mishandles newlines in values, |
---|
1365 | { |
---|
1366 | (set) 2>&1 | |
---|
1367 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1368 | *ac_space=\ *) |
---|
1369 | sed -n \ |
---|
1370 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1371 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1372 | ;; |
---|
1373 | *) |
---|
1374 | sed -n \ |
---|
1375 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1376 | ;; |
---|
1377 | esac; |
---|
1378 | } |
---|
1379 | echo |
---|
1380 | |
---|
1381 | cat <<\_ASBOX |
---|
1382 | ## ----------------- ## |
---|
1383 | ## Output variables. ## |
---|
1384 | ## ----------------- ## |
---|
1385 | _ASBOX |
---|
1386 | echo |
---|
1387 | for ac_var in $ac_subst_vars |
---|
1388 | do |
---|
1389 | eval ac_val=$`echo $ac_var` |
---|
1390 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1391 | done | sort |
---|
1392 | echo |
---|
1393 | |
---|
1394 | if test -n "$ac_subst_files"; then |
---|
1395 | cat <<\_ASBOX |
---|
1396 | ## ------------- ## |
---|
1397 | ## Output files. ## |
---|
1398 | ## ------------- ## |
---|
1399 | _ASBOX |
---|
1400 | echo |
---|
1401 | for ac_var in $ac_subst_files |
---|
1402 | do |
---|
1403 | eval ac_val=$`echo $ac_var` |
---|
1404 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1405 | done | sort |
---|
1406 | echo |
---|
1407 | fi |
---|
1408 | |
---|
1409 | if test -s confdefs.h; then |
---|
1410 | cat <<\_ASBOX |
---|
1411 | ## ----------- ## |
---|
1412 | ## confdefs.h. ## |
---|
1413 | ## ----------- ## |
---|
1414 | _ASBOX |
---|
1415 | echo |
---|
1416 | sed "/^$/d" confdefs.h | sort |
---|
1417 | echo |
---|
1418 | fi |
---|
1419 | test "$ac_signal" != 0 && |
---|
1420 | echo "$as_me: caught signal $ac_signal" |
---|
1421 | echo "$as_me: exit $exit_status" |
---|
1422 | } >&5 |
---|
1423 | rm -f core *.core && |
---|
1424 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1425 | exit $exit_status |
---|
1426 | ' 0 |
---|
1427 | for ac_signal in 1 2 13 15; do |
---|
1428 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1429 | done |
---|
1430 | ac_signal=0 |
---|
1431 | |
---|
1432 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1433 | rm -rf conftest* confdefs.h |
---|
1434 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1435 | echo >confdefs.h |
---|
1436 | |
---|
1437 | # Predefined preprocessor variables. |
---|
1438 | |
---|
1439 | cat >>confdefs.h <<_ACEOF |
---|
1440 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1441 | _ACEOF |
---|
1442 | |
---|
1443 | |
---|
1444 | cat >>confdefs.h <<_ACEOF |
---|
1445 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1446 | _ACEOF |
---|
1447 | |
---|
1448 | |
---|
1449 | cat >>confdefs.h <<_ACEOF |
---|
1450 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1451 | _ACEOF |
---|
1452 | |
---|
1453 | |
---|
1454 | cat >>confdefs.h <<_ACEOF |
---|
1455 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1456 | _ACEOF |
---|
1457 | |
---|
1458 | |
---|
1459 | cat >>confdefs.h <<_ACEOF |
---|
1460 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1461 | _ACEOF |
---|
1462 | |
---|
1463 | |
---|
1464 | # Let the site file select an alternate cache file if it wants to. |
---|
1465 | # Prefer explicitly selected file to automatically selected ones. |
---|
1466 | if test -z "$CONFIG_SITE"; then |
---|
1467 | if test "x$prefix" != xNONE; then |
---|
1468 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1469 | else |
---|
1470 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1471 | fi |
---|
1472 | fi |
---|
1473 | for ac_site_file in $CONFIG_SITE; do |
---|
1474 | if test -r "$ac_site_file"; then |
---|
1475 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1476 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1477 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1478 | . "$ac_site_file" |
---|
1479 | fi |
---|
1480 | done |
---|
1481 | |
---|
1482 | if test -r "$cache_file"; then |
---|
1483 | # Some versions of bash will fail to source /dev/null (special |
---|
1484 | # files actually), so we avoid doing that. |
---|
1485 | if test -f "$cache_file"; then |
---|
1486 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1487 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1488 | case $cache_file in |
---|
1489 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1490 | *) . ./$cache_file;; |
---|
1491 | esac |
---|
1492 | fi |
---|
1493 | else |
---|
1494 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1495 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1496 | >$cache_file |
---|
1497 | fi |
---|
1498 | |
---|
1499 | # Check that the precious variables saved in the cache have kept the same |
---|
1500 | # value. |
---|
1501 | ac_cache_corrupted=false |
---|
1502 | for ac_var in `(set) 2>&1 | |
---|
1503 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1504 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1505 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1506 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1507 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1508 | case $ac_old_set,$ac_new_set in |
---|
1509 | set,) |
---|
1510 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1511 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1512 | ac_cache_corrupted=: ;; |
---|
1513 | ,set) |
---|
1514 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1515 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1516 | ac_cache_corrupted=: ;; |
---|
1517 | ,);; |
---|
1518 | *) |
---|
1519 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1520 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1521 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1522 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1523 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1524 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1525 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1526 | ac_cache_corrupted=: |
---|
1527 | fi;; |
---|
1528 | esac |
---|
1529 | # Pass precious variables to config.status. |
---|
1530 | if test "$ac_new_set" = set; then |
---|
1531 | case $ac_new_val in |
---|
1532 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1533 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1534 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1535 | esac |
---|
1536 | case " $ac_configure_args " in |
---|
1537 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1538 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1539 | esac |
---|
1540 | fi |
---|
1541 | done |
---|
1542 | if $ac_cache_corrupted; then |
---|
1543 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1544 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1545 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1546 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1547 | { (exit 1); exit 1; }; } |
---|
1548 | fi |
---|
1549 | |
---|
1550 | ac_ext=c |
---|
1551 | ac_cpp='$CPP $CPPFLAGS' |
---|
1552 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1553 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1554 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1555 | |
---|
1556 | |
---|
1557 | |
---|
1558 | |
---|
1559 | |
---|
1560 | |
---|
1561 | |
---|
1562 | |
---|
1563 | |
---|
1564 | |
---|
1565 | |
---|
1566 | |
---|
1567 | |
---|
1568 | |
---|
1569 | |
---|
1570 | |
---|
1571 | |
---|
1572 | |
---|
1573 | |
---|
1574 | |
---|
1575 | |
---|
1576 | |
---|
1577 | |
---|
1578 | |
---|
1579 | |
---|
1580 | |
---|
1581 | |
---|
1582 | |
---|
1583 | |
---|
1584 | |
---|
1585 | # List one file in the package so that the configure script can test |
---|
1586 | # whether the package is actually there |
---|
1587 | |
---|
1588 | |
---|
1589 | # Where should everything be installed by default? Here, we want it |
---|
1590 | # to be installed directly in 'bin', 'lib', 'include' subdirectories |
---|
1591 | # of the directory where configure is run. The default would be |
---|
1592 | # /usr/local. |
---|
1593 | |
---|
1594 | |
---|
1595 | # Initialize the ADDLIBS variable |
---|
1596 | ADDLIBS="-lm $LIBS" |
---|
1597 | |
---|
1598 | |
---|
1599 | # As backup, we make sure we don't loose an FLIBS if it has been set |
---|
1600 | # by the user |
---|
1601 | save_FLIBS="$FLIBS" |
---|
1602 | |
---|
1603 | # Initialize the FADDLIBS variable (which is to be used with a fortran |
---|
1604 | # compiler and will not include FLIBS) |
---|
1605 | FADDLIBS="$LIBS" |
---|
1606 | |
---|
1607 | |
---|
1608 | # A useful makefile conditional that is always false |
---|
1609 | |
---|
1610 | |
---|
1611 | if false; then |
---|
1612 | ALWAYS_FALSE_TRUE= |
---|
1613 | ALWAYS_FALSE_FALSE='#' |
---|
1614 | else |
---|
1615 | ALWAYS_FALSE_TRUE='#' |
---|
1616 | ALWAYS_FALSE_FALSE= |
---|
1617 | fi |
---|
1618 | |
---|
1619 | |
---|
1620 | # We set the following variable so that we know later in AC_COIN_FINALIZE |
---|
1621 | # that we are in a project main directory |
---|
1622 | coin_projectdir=yes |
---|
1623 | |
---|
1624 | |
---|
1625 | ############################################################################# |
---|
1626 | # Standard build tool stuff # |
---|
1627 | ############################################################################# |
---|
1628 | |
---|
1629 | # Get the system type |
---|
1630 | ac_aux_dir= |
---|
1631 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1632 | if test -f $ac_dir/install-sh; then |
---|
1633 | ac_aux_dir=$ac_dir |
---|
1634 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1635 | break |
---|
1636 | elif test -f $ac_dir/install.sh; then |
---|
1637 | ac_aux_dir=$ac_dir |
---|
1638 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1639 | break |
---|
1640 | elif test -f $ac_dir/shtool; then |
---|
1641 | ac_aux_dir=$ac_dir |
---|
1642 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1643 | break |
---|
1644 | fi |
---|
1645 | done |
---|
1646 | if test -z "$ac_aux_dir"; then |
---|
1647 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1648 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1649 | { (exit 1); exit 1; }; } |
---|
1650 | fi |
---|
1651 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1652 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1653 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1654 | |
---|
1655 | # Make sure we can run config.sub. |
---|
1656 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1657 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1658 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1659 | { (exit 1); exit 1; }; } |
---|
1660 | |
---|
1661 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1662 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1663 | if test "${ac_cv_build+set}" = set; then |
---|
1664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1665 | else |
---|
1666 | ac_cv_build_alias=$build_alias |
---|
1667 | test -z "$ac_cv_build_alias" && |
---|
1668 | ac_cv_build_alias=`$ac_config_guess` |
---|
1669 | test -z "$ac_cv_build_alias" && |
---|
1670 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1671 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1672 | { (exit 1); exit 1; }; } |
---|
1673 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1674 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1675 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1676 | { (exit 1); exit 1; }; } |
---|
1677 | |
---|
1678 | fi |
---|
1679 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1680 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1681 | build=$ac_cv_build |
---|
1682 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1683 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1684 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1685 | |
---|
1686 | |
---|
1687 | |
---|
1688 | #turn off warnings and pedantic mode since they could make trouble on some platforms, |
---|
1689 | #and we couldn't fix them anyway |
---|
1690 | coin_skip_warn_fflags=yes |
---|
1691 | |
---|
1692 | # Check if user wants to produce debugging code |
---|
1693 | |
---|
1694 | echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5 |
---|
1695 | echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6 |
---|
1696 | |
---|
1697 | # Check whether --enable-debug or --disable-debug was given. |
---|
1698 | if test "${enable_debug+set}" = set; then |
---|
1699 | enableval="$enable_debug" |
---|
1700 | case "${enableval}" in |
---|
1701 | yes) coin_debug_compile=true |
---|
1702 | if test "${enable_shared+set}" = set; then :; else |
---|
1703 | enable_shared=no |
---|
1704 | fi |
---|
1705 | ;; |
---|
1706 | no) coin_debug_compile=false |
---|
1707 | ;; |
---|
1708 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 |
---|
1709 | echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} |
---|
1710 | { (exit 1); exit 1; }; } |
---|
1711 | ;; |
---|
1712 | esac |
---|
1713 | else |
---|
1714 | coin_debug_compile=false |
---|
1715 | fi; |
---|
1716 | |
---|
1717 | # Check whether --enable-debug-blas or --disable-debug-blas was given. |
---|
1718 | if test "${enable_debug_blas+set}" = set; then |
---|
1719 | enableval="$enable_debug_blas" |
---|
1720 | case "${enableval}" in |
---|
1721 | yes) coin_debug_compile=true |
---|
1722 | enable_shared=no |
---|
1723 | ;; |
---|
1724 | no) coin_debug_compile=false |
---|
1725 | ;; |
---|
1726 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-blas" >&5 |
---|
1727 | echo "$as_me: error: bad value ${enableval} for --enable-debug-blas" >&2;} |
---|
1728 | { (exit 1); exit 1; }; } |
---|
1729 | ;; |
---|
1730 | esac |
---|
1731 | else |
---|
1732 | : |
---|
1733 | fi; |
---|
1734 | |
---|
1735 | # m4_ifvaln([Blas], |
---|
1736 | |
---|
1737 | if test $coin_debug_compile = true; then |
---|
1738 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1739 | echo "${ECHO_T}yes" >&6 |
---|
1740 | else |
---|
1741 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1742 | echo "${ECHO_T}no" >&6 |
---|
1743 | fi |
---|
1744 | |
---|
1745 | |
---|
1746 | # Check whether --with-blas-verbosity or --without-blas-verbosity was given. |
---|
1747 | if test "${with_blas_verbosity+set}" = set; then |
---|
1748 | withval="$with_blas_verbosity" |
---|
1749 | if test "$withval" = yes; then |
---|
1750 | withval=1 |
---|
1751 | fi |
---|
1752 | coin_blas_verbosity=$withval |
---|
1753 | else |
---|
1754 | coin_blas_verbosity=0 |
---|
1755 | fi; |
---|
1756 | |
---|
1757 | cat >>confdefs.h <<_ACEOF |
---|
1758 | #define COIN_BLAS_VERBOSITY $coin_blas_verbosity |
---|
1759 | _ACEOF |
---|
1760 | |
---|
1761 | |
---|
1762 | |
---|
1763 | # Check whether --with-blas-checklevel or --without-blas-checklevel was given. |
---|
1764 | if test "${with_blas_checklevel+set}" = set; then |
---|
1765 | withval="$with_blas_checklevel" |
---|
1766 | if test "$withval" = yes; then |
---|
1767 | withval=1 |
---|
1768 | fi |
---|
1769 | coin_blas_checklevel=$withval |
---|
1770 | else |
---|
1771 | coin_blas_checklevel=0 |
---|
1772 | fi; |
---|
1773 | |
---|
1774 | cat >>confdefs.h <<_ACEOF |
---|
1775 | #define COIN_BLAS_CHECKLEVEL $coin_blas_checklevel |
---|
1776 | _ACEOF |
---|
1777 | |
---|
1778 | |
---|
1779 | # We use the following variable to have a string with the upper case |
---|
1780 | # version of the project name |
---|
1781 | COIN_PRJCT=BLAS |
---|
1782 | |
---|
1783 | |
---|
1784 | # m4_ifvaln([Blas], |
---|
1785 | |
---|
1786 | |
---|
1787 | |
---|
1788 | # Get the name of the Fortran compiler and appropriate compiler options |
---|
1789 | case $build in |
---|
1790 | *-mingw*) |
---|
1791 | if test "${LD+set}" = set; then :; else |
---|
1792 | LD=link |
---|
1793 | fi |
---|
1794 | ;; |
---|
1795 | esac |
---|
1796 | case $enable_doscompile in |
---|
1797 | msvc) |
---|
1798 | if test "x${LD+set}" = xset; then :; else |
---|
1799 | LD=link |
---|
1800 | fi |
---|
1801 | ;; |
---|
1802 | esac |
---|
1803 | |
---|
1804 | |
---|
1805 | # Check whether --enable-doscompile or --disable-doscompile was given. |
---|
1806 | if test "${enable_doscompile+set}" = set; then |
---|
1807 | enableval="$enable_doscompile" |
---|
1808 | if test "$enable_doscompile" != no; then |
---|
1809 | case $build in |
---|
1810 | *-cygwin* | *-mingw*) ;; |
---|
1811 | *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5 |
---|
1812 | echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;} |
---|
1813 | { (exit 1); exit 1; }; } ;; |
---|
1814 | esac |
---|
1815 | fi |
---|
1816 | else |
---|
1817 | enable_doscompile=no |
---|
1818 | fi; |
---|
1819 | case "$enable_doscompile" in |
---|
1820 | mingw) |
---|
1821 | case $build in |
---|
1822 | *-mingw*) enable_doscompile=no ;; |
---|
1823 | esac |
---|
1824 | ;; |
---|
1825 | msvc|no) ;; |
---|
1826 | yes) enable_doscompile=mingw ;; |
---|
1827 | *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile. |
---|
1828 | Try configure --help=recursive." >&5 |
---|
1829 | echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile. |
---|
1830 | Try configure --help=recursive." >&2;} |
---|
1831 | { (exit 1); exit 1; }; } |
---|
1832 | ;; |
---|
1833 | esac |
---|
1834 | if test "$enable_doscompile" != no ; then |
---|
1835 | { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5 |
---|
1836 | echo "$as_me: DOS compile style is: $enable_doscompile" >&6;} |
---|
1837 | fi |
---|
1838 | |
---|
1839 | |
---|
1840 | |
---|
1841 | |
---|
1842 | ac_ext=c |
---|
1843 | ac_cpp='$CPP $CPPFLAGS' |
---|
1844 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1845 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1846 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1847 | |
---|
1848 | |
---|
1849 | # For consistency, we set the C compiler to the same value of the C++ |
---|
1850 | # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl) |
---|
1851 | if test x"$CXX" != x; then |
---|
1852 | case "$CXX" in |
---|
1853 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
1854 | if test x"$CC" = x; then |
---|
1855 | CC="$CXX" |
---|
1856 | { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5 |
---|
1857 | echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;} |
---|
1858 | fi |
---|
1859 | ;; |
---|
1860 | esac |
---|
1861 | fi |
---|
1862 | |
---|
1863 | |
---|
1864 | |
---|
1865 | |
---|
1866 | |
---|
1867 | |
---|
1868 | coin_has_cc=yes |
---|
1869 | |
---|
1870 | save_cflags="$CFLAGS" |
---|
1871 | |
---|
1872 | # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list. |
---|
1873 | # Depending on the user's PATH, when Studio/Workshop cc is not present we may |
---|
1874 | # find /usr/ucb/cc, which is almost certainly not a good choice for the C |
---|
1875 | # compiler. In this case, put cc after gcc. |
---|
1876 | |
---|
1877 | case $build in |
---|
1878 | *-cygwin* | *-mingw*) |
---|
1879 | if test "$enable_doscompile" = msvc ; then |
---|
1880 | comps="icl cl" |
---|
1881 | else |
---|
1882 | comps="gcc cl" |
---|
1883 | fi ;; |
---|
1884 | *-*-solaris*) |
---|
1885 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1886 | set dummy cc; ac_word=$2 |
---|
1887 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1888 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1889 | if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then |
---|
1890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1891 | else |
---|
1892 | if test -n "$sol_cc_compiler"; then |
---|
1893 | ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test. |
---|
1894 | else |
---|
1895 | ac_prog_rejected=no |
---|
1896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1897 | for as_dir in $PATH |
---|
1898 | do |
---|
1899 | IFS=$as_save_IFS |
---|
1900 | test -z "$as_dir" && as_dir=. |
---|
1901 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1902 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1903 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
1904 | ac_prog_rejected=yes |
---|
1905 | continue |
---|
1906 | fi |
---|
1907 | ac_cv_prog_sol_cc_compiler="cc" |
---|
1908 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1909 | break 2 |
---|
1910 | fi |
---|
1911 | done |
---|
1912 | done |
---|
1913 | |
---|
1914 | if test $ac_prog_rejected = yes; then |
---|
1915 | # We found a bogon in the path, so make sure we never use it. |
---|
1916 | set dummy $ac_cv_prog_sol_cc_compiler |
---|
1917 | shift |
---|
1918 | if test $# != 0; then |
---|
1919 | # We chose a different compiler from the bogus one. |
---|
1920 | # However, it has the same basename, so the bogon will be chosen |
---|
1921 | # first if we set sol_cc_compiler to just the basename; use the full file name. |
---|
1922 | shift |
---|
1923 | ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@" |
---|
1924 | fi |
---|
1925 | fi |
---|
1926 | fi |
---|
1927 | fi |
---|
1928 | sol_cc_compiler=$ac_cv_prog_sol_cc_compiler |
---|
1929 | if test -n "$sol_cc_compiler"; then |
---|
1930 | echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5 |
---|
1931 | echo "${ECHO_T}$sol_cc_compiler" >&6 |
---|
1932 | else |
---|
1933 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1934 | echo "${ECHO_T}no" >&6 |
---|
1935 | fi |
---|
1936 | |
---|
1937 | if test "$sol_cc_compiler" = "cc" ; then |
---|
1938 | comps="cc xlc gcc pgcc icc" |
---|
1939 | else |
---|
1940 | comps="xlc gcc pgcc icc cc" |
---|
1941 | fi |
---|
1942 | ;; |
---|
1943 | *-linux-*) comps="xlc gcc cc pgcc icc" ;; |
---|
1944 | *) comps="xlc_r xlc cc gcc pgcc icc" ;; |
---|
1945 | esac |
---|
1946 | |
---|
1947 | # We delete the cached value, since the test might not have been |
---|
1948 | # performed with our choice of compilers earlier |
---|
1949 | $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; } |
---|
1950 | # AC_MSG_NOTICE([C compiler candidates: $comps]) |
---|
1951 | ac_ext=c |
---|
1952 | ac_cpp='$CPP $CPPFLAGS' |
---|
1953 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1954 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1955 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1956 | if test -n "$ac_tool_prefix"; then |
---|
1957 | for ac_prog in $comps |
---|
1958 | do |
---|
1959 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1960 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1961 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1962 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1963 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1965 | else |
---|
1966 | if test -n "$CC"; then |
---|
1967 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1968 | else |
---|
1969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1970 | for as_dir in $PATH |
---|
1971 | do |
---|
1972 | IFS=$as_save_IFS |
---|
1973 | test -z "$as_dir" && as_dir=. |
---|
1974 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1975 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1976 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
1977 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1978 | break 2 |
---|
1979 | fi |
---|
1980 | done |
---|
1981 | done |
---|
1982 | |
---|
1983 | fi |
---|
1984 | fi |
---|
1985 | CC=$ac_cv_prog_CC |
---|
1986 | if test -n "$CC"; then |
---|
1987 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1988 | echo "${ECHO_T}$CC" >&6 |
---|
1989 | else |
---|
1990 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1991 | echo "${ECHO_T}no" >&6 |
---|
1992 | fi |
---|
1993 | |
---|
1994 | test -n "$CC" && break |
---|
1995 | done |
---|
1996 | fi |
---|
1997 | if test -z "$CC"; then |
---|
1998 | ac_ct_CC=$CC |
---|
1999 | for ac_prog in $comps |
---|
2000 | do |
---|
2001 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2002 | set dummy $ac_prog; ac_word=$2 |
---|
2003 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2004 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2005 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2007 | else |
---|
2008 | if test -n "$ac_ct_CC"; then |
---|
2009 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2010 | else |
---|
2011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2012 | for as_dir in $PATH |
---|
2013 | do |
---|
2014 | IFS=$as_save_IFS |
---|
2015 | test -z "$as_dir" && as_dir=. |
---|
2016 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2017 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2018 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2019 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2020 | break 2 |
---|
2021 | fi |
---|
2022 | done |
---|
2023 | done |
---|
2024 | |
---|
2025 | fi |
---|
2026 | fi |
---|
2027 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2028 | if test -n "$ac_ct_CC"; then |
---|
2029 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2030 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2031 | else |
---|
2032 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2033 | echo "${ECHO_T}no" >&6 |
---|
2034 | fi |
---|
2035 | |
---|
2036 | test -n "$ac_ct_CC" && break |
---|
2037 | done |
---|
2038 | |
---|
2039 | CC=$ac_ct_CC |
---|
2040 | fi |
---|
2041 | |
---|
2042 | |
---|
2043 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2044 | See \`config.log' for more details." >&5 |
---|
2045 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2046 | See \`config.log' for more details." >&2;} |
---|
2047 | { (exit 1); exit 1; }; } |
---|
2048 | |
---|
2049 | # Provide some information about the compiler. |
---|
2050 | echo "$as_me:$LINENO:" \ |
---|
2051 | "checking for C compiler version" >&5 |
---|
2052 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2053 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2054 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2055 | ac_status=$? |
---|
2056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2057 | (exit $ac_status); } |
---|
2058 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2059 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2060 | ac_status=$? |
---|
2061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2062 | (exit $ac_status); } |
---|
2063 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2064 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2065 | ac_status=$? |
---|
2066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2067 | (exit $ac_status); } |
---|
2068 | |
---|
2069 | cat >conftest.$ac_ext <<_ACEOF |
---|
2070 | /* confdefs.h. */ |
---|
2071 | _ACEOF |
---|
2072 | cat confdefs.h >>conftest.$ac_ext |
---|
2073 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2074 | /* end confdefs.h. */ |
---|
2075 | |
---|
2076 | int |
---|
2077 | main () |
---|
2078 | { |
---|
2079 | |
---|
2080 | ; |
---|
2081 | return 0; |
---|
2082 | } |
---|
2083 | _ACEOF |
---|
2084 | ac_clean_files_save=$ac_clean_files |
---|
2085 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
2086 | # Try to create an executable without -o first, disregard a.out. |
---|
2087 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2088 | # of exeext. |
---|
2089 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
2090 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
---|
2091 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2092 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
2093 | (eval $ac_link_default) 2>&5 |
---|
2094 | ac_status=$? |
---|
2095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2096 | (exit $ac_status); }; then |
---|
2097 | # Find the output, starting from the most likely. This scheme is |
---|
2098 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2099 | # resort. |
---|
2100 | |
---|
2101 | # Be careful to initialize this variable, since it used to be cached. |
---|
2102 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2103 | ac_cv_exeext= |
---|
2104 | # b.out is created by i960 compilers. |
---|
2105 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2106 | do |
---|
2107 | test -f "$ac_file" || continue |
---|
2108 | case $ac_file in |
---|
2109 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2110 | ;; |
---|
2111 | conftest.$ac_ext ) |
---|
2112 | # This is the source file. |
---|
2113 | ;; |
---|
2114 | [ab].out ) |
---|
2115 | # We found the default executable, but exeext='' is most |
---|
2116 | # certainly right. |
---|
2117 | break;; |
---|
2118 | *.* ) |
---|
2119 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2120 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2121 | # but it would be cool to find out if it's true. Does anybody |
---|
2122 | # maintain Libtool? --akim. |
---|
2123 | export ac_cv_exeext |
---|
2124 | break;; |
---|
2125 | * ) |
---|
2126 | break;; |
---|
2127 | esac |
---|
2128 | done |
---|
2129 | else |
---|
2130 | echo "$as_me: failed program was:" >&5 |
---|
2131 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2132 | |
---|
2133 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
2134 | See \`config.log' for more details." >&5 |
---|
2135 | echo "$as_me: error: C compiler cannot create executables |
---|
2136 | See \`config.log' for more details." >&2;} |
---|
2137 | { (exit 77); exit 77; }; } |
---|
2138 | fi |
---|
2139 | |
---|
2140 | ac_exeext=$ac_cv_exeext |
---|
2141 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2142 | echo "${ECHO_T}$ac_file" >&6 |
---|
2143 | |
---|
2144 | # Check the compiler produces executables we can run. If not, either |
---|
2145 | # the compiler is broken, or we cross compile. |
---|
2146 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
2147 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
2148 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2149 | # If not cross compiling, check that we can run a simple program. |
---|
2150 | if test "$cross_compiling" != yes; then |
---|
2151 | if { ac_try='./$ac_file' |
---|
2152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2153 | (eval $ac_try) 2>&5 |
---|
2154 | ac_status=$? |
---|
2155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2156 | (exit $ac_status); }; }; then |
---|
2157 | cross_compiling=no |
---|
2158 | else |
---|
2159 | if test "$cross_compiling" = maybe; then |
---|
2160 | cross_compiling=yes |
---|
2161 | else |
---|
2162 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
2163 | If you meant to cross compile, use \`--host'. |
---|
2164 | See \`config.log' for more details." >&5 |
---|
2165 | echo "$as_me: error: cannot run C compiled programs. |
---|
2166 | If you meant to cross compile, use \`--host'. |
---|
2167 | See \`config.log' for more details." >&2;} |
---|
2168 | { (exit 1); exit 1; }; } |
---|
2169 | fi |
---|
2170 | fi |
---|
2171 | fi |
---|
2172 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2173 | echo "${ECHO_T}yes" >&6 |
---|
2174 | |
---|
2175 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2176 | ac_clean_files=$ac_clean_files_save |
---|
2177 | # Check the compiler produces executables we can run. If not, either |
---|
2178 | # the compiler is broken, or we cross compile. |
---|
2179 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2180 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2181 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2182 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2183 | |
---|
2184 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2185 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2187 | (eval $ac_link) 2>&5 |
---|
2188 | ac_status=$? |
---|
2189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2190 | (exit $ac_status); }; then |
---|
2191 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2192 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2193 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2194 | # `rm'. |
---|
2195 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2196 | test -f "$ac_file" || continue |
---|
2197 | case $ac_file in |
---|
2198 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2199 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2200 | export ac_cv_exeext |
---|
2201 | break;; |
---|
2202 | * ) break;; |
---|
2203 | esac |
---|
2204 | done |
---|
2205 | else |
---|
2206 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2207 | See \`config.log' for more details." >&5 |
---|
2208 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2209 | See \`config.log' for more details." >&2;} |
---|
2210 | { (exit 1); exit 1; }; } |
---|
2211 | fi |
---|
2212 | |
---|
2213 | rm -f conftest$ac_cv_exeext |
---|
2214 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2215 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2216 | |
---|
2217 | rm -f conftest.$ac_ext |
---|
2218 | EXEEXT=$ac_cv_exeext |
---|
2219 | ac_exeext=$EXEEXT |
---|
2220 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2221 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2222 | if test "${ac_cv_objext+set}" = set; then |
---|
2223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2224 | else |
---|
2225 | cat >conftest.$ac_ext <<_ACEOF |
---|
2226 | /* confdefs.h. */ |
---|
2227 | _ACEOF |
---|
2228 | cat confdefs.h >>conftest.$ac_ext |
---|
2229 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2230 | /* end confdefs.h. */ |
---|
2231 | |
---|
2232 | int |
---|
2233 | main () |
---|
2234 | { |
---|
2235 | |
---|
2236 | ; |
---|
2237 | return 0; |
---|
2238 | } |
---|
2239 | _ACEOF |
---|
2240 | rm -f conftest.o conftest.obj |
---|
2241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2242 | (eval $ac_compile) 2>&5 |
---|
2243 | ac_status=$? |
---|
2244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2245 | (exit $ac_status); }; then |
---|
2246 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2247 | case $ac_file in |
---|
2248 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2249 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2250 | break;; |
---|
2251 | esac |
---|
2252 | done |
---|
2253 | else |
---|
2254 | echo "$as_me: failed program was:" >&5 |
---|
2255 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2256 | |
---|
2257 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2258 | See \`config.log' for more details." >&5 |
---|
2259 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2260 | See \`config.log' for more details." >&2;} |
---|
2261 | { (exit 1); exit 1; }; } |
---|
2262 | fi |
---|
2263 | |
---|
2264 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2265 | fi |
---|
2266 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2267 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2268 | OBJEXT=$ac_cv_objext |
---|
2269 | ac_objext=$OBJEXT |
---|
2270 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2271 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2272 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2274 | else |
---|
2275 | cat >conftest.$ac_ext <<_ACEOF |
---|
2276 | /* confdefs.h. */ |
---|
2277 | _ACEOF |
---|
2278 | cat confdefs.h >>conftest.$ac_ext |
---|
2279 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2280 | /* end confdefs.h. */ |
---|
2281 | |
---|
2282 | int |
---|
2283 | main () |
---|
2284 | { |
---|
2285 | #ifndef __GNUC__ |
---|
2286 | choke me |
---|
2287 | #endif |
---|
2288 | |
---|
2289 | ; |
---|
2290 | return 0; |
---|
2291 | } |
---|
2292 | _ACEOF |
---|
2293 | rm -f conftest.$ac_objext |
---|
2294 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2295 | (eval $ac_compile) 2>conftest.er1 |
---|
2296 | ac_status=$? |
---|
2297 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2298 | rm -f conftest.er1 |
---|
2299 | cat conftest.err >&5 |
---|
2300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2301 | (exit $ac_status); } && |
---|
2302 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2303 | || test ! -s conftest.err' |
---|
2304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2305 | (eval $ac_try) 2>&5 |
---|
2306 | ac_status=$? |
---|
2307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2308 | (exit $ac_status); }; } && |
---|
2309 | { ac_try='test -s conftest.$ac_objext' |
---|
2310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2311 | (eval $ac_try) 2>&5 |
---|
2312 | ac_status=$? |
---|
2313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2314 | (exit $ac_status); }; }; then |
---|
2315 | ac_compiler_gnu=yes |
---|
2316 | else |
---|
2317 | echo "$as_me: failed program was:" >&5 |
---|
2318 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2319 | |
---|
2320 | ac_compiler_gnu=no |
---|
2321 | fi |
---|
2322 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2323 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2324 | |
---|
2325 | fi |
---|
2326 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2327 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2328 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2329 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2330 | ac_save_CFLAGS=$CFLAGS |
---|
2331 | CFLAGS="-g" |
---|
2332 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2333 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2334 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2336 | else |
---|
2337 | cat >conftest.$ac_ext <<_ACEOF |
---|
2338 | /* confdefs.h. */ |
---|
2339 | _ACEOF |
---|
2340 | cat confdefs.h >>conftest.$ac_ext |
---|
2341 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2342 | /* end confdefs.h. */ |
---|
2343 | |
---|
2344 | int |
---|
2345 | main () |
---|
2346 | { |
---|
2347 | |
---|
2348 | ; |
---|
2349 | return 0; |
---|
2350 | } |
---|
2351 | _ACEOF |
---|
2352 | rm -f conftest.$ac_objext |
---|
2353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2354 | (eval $ac_compile) 2>conftest.er1 |
---|
2355 | ac_status=$? |
---|
2356 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2357 | rm -f conftest.er1 |
---|
2358 | cat conftest.err >&5 |
---|
2359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2360 | (exit $ac_status); } && |
---|
2361 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2362 | || test ! -s conftest.err' |
---|
2363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2364 | (eval $ac_try) 2>&5 |
---|
2365 | ac_status=$? |
---|
2366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2367 | (exit $ac_status); }; } && |
---|
2368 | { ac_try='test -s conftest.$ac_objext' |
---|
2369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2370 | (eval $ac_try) 2>&5 |
---|
2371 | ac_status=$? |
---|
2372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2373 | (exit $ac_status); }; }; then |
---|
2374 | ac_cv_prog_cc_g=yes |
---|
2375 | else |
---|
2376 | echo "$as_me: failed program was:" >&5 |
---|
2377 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2378 | |
---|
2379 | ac_cv_prog_cc_g=no |
---|
2380 | fi |
---|
2381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2382 | fi |
---|
2383 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2384 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2385 | if test "$ac_test_CFLAGS" = set; then |
---|
2386 | CFLAGS=$ac_save_CFLAGS |
---|
2387 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2388 | if test "$GCC" = yes; then |
---|
2389 | CFLAGS="-g -O2" |
---|
2390 | else |
---|
2391 | CFLAGS="-g" |
---|
2392 | fi |
---|
2393 | else |
---|
2394 | if test "$GCC" = yes; then |
---|
2395 | CFLAGS="-O2" |
---|
2396 | else |
---|
2397 | CFLAGS= |
---|
2398 | fi |
---|
2399 | fi |
---|
2400 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2401 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2402 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2404 | else |
---|
2405 | ac_cv_prog_cc_stdc=no |
---|
2406 | ac_save_CC=$CC |
---|
2407 | cat >conftest.$ac_ext <<_ACEOF |
---|
2408 | /* confdefs.h. */ |
---|
2409 | _ACEOF |
---|
2410 | cat confdefs.h >>conftest.$ac_ext |
---|
2411 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2412 | /* end confdefs.h. */ |
---|
2413 | #include <stdarg.h> |
---|
2414 | #include <stdio.h> |
---|
2415 | #include <sys/types.h> |
---|
2416 | #include <sys/stat.h> |
---|
2417 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2418 | struct buf { int x; }; |
---|
2419 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2420 | static char *e (p, i) |
---|
2421 | char **p; |
---|
2422 | int i; |
---|
2423 | { |
---|
2424 | return p[i]; |
---|
2425 | } |
---|
2426 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2427 | { |
---|
2428 | char *s; |
---|
2429 | va_list v; |
---|
2430 | va_start (v,p); |
---|
2431 | s = g (p, va_arg (v,int)); |
---|
2432 | va_end (v); |
---|
2433 | return s; |
---|
2434 | } |
---|
2435 | |
---|
2436 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2437 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2438 | These don't provoke an error unfortunately, instead are silently treated |
---|
2439 | as 'x'. The following induces an error, until -std1 is added to get |
---|
2440 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2441 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2442 | that's true only with -std1. */ |
---|
2443 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2444 | |
---|
2445 | int test (int i, double x); |
---|
2446 | struct s1 {int (*f) (int a);}; |
---|
2447 | struct s2 {int (*f) (double a);}; |
---|
2448 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2449 | int argc; |
---|
2450 | char **argv; |
---|
2451 | int |
---|
2452 | main () |
---|
2453 | { |
---|
2454 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2455 | ; |
---|
2456 | return 0; |
---|
2457 | } |
---|
2458 | _ACEOF |
---|
2459 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2460 | # breaks some systems' header files. |
---|
2461 | # AIX -qlanglvl=ansi |
---|
2462 | # Ultrix and OSF/1 -std1 |
---|
2463 | # HP-UX 10.20 and later -Ae |
---|
2464 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2465 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2466 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2467 | do |
---|
2468 | CC="$ac_save_CC $ac_arg" |
---|
2469 | rm -f conftest.$ac_objext |
---|
2470 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2471 | (eval $ac_compile) 2>conftest.er1 |
---|
2472 | ac_status=$? |
---|
2473 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2474 | rm -f conftest.er1 |
---|
2475 | cat conftest.err >&5 |
---|
2476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2477 | (exit $ac_status); } && |
---|
2478 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2479 | || test ! -s conftest.err' |
---|
2480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2481 | (eval $ac_try) 2>&5 |
---|
2482 | ac_status=$? |
---|
2483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2484 | (exit $ac_status); }; } && |
---|
2485 | { ac_try='test -s conftest.$ac_objext' |
---|
2486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2487 | (eval $ac_try) 2>&5 |
---|
2488 | ac_status=$? |
---|
2489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2490 | (exit $ac_status); }; }; then |
---|
2491 | ac_cv_prog_cc_stdc=$ac_arg |
---|
2492 | break |
---|
2493 | else |
---|
2494 | echo "$as_me: failed program was:" >&5 |
---|
2495 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2496 | |
---|
2497 | fi |
---|
2498 | rm -f conftest.err conftest.$ac_objext |
---|
2499 | done |
---|
2500 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
2501 | CC=$ac_save_CC |
---|
2502 | |
---|
2503 | fi |
---|
2504 | |
---|
2505 | case "x$ac_cv_prog_cc_stdc" in |
---|
2506 | x|xno) |
---|
2507 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
2508 | echo "${ECHO_T}none needed" >&6 ;; |
---|
2509 | *) |
---|
2510 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
2511 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
2512 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
2513 | esac |
---|
2514 | |
---|
2515 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
2516 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
2517 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
2518 | # the declaration of exit, since it's the most demanding environment. |
---|
2519 | cat >conftest.$ac_ext <<_ACEOF |
---|
2520 | #ifndef __cplusplus |
---|
2521 | choke me |
---|
2522 | #endif |
---|
2523 | _ACEOF |
---|
2524 | rm -f conftest.$ac_objext |
---|
2525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2526 | (eval $ac_compile) 2>conftest.er1 |
---|
2527 | ac_status=$? |
---|
2528 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2529 | rm -f conftest.er1 |
---|
2530 | cat conftest.err >&5 |
---|
2531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2532 | (exit $ac_status); } && |
---|
2533 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2534 | || test ! -s conftest.err' |
---|
2535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2536 | (eval $ac_try) 2>&5 |
---|
2537 | ac_status=$? |
---|
2538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2539 | (exit $ac_status); }; } && |
---|
2540 | { ac_try='test -s conftest.$ac_objext' |
---|
2541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2542 | (eval $ac_try) 2>&5 |
---|
2543 | ac_status=$? |
---|
2544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2545 | (exit $ac_status); }; }; then |
---|
2546 | for ac_declaration in \ |
---|
2547 | '' \ |
---|
2548 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2549 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2550 | 'extern "C" void exit (int) throw ();' \ |
---|
2551 | 'extern "C" void exit (int);' \ |
---|
2552 | 'void exit (int);' |
---|
2553 | do |
---|
2554 | cat >conftest.$ac_ext <<_ACEOF |
---|
2555 | /* confdefs.h. */ |
---|
2556 | _ACEOF |
---|
2557 | cat confdefs.h >>conftest.$ac_ext |
---|
2558 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2559 | /* end confdefs.h. */ |
---|
2560 | $ac_declaration |
---|
2561 | #include <stdlib.h> |
---|
2562 | int |
---|
2563 | main () |
---|
2564 | { |
---|
2565 | exit (42); |
---|
2566 | ; |
---|
2567 | return 0; |
---|
2568 | } |
---|
2569 | _ACEOF |
---|
2570 | rm -f conftest.$ac_objext |
---|
2571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2572 | (eval $ac_compile) 2>conftest.er1 |
---|
2573 | ac_status=$? |
---|
2574 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2575 | rm -f conftest.er1 |
---|
2576 | cat conftest.err >&5 |
---|
2577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2578 | (exit $ac_status); } && |
---|
2579 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2580 | || test ! -s conftest.err' |
---|
2581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2582 | (eval $ac_try) 2>&5 |
---|
2583 | ac_status=$? |
---|
2584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2585 | (exit $ac_status); }; } && |
---|
2586 | { ac_try='test -s conftest.$ac_objext' |
---|
2587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2588 | (eval $ac_try) 2>&5 |
---|
2589 | ac_status=$? |
---|
2590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2591 | (exit $ac_status); }; }; then |
---|
2592 | : |
---|
2593 | else |
---|
2594 | echo "$as_me: failed program was:" >&5 |
---|
2595 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2596 | |
---|
2597 | continue |
---|
2598 | fi |
---|
2599 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2600 | cat >conftest.$ac_ext <<_ACEOF |
---|
2601 | /* confdefs.h. */ |
---|
2602 | _ACEOF |
---|
2603 | cat confdefs.h >>conftest.$ac_ext |
---|
2604 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2605 | /* end confdefs.h. */ |
---|
2606 | $ac_declaration |
---|
2607 | int |
---|
2608 | main () |
---|
2609 | { |
---|
2610 | exit (42); |
---|
2611 | ; |
---|
2612 | return 0; |
---|
2613 | } |
---|
2614 | _ACEOF |
---|
2615 | rm -f conftest.$ac_objext |
---|
2616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2617 | (eval $ac_compile) 2>conftest.er1 |
---|
2618 | ac_status=$? |
---|
2619 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2620 | rm -f conftest.er1 |
---|
2621 | cat conftest.err >&5 |
---|
2622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2623 | (exit $ac_status); } && |
---|
2624 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2625 | || test ! -s conftest.err' |
---|
2626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2627 | (eval $ac_try) 2>&5 |
---|
2628 | ac_status=$? |
---|
2629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2630 | (exit $ac_status); }; } && |
---|
2631 | { ac_try='test -s conftest.$ac_objext' |
---|
2632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2633 | (eval $ac_try) 2>&5 |
---|
2634 | ac_status=$? |
---|
2635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2636 | (exit $ac_status); }; }; then |
---|
2637 | break |
---|
2638 | else |
---|
2639 | echo "$as_me: failed program was:" >&5 |
---|
2640 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2641 | |
---|
2642 | fi |
---|
2643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2644 | done |
---|
2645 | rm -f conftest* |
---|
2646 | if test -n "$ac_declaration"; then |
---|
2647 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2648 | echo $ac_declaration >>confdefs.h |
---|
2649 | echo '#endif' >>confdefs.h |
---|
2650 | fi |
---|
2651 | |
---|
2652 | else |
---|
2653 | echo "$as_me: failed program was:" >&5 |
---|
2654 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2655 | |
---|
2656 | fi |
---|
2657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2658 | ac_ext=c |
---|
2659 | ac_cpp='$CPP $CPPFLAGS' |
---|
2660 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2661 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2662 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2663 | |
---|
2664 | if test -z "$CC" ; then |
---|
2665 | { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5 |
---|
2666 | echo "$as_me: error: Failed to find a C compiler!" >&2;} |
---|
2667 | { (exit 1); exit 1; }; } |
---|
2668 | fi |
---|
2669 | # Autoconf incorrectly concludes that cl recognises -g. It doesn't. |
---|
2670 | case "$CC" in |
---|
2671 | cl* | */cl* | CL* | */CL* ) |
---|
2672 | if test "$ac_cv_prog_cc_g" = yes ; then |
---|
2673 | ac_cv_prog_cc_g=no |
---|
2674 | { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 |
---|
2675 | echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} |
---|
2676 | fi ;; |
---|
2677 | esac |
---|
2678 | CFLAGS="$save_cflags" |
---|
2679 | |
---|
2680 | # Check if a project specific CFLAGS variable has been set |
---|
2681 | if test x$COIN_PRJCT != x; then |
---|
2682 | eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set} |
---|
2683 | if test x$coin_tmp = xset; then |
---|
2684 | eval CFLAGS=\${${COIN_PRJCT}_CFLAGS} |
---|
2685 | fi |
---|
2686 | fi |
---|
2687 | |
---|
2688 | if test x"$CFLAGS" = x; then |
---|
2689 | |
---|
2690 | coin_add_cflags= |
---|
2691 | coin_opt_cflags= |
---|
2692 | coin_dbg_cflags= |
---|
2693 | coin_warn_cflags= |
---|
2694 | |
---|
2695 | if test "$GCC" = "yes"; then |
---|
2696 | case "$CC" in |
---|
2697 | icc* | */icc*) |
---|
2698 | ;; |
---|
2699 | *) |
---|
2700 | coin_opt_cflags="-O3 -fomit-frame-pointer" |
---|
2701 | coin_add_cflags="-pipe" |
---|
2702 | coin_dbg_cflags="-g" |
---|
2703 | coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas" |
---|
2704 | case $build in |
---|
2705 | *-darwin*) |
---|
2706 | ;; |
---|
2707 | *) |
---|
2708 | coin_warn_cflags="-pedantic-errors $coin_warn_cflags" |
---|
2709 | ;; |
---|
2710 | esac |
---|
2711 | case $enable_doscompile in |
---|
2712 | mingw) |
---|
2713 | CFLAGS="-mno-cygwin" |
---|
2714 | cat >conftest.$ac_ext <<_ACEOF |
---|
2715 | /* confdefs.h. */ |
---|
2716 | _ACEOF |
---|
2717 | cat confdefs.h >>conftest.$ac_ext |
---|
2718 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2719 | /* end confdefs.h. */ |
---|
2720 | |
---|
2721 | int |
---|
2722 | main () |
---|
2723 | { |
---|
2724 | int i=0; i++; |
---|
2725 | ; |
---|
2726 | return 0; |
---|
2727 | } |
---|
2728 | _ACEOF |
---|
2729 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2730 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2731 | (eval $ac_link) 2>conftest.er1 |
---|
2732 | ac_status=$? |
---|
2733 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2734 | rm -f conftest.er1 |
---|
2735 | cat conftest.err >&5 |
---|
2736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2737 | (exit $ac_status); } && |
---|
2738 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2739 | || test ! -s conftest.err' |
---|
2740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2741 | (eval $ac_try) 2>&5 |
---|
2742 | ac_status=$? |
---|
2743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2744 | (exit $ac_status); }; } && |
---|
2745 | { ac_try='test -s conftest$ac_exeext' |
---|
2746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2747 | (eval $ac_try) 2>&5 |
---|
2748 | ac_status=$? |
---|
2749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2750 | (exit $ac_status); }; }; then |
---|
2751 | coin_add_cflags="-mno-cygwin $coin_add_cflags" |
---|
2752 | else |
---|
2753 | echo "$as_me: failed program was:" >&5 |
---|
2754 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2755 | |
---|
2756 | fi |
---|
2757 | rm -f conftest.err conftest.$ac_objext \ |
---|
2758 | conftest$ac_exeext conftest.$ac_ext |
---|
2759 | CFLAGS= |
---|
2760 | ;; |
---|
2761 | esac |
---|
2762 | esac |
---|
2763 | fi |
---|
2764 | if test -z "$coin_opt_cflags"; then |
---|
2765 | case $build in |
---|
2766 | *-cygwin* | *-mingw*) |
---|
2767 | case "$CC" in |
---|
2768 | cl* | */cl* | CL* | */CL*) |
---|
2769 | coin_opt_cflags='-MT -O2' |
---|
2770 | coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE' |
---|
2771 | coin_dbg_cflags='-MTd' |
---|
2772 | ;; |
---|
2773 | icl* | */icl* | ICL* | */ICL*) |
---|
2774 | coin_opt_cflags='-MT -Ox' |
---|
2775 | coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE' |
---|
2776 | coin_dbg_cflags='-MTd -debug' |
---|
2777 | ;; |
---|
2778 | esac |
---|
2779 | ;; |
---|
2780 | *-linux-*) |
---|
2781 | case "$CC" in |
---|
2782 | icc* | */icc*) |
---|
2783 | coin_opt_cflags="-O3 -ip -mp1" |
---|
2784 | coin_add_cflags="" |
---|
2785 | coin_dbg_cflags="-g" |
---|
2786 | # Check if -i_dynamic is necessary (for new glibc library) |
---|
2787 | CFLAGS= |
---|
2788 | cat >conftest.$ac_ext <<_ACEOF |
---|
2789 | /* confdefs.h. */ |
---|
2790 | _ACEOF |
---|
2791 | cat confdefs.h >>conftest.$ac_ext |
---|
2792 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2793 | /* end confdefs.h. */ |
---|
2794 | |
---|
2795 | int |
---|
2796 | main () |
---|
2797 | { |
---|
2798 | int i=0; i++; |
---|
2799 | ; |
---|
2800 | return 0; |
---|
2801 | } |
---|
2802 | _ACEOF |
---|
2803 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2804 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2805 | (eval $ac_link) 2>conftest.er1 |
---|
2806 | ac_status=$? |
---|
2807 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2808 | rm -f conftest.er1 |
---|
2809 | cat conftest.err >&5 |
---|
2810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2811 | (exit $ac_status); } && |
---|
2812 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2813 | || test ! -s conftest.err' |
---|
2814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2815 | (eval $ac_try) 2>&5 |
---|
2816 | ac_status=$? |
---|
2817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2818 | (exit $ac_status); }; } && |
---|
2819 | { ac_try='test -s conftest$ac_exeext' |
---|
2820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2821 | (eval $ac_try) 2>&5 |
---|
2822 | ac_status=$? |
---|
2823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2824 | (exit $ac_status); }; }; then |
---|
2825 | : |
---|
2826 | else |
---|
2827 | echo "$as_me: failed program was:" >&5 |
---|
2828 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2829 | |
---|
2830 | coin_add_cflags="-i_dynamic $coin_add_cflags" |
---|
2831 | fi |
---|
2832 | rm -f conftest.err conftest.$ac_objext \ |
---|
2833 | conftest$ac_exeext conftest.$ac_ext |
---|
2834 | ;; |
---|
2835 | pgcc* | */pgcc*) |
---|
2836 | coin_opt_cflags="-fast" |
---|
2837 | coin_add_cflags="-Kieee -pc 64" |
---|
2838 | coin_dbg_cflags="-g" |
---|
2839 | ;; |
---|
2840 | esac |
---|
2841 | ;; |
---|
2842 | *-ibm-*) |
---|
2843 | case "$CC" in |
---|
2844 | xlc* | */xlc* | mpxlc* | */mpxlc*) |
---|
2845 | coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" |
---|
2846 | coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" |
---|
2847 | coin_dbg_cflags="-g" |
---|
2848 | ;; |
---|
2849 | esac |
---|
2850 | ;; |
---|
2851 | *-hp-*) |
---|
2852 | coin_opt_cflags="-O" |
---|
2853 | coin_add_cflags="-Ae" |
---|
2854 | coin_dbg_cflags="-g" |
---|
2855 | ;; |
---|
2856 | *-*-solaris*) |
---|
2857 | coin_opt_cflags="-xO4" |
---|
2858 | coin_dbg_cflags="-g" |
---|
2859 | ;; |
---|
2860 | *-sgi-*) |
---|
2861 | coin_opt_cflags="-O -OPT:Olimit=0" |
---|
2862 | coin_dbg_cflags="-g" |
---|
2863 | ;; |
---|
2864 | esac |
---|
2865 | fi |
---|
2866 | |
---|
2867 | if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then |
---|
2868 | coin_dbg_cflags="-g" |
---|
2869 | fi |
---|
2870 | |
---|
2871 | if test -z "$coin_opt_cflags"; then |
---|
2872 | # Try if -O option works if nothing else is set |
---|
2873 | CFLAGS="-O" |
---|
2874 | cat >conftest.$ac_ext <<_ACEOF |
---|
2875 | /* confdefs.h. */ |
---|
2876 | _ACEOF |
---|
2877 | cat confdefs.h >>conftest.$ac_ext |
---|
2878 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2879 | /* end confdefs.h. */ |
---|
2880 | |
---|
2881 | int |
---|
2882 | main () |
---|
2883 | { |
---|
2884 | int i=0; i++; |
---|
2885 | ; |
---|
2886 | return 0; |
---|
2887 | } |
---|
2888 | _ACEOF |
---|
2889 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2891 | (eval $ac_link) 2>conftest.er1 |
---|
2892 | ac_status=$? |
---|
2893 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2894 | rm -f conftest.er1 |
---|
2895 | cat conftest.err >&5 |
---|
2896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2897 | (exit $ac_status); } && |
---|
2898 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2899 | || test ! -s conftest.err' |
---|
2900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2901 | (eval $ac_try) 2>&5 |
---|
2902 | ac_status=$? |
---|
2903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2904 | (exit $ac_status); }; } && |
---|
2905 | { ac_try='test -s conftest$ac_exeext' |
---|
2906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2907 | (eval $ac_try) 2>&5 |
---|
2908 | ac_status=$? |
---|
2909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2910 | (exit $ac_status); }; }; then |
---|
2911 | coin_opt_cflags="-O" |
---|
2912 | else |
---|
2913 | echo "$as_me: failed program was:" >&5 |
---|
2914 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2915 | |
---|
2916 | fi |
---|
2917 | rm -f conftest.err conftest.$ac_objext \ |
---|
2918 | conftest$ac_exeext conftest.$ac_ext |
---|
2919 | fi |
---|
2920 | |
---|
2921 | # if PM doesn't want the warning messages, take them out |
---|
2922 | if test x"$coin_skip_warn_cflags" = xyes; then |
---|
2923 | coin_warn_cflags= |
---|
2924 | fi |
---|
2925 | |
---|
2926 | if test x${DBG_CFLAGS+set} != xset; then |
---|
2927 | DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags" |
---|
2928 | fi |
---|
2929 | if test x${OPT_CFLAGS+set} != xset; then |
---|
2930 | OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags" |
---|
2931 | fi |
---|
2932 | |
---|
2933 | DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS" |
---|
2934 | OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS" |
---|
2935 | |
---|
2936 | if test "$coin_debug_compile" = "true"; then |
---|
2937 | CFLAGS="$DBG_CFLAGS" |
---|
2938 | else |
---|
2939 | CFLAGS="$OPT_CFLAGS" |
---|
2940 | fi |
---|
2941 | else |
---|
2942 | CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" |
---|
2943 | if test x${DBG_CFLAGS+set} != xset; then |
---|
2944 | DBG_CFLAGS="$CFLAGS" |
---|
2945 | fi |
---|
2946 | if test x${OPT_CFLAGS+set} != xset; then |
---|
2947 | OPT_CFLAGS="$CFLAGS" |
---|
2948 | fi |
---|
2949 | fi |
---|
2950 | |
---|
2951 | # If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it. |
---|
2952 | |
---|
2953 | case "$CFLAGS" in |
---|
2954 | *-mno-cygwin*) |
---|
2955 | if test x${CPPFLAGS+set} != xset ; then |
---|
2956 | CPPFLAGS="-mno-cygwin" |
---|
2957 | else |
---|
2958 | case "$CPPFLAGS" in |
---|
2959 | *-mno-cygwin*) |
---|
2960 | ;; |
---|
2961 | *) |
---|
2962 | CPPFLAGS="$CPPFLAGS -mno-cygwin" |
---|
2963 | ;; |
---|
2964 | esac |
---|
2965 | fi ;; |
---|
2966 | esac |
---|
2967 | |
---|
2968 | # Try if CFLAGS works |
---|
2969 | save_CFLAGS="$CFLAGS" |
---|
2970 | cat >conftest.$ac_ext <<_ACEOF |
---|
2971 | /* confdefs.h. */ |
---|
2972 | _ACEOF |
---|
2973 | cat confdefs.h >>conftest.$ac_ext |
---|
2974 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2975 | /* end confdefs.h. */ |
---|
2976 | |
---|
2977 | int |
---|
2978 | main () |
---|
2979 | { |
---|
2980 | int i=0; i++; |
---|
2981 | ; |
---|
2982 | return 0; |
---|
2983 | } |
---|
2984 | _ACEOF |
---|
2985 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2987 | (eval $ac_link) 2>conftest.er1 |
---|
2988 | ac_status=$? |
---|
2989 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2990 | rm -f conftest.er1 |
---|
2991 | cat conftest.err >&5 |
---|
2992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2993 | (exit $ac_status); } && |
---|
2994 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2995 | || test ! -s conftest.err' |
---|
2996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2997 | (eval $ac_try) 2>&5 |
---|
2998 | ac_status=$? |
---|
2999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3000 | (exit $ac_status); }; } && |
---|
3001 | { ac_try='test -s conftest$ac_exeext' |
---|
3002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3003 | (eval $ac_try) 2>&5 |
---|
3004 | ac_status=$? |
---|
3005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3006 | (exit $ac_status); }; }; then |
---|
3007 | : |
---|
3008 | else |
---|
3009 | echo "$as_me: failed program was:" >&5 |
---|
3010 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3011 | |
---|
3012 | CFLAGS= |
---|
3013 | fi |
---|
3014 | rm -f conftest.err conftest.$ac_objext \ |
---|
3015 | conftest$ac_exeext conftest.$ac_ext |
---|
3016 | if test -z "$CFLAGS"; then |
---|
3017 | { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work. I will now just try '-O', but you might want to set CFLAGS manually." >&5 |
---|
3018 | echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work. I will now just try '-O', but you might want to set CFLAGS manually." >&2;} |
---|
3019 | CFLAGS='-O' |
---|
3020 | cat >conftest.$ac_ext <<_ACEOF |
---|
3021 | /* confdefs.h. */ |
---|
3022 | _ACEOF |
---|
3023 | cat confdefs.h >>conftest.$ac_ext |
---|
3024 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3025 | /* end confdefs.h. */ |
---|
3026 | |
---|
3027 | int |
---|
3028 | main () |
---|
3029 | { |
---|
3030 | int i=0; i++; |
---|
3031 | ; |
---|
3032 | return 0; |
---|
3033 | } |
---|
3034 | _ACEOF |
---|
3035 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3036 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3037 | (eval $ac_link) 2>conftest.er1 |
---|
3038 | ac_status=$? |
---|
3039 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3040 | rm -f conftest.er1 |
---|
3041 | cat conftest.err >&5 |
---|
3042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3043 | (exit $ac_status); } && |
---|
3044 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3045 | || test ! -s conftest.err' |
---|
3046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3047 | (eval $ac_try) 2>&5 |
---|
3048 | ac_status=$? |
---|
3049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3050 | (exit $ac_status); }; } && |
---|
3051 | { ac_try='test -s conftest$ac_exeext' |
---|
3052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3053 | (eval $ac_try) 2>&5 |
---|
3054 | ac_status=$? |
---|
3055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3056 | (exit $ac_status); }; }; then |
---|
3057 | : |
---|
3058 | else |
---|
3059 | echo "$as_me: failed program was:" >&5 |
---|
3060 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3061 | |
---|
3062 | CFLAGS= |
---|
3063 | fi |
---|
3064 | rm -f conftest.err conftest.$ac_objext \ |
---|
3065 | conftest$ac_exeext conftest.$ac_ext |
---|
3066 | if test -z "$CFLAGS"; then |
---|
3067 | { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work. I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5 |
---|
3068 | echo "$as_me: WARNING: This value for CFLAGS does not work. I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;} |
---|
3069 | fi |
---|
3070 | fi |
---|
3071 | |
---|
3072 | { echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5 |
---|
3073 | echo "$as_me: C compiler options are: $CFLAGS" >&6;} |
---|
3074 | |
---|
3075 | |
---|
3076 | if test x"$MPICC" = x; then :; else |
---|
3077 | { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5 |
---|
3078 | echo "$as_me: Will use MPI C compiler $MPICC" >&6;} |
---|
3079 | CC="$MPICC" |
---|
3080 | fi |
---|
3081 | |
---|
3082 | # Correct ADDLIBS initialization if we are using the MS compiler |
---|
3083 | case "$CC" in |
---|
3084 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
3085 | ADDLIBS= |
---|
3086 | case $build in |
---|
3087 | *-mingw*) |
---|
3088 | if test "${LD+set}" = set; then :; else |
---|
3089 | LD=link |
---|
3090 | fi |
---|
3091 | ;; |
---|
3092 | esac |
---|
3093 | case $enable_doscompile in |
---|
3094 | msvc) |
---|
3095 | if test "x${LD+set}" = xset; then :; else |
---|
3096 | LD=link |
---|
3097 | fi |
---|
3098 | ;; |
---|
3099 | esac |
---|
3100 | |
---|
3101 | ;; |
---|
3102 | esac |
---|
3103 | |
---|
3104 | ac_ext=c |
---|
3105 | ac_cpp='$CPP $CPPFLAGS' |
---|
3106 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3107 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3108 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3109 | |
---|
3110 | |
---|
3111 | case $build in |
---|
3112 | *-cygwin* | *-mingw*) |
---|
3113 | if test "$enable_doscompile" = msvc ; then |
---|
3114 | coin_f77_comps="ifort fl32 compile_f2c" |
---|
3115 | else |
---|
3116 | coin_f77_comps="gfortran g77 ifort fl32 compile_f2c" |
---|
3117 | fi ;; |
---|
3118 | *-*-solaris*) |
---|
3119 | coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;; |
---|
3120 | *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;; |
---|
3121 | esac |
---|
3122 | |
---|
3123 | |
---|
3124 | |
---|
3125 | |
---|
3126 | |
---|
3127 | |
---|
3128 | ac_ext=f |
---|
3129 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
3130 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3131 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
3132 | |
---|
3133 | |
---|
3134 | |
---|
3135 | |
---|
3136 | |
---|
3137 | |
---|
3138 | coin_has_f77=yes |
---|
3139 | |
---|
3140 | save_fflags="$FFLAGS" |
---|
3141 | |
---|
3142 | # We delete the cached value, since the test might not have been |
---|
3143 | # performed with our choice of compilers earlier |
---|
3144 | $as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; } |
---|
3145 | |
---|
3146 | # This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use |
---|
3147 | # coin_f77_comps to see if there's a program that matches one of the names. |
---|
3148 | # If there's no such program, F77 = unavailable. If we match the name, |
---|
3149 | # feed AC_PROG_F77 the same search list, just to be sure it's a functioning |
---|
3150 | # compiler. |
---|
3151 | # AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps]) |
---|
3152 | |
---|
3153 | |
---|
3154 | { echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5 |
---|
3155 | echo "$as_me: Trying to determine Fortran compiler name" >&6;} |
---|
3156 | for ac_prog in $coin_f77_comps |
---|
3157 | do |
---|
3158 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3159 | set dummy $ac_prog; ac_word=$2 |
---|
3160 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3161 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3162 | if test "${ac_cv_prog_F77+set}" = set; then |
---|
3163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3164 | else |
---|
3165 | if test -n "$F77"; then |
---|
3166 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
3167 | else |
---|
3168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3169 | for as_dir in $PATH |
---|
3170 | do |
---|
3171 | IFS=$as_save_IFS |
---|
3172 | test -z "$as_dir" && as_dir=. |
---|
3173 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3174 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3175 | ac_cv_prog_F77="$ac_prog" |
---|
3176 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3177 | break 2 |
---|
3178 | fi |
---|
3179 | done |
---|
3180 | done |
---|
3181 | |
---|
3182 | fi |
---|
3183 | fi |
---|
3184 | F77=$ac_cv_prog_F77 |
---|
3185 | if test -n "$F77"; then |
---|
3186 | echo "$as_me:$LINENO: result: $F77" >&5 |
---|
3187 | echo "${ECHO_T}$F77" >&6 |
---|
3188 | else |
---|
3189 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3190 | echo "${ECHO_T}no" >&6 |
---|
3191 | fi |
---|
3192 | |
---|
3193 | test -n "$F77" && break |
---|
3194 | done |
---|
3195 | test -n "$F77" || F77="unavailable" |
---|
3196 | |
---|
3197 | |
---|
3198 | if test "$F77" != "unavailable" ; then |
---|
3199 | ac_ext=f |
---|
3200 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
3201 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3202 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
3203 | if test -n "$ac_tool_prefix"; then |
---|
3204 | for ac_prog in $coin_f77_comps |
---|
3205 | do |
---|
3206 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3207 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3208 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3209 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3210 | if test "${ac_cv_prog_F77+set}" = set; then |
---|
3211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3212 | else |
---|
3213 | if test -n "$F77"; then |
---|
3214 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
3215 | else |
---|
3216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3217 | for as_dir in $PATH |
---|
3218 | do |
---|
3219 | IFS=$as_save_IFS |
---|
3220 | test -z "$as_dir" && as_dir=. |
---|
3221 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3222 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3223 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
3224 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3225 | break 2 |
---|
3226 | fi |
---|
3227 | done |
---|
3228 | done |
---|
3229 | |
---|
3230 | fi |
---|
3231 | fi |
---|
3232 | F77=$ac_cv_prog_F77 |
---|
3233 | if test -n "$F77"; then |
---|
3234 | echo "$as_me:$LINENO: result: $F77" >&5 |
---|
3235 | echo "${ECHO_T}$F77" >&6 |
---|
3236 | else |
---|
3237 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3238 | echo "${ECHO_T}no" >&6 |
---|
3239 | fi |
---|
3240 | |
---|
3241 | test -n "$F77" && break |
---|
3242 | done |
---|
3243 | fi |
---|
3244 | if test -z "$F77"; then |
---|
3245 | ac_ct_F77=$F77 |
---|
3246 | for ac_prog in $coin_f77_comps |
---|
3247 | do |
---|
3248 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3249 | set dummy $ac_prog; ac_word=$2 |
---|
3250 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3251 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3252 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
---|
3253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3254 | else |
---|
3255 | if test -n "$ac_ct_F77"; then |
---|
3256 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
3257 | else |
---|
3258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3259 | for as_dir in $PATH |
---|
3260 | do |
---|
3261 | IFS=$as_save_IFS |
---|
3262 | test -z "$as_dir" && as_dir=. |
---|
3263 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3264 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3265 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
3266 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3267 | break 2 |
---|
3268 | fi |
---|
3269 | done |
---|
3270 | done |
---|
3271 | |
---|
3272 | fi |
---|
3273 | fi |
---|
3274 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
3275 | if test -n "$ac_ct_F77"; then |
---|
3276 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
---|
3277 | echo "${ECHO_T}$ac_ct_F77" >&6 |
---|
3278 | else |
---|
3279 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3280 | echo "${ECHO_T}no" >&6 |
---|
3281 | fi |
---|
3282 | |
---|
3283 | test -n "$ac_ct_F77" && break |
---|
3284 | done |
---|
3285 | |
---|
3286 | F77=$ac_ct_F77 |
---|
3287 | fi |
---|
3288 | |
---|
3289 | |
---|
3290 | # Provide some information about the compiler. |
---|
3291 | echo "$as_me:3291:" \ |
---|
3292 | "checking for Fortran 77 compiler version" >&5 |
---|
3293 | ac_compiler=`set X $ac_compile; echo $2` |
---|
3294 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
3295 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
3296 | ac_status=$? |
---|
3297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3298 | (exit $ac_status); } |
---|
3299 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
3300 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
3301 | ac_status=$? |
---|
3302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3303 | (exit $ac_status); } |
---|
3304 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
3305 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
3306 | ac_status=$? |
---|
3307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3308 | (exit $ac_status); } |
---|
3309 | rm -f a.out |
---|
3310 | |
---|
3311 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
3312 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
3313 | ac_save_ext=$ac_ext |
---|
3314 | ac_ext=F |
---|
3315 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
---|
3316 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
---|
3317 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
---|
3318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3319 | else |
---|
3320 | cat >conftest.$ac_ext <<_ACEOF |
---|
3321 | program main |
---|
3322 | #ifndef __GNUC__ |
---|
3323 | choke me |
---|
3324 | #endif |
---|
3325 | |
---|
3326 | end |
---|
3327 | _ACEOF |
---|
3328 | rm -f conftest.$ac_objext |
---|
3329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3330 | (eval $ac_compile) 2>conftest.er1 |
---|
3331 | ac_status=$? |
---|
3332 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3333 | rm -f conftest.er1 |
---|
3334 | cat conftest.err >&5 |
---|
3335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3336 | (exit $ac_status); } && |
---|
3337 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3338 | || test ! -s conftest.err' |
---|
3339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3340 | (eval $ac_try) 2>&5 |
---|
3341 | ac_status=$? |
---|
3342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3343 | (exit $ac_status); }; } && |
---|
3344 | { ac_try='test -s conftest.$ac_objext' |
---|
3345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3346 | (eval $ac_try) 2>&5 |
---|
3347 | ac_status=$? |
---|
3348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3349 | (exit $ac_status); }; }; then |
---|
3350 | ac_compiler_gnu=yes |
---|
3351 | else |
---|
3352 | echo "$as_me: failed program was:" >&5 |
---|
3353 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3354 | |
---|
3355 | ac_compiler_gnu=no |
---|
3356 | fi |
---|
3357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3358 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
---|
3359 | |
---|
3360 | fi |
---|
3361 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
---|
3362 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
---|
3363 | ac_ext=$ac_save_ext |
---|
3364 | ac_test_FFLAGS=${FFLAGS+set} |
---|
3365 | ac_save_FFLAGS=$FFLAGS |
---|
3366 | FFLAGS= |
---|
3367 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
---|
3368 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
---|
3369 | if test "${ac_cv_prog_f77_g+set}" = set; then |
---|
3370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3371 | else |
---|
3372 | FFLAGS=-g |
---|
3373 | cat >conftest.$ac_ext <<_ACEOF |
---|
3374 | program main |
---|
3375 | |
---|
3376 | end |
---|
3377 | _ACEOF |
---|
3378 | rm -f conftest.$ac_objext |
---|
3379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3380 | (eval $ac_compile) 2>conftest.er1 |
---|
3381 | ac_status=$? |
---|
3382 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3383 | rm -f conftest.er1 |
---|
3384 | cat conftest.err >&5 |
---|
3385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3386 | (exit $ac_status); } && |
---|
3387 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3388 | || test ! -s conftest.err' |
---|
3389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3390 | (eval $ac_try) 2>&5 |
---|
3391 | ac_status=$? |
---|
3392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3393 | (exit $ac_status); }; } && |
---|
3394 | { ac_try='test -s conftest.$ac_objext' |
---|
3395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3396 | (eval $ac_try) 2>&5 |
---|
3397 | ac_status=$? |
---|
3398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3399 | (exit $ac_status); }; }; then |
---|
3400 | ac_cv_prog_f77_g=yes |
---|
3401 | else |
---|
3402 | echo "$as_me: failed program was:" >&5 |
---|
3403 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3404 | |
---|
3405 | ac_cv_prog_f77_g=no |
---|
3406 | fi |
---|
3407 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3408 | |
---|
3409 | fi |
---|
3410 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
---|
3411 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
---|
3412 | if test "$ac_test_FFLAGS" = set; then |
---|
3413 | FFLAGS=$ac_save_FFLAGS |
---|
3414 | elif test $ac_cv_prog_f77_g = yes; then |
---|
3415 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
3416 | FFLAGS="-g -O2" |
---|
3417 | else |
---|
3418 | FFLAGS="-g" |
---|
3419 | fi |
---|
3420 | else |
---|
3421 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
3422 | FFLAGS="-O2" |
---|
3423 | else |
---|
3424 | FFLAGS= |
---|
3425 | fi |
---|
3426 | fi |
---|
3427 | |
---|
3428 | G77=`test $ac_compiler_gnu = yes && echo yes` |
---|
3429 | ac_ext=f |
---|
3430 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
3431 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3432 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
3433 | |
---|
3434 | else |
---|
3435 | { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5 |
---|
3436 | echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;} |
---|
3437 | fi |
---|
3438 | |
---|
3439 | FFLAGS="$save_fflags" |
---|
3440 | |
---|
3441 | # Check if a project specific FFLAGS variable has been set |
---|
3442 | if test x$COIN_PRJCT != x; then |
---|
3443 | eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set} |
---|
3444 | if test x$coin_tmp = xset; then |
---|
3445 | eval FFLAGS=\${${COIN_PRJCT}_FFLAGS} |
---|
3446 | fi |
---|
3447 | fi |
---|
3448 | |
---|
3449 | if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then |
---|
3450 | |
---|
3451 | coin_add_fflags= |
---|
3452 | coin_opt_fflags= |
---|
3453 | coin_dbg_fflags= |
---|
3454 | coin_warn_fflags= |
---|
3455 | |
---|
3456 | if test "$G77" = "yes"; then |
---|
3457 | coin_opt_fflags="-O3 -fomit-frame-pointer" |
---|
3458 | coin_add_fflags="-pipe" |
---|
3459 | coin_dbg_fflags="-g" |
---|
3460 | case $enable_doscompile in |
---|
3461 | mingw) |
---|
3462 | FFLAGS="-mno-cygwin" |
---|
3463 | cat >conftest.$ac_ext <<_ACEOF |
---|
3464 | program main |
---|
3465 | write(*,*) 'Hello world' |
---|
3466 | end |
---|
3467 | _ACEOF |
---|
3468 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3470 | (eval $ac_link) 2>conftest.er1 |
---|
3471 | ac_status=$? |
---|
3472 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3473 | rm -f conftest.er1 |
---|
3474 | cat conftest.err >&5 |
---|
3475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3476 | (exit $ac_status); } && |
---|
3477 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3478 | || test ! -s conftest.err' |
---|
3479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3480 | (eval $ac_try) 2>&5 |
---|
3481 | ac_status=$? |
---|
3482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3483 | (exit $ac_status); }; } && |
---|
3484 | { ac_try='test -s conftest$ac_exeext' |
---|
3485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3486 | (eval $ac_try) 2>&5 |
---|
3487 | ac_status=$? |
---|
3488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3489 | (exit $ac_status); }; }; then |
---|
3490 | coin_add_fflags="-mno-cygwin $coin_add_fflags" |
---|
3491 | else |
---|
3492 | echo "$as_me: failed program was:" >&5 |
---|
3493 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3494 | |
---|
3495 | fi |
---|
3496 | rm -f conftest.err conftest.$ac_objext \ |
---|
3497 | conftest$ac_exeext conftest.$ac_ext |
---|
3498 | FFLAGS= |
---|
3499 | ;; |
---|
3500 | esac |
---|
3501 | else |
---|
3502 | case $build in |
---|
3503 | *-cygwin* | *-mingw*) |
---|
3504 | case $F77 in |
---|
3505 | ifort* | */ifort* | IFORT* | */IFORT* ) |
---|
3506 | coin_opt_fflags='-MT -O3' |
---|
3507 | coin_add_fflags='-fpp -nologo' |
---|
3508 | coin_dbg_fflags='-MTd -debug' |
---|
3509 | ;; |
---|
3510 | compile_f2c*) |
---|
3511 | coin_opt_fflags='-MT -O2' |
---|
3512 | coin_add_fflags='-nologo -wd4996' |
---|
3513 | coin_dbg_fflags='-MTd' |
---|
3514 | ;; |
---|
3515 | esac |
---|
3516 | ;; |
---|
3517 | *-linux-*) |
---|
3518 | case $F77 in |
---|
3519 | ifc* | */ifc* | ifort* | */ifort*) |
---|
3520 | coin_opt_fflags="-O3 -ip" |
---|
3521 | coin_add_fflags="-cm -w90 -w95" |
---|
3522 | coin_dbg_fflags="-g -CA -CB -CS" |
---|
3523 | # Check if -i_dynamic is necessary (for new glibc library) |
---|
3524 | FFLAGS= |
---|
3525 | cat >conftest.$ac_ext <<_ACEOF |
---|
3526 | program main |
---|
3527 | write(*,*) 'Hello world' |
---|
3528 | end |
---|
3529 | _ACEOF |
---|
3530 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3531 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3532 | (eval $ac_link) 2>conftest.er1 |
---|
3533 | ac_status=$? |
---|
3534 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3535 | rm -f conftest.er1 |
---|
3536 | cat conftest.err >&5 |
---|
3537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3538 | (exit $ac_status); } && |
---|
3539 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3540 | || test ! -s conftest.err' |
---|
3541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3542 | (eval $ac_try) 2>&5 |
---|
3543 | ac_status=$? |
---|
3544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3545 | (exit $ac_status); }; } && |
---|
3546 | { ac_try='test -s conftest$ac_exeext' |
---|
3547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3548 | (eval $ac_try) 2>&5 |
---|
3549 | ac_status=$? |
---|
3550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3551 | (exit $ac_status); }; }; then |
---|
3552 | : |
---|
3553 | else |
---|
3554 | echo "$as_me: failed program was:" >&5 |
---|
3555 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3556 | |
---|
3557 | coin_add_fflags="-i_dynamic $coin_add_fflags" |
---|
3558 | fi |
---|
3559 | rm -f conftest.err conftest.$ac_objext \ |
---|
3560 | conftest$ac_exeext conftest.$ac_ext |
---|
3561 | ;; |
---|
3562 | pgf77* | */pgf77* | pgf90* | */pgf90*) |
---|
3563 | coin_opt_fflags="-fast" |
---|
3564 | coin_add_fflags="-Kieee -pc 64" |
---|
3565 | coin_dbg_fflags="-g" |
---|
3566 | ;; |
---|
3567 | esac |
---|
3568 | ;; |
---|
3569 | *-ibm-*) |
---|
3570 | case "$F77" in |
---|
3571 | xlf* | */xlf* | mpxlf* | */mpxlf* ) |
---|
3572 | coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" |
---|
3573 | coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" |
---|
3574 | coin_dbg_fflags="-g -C" |
---|
3575 | ;; |
---|
3576 | esac |
---|
3577 | ;; |
---|
3578 | *-hp-*) |
---|
3579 | coin_opt_fflags="+O3" |
---|
3580 | coin_add_fflags="+U77" |
---|
3581 | coin_dbg_fflags="-C -g" |
---|
3582 | ;; |
---|
3583 | *-*-solaris*) |
---|
3584 | coin_opt_fflags="-O4" |
---|
3585 | coin_dbg_fflags="-g" |
---|
3586 | ;; |
---|
3587 | *-sgi-*) |
---|
3588 | coin_opt_fflags="-O5 -OPT:Olimit=0" |
---|
3589 | coin_dbg_fflags="-g" |
---|
3590 | ;; |
---|
3591 | esac |
---|
3592 | fi |
---|
3593 | |
---|
3594 | if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then |
---|
3595 | coin_dbg_fflags="-g" |
---|
3596 | fi |
---|
3597 | |
---|
3598 | if test -z "$coin_opt_fflags"; then |
---|
3599 | # Try if -O option works if nothing else is set |
---|
3600 | FFLAGS=-O |
---|
3601 | cat >conftest.$ac_ext <<_ACEOF |
---|
3602 | program main |
---|
3603 | integer i |
---|
3604 | end |
---|
3605 | _ACEOF |
---|
3606 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3607 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3608 | (eval $ac_link) 2>conftest.er1 |
---|
3609 | ac_status=$? |
---|
3610 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3611 | rm -f conftest.er1 |
---|
3612 | cat conftest.err >&5 |
---|
3613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3614 | (exit $ac_status); } && |
---|
3615 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3616 | || test ! -s conftest.err' |
---|
3617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3618 | (eval $ac_try) 2>&5 |
---|
3619 | ac_status=$? |
---|
3620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3621 | (exit $ac_status); }; } && |
---|
3622 | { ac_try='test -s conftest$ac_exeext' |
---|
3623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3624 | (eval $ac_try) 2>&5 |
---|
3625 | ac_status=$? |
---|
3626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3627 | (exit $ac_status); }; }; then |
---|
3628 | coin_opt_fflags="-O" |
---|
3629 | else |
---|
3630 | echo "$as_me: failed program was:" >&5 |
---|
3631 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3632 | |
---|
3633 | fi |
---|
3634 | rm -f conftest.err conftest.$ac_objext \ |
---|
3635 | conftest$ac_exeext conftest.$ac_ext |
---|
3636 | fi |
---|
3637 | |
---|
3638 | # if PM doesn't want the warning messages, take them out |
---|
3639 | if test x"$coin_skip_warn_fflags" = xyes; then |
---|
3640 | coin_warn_fflags= |
---|
3641 | fi |
---|
3642 | |
---|
3643 | if test x${DBG_FFLAGS+set} != xset; then |
---|
3644 | DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags" |
---|
3645 | fi |
---|
3646 | if test x${OPT_FFLAGS+set} != xset; then |
---|
3647 | OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags" |
---|
3648 | fi |
---|
3649 | |
---|
3650 | DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS" |
---|
3651 | OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS" |
---|
3652 | |
---|
3653 | if test "$coin_debug_compile" = "true"; then |
---|
3654 | FFLAGS="$DBG_FFLAGS" |
---|
3655 | else |
---|
3656 | FFLAGS="$OPT_FFLAGS" |
---|
3657 | fi |
---|
3658 | else |
---|
3659 | FFLAGS="$FFLAGS $ADD_FFLAGS" |
---|
3660 | if test x${DBG_FFLAGS+set} != xset; then |
---|
3661 | DBG_FFLAGS="$FFLAGS" |
---|
3662 | fi |
---|
3663 | if test x${OPT_FFLAGS+set} != xset; then |
---|
3664 | OPT_FFLAGS="$FFLAGS" |
---|
3665 | fi |
---|
3666 | fi |
---|
3667 | |
---|
3668 | # If FFLAGS contains -mno-cygwin, CPPFLAGS must have it. |
---|
3669 | case "$FFLAGS" in |
---|
3670 | *-mno-cygwin*) |
---|
3671 | if test x${CPPFLAGS+set} != xset ; then |
---|
3672 | CPPFLAGS="-mno-cygwin" |
---|
3673 | else |
---|
3674 | case "$CPPFLAGS" in |
---|
3675 | *-mno-cygwin*) |
---|
3676 | ;; |
---|
3677 | *) |
---|
3678 | CPPFLAGS="$CPPFLAGS -mno-cygwin" |
---|
3679 | ;; |
---|
3680 | esac |
---|
3681 | fi ;; |
---|
3682 | esac |
---|
3683 | |
---|
3684 | # Try if FFLAGS works |
---|
3685 | if test "$F77" != "unavailable" ; then |
---|
3686 | cat >conftest.$ac_ext <<_ACEOF |
---|
3687 | program main |
---|
3688 | integer i |
---|
3689 | end |
---|
3690 | _ACEOF |
---|
3691 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3692 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3693 | (eval $ac_link) 2>conftest.er1 |
---|
3694 | ac_status=$? |
---|
3695 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3696 | rm -f conftest.er1 |
---|
3697 | cat conftest.err >&5 |
---|
3698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3699 | (exit $ac_status); } && |
---|
3700 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3701 | || test ! -s conftest.err' |
---|
3702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3703 | (eval $ac_try) 2>&5 |
---|
3704 | ac_status=$? |
---|
3705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3706 | (exit $ac_status); }; } && |
---|
3707 | { ac_try='test -s conftest$ac_exeext' |
---|
3708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3709 | (eval $ac_try) 2>&5 |
---|
3710 | ac_status=$? |
---|
3711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3712 | (exit $ac_status); }; }; then |
---|
3713 | : |
---|
3714 | else |
---|
3715 | echo "$as_me: failed program was:" >&5 |
---|
3716 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3717 | |
---|
3718 | FFLAGS= |
---|
3719 | fi |
---|
3720 | rm -f conftest.err conftest.$ac_objext \ |
---|
3721 | conftest$ac_exeext conftest.$ac_ext |
---|
3722 | if test -z "$FFLAGS"; then |
---|
3723 | { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&5 |
---|
3724 | echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&2;} |
---|
3725 | FFLAGS='-O' |
---|
3726 | cat >conftest.$ac_ext <<_ACEOF |
---|
3727 | program main |
---|
3728 | integer i |
---|
3729 | end |
---|
3730 | _ACEOF |
---|
3731 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3732 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3733 | (eval $ac_link) 2>conftest.er1 |
---|
3734 | ac_status=$? |
---|
3735 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3736 | rm -f conftest.er1 |
---|
3737 | cat conftest.err >&5 |
---|
3738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3739 | (exit $ac_status); } && |
---|
3740 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3741 | || test ! -s conftest.err' |
---|
3742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3743 | (eval $ac_try) 2>&5 |
---|
3744 | ac_status=$? |
---|
3745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3746 | (exit $ac_status); }; } && |
---|
3747 | { ac_try='test -s conftest$ac_exeext' |
---|
3748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3749 | (eval $ac_try) 2>&5 |
---|
3750 | ac_status=$? |
---|
3751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3752 | (exit $ac_status); }; }; then |
---|
3753 | : |
---|
3754 | else |
---|
3755 | echo "$as_me: failed program was:" >&5 |
---|
3756 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3757 | |
---|
3758 | FFLAGS= |
---|
3759 | fi |
---|
3760 | rm -f conftest.err conftest.$ac_objext \ |
---|
3761 | conftest$ac_exeext conftest.$ac_ext |
---|
3762 | if test -z "$FFLAGS"; then |
---|
3763 | { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5 |
---|
3764 | echo "$as_me: WARNING: This value for FFLAGS does not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;} |
---|
3765 | fi |
---|
3766 | fi |
---|
3767 | fi |
---|
3768 | |
---|
3769 | { echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5 |
---|
3770 | echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;} |
---|
3771 | |
---|
3772 | |
---|
3773 | if test x"$MPIF77" = x; then :; else |
---|
3774 | { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5 |
---|
3775 | echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;} |
---|
3776 | F77="$MPIF77" |
---|
3777 | fi |
---|
3778 | |
---|
3779 | case "$F77" in |
---|
3780 | ifort* | */ifort* | IFORT* | */IFORT*) |
---|
3781 | case $build in |
---|
3782 | *-mingw*) |
---|
3783 | if test "${LD+set}" = set; then :; else |
---|
3784 | LD=link |
---|
3785 | fi |
---|
3786 | ;; |
---|
3787 | esac |
---|
3788 | case $enable_doscompile in |
---|
3789 | msvc) |
---|
3790 | if test "x${LD+set}" = xset; then :; else |
---|
3791 | LD=link |
---|
3792 | fi |
---|
3793 | ;; |
---|
3794 | esac |
---|
3795 | |
---|
3796 | ;; |
---|
3797 | esac |
---|
3798 | |
---|
3799 | ac_ext=c |
---|
3800 | ac_cpp='$CPP $CPPFLAGS' |
---|
3801 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3802 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3803 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3804 | |
---|
3805 | |
---|
3806 | |
---|
3807 | # Initialize automake |
---|
3808 | { |
---|
3809 | |
---|
3810 | |
---|
3811 | |
---|
3812 | # START |
---|
3813 | |
---|
3814 | # Test if force_shared has been set |
---|
3815 | if test "x" = xforce_shared; then |
---|
3816 | if test x$enable_shared = xno; then |
---|
3817 | { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5 |
---|
3818 | echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;} |
---|
3819 | { (exit 1); exit 1; }; } |
---|
3820 | fi |
---|
3821 | enable_shared=yes; |
---|
3822 | else |
---|
3823 | # On Cygwin and AIX, building DLLs doesn't work |
---|
3824 | case $build in |
---|
3825 | *-cygwin*) |
---|
3826 | coin_disable_shared=yes |
---|
3827 | platform=Cygwin |
---|
3828 | ;; |
---|
3829 | *-aix*) |
---|
3830 | coin_disable_shared=yes |
---|
3831 | platform=AIX |
---|
3832 | ;; |
---|
3833 | *-mingw*) |
---|
3834 | coin_disable_shared=yes |
---|
3835 | platform="Msys" |
---|
3836 | # case "$CXX" in |
---|
3837 | # cl*) |
---|
3838 | # coin_disable_shared=yes |
---|
3839 | # platform="Msys with cl" |
---|
3840 | # ;; |
---|
3841 | # esac |
---|
3842 | ;; |
---|
3843 | esac |
---|
3844 | fi |
---|
3845 | if test x"$coin_disable_shared" = xyes; then |
---|
3846 | if test x"$enable_shared" = xyes; then |
---|
3847 | { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5 |
---|
3848 | echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;} |
---|
3849 | fi |
---|
3850 | enable_shared=no |
---|
3851 | fi |
---|
3852 | # By default, we only want the shared objects to be compiled |
---|
3853 | # Check whether --enable-static or --disable-static was given. |
---|
3854 | if test "${enable_static+set}" = set; then |
---|
3855 | enableval="$enable_static" |
---|
3856 | p=${PACKAGE-default} |
---|
3857 | case $enableval in |
---|
3858 | yes) enable_static=yes ;; |
---|
3859 | no) enable_static=no ;; |
---|
3860 | *) |
---|
3861 | enable_static=no |
---|
3862 | # Look at the argument we got. We use all the common list separators. |
---|
3863 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
3864 | for pkg in $enableval; do |
---|
3865 | IFS="$lt_save_ifs" |
---|
3866 | if test "X$pkg" = "X$p"; then |
---|
3867 | enable_static=yes |
---|
3868 | fi |
---|
3869 | done |
---|
3870 | IFS="$lt_save_ifs" |
---|
3871 | ;; |
---|
3872 | esac |
---|
3873 | else |
---|
3874 | enable_static=no |
---|
3875 | fi; |
---|
3876 | |
---|
3877 | |
---|
3878 | |
---|
3879 | |
---|
3880 | # Initialize automake |
---|
3881 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3882 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3883 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3885 | else |
---|
3886 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3887 | then ac_cv_prog_egrep='grep -E' |
---|
3888 | else ac_cv_prog_egrep='egrep' |
---|
3889 | fi |
---|
3890 | fi |
---|
3891 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3892 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3893 | EGREP=$ac_cv_prog_egrep |
---|
3894 | |
---|
3895 | |
---|
3896 | am__api_version="1.9" |
---|
3897 | # Find a good install program. We prefer a C program (faster), |
---|
3898 | # so one script is as good as another. But avoid the broken or |
---|
3899 | # incompatible versions: |
---|
3900 | # SysV /etc/install, /usr/sbin/install |
---|
3901 | # SunOS /usr/etc/install |
---|
3902 | # IRIX /sbin/install |
---|
3903 | # AIX /bin/install |
---|
3904 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
3905 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
3906 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
3907 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
3908 | # OS/2's system install, which has a completely different semantic |
---|
3909 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
3910 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
3911 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
3912 | if test -z "$INSTALL"; then |
---|
3913 | if test "${ac_cv_path_install+set}" = set; then |
---|
3914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3915 | else |
---|
3916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3917 | for as_dir in $PATH |
---|
3918 | do |
---|
3919 | IFS=$as_save_IFS |
---|
3920 | test -z "$as_dir" && as_dir=. |
---|
3921 | # Account for people who put trailing slashes in PATH elements. |
---|
3922 | case $as_dir/ in |
---|
3923 | ./ | .// | /cC/* | \ |
---|
3924 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
3925 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
3926 | /usr/ucb/* ) ;; |
---|
3927 | *) |
---|
3928 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
3929 | # Don't use installbsd from OSF since it installs stuff as root |
---|
3930 | # by default. |
---|
3931 | for ac_prog in ginstall scoinst install; do |
---|
3932 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3933 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
3934 | if test $ac_prog = install && |
---|
3935 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
3936 | # AIX install. It has an incompatible calling convention. |
---|
3937 | : |
---|
3938 | elif test $ac_prog = install && |
---|
3939 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
3940 | # program-specific install script used by HP pwplus--don't use. |
---|
3941 | : |
---|
3942 | else |
---|
3943 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
3944 | break 3 |
---|
3945 | fi |
---|
3946 | fi |
---|
3947 | done |
---|
3948 | done |
---|
3949 | ;; |
---|
3950 | esac |
---|
3951 | done |
---|
3952 | |
---|
3953 | |
---|
3954 | fi |
---|
3955 | if test "${ac_cv_path_install+set}" = set; then |
---|
3956 | INSTALL=$ac_cv_path_install |
---|
3957 | else |
---|
3958 | # As a last resort, use the slow shell script. We don't cache a |
---|
3959 | # path for INSTALL within a source directory, because that will |
---|
3960 | # break other packages using the cache if that directory is |
---|
3961 | # removed, or if the path is relative. |
---|
3962 | INSTALL=$ac_install_sh |
---|
3963 | fi |
---|
3964 | fi |
---|
3965 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
3966 | echo "${ECHO_T}$INSTALL" >&6 |
---|
3967 | |
---|
3968 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
3969 | # It thinks the first close brace ends the variable substitution. |
---|
3970 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
3971 | |
---|
3972 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
3973 | |
---|
3974 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
3975 | |
---|
3976 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
3977 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
3978 | # Just in case |
---|
3979 | sleep 1 |
---|
3980 | echo timestamp > conftest.file |
---|
3981 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
3982 | # arguments. Must try -L first in case configure is actually a |
---|
3983 | # symlink; some systems play weird games with the mod time of symlinks |
---|
3984 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
3985 | # directory). |
---|
3986 | if ( |
---|
3987 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
3988 | if test "$*" = "X"; then |
---|
3989 | # -L didn't work. |
---|
3990 | set X `ls -t $srcdir/configure conftest.file` |
---|
3991 | fi |
---|
3992 | rm -f conftest.file |
---|
3993 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
3994 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
3995 | |
---|
3996 | # If neither matched, then we have a broken ls. This can happen |
---|
3997 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
3998 | # broken ls alias from the environment. This has actually |
---|
3999 | # happened. Such a system could not be considered "sane". |
---|
4000 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
4001 | alias in your environment" >&5 |
---|
4002 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
4003 | alias in your environment" >&2;} |
---|
4004 | { (exit 1); exit 1; }; } |
---|
4005 | fi |
---|
4006 | |
---|
4007 | test "$2" = conftest.file |
---|
4008 | ) |
---|
4009 | then |
---|
4010 | # Ok. |
---|
4011 | : |
---|
4012 | else |
---|
4013 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
4014 | Check your system clock" >&5 |
---|
4015 | echo "$as_me: error: newly created file is older than distributed files! |
---|
4016 | Check your system clock" >&2;} |
---|
4017 | { (exit 1); exit 1; }; } |
---|
4018 | fi |
---|
4019 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4020 | echo "${ECHO_T}yes" >&6 |
---|
4021 | test "$program_prefix" != NONE && |
---|
4022 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
4023 | # Use a double $ so make ignores it. |
---|
4024 | test "$program_suffix" != NONE && |
---|
4025 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
4026 | # Double any \ or $. echo might interpret backslashes. |
---|
4027 | # By default was `s,x,x', remove it if useless. |
---|
4028 | cat <<\_ACEOF >conftest.sed |
---|
4029 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
4030 | _ACEOF |
---|
4031 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
4032 | rm conftest.sed |
---|
4033 | |
---|
4034 | # expand $ac_aux_dir to an absolute path |
---|
4035 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
4036 | |
---|
4037 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
4038 | # Use eval to expand $SHELL |
---|
4039 | if eval "$MISSING --run true"; then |
---|
4040 | am_missing_run="$MISSING --run " |
---|
4041 | else |
---|
4042 | am_missing_run= |
---|
4043 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
4044 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
4045 | fi |
---|
4046 | |
---|
4047 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
4048 | # We used to keeping the `.' as first argument, in order to |
---|
4049 | # allow $(mkdir_p) to be used without argument. As in |
---|
4050 | # $(mkdir_p) $(somedir) |
---|
4051 | # where $(somedir) is conditionally defined. However this is wrong |
---|
4052 | # for two reasons: |
---|
4053 | # 1. if the package is installed by a user who cannot write `.' |
---|
4054 | # make install will fail, |
---|
4055 | # 2. the above comment should most certainly read |
---|
4056 | # $(mkdir_p) $(DESTDIR)$(somedir) |
---|
4057 | # so it does not work when $(somedir) is undefined and |
---|
4058 | # $(DESTDIR) is not. |
---|
4059 | # To support the latter case, we have to write |
---|
4060 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
---|
4061 | # so the `.' trick is pointless. |
---|
4062 | mkdir_p='mkdir -p --' |
---|
4063 | else |
---|
4064 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
4065 | # recognize any option. It will interpret all options as |
---|
4066 | # directories to create, and then abort because `.' already |
---|
4067 | # exists. |
---|
4068 | for d in ./-p ./--version; |
---|
4069 | do |
---|
4070 | test -d $d && rmdir $d |
---|
4071 | done |
---|
4072 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
4073 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
4074 | mkdir_p='$(mkinstalldirs)' |
---|
4075 | else |
---|
4076 | mkdir_p='$(install_sh) -d' |
---|
4077 | fi |
---|
4078 | fi |
---|
4079 | |
---|
4080 | for ac_prog in gawk mawk nawk awk |
---|
4081 | do |
---|
4082 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4083 | set dummy $ac_prog; ac_word=$2 |
---|
4084 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4085 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4086 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
4087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4088 | else |
---|
4089 | if test -n "$AWK"; then |
---|
4090 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
4091 | else |
---|
4092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4093 | for as_dir in $PATH |
---|
4094 | do |
---|
4095 | IFS=$as_save_IFS |
---|
4096 | test -z "$as_dir" && as_dir=. |
---|
4097 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4098 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4099 | ac_cv_prog_AWK="$ac_prog" |
---|
4100 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4101 | break 2 |
---|
4102 | fi |
---|
4103 | done |
---|
4104 | done |
---|
4105 | |
---|
4106 | fi |
---|
4107 | fi |
---|
4108 | AWK=$ac_cv_prog_AWK |
---|
4109 | if test -n "$AWK"; then |
---|
4110 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
4111 | echo "${ECHO_T}$AWK" >&6 |
---|
4112 | else |
---|
4113 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4114 | echo "${ECHO_T}no" >&6 |
---|
4115 | fi |
---|
4116 | |
---|
4117 | test -n "$AWK" && break |
---|
4118 | done |
---|
4119 | |
---|
4120 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
4121 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
4122 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
4123 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
4124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4125 | else |
---|
4126 | cat >conftest.make <<\_ACEOF |
---|
4127 | all: |
---|
4128 | @echo 'ac_maketemp="$(MAKE)"' |
---|
4129 | _ACEOF |
---|
4130 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
4131 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
4132 | if test -n "$ac_maketemp"; then |
---|
4133 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
4134 | else |
---|
4135 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
4136 | fi |
---|
4137 | rm -f conftest.make |
---|
4138 | fi |
---|
4139 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
4140 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4141 | echo "${ECHO_T}yes" >&6 |
---|
4142 | SET_MAKE= |
---|
4143 | else |
---|
4144 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4145 | echo "${ECHO_T}no" >&6 |
---|
4146 | SET_MAKE="MAKE=${MAKE-make}" |
---|
4147 | fi |
---|
4148 | |
---|
4149 | rm -rf .tst 2>/dev/null |
---|
4150 | mkdir .tst 2>/dev/null |
---|
4151 | if test -d .tst; then |
---|
4152 | am__leading_dot=. |
---|
4153 | else |
---|
4154 | am__leading_dot=_ |
---|
4155 | fi |
---|
4156 | rmdir .tst 2>/dev/null |
---|
4157 | |
---|
4158 | DEPDIR="${am__leading_dot}deps" |
---|
4159 | |
---|
4160 | ac_config_commands="$ac_config_commands depfiles" |
---|
4161 | |
---|
4162 | |
---|
4163 | am_make=${MAKE-make} |
---|
4164 | cat > confinc << 'END' |
---|
4165 | am__doit: |
---|
4166 | @echo done |
---|
4167 | .PHONY: am__doit |
---|
4168 | END |
---|
4169 | # If we don't find an include directive, just comment out the code. |
---|
4170 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
4171 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
4172 | am__include="#" |
---|
4173 | am__quote= |
---|
4174 | _am_result=none |
---|
4175 | # First try GNU make style include. |
---|
4176 | echo "include confinc" > confmf |
---|
4177 | # We grep out `Entering directory' and `Leaving directory' |
---|
4178 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
4179 | # In particular we don't look at `^make:' because GNU make might |
---|
4180 | # be invoked under some other name (usually "gmake"), in which |
---|
4181 | # case it prints its new name instead of `make'. |
---|
4182 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
4183 | am__include=include |
---|
4184 | am__quote= |
---|
4185 | _am_result=GNU |
---|
4186 | fi |
---|
4187 | # Now try BSD make style include. |
---|
4188 | if test "$am__include" = "#"; then |
---|
4189 | echo '.include "confinc"' > confmf |
---|
4190 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
4191 | am__include=.include |
---|
4192 | am__quote="\"" |
---|
4193 | _am_result=BSD |
---|
4194 | fi |
---|
4195 | fi |
---|
4196 | |
---|
4197 | |
---|
4198 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
4199 | echo "${ECHO_T}$_am_result" >&6 |
---|
4200 | rm -f confinc confmf |
---|
4201 | |
---|
4202 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
4203 | if test "${enable_dependency_tracking+set}" = set; then |
---|
4204 | enableval="$enable_dependency_tracking" |
---|
4205 | |
---|
4206 | fi; |
---|
4207 | if test "x$enable_dependency_tracking" != xno; then |
---|
4208 | am_depcomp="$ac_aux_dir/depcomp" |
---|
4209 | AMDEPBACKSLASH='\' |
---|
4210 | fi |
---|
4211 | |
---|
4212 | |
---|
4213 | if test "x$enable_dependency_tracking" != xno; then |
---|
4214 | AMDEP_TRUE= |
---|
4215 | AMDEP_FALSE='#' |
---|
4216 | else |
---|
4217 | AMDEP_TRUE='#' |
---|
4218 | AMDEP_FALSE= |
---|
4219 | fi |
---|
4220 | |
---|
4221 | |
---|
4222 | |
---|
4223 | |
---|
4224 | |
---|
4225 | # AC_MSG_NOTICE([Beginning automake initialisation.]) |
---|
4226 | # Stuff for automake |
---|
4227 | # test to see if srcdir already configured |
---|
4228 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
4229 | test -f $srcdir/config.status; then |
---|
4230 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
4231 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
4232 | { (exit 1); exit 1; }; } |
---|
4233 | fi |
---|
4234 | |
---|
4235 | # test whether we have cygpath |
---|
4236 | if test -z "$CYGPATH_W"; then |
---|
4237 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
4238 | CYGPATH_W='cygpath -w' |
---|
4239 | else |
---|
4240 | CYGPATH_W=echo |
---|
4241 | fi |
---|
4242 | fi |
---|
4243 | |
---|
4244 | |
---|
4245 | # Define the identity of the package. |
---|
4246 | PACKAGE='thirdpartyblas' |
---|
4247 | VERSION='1.0stable' |
---|
4248 | |
---|
4249 | |
---|
4250 | cat >>confdefs.h <<_ACEOF |
---|
4251 | #define PACKAGE "$PACKAGE" |
---|
4252 | _ACEOF |
---|
4253 | |
---|
4254 | |
---|
4255 | cat >>confdefs.h <<_ACEOF |
---|
4256 | #define VERSION "$VERSION" |
---|
4257 | _ACEOF |
---|
4258 | |
---|
4259 | # Some tools Automake needs. |
---|
4260 | |
---|
4261 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
4262 | |
---|
4263 | |
---|
4264 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
4265 | |
---|
4266 | |
---|
4267 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
4268 | |
---|
4269 | |
---|
4270 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
4271 | |
---|
4272 | |
---|
4273 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
4274 | |
---|
4275 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
4276 | |
---|
4277 | # Installed binaries are usually stripped using `strip' when the user |
---|
4278 | # run `make install-strip'. However `strip' might not be the right |
---|
4279 | # tool to use in cross-compilation environments, therefore Automake |
---|
4280 | # will honor the `STRIP' environment variable to overrule this program. |
---|
4281 | if test "$cross_compiling" != no; then |
---|
4282 | if test -n "$ac_tool_prefix"; then |
---|
4283 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
4284 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
4285 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4286 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4287 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
4288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4289 | else |
---|
4290 | if test -n "$STRIP"; then |
---|
4291 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
4292 | else |
---|
4293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4294 | for as_dir in $PATH |
---|
4295 | do |
---|
4296 | IFS=$as_save_IFS |
---|
4297 | test -z "$as_dir" && as_dir=. |
---|
4298 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4299 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4300 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
4301 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4302 | break 2 |
---|
4303 | fi |
---|
4304 | done |
---|
4305 | done |
---|
4306 | |
---|
4307 | fi |
---|
4308 | fi |
---|
4309 | STRIP=$ac_cv_prog_STRIP |
---|
4310 | if test -n "$STRIP"; then |
---|
4311 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
4312 | echo "${ECHO_T}$STRIP" >&6 |
---|
4313 | else |
---|
4314 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4315 | echo "${ECHO_T}no" >&6 |
---|
4316 | fi |
---|
4317 | |
---|
4318 | fi |
---|
4319 | if test -z "$ac_cv_prog_STRIP"; then |
---|
4320 | ac_ct_STRIP=$STRIP |
---|
4321 | # Extract the first word of "strip", so it can be a program name with args. |
---|
4322 | set dummy strip; ac_word=$2 |
---|
4323 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4324 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4325 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
4326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4327 | else |
---|
4328 | if test -n "$ac_ct_STRIP"; then |
---|
4329 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
4330 | else |
---|
4331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4332 | for as_dir in $PATH |
---|
4333 | do |
---|
4334 | IFS=$as_save_IFS |
---|
4335 | test -z "$as_dir" && as_dir=. |
---|
4336 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4337 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4338 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
4339 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4340 | break 2 |
---|
4341 | fi |
---|
4342 | done |
---|
4343 | done |
---|
4344 | |
---|
4345 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
4346 | fi |
---|
4347 | fi |
---|
4348 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
4349 | if test -n "$ac_ct_STRIP"; then |
---|
4350 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
4351 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
4352 | else |
---|
4353 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4354 | echo "${ECHO_T}no" >&6 |
---|
4355 | fi |
---|
4356 | |
---|
4357 | STRIP=$ac_ct_STRIP |
---|
4358 | else |
---|
4359 | STRIP="$ac_cv_prog_STRIP" |
---|
4360 | fi |
---|
4361 | |
---|
4362 | fi |
---|
4363 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
4364 | |
---|
4365 | # We need awk for the "check" target. The system "awk" is bad on |
---|
4366 | # some platforms. |
---|
4367 | # Always define AMTAR for backward compatibility. |
---|
4368 | |
---|
4369 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
4370 | |
---|
4371 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
---|
4372 | |
---|
4373 | |
---|
4374 | |
---|
4375 | |
---|
4376 | depcc="$CC" am_compiler_list= |
---|
4377 | |
---|
4378 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
4379 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
4380 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
4381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4382 | else |
---|
4383 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4384 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4385 | # making bogus files that we don't know about and never remove. For |
---|
4386 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4387 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
4388 | # in D'. |
---|
4389 | mkdir conftest.dir |
---|
4390 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4391 | # using a relative directory. |
---|
4392 | cp "$am_depcomp" conftest.dir |
---|
4393 | cd conftest.dir |
---|
4394 | # We will build objects and dependencies in a subdirectory because |
---|
4395 | # it helps to detect inapplicable dependency modes. For instance |
---|
4396 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4397 | # side effect of compilation, but ICC will put the dependencies in |
---|
4398 | # the current directory while Tru64 will put them in the object |
---|
4399 | # directory. |
---|
4400 | mkdir sub |
---|
4401 | |
---|
4402 | am_cv_CC_dependencies_compiler_type=none |
---|
4403 | if test "$am_compiler_list" = ""; then |
---|
4404 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4405 | fi |
---|
4406 | for depmode in $am_compiler_list; do |
---|
4407 | # Setup a source with many dependencies, because some compilers |
---|
4408 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4409 | # we should not choose a depcomp mode which is confused by this. |
---|
4410 | # |
---|
4411 | # We need to recreate these files for each test, as the compiler may |
---|
4412 | # overwrite some of them when testing with obscure command lines. |
---|
4413 | # This happens at least with the AIX C compiler. |
---|
4414 | : > sub/conftest.c |
---|
4415 | for i in 1 2 3 4 5 6; do |
---|
4416 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4417 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
4418 | # Solaris 8's {/usr,}/bin/sh. |
---|
4419 | touch sub/conftst$i.h |
---|
4420 | done |
---|
4421 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4422 | |
---|
4423 | case $depmode in |
---|
4424 | nosideeffect) |
---|
4425 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
4426 | # only be used when explicitly requested |
---|
4427 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4428 | continue |
---|
4429 | else |
---|
4430 | break |
---|
4431 | fi |
---|
4432 | ;; |
---|
4433 | none) break ;; |
---|
4434 | esac |
---|
4435 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
4436 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4437 | # handle `-M -o', and we need to detect this. |
---|
4438 | if depmode=$depmode \ |
---|
4439 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
4440 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4441 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
4442 | >/dev/null 2>conftest.err && |
---|
4443 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4444 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
4445 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4446 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4447 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4448 | # that says an option was ignored or not supported. |
---|
4449 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4450 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4451 | # The diagnosis changed in icc 8.0: |
---|
4452 | # icc: Command line remark: option '-MP' not supported |
---|
4453 | if (grep 'ignoring option' conftest.err || |
---|
4454 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4455 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
4456 | break |
---|
4457 | fi |
---|
4458 | fi |
---|
4459 | done |
---|
4460 | |
---|
4461 | cd .. |
---|
4462 | rm -rf conftest.dir |
---|
4463 | else |
---|
4464 | am_cv_CC_dependencies_compiler_type=none |
---|
4465 | fi |
---|
4466 | |
---|
4467 | fi |
---|
4468 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
4469 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
4470 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
4471 | |
---|
4472 | |
---|
4473 | |
---|
4474 | if |
---|
4475 | test "x$enable_dependency_tracking" != xno \ |
---|
4476 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
4477 | am__fastdepCC_TRUE= |
---|
4478 | am__fastdepCC_FALSE='#' |
---|
4479 | else |
---|
4480 | am__fastdepCC_TRUE='#' |
---|
4481 | am__fastdepCC_FALSE= |
---|
4482 | fi |
---|
4483 | |
---|
4484 | |
---|
4485 | |
---|
4486 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
4487 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
---|
4488 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
---|
4489 | if test "${enable_maintainer_mode+set}" = set; then |
---|
4490 | enableval="$enable_maintainer_mode" |
---|
4491 | USE_MAINTAINER_MODE=$enableval |
---|
4492 | else |
---|
4493 | USE_MAINTAINER_MODE=no |
---|
4494 | fi; |
---|
4495 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
---|
4496 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
---|
4497 | |
---|
4498 | |
---|
4499 | if test $USE_MAINTAINER_MODE = yes; then |
---|
4500 | MAINTAINER_MODE_TRUE= |
---|
4501 | MAINTAINER_MODE_FALSE='#' |
---|
4502 | else |
---|
4503 | MAINTAINER_MODE_TRUE='#' |
---|
4504 | MAINTAINER_MODE_FALSE= |
---|
4505 | fi |
---|
4506 | |
---|
4507 | MAINT=$MAINTAINER_MODE_TRUE |
---|
4508 | |
---|
4509 | |
---|
4510 | |
---|
4511 | coin_have_externals=no |
---|
4512 | if test "$enable_maintainer_mode" = yes; then |
---|
4513 | |
---|
4514 | # If maintainer mode is chosen, we make sure that the correct versions |
---|
4515 | # of the tools are used, and that we know where libtool.m4 is (to |
---|
4516 | # recreate acinclude.m4) |
---|
4517 | |
---|
4518 | |
---|
4519 | LIBTOOLM4= |
---|
4520 | # Normally, $HOME |
---|
4521 | AUTOTOOLS_DFLT=$HOME |
---|
4522 | |
---|
4523 | echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5 |
---|
4524 | echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6 |
---|
4525 | if test "${ac_cv_use_correct_autotools+set}" = set; then |
---|
4526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4527 | else |
---|
4528 | ac_cv_use_correct_autotools=check |
---|
4529 | fi |
---|
4530 | echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5 |
---|
4531 | echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6 |
---|
4532 | |
---|
4533 | if test $ac_cv_use_correct_autotools = check; then |
---|
4534 | ac_cv_use_correct_autotools=yes |
---|
4535 | # Check if we have autoconf |
---|
4536 | # Extract the first word of "autoconf", so it can be a program name with args. |
---|
4537 | set dummy autoconf; ac_word=$2 |
---|
4538 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4539 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4540 | if test "${ac_cv_prog_have_autoconf+set}" = set; then |
---|
4541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4542 | else |
---|
4543 | if test -n "$have_autoconf"; then |
---|
4544 | ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test. |
---|
4545 | else |
---|
4546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4547 | for as_dir in $PATH |
---|
4548 | do |
---|
4549 | IFS=$as_save_IFS |
---|
4550 | test -z "$as_dir" && as_dir=. |
---|
4551 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4552 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4553 | ac_cv_prog_have_autoconf="yes" |
---|
4554 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4555 | break 2 |
---|
4556 | fi |
---|
4557 | done |
---|
4558 | done |
---|
4559 | |
---|
4560 | test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no" |
---|
4561 | fi |
---|
4562 | fi |
---|
4563 | have_autoconf=$ac_cv_prog_have_autoconf |
---|
4564 | if test -n "$have_autoconf"; then |
---|
4565 | echo "$as_me:$LINENO: result: $have_autoconf" >&5 |
---|
4566 | echo "${ECHO_T}$have_autoconf" >&6 |
---|
4567 | else |
---|
4568 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4569 | echo "${ECHO_T}no" >&6 |
---|
4570 | fi |
---|
4571 | |
---|
4572 | if test $have_autoconf = no; then |
---|
4573 | { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5 |
---|
4574 | echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;} |
---|
4575 | { (exit 1); exit 1; }; } |
---|
4576 | fi |
---|
4577 | |
---|
4578 | # Check whether autoconf is the correct version |
---|
4579 | correct_version='2.59' |
---|
4580 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
4581 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5 |
---|
4582 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6 |
---|
4583 | autoconf --version > confauto.out 2>&1 |
---|
4584 | if $EGREP $grep_version confauto.out >/dev/null 2>&1; then |
---|
4585 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4586 | echo "${ECHO_T}yes" >&6 |
---|
4587 | else |
---|
4588 | rm -f confauto.out |
---|
4589 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4590 | echo "${ECHO_T}no" >&6 |
---|
4591 | { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5 |
---|
4592 | echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;} |
---|
4593 | { (exit 1); exit 1; }; } |
---|
4594 | fi |
---|
4595 | rm -f confauto.out |
---|
4596 | |
---|
4597 | # Check if the executable autoconf is picked up from the correct location |
---|
4598 | echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5 |
---|
4599 | echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6 |
---|
4600 | autoconf_dir=`which autoconf | sed -e 's=/autoconf=='` |
---|
4601 | autoconf_dir=`cd $autoconf_dir; pwd` |
---|
4602 | if test x$AUTOTOOLS_DIR = x; then |
---|
4603 | want_dir=$AUTOTOOLS_DFLT/bin |
---|
4604 | else |
---|
4605 | want_dir=$AUTOTOOLS_DIR/bin |
---|
4606 | fi |
---|
4607 | if test $autoconf_dir = `cd $want_dir; pwd`; then |
---|
4608 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4609 | echo "${ECHO_T}yes" >&6 |
---|
4610 | else |
---|
4611 | rm -f confauto.out |
---|
4612 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4613 | echo "${ECHO_T}no" >&6 |
---|
4614 | { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 |
---|
4615 | echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} |
---|
4616 | { (exit 1); exit 1; }; } |
---|
4617 | fi |
---|
4618 | |
---|
4619 | # Check if we have automake |
---|
4620 | # Extract the first word of "automake", so it can be a program name with args. |
---|
4621 | set dummy automake; ac_word=$2 |
---|
4622 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4623 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4624 | if test "${ac_cv_prog_have_automake+set}" = set; then |
---|
4625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4626 | else |
---|
4627 | if test -n "$have_automake"; then |
---|
4628 | ac_cv_prog_have_automake="$have_automake" # Let the user override the test. |
---|
4629 | else |
---|
4630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4631 | for as_dir in $PATH |
---|
4632 | do |
---|
4633 | IFS=$as_save_IFS |
---|
4634 | test -z "$as_dir" && as_dir=. |
---|
4635 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4636 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4637 | ac_cv_prog_have_automake="yes" |
---|
4638 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4639 | break 2 |
---|
4640 | fi |
---|
4641 | done |
---|
4642 | done |
---|
4643 | |
---|
4644 | test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no" |
---|
4645 | fi |
---|
4646 | fi |
---|
4647 | have_automake=$ac_cv_prog_have_automake |
---|
4648 | if test -n "$have_automake"; then |
---|
4649 | echo "$as_me:$LINENO: result: $have_automake" >&5 |
---|
4650 | echo "${ECHO_T}$have_automake" >&6 |
---|
4651 | else |
---|
4652 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4653 | echo "${ECHO_T}no" >&6 |
---|
4654 | fi |
---|
4655 | |
---|
4656 | if test $have_automake = no; then |
---|
4657 | { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5 |
---|
4658 | echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;} |
---|
4659 | { (exit 1); exit 1; }; } |
---|
4660 | fi |
---|
4661 | |
---|
4662 | # Check whether automake is the correct version |
---|
4663 | correct_version='1.9.6' |
---|
4664 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
4665 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5 |
---|
4666 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6 |
---|
4667 | automake --version > confauto.out 2>&1 |
---|
4668 | if $EGREP $grep_version confauto.out >/dev/null 2>&1; then |
---|
4669 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4670 | echo "${ECHO_T}yes" >&6 |
---|
4671 | else |
---|
4672 | rm -f confauto.out |
---|
4673 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4674 | echo "${ECHO_T}no" >&6 |
---|
4675 | { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5 |
---|
4676 | echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;} |
---|
4677 | { (exit 1); exit 1; }; } |
---|
4678 | fi |
---|
4679 | rm -f confauto.out |
---|
4680 | |
---|
4681 | # Check if the executable automake is picked up from the correct location |
---|
4682 | echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5 |
---|
4683 | echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6 |
---|
4684 | automake_dir=`which automake | sed -e 's=/automake=='` |
---|
4685 | automake_dir=`cd $automake_dir; pwd` |
---|
4686 | if test x$AUTOTOOLS_DIR = x; then |
---|
4687 | want_dir=$AUTOTOOLS_DFLT/bin |
---|
4688 | else |
---|
4689 | want_dir=$AUTOTOOLS_DIR/bin |
---|
4690 | fi |
---|
4691 | if test $automake_dir = `cd $want_dir; pwd`; then |
---|
4692 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4693 | echo "${ECHO_T}yes" >&6 |
---|
4694 | else |
---|
4695 | rm -f confauto.out |
---|
4696 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4697 | echo "${ECHO_T}no" >&6 |
---|
4698 | { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 |
---|
4699 | echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} |
---|
4700 | { (exit 1); exit 1; }; } |
---|
4701 | fi |
---|
4702 | |
---|
4703 | # Check if this is the correct version of libtool (with escaped dots) |
---|
4704 | if test x$AUTOTOOLS_DIR = x; then |
---|
4705 | want_dir=$AUTOTOOLS_DFLT/share |
---|
4706 | else |
---|
4707 | want_dir=$AUTOTOOLS_DIR/share |
---|
4708 | fi |
---|
4709 | correct_version='1.5.22' |
---|
4710 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
4711 | if test -r $want_dir/libtool/ltmain.sh; then |
---|
4712 | have_ltmain=yes |
---|
4713 | : |
---|
4714 | else |
---|
4715 | have_ltmain=no |
---|
4716 | : |
---|
4717 | fi |
---|
4718 | |
---|
4719 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5 |
---|
4720 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6 |
---|
4721 | if test $have_ltmain = yes; then |
---|
4722 | if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then |
---|
4723 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4724 | echo "${ECHO_T}yes" >&6 |
---|
4725 | else |
---|
4726 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4727 | echo "${ECHO_T}no" >&6 |
---|
4728 | { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5 |
---|
4729 | echo "$as_me: error: You don't have the correct version of libtool." >&2;} |
---|
4730 | { (exit 1); exit 1; }; } |
---|
4731 | fi |
---|
4732 | else |
---|
4733 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4734 | echo "${ECHO_T}no" >&6 |
---|
4735 | { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5 |
---|
4736 | echo "$as_me: error: I cannot find the ltmain.sh file." >&2;} |
---|
4737 | { (exit 1); exit 1; }; } |
---|
4738 | fi |
---|
4739 | fi |
---|
4740 | |
---|
4741 | # Check if we can find the libtool file |
---|
4742 | if test x$AUTOTOOLS_DIR = x; then |
---|
4743 | want_dir=$AUTOTOOLS_DFLT/share |
---|
4744 | else |
---|
4745 | want_dir=$AUTOTOOLS_DIR/share |
---|
4746 | fi |
---|
4747 | if test -r $want_dir/aclocal/libtool.m4; then |
---|
4748 | LIBTOOLM4="$want_dir/aclocal/libtool.m4" |
---|
4749 | : |
---|
4750 | else |
---|
4751 | { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5 |
---|
4752 | echo "$as_me: error: I cannot find the libtool.m4 file." >&2;} |
---|
4753 | { (exit 1); exit 1; }; } |
---|
4754 | : |
---|
4755 | fi |
---|
4756 | |
---|
4757 | |
---|
4758 | # Check if we have an Externals file |
---|
4759 | if test -r $srcdir/Externals; then |
---|
4760 | coin_have_externals=yes |
---|
4761 | fi |
---|
4762 | # Check if subversion is installed and understands https |
---|
4763 | # Extract the first word of "svn", so it can be a program name with args. |
---|
4764 | set dummy svn; ac_word=$2 |
---|
4765 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4766 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4767 | if test "${ac_cv_prog_have_svn+set}" = set; then |
---|
4768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4769 | else |
---|
4770 | if test -n "$have_svn"; then |
---|
4771 | ac_cv_prog_have_svn="$have_svn" # Let the user override the test. |
---|
4772 | else |
---|
4773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4774 | for as_dir in $PATH |
---|
4775 | do |
---|
4776 | IFS=$as_save_IFS |
---|
4777 | test -z "$as_dir" && as_dir=. |
---|
4778 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4779 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4780 | ac_cv_prog_have_svn="yes" |
---|
4781 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4782 | break 2 |
---|
4783 | fi |
---|
4784 | done |
---|
4785 | done |
---|
4786 | |
---|
4787 | test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no" |
---|
4788 | fi |
---|
4789 | fi |
---|
4790 | have_svn=$ac_cv_prog_have_svn |
---|
4791 | if test -n "$have_svn"; then |
---|
4792 | echo "$as_me:$LINENO: result: $have_svn" >&5 |
---|
4793 | echo "${ECHO_T}$have_svn" >&6 |
---|
4794 | else |
---|
4795 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4796 | echo "${ECHO_T}no" >&6 |
---|
4797 | fi |
---|
4798 | |
---|
4799 | if test x$have_svn = xyes; then |
---|
4800 | echo "$as_me:$LINENO: checking whether svn understands https" >&5 |
---|
4801 | echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6 |
---|
4802 | if test "${ac_cv_svn_understands_https+set}" = set; then |
---|
4803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4804 | else |
---|
4805 | svn --version > confauto.out 2>&1 |
---|
4806 | if $EGREP https confauto.out >/dev/null 2>&1; then |
---|
4807 | ac_cv_svn_understands_https=yes |
---|
4808 | else |
---|
4809 | ac_cv_svn_understands_https=no |
---|
4810 | have_svn=no |
---|
4811 | ac_cv_prog_have_svn=no |
---|
4812 | fi |
---|
4813 | rm -f confauto.out |
---|
4814 | fi |
---|
4815 | echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5 |
---|
4816 | echo "${ECHO_T}$ac_cv_svn_understands_https" >&6 |
---|
4817 | fi |
---|
4818 | |
---|
4819 | # Find the location of the BuildTools directory |
---|
4820 | BUILDTOOLSDIR= |
---|
4821 | if test -r $srcdir/BuildTools/coin.m4; then |
---|
4822 | BUILDTOOLSDIR=$srcdir/BuildTools |
---|
4823 | else |
---|
4824 | if test -r $srcdir/../BuildTools/coin.m4; then |
---|
4825 | BUILDTOOLSDIR=$srcdir/../BuildTools |
---|
4826 | else |
---|
4827 | if test -r $srcdir/../../BuildTools/coin.m4; then |
---|
4828 | BUILDTOOLSDIR=$srcdir/../../BuildTools |
---|
4829 | else |
---|
4830 | { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5 |
---|
4831 | echo "$as_me: error: Cannot find the BuildTools directory" >&2;} |
---|
4832 | { (exit 1); exit 1; }; } |
---|
4833 | fi |
---|
4834 | fi |
---|
4835 | fi |
---|
4836 | |
---|
4837 | |
---|
4838 | # The following variable is set to the name of the directory where |
---|
4839 | # the autotool scripts are located |
---|
4840 | |
---|
4841 | AUX_DIR=$ac_aux_dir |
---|
4842 | fi |
---|
4843 | |
---|
4844 | # helpful variable for the base directory of this package |
---|
4845 | abs_source_dir=`cd $srcdir; pwd` |
---|
4846 | |
---|
4847 | |
---|
4848 | # Stuff for example Makefiles |
---|
4849 | if test x$prefix = xNONE; then |
---|
4850 | full_prefix=$ac_default_prefix |
---|
4851 | else |
---|
4852 | full_prefix=$prefix |
---|
4853 | fi |
---|
4854 | full_prefix=`cd $full_prefix ; pwd` |
---|
4855 | |
---|
4856 | abs_lib_dir=$full_prefix/lib |
---|
4857 | |
---|
4858 | abs_include_dir=$full_prefix/include |
---|
4859 | |
---|
4860 | abs_bin_dir=$full_prefix/bin |
---|
4861 | |
---|
4862 | |
---|
4863 | |
---|
4864 | if test $coin_have_externals = yes && test x$have_svn = xyes; then |
---|
4865 | HAVE_EXTERNALS_TRUE= |
---|
4866 | HAVE_EXTERNALS_FALSE='#' |
---|
4867 | else |
---|
4868 | HAVE_EXTERNALS_TRUE='#' |
---|
4869 | HAVE_EXTERNALS_FALSE= |
---|
4870 | fi |
---|
4871 | |
---|
4872 | |
---|
4873 | # AC_MSG_NOTICE([End automake initialisation.]) |
---|
4874 | |
---|
4875 | |
---|
4876 | |
---|
4877 | LIBTOOL= |
---|
4878 | if test -r ../libtool; then |
---|
4879 | coin_config_dir=.. |
---|
4880 | LIBTOOL='$(SHELL) $(top_builddir)/../libtool' |
---|
4881 | fi |
---|
4882 | if test "x$LIBTOOL" = x; then |
---|
4883 | if test -r ../../libtool; then |
---|
4884 | coin_config_dir=../.. |
---|
4885 | LIBTOOL='$(SHELL) $(top_builddir)/../../libtool' |
---|
4886 | fi |
---|
4887 | fi |
---|
4888 | |
---|
4889 | if test "x$LIBTOOL" = x; then |
---|
4890 | # AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).]) |
---|
4891 | # Stuff for libtool |
---|
4892 | # Check whether --enable-shared or --disable-shared was given. |
---|
4893 | if test "${enable_shared+set}" = set; then |
---|
4894 | enableval="$enable_shared" |
---|
4895 | p=${PACKAGE-default} |
---|
4896 | case $enableval in |
---|
4897 | yes) enable_shared=yes ;; |
---|
4898 | no) enable_shared=no ;; |
---|
4899 | *) |
---|
4900 | enable_shared=no |
---|
4901 | # Look at the argument we got. We use all the common list separators. |
---|
4902 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
4903 | for pkg in $enableval; do |
---|
4904 | IFS="$lt_save_ifs" |
---|
4905 | if test "X$pkg" = "X$p"; then |
---|
4906 | enable_shared=yes |
---|
4907 | fi |
---|
4908 | done |
---|
4909 | IFS="$lt_save_ifs" |
---|
4910 | ;; |
---|
4911 | esac |
---|
4912 | else |
---|
4913 | enable_shared=yes |
---|
4914 | fi; |
---|
4915 | |
---|
4916 | # Check whether --enable-fast-install or --disable-fast-install was given. |
---|
4917 | if test "${enable_fast_install+set}" = set; then |
---|
4918 | enableval="$enable_fast_install" |
---|
4919 | p=${PACKAGE-default} |
---|
4920 | case $enableval in |
---|
4921 | yes) enable_fast_install=yes ;; |
---|
4922 | no) enable_fast_install=no ;; |
---|
4923 | *) |
---|
4924 | enable_fast_install=no |
---|
4925 | # Look at the argument we got. We use all the common list separators. |
---|
4926 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
4927 | for pkg in $enableval; do |
---|
4928 | IFS="$lt_save_ifs" |
---|
4929 | if test "X$pkg" = "X$p"; then |
---|
4930 | enable_fast_install=yes |
---|
4931 | fi |
---|
4932 | done |
---|
4933 | IFS="$lt_save_ifs" |
---|
4934 | ;; |
---|
4935 | esac |
---|
4936 | else |
---|
4937 | enable_fast_install=yes |
---|
4938 | fi; |
---|
4939 | |
---|
4940 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
4941 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
4942 | if test "${ac_cv_host+set}" = set; then |
---|
4943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4944 | else |
---|
4945 | ac_cv_host_alias=$host_alias |
---|
4946 | test -z "$ac_cv_host_alias" && |
---|
4947 | ac_cv_host_alias=$ac_cv_build_alias |
---|
4948 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
4949 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
4950 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
4951 | { (exit 1); exit 1; }; } |
---|
4952 | |
---|
4953 | fi |
---|
4954 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
4955 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
4956 | host=$ac_cv_host |
---|
4957 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
4958 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
4959 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
4960 | |
---|
4961 | |
---|
4962 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
---|
4963 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
---|
4964 | if test "${lt_cv_path_SED+set}" = set; then |
---|
4965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4966 | else |
---|
4967 | # Loop through the user's path and test for sed and gsed. |
---|
4968 | # Then use that list of sed's as ones to test for truncation. |
---|
4969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4970 | for as_dir in $PATH |
---|
4971 | do |
---|
4972 | IFS=$as_save_IFS |
---|
4973 | test -z "$as_dir" && as_dir=. |
---|
4974 | for lt_ac_prog in sed gsed; do |
---|
4975 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4976 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
---|
4977 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
---|
4978 | fi |
---|
4979 | done |
---|
4980 | done |
---|
4981 | done |
---|
4982 | lt_ac_max=0 |
---|
4983 | lt_ac_count=0 |
---|
4984 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
---|
4985 | # along with /bin/sed that truncates output. |
---|
4986 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
---|
4987 | test ! -f $lt_ac_sed && continue |
---|
4988 | cat /dev/null > conftest.in |
---|
4989 | lt_ac_count=0 |
---|
4990 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
---|
4991 | # Check for GNU sed and select it if it is found. |
---|
4992 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
---|
4993 | lt_cv_path_SED=$lt_ac_sed |
---|
4994 | break |
---|
4995 | fi |
---|
4996 | while true; do |
---|
4997 | cat conftest.in conftest.in >conftest.tmp |
---|
4998 | mv conftest.tmp conftest.in |
---|
4999 | cp conftest.in conftest.nl |
---|
5000 | echo >>conftest.nl |
---|
5001 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
---|
5002 | cmp -s conftest.out conftest.nl || break |
---|
5003 | # 10000 chars as input seems more than enough |
---|
5004 | test $lt_ac_count -gt 10 && break |
---|
5005 | lt_ac_count=`expr $lt_ac_count + 1` |
---|
5006 | if test $lt_ac_count -gt $lt_ac_max; then |
---|
5007 | lt_ac_max=$lt_ac_count |
---|
5008 | lt_cv_path_SED=$lt_ac_sed |
---|
5009 | fi |
---|
5010 | done |
---|
5011 | done |
---|
5012 | |
---|
5013 | fi |
---|
5014 | |
---|
5015 | SED=$lt_cv_path_SED |
---|
5016 | echo "$as_me:$LINENO: result: $SED" >&5 |
---|
5017 | echo "${ECHO_T}$SED" >&6 |
---|
5018 | |
---|
5019 | |
---|
5020 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
---|
5021 | if test "${with_gnu_ld+set}" = set; then |
---|
5022 | withval="$with_gnu_ld" |
---|
5023 | test "$withval" = no || with_gnu_ld=yes |
---|
5024 | else |
---|
5025 | with_gnu_ld=no |
---|
5026 | fi; |
---|
5027 | ac_prog=ld |
---|
5028 | if test "$GCC" = yes; then |
---|
5029 | # Check if gcc -print-prog-name=ld gives a path. |
---|
5030 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
---|
5031 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
---|
5032 | case $host in |
---|
5033 | *-*-mingw*) |
---|
5034 | # gcc leaves a trailing carriage return which upsets mingw |
---|
5035 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
5036 | *) |
---|
5037 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
5038 | esac |
---|
5039 | case $ac_prog in |
---|
5040 | # Accept absolute paths. |
---|
5041 | [\\/]* | ?:[\\/]*) |
---|
5042 | re_direlt='/[^/][^/]*/\.\./' |
---|
5043 | # Canonicalize the pathname of ld |
---|
5044 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
---|
5045 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
5046 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
---|
5047 | done |
---|
5048 | test -z "$LD" && LD="$ac_prog" |
---|
5049 | ;; |
---|
5050 | "") |
---|
5051 | # If it fails, then pretend we aren't using GCC. |
---|
5052 | ac_prog=ld |
---|
5053 | ;; |
---|
5054 | *) |
---|
5055 | # If it is relative, then search for the first ld in PATH. |
---|
5056 | with_gnu_ld=unknown |
---|
5057 | ;; |
---|
5058 | esac |
---|
5059 | elif test "$with_gnu_ld" = yes; then |
---|
5060 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
---|
5061 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
---|
5062 | else |
---|
5063 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
---|
5064 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
---|
5065 | fi |
---|
5066 | if test "${lt_cv_path_LD+set}" = set; then |
---|
5067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5068 | else |
---|
5069 | if test -z "$LD"; then |
---|
5070 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
5071 | for ac_dir in $PATH; do |
---|
5072 | IFS="$lt_save_ifs" |
---|
5073 | test -z "$ac_dir" && ac_dir=. |
---|
5074 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
5075 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
5076 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
5077 | # but apparently some variants of GNU ld only accept -v. |
---|
5078 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
5079 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
5080 | *GNU* | *'with BFD'*) |
---|
5081 | test "$with_gnu_ld" != no && break |
---|
5082 | ;; |
---|
5083 | *) |
---|
5084 | test "$with_gnu_ld" != yes && break |
---|
5085 | ;; |
---|
5086 | esac |
---|
5087 | fi |
---|
5088 | done |
---|
5089 | IFS="$lt_save_ifs" |
---|
5090 | else |
---|
5091 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
5092 | fi |
---|
5093 | fi |
---|
5094 | |
---|
5095 | LD="$lt_cv_path_LD" |
---|
5096 | if test -n "$LD"; then |
---|
5097 | echo "$as_me:$LINENO: result: $LD" >&5 |
---|
5098 | echo "${ECHO_T}$LD" >&6 |
---|
5099 | else |
---|
5100 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5101 | echo "${ECHO_T}no" >&6 |
---|
5102 | fi |
---|
5103 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
---|
5104 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
---|
5105 | { (exit 1); exit 1; }; } |
---|
5106 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
---|
5107 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
---|
5108 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
---|
5109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5110 | else |
---|
5111 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
---|
5112 | case `$LD -v 2>&1 </dev/null` in |
---|
5113 | *GNU* | *'with BFD'*) |
---|
5114 | lt_cv_prog_gnu_ld=yes |
---|
5115 | ;; |
---|
5116 | *) |
---|
5117 | lt_cv_prog_gnu_ld=no |
---|
5118 | ;; |
---|
5119 | esac |
---|
5120 | fi |
---|
5121 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
---|
5122 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
---|
5123 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
5124 | |
---|
5125 | |
---|
5126 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
---|
5127 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
---|
5128 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
---|
5129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5130 | else |
---|
5131 | lt_cv_ld_reload_flag='-r' |
---|
5132 | fi |
---|
5133 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
---|
5134 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
---|
5135 | reload_flag=$lt_cv_ld_reload_flag |
---|
5136 | case $reload_flag in |
---|
5137 | "" | " "*) ;; |
---|
5138 | *) reload_flag=" $reload_flag" ;; |
---|
5139 | esac |
---|
5140 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
5141 | case $host_os in |
---|
5142 | darwin*) |
---|
5143 | if test "$GCC" = yes; then |
---|
5144 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
---|
5145 | else |
---|
5146 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
5147 | fi |
---|
5148 | ;; |
---|
5149 | esac |
---|
5150 | |
---|
5151 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
---|
5152 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
---|
5153 | if test "${lt_cv_path_NM+set}" = set; then |
---|
5154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5155 | else |
---|
5156 | if test -n "$NM"; then |
---|
5157 | # Let the user override the test. |
---|
5158 | lt_cv_path_NM="$NM" |
---|
5159 | else |
---|
5160 | lt_nm_to_check="${ac_tool_prefix}nm" |
---|
5161 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
---|
5162 | lt_nm_to_check="$lt_nm_to_check nm" |
---|
5163 | fi |
---|
5164 | for lt_tmp_nm in $lt_nm_to_check; do |
---|
5165 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
5166 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
---|
5167 | IFS="$lt_save_ifs" |
---|
5168 | test -z "$ac_dir" && ac_dir=. |
---|
5169 | tmp_nm="$ac_dir/$lt_tmp_nm" |
---|
5170 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
---|
5171 | # Check to see if the nm accepts a BSD-compat flag. |
---|
5172 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
5173 | # nm: unknown option "B" ignored |
---|
5174 | # Tru64's nm complains that /dev/null is an invalid object file |
---|
5175 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
---|
5176 | */dev/null* | *'Invalid file or object type'*) |
---|
5177 | lt_cv_path_NM="$tmp_nm -B" |
---|
5178 | break |
---|
5179 | ;; |
---|
5180 | *) |
---|
5181 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
---|
5182 | */dev/null*) |
---|
5183 | lt_cv_path_NM="$tmp_nm -p" |
---|
5184 | break |
---|
5185 | ;; |
---|
5186 | *) |
---|
5187 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
---|
5188 | continue # so that we can try to find one that supports BSD flags |
---|
5189 | ;; |
---|
5190 | esac |
---|
5191 | ;; |
---|
5192 | esac |
---|
5193 | fi |
---|
5194 | done |
---|
5195 | IFS="$lt_save_ifs" |
---|
5196 | done |
---|
5197 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
---|
5198 | fi |
---|
5199 | fi |
---|
5200 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
---|
5201 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
---|
5202 | NM="$lt_cv_path_NM" |
---|
5203 | |
---|
5204 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
---|
5205 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
---|
5206 | LN_S=$as_ln_s |
---|
5207 | if test "$LN_S" = "ln -s"; then |
---|
5208 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
5209 | echo "${ECHO_T}yes" >&6 |
---|
5210 | else |
---|
5211 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
---|
5212 | echo "${ECHO_T}no, using $LN_S" >&6 |
---|
5213 | fi |
---|
5214 | |
---|
5215 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
---|
5216 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
---|
5217 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
---|
5218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5219 | else |
---|
5220 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
---|
5221 | lt_cv_file_magic_test_file= |
---|
5222 | lt_cv_deplibs_check_method='unknown' |
---|
5223 | # Need to set the preceding variable on all platforms that support |
---|
5224 | # interlibrary dependencies. |
---|
5225 | # 'none' -- dependencies not supported. |
---|
5226 | # `unknown' -- same as none, but documents that we really don't know. |
---|
5227 | # 'pass_all' -- all dependencies passed with no checks. |
---|
5228 | # 'test_compile' -- check by making test program. |
---|
5229 | # 'file_magic [[regex]]' -- check by looking for files in library path |
---|
5230 | # which responds to the $file_magic_cmd with a given extended regex. |
---|
5231 | # If you have `file' or equivalent on your system and you're not sure |
---|
5232 | # whether `pass_all' will *always* work, you probably want this one. |
---|
5233 | |
---|
5234 | case $host_os in |
---|
5235 | aix4* | aix5*) |
---|
5236 | lt_cv_deplibs_check_method=pass_all |
---|
5237 | ;; |
---|
5238 | |
---|
5239 | beos*) |
---|
5240 | lt_cv_deplibs_check_method=pass_all |
---|
5241 | ;; |
---|
5242 | |
---|
5243 | bsdi[45]*) |
---|
5244 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
---|
5245 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
---|
5246 | lt_cv_file_magic_test_file=/shlib/libc.so |
---|
5247 | ;; |
---|
5248 | |
---|
5249 | cygwin*) |
---|
5250 | # func_win32_libid is a shell function defined in ltmain.sh |
---|
5251 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
---|
5252 | lt_cv_file_magic_cmd='func_win32_libid' |
---|
5253 | ;; |
---|
5254 | |
---|
5255 | mingw* | pw32*) |
---|
5256 | # Base MSYS/MinGW do not provide the 'file' command needed by |
---|
5257 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
---|
5258 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
---|
5259 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
5260 | ;; |
---|
5261 | |
---|
5262 | darwin* | rhapsody*) |
---|
5263 | lt_cv_deplibs_check_method=pass_all |
---|
5264 | ;; |
---|
5265 | |
---|
5266 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
5267 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
5268 | case $host_cpu in |
---|
5269 | i*86 ) |
---|
5270 | # Not sure whether the presence of OpenBSD here was a mistake. |
---|
5271 | # Let's accept both of them until this is cleared up. |
---|
5272 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
---|
5273 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
5274 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
---|
5275 | ;; |
---|
5276 | esac |
---|
5277 | else |
---|
5278 | lt_cv_deplibs_check_method=pass_all |
---|
5279 | fi |
---|
5280 | ;; |
---|
5281 | |
---|
5282 | gnu*) |
---|
5283 | lt_cv_deplibs_check_method=pass_all |
---|
5284 | ;; |
---|
5285 | |
---|
5286 | hpux10.20* | hpux11*) |
---|
5287 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
5288 | case $host_cpu in |
---|
5289 | ia64*) |
---|
5290 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
---|
5291 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
---|
5292 | ;; |
---|
5293 | hppa*64*) |
---|
5294 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
---|
5295 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
---|
5296 | ;; |
---|
5297 | *) |
---|
5298 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
---|
5299 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
---|
5300 | ;; |
---|
5301 | esac |
---|
5302 | ;; |
---|
5303 | |
---|
5304 | interix3*) |
---|
5305 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
---|
5306 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
---|
5307 | ;; |
---|
5308 | |
---|
5309 | irix5* | irix6* | nonstopux*) |
---|
5310 | case $LD in |
---|
5311 | *-32|*"-32 ") libmagic=32-bit;; |
---|
5312 | *-n32|*"-n32 ") libmagic=N32;; |
---|
5313 | *-64|*"-64 ") libmagic=64-bit;; |
---|
5314 | *) libmagic=never-match;; |
---|
5315 | esac |
---|
5316 | lt_cv_deplibs_check_method=pass_all |
---|
5317 | ;; |
---|
5318 | |
---|
5319 | # This must be Linux ELF. |
---|
5320 | linux*) |
---|
5321 | lt_cv_deplibs_check_method=pass_all |
---|
5322 | ;; |
---|
5323 | |
---|
5324 | netbsd*) |
---|
5325 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
5326 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
5327 | else |
---|
5328 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
---|
5329 | fi |
---|
5330 | ;; |
---|
5331 | |
---|
5332 | newos6*) |
---|
5333 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
---|
5334 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
5335 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
---|
5336 | ;; |
---|
5337 | |
---|
5338 | nto-qnx*) |
---|
5339 | lt_cv_deplibs_check_method=unknown |
---|
5340 | ;; |
---|
5341 | |
---|
5342 | openbsd*) |
---|
5343 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
5344 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
---|
5345 | else |
---|
5346 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
5347 | fi |
---|
5348 | ;; |
---|
5349 | |
---|
5350 | osf3* | osf4* | osf5*) |
---|
5351 | lt_cv_deplibs_check_method=pass_all |
---|
5352 | ;; |
---|
5353 | |
---|
5354 | solaris*) |
---|
5355 | lt_cv_deplibs_check_method=pass_all |
---|
5356 | ;; |
---|
5357 | |
---|
5358 | sysv4 | sysv4.3*) |
---|
5359 | case $host_vendor in |
---|
5360 | motorola) |
---|
5361 | 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]' |
---|
5362 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
---|
5363 | ;; |
---|
5364 | ncr) |
---|
5365 | lt_cv_deplibs_check_method=pass_all |
---|
5366 | ;; |
---|
5367 | sequent) |
---|
5368 | lt_cv_file_magic_cmd='/bin/file' |
---|
5369 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
---|
5370 | ;; |
---|
5371 | sni) |
---|
5372 | lt_cv_file_magic_cmd='/bin/file' |
---|
5373 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
---|
5374 | lt_cv_file_magic_test_file=/lib/libc.so |
---|
5375 | ;; |
---|
5376 | siemens) |
---|
5377 | lt_cv_deplibs_check_method=pass_all |
---|
5378 | ;; |
---|
5379 | pc) |
---|
5380 | lt_cv_deplibs_check_method=pass_all |
---|
5381 | ;; |
---|
5382 | esac |
---|
5383 | ;; |
---|
5384 | |
---|
5385 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
5386 | lt_cv_deplibs_check_method=pass_all |
---|
5387 | ;; |
---|
5388 | esac |
---|
5389 | |
---|
5390 | fi |
---|
5391 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
---|
5392 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
---|
5393 | file_magic_cmd=$lt_cv_file_magic_cmd |
---|
5394 | deplibs_check_method=$lt_cv_deplibs_check_method |
---|
5395 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
---|
5396 | |
---|
5397 | |
---|
5398 | |
---|
5399 | |
---|
5400 | # If no C compiler was specified, use CC. |
---|
5401 | LTCC=${LTCC-"$CC"} |
---|
5402 | |
---|
5403 | # If no C compiler flags were specified, use CFLAGS. |
---|
5404 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
5405 | |
---|
5406 | # Allow CC to be a program name with arguments. |
---|
5407 | compiler=$CC |
---|
5408 | |
---|
5409 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
5410 | if test "${enable_libtool_lock+set}" = set; then |
---|
5411 | enableval="$enable_libtool_lock" |
---|
5412 | |
---|
5413 | fi; |
---|
5414 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
5415 | |
---|
5416 | # Some flags need to be propagated to the compiler or linker for good |
---|
5417 | # libtool support. |
---|
5418 | case $host in |
---|
5419 | ia64-*-hpux*) |
---|
5420 | # Find out which ABI we are using. |
---|
5421 | echo 'int i;' > conftest.$ac_ext |
---|
5422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5423 | (eval $ac_compile) 2>&5 |
---|
5424 | ac_status=$? |
---|
5425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5426 | (exit $ac_status); }; then |
---|
5427 | case `/usr/bin/file conftest.$ac_objext` in |
---|
5428 | *ELF-32*) |
---|
5429 | HPUX_IA64_MODE="32" |
---|
5430 | ;; |
---|
5431 | *ELF-64*) |
---|
5432 | HPUX_IA64_MODE="64" |
---|
5433 | ;; |
---|
5434 | esac |
---|
5435 | fi |
---|
5436 | rm -rf conftest* |
---|
5437 | ;; |
---|
5438 | *-*-irix6*) |
---|
5439 | # Find out which ABI we are using. |
---|
5440 | echo '#line 5440 "configure"' > conftest.$ac_ext |
---|
5441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5442 | (eval $ac_compile) 2>&5 |
---|
5443 | ac_status=$? |
---|
5444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5445 | (exit $ac_status); }; then |
---|
5446 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
5447 | case `/usr/bin/file conftest.$ac_objext` in |
---|
5448 | *32-bit*) |
---|
5449 | LD="${LD-ld} -melf32bsmip" |
---|
5450 | ;; |
---|
5451 | *N32*) |
---|
5452 | LD="${LD-ld} -melf32bmipn32" |
---|
5453 | ;; |
---|
5454 | *64-bit*) |
---|
5455 | LD="${LD-ld} -melf64bmip" |
---|
5456 | ;; |
---|
5457 | esac |
---|
5458 | else |
---|
5459 | case `/usr/bin/file conftest.$ac_objext` in |
---|
5460 | *32-bit*) |
---|
5461 | LD="${LD-ld} -32" |
---|
5462 | ;; |
---|
5463 | *N32*) |
---|
5464 | LD="${LD-ld} -n32" |
---|
5465 | ;; |
---|
5466 | *64-bit*) |
---|
5467 | LD="${LD-ld} -64" |
---|
5468 | ;; |
---|
5469 | esac |
---|
5470 | fi |
---|
5471 | fi |
---|
5472 | rm -rf conftest* |
---|
5473 | ;; |
---|
5474 | |
---|
5475 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
---|
5476 | # Find out which ABI we are using. |
---|
5477 | echo 'int i;' > conftest.$ac_ext |
---|
5478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5479 | (eval $ac_compile) 2>&5 |
---|
5480 | ac_status=$? |
---|
5481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5482 | (exit $ac_status); }; then |
---|
5483 | case `/usr/bin/file conftest.o` in |
---|
5484 | *32-bit*) |
---|
5485 | case $host in |
---|
5486 | x86_64-*linux*) |
---|
5487 | LD="${LD-ld} -m elf_i386" |
---|
5488 | ;; |
---|
5489 | ppc64-*linux*|powerpc64-*linux*) |
---|
5490 | LD="${LD-ld} -m elf32ppclinux" |
---|
5491 | ;; |
---|
5492 | s390x-*linux*) |
---|
5493 | LD="${LD-ld} -m elf_s390" |
---|
5494 | ;; |
---|
5495 | sparc64-*linux*) |
---|
5496 | LD="${LD-ld} -m elf32_sparc" |
---|
5497 | ;; |
---|
5498 | esac |
---|
5499 | ;; |
---|
5500 | *64-bit*) |
---|
5501 | case $host in |
---|
5502 | x86_64-*linux*) |
---|
5503 | LD="${LD-ld} -m elf_x86_64" |
---|
5504 | ;; |
---|
5505 | ppc*-*linux*|powerpc*-*linux*) |
---|
5506 | LD="${LD-ld} -m elf64ppc" |
---|
5507 | ;; |
---|
5508 | s390*-*linux*) |
---|
5509 | LD="${LD-ld} -m elf64_s390" |
---|
5510 | ;; |
---|
5511 | sparc*-*linux*) |
---|
5512 | LD="${LD-ld} -m elf64_sparc" |
---|
5513 | ;; |
---|
5514 | esac |
---|
5515 | ;; |
---|
5516 | esac |
---|
5517 | fi |
---|
5518 | rm -rf conftest* |
---|
5519 | ;; |
---|
5520 | |
---|
5521 | *-*-sco3.2v5*) |
---|
5522 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
5523 | SAVE_CFLAGS="$CFLAGS" |
---|
5524 | CFLAGS="$CFLAGS -belf" |
---|
5525 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
---|
5526 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
---|
5527 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
---|
5528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5529 | else |
---|
5530 | ac_ext=c |
---|
5531 | ac_cpp='$CPP $CPPFLAGS' |
---|
5532 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5533 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5534 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5535 | |
---|
5536 | cat >conftest.$ac_ext <<_ACEOF |
---|
5537 | /* confdefs.h. */ |
---|
5538 | _ACEOF |
---|
5539 | cat confdefs.h >>conftest.$ac_ext |
---|
5540 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5541 | /* end confdefs.h. */ |
---|
5542 | |
---|
5543 | int |
---|
5544 | main () |
---|
5545 | { |
---|
5546 | |
---|
5547 | ; |
---|
5548 | return 0; |
---|
5549 | } |
---|
5550 | _ACEOF |
---|
5551 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5553 | (eval $ac_link) 2>conftest.er1 |
---|
5554 | ac_status=$? |
---|
5555 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5556 | rm -f conftest.er1 |
---|
5557 | cat conftest.err >&5 |
---|
5558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5559 | (exit $ac_status); } && |
---|
5560 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5561 | || test ! -s conftest.err' |
---|
5562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5563 | (eval $ac_try) 2>&5 |
---|
5564 | ac_status=$? |
---|
5565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5566 | (exit $ac_status); }; } && |
---|
5567 | { ac_try='test -s conftest$ac_exeext' |
---|
5568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5569 | (eval $ac_try) 2>&5 |
---|
5570 | ac_status=$? |
---|
5571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5572 | (exit $ac_status); }; }; then |
---|
5573 | lt_cv_cc_needs_belf=yes |
---|
5574 | else |
---|
5575 | echo "$as_me: failed program was:" >&5 |
---|
5576 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5577 | |
---|
5578 | lt_cv_cc_needs_belf=no |
---|
5579 | fi |
---|
5580 | rm -f conftest.err conftest.$ac_objext \ |
---|
5581 | conftest$ac_exeext conftest.$ac_ext |
---|
5582 | ac_ext=c |
---|
5583 | ac_cpp='$CPP $CPPFLAGS' |
---|
5584 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5585 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5586 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5587 | |
---|
5588 | fi |
---|
5589 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
---|
5590 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
---|
5591 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
5592 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
5593 | CFLAGS="$SAVE_CFLAGS" |
---|
5594 | fi |
---|
5595 | ;; |
---|
5596 | sparc*-*solaris*) |
---|
5597 | # Find out which ABI we are using. |
---|
5598 | echo 'int i;' > conftest.$ac_ext |
---|
5599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5600 | (eval $ac_compile) 2>&5 |
---|
5601 | ac_status=$? |
---|
5602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5603 | (exit $ac_status); }; then |
---|
5604 | case `/usr/bin/file conftest.o` in |
---|
5605 | *64-bit*) |
---|
5606 | case $lt_cv_prog_gnu_ld in |
---|
5607 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
---|
5608 | *) LD="${LD-ld} -64" ;; |
---|
5609 | esac |
---|
5610 | ;; |
---|
5611 | esac |
---|
5612 | fi |
---|
5613 | rm -rf conftest* |
---|
5614 | ;; |
---|
5615 | |
---|
5616 | |
---|
5617 | esac |
---|
5618 | |
---|
5619 | need_locks="$enable_libtool_lock" |
---|
5620 | |
---|
5621 | |
---|
5622 | ac_ext=c |
---|
5623 | ac_cpp='$CPP $CPPFLAGS' |
---|
5624 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5625 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5626 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5627 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
5628 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
5629 | # On Suns, sometimes $CPP names a directory. |
---|
5630 | if test -n "$CPP" && test -d "$CPP"; then |
---|
5631 | CPP= |
---|
5632 | fi |
---|
5633 | if test -z "$CPP"; then |
---|
5634 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
5635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5636 | else |
---|
5637 | # Double quotes because CPP needs to be expanded |
---|
5638 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
5639 | do |
---|
5640 | ac_preproc_ok=false |
---|
5641 | for ac_c_preproc_warn_flag in '' yes |
---|
5642 | do |
---|
5643 | # Use a header file that comes with gcc, so configuring glibc |
---|
5644 | # with a fresh cross-compiler works. |
---|
5645 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5646 | # <limits.h> exists even on freestanding compilers. |
---|
5647 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5648 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5649 | cat >conftest.$ac_ext <<_ACEOF |
---|
5650 | /* confdefs.h. */ |
---|
5651 | _ACEOF |
---|
5652 | cat confdefs.h >>conftest.$ac_ext |
---|
5653 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5654 | /* end confdefs.h. */ |
---|
5655 | #ifdef __STDC__ |
---|
5656 | # include <limits.h> |
---|
5657 | #else |
---|
5658 | # include <assert.h> |
---|
5659 | #endif |
---|
5660 | Syntax error |
---|
5661 | _ACEOF |
---|
5662 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5663 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5664 | ac_status=$? |
---|
5665 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5666 | rm -f conftest.er1 |
---|
5667 | cat conftest.err >&5 |
---|
5668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5669 | (exit $ac_status); } >/dev/null; then |
---|
5670 | if test -s conftest.err; then |
---|
5671 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5672 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5673 | else |
---|
5674 | ac_cpp_err= |
---|
5675 | fi |
---|
5676 | else |
---|
5677 | ac_cpp_err=yes |
---|
5678 | fi |
---|
5679 | if test -z "$ac_cpp_err"; then |
---|
5680 | : |
---|
5681 | else |
---|
5682 | echo "$as_me: failed program was:" >&5 |
---|
5683 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5684 | |
---|
5685 | # Broken: fails on valid input. |
---|
5686 | continue |
---|
5687 | fi |
---|
5688 | rm -f conftest.err conftest.$ac_ext |
---|
5689 | |
---|
5690 | # OK, works on sane cases. Now check whether non-existent headers |
---|
5691 | # can be detected and how. |
---|
5692 | cat >conftest.$ac_ext <<_ACEOF |
---|
5693 | /* confdefs.h. */ |
---|
5694 | _ACEOF |
---|
5695 | cat confdefs.h >>conftest.$ac_ext |
---|
5696 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5697 | /* end confdefs.h. */ |
---|
5698 | #include <ac_nonexistent.h> |
---|
5699 | _ACEOF |
---|
5700 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5701 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5702 | ac_status=$? |
---|
5703 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5704 | rm -f conftest.er1 |
---|
5705 | cat conftest.err >&5 |
---|
5706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5707 | (exit $ac_status); } >/dev/null; then |
---|
5708 | if test -s conftest.err; then |
---|
5709 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5710 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5711 | else |
---|
5712 | ac_cpp_err= |
---|
5713 | fi |
---|
5714 | else |
---|
5715 | ac_cpp_err=yes |
---|
5716 | fi |
---|
5717 | if test -z "$ac_cpp_err"; then |
---|
5718 | # Broken: success on invalid input. |
---|
5719 | continue |
---|
5720 | else |
---|
5721 | echo "$as_me: failed program was:" >&5 |
---|
5722 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5723 | |
---|
5724 | # Passes both tests. |
---|
5725 | ac_preproc_ok=: |
---|
5726 | break |
---|
5727 | fi |
---|
5728 | rm -f conftest.err conftest.$ac_ext |
---|
5729 | |
---|
5730 | done |
---|
5731 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5732 | rm -f conftest.err conftest.$ac_ext |
---|
5733 | if $ac_preproc_ok; then |
---|
5734 | break |
---|
5735 | fi |
---|
5736 | |
---|
5737 | done |
---|
5738 | ac_cv_prog_CPP=$CPP |
---|
5739 | |
---|
5740 | fi |
---|
5741 | CPP=$ac_cv_prog_CPP |
---|
5742 | else |
---|
5743 | ac_cv_prog_CPP=$CPP |
---|
5744 | fi |
---|
5745 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
5746 | echo "${ECHO_T}$CPP" >&6 |
---|
5747 | ac_preproc_ok=false |
---|
5748 | for ac_c_preproc_warn_flag in '' yes |
---|
5749 | do |
---|
5750 | # Use a header file that comes with gcc, so configuring glibc |
---|
5751 | # with a fresh cross-compiler works. |
---|
5752 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5753 | # <limits.h> exists even on freestanding compilers. |
---|
5754 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5755 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5756 | cat >conftest.$ac_ext <<_ACEOF |
---|
5757 | /* confdefs.h. */ |
---|
5758 | _ACEOF |
---|
5759 | cat confdefs.h >>conftest.$ac_ext |
---|
5760 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5761 | /* end confdefs.h. */ |
---|
5762 | #ifdef __STDC__ |
---|
5763 | # include <limits.h> |
---|
5764 | #else |
---|
5765 | # include <assert.h> |
---|
5766 | #endif |
---|
5767 | Syntax error |
---|
5768 | _ACEOF |
---|
5769 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5770 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5771 | ac_status=$? |
---|
5772 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5773 | rm -f conftest.er1 |
---|
5774 | cat conftest.err >&5 |
---|
5775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5776 | (exit $ac_status); } >/dev/null; then |
---|
5777 | if test -s conftest.err; then |
---|
5778 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5779 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5780 | else |
---|
5781 | ac_cpp_err= |
---|
5782 | fi |
---|
5783 | else |
---|
5784 | ac_cpp_err=yes |
---|
5785 | fi |
---|
5786 | if test -z "$ac_cpp_err"; then |
---|
5787 | : |
---|
5788 | else |
---|
5789 | echo "$as_me: failed program was:" >&5 |
---|
5790 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5791 | |
---|
5792 | # Broken: fails on valid input. |
---|
5793 | continue |
---|
5794 | fi |
---|
5795 | rm -f conftest.err conftest.$ac_ext |
---|
5796 | |
---|
5797 | # OK, works on sane cases. Now check whether non-existent headers |
---|
5798 | # can be detected and how. |
---|
5799 | cat >conftest.$ac_ext <<_ACEOF |
---|
5800 | /* confdefs.h. */ |
---|
5801 | _ACEOF |
---|
5802 | cat confdefs.h >>conftest.$ac_ext |
---|
5803 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5804 | /* end confdefs.h. */ |
---|
5805 | #include <ac_nonexistent.h> |
---|
5806 | _ACEOF |
---|
5807 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5808 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5809 | ac_status=$? |
---|
5810 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5811 | rm -f conftest.er1 |
---|
5812 | cat conftest.err >&5 |
---|
5813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5814 | (exit $ac_status); } >/dev/null; then |
---|
5815 | if test -s conftest.err; then |
---|
5816 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5817 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5818 | else |
---|
5819 | ac_cpp_err= |
---|
5820 | fi |
---|
5821 | else |
---|
5822 | ac_cpp_err=yes |
---|
5823 | fi |
---|
5824 | if test -z "$ac_cpp_err"; then |
---|
5825 | # Broken: success on invalid input. |
---|
5826 | continue |
---|
5827 | else |
---|
5828 | echo "$as_me: failed program was:" >&5 |
---|
5829 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5830 | |
---|
5831 | # Passes both tests. |
---|
5832 | ac_preproc_ok=: |
---|
5833 | break |
---|
5834 | fi |
---|
5835 | rm -f conftest.err conftest.$ac_ext |
---|
5836 | |
---|
5837 | done |
---|
5838 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5839 | rm -f conftest.err conftest.$ac_ext |
---|
5840 | if $ac_preproc_ok; then |
---|
5841 | : |
---|
5842 | else |
---|
5843 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
5844 | See \`config.log' for more details." >&5 |
---|
5845 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
5846 | See \`config.log' for more details." >&2;} |
---|
5847 | { (exit 1); exit 1; }; } |
---|
5848 | fi |
---|
5849 | |
---|
5850 | ac_ext=c |
---|
5851 | ac_cpp='$CPP $CPPFLAGS' |
---|
5852 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5853 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5854 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5855 | |
---|
5856 | |
---|
5857 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
5858 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
5859 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
5860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5861 | else |
---|
5862 | cat >conftest.$ac_ext <<_ACEOF |
---|
5863 | /* confdefs.h. */ |
---|
5864 | _ACEOF |
---|
5865 | cat confdefs.h >>conftest.$ac_ext |
---|
5866 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5867 | /* end confdefs.h. */ |
---|
5868 | #include <stdlib.h> |
---|
5869 | #include <stdarg.h> |
---|
5870 | #include <string.h> |
---|
5871 | #include <float.h> |
---|
5872 | |
---|
5873 | int |
---|
5874 | main () |
---|
5875 | { |
---|
5876 | |
---|
5877 | ; |
---|
5878 | return 0; |
---|
5879 | } |
---|
5880 | _ACEOF |
---|
5881 | rm -f conftest.$ac_objext |
---|
5882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5883 | (eval $ac_compile) 2>conftest.er1 |
---|
5884 | ac_status=$? |
---|
5885 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5886 | rm -f conftest.er1 |
---|
5887 | cat conftest.err >&5 |
---|
5888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5889 | (exit $ac_status); } && |
---|
5890 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5891 | || test ! -s conftest.err' |
---|
5892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5893 | (eval $ac_try) 2>&5 |
---|
5894 | ac_status=$? |
---|
5895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5896 | (exit $ac_status); }; } && |
---|
5897 | { ac_try='test -s conftest.$ac_objext' |
---|
5898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5899 | (eval $ac_try) 2>&5 |
---|
5900 | ac_status=$? |
---|
5901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5902 | (exit $ac_status); }; }; then |
---|
5903 | ac_cv_header_stdc=yes |
---|
5904 | else |
---|
5905 | echo "$as_me: failed program was:" >&5 |
---|
5906 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5907 | |
---|
5908 | ac_cv_header_stdc=no |
---|
5909 | fi |
---|
5910 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5911 | |
---|
5912 | if test $ac_cv_header_stdc = yes; then |
---|
5913 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
5914 | cat >conftest.$ac_ext <<_ACEOF |
---|
5915 | /* confdefs.h. */ |
---|
5916 | _ACEOF |
---|
5917 | cat confdefs.h >>conftest.$ac_ext |
---|
5918 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5919 | /* end confdefs.h. */ |
---|
5920 | #include <string.h> |
---|
5921 | |
---|
5922 | _ACEOF |
---|
5923 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5924 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
5925 | : |
---|
5926 | else |
---|
5927 | ac_cv_header_stdc=no |
---|
5928 | fi |
---|
5929 | rm -f conftest* |
---|
5930 | |
---|
5931 | fi |
---|
5932 | |
---|
5933 | if test $ac_cv_header_stdc = yes; then |
---|
5934 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
5935 | cat >conftest.$ac_ext <<_ACEOF |
---|
5936 | /* confdefs.h. */ |
---|
5937 | _ACEOF |
---|
5938 | cat confdefs.h >>conftest.$ac_ext |
---|
5939 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5940 | /* end confdefs.h. */ |
---|
5941 | #include <stdlib.h> |
---|
5942 | |
---|
5943 | _ACEOF |
---|
5944 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5945 | $EGREP "free" >/dev/null 2>&1; then |
---|
5946 | : |
---|
5947 | else |
---|
5948 | ac_cv_header_stdc=no |
---|
5949 | fi |
---|
5950 | rm -f conftest* |
---|
5951 | |
---|
5952 | fi |
---|
5953 | |
---|
5954 | if test $ac_cv_header_stdc = yes; then |
---|
5955 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
5956 | if test "$cross_compiling" = yes; then |
---|
5957 | : |
---|
5958 | else |
---|
5959 | cat >conftest.$ac_ext <<_ACEOF |
---|
5960 | /* confdefs.h. */ |
---|
5961 | _ACEOF |
---|
5962 | cat confdefs.h >>conftest.$ac_ext |
---|
5963 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5964 | /* end confdefs.h. */ |
---|
5965 | #include <ctype.h> |
---|
5966 | #if ((' ' & 0x0FF) == 0x020) |
---|
5967 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
5968 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
5969 | #else |
---|
5970 | # define ISLOWER(c) \ |
---|
5971 | (('a' <= (c) && (c) <= 'i') \ |
---|
5972 | || ('j' <= (c) && (c) <= 'r') \ |
---|
5973 | || ('s' <= (c) && (c) <= 'z')) |
---|
5974 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
5975 | #endif |
---|
5976 | |
---|
5977 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
5978 | int |
---|
5979 | main () |
---|
5980 | { |
---|
5981 | int i; |
---|
5982 | for (i = 0; i < 256; i++) |
---|
5983 | if (XOR (islower (i), ISLOWER (i)) |
---|
5984 | || toupper (i) != TOUPPER (i)) |
---|
5985 | exit(2); |
---|
5986 | exit (0); |
---|
5987 | } |
---|
5988 | _ACEOF |
---|
5989 | rm -f conftest$ac_exeext |
---|
5990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5991 | (eval $ac_link) 2>&5 |
---|
5992 | ac_status=$? |
---|
5993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5994 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5996 | (eval $ac_try) 2>&5 |
---|
5997 | ac_status=$? |
---|
5998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5999 | (exit $ac_status); }; }; then |
---|
6000 | : |
---|
6001 | else |
---|
6002 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
6003 | echo "$as_me: failed program was:" >&5 |
---|
6004 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6005 | |
---|
6006 | ( exit $ac_status ) |
---|
6007 | ac_cv_header_stdc=no |
---|
6008 | fi |
---|
6009 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6010 | fi |
---|
6011 | fi |
---|
6012 | fi |
---|
6013 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
6014 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
6015 | if test $ac_cv_header_stdc = yes; then |
---|
6016 | |
---|
6017 | cat >>confdefs.h <<\_ACEOF |
---|
6018 | #define STDC_HEADERS 1 |
---|
6019 | _ACEOF |
---|
6020 | |
---|
6021 | fi |
---|
6022 | |
---|
6023 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
6024 | |
---|
6025 | |
---|
6026 | |
---|
6027 | |
---|
6028 | |
---|
6029 | |
---|
6030 | |
---|
6031 | |
---|
6032 | |
---|
6033 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
6034 | inttypes.h stdint.h unistd.h |
---|
6035 | do |
---|
6036 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6037 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6038 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6039 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6041 | else |
---|
6042 | cat >conftest.$ac_ext <<_ACEOF |
---|
6043 | /* confdefs.h. */ |
---|
6044 | _ACEOF |
---|
6045 | cat confdefs.h >>conftest.$ac_ext |
---|
6046 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6047 | /* end confdefs.h. */ |
---|
6048 | $ac_includes_default |
---|
6049 | |
---|
6050 | #include <$ac_header> |
---|
6051 | _ACEOF |
---|
6052 | rm -f conftest.$ac_objext |
---|
6053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6054 | (eval $ac_compile) 2>conftest.er1 |
---|
6055 | ac_status=$? |
---|
6056 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6057 | rm -f conftest.er1 |
---|
6058 | cat conftest.err >&5 |
---|
6059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6060 | (exit $ac_status); } && |
---|
6061 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6062 | || test ! -s conftest.err' |
---|
6063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6064 | (eval $ac_try) 2>&5 |
---|
6065 | ac_status=$? |
---|
6066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6067 | (exit $ac_status); }; } && |
---|
6068 | { ac_try='test -s conftest.$ac_objext' |
---|
6069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6070 | (eval $ac_try) 2>&5 |
---|
6071 | ac_status=$? |
---|
6072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6073 | (exit $ac_status); }; }; then |
---|
6074 | eval "$as_ac_Header=yes" |
---|
6075 | else |
---|
6076 | echo "$as_me: failed program was:" >&5 |
---|
6077 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6078 | |
---|
6079 | eval "$as_ac_Header=no" |
---|
6080 | fi |
---|
6081 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6082 | fi |
---|
6083 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6084 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6085 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6086 | cat >>confdefs.h <<_ACEOF |
---|
6087 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6088 | _ACEOF |
---|
6089 | |
---|
6090 | fi |
---|
6091 | |
---|
6092 | done |
---|
6093 | |
---|
6094 | |
---|
6095 | |
---|
6096 | for ac_header in dlfcn.h |
---|
6097 | do |
---|
6098 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6099 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6100 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6101 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6102 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6104 | fi |
---|
6105 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6106 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6107 | else |
---|
6108 | # Is the header compilable? |
---|
6109 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6110 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6111 | cat >conftest.$ac_ext <<_ACEOF |
---|
6112 | /* confdefs.h. */ |
---|
6113 | _ACEOF |
---|
6114 | cat confdefs.h >>conftest.$ac_ext |
---|
6115 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6116 | /* end confdefs.h. */ |
---|
6117 | $ac_includes_default |
---|
6118 | #include <$ac_header> |
---|
6119 | _ACEOF |
---|
6120 | rm -f conftest.$ac_objext |
---|
6121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6122 | (eval $ac_compile) 2>conftest.er1 |
---|
6123 | ac_status=$? |
---|
6124 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6125 | rm -f conftest.er1 |
---|
6126 | cat conftest.err >&5 |
---|
6127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6128 | (exit $ac_status); } && |
---|
6129 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6130 | || test ! -s conftest.err' |
---|
6131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6132 | (eval $ac_try) 2>&5 |
---|
6133 | ac_status=$? |
---|
6134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6135 | (exit $ac_status); }; } && |
---|
6136 | { ac_try='test -s conftest.$ac_objext' |
---|
6137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6138 | (eval $ac_try) 2>&5 |
---|
6139 | ac_status=$? |
---|
6140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6141 | (exit $ac_status); }; }; then |
---|
6142 | ac_header_compiler=yes |
---|
6143 | else |
---|
6144 | echo "$as_me: failed program was:" >&5 |
---|
6145 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6146 | |
---|
6147 | ac_header_compiler=no |
---|
6148 | fi |
---|
6149 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6150 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6151 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6152 | |
---|
6153 | # Is the header present? |
---|
6154 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6155 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6156 | cat >conftest.$ac_ext <<_ACEOF |
---|
6157 | /* confdefs.h. */ |
---|
6158 | _ACEOF |
---|
6159 | cat confdefs.h >>conftest.$ac_ext |
---|
6160 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6161 | /* end confdefs.h. */ |
---|
6162 | #include <$ac_header> |
---|
6163 | _ACEOF |
---|
6164 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6165 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6166 | ac_status=$? |
---|
6167 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6168 | rm -f conftest.er1 |
---|
6169 | cat conftest.err >&5 |
---|
6170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6171 | (exit $ac_status); } >/dev/null; then |
---|
6172 | if test -s conftest.err; then |
---|
6173 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6174 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6175 | else |
---|
6176 | ac_cpp_err= |
---|
6177 | fi |
---|
6178 | else |
---|
6179 | ac_cpp_err=yes |
---|
6180 | fi |
---|
6181 | if test -z "$ac_cpp_err"; then |
---|
6182 | ac_header_preproc=yes |
---|
6183 | else |
---|
6184 | echo "$as_me: failed program was:" >&5 |
---|
6185 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6186 | |
---|
6187 | ac_header_preproc=no |
---|
6188 | fi |
---|
6189 | rm -f conftest.err conftest.$ac_ext |
---|
6190 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6191 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6192 | |
---|
6193 | # So? What about this header? |
---|
6194 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6195 | yes:no: ) |
---|
6196 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6197 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6198 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6199 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6200 | ac_header_preproc=yes |
---|
6201 | ;; |
---|
6202 | no:yes:* ) |
---|
6203 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6204 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6205 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6206 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6207 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6208 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6209 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6210 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6211 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6212 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6213 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6214 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6215 | ( |
---|
6216 | cat <<\_ASBOX |
---|
6217 | ## --------------------------------------------------------------- ## |
---|
6218 | ## Report this to http://projects.coin-or.org/BuildTools/newticket ## |
---|
6219 | ## --------------------------------------------------------------- ## |
---|
6220 | _ASBOX |
---|
6221 | ) | |
---|
6222 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6223 | ;; |
---|
6224 | esac |
---|
6225 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6226 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6227 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6229 | else |
---|
6230 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6231 | fi |
---|
6232 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6233 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6234 | |
---|
6235 | fi |
---|
6236 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6237 | cat >>confdefs.h <<_ACEOF |
---|
6238 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6239 | _ACEOF |
---|
6240 | |
---|
6241 | fi |
---|
6242 | |
---|
6243 | done |
---|
6244 | |
---|
6245 | ac_ext=cc |
---|
6246 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
6247 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6248 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6249 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
6250 | if test -n "$ac_tool_prefix"; then |
---|
6251 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
6252 | do |
---|
6253 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
6254 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
6255 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6256 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6257 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
6258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6259 | else |
---|
6260 | if test -n "$CXX"; then |
---|
6261 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
6262 | else |
---|
6263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6264 | for as_dir in $PATH |
---|
6265 | do |
---|
6266 | IFS=$as_save_IFS |
---|
6267 | test -z "$as_dir" && as_dir=. |
---|
6268 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6269 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6270 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
6271 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6272 | break 2 |
---|
6273 | fi |
---|
6274 | done |
---|
6275 | done |
---|
6276 | |
---|
6277 | fi |
---|
6278 | fi |
---|
6279 | CXX=$ac_cv_prog_CXX |
---|
6280 | if test -n "$CXX"; then |
---|
6281 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
6282 | echo "${ECHO_T}$CXX" >&6 |
---|
6283 | else |
---|
6284 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6285 | echo "${ECHO_T}no" >&6 |
---|
6286 | fi |
---|
6287 | |
---|
6288 | test -n "$CXX" && break |
---|
6289 | done |
---|
6290 | fi |
---|
6291 | if test -z "$CXX"; then |
---|
6292 | ac_ct_CXX=$CXX |
---|
6293 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
6294 | do |
---|
6295 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
6296 | set dummy $ac_prog; ac_word=$2 |
---|
6297 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6298 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6299 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
6300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6301 | else |
---|
6302 | if test -n "$ac_ct_CXX"; then |
---|
6303 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
6304 | else |
---|
6305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6306 | for as_dir in $PATH |
---|
6307 | do |
---|
6308 | IFS=$as_save_IFS |
---|
6309 | test -z "$as_dir" && as_dir=. |
---|
6310 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6311 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6312 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
6313 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6314 | break 2 |
---|
6315 | fi |
---|
6316 | done |
---|
6317 | done |
---|
6318 | |
---|
6319 | fi |
---|
6320 | fi |
---|
6321 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
6322 | if test -n "$ac_ct_CXX"; then |
---|
6323 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
6324 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
6325 | else |
---|
6326 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6327 | echo "${ECHO_T}no" >&6 |
---|
6328 | fi |
---|
6329 | |
---|
6330 | test -n "$ac_ct_CXX" && break |
---|
6331 | done |
---|
6332 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
6333 | |
---|
6334 | CXX=$ac_ct_CXX |
---|
6335 | fi |
---|
6336 | |
---|
6337 | |
---|
6338 | # Provide some information about the compiler. |
---|
6339 | echo "$as_me:$LINENO:" \ |
---|
6340 | "checking for C++ compiler version" >&5 |
---|
6341 | ac_compiler=`set X $ac_compile; echo $2` |
---|
6342 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
6343 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
6344 | ac_status=$? |
---|
6345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6346 | (exit $ac_status); } |
---|
6347 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
6348 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
6349 | ac_status=$? |
---|
6350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6351 | (exit $ac_status); } |
---|
6352 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
6353 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
6354 | ac_status=$? |
---|
6355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6356 | (exit $ac_status); } |
---|
6357 | |
---|
6358 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
6359 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
6360 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
6361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6362 | else |
---|
6363 | cat >conftest.$ac_ext <<_ACEOF |
---|
6364 | /* confdefs.h. */ |
---|
6365 | _ACEOF |
---|
6366 | cat confdefs.h >>conftest.$ac_ext |
---|
6367 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6368 | /* end confdefs.h. */ |
---|
6369 | |
---|
6370 | int |
---|
6371 | main () |
---|
6372 | { |
---|
6373 | #ifndef __GNUC__ |
---|
6374 | choke me |
---|
6375 | #endif |
---|
6376 | |
---|
6377 | ; |
---|
6378 | return 0; |
---|
6379 | } |
---|
6380 | _ACEOF |
---|
6381 | rm -f conftest.$ac_objext |
---|
6382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6383 | (eval $ac_compile) 2>conftest.er1 |
---|
6384 | ac_status=$? |
---|
6385 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6386 | rm -f conftest.er1 |
---|
6387 | cat conftest.err >&5 |
---|
6388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6389 | (exit $ac_status); } && |
---|
6390 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
6391 | || test ! -s conftest.err' |
---|
6392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6393 | (eval $ac_try) 2>&5 |
---|
6394 | ac_status=$? |
---|
6395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6396 | (exit $ac_status); }; } && |
---|
6397 | { ac_try='test -s conftest.$ac_objext' |
---|
6398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6399 | (eval $ac_try) 2>&5 |
---|
6400 | ac_status=$? |
---|
6401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6402 | (exit $ac_status); }; }; then |
---|
6403 | ac_compiler_gnu=yes |
---|
6404 | else |
---|
6405 | echo "$as_me: failed program was:" >&5 |
---|
6406 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6407 | |
---|
6408 | ac_compiler_gnu=no |
---|
6409 | fi |
---|
6410 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6411 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
6412 | |
---|
6413 | fi |
---|
6414 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
6415 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
6416 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
6417 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
6418 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
6419 | CXXFLAGS="-g" |
---|
6420 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
6421 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
6422 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
6423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6424 | else |
---|
6425 | cat >conftest.$ac_ext <<_ACEOF |
---|
6426 | /* confdefs.h. */ |
---|
6427 | _ACEOF |
---|
6428 | cat confdefs.h >>conftest.$ac_ext |
---|
6429 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6430 | /* end confdefs.h. */ |
---|
6431 | |
---|
6432 | int |
---|
6433 | main () |
---|
6434 | { |
---|
6435 | |
---|
6436 | ; |
---|
6437 | return 0; |
---|
6438 | } |
---|
6439 | _ACEOF |
---|
6440 | rm -f conftest.$ac_objext |
---|
6441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6442 | (eval $ac_compile) 2>conftest.er1 |
---|
6443 | ac_status=$? |
---|
6444 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6445 | rm -f conftest.er1 |
---|
6446 | cat conftest.err >&5 |
---|
6447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6448 | (exit $ac_status); } && |
---|
6449 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
6450 | || test ! -s conftest.err' |
---|
6451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6452 | (eval $ac_try) 2>&5 |
---|
6453 | ac_status=$? |
---|
6454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6455 | (exit $ac_status); }; } && |
---|
6456 | { ac_try='test -s conftest.$ac_objext' |
---|
6457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6458 | (eval $ac_try) 2>&5 |
---|
6459 | ac_status=$? |
---|
6460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6461 | (exit $ac_status); }; }; then |
---|
6462 | ac_cv_prog_cxx_g=yes |
---|
6463 | else |
---|
6464 | echo "$as_me: failed program was:" >&5 |
---|
6465 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6466 | |
---|
6467 | ac_cv_prog_cxx_g=no |
---|
6468 | fi |
---|
6469 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6470 | fi |
---|
6471 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
6472 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
6473 | if test "$ac_test_CXXFLAGS" = set; then |
---|
6474 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
6475 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
6476 | if test "$GXX" = yes; then |
---|
6477 | CXXFLAGS="-g -O2" |
---|
6478 | else |
---|
6479 | CXXFLAGS="-g" |
---|
6480 | fi |
---|
6481 | else |
---|
6482 | if test "$GXX" = yes; then |
---|
6483 | CXXFLAGS="-O2" |
---|
6484 | else |
---|
6485 | CXXFLAGS= |
---|
6486 | fi |
---|
6487 | fi |
---|
6488 | for ac_declaration in \ |
---|
6489 | '' \ |
---|
6490 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
6491 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
6492 | 'extern "C" void exit (int) throw ();' \ |
---|
6493 | 'extern "C" void exit (int);' \ |
---|
6494 | 'void exit (int);' |
---|
6495 | do |
---|
6496 | cat >conftest.$ac_ext <<_ACEOF |
---|
6497 | /* confdefs.h. */ |
---|
6498 | _ACEOF |
---|
6499 | cat confdefs.h >>conftest.$ac_ext |
---|
6500 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6501 | /* end confdefs.h. */ |
---|
6502 | $ac_declaration |
---|
6503 | #include <stdlib.h> |
---|
6504 | int |
---|
6505 | main () |
---|
6506 | { |
---|
6507 | exit (42); |
---|
6508 | ; |
---|
6509 | return 0; |
---|
6510 | } |
---|
6511 | _ACEOF |
---|
6512 | rm -f conftest.$ac_objext |
---|
6513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6514 | (eval $ac_compile) 2>conftest.er1 |
---|
6515 | ac_status=$? |
---|
6516 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6517 | rm -f conftest.er1 |
---|
6518 | cat conftest.err >&5 |
---|
6519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6520 | (exit $ac_status); } && |
---|
6521 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
6522 | || test ! -s conftest.err' |
---|
6523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6524 | (eval $ac_try) 2>&5 |
---|
6525 | ac_status=$? |
---|
6526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6527 | (exit $ac_status); }; } && |
---|
6528 | { ac_try='test -s conftest.$ac_objext' |
---|
6529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6530 | (eval $ac_try) 2>&5 |
---|
6531 | ac_status=$? |
---|
6532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6533 | (exit $ac_status); }; }; then |
---|
6534 | : |
---|
6535 | else |
---|
6536 | echo "$as_me: failed program was:" >&5 |
---|
6537 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6538 | |
---|
6539 | continue |
---|
6540 | fi |
---|
6541 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6542 | cat >conftest.$ac_ext <<_ACEOF |
---|
6543 | /* confdefs.h. */ |
---|
6544 | _ACEOF |
---|
6545 | cat confdefs.h >>conftest.$ac_ext |
---|
6546 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6547 | /* end confdefs.h. */ |
---|
6548 | $ac_declaration |
---|
6549 | int |
---|
6550 | main () |
---|
6551 | { |
---|
6552 | exit (42); |
---|
6553 | ; |
---|
6554 | return 0; |
---|
6555 | } |
---|
6556 | _ACEOF |
---|
6557 | rm -f conftest.$ac_objext |
---|
6558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6559 | (eval $ac_compile) 2>conftest.er1 |
---|
6560 | ac_status=$? |
---|
6561 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6562 | rm -f conftest.er1 |
---|
6563 | cat conftest.err >&5 |
---|
6564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6565 | (exit $ac_status); } && |
---|
6566 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
6567 | || test ! -s conftest.err' |
---|
6568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6569 | (eval $ac_try) 2>&5 |
---|
6570 | ac_status=$? |
---|
6571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6572 | (exit $ac_status); }; } && |
---|
6573 | { ac_try='test -s conftest.$ac_objext' |
---|
6574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6575 | (eval $ac_try) 2>&5 |
---|
6576 | ac_status=$? |
---|
6577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6578 | (exit $ac_status); }; }; then |
---|
6579 | break |
---|
6580 | else |
---|
6581 | echo "$as_me: failed program was:" >&5 |
---|
6582 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6583 | |
---|
6584 | fi |
---|
6585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6586 | done |
---|
6587 | rm -f conftest* |
---|
6588 | if test -n "$ac_declaration"; then |
---|
6589 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
6590 | echo $ac_declaration >>confdefs.h |
---|
6591 | echo '#endif' >>confdefs.h |
---|
6592 | fi |
---|
6593 | |
---|
6594 | ac_ext=cc |
---|
6595 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
6596 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6597 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6598 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
6599 | |
---|
6600 | depcc="$CXX" am_compiler_list= |
---|
6601 | |
---|
6602 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
6603 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
6604 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
6605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6606 | else |
---|
6607 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
6608 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
6609 | # making bogus files that we don't know about and never remove. For |
---|
6610 | # instance it was reported that on HP-UX the gcc test will end up |
---|
6611 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
6612 | # in D'. |
---|
6613 | mkdir conftest.dir |
---|
6614 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
6615 | # using a relative directory. |
---|
6616 | cp "$am_depcomp" conftest.dir |
---|
6617 | cd conftest.dir |
---|
6618 | # We will build objects and dependencies in a subdirectory because |
---|
6619 | # it helps to detect inapplicable dependency modes. For instance |
---|
6620 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
6621 | # side effect of compilation, but ICC will put the dependencies in |
---|
6622 | # the current directory while Tru64 will put them in the object |
---|
6623 | # directory. |
---|
6624 | mkdir sub |
---|
6625 | |
---|
6626 | am_cv_CXX_dependencies_compiler_type=none |
---|
6627 | if test "$am_compiler_list" = ""; then |
---|
6628 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
6629 | fi |
---|
6630 | for depmode in $am_compiler_list; do |
---|
6631 | # Setup a source with many dependencies, because some compilers |
---|
6632 | # like to wrap large dependency lists on column 80 (with \), and |
---|
6633 | # we should not choose a depcomp mode which is confused by this. |
---|
6634 | # |
---|
6635 | # We need to recreate these files for each test, as the compiler may |
---|
6636 | # overwrite some of them when testing with obscure command lines. |
---|
6637 | # This happens at least with the AIX C compiler. |
---|
6638 | : > sub/conftest.c |
---|
6639 | for i in 1 2 3 4 5 6; do |
---|
6640 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
6641 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
6642 | # Solaris 8's {/usr,}/bin/sh. |
---|
6643 | touch sub/conftst$i.h |
---|
6644 | done |
---|
6645 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
6646 | |
---|
6647 | case $depmode in |
---|
6648 | nosideeffect) |
---|
6649 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
6650 | # only be used when explicitly requested |
---|
6651 | if test "x$enable_dependency_tracking" = xyes; then |
---|
6652 | continue |
---|
6653 | else |
---|
6654 | break |
---|
6655 | fi |
---|
6656 | ;; |
---|
6657 | none) break ;; |
---|
6658 | esac |
---|
6659 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
6660 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
6661 | # handle `-M -o', and we need to detect this. |
---|
6662 | if depmode=$depmode \ |
---|
6663 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
6664 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
6665 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
6666 | >/dev/null 2>conftest.err && |
---|
6667 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
6668 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
6669 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
6670 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
6671 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
6672 | # that says an option was ignored or not supported. |
---|
6673 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
6674 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
6675 | # The diagnosis changed in icc 8.0: |
---|
6676 | # icc: Command line remark: option '-MP' not supported |
---|
6677 | if (grep 'ignoring option' conftest.err || |
---|
6678 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
6679 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
6680 | break |
---|
6681 | fi |
---|
6682 | fi |
---|
6683 | done |
---|
6684 | |
---|
6685 | cd .. |
---|
6686 | rm -rf conftest.dir |
---|
6687 | else |
---|
6688 | am_cv_CXX_dependencies_compiler_type=none |
---|
6689 | fi |
---|
6690 | |
---|
6691 | fi |
---|
6692 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
6693 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
6694 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
6695 | |
---|
6696 | |
---|
6697 | |
---|
6698 | if |
---|
6699 | test "x$enable_dependency_tracking" != xno \ |
---|
6700 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
6701 | am__fastdepCXX_TRUE= |
---|
6702 | am__fastdepCXX_FALSE='#' |
---|
6703 | else |
---|
6704 | am__fastdepCXX_TRUE='#' |
---|
6705 | am__fastdepCXX_FALSE= |
---|
6706 | fi |
---|
6707 | |
---|
6708 | |
---|
6709 | |
---|
6710 | |
---|
6711 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
---|
6712 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
---|
6713 | (test "X$CXX" != "Xg++"))) ; then |
---|
6714 | ac_ext=cc |
---|
6715 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
6716 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6717 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6718 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
6719 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
---|
6720 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
---|
6721 | if test -z "$CXXCPP"; then |
---|
6722 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
---|
6723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6724 | else |
---|
6725 | # Double quotes because CXXCPP needs to be expanded |
---|
6726 | for CXXCPP in "$CXX -E" "/lib/cpp" |
---|
6727 | do |
---|
6728 | ac_preproc_ok=false |
---|
6729 | for ac_cxx_preproc_warn_flag in '' yes |
---|
6730 | do |
---|
6731 | # Use a header file that comes with gcc, so configuring glibc |
---|
6732 | # with a fresh cross-compiler works. |
---|
6733 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6734 | # <limits.h> exists even on freestanding compilers. |
---|
6735 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
6736 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
6737 | cat >conftest.$ac_ext <<_ACEOF |
---|
6738 | /* confdefs.h. */ |
---|
6739 | _ACEOF |
---|
6740 | cat confdefs.h >>conftest.$ac_ext |
---|
6741 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6742 | /* end confdefs.h. */ |
---|
6743 | #ifdef __STDC__ |
---|
6744 | # include <limits.h> |
---|
6745 | #else |
---|
6746 | # include <assert.h> |
---|
6747 | #endif |
---|
6748 | Syntax error |
---|
6749 | _ACEOF |
---|
6750 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6751 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6752 | ac_status=$? |
---|
6753 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6754 | rm -f conftest.er1 |
---|
6755 | cat conftest.err >&5 |
---|
6756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6757 | (exit $ac_status); } >/dev/null; then |
---|
6758 | if test -s conftest.err; then |
---|
6759 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
6760 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
6761 | else |
---|
6762 | ac_cpp_err= |
---|
6763 | fi |
---|
6764 | else |
---|
6765 | ac_cpp_err=yes |
---|
6766 | fi |
---|
6767 | if test -z "$ac_cpp_err"; then |
---|
6768 | : |
---|
6769 | else |
---|
6770 | echo "$as_me: failed program was:" >&5 |
---|
6771 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6772 | |
---|
6773 | # Broken: fails on valid input. |
---|
6774 | continue |
---|
6775 | fi |
---|
6776 | rm -f conftest.err conftest.$ac_ext |
---|
6777 | |
---|
6778 | # OK, works on sane cases. Now check whether non-existent headers |
---|
6779 | # can be detected and how. |
---|
6780 | cat >conftest.$ac_ext <<_ACEOF |
---|
6781 | /* confdefs.h. */ |
---|
6782 | _ACEOF |
---|
6783 | cat confdefs.h >>conftest.$ac_ext |
---|
6784 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6785 | /* end confdefs.h. */ |
---|
6786 | #include <ac_nonexistent.h> |
---|
6787 | _ACEOF |
---|
6788 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6789 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6790 | ac_status=$? |
---|
6791 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6792 | rm -f conftest.er1 |
---|
6793 | cat conftest.err >&5 |
---|
6794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6795 | (exit $ac_status); } >/dev/null; then |
---|
6796 | if test -s conftest.err; then |
---|
6797 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
6798 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
6799 | else |
---|
6800 | ac_cpp_err= |
---|
6801 | fi |
---|
6802 | else |
---|
6803 | ac_cpp_err=yes |
---|
6804 | fi |
---|
6805 | if test -z "$ac_cpp_err"; then |
---|
6806 | # Broken: success on invalid input. |
---|
6807 | continue |
---|
6808 | else |
---|
6809 | echo "$as_me: failed program was:" >&5 |
---|
6810 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6811 | |
---|
6812 | # Passes both tests. |
---|
6813 | ac_preproc_ok=: |
---|
6814 | break |
---|
6815 | fi |
---|
6816 | rm -f conftest.err conftest.$ac_ext |
---|
6817 | |
---|
6818 | done |
---|
6819 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
6820 | rm -f conftest.err conftest.$ac_ext |
---|
6821 | if $ac_preproc_ok; then |
---|
6822 | break |
---|
6823 | fi |
---|
6824 | |
---|
6825 | done |
---|
6826 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
6827 | |
---|
6828 | fi |
---|
6829 | CXXCPP=$ac_cv_prog_CXXCPP |
---|
6830 | else |
---|
6831 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
6832 | fi |
---|
6833 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
---|
6834 | echo "${ECHO_T}$CXXCPP" >&6 |
---|
6835 | ac_preproc_ok=false |
---|
6836 | for ac_cxx_preproc_warn_flag in '' yes |
---|
6837 | do |
---|
6838 | # Use a header file that comes with gcc, so configuring glibc |
---|
6839 | # with a fresh cross-compiler works. |
---|
6840 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6841 | # <limits.h> exists even on freestanding compilers. |
---|
6842 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
6843 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
6844 | cat >conftest.$ac_ext <<_ACEOF |
---|
6845 | /* confdefs.h. */ |
---|
6846 | _ACEOF |
---|
6847 | cat confdefs.h >>conftest.$ac_ext |
---|
6848 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6849 | /* end confdefs.h. */ |
---|
6850 | #ifdef __STDC__ |
---|
6851 | # include <limits.h> |
---|
6852 | #else |
---|
6853 | # include <assert.h> |
---|
6854 | #endif |
---|
6855 | Syntax error |
---|
6856 | _ACEOF |
---|
6857 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6858 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6859 | ac_status=$? |
---|
6860 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6861 | rm -f conftest.er1 |
---|
6862 | cat conftest.err >&5 |
---|
6863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6864 | (exit $ac_status); } >/dev/null; then |
---|
6865 | if test -s conftest.err; then |
---|
6866 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
6867 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
6868 | else |
---|
6869 | ac_cpp_err= |
---|
6870 | fi |
---|
6871 | else |
---|
6872 | ac_cpp_err=yes |
---|
6873 | fi |
---|
6874 | if test -z "$ac_cpp_err"; then |
---|
6875 | : |
---|
6876 | else |
---|
6877 | echo "$as_me: failed program was:" >&5 |
---|
6878 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6879 | |
---|
6880 | # Broken: fails on valid input. |
---|
6881 | continue |
---|
6882 | fi |
---|
6883 | rm -f conftest.err conftest.$ac_ext |
---|
6884 | |
---|
6885 | # OK, works on sane cases. Now check whether non-existent headers |
---|
6886 | # can be detected and how. |
---|
6887 | cat >conftest.$ac_ext <<_ACEOF |
---|
6888 | /* confdefs.h. */ |
---|
6889 | _ACEOF |
---|
6890 | cat confdefs.h >>conftest.$ac_ext |
---|
6891 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6892 | /* end confdefs.h. */ |
---|
6893 | #include <ac_nonexistent.h> |
---|
6894 | _ACEOF |
---|
6895 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6896 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6897 | ac_status=$? |
---|
6898 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6899 | rm -f conftest.er1 |
---|
6900 | cat conftest.err >&5 |
---|
6901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6902 | (exit $ac_status); } >/dev/null; then |
---|
6903 | if test -s conftest.err; then |
---|
6904 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
6905 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
6906 | else |
---|
6907 | ac_cpp_err= |
---|
6908 | fi |
---|
6909 | else |
---|
6910 | ac_cpp_err=yes |
---|
6911 | fi |
---|
6912 | if test -z "$ac_cpp_err"; then |
---|
6913 | # Broken: success on invalid input. |
---|
6914 | continue |
---|
6915 | else |
---|
6916 | echo "$as_me: failed program was:" >&5 |
---|
6917 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6918 | |
---|
6919 | # Passes both tests. |
---|
6920 | ac_preproc_ok=: |
---|
6921 | break |
---|
6922 | fi |
---|
6923 | rm -f conftest.err conftest.$ac_ext |
---|
6924 | |
---|
6925 | done |
---|
6926 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
6927 | rm -f conftest.err conftest.$ac_ext |
---|
6928 | if $ac_preproc_ok; then |
---|
6929 | : |
---|
6930 | else |
---|
6931 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
6932 | See \`config.log' for more details." >&5 |
---|
6933 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
6934 | See \`config.log' for more details." >&2;} |
---|
6935 | { (exit 1); exit 1; }; } |
---|
6936 | fi |
---|
6937 | |
---|
6938 | ac_ext=cc |
---|
6939 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
6940 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6941 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6942 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
6943 | |
---|
6944 | fi |
---|
6945 | |
---|
6946 | |
---|
6947 | |
---|
6948 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
---|
6949 | |
---|
6950 | # find the maximum length of command line arguments |
---|
6951 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
---|
6952 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
---|
6953 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
---|
6954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6955 | else |
---|
6956 | i=0 |
---|
6957 | teststring="ABCD" |
---|
6958 | |
---|
6959 | case $build_os in |
---|
6960 | msdosdjgpp*) |
---|
6961 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
---|
6962 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
---|
6963 | # during glob expansion). Even if it were fixed, the result of this |
---|
6964 | # check would be larger than it should be. |
---|
6965 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
---|
6966 | ;; |
---|
6967 | |
---|
6968 | gnu*) |
---|
6969 | # Under GNU Hurd, this test is not required because there is |
---|
6970 | # no limit to the length of command line arguments. |
---|
6971 | # Libtool will interpret -1 as no limit whatsoever |
---|
6972 | lt_cv_sys_max_cmd_len=-1; |
---|
6973 | ;; |
---|
6974 | |
---|
6975 | cygwin* | mingw*) |
---|
6976 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
---|
6977 | # about 5 minutes as the teststring grows exponentially. |
---|
6978 | # Worse, since 9x/ME are not pre-emptively multitasking, |
---|
6979 | # you end up with a "frozen" computer, even though with patience |
---|
6980 | # the test eventually succeeds (with a max line length of 256k). |
---|
6981 | # Instead, let's just punt: use the minimum linelength reported by |
---|
6982 | # all of the supported platforms: 8192 (on NT/2K/XP). |
---|
6983 | lt_cv_sys_max_cmd_len=8192; |
---|
6984 | ;; |
---|
6985 | |
---|
6986 | amigaos*) |
---|
6987 | # On AmigaOS with pdksh, this test takes hours, literally. |
---|
6988 | # So we just punt and use a minimum line length of 8192. |
---|
6989 | lt_cv_sys_max_cmd_len=8192; |
---|
6990 | ;; |
---|
6991 | |
---|
6992 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
---|
6993 | # This has been around since 386BSD, at least. Likely further. |
---|
6994 | if test -x /sbin/sysctl; then |
---|
6995 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
---|
6996 | elif test -x /usr/sbin/sysctl; then |
---|
6997 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
---|
6998 | else |
---|
6999 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
---|
7000 | fi |
---|
7001 | # And add a safety zone |
---|
7002 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
---|
7003 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
---|
7004 | ;; |
---|
7005 | |
---|
7006 | interix*) |
---|
7007 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
---|
7008 | lt_cv_sys_max_cmd_len=196608 |
---|
7009 | ;; |
---|
7010 | |
---|
7011 | osf*) |
---|
7012 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
---|
7013 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
---|
7014 | # nice to cause kernel panics so lets avoid the loop below. |
---|
7015 | # First set a reasonable default. |
---|
7016 | lt_cv_sys_max_cmd_len=16384 |
---|
7017 | # |
---|
7018 | if test -x /sbin/sysconfig; then |
---|
7019 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
---|
7020 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
---|
7021 | esac |
---|
7022 | fi |
---|
7023 | ;; |
---|
7024 | sco3.2v5*) |
---|
7025 | lt_cv_sys_max_cmd_len=102400 |
---|
7026 | ;; |
---|
7027 | sysv5* | sco5v6* | sysv4.2uw2*) |
---|
7028 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
---|
7029 | if test -n "$kargmax"; then |
---|
7030 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
---|
7031 | else |
---|
7032 | lt_cv_sys_max_cmd_len=32768 |
---|
7033 | fi |
---|
7034 | ;; |
---|
7035 | *) |
---|
7036 | # If test is not a shell built-in, we'll probably end up computing a |
---|
7037 | # maximum length that is only half of the actual maximum length, but |
---|
7038 | # we can't tell. |
---|
7039 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
---|
7040 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
---|
7041 | = "XX$teststring") >/dev/null 2>&1 && |
---|
7042 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
---|
7043 | lt_cv_sys_max_cmd_len=$new_result && |
---|
7044 | test $i != 17 # 1/2 MB should be enough |
---|
7045 | do |
---|
7046 | i=`expr $i + 1` |
---|
7047 | teststring=$teststring$teststring |
---|
7048 | done |
---|
7049 | teststring= |
---|
7050 | # Add a significant safety factor because C++ compilers can tack on massive |
---|
7051 | # amounts of additional arguments before passing them to the linker. |
---|
7052 | # It appears as though 1/2 is a usable value. |
---|
7053 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
---|
7054 | ;; |
---|
7055 | esac |
---|
7056 | |
---|
7057 | fi |
---|
7058 | |
---|
7059 | if test -n $lt_cv_sys_max_cmd_len ; then |
---|
7060 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
---|
7061 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
---|
7062 | else |
---|
7063 | echo "$as_me:$LINENO: result: none" >&5 |
---|
7064 | echo "${ECHO_T}none" >&6 |
---|
7065 | fi |
---|
7066 | |
---|
7067 | |
---|
7068 | |
---|
7069 | |
---|
7070 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
---|
7071 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
---|
7072 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
---|
7073 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
---|
7074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7075 | else |
---|
7076 | |
---|
7077 | # These are sane defaults that work on at least a few old systems. |
---|
7078 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
---|
7079 | |
---|
7080 | # Character class describing NM global symbol codes. |
---|
7081 | symcode='[BCDEGRST]' |
---|
7082 | |
---|
7083 | # Regexp to match symbols that can be accessed directly from C. |
---|
7084 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
---|
7085 | |
---|
7086 | # Transform an extracted symbol line into a proper C declaration |
---|
7087 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
---|
7088 | |
---|
7089 | # Transform an extracted symbol line into symbol name and symbol address |
---|
7090 | 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'" |
---|
7091 | |
---|
7092 | # Define system-specific variables. |
---|
7093 | case $host_os in |
---|
7094 | aix*) |
---|
7095 | symcode='[BCDT]' |
---|
7096 | ;; |
---|
7097 | cygwin* | mingw* | pw32*) |
---|
7098 | symcode='[ABCDGISTW]' |
---|
7099 | ;; |
---|
7100 | hpux*) # Its linker distinguishes data from code symbols |
---|
7101 | if test "$host_cpu" = ia64; then |
---|
7102 | symcode='[ABCDEGRST]' |
---|
7103 | fi |
---|
7104 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
7105 | 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'" |
---|
7106 | ;; |
---|
7107 | linux*) |
---|
7108 | if test "$host_cpu" = ia64; then |
---|
7109 | symcode='[ABCDGIRSTW]' |
---|
7110 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
7111 | 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'" |
---|
7112 | fi |
---|
7113 | ;; |
---|
7114 | irix* | nonstopux*) |
---|
7115 | symcode='[BCDEGRST]' |
---|
7116 | ;; |
---|
7117 | osf*) |
---|
7118 | symcode='[BCDEGQRST]' |
---|
7119 | ;; |
---|
7120 | solaris*) |
---|
7121 | symcode='[BDRT]' |
---|
7122 | ;; |
---|
7123 | sco3.2v5*) |
---|
7124 | symcode='[DT]' |
---|
7125 | ;; |
---|
7126 | sysv4.2uw2*) |
---|
7127 | symcode='[DT]' |
---|
7128 | ;; |
---|
7129 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
---|
7130 | symcode='[ABDT]' |
---|
7131 | ;; |
---|
7132 | sysv4) |
---|
7133 | symcode='[DFNSTU]' |
---|
7134 | ;; |
---|
7135 | esac |
---|
7136 | |
---|
7137 | # Handle CRLF in mingw tool chain |
---|
7138 | opt_cr= |
---|
7139 | case $build_os in |
---|
7140 | mingw*) |
---|
7141 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
---|
7142 | ;; |
---|
7143 | esac |
---|
7144 | |
---|
7145 | # If we're using GNU nm, then use its standard symbol codes. |
---|
7146 | case `$NM -V 2>&1` in |
---|
7147 | *GNU* | *'with BFD'*) |
---|
7148 | symcode='[ABCDGIRSTW]' ;; |
---|
7149 | esac |
---|
7150 | |
---|
7151 | # Try without a prefix undercore, then with it. |
---|
7152 | for ac_symprfx in "" "_"; do |
---|
7153 | |
---|
7154 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
---|
7155 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
---|
7156 | |
---|
7157 | # Write the raw and C identifiers. |
---|
7158 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
---|
7159 | |
---|
7160 | # Check to see that the pipe works correctly. |
---|
7161 | pipe_works=no |
---|
7162 | |
---|
7163 | rm -f conftest* |
---|
7164 | cat > conftest.$ac_ext <<EOF |
---|
7165 | #ifdef __cplusplus |
---|
7166 | extern "C" { |
---|
7167 | #endif |
---|
7168 | char nm_test_var; |
---|
7169 | void nm_test_func(){} |
---|
7170 | #ifdef __cplusplus |
---|
7171 | } |
---|
7172 | #endif |
---|
7173 | int main(){nm_test_var='a';nm_test_func();return(0);} |
---|
7174 | EOF |
---|
7175 | |
---|
7176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7177 | (eval $ac_compile) 2>&5 |
---|
7178 | ac_status=$? |
---|
7179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7180 | (exit $ac_status); }; then |
---|
7181 | # Now try to grab the symbols. |
---|
7182 | nlist=conftest.nm |
---|
7183 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
---|
7184 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
---|
7185 | ac_status=$? |
---|
7186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7187 | (exit $ac_status); } && test -s "$nlist"; then |
---|
7188 | # Try sorting and uniquifying the output. |
---|
7189 | if sort "$nlist" | uniq > "$nlist"T; then |
---|
7190 | mv -f "$nlist"T "$nlist" |
---|
7191 | else |
---|
7192 | rm -f "$nlist"T |
---|
7193 | fi |
---|
7194 | |
---|
7195 | # Make sure that we snagged all the symbols we need. |
---|
7196 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
---|
7197 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
---|
7198 | cat <<EOF > conftest.$ac_ext |
---|
7199 | #ifdef __cplusplus |
---|
7200 | extern "C" { |
---|
7201 | #endif |
---|
7202 | |
---|
7203 | EOF |
---|
7204 | # Now generate the symbol file. |
---|
7205 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
---|
7206 | |
---|
7207 | cat <<EOF >> conftest.$ac_ext |
---|
7208 | #if defined (__STDC__) && __STDC__ |
---|
7209 | # define lt_ptr_t void * |
---|
7210 | #else |
---|
7211 | # define lt_ptr_t char * |
---|
7212 | # define const |
---|
7213 | #endif |
---|
7214 | |
---|
7215 | /* The mapping between symbol names and symbols. */ |
---|
7216 | const struct { |
---|
7217 | const char *name; |
---|
7218 | lt_ptr_t address; |
---|
7219 | } |
---|
7220 | lt_preloaded_symbols[] = |
---|
7221 | { |
---|
7222 | EOF |
---|
7223 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
---|
7224 | cat <<\EOF >> conftest.$ac_ext |
---|
7225 | {0, (lt_ptr_t) 0} |
---|
7226 | }; |
---|
7227 | |
---|
7228 | #ifdef __cplusplus |
---|
7229 | } |
---|
7230 | #endif |
---|
7231 | EOF |
---|
7232 | # Now try linking the two files. |
---|
7233 | mv conftest.$ac_objext conftstm.$ac_objext |
---|
7234 | lt_save_LIBS="$LIBS" |
---|
7235 | lt_save_CFLAGS="$CFLAGS" |
---|
7236 | LIBS="conftstm.$ac_objext" |
---|
7237 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
---|
7238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7239 | (eval $ac_link) 2>&5 |
---|
7240 | ac_status=$? |
---|
7241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7242 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
---|
7243 | pipe_works=yes |
---|
7244 | fi |
---|
7245 | LIBS="$lt_save_LIBS" |
---|
7246 | CFLAGS="$lt_save_CFLAGS" |
---|
7247 | else |
---|
7248 | echo "cannot find nm_test_func in $nlist" >&5 |
---|
7249 | fi |
---|
7250 | else |
---|
7251 | echo "cannot find nm_test_var in $nlist" >&5 |
---|
7252 | fi |
---|
7253 | else |
---|
7254 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
---|
7255 | fi |
---|
7256 | else |
---|
7257 | echo "$progname: failed program was:" >&5 |
---|
7258 | cat conftest.$ac_ext >&5 |
---|
7259 | fi |
---|
7260 | rm -f conftest* conftst* |
---|
7261 | |
---|
7262 | # Do not use the global_symbol_pipe unless it works. |
---|
7263 | if test "$pipe_works" = yes; then |
---|
7264 | break |
---|
7265 | else |
---|
7266 | lt_cv_sys_global_symbol_pipe= |
---|
7267 | fi |
---|
7268 | done |
---|
7269 | |
---|
7270 | fi |
---|
7271 | |
---|
7272 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
---|
7273 | lt_cv_sys_global_symbol_to_cdecl= |
---|
7274 | fi |
---|
7275 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
---|
7276 | echo "$as_me:$LINENO: result: failed" >&5 |
---|
7277 | echo "${ECHO_T}failed" >&6 |
---|
7278 | else |
---|
7279 | echo "$as_me:$LINENO: result: ok" >&5 |
---|
7280 | echo "${ECHO_T}ok" >&6 |
---|
7281 | fi |
---|
7282 | |
---|
7283 | echo "$as_me:$LINENO: checking for objdir" >&5 |
---|
7284 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
---|
7285 | if test "${lt_cv_objdir+set}" = set; then |
---|
7286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7287 | else |
---|
7288 | rm -f .libs 2>/dev/null |
---|
7289 | mkdir .libs 2>/dev/null |
---|
7290 | if test -d .libs; then |
---|
7291 | lt_cv_objdir=.libs |
---|
7292 | else |
---|
7293 | # MS-DOS does not allow filenames that begin with a dot. |
---|
7294 | lt_cv_objdir=_libs |
---|
7295 | fi |
---|
7296 | rmdir .libs 2>/dev/null |
---|
7297 | fi |
---|
7298 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
---|
7299 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
---|
7300 | objdir=$lt_cv_objdir |
---|
7301 | |
---|
7302 | |
---|
7303 | |
---|
7304 | |
---|
7305 | |
---|
7306 | case $host_os in |
---|
7307 | aix3*) |
---|
7308 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
7309 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
7310 | # vanish in a puff of smoke. |
---|
7311 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
7312 | COLLECT_NAMES= |
---|
7313 | export COLLECT_NAMES |
---|
7314 | fi |
---|
7315 | ;; |
---|
7316 | esac |
---|
7317 | |
---|
7318 | # Sed substitution that helps us do robust quoting. It backslashifies |
---|
7319 | # metacharacters that are still active within double-quoted strings. |
---|
7320 | Xsed='sed -e 1s/^X//' |
---|
7321 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
---|
7322 | |
---|
7323 | # Same as above, but do not quote variable references. |
---|
7324 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
---|
7325 | |
---|
7326 | # Sed substitution to delay expansion of an escaped shell variable in a |
---|
7327 | # double_quote_subst'ed string. |
---|
7328 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
---|
7329 | |
---|
7330 | # Sed substitution to avoid accidental globbing in evaled expressions |
---|
7331 | no_glob_subst='s/\*/\\\*/g' |
---|
7332 | |
---|
7333 | # Constants: |
---|
7334 | rm="rm -f" |
---|
7335 | |
---|
7336 | # Global variables: |
---|
7337 | default_ofile=libtool |
---|
7338 | can_build_shared=yes |
---|
7339 | |
---|
7340 | # All known linkers require a `.a' archive for static linking (except MSVC, |
---|
7341 | # which needs '.lib'). |
---|
7342 | libext=a |
---|
7343 | ltmain="$ac_aux_dir/ltmain.sh" |
---|
7344 | ofile="$default_ofile" |
---|
7345 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
---|
7346 | |
---|
7347 | if test -n "$ac_tool_prefix"; then |
---|
7348 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
---|
7349 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
---|
7350 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7351 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7352 | if test "${ac_cv_prog_AR+set}" = set; then |
---|
7353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7354 | else |
---|
7355 | if test -n "$AR"; then |
---|
7356 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
7357 | else |
---|
7358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7359 | for as_dir in $PATH |
---|
7360 | do |
---|
7361 | IFS=$as_save_IFS |
---|
7362 | test -z "$as_dir" && as_dir=. |
---|
7363 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7364 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7365 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
---|
7366 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7367 | break 2 |
---|
7368 | fi |
---|
7369 | done |
---|
7370 | done |
---|
7371 | |
---|
7372 | fi |
---|
7373 | fi |
---|
7374 | AR=$ac_cv_prog_AR |
---|
7375 | if test -n "$AR"; then |
---|
7376 | echo "$as_me:$LINENO: result: $AR" >&5 |
---|
7377 | echo "${ECHO_T}$AR" >&6 |
---|
7378 | else |
---|
7379 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7380 | echo "${ECHO_T}no" >&6 |
---|
7381 | fi |
---|
7382 | |
---|
7383 | fi |
---|
7384 | if test -z "$ac_cv_prog_AR"; then |
---|
7385 | ac_ct_AR=$AR |
---|
7386 | # Extract the first word of "ar", so it can be a program name with args. |
---|
7387 | set dummy ar; ac_word=$2 |
---|
7388 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7389 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7390 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
---|
7391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7392 | else |
---|
7393 | if test -n "$ac_ct_AR"; then |
---|
7394 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
---|
7395 | else |
---|
7396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7397 | for as_dir in $PATH |
---|
7398 | do |
---|
7399 | IFS=$as_save_IFS |
---|
7400 | test -z "$as_dir" && as_dir=. |
---|
7401 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7402 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7403 | ac_cv_prog_ac_ct_AR="ar" |
---|
7404 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7405 | break 2 |
---|
7406 | fi |
---|
7407 | done |
---|
7408 | done |
---|
7409 | |
---|
7410 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
---|
7411 | fi |
---|
7412 | fi |
---|
7413 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
---|
7414 | if test -n "$ac_ct_AR"; then |
---|
7415 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
---|
7416 | echo "${ECHO_T}$ac_ct_AR" >&6 |
---|
7417 | else |
---|
7418 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7419 | echo "${ECHO_T}no" >&6 |
---|
7420 | fi |
---|
7421 | |
---|
7422 | AR=$ac_ct_AR |
---|
7423 | else |
---|
7424 | AR="$ac_cv_prog_AR" |
---|
7425 | fi |
---|
7426 | |
---|
7427 | if test -n "$ac_tool_prefix"; then |
---|
7428 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
7429 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
7430 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7431 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7432 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
7433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7434 | else |
---|
7435 | if test -n "$RANLIB"; then |
---|
7436 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
7437 | else |
---|
7438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7439 | for as_dir in $PATH |
---|
7440 | do |
---|
7441 | IFS=$as_save_IFS |
---|
7442 | test -z "$as_dir" && as_dir=. |
---|
7443 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7444 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7445 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
7446 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7447 | break 2 |
---|
7448 | fi |
---|
7449 | done |
---|
7450 | done |
---|
7451 | |
---|
7452 | fi |
---|
7453 | fi |
---|
7454 | RANLIB=$ac_cv_prog_RANLIB |
---|
7455 | if test -n "$RANLIB"; then |
---|
7456 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
7457 | echo "${ECHO_T}$RANLIB" >&6 |
---|
7458 | else |
---|
7459 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7460 | echo "${ECHO_T}no" >&6 |
---|
7461 | fi |
---|
7462 | |
---|
7463 | fi |
---|
7464 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
7465 | ac_ct_RANLIB=$RANLIB |
---|
7466 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
7467 | set dummy ranlib; ac_word=$2 |
---|
7468 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7469 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7470 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
7471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7472 | else |
---|
7473 | if test -n "$ac_ct_RANLIB"; then |
---|
7474 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
7475 | else |
---|
7476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7477 | for as_dir in $PATH |
---|
7478 | do |
---|
7479 | IFS=$as_save_IFS |
---|
7480 | test -z "$as_dir" && as_dir=. |
---|
7481 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7482 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7483 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
7484 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7485 | break 2 |
---|
7486 | fi |
---|
7487 | done |
---|
7488 | done |
---|
7489 | |
---|
7490 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
7491 | fi |
---|
7492 | fi |
---|
7493 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
7494 | if test -n "$ac_ct_RANLIB"; then |
---|
7495 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
7496 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
7497 | else |
---|
7498 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7499 | echo "${ECHO_T}no" >&6 |
---|
7500 | fi |
---|
7501 | |
---|
7502 | RANLIB=$ac_ct_RANLIB |
---|
7503 | else |
---|
7504 | RANLIB="$ac_cv_prog_RANLIB" |
---|
7505 | fi |
---|
7506 | |
---|
7507 | if test -n "$ac_tool_prefix"; then |
---|
7508 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
7509 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
7510 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7511 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7512 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
7513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7514 | else |
---|
7515 | if test -n "$STRIP"; then |
---|
7516 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
7517 | else |
---|
7518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7519 | for as_dir in $PATH |
---|
7520 | do |
---|
7521 | IFS=$as_save_IFS |
---|
7522 | test -z "$as_dir" && as_dir=. |
---|
7523 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7524 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7525 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
7526 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7527 | break 2 |
---|
7528 | fi |
---|
7529 | done |
---|
7530 | done |
---|
7531 | |
---|
7532 | fi |
---|
7533 | fi |
---|
7534 | STRIP=$ac_cv_prog_STRIP |
---|
7535 | if test -n "$STRIP"; then |
---|
7536 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
7537 | echo "${ECHO_T}$STRIP" >&6 |
---|
7538 | else |
---|
7539 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7540 | echo "${ECHO_T}no" >&6 |
---|
7541 | fi |
---|
7542 | |
---|
7543 | fi |
---|
7544 | if test -z "$ac_cv_prog_STRIP"; then |
---|
7545 | ac_ct_STRIP=$STRIP |
---|
7546 | # Extract the first word of "strip", so it can be a program name with args. |
---|
7547 | set dummy strip; ac_word=$2 |
---|
7548 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7549 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7550 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
7551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7552 | else |
---|
7553 | if test -n "$ac_ct_STRIP"; then |
---|
7554 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
7555 | else |
---|
7556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7557 | for as_dir in $PATH |
---|
7558 | do |
---|
7559 | IFS=$as_save_IFS |
---|
7560 | test -z "$as_dir" && as_dir=. |
---|
7561 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7562 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7563 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
7564 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7565 | break 2 |
---|
7566 | fi |
---|
7567 | done |
---|
7568 | done |
---|
7569 | |
---|
7570 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
7571 | fi |
---|
7572 | fi |
---|
7573 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
7574 | if test -n "$ac_ct_STRIP"; then |
---|
7575 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
7576 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
7577 | else |
---|
7578 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7579 | echo "${ECHO_T}no" >&6 |
---|
7580 | fi |
---|
7581 | |
---|
7582 | STRIP=$ac_ct_STRIP |
---|
7583 | else |
---|
7584 | STRIP="$ac_cv_prog_STRIP" |
---|
7585 | fi |
---|
7586 | |
---|
7587 | |
---|
7588 | old_CC="$CC" |
---|
7589 | old_CFLAGS="$CFLAGS" |
---|
7590 | |
---|
7591 | # Set sane defaults for various variables |
---|
7592 | test -z "$AR" && AR=ar |
---|
7593 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
---|
7594 | test -z "$AS" && AS=as |
---|
7595 | test -z "$CC" && CC=cc |
---|
7596 | test -z "$LTCC" && LTCC=$CC |
---|
7597 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
---|
7598 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
---|
7599 | test -z "$LD" && LD=ld |
---|
7600 | test -z "$LN_S" && LN_S="ln -s" |
---|
7601 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
---|
7602 | test -z "$NM" && NM=nm |
---|
7603 | test -z "$SED" && SED=sed |
---|
7604 | test -z "$OBJDUMP" && OBJDUMP=objdump |
---|
7605 | test -z "$RANLIB" && RANLIB=: |
---|
7606 | test -z "$STRIP" && STRIP=: |
---|
7607 | test -z "$ac_objext" && ac_objext=o |
---|
7608 | |
---|
7609 | # Determine commands to create old-style static archives. |
---|
7610 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
---|
7611 | old_postinstall_cmds='chmod 644 $oldlib' |
---|
7612 | old_postuninstall_cmds= |
---|
7613 | |
---|
7614 | if test -n "$RANLIB"; then |
---|
7615 | case $host_os in |
---|
7616 | openbsd*) |
---|
7617 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
---|
7618 | ;; |
---|
7619 | *) |
---|
7620 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
---|
7621 | ;; |
---|
7622 | esac |
---|
7623 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
---|
7624 | fi |
---|
7625 | |
---|
7626 | for cc_temp in $compiler""; do |
---|
7627 | case $cc_temp in |
---|
7628 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
7629 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
7630 | \-*) ;; |
---|
7631 | *) break;; |
---|
7632 | esac |
---|
7633 | done |
---|
7634 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
7635 | |
---|
7636 | |
---|
7637 | # Only perform the check for file, if the check method requires it |
---|
7638 | case $deplibs_check_method in |
---|
7639 | file_magic*) |
---|
7640 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
---|
7641 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
---|
7642 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
---|
7643 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
7644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7645 | else |
---|
7646 | case $MAGIC_CMD in |
---|
7647 | [\\/*] | ?:[\\/]*) |
---|
7648 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
7649 | ;; |
---|
7650 | *) |
---|
7651 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
7652 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
7653 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
7654 | for ac_dir in $ac_dummy; do |
---|
7655 | IFS="$lt_save_ifs" |
---|
7656 | test -z "$ac_dir" && ac_dir=. |
---|
7657 | if test -f $ac_dir/${ac_tool_prefix}file; then |
---|
7658 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
---|
7659 | if test -n "$file_magic_test_file"; then |
---|
7660 | case $deplibs_check_method in |
---|
7661 | "file_magic "*) |
---|
7662 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
7663 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7664 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
7665 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
7666 | : |
---|
7667 | else |
---|
7668 | cat <<EOF 1>&2 |
---|
7669 | |
---|
7670 | *** Warning: the command libtool uses to detect shared libraries, |
---|
7671 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
7672 | *** The result is that libtool may fail to recognize shared libraries |
---|
7673 | *** as such. This will affect the creation of libtool libraries that |
---|
7674 | *** depend on shared libraries, but programs linked with such libtool |
---|
7675 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
7676 | *** may want to report the problem to your system manager and/or to |
---|
7677 | *** bug-libtool@gnu.org |
---|
7678 | |
---|
7679 | EOF |
---|
7680 | fi ;; |
---|
7681 | esac |
---|
7682 | fi |
---|
7683 | break |
---|
7684 | fi |
---|
7685 | done |
---|
7686 | IFS="$lt_save_ifs" |
---|
7687 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
7688 | ;; |
---|
7689 | esac |
---|
7690 | fi |
---|
7691 | |
---|
7692 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7693 | if test -n "$MAGIC_CMD"; then |
---|
7694 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
---|
7695 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
---|
7696 | else |
---|
7697 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7698 | echo "${ECHO_T}no" >&6 |
---|
7699 | fi |
---|
7700 | |
---|
7701 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
---|
7702 | if test -n "$ac_tool_prefix"; then |
---|
7703 | echo "$as_me:$LINENO: checking for file" >&5 |
---|
7704 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
---|
7705 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
7706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7707 | else |
---|
7708 | case $MAGIC_CMD in |
---|
7709 | [\\/*] | ?:[\\/]*) |
---|
7710 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
7711 | ;; |
---|
7712 | *) |
---|
7713 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
7714 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
7715 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
7716 | for ac_dir in $ac_dummy; do |
---|
7717 | IFS="$lt_save_ifs" |
---|
7718 | test -z "$ac_dir" && ac_dir=. |
---|
7719 | if test -f $ac_dir/file; then |
---|
7720 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
---|
7721 | if test -n "$file_magic_test_file"; then |
---|
7722 | case $deplibs_check_method in |
---|
7723 | "file_magic "*) |
---|
7724 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
7725 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7726 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
7727 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
7728 | : |
---|
7729 | else |
---|
7730 | cat <<EOF 1>&2 |
---|
7731 | |
---|
7732 | *** Warning: the command libtool uses to detect shared libraries, |
---|
7733 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
7734 | *** The result is that libtool may fail to recognize shared libraries |
---|
7735 | *** as such. This will affect the creation of libtool libraries that |
---|
7736 | *** depend on shared libraries, but programs linked with such libtool |
---|
7737 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
7738 | *** may want to report the problem to your system manager and/or to |
---|
7739 | *** bug-libtool@gnu.org |
---|
7740 | |
---|
7741 | EOF |
---|
7742 | fi ;; |
---|
7743 | esac |
---|
7744 | fi |
---|
7745 | break |
---|
7746 | fi |
---|
7747 | done |
---|
7748 | IFS="$lt_save_ifs" |
---|
7749 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
7750 | ;; |
---|
7751 | esac |
---|
7752 | fi |
---|
7753 | |
---|
7754 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7755 | if test -n "$MAGIC_CMD"; then |
---|
7756 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
---|
7757 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
---|
7758 | else |
---|
7759 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7760 | echo "${ECHO_T}no" >&6 |
---|
7761 | fi |
---|
7762 | |
---|
7763 | else |
---|
7764 | MAGIC_CMD=: |
---|
7765 | fi |
---|
7766 | fi |
---|
7767 | |
---|
7768 | fi |
---|
7769 | ;; |
---|
7770 | esac |
---|
7771 | |
---|
7772 | enable_dlopen=no |
---|
7773 | enable_win32_dll=no |
---|
7774 | |
---|
7775 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
7776 | if test "${enable_libtool_lock+set}" = set; then |
---|
7777 | enableval="$enable_libtool_lock" |
---|
7778 | |
---|
7779 | fi; |
---|
7780 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
7781 | |
---|
7782 | |
---|
7783 | # Check whether --with-pic or --without-pic was given. |
---|
7784 | if test "${with_pic+set}" = set; then |
---|
7785 | withval="$with_pic" |
---|
7786 | pic_mode="$withval" |
---|
7787 | else |
---|
7788 | pic_mode=default |
---|
7789 | fi; |
---|
7790 | test -z "$pic_mode" && pic_mode=default |
---|
7791 | |
---|
7792 | # Use C for the default configuration in the libtool script |
---|
7793 | tagname= |
---|
7794 | lt_save_CC="$CC" |
---|
7795 | ac_ext=c |
---|
7796 | ac_cpp='$CPP $CPPFLAGS' |
---|
7797 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7798 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7799 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7800 | |
---|
7801 | |
---|
7802 | # Source file extension for C test sources. |
---|
7803 | ac_ext=c |
---|
7804 | |
---|
7805 | # Object file extension for compiled C test sources. |
---|
7806 | objext=o |
---|
7807 | objext=$objext |
---|
7808 | |
---|
7809 | # Code to be used in simple compile tests |
---|
7810 | lt_simple_compile_test_code="int some_variable = 0;\n" |
---|
7811 | |
---|
7812 | # Code to be used in simple link tests |
---|
7813 | lt_simple_link_test_code='int main(){return(0);}\n' |
---|
7814 | |
---|
7815 | |
---|
7816 | # If no C compiler was specified, use CC. |
---|
7817 | LTCC=${LTCC-"$CC"} |
---|
7818 | |
---|
7819 | # If no C compiler flags were specified, use CFLAGS. |
---|
7820 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
7821 | |
---|
7822 | # Allow CC to be a program name with arguments. |
---|
7823 | compiler=$CC |
---|
7824 | |
---|
7825 | |
---|
7826 | # save warnings/boilerplate of simple test code |
---|
7827 | ac_outfile=conftest.$ac_objext |
---|
7828 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
---|
7829 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
7830 | _lt_compiler_boilerplate=`cat conftest.err` |
---|
7831 | $rm conftest* |
---|
7832 | |
---|
7833 | ac_outfile=conftest.$ac_objext |
---|
7834 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
---|
7835 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
7836 | _lt_linker_boilerplate=`cat conftest.err` |
---|
7837 | $rm conftest* |
---|
7838 | |
---|
7839 | |
---|
7840 | ## CAVEAT EMPTOR: |
---|
7841 | ## There is no encapsulation within the following macros, do not change |
---|
7842 | ## the running order or otherwise move them around unless you know exactly |
---|
7843 | ## what you are doing... |
---|
7844 | |
---|
7845 | lt_prog_compiler_no_builtin_flag= |
---|
7846 | |
---|
7847 | if test "$GCC" = yes; then |
---|
7848 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
---|
7849 | |
---|
7850 | |
---|
7851 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
---|
7852 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
---|
7853 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
---|
7854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7855 | else |
---|
7856 | lt_cv_prog_compiler_rtti_exceptions=no |
---|
7857 | ac_outfile=conftest.$ac_objext |
---|
7858 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
7859 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
---|
7860 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
7861 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
7862 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
7863 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
7864 | # The option is referenced via a variable to avoid confusing sed. |
---|
7865 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
7866 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
7867 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
7868 | -e 's:$: $lt_compiler_flag:'` |
---|
7869 | (eval echo "\"\$as_me:7869: $lt_compile\"" >&5) |
---|
7870 | (eval "$lt_compile" 2>conftest.err) |
---|
7871 | ac_status=$? |
---|
7872 | cat conftest.err >&5 |
---|
7873 | echo "$as_me:7873: \$? = $ac_status" >&5 |
---|
7874 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
7875 | # The compiler can only warn and ignore the option if not recognized |
---|
7876 | # So say no if there are warnings other than the usual output. |
---|
7877 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
---|
7878 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
7879 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
7880 | lt_cv_prog_compiler_rtti_exceptions=yes |
---|
7881 | fi |
---|
7882 | fi |
---|
7883 | $rm conftest* |
---|
7884 | |
---|
7885 | fi |
---|
7886 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
---|
7887 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
---|
7888 | |
---|
7889 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
---|
7890 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
---|
7891 | else |
---|
7892 | : |
---|
7893 | fi |
---|
7894 | |
---|
7895 | fi |
---|
7896 | |
---|
7897 | lt_prog_compiler_wl= |
---|
7898 | lt_prog_compiler_pic= |
---|
7899 | lt_prog_compiler_static= |
---|
7900 | |
---|
7901 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
7902 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
---|
7903 | |
---|
7904 | if test "$GCC" = yes; then |
---|
7905 | lt_prog_compiler_wl='-Wl,' |
---|
7906 | lt_prog_compiler_static='-static' |
---|
7907 | |
---|
7908 | case $host_os in |
---|
7909 | aix*) |
---|
7910 | # All AIX code is PIC. |
---|
7911 | if test "$host_cpu" = ia64; then |
---|
7912 | # AIX 5 now supports IA64 processor |
---|
7913 | lt_prog_compiler_static='-Bstatic' |
---|
7914 | fi |
---|
7915 | ;; |
---|
7916 | |
---|
7917 | amigaos*) |
---|
7918 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
7919 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
7920 | # like `-m68040'. |
---|
7921 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
---|
7922 | ;; |
---|
7923 | |
---|
7924 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
7925 | # PIC is the default for these OSes. |
---|
7926 | ;; |
---|
7927 | |
---|
7928 | mingw* | pw32* | os2*) |
---|
7929 | # This hack is so that the source file can tell whether it is being |
---|
7930 | # built for inclusion in a dll (and should export symbols for example). |
---|
7931 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
7932 | ;; |
---|
7933 | |
---|
7934 | darwin* | rhapsody*) |
---|
7935 | # PIC is the default on this platform |
---|
7936 | # Common symbols not allowed in MH_DYLIB files |
---|
7937 | lt_prog_compiler_pic='-fno-common' |
---|
7938 | ;; |
---|
7939 | |
---|
7940 | interix3*) |
---|
7941 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
---|
7942 | # Instead, we relocate shared libraries at runtime. |
---|
7943 | ;; |
---|
7944 | |
---|
7945 | msdosdjgpp*) |
---|
7946 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
7947 | # on systems that don't support them. |
---|
7948 | lt_prog_compiler_can_build_shared=no |
---|
7949 | enable_shared=no |
---|
7950 | ;; |
---|
7951 | |
---|
7952 | sysv4*MP*) |
---|
7953 | if test -d /usr/nec; then |
---|
7954 | lt_prog_compiler_pic=-Kconform_pic |
---|
7955 | fi |
---|
7956 | ;; |
---|
7957 | |
---|
7958 | hpux*) |
---|
7959 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
7960 | # not for PA HP-UX. |
---|
7961 | case $host_cpu in |
---|
7962 | hppa*64*|ia64*) |
---|
7963 | # +Z the default |
---|
7964 | ;; |
---|
7965 | *) |
---|
7966 | lt_prog_compiler_pic='-fPIC' |
---|
7967 | ;; |
---|
7968 | esac |
---|
7969 | ;; |
---|
7970 | |
---|
7971 | *) |
---|
7972 | lt_prog_compiler_pic='-fPIC' |
---|
7973 | ;; |
---|
7974 | esac |
---|
7975 | else |
---|
7976 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
7977 | case $host_os in |
---|
7978 | aix*) |
---|
7979 | lt_prog_compiler_wl='-Wl,' |
---|
7980 | if test "$host_cpu" = ia64; then |
---|
7981 | # AIX 5 now supports IA64 processor |
---|
7982 | lt_prog_compiler_static='-Bstatic' |
---|
7983 | else |
---|
7984 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
---|
7985 | fi |
---|
7986 | ;; |
---|
7987 | darwin*) |
---|
7988 | # PIC is the default on this platform |
---|
7989 | # Common symbols not allowed in MH_DYLIB files |
---|
7990 | case $cc_basename in |
---|
7991 | xlc*) |
---|
7992 | lt_prog_compiler_pic='-qnocommon' |
---|
7993 | lt_prog_compiler_wl='-Wl,' |
---|
7994 | ;; |
---|
7995 | esac |
---|
7996 | ;; |
---|
7997 | |
---|
7998 | mingw* | pw32* | os2*) |
---|
7999 | # This hack is so that the source file can tell whether it is being |
---|
8000 | # built for inclusion in a dll (and should export symbols for example). |
---|
8001 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
8002 | ;; |
---|
8003 | |
---|
8004 | hpux9* | hpux10* | hpux11*) |
---|
8005 | lt_prog_compiler_wl='-Wl,' |
---|
8006 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
8007 | # not for PA HP-UX. |
---|
8008 | case $host_cpu in |
---|
8009 | hppa*64*|ia64*) |
---|
8010 | # +Z the default |
---|
8011 | ;; |
---|
8012 | *) |
---|
8013 | lt_prog_compiler_pic='+Z' |
---|
8014 | ;; |
---|
8015 | esac |
---|
8016 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
8017 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
---|
8018 | ;; |
---|
8019 | |
---|
8020 | irix5* | irix6* | nonstopux*) |
---|
8021 | lt_prog_compiler_wl='-Wl,' |
---|
8022 | # PIC (with -KPIC) is the default. |
---|
8023 | lt_prog_compiler_static='-non_shared' |
---|
8024 | ;; |
---|
8025 | |
---|
8026 | newsos6) |
---|
8027 | lt_prog_compiler_pic='-KPIC' |
---|
8028 | lt_prog_compiler_static='-Bstatic' |
---|
8029 | ;; |
---|
8030 | |
---|
8031 | linux*) |
---|
8032 | case $cc_basename in |
---|
8033 | icc* | ecc*) |
---|
8034 | lt_prog_compiler_wl='-Wl,' |
---|
8035 | lt_prog_compiler_pic='-KPIC' |
---|
8036 | lt_prog_compiler_static='-static' |
---|
8037 | ;; |
---|
8038 | pgcc* | pgf77* | pgf90* | pgf95*) |
---|
8039 | # Portland Group compilers (*not* the Pentium gcc compiler, |
---|
8040 | # which looks to be a dead project) |
---|
8041 | lt_prog_compiler_wl='-Wl,' |
---|
8042 | lt_prog_compiler_pic='-fpic' |
---|
8043 | lt_prog_compiler_static='-Bstatic' |
---|
8044 | ;; |
---|
8045 | ccc*) |
---|
8046 | lt_prog_compiler_wl='-Wl,' |
---|
8047 | # All Alpha code is PIC. |
---|
8048 | lt_prog_compiler_static='-non_shared' |
---|
8049 | ;; |
---|
8050 | esac |
---|
8051 | ;; |
---|
8052 | |
---|
8053 | osf3* | osf4* | osf5*) |
---|
8054 | lt_prog_compiler_wl='-Wl,' |
---|
8055 | # All OSF/1 code is PIC. |
---|
8056 | lt_prog_compiler_static='-non_shared' |
---|
8057 | ;; |
---|
8058 | |
---|
8059 | solaris*) |
---|
8060 | lt_prog_compiler_pic='-KPIC' |
---|
8061 | lt_prog_compiler_static='-Bstatic' |
---|
8062 | case $cc_basename in |
---|
8063 | f77* | f90* | f95*) |
---|
8064 | lt_prog_compiler_wl='-Qoption ld ';; |
---|
8065 | *) |
---|
8066 | lt_prog_compiler_wl='-Wl,';; |
---|
8067 | esac |
---|
8068 | ;; |
---|
8069 | |
---|
8070 | sunos4*) |
---|
8071 | lt_prog_compiler_wl='-Qoption ld ' |
---|
8072 | lt_prog_compiler_pic='-PIC' |
---|
8073 | lt_prog_compiler_static='-Bstatic' |
---|
8074 | ;; |
---|
8075 | |
---|
8076 | sysv4 | sysv4.2uw2* | sysv4.3*) |
---|
8077 | lt_prog_compiler_wl='-Wl,' |
---|
8078 | lt_prog_compiler_pic='-KPIC' |
---|
8079 | lt_prog_compiler_static='-Bstatic' |
---|
8080 | ;; |
---|
8081 | |
---|
8082 | sysv4*MP*) |
---|
8083 | if test -d /usr/nec ;then |
---|
8084 | lt_prog_compiler_pic='-Kconform_pic' |
---|
8085 | lt_prog_compiler_static='-Bstatic' |
---|
8086 | fi |
---|
8087 | ;; |
---|
8088 | |
---|
8089 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
---|
8090 | lt_prog_compiler_wl='-Wl,' |
---|
8091 | lt_prog_compiler_pic='-KPIC' |
---|
8092 | lt_prog_compiler_static='-Bstatic' |
---|
8093 | ;; |
---|
8094 | |
---|
8095 | unicos*) |
---|
8096 | lt_prog_compiler_wl='-Wl,' |
---|
8097 | lt_prog_compiler_can_build_shared=no |
---|
8098 | ;; |
---|
8099 | |
---|
8100 | uts4*) |
---|
8101 | lt_prog_compiler_pic='-pic' |
---|
8102 | lt_prog_compiler_static='-Bstatic' |
---|
8103 | ;; |
---|
8104 | |
---|
8105 | *) |
---|
8106 | lt_prog_compiler_can_build_shared=no |
---|
8107 | ;; |
---|
8108 | esac |
---|
8109 | fi |
---|
8110 | |
---|
8111 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
---|
8112 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
---|
8113 | |
---|
8114 | # |
---|
8115 | # Check to make sure the PIC flag actually works. |
---|
8116 | # |
---|
8117 | if test -n "$lt_prog_compiler_pic"; then |
---|
8118 | |
---|
8119 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
---|
8120 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
---|
8121 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
---|
8122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8123 | else |
---|
8124 | lt_prog_compiler_pic_works=no |
---|
8125 | ac_outfile=conftest.$ac_objext |
---|
8126 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
8127 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
---|
8128 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
8129 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
8130 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
8131 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
8132 | # The option is referenced via a variable to avoid confusing sed. |
---|
8133 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
8134 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
8135 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
8136 | -e 's:$: $lt_compiler_flag:'` |
---|
8137 | (eval echo "\"\$as_me:8137: $lt_compile\"" >&5) |
---|
8138 | (eval "$lt_compile" 2>conftest.err) |
---|
8139 | ac_status=$? |
---|
8140 | cat conftest.err >&5 |
---|
8141 | echo "$as_me:8141: \$? = $ac_status" >&5 |
---|
8142 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
8143 | # The compiler can only warn and ignore the option if not recognized |
---|
8144 | # So say no if there are warnings other than the usual output. |
---|
8145 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
---|
8146 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
8147 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
8148 | lt_prog_compiler_pic_works=yes |
---|
8149 | fi |
---|
8150 | fi |
---|
8151 | $rm conftest* |
---|
8152 | |
---|
8153 | fi |
---|
8154 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
---|
8155 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
---|
8156 | |
---|
8157 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
---|
8158 | case $lt_prog_compiler_pic in |
---|
8159 | "" | " "*) ;; |
---|
8160 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
---|
8161 | esac |
---|
8162 | else |
---|
8163 | lt_prog_compiler_pic= |
---|
8164 | lt_prog_compiler_can_build_shared=no |
---|
8165 | fi |
---|
8166 | |
---|
8167 | fi |
---|
8168 | case $host_os in |
---|
8169 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
8170 | *djgpp*) |
---|
8171 | lt_prog_compiler_pic= |
---|
8172 | ;; |
---|
8173 | *) |
---|
8174 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
---|
8175 | ;; |
---|
8176 | esac |
---|
8177 | |
---|
8178 | # |
---|
8179 | # Check to make sure the static flag actually works. |
---|
8180 | # |
---|
8181 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
---|
8182 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
---|
8183 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
---|
8184 | if test "${lt_prog_compiler_static_works+set}" = set; then |
---|
8185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8186 | else |
---|
8187 | lt_prog_compiler_static_works=no |
---|
8188 | save_LDFLAGS="$LDFLAGS" |
---|
8189 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
---|
8190 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
---|
8191 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
---|
8192 | # The linker can only warn and ignore the option if not recognized |
---|
8193 | # So say no if there are warnings |
---|
8194 | if test -s conftest.err; then |
---|
8195 | # Append any errors to the config.log. |
---|
8196 | cat conftest.err 1>&5 |
---|
8197 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
---|
8198 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
8199 | if diff conftest.exp conftest.er2 >/dev/null; then |
---|
8200 | lt_prog_compiler_static_works=yes |
---|
8201 | fi |
---|
8202 | else |
---|
8203 | lt_prog_compiler_static_works=yes |
---|
8204 | fi |
---|
8205 | fi |
---|
8206 | $rm conftest* |
---|
8207 | LDFLAGS="$save_LDFLAGS" |
---|
8208 | |
---|
8209 | fi |
---|
8210 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
---|
8211 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
---|
8212 | |
---|
8213 | if test x"$lt_prog_compiler_static_works" = xyes; then |
---|
8214 | : |
---|
8215 | else |
---|
8216 | lt_prog_compiler_static= |
---|
8217 | fi |
---|
8218 | |
---|
8219 | |
---|
8220 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
8221 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
---|
8222 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
---|
8223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8224 | else |
---|
8225 | lt_cv_prog_compiler_c_o=no |
---|
8226 | $rm -r conftest 2>/dev/null |
---|
8227 | mkdir conftest |
---|
8228 | cd conftest |
---|
8229 | mkdir out |
---|
8230 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
8231 | |
---|
8232 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
8233 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
8234 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
8235 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
8236 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
8237 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
8238 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
8239 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
8240 | -e 's:$: $lt_compiler_flag:'` |
---|
8241 | (eval echo "\"\$as_me:8241: $lt_compile\"" >&5) |
---|
8242 | (eval "$lt_compile" 2>out/conftest.err) |
---|
8243 | ac_status=$? |
---|
8244 | cat out/conftest.err >&5 |
---|
8245 | echo "$as_me:8245: \$? = $ac_status" >&5 |
---|
8246 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
8247 | then |
---|
8248 | # The compiler can only warn and ignore the option if not recognized |
---|
8249 | # So say no if there are warnings |
---|
8250 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
---|
8251 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
---|
8252 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
8253 | lt_cv_prog_compiler_c_o=yes |
---|
8254 | fi |
---|
8255 | fi |
---|
8256 | chmod u+w . 2>&5 |
---|
8257 | $rm conftest* |
---|
8258 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
8259 | # template instantiation |
---|
8260 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
8261 | $rm out/* && rmdir out |
---|
8262 | cd .. |
---|
8263 | rmdir conftest |
---|
8264 | $rm conftest* |
---|
8265 | |
---|
8266 | fi |
---|
8267 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
---|
8268 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
---|
8269 | |
---|
8270 | |
---|
8271 | hard_links="nottested" |
---|
8272 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
---|
8273 | # do not overwrite the value of need_locks provided by the user |
---|
8274 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
8275 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
---|
8276 | hard_links=yes |
---|
8277 | $rm conftest* |
---|
8278 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
8279 | touch conftest.a |
---|
8280 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
8281 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
8282 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
8283 | echo "${ECHO_T}$hard_links" >&6 |
---|
8284 | if test "$hard_links" = no; then |
---|
8285 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
8286 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
8287 | need_locks=warn |
---|
8288 | fi |
---|
8289 | else |
---|
8290 | need_locks=no |
---|
8291 | fi |
---|
8292 | |
---|
8293 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
8294 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
---|
8295 | |
---|
8296 | runpath_var= |
---|
8297 | allow_undefined_flag= |
---|
8298 | enable_shared_with_static_runtimes=no |
---|
8299 | archive_cmds= |
---|
8300 | archive_expsym_cmds= |
---|
8301 | old_archive_From_new_cmds= |
---|
8302 | old_archive_from_expsyms_cmds= |
---|
8303 | export_dynamic_flag_spec= |
---|
8304 | whole_archive_flag_spec= |
---|
8305 | thread_safe_flag_spec= |
---|
8306 | hardcode_libdir_flag_spec= |
---|
8307 | hardcode_libdir_flag_spec_ld= |
---|
8308 | hardcode_libdir_separator= |
---|
8309 | hardcode_direct=no |
---|
8310 | hardcode_minus_L=no |
---|
8311 | hardcode_shlibpath_var=unsupported |
---|
8312 | link_all_deplibs=unknown |
---|
8313 | hardcode_automatic=no |
---|
8314 | module_cmds= |
---|
8315 | module_expsym_cmds= |
---|
8316 | always_export_symbols=no |
---|
8317 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
8318 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
8319 | # included in the symbol list |
---|
8320 | include_expsyms= |
---|
8321 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
8322 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
8323 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
8324 | # as well as any symbol that contains `d'. |
---|
8325 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
---|
8326 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
8327 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
8328 | # the symbol is explicitly referenced. Since portable code cannot |
---|
8329 | # rely on this symbol name, it's probably fine to never include it in |
---|
8330 | # preloaded symbol tables. |
---|
8331 | extract_expsyms_cmds= |
---|
8332 | # Just being paranoid about ensuring that cc_basename is set. |
---|
8333 | for cc_temp in $compiler""; do |
---|
8334 | case $cc_temp in |
---|
8335 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
8336 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
8337 | \-*) ;; |
---|
8338 | *) break;; |
---|
8339 | esac |
---|
8340 | done |
---|
8341 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
8342 | |
---|
8343 | case $host_os in |
---|
8344 | cygwin* | mingw* | pw32*) |
---|
8345 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
8346 | # When not using gcc, we currently assume that we are using |
---|
8347 | # Microsoft Visual C++. |
---|
8348 | if test "$GCC" != yes; then |
---|
8349 | with_gnu_ld=no |
---|
8350 | fi |
---|
8351 | ;; |
---|
8352 | interix*) |
---|
8353 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
---|
8354 | with_gnu_ld=yes |
---|
8355 | ;; |
---|
8356 | openbsd*) |
---|
8357 | with_gnu_ld=no |
---|
8358 | ;; |
---|
8359 | esac |
---|
8360 | |
---|
8361 | ld_shlibs=yes |
---|
8362 | if test "$with_gnu_ld" = yes; then |
---|
8363 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
8364 | wlarc='${wl}' |
---|
8365 | |
---|
8366 | # Set some defaults for GNU ld with shared library support. These |
---|
8367 | # are reset later if shared libraries are not supported. Putting them |
---|
8368 | # here allows them to be overridden if necessary. |
---|
8369 | runpath_var=LD_RUN_PATH |
---|
8370 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
---|
8371 | export_dynamic_flag_spec='${wl}--export-dynamic' |
---|
8372 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
8373 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
---|
8374 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
8375 | else |
---|
8376 | whole_archive_flag_spec= |
---|
8377 | fi |
---|
8378 | supports_anon_versioning=no |
---|
8379 | case `$LD -v 2>/dev/null` in |
---|
8380 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
8381 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
8382 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
8383 | *\ 2.11.*) ;; # other 2.11 versions |
---|
8384 | *) supports_anon_versioning=yes ;; |
---|
8385 | esac |
---|
8386 | |
---|
8387 | # See if GNU ld supports shared libraries. |
---|
8388 | case $host_os in |
---|
8389 | aix3* | aix4* | aix5*) |
---|
8390 | # On AIX/PPC, the GNU linker is very broken |
---|
8391 | if test "$host_cpu" != ia64; then |
---|
8392 | ld_shlibs=no |
---|
8393 | cat <<EOF 1>&2 |
---|
8394 | |
---|
8395 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
8396 | *** to be unable to reliably create shared libraries on AIX. |
---|
8397 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
8398 | *** really care for shared libraries, you may want to modify your PATH |
---|
8399 | *** so that a non-GNU linker is found, and then restart. |
---|
8400 | |
---|
8401 | EOF |
---|
8402 | fi |
---|
8403 | ;; |
---|
8404 | |
---|
8405 | amigaos*) |
---|
8406 | 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)' |
---|
8407 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8408 | hardcode_minus_L=yes |
---|
8409 | |
---|
8410 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
8411 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
8412 | # to version 4, is to share data among multiple programs linked |
---|
8413 | # with the same dynamic library. Since this doesn't match the |
---|
8414 | # behavior of shared libraries on other platforms, we can't use |
---|
8415 | # them. |
---|
8416 | ld_shlibs=no |
---|
8417 | ;; |
---|
8418 | |
---|
8419 | beos*) |
---|
8420 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8421 | allow_undefined_flag=unsupported |
---|
8422 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
8423 | # support --undefined. This deserves some investigation. FIXME |
---|
8424 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8425 | else |
---|
8426 | ld_shlibs=no |
---|
8427 | fi |
---|
8428 | ;; |
---|
8429 | |
---|
8430 | cygwin* | mingw* | pw32*) |
---|
8431 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
---|
8432 | # as there is no search path for DLLs. |
---|
8433 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8434 | allow_undefined_flag=unsupported |
---|
8435 | always_export_symbols=no |
---|
8436 | enable_shared_with_static_runtimes=yes |
---|
8437 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
---|
8438 | |
---|
8439 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
8440 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
8441 | # If the export-symbols file already is a .def file (1st line |
---|
8442 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
8443 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
8444 | cp $export_symbols $output_objdir/$soname.def; |
---|
8445 | else |
---|
8446 | echo EXPORTS > $output_objdir/$soname.def; |
---|
8447 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
8448 | fi~ |
---|
8449 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
8450 | else |
---|
8451 | ld_shlibs=no |
---|
8452 | fi |
---|
8453 | ;; |
---|
8454 | |
---|
8455 | interix3*) |
---|
8456 | hardcode_direct=no |
---|
8457 | hardcode_shlibpath_var=no |
---|
8458 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
8459 | export_dynamic_flag_spec='${wl}-E' |
---|
8460 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
---|
8461 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
---|
8462 | # default) and relocated if they conflict, which is a slow very memory |
---|
8463 | # consuming and fragmenting process. To avoid this, we pick a random, |
---|
8464 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
---|
8465 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
---|
8466 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
---|
8467 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
---|
8468 | ;; |
---|
8469 | |
---|
8470 | linux*) |
---|
8471 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8472 | tmp_addflag= |
---|
8473 | case $cc_basename,$host_cpu in |
---|
8474 | pgcc*) # Portland Group C compiler |
---|
8475 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
---|
8476 | tmp_addflag=' $pic_flag' |
---|
8477 | ;; |
---|
8478 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
---|
8479 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
---|
8480 | tmp_addflag=' $pic_flag -Mnomain' ;; |
---|
8481 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
---|
8482 | tmp_addflag=' -i_dynamic' ;; |
---|
8483 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
---|
8484 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
---|
8485 | ifc* | ifort*) # Intel Fortran compiler |
---|
8486 | tmp_addflag=' -nofor_main' ;; |
---|
8487 | esac |
---|
8488 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8489 | |
---|
8490 | if test $supports_anon_versioning = yes; then |
---|
8491 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
---|
8492 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
8493 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
8494 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
8495 | fi |
---|
8496 | else |
---|
8497 | ld_shlibs=no |
---|
8498 | fi |
---|
8499 | ;; |
---|
8500 | |
---|
8501 | netbsd*) |
---|
8502 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
8503 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
8504 | wlarc= |
---|
8505 | else |
---|
8506 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8507 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
8508 | fi |
---|
8509 | ;; |
---|
8510 | |
---|
8511 | solaris*) |
---|
8512 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
---|
8513 | ld_shlibs=no |
---|
8514 | cat <<EOF 1>&2 |
---|
8515 | |
---|
8516 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
8517 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
8518 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
8519 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
8520 | *** your PATH or compiler configuration so that the native linker is |
---|
8521 | *** used, and then restart. |
---|
8522 | |
---|
8523 | EOF |
---|
8524 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8525 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8526 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
8527 | else |
---|
8528 | ld_shlibs=no |
---|
8529 | fi |
---|
8530 | ;; |
---|
8531 | |
---|
8532 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
---|
8533 | case `$LD -v 2>&1` in |
---|
8534 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
---|
8535 | ld_shlibs=no |
---|
8536 | cat <<_LT_EOF 1>&2 |
---|
8537 | |
---|
8538 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
---|
8539 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
---|
8540 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
8541 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
---|
8542 | *** your PATH or compiler configuration so that the native linker is |
---|
8543 | *** used, and then restart. |
---|
8544 | |
---|
8545 | _LT_EOF |
---|
8546 | ;; |
---|
8547 | *) |
---|
8548 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8549 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
---|
8550 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
---|
8551 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
---|
8552 | else |
---|
8553 | ld_shlibs=no |
---|
8554 | fi |
---|
8555 | ;; |
---|
8556 | esac |
---|
8557 | ;; |
---|
8558 | |
---|
8559 | sunos4*) |
---|
8560 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
8561 | wlarc= |
---|
8562 | hardcode_direct=yes |
---|
8563 | hardcode_shlibpath_var=no |
---|
8564 | ;; |
---|
8565 | |
---|
8566 | *) |
---|
8567 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8568 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8569 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
8570 | else |
---|
8571 | ld_shlibs=no |
---|
8572 | fi |
---|
8573 | ;; |
---|
8574 | esac |
---|
8575 | |
---|
8576 | if test "$ld_shlibs" = no; then |
---|
8577 | runpath_var= |
---|
8578 | hardcode_libdir_flag_spec= |
---|
8579 | export_dynamic_flag_spec= |
---|
8580 | whole_archive_flag_spec= |
---|
8581 | fi |
---|
8582 | else |
---|
8583 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
8584 | case $host_os in |
---|
8585 | aix3*) |
---|
8586 | allow_undefined_flag=unsupported |
---|
8587 | always_export_symbols=yes |
---|
8588 | 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' |
---|
8589 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
8590 | # are no directories specified by -L. |
---|
8591 | hardcode_minus_L=yes |
---|
8592 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
---|
8593 | # Neither direct hardcoding nor static linking is supported with a |
---|
8594 | # broken collect2. |
---|
8595 | hardcode_direct=unsupported |
---|
8596 | fi |
---|
8597 | ;; |
---|
8598 | |
---|
8599 | aix4* | aix5*) |
---|
8600 | if test "$host_cpu" = ia64; then |
---|
8601 | # On IA64, the linker does run time linking by default, so we don't |
---|
8602 | # have to do anything special. |
---|
8603 | aix_use_runtimelinking=no |
---|
8604 | exp_sym_flag='-Bexport' |
---|
8605 | no_entry_flag="" |
---|
8606 | else |
---|
8607 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
8608 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
8609 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
8610 | 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' |
---|
8611 | else |
---|
8612 | 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' |
---|
8613 | fi |
---|
8614 | aix_use_runtimelinking=no |
---|
8615 | |
---|
8616 | # Test if we are trying to use run time linking or normal |
---|
8617 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
8618 | # need to do runtime linking. |
---|
8619 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
8620 | for ld_flag in $LDFLAGS; do |
---|
8621 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
8622 | aix_use_runtimelinking=yes |
---|
8623 | break |
---|
8624 | fi |
---|
8625 | done |
---|
8626 | ;; |
---|
8627 | esac |
---|
8628 | |
---|
8629 | exp_sym_flag='-bexport' |
---|
8630 | no_entry_flag='-bnoentry' |
---|
8631 | fi |
---|
8632 | |
---|
8633 | # When large executables or shared objects are built, AIX ld can |
---|
8634 | # have problems creating the table of contents. If linking a library |
---|
8635 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
8636 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
8637 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
8638 | |
---|
8639 | archive_cmds='' |
---|
8640 | hardcode_direct=yes |
---|
8641 | hardcode_libdir_separator=':' |
---|
8642 | link_all_deplibs=yes |
---|
8643 | |
---|
8644 | if test "$GCC" = yes; then |
---|
8645 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
8646 | # We only want to do this on AIX 4.2 and lower, the check |
---|
8647 | # below for broken collect2 doesn't work under 4.3+ |
---|
8648 | collect2name=`${CC} -print-prog-name=collect2` |
---|
8649 | if test -f "$collect2name" && \ |
---|
8650 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
8651 | then |
---|
8652 | # We have reworked collect2 |
---|
8653 | hardcode_direct=yes |
---|
8654 | else |
---|
8655 | # We have old collect2 |
---|
8656 | hardcode_direct=unsupported |
---|
8657 | # It fails to find uninstalled libraries when the uninstalled |
---|
8658 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
8659 | # to unsupported forces relinking |
---|
8660 | hardcode_minus_L=yes |
---|
8661 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8662 | hardcode_libdir_separator= |
---|
8663 | fi |
---|
8664 | ;; |
---|
8665 | esac |
---|
8666 | shared_flag='-shared' |
---|
8667 | if test "$aix_use_runtimelinking" = yes; then |
---|
8668 | shared_flag="$shared_flag "'${wl}-G' |
---|
8669 | fi |
---|
8670 | else |
---|
8671 | # not using gcc |
---|
8672 | if test "$host_cpu" = ia64; then |
---|
8673 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
8674 | # chokes on -Wl,-G. The following line is correct: |
---|
8675 | shared_flag='-G' |
---|
8676 | else |
---|
8677 | if test "$aix_use_runtimelinking" = yes; then |
---|
8678 | shared_flag='${wl}-G' |
---|
8679 | else |
---|
8680 | shared_flag='${wl}-bM:SRE' |
---|
8681 | fi |
---|
8682 | fi |
---|
8683 | fi |
---|
8684 | |
---|
8685 | # It seems that -bexpall does not export symbols beginning with |
---|
8686 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
8687 | always_export_symbols=yes |
---|
8688 | if test "$aix_use_runtimelinking" = yes; then |
---|
8689 | # Warning - without using the other runtime loading flags (-brtl), |
---|
8690 | # -berok will link without error, but may produce a broken library. |
---|
8691 | allow_undefined_flag='-berok' |
---|
8692 | # Determine the default libpath from the value encoded in an empty executable. |
---|
8693 | cat >conftest.$ac_ext <<_ACEOF |
---|
8694 | /* confdefs.h. */ |
---|
8695 | _ACEOF |
---|
8696 | cat confdefs.h >>conftest.$ac_ext |
---|
8697 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8698 | /* end confdefs.h. */ |
---|
8699 | |
---|
8700 | int |
---|
8701 | main () |
---|
8702 | { |
---|
8703 | |
---|
8704 | ; |
---|
8705 | return 0; |
---|
8706 | } |
---|
8707 | _ACEOF |
---|
8708 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8709 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8710 | (eval $ac_link) 2>conftest.er1 |
---|
8711 | ac_status=$? |
---|
8712 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8713 | rm -f conftest.er1 |
---|
8714 | cat conftest.err >&5 |
---|
8715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8716 | (exit $ac_status); } && |
---|
8717 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8718 | || test ! -s conftest.err' |
---|
8719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8720 | (eval $ac_try) 2>&5 |
---|
8721 | ac_status=$? |
---|
8722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8723 | (exit $ac_status); }; } && |
---|
8724 | { ac_try='test -s conftest$ac_exeext' |
---|
8725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8726 | (eval $ac_try) 2>&5 |
---|
8727 | ac_status=$? |
---|
8728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8729 | (exit $ac_status); }; }; then |
---|
8730 | |
---|
8731 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
8732 | }'` |
---|
8733 | # Check for a 64-bit object if we didn't find anything. |
---|
8734 | 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; } |
---|
8735 | }'`; fi |
---|
8736 | else |
---|
8737 | echo "$as_me: failed program was:" >&5 |
---|
8738 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8739 | |
---|
8740 | fi |
---|
8741 | rm -f conftest.err conftest.$ac_objext \ |
---|
8742 | conftest$ac_exeext conftest.$ac_ext |
---|
8743 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
8744 | |
---|
8745 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
8746 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
---|
8747 | else |
---|
8748 | if test "$host_cpu" = ia64; then |
---|
8749 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
---|
8750 | allow_undefined_flag="-z nodefs" |
---|
8751 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
---|
8752 | else |
---|
8753 | # Determine the default libpath from the value encoded in an empty executable. |
---|
8754 | cat >conftest.$ac_ext <<_ACEOF |
---|
8755 | /* confdefs.h. */ |
---|
8756 | _ACEOF |
---|
8757 | cat confdefs.h >>conftest.$ac_ext |
---|
8758 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8759 | /* end confdefs.h. */ |
---|
8760 | |
---|
8761 | int |
---|
8762 | main () |
---|
8763 | { |
---|
8764 | |
---|
8765 | ; |
---|
8766 | return 0; |
---|
8767 | } |
---|
8768 | _ACEOF |
---|
8769 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8771 | (eval $ac_link) 2>conftest.er1 |
---|
8772 | ac_status=$? |
---|
8773 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8774 | rm -f conftest.er1 |
---|
8775 | cat conftest.err >&5 |
---|
8776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8777 | (exit $ac_status); } && |
---|
8778 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8779 | || test ! -s conftest.err' |
---|
8780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8781 | (eval $ac_try) 2>&5 |
---|
8782 | ac_status=$? |
---|
8783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8784 | (exit $ac_status); }; } && |
---|
8785 | { ac_try='test -s conftest$ac_exeext' |
---|
8786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8787 | (eval $ac_try) 2>&5 |
---|
8788 | ac_status=$? |
---|
8789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8790 | (exit $ac_status); }; }; then |
---|
8791 | |
---|
8792 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
8793 | }'` |
---|
8794 | # Check for a 64-bit object if we didn't find anything. |
---|
8795 | 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; } |
---|
8796 | }'`; fi |
---|
8797 | else |
---|
8798 | echo "$as_me: failed program was:" >&5 |
---|
8799 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8800 | |
---|
8801 | fi |
---|
8802 | rm -f conftest.err conftest.$ac_objext \ |
---|
8803 | conftest$ac_exeext conftest.$ac_ext |
---|
8804 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
8805 | |
---|
8806 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
8807 | # Warning - without using the other run time loading flags, |
---|
8808 | # -berok will link without error, but may produce a broken library. |
---|
8809 | no_undefined_flag=' ${wl}-bernotok' |
---|
8810 | allow_undefined_flag=' ${wl}-berok' |
---|
8811 | # Exported symbols can be pulled into shared objects from archives |
---|
8812 | whole_archive_flag_spec='$convenience' |
---|
8813 | archive_cmds_need_lc=yes |
---|
8814 | # This is similar to how AIX traditionally builds its shared libraries. |
---|
8815 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
---|
8816 | fi |
---|
8817 | fi |
---|
8818 | ;; |
---|
8819 | |
---|
8820 | amigaos*) |
---|
8821 | 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)' |
---|
8822 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8823 | hardcode_minus_L=yes |
---|
8824 | # see comment about different semantics on the GNU ld section |
---|
8825 | ld_shlibs=no |
---|
8826 | ;; |
---|
8827 | |
---|
8828 | bsdi[45]*) |
---|
8829 | export_dynamic_flag_spec=-rdynamic |
---|
8830 | ;; |
---|
8831 | |
---|
8832 | cygwin* | mingw* | pw32*) |
---|
8833 | # When not using gcc, we currently assume that we are using |
---|
8834 | # Microsoft Visual C++. |
---|
8835 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
8836 | # no search path for DLLs. |
---|
8837 | hardcode_libdir_flag_spec=' ' |
---|
8838 | allow_undefined_flag=unsupported |
---|
8839 | # Tell ltmain to make .lib files, not .a files. |
---|
8840 | libext=lib |
---|
8841 | # Tell ltmain to make .dll files, not .so files. |
---|
8842 | shrext_cmds=".dll" |
---|
8843 | # FIXME: Setting linknames here is a bad hack. |
---|
8844 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
8845 | # The linker will automatically build a .lib file if we build a DLL. |
---|
8846 | old_archive_From_new_cmds='true' |
---|
8847 | # FIXME: Should let the user specify the lib program. |
---|
8848 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
---|
8849 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
---|
8850 | enable_shared_with_static_runtimes=yes |
---|
8851 | ;; |
---|
8852 | |
---|
8853 | darwin* | rhapsody*) |
---|
8854 | case $host_os in |
---|
8855 | rhapsody* | darwin1.[012]) |
---|
8856 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
---|
8857 | ;; |
---|
8858 | *) # Darwin 1.3 on |
---|
8859 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
8860 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
8861 | else |
---|
8862 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
8863 | 10.[012]) |
---|
8864 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
8865 | ;; |
---|
8866 | 10.*) |
---|
8867 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
---|
8868 | ;; |
---|
8869 | esac |
---|
8870 | fi |
---|
8871 | ;; |
---|
8872 | esac |
---|
8873 | archive_cmds_need_lc=no |
---|
8874 | hardcode_direct=no |
---|
8875 | hardcode_automatic=yes |
---|
8876 | hardcode_shlibpath_var=unsupported |
---|
8877 | whole_archive_flag_spec='' |
---|
8878 | link_all_deplibs=yes |
---|
8879 | if test "$GCC" = yes ; then |
---|
8880 | output_verbose_link_cmd='echo' |
---|
8881 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
8882 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
8883 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
8884 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
8885 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
8886 | else |
---|
8887 | case $cc_basename in |
---|
8888 | xlc*) |
---|
8889 | output_verbose_link_cmd='echo' |
---|
8890 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
---|
8891 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
8892 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
8893 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
8894 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
8895 | ;; |
---|
8896 | *) |
---|
8897 | ld_shlibs=no |
---|
8898 | ;; |
---|
8899 | esac |
---|
8900 | fi |
---|
8901 | ;; |
---|
8902 | |
---|
8903 | dgux*) |
---|
8904 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8905 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8906 | hardcode_shlibpath_var=no |
---|
8907 | ;; |
---|
8908 | |
---|
8909 | freebsd1*) |
---|
8910 | ld_shlibs=no |
---|
8911 | ;; |
---|
8912 | |
---|
8913 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
8914 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
8915 | # does not break anything, and helps significantly (at the cost of a little |
---|
8916 | # extra space). |
---|
8917 | freebsd2.2*) |
---|
8918 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
8919 | hardcode_libdir_flag_spec='-R$libdir' |
---|
8920 | hardcode_direct=yes |
---|
8921 | hardcode_shlibpath_var=no |
---|
8922 | ;; |
---|
8923 | |
---|
8924 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
8925 | freebsd2*) |
---|
8926 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
8927 | hardcode_direct=yes |
---|
8928 | hardcode_minus_L=yes |
---|
8929 | hardcode_shlibpath_var=no |
---|
8930 | ;; |
---|
8931 | |
---|
8932 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
8933 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
8934 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
8935 | hardcode_libdir_flag_spec='-R$libdir' |
---|
8936 | hardcode_direct=yes |
---|
8937 | hardcode_shlibpath_var=no |
---|
8938 | ;; |
---|
8939 | |
---|
8940 | hpux9*) |
---|
8941 | if test "$GCC" = yes; then |
---|
8942 | 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' |
---|
8943 | else |
---|
8944 | 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' |
---|
8945 | fi |
---|
8946 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
8947 | hardcode_libdir_separator=: |
---|
8948 | hardcode_direct=yes |
---|
8949 | |
---|
8950 | # hardcode_minus_L: Not really in the search PATH, |
---|
8951 | # but as the default location of the library. |
---|
8952 | hardcode_minus_L=yes |
---|
8953 | export_dynamic_flag_spec='${wl}-E' |
---|
8954 | ;; |
---|
8955 | |
---|
8956 | hpux10*) |
---|
8957 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
8958 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
8959 | else |
---|
8960 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
8961 | fi |
---|
8962 | if test "$with_gnu_ld" = no; then |
---|
8963 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
8964 | hardcode_libdir_separator=: |
---|
8965 | |
---|
8966 | hardcode_direct=yes |
---|
8967 | export_dynamic_flag_spec='${wl}-E' |
---|
8968 | |
---|
8969 | # hardcode_minus_L: Not really in the search PATH, |
---|
8970 | # but as the default location of the library. |
---|
8971 | hardcode_minus_L=yes |
---|
8972 | fi |
---|
8973 | ;; |
---|
8974 | |
---|
8975 | hpux11*) |
---|
8976 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
8977 | case $host_cpu in |
---|
8978 | hppa*64*) |
---|
8979 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8980 | ;; |
---|
8981 | ia64*) |
---|
8982 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
8983 | ;; |
---|
8984 | *) |
---|
8985 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
8986 | ;; |
---|
8987 | esac |
---|
8988 | else |
---|
8989 | case $host_cpu in |
---|
8990 | hppa*64*) |
---|
8991 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8992 | ;; |
---|
8993 | ia64*) |
---|
8994 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
8995 | ;; |
---|
8996 | *) |
---|
8997 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
8998 | ;; |
---|
8999 | esac |
---|
9000 | fi |
---|
9001 | if test "$with_gnu_ld" = no; then |
---|
9002 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
9003 | hardcode_libdir_separator=: |
---|
9004 | |
---|
9005 | case $host_cpu in |
---|
9006 | hppa*64*|ia64*) |
---|
9007 | hardcode_libdir_flag_spec_ld='+b $libdir' |
---|
9008 | hardcode_direct=no |
---|
9009 | hardcode_shlibpath_var=no |
---|
9010 | ;; |
---|
9011 | *) |
---|
9012 | hardcode_direct=yes |
---|
9013 | export_dynamic_flag_spec='${wl}-E' |
---|
9014 | |
---|
9015 | # hardcode_minus_L: Not really in the search PATH, |
---|
9016 | # but as the default location of the library. |
---|
9017 | hardcode_minus_L=yes |
---|
9018 | ;; |
---|
9019 | esac |
---|
9020 | fi |
---|
9021 | ;; |
---|
9022 | |
---|
9023 | irix5* | irix6* | nonstopux*) |
---|
9024 | if test "$GCC" = yes; then |
---|
9025 | 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' |
---|
9026 | else |
---|
9027 | 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' |
---|
9028 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
---|
9029 | fi |
---|
9030 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9031 | hardcode_libdir_separator=: |
---|
9032 | link_all_deplibs=yes |
---|
9033 | ;; |
---|
9034 | |
---|
9035 | netbsd*) |
---|
9036 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
9037 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
9038 | else |
---|
9039 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
9040 | fi |
---|
9041 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9042 | hardcode_direct=yes |
---|
9043 | hardcode_shlibpath_var=no |
---|
9044 | ;; |
---|
9045 | |
---|
9046 | newsos6) |
---|
9047 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9048 | hardcode_direct=yes |
---|
9049 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9050 | hardcode_libdir_separator=: |
---|
9051 | hardcode_shlibpath_var=no |
---|
9052 | ;; |
---|
9053 | |
---|
9054 | openbsd*) |
---|
9055 | hardcode_direct=yes |
---|
9056 | hardcode_shlibpath_var=no |
---|
9057 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
9058 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
9059 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
---|
9060 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
9061 | export_dynamic_flag_spec='${wl}-E' |
---|
9062 | else |
---|
9063 | case $host_os in |
---|
9064 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
9065 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
9066 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9067 | ;; |
---|
9068 | *) |
---|
9069 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
9070 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
9071 | ;; |
---|
9072 | esac |
---|
9073 | fi |
---|
9074 | ;; |
---|
9075 | |
---|
9076 | os2*) |
---|
9077 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9078 | hardcode_minus_L=yes |
---|
9079 | allow_undefined_flag=unsupported |
---|
9080 | 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' |
---|
9081 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
9082 | ;; |
---|
9083 | |
---|
9084 | osf3*) |
---|
9085 | if test "$GCC" = yes; then |
---|
9086 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
9087 | 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' |
---|
9088 | else |
---|
9089 | allow_undefined_flag=' -expect_unresolved \*' |
---|
9090 | 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' |
---|
9091 | fi |
---|
9092 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9093 | hardcode_libdir_separator=: |
---|
9094 | ;; |
---|
9095 | |
---|
9096 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
9097 | if test "$GCC" = yes; then |
---|
9098 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
9099 | 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' |
---|
9100 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9101 | else |
---|
9102 | allow_undefined_flag=' -expect_unresolved \*' |
---|
9103 | 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' |
---|
9104 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
---|
9105 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
---|
9106 | |
---|
9107 | # Both c and cxx compiler support -rpath directly |
---|
9108 | hardcode_libdir_flag_spec='-rpath $libdir' |
---|
9109 | fi |
---|
9110 | hardcode_libdir_separator=: |
---|
9111 | ;; |
---|
9112 | |
---|
9113 | solaris*) |
---|
9114 | no_undefined_flag=' -z text' |
---|
9115 | if test "$GCC" = yes; then |
---|
9116 | wlarc='${wl}' |
---|
9117 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9118 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
9119 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
---|
9120 | else |
---|
9121 | wlarc='' |
---|
9122 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9123 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
9124 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
9125 | fi |
---|
9126 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9127 | hardcode_shlibpath_var=no |
---|
9128 | case $host_os in |
---|
9129 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
9130 | *) |
---|
9131 | # The compiler driver will combine linker options so we |
---|
9132 | # cannot just pass the convience library names through |
---|
9133 | # without $wl, iff we do not link with $LD. |
---|
9134 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
---|
9135 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
9136 | case $wlarc in |
---|
9137 | '') |
---|
9138 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
---|
9139 | *) |
---|
9140 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
---|
9141 | esac ;; |
---|
9142 | esac |
---|
9143 | link_all_deplibs=yes |
---|
9144 | ;; |
---|
9145 | |
---|
9146 | sunos4*) |
---|
9147 | if test "x$host_vendor" = xsequent; then |
---|
9148 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
9149 | # files that make .init and .fini sections work. |
---|
9150 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9151 | else |
---|
9152 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
9153 | fi |
---|
9154 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9155 | hardcode_direct=yes |
---|
9156 | hardcode_minus_L=yes |
---|
9157 | hardcode_shlibpath_var=no |
---|
9158 | ;; |
---|
9159 | |
---|
9160 | sysv4) |
---|
9161 | case $host_vendor in |
---|
9162 | sni) |
---|
9163 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9164 | hardcode_direct=yes # is this really true??? |
---|
9165 | ;; |
---|
9166 | siemens) |
---|
9167 | ## LD is ld it makes a PLAMLIB |
---|
9168 | ## CC just makes a GrossModule. |
---|
9169 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
9170 | reload_cmds='$CC -r -o $output$reload_objs' |
---|
9171 | hardcode_direct=no |
---|
9172 | ;; |
---|
9173 | motorola) |
---|
9174 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9175 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
---|
9176 | ;; |
---|
9177 | esac |
---|
9178 | runpath_var='LD_RUN_PATH' |
---|
9179 | hardcode_shlibpath_var=no |
---|
9180 | ;; |
---|
9181 | |
---|
9182 | sysv4.3*) |
---|
9183 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9184 | hardcode_shlibpath_var=no |
---|
9185 | export_dynamic_flag_spec='-Bexport' |
---|
9186 | ;; |
---|
9187 | |
---|
9188 | sysv4*MP*) |
---|
9189 | if test -d /usr/nec; then |
---|
9190 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9191 | hardcode_shlibpath_var=no |
---|
9192 | runpath_var=LD_RUN_PATH |
---|
9193 | hardcode_runpath_var=yes |
---|
9194 | ld_shlibs=yes |
---|
9195 | fi |
---|
9196 | ;; |
---|
9197 | |
---|
9198 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
---|
9199 | no_undefined_flag='${wl}-z,text' |
---|
9200 | archive_cmds_need_lc=no |
---|
9201 | hardcode_shlibpath_var=no |
---|
9202 | runpath_var='LD_RUN_PATH' |
---|
9203 | |
---|
9204 | if test "$GCC" = yes; then |
---|
9205 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9206 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9207 | else |
---|
9208 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9209 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9210 | fi |
---|
9211 | ;; |
---|
9212 | |
---|
9213 | sysv5* | sco3.2v5* | sco5v6*) |
---|
9214 | # Note: We can NOT use -z defs as we might desire, because we do not |
---|
9215 | # link with -lc, and that would cause any symbols used from libc to |
---|
9216 | # always be unresolved, which means just about no library would |
---|
9217 | # ever link correctly. If we're not using GNU ld we use -z text |
---|
9218 | # though, which does catch some bad symbols but isn't as heavy-handed |
---|
9219 | # as -z defs. |
---|
9220 | no_undefined_flag='${wl}-z,text' |
---|
9221 | allow_undefined_flag='${wl}-z,nodefs' |
---|
9222 | archive_cmds_need_lc=no |
---|
9223 | hardcode_shlibpath_var=no |
---|
9224 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
---|
9225 | hardcode_libdir_separator=':' |
---|
9226 | link_all_deplibs=yes |
---|
9227 | export_dynamic_flag_spec='${wl}-Bexport' |
---|
9228 | runpath_var='LD_RUN_PATH' |
---|
9229 | |
---|
9230 | if test "$GCC" = yes; then |
---|
9231 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9232 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9233 | else |
---|
9234 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9235 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9236 | fi |
---|
9237 | ;; |
---|
9238 | |
---|
9239 | uts4*) |
---|
9240 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9241 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9242 | hardcode_shlibpath_var=no |
---|
9243 | ;; |
---|
9244 | |
---|
9245 | *) |
---|
9246 | ld_shlibs=no |
---|
9247 | ;; |
---|
9248 | esac |
---|
9249 | fi |
---|
9250 | |
---|
9251 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
---|
9252 | echo "${ECHO_T}$ld_shlibs" >&6 |
---|
9253 | test "$ld_shlibs" = no && can_build_shared=no |
---|
9254 | |
---|
9255 | # |
---|
9256 | # Do we need to explicitly link libc? |
---|
9257 | # |
---|
9258 | case "x$archive_cmds_need_lc" in |
---|
9259 | x|xyes) |
---|
9260 | # Assume -lc should be added |
---|
9261 | archive_cmds_need_lc=yes |
---|
9262 | |
---|
9263 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
9264 | case $archive_cmds in |
---|
9265 | *'~'*) |
---|
9266 | # FIXME: we may have to deal with multi-command sequences. |
---|
9267 | ;; |
---|
9268 | '$CC '*) |
---|
9269 | # Test whether the compiler implicitly links with -lc since on some |
---|
9270 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
9271 | # to ld, don't add -lc before -lgcc. |
---|
9272 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
9273 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
---|
9274 | $rm conftest* |
---|
9275 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
9276 | |
---|
9277 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9278 | (eval $ac_compile) 2>&5 |
---|
9279 | ac_status=$? |
---|
9280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9281 | (exit $ac_status); } 2>conftest.err; then |
---|
9282 | soname=conftest |
---|
9283 | lib=conftest |
---|
9284 | libobjs=conftest.$ac_objext |
---|
9285 | deplibs= |
---|
9286 | wl=$lt_prog_compiler_wl |
---|
9287 | pic_flag=$lt_prog_compiler_pic |
---|
9288 | compiler_flags=-v |
---|
9289 | linker_flags=-v |
---|
9290 | verstring= |
---|
9291 | output_objdir=. |
---|
9292 | libname=conftest |
---|
9293 | lt_save_allow_undefined_flag=$allow_undefined_flag |
---|
9294 | allow_undefined_flag= |
---|
9295 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
9296 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
9297 | ac_status=$? |
---|
9298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9299 | (exit $ac_status); } |
---|
9300 | then |
---|
9301 | archive_cmds_need_lc=no |
---|
9302 | else |
---|
9303 | archive_cmds_need_lc=yes |
---|
9304 | fi |
---|
9305 | allow_undefined_flag=$lt_save_allow_undefined_flag |
---|
9306 | else |
---|
9307 | cat conftest.err 1>&5 |
---|
9308 | fi |
---|
9309 | $rm conftest* |
---|
9310 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
---|
9311 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
---|
9312 | ;; |
---|
9313 | esac |
---|
9314 | fi |
---|
9315 | ;; |
---|
9316 | esac |
---|
9317 | |
---|
9318 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
9319 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
---|
9320 | library_names_spec= |
---|
9321 | libname_spec='lib$name' |
---|
9322 | soname_spec= |
---|
9323 | shrext_cmds=".so" |
---|
9324 | postinstall_cmds= |
---|
9325 | postuninstall_cmds= |
---|
9326 | finish_cmds= |
---|
9327 | finish_eval= |
---|
9328 | shlibpath_var= |
---|
9329 | shlibpath_overrides_runpath=unknown |
---|
9330 | version_type=none |
---|
9331 | dynamic_linker="$host_os ld.so" |
---|
9332 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
9333 | if test "$GCC" = yes; then |
---|
9334 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
9335 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
9336 | # if the path contains ";" then we assume it to be the separator |
---|
9337 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
9338 | # assumed that no part of a normal pathname contains ";" but that should |
---|
9339 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
9340 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
9341 | else |
---|
9342 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
9343 | fi |
---|
9344 | else |
---|
9345 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
9346 | fi |
---|
9347 | need_lib_prefix=unknown |
---|
9348 | hardcode_into_libs=no |
---|
9349 | |
---|
9350 | # when you set need_version to no, make sure it does not cause -set_version |
---|
9351 | # flags to be left without arguments |
---|
9352 | need_version=unknown |
---|
9353 | |
---|
9354 | case $host_os in |
---|
9355 | aix3*) |
---|
9356 | version_type=linux |
---|
9357 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
9358 | shlibpath_var=LIBPATH |
---|
9359 | |
---|
9360 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
9361 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9362 | ;; |
---|
9363 | |
---|
9364 | aix4* | aix5*) |
---|
9365 | version_type=linux |
---|
9366 | need_lib_prefix=no |
---|
9367 | need_version=no |
---|
9368 | hardcode_into_libs=yes |
---|
9369 | if test "$host_cpu" = ia64; then |
---|
9370 | # AIX 5 supports IA64 |
---|
9371 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
9372 | shlibpath_var=LD_LIBRARY_PATH |
---|
9373 | else |
---|
9374 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
9375 | # for dependence libraries. The import file would start with |
---|
9376 | # the line `#! .'. This would cause the generated library to |
---|
9377 | # depend on `.', always an invalid library. This was fixed in |
---|
9378 | # development snapshots of GCC prior to 3.0. |
---|
9379 | case $host_os in |
---|
9380 | aix4 | aix4.[01] | aix4.[01].*) |
---|
9381 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
9382 | echo ' yes ' |
---|
9383 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
9384 | : |
---|
9385 | else |
---|
9386 | can_build_shared=no |
---|
9387 | fi |
---|
9388 | ;; |
---|
9389 | esac |
---|
9390 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
9391 | # soname into executable. Probably we can add versioning support to |
---|
9392 | # collect2, so additional links can be useful in future. |
---|
9393 | if test "$aix_use_runtimelinking" = yes; then |
---|
9394 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
9395 | # instead of lib<name>.a to let people know that these are not |
---|
9396 | # typical AIX shared libraries. |
---|
9397 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9398 | else |
---|
9399 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
9400 | # and later when we are not doing run time linking. |
---|
9401 | library_names_spec='${libname}${release}.a $libname.a' |
---|
9402 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9403 | fi |
---|
9404 | shlibpath_var=LIBPATH |
---|
9405 | fi |
---|
9406 | ;; |
---|
9407 | |
---|
9408 | amigaos*) |
---|
9409 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
9410 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
9411 | 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' |
---|
9412 | ;; |
---|
9413 | |
---|
9414 | beos*) |
---|
9415 | library_names_spec='${libname}${shared_ext}' |
---|
9416 | dynamic_linker="$host_os ld.so" |
---|
9417 | shlibpath_var=LIBRARY_PATH |
---|
9418 | ;; |
---|
9419 | |
---|
9420 | bsdi[45]*) |
---|
9421 | version_type=linux |
---|
9422 | need_version=no |
---|
9423 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9424 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9425 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
9426 | shlibpath_var=LD_LIBRARY_PATH |
---|
9427 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
9428 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
9429 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
9430 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
9431 | # libtool to hard-code these into programs |
---|
9432 | ;; |
---|
9433 | |
---|
9434 | cygwin* | mingw* | pw32*) |
---|
9435 | version_type=windows |
---|
9436 | shrext_cmds=".dll" |
---|
9437 | need_version=no |
---|
9438 | need_lib_prefix=no |
---|
9439 | |
---|
9440 | case $GCC,$host_os in |
---|
9441 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
9442 | library_names_spec='$libname.dll.a' |
---|
9443 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
9444 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
9445 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
9446 | dldir=$destdir/`dirname \$dlpath`~ |
---|
9447 | test -d \$dldir || mkdir -p \$dldir~ |
---|
9448 | $install_prog $dir/$dlname \$dldir/$dlname~ |
---|
9449 | chmod a+x \$dldir/$dlname' |
---|
9450 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
9451 | dlpath=$dir/\$dldll~ |
---|
9452 | $rm \$dlpath' |
---|
9453 | shlibpath_overrides_runpath=yes |
---|
9454 | |
---|
9455 | case $host_os in |
---|
9456 | cygwin*) |
---|
9457 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
9458 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
9459 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
9460 | ;; |
---|
9461 | mingw*) |
---|
9462 | # MinGW DLLs use traditional 'lib' prefix |
---|
9463 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
9464 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
9465 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
9466 | # It is most probably a Windows format PATH printed by |
---|
9467 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
9468 | # path with ; separators, and with drive letters. We can handle the |
---|
9469 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
9470 | # especially as we might pass files found there to a mingw objdump, |
---|
9471 | # which wouldn't understand a cygwinified path. Ahh. |
---|
9472 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
9473 | else |
---|
9474 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
9475 | fi |
---|
9476 | ;; |
---|
9477 | pw32*) |
---|
9478 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
9479 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
9480 | ;; |
---|
9481 | esac |
---|
9482 | ;; |
---|
9483 | |
---|
9484 | *) |
---|
9485 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
9486 | ;; |
---|
9487 | esac |
---|
9488 | dynamic_linker='Win32 ld.exe' |
---|
9489 | # FIXME: first we should search . and the directory the executable is in |
---|
9490 | shlibpath_var=PATH |
---|
9491 | ;; |
---|
9492 | |
---|
9493 | darwin* | rhapsody*) |
---|
9494 | dynamic_linker="$host_os dyld" |
---|
9495 | version_type=darwin |
---|
9496 | need_lib_prefix=no |
---|
9497 | need_version=no |
---|
9498 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
9499 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
9500 | shlibpath_overrides_runpath=yes |
---|
9501 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
9502 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
---|
9503 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
9504 | if test "$GCC" = yes; then |
---|
9505 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
---|
9506 | else |
---|
9507 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
9508 | fi |
---|
9509 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
9510 | ;; |
---|
9511 | |
---|
9512 | dgux*) |
---|
9513 | version_type=linux |
---|
9514 | need_lib_prefix=no |
---|
9515 | need_version=no |
---|
9516 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
9517 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9518 | shlibpath_var=LD_LIBRARY_PATH |
---|
9519 | ;; |
---|
9520 | |
---|
9521 | freebsd1*) |
---|
9522 | dynamic_linker=no |
---|
9523 | ;; |
---|
9524 | |
---|
9525 | kfreebsd*-gnu) |
---|
9526 | version_type=linux |
---|
9527 | need_lib_prefix=no |
---|
9528 | need_version=no |
---|
9529 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
9530 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9531 | shlibpath_var=LD_LIBRARY_PATH |
---|
9532 | shlibpath_overrides_runpath=no |
---|
9533 | hardcode_into_libs=yes |
---|
9534 | dynamic_linker='GNU ld.so' |
---|
9535 | ;; |
---|
9536 | |
---|
9537 | freebsd* | dragonfly*) |
---|
9538 | # DragonFly does not have aout. When/if they implement a new |
---|
9539 | # versioning mechanism, adjust this. |
---|
9540 | if test -x /usr/bin/objformat; then |
---|
9541 | objformat=`/usr/bin/objformat` |
---|
9542 | else |
---|
9543 | case $host_os in |
---|
9544 | freebsd[123]*) objformat=aout ;; |
---|
9545 | *) objformat=elf ;; |
---|
9546 | esac |
---|
9547 | fi |
---|
9548 | version_type=freebsd-$objformat |
---|
9549 | case $version_type in |
---|
9550 | freebsd-elf*) |
---|
9551 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
9552 | need_version=no |
---|
9553 | need_lib_prefix=no |
---|
9554 | ;; |
---|
9555 | freebsd-*) |
---|
9556 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
9557 | need_version=yes |
---|
9558 | ;; |
---|
9559 | esac |
---|
9560 | shlibpath_var=LD_LIBRARY_PATH |
---|
9561 | case $host_os in |
---|
9562 | freebsd2*) |
---|
9563 | shlibpath_overrides_runpath=yes |
---|
9564 | ;; |
---|
9565 | freebsd3.[01]* | freebsdelf3.[01]*) |
---|
9566 | shlibpath_overrides_runpath=yes |
---|
9567 | hardcode_into_libs=yes |
---|
9568 | ;; |
---|
9569 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
---|
9570 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
---|
9571 | shlibpath_overrides_runpath=no |
---|
9572 | hardcode_into_libs=yes |
---|
9573 | ;; |
---|
9574 | freebsd*) # from 4.6 on |
---|
9575 | shlibpath_overrides_runpath=yes |
---|
9576 | hardcode_into_libs=yes |
---|
9577 | ;; |
---|
9578 | esac |
---|
9579 | ;; |
---|
9580 | |
---|
9581 | gnu*) |
---|
9582 | version_type=linux |
---|
9583 | need_lib_prefix=no |
---|
9584 | need_version=no |
---|
9585 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
9586 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9587 | shlibpath_var=LD_LIBRARY_PATH |
---|
9588 | hardcode_into_libs=yes |
---|
9589 | ;; |
---|
9590 | |
---|
9591 | hpux9* | hpux10* | hpux11*) |
---|
9592 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
9593 | # link against other versions. |
---|
9594 | version_type=sunos |
---|
9595 | need_lib_prefix=no |
---|
9596 | need_version=no |
---|
9597 | case $host_cpu in |
---|
9598 | ia64*) |
---|
9599 | shrext_cmds='.so' |
---|
9600 | hardcode_into_libs=yes |
---|
9601 | dynamic_linker="$host_os dld.so" |
---|
9602 | shlibpath_var=LD_LIBRARY_PATH |
---|
9603 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
9604 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9605 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9606 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
9607 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
9608 | else |
---|
9609 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
9610 | fi |
---|
9611 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
9612 | ;; |
---|
9613 | hppa*64*) |
---|
9614 | shrext_cmds='.sl' |
---|
9615 | hardcode_into_libs=yes |
---|
9616 | dynamic_linker="$host_os dld.sl" |
---|
9617 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
9618 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
9619 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9620 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9621 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
9622 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
9623 | ;; |
---|
9624 | *) |
---|
9625 | shrext_cmds='.sl' |
---|
9626 | dynamic_linker="$host_os dld.sl" |
---|
9627 | shlibpath_var=SHLIB_PATH |
---|
9628 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
9629 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9630 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9631 | ;; |
---|
9632 | esac |
---|
9633 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
9634 | postinstall_cmds='chmod 555 $lib' |
---|
9635 | ;; |
---|
9636 | |
---|
9637 | interix3*) |
---|
9638 | version_type=linux |
---|
9639 | need_lib_prefix=no |
---|
9640 | need_version=no |
---|
9641 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
9642 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9643 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
---|
9644 | shlibpath_var=LD_LIBRARY_PATH |
---|
9645 | shlibpath_overrides_runpath=no |
---|
9646 | hardcode_into_libs=yes |
---|
9647 | ;; |
---|
9648 | |
---|
9649 | irix5* | irix6* | nonstopux*) |
---|
9650 | case $host_os in |
---|
9651 | nonstopux*) version_type=nonstopux ;; |
---|
9652 | *) |
---|
9653 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
9654 | version_type=linux |
---|
9655 | else |
---|
9656 | version_type=irix |
---|
9657 | fi ;; |
---|
9658 | esac |
---|
9659 | need_lib_prefix=no |
---|
9660 | need_version=no |
---|
9661 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9662 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
9663 | case $host_os in |
---|
9664 | irix5* | nonstopux*) |
---|
9665 | libsuff= shlibsuff= |
---|
9666 | ;; |
---|
9667 | *) |
---|
9668 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
9669 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
9670 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
9671 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
9672 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
9673 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
9674 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
9675 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
9676 | esac |
---|
9677 | ;; |
---|
9678 | esac |
---|
9679 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
9680 | shlibpath_overrides_runpath=no |
---|
9681 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
9682 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
9683 | hardcode_into_libs=yes |
---|
9684 | ;; |
---|
9685 | |
---|
9686 | # No shared lib support for Linux oldld, aout, or coff. |
---|
9687 | linux*oldld* | linux*aout* | linux*coff*) |
---|
9688 | dynamic_linker=no |
---|
9689 | ;; |
---|
9690 | |
---|
9691 | # This must be Linux ELF. |
---|
9692 | linux*) |
---|
9693 | version_type=linux |
---|
9694 | need_lib_prefix=no |
---|
9695 | need_version=no |
---|
9696 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9697 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9698 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
9699 | shlibpath_var=LD_LIBRARY_PATH |
---|
9700 | shlibpath_overrides_runpath=no |
---|
9701 | # This implies no fast_install, which is unacceptable. |
---|
9702 | # Some rework will be needed to allow for fast_install |
---|
9703 | # before this can be enabled. |
---|
9704 | hardcode_into_libs=yes |
---|
9705 | |
---|
9706 | # Append ld.so.conf contents to the search path |
---|
9707 | if test -f /etc/ld.so.conf; then |
---|
9708 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
---|
9709 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
9710 | fi |
---|
9711 | |
---|
9712 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
9713 | # powerpc, because MkLinux only supported shared libraries with the |
---|
9714 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
9715 | # most powerpc-linux boxes support dynamic linking these days and |
---|
9716 | # people can always --disable-shared, the test was removed, and we |
---|
9717 | # assume the GNU/Linux dynamic linker is in use. |
---|
9718 | dynamic_linker='GNU/Linux ld.so' |
---|
9719 | ;; |
---|
9720 | |
---|
9721 | knetbsd*-gnu) |
---|
9722 | version_type=linux |
---|
9723 | need_lib_prefix=no |
---|
9724 | need_version=no |
---|
9725 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
9726 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9727 | shlibpath_var=LD_LIBRARY_PATH |
---|
9728 | shlibpath_overrides_runpath=no |
---|
9729 | hardcode_into_libs=yes |
---|
9730 | dynamic_linker='GNU ld.so' |
---|
9731 | ;; |
---|
9732 | |
---|
9733 | netbsd*) |
---|
9734 | version_type=sunos |
---|
9735 | need_lib_prefix=no |
---|
9736 | need_version=no |
---|
9737 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
9738 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
9739 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
9740 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
9741 | else |
---|
9742 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
9743 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9744 | dynamic_linker='NetBSD ld.elf_so' |
---|
9745 | fi |
---|
9746 | shlibpath_var=LD_LIBRARY_PATH |
---|
9747 | shlibpath_overrides_runpath=yes |
---|
9748 | hardcode_into_libs=yes |
---|
9749 | ;; |
---|
9750 | |
---|
9751 | newsos6) |
---|
9752 | version_type=linux |
---|
9753 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9754 | shlibpath_var=LD_LIBRARY_PATH |
---|
9755 | shlibpath_overrides_runpath=yes |
---|
9756 | ;; |
---|
9757 | |
---|
9758 | nto-qnx*) |
---|
9759 | version_type=linux |
---|
9760 | need_lib_prefix=no |
---|
9761 | need_version=no |
---|
9762 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9763 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9764 | shlibpath_var=LD_LIBRARY_PATH |
---|
9765 | shlibpath_overrides_runpath=yes |
---|
9766 | ;; |
---|
9767 | |
---|
9768 | openbsd*) |
---|
9769 | version_type=sunos |
---|
9770 | sys_lib_dlsearch_path_spec="/usr/lib" |
---|
9771 | need_lib_prefix=no |
---|
9772 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
---|
9773 | case $host_os in |
---|
9774 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
---|
9775 | *) need_version=no ;; |
---|
9776 | esac |
---|
9777 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
9778 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
9779 | shlibpath_var=LD_LIBRARY_PATH |
---|
9780 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
9781 | case $host_os in |
---|
9782 | openbsd2.[89] | openbsd2.[89].*) |
---|
9783 | shlibpath_overrides_runpath=no |
---|
9784 | ;; |
---|
9785 | *) |
---|
9786 | shlibpath_overrides_runpath=yes |
---|
9787 | ;; |
---|
9788 | esac |
---|
9789 | else |
---|
9790 | shlibpath_overrides_runpath=yes |
---|
9791 | fi |
---|
9792 | ;; |
---|
9793 | |
---|
9794 | os2*) |
---|
9795 | libname_spec='$name' |
---|
9796 | shrext_cmds=".dll" |
---|
9797 | need_lib_prefix=no |
---|
9798 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
9799 | dynamic_linker='OS/2 ld.exe' |
---|
9800 | shlibpath_var=LIBPATH |
---|
9801 | ;; |
---|
9802 | |
---|
9803 | osf3* | osf4* | osf5*) |
---|
9804 | version_type=osf |
---|
9805 | need_lib_prefix=no |
---|
9806 | need_version=no |
---|
9807 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9808 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9809 | shlibpath_var=LD_LIBRARY_PATH |
---|
9810 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
9811 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
9812 | ;; |
---|
9813 | |
---|
9814 | solaris*) |
---|
9815 | version_type=linux |
---|
9816 | need_lib_prefix=no |
---|
9817 | need_version=no |
---|
9818 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9819 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9820 | shlibpath_var=LD_LIBRARY_PATH |
---|
9821 | shlibpath_overrides_runpath=yes |
---|
9822 | hardcode_into_libs=yes |
---|
9823 | # ldd complains unless libraries are executable |
---|
9824 | postinstall_cmds='chmod +x $lib' |
---|
9825 | ;; |
---|
9826 | |
---|
9827 | sunos4*) |
---|
9828 | version_type=sunos |
---|
9829 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
9830 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
9831 | shlibpath_var=LD_LIBRARY_PATH |
---|
9832 | shlibpath_overrides_runpath=yes |
---|
9833 | if test "$with_gnu_ld" = yes; then |
---|
9834 | need_lib_prefix=no |
---|
9835 | fi |
---|
9836 | need_version=yes |
---|
9837 | ;; |
---|
9838 | |
---|
9839 | sysv4 | sysv4.3*) |
---|
9840 | version_type=linux |
---|
9841 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9842 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9843 | shlibpath_var=LD_LIBRARY_PATH |
---|
9844 | case $host_vendor in |
---|
9845 | sni) |
---|
9846 | shlibpath_overrides_runpath=no |
---|
9847 | need_lib_prefix=no |
---|
9848 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
9849 | runpath_var=LD_RUN_PATH |
---|
9850 | ;; |
---|
9851 | siemens) |
---|
9852 | need_lib_prefix=no |
---|
9853 | ;; |
---|
9854 | motorola) |
---|
9855 | need_lib_prefix=no |
---|
9856 | need_version=no |
---|
9857 | shlibpath_overrides_runpath=no |
---|
9858 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
9859 | ;; |
---|
9860 | esac |
---|
9861 | ;; |
---|
9862 | |
---|
9863 | sysv4*MP*) |
---|
9864 | if test -d /usr/nec ;then |
---|
9865 | version_type=linux |
---|
9866 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
9867 | soname_spec='$libname${shared_ext}.$major' |
---|
9868 | shlibpath_var=LD_LIBRARY_PATH |
---|
9869 | fi |
---|
9870 | ;; |
---|
9871 | |
---|
9872 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
9873 | version_type=freebsd-elf |
---|
9874 | need_lib_prefix=no |
---|
9875 | need_version=no |
---|
9876 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
9877 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9878 | shlibpath_var=LD_LIBRARY_PATH |
---|
9879 | hardcode_into_libs=yes |
---|
9880 | if test "$with_gnu_ld" = yes; then |
---|
9881 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
---|
9882 | shlibpath_overrides_runpath=no |
---|
9883 | else |
---|
9884 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
---|
9885 | shlibpath_overrides_runpath=yes |
---|
9886 | case $host_os in |
---|
9887 | sco3.2v5*) |
---|
9888 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
---|
9889 | ;; |
---|
9890 | esac |
---|
9891 | fi |
---|
9892 | sys_lib_dlsearch_path_spec='/usr/lib' |
---|
9893 | ;; |
---|
9894 | |
---|
9895 | uts4*) |
---|
9896 | version_type=linux |
---|
9897 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9898 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9899 | shlibpath_var=LD_LIBRARY_PATH |
---|
9900 | ;; |
---|
9901 | |
---|
9902 | *) |
---|
9903 | dynamic_linker=no |
---|
9904 | ;; |
---|
9905 | esac |
---|
9906 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
9907 | echo "${ECHO_T}$dynamic_linker" >&6 |
---|
9908 | test "$dynamic_linker" = no && can_build_shared=no |
---|
9909 | |
---|
9910 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
9911 | if test "$GCC" = yes; then |
---|
9912 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
9913 | fi |
---|
9914 | |
---|
9915 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
9916 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
---|
9917 | hardcode_action= |
---|
9918 | if test -n "$hardcode_libdir_flag_spec" || \ |
---|
9919 | test -n "$runpath_var" || \ |
---|
9920 | test "X$hardcode_automatic" = "Xyes" ; then |
---|
9921 | |
---|
9922 | # We can hardcode non-existant directories. |
---|
9923 | if test "$hardcode_direct" != no && |
---|
9924 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
9925 | # have to relink, otherwise we might link with an installed library |
---|
9926 | # when we should be linking with a yet-to-be-installed one |
---|
9927 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
---|
9928 | test "$hardcode_minus_L" != no; then |
---|
9929 | # Linking always hardcodes the temporary library directory. |
---|
9930 | hardcode_action=relink |
---|
9931 | else |
---|
9932 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
9933 | hardcode_action=immediate |
---|
9934 | fi |
---|
9935 | else |
---|
9936 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
9937 | # directories. |
---|
9938 | hardcode_action=unsupported |
---|
9939 | fi |
---|
9940 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
---|
9941 | echo "${ECHO_T}$hardcode_action" >&6 |
---|
9942 | |
---|
9943 | if test "$hardcode_action" = relink; then |
---|
9944 | # Fast installation is not supported |
---|
9945 | enable_fast_install=no |
---|
9946 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
9947 | test "$enable_shared" = no; then |
---|
9948 | # Fast installation is not necessary |
---|
9949 | enable_fast_install=needless |
---|
9950 | fi |
---|
9951 | |
---|
9952 | striplib= |
---|
9953 | old_striplib= |
---|
9954 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
9955 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
---|
9956 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
9957 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
9958 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
9959 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
9960 | echo "${ECHO_T}yes" >&6 |
---|
9961 | else |
---|
9962 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
9963 | case $host_os in |
---|
9964 | darwin*) |
---|
9965 | if test -n "$STRIP" ; then |
---|
9966 | striplib="$STRIP -x" |
---|
9967 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
9968 | echo "${ECHO_T}yes" >&6 |
---|
9969 | else |
---|
9970 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9971 | echo "${ECHO_T}no" >&6 |
---|
9972 | fi |
---|
9973 | ;; |
---|
9974 | *) |
---|
9975 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9976 | echo "${ECHO_T}no" >&6 |
---|
9977 | ;; |
---|
9978 | esac |
---|
9979 | fi |
---|
9980 | |
---|
9981 | if test "x$enable_dlopen" != xyes; then |
---|
9982 | enable_dlopen=unknown |
---|
9983 | enable_dlopen_self=unknown |
---|
9984 | enable_dlopen_self_static=unknown |
---|
9985 | else |
---|
9986 | lt_cv_dlopen=no |
---|
9987 | lt_cv_dlopen_libs= |
---|
9988 | |
---|
9989 | case $host_os in |
---|
9990 | beos*) |
---|
9991 | lt_cv_dlopen="load_add_on" |
---|
9992 | lt_cv_dlopen_libs= |
---|
9993 | lt_cv_dlopen_self=yes |
---|
9994 | ;; |
---|
9995 | |
---|
9996 | mingw* | pw32*) |
---|
9997 | lt_cv_dlopen="LoadLibrary" |
---|
9998 | lt_cv_dlopen_libs= |
---|
9999 | ;; |
---|
10000 | |
---|
10001 | cygwin*) |
---|
10002 | lt_cv_dlopen="dlopen" |
---|
10003 | lt_cv_dlopen_libs= |
---|
10004 | ;; |
---|
10005 | |
---|
10006 | darwin*) |
---|
10007 | # if libdl is installed we need to link against it |
---|
10008 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
10009 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
10010 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
10011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10012 | else |
---|
10013 | ac_check_lib_save_LIBS=$LIBS |
---|
10014 | LIBS="-ldl $LIBS" |
---|
10015 | cat >conftest.$ac_ext <<_ACEOF |
---|
10016 | /* confdefs.h. */ |
---|
10017 | _ACEOF |
---|
10018 | cat confdefs.h >>conftest.$ac_ext |
---|
10019 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10020 | /* end confdefs.h. */ |
---|
10021 | |
---|
10022 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10023 | #ifdef __cplusplus |
---|
10024 | extern "C" |
---|
10025 | #endif |
---|
10026 | /* We use char because int might match the return type of a gcc2 |
---|
10027 | builtin and then its argument prototype would still apply. */ |
---|
10028 | char dlopen (); |
---|
10029 | int |
---|
10030 | main () |
---|
10031 | { |
---|
10032 | dlopen (); |
---|
10033 | ; |
---|
10034 | return 0; |
---|
10035 | } |
---|
10036 | _ACEOF |
---|
10037 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10038 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10039 | (eval $ac_link) 2>conftest.er1 |
---|
10040 | ac_status=$? |
---|
10041 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10042 | rm -f conftest.er1 |
---|
10043 | cat conftest.err >&5 |
---|
10044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10045 | (exit $ac_status); } && |
---|
10046 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10047 | || test ! -s conftest.err' |
---|
10048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10049 | (eval $ac_try) 2>&5 |
---|
10050 | ac_status=$? |
---|
10051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10052 | (exit $ac_status); }; } && |
---|
10053 | { ac_try='test -s conftest$ac_exeext' |
---|
10054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10055 | (eval $ac_try) 2>&5 |
---|
10056 | ac_status=$? |
---|
10057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10058 | (exit $ac_status); }; }; then |
---|
10059 | ac_cv_lib_dl_dlopen=yes |
---|
10060 | else |
---|
10061 | echo "$as_me: failed program was:" >&5 |
---|
10062 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10063 | |
---|
10064 | ac_cv_lib_dl_dlopen=no |
---|
10065 | fi |
---|
10066 | rm -f conftest.err conftest.$ac_objext \ |
---|
10067 | conftest$ac_exeext conftest.$ac_ext |
---|
10068 | LIBS=$ac_check_lib_save_LIBS |
---|
10069 | fi |
---|
10070 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
10071 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
10072 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
10073 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
10074 | else |
---|
10075 | |
---|
10076 | lt_cv_dlopen="dyld" |
---|
10077 | lt_cv_dlopen_libs= |
---|
10078 | lt_cv_dlopen_self=yes |
---|
10079 | |
---|
10080 | fi |
---|
10081 | |
---|
10082 | ;; |
---|
10083 | |
---|
10084 | *) |
---|
10085 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
---|
10086 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
---|
10087 | if test "${ac_cv_func_shl_load+set}" = set; then |
---|
10088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10089 | else |
---|
10090 | cat >conftest.$ac_ext <<_ACEOF |
---|
10091 | /* confdefs.h. */ |
---|
10092 | _ACEOF |
---|
10093 | cat confdefs.h >>conftest.$ac_ext |
---|
10094 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10095 | /* end confdefs.h. */ |
---|
10096 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
---|
10097 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
10098 | #define shl_load innocuous_shl_load |
---|
10099 | |
---|
10100 | /* System header to define __stub macros and hopefully few prototypes, |
---|
10101 | which can conflict with char shl_load (); below. |
---|
10102 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10103 | <limits.h> exists even on freestanding compilers. */ |
---|
10104 | |
---|
10105 | #ifdef __STDC__ |
---|
10106 | # include <limits.h> |
---|
10107 | #else |
---|
10108 | # include <assert.h> |
---|
10109 | #endif |
---|
10110 | |
---|
10111 | #undef shl_load |
---|
10112 | |
---|
10113 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10114 | #ifdef __cplusplus |
---|
10115 | extern "C" |
---|
10116 | { |
---|
10117 | #endif |
---|
10118 | /* We use char because int might match the return type of a gcc2 |
---|
10119 | builtin and then its argument prototype would still apply. */ |
---|
10120 | char shl_load (); |
---|
10121 | /* The GNU C library defines this for functions which it implements |
---|
10122 | to always fail with ENOSYS. Some functions are actually named |
---|
10123 | something starting with __ and the normal name is an alias. */ |
---|
10124 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
---|
10125 | choke me |
---|
10126 | #else |
---|
10127 | char (*f) () = shl_load; |
---|
10128 | #endif |
---|
10129 | #ifdef __cplusplus |
---|
10130 | } |
---|
10131 | #endif |
---|
10132 | |
---|
10133 | int |
---|
10134 | main () |
---|
10135 | { |
---|
10136 | return f != shl_load; |
---|
10137 | ; |
---|
10138 | return 0; |
---|
10139 | } |
---|
10140 | _ACEOF |
---|
10141 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10142 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10143 | (eval $ac_link) 2>conftest.er1 |
---|
10144 | ac_status=$? |
---|
10145 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10146 | rm -f conftest.er1 |
---|
10147 | cat conftest.err >&5 |
---|
10148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10149 | (exit $ac_status); } && |
---|
10150 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10151 | || test ! -s conftest.err' |
---|
10152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10153 | (eval $ac_try) 2>&5 |
---|
10154 | ac_status=$? |
---|
10155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10156 | (exit $ac_status); }; } && |
---|
10157 | { ac_try='test -s conftest$ac_exeext' |
---|
10158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10159 | (eval $ac_try) 2>&5 |
---|
10160 | ac_status=$? |
---|
10161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10162 | (exit $ac_status); }; }; then |
---|
10163 | ac_cv_func_shl_load=yes |
---|
10164 | else |
---|
10165 | echo "$as_me: failed program was:" >&5 |
---|
10166 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10167 | |
---|
10168 | ac_cv_func_shl_load=no |
---|
10169 | fi |
---|
10170 | rm -f conftest.err conftest.$ac_objext \ |
---|
10171 | conftest$ac_exeext conftest.$ac_ext |
---|
10172 | fi |
---|
10173 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
---|
10174 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
---|
10175 | if test $ac_cv_func_shl_load = yes; then |
---|
10176 | lt_cv_dlopen="shl_load" |
---|
10177 | else |
---|
10178 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
---|
10179 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
---|
10180 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
---|
10181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10182 | else |
---|
10183 | ac_check_lib_save_LIBS=$LIBS |
---|
10184 | LIBS="-ldld $LIBS" |
---|
10185 | cat >conftest.$ac_ext <<_ACEOF |
---|
10186 | /* confdefs.h. */ |
---|
10187 | _ACEOF |
---|
10188 | cat confdefs.h >>conftest.$ac_ext |
---|
10189 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10190 | /* end confdefs.h. */ |
---|
10191 | |
---|
10192 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10193 | #ifdef __cplusplus |
---|
10194 | extern "C" |
---|
10195 | #endif |
---|
10196 | /* We use char because int might match the return type of a gcc2 |
---|
10197 | builtin and then its argument prototype would still apply. */ |
---|
10198 | char shl_load (); |
---|
10199 | int |
---|
10200 | main () |
---|
10201 | { |
---|
10202 | shl_load (); |
---|
10203 | ; |
---|
10204 | return 0; |
---|
10205 | } |
---|
10206 | _ACEOF |
---|
10207 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10208 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10209 | (eval $ac_link) 2>conftest.er1 |
---|
10210 | ac_status=$? |
---|
10211 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10212 | rm -f conftest.er1 |
---|
10213 | cat conftest.err >&5 |
---|
10214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10215 | (exit $ac_status); } && |
---|
10216 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10217 | || test ! -s conftest.err' |
---|
10218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10219 | (eval $ac_try) 2>&5 |
---|
10220 | ac_status=$? |
---|
10221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10222 | (exit $ac_status); }; } && |
---|
10223 | { ac_try='test -s conftest$ac_exeext' |
---|
10224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10225 | (eval $ac_try) 2>&5 |
---|
10226 | ac_status=$? |
---|
10227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10228 | (exit $ac_status); }; }; then |
---|
10229 | ac_cv_lib_dld_shl_load=yes |
---|
10230 | else |
---|
10231 | echo "$as_me: failed program was:" >&5 |
---|
10232 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10233 | |
---|
10234 | ac_cv_lib_dld_shl_load=no |
---|
10235 | fi |
---|
10236 | rm -f conftest.err conftest.$ac_objext \ |
---|
10237 | conftest$ac_exeext conftest.$ac_ext |
---|
10238 | LIBS=$ac_check_lib_save_LIBS |
---|
10239 | fi |
---|
10240 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
10241 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
---|
10242 | if test $ac_cv_lib_dld_shl_load = yes; then |
---|
10243 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
---|
10244 | else |
---|
10245 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
---|
10246 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
---|
10247 | if test "${ac_cv_func_dlopen+set}" = set; then |
---|
10248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10249 | else |
---|
10250 | cat >conftest.$ac_ext <<_ACEOF |
---|
10251 | /* confdefs.h. */ |
---|
10252 | _ACEOF |
---|
10253 | cat confdefs.h >>conftest.$ac_ext |
---|
10254 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10255 | /* end confdefs.h. */ |
---|
10256 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
---|
10257 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
10258 | #define dlopen innocuous_dlopen |
---|
10259 | |
---|
10260 | /* System header to define __stub macros and hopefully few prototypes, |
---|
10261 | which can conflict with char dlopen (); below. |
---|
10262 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10263 | <limits.h> exists even on freestanding compilers. */ |
---|
10264 | |
---|
10265 | #ifdef __STDC__ |
---|
10266 | # include <limits.h> |
---|
10267 | #else |
---|
10268 | # include <assert.h> |
---|
10269 | #endif |
---|
10270 | |
---|
10271 | #undef dlopen |
---|
10272 | |
---|
10273 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10274 | #ifdef __cplusplus |
---|
10275 | extern "C" |
---|
10276 | { |
---|
10277 | #endif |
---|
10278 | /* We use char because int might match the return type of a gcc2 |
---|
10279 | builtin and then its argument prototype would still apply. */ |
---|
10280 | char dlopen (); |
---|
10281 | /* The GNU C library defines this for functions which it implements |
---|
10282 | to always fail with ENOSYS. Some functions are actually named |
---|
10283 | something starting with __ and the normal name is an alias. */ |
---|
10284 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
---|
10285 | choke me |
---|
10286 | #else |
---|
10287 | char (*f) () = dlopen; |
---|
10288 | #endif |
---|
10289 | #ifdef __cplusplus |
---|
10290 | } |
---|
10291 | #endif |
---|
10292 | |
---|
10293 | int |
---|
10294 | main () |
---|
10295 | { |
---|
10296 | return f != dlopen; |
---|
10297 | ; |
---|
10298 | return 0; |
---|
10299 | } |
---|
10300 | _ACEOF |
---|
10301 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10303 | (eval $ac_link) 2>conftest.er1 |
---|
10304 | ac_status=$? |
---|
10305 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10306 | rm -f conftest.er1 |
---|
10307 | cat conftest.err >&5 |
---|
10308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10309 | (exit $ac_status); } && |
---|
10310 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10311 | || test ! -s conftest.err' |
---|
10312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10313 | (eval $ac_try) 2>&5 |
---|
10314 | ac_status=$? |
---|
10315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10316 | (exit $ac_status); }; } && |
---|
10317 | { ac_try='test -s conftest$ac_exeext' |
---|
10318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10319 | (eval $ac_try) 2>&5 |
---|
10320 | ac_status=$? |
---|
10321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10322 | (exit $ac_status); }; }; then |
---|
10323 | ac_cv_func_dlopen=yes |
---|
10324 | else |
---|
10325 | echo "$as_me: failed program was:" >&5 |
---|
10326 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10327 | |
---|
10328 | ac_cv_func_dlopen=no |
---|
10329 | fi |
---|
10330 | rm -f conftest.err conftest.$ac_objext \ |
---|
10331 | conftest$ac_exeext conftest.$ac_ext |
---|
10332 | fi |
---|
10333 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
---|
10334 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
---|
10335 | if test $ac_cv_func_dlopen = yes; then |
---|
10336 | lt_cv_dlopen="dlopen" |
---|
10337 | else |
---|
10338 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
10339 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
10340 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
10341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10342 | else |
---|
10343 | ac_check_lib_save_LIBS=$LIBS |
---|
10344 | LIBS="-ldl $LIBS" |
---|
10345 | cat >conftest.$ac_ext <<_ACEOF |
---|
10346 | /* confdefs.h. */ |
---|
10347 | _ACEOF |
---|
10348 | cat confdefs.h >>conftest.$ac_ext |
---|
10349 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10350 | /* end confdefs.h. */ |
---|
10351 | |
---|
10352 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10353 | #ifdef __cplusplus |
---|
10354 | extern "C" |
---|
10355 | #endif |
---|
10356 | /* We use char because int might match the return type of a gcc2 |
---|
10357 | builtin and then its argument prototype would still apply. */ |
---|
10358 | char dlopen (); |
---|
10359 | int |
---|
10360 | main () |
---|
10361 | { |
---|
10362 | dlopen (); |
---|
10363 | ; |
---|
10364 | return 0; |
---|
10365 | } |
---|
10366 | _ACEOF |
---|
10367 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10368 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10369 | (eval $ac_link) 2>conftest.er1 |
---|
10370 | ac_status=$? |
---|
10371 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10372 | rm -f conftest.er1 |
---|
10373 | cat conftest.err >&5 |
---|
10374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10375 | (exit $ac_status); } && |
---|
10376 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10377 | || test ! -s conftest.err' |
---|
10378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10379 | (eval $ac_try) 2>&5 |
---|
10380 | ac_status=$? |
---|
10381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10382 | (exit $ac_status); }; } && |
---|
10383 | { ac_try='test -s conftest$ac_exeext' |
---|
10384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10385 | (eval $ac_try) 2>&5 |
---|
10386 | ac_status=$? |
---|
10387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10388 | (exit $ac_status); }; }; then |
---|
10389 | ac_cv_lib_dl_dlopen=yes |
---|
10390 | else |
---|
10391 | echo "$as_me: failed program was:" >&5 |
---|
10392 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10393 | |
---|
10394 | ac_cv_lib_dl_dlopen=no |
---|
10395 | fi |
---|
10396 | rm -f conftest.err conftest.$ac_objext \ |
---|
10397 | conftest$ac_exeext conftest.$ac_ext |
---|
10398 | LIBS=$ac_check_lib_save_LIBS |
---|
10399 | fi |
---|
10400 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
10401 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
10402 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
10403 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
10404 | else |
---|
10405 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
---|
10406 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
---|
10407 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
---|
10408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10409 | else |
---|
10410 | ac_check_lib_save_LIBS=$LIBS |
---|
10411 | LIBS="-lsvld $LIBS" |
---|
10412 | cat >conftest.$ac_ext <<_ACEOF |
---|
10413 | /* confdefs.h. */ |
---|
10414 | _ACEOF |
---|
10415 | cat confdefs.h >>conftest.$ac_ext |
---|
10416 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10417 | /* end confdefs.h. */ |
---|
10418 | |
---|
10419 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10420 | #ifdef __cplusplus |
---|
10421 | extern "C" |
---|
10422 | #endif |
---|
10423 | /* We use char because int might match the return type of a gcc2 |
---|
10424 | builtin and then its argument prototype would still apply. */ |
---|
10425 | char dlopen (); |
---|
10426 | int |
---|
10427 | main () |
---|
10428 | { |
---|
10429 | dlopen (); |
---|
10430 | ; |
---|
10431 | return 0; |
---|
10432 | } |
---|
10433 | _ACEOF |
---|
10434 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10435 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10436 | (eval $ac_link) 2>conftest.er1 |
---|
10437 | ac_status=$? |
---|
10438 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10439 | rm -f conftest.er1 |
---|
10440 | cat conftest.err >&5 |
---|
10441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10442 | (exit $ac_status); } && |
---|
10443 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10444 | || test ! -s conftest.err' |
---|
10445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10446 | (eval $ac_try) 2>&5 |
---|
10447 | ac_status=$? |
---|
10448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10449 | (exit $ac_status); }; } && |
---|
10450 | { ac_try='test -s conftest$ac_exeext' |
---|
10451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10452 | (eval $ac_try) 2>&5 |
---|
10453 | ac_status=$? |
---|
10454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10455 | (exit $ac_status); }; }; then |
---|
10456 | ac_cv_lib_svld_dlopen=yes |
---|
10457 | else |
---|
10458 | echo "$as_me: failed program was:" >&5 |
---|
10459 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10460 | |
---|
10461 | ac_cv_lib_svld_dlopen=no |
---|
10462 | fi |
---|
10463 | rm -f conftest.err conftest.$ac_objext \ |
---|
10464 | conftest$ac_exeext conftest.$ac_ext |
---|
10465 | LIBS=$ac_check_lib_save_LIBS |
---|
10466 | fi |
---|
10467 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
---|
10468 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
---|
10469 | if test $ac_cv_lib_svld_dlopen = yes; then |
---|
10470 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
---|
10471 | else |
---|
10472 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
---|
10473 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
---|
10474 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
---|
10475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10476 | else |
---|
10477 | ac_check_lib_save_LIBS=$LIBS |
---|
10478 | LIBS="-ldld $LIBS" |
---|
10479 | cat >conftest.$ac_ext <<_ACEOF |
---|
10480 | /* confdefs.h. */ |
---|
10481 | _ACEOF |
---|
10482 | cat confdefs.h >>conftest.$ac_ext |
---|
10483 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10484 | /* end confdefs.h. */ |
---|
10485 | |
---|
10486 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10487 | #ifdef __cplusplus |
---|
10488 | extern "C" |
---|
10489 | #endif |
---|
10490 | /* We use char because int might match the return type of a gcc2 |
---|
10491 | builtin and then its argument prototype would still apply. */ |
---|
10492 | char dld_link (); |
---|
10493 | int |
---|
10494 | main () |
---|
10495 | { |
---|
10496 | dld_link (); |
---|
10497 | ; |
---|
10498 | return 0; |
---|
10499 | } |
---|
10500 | _ACEOF |
---|
10501 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10502 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10503 | (eval $ac_link) 2>conftest.er1 |
---|
10504 | ac_status=$? |
---|
10505 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10506 | rm -f conftest.er1 |
---|
10507 | cat conftest.err >&5 |
---|
10508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10509 | (exit $ac_status); } && |
---|
10510 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10511 | || test ! -s conftest.err' |
---|
10512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10513 | (eval $ac_try) 2>&5 |
---|
10514 | ac_status=$? |
---|
10515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10516 | (exit $ac_status); }; } && |
---|
10517 | { ac_try='test -s conftest$ac_exeext' |
---|
10518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10519 | (eval $ac_try) 2>&5 |
---|
10520 | ac_status=$? |
---|
10521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10522 | (exit $ac_status); }; }; then |
---|
10523 | ac_cv_lib_dld_dld_link=yes |
---|
10524 | else |
---|
10525 | echo "$as_me: failed program was:" >&5 |
---|
10526 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10527 | |
---|
10528 | ac_cv_lib_dld_dld_link=no |
---|
10529 | fi |
---|
10530 | rm -f conftest.err conftest.$ac_objext \ |
---|
10531 | conftest$ac_exeext conftest.$ac_ext |
---|
10532 | LIBS=$ac_check_lib_save_LIBS |
---|
10533 | fi |
---|
10534 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
---|
10535 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
---|
10536 | if test $ac_cv_lib_dld_dld_link = yes; then |
---|
10537 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
---|
10538 | fi |
---|
10539 | |
---|
10540 | |
---|
10541 | fi |
---|
10542 | |
---|
10543 | |
---|
10544 | fi |
---|
10545 | |
---|
10546 | |
---|
10547 | fi |
---|
10548 | |
---|
10549 | |
---|
10550 | fi |
---|
10551 | |
---|
10552 | |
---|
10553 | fi |
---|
10554 | |
---|
10555 | ;; |
---|
10556 | esac |
---|
10557 | |
---|
10558 | if test "x$lt_cv_dlopen" != xno; then |
---|
10559 | enable_dlopen=yes |
---|
10560 | else |
---|
10561 | enable_dlopen=no |
---|
10562 | fi |
---|
10563 | |
---|
10564 | case $lt_cv_dlopen in |
---|
10565 | dlopen) |
---|
10566 | save_CPPFLAGS="$CPPFLAGS" |
---|
10567 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
---|
10568 | |
---|
10569 | save_LDFLAGS="$LDFLAGS" |
---|
10570 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
---|
10571 | |
---|
10572 | save_LIBS="$LIBS" |
---|
10573 | LIBS="$lt_cv_dlopen_libs $LIBS" |
---|
10574 | |
---|
10575 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
---|
10576 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
---|
10577 | if test "${lt_cv_dlopen_self+set}" = set; then |
---|
10578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10579 | else |
---|
10580 | if test "$cross_compiling" = yes; then : |
---|
10581 | lt_cv_dlopen_self=cross |
---|
10582 | else |
---|
10583 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
10584 | lt_status=$lt_dlunknown |
---|
10585 | cat > conftest.$ac_ext <<EOF |
---|
10586 | #line 10586 "configure" |
---|
10587 | #include "confdefs.h" |
---|
10588 | |
---|
10589 | #if HAVE_DLFCN_H |
---|
10590 | #include <dlfcn.h> |
---|
10591 | #endif |
---|
10592 | |
---|
10593 | #include <stdio.h> |
---|
10594 | |
---|
10595 | #ifdef RTLD_GLOBAL |
---|
10596 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
10597 | #else |
---|
10598 | # ifdef DL_GLOBAL |
---|
10599 | # define LT_DLGLOBAL DL_GLOBAL |
---|
10600 | # else |
---|
10601 | # define LT_DLGLOBAL 0 |
---|
10602 | # endif |
---|
10603 | #endif |
---|
10604 | |
---|
10605 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
10606 | find out it does not work in some platform. */ |
---|
10607 | #ifndef LT_DLLAZY_OR_NOW |
---|
10608 | # ifdef RTLD_LAZY |
---|
10609 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
10610 | # else |
---|
10611 | # ifdef DL_LAZY |
---|
10612 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
10613 | # else |
---|
10614 | # ifdef RTLD_NOW |
---|
10615 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
10616 | # else |
---|
10617 | # ifdef DL_NOW |
---|
10618 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
10619 | # else |
---|
10620 | # define LT_DLLAZY_OR_NOW 0 |
---|
10621 | # endif |
---|
10622 | # endif |
---|
10623 | # endif |
---|
10624 | # endif |
---|
10625 | #endif |
---|
10626 | |
---|
10627 | #ifdef __cplusplus |
---|
10628 | extern "C" void exit (int); |
---|
10629 | #endif |
---|
10630 | |
---|
10631 | void fnord() { int i=42;} |
---|
10632 | int main () |
---|
10633 | { |
---|
10634 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
10635 | int status = $lt_dlunknown; |
---|
10636 | |
---|
10637 | if (self) |
---|
10638 | { |
---|
10639 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
10640 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
10641 | /* dlclose (self); */ |
---|
10642 | } |
---|
10643 | else |
---|
10644 | puts (dlerror ()); |
---|
10645 | |
---|
10646 | exit (status); |
---|
10647 | } |
---|
10648 | EOF |
---|
10649 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10650 | (eval $ac_link) 2>&5 |
---|
10651 | ac_status=$? |
---|
10652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10653 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
10654 | (./conftest; exit; ) >&5 2>/dev/null |
---|
10655 | lt_status=$? |
---|
10656 | case x$lt_status in |
---|
10657 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
---|
10658 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
---|
10659 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
---|
10660 | esac |
---|
10661 | else : |
---|
10662 | # compilation failed |
---|
10663 | lt_cv_dlopen_self=no |
---|
10664 | fi |
---|
10665 | fi |
---|
10666 | rm -fr conftest* |
---|
10667 | |
---|
10668 | |
---|
10669 | fi |
---|
10670 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
---|
10671 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
---|
10672 | |
---|
10673 | if test "x$lt_cv_dlopen_self" = xyes; then |
---|
10674 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
---|
10675 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
---|
10676 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
---|
10677 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
---|
10678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10679 | else |
---|
10680 | if test "$cross_compiling" = yes; then : |
---|
10681 | lt_cv_dlopen_self_static=cross |
---|
10682 | else |
---|
10683 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
10684 | lt_status=$lt_dlunknown |
---|
10685 | cat > conftest.$ac_ext <<EOF |
---|
10686 | #line 10686 "configure" |
---|
10687 | #include "confdefs.h" |
---|
10688 | |
---|
10689 | #if HAVE_DLFCN_H |
---|
10690 | #include <dlfcn.h> |
---|
10691 | #endif |
---|
10692 | |
---|
10693 | #include <stdio.h> |
---|
10694 | |
---|
10695 | #ifdef RTLD_GLOBAL |
---|
10696 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
10697 | #else |
---|
10698 | # ifdef DL_GLOBAL |
---|
10699 | # define LT_DLGLOBAL DL_GLOBAL |
---|
10700 | # else |
---|
10701 | # define LT_DLGLOBAL 0 |
---|
10702 | # endif |
---|
10703 | #endif |
---|
10704 | |
---|
10705 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
10706 | find out it does not work in some platform. */ |
---|
10707 | #ifndef LT_DLLAZY_OR_NOW |
---|
10708 | # ifdef RTLD_LAZY |
---|
10709 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
10710 | # else |
---|
10711 | # ifdef DL_LAZY |
---|
10712 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
10713 | # else |
---|
10714 | # ifdef RTLD_NOW |
---|
10715 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
10716 | # else |
---|
10717 | # ifdef DL_NOW |
---|
10718 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
10719 | # else |
---|
10720 | # define LT_DLLAZY_OR_NOW 0 |
---|
10721 | # endif |
---|
10722 | # endif |
---|
10723 | # endif |
---|
10724 | # endif |
---|
10725 | #endif |
---|
10726 | |
---|
10727 | #ifdef __cplusplus |
---|
10728 | extern "C" void exit (int); |
---|
10729 | #endif |
---|
10730 | |
---|
10731 | void fnord() { int i=42;} |
---|
10732 | int main () |
---|
10733 | { |
---|
10734 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
10735 | int status = $lt_dlunknown; |
---|
10736 | |
---|
10737 | if (self) |
---|
10738 | { |
---|
10739 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
10740 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
10741 | /* dlclose (self); */ |
---|
10742 | } |
---|
10743 | else |
---|
10744 | puts (dlerror ()); |
---|
10745 | |
---|
10746 | exit (status); |
---|
10747 | } |
---|
10748 | EOF |
---|
10749 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10750 | (eval $ac_link) 2>&5 |
---|
10751 | ac_status=$? |
---|
10752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10753 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
10754 | (./conftest; exit; ) >&5 2>/dev/null |
---|
10755 | lt_status=$? |
---|
10756 | case x$lt_status in |
---|
10757 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
10758 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
10759 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
---|
10760 | esac |
---|
10761 | else : |
---|
10762 | # compilation failed |
---|
10763 | lt_cv_dlopen_self_static=no |
---|
10764 | fi |
---|
10765 | fi |
---|
10766 | rm -fr conftest* |
---|
10767 | |
---|
10768 | |
---|
10769 | fi |
---|
10770 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
---|
10771 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
---|
10772 | fi |
---|
10773 | |
---|
10774 | CPPFLAGS="$save_CPPFLAGS" |
---|
10775 | LDFLAGS="$save_LDFLAGS" |
---|
10776 | LIBS="$save_LIBS" |
---|
10777 | ;; |
---|
10778 | esac |
---|
10779 | |
---|
10780 | case $lt_cv_dlopen_self in |
---|
10781 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
---|
10782 | *) enable_dlopen_self=unknown ;; |
---|
10783 | esac |
---|
10784 | |
---|
10785 | case $lt_cv_dlopen_self_static in |
---|
10786 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
---|
10787 | *) enable_dlopen_self_static=unknown ;; |
---|
10788 | esac |
---|
10789 | fi |
---|
10790 | |
---|
10791 | |
---|
10792 | # Report which library types will actually be built |
---|
10793 |
---|