1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.59 for ThirdPartyMumps 1.4.12. |
---|
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 2007-2009 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 Eclipse 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='ThirdPartyMumps' |
---|
431 | PACKAGE_TARNAME='thirdpartymumps' |
---|
432 | PACKAGE_VERSION='1.4.12' |
---|
433 | PACKAGE_STRING='ThirdPartyMumps 1.4.12' |
---|
434 | PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket' |
---|
435 | |
---|
436 | ac_unique_file="MUMPS/src/dmumps_part1.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 ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion MUMPS_SVN_REV 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 COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS CPP EGREP MY_DEFS LN_S 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 ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB 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 DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED MUMPS_CFLAGS MUMPS_LIBS MUMPS_PCLIBS MUMPS_PCREQUIRES MUMPS_DEPENDENCIES MUMPS_CFLAGS_INSTALLED MUMPS_LIBS_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE METIS_LIBS METIS_CFLAGS METIS_DATA METIS_DEPENDENCIES METIS_LIBS_INSTALLED METIS_CFLAGS_INSTALLED METIS_DATA_INSTALLED COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE MUMPSDIR MUMPSOBJDIR MUMPSSRCDIR MY_FDEFS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR 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 | ac_env_PKG_CONFIG_set=${PKG_CONFIG+set} |
---|
993 | ac_env_PKG_CONFIG_value=$PKG_CONFIG |
---|
994 | ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} |
---|
995 | ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG |
---|
996 | |
---|
997 | # |
---|
998 | # Report the --help message. |
---|
999 | # |
---|
1000 | if test "$ac_init_help" = "long"; then |
---|
1001 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1002 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1003 | cat <<_ACEOF |
---|
1004 | \`configure' configures ThirdPartyMumps 1.4.12 to adapt to many kinds of systems. |
---|
1005 | |
---|
1006 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1007 | |
---|
1008 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1009 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1010 | |
---|
1011 | Defaults for the options are specified in brackets. |
---|
1012 | |
---|
1013 | Configuration: |
---|
1014 | -h, --help display this help and exit |
---|
1015 | --help=short display options specific to this package |
---|
1016 | --help=recursive display the short help of all the included packages |
---|
1017 | -V, --version display version information and exit |
---|
1018 | -q, --quiet, --silent do not print \`checking...' messages |
---|
1019 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1020 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1021 | -n, --no-create do not create output files |
---|
1022 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1023 | |
---|
1024 | _ACEOF |
---|
1025 | |
---|
1026 | cat <<_ACEOF |
---|
1027 | Installation directories: |
---|
1028 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1029 | [$ac_default_prefix] |
---|
1030 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1031 | [PREFIX] |
---|
1032 | |
---|
1033 | By default, \`make install' will install all the files in |
---|
1034 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1035 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1036 | for instance \`--prefix=\$HOME'. |
---|
1037 | |
---|
1038 | For better control, use the options below. |
---|
1039 | |
---|
1040 | Fine tuning of the installation directories: |
---|
1041 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1042 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1043 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1044 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
1045 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1046 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1047 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1048 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1049 | --includedir=DIR C header files [PREFIX/include] |
---|
1050 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1051 | --infodir=DIR info documentation [PREFIX/info] |
---|
1052 | --mandir=DIR man documentation [PREFIX/man] |
---|
1053 | _ACEOF |
---|
1054 | |
---|
1055 | cat <<\_ACEOF |
---|
1056 | |
---|
1057 | Program names: |
---|
1058 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1059 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1060 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1061 | |
---|
1062 | System types: |
---|
1063 | --build=BUILD configure for building on BUILD [guessed] |
---|
1064 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1065 | _ACEOF |
---|
1066 | fi |
---|
1067 | |
---|
1068 | if test -n "$ac_init_help"; then |
---|
1069 | case $ac_init_help in |
---|
1070 | short | recursive ) echo "Configuration of ThirdPartyMumps 1.4.12:";; |
---|
1071 | esac |
---|
1072 | cat <<\_ACEOF |
---|
1073 | |
---|
1074 | Optional Features: |
---|
1075 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1076 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1077 | --enable-debug compile all projects with debug options tests |
---|
1078 | (implies --disable-shared) |
---|
1079 | --enable-debug-mumps compile project Mumps with debug compiler flags |
---|
1080 | |
---|
1081 | --enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin. |
---|
1082 | --disable-pthread-mumps disable use of pthread library |
---|
1083 | --enable-static[=PKGS] |
---|
1084 | build static libraries [default=no] |
---|
1085 | --disable-dependency-tracking speeds up one-time build |
---|
1086 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
1087 | --enable-maintainer-mode enable make rules and dependencies not useful |
---|
1088 | (and sometimes confusing) to the casual installer |
---|
1089 | --enable-shared[=PKGS] |
---|
1090 | build shared libraries [default=yes] |
---|
1091 | --enable-fast-install[=PKGS] |
---|
1092 | optimize for fast installation [default=yes] |
---|
1093 | --disable-libtool-lock avoid locking (might break parallel builds) |
---|
1094 | --disable-pkg-config disable use of pkg-config (if available) |
---|
1095 | --disable-interpackage-dependencies |
---|
1096 | disables deduction of Makefile dependencies from |
---|
1097 | package linker flags |
---|
1098 | |
---|
1099 | Optional Packages: |
---|
1100 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1101 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1102 | --with-mumps-verbosity specify the debug verbosity level for project Mumps |
---|
1103 | --with-mumps-checklevel specify the sanity check level for project Mumps |
---|
1104 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
---|
1105 | --with-pic try to use only PIC/non-PIC objects [default=use |
---|
1106 | both] |
---|
1107 | --with-tags[=TAGS] |
---|
1108 | include additional configurations [automatic] |
---|
1109 | --with-blas specify BLAS library (or BUILD to enforce use of |
---|
1110 | ThirdParty/Blas) |
---|
1111 | |
---|
1112 | --with-coin-instdir prefix of installation directory for precompiled |
---|
1113 | COIN packages |
---|
1114 | --with-blas-lib linker flags for using package Blas |
---|
1115 | --with-blas-incdir directory with header files for using package Blas |
---|
1116 | --with-blas-datadir directory with data files for using package Blas |
---|
1117 | --with-metis-lib linker flags for using package Metis |
---|
1118 | --with-metis-incdir directory with header files for using package Metis |
---|
1119 | --with-metis-datadir directory with data files for using package Metis |
---|
1120 | |
---|
1121 | Some influential environment variables: |
---|
1122 | CDEFS Additional -D flags to be used when compiling C code. |
---|
1123 | ADD_CFLAGS Additional C compiler options |
---|
1124 | DBG_CFLAGS Debug C compiler options |
---|
1125 | OPT_CFLAGS Optimize C compiler options |
---|
1126 | CC C compiler command |
---|
1127 | CFLAGS C compiler flags |
---|
1128 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1129 | nonstandard directory <lib dir> |
---|
1130 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
1131 | headers in a nonstandard directory <include dir> |
---|
1132 | MPICC C MPI Compiler |
---|
1133 | ADD_FFLAGS Additional Fortran compiler options |
---|
1134 | DBG_FFLAGS Debug Fortran compiler options |
---|
1135 | OPT_FFLAGS Optimize Fortran compiler options |
---|
1136 | F77 Fortran 77 compiler command |
---|
1137 | FFLAGS Fortran 77 compiler flags |
---|
1138 | MPIF77 Fortran MPI Compiler |
---|
1139 | CPP C preprocessor |
---|
1140 | CXX C++ compiler command |
---|
1141 | CXXFLAGS C++ compiler flags |
---|
1142 | CXXCPP C++ preprocessor |
---|
1143 | PKG_CONFIG path to pkg-config utility |
---|
1144 | |
---|
1145 | Use these variables to override the choices made by `configure' or to help |
---|
1146 | it to find libraries and programs with nonstandard names/locations. |
---|
1147 | |
---|
1148 | Report bugs to <http://projects.coin-or.org/BuildTools/newticket>. |
---|
1149 | _ACEOF |
---|
1150 | fi |
---|
1151 | |
---|
1152 | if test "$ac_init_help" = "recursive"; then |
---|
1153 | # If there are subdirs, report their specific --help. |
---|
1154 | ac_popdir=`pwd` |
---|
1155 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1156 | test -d $ac_dir || continue |
---|
1157 | ac_builddir=. |
---|
1158 | |
---|
1159 | if test "$ac_dir" != .; then |
---|
1160 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
1161 | # A "../" for each directory in $ac_dir_suffix. |
---|
1162 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
1163 | else |
---|
1164 | ac_dir_suffix= ac_top_builddir= |
---|
1165 | fi |
---|
1166 | |
---|
1167 | case $srcdir in |
---|
1168 | .) # No --srcdir option. We are building in place. |
---|
1169 | ac_srcdir=. |
---|
1170 | if test -z "$ac_top_builddir"; then |
---|
1171 | ac_top_srcdir=. |
---|
1172 | else |
---|
1173 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
1174 | fi ;; |
---|
1175 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
1176 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1177 | ac_top_srcdir=$srcdir ;; |
---|
1178 | *) # Relative path. |
---|
1179 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
1180 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
1181 | esac |
---|
1182 | |
---|
1183 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
1184 | # the directories may not exist. |
---|
1185 | case `pwd` in |
---|
1186 | .) ac_abs_builddir="$ac_dir";; |
---|
1187 | *) |
---|
1188 | case "$ac_dir" in |
---|
1189 | .) ac_abs_builddir=`pwd`;; |
---|
1190 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
1191 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
1192 | esac;; |
---|
1193 | esac |
---|
1194 | case $ac_abs_builddir in |
---|
1195 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
1196 | *) |
---|
1197 | case ${ac_top_builddir}. in |
---|
1198 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
1199 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
1200 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
1201 | esac;; |
---|
1202 | esac |
---|
1203 | case $ac_abs_builddir in |
---|
1204 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
1205 | *) |
---|
1206 | case $ac_srcdir in |
---|
1207 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
1208 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
1209 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
1210 | esac;; |
---|
1211 | esac |
---|
1212 | case $ac_abs_builddir in |
---|
1213 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
1214 | *) |
---|
1215 | case $ac_top_srcdir in |
---|
1216 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
1217 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
1218 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
1219 | esac;; |
---|
1220 | esac |
---|
1221 | |
---|
1222 | cd $ac_dir |
---|
1223 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
1224 | if test -f $ac_srcdir/configure.gnu; then |
---|
1225 | echo |
---|
1226 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
1227 | elif test -f $ac_srcdir/configure; then |
---|
1228 | echo |
---|
1229 | $SHELL $ac_srcdir/configure --help=recursive |
---|
1230 | elif test -f $ac_srcdir/configure.ac || |
---|
1231 | test -f $ac_srcdir/configure.in; then |
---|
1232 | echo |
---|
1233 | $ac_configure --help |
---|
1234 | else |
---|
1235 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1236 | fi |
---|
1237 | cd $ac_popdir |
---|
1238 | done |
---|
1239 | fi |
---|
1240 | |
---|
1241 | test -n "$ac_init_help" && exit 0 |
---|
1242 | if $ac_init_version; then |
---|
1243 | cat <<\_ACEOF |
---|
1244 | ThirdPartyMumps configure 1.4.12 |
---|
1245 | generated by GNU Autoconf 2.59 |
---|
1246 | |
---|
1247 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
1248 | This configure script is free software; the Free Software Foundation |
---|
1249 | gives unlimited permission to copy, distribute and modify it. |
---|
1250 | |
---|
1251 | |
---|
1252 | Copyright 2007-2009 International Business Machines and others. |
---|
1253 | All Rights Reserved. |
---|
1254 | This file is part of the open source package Coin which is distributed |
---|
1255 | under the Eclipse Public License. |
---|
1256 | _ACEOF |
---|
1257 | exit 0 |
---|
1258 | fi |
---|
1259 | exec 5>config.log |
---|
1260 | cat >&5 <<_ACEOF |
---|
1261 | This file contains any messages produced by compilers while |
---|
1262 | running configure, to aid debugging if configure makes a mistake. |
---|
1263 | |
---|
1264 | It was created by ThirdPartyMumps $as_me 1.4.12, which was |
---|
1265 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
1266 | |
---|
1267 | $ $0 $@ |
---|
1268 | |
---|
1269 | _ACEOF |
---|
1270 | { |
---|
1271 | cat <<_ASUNAME |
---|
1272 | ## --------- ## |
---|
1273 | ## Platform. ## |
---|
1274 | ## --------- ## |
---|
1275 | |
---|
1276 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1277 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1278 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1279 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1280 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1281 | |
---|
1282 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1283 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1284 | |
---|
1285 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1286 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1287 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1288 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1289 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1290 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1291 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1292 | |
---|
1293 | _ASUNAME |
---|
1294 | |
---|
1295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1296 | for as_dir in $PATH |
---|
1297 | do |
---|
1298 | IFS=$as_save_IFS |
---|
1299 | test -z "$as_dir" && as_dir=. |
---|
1300 | echo "PATH: $as_dir" |
---|
1301 | done |
---|
1302 | |
---|
1303 | } >&5 |
---|
1304 | |
---|
1305 | cat >&5 <<_ACEOF |
---|
1306 | |
---|
1307 | |
---|
1308 | ## ----------- ## |
---|
1309 | ## Core tests. ## |
---|
1310 | ## ----------- ## |
---|
1311 | |
---|
1312 | _ACEOF |
---|
1313 | |
---|
1314 | |
---|
1315 | # Keep a trace of the command line. |
---|
1316 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1317 | # Strip out --silent because we don't want to record it for future runs. |
---|
1318 | # Also quote any args containing shell meta-characters. |
---|
1319 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1320 | ac_configure_args= |
---|
1321 | ac_configure_args0= |
---|
1322 | ac_configure_args1= |
---|
1323 | ac_sep= |
---|
1324 | ac_must_keep_next=false |
---|
1325 | for ac_pass in 1 2 |
---|
1326 | do |
---|
1327 | for ac_arg |
---|
1328 | do |
---|
1329 | case $ac_arg in |
---|
1330 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1331 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1332 | | -silent | --silent | --silen | --sile | --sil) |
---|
1333 | continue ;; |
---|
1334 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1335 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1336 | esac |
---|
1337 | case $ac_pass in |
---|
1338 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1339 | 2) |
---|
1340 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1341 | if test $ac_must_keep_next = true; then |
---|
1342 | ac_must_keep_next=false # Got value, back to normal. |
---|
1343 | else |
---|
1344 | case $ac_arg in |
---|
1345 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1346 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1347 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1348 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1349 | case "$ac_configure_args0 " in |
---|
1350 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1351 | esac |
---|
1352 | ;; |
---|
1353 | -* ) ac_must_keep_next=true ;; |
---|
1354 | esac |
---|
1355 | fi |
---|
1356 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1357 | # Get rid of the leading space. |
---|
1358 | ac_sep=" " |
---|
1359 | ;; |
---|
1360 | esac |
---|
1361 | done |
---|
1362 | done |
---|
1363 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1364 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1365 | |
---|
1366 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1367 | # config.log. We remove comments because anyway the quotes in there |
---|
1368 | # would cause problems or look ugly. |
---|
1369 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1370 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1371 | trap 'exit_status=$? |
---|
1372 | # Save into config.log some information that might help in debugging. |
---|
1373 | { |
---|
1374 | echo |
---|
1375 | |
---|
1376 | cat <<\_ASBOX |
---|
1377 | ## ---------------- ## |
---|
1378 | ## Cache variables. ## |
---|
1379 | ## ---------------- ## |
---|
1380 | _ASBOX |
---|
1381 | echo |
---|
1382 | # The following way of writing the cache mishandles newlines in values, |
---|
1383 | { |
---|
1384 | (set) 2>&1 | |
---|
1385 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1386 | *ac_space=\ *) |
---|
1387 | sed -n \ |
---|
1388 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1389 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1390 | ;; |
---|
1391 | *) |
---|
1392 | sed -n \ |
---|
1393 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1394 | ;; |
---|
1395 | esac; |
---|
1396 | } |
---|
1397 | echo |
---|
1398 | |
---|
1399 | cat <<\_ASBOX |
---|
1400 | ## ----------------- ## |
---|
1401 | ## Output variables. ## |
---|
1402 | ## ----------------- ## |
---|
1403 | _ASBOX |
---|
1404 | echo |
---|
1405 | for ac_var in $ac_subst_vars |
---|
1406 | do |
---|
1407 | eval ac_val=$`echo $ac_var` |
---|
1408 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1409 | done | sort |
---|
1410 | echo |
---|
1411 | |
---|
1412 | if test -n "$ac_subst_files"; then |
---|
1413 | cat <<\_ASBOX |
---|
1414 | ## ------------- ## |
---|
1415 | ## Output files. ## |
---|
1416 | ## ------------- ## |
---|
1417 | _ASBOX |
---|
1418 | echo |
---|
1419 | for ac_var in $ac_subst_files |
---|
1420 | do |
---|
1421 | eval ac_val=$`echo $ac_var` |
---|
1422 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1423 | done | sort |
---|
1424 | echo |
---|
1425 | fi |
---|
1426 | |
---|
1427 | if test -s confdefs.h; then |
---|
1428 | cat <<\_ASBOX |
---|
1429 | ## ----------- ## |
---|
1430 | ## confdefs.h. ## |
---|
1431 | ## ----------- ## |
---|
1432 | _ASBOX |
---|
1433 | echo |
---|
1434 | sed "/^$/d" confdefs.h | sort |
---|
1435 | echo |
---|
1436 | fi |
---|
1437 | test "$ac_signal" != 0 && |
---|
1438 | echo "$as_me: caught signal $ac_signal" |
---|
1439 | echo "$as_me: exit $exit_status" |
---|
1440 | } >&5 |
---|
1441 | rm -f core *.core && |
---|
1442 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1443 | exit $exit_status |
---|
1444 | ' 0 |
---|
1445 | for ac_signal in 1 2 13 15; do |
---|
1446 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1447 | done |
---|
1448 | ac_signal=0 |
---|
1449 | |
---|
1450 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1451 | rm -rf conftest* confdefs.h |
---|
1452 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1453 | echo >confdefs.h |
---|
1454 | |
---|
1455 | # Predefined preprocessor variables. |
---|
1456 | |
---|
1457 | cat >>confdefs.h <<_ACEOF |
---|
1458 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1459 | _ACEOF |
---|
1460 | |
---|
1461 | |
---|
1462 | cat >>confdefs.h <<_ACEOF |
---|
1463 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1464 | _ACEOF |
---|
1465 | |
---|
1466 | |
---|
1467 | cat >>confdefs.h <<_ACEOF |
---|
1468 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1469 | _ACEOF |
---|
1470 | |
---|
1471 | |
---|
1472 | cat >>confdefs.h <<_ACEOF |
---|
1473 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1474 | _ACEOF |
---|
1475 | |
---|
1476 | |
---|
1477 | cat >>confdefs.h <<_ACEOF |
---|
1478 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1479 | _ACEOF |
---|
1480 | |
---|
1481 | |
---|
1482 | # Let the site file select an alternate cache file if it wants to. |
---|
1483 | # Prefer explicitly selected file to automatically selected ones. |
---|
1484 | if test -z "$CONFIG_SITE"; then |
---|
1485 | if test "x$prefix" != xNONE; then |
---|
1486 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1487 | else |
---|
1488 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1489 | fi |
---|
1490 | fi |
---|
1491 | for ac_site_file in $CONFIG_SITE; do |
---|
1492 | if test -r "$ac_site_file"; then |
---|
1493 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1494 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1495 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1496 | . "$ac_site_file" |
---|
1497 | fi |
---|
1498 | done |
---|
1499 | |
---|
1500 | if test -r "$cache_file"; then |
---|
1501 | # Some versions of bash will fail to source /dev/null (special |
---|
1502 | # files actually), so we avoid doing that. |
---|
1503 | if test -f "$cache_file"; then |
---|
1504 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1505 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1506 | case $cache_file in |
---|
1507 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1508 | *) . ./$cache_file;; |
---|
1509 | esac |
---|
1510 | fi |
---|
1511 | else |
---|
1512 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1513 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1514 | >$cache_file |
---|
1515 | fi |
---|
1516 | |
---|
1517 | # Check that the precious variables saved in the cache have kept the same |
---|
1518 | # value. |
---|
1519 | ac_cache_corrupted=false |
---|
1520 | for ac_var in `(set) 2>&1 | |
---|
1521 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1522 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1523 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1524 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1525 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1526 | case $ac_old_set,$ac_new_set in |
---|
1527 | set,) |
---|
1528 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1529 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1530 | ac_cache_corrupted=: ;; |
---|
1531 | ,set) |
---|
1532 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1533 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1534 | ac_cache_corrupted=: ;; |
---|
1535 | ,);; |
---|
1536 | *) |
---|
1537 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1538 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1539 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1540 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1541 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1542 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1543 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1544 | ac_cache_corrupted=: |
---|
1545 | fi;; |
---|
1546 | esac |
---|
1547 | # Pass precious variables to config.status. |
---|
1548 | if test "$ac_new_set" = set; then |
---|
1549 | case $ac_new_val in |
---|
1550 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1551 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1552 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1553 | esac |
---|
1554 | case " $ac_configure_args " in |
---|
1555 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1556 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1557 | esac |
---|
1558 | fi |
---|
1559 | done |
---|
1560 | if $ac_cache_corrupted; then |
---|
1561 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1562 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1563 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1564 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1565 | { (exit 1); exit 1; }; } |
---|
1566 | fi |
---|
1567 | |
---|
1568 | ac_ext=c |
---|
1569 | ac_cpp='$CPP $CPPFLAGS' |
---|
1570 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1571 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1572 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1573 | |
---|
1574 | |
---|
1575 | |
---|
1576 | |
---|
1577 | |
---|
1578 | |
---|
1579 | |
---|
1580 | |
---|
1581 | |
---|
1582 | |
---|
1583 | |
---|
1584 | |
---|
1585 | |
---|
1586 | |
---|
1587 | |
---|
1588 | |
---|
1589 | |
---|
1590 | |
---|
1591 | |
---|
1592 | |
---|
1593 | |
---|
1594 | |
---|
1595 | |
---|
1596 | |
---|
1597 | |
---|
1598 | |
---|
1599 | |
---|
1600 | |
---|
1601 | |
---|
1602 | |
---|
1603 | # List one file in the package so that the configure script can test |
---|
1604 | # whether the package is actually there |
---|
1605 | |
---|
1606 | |
---|
1607 | # Where should everything be installed by default? Here, we want it |
---|
1608 | # to be installed directly in 'bin', 'lib', 'include' subdirectories |
---|
1609 | # of the directory where configure is run. The default would be |
---|
1610 | # /usr/local. |
---|
1611 | |
---|
1612 | |
---|
1613 | |
---|
1614 | # As backup, we make sure we don't loose an FLIBS if it has been set |
---|
1615 | # by the user |
---|
1616 | save_FLIBS="$FLIBS" |
---|
1617 | |
---|
1618 | # A useful makefile conditional that is always false |
---|
1619 | |
---|
1620 | |
---|
1621 | if false; then |
---|
1622 | ALWAYS_FALSE_TRUE= |
---|
1623 | ALWAYS_FALSE_FALSE='#' |
---|
1624 | else |
---|
1625 | ALWAYS_FALSE_TRUE='#' |
---|
1626 | ALWAYS_FALSE_FALSE= |
---|
1627 | fi |
---|
1628 | |
---|
1629 | |
---|
1630 | # We set the following variable so that we know later in AC_COIN_FINALIZE |
---|
1631 | # that we are in a project main directory |
---|
1632 | coin_projectdir=yes |
---|
1633 | |
---|
1634 | # Set the project's version numbers |
---|
1635 | |
---|
1636 | |
---|
1637 | cat >>confdefs.h <<_ACEOF |
---|
1638 | #define MUMPS_VERSION "$PACKAGE_VERSION" |
---|
1639 | _ACEOF |
---|
1640 | |
---|
1641 | |
---|
1642 | coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'` |
---|
1643 | coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'` |
---|
1644 | coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'` |
---|
1645 | if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi |
---|
1646 | if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi |
---|
1647 | if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi |
---|
1648 | |
---|
1649 | cat >>confdefs.h <<_ACEOF |
---|
1650 | #define MUMPS_VERSION_MAJOR $coin_majorver |
---|
1651 | _ACEOF |
---|
1652 | |
---|
1653 | |
---|
1654 | cat >>confdefs.h <<_ACEOF |
---|
1655 | #define MUMPS_VERSION_MINOR $coin_minorver |
---|
1656 | _ACEOF |
---|
1657 | |
---|
1658 | |
---|
1659 | cat >>confdefs.h <<_ACEOF |
---|
1660 | #define MUMPS_VERSION_RELEASE $coin_releasever |
---|
1661 | _ACEOF |
---|
1662 | |
---|
1663 | |
---|
1664 | # We use the following variable to have a string with the upper case |
---|
1665 | # version of the project name |
---|
1666 | COIN_PRJCT=MUMPS |
---|
1667 | |
---|
1668 | # Set the project's SVN revision number. The complicated sed expression |
---|
1669 | # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up |
---|
1670 | # as a single number. |
---|
1671 | # Extract the first word of "svnversion", so it can be a program name with args. |
---|
1672 | set dummy svnversion; ac_word=$2 |
---|
1673 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1674 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1675 | if test "${ac_cv_prog_have_svnversion+set}" = set; then |
---|
1676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1677 | else |
---|
1678 | if test -n "$have_svnversion"; then |
---|
1679 | ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test. |
---|
1680 | else |
---|
1681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1682 | for as_dir in $PATH |
---|
1683 | do |
---|
1684 | IFS=$as_save_IFS |
---|
1685 | test -z "$as_dir" && as_dir=. |
---|
1686 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1687 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1688 | ac_cv_prog_have_svnversion="yes" |
---|
1689 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1690 | break 2 |
---|
1691 | fi |
---|
1692 | done |
---|
1693 | done |
---|
1694 | |
---|
1695 | test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no" |
---|
1696 | fi |
---|
1697 | fi |
---|
1698 | have_svnversion=$ac_cv_prog_have_svnversion |
---|
1699 | if test -n "$have_svnversion"; then |
---|
1700 | echo "$as_me:$LINENO: result: $have_svnversion" >&5 |
---|
1701 | echo "${ECHO_T}$have_svnversion" >&6 |
---|
1702 | else |
---|
1703 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1704 | echo "${ECHO_T}no" >&6 |
---|
1705 | fi |
---|
1706 | |
---|
1707 | if test "x$have_svnversion" = xyes; then |
---|
1708 | |
---|
1709 | svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null` |
---|
1710 | if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then |
---|
1711 | MUMPS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'` |
---|
1712 | |
---|
1713 | cat >>confdefs.h <<_ACEOF |
---|
1714 | #define MUMPS_SVN_REV $MUMPS_SVN_REV |
---|
1715 | _ACEOF |
---|
1716 | |
---|
1717 | fi |
---|
1718 | fi |
---|
1719 | |
---|
1720 | |
---|
1721 | |
---|
1722 | # Capture libtool library version, if given. |
---|
1723 | coin_libversion=5:12:4 |
---|
1724 | |
---|
1725 | |
---|
1726 | |
---|
1727 | |
---|
1728 | ############################################################################# |
---|
1729 | # Standard build tool stuff # |
---|
1730 | ############################################################################# |
---|
1731 | |
---|
1732 | # Get the system type |
---|
1733 | ac_aux_dir= |
---|
1734 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1735 | if test -f $ac_dir/install-sh; then |
---|
1736 | ac_aux_dir=$ac_dir |
---|
1737 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1738 | break |
---|
1739 | elif test -f $ac_dir/install.sh; then |
---|
1740 | ac_aux_dir=$ac_dir |
---|
1741 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1742 | break |
---|
1743 | elif test -f $ac_dir/shtool; then |
---|
1744 | ac_aux_dir=$ac_dir |
---|
1745 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1746 | break |
---|
1747 | fi |
---|
1748 | done |
---|
1749 | if test -z "$ac_aux_dir"; then |
---|
1750 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1751 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1752 | { (exit 1); exit 1; }; } |
---|
1753 | fi |
---|
1754 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1755 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1756 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1757 | |
---|
1758 | # Make sure we can run config.sub. |
---|
1759 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1760 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1761 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1762 | { (exit 1); exit 1; }; } |
---|
1763 | |
---|
1764 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1765 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1766 | if test "${ac_cv_build+set}" = set; then |
---|
1767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1768 | else |
---|
1769 | ac_cv_build_alias=$build_alias |
---|
1770 | test -z "$ac_cv_build_alias" && |
---|
1771 | ac_cv_build_alias=`$ac_config_guess` |
---|
1772 | test -z "$ac_cv_build_alias" && |
---|
1773 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1774 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1775 | { (exit 1); exit 1; }; } |
---|
1776 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1777 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1778 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1779 | { (exit 1); exit 1; }; } |
---|
1780 | |
---|
1781 | fi |
---|
1782 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1783 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1784 | build=$ac_cv_build |
---|
1785 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1786 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1787 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1788 | |
---|
1789 | |
---|
1790 | |
---|
1791 | #turn off warnings and pedantic mode since they could make trouble on some platforms, |
---|
1792 | #and we couldn't fix them anyway |
---|
1793 | coin_skip_warn_cflags=yes |
---|
1794 | coin_skip_warn_fflags=yes |
---|
1795 | |
---|
1796 | # Check if user wants to produce debugging code |
---|
1797 | |
---|
1798 | echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5 |
---|
1799 | echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6 |
---|
1800 | |
---|
1801 | # Check whether --enable-debug or --disable-debug was given. |
---|
1802 | if test "${enable_debug+set}" = set; then |
---|
1803 | enableval="$enable_debug" |
---|
1804 | case "${enableval}" in |
---|
1805 | yes) coin_debug_compile=true |
---|
1806 | if test "${enable_shared+set}" = set; then :; else |
---|
1807 | enable_shared=no |
---|
1808 | fi |
---|
1809 | ;; |
---|
1810 | no) coin_debug_compile=false |
---|
1811 | ;; |
---|
1812 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 |
---|
1813 | echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} |
---|
1814 | { (exit 1); exit 1; }; } |
---|
1815 | ;; |
---|
1816 | esac |
---|
1817 | else |
---|
1818 | coin_debug_compile=false |
---|
1819 | fi; |
---|
1820 | |
---|
1821 | # Check whether --enable-debug-mumps or --disable-debug-mumps was given. |
---|
1822 | if test "${enable_debug_mumps+set}" = set; then |
---|
1823 | enableval="$enable_debug_mumps" |
---|
1824 | case "${enableval}" in |
---|
1825 | yes) coin_debug_compile=true |
---|
1826 | ;; |
---|
1827 | no) coin_debug_compile=false |
---|
1828 | ;; |
---|
1829 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-mumps" >&5 |
---|
1830 | echo "$as_me: error: bad value ${enableval} for --enable-debug-mumps" >&2;} |
---|
1831 | { (exit 1); exit 1; }; } |
---|
1832 | ;; |
---|
1833 | esac |
---|
1834 | else |
---|
1835 | : |
---|
1836 | fi; |
---|
1837 | |
---|
1838 | # m4_ifvaln([Mumps], |
---|
1839 | |
---|
1840 | if test $coin_debug_compile = true; then |
---|
1841 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1842 | echo "${ECHO_T}yes" >&6 |
---|
1843 | else |
---|
1844 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1845 | echo "${ECHO_T}no" >&6 |
---|
1846 | fi |
---|
1847 | |
---|
1848 | |
---|
1849 | # Check whether --with-mumps-verbosity or --without-mumps-verbosity was given. |
---|
1850 | if test "${with_mumps_verbosity+set}" = set; then |
---|
1851 | withval="$with_mumps_verbosity" |
---|
1852 | if test "$withval" = yes; then |
---|
1853 | withval=1 |
---|
1854 | fi |
---|
1855 | coin_mumps_verbosity=$withval |
---|
1856 | else |
---|
1857 | coin_mumps_verbosity=0 |
---|
1858 | fi; |
---|
1859 | |
---|
1860 | cat >>confdefs.h <<_ACEOF |
---|
1861 | #define COIN_MUMPS_VERBOSITY $coin_mumps_verbosity |
---|
1862 | _ACEOF |
---|
1863 | |
---|
1864 | |
---|
1865 | |
---|
1866 | # Check whether --with-mumps-checklevel or --without-mumps-checklevel was given. |
---|
1867 | if test "${with_mumps_checklevel+set}" = set; then |
---|
1868 | withval="$with_mumps_checklevel" |
---|
1869 | if test "$withval" = yes; then |
---|
1870 | withval=1 |
---|
1871 | fi |
---|
1872 | coin_mumps_checklevel=$withval |
---|
1873 | else |
---|
1874 | coin_mumps_checklevel=0 |
---|
1875 | fi; |
---|
1876 | |
---|
1877 | cat >>confdefs.h <<_ACEOF |
---|
1878 | #define COIN_MUMPS_CHECKLEVEL $coin_mumps_checklevel |
---|
1879 | _ACEOF |
---|
1880 | |
---|
1881 | |
---|
1882 | # m4_ifvaln([Mumps], |
---|
1883 | |
---|
1884 | |
---|
1885 | |
---|
1886 | # Get the name of the C compiler |
---|
1887 | |
---|
1888 | |
---|
1889 | # for backward compatibility |
---|
1890 | # Check whether --enable-doscompile or --disable-doscompile was given. |
---|
1891 | if test "${enable_doscompile+set}" = set; then |
---|
1892 | enableval="$enable_doscompile" |
---|
1893 | enable_doscompile=$enableval |
---|
1894 | else |
---|
1895 | enable_doscompile=no |
---|
1896 | fi; |
---|
1897 | |
---|
1898 | # Check whether --enable-msvc or --disable-msvc was given. |
---|
1899 | if test "${enable_msvc+set}" = set; then |
---|
1900 | enableval="$enable_msvc" |
---|
1901 | enable_msvc=$enableval |
---|
1902 | else |
---|
1903 | enable_msvc=no |
---|
1904 | if test "$enable_doscompile" = msvc ; then |
---|
1905 | enable_msvc=yes |
---|
1906 | elif test "$enable_doscompile" != no ; then |
---|
1907 | { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5 |
---|
1908 | echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;} |
---|
1909 | { (exit 1); exit 1; }; } |
---|
1910 | fi |
---|
1911 | |
---|
1912 | fi; |
---|
1913 | |
---|
1914 | if test "$enable_msvc" = MD; then |
---|
1915 | enable_shared=yes |
---|
1916 | enable_msvc=yes |
---|
1917 | fi |
---|
1918 | |
---|
1919 | if test "$enable_msvc" = yes; then |
---|
1920 | case $build in |
---|
1921 | *-cygwin* | *-mingw*) ;; |
---|
1922 | *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5 |
---|
1923 | echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;} |
---|
1924 | { (exit 1); exit 1; }; } ;; |
---|
1925 | esac |
---|
1926 | fi |
---|
1927 | |
---|
1928 | |
---|
1929 | case $build in |
---|
1930 | *-mingw*) |
---|
1931 | if test "${LD+set}" = set; then :; else |
---|
1932 | LD=link |
---|
1933 | fi |
---|
1934 | ;; |
---|
1935 | esac |
---|
1936 | if test $enable_msvc = yes ; then |
---|
1937 | if test "x${LD+set}" = xset; then :; else |
---|
1938 | LD=link |
---|
1939 | fi |
---|
1940 | fi |
---|
1941 | |
---|
1942 | |
---|
1943 | |
---|
1944 | |
---|
1945 | ac_ext=c |
---|
1946 | ac_cpp='$CPP $CPPFLAGS' |
---|
1947 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1948 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1949 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1950 | |
---|
1951 | |
---|
1952 | # For consistency, we set the C compiler to the same value of the C++ |
---|
1953 | # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl) |
---|
1954 | if test x"$CXX" != x; then |
---|
1955 | case "$CXX" in |
---|
1956 | clang* ) ;; |
---|
1957 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
1958 | if test x"$CC" = x; then |
---|
1959 | CC="$CXX" |
---|
1960 | { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5 |
---|
1961 | echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;} |
---|
1962 | fi |
---|
1963 | ;; |
---|
1964 | esac |
---|
1965 | fi |
---|
1966 | |
---|
1967 | |
---|
1968 | |
---|
1969 | |
---|
1970 | |
---|
1971 | |
---|
1972 | coin_has_cc=yes |
---|
1973 | |
---|
1974 | save_cflags="$CFLAGS" |
---|
1975 | |
---|
1976 | # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list. |
---|
1977 | # Depending on the user's PATH, when Studio/Workshop cc is not present we may |
---|
1978 | # find /usr/ucb/cc, which is almost certainly not a good choice for the C |
---|
1979 | # compiler. In this case, put cc after gcc. |
---|
1980 | |
---|
1981 | case $build in |
---|
1982 | *-cygwin* | *-mingw*) |
---|
1983 | if test "$enable_msvc" = yes ; then |
---|
1984 | comps="icl cl gcc" |
---|
1985 | else |
---|
1986 | comps="gcc icl cl" |
---|
1987 | fi ;; |
---|
1988 | *-*-solaris*) |
---|
1989 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1990 | set dummy cc; ac_word=$2 |
---|
1991 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1992 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1993 | if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then |
---|
1994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1995 | else |
---|
1996 | if test -n "$sol_cc_compiler"; then |
---|
1997 | ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test. |
---|
1998 | else |
---|
1999 | ac_prog_rejected=no |
---|
2000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2001 | for as_dir in $PATH |
---|
2002 | do |
---|
2003 | IFS=$as_save_IFS |
---|
2004 | test -z "$as_dir" && as_dir=. |
---|
2005 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2006 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2007 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2008 | ac_prog_rejected=yes |
---|
2009 | continue |
---|
2010 | fi |
---|
2011 | ac_cv_prog_sol_cc_compiler="cc" |
---|
2012 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2013 | break 2 |
---|
2014 | fi |
---|
2015 | done |
---|
2016 | done |
---|
2017 | |
---|
2018 | if test $ac_prog_rejected = yes; then |
---|
2019 | # We found a bogon in the path, so make sure we never use it. |
---|
2020 | set dummy $ac_cv_prog_sol_cc_compiler |
---|
2021 | shift |
---|
2022 | if test $# != 0; then |
---|
2023 | # We chose a different compiler from the bogus one. |
---|
2024 | # However, it has the same basename, so the bogon will be chosen |
---|
2025 | # first if we set sol_cc_compiler to just the basename; use the full file name. |
---|
2026 | shift |
---|
2027 | ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@" |
---|
2028 | fi |
---|
2029 | fi |
---|
2030 | fi |
---|
2031 | fi |
---|
2032 | sol_cc_compiler=$ac_cv_prog_sol_cc_compiler |
---|
2033 | if test -n "$sol_cc_compiler"; then |
---|
2034 | echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5 |
---|
2035 | echo "${ECHO_T}$sol_cc_compiler" >&6 |
---|
2036 | else |
---|
2037 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2038 | echo "${ECHO_T}no" >&6 |
---|
2039 | fi |
---|
2040 | |
---|
2041 | if test "$sol_cc_compiler" = "cc" ; then |
---|
2042 | comps="cc xlc gcc pgcc icc" |
---|
2043 | else |
---|
2044 | comps="xlc gcc pgcc icc cc" |
---|
2045 | fi |
---|
2046 | ;; |
---|
2047 | *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;; |
---|
2048 | *-linux-*) comps="xlc gcc cc pgcc icc" ;; |
---|
2049 | *) comps="xlc_r xlc cc gcc pgcc icc" ;; |
---|
2050 | esac |
---|
2051 | |
---|
2052 | # We delete the cached value, since the test might not have been |
---|
2053 | # performed with our choice of compilers earlier |
---|
2054 | $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; } |
---|
2055 | # AC_MSG_NOTICE([C compiler candidates: $comps]) |
---|
2056 | ac_ext=c |
---|
2057 | ac_cpp='$CPP $CPPFLAGS' |
---|
2058 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2059 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2060 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2061 | if test -n "$ac_tool_prefix"; then |
---|
2062 | for ac_prog in $comps |
---|
2063 | do |
---|
2064 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2065 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2066 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2067 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2068 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2070 | else |
---|
2071 | if test -n "$CC"; then |
---|
2072 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2073 | else |
---|
2074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2075 | for as_dir in $PATH |
---|
2076 | do |
---|
2077 | IFS=$as_save_IFS |
---|
2078 | test -z "$as_dir" && as_dir=. |
---|
2079 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2080 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2081 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2082 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2083 | break 2 |
---|
2084 | fi |
---|
2085 | done |
---|
2086 | done |
---|
2087 | |
---|
2088 | fi |
---|
2089 | fi |
---|
2090 | CC=$ac_cv_prog_CC |
---|
2091 | if test -n "$CC"; then |
---|
2092 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2093 | echo "${ECHO_T}$CC" >&6 |
---|
2094 | else |
---|
2095 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2096 | echo "${ECHO_T}no" >&6 |
---|
2097 | fi |
---|
2098 | |
---|
2099 | test -n "$CC" && break |
---|
2100 | done |
---|
2101 | fi |
---|
2102 | if test -z "$CC"; then |
---|
2103 | ac_ct_CC=$CC |
---|
2104 | for ac_prog in $comps |
---|
2105 | do |
---|
2106 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2107 | set dummy $ac_prog; ac_word=$2 |
---|
2108 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2109 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2110 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2112 | else |
---|
2113 | if test -n "$ac_ct_CC"; then |
---|
2114 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2115 | else |
---|
2116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2117 | for as_dir in $PATH |
---|
2118 | do |
---|
2119 | IFS=$as_save_IFS |
---|
2120 | test -z "$as_dir" && as_dir=. |
---|
2121 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2122 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2123 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2124 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2125 | break 2 |
---|
2126 | fi |
---|
2127 | done |
---|
2128 | done |
---|
2129 | |
---|
2130 | fi |
---|
2131 | fi |
---|
2132 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2133 | if test -n "$ac_ct_CC"; then |
---|
2134 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2135 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2136 | else |
---|
2137 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2138 | echo "${ECHO_T}no" >&6 |
---|
2139 | fi |
---|
2140 | |
---|
2141 | test -n "$ac_ct_CC" && break |
---|
2142 | done |
---|
2143 | |
---|
2144 | CC=$ac_ct_CC |
---|
2145 | fi |
---|
2146 | |
---|
2147 | |
---|
2148 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2149 | See \`config.log' for more details." >&5 |
---|
2150 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2151 | See \`config.log' for more details." >&2;} |
---|
2152 | { (exit 1); exit 1; }; } |
---|
2153 | |
---|
2154 | # Provide some information about the compiler. |
---|
2155 | echo "$as_me:$LINENO:" \ |
---|
2156 | "checking for C compiler version" >&5 |
---|
2157 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2158 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2159 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2160 | ac_status=$? |
---|
2161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2162 | (exit $ac_status); } |
---|
2163 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2164 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2165 | ac_status=$? |
---|
2166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2167 | (exit $ac_status); } |
---|
2168 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2169 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2170 | ac_status=$? |
---|
2171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2172 | (exit $ac_status); } |
---|
2173 | |
---|
2174 | cat >conftest.$ac_ext <<_ACEOF |
---|
2175 | /* confdefs.h. */ |
---|
2176 | _ACEOF |
---|
2177 | cat confdefs.h >>conftest.$ac_ext |
---|
2178 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2179 | /* end confdefs.h. */ |
---|
2180 | |
---|
2181 | int |
---|
2182 | main () |
---|
2183 | { |
---|
2184 | |
---|
2185 | ; |
---|
2186 | return 0; |
---|
2187 | } |
---|
2188 | _ACEOF |
---|
2189 | ac_clean_files_save=$ac_clean_files |
---|
2190 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
2191 | # Try to create an executable without -o first, disregard a.out. |
---|
2192 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2193 | # of exeext. |
---|
2194 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
2195 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
---|
2196 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2197 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
2198 | (eval $ac_link_default) 2>&5 |
---|
2199 | ac_status=$? |
---|
2200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2201 | (exit $ac_status); }; then |
---|
2202 | # Find the output, starting from the most likely. This scheme is |
---|
2203 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2204 | # resort. |
---|
2205 | |
---|
2206 | # Be careful to initialize this variable, since it used to be cached. |
---|
2207 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2208 | ac_cv_exeext= |
---|
2209 | # b.out is created by i960 compilers. |
---|
2210 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2211 | do |
---|
2212 | test -f "$ac_file" || continue |
---|
2213 | case $ac_file in |
---|
2214 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2215 | ;; |
---|
2216 | conftest.$ac_ext ) |
---|
2217 | # This is the source file. |
---|
2218 | ;; |
---|
2219 | [ab].out ) |
---|
2220 | # We found the default executable, but exeext='' is most |
---|
2221 | # certainly right. |
---|
2222 | break;; |
---|
2223 | *.* ) |
---|
2224 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2225 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2226 | # but it would be cool to find out if it's true. Does anybody |
---|
2227 | # maintain Libtool? --akim. |
---|
2228 | export ac_cv_exeext |
---|
2229 | break;; |
---|
2230 | * ) |
---|
2231 | break;; |
---|
2232 | esac |
---|
2233 | done |
---|
2234 | else |
---|
2235 | echo "$as_me: failed program was:" >&5 |
---|
2236 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2237 | |
---|
2238 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
2239 | See \`config.log' for more details." >&5 |
---|
2240 | echo "$as_me: error: C compiler cannot create executables |
---|
2241 | See \`config.log' for more details." >&2;} |
---|
2242 | { (exit 77); exit 77; }; } |
---|
2243 | fi |
---|
2244 | |
---|
2245 | ac_exeext=$ac_cv_exeext |
---|
2246 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2247 | echo "${ECHO_T}$ac_file" >&6 |
---|
2248 | |
---|
2249 | # Check the compiler produces executables we can run. If not, either |
---|
2250 | # the compiler is broken, or we cross compile. |
---|
2251 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
2252 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
2253 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2254 | # If not cross compiling, check that we can run a simple program. |
---|
2255 | if test "$cross_compiling" != yes; then |
---|
2256 | if { ac_try='./$ac_file' |
---|
2257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2258 | (eval $ac_try) 2>&5 |
---|
2259 | ac_status=$? |
---|
2260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2261 | (exit $ac_status); }; }; then |
---|
2262 | cross_compiling=no |
---|
2263 | else |
---|
2264 | if test "$cross_compiling" = maybe; then |
---|
2265 | cross_compiling=yes |
---|
2266 | else |
---|
2267 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
2268 | If you meant to cross compile, use \`--host'. |
---|
2269 | See \`config.log' for more details." >&5 |
---|
2270 | echo "$as_me: error: cannot run C compiled programs. |
---|
2271 | If you meant to cross compile, use \`--host'. |
---|
2272 | See \`config.log' for more details." >&2;} |
---|
2273 | { (exit 1); exit 1; }; } |
---|
2274 | fi |
---|
2275 | fi |
---|
2276 | fi |
---|
2277 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2278 | echo "${ECHO_T}yes" >&6 |
---|
2279 | |
---|
2280 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2281 | ac_clean_files=$ac_clean_files_save |
---|
2282 | # Check the compiler produces executables we can run. If not, either |
---|
2283 | # the compiler is broken, or we cross compile. |
---|
2284 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2285 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2286 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2287 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2288 | |
---|
2289 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2290 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2292 | (eval $ac_link) 2>&5 |
---|
2293 | ac_status=$? |
---|
2294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2295 | (exit $ac_status); }; then |
---|
2296 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2297 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2298 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2299 | # `rm'. |
---|
2300 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2301 | test -f "$ac_file" || continue |
---|
2302 | case $ac_file in |
---|
2303 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2304 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2305 | export ac_cv_exeext |
---|
2306 | break;; |
---|
2307 | * ) break;; |
---|
2308 | esac |
---|
2309 | done |
---|
2310 | else |
---|
2311 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2312 | See \`config.log' for more details." >&5 |
---|
2313 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2314 | See \`config.log' for more details." >&2;} |
---|
2315 | { (exit 1); exit 1; }; } |
---|
2316 | fi |
---|
2317 | |
---|
2318 | rm -f conftest$ac_cv_exeext |
---|
2319 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2320 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2321 | |
---|
2322 | rm -f conftest.$ac_ext |
---|
2323 | EXEEXT=$ac_cv_exeext |
---|
2324 | ac_exeext=$EXEEXT |
---|
2325 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2326 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2327 | if test "${ac_cv_objext+set}" = set; then |
---|
2328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2329 | else |
---|
2330 | cat >conftest.$ac_ext <<_ACEOF |
---|
2331 | /* confdefs.h. */ |
---|
2332 | _ACEOF |
---|
2333 | cat confdefs.h >>conftest.$ac_ext |
---|
2334 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2335 | /* end confdefs.h. */ |
---|
2336 | |
---|
2337 | int |
---|
2338 | main () |
---|
2339 | { |
---|
2340 | |
---|
2341 | ; |
---|
2342 | return 0; |
---|
2343 | } |
---|
2344 | _ACEOF |
---|
2345 | rm -f conftest.o conftest.obj |
---|
2346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2347 | (eval $ac_compile) 2>&5 |
---|
2348 | ac_status=$? |
---|
2349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2350 | (exit $ac_status); }; then |
---|
2351 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2352 | case $ac_file in |
---|
2353 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2354 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2355 | break;; |
---|
2356 | esac |
---|
2357 | done |
---|
2358 | else |
---|
2359 | echo "$as_me: failed program was:" >&5 |
---|
2360 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2361 | |
---|
2362 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2363 | See \`config.log' for more details." >&5 |
---|
2364 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2365 | See \`config.log' for more details." >&2;} |
---|
2366 | { (exit 1); exit 1; }; } |
---|
2367 | fi |
---|
2368 | |
---|
2369 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2370 | fi |
---|
2371 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2372 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2373 | OBJEXT=$ac_cv_objext |
---|
2374 | ac_objext=$OBJEXT |
---|
2375 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2376 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2377 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2379 | else |
---|
2380 | cat >conftest.$ac_ext <<_ACEOF |
---|
2381 | /* confdefs.h. */ |
---|
2382 | _ACEOF |
---|
2383 | cat confdefs.h >>conftest.$ac_ext |
---|
2384 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2385 | /* end confdefs.h. */ |
---|
2386 | |
---|
2387 | int |
---|
2388 | main () |
---|
2389 | { |
---|
2390 | #ifndef __GNUC__ |
---|
2391 | choke me |
---|
2392 | #endif |
---|
2393 | |
---|
2394 | ; |
---|
2395 | return 0; |
---|
2396 | } |
---|
2397 | _ACEOF |
---|
2398 | rm -f conftest.$ac_objext |
---|
2399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2400 | (eval $ac_compile) 2>conftest.er1 |
---|
2401 | ac_status=$? |
---|
2402 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2403 | rm -f conftest.er1 |
---|
2404 | cat conftest.err >&5 |
---|
2405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2406 | (exit $ac_status); } && |
---|
2407 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2408 | || test ! -s conftest.err' |
---|
2409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2410 | (eval $ac_try) 2>&5 |
---|
2411 | ac_status=$? |
---|
2412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2413 | (exit $ac_status); }; } && |
---|
2414 | { ac_try='test -s conftest.$ac_objext' |
---|
2415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2416 | (eval $ac_try) 2>&5 |
---|
2417 | ac_status=$? |
---|
2418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2419 | (exit $ac_status); }; }; then |
---|
2420 | ac_compiler_gnu=yes |
---|
2421 | else |
---|
2422 | echo "$as_me: failed program was:" >&5 |
---|
2423 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2424 | |
---|
2425 | ac_compiler_gnu=no |
---|
2426 | fi |
---|
2427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2428 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2429 | |
---|
2430 | fi |
---|
2431 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2432 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2433 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2434 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2435 | ac_save_CFLAGS=$CFLAGS |
---|
2436 | CFLAGS="-g" |
---|
2437 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2438 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2439 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2441 | else |
---|
2442 | cat >conftest.$ac_ext <<_ACEOF |
---|
2443 | /* confdefs.h. */ |
---|
2444 | _ACEOF |
---|
2445 | cat confdefs.h >>conftest.$ac_ext |
---|
2446 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2447 | /* end confdefs.h. */ |
---|
2448 | |
---|
2449 | int |
---|
2450 | main () |
---|
2451 | { |
---|
2452 | |
---|
2453 | ; |
---|
2454 | return 0; |
---|
2455 | } |
---|
2456 | _ACEOF |
---|
2457 | rm -f conftest.$ac_objext |
---|
2458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2459 | (eval $ac_compile) 2>conftest.er1 |
---|
2460 | ac_status=$? |
---|
2461 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2462 | rm -f conftest.er1 |
---|
2463 | cat conftest.err >&5 |
---|
2464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2465 | (exit $ac_status); } && |
---|
2466 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2467 | || test ! -s conftest.err' |
---|
2468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2469 | (eval $ac_try) 2>&5 |
---|
2470 | ac_status=$? |
---|
2471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2472 | (exit $ac_status); }; } && |
---|
2473 | { ac_try='test -s conftest.$ac_objext' |
---|
2474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2475 | (eval $ac_try) 2>&5 |
---|
2476 | ac_status=$? |
---|
2477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2478 | (exit $ac_status); }; }; then |
---|
2479 | ac_cv_prog_cc_g=yes |
---|
2480 | else |
---|
2481 | echo "$as_me: failed program was:" >&5 |
---|
2482 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2483 | |
---|
2484 | ac_cv_prog_cc_g=no |
---|
2485 | fi |
---|
2486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2487 | fi |
---|
2488 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2489 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2490 | if test "$ac_test_CFLAGS" = set; then |
---|
2491 | CFLAGS=$ac_save_CFLAGS |
---|
2492 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2493 | if test "$GCC" = yes; then |
---|
2494 | CFLAGS="-g -O2" |
---|
2495 | else |
---|
2496 | CFLAGS="-g" |
---|
2497 | fi |
---|
2498 | else |
---|
2499 | if test "$GCC" = yes; then |
---|
2500 | CFLAGS="-O2" |
---|
2501 | else |
---|
2502 | CFLAGS= |
---|
2503 | fi |
---|
2504 | fi |
---|
2505 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2506 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2507 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2509 | else |
---|
2510 | ac_cv_prog_cc_stdc=no |
---|
2511 | ac_save_CC=$CC |
---|
2512 | cat >conftest.$ac_ext <<_ACEOF |
---|
2513 | /* confdefs.h. */ |
---|
2514 | _ACEOF |
---|
2515 | cat confdefs.h >>conftest.$ac_ext |
---|
2516 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2517 | /* end confdefs.h. */ |
---|
2518 | #include <stdarg.h> |
---|
2519 | #include <stdio.h> |
---|
2520 | #include <sys/types.h> |
---|
2521 | #include <sys/stat.h> |
---|
2522 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2523 | struct buf { int x; }; |
---|
2524 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2525 | static char *e (p, i) |
---|
2526 | char **p; |
---|
2527 | int i; |
---|
2528 | { |
---|
2529 | return p[i]; |
---|
2530 | } |
---|
2531 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2532 | { |
---|
2533 | char *s; |
---|
2534 | va_list v; |
---|
2535 | va_start (v,p); |
---|
2536 | s = g (p, va_arg (v,int)); |
---|
2537 | va_end (v); |
---|
2538 | return s; |
---|
2539 | } |
---|
2540 | |
---|
2541 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2542 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2543 | These don't provoke an error unfortunately, instead are silently treated |
---|
2544 | as 'x'. The following induces an error, until -std1 is added to get |
---|
2545 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2546 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2547 | that's true only with -std1. */ |
---|
2548 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2549 | |
---|
2550 | int test (int i, double x); |
---|
2551 | struct s1 {int (*f) (int a);}; |
---|
2552 | struct s2 {int (*f) (double a);}; |
---|
2553 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2554 | int argc; |
---|
2555 | char **argv; |
---|
2556 | int |
---|
2557 | main () |
---|
2558 | { |
---|
2559 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2560 | ; |
---|
2561 | return 0; |
---|
2562 | } |
---|
2563 | _ACEOF |
---|
2564 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2565 | # breaks some systems' header files. |
---|
2566 | # AIX -qlanglvl=ansi |
---|
2567 | # Ultrix and OSF/1 -std1 |
---|
2568 | # HP-UX 10.20 and later -Ae |
---|
2569 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2570 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2571 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2572 | do |
---|
2573 | CC="$ac_save_CC $ac_arg" |
---|
2574 | rm -f conftest.$ac_objext |
---|
2575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2576 | (eval $ac_compile) 2>conftest.er1 |
---|
2577 | ac_status=$? |
---|
2578 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2579 | rm -f conftest.er1 |
---|
2580 | cat conftest.err >&5 |
---|
2581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2582 | (exit $ac_status); } && |
---|
2583 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2584 | || test ! -s conftest.err' |
---|
2585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2586 | (eval $ac_try) 2>&5 |
---|
2587 | ac_status=$? |
---|
2588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2589 | (exit $ac_status); }; } && |
---|
2590 | { ac_try='test -s conftest.$ac_objext' |
---|
2591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2592 | (eval $ac_try) 2>&5 |
---|
2593 | ac_status=$? |
---|
2594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2595 | (exit $ac_status); }; }; then |
---|
2596 | ac_cv_prog_cc_stdc=$ac_arg |
---|
2597 | break |
---|
2598 | else |
---|
2599 | echo "$as_me: failed program was:" >&5 |
---|
2600 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2601 | |
---|
2602 | fi |
---|
2603 | rm -f conftest.err conftest.$ac_objext |
---|
2604 | done |
---|
2605 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
2606 | CC=$ac_save_CC |
---|
2607 | |
---|
2608 | fi |
---|
2609 | |
---|
2610 | case "x$ac_cv_prog_cc_stdc" in |
---|
2611 | x|xno) |
---|
2612 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
2613 | echo "${ECHO_T}none needed" >&6 ;; |
---|
2614 | *) |
---|
2615 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
2616 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
2617 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
2618 | esac |
---|
2619 | |
---|
2620 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
2621 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
2622 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
2623 | # the declaration of exit, since it's the most demanding environment. |
---|
2624 | cat >conftest.$ac_ext <<_ACEOF |
---|
2625 | #ifndef __cplusplus |
---|
2626 | choke me |
---|
2627 | #endif |
---|
2628 | _ACEOF |
---|
2629 | rm -f conftest.$ac_objext |
---|
2630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2631 | (eval $ac_compile) 2>conftest.er1 |
---|
2632 | ac_status=$? |
---|
2633 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2634 | rm -f conftest.er1 |
---|
2635 | cat conftest.err >&5 |
---|
2636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2637 | (exit $ac_status); } && |
---|
2638 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2639 | || test ! -s conftest.err' |
---|
2640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2641 | (eval $ac_try) 2>&5 |
---|
2642 | ac_status=$? |
---|
2643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2644 | (exit $ac_status); }; } && |
---|
2645 | { ac_try='test -s conftest.$ac_objext' |
---|
2646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2647 | (eval $ac_try) 2>&5 |
---|
2648 | ac_status=$? |
---|
2649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2650 | (exit $ac_status); }; }; then |
---|
2651 | for ac_declaration in \ |
---|
2652 | '' \ |
---|
2653 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2654 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2655 | 'extern "C" void exit (int) throw ();' \ |
---|
2656 | 'extern "C" void exit (int);' \ |
---|
2657 | 'void exit (int);' |
---|
2658 | do |
---|
2659 | cat >conftest.$ac_ext <<_ACEOF |
---|
2660 | /* confdefs.h. */ |
---|
2661 | _ACEOF |
---|
2662 | cat confdefs.h >>conftest.$ac_ext |
---|
2663 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2664 | /* end confdefs.h. */ |
---|
2665 | $ac_declaration |
---|
2666 | #include <stdlib.h> |
---|
2667 | int |
---|
2668 | main () |
---|
2669 | { |
---|
2670 | exit (42); |
---|
2671 | ; |
---|
2672 | return 0; |
---|
2673 | } |
---|
2674 | _ACEOF |
---|
2675 | rm -f conftest.$ac_objext |
---|
2676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2677 | (eval $ac_compile) 2>conftest.er1 |
---|
2678 | ac_status=$? |
---|
2679 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2680 | rm -f conftest.er1 |
---|
2681 | cat conftest.err >&5 |
---|
2682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2683 | (exit $ac_status); } && |
---|
2684 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2685 | || test ! -s conftest.err' |
---|
2686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2687 | (eval $ac_try) 2>&5 |
---|
2688 | ac_status=$? |
---|
2689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2690 | (exit $ac_status); }; } && |
---|
2691 | { ac_try='test -s conftest.$ac_objext' |
---|
2692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2693 | (eval $ac_try) 2>&5 |
---|
2694 | ac_status=$? |
---|
2695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2696 | (exit $ac_status); }; }; then |
---|
2697 | : |
---|
2698 | else |
---|
2699 | echo "$as_me: failed program was:" >&5 |
---|
2700 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2701 | |
---|
2702 | continue |
---|
2703 | fi |
---|
2704 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2705 | cat >conftest.$ac_ext <<_ACEOF |
---|
2706 | /* confdefs.h. */ |
---|
2707 | _ACEOF |
---|
2708 | cat confdefs.h >>conftest.$ac_ext |
---|
2709 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2710 | /* end confdefs.h. */ |
---|
2711 | $ac_declaration |
---|
2712 | int |
---|
2713 | main () |
---|
2714 | { |
---|
2715 | exit (42); |
---|
2716 | ; |
---|
2717 | return 0; |
---|
2718 | } |
---|
2719 | _ACEOF |
---|
2720 | rm -f conftest.$ac_objext |
---|
2721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2722 | (eval $ac_compile) 2>conftest.er1 |
---|
2723 | ac_status=$? |
---|
2724 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2725 | rm -f conftest.er1 |
---|
2726 | cat conftest.err >&5 |
---|
2727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2728 | (exit $ac_status); } && |
---|
2729 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2730 | || test ! -s conftest.err' |
---|
2731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2732 | (eval $ac_try) 2>&5 |
---|
2733 | ac_status=$? |
---|
2734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2735 | (exit $ac_status); }; } && |
---|
2736 | { ac_try='test -s conftest.$ac_objext' |
---|
2737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2738 | (eval $ac_try) 2>&5 |
---|
2739 | ac_status=$? |
---|
2740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2741 | (exit $ac_status); }; }; then |
---|
2742 | break |
---|
2743 | else |
---|
2744 | echo "$as_me: failed program was:" >&5 |
---|
2745 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2746 | |
---|
2747 | fi |
---|
2748 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2749 | done |
---|
2750 | rm -f conftest* |
---|
2751 | if test -n "$ac_declaration"; then |
---|
2752 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2753 | echo $ac_declaration >>confdefs.h |
---|
2754 | echo '#endif' >>confdefs.h |
---|
2755 | fi |
---|
2756 | |
---|
2757 | else |
---|
2758 | echo "$as_me: failed program was:" >&5 |
---|
2759 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2760 | |
---|
2761 | fi |
---|
2762 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2763 | ac_ext=c |
---|
2764 | ac_cpp='$CPP $CPPFLAGS' |
---|
2765 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2766 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2767 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2768 | |
---|
2769 | if test -z "$CC" ; then |
---|
2770 | { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5 |
---|
2771 | echo "$as_me: error: Failed to find a C compiler!" >&2;} |
---|
2772 | { (exit 1); exit 1; }; } |
---|
2773 | fi |
---|
2774 | # Autoconf incorrectly concludes that cl recognises -g. It doesn't. |
---|
2775 | case "$CC" in |
---|
2776 | clang* ) ;; |
---|
2777 | cl* | */cl* | CL* | */CL* ) |
---|
2778 | if test "$ac_cv_prog_cc_g" = yes ; then |
---|
2779 | ac_cv_prog_cc_g=no |
---|
2780 | { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 |
---|
2781 | echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} |
---|
2782 | fi ;; |
---|
2783 | * ) |
---|
2784 | if test x"$CYGPATH_W" = x ; then |
---|
2785 | CYGPATH_W=echo |
---|
2786 | fi |
---|
2787 | ;; |
---|
2788 | esac |
---|
2789 | CFLAGS="$save_cflags" |
---|
2790 | |
---|
2791 | # add automake conditional so we can recognize cl compiler in makefile |
---|
2792 | coin_cc_is_cl=false |
---|
2793 | case "$CC" in |
---|
2794 | clang* ) ;; |
---|
2795 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
2796 | coin_cc_is_cl=true |
---|
2797 | ;; |
---|
2798 | esac |
---|
2799 | |
---|
2800 | |
---|
2801 | if test $coin_cc_is_cl = true; then |
---|
2802 | COIN_CC_IS_CL_TRUE= |
---|
2803 | COIN_CC_IS_CL_FALSE='#' |
---|
2804 | else |
---|
2805 | COIN_CC_IS_CL_TRUE='#' |
---|
2806 | COIN_CC_IS_CL_FALSE= |
---|
2807 | fi |
---|
2808 | |
---|
2809 | |
---|
2810 | # Check if a project specific CFLAGS variable has been set |
---|
2811 | if test x$COIN_PRJCT != x; then |
---|
2812 | eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set} |
---|
2813 | if test x$coin_tmp = xset; then |
---|
2814 | eval CFLAGS=\${${COIN_PRJCT}_CFLAGS} |
---|
2815 | fi |
---|
2816 | fi |
---|
2817 | |
---|
2818 | if test x"$CFLAGS" = x; then |
---|
2819 | |
---|
2820 | coin_add_cflags= |
---|
2821 | coin_opt_cflags= |
---|
2822 | coin_dbg_cflags= |
---|
2823 | coin_warn_cflags= |
---|
2824 | |
---|
2825 | if test "$GCC" = "yes"; then |
---|
2826 | case "$CC" in |
---|
2827 | icc* | */icc*) |
---|
2828 | ;; |
---|
2829 | *) |
---|
2830 | coin_opt_cflags="-O3" |
---|
2831 | coin_add_cflags="-pipe" |
---|
2832 | coin_dbg_cflags="-g -O0" |
---|
2833 | coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long" |
---|
2834 | case $build in |
---|
2835 | *-darwin*) |
---|
2836 | ;; |
---|
2837 | *) |
---|
2838 | coin_warn_cflags="-pedantic-errors $coin_warn_cflags" |
---|
2839 | ;; |
---|
2840 | esac |
---|
2841 | esac |
---|
2842 | fi |
---|
2843 | if test -z "$coin_opt_cflags"; then |
---|
2844 | case $build in |
---|
2845 | *-cygwin* | *-mingw*) |
---|
2846 | case "$CC" in |
---|
2847 | clang* ) ;; |
---|
2848 | cl* | */cl* | CL* | */CL*) |
---|
2849 | if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then |
---|
2850 | coin_opt_cflags='-MD -O2' |
---|
2851 | coin_dbg_cflags='-MDd' |
---|
2852 | else |
---|
2853 | coin_opt_cflags='-MT -O2' |
---|
2854 | coin_dbg_cflags='-MTd' |
---|
2855 | fi |
---|
2856 | coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE' |
---|
2857 | ;; |
---|
2858 | icl* | */icl* | ICL* | */ICL*) |
---|
2859 | if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then |
---|
2860 | coin_opt_cflags='-MD -Ox' |
---|
2861 | coin_dbg_cflags='-MDd -debug' |
---|
2862 | else |
---|
2863 | coin_opt_cflags='-MT -Ox' |
---|
2864 | coin_dbg_cflags='-MTd -debug' |
---|
2865 | fi |
---|
2866 | coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE' |
---|
2867 | ;; |
---|
2868 | esac |
---|
2869 | ;; |
---|
2870 | *-linux-*) |
---|
2871 | case "$CC" in |
---|
2872 | icc* | */icc*) |
---|
2873 | coin_opt_cflags="-O3 -ip -mp1" |
---|
2874 | coin_add_cflags="" |
---|
2875 | coin_dbg_cflags="-g" |
---|
2876 | # Check if -i_dynamic is necessary (for new glibc library) |
---|
2877 | CFLAGS= |
---|
2878 | cat >conftest.$ac_ext <<_ACEOF |
---|
2879 | /* confdefs.h. */ |
---|
2880 | _ACEOF |
---|
2881 | cat confdefs.h >>conftest.$ac_ext |
---|
2882 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2883 | /* end confdefs.h. */ |
---|
2884 | |
---|
2885 | int |
---|
2886 | main () |
---|
2887 | { |
---|
2888 | int i=0; i++; |
---|
2889 | ; |
---|
2890 | return 0; |
---|
2891 | } |
---|
2892 | _ACEOF |
---|
2893 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2894 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2895 | (eval $ac_link) 2>conftest.er1 |
---|
2896 | ac_status=$? |
---|
2897 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2898 | rm -f conftest.er1 |
---|
2899 | cat conftest.err >&5 |
---|
2900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2901 | (exit $ac_status); } && |
---|
2902 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2903 | || test ! -s conftest.err' |
---|
2904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2905 | (eval $ac_try) 2>&5 |
---|
2906 | ac_status=$? |
---|
2907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2908 | (exit $ac_status); }; } && |
---|
2909 | { ac_try='test -s conftest$ac_exeext' |
---|
2910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2911 | (eval $ac_try) 2>&5 |
---|
2912 | ac_status=$? |
---|
2913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2914 | (exit $ac_status); }; }; then |
---|
2915 | : |
---|
2916 | else |
---|
2917 | echo "$as_me: failed program was:" >&5 |
---|
2918 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2919 | |
---|
2920 | coin_add_cflags="-i_dynamic $coin_add_cflags" |
---|
2921 | fi |
---|
2922 | rm -f conftest.err conftest.$ac_objext \ |
---|
2923 | conftest$ac_exeext conftest.$ac_ext |
---|
2924 | ;; |
---|
2925 | pgcc* | */pgcc*) |
---|
2926 | coin_opt_cflags="-fast" |
---|
2927 | coin_add_cflags="-Kieee -pc 64" |
---|
2928 | coin_dbg_cflags="-g" |
---|
2929 | ;; |
---|
2930 | esac |
---|
2931 | ;; |
---|
2932 | *-ibm-*) |
---|
2933 | case "$CC" in |
---|
2934 | xlc* | */xlc* | mpxlc* | */mpxlc*) |
---|
2935 | coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" |
---|
2936 | coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" |
---|
2937 | coin_dbg_cflags="-g" |
---|
2938 | ;; |
---|
2939 | esac |
---|
2940 | ;; |
---|
2941 | *-hp-*) |
---|
2942 | coin_opt_cflags="-O" |
---|
2943 | coin_add_cflags="-Ae" |
---|
2944 | coin_dbg_cflags="-g" |
---|
2945 | ;; |
---|
2946 | *-*-solaris*) |
---|
2947 | coin_opt_cflags="-xO4" |
---|
2948 | coin_dbg_cflags="-g" |
---|
2949 | ;; |
---|
2950 | *-sgi-*) |
---|
2951 | coin_opt_cflags="-O -OPT:Olimit=0" |
---|
2952 | coin_dbg_cflags="-g" |
---|
2953 | ;; |
---|
2954 | esac |
---|
2955 | fi |
---|
2956 | |
---|
2957 | if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then |
---|
2958 | coin_dbg_cflags="-g" |
---|
2959 | fi |
---|
2960 | |
---|
2961 | if test -z "$coin_opt_cflags"; then |
---|
2962 | # Try if -O option works if nothing else is set |
---|
2963 | CFLAGS="-O" |
---|
2964 | cat >conftest.$ac_ext <<_ACEOF |
---|
2965 | /* confdefs.h. */ |
---|
2966 | _ACEOF |
---|
2967 | cat confdefs.h >>conftest.$ac_ext |
---|
2968 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2969 | /* end confdefs.h. */ |
---|
2970 | |
---|
2971 | int |
---|
2972 | main () |
---|
2973 | { |
---|
2974 | int i=0; i++; |
---|
2975 | ; |
---|
2976 | return 0; |
---|
2977 | } |
---|
2978 | _ACEOF |
---|
2979 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2980 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2981 | (eval $ac_link) 2>conftest.er1 |
---|
2982 | ac_status=$? |
---|
2983 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2984 | rm -f conftest.er1 |
---|
2985 | cat conftest.err >&5 |
---|
2986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2987 | (exit $ac_status); } && |
---|
2988 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2989 | || test ! -s conftest.err' |
---|
2990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2991 | (eval $ac_try) 2>&5 |
---|
2992 | ac_status=$? |
---|
2993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2994 | (exit $ac_status); }; } && |
---|
2995 | { ac_try='test -s conftest$ac_exeext' |
---|
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); }; }; then |
---|
3001 | coin_opt_cflags="-O" |
---|
3002 | else |
---|
3003 | echo "$as_me: failed program was:" >&5 |
---|
3004 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3005 | |
---|
3006 | fi |
---|
3007 | rm -f conftest.err conftest.$ac_objext \ |
---|
3008 | conftest$ac_exeext conftest.$ac_ext |
---|
3009 | fi |
---|
3010 | |
---|
3011 | # if PM doesn't want the warning messages, take them out |
---|
3012 | if test x"$coin_skip_warn_cflags" = xyes; then |
---|
3013 | coin_warn_cflags= |
---|
3014 | fi |
---|
3015 | |
---|
3016 | if test x${DBG_CFLAGS+set} != xset; then |
---|
3017 | DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags" |
---|
3018 | fi |
---|
3019 | if test x${OPT_CFLAGS+set} != xset; then |
---|
3020 | OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags" |
---|
3021 | fi |
---|
3022 | |
---|
3023 | DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS" |
---|
3024 | OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS" |
---|
3025 | |
---|
3026 | if test "$coin_debug_compile" = "true"; then |
---|
3027 | CFLAGS="$DBG_CFLAGS" |
---|
3028 | else |
---|
3029 | CFLAGS="$OPT_CFLAGS" |
---|
3030 | fi |
---|
3031 | else |
---|
3032 | CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" |
---|
3033 | if test x${DBG_CFLAGS+set} != xset; then |
---|
3034 | DBG_CFLAGS="$CFLAGS" |
---|
3035 | fi |
---|
3036 | if test x${OPT_CFLAGS+set} != xset; then |
---|
3037 | OPT_CFLAGS="$CFLAGS" |
---|
3038 | fi |
---|
3039 | fi |
---|
3040 | |
---|
3041 | # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include |
---|
3042 | if test x$COIN_PRJCT != x; then |
---|
3043 | CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD" |
---|
3044 | fi |
---|
3045 | |
---|
3046 | # Try if CFLAGS works |
---|
3047 | save_CFLAGS="$CFLAGS" |
---|
3048 | cat >conftest.$ac_ext <<_ACEOF |
---|
3049 | /* confdefs.h. */ |
---|
3050 | _ACEOF |
---|
3051 | cat confdefs.h >>conftest.$ac_ext |
---|
3052 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3053 | /* end confdefs.h. */ |
---|
3054 | |
---|
3055 | int |
---|
3056 | main () |
---|
3057 | { |
---|
3058 | int i=0; i++; |
---|
3059 | ; |
---|
3060 | return 0; |
---|
3061 | } |
---|
3062 | _ACEOF |
---|
3063 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3065 | (eval $ac_link) 2>conftest.er1 |
---|
3066 | ac_status=$? |
---|
3067 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3068 | rm -f conftest.er1 |
---|
3069 | cat conftest.err >&5 |
---|
3070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3071 | (exit $ac_status); } && |
---|
3072 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3073 | || test ! -s conftest.err' |
---|
3074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3075 | (eval $ac_try) 2>&5 |
---|
3076 | ac_status=$? |
---|
3077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3078 | (exit $ac_status); }; } && |
---|
3079 | { ac_try='test -s conftest$ac_exeext' |
---|
3080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3081 | (eval $ac_try) 2>&5 |
---|
3082 | ac_status=$? |
---|
3083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3084 | (exit $ac_status); }; }; then |
---|
3085 | : |
---|
3086 | else |
---|
3087 | echo "$as_me: failed program was:" >&5 |
---|
3088 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3089 | |
---|
3090 | CFLAGS= |
---|
3091 | fi |
---|
3092 | rm -f conftest.err conftest.$ac_objext \ |
---|
3093 | conftest$ac_exeext conftest.$ac_ext |
---|
3094 | if test -z "$CFLAGS"; then |
---|
3095 | { 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 |
---|
3096 | 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;} |
---|
3097 | CFLAGS='-O' |
---|
3098 | cat >conftest.$ac_ext <<_ACEOF |
---|
3099 | /* confdefs.h. */ |
---|
3100 | _ACEOF |
---|
3101 | cat confdefs.h >>conftest.$ac_ext |
---|
3102 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3103 | /* end confdefs.h. */ |
---|
3104 | |
---|
3105 | int |
---|
3106 | main () |
---|
3107 | { |
---|
3108 | int i=0; i++; |
---|
3109 | ; |
---|
3110 | return 0; |
---|
3111 | } |
---|
3112 | _ACEOF |
---|
3113 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3114 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3115 | (eval $ac_link) 2>conftest.er1 |
---|
3116 | ac_status=$? |
---|
3117 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3118 | rm -f conftest.er1 |
---|
3119 | cat conftest.err >&5 |
---|
3120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3121 | (exit $ac_status); } && |
---|
3122 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3123 | || test ! -s conftest.err' |
---|
3124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3125 | (eval $ac_try) 2>&5 |
---|
3126 | ac_status=$? |
---|
3127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3128 | (exit $ac_status); }; } && |
---|
3129 | { ac_try='test -s conftest$ac_exeext' |
---|
3130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3131 | (eval $ac_try) 2>&5 |
---|
3132 | ac_status=$? |
---|
3133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3134 | (exit $ac_status); }; }; then |
---|
3135 | : |
---|
3136 | else |
---|
3137 | echo "$as_me: failed program was:" >&5 |
---|
3138 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3139 | |
---|
3140 | CFLAGS= |
---|
3141 | fi |
---|
3142 | rm -f conftest.err conftest.$ac_objext \ |
---|
3143 | conftest$ac_exeext conftest.$ac_ext |
---|
3144 | if test -z "$CFLAGS"; then |
---|
3145 | { 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 |
---|
3146 | 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;} |
---|
3147 | fi |
---|
3148 | fi |
---|
3149 | |
---|
3150 | { echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5 |
---|
3151 | echo "$as_me: C compiler options are: $CFLAGS" >&6;} |
---|
3152 | |
---|
3153 | |
---|
3154 | if test x"$MPICC" = x; then :; else |
---|
3155 | { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5 |
---|
3156 | echo "$as_me: Will use MPI C compiler $MPICC" >&6;} |
---|
3157 | CC="$MPICC" |
---|
3158 | fi |
---|
3159 | |
---|
3160 | # Correct the LD variable if we are using the MS or Intel-windows compiler |
---|
3161 | case "$CC" in |
---|
3162 | clang* ) ;; |
---|
3163 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
3164 | |
---|
3165 | case $build in |
---|
3166 | *-mingw*) |
---|
3167 | if test "${LD+set}" = set; then :; else |
---|
3168 | LD=link |
---|
3169 | fi |
---|
3170 | ;; |
---|
3171 | esac |
---|
3172 | if test $enable_msvc = yes ; then |
---|
3173 | if test "x${LD+set}" = xset; then :; else |
---|
3174 | LD=link |
---|
3175 | fi |
---|
3176 | fi |
---|
3177 | |
---|
3178 | ;; |
---|
3179 | esac |
---|
3180 | |
---|
3181 | ac_ext=c |
---|
3182 | ac_cpp='$CPP $CPPFLAGS' |
---|
3183 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3184 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3185 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3186 | |
---|
3187 | |
---|
3188 | |
---|
3189 | # Get the name of the Fortran compiler and appropriate compiler options |
---|
3190 | case $build in |
---|
3191 | *-cygwin* | *-mingw*) |
---|
3192 | if test "$enable_msvc" = yes ; then |
---|
3193 | coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77" |
---|
3194 | else |
---|
3195 | coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c" |
---|
3196 | fi ;; |
---|
3197 | *-*-solaris*) |
---|
3198 | coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;; |
---|
3199 | *-linux-gnu*) |
---|
3200 | coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;; |
---|
3201 | *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;; |
---|
3202 | esac |
---|
3203 | |
---|
3204 | |
---|
3205 | |
---|
3206 | |
---|
3207 | |
---|
3208 | |
---|
3209 | ac_ext=f |
---|
3210 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
3211 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3212 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
3213 | |
---|
3214 | |
---|
3215 | |
---|
3216 | |
---|
3217 | |
---|
3218 | |
---|
3219 | coin_has_f77=yes |
---|
3220 | |
---|
3221 | save_fflags="$FFLAGS" |
---|
3222 | |
---|
3223 | # We delete the cached value, since the test might not have been |
---|
3224 | # performed with our choice of compilers earlier |
---|
3225 | $as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; } |
---|
3226 | |
---|
3227 | # This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use |
---|
3228 | # coin_f77_comps to see if there's a program that matches one of the names. |
---|
3229 | # If there's no such program, F77 = unavailable. If we match the name, |
---|
3230 | # feed AC_PROG_F77 the same search list, just to be sure it's a functioning |
---|
3231 | # compiler. |
---|
3232 | # AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps]) |
---|
3233 | |
---|
3234 | |
---|
3235 | { echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5 |
---|
3236 | echo "$as_me: Trying to determine Fortran compiler name" >&6;} |
---|
3237 | if test -n "$ac_tool_prefix"; then |
---|
3238 | for ac_prog in $coin_f77_comps |
---|
3239 | do |
---|
3240 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3241 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3242 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3243 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3244 | if test "${ac_cv_prog_F77+set}" = set; then |
---|
3245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3246 | else |
---|
3247 | if test -n "$F77"; then |
---|
3248 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
3249 | else |
---|
3250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3251 | for as_dir in $PATH |
---|
3252 | do |
---|
3253 | IFS=$as_save_IFS |
---|
3254 | test -z "$as_dir" && as_dir=. |
---|
3255 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3256 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3257 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
3258 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3259 | break 2 |
---|
3260 | fi |
---|
3261 | done |
---|
3262 | done |
---|
3263 | |
---|
3264 | fi |
---|
3265 | fi |
---|
3266 | F77=$ac_cv_prog_F77 |
---|
3267 | if test -n "$F77"; then |
---|
3268 | echo "$as_me:$LINENO: result: $F77" >&5 |
---|
3269 | echo "${ECHO_T}$F77" >&6 |
---|
3270 | else |
---|
3271 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3272 | echo "${ECHO_T}no" >&6 |
---|
3273 | fi |
---|
3274 | |
---|
3275 | test -n "$F77" && break |
---|
3276 | done |
---|
3277 | fi |
---|
3278 | if test -z "$F77"; then |
---|
3279 | ac_ct_F77=$F77 |
---|
3280 | for ac_prog in $coin_f77_comps |
---|
3281 | do |
---|
3282 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3283 | set dummy $ac_prog; ac_word=$2 |
---|
3284 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3285 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3286 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
---|
3287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3288 | else |
---|
3289 | if test -n "$ac_ct_F77"; then |
---|
3290 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
3291 | else |
---|
3292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3293 | for as_dir in $PATH |
---|
3294 | do |
---|
3295 | IFS=$as_save_IFS |
---|
3296 | test -z "$as_dir" && as_dir=. |
---|
3297 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3298 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3299 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
3300 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3301 | break 2 |
---|
3302 | fi |
---|
3303 | done |
---|
3304 | done |
---|
3305 | |
---|
3306 | fi |
---|
3307 | fi |
---|
3308 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
3309 | if test -n "$ac_ct_F77"; then |
---|
3310 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
---|
3311 | echo "${ECHO_T}$ac_ct_F77" >&6 |
---|
3312 | else |
---|
3313 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3314 | echo "${ECHO_T}no" >&6 |
---|
3315 | fi |
---|
3316 | |
---|
3317 | test -n "$ac_ct_F77" && break |
---|
3318 | done |
---|
3319 | test -n "$ac_ct_F77" || ac_ct_F77="unavailable" |
---|
3320 | |
---|
3321 | F77=$ac_ct_F77 |
---|
3322 | fi |
---|
3323 | |
---|
3324 | |
---|
3325 | if test "$F77" != "unavailable" ; then |
---|
3326 | ac_ext=f |
---|
3327 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
3328 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3329 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
3330 | if test -n "$ac_tool_prefix"; then |
---|
3331 | for ac_prog in $coin_f77_comps |
---|
3332 | do |
---|
3333 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3334 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3335 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3336 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3337 | if test "${ac_cv_prog_F77+set}" = set; then |
---|
3338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3339 | else |
---|
3340 | if test -n "$F77"; then |
---|
3341 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
3342 | else |
---|
3343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3344 | for as_dir in $PATH |
---|
3345 | do |
---|
3346 | IFS=$as_save_IFS |
---|
3347 | test -z "$as_dir" && as_dir=. |
---|
3348 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3349 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3350 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
3351 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3352 | break 2 |
---|
3353 | fi |
---|
3354 | done |
---|
3355 | done |
---|
3356 | |
---|
3357 | fi |
---|
3358 | fi |
---|
3359 | F77=$ac_cv_prog_F77 |
---|
3360 | if test -n "$F77"; then |
---|
3361 | echo "$as_me:$LINENO: result: $F77" >&5 |
---|
3362 | echo "${ECHO_T}$F77" >&6 |
---|
3363 | else |
---|
3364 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3365 | echo "${ECHO_T}no" >&6 |
---|
3366 | fi |
---|
3367 | |
---|
3368 | test -n "$F77" && break |
---|
3369 | done |
---|
3370 | fi |
---|
3371 | if test -z "$F77"; then |
---|
3372 | ac_ct_F77=$F77 |
---|
3373 | for ac_prog in $coin_f77_comps |
---|
3374 | do |
---|
3375 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3376 | set dummy $ac_prog; ac_word=$2 |
---|
3377 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3378 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3379 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
---|
3380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3381 | else |
---|
3382 | if test -n "$ac_ct_F77"; then |
---|
3383 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
3384 | else |
---|
3385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3386 | for as_dir in $PATH |
---|
3387 | do |
---|
3388 | IFS=$as_save_IFS |
---|
3389 | test -z "$as_dir" && as_dir=. |
---|
3390 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3391 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3392 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
3393 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3394 | break 2 |
---|
3395 | fi |
---|
3396 | done |
---|
3397 | done |
---|
3398 | |
---|
3399 | fi |
---|
3400 | fi |
---|
3401 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
3402 | if test -n "$ac_ct_F77"; then |
---|
3403 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
---|
3404 | echo "${ECHO_T}$ac_ct_F77" >&6 |
---|
3405 | else |
---|
3406 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3407 | echo "${ECHO_T}no" >&6 |
---|
3408 | fi |
---|
3409 | |
---|
3410 | test -n "$ac_ct_F77" && break |
---|
3411 | done |
---|
3412 | |
---|
3413 | F77=$ac_ct_F77 |
---|
3414 | fi |
---|
3415 | |
---|
3416 | |
---|
3417 | # Provide some information about the compiler. |
---|
3418 | echo "$as_me:3418:" \ |
---|
3419 | "checking for Fortran 77 compiler version" >&5 |
---|
3420 | ac_compiler=`set X $ac_compile; echo $2` |
---|
3421 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
3422 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
3423 | ac_status=$? |
---|
3424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3425 | (exit $ac_status); } |
---|
3426 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
3427 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
3428 | ac_status=$? |
---|
3429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3430 | (exit $ac_status); } |
---|
3431 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
3432 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
3433 | ac_status=$? |
---|
3434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3435 | (exit $ac_status); } |
---|
3436 | rm -f a.out |
---|
3437 | |
---|
3438 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
3439 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
3440 | ac_save_ext=$ac_ext |
---|
3441 | ac_ext=F |
---|
3442 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
---|
3443 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
---|
3444 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
---|
3445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3446 | else |
---|
3447 | cat >conftest.$ac_ext <<_ACEOF |
---|
3448 | program main |
---|
3449 | #ifndef __GNUC__ |
---|
3450 | choke me |
---|
3451 | #endif |
---|
3452 | |
---|
3453 | end |
---|
3454 | _ACEOF |
---|
3455 | rm -f conftest.$ac_objext |
---|
3456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3457 | (eval $ac_compile) 2>conftest.er1 |
---|
3458 | ac_status=$? |
---|
3459 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3460 | rm -f conftest.er1 |
---|
3461 | cat conftest.err >&5 |
---|
3462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3463 | (exit $ac_status); } && |
---|
3464 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3465 | || test ! -s conftest.err' |
---|
3466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3467 | (eval $ac_try) 2>&5 |
---|
3468 | ac_status=$? |
---|
3469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3470 | (exit $ac_status); }; } && |
---|
3471 | { ac_try='test -s conftest.$ac_objext' |
---|
3472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3473 | (eval $ac_try) 2>&5 |
---|
3474 | ac_status=$? |
---|
3475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3476 | (exit $ac_status); }; }; then |
---|
3477 | ac_compiler_gnu=yes |
---|
3478 | else |
---|
3479 | echo "$as_me: failed program was:" >&5 |
---|
3480 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3481 | |
---|
3482 | ac_compiler_gnu=no |
---|
3483 | fi |
---|
3484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3485 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
---|
3486 | |
---|
3487 | fi |
---|
3488 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
---|
3489 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
---|
3490 | ac_ext=$ac_save_ext |
---|
3491 | ac_test_FFLAGS=${FFLAGS+set} |
---|
3492 | ac_save_FFLAGS=$FFLAGS |
---|
3493 | FFLAGS= |
---|
3494 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
---|
3495 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
---|
3496 | if test "${ac_cv_prog_f77_g+set}" = set; then |
---|
3497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3498 | else |
---|
3499 | FFLAGS=-g |
---|
3500 | cat >conftest.$ac_ext <<_ACEOF |
---|
3501 | program main |
---|
3502 | |
---|
3503 | end |
---|
3504 | _ACEOF |
---|
3505 | rm -f conftest.$ac_objext |
---|
3506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3507 | (eval $ac_compile) 2>conftest.er1 |
---|
3508 | ac_status=$? |
---|
3509 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3510 | rm -f conftest.er1 |
---|
3511 | cat conftest.err >&5 |
---|
3512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3513 | (exit $ac_status); } && |
---|
3514 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3515 | || test ! -s conftest.err' |
---|
3516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3517 | (eval $ac_try) 2>&5 |
---|
3518 | ac_status=$? |
---|
3519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3520 | (exit $ac_status); }; } && |
---|
3521 | { ac_try='test -s conftest.$ac_objext' |
---|
3522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3523 | (eval $ac_try) 2>&5 |
---|
3524 | ac_status=$? |
---|
3525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3526 | (exit $ac_status); }; }; then |
---|
3527 | ac_cv_prog_f77_g=yes |
---|
3528 | else |
---|
3529 | echo "$as_me: failed program was:" >&5 |
---|
3530 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3531 | |
---|
3532 | ac_cv_prog_f77_g=no |
---|
3533 | fi |
---|
3534 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3535 | |
---|
3536 | fi |
---|
3537 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
---|
3538 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
---|
3539 | if test "$ac_test_FFLAGS" = set; then |
---|
3540 | FFLAGS=$ac_save_FFLAGS |
---|
3541 | elif test $ac_cv_prog_f77_g = yes; then |
---|
3542 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
3543 | FFLAGS="-g -O2" |
---|
3544 | else |
---|
3545 | FFLAGS="-g" |
---|
3546 | fi |
---|
3547 | else |
---|
3548 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
3549 | FFLAGS="-O2" |
---|
3550 | else |
---|
3551 | FFLAGS= |
---|
3552 | fi |
---|
3553 | fi |
---|
3554 | |
---|
3555 | G77=`test $ac_compiler_gnu = yes && echo yes` |
---|
3556 | ac_ext=f |
---|
3557 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
3558 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3559 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
3560 | |
---|
3561 | else |
---|
3562 | { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5 |
---|
3563 | echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;} |
---|
3564 | fi |
---|
3565 | |
---|
3566 | FFLAGS="$save_fflags" |
---|
3567 | |
---|
3568 | # Check if a project specific FFLAGS variable has been set |
---|
3569 | if test x$COIN_PRJCT != x; then |
---|
3570 | eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set} |
---|
3571 | if test x$coin_tmp = xset; then |
---|
3572 | eval FFLAGS=\${${COIN_PRJCT}_FFLAGS} |
---|
3573 | fi |
---|
3574 | fi |
---|
3575 | |
---|
3576 | if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then |
---|
3577 | |
---|
3578 | coin_add_fflags= |
---|
3579 | coin_opt_fflags= |
---|
3580 | coin_dbg_fflags= |
---|
3581 | coin_warn_fflags= |
---|
3582 | |
---|
3583 | if test "$G77" = "yes"; then |
---|
3584 | coin_opt_fflags="-O3" |
---|
3585 | coin_add_fflags="-pipe" |
---|
3586 | coin_dbg_fflags="-g -O0" |
---|
3587 | else |
---|
3588 | case $build in |
---|
3589 | *-cygwin* | *-mingw*) |
---|
3590 | case $F77 in |
---|
3591 | ifort* | */ifort* | IFORT* | */IFORT* ) |
---|
3592 | if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then |
---|
3593 | coin_opt_fflags='-MD -O3' |
---|
3594 | coin_dbg_fflags='-MDd -debug' |
---|
3595 | else |
---|
3596 | coin_opt_fflags='-MT -O3' |
---|
3597 | coin_dbg_fflags='-MTd -debug' |
---|
3598 | fi |
---|
3599 | coin_add_fflags='-fpp -nologo' |
---|
3600 | ;; |
---|
3601 | compile_f2c*) |
---|
3602 | if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then |
---|
3603 | coin_opt_fflags='-MD -O2' |
---|
3604 | coin_dbg_fflags='-MDd' |
---|
3605 | else |
---|
3606 | coin_opt_fflags='-MT -O2' |
---|
3607 | coin_dbg_fflags='-MTd' |
---|
3608 | fi |
---|
3609 | coin_add_fflags='-nologo -wd4996' |
---|
3610 | ;; |
---|
3611 | esac |
---|
3612 | ;; |
---|
3613 | *-linux-*) |
---|
3614 | case $F77 in |
---|
3615 | ifc* | */ifc* | ifort* | */ifort*) |
---|
3616 | coin_opt_fflags="-O3 -ip" |
---|
3617 | coin_add_fflags="-cm -w90 -w95" |
---|
3618 | coin_dbg_fflags="-g -CA -CB -CS" |
---|
3619 | # Check if -i_dynamic is necessary (for new glibc library) |
---|
3620 | FFLAGS= |
---|
3621 | cat >conftest.$ac_ext <<_ACEOF |
---|
3622 | program main |
---|
3623 | write(*,*) 'Hello world' |
---|
3624 | end |
---|
3625 | _ACEOF |
---|
3626 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3627 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3628 | (eval $ac_link) 2>conftest.er1 |
---|
3629 | ac_status=$? |
---|
3630 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3631 | rm -f conftest.er1 |
---|
3632 | cat conftest.err >&5 |
---|
3633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3634 | (exit $ac_status); } && |
---|
3635 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3636 | || test ! -s conftest.err' |
---|
3637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3638 | (eval $ac_try) 2>&5 |
---|
3639 | ac_status=$? |
---|
3640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3641 | (exit $ac_status); }; } && |
---|
3642 | { ac_try='test -s conftest$ac_exeext' |
---|
3643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3644 | (eval $ac_try) 2>&5 |
---|
3645 | ac_status=$? |
---|
3646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3647 | (exit $ac_status); }; }; then |
---|
3648 | : |
---|
3649 | else |
---|
3650 | echo "$as_me: failed program was:" >&5 |
---|
3651 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3652 | |
---|
3653 | coin_add_fflags="-i_dynamic $coin_add_fflags" |
---|
3654 | fi |
---|
3655 | rm -f conftest.err conftest.$ac_objext \ |
---|
3656 | conftest$ac_exeext conftest.$ac_ext |
---|
3657 | ;; |
---|
3658 | pgf77* | */pgf77* | pgf90* | */pgf90*) |
---|
3659 | coin_opt_fflags="-fast" |
---|
3660 | coin_add_fflags="-Kieee -pc 64" |
---|
3661 | coin_dbg_fflags="-g" |
---|
3662 | ;; |
---|
3663 | esac |
---|
3664 | ;; |
---|
3665 | *-ibm-*) |
---|
3666 | case "$F77" in |
---|
3667 | xlf* | */xlf* | mpxlf* | */mpxlf* ) |
---|
3668 | coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" |
---|
3669 | coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" |
---|
3670 | coin_dbg_fflags="-g -C" |
---|
3671 | ;; |
---|
3672 | esac |
---|
3673 | ;; |
---|
3674 | *-hp-*) |
---|
3675 | coin_opt_fflags="+O3" |
---|
3676 | coin_add_fflags="+U77" |
---|
3677 | coin_dbg_fflags="-C -g" |
---|
3678 | ;; |
---|
3679 | *-*-solaris*) |
---|
3680 | coin_opt_fflags="-O4" |
---|
3681 | coin_dbg_fflags="-g" |
---|
3682 | ;; |
---|
3683 | *-sgi-*) |
---|
3684 | coin_opt_fflags="-O5 -OPT:Olimit=0" |
---|
3685 | coin_dbg_fflags="-g" |
---|
3686 | ;; |
---|
3687 | esac |
---|
3688 | fi |
---|
3689 | |
---|
3690 | if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then |
---|
3691 | coin_dbg_fflags="-g" |
---|
3692 | fi |
---|
3693 | |
---|
3694 | if test -z "$coin_opt_fflags"; then |
---|
3695 | # Try if -O option works if nothing else is set |
---|
3696 | FFLAGS=-O |
---|
3697 | cat >conftest.$ac_ext <<_ACEOF |
---|
3698 | program main |
---|
3699 | integer i |
---|
3700 | end |
---|
3701 | _ACEOF |
---|
3702 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3704 | (eval $ac_link) 2>conftest.er1 |
---|
3705 | ac_status=$? |
---|
3706 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3707 | rm -f conftest.er1 |
---|
3708 | cat conftest.err >&5 |
---|
3709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3710 | (exit $ac_status); } && |
---|
3711 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3712 | || test ! -s conftest.err' |
---|
3713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3714 | (eval $ac_try) 2>&5 |
---|
3715 | ac_status=$? |
---|
3716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3717 | (exit $ac_status); }; } && |
---|
3718 | { ac_try='test -s conftest$ac_exeext' |
---|
3719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3720 | (eval $ac_try) 2>&5 |
---|
3721 | ac_status=$? |
---|
3722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3723 | (exit $ac_status); }; }; then |
---|
3724 | coin_opt_fflags="-O" |
---|
3725 | else |
---|
3726 | echo "$as_me: failed program was:" >&5 |
---|
3727 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3728 | |
---|
3729 | fi |
---|
3730 | rm -f conftest.err conftest.$ac_objext \ |
---|
3731 | conftest$ac_exeext conftest.$ac_ext |
---|
3732 | fi |
---|
3733 | |
---|
3734 | # if PM doesn't want the warning messages, take them out |
---|
3735 | if test x"$coin_skip_warn_fflags" = xyes; then |
---|
3736 | coin_warn_fflags= |
---|
3737 | fi |
---|
3738 | |
---|
3739 | if test x${DBG_FFLAGS+set} != xset; then |
---|
3740 | DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags" |
---|
3741 | fi |
---|
3742 | if test x${OPT_FFLAGS+set} != xset; then |
---|
3743 | OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags" |
---|
3744 | fi |
---|
3745 | |
---|
3746 | DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS" |
---|
3747 | OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS" |
---|
3748 | |
---|
3749 | if test "$coin_debug_compile" = "true"; then |
---|
3750 | FFLAGS="$DBG_FFLAGS" |
---|
3751 | else |
---|
3752 | FFLAGS="$OPT_FFLAGS" |
---|
3753 | fi |
---|
3754 | else |
---|
3755 | FFLAGS="$FFLAGS $ADD_FFLAGS" |
---|
3756 | if test x${DBG_FFLAGS+set} != xset; then |
---|
3757 | DBG_FFLAGS="$FFLAGS" |
---|
3758 | fi |
---|
3759 | if test x${OPT_FFLAGS+set} != xset; then |
---|
3760 | OPT_FFLAGS="$FFLAGS" |
---|
3761 | fi |
---|
3762 | fi |
---|
3763 | |
---|
3764 | # Try if FFLAGS works |
---|
3765 | if test "$F77" != "unavailable" ; then |
---|
3766 | cat >conftest.$ac_ext <<_ACEOF |
---|
3767 | program main |
---|
3768 | integer i |
---|
3769 | end |
---|
3770 | _ACEOF |
---|
3771 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3772 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3773 | (eval $ac_link) 2>conftest.er1 |
---|
3774 | ac_status=$? |
---|
3775 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3776 | rm -f conftest.er1 |
---|
3777 | cat conftest.err >&5 |
---|
3778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3779 | (exit $ac_status); } && |
---|
3780 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3781 | || test ! -s conftest.err' |
---|
3782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3783 | (eval $ac_try) 2>&5 |
---|
3784 | ac_status=$? |
---|
3785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3786 | (exit $ac_status); }; } && |
---|
3787 | { ac_try='test -s conftest$ac_exeext' |
---|
3788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3789 | (eval $ac_try) 2>&5 |
---|
3790 | ac_status=$? |
---|
3791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3792 | (exit $ac_status); }; }; then |
---|
3793 | : |
---|
3794 | else |
---|
3795 | echo "$as_me: failed program was:" >&5 |
---|
3796 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3797 | |
---|
3798 | FFLAGS= |
---|
3799 | fi |
---|
3800 | rm -f conftest.err conftest.$ac_objext \ |
---|
3801 | conftest$ac_exeext conftest.$ac_ext |
---|
3802 | if test -z "$FFLAGS"; then |
---|
3803 | { 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 |
---|
3804 | 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;} |
---|
3805 | FFLAGS='-O' |
---|
3806 | cat >conftest.$ac_ext <<_ACEOF |
---|
3807 | program main |
---|
3808 | integer i |
---|
3809 | end |
---|
3810 | _ACEOF |
---|
3811 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3813 | (eval $ac_link) 2>conftest.er1 |
---|
3814 | ac_status=$? |
---|
3815 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3816 | rm -f conftest.er1 |
---|
3817 | cat conftest.err >&5 |
---|
3818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3819 | (exit $ac_status); } && |
---|
3820 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3821 | || test ! -s conftest.err' |
---|
3822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3823 | (eval $ac_try) 2>&5 |
---|
3824 | ac_status=$? |
---|
3825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3826 | (exit $ac_status); }; } && |
---|
3827 | { ac_try='test -s conftest$ac_exeext' |
---|
3828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3829 | (eval $ac_try) 2>&5 |
---|
3830 | ac_status=$? |
---|
3831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3832 | (exit $ac_status); }; }; then |
---|
3833 | : |
---|
3834 | else |
---|
3835 | echo "$as_me: failed program was:" >&5 |
---|
3836 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3837 | |
---|
3838 | FFLAGS= |
---|
3839 | fi |
---|
3840 | rm -f conftest.err conftest.$ac_objext \ |
---|
3841 | conftest$ac_exeext conftest.$ac_ext |
---|
3842 | if test -z "$FFLAGS"; then |
---|
3843 | { 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 |
---|
3844 | 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;} |
---|
3845 | fi |
---|
3846 | fi |
---|
3847 | fi |
---|
3848 | |
---|
3849 | { echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5 |
---|
3850 | echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;} |
---|
3851 | |
---|
3852 | |
---|
3853 | if test x"$MPIF77" = x; then :; else |
---|
3854 | { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5 |
---|
3855 | echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;} |
---|
3856 | F77="$MPIF77" |
---|
3857 | fi |
---|
3858 | |
---|
3859 | # correct the LD variable if we use the intel fortran compiler in windows |
---|
3860 | case "$F77" in |
---|
3861 | ifort* | */ifort* | IFORT* | */IFORT*) |
---|
3862 | |
---|
3863 | case $build in |
---|
3864 | *-mingw*) |
---|
3865 | if test "${LD+set}" = set; then :; else |
---|
3866 | LD=link |
---|
3867 | fi |
---|
3868 | ;; |
---|
3869 | esac |
---|
3870 | if test $enable_msvc = yes ; then |
---|
3871 | if test "x${LD+set}" = xset; then :; else |
---|
3872 | LD=link |
---|
3873 | fi |
---|
3874 | fi |
---|
3875 | |
---|
3876 | ;; |
---|
3877 | esac |
---|
3878 | |
---|
3879 | ac_ext=c |
---|
3880 | ac_cpp='$CPP $CPPFLAGS' |
---|
3881 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3882 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3883 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3884 | |
---|
3885 | |
---|
3886 | |
---|
3887 | # Find out how to call Fortran from C and determine Fortran runtime libraries |
---|
3888 | |
---|
3889 | # get FLIBS |
---|
3890 | ac_ext=f |
---|
3891 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
3892 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3893 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
3894 | echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5 |
---|
3895 | echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6 |
---|
3896 | if test "${ac_cv_prog_f77_v+set}" = set; then |
---|
3897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3898 | else |
---|
3899 | cat >conftest.$ac_ext <<_ACEOF |
---|
3900 | program main |
---|
3901 | |
---|
3902 | end |
---|
3903 | _ACEOF |
---|
3904 | rm -f conftest.$ac_objext |
---|
3905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3906 | (eval $ac_compile) 2>conftest.er1 |
---|
3907 | ac_status=$? |
---|
3908 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3909 | rm -f conftest.er1 |
---|
3910 | cat conftest.err >&5 |
---|
3911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3912 | (exit $ac_status); } && |
---|
3913 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3914 | || test ! -s conftest.err' |
---|
3915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3916 | (eval $ac_try) 2>&5 |
---|
3917 | ac_status=$? |
---|
3918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3919 | (exit $ac_status); }; } && |
---|
3920 | { ac_try='test -s conftest.$ac_objext' |
---|
3921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3922 | (eval $ac_try) 2>&5 |
---|
3923 | ac_status=$? |
---|
3924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3925 | (exit $ac_status); }; }; then |
---|
3926 | ac_cv_prog_f77_v= |
---|
3927 | # Try some options frequently used verbose output |
---|
3928 | for ac_verb in -v -verbose --verbose -V -\#\#\#; do |
---|
3929 | cat >conftest.$ac_ext <<_ACEOF |
---|
3930 | program main |
---|
3931 | |
---|
3932 | end |
---|
3933 | _ACEOF |
---|
3934 | |
---|
3935 | # Compile and link our simple test program by passing a flag (argument |
---|
3936 | # 1 to this macro) to the Fortran compiler in order to get |
---|
3937 | # "verbose" output that we can then parse for the Fortran linker |
---|
3938 | # flags. |
---|
3939 | ac_save_FFLAGS=$FFLAGS |
---|
3940 | FFLAGS="$FFLAGS $ac_verb" |
---|
3941 | (eval echo $as_me:3941: \"$ac_link\") >&5 |
---|
3942 | ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
---|
3943 | echo "$ac_f77_v_output" >&5 |
---|
3944 | FFLAGS=$ac_save_FFLAGS |
---|
3945 | |
---|
3946 | rm -f conftest* |
---|
3947 | |
---|
3948 | # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
---|
3949 | # /foo, /bar, and /baz are search directories for the Fortran linker. |
---|
3950 | # Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
---|
3951 | ac_f77_v_output="`echo $ac_f77_v_output | |
---|
3952 | grep 'LPATH is:' | |
---|
3953 | sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output" |
---|
3954 | |
---|
3955 | case $ac_f77_v_output in |
---|
3956 | # If we are using xlf then replace all the commas with spaces. |
---|
3957 | *xlfentry*) |
---|
3958 | ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; |
---|
3959 | |
---|
3960 | # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
---|
3961 | # $LIBS confuse us, and the libraries appear later in the output anyway). |
---|
3962 | *mGLOB_options_string*) |
---|
3963 | ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; |
---|
3964 | |
---|
3965 | # If we are using Cray Fortran then delete quotes. |
---|
3966 | # Use "\"" instead of '"' for font-lock-mode. |
---|
3967 | # FIXME: a more general fix for quoted arguments with spaces? |
---|
3968 | *cft90*) |
---|
3969 | ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;; |
---|
3970 | esac |
---|
3971 | |
---|
3972 | |
---|
3973 | # look for -l* and *.a constructs in the output |
---|
3974 | for ac_arg in $ac_f77_v_output; do |
---|
3975 | case $ac_arg in |
---|
3976 | [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) |
---|
3977 | ac_cv_prog_f77_v=$ac_verb |
---|
3978 | break 2 ;; |
---|
3979 | esac |
---|
3980 | done |
---|
3981 | done |
---|
3982 | if test -z "$ac_cv_prog_f77_v"; then |
---|
3983 | { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5 |
---|
3984 | echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} |
---|
3985 | fi |
---|
3986 | else |
---|
3987 | echo "$as_me: failed program was:" >&5 |
---|
3988 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3989 | |
---|
3990 | { echo "$as_me:$LINENO: WARNING: compilation failed" >&5 |
---|
3991 | echo "$as_me: WARNING: compilation failed" >&2;} |
---|
3992 | fi |
---|
3993 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3994 | |
---|
3995 | fi |
---|
3996 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5 |
---|
3997 | echo "${ECHO_T}$ac_cv_prog_f77_v" >&6 |
---|
3998 | echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5 |
---|
3999 | echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6 |
---|
4000 | if test "${ac_cv_f77_libs+set}" = set; then |
---|
4001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4002 | else |
---|
4003 | if test "x$FLIBS" != "x"; then |
---|
4004 | ac_cv_f77_libs="$FLIBS" # Let the user override the test. |
---|
4005 | else |
---|
4006 | |
---|
4007 | cat >conftest.$ac_ext <<_ACEOF |
---|
4008 | program main |
---|
4009 | |
---|
4010 | end |
---|
4011 | _ACEOF |
---|
4012 | |
---|
4013 | # Compile and link our simple test program by passing a flag (argument |
---|
4014 | # 1 to this macro) to the Fortran compiler in order to get |
---|
4015 | # "verbose" output that we can then parse for the Fortran linker |
---|
4016 | # flags. |
---|
4017 | ac_save_FFLAGS=$FFLAGS |
---|
4018 | FFLAGS="$FFLAGS $ac_cv_prog_f77_v" |
---|
4019 | (eval echo $as_me:4019: \"$ac_link\") >&5 |
---|
4020 | ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
---|
4021 | echo "$ac_f77_v_output" >&5 |
---|
4022 | FFLAGS=$ac_save_FFLAGS |
---|
4023 | |
---|
4024 | rm -f conftest* |
---|
4025 | |
---|
4026 | # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
---|
4027 | # /foo, /bar, and /baz are search directories for the Fortran linker. |
---|
4028 | # Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
---|
4029 | ac_f77_v_output="`echo $ac_f77_v_output | |
---|
4030 | grep 'LPATH is:' | |
---|
4031 | sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output" |
---|
4032 | |
---|
4033 | case $ac_f77_v_output in |
---|
4034 | # If we are using xlf then replace all the commas with spaces. |
---|
4035 | *xlfentry*) |
---|
4036 | ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; |
---|
4037 | |
---|
4038 | # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
---|
4039 | # $LIBS confuse us, and the libraries appear later in the output anyway). |
---|
4040 | *mGLOB_options_string*) |
---|
4041 | ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; |
---|
4042 | |
---|
4043 | # If we are using Cray Fortran then delete quotes. |
---|
4044 | # Use "\"" instead of '"' for font-lock-mode. |
---|
4045 | # FIXME: a more general fix for quoted arguments with spaces? |
---|
4046 | *cft90*) |
---|
4047 | ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;; |
---|
4048 | esac |
---|
4049 | |
---|
4050 | |
---|
4051 | |
---|
4052 | ac_cv_f77_libs= |
---|
4053 | |
---|
4054 | # Save positional arguments (if any) |
---|
4055 | ac_save_positional="$@" |
---|
4056 | |
---|
4057 | set X $ac_f77_v_output |
---|
4058 | while test $# != 1; do |
---|
4059 | shift |
---|
4060 | ac_arg=$1 |
---|
4061 | case $ac_arg in |
---|
4062 | [\\/]*.a | ?:[\\/]*.a) |
---|
4063 | ac_exists=false |
---|
4064 | for ac_i in $ac_cv_f77_libs; do |
---|
4065 | if test x"$ac_arg" = x"$ac_i"; then |
---|
4066 | ac_exists=true |
---|
4067 | break |
---|
4068 | fi |
---|
4069 | done |
---|
4070 | |
---|
4071 | if test x"$ac_exists" = xtrue; then |
---|
4072 | : |
---|
4073 | else |
---|
4074 | ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" |
---|
4075 | fi |
---|
4076 | |
---|
4077 | ;; |
---|
4078 | -bI:*) |
---|
4079 | ac_exists=false |
---|
4080 | for ac_i in $ac_cv_f77_libs; do |
---|
4081 | if test x"$ac_arg" = x"$ac_i"; then |
---|
4082 | ac_exists=true |
---|
4083 | break |
---|
4084 | fi |
---|
4085 | done |
---|
4086 | |
---|
4087 | if test x"$ac_exists" = xtrue; then |
---|
4088 | : |
---|
4089 | else |
---|
4090 | if test "$ac_compiler_gnu" = yes; then |
---|
4091 | for ac_link_opt in $ac_arg; do |
---|
4092 | ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" |
---|
4093 | done |
---|
4094 | else |
---|
4095 | ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" |
---|
4096 | fi |
---|
4097 | fi |
---|
4098 | |
---|
4099 | ;; |
---|
4100 | # Ignore these flags. |
---|
4101 | -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*) |
---|
4102 | ;; |
---|
4103 | -lkernel32) |
---|
4104 | test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" |
---|
4105 | ;; |
---|
4106 | -[LRuY]) |
---|
4107 | # These flags, when seen by themselves, take an argument. |
---|
4108 | # We remove the space between option and argument and re-iterate |
---|
4109 | # unless we find an empty arg or a new option (starting with -) |
---|
4110 | case $2 in |
---|
4111 | "" | -*);; |
---|
4112 | *) |
---|
4113 | ac_arg="$ac_arg$2" |
---|
4114 | shift; shift |
---|
4115 | set X $ac_arg "$@" |
---|
4116 | ;; |
---|
4117 | esac |
---|
4118 | ;; |
---|
4119 | -YP,*) |
---|
4120 | for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
---|
4121 | ac_exists=false |
---|
4122 | for ac_i in $ac_cv_f77_libs; do |
---|
4123 | if test x"$ac_j" = x"$ac_i"; then |
---|
4124 | ac_exists=true |
---|
4125 | break |
---|
4126 | fi |
---|
4127 | done |
---|
4128 | |
---|
4129 | if test x"$ac_exists" = xtrue; then |
---|
4130 | : |
---|
4131 | else |
---|
4132 | ac_arg="$ac_arg $ac_j" |
---|
4133 | ac_cv_f77_libs="$ac_cv_f77_libs $ac_j" |
---|
4134 | fi |
---|
4135 | |
---|
4136 | done |
---|
4137 | ;; |
---|
4138 | -[lLR]*) |
---|
4139 | ac_exists=false |
---|
4140 | for ac_i in $ac_cv_f77_libs; do |
---|
4141 | if test x"$ac_arg" = x"$ac_i"; then |
---|
4142 | ac_exists=true |
---|
4143 | break |
---|
4144 | fi |
---|
4145 | done |
---|
4146 | |
---|
4147 | if test x"$ac_exists" = xtrue; then |
---|
4148 | : |
---|
4149 | else |
---|
4150 | ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" |
---|
4151 | fi |
---|
4152 | |
---|
4153 | ;; |
---|
4154 | # Ignore everything else. |
---|
4155 | esac |
---|
4156 | done |
---|
4157 | # restore positional arguments |
---|
4158 | set X $ac_save_positional; shift |
---|
4159 | |
---|
4160 | # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, |
---|
4161 | # then we insist that the "run path" must be an absolute path (i.e. it |
---|
4162 | # must begin with a "/"). |
---|
4163 | case `(uname -sr) 2>/dev/null` in |
---|
4164 | "SunOS 5"*) |
---|
4165 | ac_ld_run_path=`echo $ac_f77_v_output | |
---|
4166 | sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` |
---|
4167 | test "x$ac_ld_run_path" != x && |
---|
4168 | if test "$ac_compiler_gnu" = yes; then |
---|
4169 | for ac_link_opt in $ac_ld_run_path; do |
---|
4170 | ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" |
---|
4171 | done |
---|
4172 | else |
---|
4173 | ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path" |
---|
4174 | fi |
---|
4175 | ;; |
---|
4176 | esac |
---|
4177 | fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" |
---|
4178 | |
---|
4179 | fi |
---|
4180 | echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5 |
---|
4181 | echo "${ECHO_T}$ac_cv_f77_libs" >&6 |
---|
4182 | FLIBS="$ac_cv_f77_libs" |
---|
4183 | |
---|
4184 | |
---|
4185 | ac_ext=c |
---|
4186 | ac_cpp='$CPP $CPPFLAGS' |
---|
4187 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4188 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4189 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4190 | |
---|
4191 | orig_FLIBS="$FLIBS" |
---|
4192 | |
---|
4193 | # If FLIBS has been set by the user, we just restore its value here |
---|
4194 | if test x"$save_FLIBS" != x; then |
---|
4195 | FLIBS="$save_FLIBS" |
---|
4196 | else |
---|
4197 | # This is to correct a missing exclusion in autoconf 2.59 |
---|
4198 | if test x"$FLIBS" != x; then |
---|
4199 | my_flibs= |
---|
4200 | for flag in $FLIBS; do |
---|
4201 | case $flag in |
---|
4202 | -lcrt*.o) ;; |
---|
4203 | -lcygwin) ;; |
---|
4204 | -lgcc*) ;; |
---|
4205 | *) my_flibs="$my_flibs $flag" ;; |
---|
4206 | esac |
---|
4207 | done |
---|
4208 | FLIBS="$my_flibs" |
---|
4209 | fi |
---|
4210 | |
---|
4211 | case $build in |
---|
4212 | # The following is a fix to define FLIBS for ifort on Windows |
---|
4213 | # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly. |
---|
4214 | # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables. |
---|
4215 | # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line. |
---|
4216 | # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8. |
---|
4217 | # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now. |
---|
4218 | *-cygwin* | *-mingw*) |
---|
4219 | case "$F77" in |
---|
4220 | # ifort* | */ifort* | IFORT* | */IFORT*) |
---|
4221 | # FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib" |
---|
4222 | # if "$coin_debug_compile" = true ; then |
---|
4223 | # FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib" |
---|
4224 | # else |
---|
4225 | # FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib" |
---|
4226 | # fi |
---|
4227 | # ;; |
---|
4228 | compile_f2c*) |
---|
4229 | FLIBS=`$F77 -FLIBS` ;; |
---|
4230 | esac;; |
---|
4231 | *-hp-*) |
---|
4232 | FLIBS="$FLIBS -lm";; |
---|
4233 | *-ibm-*) |
---|
4234 | FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;; |
---|
4235 | *-linux-*) |
---|
4236 | case "$F77" in |
---|
4237 | pgf77* | */pgf77* | pgf90* | */pgf90*) |
---|
4238 | # ask linker to go through the archives multiple times |
---|
4239 | # (the Fortran compiler seems to do that automatically...) |
---|
4240 | FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;; |
---|
4241 | esac |
---|
4242 | esac |
---|
4243 | ac_cv_f77_libs="$FLIBS" |
---|
4244 | fi |
---|
4245 | |
---|
4246 | if test "x$orig_FLIBS" != "x$FLIBS" ; then |
---|
4247 | { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5 |
---|
4248 | echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;} |
---|
4249 | fi |
---|
4250 | |
---|
4251 | ac_ext=f |
---|
4252 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4253 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4254 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4255 | |
---|
4256 | echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5 |
---|
4257 | echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6 |
---|
4258 | if test "${ac_cv_f77_dummy_main+set}" = set; then |
---|
4259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4260 | else |
---|
4261 | ac_f77_dm_save_LIBS=$LIBS |
---|
4262 | LIBS="$LIBS $FLIBS" |
---|
4263 | ac_fortran_dm_var=F77_DUMMY_MAIN |
---|
4264 | ac_ext=c |
---|
4265 | ac_cpp='$CPP $CPPFLAGS' |
---|
4266 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4267 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4268 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4269 | |
---|
4270 | # First, try linking without a dummy main: |
---|
4271 | cat >conftest.$ac_ext <<_ACEOF |
---|
4272 | /* confdefs.h. */ |
---|
4273 | _ACEOF |
---|
4274 | cat confdefs.h >>conftest.$ac_ext |
---|
4275 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4276 | /* end confdefs.h. */ |
---|
4277 | |
---|
4278 | #ifdef F77_DUMMY_MAIN |
---|
4279 | |
---|
4280 | # ifdef __cplusplus |
---|
4281 | extern "C" |
---|
4282 | # endif |
---|
4283 | int F77_DUMMY_MAIN() { return 1; } |
---|
4284 | |
---|
4285 | #endif |
---|
4286 | int |
---|
4287 | main () |
---|
4288 | { |
---|
4289 | |
---|
4290 | ; |
---|
4291 | return 0; |
---|
4292 | } |
---|
4293 | _ACEOF |
---|
4294 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4296 | (eval $ac_link) 2>conftest.er1 |
---|
4297 | ac_status=$? |
---|
4298 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4299 | rm -f conftest.er1 |
---|
4300 | cat conftest.err >&5 |
---|
4301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4302 | (exit $ac_status); } && |
---|
4303 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4304 | || test ! -s conftest.err' |
---|
4305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4306 | (eval $ac_try) 2>&5 |
---|
4307 | ac_status=$? |
---|
4308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4309 | (exit $ac_status); }; } && |
---|
4310 | { ac_try='test -s conftest$ac_exeext' |
---|
4311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4312 | (eval $ac_try) 2>&5 |
---|
4313 | ac_status=$? |
---|
4314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4315 | (exit $ac_status); }; }; then |
---|
4316 | ac_cv_fortran_dummy_main=none |
---|
4317 | else |
---|
4318 | echo "$as_me: failed program was:" >&5 |
---|
4319 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4320 | |
---|
4321 | ac_cv_fortran_dummy_main=unknown |
---|
4322 | fi |
---|
4323 | rm -f conftest.err conftest.$ac_objext \ |
---|
4324 | conftest$ac_exeext conftest.$ac_ext |
---|
4325 | |
---|
4326 | if test $ac_cv_fortran_dummy_main = unknown; then |
---|
4327 | for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do |
---|
4328 | cat >conftest.$ac_ext <<_ACEOF |
---|
4329 | /* confdefs.h. */ |
---|
4330 | _ACEOF |
---|
4331 | cat confdefs.h >>conftest.$ac_ext |
---|
4332 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4333 | /* end confdefs.h. */ |
---|
4334 | #define $ac_fortran_dm_var $ac_func |
---|
4335 | #ifdef F77_DUMMY_MAIN |
---|
4336 | |
---|
4337 | # ifdef __cplusplus |
---|
4338 | extern "C" |
---|
4339 | # endif |
---|
4340 | int F77_DUMMY_MAIN() { return 1; } |
---|
4341 | |
---|
4342 | #endif |
---|
4343 | int |
---|
4344 | main () |
---|
4345 | { |
---|
4346 | |
---|
4347 | ; |
---|
4348 | return 0; |
---|
4349 | } |
---|
4350 | _ACEOF |
---|
4351 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4352 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4353 | (eval $ac_link) 2>conftest.er1 |
---|
4354 | ac_status=$? |
---|
4355 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4356 | rm -f conftest.er1 |
---|
4357 | cat conftest.err >&5 |
---|
4358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4359 | (exit $ac_status); } && |
---|
4360 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4361 | || test ! -s conftest.err' |
---|
4362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4363 | (eval $ac_try) 2>&5 |
---|
4364 | ac_status=$? |
---|
4365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4366 | (exit $ac_status); }; } && |
---|
4367 | { ac_try='test -s conftest$ac_exeext' |
---|
4368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4369 | (eval $ac_try) 2>&5 |
---|
4370 | ac_status=$? |
---|
4371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4372 | (exit $ac_status); }; }; then |
---|
4373 | ac_cv_fortran_dummy_main=$ac_func; break |
---|
4374 | else |
---|
4375 | echo "$as_me: failed program was:" >&5 |
---|
4376 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4377 | |
---|
4378 | fi |
---|
4379 | rm -f conftest.err conftest.$ac_objext \ |
---|
4380 | conftest$ac_exeext conftest.$ac_ext |
---|
4381 | done |
---|
4382 | fi |
---|
4383 | ac_ext=f |
---|
4384 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4385 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4386 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4387 | ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main |
---|
4388 | rm -f conftest* |
---|
4389 | LIBS=$ac_f77_dm_save_LIBS |
---|
4390 | |
---|
4391 | fi |
---|
4392 | echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5 |
---|
4393 | echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6 |
---|
4394 | F77_DUMMY_MAIN=$ac_cv_f77_dummy_main |
---|
4395 | if test "$F77_DUMMY_MAIN" != unknown; then |
---|
4396 | if test $F77_DUMMY_MAIN != none; then |
---|
4397 | |
---|
4398 | cat >>confdefs.h <<_ACEOF |
---|
4399 | #define F77_DUMMY_MAIN $F77_DUMMY_MAIN |
---|
4400 | _ACEOF |
---|
4401 | |
---|
4402 | if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then |
---|
4403 | |
---|
4404 | cat >>confdefs.h <<\_ACEOF |
---|
4405 | #define FC_DUMMY_MAIN_EQ_F77 1 |
---|
4406 | _ACEOF |
---|
4407 | |
---|
4408 | fi |
---|
4409 | fi |
---|
4410 | else |
---|
4411 | { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails |
---|
4412 | See \`config.log' for more details." >&5 |
---|
4413 | echo "$as_me: error: linking to Fortran libraries from C fails |
---|
4414 | See \`config.log' for more details." >&2;} |
---|
4415 | { (exit 1); exit 1; }; } |
---|
4416 | fi |
---|
4417 | |
---|
4418 | |
---|
4419 | ac_ext=f |
---|
4420 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4421 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4422 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4423 | |
---|
4424 | ac_ext=f |
---|
4425 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4426 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4427 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4428 | echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5 |
---|
4429 | echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6 |
---|
4430 | if test "${ac_cv_f77_mangling+set}" = set; then |
---|
4431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4432 | else |
---|
4433 | cat >conftest.$ac_ext <<_ACEOF |
---|
4434 | subroutine foobar() |
---|
4435 | return |
---|
4436 | end |
---|
4437 | subroutine foo_bar() |
---|
4438 | return |
---|
4439 | end |
---|
4440 | _ACEOF |
---|
4441 | rm -f conftest.$ac_objext |
---|
4442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4443 | (eval $ac_compile) 2>conftest.er1 |
---|
4444 | ac_status=$? |
---|
4445 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4446 | rm -f conftest.er1 |
---|
4447 | cat conftest.err >&5 |
---|
4448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4449 | (exit $ac_status); } && |
---|
4450 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
4451 | || test ! -s conftest.err' |
---|
4452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4453 | (eval $ac_try) 2>&5 |
---|
4454 | ac_status=$? |
---|
4455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4456 | (exit $ac_status); }; } && |
---|
4457 | { ac_try='test -s conftest.$ac_objext' |
---|
4458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4459 | (eval $ac_try) 2>&5 |
---|
4460 | ac_status=$? |
---|
4461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4462 | (exit $ac_status); }; }; then |
---|
4463 | mv conftest.$ac_objext cfortran_test.$ac_objext |
---|
4464 | |
---|
4465 | ac_save_LIBS=$LIBS |
---|
4466 | LIBS="cfortran_test.$ac_objext $LIBS $FLIBS" |
---|
4467 | |
---|
4468 | ac_ext=c |
---|
4469 | ac_cpp='$CPP $CPPFLAGS' |
---|
4470 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4471 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4472 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4473 | ac_success=no |
---|
4474 | for ac_foobar in foobar FOOBAR; do |
---|
4475 | for ac_underscore in "" "_"; do |
---|
4476 | ac_func="$ac_foobar$ac_underscore" |
---|
4477 | cat >conftest.$ac_ext <<_ACEOF |
---|
4478 | /* confdefs.h. */ |
---|
4479 | _ACEOF |
---|
4480 | cat confdefs.h >>conftest.$ac_ext |
---|
4481 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4482 | /* end confdefs.h. */ |
---|
4483 | |
---|
4484 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4485 | #ifdef __cplusplus |
---|
4486 | extern "C" |
---|
4487 | #endif |
---|
4488 | /* We use char because int might match the return type of a gcc2 |
---|
4489 | builtin and then its argument prototype would still apply. */ |
---|
4490 | char $ac_func (); |
---|
4491 | #ifdef F77_DUMMY_MAIN |
---|
4492 | |
---|
4493 | # ifdef __cplusplus |
---|
4494 | extern "C" |
---|
4495 | # endif |
---|
4496 | int F77_DUMMY_MAIN() { return 1; } |
---|
4497 | |
---|
4498 | #endif |
---|
4499 | int |
---|
4500 | main () |
---|
4501 | { |
---|
4502 | $ac_func (); |
---|
4503 | ; |
---|
4504 | return 0; |
---|
4505 | } |
---|
4506 | _ACEOF |
---|
4507 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4509 | (eval $ac_link) 2>conftest.er1 |
---|
4510 | ac_status=$? |
---|
4511 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4512 | rm -f conftest.er1 |
---|
4513 | cat conftest.err >&5 |
---|
4514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4515 | (exit $ac_status); } && |
---|
4516 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4517 | || test ! -s conftest.err' |
---|
4518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4519 | (eval $ac_try) 2>&5 |
---|
4520 | ac_status=$? |
---|
4521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4522 | (exit $ac_status); }; } && |
---|
4523 | { ac_try='test -s conftest$ac_exeext' |
---|
4524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4525 | (eval $ac_try) 2>&5 |
---|
4526 | ac_status=$? |
---|
4527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4528 | (exit $ac_status); }; }; then |
---|
4529 | ac_success=yes; break 2 |
---|
4530 | else |
---|
4531 | echo "$as_me: failed program was:" >&5 |
---|
4532 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4533 | |
---|
4534 | fi |
---|
4535 | rm -f conftest.err conftest.$ac_objext \ |
---|
4536 | conftest$ac_exeext conftest.$ac_ext |
---|
4537 | done |
---|
4538 | done |
---|
4539 | ac_ext=f |
---|
4540 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4541 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4542 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4543 | |
---|
4544 | if test "$ac_success" = "yes"; then |
---|
4545 | case $ac_foobar in |
---|
4546 | foobar) |
---|
4547 | ac_case=lower |
---|
4548 | ac_foo_bar=foo_bar |
---|
4549 | ;; |
---|
4550 | FOOBAR) |
---|
4551 | ac_case=upper |
---|
4552 | ac_foo_bar=FOO_BAR |
---|
4553 | ;; |
---|
4554 | esac |
---|
4555 | |
---|
4556 | ac_ext=c |
---|
4557 | ac_cpp='$CPP $CPPFLAGS' |
---|
4558 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4559 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4560 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4561 | ac_success_extra=no |
---|
4562 | for ac_extra in "" "_"; do |
---|
4563 | ac_func="$ac_foo_bar$ac_underscore$ac_extra" |
---|
4564 | cat >conftest.$ac_ext <<_ACEOF |
---|
4565 | /* confdefs.h. */ |
---|
4566 | _ACEOF |
---|
4567 | cat confdefs.h >>conftest.$ac_ext |
---|
4568 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4569 | /* end confdefs.h. */ |
---|
4570 | |
---|
4571 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4572 | #ifdef __cplusplus |
---|
4573 | extern "C" |
---|
4574 | #endif |
---|
4575 | /* We use char because int might match the return type of a gcc2 |
---|
4576 | builtin and then its argument prototype would still apply. */ |
---|
4577 | char $ac_func (); |
---|
4578 | #ifdef F77_DUMMY_MAIN |
---|
4579 | |
---|
4580 | # ifdef __cplusplus |
---|
4581 | extern "C" |
---|
4582 | # endif |
---|
4583 | int F77_DUMMY_MAIN() { return 1; } |
---|
4584 | |
---|
4585 | #endif |
---|
4586 | int |
---|
4587 | main () |
---|
4588 | { |
---|
4589 | $ac_func (); |
---|
4590 | ; |
---|
4591 | return 0; |
---|
4592 | } |
---|
4593 | _ACEOF |
---|
4594 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4596 | (eval $ac_link) 2>conftest.er1 |
---|
4597 | ac_status=$? |
---|
4598 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4599 | rm -f conftest.er1 |
---|
4600 | cat conftest.err >&5 |
---|
4601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4602 | (exit $ac_status); } && |
---|
4603 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4604 | || test ! -s conftest.err' |
---|
4605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4606 | (eval $ac_try) 2>&5 |
---|
4607 | ac_status=$? |
---|
4608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4609 | (exit $ac_status); }; } && |
---|
4610 | { ac_try='test -s conftest$ac_exeext' |
---|
4611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4612 | (eval $ac_try) 2>&5 |
---|
4613 | ac_status=$? |
---|
4614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4615 | (exit $ac_status); }; }; then |
---|
4616 | ac_success_extra=yes; break |
---|
4617 | else |
---|
4618 | echo "$as_me: failed program was:" >&5 |
---|
4619 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4620 | |
---|
4621 | fi |
---|
4622 | rm -f conftest.err conftest.$ac_objext \ |
---|
4623 | conftest$ac_exeext conftest.$ac_ext |
---|
4624 | done |
---|
4625 | ac_ext=f |
---|
4626 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4627 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4628 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4629 | |
---|
4630 | if test "$ac_success_extra" = "yes"; then |
---|
4631 | ac_cv_f77_mangling="$ac_case case" |
---|
4632 | if test -z "$ac_underscore"; then |
---|
4633 | ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore" |
---|
4634 | else |
---|
4635 | ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore" |
---|
4636 | fi |
---|
4637 | if test -z "$ac_extra"; then |
---|
4638 | ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore" |
---|
4639 | else |
---|
4640 | ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore" |
---|
4641 | fi |
---|
4642 | else |
---|
4643 | ac_cv_f77_mangling="unknown" |
---|
4644 | fi |
---|
4645 | else |
---|
4646 | ac_cv_f77_mangling="unknown" |
---|
4647 | fi |
---|
4648 | |
---|
4649 | LIBS=$ac_save_LIBS |
---|
4650 | rm -f cfortran_test* conftest* |
---|
4651 | else |
---|
4652 | echo "$as_me: failed program was:" >&5 |
---|
4653 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4654 | |
---|
4655 | { { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program |
---|
4656 | See \`config.log' for more details." >&5 |
---|
4657 | echo "$as_me: error: cannot compile a simple Fortran program |
---|
4658 | See \`config.log' for more details." >&2;} |
---|
4659 | { (exit 1); exit 1; }; } |
---|
4660 | fi |
---|
4661 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4662 | |
---|
4663 | fi |
---|
4664 | echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5 |
---|
4665 | echo "${ECHO_T}$ac_cv_f77_mangling" >&6 |
---|
4666 | |
---|
4667 | ac_ext=f |
---|
4668 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4669 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4670 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4671 | |
---|
4672 | |
---|
4673 | ac_ext=f |
---|
4674 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4675 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4676 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4677 | |
---|
4678 | ac_ext=f |
---|
4679 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4680 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4681 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4682 | |
---|
4683 | |
---|
4684 | case $ac_cv_f77_mangling in |
---|
4685 | "lower case, no underscore, no extra underscore") |
---|
4686 | cat >>confdefs.h <<\_ACEOF |
---|
4687 | #define F77_FUNC(name,NAME) name |
---|
4688 | _ACEOF |
---|
4689 | |
---|
4690 | cat >>confdefs.h <<\_ACEOF |
---|
4691 | #define F77_FUNC_(name,NAME) name |
---|
4692 | _ACEOF |
---|
4693 | ;; |
---|
4694 | "lower case, no underscore, extra underscore") |
---|
4695 | cat >>confdefs.h <<\_ACEOF |
---|
4696 | #define F77_FUNC(name,NAME) name |
---|
4697 | _ACEOF |
---|
4698 | |
---|
4699 | cat >>confdefs.h <<\_ACEOF |
---|
4700 | #define F77_FUNC_(name,NAME) name ## _ |
---|
4701 | _ACEOF |
---|
4702 | ;; |
---|
4703 | "lower case, underscore, no extra underscore") |
---|
4704 | cat >>confdefs.h <<\_ACEOF |
---|
4705 | #define F77_FUNC(name,NAME) name ## _ |
---|
4706 | _ACEOF |
---|
4707 | |
---|
4708 | cat >>confdefs.h <<\_ACEOF |
---|
4709 | #define F77_FUNC_(name,NAME) name ## _ |
---|
4710 | _ACEOF |
---|
4711 | ;; |
---|
4712 | "lower case, underscore, extra underscore") |
---|
4713 | cat >>confdefs.h <<\_ACEOF |
---|
4714 | #define F77_FUNC(name,NAME) name ## _ |
---|
4715 | _ACEOF |
---|
4716 | |
---|
4717 | cat >>confdefs.h <<\_ACEOF |
---|
4718 | #define F77_FUNC_(name,NAME) name ## __ |
---|
4719 | _ACEOF |
---|
4720 | ;; |
---|
4721 | "upper case, no underscore, no extra underscore") |
---|
4722 | cat >>confdefs.h <<\_ACEOF |
---|
4723 | #define F77_FUNC(name,NAME) NAME |
---|
4724 | _ACEOF |
---|
4725 | |
---|
4726 | cat >>confdefs.h <<\_ACEOF |
---|
4727 | #define F77_FUNC_(name,NAME) NAME |
---|
4728 | _ACEOF |
---|
4729 | ;; |
---|
4730 | "upper case, no underscore, extra underscore") |
---|
4731 | cat >>confdefs.h <<\_ACEOF |
---|
4732 | #define F77_FUNC(name,NAME) NAME |
---|
4733 | _ACEOF |
---|
4734 | |
---|
4735 | cat >>confdefs.h <<\_ACEOF |
---|
4736 | #define F77_FUNC_(name,NAME) NAME ## _ |
---|
4737 | _ACEOF |
---|
4738 | ;; |
---|
4739 | "upper case, underscore, no extra underscore") |
---|
4740 | cat >>confdefs.h <<\_ACEOF |
---|
4741 | #define F77_FUNC(name,NAME) NAME ## _ |
---|
4742 | _ACEOF |
---|
4743 | |
---|
4744 | cat >>confdefs.h <<\_ACEOF |
---|
4745 | #define F77_FUNC_(name,NAME) NAME ## _ |
---|
4746 | _ACEOF |
---|
4747 | ;; |
---|
4748 | "upper case, underscore, extra underscore") |
---|
4749 | cat >>confdefs.h <<\_ACEOF |
---|
4750 | #define F77_FUNC(name,NAME) NAME ## _ |
---|
4751 | _ACEOF |
---|
4752 | |
---|
4753 | cat >>confdefs.h <<\_ACEOF |
---|
4754 | #define F77_FUNC_(name,NAME) NAME ## __ |
---|
4755 | _ACEOF |
---|
4756 | ;; |
---|
4757 | *) |
---|
4758 | { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5 |
---|
4759 | echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} |
---|
4760 | ;; |
---|
4761 | esac |
---|
4762 | |
---|
4763 | ac_ext=f |
---|
4764 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4765 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4766 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4767 | |
---|
4768 | ac_ext=c |
---|
4769 | ac_cpp='$CPP $CPPFLAGS' |
---|
4770 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4771 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4772 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4773 | |
---|
4774 | |
---|
4775 | |
---|
4776 | |
---|
4777 | # Add FLIBS to MUMPS_PCLIBS, so that they get into the .pc files |
---|
4778 | MUMPS_PCLIBS="$FLIBS" |
---|
4779 | |
---|
4780 | # We need to translate the result from autoconf to what MUMPS wants |
---|
4781 | case "$ac_cv_f77_mangling" in |
---|
4782 | "lower case, no underscore, no extra underscore") |
---|
4783 | ;; |
---|
4784 | "lower case, underscore, no extra underscore") |
---|
4785 | MY_DEFS="-DAdd_" |
---|
4786 | ;; |
---|
4787 | "lower case, no underscore, extra underscore") |
---|
4788 | MY_DEFS="-DAdd_" |
---|
4789 | ;; |
---|
4790 | "lower case, underscore, extra underscore") |
---|
4791 | MY_DEFS="-DAdd__" |
---|
4792 | ;; |
---|
4793 | "upper case, no underscore, no extra underscore") |
---|
4794 | MY_DEFS="-DUPPER" |
---|
4795 | ;; |
---|
4796 | "upper case, no underscore, extra underscore") |
---|
4797 | MY_DEFS="-DUPPER" |
---|
4798 | ;; |
---|
4799 | "upper case, underscore, no extra underscore") |
---|
4800 | MY_DEFS="-DUPPER" |
---|
4801 | ;; |
---|
4802 | "upper case, underscore, extra underscore") |
---|
4803 | MY_DEFS="-DUPPER" |
---|
4804 | ;; |
---|
4805 | esac |
---|
4806 | |
---|
4807 | # Mumps can make use of pthreads |
---|
4808 | # check for pthread.h header file and library |
---|
4809 | # Check whether --enable-pthread-mumps or --disable-pthread-mumps was given. |
---|
4810 | if test "${enable_pthread_mumps+set}" = set; then |
---|
4811 | enableval="$enable_pthread_mumps" |
---|
4812 | enable_pthread_mumps=$enableval |
---|
4813 | else |
---|
4814 | enable_pthread_mumps=yes |
---|
4815 | fi; |
---|
4816 | if test $enable_pthread_mumps = yes ; then |
---|
4817 | ac_ext=c |
---|
4818 | ac_cpp='$CPP $CPPFLAGS' |
---|
4819 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4820 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4821 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4822 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
4823 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
4824 | # On Suns, sometimes $CPP names a directory. |
---|
4825 | if test -n "$CPP" && test -d "$CPP"; then |
---|
4826 | CPP= |
---|
4827 | fi |
---|
4828 | if test -z "$CPP"; then |
---|
4829 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
4830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4831 | else |
---|
4832 | # Double quotes because CPP needs to be expanded |
---|
4833 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
4834 | do |
---|
4835 | ac_preproc_ok=false |
---|
4836 | for ac_c_preproc_warn_flag in '' yes |
---|
4837 | do |
---|
4838 | # Use a header file that comes with gcc, so configuring glibc |
---|
4839 | # with a fresh cross-compiler works. |
---|
4840 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4841 | # <limits.h> exists even on freestanding compilers. |
---|
4842 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4843 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4844 | cat >conftest.$ac_ext <<_ACEOF |
---|
4845 | /* confdefs.h. */ |
---|
4846 | _ACEOF |
---|
4847 | cat confdefs.h >>conftest.$ac_ext |
---|
4848 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4849 | /* end confdefs.h. */ |
---|
4850 | #ifdef __STDC__ |
---|
4851 | # include <limits.h> |
---|
4852 | #else |
---|
4853 | # include <assert.h> |
---|
4854 | #endif |
---|
4855 | Syntax error |
---|
4856 | _ACEOF |
---|
4857 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4858 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4859 | ac_status=$? |
---|
4860 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4861 | rm -f conftest.er1 |
---|
4862 | cat conftest.err >&5 |
---|
4863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4864 | (exit $ac_status); } >/dev/null; then |
---|
4865 | if test -s conftest.err; then |
---|
4866 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4867 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4868 | else |
---|
4869 | ac_cpp_err= |
---|
4870 | fi |
---|
4871 | else |
---|
4872 | ac_cpp_err=yes |
---|
4873 | fi |
---|
4874 | if test -z "$ac_cpp_err"; then |
---|
4875 | : |
---|
4876 | else |
---|
4877 | echo "$as_me: failed program was:" >&5 |
---|
4878 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4879 | |
---|
4880 | # Broken: fails on valid input. |
---|
4881 | continue |
---|
4882 | fi |
---|
4883 | rm -f conftest.err conftest.$ac_ext |
---|
4884 | |
---|
4885 | # OK, works on sane cases. Now check whether non-existent headers |
---|
4886 | # can be detected and how. |
---|
4887 | cat >conftest.$ac_ext <<_ACEOF |
---|
4888 | /* confdefs.h. */ |
---|
4889 | _ACEOF |
---|
4890 | cat confdefs.h >>conftest.$ac_ext |
---|
4891 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4892 | /* end confdefs.h. */ |
---|
4893 | #include <ac_nonexistent.h> |
---|
4894 | _ACEOF |
---|
4895 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4896 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4897 | ac_status=$? |
---|
4898 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4899 | rm -f conftest.er1 |
---|
4900 | cat conftest.err >&5 |
---|
4901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4902 | (exit $ac_status); } >/dev/null; then |
---|
4903 | if test -s conftest.err; then |
---|
4904 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4905 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4906 | else |
---|
4907 | ac_cpp_err= |
---|
4908 | fi |
---|
4909 | else |
---|
4910 | ac_cpp_err=yes |
---|
4911 | fi |
---|
4912 | if test -z "$ac_cpp_err"; then |
---|
4913 | # Broken: success on invalid input. |
---|
4914 | continue |
---|
4915 | else |
---|
4916 | echo "$as_me: failed program was:" >&5 |
---|
4917 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4918 | |
---|
4919 | # Passes both tests. |
---|
4920 | ac_preproc_ok=: |
---|
4921 | break |
---|
4922 | fi |
---|
4923 | rm -f conftest.err conftest.$ac_ext |
---|
4924 | |
---|
4925 | done |
---|
4926 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4927 | rm -f conftest.err conftest.$ac_ext |
---|
4928 | if $ac_preproc_ok; then |
---|
4929 | break |
---|
4930 | fi |
---|
4931 | |
---|
4932 | done |
---|
4933 | ac_cv_prog_CPP=$CPP |
---|
4934 | |
---|
4935 | fi |
---|
4936 | CPP=$ac_cv_prog_CPP |
---|
4937 | else |
---|
4938 | ac_cv_prog_CPP=$CPP |
---|
4939 | fi |
---|
4940 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
4941 | echo "${ECHO_T}$CPP" >&6 |
---|
4942 | ac_preproc_ok=false |
---|
4943 | for ac_c_preproc_warn_flag in '' yes |
---|
4944 | do |
---|
4945 | # Use a header file that comes with gcc, so configuring glibc |
---|
4946 | # with a fresh cross-compiler works. |
---|
4947 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4948 | # <limits.h> exists even on freestanding compilers. |
---|
4949 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4950 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4951 | cat >conftest.$ac_ext <<_ACEOF |
---|
4952 | /* confdefs.h. */ |
---|
4953 | _ACEOF |
---|
4954 | cat confdefs.h >>conftest.$ac_ext |
---|
4955 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4956 | /* end confdefs.h. */ |
---|
4957 | #ifdef __STDC__ |
---|
4958 | # include <limits.h> |
---|
4959 | #else |
---|
4960 | # include <assert.h> |
---|
4961 | #endif |
---|
4962 | Syntax error |
---|
4963 | _ACEOF |
---|
4964 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4965 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4966 | ac_status=$? |
---|
4967 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4968 | rm -f conftest.er1 |
---|
4969 | cat conftest.err >&5 |
---|
4970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4971 | (exit $ac_status); } >/dev/null; then |
---|
4972 | if test -s conftest.err; then |
---|
4973 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4974 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4975 | else |
---|
4976 | ac_cpp_err= |
---|
4977 | fi |
---|
4978 | else |
---|
4979 | ac_cpp_err=yes |
---|
4980 | fi |
---|
4981 | if test -z "$ac_cpp_err"; then |
---|
4982 | : |
---|
4983 | else |
---|
4984 | echo "$as_me: failed program was:" >&5 |
---|
4985 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4986 | |
---|
4987 | # Broken: fails on valid input. |
---|
4988 | continue |
---|
4989 | fi |
---|
4990 | rm -f conftest.err conftest.$ac_ext |
---|
4991 | |
---|
4992 | # OK, works on sane cases. Now check whether non-existent headers |
---|
4993 | # can be detected and how. |
---|
4994 | cat >conftest.$ac_ext <<_ACEOF |
---|
4995 | /* confdefs.h. */ |
---|
4996 | _ACEOF |
---|
4997 | cat confdefs.h >>conftest.$ac_ext |
---|
4998 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4999 | /* end confdefs.h. */ |
---|
5000 | #include <ac_nonexistent.h> |
---|
5001 | _ACEOF |
---|
5002 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5003 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5004 | ac_status=$? |
---|
5005 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5006 | rm -f conftest.er1 |
---|
5007 | cat conftest.err >&5 |
---|
5008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5009 | (exit $ac_status); } >/dev/null; then |
---|
5010 | if test -s conftest.err; then |
---|
5011 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5012 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5013 | else |
---|
5014 | ac_cpp_err= |
---|
5015 | fi |
---|
5016 | else |
---|
5017 | ac_cpp_err=yes |
---|
5018 | fi |
---|
5019 | if test -z "$ac_cpp_err"; then |
---|
5020 | # Broken: success on invalid input. |
---|
5021 | continue |
---|
5022 | else |
---|
5023 | echo "$as_me: failed program was:" >&5 |
---|
5024 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5025 | |
---|
5026 | # Passes both tests. |
---|
5027 | ac_preproc_ok=: |
---|
5028 | break |
---|
5029 | fi |
---|
5030 | rm -f conftest.err conftest.$ac_ext |
---|
5031 | |
---|
5032 | done |
---|
5033 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5034 | rm -f conftest.err conftest.$ac_ext |
---|
5035 | if $ac_preproc_ok; then |
---|
5036 | : |
---|
5037 | else |
---|
5038 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
5039 | See \`config.log' for more details." >&5 |
---|
5040 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
5041 | See \`config.log' for more details." >&2;} |
---|
5042 | { (exit 1); exit 1; }; } |
---|
5043 | fi |
---|
5044 | |
---|
5045 | ac_ext=c |
---|
5046 | ac_cpp='$CPP $CPPFLAGS' |
---|
5047 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5048 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5049 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5050 | |
---|
5051 | |
---|
5052 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
5053 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
5054 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
5055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5056 | else |
---|
5057 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
5058 | then ac_cv_prog_egrep='grep -E' |
---|
5059 | else ac_cv_prog_egrep='egrep' |
---|
5060 | fi |
---|
5061 | fi |
---|
5062 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
5063 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
5064 | EGREP=$ac_cv_prog_egrep |
---|
5065 | |
---|
5066 | |
---|
5067 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
5068 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
5069 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
5070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5071 | else |
---|
5072 | cat >conftest.$ac_ext <<_ACEOF |
---|
5073 | /* confdefs.h. */ |
---|
5074 | _ACEOF |
---|
5075 | cat confdefs.h >>conftest.$ac_ext |
---|
5076 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5077 | /* end confdefs.h. */ |
---|
5078 | #include <stdlib.h> |
---|
5079 | #include <stdarg.h> |
---|
5080 | #include <string.h> |
---|
5081 | #include <float.h> |
---|
5082 | |
---|
5083 | #ifdef F77_DUMMY_MAIN |
---|
5084 | |
---|
5085 | # ifdef __cplusplus |
---|
5086 | extern "C" |
---|
5087 | # endif |
---|
5088 | int F77_DUMMY_MAIN() { return 1; } |
---|
5089 | |
---|
5090 | #endif |
---|
5091 | int |
---|
5092 | main () |
---|
5093 | { |
---|
5094 | |
---|
5095 | ; |
---|
5096 | return 0; |
---|
5097 | } |
---|
5098 | _ACEOF |
---|
5099 | rm -f conftest.$ac_objext |
---|
5100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5101 | (eval $ac_compile) 2>conftest.er1 |
---|
5102 | ac_status=$? |
---|
5103 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5104 | rm -f conftest.er1 |
---|
5105 | cat conftest.err >&5 |
---|
5106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5107 | (exit $ac_status); } && |
---|
5108 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5109 | || test ! -s conftest.err' |
---|
5110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5111 | (eval $ac_try) 2>&5 |
---|
5112 | ac_status=$? |
---|
5113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5114 | (exit $ac_status); }; } && |
---|
5115 | { ac_try='test -s conftest.$ac_objext' |
---|
5116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5117 | (eval $ac_try) 2>&5 |
---|
5118 | ac_status=$? |
---|
5119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5120 | (exit $ac_status); }; }; then |
---|
5121 | ac_cv_header_stdc=yes |
---|
5122 | else |
---|
5123 | echo "$as_me: failed program was:" >&5 |
---|
5124 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5125 | |
---|
5126 | ac_cv_header_stdc=no |
---|
5127 | fi |
---|
5128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5129 | |
---|
5130 | if test $ac_cv_header_stdc = yes; then |
---|
5131 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
5132 | cat >conftest.$ac_ext <<_ACEOF |
---|
5133 | /* confdefs.h. */ |
---|
5134 | _ACEOF |
---|
5135 | cat confdefs.h >>conftest.$ac_ext |
---|
5136 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5137 | /* end confdefs.h. */ |
---|
5138 | #include <string.h> |
---|
5139 | |
---|
5140 | _ACEOF |
---|
5141 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5142 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
5143 | : |
---|
5144 | else |
---|
5145 | ac_cv_header_stdc=no |
---|
5146 | fi |
---|
5147 | rm -f conftest* |
---|
5148 | |
---|
5149 | fi |
---|
5150 | |
---|
5151 | if test $ac_cv_header_stdc = yes; then |
---|
5152 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
5153 | cat >conftest.$ac_ext <<_ACEOF |
---|
5154 | /* confdefs.h. */ |
---|
5155 | _ACEOF |
---|
5156 | cat confdefs.h >>conftest.$ac_ext |
---|
5157 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5158 | /* end confdefs.h. */ |
---|
5159 | #include <stdlib.h> |
---|
5160 | |
---|
5161 | _ACEOF |
---|
5162 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5163 | $EGREP "free" >/dev/null 2>&1; then |
---|
5164 | : |
---|
5165 | else |
---|
5166 | ac_cv_header_stdc=no |
---|
5167 | fi |
---|
5168 | rm -f conftest* |
---|
5169 | |
---|
5170 | fi |
---|
5171 | |
---|
5172 | if test $ac_cv_header_stdc = yes; then |
---|
5173 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
5174 | if test "$cross_compiling" = yes; then |
---|
5175 | : |
---|
5176 | else |
---|
5177 | cat >conftest.$ac_ext <<_ACEOF |
---|
5178 | /* confdefs.h. */ |
---|
5179 | _ACEOF |
---|
5180 | cat confdefs.h >>conftest.$ac_ext |
---|
5181 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5182 | /* end confdefs.h. */ |
---|
5183 | #include <ctype.h> |
---|
5184 | #if ((' ' & 0x0FF) == 0x020) |
---|
5185 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
5186 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
5187 | #else |
---|
5188 | # define ISLOWER(c) \ |
---|
5189 | (('a' <= (c) && (c) <= 'i') \ |
---|
5190 | || ('j' <= (c) && (c) <= 'r') \ |
---|
5191 | || ('s' <= (c) && (c) <= 'z')) |
---|
5192 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
5193 | #endif |
---|
5194 | |
---|
5195 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
5196 | int |
---|
5197 | main () |
---|
5198 | { |
---|
5199 | int i; |
---|
5200 | for (i = 0; i < 256; i++) |
---|
5201 | if (XOR (islower (i), ISLOWER (i)) |
---|
5202 | || toupper (i) != TOUPPER (i)) |
---|
5203 | exit(2); |
---|
5204 | exit (0); |
---|
5205 | } |
---|
5206 | _ACEOF |
---|
5207 | rm -f conftest$ac_exeext |
---|
5208 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5209 | (eval $ac_link) 2>&5 |
---|
5210 | ac_status=$? |
---|
5211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5212 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5214 | (eval $ac_try) 2>&5 |
---|
5215 | ac_status=$? |
---|
5216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5217 | (exit $ac_status); }; }; then |
---|
5218 | : |
---|
5219 | else |
---|
5220 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
5221 | echo "$as_me: failed program was:" >&5 |
---|
5222 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5223 | |
---|
5224 | ( exit $ac_status ) |
---|
5225 | ac_cv_header_stdc=no |
---|
5226 | fi |
---|
5227 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5228 | fi |
---|
5229 | fi |
---|
5230 | fi |
---|
5231 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
5232 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
5233 | if test $ac_cv_header_stdc = yes; then |
---|
5234 | |
---|
5235 | cat >>confdefs.h <<\_ACEOF |
---|
5236 | #define STDC_HEADERS 1 |
---|
5237 | _ACEOF |
---|
5238 | |
---|
5239 | fi |
---|
5240 | |
---|
5241 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
5242 | |
---|
5243 | |
---|
5244 | |
---|
5245 | |
---|
5246 | |
---|
5247 | |
---|
5248 | |
---|
5249 | |
---|
5250 | |
---|
5251 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
5252 | inttypes.h stdint.h unistd.h |
---|
5253 | do |
---|
5254 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5255 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5256 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5257 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5259 | else |
---|
5260 | cat >conftest.$ac_ext <<_ACEOF |
---|
5261 | /* confdefs.h. */ |
---|
5262 | _ACEOF |
---|
5263 | cat confdefs.h >>conftest.$ac_ext |
---|
5264 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5265 | /* end confdefs.h. */ |
---|
5266 | $ac_includes_default |
---|
5267 | |
---|
5268 | #include <$ac_header> |
---|
5269 | _ACEOF |
---|
5270 | rm -f conftest.$ac_objext |
---|
5271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5272 | (eval $ac_compile) 2>conftest.er1 |
---|
5273 | ac_status=$? |
---|
5274 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5275 | rm -f conftest.er1 |
---|
5276 | cat conftest.err >&5 |
---|
5277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5278 | (exit $ac_status); } && |
---|
5279 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5280 | || test ! -s conftest.err' |
---|
5281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5282 | (eval $ac_try) 2>&5 |
---|
5283 | ac_status=$? |
---|
5284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5285 | (exit $ac_status); }; } && |
---|
5286 | { ac_try='test -s conftest.$ac_objext' |
---|
5287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5288 | (eval $ac_try) 2>&5 |
---|
5289 | ac_status=$? |
---|
5290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5291 | (exit $ac_status); }; }; then |
---|
5292 | eval "$as_ac_Header=yes" |
---|
5293 | else |
---|
5294 | echo "$as_me: failed program was:" >&5 |
---|
5295 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5296 | |
---|
5297 | eval "$as_ac_Header=no" |
---|
5298 | fi |
---|
5299 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5300 | fi |
---|
5301 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5302 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5303 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5304 | cat >>confdefs.h <<_ACEOF |
---|
5305 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5306 | _ACEOF |
---|
5307 | |
---|
5308 | fi |
---|
5309 | |
---|
5310 | done |
---|
5311 | |
---|
5312 | |
---|
5313 | #if test x"" = x; then |
---|
5314 | # hdr="#include <pthread.h>" |
---|
5315 | #else |
---|
5316 | # hdr="" |
---|
5317 | #fi |
---|
5318 | #AC_CHECK_HEADERS([pthread.h],[],[enable_pthread_mumps=no],[$hdr]) |
---|
5319 | |
---|
5320 | for ac_header in pthread.h |
---|
5321 | do |
---|
5322 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5323 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5324 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5325 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5326 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5328 | fi |
---|
5329 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5330 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5331 | else |
---|
5332 | # Is the header compilable? |
---|
5333 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5334 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5335 | cat >conftest.$ac_ext <<_ACEOF |
---|
5336 | /* confdefs.h. */ |
---|
5337 | _ACEOF |
---|
5338 | cat confdefs.h >>conftest.$ac_ext |
---|
5339 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5340 | /* end confdefs.h. */ |
---|
5341 | $ac_includes_default |
---|
5342 | #include <$ac_header> |
---|
5343 | _ACEOF |
---|
5344 | rm -f conftest.$ac_objext |
---|
5345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5346 | (eval $ac_compile) 2>conftest.er1 |
---|
5347 | ac_status=$? |
---|
5348 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5349 | rm -f conftest.er1 |
---|
5350 | cat conftest.err >&5 |
---|
5351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5352 | (exit $ac_status); } && |
---|
5353 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5354 | || test ! -s conftest.err' |
---|
5355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5356 | (eval $ac_try) 2>&5 |
---|
5357 | ac_status=$? |
---|
5358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5359 | (exit $ac_status); }; } && |
---|
5360 | { ac_try='test -s conftest.$ac_objext' |
---|
5361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5362 | (eval $ac_try) 2>&5 |
---|
5363 | ac_status=$? |
---|
5364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5365 | (exit $ac_status); }; }; then |
---|
5366 | ac_header_compiler=yes |
---|
5367 | else |
---|
5368 | echo "$as_me: failed program was:" >&5 |
---|
5369 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5370 | |
---|
5371 | ac_header_compiler=no |
---|
5372 | fi |
---|
5373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5374 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5375 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5376 | |
---|
5377 | # Is the header present? |
---|
5378 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5379 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5380 | cat >conftest.$ac_ext <<_ACEOF |
---|
5381 | /* confdefs.h. */ |
---|
5382 | _ACEOF |
---|
5383 | cat confdefs.h >>conftest.$ac_ext |
---|
5384 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5385 | /* end confdefs.h. */ |
---|
5386 | #include <$ac_header> |
---|
5387 | _ACEOF |
---|
5388 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5389 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5390 | ac_status=$? |
---|
5391 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5392 | rm -f conftest.er1 |
---|
5393 | cat conftest.err >&5 |
---|
5394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5395 | (exit $ac_status); } >/dev/null; then |
---|
5396 | if test -s conftest.err; then |
---|
5397 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5398 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5399 | else |
---|
5400 | ac_cpp_err= |
---|
5401 | fi |
---|
5402 | else |
---|
5403 | ac_cpp_err=yes |
---|
5404 | fi |
---|
5405 | if test -z "$ac_cpp_err"; then |
---|
5406 | ac_header_preproc=yes |
---|
5407 | else |
---|
5408 | echo "$as_me: failed program was:" >&5 |
---|
5409 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5410 | |
---|
5411 | ac_header_preproc=no |
---|
5412 | fi |
---|
5413 | rm -f conftest.err conftest.$ac_ext |
---|
5414 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5415 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5416 | |
---|
5417 | # So? What about this header? |
---|
5418 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5419 | yes:no: ) |
---|
5420 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5421 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5422 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5423 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5424 | ac_header_preproc=yes |
---|
5425 | ;; |
---|
5426 | no:yes:* ) |
---|
5427 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5428 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5429 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5430 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5431 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5432 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5433 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5434 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5435 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5436 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5437 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5438 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5439 | ( |
---|
5440 | cat <<\_ASBOX |
---|
5441 | ## --------------------------------------------------------------- ## |
---|
5442 | ## Report this to http://projects.coin-or.org/BuildTools/newticket ## |
---|
5443 | ## --------------------------------------------------------------- ## |
---|
5444 | _ASBOX |
---|
5445 | ) | |
---|
5446 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5447 | ;; |
---|
5448 | esac |
---|
5449 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5450 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5451 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5453 | else |
---|
5454 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5455 | fi |
---|
5456 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5457 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5458 | |
---|
5459 | fi |
---|
5460 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5461 | cat >>confdefs.h <<_ACEOF |
---|
5462 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5463 | _ACEOF |
---|
5464 | |
---|
5465 | else |
---|
5466 | enable_pthread_mumps=no |
---|
5467 | fi |
---|
5468 | |
---|
5469 | done |
---|
5470 | |
---|
5471 | |
---|
5472 | fi |
---|
5473 | if test $enable_pthread_mumps = yes ; then |
---|
5474 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
---|
5475 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
---|
5476 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
---|
5477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5478 | else |
---|
5479 | ac_check_lib_save_LIBS=$LIBS |
---|
5480 | LIBS="-lpthread $LIBS" |
---|
5481 | cat >conftest.$ac_ext <<_ACEOF |
---|
5482 | /* confdefs.h. */ |
---|
5483 | _ACEOF |
---|
5484 | cat confdefs.h >>conftest.$ac_ext |
---|
5485 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5486 | /* end confdefs.h. */ |
---|
5487 | |
---|
5488 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5489 | #ifdef __cplusplus |
---|
5490 | extern "C" |
---|
5491 | #endif |
---|
5492 | /* We use char because int might match the return type of a gcc2 |
---|
5493 | builtin and then its argument prototype would still apply. */ |
---|
5494 | char pthread_create (); |
---|
5495 | #ifdef F77_DUMMY_MAIN |
---|
5496 | |
---|
5497 | # ifdef __cplusplus |
---|
5498 | extern "C" |
---|
5499 | # endif |
---|
5500 | int F77_DUMMY_MAIN() { return 1; } |
---|
5501 | |
---|
5502 | #endif |
---|
5503 | int |
---|
5504 | main () |
---|
5505 | { |
---|
5506 | pthread_create (); |
---|
5507 | ; |
---|
5508 | return 0; |
---|
5509 | } |
---|
5510 | _ACEOF |
---|
5511 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5512 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5513 | (eval $ac_link) 2>conftest.er1 |
---|
5514 | ac_status=$? |
---|
5515 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5516 | rm -f conftest.er1 |
---|
5517 | cat conftest.err >&5 |
---|
5518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5519 | (exit $ac_status); } && |
---|
5520 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5521 | || test ! -s conftest.err' |
---|
5522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5523 | (eval $ac_try) 2>&5 |
---|
5524 | ac_status=$? |
---|
5525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5526 | (exit $ac_status); }; } && |
---|
5527 | { ac_try='test -s conftest$ac_exeext' |
---|
5528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5529 | (eval $ac_try) 2>&5 |
---|
5530 | ac_status=$? |
---|
5531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5532 | (exit $ac_status); }; }; then |
---|
5533 | ac_cv_lib_pthread_pthread_create=yes |
---|
5534 | else |
---|
5535 | echo "$as_me: failed program was:" >&5 |
---|
5536 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5537 | |
---|
5538 | ac_cv_lib_pthread_pthread_create=no |
---|
5539 | fi |
---|
5540 | rm -f conftest.err conftest.$ac_objext \ |
---|
5541 | conftest$ac_exeext conftest.$ac_ext |
---|
5542 | LIBS=$ac_check_lib_save_LIBS |
---|
5543 | fi |
---|
5544 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
---|
5545 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 |
---|
5546 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
---|
5547 | MUMPS_PCLIBS="-lpthread $MUMPS_PCLIBS" |
---|
5548 | else |
---|
5549 | enable_pthread_mumps=no |
---|
5550 | fi |
---|
5551 | |
---|
5552 | fi |
---|
5553 | if test $enable_pthread_mumps = no ; then |
---|
5554 | MY_DEFS="$MY_DEFS -DWITHOUT_PTHREAD=1" |
---|
5555 | fi |
---|
5556 | |
---|
5557 | MY_DEFS="$MY_DEFS -DALLOW_NON_INIT -DMUMPS_ARITH=MUMPS_ARITH_d" |
---|
5558 | |
---|
5559 | |
---|
5560 | # Initialize automake |
---|
5561 | { |
---|
5562 | |
---|
5563 | |
---|
5564 | |
---|
5565 | # START |
---|
5566 | |
---|
5567 | coin_disable_shared=no |
---|
5568 | # Test if force_shared has been set |
---|
5569 | if test "x" = xforce_shared; then |
---|
5570 | if test x$enable_shared = xno; then |
---|
5571 | { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5 |
---|
5572 | echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;} |
---|
5573 | { (exit 1); exit 1; }; } |
---|
5574 | fi |
---|
5575 | enable_shared=yes; |
---|
5576 | else |
---|
5577 | # On Cygwin and AIX, building DLLs doesn't work |
---|
5578 | case $build in |
---|
5579 | *-cygwin* | *-mingw*) |
---|
5580 | coin_disable_shared=yes |
---|
5581 | if test x"$enable_shared" = xyes; then |
---|
5582 | case "$CC" in |
---|
5583 | clang* ) |
---|
5584 | { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5 |
---|
5585 | echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;} |
---|
5586 | ;; |
---|
5587 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
5588 | { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5 |
---|
5589 | echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;} |
---|
5590 | ;; |
---|
5591 | *gcc*) |
---|
5592 | if test x"$enable_dependency_linking" = xyes; then |
---|
5593 | coin_disable_shared=no |
---|
5594 | else |
---|
5595 | { echo "$as_me:$LINENO: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&5 |
---|
5596 | echo "$as_me: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&2;} |
---|
5597 | fi |
---|
5598 | ;; |
---|
5599 | *) |
---|
5600 | { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5 |
---|
5601 | echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;} |
---|
5602 | ;; |
---|
5603 | esac |
---|
5604 | fi |
---|
5605 | ;; |
---|
5606 | *-aix*) |
---|
5607 | coin_disable_shared=yes |
---|
5608 | platform=AIX |
---|
5609 | if test x"$enable_shared" = xyes; then |
---|
5610 | { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5 |
---|
5611 | echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;} |
---|
5612 | fi |
---|
5613 | ;; |
---|
5614 | esac |
---|
5615 | fi |
---|
5616 | if test x"$coin_disable_shared" = xyes; then |
---|
5617 | if test x"$enable_shared" = xyes; then |
---|
5618 | : |
---|
5619 | else |
---|
5620 | # we don't disable shared, because it was not selected anyway |
---|
5621 | coin_disable_shared=no |
---|
5622 | fi |
---|
5623 | enable_shared=no |
---|
5624 | fi |
---|
5625 | # By default, we only want the shared objects to be compiled |
---|
5626 | # Check whether --enable-static or --disable-static was given. |
---|
5627 | if test "${enable_static+set}" = set; then |
---|
5628 | enableval="$enable_static" |
---|
5629 | p=${PACKAGE-default} |
---|
5630 | case $enableval in |
---|
5631 | yes) enable_static=yes ;; |
---|
5632 | no) enable_static=no ;; |
---|
5633 | *) |
---|
5634 | enable_static=no |
---|
5635 | # Look at the argument we got. We use all the common list separators. |
---|
5636 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
5637 | for pkg in $enableval; do |
---|
5638 | IFS="$lt_save_ifs" |
---|
5639 | if test "X$pkg" = "X$p"; then |
---|
5640 | enable_static=yes |
---|
5641 | fi |
---|
5642 | done |
---|
5643 | IFS="$lt_save_ifs" |
---|
5644 | ;; |
---|
5645 | esac |
---|
5646 | else |
---|
5647 | enable_static=no |
---|
5648 | fi; |
---|
5649 | |
---|
5650 | |
---|
5651 | |
---|
5652 | |
---|
5653 | # Initialize automake |
---|
5654 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
---|
5655 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
---|
5656 | LN_S=$as_ln_s |
---|
5657 | if test "$LN_S" = "ln -s"; then |
---|
5658 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
5659 | echo "${ECHO_T}yes" >&6 |
---|
5660 | else |
---|
5661 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
---|
5662 | echo "${ECHO_T}no, using $LN_S" >&6 |
---|
5663 | fi |
---|
5664 | |
---|
5665 | am__api_version="1.9" |
---|
5666 | # Find a good install program. We prefer a C program (faster), |
---|
5667 | # so one script is as good as another. But avoid the broken or |
---|
5668 | # incompatible versions: |
---|
5669 | # SysV /etc/install, /usr/sbin/install |
---|
5670 | # SunOS /usr/etc/install |
---|
5671 | # IRIX /sbin/install |
---|
5672 | # AIX /bin/install |
---|
5673 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
5674 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
5675 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
5676 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
5677 | # OS/2's system install, which has a completely different semantic |
---|
5678 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
5679 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
5680 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
5681 | if test -z "$INSTALL"; then |
---|
5682 | if test "${ac_cv_path_install+set}" = set; then |
---|
5683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5684 | else |
---|
5685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5686 | for as_dir in $PATH |
---|
5687 | do |
---|
5688 | IFS=$as_save_IFS |
---|
5689 | test -z "$as_dir" && as_dir=. |
---|
5690 | # Account for people who put trailing slashes in PATH elements. |
---|
5691 | case $as_dir/ in |
---|
5692 | ./ | .// | /cC/* | \ |
---|
5693 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
5694 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
5695 | /usr/ucb/* ) ;; |
---|
5696 | *) |
---|
5697 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
5698 | # Don't use installbsd from OSF since it installs stuff as root |
---|
5699 | # by default. |
---|
5700 | for ac_prog in ginstall scoinst install; do |
---|
5701 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5702 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
5703 | if test $ac_prog = install && |
---|
5704 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
5705 | # AIX install. It has an incompatible calling convention. |
---|
5706 | : |
---|
5707 | elif test $ac_prog = install && |
---|
5708 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
5709 | # program-specific install script used by HP pwplus--don't use. |
---|
5710 | : |
---|
5711 | else |
---|
5712 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
5713 | break 3 |
---|
5714 | fi |
---|
5715 | fi |
---|
5716 | done |
---|
5717 | done |
---|
5718 | ;; |
---|
5719 | esac |
---|
5720 | done |
---|
5721 | |
---|
5722 | |
---|
5723 | fi |
---|
5724 | if test "${ac_cv_path_install+set}" = set; then |
---|
5725 | INSTALL=$ac_cv_path_install |
---|
5726 | else |
---|
5727 | # As a last resort, use the slow shell script. We don't cache a |
---|
5728 | # path for INSTALL within a source directory, because that will |
---|
5729 | # break other packages using the cache if that directory is |
---|
5730 | # removed, or if the path is relative. |
---|
5731 | INSTALL=$ac_install_sh |
---|
5732 | fi |
---|
5733 | fi |
---|
5734 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
5735 | echo "${ECHO_T}$INSTALL" >&6 |
---|
5736 | |
---|
5737 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
5738 | # It thinks the first close brace ends the variable substitution. |
---|
5739 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
5740 | |
---|
5741 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
5742 | |
---|
5743 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
5744 | |
---|
5745 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
5746 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
5747 | # Just in case |
---|
5748 | sleep 1 |
---|
5749 | echo timestamp > conftest.file |
---|
5750 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
5751 | # arguments. Must try -L first in case configure is actually a |
---|
5752 | # symlink; some systems play weird games with the mod time of symlinks |
---|
5753 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
5754 | # directory). |
---|
5755 | if ( |
---|
5756 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
5757 | if test "$*" = "X"; then |
---|
5758 | # -L didn't work. |
---|
5759 | set X `ls -t $srcdir/configure conftest.file` |
---|
5760 | fi |
---|
5761 | rm -f conftest.file |
---|
5762 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
5763 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
5764 | |
---|
5765 | # If neither matched, then we have a broken ls. This can happen |
---|
5766 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
5767 | # broken ls alias from the environment. This has actually |
---|
5768 | # happened. Such a system could not be considered "sane". |
---|
5769 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
5770 | alias in your environment" >&5 |
---|
5771 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
5772 | alias in your environment" >&2;} |
---|
5773 | { (exit 1); exit 1; }; } |
---|
5774 | fi |
---|
5775 | |
---|
5776 | test "$2" = conftest.file |
---|
5777 | ) |
---|
5778 | then |
---|
5779 | # Ok. |
---|
5780 | : |
---|
5781 | else |
---|
5782 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
5783 | Check your system clock" >&5 |
---|
5784 | echo "$as_me: error: newly created file is older than distributed files! |
---|
5785 | Check your system clock" >&2;} |
---|
5786 | { (exit 1); exit 1; }; } |
---|
5787 | fi |
---|
5788 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
5789 | echo "${ECHO_T}yes" >&6 |
---|
5790 | test "$program_prefix" != NONE && |
---|
5791 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
5792 | # Use a double $ so make ignores it. |
---|
5793 | test "$program_suffix" != NONE && |
---|
5794 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
5795 | # Double any \ or $. echo might interpret backslashes. |
---|
5796 | # By default was `s,x,x', remove it if useless. |
---|
5797 | cat <<\_ACEOF >conftest.sed |
---|
5798 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
5799 | _ACEOF |
---|
5800 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
5801 | rm conftest.sed |
---|
5802 | |
---|
5803 | # expand $ac_aux_dir to an absolute path |
---|
5804 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
5805 | |
---|
5806 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
5807 | # Use eval to expand $SHELL |
---|
5808 | if eval "$MISSING --run true"; then |
---|
5809 | am_missing_run="$MISSING --run " |
---|
5810 | else |
---|
5811 | am_missing_run= |
---|
5812 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
5813 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
5814 | fi |
---|
5815 | |
---|
5816 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
5817 | # We used to keeping the `.' as first argument, in order to |
---|
5818 | # allow $(mkdir_p) to be used without argument. As in |
---|
5819 | # $(mkdir_p) $(somedir) |
---|
5820 | # where $(somedir) is conditionally defined. However this is wrong |
---|
5821 | # for two reasons: |
---|
5822 | # 1. if the package is installed by a user who cannot write `.' |
---|
5823 | # make install will fail, |
---|
5824 | # 2. the above comment should most certainly read |
---|
5825 | # $(mkdir_p) $(DESTDIR)$(somedir) |
---|
5826 | # so it does not work when $(somedir) is undefined and |
---|
5827 | # $(DESTDIR) is not. |
---|
5828 | # To support the latter case, we have to write |
---|
5829 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
---|
5830 | # so the `.' trick is pointless. |
---|
5831 | mkdir_p='mkdir -p --' |
---|
5832 | else |
---|
5833 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
5834 | # recognize any option. It will interpret all options as |
---|
5835 | # directories to create, and then abort because `.' already |
---|
5836 | # exists. |
---|
5837 | for d in ./-p ./--version; |
---|
5838 | do |
---|
5839 | test -d $d && rmdir $d |
---|
5840 | done |
---|
5841 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
5842 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
5843 | mkdir_p='$(mkinstalldirs)' |
---|
5844 | else |
---|
5845 | mkdir_p='$(install_sh) -d' |
---|
5846 | fi |
---|
5847 | fi |
---|
5848 | |
---|
5849 | for ac_prog in gawk mawk nawk awk |
---|
5850 | do |
---|
5851 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
5852 | set dummy $ac_prog; ac_word=$2 |
---|
5853 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5854 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5855 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
5856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5857 | else |
---|
5858 | if test -n "$AWK"; then |
---|
5859 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
5860 | else |
---|
5861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5862 | for as_dir in $PATH |
---|
5863 | do |
---|
5864 | IFS=$as_save_IFS |
---|
5865 | test -z "$as_dir" && as_dir=. |
---|
5866 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5867 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5868 | ac_cv_prog_AWK="$ac_prog" |
---|
5869 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5870 | break 2 |
---|
5871 | fi |
---|
5872 | done |
---|
5873 | done |
---|
5874 | |
---|
5875 | fi |
---|
5876 | fi |
---|
5877 | AWK=$ac_cv_prog_AWK |
---|
5878 | if test -n "$AWK"; then |
---|
5879 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
5880 | echo "${ECHO_T}$AWK" >&6 |
---|
5881 | else |
---|
5882 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5883 | echo "${ECHO_T}no" >&6 |
---|
5884 | fi |
---|
5885 | |
---|
5886 | test -n "$AWK" && break |
---|
5887 | done |
---|
5888 | |
---|
5889 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
5890 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
5891 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
5892 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
5893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5894 | else |
---|
5895 | cat >conftest.make <<\_ACEOF |
---|
5896 | all: |
---|
5897 | @echo 'ac_maketemp="$(MAKE)"' |
---|
5898 | _ACEOF |
---|
5899 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
5900 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
5901 | if test -n "$ac_maketemp"; then |
---|
5902 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
5903 | else |
---|
5904 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
5905 | fi |
---|
5906 | rm -f conftest.make |
---|
5907 | fi |
---|
5908 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
5909 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
5910 | echo "${ECHO_T}yes" >&6 |
---|
5911 | SET_MAKE= |
---|
5912 | else |
---|
5913 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5914 | echo "${ECHO_T}no" >&6 |
---|
5915 | SET_MAKE="MAKE=${MAKE-make}" |
---|
5916 | fi |
---|
5917 | |
---|
5918 | rm -rf .tst 2>/dev/null |
---|
5919 | mkdir .tst 2>/dev/null |
---|
5920 | if test -d .tst; then |
---|
5921 | am__leading_dot=. |
---|
5922 | else |
---|
5923 | am__leading_dot=_ |
---|
5924 | fi |
---|
5925 | rmdir .tst 2>/dev/null |
---|
5926 | |
---|
5927 | DEPDIR="${am__leading_dot}deps" |
---|
5928 | |
---|
5929 | ac_config_commands="$ac_config_commands depfiles" |
---|
5930 | |
---|
5931 | |
---|
5932 | am_make=${MAKE-make} |
---|
5933 | cat > confinc << 'END' |
---|
5934 | am__doit: |
---|
5935 | @echo done |
---|
5936 | .PHONY: am__doit |
---|
5937 | END |
---|
5938 | # If we don't find an include directive, just comment out the code. |
---|
5939 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
5940 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
5941 | am__include="#" |
---|
5942 | am__quote= |
---|
5943 | _am_result=none |
---|
5944 | # First try GNU make style include. |
---|
5945 | echo "include confinc" > confmf |
---|
5946 | # We grep out `Entering directory' and `Leaving directory' |
---|
5947 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
5948 | # In particular we don't look at `^make:' because GNU make might |
---|
5949 | # be invoked under some other name (usually "gmake"), in which |
---|
5950 | # case it prints its new name instead of `make'. |
---|
5951 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
5952 | am__include=include |
---|
5953 | am__quote= |
---|
5954 | _am_result=GNU |
---|
5955 | fi |
---|
5956 | # Now try BSD make style include. |
---|
5957 | if test "$am__include" = "#"; then |
---|
5958 | echo '.include "confinc"' > confmf |
---|
5959 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
5960 | am__include=.include |
---|
5961 | am__quote="\"" |
---|
5962 | _am_result=BSD |
---|
5963 | fi |
---|
5964 | fi |
---|
5965 | |
---|
5966 | |
---|
5967 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
5968 | echo "${ECHO_T}$_am_result" >&6 |
---|
5969 | rm -f confinc confmf |
---|
5970 | |
---|
5971 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
5972 | if test "${enable_dependency_tracking+set}" = set; then |
---|
5973 | enableval="$enable_dependency_tracking" |
---|
5974 | |
---|
5975 | fi; |
---|
5976 | if test "x$enable_dependency_tracking" != xno; then |
---|
5977 | am_depcomp="$ac_aux_dir/depcomp" |
---|
5978 | AMDEPBACKSLASH='\' |
---|
5979 | fi |
---|
5980 | |
---|
5981 | |
---|
5982 | if test "x$enable_dependency_tracking" != xno; then |
---|
5983 | AMDEP_TRUE= |
---|
5984 | AMDEP_FALSE='#' |
---|
5985 | else |
---|
5986 | AMDEP_TRUE='#' |
---|
5987 | AMDEP_FALSE= |
---|
5988 | fi |
---|
5989 | |
---|
5990 | |
---|
5991 | |
---|
5992 | |
---|
5993 | |
---|
5994 | |
---|
5995 | # AC_MSG_NOTICE([Beginning automake initialisation.]) |
---|
5996 | # Stuff for automake |
---|
5997 | # test to see if srcdir already configured |
---|
5998 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
5999 | test -f $srcdir/config.status; then |
---|
6000 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
6001 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
6002 | { (exit 1); exit 1; }; } |
---|
6003 | fi |
---|
6004 | |
---|
6005 | # test whether we have cygpath |
---|
6006 | if test -z "$CYGPATH_W"; then |
---|
6007 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
6008 | CYGPATH_W='cygpath -w' |
---|
6009 | else |
---|
6010 | CYGPATH_W=echo |
---|
6011 | fi |
---|
6012 | fi |
---|
6013 | |
---|
6014 | |
---|
6015 | # Define the identity of the package. |
---|
6016 | PACKAGE='thirdpartymumps' |
---|
6017 | VERSION='1.4.12' |
---|
6018 | |
---|
6019 | |
---|
6020 | cat >>confdefs.h <<_ACEOF |
---|
6021 | #define PACKAGE "$PACKAGE" |
---|
6022 | _ACEOF |
---|
6023 | |
---|
6024 | |
---|
6025 | cat >>confdefs.h <<_ACEOF |
---|
6026 | #define VERSION "$VERSION" |
---|
6027 | _ACEOF |
---|
6028 | |
---|
6029 | # Some tools Automake needs. |
---|
6030 | |
---|
6031 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
6032 | |
---|
6033 | |
---|
6034 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
6035 | |
---|
6036 | |
---|
6037 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
6038 | |
---|
6039 | |
---|
6040 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
6041 | |
---|
6042 | |
---|
6043 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
6044 | |
---|
6045 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
6046 | |
---|
6047 | # Installed binaries are usually stripped using `strip' when the user |
---|
6048 | # run `make install-strip'. However `strip' might not be the right |
---|
6049 | # tool to use in cross-compilation environments, therefore Automake |
---|
6050 | # will honor the `STRIP' environment variable to overrule this program. |
---|
6051 | if test "$cross_compiling" != no; then |
---|
6052 | if test -n "$ac_tool_prefix"; then |
---|
6053 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
6054 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
6055 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6056 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6057 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
6058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6059 | else |
---|
6060 | if test -n "$STRIP"; then |
---|
6061 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
6062 | else |
---|
6063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6064 | for as_dir in $PATH |
---|
6065 | do |
---|
6066 | IFS=$as_save_IFS |
---|
6067 | test -z "$as_dir" && as_dir=. |
---|
6068 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6069 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6070 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
6071 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6072 | break 2 |
---|
6073 | fi |
---|
6074 | done |
---|
6075 | done |
---|
6076 | |
---|
6077 | fi |
---|
6078 | fi |
---|
6079 | STRIP=$ac_cv_prog_STRIP |
---|
6080 | if test -n "$STRIP"; then |
---|
6081 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
6082 | echo "${ECHO_T}$STRIP" >&6 |
---|
6083 | else |
---|
6084 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6085 | echo "${ECHO_T}no" >&6 |
---|
6086 | fi |
---|
6087 | |
---|
6088 | fi |
---|
6089 | if test -z "$ac_cv_prog_STRIP"; then |
---|
6090 | ac_ct_STRIP=$STRIP |
---|
6091 | # Extract the first word of "strip", so it can be a program name with args. |
---|
6092 | set dummy strip; ac_word=$2 |
---|
6093 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6094 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6095 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
6096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6097 | else |
---|
6098 | if test -n "$ac_ct_STRIP"; then |
---|
6099 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
6100 | else |
---|
6101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6102 | for as_dir in $PATH |
---|
6103 | do |
---|
6104 | IFS=$as_save_IFS |
---|
6105 | test -z "$as_dir" && as_dir=. |
---|
6106 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6107 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6108 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
6109 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6110 | break 2 |
---|
6111 | fi |
---|
6112 | done |
---|
6113 | done |
---|
6114 | |
---|
6115 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
6116 | fi |
---|
6117 | fi |
---|
6118 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
6119 | if test -n "$ac_ct_STRIP"; then |
---|
6120 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
6121 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
6122 | else |
---|
6123 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6124 | echo "${ECHO_T}no" >&6 |
---|
6125 | fi |
---|
6126 | |
---|
6127 | STRIP=$ac_ct_STRIP |
---|
6128 | else |
---|
6129 | STRIP="$ac_cv_prog_STRIP" |
---|
6130 | fi |
---|
6131 | |
---|
6132 | fi |
---|
6133 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
6134 | |
---|
6135 | # We need awk for the "check" target. The system "awk" is bad on |
---|
6136 | # some platforms. |
---|
6137 | # Always define AMTAR for backward compatibility. |
---|
6138 | |
---|
6139 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
6140 | |
---|
6141 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
---|
6142 | |
---|
6143 | |
---|
6144 | |
---|
6145 | |
---|
6146 | depcc="$CC" am_compiler_list= |
---|
6147 | |
---|
6148 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
6149 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
6150 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
6151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6152 | else |
---|
6153 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
6154 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
6155 | # making bogus files that we don't know about and never remove. For |
---|
6156 | # instance it was reported that on HP-UX the gcc test will end up |
---|
6157 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
6158 | # in D'. |
---|
6159 | mkdir conftest.dir |
---|
6160 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
6161 | # using a relative directory. |
---|
6162 | cp "$am_depcomp" conftest.dir |
---|
6163 | cd conftest.dir |
---|
6164 | # We will build objects and dependencies in a subdirectory because |
---|
6165 | # it helps to detect inapplicable dependency modes. For instance |
---|
6166 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
6167 | # side effect of compilation, but ICC will put the dependencies in |
---|
6168 | # the current directory while Tru64 will put them in the object |
---|
6169 | # directory. |
---|
6170 | mkdir sub |
---|
6171 | |
---|
6172 | am_cv_CC_dependencies_compiler_type=none |
---|
6173 | if test "$am_compiler_list" = ""; then |
---|
6174 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
6175 | fi |
---|
6176 | for depmode in $am_compiler_list; do |
---|
6177 | # Setup a source with many dependencies, because some compilers |
---|
6178 | # like to wrap large dependency lists on column 80 (with \), and |
---|
6179 | # we should not choose a depcomp mode which is confused by this. |
---|
6180 | # |
---|
6181 | # We need to recreate these files for each test, as the compiler may |
---|
6182 | # overwrite some of them when testing with obscure command lines. |
---|
6183 | # This happens at least with the AIX C compiler. |
---|
6184 | : > sub/conftest.c |
---|
6185 | for i in 1 2 3 4 5 6; do |
---|
6186 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
6187 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
6188 | # Solaris 8's {/usr,}/bin/sh. |
---|
6189 | touch sub/conftst$i.h |
---|
6190 | done |
---|
6191 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
6192 | |
---|
6193 | case $depmode in |
---|
6194 | nosideeffect) |
---|
6195 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
6196 | # only be used when explicitly requested |
---|
6197 | if test "x$enable_dependency_tracking" = xyes; then |
---|
6198 | continue |
---|
6199 | else |
---|
6200 | break |
---|
6201 | fi |
---|
6202 | ;; |
---|
6203 | none) break ;; |
---|
6204 | esac |
---|
6205 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
6206 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
6207 | # handle `-M -o', and we need to detect this. |
---|
6208 | if depmode=$depmode \ |
---|
6209 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
6210 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
6211 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
6212 | >/dev/null 2>conftest.err && |
---|
6213 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
6214 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
6215 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
6216 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
6217 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
6218 | # that says an option was ignored or not supported. |
---|
6219 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
6220 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
6221 | # The diagnosis changed in icc 8.0: |
---|
6222 | # icc: Command line remark: option '-MP' not supported |
---|
6223 | if (grep 'ignoring option' conftest.err || |
---|
6224 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
6225 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
6226 | break |
---|
6227 | fi |
---|
6228 | fi |
---|
6229 | done |
---|
6230 | |
---|
6231 | cd .. |
---|
6232 | rm -rf conftest.dir |
---|
6233 | else |
---|
6234 | am_cv_CC_dependencies_compiler_type=none |
---|
6235 | fi |
---|
6236 | |
---|
6237 | fi |
---|
6238 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
6239 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
6240 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
6241 | |
---|
6242 | |
---|
6243 | |
---|
6244 | if |
---|
6245 | test "x$enable_dependency_tracking" != xno \ |
---|
6246 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
6247 | am__fastdepCC_TRUE= |
---|
6248 | am__fastdepCC_FALSE='#' |
---|
6249 | else |
---|
6250 | am__fastdepCC_TRUE='#' |
---|
6251 | am__fastdepCC_FALSE= |
---|
6252 | fi |
---|
6253 | |
---|
6254 | |
---|
6255 | |
---|
6256 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
6257 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
---|
6258 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
---|
6259 | if test "${enable_maintainer_mode+set}" = set; then |
---|
6260 | enableval="$enable_maintainer_mode" |
---|
6261 | USE_MAINTAINER_MODE=$enableval |
---|
6262 | else |
---|
6263 | USE_MAINTAINER_MODE=no |
---|
6264 | fi; |
---|
6265 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
---|
6266 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
---|
6267 | |
---|
6268 | |
---|
6269 | if test $USE_MAINTAINER_MODE = yes; then |
---|
6270 | MAINTAINER_MODE_TRUE= |
---|
6271 | MAINTAINER_MODE_FALSE='#' |
---|
6272 | else |
---|
6273 | MAINTAINER_MODE_TRUE='#' |
---|
6274 | MAINTAINER_MODE_FALSE= |
---|
6275 | fi |
---|
6276 | |
---|
6277 | MAINT=$MAINTAINER_MODE_TRUE |
---|
6278 | |
---|
6279 | |
---|
6280 | |
---|
6281 | coin_have_externals=no |
---|
6282 | if test "$enable_maintainer_mode" = yes; then |
---|
6283 | |
---|
6284 | # If maintainer mode is chosen, we make sure that the correct versions |
---|
6285 | # of the tools are used, and that we know where libtool.m4 is (to |
---|
6286 | # recreate acinclude.m4) |
---|
6287 | |
---|
6288 | |
---|
6289 | LIBTOOLM4= |
---|
6290 | # Normally, $HOME |
---|
6291 | AUTOTOOLS_DFLT=$HOME |
---|
6292 | |
---|
6293 | echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5 |
---|
6294 | echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6 |
---|
6295 | if test "${ac_cv_use_correct_autotools+set}" = set; then |
---|
6296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6297 | else |
---|
6298 | ac_cv_use_correct_autotools=check |
---|
6299 | fi |
---|
6300 | echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5 |
---|
6301 | echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6 |
---|
6302 | |
---|
6303 | if test $ac_cv_use_correct_autotools = check; then |
---|
6304 | ac_cv_use_correct_autotools=yes |
---|
6305 | # Check if we have autoconf |
---|
6306 | # Extract the first word of "autoconf", so it can be a program name with args. |
---|
6307 | set dummy autoconf; ac_word=$2 |
---|
6308 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6309 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6310 | if test "${ac_cv_prog_have_autoconf+set}" = set; then |
---|
6311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6312 | else |
---|
6313 | if test -n "$have_autoconf"; then |
---|
6314 | ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test. |
---|
6315 | else |
---|
6316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6317 | for as_dir in $PATH |
---|
6318 | do |
---|
6319 | IFS=$as_save_IFS |
---|
6320 | test -z "$as_dir" && as_dir=. |
---|
6321 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6322 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6323 | ac_cv_prog_have_autoconf="yes" |
---|
6324 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6325 | break 2 |
---|
6326 | fi |
---|
6327 | done |
---|
6328 | done |
---|
6329 | |
---|
6330 | test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no" |
---|
6331 | fi |
---|
6332 | fi |
---|
6333 | have_autoconf=$ac_cv_prog_have_autoconf |
---|
6334 | if test -n "$have_autoconf"; then |
---|
6335 | echo "$as_me:$LINENO: result: $have_autoconf" >&5 |
---|
6336 | echo "${ECHO_T}$have_autoconf" >&6 |
---|
6337 | else |
---|
6338 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6339 | echo "${ECHO_T}no" >&6 |
---|
6340 | fi |
---|
6341 | |
---|
6342 | if test $have_autoconf = no; then |
---|
6343 | { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5 |
---|
6344 | echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;} |
---|
6345 | { (exit 1); exit 1; }; } |
---|
6346 | fi |
---|
6347 | |
---|
6348 | # Check whether autoconf is the correct version |
---|
6349 | correct_version='2.59' |
---|
6350 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
6351 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5 |
---|
6352 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6 |
---|
6353 | autoconf --version > confauto.out 2>&1 |
---|
6354 | if $EGREP $grep_version confauto.out >/dev/null 2>&1; then |
---|
6355 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
6356 | echo "${ECHO_T}yes" >&6 |
---|
6357 | else |
---|
6358 | rm -f confauto.out |
---|
6359 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6360 | echo "${ECHO_T}no" >&6 |
---|
6361 | { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5 |
---|
6362 | echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;} |
---|
6363 | { (exit 1); exit 1; }; } |
---|
6364 | fi |
---|
6365 | rm -f confauto.out |
---|
6366 | |
---|
6367 | # Check if the executable autoconf is picked up from the correct location |
---|
6368 | echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5 |
---|
6369 | echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6 |
---|
6370 | autoconf_dir=`which autoconf | sed -e 's=/autoconf=='` |
---|
6371 | autoconf_dir=`cd $autoconf_dir; pwd` |
---|
6372 | if test x$AUTOTOOLS_DIR = x; then |
---|
6373 | want_dir=$AUTOTOOLS_DFLT/bin |
---|
6374 | else |
---|
6375 | want_dir=$AUTOTOOLS_DIR/bin |
---|
6376 | fi |
---|
6377 | if test $autoconf_dir = `cd $want_dir; pwd`; then |
---|
6378 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
6379 | echo "${ECHO_T}yes" >&6 |
---|
6380 | else |
---|
6381 | rm -f confauto.out |
---|
6382 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6383 | echo "${ECHO_T}no" >&6 |
---|
6384 | { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 |
---|
6385 | echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} |
---|
6386 | { (exit 1); exit 1; }; } |
---|
6387 | fi |
---|
6388 | |
---|
6389 | # Check if we have automake |
---|
6390 | # Extract the first word of "automake", so it can be a program name with args. |
---|
6391 | set dummy automake; ac_word=$2 |
---|
6392 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6393 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6394 | if test "${ac_cv_prog_have_automake+set}" = set; then |
---|
6395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6396 | else |
---|
6397 | if test -n "$have_automake"; then |
---|
6398 | ac_cv_prog_have_automake="$have_automake" # Let the user override the test. |
---|
6399 | else |
---|
6400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6401 | for as_dir in $PATH |
---|
6402 | do |
---|
6403 | IFS=$as_save_IFS |
---|
6404 | test -z "$as_dir" && as_dir=. |
---|
6405 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6406 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6407 | ac_cv_prog_have_automake="yes" |
---|
6408 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6409 | break 2 |
---|
6410 | fi |
---|
6411 | done |
---|
6412 | done |
---|
6413 | |
---|
6414 | test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no" |
---|
6415 | fi |
---|
6416 | fi |
---|
6417 | have_automake=$ac_cv_prog_have_automake |
---|
6418 | if test -n "$have_automake"; then |
---|
6419 | echo "$as_me:$LINENO: result: $have_automake" >&5 |
---|
6420 | echo "${ECHO_T}$have_automake" >&6 |
---|
6421 | else |
---|
6422 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6423 | echo "${ECHO_T}no" >&6 |
---|
6424 | fi |
---|
6425 | |
---|
6426 | if test $have_automake = no; then |
---|
6427 | { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5 |
---|
6428 | echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;} |
---|
6429 | { (exit 1); exit 1; }; } |
---|
6430 | fi |
---|
6431 | |
---|
6432 | # Check whether automake is the correct version |
---|
6433 | correct_version='1.9.6' |
---|
6434 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
6435 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5 |
---|
6436 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6 |
---|
6437 | automake --version > confauto.out 2>&1 |
---|
6438 | if $EGREP $grep_version confauto.out >/dev/null 2>&1; then |
---|
6439 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
6440 | echo "${ECHO_T}yes" >&6 |
---|
6441 | else |
---|
6442 | rm -f confauto.out |
---|
6443 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6444 | echo "${ECHO_T}no" >&6 |
---|
6445 | { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5 |
---|
6446 | echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;} |
---|
6447 | { (exit 1); exit 1; }; } |
---|
6448 | fi |
---|
6449 | rm -f confauto.out |
---|
6450 | |
---|
6451 | # Check if the executable automake is picked up from the correct location |
---|
6452 | echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5 |
---|
6453 | echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6 |
---|
6454 | automake_dir=`which automake | sed -e 's=/automake=='` |
---|
6455 | automake_dir=`cd $automake_dir; pwd` |
---|
6456 | if test x$AUTOTOOLS_DIR = x; then |
---|
6457 | want_dir=$AUTOTOOLS_DFLT/bin |
---|
6458 | else |
---|
6459 | want_dir=$AUTOTOOLS_DIR/bin |
---|
6460 | fi |
---|
6461 | if test $automake_dir = `cd $want_dir; pwd`; then |
---|
6462 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
6463 | echo "${ECHO_T}yes" >&6 |
---|
6464 | else |
---|
6465 | rm -f confauto.out |
---|
6466 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6467 | echo "${ECHO_T}no" >&6 |
---|
6468 | { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 |
---|
6469 | echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} |
---|
6470 | { (exit 1); exit 1; }; } |
---|
6471 | fi |
---|
6472 | |
---|
6473 | # Check if this is the correct version of libtool (with escaped dots) |
---|
6474 | if test x$AUTOTOOLS_DIR = x; then |
---|
6475 | want_dir=$AUTOTOOLS_DFLT/share |
---|
6476 | else |
---|
6477 | want_dir=$AUTOTOOLS_DIR/share |
---|
6478 | fi |
---|
6479 | correct_version='1.5.22' |
---|
6480 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
6481 | if test -r $want_dir/libtool/ltmain.sh; then |
---|
6482 | have_ltmain=yes |
---|
6483 | : |
---|
6484 | else |
---|
6485 | have_ltmain=no |
---|
6486 | : |
---|
6487 | fi |
---|
6488 | |
---|
6489 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5 |
---|
6490 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6 |
---|
6491 | if test $have_ltmain = yes; then |
---|
6492 | if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then |
---|
6493 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
6494 | echo "${ECHO_T}yes" >&6 |
---|
6495 | else |
---|
6496 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6497 | echo "${ECHO_T}no" >&6 |
---|
6498 | { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5 |
---|
6499 | echo "$as_me: error: You don't have the correct version of libtool." >&2;} |
---|
6500 | { (exit 1); exit 1; }; } |
---|
6501 | fi |
---|
6502 | else |
---|
6503 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6504 | echo "${ECHO_T}no" >&6 |
---|
6505 | { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5 |
---|
6506 | echo "$as_me: error: I cannot find the ltmain.sh file." >&2;} |
---|
6507 | { (exit 1); exit 1; }; } |
---|
6508 | fi |
---|
6509 | fi |
---|
6510 | |
---|
6511 | # Check if we can find the libtool file |
---|
6512 | if test x$AUTOTOOLS_DIR = x; then |
---|
6513 | want_dir=$AUTOTOOLS_DFLT/share |
---|
6514 | else |
---|
6515 | want_dir=$AUTOTOOLS_DIR/share |
---|
6516 | fi |
---|
6517 | if test -r $want_dir/aclocal/libtool.m4; then |
---|
6518 | LIBTOOLM4="$want_dir/aclocal/libtool.m4" |
---|
6519 | : |
---|
6520 | else |
---|
6521 | { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5 |
---|
6522 | echo "$as_me: error: I cannot find the libtool.m4 file." >&2;} |
---|
6523 | { (exit 1); exit 1; }; } |
---|
6524 | : |
---|
6525 | fi |
---|
6526 | |
---|
6527 | |
---|
6528 | # Check if we have an Dependencies file |
---|
6529 | if test -r $srcdir/Dependencies; then |
---|
6530 | coin_have_externals=yes |
---|
6531 | fi |
---|
6532 | # Check if subversion is installed and understands https |
---|
6533 | # Extract the first word of "svn", so it can be a program name with args. |
---|
6534 | set dummy svn; ac_word=$2 |
---|
6535 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6536 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6537 | if test "${ac_cv_prog_have_svn+set}" = set; then |
---|
6538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6539 | else |
---|
6540 | if test -n "$have_svn"; then |
---|
6541 | ac_cv_prog_have_svn="$have_svn" # Let the user override the test. |
---|
6542 | else |
---|
6543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6544 | for as_dir in $PATH |
---|
6545 | do |
---|
6546 | IFS=$as_save_IFS |
---|
6547 | test -z "$as_dir" && as_dir=. |
---|
6548 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6549 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6550 | ac_cv_prog_have_svn="yes" |
---|
6551 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6552 | break 2 |
---|
6553 | fi |
---|
6554 | done |
---|
6555 | done |
---|
6556 | |
---|
6557 | test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no" |
---|
6558 | fi |
---|
6559 | fi |
---|
6560 | have_svn=$ac_cv_prog_have_svn |
---|
6561 | if test -n "$have_svn"; then |
---|
6562 | echo "$as_me:$LINENO: result: $have_svn" >&5 |
---|
6563 | echo "${ECHO_T}$have_svn" >&6 |
---|
6564 | else |
---|
6565 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6566 | echo "${ECHO_T}no" >&6 |
---|
6567 | fi |
---|
6568 | |
---|
6569 | if test x$have_svn = xyes; then |
---|
6570 | echo "$as_me:$LINENO: checking whether svn understands https" >&5 |
---|
6571 | echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6 |
---|
6572 | if test "${ac_cv_svn_understands_https+set}" = set; then |
---|
6573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6574 | else |
---|
6575 | svn --version > confauto.out 2>&1 |
---|
6576 | if $EGREP https confauto.out >/dev/null 2>&1; then |
---|
6577 | ac_cv_svn_understands_https=yes |
---|
6578 | else |
---|
6579 | ac_cv_svn_understands_https=no |
---|
6580 | have_svn=no |
---|
6581 | ac_cv_prog_have_svn=no |
---|
6582 | fi |
---|
6583 | rm -f confauto.out |
---|
6584 | fi |
---|
6585 | echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5 |
---|
6586 | echo "${ECHO_T}$ac_cv_svn_understands_https" >&6 |
---|
6587 | fi |
---|
6588 | |
---|
6589 | # Find the location of the BuildTools directory |
---|
6590 | BUILDTOOLSDIR= |
---|
6591 | if test -r $srcdir/BuildTools/coin.m4; then |
---|
6592 | BUILDTOOLSDIR=$srcdir/BuildTools |
---|
6593 | else |
---|
6594 | if test -r $srcdir/../BuildTools/coin.m4; then |
---|
6595 | BUILDTOOLSDIR=$srcdir/../BuildTools |
---|
6596 | else |
---|
6597 | if test -r $srcdir/../../BuildTools/coin.m4; then |
---|
6598 | BUILDTOOLSDIR=$srcdir/../../BuildTools |
---|
6599 | else |
---|
6600 | { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5 |
---|
6601 | echo "$as_me: error: Cannot find the BuildTools directory" >&2;} |
---|
6602 | { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; } |
---|
6603 | fi |
---|
6604 | fi |
---|
6605 | fi |
---|
6606 | |
---|
6607 | |
---|
6608 | # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools |
---|
6609 | if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then |
---|
6610 | $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools" |
---|
6611 | fi |
---|
6612 | |
---|
6613 | # The following variable is set to the name of the directory where |
---|
6614 | # the autotool scripts are located |
---|
6615 | |
---|
6616 | AUX_DIR=$ac_aux_dir |
---|
6617 | fi |
---|
6618 | |
---|
6619 | # helpful variable for the base directory of this package |
---|
6620 | abs_source_dir=`cd $srcdir; pwd` |
---|
6621 | |
---|
6622 | |
---|
6623 | # Stuff for example Makefiles |
---|
6624 | if test x$prefix = xNONE; then |
---|
6625 | full_prefix=$ac_default_prefix |
---|
6626 | else |
---|
6627 | full_prefix=$prefix |
---|
6628 | fi |
---|
6629 | full_prefix=`cd $full_prefix ; pwd` |
---|
6630 | |
---|
6631 | abs_lib_dir=$full_prefix/lib |
---|
6632 | |
---|
6633 | abs_include_dir=$full_prefix/include |
---|
6634 | |
---|
6635 | abs_bin_dir=$full_prefix/bin |
---|
6636 | |
---|
6637 | |
---|
6638 | |
---|
6639 | if test $coin_have_externals = yes && test x$have_svn = xyes; then |
---|
6640 | HAVE_EXTERNALS_TRUE= |
---|
6641 | HAVE_EXTERNALS_FALSE='#' |
---|
6642 | else |
---|
6643 | HAVE_EXTERNALS_TRUE='#' |
---|
6644 | HAVE_EXTERNALS_FALSE= |
---|
6645 | fi |
---|
6646 | |
---|
6647 | |
---|
6648 | # AC_MSG_NOTICE([End automake initialisation.]) |
---|
6649 | |
---|
6650 | |
---|
6651 | |
---|
6652 | LIBTOOL= |
---|
6653 | if test -f ../libtool; then |
---|
6654 | coin_config_dir=.. |
---|
6655 | LIBTOOL='$(SHELL) $(top_builddir)/../libtool' |
---|
6656 | fi |
---|
6657 | if test "x$LIBTOOL" = x; then |
---|
6658 | if test -f ../../libtool; then |
---|
6659 | coin_config_dir=../.. |
---|
6660 | LIBTOOL='$(SHELL) $(top_builddir)/../../libtool' |
---|
6661 | fi |
---|
6662 | fi |
---|
6663 | |
---|
6664 | if test "x$LIBTOOL" = x; then |
---|
6665 | # AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).]) |
---|
6666 | # Stuff for libtool |
---|
6667 | # Check whether --enable-shared or --disable-shared was given. |
---|
6668 | if test "${enable_shared+set}" = set; then |
---|
6669 | enableval="$enable_shared" |
---|
6670 | p=${PACKAGE-default} |
---|
6671 | case $enableval in |
---|
6672 | yes) enable_shared=yes ;; |
---|
6673 | no) enable_shared=no ;; |
---|
6674 | *) |
---|
6675 | enable_shared=no |
---|
6676 | # Look at the argument we got. We use all the common list separators. |
---|
6677 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
6678 | for pkg in $enableval; do |
---|
6679 | IFS="$lt_save_ifs" |
---|
6680 | if test "X$pkg" = "X$p"; then |
---|
6681 | enable_shared=yes |
---|
6682 | fi |
---|
6683 | done |
---|
6684 | IFS="$lt_save_ifs" |
---|
6685 | ;; |
---|
6686 | esac |
---|
6687 | else |
---|
6688 | enable_shared=yes |
---|
6689 | fi; |
---|
6690 | |
---|
6691 | # Check whether --enable-fast-install or --disable-fast-install was given. |
---|
6692 | if test "${enable_fast_install+set}" = set; then |
---|
6693 | enableval="$enable_fast_install" |
---|
6694 | p=${PACKAGE-default} |
---|
6695 | case $enableval in |
---|
6696 | yes) enable_fast_install=yes ;; |
---|
6697 | no) enable_fast_install=no ;; |
---|
6698 | *) |
---|
6699 | enable_fast_install=no |
---|
6700 | # Look at the argument we got. We use all the common list separators. |
---|
6701 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
6702 | for pkg in $enableval; do |
---|
6703 | IFS="$lt_save_ifs" |
---|
6704 | if test "X$pkg" = "X$p"; then |
---|
6705 | enable_fast_install=yes |
---|
6706 | fi |
---|
6707 | done |
---|
6708 | IFS="$lt_save_ifs" |
---|
6709 | ;; |
---|
6710 | esac |
---|
6711 | else |
---|
6712 | enable_fast_install=yes |
---|
6713 | fi; |
---|
6714 | |
---|
6715 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
6716 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
6717 | if test "${ac_cv_host+set}" = set; then |
---|
6718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6719 | else |
---|
6720 | ac_cv_host_alias=$host_alias |
---|
6721 | test -z "$ac_cv_host_alias" && |
---|
6722 | ac_cv_host_alias=$ac_cv_build_alias |
---|
6723 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
6724 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
6725 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
6726 | { (exit 1); exit 1; }; } |
---|
6727 | |
---|
6728 | fi |
---|
6729 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
6730 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
6731 | host=$ac_cv_host |
---|
6732 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
6733 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
6734 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
6735 | |
---|
6736 | |
---|
6737 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
---|
6738 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
---|
6739 | if test "${lt_cv_path_SED+set}" = set; then |
---|
6740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6741 | else |
---|
6742 | # Loop through the user's path and test for sed and gsed. |
---|
6743 | # Then use that list of sed's as ones to test for truncation. |
---|
6744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6745 | for as_dir in $PATH |
---|
6746 | do |
---|
6747 | IFS=$as_save_IFS |
---|
6748 | test -z "$as_dir" && as_dir=. |
---|
6749 | for lt_ac_prog in sed gsed; do |
---|
6750 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6751 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
---|
6752 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
---|
6753 | fi |
---|
6754 | done |
---|
6755 | done |
---|
6756 | done |
---|
6757 | lt_ac_max=0 |
---|
6758 | lt_ac_count=0 |
---|
6759 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
---|
6760 | # along with /bin/sed that truncates output. |
---|
6761 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
---|
6762 | test ! -f $lt_ac_sed && continue |
---|
6763 | cat /dev/null > conftest.in |
---|
6764 | lt_ac_count=0 |
---|
6765 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
---|
6766 | # Check for GNU sed and select it if it is found. |
---|
6767 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
---|
6768 | lt_cv_path_SED=$lt_ac_sed |
---|
6769 | break |
---|
6770 | fi |
---|
6771 | while true; do |
---|
6772 | cat conftest.in conftest.in >conftest.tmp |
---|
6773 | mv conftest.tmp conftest.in |
---|
6774 | cp conftest.in conftest.nl |
---|
6775 | echo >>conftest.nl |
---|
6776 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
---|
6777 | cmp -s conftest.out conftest.nl || break |
---|
6778 | # 10000 chars as input seems more than enough |
---|
6779 | test $lt_ac_count -gt 10 && break |
---|
6780 | lt_ac_count=`expr $lt_ac_count + 1` |
---|
6781 | if test $lt_ac_count -gt $lt_ac_max; then |
---|
6782 | lt_ac_max=$lt_ac_count |
---|
6783 | lt_cv_path_SED=$lt_ac_sed |
---|
6784 | fi |
---|
6785 | done |
---|
6786 | done |
---|
6787 | |
---|
6788 | fi |
---|
6789 | |
---|
6790 | SED=$lt_cv_path_SED |
---|
6791 | echo "$as_me:$LINENO: result: $SED" >&5 |
---|
6792 | echo "${ECHO_T}$SED" >&6 |
---|
6793 | |
---|
6794 | |
---|
6795 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
---|
6796 | if test "${with_gnu_ld+set}" = set; then |
---|
6797 | withval="$with_gnu_ld" |
---|
6798 | test "$withval" = no || with_gnu_ld=yes |
---|
6799 | else |
---|
6800 | with_gnu_ld=no |
---|
6801 | fi; |
---|
6802 | ac_prog=ld |
---|
6803 | if test "$GCC" = yes; then |
---|
6804 | # Check if gcc -print-prog-name=ld gives a path. |
---|
6805 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
---|
6806 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
---|
6807 | case $host in |
---|
6808 | *-*-mingw*) |
---|
6809 | # gcc leaves a trailing carriage return which upsets mingw |
---|
6810 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
6811 | *) |
---|
6812 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
6813 | esac |
---|
6814 | case $ac_prog in |
---|
6815 | # Accept absolute paths. |
---|
6816 | [\\/]* | ?:[\\/]*) |
---|
6817 | re_direlt='/[^/][^/]*/\.\./' |
---|
6818 | # Canonicalize the pathname of ld |
---|
6819 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
---|
6820 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
6821 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
---|
6822 | done |
---|
6823 | test -z "$LD" && LD="$ac_prog" |
---|
6824 | ;; |
---|
6825 | "") |
---|
6826 | # If it fails, then pretend we aren't using GCC. |
---|
6827 | ac_prog=ld |
---|
6828 | ;; |
---|
6829 | *) |
---|
6830 | # If it is relative, then search for the first ld in PATH. |
---|
6831 | with_gnu_ld=unknown |
---|
6832 | ;; |
---|
6833 | esac |
---|
6834 | elif test "$with_gnu_ld" = yes; then |
---|
6835 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
---|
6836 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
---|
6837 | else |
---|
6838 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
---|
6839 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
---|
6840 | fi |
---|
6841 | if test "${lt_cv_path_LD+set}" = set; then |
---|
6842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6843 | else |
---|
6844 | if test -z "$LD"; then |
---|
6845 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
6846 | for ac_dir in $PATH; do |
---|
6847 | IFS="$lt_save_ifs" |
---|
6848 | test -z "$ac_dir" && ac_dir=. |
---|
6849 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
6850 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
6851 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
6852 | # but apparently some variants of GNU ld only accept -v. |
---|
6853 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
6854 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
6855 | *GNU* | *'with BFD'*) |
---|
6856 | test "$with_gnu_ld" != no && break |
---|
6857 | ;; |
---|
6858 | *) |
---|
6859 | test "$with_gnu_ld" != yes && break |
---|
6860 | ;; |
---|
6861 | esac |
---|
6862 | fi |
---|
6863 | done |
---|
6864 | IFS="$lt_save_ifs" |
---|
6865 | else |
---|
6866 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
6867 | fi |
---|
6868 | fi |
---|
6869 | |
---|
6870 | LD="$lt_cv_path_LD" |
---|
6871 | if test -n "$LD"; then |
---|
6872 | echo "$as_me:$LINENO: result: $LD" >&5 |
---|
6873 | echo "${ECHO_T}$LD" >&6 |
---|
6874 | else |
---|
6875 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6876 | echo "${ECHO_T}no" >&6 |
---|
6877 | fi |
---|
6878 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
---|
6879 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
---|
6880 | { (exit 1); exit 1; }; } |
---|
6881 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
---|
6882 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
---|
6883 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
---|
6884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6885 | else |
---|
6886 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
---|
6887 | case `$LD -v 2>&1 </dev/null` in |
---|
6888 | *GNU* | *'with BFD'*) |
---|
6889 | lt_cv_prog_gnu_ld=yes |
---|
6890 | ;; |
---|
6891 | *) |
---|
6892 | lt_cv_prog_gnu_ld=no |
---|
6893 | ;; |
---|
6894 | esac |
---|
6895 | fi |
---|
6896 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
---|
6897 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
---|
6898 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
6899 | |
---|
6900 | |
---|
6901 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
---|
6902 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
---|
6903 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
---|
6904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6905 | else |
---|
6906 | lt_cv_ld_reload_flag='-r' |
---|
6907 | fi |
---|
6908 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
---|
6909 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
---|
6910 | reload_flag=$lt_cv_ld_reload_flag |
---|
6911 | case $reload_flag in |
---|
6912 | "" | " "*) ;; |
---|
6913 | *) reload_flag=" $reload_flag" ;; |
---|
6914 | esac |
---|
6915 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
6916 | case $host_os in |
---|
6917 | darwin*) |
---|
6918 | if test "$GCC" = yes; then |
---|
6919 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
---|
6920 | else |
---|
6921 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
6922 | fi |
---|
6923 | ;; |
---|
6924 | esac |
---|
6925 | |
---|
6926 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
---|
6927 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
---|
6928 | if test "${lt_cv_path_NM+set}" = set; then |
---|
6929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6930 | else |
---|
6931 | if test -n "$NM"; then |
---|
6932 | # Let the user override the test. |
---|
6933 | lt_cv_path_NM="$NM" |
---|
6934 | else |
---|
6935 | lt_nm_to_check="${ac_tool_prefix}nm" |
---|
6936 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
---|
6937 | lt_nm_to_check="$lt_nm_to_check nm" |
---|
6938 | fi |
---|
6939 | for lt_tmp_nm in $lt_nm_to_check; do |
---|
6940 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
6941 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
---|
6942 | IFS="$lt_save_ifs" |
---|
6943 | test -z "$ac_dir" && ac_dir=. |
---|
6944 | tmp_nm="$ac_dir/$lt_tmp_nm" |
---|
6945 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
---|
6946 | # Check to see if the nm accepts a BSD-compat flag. |
---|
6947 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
6948 | # nm: unknown option "B" ignored |
---|
6949 | # Tru64's nm complains that /dev/null is an invalid object file |
---|
6950 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
---|
6951 | */dev/null* | *'Invalid file or object type'*) |
---|
6952 | lt_cv_path_NM="$tmp_nm -B" |
---|
6953 | break |
---|
6954 | ;; |
---|
6955 | *) |
---|
6956 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
---|
6957 | */dev/null*) |
---|
6958 | lt_cv_path_NM="$tmp_nm -p" |
---|
6959 | break |
---|
6960 | ;; |
---|
6961 | *) |
---|
6962 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
---|
6963 | continue # so that we can try to find one that supports BSD flags |
---|
6964 | ;; |
---|
6965 | esac |
---|
6966 | ;; |
---|
6967 | esac |
---|
6968 | fi |
---|
6969 | done |
---|
6970 | IFS="$lt_save_ifs" |
---|
6971 | done |
---|
6972 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
---|
6973 | fi |
---|
6974 | fi |
---|
6975 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
---|
6976 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
---|
6977 | NM="$lt_cv_path_NM" |
---|
6978 | |
---|
6979 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
---|
6980 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
---|
6981 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
---|
6982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6983 | else |
---|
6984 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
---|
6985 | lt_cv_file_magic_test_file= |
---|
6986 | lt_cv_deplibs_check_method='unknown' |
---|
6987 | # Need to set the preceding variable on all platforms that support |
---|
6988 | # interlibrary dependencies. |
---|
6989 | # 'none' -- dependencies not supported. |
---|
6990 | # `unknown' -- same as none, but documents that we really don't know. |
---|
6991 | # 'pass_all' -- all dependencies passed with no checks. |
---|
6992 | # 'test_compile' -- check by making test program. |
---|
6993 | # 'file_magic [[regex]]' -- check by looking for files in library path |
---|
6994 | # which responds to the $file_magic_cmd with a given extended regex. |
---|
6995 | # If you have `file' or equivalent on your system and you're not sure |
---|
6996 | # whether `pass_all' will *always* work, you probably want this one. |
---|
6997 | |
---|
6998 | case $host_os in |
---|
6999 | aix4* | aix5*) |
---|
7000 | lt_cv_deplibs_check_method=pass_all |
---|
7001 | ;; |
---|
7002 | |
---|
7003 | beos*) |
---|
7004 | lt_cv_deplibs_check_method=pass_all |
---|
7005 | ;; |
---|
7006 | |
---|
7007 | bsdi[45]*) |
---|
7008 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
---|
7009 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
---|
7010 | lt_cv_file_magic_test_file=/shlib/libc.so |
---|
7011 | ;; |
---|
7012 | |
---|
7013 | cygwin*) |
---|
7014 | # func_win32_libid is a shell function defined in ltmain.sh |
---|
7015 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
---|
7016 | lt_cv_file_magic_cmd='func_win32_libid' |
---|
7017 | ;; |
---|
7018 | |
---|
7019 | mingw* | pw32*) |
---|
7020 | # Base MSYS/MinGW do not provide the 'file' command needed by |
---|
7021 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
---|
7022 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
---|
7023 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
7024 | ;; |
---|
7025 | |
---|
7026 | darwin* | rhapsody*) |
---|
7027 | lt_cv_deplibs_check_method=pass_all |
---|
7028 | ;; |
---|
7029 | |
---|
7030 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
7031 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
7032 | case $host_cpu in |
---|
7033 | i*86 ) |
---|
7034 | # Not sure whether the presence of OpenBSD here was a mistake. |
---|
7035 | # Let's accept both of them until this is cleared up. |
---|
7036 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
---|
7037 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
7038 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
---|
7039 | ;; |
---|
7040 | esac |
---|
7041 | else |
---|
7042 | lt_cv_deplibs_check_method=pass_all |
---|
7043 | fi |
---|
7044 | ;; |
---|
7045 | |
---|
7046 | gnu*) |
---|
7047 | lt_cv_deplibs_check_method=pass_all |
---|
7048 | ;; |
---|
7049 | |
---|
7050 | hpux10.20* | hpux11*) |
---|
7051 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
7052 | case $host_cpu in |
---|
7053 | ia64*) |
---|
7054 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
---|
7055 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
---|
7056 | ;; |
---|
7057 | hppa*64*) |
---|
7058 | 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]' |
---|
7059 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
---|
7060 | ;; |
---|
7061 | *) |
---|
7062 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
---|
7063 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
---|
7064 | ;; |
---|
7065 | esac |
---|
7066 | ;; |
---|
7067 | |
---|
7068 | interix3*) |
---|
7069 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
---|
7070 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
---|
7071 | ;; |
---|
7072 | |
---|
7073 | irix5* | irix6* | nonstopux*) |
---|
7074 | case $LD in |
---|
7075 | *-32|*"-32 ") libmagic=32-bit;; |
---|
7076 | *-n32|*"-n32 ") libmagic=N32;; |
---|
7077 | *-64|*"-64 ") libmagic=64-bit;; |
---|
7078 | *) libmagic=never-match;; |
---|
7079 | esac |
---|
7080 | lt_cv_deplibs_check_method=pass_all |
---|
7081 | ;; |
---|
7082 | |
---|
7083 | # This must be Linux ELF. |
---|
7084 | linux*) |
---|
7085 | lt_cv_deplibs_check_method=pass_all |
---|
7086 | ;; |
---|
7087 | |
---|
7088 | netbsd*) |
---|
7089 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
7090 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
7091 | else |
---|
7092 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
---|
7093 | fi |
---|
7094 | ;; |
---|
7095 | |
---|
7096 | newos6*) |
---|
7097 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
---|
7098 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
7099 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
---|
7100 | ;; |
---|
7101 | |
---|
7102 | nto-qnx*) |
---|
7103 | lt_cv_deplibs_check_method=unknown |
---|
7104 | ;; |
---|
7105 | |
---|
7106 | openbsd*) |
---|
7107 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
7108 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
---|
7109 | else |
---|
7110 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
7111 | fi |
---|
7112 | ;; |
---|
7113 | |
---|
7114 | osf3* | osf4* | osf5*) |
---|
7115 | lt_cv_deplibs_check_method=pass_all |
---|
7116 | ;; |
---|
7117 | |
---|
7118 | solaris*) |
---|
7119 | lt_cv_deplibs_check_method=pass_all |
---|
7120 | ;; |
---|
7121 | |
---|
7122 | sysv4 | sysv4.3*) |
---|
7123 | case $host_vendor in |
---|
7124 | motorola) |
---|
7125 | 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]' |
---|
7126 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
---|
7127 | ;; |
---|
7128 | ncr) |
---|
7129 | lt_cv_deplibs_check_method=pass_all |
---|
7130 | ;; |
---|
7131 | sequent) |
---|
7132 | lt_cv_file_magic_cmd='/bin/file' |
---|
7133 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
---|
7134 | ;; |
---|
7135 | sni) |
---|
7136 | lt_cv_file_magic_cmd='/bin/file' |
---|
7137 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
---|
7138 | lt_cv_file_magic_test_file=/lib/libc.so |
---|
7139 | ;; |
---|
7140 | siemens) |
---|
7141 | lt_cv_deplibs_check_method=pass_all |
---|
7142 | ;; |
---|
7143 | pc) |
---|
7144 | lt_cv_deplibs_check_method=pass_all |
---|
7145 | ;; |
---|
7146 | esac |
---|
7147 | ;; |
---|
7148 | |
---|
7149 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
7150 | lt_cv_deplibs_check_method=pass_all |
---|
7151 | ;; |
---|
7152 | esac |
---|
7153 | |
---|
7154 | fi |
---|
7155 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
---|
7156 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
---|
7157 | file_magic_cmd=$lt_cv_file_magic_cmd |
---|
7158 | deplibs_check_method=$lt_cv_deplibs_check_method |
---|
7159 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
---|
7160 | |
---|
7161 | |
---|
7162 | |
---|
7163 | |
---|
7164 | # If no C compiler was specified, use CC. |
---|
7165 | LTCC=${LTCC-"$CC"} |
---|
7166 | |
---|
7167 | # If no C compiler flags were specified, use CFLAGS. |
---|
7168 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
7169 | |
---|
7170 | # Allow CC to be a program name with arguments. |
---|
7171 | compiler=$CC |
---|
7172 | |
---|
7173 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
7174 | if test "${enable_libtool_lock+set}" = set; then |
---|
7175 | enableval="$enable_libtool_lock" |
---|
7176 | |
---|
7177 | fi; |
---|
7178 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
7179 | |
---|
7180 | # Some flags need to be propagated to the compiler or linker for good |
---|
7181 | # libtool support. |
---|
7182 | case $host in |
---|
7183 | ia64-*-hpux*) |
---|
7184 | # Find out which ABI we are using. |
---|
7185 | echo 'int i;' > conftest.$ac_ext |
---|
7186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7187 | (eval $ac_compile) 2>&5 |
---|
7188 | ac_status=$? |
---|
7189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7190 | (exit $ac_status); }; then |
---|
7191 | case `/usr/bin/file conftest.$ac_objext` in |
---|
7192 | *ELF-32*) |
---|
7193 | HPUX_IA64_MODE="32" |
---|
7194 | ;; |
---|
7195 | *ELF-64*) |
---|
7196 | HPUX_IA64_MODE="64" |
---|
7197 | ;; |
---|
7198 | esac |
---|
7199 | fi |
---|
7200 | rm -rf conftest* |
---|
7201 | ;; |
---|
7202 | *-*-irix6*) |
---|
7203 | # Find out which ABI we are using. |
---|
7204 | echo '#line 7204 "configure"' > conftest.$ac_ext |
---|
7205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7206 | (eval $ac_compile) 2>&5 |
---|
7207 | ac_status=$? |
---|
7208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7209 | (exit $ac_status); }; then |
---|
7210 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
7211 | case `/usr/bin/file conftest.$ac_objext` in |
---|
7212 | *32-bit*) |
---|
7213 | LD="${LD-ld} -melf32bsmip" |
---|
7214 | ;; |
---|
7215 | *N32*) |
---|
7216 | LD="${LD-ld} -melf32bmipn32" |
---|
7217 | ;; |
---|
7218 | *64-bit*) |
---|
7219 | LD="${LD-ld} -melf64bmip" |
---|
7220 | ;; |
---|
7221 | esac |
---|
7222 | else |
---|
7223 | case `/usr/bin/file conftest.$ac_objext` in |
---|
7224 | *32-bit*) |
---|
7225 | LD="${LD-ld} -32" |
---|
7226 | ;; |
---|
7227 | *N32*) |
---|
7228 | LD="${LD-ld} -n32" |
---|
7229 | ;; |
---|
7230 | *64-bit*) |
---|
7231 | LD="${LD-ld} -64" |
---|
7232 | ;; |
---|
7233 | esac |
---|
7234 | fi |
---|
7235 | fi |
---|
7236 | rm -rf conftest* |
---|
7237 | ;; |
---|
7238 | |
---|
7239 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
---|
7240 | # Find out which ABI we are using. |
---|
7241 | echo 'int i;' > conftest.$ac_ext |
---|
7242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7243 | (eval $ac_compile) 2>&5 |
---|
7244 | ac_status=$? |
---|
7245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7246 | (exit $ac_status); }; then |
---|
7247 | case `/usr/bin/file conftest.o` in |
---|
7248 | *32-bit*) |
---|
7249 | case $host in |
---|
7250 | x86_64-*linux*) |
---|
7251 | LD="${LD-ld} -m elf_i386" |
---|
7252 | ;; |
---|
7253 | ppc64-*linux*|powerpc64-*linux*) |
---|
7254 | LD="${LD-ld} -m elf32ppclinux" |
---|
7255 | ;; |
---|
7256 | s390x-*linux*) |
---|
7257 | LD="${LD-ld} -m elf_s390" |
---|
7258 | ;; |
---|
7259 | sparc64-*linux*) |
---|
7260 | LD="${LD-ld} -m elf32_sparc" |
---|
7261 | ;; |
---|
7262 | esac |
---|
7263 | ;; |
---|
7264 | *64-bit*) |
---|
7265 | case $host in |
---|
7266 | x86_64-*linux*) |
---|
7267 | LD="${LD-ld} -m elf_x86_64" |
---|
7268 | ;; |
---|
7269 | ppc*-*linux*|powerpc*-*linux*) |
---|
7270 | LD="${LD-ld} -m elf64ppc" |
---|
7271 | ;; |
---|
7272 | s390*-*linux*) |
---|
7273 | LD="${LD-ld} -m elf64_s390" |
---|
7274 | ;; |
---|
7275 | sparc*-*linux*) |
---|
7276 | LD="${LD-ld} -m elf64_sparc" |
---|
7277 | ;; |
---|
7278 | esac |
---|
7279 | ;; |
---|
7280 | esac |
---|
7281 | fi |
---|
7282 | rm -rf conftest* |
---|
7283 | ;; |
---|
7284 | |
---|
7285 | *-*-sco3.2v5*) |
---|
7286 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
7287 | SAVE_CFLAGS="$CFLAGS" |
---|
7288 | CFLAGS="$CFLAGS -belf" |
---|
7289 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
---|
7290 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
---|
7291 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
---|
7292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7293 | else |
---|
7294 | ac_ext=c |
---|
7295 | ac_cpp='$CPP $CPPFLAGS' |
---|
7296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7299 | |
---|
7300 | cat >conftest.$ac_ext <<_ACEOF |
---|
7301 | /* confdefs.h. */ |
---|
7302 | _ACEOF |
---|
7303 | cat confdefs.h >>conftest.$ac_ext |
---|
7304 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7305 | /* end confdefs.h. */ |
---|
7306 | |
---|
7307 | #ifdef F77_DUMMY_MAIN |
---|
7308 | |
---|
7309 | # ifdef __cplusplus |
---|
7310 | extern "C" |
---|
7311 | # endif |
---|
7312 | int F77_DUMMY_MAIN() { return 1; } |
---|
7313 | |
---|
7314 | #endif |
---|
7315 | int |
---|
7316 | main () |
---|
7317 | { |
---|
7318 | |
---|
7319 | ; |
---|
7320 | return 0; |
---|
7321 | } |
---|
7322 | _ACEOF |
---|
7323 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7325 | (eval $ac_link) 2>conftest.er1 |
---|
7326 | ac_status=$? |
---|
7327 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7328 | rm -f conftest.er1 |
---|
7329 | cat conftest.err >&5 |
---|
7330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7331 | (exit $ac_status); } && |
---|
7332 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7333 | || test ! -s conftest.err' |
---|
7334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7335 | (eval $ac_try) 2>&5 |
---|
7336 | ac_status=$? |
---|
7337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7338 | (exit $ac_status); }; } && |
---|
7339 | { ac_try='test -s conftest$ac_exeext' |
---|
7340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7341 | (eval $ac_try) 2>&5 |
---|
7342 | ac_status=$? |
---|
7343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7344 | (exit $ac_status); }; }; then |
---|
7345 | lt_cv_cc_needs_belf=yes |
---|
7346 | else |
---|
7347 | echo "$as_me: failed program was:" >&5 |
---|
7348 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7349 | |
---|
7350 | lt_cv_cc_needs_belf=no |
---|
7351 | fi |
---|
7352 | rm -f conftest.err conftest.$ac_objext \ |
---|
7353 | conftest$ac_exeext conftest.$ac_ext |
---|
7354 | ac_ext=c |
---|
7355 | ac_cpp='$CPP $CPPFLAGS' |
---|
7356 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7357 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7358 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7359 | |
---|
7360 | fi |
---|
7361 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
---|
7362 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
---|
7363 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
7364 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
7365 | CFLAGS="$SAVE_CFLAGS" |
---|
7366 | fi |
---|
7367 | ;; |
---|
7368 | sparc*-*solaris*) |
---|
7369 | # Find out which ABI we are using. |
---|
7370 | echo 'int i;' > conftest.$ac_ext |
---|
7371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7372 | (eval $ac_compile) 2>&5 |
---|
7373 | ac_status=$? |
---|
7374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7375 | (exit $ac_status); }; then |
---|
7376 | case `/usr/bin/file conftest.o` in |
---|
7377 | *64-bit*) |
---|
7378 | case $lt_cv_prog_gnu_ld in |
---|
7379 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
---|
7380 | *) LD="${LD-ld} -64" ;; |
---|
7381 | esac |
---|
7382 | ;; |
---|
7383 | esac |
---|
7384 | fi |
---|
7385 | rm -rf conftest* |
---|
7386 | ;; |
---|
7387 | |
---|
7388 | |
---|
7389 | esac |
---|
7390 | |
---|
7391 | need_locks="$enable_libtool_lock" |
---|
7392 | |
---|
7393 | |
---|
7394 | |
---|
7395 | for ac_header in dlfcn.h |
---|
7396 | do |
---|
7397 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7398 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7399 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7400 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7401 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7403 | fi |
---|
7404 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7405 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7406 | else |
---|
7407 | # Is the header compilable? |
---|
7408 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7409 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7410 | cat >conftest.$ac_ext <<_ACEOF |
---|
7411 | /* confdefs.h. */ |
---|
7412 | _ACEOF |
---|
7413 | cat confdefs.h >>conftest.$ac_ext |
---|
7414 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7415 | /* end confdefs.h. */ |
---|
7416 | $ac_includes_default |
---|
7417 | #include <$ac_header> |
---|
7418 | _ACEOF |
---|
7419 | rm -f conftest.$ac_objext |
---|
7420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7421 | (eval $ac_compile) 2>conftest.er1 |
---|
7422 | ac_status=$? |
---|
7423 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7424 | rm -f conftest.er1 |
---|
7425 | cat conftest.err >&5 |
---|
7426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7427 | (exit $ac_status); } && |
---|
7428 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7429 | || test ! -s conftest.err' |
---|
7430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7431 | (eval $ac_try) 2>&5 |
---|
7432 | ac_status=$? |
---|
7433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7434 | (exit $ac_status); }; } && |
---|
7435 | { ac_try='test -s conftest.$ac_objext' |
---|
7436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7437 | (eval $ac_try) 2>&5 |
---|
7438 | ac_status=$? |
---|
7439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7440 | (exit $ac_status); }; }; then |
---|
7441 | ac_header_compiler=yes |
---|
7442 | else |
---|
7443 | echo "$as_me: failed program was:" >&5 |
---|
7444 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7445 | |
---|
7446 | ac_header_compiler=no |
---|
7447 | fi |
---|
7448 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7449 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7450 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7451 | |
---|
7452 | # Is the header present? |
---|
7453 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7454 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7455 | cat >conftest.$ac_ext <<_ACEOF |
---|
7456 | /* confdefs.h. */ |
---|
7457 | _ACEOF |
---|
7458 | cat confdefs.h >>conftest.$ac_ext |
---|
7459 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7460 | /* end confdefs.h. */ |
---|
7461 | #include <$ac_header> |
---|
7462 | _ACEOF |
---|
7463 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7464 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7465 | ac_status=$? |
---|
7466 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7467 | rm -f conftest.er1 |
---|
7468 | cat conftest.err >&5 |
---|
7469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7470 | (exit $ac_status); } >/dev/null; then |
---|
7471 | if test -s conftest.err; then |
---|
7472 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7473 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7474 | else |
---|
7475 | ac_cpp_err= |
---|
7476 | fi |
---|
7477 | else |
---|
7478 | ac_cpp_err=yes |
---|
7479 | fi |
---|
7480 | if test -z "$ac_cpp_err"; then |
---|
7481 | ac_header_preproc=yes |
---|
7482 | else |
---|
7483 | echo "$as_me: failed program was:" >&5 |
---|
7484 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7485 | |
---|
7486 | ac_header_preproc=no |
---|
7487 | fi |
---|
7488 | rm -f conftest.err conftest.$ac_ext |
---|
7489 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7490 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7491 | |
---|
7492 | # So? What about this header? |
---|
7493 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7494 | yes:no: ) |
---|
7495 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7496 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7497 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7498 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7499 | ac_header_preproc=yes |
---|
7500 | ;; |
---|
7501 | no:yes:* ) |
---|
7502 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7503 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7504 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7505 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7506 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7507 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7508 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7509 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7510 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7511 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7512 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7513 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7514 | ( |
---|
7515 | cat <<\_ASBOX |
---|
7516 | ## --------------------------------------------------------------- ## |
---|
7517 | ## Report this to http://projects.coin-or.org/BuildTools/newticket ## |
---|
7518 | ## --------------------------------------------------------------- ## |
---|
7519 | _ASBOX |
---|
7520 | ) | |
---|
7521 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7522 | ;; |
---|
7523 | esac |
---|
7524 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7525 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7526 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7528 | else |
---|
7529 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7530 | fi |
---|
7531 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7532 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7533 | |
---|
7534 | fi |
---|
7535 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7536 | cat >>confdefs.h <<_ACEOF |
---|
7537 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7538 | _ACEOF |
---|
7539 | |
---|
7540 | fi |
---|
7541 | |
---|
7542 | done |
---|
7543 | |
---|
7544 | ac_ext=cc |
---|
7545 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
7546 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7547 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7548 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
7549 | if test -n "$ac_tool_prefix"; then |
---|
7550 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
7551 | do |
---|
7552 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
7553 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
7554 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7555 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7556 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
7557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7558 | else |
---|
7559 | if test -n "$CXX"; then |
---|
7560 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
7561 | else |
---|
7562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7563 | for as_dir in $PATH |
---|
7564 | do |
---|
7565 | IFS=$as_save_IFS |
---|
7566 | test -z "$as_dir" && as_dir=. |
---|
7567 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7568 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7569 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
7570 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7571 | break 2 |
---|
7572 | fi |
---|
7573 | done |
---|
7574 | done |
---|
7575 | |
---|
7576 | fi |
---|
7577 | fi |
---|
7578 | CXX=$ac_cv_prog_CXX |
---|
7579 | if test -n "$CXX"; then |
---|
7580 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
7581 | echo "${ECHO_T}$CXX" >&6 |
---|
7582 | else |
---|
7583 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7584 | echo "${ECHO_T}no" >&6 |
---|
7585 | fi |
---|
7586 | |
---|
7587 | test -n "$CXX" && break |
---|
7588 | done |
---|
7589 | fi |
---|
7590 | if test -z "$CXX"; then |
---|
7591 | ac_ct_CXX=$CXX |
---|
7592 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
7593 | do |
---|
7594 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
7595 | set dummy $ac_prog; ac_word=$2 |
---|
7596 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7597 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7598 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
7599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7600 | else |
---|
7601 | if test -n "$ac_ct_CXX"; then |
---|
7602 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
7603 | else |
---|
7604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7605 | for as_dir in $PATH |
---|
7606 | do |
---|
7607 | IFS=$as_save_IFS |
---|
7608 | test -z "$as_dir" && as_dir=. |
---|
7609 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7610 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7611 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
7612 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7613 | break 2 |
---|
7614 | fi |
---|
7615 | done |
---|
7616 | done |
---|
7617 | |
---|
7618 | fi |
---|
7619 | fi |
---|
7620 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
7621 | if test -n "$ac_ct_CXX"; then |
---|
7622 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
7623 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
7624 | else |
---|
7625 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7626 | echo "${ECHO_T}no" >&6 |
---|
7627 | fi |
---|
7628 | |
---|
7629 | test -n "$ac_ct_CXX" && break |
---|
7630 | done |
---|
7631 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
7632 | |
---|
7633 | CXX=$ac_ct_CXX |
---|
7634 | fi |
---|
7635 | |
---|
7636 | |
---|
7637 | # Provide some information about the compiler. |
---|
7638 | echo "$as_me:$LINENO:" \ |
---|
7639 | "checking for C++ compiler version" >&5 |
---|
7640 | ac_compiler=`set X $ac_compile; echo $2` |
---|
7641 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
7642 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
7643 | ac_status=$? |
---|
7644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7645 | (exit $ac_status); } |
---|
7646 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
7647 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
7648 | ac_status=$? |
---|
7649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7650 | (exit $ac_status); } |
---|
7651 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
7652 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
7653 | ac_status=$? |
---|
7654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7655 | (exit $ac_status); } |
---|
7656 | |
---|
7657 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
7658 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
7659 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
7660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7661 | else |
---|
7662 | cat >conftest.$ac_ext <<_ACEOF |
---|
7663 | /* confdefs.h. */ |
---|
7664 | _ACEOF |
---|
7665 | cat confdefs.h >>conftest.$ac_ext |
---|
7666 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7667 | /* end confdefs.h. */ |
---|
7668 | |
---|
7669 | #ifdef F77_DUMMY_MAIN |
---|
7670 | |
---|
7671 | # ifdef __cplusplus |
---|
7672 | extern "C" |
---|
7673 | # endif |
---|
7674 | int F77_DUMMY_MAIN() { return 1; } |
---|
7675 | |
---|
7676 | #endif |
---|
7677 | int |
---|
7678 | main () |
---|
7679 | { |
---|
7680 | #ifndef __GNUC__ |
---|
7681 | choke me |
---|
7682 | #endif |
---|
7683 | |
---|
7684 | ; |
---|
7685 | return 0; |
---|
7686 | } |
---|
7687 | _ACEOF |
---|
7688 | rm -f conftest.$ac_objext |
---|
7689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7690 | (eval $ac_compile) 2>conftest.er1 |
---|
7691 | ac_status=$? |
---|
7692 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7693 | rm -f conftest.er1 |
---|
7694 | cat conftest.err >&5 |
---|
7695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7696 | (exit $ac_status); } && |
---|
7697 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
7698 | || test ! -s conftest.err' |
---|
7699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7700 | (eval $ac_try) 2>&5 |
---|
7701 | ac_status=$? |
---|
7702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7703 | (exit $ac_status); }; } && |
---|
7704 | { ac_try='test -s conftest.$ac_objext' |
---|
7705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7706 | (eval $ac_try) 2>&5 |
---|
7707 | ac_status=$? |
---|
7708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7709 | (exit $ac_status); }; }; then |
---|
7710 | ac_compiler_gnu=yes |
---|
7711 | else |
---|
7712 | echo "$as_me: failed program was:" >&5 |
---|
7713 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7714 | |
---|
7715 | ac_compiler_gnu=no |
---|
7716 | fi |
---|
7717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7718 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
7719 | |
---|
7720 | fi |
---|
7721 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
7722 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
7723 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
7724 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
7725 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
7726 | CXXFLAGS="-g" |
---|
7727 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
7728 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
7729 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
7730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7731 | else |
---|
7732 | cat >conftest.$ac_ext <<_ACEOF |
---|
7733 | /* confdefs.h. */ |
---|
7734 | _ACEOF |
---|
7735 | cat confdefs.h >>conftest.$ac_ext |
---|
7736 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7737 | /* end confdefs.h. */ |
---|
7738 | |
---|
7739 | #ifdef F77_DUMMY_MAIN |
---|
7740 | |
---|
7741 | # ifdef __cplusplus |
---|
7742 | extern "C" |
---|
7743 | # endif |
---|
7744 | int F77_DUMMY_MAIN() { return 1; } |
---|
7745 | |
---|
7746 | #endif |
---|
7747 | int |
---|
7748 | main () |
---|
7749 | { |
---|
7750 | |
---|
7751 | ; |
---|
7752 | return 0; |
---|
7753 | } |
---|
7754 | _ACEOF |
---|
7755 | rm -f conftest.$ac_objext |
---|
7756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7757 | (eval $ac_compile) 2>conftest.er1 |
---|
7758 | ac_status=$? |
---|
7759 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7760 | rm -f conftest.er1 |
---|
7761 | cat conftest.err >&5 |
---|
7762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7763 | (exit $ac_status); } && |
---|
7764 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
7765 | || test ! -s conftest.err' |
---|
7766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7767 | (eval $ac_try) 2>&5 |
---|
7768 | ac_status=$? |
---|
7769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7770 | (exit $ac_status); }; } && |
---|
7771 | { ac_try='test -s conftest.$ac_objext' |
---|
7772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7773 | (eval $ac_try) 2>&5 |
---|
7774 | ac_status=$? |
---|
7775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7776 | (exit $ac_status); }; }; then |
---|
7777 | ac_cv_prog_cxx_g=yes |
---|
7778 | else |
---|
7779 | echo "$as_me: failed program was:" >&5 |
---|
7780 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7781 | |
---|
7782 | ac_cv_prog_cxx_g=no |
---|
7783 | fi |
---|
7784 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7785 | fi |
---|
7786 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
7787 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
7788 | if test "$ac_test_CXXFLAGS" = set; then |
---|
7789 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
7790 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
7791 | if test "$GXX" = yes; then |
---|
7792 | CXXFLAGS="-g -O2" |
---|
7793 | else |
---|
7794 | CXXFLAGS="-g" |
---|
7795 | fi |
---|
7796 | else |
---|
7797 | if test "$GXX" = yes; then |
---|
7798 | CXXFLAGS="-O2" |
---|
7799 | else |
---|
7800 | CXXFLAGS= |
---|
7801 | fi |
---|
7802 | fi |
---|
7803 | for ac_declaration in \ |
---|
7804 | '' \ |
---|
7805 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
7806 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
7807 | 'extern "C" void exit (int) throw ();' \ |
---|
7808 | 'extern "C" void exit (int);' \ |
---|
7809 | 'void exit (int);' |
---|
7810 | do |
---|
7811 | cat >conftest.$ac_ext <<_ACEOF |
---|
7812 | /* confdefs.h. */ |
---|
7813 | _ACEOF |
---|
7814 | cat confdefs.h >>conftest.$ac_ext |
---|
7815 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7816 | /* end confdefs.h. */ |
---|
7817 | $ac_declaration |
---|
7818 | #include <stdlib.h> |
---|
7819 | #ifdef F77_DUMMY_MAIN |
---|
7820 | |
---|
7821 | # ifdef __cplusplus |
---|
7822 | extern "C" |
---|
7823 | # endif |
---|
7824 | int F77_DUMMY_MAIN() { return 1; } |
---|
7825 | |
---|
7826 | #endif |
---|
7827 | int |
---|
7828 | main () |
---|
7829 | { |
---|
7830 | exit (42); |
---|
7831 | ; |
---|
7832 | return 0; |
---|
7833 | } |
---|
7834 | _ACEOF |
---|
7835 | rm -f conftest.$ac_objext |
---|
7836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7837 | (eval $ac_compile) 2>conftest.er1 |
---|
7838 | ac_status=$? |
---|
7839 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7840 | rm -f conftest.er1 |
---|
7841 | cat conftest.err >&5 |
---|
7842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7843 | (exit $ac_status); } && |
---|
7844 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
7845 | || test ! -s conftest.err' |
---|
7846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7847 | (eval $ac_try) 2>&5 |
---|
7848 | ac_status=$? |
---|
7849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7850 | (exit $ac_status); }; } && |
---|
7851 | { ac_try='test -s conftest.$ac_objext' |
---|
7852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7853 | (eval $ac_try) 2>&5 |
---|
7854 | ac_status=$? |
---|
7855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7856 | (exit $ac_status); }; }; then |
---|
7857 | : |
---|
7858 | else |
---|
7859 | echo "$as_me: failed program was:" >&5 |
---|
7860 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7861 | |
---|
7862 | continue |
---|
7863 | fi |
---|
7864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7865 | cat >conftest.$ac_ext <<_ACEOF |
---|
7866 | /* confdefs.h. */ |
---|
7867 | _ACEOF |
---|
7868 | cat confdefs.h >>conftest.$ac_ext |
---|
7869 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7870 | /* end confdefs.h. */ |
---|
7871 | $ac_declaration |
---|
7872 | #ifdef F77_DUMMY_MAIN |
---|
7873 | |
---|
7874 | # ifdef __cplusplus |
---|
7875 | extern "C" |
---|
7876 | # endif |
---|
7877 | int F77_DUMMY_MAIN() { return 1; } |
---|
7878 | |
---|
7879 | #endif |
---|
7880 | int |
---|
7881 | main () |
---|
7882 | { |
---|
7883 | exit (42); |
---|
7884 | ; |
---|
7885 | return 0; |
---|
7886 | } |
---|
7887 | _ACEOF |
---|
7888 | rm -f conftest.$ac_objext |
---|
7889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7890 | (eval $ac_compile) 2>conftest.er1 |
---|
7891 | ac_status=$? |
---|
7892 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7893 | rm -f conftest.er1 |
---|
7894 | cat conftest.err >&5 |
---|
7895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7896 | (exit $ac_status); } && |
---|
7897 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
7898 | || test ! -s conftest.err' |
---|
7899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7900 | (eval $ac_try) 2>&5 |
---|
7901 | ac_status=$? |
---|
7902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7903 | (exit $ac_status); }; } && |
---|
7904 | { ac_try='test -s conftest.$ac_objext' |
---|
7905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7906 | (eval $ac_try) 2>&5 |
---|
7907 | ac_status=$? |
---|
7908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7909 | (exit $ac_status); }; }; then |
---|
7910 | break |
---|
7911 | else |
---|
7912 | echo "$as_me: failed program was:" >&5 |
---|
7913 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7914 | |
---|
7915 | fi |
---|
7916 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7917 | done |
---|
7918 | rm -f conftest* |
---|
7919 | if test -n "$ac_declaration"; then |
---|
7920 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
7921 | echo $ac_declaration >>confdefs.h |
---|
7922 | echo '#endif' >>confdefs.h |
---|
7923 | fi |
---|
7924 | |
---|
7925 | ac_ext=cc |
---|
7926 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
7927 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7928 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7929 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
7930 | |
---|
7931 | depcc="$CXX" am_compiler_list= |
---|
7932 | |
---|
7933 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
7934 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
7935 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
7936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7937 | else |
---|
7938 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
7939 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
7940 | # making bogus files that we don't know about and never remove. For |
---|
7941 | # instance it was reported that on HP-UX the gcc test will end up |
---|
7942 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
7943 | # in D'. |
---|
7944 | mkdir conftest.dir |
---|
7945 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
7946 | # using a relative directory. |
---|
7947 | cp "$am_depcomp" conftest.dir |
---|
7948 | cd conftest.dir |
---|
7949 | # We will build objects and dependencies in a subdirectory because |
---|
7950 | # it helps to detect inapplicable dependency modes. For instance |
---|
7951 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
7952 | # side effect of compilation, but ICC will put the dependencies in |
---|
7953 | # the current directory while Tru64 will put them in the object |
---|
7954 | # directory. |
---|
7955 | mkdir sub |
---|
7956 | |
---|
7957 | am_cv_CXX_dependencies_compiler_type=none |
---|
7958 | if test "$am_compiler_list" = ""; then |
---|
7959 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
7960 | fi |
---|
7961 | for depmode in $am_compiler_list; do |
---|
7962 | # Setup a source with many dependencies, because some compilers |
---|
7963 | # like to wrap large dependency lists on column 80 (with \), and |
---|
7964 | # we should not choose a depcomp mode which is confused by this. |
---|
7965 | # |
---|
7966 | # We need to recreate these files for each test, as the compiler may |
---|
7967 | # overwrite some of them when testing with obscure command lines. |
---|
7968 | # This happens at least with the AIX C compiler. |
---|
7969 | : > sub/conftest.c |
---|
7970 | for i in 1 2 3 4 5 6; do |
---|
7971 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
7972 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
7973 | # Solaris 8's {/usr,}/bin/sh. |
---|
7974 | touch sub/conftst$i.h |
---|
7975 | done |
---|
7976 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
7977 | |
---|
7978 | case $depmode in |
---|
7979 | nosideeffect) |
---|
7980 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
7981 | # only be used when explicitly requested |
---|
7982 | if test "x$enable_dependency_tracking" = xyes; then |
---|
7983 | continue |
---|
7984 | else |
---|
7985 | break |
---|
7986 | fi |
---|
7987 | ;; |
---|
7988 | none) break ;; |
---|
7989 | esac |
---|
7990 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
7991 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
7992 | # handle `-M -o', and we need to detect this. |
---|
7993 | if depmode=$depmode \ |
---|
7994 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
7995 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
7996 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
7997 | >/dev/null 2>conftest.err && |
---|
7998 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
7999 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
8000 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
8001 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
8002 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
8003 | # that says an option was ignored or not supported. |
---|
8004 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
8005 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
8006 | # The diagnosis changed in icc 8.0: |
---|
8007 | # icc: Command line remark: option '-MP' not supported |
---|
8008 | if (grep 'ignoring option' conftest.err || |
---|
8009 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
8010 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
8011 | break |
---|
8012 | fi |
---|
8013 | fi |
---|
8014 | done |
---|
8015 | |
---|
8016 | cd .. |
---|
8017 | rm -rf conftest.dir |
---|
8018 | else |
---|
8019 | am_cv_CXX_dependencies_compiler_type=none |
---|
8020 | fi |
---|
8021 | |
---|
8022 | fi |
---|
8023 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
8024 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
8025 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
8026 | |
---|
8027 | |
---|
8028 | |
---|
8029 | if |
---|
8030 | test "x$enable_dependency_tracking" != xno \ |
---|
8031 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
8032 | am__fastdepCXX_TRUE= |
---|
8033 | am__fastdepCXX_FALSE='#' |
---|
8034 | else |
---|
8035 | am__fastdepCXX_TRUE='#' |
---|
8036 | am__fastdepCXX_FALSE= |
---|
8037 | fi |
---|
8038 | |
---|
8039 | |
---|
8040 | |
---|
8041 | |
---|
8042 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
---|
8043 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
---|
8044 | (test "X$CXX" != "Xg++"))) ; then |
---|
8045 | ac_ext=cc |
---|
8046 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
8047 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
8048 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
8049 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
8050 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
---|
8051 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
---|
8052 | if test -z "$CXXCPP"; then |
---|
8053 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
---|
8054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8055 | else |
---|
8056 | # Double quotes because CXXCPP needs to be expanded |
---|
8057 | for CXXCPP in "$CXX -E" "/lib/cpp" |
---|
8058 | do |
---|
8059 | ac_preproc_ok=false |
---|
8060 | for ac_cxx_preproc_warn_flag in '' yes |
---|
8061 | do |
---|
8062 | # Use a header file that comes with gcc, so configuring glibc |
---|
8063 | # with a fresh cross-compiler works. |
---|
8064 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
8065 | # <limits.h> exists even on freestanding compilers. |
---|
8066 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
8067 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
8068 | cat >conftest.$ac_ext <<_ACEOF |
---|
8069 | /* confdefs.h. */ |
---|
8070 | _ACEOF |
---|
8071 | cat confdefs.h >>conftest.$ac_ext |
---|
8072 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8073 | /* end confdefs.h. */ |
---|
8074 | #ifdef __STDC__ |
---|
8075 | # include <limits.h> |
---|
8076 | #else |
---|
8077 | # include <assert.h> |
---|
8078 | #endif |
---|
8079 | Syntax error |
---|
8080 | _ACEOF |
---|
8081 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8082 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8083 | ac_status=$? |
---|
8084 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8085 | rm -f conftest.er1 |
---|
8086 | cat conftest.err >&5 |
---|
8087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8088 | (exit $ac_status); } >/dev/null; then |
---|
8089 | if test -s conftest.err; then |
---|
8090 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
8091 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
8092 | else |
---|
8093 | ac_cpp_err= |
---|
8094 | fi |
---|
8095 | else |
---|
8096 | ac_cpp_err=yes |
---|
8097 | fi |
---|
8098 | if test -z "$ac_cpp_err"; then |
---|
8099 | : |
---|
8100 | else |
---|
8101 | echo "$as_me: failed program was:" >&5 |
---|
8102 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8103 | |
---|
8104 | # Broken: fails on valid input. |
---|
8105 | continue |
---|
8106 | fi |
---|
8107 | rm -f conftest.err conftest.$ac_ext |
---|
8108 | |
---|
8109 | # OK, works on sane cases. Now check whether non-existent headers |
---|
8110 | # can be detected and how. |
---|
8111 | cat >conftest.$ac_ext <<_ACEOF |
---|
8112 | /* confdefs.h. */ |
---|
8113 | _ACEOF |
---|
8114 | cat confdefs.h >>conftest.$ac_ext |
---|
8115 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8116 | /* end confdefs.h. */ |
---|
8117 | #include <ac_nonexistent.h> |
---|
8118 | _ACEOF |
---|
8119 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8120 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8121 | ac_status=$? |
---|
8122 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8123 | rm -f conftest.er1 |
---|
8124 | cat conftest.err >&5 |
---|
8125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8126 | (exit $ac_status); } >/dev/null; then |
---|
8127 | if test -s conftest.err; then |
---|
8128 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
8129 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
8130 | else |
---|
8131 | ac_cpp_err= |
---|
8132 | fi |
---|
8133 | else |
---|
8134 | ac_cpp_err=yes |
---|
8135 | fi |
---|
8136 | if test -z "$ac_cpp_err"; then |
---|
8137 | # Broken: success on invalid input. |
---|
8138 | continue |
---|
8139 | else |
---|
8140 | echo "$as_me: failed program was:" >&5 |
---|
8141 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8142 | |
---|
8143 | # Passes both tests. |
---|
8144 | ac_preproc_ok=: |
---|
8145 | break |
---|
8146 | fi |
---|
8147 | rm -f conftest.err conftest.$ac_ext |
---|
8148 | |
---|
8149 | done |
---|
8150 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
8151 | rm -f conftest.err conftest.$ac_ext |
---|
8152 | if $ac_preproc_ok; then |
---|
8153 | break |
---|
8154 | fi |
---|
8155 | |
---|
8156 | done |
---|
8157 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
8158 | |
---|
8159 | fi |
---|
8160 | CXXCPP=$ac_cv_prog_CXXCPP |
---|
8161 | else |
---|
8162 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
8163 | fi |
---|
8164 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
---|
8165 | echo "${ECHO_T}$CXXCPP" >&6 |
---|
8166 | ac_preproc_ok=false |
---|
8167 | for ac_cxx_preproc_warn_flag in '' yes |
---|
8168 | do |
---|
8169 | # Use a header file that comes with gcc, so configuring glibc |
---|
8170 | # with a fresh cross-compiler works. |
---|
8171 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
8172 | # <limits.h> exists even on freestanding compilers. |
---|
8173 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
8174 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
8175 | cat >conftest.$ac_ext <<_ACEOF |
---|
8176 | /* confdefs.h. */ |
---|
8177 | _ACEOF |
---|
8178 | cat confdefs.h >>conftest.$ac_ext |
---|
8179 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8180 | /* end confdefs.h. */ |
---|
8181 | #ifdef __STDC__ |
---|
8182 | # include <limits.h> |
---|
8183 | #else |
---|
8184 | # include <assert.h> |
---|
8185 | #endif |
---|
8186 | Syntax error |
---|
8187 | _ACEOF |
---|
8188 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8189 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8190 | ac_status=$? |
---|
8191 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8192 | rm -f conftest.er1 |
---|
8193 | cat conftest.err >&5 |
---|
8194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8195 | (exit $ac_status); } >/dev/null; then |
---|
8196 | if test -s conftest.err; then |
---|
8197 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
8198 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
8199 | else |
---|
8200 | ac_cpp_err= |
---|
8201 | fi |
---|
8202 | else |
---|
8203 | ac_cpp_err=yes |
---|
8204 | fi |
---|
8205 | if test -z "$ac_cpp_err"; then |
---|
8206 | : |
---|
8207 | else |
---|
8208 | echo "$as_me: failed program was:" >&5 |
---|
8209 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8210 | |
---|
8211 | # Broken: fails on valid input. |
---|
8212 | continue |
---|
8213 | fi |
---|
8214 | rm -f conftest.err conftest.$ac_ext |
---|
8215 | |
---|
8216 | # OK, works on sane cases. Now check whether non-existent headers |
---|
8217 | # can be detected and how. |
---|
8218 | cat >conftest.$ac_ext <<_ACEOF |
---|
8219 | /* confdefs.h. */ |
---|
8220 | _ACEOF |
---|
8221 | cat confdefs.h >>conftest.$ac_ext |
---|
8222 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8223 | /* end confdefs.h. */ |
---|
8224 | #include <ac_nonexistent.h> |
---|
8225 | _ACEOF |
---|
8226 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8227 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8228 | ac_status=$? |
---|
8229 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8230 | rm -f conftest.er1 |
---|
8231 | cat conftest.err >&5 |
---|
8232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8233 | (exit $ac_status); } >/dev/null; then |
---|
8234 | if test -s conftest.err; then |
---|
8235 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
8236 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
8237 | else |
---|
8238 | ac_cpp_err= |
---|
8239 | fi |
---|
8240 | else |
---|
8241 | ac_cpp_err=yes |
---|
8242 | fi |
---|
8243 | if test -z "$ac_cpp_err"; then |
---|
8244 | # Broken: success on invalid input. |
---|
8245 | continue |
---|
8246 | else |
---|
8247 | echo "$as_me: failed program was:" >&5 |
---|
8248 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8249 | |
---|
8250 | # Passes both tests. |
---|
8251 | ac_preproc_ok=: |
---|
8252 | break |
---|
8253 | fi |
---|
8254 | rm -f conftest.err conftest.$ac_ext |
---|
8255 | |
---|
8256 | done |
---|
8257 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
8258 | rm -f conftest.err conftest.$ac_ext |
---|
8259 | if $ac_preproc_ok; then |
---|
8260 | : |
---|
8261 | else |
---|
8262 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
8263 | See \`config.log' for more details." >&5 |
---|
8264 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
8265 | See \`config.log' for more details." >&2;} |
---|
8266 | { (exit 1); exit 1; }; } |
---|
8267 | fi |
---|
8268 | |
---|
8269 | ac_ext=cc |
---|
8270 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
8271 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
8272 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
8273 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
8274 | |
---|
8275 | fi |
---|
8276 | |
---|
8277 | |
---|
8278 | |
---|
8279 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
---|
8280 | |
---|
8281 | # find the maximum length of command line arguments |
---|
8282 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
---|
8283 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
---|
8284 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
---|
8285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8286 | else |
---|
8287 | i=0 |
---|
8288 | teststring="ABCD" |
---|
8289 | |
---|
8290 | case $build_os in |
---|
8291 | msdosdjgpp*) |
---|
8292 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
---|
8293 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
---|
8294 | # during glob expansion). Even if it were fixed, the result of this |
---|
8295 | # check would be larger than it should be. |
---|
8296 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
---|
8297 | ;; |
---|
8298 | |
---|
8299 | gnu*) |
---|
8300 | # Under GNU Hurd, this test is not required because there is |
---|
8301 | # no limit to the length of command line arguments. |
---|
8302 | # Libtool will interpret -1 as no limit whatsoever |
---|
8303 | lt_cv_sys_max_cmd_len=-1; |
---|
8304 | ;; |
---|
8305 | |
---|
8306 | cygwin* | mingw*) |
---|
8307 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
---|
8308 | # about 5 minutes as the teststring grows exponentially. |
---|
8309 | # Worse, since 9x/ME are not pre-emptively multitasking, |
---|
8310 | # you end up with a "frozen" computer, even though with patience |
---|
8311 | # the test eventually succeeds (with a max line length of 256k). |
---|
8312 | # Instead, let's just punt: use the minimum linelength reported by |
---|
8313 | # all of the supported platforms: 8192 (on NT/2K/XP). |
---|
8314 | lt_cv_sys_max_cmd_len=8192; |
---|
8315 | ;; |
---|
8316 | |
---|
8317 | amigaos*) |
---|
8318 | # On AmigaOS with pdksh, this test takes hours, literally. |
---|
8319 | # So we just punt and use a minimum line length of 8192. |
---|
8320 | lt_cv_sys_max_cmd_len=8192; |
---|
8321 | ;; |
---|
8322 | |
---|
8323 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
---|
8324 | # This has been around since 386BSD, at least. Likely further. |
---|
8325 | if test -x /sbin/sysctl; then |
---|
8326 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
---|
8327 | elif test -x /usr/sbin/sysctl; then |
---|
8328 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
---|
8329 | else |
---|
8330 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
---|
8331 | fi |
---|
8332 | # And add a safety zone |
---|
8333 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
---|
8334 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
---|
8335 | ;; |
---|
8336 | |
---|
8337 | interix*) |
---|
8338 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
---|
8339 | lt_cv_sys_max_cmd_len=196608 |
---|
8340 | ;; |
---|
8341 | |
---|
8342 | osf*) |
---|
8343 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
---|
8344 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
---|
8345 | # nice to cause kernel panics so lets avoid the loop below. |
---|
8346 | # First set a reasonable default. |
---|
8347 | lt_cv_sys_max_cmd_len=16384 |
---|
8348 | # |
---|
8349 | if test -x /sbin/sysconfig; then |
---|
8350 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
---|
8351 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
---|
8352 | esac |
---|
8353 | fi |
---|
8354 | ;; |
---|
8355 | sco3.2v5*) |
---|
8356 | lt_cv_sys_max_cmd_len=102400 |
---|
8357 | ;; |
---|
8358 | sysv5* | sco5v6* | sysv4.2uw2*) |
---|
8359 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
---|
8360 | if test -n "$kargmax"; then |
---|
8361 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
---|
8362 | else |
---|
8363 | lt_cv_sys_max_cmd_len=32768 |
---|
8364 | fi |
---|
8365 | ;; |
---|
8366 | *) |
---|
8367 | # If test is not a shell built-in, we'll probably end up computing a |
---|
8368 | # maximum length that is only half of the actual maximum length, but |
---|
8369 | # we can't tell. |
---|
8370 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
---|
8371 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
---|
8372 | = "XX$teststring") >/dev/null 2>&1 && |
---|
8373 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
---|
8374 | lt_cv_sys_max_cmd_len=$new_result && |
---|
8375 | test $i != 17 # 1/2 MB should be enough |
---|
8376 | do |
---|
8377 | i=`expr $i + 1` |
---|
8378 | teststring=$teststring$teststring |
---|
8379 | done |
---|
8380 | teststring= |
---|
8381 | # Add a significant safety factor because C++ compilers can tack on massive |
---|
8382 | # amounts of additional arguments before passing them to the linker. |
---|
8383 | # It appears as though 1/2 is a usable value. |
---|
8384 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
---|
8385 | ;; |
---|
8386 | esac |
---|
8387 | |
---|
8388 | fi |
---|
8389 | |
---|
8390 | if test -n $lt_cv_sys_max_cmd_len ; then |
---|
8391 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
---|
8392 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
---|
8393 | else |
---|
8394 | echo "$as_me:$LINENO: result: none" >&5 |
---|
8395 | echo "${ECHO_T}none" >&6 |
---|
8396 | fi |
---|
8397 | |
---|
8398 | |
---|
8399 | |
---|
8400 | |
---|
8401 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
---|
8402 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
---|
8403 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
---|
8404 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
---|
8405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8406 | else |
---|
8407 | |
---|
8408 | # These are sane defaults that work on at least a few old systems. |
---|
8409 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
---|
8410 | |
---|
8411 | # Character class describing NM global symbol codes. |
---|
8412 | symcode='[BCDEGRST]' |
---|
8413 | |
---|
8414 | # Regexp to match symbols that can be accessed directly from C. |
---|
8415 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
---|
8416 | |
---|
8417 | # Transform an extracted symbol line into a proper C declaration |
---|
8418 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
---|
8419 | |
---|
8420 | # Transform an extracted symbol line into symbol name and symbol address |
---|
8421 | 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'" |
---|
8422 | |
---|
8423 | # Define system-specific variables. |
---|
8424 | case $host_os in |
---|
8425 | aix*) |
---|
8426 | symcode='[BCDT]' |
---|
8427 | ;; |
---|
8428 | cygwin* | mingw* | pw32*) |
---|
8429 | symcode='[ABCDGISTW]' |
---|
8430 | ;; |
---|
8431 | hpux*) # Its linker distinguishes data from code symbols |
---|
8432 | if test "$host_cpu" = ia64; then |
---|
8433 | symcode='[ABCDEGRST]' |
---|
8434 | fi |
---|
8435 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
8436 | 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'" |
---|
8437 | ;; |
---|
8438 | linux*) |
---|
8439 | if test "$host_cpu" = ia64; then |
---|
8440 | symcode='[ABCDGIRSTW]' |
---|
8441 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
8442 | 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'" |
---|
8443 | fi |
---|
8444 | ;; |
---|
8445 | irix* | nonstopux*) |
---|
8446 | symcode='[BCDEGRST]' |
---|
8447 | ;; |
---|
8448 | osf*) |
---|
8449 | symcode='[BCDEGQRST]' |
---|
8450 | ;; |
---|
8451 | solaris*) |
---|
8452 | symcode='[BDRT]' |
---|
8453 | ;; |
---|
8454 | sco3.2v5*) |
---|
8455 | symcode='[DT]' |
---|
8456 | ;; |
---|
8457 | sysv4.2uw2*) |
---|
8458 | symcode='[DT]' |
---|
8459 | ;; |
---|
8460 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
---|
8461 | symcode='[ABDT]' |
---|
8462 | ;; |
---|
8463 | sysv4) |
---|
8464 | symcode='[DFNSTU]' |
---|
8465 | ;; |
---|
8466 | esac |
---|
8467 | |
---|
8468 | # Handle CRLF in mingw tool chain |
---|
8469 | opt_cr= |
---|
8470 | case $build_os in |
---|
8471 | mingw*) |
---|
8472 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
---|
8473 | ;; |
---|
8474 | esac |
---|
8475 | |
---|
8476 | # If we're using GNU nm, then use its standard symbol codes. |
---|
8477 | case `$NM -V 2>&1` in |
---|
8478 | *GNU* | *'with BFD'*) |
---|
8479 | symcode='[ABCDGIRSTW]' ;; |
---|
8480 | esac |
---|
8481 | |
---|
8482 | # Try without a prefix undercore, then with it. |
---|
8483 | for ac_symprfx in "" "_"; do |
---|
8484 | |
---|
8485 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
---|
8486 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
---|
8487 | |
---|
8488 | # Write the raw and C identifiers. |
---|
8489 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
---|
8490 | |
---|
8491 | # Check to see that the pipe works correctly. |
---|
8492 | pipe_works=no |
---|
8493 | |
---|
8494 | rm -f conftest* |
---|
8495 | cat > conftest.$ac_ext <<EOF |
---|
8496 | #ifdef __cplusplus |
---|
8497 | extern "C" { |
---|
8498 | #endif |
---|
8499 | char nm_test_var; |
---|
8500 | void nm_test_func(){} |
---|
8501 | #ifdef __cplusplus |
---|
8502 | } |
---|
8503 | #endif |
---|
8504 | int main(){nm_test_var='a';nm_test_func();return(0);} |
---|
8505 | EOF |
---|
8506 | |
---|
8507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8508 | (eval $ac_compile) 2>&5 |
---|
8509 | ac_status=$? |
---|
8510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8511 | (exit $ac_status); }; then |
---|
8512 | # Now try to grab the symbols. |
---|
8513 | nlist=conftest.nm |
---|
8514 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
---|
8515 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
---|
8516 | ac_status=$? |
---|
8517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8518 | (exit $ac_status); } && test -s "$nlist"; then |
---|
8519 | # Try sorting and uniquifying the output. |
---|
8520 | if sort "$nlist" | uniq > "$nlist"T; then |
---|
8521 | mv -f "$nlist"T "$nlist" |
---|
8522 | else |
---|
8523 | rm -f "$nlist"T |
---|
8524 | fi |
---|
8525 | |
---|
8526 | # Make sure that we snagged all the symbols we need. |
---|
8527 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
---|
8528 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
---|
8529 | cat <<EOF > conftest.$ac_ext |
---|
8530 | #ifdef __cplusplus |
---|
8531 | extern "C" { |
---|
8532 | #endif |
---|
8533 | |
---|
8534 | EOF |
---|
8535 | # Now generate the symbol file. |
---|
8536 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
---|
8537 | |
---|
8538 | cat <<EOF >> conftest.$ac_ext |
---|
8539 | #if defined (__STDC__) && __STDC__ |
---|
8540 | # define lt_ptr_t void * |
---|
8541 | #else |
---|
8542 | # define lt_ptr_t char * |
---|
8543 | # define const |
---|
8544 | #endif |
---|
8545 | |
---|
8546 | /* The mapping between symbol names and symbols. */ |
---|
8547 | const struct { |
---|
8548 | const char *name; |
---|
8549 | lt_ptr_t address; |
---|
8550 | } |
---|
8551 | lt_preloaded_symbols[] = |
---|
8552 | { |
---|
8553 | EOF |
---|
8554 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
---|
8555 | cat <<\EOF >> conftest.$ac_ext |
---|
8556 | {0, (lt_ptr_t) 0} |
---|
8557 | }; |
---|
8558 | |
---|
8559 | #ifdef __cplusplus |
---|
8560 | } |
---|
8561 | #endif |
---|
8562 | EOF |
---|
8563 | # Now try linking the two files. |
---|
8564 | mv conftest.$ac_objext conftstm.$ac_objext |
---|
8565 | lt_save_LIBS="$LIBS" |
---|
8566 | lt_save_CFLAGS="$CFLAGS" |
---|
8567 | LIBS="conftstm.$ac_objext" |
---|
8568 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
---|
8569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8570 | (eval $ac_link) 2>&5 |
---|
8571 | ac_status=$? |
---|
8572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8573 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
---|
8574 | pipe_works=yes |
---|
8575 | fi |
---|
8576 | LIBS="$lt_save_LIBS" |
---|
8577 | CFLAGS="$lt_save_CFLAGS" |
---|
8578 | else |
---|
8579 | echo "cannot find nm_test_func in $nlist" >&5 |
---|
8580 | fi |
---|
8581 | else |
---|
8582 | echo "cannot find nm_test_var in $nlist" >&5 |
---|
8583 | fi |
---|
8584 | else |
---|
8585 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
---|
8586 | fi |
---|
8587 | else |
---|
8588 | echo "$progname: failed program was:" >&5 |
---|
8589 | cat conftest.$ac_ext >&5 |
---|
8590 | fi |
---|
8591 | rm -f conftest* conftst* |
---|
8592 | |
---|
8593 | # Do not use the global_symbol_pipe unless it works. |
---|
8594 | if test "$pipe_works" = yes; then |
---|
8595 | break |
---|
8596 | else |
---|
8597 | lt_cv_sys_global_symbol_pipe= |
---|
8598 | fi |
---|
8599 | done |
---|
8600 | |
---|
8601 | fi |
---|
8602 | |
---|
8603 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
---|
8604 | lt_cv_sys_global_symbol_to_cdecl= |
---|
8605 | fi |
---|
8606 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
---|
8607 | echo "$as_me:$LINENO: result: failed" >&5 |
---|
8608 | echo "${ECHO_T}failed" >&6 |
---|
8609 | else |
---|
8610 | echo "$as_me:$LINENO: result: ok" >&5 |
---|
8611 | echo "${ECHO_T}ok" >&6 |
---|
8612 | fi |
---|
8613 | |
---|
8614 | echo "$as_me:$LINENO: checking for objdir" >&5 |
---|
8615 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
---|
8616 | if test "${lt_cv_objdir+set}" = set; then |
---|
8617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8618 | else |
---|
8619 | rm -f .libs 2>/dev/null |
---|
8620 | mkdir .libs 2>/dev/null |
---|
8621 | if test -d .libs; then |
---|
8622 | lt_cv_objdir=.libs |
---|
8623 | else |
---|
8624 | # MS-DOS does not allow filenames that begin with a dot. |
---|
8625 | lt_cv_objdir=_libs |
---|
8626 | fi |
---|
8627 | rmdir .libs 2>/dev/null |
---|
8628 | fi |
---|
8629 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
---|
8630 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
---|
8631 | objdir=$lt_cv_objdir |
---|
8632 | |
---|
8633 | |
---|
8634 | |
---|
8635 | |
---|
8636 | |
---|
8637 | case $host_os in |
---|
8638 | aix3*) |
---|
8639 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
8640 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
8641 | # vanish in a puff of smoke. |
---|
8642 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
8643 | COLLECT_NAMES= |
---|
8644 | export COLLECT_NAMES |
---|
8645 | fi |
---|
8646 | ;; |
---|
8647 | esac |
---|
8648 | |
---|
8649 | # Sed substitution that helps us do robust quoting. It backslashifies |
---|
8650 | # metacharacters that are still active within double-quoted strings. |
---|
8651 | Xsed='sed -e 1s/^X//' |
---|
8652 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
---|
8653 | |
---|
8654 | # Same as above, but do not quote variable references. |
---|
8655 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
---|
8656 | |
---|
8657 | # Sed substitution to delay expansion of an escaped shell variable in a |
---|
8658 | # double_quote_subst'ed string. |
---|
8659 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
---|
8660 | |
---|
8661 | # Sed substitution to avoid accidental globbing in evaled expressions |
---|
8662 | no_glob_subst='s/\*/\\\*/g' |
---|
8663 | |
---|
8664 | # Constants: |
---|
8665 | rm="rm -f" |
---|
8666 | |
---|
8667 | # Global variables: |
---|
8668 | default_ofile=libtool |
---|
8669 | can_build_shared=yes |
---|
8670 | |
---|
8671 | # All known linkers require a `.a' archive for static linking (except MSVC, |
---|
8672 | # which needs '.lib'). |
---|
8673 | libext=a |
---|
8674 | ltmain="$ac_aux_dir/ltmain.sh" |
---|
8675 | ofile="$default_ofile" |
---|
8676 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
---|
8677 | |
---|
8678 | if test -n "$ac_tool_prefix"; then |
---|
8679 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
---|
8680 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
---|
8681 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
8682 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
8683 | if test "${ac_cv_prog_AR+set}" = set; then |
---|
8684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8685 | else |
---|
8686 | if test -n "$AR"; then |
---|
8687 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
8688 | else |
---|
8689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8690 | for as_dir in $PATH |
---|
8691 | do |
---|
8692 | IFS=$as_save_IFS |
---|
8693 | test -z "$as_dir" && as_dir=. |
---|
8694 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8695 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8696 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
---|
8697 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8698 | break 2 |
---|
8699 | fi |
---|
8700 | done |
---|
8701 | done |
---|
8702 | |
---|
8703 | fi |
---|
8704 | fi |
---|
8705 | AR=$ac_cv_prog_AR |
---|
8706 | if test -n "$AR"; then |
---|
8707 | echo "$as_me:$LINENO: result: $AR" >&5 |
---|
8708 | echo "${ECHO_T}$AR" >&6 |
---|
8709 | else |
---|
8710 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8711 | echo "${ECHO_T}no" >&6 |
---|
8712 | fi |
---|
8713 | |
---|
8714 | fi |
---|
8715 | if test -z "$ac_cv_prog_AR"; then |
---|
8716 | ac_ct_AR=$AR |
---|
8717 | # Extract the first word of "ar", so it can be a program name with args. |
---|
8718 | set dummy ar; ac_word=$2 |
---|
8719 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
8720 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
8721 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
---|
8722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8723 | else |
---|
8724 | if test -n "$ac_ct_AR"; then |
---|
8725 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
---|
8726 | else |
---|
8727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8728 | for as_dir in $PATH |
---|
8729 | do |
---|
8730 | IFS=$as_save_IFS |
---|
8731 | test -z "$as_dir" && as_dir=. |
---|
8732 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8733 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8734 | ac_cv_prog_ac_ct_AR="ar" |
---|
8735 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8736 | break 2 |
---|
8737 | fi |
---|
8738 | done |
---|
8739 | done |
---|
8740 | |
---|
8741 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
---|
8742 | fi |
---|
8743 | fi |
---|
8744 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
---|
8745 | if test -n "$ac_ct_AR"; then |
---|
8746 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
---|
8747 | echo "${ECHO_T}$ac_ct_AR" >&6 |
---|
8748 | else |
---|
8749 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8750 | echo "${ECHO_T}no" >&6 |
---|
8751 | fi |
---|
8752 | |
---|
8753 | AR=$ac_ct_AR |
---|
8754 | else |
---|
8755 | AR="$ac_cv_prog_AR" |
---|
8756 | fi |
---|
8757 | |
---|
8758 | if test -n "$ac_tool_prefix"; then |
---|
8759 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
8760 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
8761 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
8762 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
8763 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
8764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8765 | else |
---|
8766 | if test -n "$RANLIB"; then |
---|
8767 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
8768 | else |
---|
8769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8770 | for as_dir in $PATH |
---|
8771 | do |
---|
8772 | IFS=$as_save_IFS |
---|
8773 | test -z "$as_dir" && as_dir=. |
---|
8774 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8775 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8776 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
8777 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8778 | break 2 |
---|
8779 | fi |
---|
8780 | done |
---|
8781 | done |
---|
8782 | |
---|
8783 | fi |
---|
8784 | fi |
---|
8785 | RANLIB=$ac_cv_prog_RANLIB |
---|
8786 | if test -n "$RANLIB"; then |
---|
8787 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
8788 | echo "${ECHO_T}$RANLIB" >&6 |
---|
8789 | else |
---|
8790 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8791 | echo "${ECHO_T}no" >&6 |
---|
8792 | fi |
---|
8793 | |
---|
8794 | fi |
---|
8795 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
8796 | ac_ct_RANLIB=$RANLIB |
---|
8797 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
8798 | set dummy ranlib; ac_word=$2 |
---|
8799 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
8800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
8801 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
8802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8803 | else |
---|
8804 | if test -n "$ac_ct_RANLIB"; then |
---|
8805 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
8806 | else |
---|
8807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8808 | for as_dir in $PATH |
---|
8809 | do |
---|
8810 | IFS=$as_save_IFS |
---|
8811 | test -z "$as_dir" && as_dir=. |
---|
8812 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8813 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8814 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
8815 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8816 | break 2 |
---|
8817 | fi |
---|
8818 | done |
---|
8819 | done |
---|
8820 | |
---|
8821 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
8822 | fi |
---|
8823 | fi |
---|
8824 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
8825 | if test -n "$ac_ct_RANLIB"; then |
---|
8826 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
8827 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
8828 | else |
---|
8829 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8830 | echo "${ECHO_T}no" >&6 |
---|
8831 | fi |
---|
8832 | |
---|
8833 | RANLIB=$ac_ct_RANLIB |
---|
8834 | else |
---|
8835 | RANLIB="$ac_cv_prog_RANLIB" |
---|
8836 | fi |
---|
8837 | |
---|
8838 | if test -n "$ac_tool_prefix"; then |
---|
8839 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
8840 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
8841 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
8842 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
8843 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
8844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8845 | else |
---|
8846 | if test -n "$STRIP"; then |
---|
8847 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
8848 | else |
---|
8849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8850 | for as_dir in $PATH |
---|
8851 | do |
---|
8852 | IFS=$as_save_IFS |
---|
8853 | test -z "$as_dir" && as_dir=. |
---|
8854 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8855 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8856 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
8857 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8858 | break 2 |
---|
8859 | fi |
---|
8860 | done |
---|
8861 | done |
---|
8862 | |
---|
8863 | fi |
---|
8864 | fi |
---|
8865 | STRIP=$ac_cv_prog_STRIP |
---|
8866 | if test -n "$STRIP"; then |
---|
8867 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
8868 | echo "${ECHO_T}$STRIP" >&6 |
---|
8869 | else |
---|
8870 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8871 | echo "${ECHO_T}no" >&6 |
---|
8872 | fi |
---|
8873 | |
---|
8874 | fi |
---|
8875 | if test -z "$ac_cv_prog_STRIP"; then |
---|
8876 | ac_ct_STRIP=$STRIP |
---|
8877 | # Extract the first word of "strip", so it can be a program name with args. |
---|
8878 | set dummy strip; ac_word=$2 |
---|
8879 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
8880 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
8881 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
8882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8883 | else |
---|
8884 | if test -n "$ac_ct_STRIP"; then |
---|
8885 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
8886 | else |
---|
8887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8888 | for as_dir in $PATH |
---|
8889 | do |
---|
8890 | IFS=$as_save_IFS |
---|
8891 | test -z "$as_dir" && as_dir=. |
---|
8892 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8893 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8894 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
8895 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8896 | break 2 |
---|
8897 | fi |
---|
8898 | done |
---|
8899 | done |
---|
8900 | |
---|
8901 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
8902 | fi |
---|
8903 | fi |
---|
8904 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
8905 | if test -n "$ac_ct_STRIP"; then |
---|
8906 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
8907 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
8908 | else |
---|
8909 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8910 | echo "${ECHO_T}no" >&6 |
---|
8911 | fi |
---|
8912 | |
---|
8913 | STRIP=$ac_ct_STRIP |
---|
8914 | else |
---|
8915 | STRIP="$ac_cv_prog_STRIP" |
---|
8916 | fi |
---|
8917 | |
---|
8918 | |
---|
8919 | old_CC="$CC" |
---|
8920 | old_CFLAGS="$CFLAGS" |
---|
8921 | |
---|
8922 | # Set sane defaults for various variables |
---|
8923 | test -z "$AR" && AR=ar |
---|
8924 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
---|
8925 | test -z "$AS" && AS=as |
---|
8926 | test -z "$CC" && CC=cc |
---|
8927 | test -z "$LTCC" && LTCC=$CC |
---|
8928 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
---|
8929 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
---|
8930 | test -z "$LD" && LD=ld |
---|
8931 | test -z "$LN_S" && LN_S="ln -s" |
---|
8932 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
---|
8933 | test -z "$NM" && NM=nm |
---|
8934 | test -z "$SED" && SED=sed |
---|
8935 | test -z "$OBJDUMP" && OBJDUMP=objdump |
---|
8936 | test -z "$RANLIB" && RANLIB=: |
---|
8937 | test -z "$STRIP" && STRIP=: |
---|
8938 | test -z "$ac_objext" && ac_objext=o |
---|
8939 | |
---|
8940 | # Determine commands to create old-style static archives. |
---|
8941 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
---|
8942 | old_postinstall_cmds='chmod 644 $oldlib' |
---|
8943 | old_postuninstall_cmds= |
---|
8944 | |
---|
8945 | if test -n "$RANLIB"; then |
---|
8946 | case $host_os in |
---|
8947 | openbsd*) |
---|
8948 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
---|
8949 | ;; |
---|
8950 | *) |
---|
8951 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
---|
8952 | ;; |
---|
8953 | esac |
---|
8954 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
---|
8955 | fi |
---|
8956 | |
---|
8957 | for cc_temp in $compiler""; do |
---|
8958 | case $cc_temp in |
---|
8959 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
8960 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
8961 | \-*) ;; |
---|
8962 | *) break;; |
---|
8963 | esac |
---|
8964 | done |
---|
8965 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
8966 | |
---|
8967 | |
---|
8968 | # Only perform the check for file, if the check method requires it |
---|
8969 | case $deplibs_check_method in |
---|
8970 | file_magic*) |
---|
8971 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
---|
8972 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
---|
8973 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
---|
8974 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
8975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8976 | else |
---|
8977 | case $MAGIC_CMD in |
---|
8978 | [\\/*] | ?:[\\/]*) |
---|
8979 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
8980 | ;; |
---|
8981 | *) |
---|
8982 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
8983 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
8984 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
8985 | for ac_dir in $ac_dummy; do |
---|
8986 | IFS="$lt_save_ifs" |
---|
8987 | test -z "$ac_dir" && ac_dir=. |
---|
8988 | if test -f $ac_dir/${ac_tool_prefix}file; then |
---|
8989 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
---|
8990 | if test -n "$file_magic_test_file"; then |
---|
8991 | case $deplibs_check_method in |
---|
8992 | "file_magic "*) |
---|
8993 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
8994 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
8995 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
8996 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
8997 | : |
---|
8998 | else |
---|
8999 | cat <<EOF 1>&2 |
---|
9000 | |
---|
9001 | *** Warning: the command libtool uses to detect shared libraries, |
---|
9002 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
9003 | *** The result is that libtool may fail to recognize shared libraries |
---|
9004 | *** as such. This will affect the creation of libtool libraries that |
---|
9005 | *** depend on shared libraries, but programs linked with such libtool |
---|
9006 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
9007 | *** may want to report the problem to your system manager and/or to |
---|
9008 | *** bug-libtool@gnu.org |
---|
9009 | |
---|
9010 | EOF |
---|
9011 | fi ;; |
---|
9012 | esac |
---|
9013 | fi |
---|
9014 | break |
---|
9015 | fi |
---|
9016 | done |
---|
9017 | IFS="$lt_save_ifs" |
---|
9018 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
9019 | ;; |
---|
9020 | esac |
---|
9021 | fi |
---|
9022 | |
---|
9023 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
9024 | if test -n "$MAGIC_CMD"; then |
---|
9025 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
---|
9026 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
---|
9027 | else |
---|
9028 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9029 | echo "${ECHO_T}no" >&6 |
---|
9030 | fi |
---|
9031 | |
---|
9032 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
---|
9033 | if test -n "$ac_tool_prefix"; then |
---|
9034 | echo "$as_me:$LINENO: checking for file" >&5 |
---|
9035 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
---|
9036 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
9037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9038 | else |
---|
9039 | case $MAGIC_CMD in |
---|
9040 | [\\/*] | ?:[\\/]*) |
---|
9041 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
9042 | ;; |
---|
9043 | *) |
---|
9044 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
9045 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
9046 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
9047 | for ac_dir in $ac_dummy; do |
---|
9048 | IFS="$lt_save_ifs" |
---|
9049 | test -z "$ac_dir" && ac_dir=. |
---|
9050 | if test -f $ac_dir/file; then |
---|
9051 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
---|
9052 | if test -n "$file_magic_test_file"; then |
---|
9053 | case $deplibs_check_method in |
---|
9054 | "file_magic "*) |
---|
9055 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
9056 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
9057 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
9058 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
9059 | : |
---|
9060 | else |
---|
9061 | cat <<EOF 1>&2 |
---|
9062 | |
---|
9063 | *** Warning: the command libtool uses to detect shared libraries, |
---|
9064 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
9065 | *** The result is that libtool may fail to recognize shared libraries |
---|
9066 | *** as such. This will affect the creation of libtool libraries that |
---|
9067 | *** depend on shared libraries, but programs linked with such libtool |
---|
9068 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
9069 | *** may want to report the problem to your system manager and/or to |
---|
9070 | *** bug-libtool@gnu.org |
---|
9071 | |
---|
9072 | EOF |
---|
9073 | fi ;; |
---|
9074 | esac |
---|
9075 | fi |
---|
9076 | break |
---|
9077 | fi |
---|
9078 | done |
---|
9079 | IFS="$lt_save_ifs" |
---|
9080 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
9081 | ;; |
---|
9082 | esac |
---|
9083 | fi |
---|
9084 | |
---|
9085 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
9086 | if test -n "$MAGIC_CMD"; then |
---|
9087 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
---|
9088 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
---|
9089 | else |
---|
9090 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9091 | echo "${ECHO_T}no" >&6 |
---|
9092 | fi |
---|
9093 | |
---|
9094 | else |
---|
9095 | MAGIC_CMD=: |
---|
9096 | fi |
---|
9097 | fi |
---|
9098 | |
---|
9099 | fi |
---|
9100 | ;; |
---|
9101 | esac |
---|
9102 | |
---|
9103 | enable_dlopen=no |
---|
9104 | enable_win32_dll=no |
---|
9105 | |
---|
9106 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
9107 | if test "${enable_libtool_lock+set}" = set; then |
---|
9108 | enableval="$enable_libtool_lock" |
---|
9109 | |
---|
9110 | fi; |
---|
9111 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
9112 | |
---|
9113 | |
---|
9114 | # Check whether --with-pic or --without-pic was given. |
---|
9115 | if test "${with_pic+set}" = set; then |
---|
9116 | withval="$with_pic" |
---|
9117 | pic_mode="$withval" |
---|
9118 | else |
---|
9119 | pic_mode=default |
---|
9120 | fi; |
---|
9121 | test -z "$pic_mode" && pic_mode=default |
---|
9122 | |
---|
9123 | # Use C for the default configuration in the libtool script |
---|
9124 | tagname= |
---|
9125 | lt_save_CC="$CC" |
---|
9126 | ac_ext=c |
---|
9127 | ac_cpp='$CPP $CPPFLAGS' |
---|
9128 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
9129 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
9130 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
9131 | |
---|
9132 | |
---|
9133 | # Source file extension for C test sources. |
---|
9134 | ac_ext=c |
---|
9135 | |
---|
9136 | # Object file extension for compiled C test sources. |
---|
9137 | objext=o |
---|
9138 | objext=$objext |
---|
9139 | |
---|
9140 | # Code to be used in simple compile tests |
---|
9141 | lt_simple_compile_test_code="int some_variable = 0;\n" |
---|
9142 | |
---|
9143 | # Code to be used in simple link tests |
---|
9144 | lt_simple_link_test_code='int main(){return(0);}\n' |
---|
9145 | |
---|
9146 | |
---|
9147 | # If no C compiler was specified, use CC. |
---|
9148 | LTCC=${LTCC-"$CC"} |
---|
9149 | |
---|
9150 | # If no C compiler flags were specified, use CFLAGS. |
---|
9151 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
9152 | |
---|
9153 | # Allow CC to be a program name with arguments. |
---|
9154 | compiler=$CC |
---|
9155 | |
---|
9156 | |
---|
9157 | # save warnings/boilerplate of simple test code |
---|
9158 | ac_outfile=conftest.$ac_objext |
---|
9159 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
---|
9160 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
9161 | _lt_compiler_boilerplate=`cat conftest.err` |
---|
9162 | $rm conftest* |
---|
9163 | |
---|
9164 | ac_outfile=conftest.$ac_objext |
---|
9165 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
---|
9166 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
9167 | _lt_linker_boilerplate=`cat conftest.err` |
---|
9168 | $rm conftest* |
---|
9169 | |
---|
9170 | |
---|
9171 | ## CAVEAT EMPTOR: |
---|
9172 | ## There is no encapsulation within the following macros, do not change |
---|
9173 | ## the running order or otherwise move them around unless you know exactly |
---|
9174 | ## what you are doing... |
---|
9175 | |
---|
9176 | lt_prog_compiler_no_builtin_flag= |
---|
9177 | |
---|
9178 | if test "$GCC" = yes; then |
---|
9179 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
---|
9180 | |
---|
9181 | |
---|
9182 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
---|
9183 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
---|
9184 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
---|
9185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9186 | else |
---|
9187 | lt_cv_prog_compiler_rtti_exceptions=no |
---|
9188 | ac_outfile=conftest.$ac_objext |
---|
9189 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
9190 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
---|
9191 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
9192 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
9193 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
9194 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
9195 | # The option is referenced via a variable to avoid confusing sed. |
---|
9196 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
9197 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
9198 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
9199 | -e 's:$: $lt_compiler_flag:'` |
---|
9200 | (eval echo "\"\$as_me:9200: $lt_compile\"" >&5) |
---|
9201 | (eval "$lt_compile" 2>conftest.err) |
---|
9202 | ac_status=$? |
---|
9203 | cat conftest.err >&5 |
---|
9204 | echo "$as_me:9204: \$? = $ac_status" >&5 |
---|
9205 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
9206 | # The compiler can only warn and ignore the option if not recognized |
---|
9207 | # So say no if there are warnings other than the usual output. |
---|
9208 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
---|
9209 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
9210 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
9211 | lt_cv_prog_compiler_rtti_exceptions=yes |
---|
9212 | fi |
---|
9213 | fi |
---|
9214 | $rm conftest* |
---|
9215 | |
---|
9216 | fi |
---|
9217 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
---|
9218 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
---|
9219 | |
---|
9220 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
---|
9221 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
---|
9222 | else |
---|
9223 | : |
---|
9224 | fi |
---|
9225 | |
---|
9226 | fi |
---|
9227 | |
---|
9228 | lt_prog_compiler_wl= |
---|
9229 | lt_prog_compiler_pic= |
---|
9230 | lt_prog_compiler_static= |
---|
9231 | |
---|
9232 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
9233 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
---|
9234 | |
---|
9235 | if test "$GCC" = yes; then |
---|
9236 | lt_prog_compiler_wl='-Wl,' |
---|
9237 | lt_prog_compiler_static='-static' |
---|
9238 | |
---|
9239 | case $host_os in |
---|
9240 | aix*) |
---|
9241 | # All AIX code is PIC. |
---|
9242 | if test "$host_cpu" = ia64; then |
---|
9243 | # AIX 5 now supports IA64 processor |
---|
9244 | lt_prog_compiler_static='-Bstatic' |
---|
9245 | fi |
---|
9246 | ;; |
---|
9247 | |
---|
9248 | amigaos*) |
---|
9249 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
9250 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
9251 | # like `-m68040'. |
---|
9252 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
---|
9253 | ;; |
---|
9254 | |
---|
9255 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
9256 | # PIC is the default for these OSes. |
---|
9257 | ;; |
---|
9258 | |
---|
9259 | mingw* | pw32* | os2*) |
---|
9260 | # This hack is so that the source file can tell whether it is being |
---|
9261 | # built for inclusion in a dll (and should export symbols for example). |
---|
9262 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
9263 | ;; |
---|
9264 | |
---|
9265 | darwin* | rhapsody*) |
---|
9266 | # PIC is the default on this platform |
---|
9267 | # Common symbols not allowed in MH_DYLIB files |
---|
9268 | lt_prog_compiler_pic='-fno-common' |
---|
9269 | ;; |
---|
9270 | |
---|
9271 | interix3*) |
---|
9272 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
---|
9273 | # Instead, we relocate shared libraries at runtime. |
---|
9274 | ;; |
---|
9275 | |
---|
9276 | msdosdjgpp*) |
---|
9277 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
9278 | # on systems that don't support them. |
---|
9279 | lt_prog_compiler_can_build_shared=no |
---|
9280 | enable_shared=no |
---|
9281 | ;; |
---|
9282 | |
---|
9283 | sysv4*MP*) |
---|
9284 | if test -d /usr/nec; then |
---|
9285 | lt_prog_compiler_pic=-Kconform_pic |
---|
9286 | fi |
---|
9287 | ;; |
---|
9288 | |
---|
9289 | hpux*) |
---|
9290 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
9291 | # not for PA HP-UX. |
---|
9292 | case $host_cpu in |
---|
9293 | hppa*64*|ia64*) |
---|
9294 | # +Z the default |
---|
9295 | ;; |
---|
9296 | *) |
---|
9297 | lt_prog_compiler_pic='-fPIC' |
---|
9298 | ;; |
---|
9299 | esac |
---|
9300 | ;; |
---|
9301 | |
---|
9302 | *) |
---|
9303 | lt_prog_compiler_pic='-fPIC' |
---|
9304 | ;; |
---|
9305 | esac |
---|
9306 | else |
---|
9307 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
9308 | case $host_os in |
---|
9309 | aix*) |
---|
9310 | lt_prog_compiler_wl='-Wl,' |
---|
9311 | if test "$host_cpu" = ia64; then |
---|
9312 | # AIX 5 now supports IA64 processor |
---|
9313 | lt_prog_compiler_static='-Bstatic' |
---|
9314 | else |
---|
9315 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
---|
9316 | fi |
---|
9317 | ;; |
---|
9318 | darwin*) |
---|
9319 | # PIC is the default on this platform |
---|
9320 | # Common symbols not allowed in MH_DYLIB files |
---|
9321 | case $cc_basename in |
---|
9322 | xlc*) |
---|
9323 | lt_prog_compiler_pic='-qnocommon' |
---|
9324 | lt_prog_compiler_wl='-Wl,' |
---|
9325 | ;; |
---|
9326 | esac |
---|
9327 | ;; |
---|
9328 | |
---|
9329 | mingw* | pw32* | os2*) |
---|
9330 | # This hack is so that the source file can tell whether it is being |
---|
9331 | # built for inclusion in a dll (and should export symbols for example). |
---|
9332 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
9333 | ;; |
---|
9334 | |
---|
9335 | hpux9* | hpux10* | hpux11*) |
---|
9336 | lt_prog_compiler_wl='-Wl,' |
---|
9337 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
9338 | # not for PA HP-UX. |
---|
9339 | case $host_cpu in |
---|
9340 | hppa*64*|ia64*) |
---|
9341 | # +Z the default |
---|
9342 | ;; |
---|
9343 | *) |
---|
9344 | lt_prog_compiler_pic='+Z' |
---|
9345 | ;; |
---|
9346 | esac |
---|
9347 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
9348 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
---|
9349 | ;; |
---|
9350 | |
---|
9351 | irix5* | irix6* | nonstopux*) |
---|
9352 | lt_prog_compiler_wl='-Wl,' |
---|
9353 | # PIC (with -KPIC) is the default. |
---|
9354 | lt_prog_compiler_static='-non_shared' |
---|
9355 | ;; |
---|
9356 | |
---|
9357 | newsos6) |
---|
9358 | lt_prog_compiler_pic='-KPIC' |
---|
9359 | lt_prog_compiler_static='-Bstatic' |
---|
9360 | ;; |
---|
9361 | |
---|
9362 | linux*) |
---|
9363 | case $cc_basename in |
---|
9364 | icc* | ecc*) |
---|
9365 | lt_prog_compiler_wl='-Wl,' |
---|
9366 | lt_prog_compiler_pic='-KPIC' |
---|
9367 | lt_prog_compiler_static='-static' |
---|
9368 | ;; |
---|
9369 | pgcc* | pgf77* | pgf90* | pgf95*) |
---|
9370 | # Portland Group compilers (*not* the Pentium gcc compiler, |
---|
9371 | # which looks to be a dead project) |
---|
9372 | lt_prog_compiler_wl='-Wl,' |
---|
9373 | lt_prog_compiler_pic='-fpic' |
---|
9374 | lt_prog_compiler_static='-Bstatic' |
---|
9375 | ;; |
---|
9376 | ccc*) |
---|
9377 | lt_prog_compiler_wl='-Wl,' |
---|
9378 | # All Alpha code is PIC. |
---|
9379 | lt_prog_compiler_static='-non_shared' |
---|
9380 | ;; |
---|
9381 | esac |
---|
9382 | ;; |
---|
9383 | |
---|
9384 | osf3* | osf4* | osf5*) |
---|
9385 | lt_prog_compiler_wl='-Wl,' |
---|
9386 | # All OSF/1 code is PIC. |
---|
9387 | lt_prog_compiler_static='-non_shared' |
---|
9388 | ;; |
---|
9389 | |
---|
9390 | solaris*) |
---|
9391 | lt_prog_compiler_pic='-KPIC' |
---|
9392 | lt_prog_compiler_static='-Bstatic' |
---|
9393 | case $cc_basename in |
---|
9394 | f77* | f90* | f95*) |
---|
9395 | lt_prog_compiler_wl='-Qoption ld ';; |
---|
9396 | *) |
---|
9397 | lt_prog_compiler_wl='-Wl,';; |
---|
9398 | esac |
---|
9399 | ;; |
---|
9400 | |
---|
9401 | sunos4*) |
---|
9402 | lt_prog_compiler_wl='-Qoption ld ' |
---|
9403 | lt_prog_compiler_pic='-PIC' |
---|
9404 | lt_prog_compiler_static='-Bstatic' |
---|
9405 | ;; |
---|
9406 | |
---|
9407 | sysv4 | sysv4.2uw2* | sysv4.3*) |
---|
9408 | lt_prog_compiler_wl='-Wl,' |
---|
9409 | lt_prog_compiler_pic='-KPIC' |
---|
9410 | lt_prog_compiler_static='-Bstatic' |
---|
9411 | ;; |
---|
9412 | |
---|
9413 | sysv4*MP*) |
---|
9414 | if test -d /usr/nec ;then |
---|
9415 | lt_prog_compiler_pic='-Kconform_pic' |
---|
9416 | lt_prog_compiler_static='-Bstatic' |
---|
9417 | fi |
---|
9418 | ;; |
---|
9419 | |
---|
9420 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
---|
9421 | lt_prog_compiler_wl='-Wl,' |
---|
9422 | lt_prog_compiler_pic='-KPIC' |
---|
9423 | lt_prog_compiler_static='-Bstatic' |
---|
9424 | ;; |
---|
9425 | |
---|
9426 | unicos*) |
---|
9427 | lt_prog_compiler_wl='-Wl,' |
---|
9428 | lt_prog_compiler_can_build_shared=no |
---|
9429 | ;; |
---|
9430 | |
---|
9431 | uts4*) |
---|
9432 | lt_prog_compiler_pic='-pic' |
---|
9433 | lt_prog_compiler_static='-Bstatic' |
---|
9434 | ;; |
---|
9435 | |
---|
9436 | *) |
---|
9437 | lt_prog_compiler_can_build_shared=no |
---|
9438 | ;; |
---|
9439 | esac |
---|
9440 | fi |
---|
9441 | |
---|
9442 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
---|
9443 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
---|
9444 | |
---|
9445 | # |
---|
9446 | # Check to make sure the PIC flag actually works. |
---|
9447 | # |
---|
9448 | if test -n "$lt_prog_compiler_pic"; then |
---|
9449 | |
---|
9450 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
---|
9451 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
---|
9452 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
---|
9453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9454 | else |
---|
9455 | lt_prog_compiler_pic_works=no |
---|
9456 | ac_outfile=conftest.$ac_objext |
---|
9457 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
9458 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
---|
9459 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
9460 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
9461 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
9462 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
9463 | # The option is referenced via a variable to avoid confusing sed. |
---|
9464 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
9465 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
9466 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
9467 | -e 's:$: $lt_compiler_flag:'` |
---|
9468 | (eval echo "\"\$as_me:9468: $lt_compile\"" >&5) |
---|
9469 | (eval "$lt_compile" 2>conftest.err) |
---|
9470 | ac_status=$? |
---|
9471 | cat conftest.err >&5 |
---|
9472 | echo "$as_me:9472: \$? = $ac_status" >&5 |
---|
9473 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
9474 | # The compiler can only warn and ignore the option if not recognized |
---|
9475 | # So say no if there are warnings other than the usual output. |
---|
9476 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
---|
9477 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
9478 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
9479 | lt_prog_compiler_pic_works=yes |
---|
9480 | fi |
---|
9481 | fi |
---|
9482 | $rm conftest* |
---|
9483 | |
---|
9484 | fi |
---|
9485 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
---|
9486 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
---|
9487 | |
---|
9488 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
---|
9489 | case $lt_prog_compiler_pic in |
---|
9490 | "" | " "*) ;; |
---|
9491 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
---|
9492 | esac |
---|
9493 | else |
---|
9494 | lt_prog_compiler_pic= |
---|
9495 | lt_prog_compiler_can_build_shared=no |
---|
9496 | fi |
---|
9497 | |
---|
9498 | fi |
---|
9499 | case $host_os in |
---|
9500 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
9501 | *djgpp*) |
---|
9502 | lt_prog_compiler_pic= |
---|
9503 | ;; |
---|
9504 | *) |
---|
9505 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
---|
9506 | ;; |
---|
9507 | esac |
---|
9508 | |
---|
9509 | # |
---|
9510 | # Check to make sure the static flag actually works. |
---|
9511 | # |
---|
9512 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
---|
9513 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
---|
9514 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
---|
9515 | if test "${lt_prog_compiler_static_works+set}" = set; then |
---|
9516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9517 | else |
---|
9518 | lt_prog_compiler_static_works=no |
---|
9519 | save_LDFLAGS="$LDFLAGS" |
---|
9520 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
---|
9521 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
---|
9522 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
---|
9523 | # The linker can only warn and ignore the option if not recognized |
---|
9524 | # So say no if there are warnings |
---|
9525 | if test -s conftest.err; then |
---|
9526 | # Append any errors to the config.log. |
---|
9527 | cat conftest.err 1>&5 |
---|
9528 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
---|
9529 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
9530 | if diff conftest.exp conftest.er2 >/dev/null; then |
---|
9531 | lt_prog_compiler_static_works=yes |
---|
9532 | fi |
---|
9533 | else |
---|
9534 | lt_prog_compiler_static_works=yes |
---|
9535 | fi |
---|
9536 | fi |
---|
9537 | $rm conftest* |
---|
9538 | LDFLAGS="$save_LDFLAGS" |
---|
9539 | |
---|
9540 | fi |
---|
9541 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
---|
9542 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
---|
9543 | |
---|
9544 | if test x"$lt_prog_compiler_static_works" = xyes; then |
---|
9545 | : |
---|
9546 | else |
---|
9547 | lt_prog_compiler_static= |
---|
9548 | fi |
---|
9549 | |
---|
9550 | |
---|
9551 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
9552 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
---|
9553 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
---|
9554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9555 | else |
---|
9556 | lt_cv_prog_compiler_c_o=no |
---|
9557 | $rm -r conftest 2>/dev/null |
---|
9558 | mkdir conftest |
---|
9559 | cd conftest |
---|
9560 | mkdir out |
---|
9561 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
9562 | |
---|
9563 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
9564 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
9565 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
9566 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
9567 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
9568 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
9569 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
9570 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
9571 | -e 's:$: $lt_compiler_flag:'` |
---|
9572 | (eval echo "\"\$as_me:9572: $lt_compile\"" >&5) |
---|
9573 | (eval "$lt_compile" 2>out/conftest.err) |
---|
9574 | ac_status=$? |
---|
9575 | cat out/conftest.err >&5 |
---|
9576 | echo "$as_me:9576: \$? = $ac_status" >&5 |
---|
9577 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
9578 | then |
---|
9579 | # The compiler can only warn and ignore the option if not recognized |
---|
9580 | # So say no if there are warnings |
---|
9581 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
---|
9582 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
---|
9583 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
9584 | lt_cv_prog_compiler_c_o=yes |
---|
9585 | fi |
---|
9586 | fi |
---|
9587 | chmod u+w . 2>&5 |
---|
9588 | $rm conftest* |
---|
9589 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
9590 | # template instantiation |
---|
9591 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
9592 | $rm out/* && rmdir out |
---|
9593 | cd .. |
---|
9594 | rmdir conftest |
---|
9595 | $rm conftest* |
---|
9596 | |
---|
9597 | fi |
---|
9598 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
---|
9599 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
---|
9600 | |
---|
9601 | |
---|
9602 | hard_links="nottested" |
---|
9603 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
---|
9604 | # do not overwrite the value of need_locks provided by the user |
---|
9605 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
9606 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
---|
9607 | hard_links=yes |
---|
9608 | $rm conftest* |
---|
9609 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
9610 | touch conftest.a |
---|
9611 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
9612 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
9613 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
9614 | echo "${ECHO_T}$hard_links" >&6 |
---|
9615 | if test "$hard_links" = no; then |
---|
9616 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
9617 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
9618 | need_locks=warn |
---|
9619 | fi |
---|
9620 | else |
---|
9621 | need_locks=no |
---|
9622 | fi |
---|
9623 | |
---|
9624 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
9625 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
---|
9626 | |
---|
9627 | runpath_var= |
---|
9628 | allow_undefined_flag= |
---|
9629 | enable_shared_with_static_runtimes=no |
---|
9630 | archive_cmds= |
---|
9631 | archive_expsym_cmds= |
---|
9632 | old_archive_From_new_cmds= |
---|
9633 | old_archive_from_expsyms_cmds= |
---|
9634 | export_dynamic_flag_spec= |
---|
9635 | whole_archive_flag_spec= |
---|
9636 | thread_safe_flag_spec= |
---|
9637 | hardcode_libdir_flag_spec= |
---|
9638 | hardcode_libdir_flag_spec_ld= |
---|
9639 | hardcode_libdir_separator= |
---|
9640 | hardcode_direct=no |
---|
9641 | hardcode_minus_L=no |
---|
9642 | hardcode_shlibpath_var=unsupported |
---|
9643 | link_all_deplibs=unknown |
---|
9644 | hardcode_automatic=no |
---|
9645 | module_cmds= |
---|
9646 | module_expsym_cmds= |
---|
9647 | always_export_symbols=no |
---|
9648 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
9649 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
9650 | # included in the symbol list |
---|
9651 | include_expsyms= |
---|
9652 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
9653 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
9654 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
9655 | # as well as any symbol that contains `d'. |
---|
9656 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
---|
9657 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
9658 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
9659 | # the symbol is explicitly referenced. Since portable code cannot |
---|
9660 | # rely on this symbol name, it's probably fine to never include it in |
---|
9661 | # preloaded symbol tables. |
---|
9662 | extract_expsyms_cmds= |
---|
9663 | # Just being paranoid about ensuring that cc_basename is set. |
---|
9664 | for cc_temp in $compiler""; do |
---|
9665 | case $cc_temp in |
---|
9666 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
9667 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
9668 | \-*) ;; |
---|
9669 | *) break;; |
---|
9670 | esac |
---|
9671 | done |
---|
9672 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
9673 | |
---|
9674 | case $host_os in |
---|
9675 | cygwin* | mingw* | pw32*) |
---|
9676 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
9677 | # When not using gcc, we currently assume that we are using |
---|
9678 | # Microsoft Visual C++. |
---|
9679 | if test "$GCC" != yes; then |
---|
9680 | with_gnu_ld=no |
---|
9681 | fi |
---|
9682 | ;; |
---|
9683 | interix*) |
---|
9684 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
---|
9685 | with_gnu_ld=yes |
---|
9686 | ;; |
---|
9687 | openbsd*) |
---|
9688 | with_gnu_ld=no |
---|
9689 | ;; |
---|
9690 | esac |
---|
9691 | |
---|
9692 | ld_shlibs=yes |
---|
9693 | if test "$with_gnu_ld" = yes; then |
---|
9694 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
9695 | wlarc='${wl}' |
---|
9696 | |
---|
9697 | # Set some defaults for GNU ld with shared library support. These |
---|
9698 | # are reset later if shared libraries are not supported. Putting them |
---|
9699 | # here allows them to be overridden if necessary. |
---|
9700 | runpath_var=LD_RUN_PATH |
---|
9701 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
---|
9702 | export_dynamic_flag_spec='${wl}--export-dynamic' |
---|
9703 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
9704 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
---|
9705 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
9706 | else |
---|
9707 | whole_archive_flag_spec= |
---|
9708 | fi |
---|
9709 | supports_anon_versioning=no |
---|
9710 | case `$LD -v 2>/dev/null` in |
---|
9711 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
9712 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
9713 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
9714 | *\ 2.11.*) ;; # other 2.11 versions |
---|
9715 | *) supports_anon_versioning=yes ;; |
---|
9716 | esac |
---|
9717 | |
---|
9718 | # See if GNU ld supports shared libraries. |
---|
9719 | case $host_os in |
---|
9720 | aix3* | aix4* | aix5*) |
---|
9721 | # On AIX/PPC, the GNU linker is very broken |
---|
9722 | if test "$host_cpu" != ia64; then |
---|
9723 | ld_shlibs=no |
---|
9724 | cat <<EOF 1>&2 |
---|
9725 | |
---|
9726 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
9727 | *** to be unable to reliably create shared libraries on AIX. |
---|
9728 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
9729 | *** really care for shared libraries, you may want to modify your PATH |
---|
9730 | *** so that a non-GNU linker is found, and then restart. |
---|
9731 | |
---|
9732 | EOF |
---|
9733 | fi |
---|
9734 | ;; |
---|
9735 | |
---|
9736 | amigaos*) |
---|
9737 | 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)' |
---|
9738 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9739 | hardcode_minus_L=yes |
---|
9740 | |
---|
9741 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
9742 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
9743 | # to version 4, is to share data among multiple programs linked |
---|
9744 | # with the same dynamic library. Since this doesn't match the |
---|
9745 | # behavior of shared libraries on other platforms, we can't use |
---|
9746 | # them. |
---|
9747 | ld_shlibs=no |
---|
9748 | ;; |
---|
9749 | |
---|
9750 | beos*) |
---|
9751 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
9752 | allow_undefined_flag=unsupported |
---|
9753 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
9754 | # support --undefined. This deserves some investigation. FIXME |
---|
9755 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
9756 | else |
---|
9757 | ld_shlibs=no |
---|
9758 | fi |
---|
9759 | ;; |
---|
9760 | |
---|
9761 | cygwin* | mingw* | pw32*) |
---|
9762 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
---|
9763 | # as there is no search path for DLLs. |
---|
9764 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9765 | allow_undefined_flag=unsupported |
---|
9766 | always_export_symbols=no |
---|
9767 | enable_shared_with_static_runtimes=yes |
---|
9768 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
---|
9769 | |
---|
9770 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
9771 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
9772 | # If the export-symbols file already is a .def file (1st line |
---|
9773 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
9774 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
9775 | cp $export_symbols $output_objdir/$soname.def; |
---|
9776 | else |
---|
9777 | echo EXPORTS > $output_objdir/$soname.def; |
---|
9778 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
9779 | fi~ |
---|
9780 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
9781 | else |
---|
9782 | ld_shlibs=no |
---|
9783 | fi |
---|
9784 | ;; |
---|
9785 | |
---|
9786 | interix3*) |
---|
9787 | hardcode_direct=no |
---|
9788 | hardcode_shlibpath_var=no |
---|
9789 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
9790 | export_dynamic_flag_spec='${wl}-E' |
---|
9791 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
---|
9792 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
---|
9793 | # default) and relocated if they conflict, which is a slow very memory |
---|
9794 | # consuming and fragmenting process. To avoid this, we pick a random, |
---|
9795 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
---|
9796 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
---|
9797 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
---|
9798 | 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' |
---|
9799 | ;; |
---|
9800 | |
---|
9801 | linux*) |
---|
9802 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
9803 | tmp_addflag= |
---|
9804 | case $cc_basename,$host_cpu in |
---|
9805 | pgcc*) # Portland Group C compiler |
---|
9806 | 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' |
---|
9807 | tmp_addflag=' $pic_flag' |
---|
9808 | ;; |
---|
9809 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
---|
9810 | 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' |
---|
9811 | tmp_addflag=' $pic_flag -Mnomain' ;; |
---|
9812 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
---|
9813 | tmp_addflag=' -i_dynamic' ;; |
---|
9814 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
---|
9815 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
---|
9816 | ifc* | ifort*) # Intel Fortran compiler |
---|
9817 | tmp_addflag=' -nofor_main' ;; |
---|
9818 | esac |
---|
9819 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
9820 | |
---|
9821 | if test $supports_anon_versioning = yes; then |
---|
9822 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
---|
9823 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
9824 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
9825 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
9826 | fi |
---|
9827 | else |
---|
9828 | ld_shlibs=no |
---|
9829 | fi |
---|
9830 | ;; |
---|
9831 | |
---|
9832 | netbsd*) |
---|
9833 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
9834 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
9835 | wlarc= |
---|
9836 | else |
---|
9837 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
9838 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
9839 | fi |
---|
9840 | ;; |
---|
9841 | |
---|
9842 | solaris*) |
---|
9843 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
---|
9844 | ld_shlibs=no |
---|
9845 | cat <<EOF 1>&2 |
---|
9846 | |
---|
9847 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
9848 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
9849 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
9850 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
9851 | *** your PATH or compiler configuration so that the native linker is |
---|
9852 | *** used, and then restart. |
---|
9853 | |
---|
9854 | EOF |
---|
9855 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
9856 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
9857 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
9858 | else |
---|
9859 | ld_shlibs=no |
---|
9860 | fi |
---|
9861 | ;; |
---|
9862 | |
---|
9863 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
---|
9864 | case `$LD -v 2>&1` in |
---|
9865 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
---|
9866 | ld_shlibs=no |
---|
9867 | cat <<_LT_EOF 1>&2 |
---|
9868 | |
---|
9869 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
---|
9870 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
---|
9871 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
9872 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
---|
9873 | *** your PATH or compiler configuration so that the native linker is |
---|
9874 | *** used, and then restart. |
---|
9875 | |
---|
9876 | _LT_EOF |
---|
9877 | ;; |
---|
9878 | *) |
---|
9879 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
9880 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
---|
9881 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
---|
9882 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
---|
9883 | else |
---|
9884 | ld_shlibs=no |
---|
9885 | fi |
---|
9886 | ;; |
---|
9887 | esac |
---|
9888 | ;; |
---|
9889 | |
---|
9890 | sunos4*) |
---|
9891 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
9892 | wlarc= |
---|
9893 | hardcode_direct=yes |
---|
9894 | hardcode_shlibpath_var=no |
---|
9895 | ;; |
---|
9896 | |
---|
9897 | *) |
---|
9898 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
9899 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
9900 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
9901 | else |
---|
9902 | ld_shlibs=no |
---|
9903 | fi |
---|
9904 | ;; |
---|
9905 | esac |
---|
9906 | |
---|
9907 | if test "$ld_shlibs" = no; then |
---|
9908 | runpath_var= |
---|
9909 | hardcode_libdir_flag_spec= |
---|
9910 | export_dynamic_flag_spec= |
---|
9911 | whole_archive_flag_spec= |
---|
9912 | fi |
---|
9913 | else |
---|
9914 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
9915 | case $host_os in |
---|
9916 | aix3*) |
---|
9917 | allow_undefined_flag=unsupported |
---|
9918 | always_export_symbols=yes |
---|
9919 | 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' |
---|
9920 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
9921 | # are no directories specified by -L. |
---|
9922 | hardcode_minus_L=yes |
---|
9923 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
---|
9924 | # Neither direct hardcoding nor static linking is supported with a |
---|
9925 | # broken collect2. |
---|
9926 | hardcode_direct=unsupported |
---|
9927 | fi |
---|
9928 | ;; |
---|
9929 | |
---|
9930 | aix4* | aix5*) |
---|
9931 | if test "$host_cpu" = ia64; then |
---|
9932 | # On IA64, the linker does run time linking by default, so we don't |
---|
9933 | # have to do anything special. |
---|
9934 | aix_use_runtimelinking=no |
---|
9935 | exp_sym_flag='-Bexport' |
---|
9936 | no_entry_flag="" |
---|
9937 | else |
---|
9938 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
9939 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
9940 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
9941 | 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' |
---|
9942 | else |
---|
9943 | 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' |
---|
9944 | fi |
---|
9945 | aix_use_runtimelinking=no |
---|
9946 | |
---|
9947 | # Test if we are trying to use run time linking or normal |
---|
9948 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
9949 | # need to do runtime linking. |
---|
9950 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
9951 | for ld_flag in $LDFLAGS; do |
---|
9952 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
9953 | aix_use_runtimelinking=yes |
---|
9954 | break |
---|
9955 | fi |
---|
9956 | done |
---|
9957 | ;; |
---|
9958 | esac |
---|
9959 | |
---|
9960 | exp_sym_flag='-bexport' |
---|
9961 | no_entry_flag='-bnoentry' |
---|
9962 | fi |
---|
9963 | |
---|
9964 | # When large executables or shared objects are built, AIX ld can |
---|
9965 | # have problems creating the table of contents. If linking a library |
---|
9966 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
9967 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
9968 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
9969 | |
---|
9970 | archive_cmds='' |
---|
9971 | hardcode_direct=yes |
---|
9972 | hardcode_libdir_separator=':' |
---|
9973 | link_all_deplibs=yes |
---|
9974 | |
---|
9975 | if test "$GCC" = yes; then |
---|
9976 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
9977 | # We only want to do this on AIX 4.2 and lower, the check |
---|
9978 | # below for broken collect2 doesn't work under 4.3+ |
---|
9979 | collect2name=`${CC} -print-prog-name=collect2` |
---|
9980 | if test -f "$collect2name" && \ |
---|
9981 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
9982 | then |
---|
9983 | # We have reworked collect2 |
---|
9984 | hardcode_direct=yes |
---|
9985 | else |
---|
9986 | # We have old collect2 |
---|
9987 | hardcode_direct=unsupported |
---|
9988 | # It fails to find uninstalled libraries when the uninstalled |
---|
9989 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
9990 | # to unsupported forces relinking |
---|
9991 | hardcode_minus_L=yes |
---|
9992 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9993 | hardcode_libdir_separator= |
---|
9994 | fi |
---|
9995 | ;; |
---|
9996 | esac |
---|
9997 | shared_flag='-shared' |
---|
9998 | if test "$aix_use_runtimelinking" = yes; then |
---|
9999 | shared_flag="$shared_flag "'${wl}-G' |
---|
10000 | fi |
---|
10001 | else |
---|
10002 | # not using gcc |
---|
10003 | if test "$host_cpu" = ia64; then |
---|
10004 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
10005 | # chokes on -Wl,-G. The following line is correct: |
---|
10006 | shared_flag='-G' |
---|
10007 | else |
---|
10008 | if test "$aix_use_runtimelinking" = yes; then |
---|
10009 | shared_flag='${wl}-G' |
---|
10010 | else |
---|
10011 | shared_flag='${wl}-bM:SRE' |
---|
10012 | fi |
---|
10013 | fi |
---|
10014 | fi |
---|
10015 | |
---|
10016 | # It seems that -bexpall does not export symbols beginning with |
---|
10017 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
10018 | always_export_symbols=yes |
---|
10019 | if test "$aix_use_runtimelinking" = yes; then |
---|
10020 | # Warning - without using the other runtime loading flags (-brtl), |
---|
10021 | # -berok will link without error, but may produce a broken library. |
---|
10022 | allow_undefined_flag='-berok' |
---|
10023 | # Determine the default libpath from the value encoded in an empty executable. |
---|
10024 | cat >conftest.$ac_ext <<_ACEOF |
---|
10025 | /* confdefs.h. */ |
---|
10026 | _ACEOF |
---|
10027 | cat confdefs.h >>conftest.$ac_ext |
---|
10028 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10029 | /* end confdefs.h. */ |
---|
10030 | |
---|
10031 | #ifdef F77_DUMMY_MAIN |
---|
10032 | |
---|
10033 | # ifdef __cplusplus |
---|
10034 | extern "C" |
---|
10035 | # endif |
---|
10036 | int F77_DUMMY_MAIN() { return 1; } |
---|
10037 | |
---|
10038 | #endif |
---|
10039 | int |
---|
10040 | main () |
---|
10041 | { |
---|
10042 | |
---|
10043 | ; |
---|
10044 | return 0; |
---|
10045 | } |
---|
10046 | _ACEOF |
---|
10047 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10049 | (eval $ac_link) 2>conftest.er1 |
---|
10050 | ac_status=$? |
---|
10051 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10052 | rm -f conftest.er1 |
---|
10053 | cat conftest.err >&5 |
---|
10054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10055 | (exit $ac_status); } && |
---|
10056 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10057 | || test ! -s conftest.err' |
---|
10058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10059 | (eval $ac_try) 2>&5 |
---|
10060 | ac_status=$? |
---|
10061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10062 | (exit $ac_status); }; } && |
---|
10063 | { ac_try='test -s conftest$ac_exeext' |
---|
10064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10065 | (eval $ac_try) 2>&5 |
---|
10066 | ac_status=$? |
---|
10067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10068 | (exit $ac_status); }; }; then |
---|
10069 | |
---|
10070 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
10071 | }'` |
---|
10072 | # Check for a 64-bit object if we didn't find anything. |
---|
10073 | 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; } |
---|
10074 | }'`; fi |
---|
10075 | else |
---|
10076 | echo "$as_me: failed program was:" >&5 |
---|
10077 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10078 | |
---|
10079 | fi |
---|
10080 | rm -f conftest.err conftest.$ac_objext \ |
---|
10081 | conftest$ac_exeext conftest.$ac_ext |
---|
10082 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
10083 | |
---|
10084 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
10085 | 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" |
---|
10086 | else |
---|
10087 | if test "$host_cpu" = ia64; then |
---|
10088 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
---|
10089 | allow_undefined_flag="-z nodefs" |
---|
10090 | 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" |
---|
10091 | else |
---|
10092 | # Determine the default libpath from the value encoded in an empty executable. |
---|
10093 | cat >conftest.$ac_ext <<_ACEOF |
---|
10094 | /* confdefs.h. */ |
---|
10095 | _ACEOF |
---|
10096 | cat confdefs.h >>conftest.$ac_ext |
---|
10097 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10098 | /* end confdefs.h. */ |
---|
10099 | |
---|
10100 | #ifdef F77_DUMMY_MAIN |
---|
10101 | |
---|
10102 | # ifdef __cplusplus |
---|
10103 | extern "C" |
---|
10104 | # endif |
---|
10105 | int F77_DUMMY_MAIN() { return 1; } |
---|
10106 | |
---|
10107 | #endif |
---|
10108 | int |
---|
10109 | main () |
---|
10110 | { |
---|
10111 | |
---|
10112 | ; |
---|
10113 | return 0; |
---|
10114 | } |
---|
10115 | _ACEOF |
---|
10116 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10117 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10118 | (eval $ac_link) 2>conftest.er1 |
---|
10119 | ac_status=$? |
---|
10120 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10121 | rm -f conftest.er1 |
---|
10122 | cat conftest.err >&5 |
---|
10123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10124 | (exit $ac_status); } && |
---|
10125 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10126 | || test ! -s conftest.err' |
---|
10127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10128 | (eval $ac_try) 2>&5 |
---|
10129 | ac_status=$? |
---|
10130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10131 | (exit $ac_status); }; } && |
---|
10132 | { ac_try='test -s conftest$ac_exeext' |
---|
10133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10134 | (eval $ac_try) 2>&5 |
---|
10135 | ac_status=$? |
---|
10136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10137 | (exit $ac_status); }; }; then |
---|
10138 | |
---|
10139 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
10140 | }'` |
---|
10141 | # Check for a 64-bit object if we didn't find anything. |
---|
10142 | 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; } |
---|
10143 | }'`; fi |
---|
10144 | else |
---|
10145 | echo "$as_me: failed program was:" >&5 |
---|
10146 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10147 | |
---|
10148 | fi |
---|
10149 | rm -f conftest.err conftest.$ac_objext \ |
---|
10150 | conftest$ac_exeext conftest.$ac_ext |
---|
10151 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
10152 | |
---|
10153 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
10154 | # Warning - without using the other run time loading flags, |
---|
10155 | # -berok will link without error, but may produce a broken library. |
---|
10156 | no_undefined_flag=' ${wl}-bernotok' |
---|
10157 | allow_undefined_flag=' ${wl}-berok' |
---|
10158 | # Exported symbols can be pulled into shared objects from archives |
---|
10159 | whole_archive_flag_spec='$convenience' |
---|
10160 | archive_cmds_need_lc=yes |
---|
10161 | # This is similar to how AIX traditionally builds its shared libraries. |
---|
10162 | 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' |
---|
10163 | fi |
---|
10164 | fi |
---|
10165 | ;; |
---|
10166 | |
---|
10167 | amigaos*) |
---|
10168 | 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)' |
---|
10169 | hardcode_libdir_flag_spec='-L$libdir' |
---|
10170 | hardcode_minus_L=yes |
---|
10171 | # see comment about different semantics on the GNU ld section |
---|
10172 | ld_shlibs=no |
---|
10173 | ;; |
---|
10174 | |
---|
10175 | bsdi[45]*) |
---|
10176 | export_dynamic_flag_spec=-rdynamic |
---|
10177 | ;; |
---|
10178 | |
---|
10179 | cygwin* | mingw* | pw32*) |
---|
10180 | # When not using gcc, we currently assume that we are using |
---|
10181 | # Microsoft Visual C++. |
---|
10182 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
10183 | # no search path for DLLs. |
---|
10184 | hardcode_libdir_flag_spec=' ' |
---|
10185 | allow_undefined_flag=unsupported |
---|
10186 | # Tell ltmain to make .lib files, not .a files. |
---|
10187 | libext=lib |
---|
10188 | # Tell ltmain to make .dll files, not .so files. |
---|
10189 | shrext_cmds=".dll" |
---|
10190 | # FIXME: Setting linknames here is a bad hack. |
---|
10191 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
10192 | # The linker will automatically build a .lib file if we build a DLL. |
---|
10193 | old_archive_From_new_cmds='true' |
---|
10194 | # FIXME: Should let the user specify the lib program. |
---|
10195 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
---|
10196 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
---|
10197 | enable_shared_with_static_runtimes=yes |
---|
10198 | ;; |
---|
10199 | |
---|
10200 | darwin* | rhapsody*) |
---|
10201 | case $host_os in |
---|
10202 | rhapsody* | darwin1.[012]) |
---|
10203 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
---|
10204 | ;; |
---|
10205 | *) # Darwin 1.3 on |
---|
10206 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
10207 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
10208 | else |
---|
10209 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
10210 | 10.[012]) |
---|
10211 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
10212 | ;; |
---|
10213 | 10.*) |
---|
10214 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
---|
10215 | ;; |
---|
10216 | esac |
---|
10217 | fi |
---|
10218 | ;; |
---|
10219 | esac |
---|
10220 | archive_cmds_need_lc=no |
---|
10221 | hardcode_direct=no |
---|
10222 | hardcode_automatic=yes |
---|
10223 | hardcode_shlibpath_var=unsupported |
---|
10224 | whole_archive_flag_spec='' |
---|
10225 | link_all_deplibs=yes |
---|
10226 | if test "$GCC" = yes ; then |
---|
10227 | output_verbose_link_cmd='echo' |
---|
10228 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
10229 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
10230 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
10231 | 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}' |
---|
10232 | 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}' |
---|
10233 | else |
---|
10234 | case $cc_basename in |
---|
10235 | xlc*) |
---|
10236 | output_verbose_link_cmd='echo' |
---|
10237 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
---|
10238 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
10239 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
10240 | 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}' |
---|
10241 | 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}' |
---|
10242 | ;; |
---|
10243 | *) |
---|
10244 | ld_shlibs=no |
---|
10245 | ;; |
---|
10246 | esac |
---|
10247 | fi |
---|
10248 | ;; |
---|
10249 | |
---|
10250 | dgux*) |
---|
10251 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
10252 | hardcode_libdir_flag_spec='-L$libdir' |
---|
10253 | hardcode_shlibpath_var=no |
---|
10254 | ;; |
---|
10255 | |
---|
10256 | freebsd1*) |
---|
10257 | ld_shlibs=no |
---|
10258 | ;; |
---|
10259 | |
---|
10260 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
10261 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
10262 | # does not break anything, and helps significantly (at the cost of a little |
---|
10263 | # extra space). |
---|
10264 | freebsd2.2*) |
---|
10265 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
10266 | hardcode_libdir_flag_spec='-R$libdir' |
---|
10267 | hardcode_direct=yes |
---|
10268 | hardcode_shlibpath_var=no |
---|
10269 | ;; |
---|
10270 | |
---|
10271 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
10272 | freebsd2*) |
---|
10273 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
10274 | hardcode_direct=yes |
---|
10275 | hardcode_minus_L=yes |
---|
10276 | hardcode_shlibpath_var=no |
---|
10277 | ;; |
---|
10278 | |
---|
10279 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
10280 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
10281 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
10282 | hardcode_libdir_flag_spec='-R$libdir' |
---|
10283 | hardcode_direct=yes |
---|
10284 | hardcode_shlibpath_var=no |
---|
10285 | ;; |
---|
10286 | |
---|
10287 | hpux9*) |
---|
10288 | if test "$GCC" = yes; then |
---|
10289 | 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' |
---|
10290 | else |
---|
10291 | 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' |
---|
10292 | fi |
---|
10293 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
10294 | hardcode_libdir_separator=: |
---|
10295 | hardcode_direct=yes |
---|
10296 | |
---|
10297 | # hardcode_minus_L: Not really in the search PATH, |
---|
10298 | # but as the default location of the library. |
---|
10299 | hardcode_minus_L=yes |
---|
10300 | export_dynamic_flag_spec='${wl}-E' |
---|
10301 | ;; |
---|
10302 | |
---|
10303 | hpux10*) |
---|
10304 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
10305 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
10306 | else |
---|
10307 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
10308 | fi |
---|
10309 | if test "$with_gnu_ld" = no; then |
---|
10310 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
10311 | hardcode_libdir_separator=: |
---|
10312 | |
---|
10313 | hardcode_direct=yes |
---|
10314 | export_dynamic_flag_spec='${wl}-E' |
---|
10315 | |
---|
10316 | # hardcode_minus_L: Not really in the search PATH, |
---|
10317 | # but as the default location of the library. |
---|
10318 | hardcode_minus_L=yes |
---|
10319 | fi |
---|
10320 | ;; |
---|
10321 | |
---|
10322 | hpux11*) |
---|
10323 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
10324 | case $host_cpu in |
---|
10325 | hppa*64*) |
---|
10326 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10327 | ;; |
---|
10328 | ia64*) |
---|
10329 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
10330 | ;; |
---|
10331 | *) |
---|
10332 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
10333 | ;; |
---|
10334 | esac |
---|
10335 | else |
---|
10336 | case $host_cpu in |
---|
10337 | hppa*64*) |
---|
10338 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10339 | ;; |
---|
10340 | ia64*) |
---|
10341 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
10342 | ;; |
---|
10343 | *) |
---|
10344 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
10345 | ;; |
---|
10346 | esac |
---|
10347 | fi |
---|
10348 | if test "$with_gnu_ld" = no; then |
---|
10349 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
10350 | hardcode_libdir_separator=: |
---|
10351 | |
---|
10352 | case $host_cpu in |
---|
10353 | hppa*64*|ia64*) |
---|
10354 | hardcode_libdir_flag_spec_ld='+b $libdir' |
---|
10355 | hardcode_direct=no |
---|
10356 | hardcode_shlibpath_var=no |
---|
10357 | ;; |
---|
10358 | *) |
---|
10359 | hardcode_direct=yes |
---|
10360 | export_dynamic_flag_spec='${wl}-E' |
---|
10361 | |
---|
10362 | # hardcode_minus_L: Not really in the search PATH, |
---|
10363 | # but as the default location of the library. |
---|
10364 | hardcode_minus_L=yes |
---|
10365 | ;; |
---|
10366 | esac |
---|
10367 | fi |
---|
10368 | ;; |
---|
10369 | |
---|
10370 | irix5* | irix6* | nonstopux*) |
---|
10371 | if test "$GCC" = yes; then |
---|
10372 | 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' |
---|
10373 | else |
---|
10374 | 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' |
---|
10375 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
---|
10376 | fi |
---|
10377 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
10378 | hardcode_libdir_separator=: |
---|
10379 | link_all_deplibs=yes |
---|
10380 | ;; |
---|
10381 | |
---|
10382 | netbsd*) |
---|
10383 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
10384 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
10385 | else |
---|
10386 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
10387 | fi |
---|
10388 | hardcode_libdir_flag_spec='-R$libdir' |
---|
10389 | hardcode_direct=yes |
---|
10390 | hardcode_shlibpath_var=no |
---|
10391 | ;; |
---|
10392 | |
---|
10393 | newsos6) |
---|
10394 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
10395 | hardcode_direct=yes |
---|
10396 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
10397 | hardcode_libdir_separator=: |
---|
10398 | hardcode_shlibpath_var=no |
---|
10399 | ;; |
---|
10400 | |
---|
10401 | openbsd*) |
---|
10402 | hardcode_direct=yes |
---|
10403 | hardcode_shlibpath_var=no |
---|
10404 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
10405 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
10406 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
---|
10407 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
10408 | export_dynamic_flag_spec='${wl}-E' |
---|
10409 | else |
---|
10410 | case $host_os in |
---|
10411 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
10412 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
10413 | hardcode_libdir_flag_spec='-R$libdir' |
---|
10414 | ;; |
---|
10415 | *) |
---|
10416 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
10417 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
10418 | ;; |
---|
10419 | esac |
---|
10420 | fi |
---|
10421 | ;; |
---|
10422 | |
---|
10423 | os2*) |
---|
10424 | hardcode_libdir_flag_spec='-L$libdir' |
---|
10425 | hardcode_minus_L=yes |
---|
10426 | allow_undefined_flag=unsupported |
---|
10427 | 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' |
---|
10428 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
10429 | ;; |
---|
10430 | |
---|
10431 | osf3*) |
---|
10432 | if test "$GCC" = yes; then |
---|
10433 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
10434 | 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' |
---|
10435 | else |
---|
10436 | allow_undefined_flag=' -expect_unresolved \*' |
---|
10437 | 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' |
---|
10438 | fi |
---|
10439 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
10440 | hardcode_libdir_separator=: |
---|
10441 | ;; |
---|
10442 | |
---|
10443 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
10444 | if test "$GCC" = yes; then |
---|
10445 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
10446 | 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' |
---|
10447 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
10448 | else |
---|
10449 | allow_undefined_flag=' -expect_unresolved \*' |
---|
10450 | 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' |
---|
10451 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
---|
10452 | $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' |
---|
10453 | |
---|
10454 | # Both c and cxx compiler support -rpath directly |
---|
10455 | hardcode_libdir_flag_spec='-rpath $libdir' |
---|
10456 | fi |
---|
10457 | hardcode_libdir_separator=: |
---|
10458 | ;; |
---|
10459 | |
---|
10460 | solaris*) |
---|
10461 | no_undefined_flag=' -z text' |
---|
10462 | if test "$GCC" = yes; then |
---|
10463 | wlarc='${wl}' |
---|
10464 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10465 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
10466 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
---|
10467 | else |
---|
10468 | wlarc='' |
---|
10469 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
10470 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
10471 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
10472 | fi |
---|
10473 | hardcode_libdir_flag_spec='-R$libdir' |
---|
10474 | hardcode_shlibpath_var=no |
---|
10475 | case $host_os in |
---|
10476 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
10477 | *) |
---|
10478 | # The compiler driver will combine linker options so we |
---|
10479 | # cannot just pass the convience library names through |
---|
10480 | # without $wl, iff we do not link with $LD. |
---|
10481 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
---|
10482 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
10483 | case $wlarc in |
---|
10484 | '') |
---|
10485 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
---|
10486 | *) |
---|
10487 | 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' ;; |
---|
10488 | esac ;; |
---|
10489 | esac |
---|
10490 | link_all_deplibs=yes |
---|
10491 | ;; |
---|
10492 | |
---|
10493 | sunos4*) |
---|
10494 | if test "x$host_vendor" = xsequent; then |
---|
10495 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
10496 | # files that make .init and .fini sections work. |
---|
10497 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10498 | else |
---|
10499 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
10500 | fi |
---|
10501 | hardcode_libdir_flag_spec='-L$libdir' |
---|
10502 | hardcode_direct=yes |
---|
10503 | hardcode_minus_L=yes |
---|
10504 | hardcode_shlibpath_var=no |
---|
10505 | ;; |
---|
10506 | |
---|
10507 | sysv4) |
---|
10508 | case $host_vendor in |
---|
10509 | sni) |
---|
10510 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
10511 | hardcode_direct=yes # is this really true??? |
---|
10512 | ;; |
---|
10513 | siemens) |
---|
10514 | ## LD is ld it makes a PLAMLIB |
---|
10515 | ## CC just makes a GrossModule. |
---|
10516 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
10517 | reload_cmds='$CC -r -o $output$reload_objs' |
---|
10518 | hardcode_direct=no |
---|
10519 | ;; |
---|
10520 | motorola) |
---|
10521 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
10522 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
---|
10523 | ;; |
---|
10524 | esac |
---|
10525 | runpath_var='LD_RUN_PATH' |
---|
10526 | hardcode_shlibpath_var=no |
---|
10527 | ;; |
---|
10528 | |
---|
10529 | sysv4.3*) |
---|
10530 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
10531 | hardcode_shlibpath_var=no |
---|
10532 | export_dynamic_flag_spec='-Bexport' |
---|
10533 | ;; |
---|
10534 | |
---|
10535 | sysv4*MP*) |
---|
10536 | if test -d /usr/nec; then |
---|
10537 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
10538 | hardcode_shlibpath_var=no |
---|
10539 | runpath_var=LD_RUN_PATH |
---|
10540 | hardcode_runpath_var=yes |
---|
10541 | ld_shlibs=yes |
---|
10542 | fi |
---|
10543 | ;; |
---|
10544 | |
---|
10545 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
---|
10546 | no_undefined_flag='${wl}-z,text' |
---|
10547 | archive_cmds_need_lc=no |
---|
10548 | hardcode_shlibpath_var=no |
---|
10549 | runpath_var='LD_RUN_PATH' |
---|
10550 | |
---|
10551 | if test "$GCC" = yes; then |
---|
10552 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10553 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10554 | else |
---|
10555 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10556 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10557 | fi |
---|
10558 | ;; |
---|
10559 | |
---|
10560 | sysv5* | sco3.2v5* | sco5v6*) |
---|
10561 | # Note: We can NOT use -z defs as we might desire, because we do not |
---|
10562 | # link with -lc, and that would cause any symbols used from libc to |
---|
10563 | # always be unresolved, which means just about no library would |
---|
10564 | # ever link correctly. If we're not using GNU ld we use -z text |
---|
10565 | # though, which does catch some bad symbols but isn't as heavy-handed |
---|
10566 | # as -z defs. |
---|
10567 | no_undefined_flag='${wl}-z,text' |
---|
10568 | allow_undefined_flag='${wl}-z,nodefs' |
---|
10569 | archive_cmds_need_lc=no |
---|
10570 | hardcode_shlibpath_var=no |
---|
10571 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
---|
10572 | hardcode_libdir_separator=':' |
---|
10573 | link_all_deplibs=yes |
---|
10574 | export_dynamic_flag_spec='${wl}-Bexport' |
---|
10575 | runpath_var='LD_RUN_PATH' |
---|
10576 | |
---|
10577 | if test "$GCC" = yes; then |
---|
10578 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10579 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10580 | else |
---|
10581 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10582 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10583 | fi |
---|
10584 | ;; |
---|
10585 | |
---|
10586 | uts4*) |
---|
10587 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
10588 | hardcode_libdir_flag_spec='-L$libdir' |
---|
10589 | hardcode_shlibpath_var=no |
---|
10590 | ;; |
---|
10591 | |
---|
10592 | *) |
---|
10593 | ld_shlibs=no |
---|
10594 | ;; |
---|
10595 | esac |
---|
10596 | fi |
---|
10597 | |
---|
10598 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
---|
10599 | echo "${ECHO_T}$ld_shlibs" >&6 |
---|
10600 | test "$ld_shlibs" = no && can_build_shared=no |
---|
10601 | |
---|
10602 | # |
---|
10603 | # Do we need to explicitly link libc? |
---|
10604 | # |
---|
10605 | case "x$archive_cmds_need_lc" in |
---|
10606 | x|xyes) |
---|
10607 | # Assume -lc should be added |
---|
10608 | archive_cmds_need_lc=yes |
---|
10609 | |
---|
10610 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
10611 | case $archive_cmds in |
---|
10612 | *'~'*) |
---|
10613 | # FIXME: we may have to deal with multi-command sequences. |
---|
10614 | ;; |
---|
10615 | '$CC '*) |
---|
10616 | # Test whether the compiler implicitly links with -lc since on some |
---|
10617 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
10618 | # to ld, don't add -lc before -lgcc. |
---|
10619 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
10620 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
---|
10621 | $rm conftest* |
---|
10622 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
10623 | |
---|
10624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10625 | (eval $ac_compile) 2>&5 |
---|
10626 | ac_status=$? |
---|
10627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10628 | (exit $ac_status); } 2>conftest.err; then |
---|
10629 | soname=conftest |
---|
10630 | lib=conftest |
---|
10631 | libobjs=conftest.$ac_objext |
---|
10632 | deplibs= |
---|
10633 | wl=$lt_prog_compiler_wl |
---|
10634 | pic_flag=$lt_prog_compiler_pic |
---|
10635 | compiler_flags=-v |
---|
10636 | linker_flags=-v |
---|
10637 | verstring= |
---|
10638 | output_objdir=. |
---|
10639 | libname=conftest |
---|
10640 | lt_save_allow_undefined_flag=$allow_undefined_flag |
---|
10641 | allow_undefined_flag= |
---|
10642 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
10643 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
10644 | ac_status=$? |
---|
10645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10646 | (exit $ac_status); } |
---|
10647 | then |
---|
10648 | archive_cmds_need_lc=no |
---|
10649 | else |
---|
10650 | archive_cmds_need_lc=yes |
---|
10651 | fi |
---|
10652 | allow_undefined_flag=$lt_save_allow_undefined_flag |
---|
10653 | else |
---|
10654 | cat conftest.err 1>&5 |
---|
10655 | fi |
---|
10656 | $rm conftest* |
---|
10657 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
---|
10658 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
---|
10659 | ;; |
---|
10660 | esac |
---|
10661 | fi |
---|
10662 | ;; |
---|
10663 | esac |
---|
10664 | |
---|
10665 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
10666 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
---|
10667 | library_names_spec= |
---|
10668 | libname_spec='lib$name' |
---|
10669 | soname_spec= |
---|
10670 | shrext_cmds=".so" |
---|
10671 | postinstall_cmds= |
---|
10672 | postuninstall_cmds= |
---|
10673 | finish_cmds= |
---|
10674 | finish_eval= |
---|
10675 | shlibpath_var= |
---|
10676 | shlibpath_overrides_runpath=unknown |
---|
10677 | version_type=none |
---|
10678 | dynamic_linker="$host_os ld.so" |
---|
10679 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
10680 | if test "$GCC" = yes; then |
---|
10681 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
10682 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
10683 | # if the path contains ";" then we assume it to be the separator |
---|
10684 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
10685 | # assumed that no part of a normal pathname contains ";" but that should |
---|
10686 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
10687 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
10688 | else |
---|
10689 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
10690 | fi |
---|
10691 | else |
---|
10692 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
10693 | fi |
---|
10694 | need_lib_prefix=unknown |
---|
10695 | hardcode_into_libs=no |
---|
10696 | |
---|
10697 | # when you set need_version to no, make sure it does not cause -set_version |
---|
10698 | # flags to be left without arguments |
---|
10699 | need_version=unknown |
---|
10700 | |
---|
10701 | case $host_os in |
---|
10702 | aix3*) |
---|
10703 | version_type=linux |
---|
10704 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
10705 | shlibpath_var=LIBPATH |
---|
10706 | |
---|
10707 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
10708 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10709 | ;; |
---|
10710 | |
---|
10711 | aix4* | aix5*) |
---|
10712 | version_type=linux |
---|
10713 | need_lib_prefix=no |
---|
10714 | need_version=no |
---|
10715 | hardcode_into_libs=yes |
---|
10716 | if test "$host_cpu" = ia64; then |
---|
10717 | # AIX 5 supports IA64 |
---|
10718 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
10719 | shlibpath_var=LD_LIBRARY_PATH |
---|
10720 | else |
---|
10721 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
10722 | # for dependence libraries. The import file would start with |
---|
10723 | # the line `#! .'. This would cause the generated library to |
---|
10724 | # depend on `.', always an invalid library. This was fixed in |
---|
10725 | # development snapshots of GCC prior to 3.0. |
---|
10726 | case $host_os in |
---|
10727 | aix4 | aix4.[01] | aix4.[01].*) |
---|
10728 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
10729 | echo ' yes ' |
---|
10730 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
10731 | : |
---|
10732 | else |
---|
10733 | can_build_shared=no |
---|
10734 | fi |
---|
10735 | ;; |
---|
10736 | esac |
---|
10737 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
10738 | # soname into executable. Probably we can add versioning support to |
---|
10739 | # collect2, so additional links can be useful in future. |
---|
10740 | if test "$aix_use_runtimelinking" = yes; then |
---|
10741 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
10742 | # instead of lib<name>.a to let people know that these are not |
---|
10743 | # typical AIX shared libraries. |
---|
10744 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10745 | else |
---|
10746 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
10747 | # and later when we are not doing run time linking. |
---|
10748 | library_names_spec='${libname}${release}.a $libname.a' |
---|
10749 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10750 | fi |
---|
10751 | shlibpath_var=LIBPATH |
---|
10752 | fi |
---|
10753 | ;; |
---|
10754 | |
---|
10755 | amigaos*) |
---|
10756 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
10757 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
10758 | 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' |
---|
10759 | ;; |
---|
10760 | |
---|
10761 | beos*) |
---|
10762 | library_names_spec='${libname}${shared_ext}' |
---|
10763 | dynamic_linker="$host_os ld.so" |
---|
10764 | shlibpath_var=LIBRARY_PATH |
---|
10765 | ;; |
---|
10766 | |
---|
10767 | bsdi[45]*) |
---|
10768 | version_type=linux |
---|
10769 | need_version=no |
---|
10770 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10771 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10772 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
10773 | shlibpath_var=LD_LIBRARY_PATH |
---|
10774 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
10775 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
10776 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
10777 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
10778 | # libtool to hard-code these into programs |
---|
10779 | ;; |
---|
10780 | |
---|
10781 | cygwin* | mingw* | pw32*) |
---|
10782 | version_type=windows |
---|
10783 | shrext_cmds=".dll" |
---|
10784 | need_version=no |
---|
10785 | need_lib_prefix=no |
---|
10786 | |
---|
10787 | case $GCC,$host_os in |
---|
10788 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
10789 |
---|