1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.59 for ThirdPartyLapack 1.5.3. |
---|
4 | # |
---|
5 | # Report bugs to <http://projects.coin-or.org/BuildTools/newticket>. |
---|
6 | # |
---|
7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
---|
8 | # This configure script is free software; the Free Software Foundation |
---|
9 | # gives unlimited permission to copy, distribute and modify it. |
---|
10 | # |
---|
11 | # |
---|
12 | # Copyright 2006 International Business Machines and others. |
---|
13 | # All Rights Reserved. |
---|
14 | # This file is part of the open source package Coin which is distributed |
---|
15 | # under the 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='ThirdPartyLapack' |
---|
431 | PACKAGE_TARNAME='thirdpartylapack' |
---|
432 | PACKAGE_VERSION='1.5.3' |
---|
433 | PACKAGE_STRING='ThirdPartyLapack 1.5.3' |
---|
434 | PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket' |
---|
435 | |
---|
436 | ac_unique_file="LAPACK/SRC/dlarf.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 LAPACK_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 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 LAPACKLIB_CFLAGS LAPACKLIB_LIBS LAPACKLIB_PCLIBS LAPACKLIB_PCREQUIRES LAPACKLIB_DEPENDENCIES LAPACKLIB_CFLAGS_INSTALLED LAPACKLIB_LIBS_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE DLAMCH_FFLAGS EGREP 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 CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS 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_PKG_CONFIG_set=${PKG_CONFIG+set} |
---|
977 | ac_env_PKG_CONFIG_value=$PKG_CONFIG |
---|
978 | ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} |
---|
979 | ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG |
---|
980 | ac_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set} |
---|
981 | ac_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS |
---|
982 | ac_cv_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set} |
---|
983 | ac_cv_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS |
---|
984 | ac_env_CPP_set=${CPP+set} |
---|
985 | ac_env_CPP_value=$CPP |
---|
986 | ac_cv_env_CPP_set=${CPP+set} |
---|
987 | ac_cv_env_CPP_value=$CPP |
---|
988 | ac_env_CXX_set=${CXX+set} |
---|
989 | ac_env_CXX_value=$CXX |
---|
990 | ac_cv_env_CXX_set=${CXX+set} |
---|
991 | ac_cv_env_CXX_value=$CXX |
---|
992 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
993 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
994 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
995 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
996 | ac_env_CXXCPP_set=${CXXCPP+set} |
---|
997 | ac_env_CXXCPP_value=$CXXCPP |
---|
998 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
---|
999 | ac_cv_env_CXXCPP_value=$CXXCPP |
---|
1000 | |
---|
1001 | # |
---|
1002 | # Report the --help message. |
---|
1003 | # |
---|
1004 | if test "$ac_init_help" = "long"; then |
---|
1005 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1006 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1007 | cat <<_ACEOF |
---|
1008 | \`configure' configures ThirdPartyLapack 1.5.3 to adapt to many kinds of systems. |
---|
1009 | |
---|
1010 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1011 | |
---|
1012 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1013 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1014 | |
---|
1015 | Defaults for the options are specified in brackets. |
---|
1016 | |
---|
1017 | Configuration: |
---|
1018 | -h, --help display this help and exit |
---|
1019 | --help=short display options specific to this package |
---|
1020 | --help=recursive display the short help of all the included packages |
---|
1021 | -V, --version display version information and exit |
---|
1022 | -q, --quiet, --silent do not print \`checking...' messages |
---|
1023 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1024 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1025 | -n, --no-create do not create output files |
---|
1026 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1027 | |
---|
1028 | _ACEOF |
---|
1029 | |
---|
1030 | cat <<_ACEOF |
---|
1031 | Installation directories: |
---|
1032 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1033 | [$ac_default_prefix] |
---|
1034 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1035 | [PREFIX] |
---|
1036 | |
---|
1037 | By default, \`make install' will install all the files in |
---|
1038 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1039 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1040 | for instance \`--prefix=\$HOME'. |
---|
1041 | |
---|
1042 | For better control, use the options below. |
---|
1043 | |
---|
1044 | Fine tuning of the installation directories: |
---|
1045 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1046 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1047 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1048 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
1049 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1050 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1051 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1052 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1053 | --includedir=DIR C header files [PREFIX/include] |
---|
1054 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1055 | --infodir=DIR info documentation [PREFIX/info] |
---|
1056 | --mandir=DIR man documentation [PREFIX/man] |
---|
1057 | _ACEOF |
---|
1058 | |
---|
1059 | cat <<\_ACEOF |
---|
1060 | |
---|
1061 | Program names: |
---|
1062 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1063 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1064 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1065 | |
---|
1066 | System types: |
---|
1067 | --build=BUILD configure for building on BUILD [guessed] |
---|
1068 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1069 | _ACEOF |
---|
1070 | fi |
---|
1071 | |
---|
1072 | if test -n "$ac_init_help"; then |
---|
1073 | case $ac_init_help in |
---|
1074 | short | recursive ) echo "Configuration of ThirdPartyLapack 1.5.3:";; |
---|
1075 | esac |
---|
1076 | cat <<\_ACEOF |
---|
1077 | |
---|
1078 | Optional Features: |
---|
1079 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1080 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1081 | --enable-debug compile all projects with debug options tests |
---|
1082 | (implies --disable-shared) |
---|
1083 | --enable-debug-lapack compile project Lapack with debug compiler flags |
---|
1084 | |
---|
1085 | --enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin. |
---|
1086 | --disable-pkg-config disable use of pkg-config (if available) |
---|
1087 | --disable-interpackage-dependencies |
---|
1088 | disables deduction of Makefile dependencies from |
---|
1089 | package linker flags |
---|
1090 | --enable-static[=PKGS] |
---|
1091 | build static libraries [default=no] |
---|
1092 | --disable-dependency-tracking speeds up one-time build |
---|
1093 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
1094 | --enable-maintainer-mode enable make rules and dependencies not useful |
---|
1095 | (and sometimes confusing) to the casual installer |
---|
1096 | --enable-shared[=PKGS] |
---|
1097 | build shared libraries [default=yes] |
---|
1098 | --enable-fast-install[=PKGS] |
---|
1099 | optimize for fast installation [default=yes] |
---|
1100 | --disable-libtool-lock avoid locking (might break parallel builds) |
---|
1101 | --disable-dependency-linking |
---|
1102 | disable linking library dependencies into shared |
---|
1103 | libraries |
---|
1104 | |
---|
1105 | Optional Packages: |
---|
1106 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1107 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1108 | --with-lapack-verbosity specify the debug verbosity level for project Lapack |
---|
1109 | --with-lapack-checklevel |
---|
1110 | specify the sanity check level for project Lapack |
---|
1111 | --with-blas specify BLAS library (or BUILD to enforce use of |
---|
1112 | ThirdParty/Blas) |
---|
1113 | |
---|
1114 | --with-coin-instdir prefix of installation directory for precompiled |
---|
1115 | COIN packages |
---|
1116 | --with-blas-lib linker flags for using package Blas |
---|
1117 | --with-blas-incdir directory with header files for using package Blas |
---|
1118 | --with-blas-datadir directory with data files for using package Blas |
---|
1119 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
---|
1120 | --with-pic try to use only PIC/non-PIC objects [default=use |
---|
1121 | both] |
---|
1122 | --with-tags[=TAGS] |
---|
1123 | include additional configurations [automatic] |
---|
1124 | |
---|
1125 | Some influential environment variables: |
---|
1126 | CDEFS Additional -D flags to be used when compiling C code. |
---|
1127 | ADD_CFLAGS Additional C compiler options |
---|
1128 | DBG_CFLAGS Debug C compiler options |
---|
1129 | OPT_CFLAGS Optimize C compiler options |
---|
1130 | CC C compiler command |
---|
1131 | CFLAGS C compiler flags |
---|
1132 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1133 | nonstandard directory <lib dir> |
---|
1134 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
1135 | headers in a nonstandard directory <include dir> |
---|
1136 | MPICC C MPI Compiler |
---|
1137 | ADD_FFLAGS Additional Fortran compiler options |
---|
1138 | DBG_FFLAGS Debug Fortran compiler options |
---|
1139 | OPT_FFLAGS Optimize Fortran compiler options |
---|
1140 | F77 Fortran 77 compiler command |
---|
1141 | FFLAGS Fortran 77 compiler flags |
---|
1142 | MPIF77 Fortran MPI Compiler |
---|
1143 | PKG_CONFIG path to pkg-config utility |
---|
1144 | DLAMCH_FFLAGS |
---|
1145 | Fortran compiler options for DLAMCH.F |
---|
1146 | CPP C preprocessor |
---|
1147 | CXX C++ compiler command |
---|
1148 | CXXFLAGS C++ compiler flags |
---|
1149 | CXXCPP C++ preprocessor |
---|
1150 | |
---|
1151 | Use these variables to override the choices made by `configure' or to help |
---|
1152 | it to find libraries and programs with nonstandard names/locations. |
---|
1153 | |
---|
1154 | Report bugs to <http://projects.coin-or.org/BuildTools/newticket>. |
---|
1155 | _ACEOF |
---|
1156 | fi |
---|
1157 | |
---|
1158 | if test "$ac_init_help" = "recursive"; then |
---|
1159 | # If there are subdirs, report their specific --help. |
---|
1160 | ac_popdir=`pwd` |
---|
1161 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1162 | test -d $ac_dir || continue |
---|
1163 | ac_builddir=. |
---|
1164 | |
---|
1165 | if test "$ac_dir" != .; then |
---|
1166 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
1167 | # A "../" for each directory in $ac_dir_suffix. |
---|
1168 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
1169 | else |
---|
1170 | ac_dir_suffix= ac_top_builddir= |
---|
1171 | fi |
---|
1172 | |
---|
1173 | case $srcdir in |
---|
1174 | .) # No --srcdir option. We are building in place. |
---|
1175 | ac_srcdir=. |
---|
1176 | if test -z "$ac_top_builddir"; then |
---|
1177 | ac_top_srcdir=. |
---|
1178 | else |
---|
1179 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
1180 | fi ;; |
---|
1181 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
1182 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1183 | ac_top_srcdir=$srcdir ;; |
---|
1184 | *) # Relative path. |
---|
1185 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
1186 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
1187 | esac |
---|
1188 | |
---|
1189 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
1190 | # the directories may not exist. |
---|
1191 | case `pwd` in |
---|
1192 | .) ac_abs_builddir="$ac_dir";; |
---|
1193 | *) |
---|
1194 | case "$ac_dir" in |
---|
1195 | .) ac_abs_builddir=`pwd`;; |
---|
1196 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
1197 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
1198 | esac;; |
---|
1199 | esac |
---|
1200 | case $ac_abs_builddir in |
---|
1201 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
1202 | *) |
---|
1203 | case ${ac_top_builddir}. in |
---|
1204 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
1205 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
1206 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
1207 | esac;; |
---|
1208 | esac |
---|
1209 | case $ac_abs_builddir in |
---|
1210 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
1211 | *) |
---|
1212 | case $ac_srcdir in |
---|
1213 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
1214 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
1215 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
1216 | esac;; |
---|
1217 | esac |
---|
1218 | case $ac_abs_builddir in |
---|
1219 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
1220 | *) |
---|
1221 | case $ac_top_srcdir in |
---|
1222 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
1223 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
1224 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
1225 | esac;; |
---|
1226 | esac |
---|
1227 | |
---|
1228 | cd $ac_dir |
---|
1229 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
1230 | if test -f $ac_srcdir/configure.gnu; then |
---|
1231 | echo |
---|
1232 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
1233 | elif test -f $ac_srcdir/configure; then |
---|
1234 | echo |
---|
1235 | $SHELL $ac_srcdir/configure --help=recursive |
---|
1236 | elif test -f $ac_srcdir/configure.ac || |
---|
1237 | test -f $ac_srcdir/configure.in; then |
---|
1238 | echo |
---|
1239 | $ac_configure --help |
---|
1240 | else |
---|
1241 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1242 | fi |
---|
1243 | cd $ac_popdir |
---|
1244 | done |
---|
1245 | fi |
---|
1246 | |
---|
1247 | test -n "$ac_init_help" && exit 0 |
---|
1248 | if $ac_init_version; then |
---|
1249 | cat <<\_ACEOF |
---|
1250 | ThirdPartyLapack configure 1.5.3 |
---|
1251 | generated by GNU Autoconf 2.59 |
---|
1252 | |
---|
1253 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
1254 | This configure script is free software; the Free Software Foundation |
---|
1255 | gives unlimited permission to copy, distribute and modify it. |
---|
1256 | |
---|
1257 | |
---|
1258 | Copyright 2006 International Business Machines and others. |
---|
1259 | All Rights Reserved. |
---|
1260 | This file is part of the open source package Coin which is distributed |
---|
1261 | under the Eclipse Public License. |
---|
1262 | _ACEOF |
---|
1263 | exit 0 |
---|
1264 | fi |
---|
1265 | exec 5>config.log |
---|
1266 | cat >&5 <<_ACEOF |
---|
1267 | This file contains any messages produced by compilers while |
---|
1268 | running configure, to aid debugging if configure makes a mistake. |
---|
1269 | |
---|
1270 | It was created by ThirdPartyLapack $as_me 1.5.3, which was |
---|
1271 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
1272 | |
---|
1273 | $ $0 $@ |
---|
1274 | |
---|
1275 | _ACEOF |
---|
1276 | { |
---|
1277 | cat <<_ASUNAME |
---|
1278 | ## --------- ## |
---|
1279 | ## Platform. ## |
---|
1280 | ## --------- ## |
---|
1281 | |
---|
1282 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1283 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1284 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1285 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1286 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1287 | |
---|
1288 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1289 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1290 | |
---|
1291 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1292 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1293 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1294 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1295 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1296 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1297 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1298 | |
---|
1299 | _ASUNAME |
---|
1300 | |
---|
1301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1302 | for as_dir in $PATH |
---|
1303 | do |
---|
1304 | IFS=$as_save_IFS |
---|
1305 | test -z "$as_dir" && as_dir=. |
---|
1306 | echo "PATH: $as_dir" |
---|
1307 | done |
---|
1308 | |
---|
1309 | } >&5 |
---|
1310 | |
---|
1311 | cat >&5 <<_ACEOF |
---|
1312 | |
---|
1313 | |
---|
1314 | ## ----------- ## |
---|
1315 | ## Core tests. ## |
---|
1316 | ## ----------- ## |
---|
1317 | |
---|
1318 | _ACEOF |
---|
1319 | |
---|
1320 | |
---|
1321 | # Keep a trace of the command line. |
---|
1322 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1323 | # Strip out --silent because we don't want to record it for future runs. |
---|
1324 | # Also quote any args containing shell meta-characters. |
---|
1325 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1326 | ac_configure_args= |
---|
1327 | ac_configure_args0= |
---|
1328 | ac_configure_args1= |
---|
1329 | ac_sep= |
---|
1330 | ac_must_keep_next=false |
---|
1331 | for ac_pass in 1 2 |
---|
1332 | do |
---|
1333 | for ac_arg |
---|
1334 | do |
---|
1335 | case $ac_arg in |
---|
1336 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1337 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1338 | | -silent | --silent | --silen | --sile | --sil) |
---|
1339 | continue ;; |
---|
1340 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1341 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1342 | esac |
---|
1343 | case $ac_pass in |
---|
1344 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1345 | 2) |
---|
1346 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1347 | if test $ac_must_keep_next = true; then |
---|
1348 | ac_must_keep_next=false # Got value, back to normal. |
---|
1349 | else |
---|
1350 | case $ac_arg in |
---|
1351 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1352 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1353 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1354 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1355 | case "$ac_configure_args0 " in |
---|
1356 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1357 | esac |
---|
1358 | ;; |
---|
1359 | -* ) ac_must_keep_next=true ;; |
---|
1360 | esac |
---|
1361 | fi |
---|
1362 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1363 | # Get rid of the leading space. |
---|
1364 | ac_sep=" " |
---|
1365 | ;; |
---|
1366 | esac |
---|
1367 | done |
---|
1368 | done |
---|
1369 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1370 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1371 | |
---|
1372 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1373 | # config.log. We remove comments because anyway the quotes in there |
---|
1374 | # would cause problems or look ugly. |
---|
1375 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1376 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1377 | trap 'exit_status=$? |
---|
1378 | # Save into config.log some information that might help in debugging. |
---|
1379 | { |
---|
1380 | echo |
---|
1381 | |
---|
1382 | cat <<\_ASBOX |
---|
1383 | ## ---------------- ## |
---|
1384 | ## Cache variables. ## |
---|
1385 | ## ---------------- ## |
---|
1386 | _ASBOX |
---|
1387 | echo |
---|
1388 | # The following way of writing the cache mishandles newlines in values, |
---|
1389 | { |
---|
1390 | (set) 2>&1 | |
---|
1391 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1392 | *ac_space=\ *) |
---|
1393 | sed -n \ |
---|
1394 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1395 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1396 | ;; |
---|
1397 | *) |
---|
1398 | sed -n \ |
---|
1399 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1400 | ;; |
---|
1401 | esac; |
---|
1402 | } |
---|
1403 | echo |
---|
1404 | |
---|
1405 | cat <<\_ASBOX |
---|
1406 | ## ----------------- ## |
---|
1407 | ## Output variables. ## |
---|
1408 | ## ----------------- ## |
---|
1409 | _ASBOX |
---|
1410 | echo |
---|
1411 | for ac_var in $ac_subst_vars |
---|
1412 | do |
---|
1413 | eval ac_val=$`echo $ac_var` |
---|
1414 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1415 | done | sort |
---|
1416 | echo |
---|
1417 | |
---|
1418 | if test -n "$ac_subst_files"; then |
---|
1419 | cat <<\_ASBOX |
---|
1420 | ## ------------- ## |
---|
1421 | ## Output files. ## |
---|
1422 | ## ------------- ## |
---|
1423 | _ASBOX |
---|
1424 | echo |
---|
1425 | for ac_var in $ac_subst_files |
---|
1426 | do |
---|
1427 | eval ac_val=$`echo $ac_var` |
---|
1428 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1429 | done | sort |
---|
1430 | echo |
---|
1431 | fi |
---|
1432 | |
---|
1433 | if test -s confdefs.h; then |
---|
1434 | cat <<\_ASBOX |
---|
1435 | ## ----------- ## |
---|
1436 | ## confdefs.h. ## |
---|
1437 | ## ----------- ## |
---|
1438 | _ASBOX |
---|
1439 | echo |
---|
1440 | sed "/^$/d" confdefs.h | sort |
---|
1441 | echo |
---|
1442 | fi |
---|
1443 | test "$ac_signal" != 0 && |
---|
1444 | echo "$as_me: caught signal $ac_signal" |
---|
1445 | echo "$as_me: exit $exit_status" |
---|
1446 | } >&5 |
---|
1447 | rm -f core *.core && |
---|
1448 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1449 | exit $exit_status |
---|
1450 | ' 0 |
---|
1451 | for ac_signal in 1 2 13 15; do |
---|
1452 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1453 | done |
---|
1454 | ac_signal=0 |
---|
1455 | |
---|
1456 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1457 | rm -rf conftest* confdefs.h |
---|
1458 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1459 | echo >confdefs.h |
---|
1460 | |
---|
1461 | # Predefined preprocessor variables. |
---|
1462 | |
---|
1463 | cat >>confdefs.h <<_ACEOF |
---|
1464 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1465 | _ACEOF |
---|
1466 | |
---|
1467 | |
---|
1468 | cat >>confdefs.h <<_ACEOF |
---|
1469 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1470 | _ACEOF |
---|
1471 | |
---|
1472 | |
---|
1473 | cat >>confdefs.h <<_ACEOF |
---|
1474 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1475 | _ACEOF |
---|
1476 | |
---|
1477 | |
---|
1478 | cat >>confdefs.h <<_ACEOF |
---|
1479 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1480 | _ACEOF |
---|
1481 | |
---|
1482 | |
---|
1483 | cat >>confdefs.h <<_ACEOF |
---|
1484 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1485 | _ACEOF |
---|
1486 | |
---|
1487 | |
---|
1488 | # Let the site file select an alternate cache file if it wants to. |
---|
1489 | # Prefer explicitly selected file to automatically selected ones. |
---|
1490 | if test -z "$CONFIG_SITE"; then |
---|
1491 | if test "x$prefix" != xNONE; then |
---|
1492 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1493 | else |
---|
1494 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1495 | fi |
---|
1496 | fi |
---|
1497 | for ac_site_file in $CONFIG_SITE; do |
---|
1498 | if test -r "$ac_site_file"; then |
---|
1499 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1500 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1501 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1502 | . "$ac_site_file" |
---|
1503 | fi |
---|
1504 | done |
---|
1505 | |
---|
1506 | if test -r "$cache_file"; then |
---|
1507 | # Some versions of bash will fail to source /dev/null (special |
---|
1508 | # files actually), so we avoid doing that. |
---|
1509 | if test -f "$cache_file"; then |
---|
1510 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1511 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1512 | case $cache_file in |
---|
1513 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1514 | *) . ./$cache_file;; |
---|
1515 | esac |
---|
1516 | fi |
---|
1517 | else |
---|
1518 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1519 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1520 | >$cache_file |
---|
1521 | fi |
---|
1522 | |
---|
1523 | # Check that the precious variables saved in the cache have kept the same |
---|
1524 | # value. |
---|
1525 | ac_cache_corrupted=false |
---|
1526 | for ac_var in `(set) 2>&1 | |
---|
1527 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1528 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1529 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1530 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1531 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1532 | case $ac_old_set,$ac_new_set in |
---|
1533 | set,) |
---|
1534 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1535 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1536 | ac_cache_corrupted=: ;; |
---|
1537 | ,set) |
---|
1538 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1539 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1540 | ac_cache_corrupted=: ;; |
---|
1541 | ,);; |
---|
1542 | *) |
---|
1543 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1544 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1545 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1546 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1547 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1548 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1549 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1550 | ac_cache_corrupted=: |
---|
1551 | fi;; |
---|
1552 | esac |
---|
1553 | # Pass precious variables to config.status. |
---|
1554 | if test "$ac_new_set" = set; then |
---|
1555 | case $ac_new_val in |
---|
1556 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1557 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1558 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1559 | esac |
---|
1560 | case " $ac_configure_args " in |
---|
1561 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1562 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1563 | esac |
---|
1564 | fi |
---|
1565 | done |
---|
1566 | if $ac_cache_corrupted; then |
---|
1567 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1568 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1569 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1570 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1571 | { (exit 1); exit 1; }; } |
---|
1572 | fi |
---|
1573 | |
---|
1574 | ac_ext=c |
---|
1575 | ac_cpp='$CPP $CPPFLAGS' |
---|
1576 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1577 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1578 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
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 | |
---|
1604 | |
---|
1605 | |
---|
1606 | |
---|
1607 | |
---|
1608 | |
---|
1609 | # List one file in the package so that the configure script can test |
---|
1610 | # whether the package is actually there |
---|
1611 | |
---|
1612 | |
---|
1613 | # Where should everything be installed by default? Here, we want it |
---|
1614 | # to be installed directly in 'bin', 'lib', 'include' subdirectories |
---|
1615 | # of the directory where configure is run. The default would be |
---|
1616 | # /usr/local. |
---|
1617 | |
---|
1618 | |
---|
1619 | |
---|
1620 | # As backup, we make sure we don't loose an FLIBS if it has been set |
---|
1621 | # by the user |
---|
1622 | save_FLIBS="$FLIBS" |
---|
1623 | |
---|
1624 | # A useful makefile conditional that is always false |
---|
1625 | |
---|
1626 | |
---|
1627 | if false; then |
---|
1628 | ALWAYS_FALSE_TRUE= |
---|
1629 | ALWAYS_FALSE_FALSE='#' |
---|
1630 | else |
---|
1631 | ALWAYS_FALSE_TRUE='#' |
---|
1632 | ALWAYS_FALSE_FALSE= |
---|
1633 | fi |
---|
1634 | |
---|
1635 | |
---|
1636 | # We set the following variable so that we know later in AC_COIN_FINALIZE |
---|
1637 | # that we are in a project main directory |
---|
1638 | coin_projectdir=yes |
---|
1639 | |
---|
1640 | # Set the project's version numbers |
---|
1641 | |
---|
1642 | |
---|
1643 | cat >>confdefs.h <<_ACEOF |
---|
1644 | #define LAPACK_VERSION "$PACKAGE_VERSION" |
---|
1645 | _ACEOF |
---|
1646 | |
---|
1647 | |
---|
1648 | coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'` |
---|
1649 | coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'` |
---|
1650 | coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'` |
---|
1651 | if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi |
---|
1652 | if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi |
---|
1653 | if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi |
---|
1654 | |
---|
1655 | cat >>confdefs.h <<_ACEOF |
---|
1656 | #define LAPACK_VERSION_MAJOR $coin_majorver |
---|
1657 | _ACEOF |
---|
1658 | |
---|
1659 | |
---|
1660 | cat >>confdefs.h <<_ACEOF |
---|
1661 | #define LAPACK_VERSION_MINOR $coin_minorver |
---|
1662 | _ACEOF |
---|
1663 | |
---|
1664 | |
---|
1665 | cat >>confdefs.h <<_ACEOF |
---|
1666 | #define LAPACK_VERSION_RELEASE $coin_releasever |
---|
1667 | _ACEOF |
---|
1668 | |
---|
1669 | |
---|
1670 | # We use the following variable to have a string with the upper case |
---|
1671 | # version of the project name |
---|
1672 | COIN_PRJCT=LAPACK |
---|
1673 | |
---|
1674 | # Set the project's SVN revision number. The complicated sed expression |
---|
1675 | # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up |
---|
1676 | # as a single number. |
---|
1677 | # Extract the first word of "svnversion", so it can be a program name with args. |
---|
1678 | set dummy svnversion; ac_word=$2 |
---|
1679 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1681 | if test "${ac_cv_prog_have_svnversion+set}" = set; then |
---|
1682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1683 | else |
---|
1684 | if test -n "$have_svnversion"; then |
---|
1685 | ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test. |
---|
1686 | else |
---|
1687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1688 | for as_dir in $PATH |
---|
1689 | do |
---|
1690 | IFS=$as_save_IFS |
---|
1691 | test -z "$as_dir" && as_dir=. |
---|
1692 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1693 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1694 | ac_cv_prog_have_svnversion="yes" |
---|
1695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1696 | break 2 |
---|
1697 | fi |
---|
1698 | done |
---|
1699 | done |
---|
1700 | |
---|
1701 | test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no" |
---|
1702 | fi |
---|
1703 | fi |
---|
1704 | have_svnversion=$ac_cv_prog_have_svnversion |
---|
1705 | if test -n "$have_svnversion"; then |
---|
1706 | echo "$as_me:$LINENO: result: $have_svnversion" >&5 |
---|
1707 | echo "${ECHO_T}$have_svnversion" >&6 |
---|
1708 | else |
---|
1709 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1710 | echo "${ECHO_T}no" >&6 |
---|
1711 | fi |
---|
1712 | |
---|
1713 | if test "x$have_svnversion" = xyes; then |
---|
1714 | |
---|
1715 | svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null` |
---|
1716 | if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then |
---|
1717 | LAPACK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'` |
---|
1718 | |
---|
1719 | cat >>confdefs.h <<_ACEOF |
---|
1720 | #define LAPACK_SVN_REV $LAPACK_SVN_REV |
---|
1721 | _ACEOF |
---|
1722 | |
---|
1723 | fi |
---|
1724 | fi |
---|
1725 | |
---|
1726 | |
---|
1727 | |
---|
1728 | # Capture libtool library version, if given. |
---|
1729 | coin_libversion=6:3:5 |
---|
1730 | |
---|
1731 | |
---|
1732 | |
---|
1733 | |
---|
1734 | ############################################################################# |
---|
1735 | # Standard build tool stuff # |
---|
1736 | ############################################################################# |
---|
1737 | |
---|
1738 | # Get the system type |
---|
1739 | ac_aux_dir= |
---|
1740 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1741 | if test -f $ac_dir/install-sh; then |
---|
1742 | ac_aux_dir=$ac_dir |
---|
1743 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1744 | break |
---|
1745 | elif test -f $ac_dir/install.sh; then |
---|
1746 | ac_aux_dir=$ac_dir |
---|
1747 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1748 | break |
---|
1749 | elif test -f $ac_dir/shtool; then |
---|
1750 | ac_aux_dir=$ac_dir |
---|
1751 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1752 | break |
---|
1753 | fi |
---|
1754 | done |
---|
1755 | if test -z "$ac_aux_dir"; then |
---|
1756 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1757 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1758 | { (exit 1); exit 1; }; } |
---|
1759 | fi |
---|
1760 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1761 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1762 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1763 | |
---|
1764 | # Make sure we can run config.sub. |
---|
1765 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1766 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1767 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1768 | { (exit 1); exit 1; }; } |
---|
1769 | |
---|
1770 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1771 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1772 | if test "${ac_cv_build+set}" = set; then |
---|
1773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1774 | else |
---|
1775 | ac_cv_build_alias=$build_alias |
---|
1776 | test -z "$ac_cv_build_alias" && |
---|
1777 | ac_cv_build_alias=`$ac_config_guess` |
---|
1778 | test -z "$ac_cv_build_alias" && |
---|
1779 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1780 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1781 | { (exit 1); exit 1; }; } |
---|
1782 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1783 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1784 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1785 | { (exit 1); exit 1; }; } |
---|
1786 | |
---|
1787 | fi |
---|
1788 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1789 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1790 | build=$ac_cv_build |
---|
1791 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1792 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1793 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1794 | |
---|
1795 | |
---|
1796 | |
---|
1797 | #turn off warnings and pedantic mode since they could make trouble on some platforms, |
---|
1798 | #and we couldn't fix them anyway |
---|
1799 | coin_skip_warn_fflags=yes |
---|
1800 | |
---|
1801 | # Check if user wants to produce debugging code |
---|
1802 | |
---|
1803 | echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5 |
---|
1804 | echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6 |
---|
1805 | |
---|
1806 | # Check whether --enable-debug or --disable-debug was given. |
---|
1807 | if test "${enable_debug+set}" = set; then |
---|
1808 | enableval="$enable_debug" |
---|
1809 | case "${enableval}" in |
---|
1810 | yes) coin_debug_compile=true |
---|
1811 | if test "${enable_shared+set}" = set; then :; else |
---|
1812 | enable_shared=no |
---|
1813 | fi |
---|
1814 | ;; |
---|
1815 | no) coin_debug_compile=false |
---|
1816 | ;; |
---|
1817 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 |
---|
1818 | echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} |
---|
1819 | { (exit 1); exit 1; }; } |
---|
1820 | ;; |
---|
1821 | esac |
---|
1822 | else |
---|
1823 | coin_debug_compile=false |
---|
1824 | fi; |
---|
1825 | |
---|
1826 | # Check whether --enable-debug-lapack or --disable-debug-lapack was given. |
---|
1827 | if test "${enable_debug_lapack+set}" = set; then |
---|
1828 | enableval="$enable_debug_lapack" |
---|
1829 | case "${enableval}" in |
---|
1830 | yes) coin_debug_compile=true |
---|
1831 | ;; |
---|
1832 | no) coin_debug_compile=false |
---|
1833 | ;; |
---|
1834 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-lapack" >&5 |
---|
1835 | echo "$as_me: error: bad value ${enableval} for --enable-debug-lapack" >&2;} |
---|
1836 | { (exit 1); exit 1; }; } |
---|
1837 | ;; |
---|
1838 | esac |
---|
1839 | else |
---|
1840 | : |
---|
1841 | fi; |
---|
1842 | |
---|
1843 | # m4_ifvaln([Lapack], |
---|
1844 | |
---|
1845 | if test $coin_debug_compile = true; then |
---|
1846 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1847 | echo "${ECHO_T}yes" >&6 |
---|
1848 | else |
---|
1849 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1850 | echo "${ECHO_T}no" >&6 |
---|
1851 | fi |
---|
1852 | |
---|
1853 | |
---|
1854 | # Check whether --with-lapack-verbosity or --without-lapack-verbosity was given. |
---|
1855 | if test "${with_lapack_verbosity+set}" = set; then |
---|
1856 | withval="$with_lapack_verbosity" |
---|
1857 | if test "$withval" = yes; then |
---|
1858 | withval=1 |
---|
1859 | fi |
---|
1860 | coin_lapack_verbosity=$withval |
---|
1861 | else |
---|
1862 | coin_lapack_verbosity=0 |
---|
1863 | fi; |
---|
1864 | |
---|
1865 | cat >>confdefs.h <<_ACEOF |
---|
1866 | #define COIN_LAPACK_VERBOSITY $coin_lapack_verbosity |
---|
1867 | _ACEOF |
---|
1868 | |
---|
1869 | |
---|
1870 | |
---|
1871 | # Check whether --with-lapack-checklevel or --without-lapack-checklevel was given. |
---|
1872 | if test "${with_lapack_checklevel+set}" = set; then |
---|
1873 | withval="$with_lapack_checklevel" |
---|
1874 | if test "$withval" = yes; then |
---|
1875 | withval=1 |
---|
1876 | fi |
---|
1877 | coin_lapack_checklevel=$withval |
---|
1878 | else |
---|
1879 | coin_lapack_checklevel=0 |
---|
1880 | fi; |
---|
1881 | |
---|
1882 | cat >>confdefs.h <<_ACEOF |
---|
1883 | #define COIN_LAPACK_CHECKLEVEL $coin_lapack_checklevel |
---|
1884 | _ACEOF |
---|
1885 | |
---|
1886 | |
---|
1887 | # m4_ifvaln([Lapack], |
---|
1888 | |
---|
1889 | |
---|
1890 | |
---|
1891 | # Get the name of the Fortran compiler and appropriate compiler options |
---|
1892 | |
---|
1893 | |
---|
1894 | # for backward compatibility |
---|
1895 | # Check whether --enable-doscompile or --disable-doscompile was given. |
---|
1896 | if test "${enable_doscompile+set}" = set; then |
---|
1897 | enableval="$enable_doscompile" |
---|
1898 | enable_doscompile=$enableval |
---|
1899 | else |
---|
1900 | enable_doscompile=no |
---|
1901 | fi; |
---|
1902 | |
---|
1903 | # Check whether --enable-msvc or --disable-msvc was given. |
---|
1904 | if test "${enable_msvc+set}" = set; then |
---|
1905 | enableval="$enable_msvc" |
---|
1906 | enable_msvc=$enableval |
---|
1907 | else |
---|
1908 | enable_msvc=no |
---|
1909 | if test "$enable_doscompile" = msvc ; then |
---|
1910 | enable_msvc=yes |
---|
1911 | elif test "$enable_doscompile" != no ; then |
---|
1912 | { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5 |
---|
1913 | echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;} |
---|
1914 | { (exit 1); exit 1; }; } |
---|
1915 | fi |
---|
1916 | |
---|
1917 | fi; |
---|
1918 | |
---|
1919 | if test "$enable_msvc" = MD; then |
---|
1920 | enable_shared=yes |
---|
1921 | enable_msvc=yes |
---|
1922 | fi |
---|
1923 | |
---|
1924 | if test "$enable_msvc" = yes; then |
---|
1925 | case $build in |
---|
1926 | *-cygwin* | *-mingw*) ;; |
---|
1927 | *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5 |
---|
1928 | echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;} |
---|
1929 | { (exit 1); exit 1; }; } ;; |
---|
1930 | esac |
---|
1931 | fi |
---|
1932 | |
---|
1933 | |
---|
1934 | |
---|
1935 | ac_ext=c |
---|
1936 | ac_cpp='$CPP $CPPFLAGS' |
---|
1937 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1938 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1939 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1940 | |
---|
1941 | |
---|
1942 | # For consistency, we set the C compiler to the same value of the C++ |
---|
1943 | # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl) |
---|
1944 | if test x"$CXX" != x; then |
---|
1945 | case "$CXX" in |
---|
1946 | clang* ) ;; |
---|
1947 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
1948 | if test x"$CC" = x; then |
---|
1949 | CC="$CXX" |
---|
1950 | { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5 |
---|
1951 | echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;} |
---|
1952 | fi |
---|
1953 | ;; |
---|
1954 | esac |
---|
1955 | fi |
---|
1956 | |
---|
1957 | |
---|
1958 | |
---|
1959 | |
---|
1960 | |
---|
1961 | |
---|
1962 | coin_has_cc=yes |
---|
1963 | |
---|
1964 | save_cflags="$CFLAGS" |
---|
1965 | |
---|
1966 | # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list. |
---|
1967 | # Depending on the user's PATH, when Studio/Workshop cc is not present we may |
---|
1968 | # find /usr/ucb/cc, which is almost certainly not a good choice for the C |
---|
1969 | # compiler. In this case, put cc after gcc. |
---|
1970 | |
---|
1971 | case $build in |
---|
1972 | *-cygwin* | *-mingw*) |
---|
1973 | if test "$enable_msvc" = yes ; then |
---|
1974 | comps="icl cl gcc" |
---|
1975 | else |
---|
1976 | comps="gcc icl cl" |
---|
1977 | fi ;; |
---|
1978 | *-*-solaris*) |
---|
1979 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1980 | set dummy cc; ac_word=$2 |
---|
1981 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1982 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1983 | if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then |
---|
1984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1985 | else |
---|
1986 | if test -n "$sol_cc_compiler"; then |
---|
1987 | ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test. |
---|
1988 | else |
---|
1989 | ac_prog_rejected=no |
---|
1990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1991 | for as_dir in $PATH |
---|
1992 | do |
---|
1993 | IFS=$as_save_IFS |
---|
1994 | test -z "$as_dir" && as_dir=. |
---|
1995 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1996 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1997 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
1998 | ac_prog_rejected=yes |
---|
1999 | continue |
---|
2000 | fi |
---|
2001 | ac_cv_prog_sol_cc_compiler="cc" |
---|
2002 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2003 | break 2 |
---|
2004 | fi |
---|
2005 | done |
---|
2006 | done |
---|
2007 | |
---|
2008 | if test $ac_prog_rejected = yes; then |
---|
2009 | # We found a bogon in the path, so make sure we never use it. |
---|
2010 | set dummy $ac_cv_prog_sol_cc_compiler |
---|
2011 | shift |
---|
2012 | if test $# != 0; then |
---|
2013 | # We chose a different compiler from the bogus one. |
---|
2014 | # However, it has the same basename, so the bogon will be chosen |
---|
2015 | # first if we set sol_cc_compiler to just the basename; use the full file name. |
---|
2016 | shift |
---|
2017 | ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@" |
---|
2018 | fi |
---|
2019 | fi |
---|
2020 | fi |
---|
2021 | fi |
---|
2022 | sol_cc_compiler=$ac_cv_prog_sol_cc_compiler |
---|
2023 | if test -n "$sol_cc_compiler"; then |
---|
2024 | echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5 |
---|
2025 | echo "${ECHO_T}$sol_cc_compiler" >&6 |
---|
2026 | else |
---|
2027 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2028 | echo "${ECHO_T}no" >&6 |
---|
2029 | fi |
---|
2030 | |
---|
2031 | if test "$sol_cc_compiler" = "cc" ; then |
---|
2032 | comps="cc xlc gcc pgcc icc" |
---|
2033 | else |
---|
2034 | comps="xlc gcc pgcc icc cc" |
---|
2035 | fi |
---|
2036 | ;; |
---|
2037 | *-*-darwin*) comps="clang gcc cc" ;; |
---|
2038 | *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;; |
---|
2039 | *-linux-*) comps="xlc gcc cc pgcc icc" ;; |
---|
2040 | *) comps="xlc_r xlc cc gcc pgcc icc" ;; |
---|
2041 | esac |
---|
2042 | |
---|
2043 | # We delete the cached value, since the test might not have been |
---|
2044 | # performed with our choice of compilers earlier |
---|
2045 | $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; } |
---|
2046 | # AC_MSG_NOTICE([C compiler candidates: $comps]) |
---|
2047 | ac_ext=c |
---|
2048 | ac_cpp='$CPP $CPPFLAGS' |
---|
2049 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2050 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2051 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2052 | if test -n "$ac_tool_prefix"; then |
---|
2053 | for ac_prog in $comps |
---|
2054 | do |
---|
2055 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2056 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2057 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2058 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2059 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2061 | else |
---|
2062 | if test -n "$CC"; then |
---|
2063 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2064 | else |
---|
2065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2066 | for as_dir in $PATH |
---|
2067 | do |
---|
2068 | IFS=$as_save_IFS |
---|
2069 | test -z "$as_dir" && as_dir=. |
---|
2070 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2071 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2072 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2073 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2074 | break 2 |
---|
2075 | fi |
---|
2076 | done |
---|
2077 | done |
---|
2078 | |
---|
2079 | fi |
---|
2080 | fi |
---|
2081 | CC=$ac_cv_prog_CC |
---|
2082 | if test -n "$CC"; then |
---|
2083 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2084 | echo "${ECHO_T}$CC" >&6 |
---|
2085 | else |
---|
2086 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2087 | echo "${ECHO_T}no" >&6 |
---|
2088 | fi |
---|
2089 | |
---|
2090 | test -n "$CC" && break |
---|
2091 | done |
---|
2092 | fi |
---|
2093 | if test -z "$CC"; then |
---|
2094 | ac_ct_CC=$CC |
---|
2095 | for ac_prog in $comps |
---|
2096 | do |
---|
2097 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2098 | set dummy $ac_prog; ac_word=$2 |
---|
2099 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2100 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2101 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2103 | else |
---|
2104 | if test -n "$ac_ct_CC"; then |
---|
2105 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2106 | else |
---|
2107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2108 | for as_dir in $PATH |
---|
2109 | do |
---|
2110 | IFS=$as_save_IFS |
---|
2111 | test -z "$as_dir" && as_dir=. |
---|
2112 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2113 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2114 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2115 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2116 | break 2 |
---|
2117 | fi |
---|
2118 | done |
---|
2119 | done |
---|
2120 | |
---|
2121 | fi |
---|
2122 | fi |
---|
2123 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2124 | if test -n "$ac_ct_CC"; then |
---|
2125 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2126 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2127 | else |
---|
2128 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2129 | echo "${ECHO_T}no" >&6 |
---|
2130 | fi |
---|
2131 | |
---|
2132 | test -n "$ac_ct_CC" && break |
---|
2133 | done |
---|
2134 | |
---|
2135 | CC=$ac_ct_CC |
---|
2136 | fi |
---|
2137 | |
---|
2138 | |
---|
2139 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2140 | See \`config.log' for more details." >&5 |
---|
2141 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2142 | See \`config.log' for more details." >&2;} |
---|
2143 | { (exit 1); exit 1; }; } |
---|
2144 | |
---|
2145 | # Provide some information about the compiler. |
---|
2146 | echo "$as_me:$LINENO:" \ |
---|
2147 | "checking for C compiler version" >&5 |
---|
2148 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2149 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2150 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2151 | ac_status=$? |
---|
2152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2153 | (exit $ac_status); } |
---|
2154 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2155 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2156 | ac_status=$? |
---|
2157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2158 | (exit $ac_status); } |
---|
2159 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2160 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2161 | ac_status=$? |
---|
2162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2163 | (exit $ac_status); } |
---|
2164 | |
---|
2165 | cat >conftest.$ac_ext <<_ACEOF |
---|
2166 | /* confdefs.h. */ |
---|
2167 | _ACEOF |
---|
2168 | cat confdefs.h >>conftest.$ac_ext |
---|
2169 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2170 | /* end confdefs.h. */ |
---|
2171 | |
---|
2172 | int |
---|
2173 | main () |
---|
2174 | { |
---|
2175 | |
---|
2176 | ; |
---|
2177 | return 0; |
---|
2178 | } |
---|
2179 | _ACEOF |
---|
2180 | ac_clean_files_save=$ac_clean_files |
---|
2181 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
2182 | # Try to create an executable without -o first, disregard a.out. |
---|
2183 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2184 | # of exeext. |
---|
2185 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
2186 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
---|
2187 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2188 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
2189 | (eval $ac_link_default) 2>&5 |
---|
2190 | ac_status=$? |
---|
2191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2192 | (exit $ac_status); }; then |
---|
2193 | # Find the output, starting from the most likely. This scheme is |
---|
2194 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2195 | # resort. |
---|
2196 | |
---|
2197 | # Be careful to initialize this variable, since it used to be cached. |
---|
2198 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2199 | ac_cv_exeext= |
---|
2200 | # b.out is created by i960 compilers. |
---|
2201 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2202 | do |
---|
2203 | test -f "$ac_file" || continue |
---|
2204 | case $ac_file in |
---|
2205 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2206 | ;; |
---|
2207 | conftest.$ac_ext ) |
---|
2208 | # This is the source file. |
---|
2209 | ;; |
---|
2210 | [ab].out ) |
---|
2211 | # We found the default executable, but exeext='' is most |
---|
2212 | # certainly right. |
---|
2213 | break;; |
---|
2214 | *.* ) |
---|
2215 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2216 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2217 | # but it would be cool to find out if it's true. Does anybody |
---|
2218 | # maintain Libtool? --akim. |
---|
2219 | export ac_cv_exeext |
---|
2220 | break;; |
---|
2221 | * ) |
---|
2222 | break;; |
---|
2223 | esac |
---|
2224 | done |
---|
2225 | else |
---|
2226 | echo "$as_me: failed program was:" >&5 |
---|
2227 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2228 | |
---|
2229 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
2230 | See \`config.log' for more details." >&5 |
---|
2231 | echo "$as_me: error: C compiler cannot create executables |
---|
2232 | See \`config.log' for more details." >&2;} |
---|
2233 | { (exit 77); exit 77; }; } |
---|
2234 | fi |
---|
2235 | |
---|
2236 | ac_exeext=$ac_cv_exeext |
---|
2237 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2238 | echo "${ECHO_T}$ac_file" >&6 |
---|
2239 | |
---|
2240 | # Check the compiler produces executables we can run. If not, either |
---|
2241 | # the compiler is broken, or we cross compile. |
---|
2242 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
2243 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
2244 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2245 | # If not cross compiling, check that we can run a simple program. |
---|
2246 | if test "$cross_compiling" != yes; then |
---|
2247 | if { ac_try='./$ac_file' |
---|
2248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2249 | (eval $ac_try) 2>&5 |
---|
2250 | ac_status=$? |
---|
2251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2252 | (exit $ac_status); }; }; then |
---|
2253 | cross_compiling=no |
---|
2254 | else |
---|
2255 | if test "$cross_compiling" = maybe; then |
---|
2256 | cross_compiling=yes |
---|
2257 | else |
---|
2258 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
2259 | If you meant to cross compile, use \`--host'. |
---|
2260 | See \`config.log' for more details." >&5 |
---|
2261 | echo "$as_me: error: cannot run C compiled programs. |
---|
2262 | If you meant to cross compile, use \`--host'. |
---|
2263 | See \`config.log' for more details." >&2;} |
---|
2264 | { (exit 1); exit 1; }; } |
---|
2265 | fi |
---|
2266 | fi |
---|
2267 | fi |
---|
2268 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2269 | echo "${ECHO_T}yes" >&6 |
---|
2270 | |
---|
2271 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2272 | ac_clean_files=$ac_clean_files_save |
---|
2273 | # Check the compiler produces executables we can run. If not, either |
---|
2274 | # the compiler is broken, or we cross compile. |
---|
2275 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2276 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2277 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2278 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2279 | |
---|
2280 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2281 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2282 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2283 | (eval $ac_link) 2>&5 |
---|
2284 | ac_status=$? |
---|
2285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2286 | (exit $ac_status); }; then |
---|
2287 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2288 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2289 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2290 | # `rm'. |
---|
2291 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2292 | test -f "$ac_file" || continue |
---|
2293 | case $ac_file in |
---|
2294 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2295 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2296 | export ac_cv_exeext |
---|
2297 | break;; |
---|
2298 | * ) break;; |
---|
2299 | esac |
---|
2300 | done |
---|
2301 | else |
---|
2302 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2303 | See \`config.log' for more details." >&5 |
---|
2304 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2305 | See \`config.log' for more details." >&2;} |
---|
2306 | { (exit 1); exit 1; }; } |
---|
2307 | fi |
---|
2308 | |
---|
2309 | rm -f conftest$ac_cv_exeext |
---|
2310 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2311 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2312 | |
---|
2313 | rm -f conftest.$ac_ext |
---|
2314 | EXEEXT=$ac_cv_exeext |
---|
2315 | ac_exeext=$EXEEXT |
---|
2316 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2317 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2318 | if test "${ac_cv_objext+set}" = set; then |
---|
2319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2320 | else |
---|
2321 | cat >conftest.$ac_ext <<_ACEOF |
---|
2322 | /* confdefs.h. */ |
---|
2323 | _ACEOF |
---|
2324 | cat confdefs.h >>conftest.$ac_ext |
---|
2325 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2326 | /* end confdefs.h. */ |
---|
2327 | |
---|
2328 | int |
---|
2329 | main () |
---|
2330 | { |
---|
2331 | |
---|
2332 | ; |
---|
2333 | return 0; |
---|
2334 | } |
---|
2335 | _ACEOF |
---|
2336 | rm -f conftest.o conftest.obj |
---|
2337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2338 | (eval $ac_compile) 2>&5 |
---|
2339 | ac_status=$? |
---|
2340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2341 | (exit $ac_status); }; then |
---|
2342 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2343 | case $ac_file in |
---|
2344 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2345 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2346 | break;; |
---|
2347 | esac |
---|
2348 | done |
---|
2349 | else |
---|
2350 | echo "$as_me: failed program was:" >&5 |
---|
2351 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2352 | |
---|
2353 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2354 | See \`config.log' for more details." >&5 |
---|
2355 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2356 | See \`config.log' for more details." >&2;} |
---|
2357 | { (exit 1); exit 1; }; } |
---|
2358 | fi |
---|
2359 | |
---|
2360 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2361 | fi |
---|
2362 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2363 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2364 | OBJEXT=$ac_cv_objext |
---|
2365 | ac_objext=$OBJEXT |
---|
2366 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2367 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2368 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2370 | else |
---|
2371 | cat >conftest.$ac_ext <<_ACEOF |
---|
2372 | /* confdefs.h. */ |
---|
2373 | _ACEOF |
---|
2374 | cat confdefs.h >>conftest.$ac_ext |
---|
2375 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2376 | /* end confdefs.h. */ |
---|
2377 | |
---|
2378 | int |
---|
2379 | main () |
---|
2380 | { |
---|
2381 | #ifndef __GNUC__ |
---|
2382 | choke me |
---|
2383 | #endif |
---|
2384 | |
---|
2385 | ; |
---|
2386 | return 0; |
---|
2387 | } |
---|
2388 | _ACEOF |
---|
2389 | rm -f conftest.$ac_objext |
---|
2390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2391 | (eval $ac_compile) 2>conftest.er1 |
---|
2392 | ac_status=$? |
---|
2393 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2394 | rm -f conftest.er1 |
---|
2395 | cat conftest.err >&5 |
---|
2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2397 | (exit $ac_status); } && |
---|
2398 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2399 | || test ! -s conftest.err' |
---|
2400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2401 | (eval $ac_try) 2>&5 |
---|
2402 | ac_status=$? |
---|
2403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2404 | (exit $ac_status); }; } && |
---|
2405 | { ac_try='test -s conftest.$ac_objext' |
---|
2406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2407 | (eval $ac_try) 2>&5 |
---|
2408 | ac_status=$? |
---|
2409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2410 | (exit $ac_status); }; }; then |
---|
2411 | ac_compiler_gnu=yes |
---|
2412 | else |
---|
2413 | echo "$as_me: failed program was:" >&5 |
---|
2414 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2415 | |
---|
2416 | ac_compiler_gnu=no |
---|
2417 | fi |
---|
2418 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2419 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2420 | |
---|
2421 | fi |
---|
2422 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2423 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2424 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2425 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2426 | ac_save_CFLAGS=$CFLAGS |
---|
2427 | CFLAGS="-g" |
---|
2428 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2429 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2430 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2432 | else |
---|
2433 | cat >conftest.$ac_ext <<_ACEOF |
---|
2434 | /* confdefs.h. */ |
---|
2435 | _ACEOF |
---|
2436 | cat confdefs.h >>conftest.$ac_ext |
---|
2437 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2438 | /* end confdefs.h. */ |
---|
2439 | |
---|
2440 | int |
---|
2441 | main () |
---|
2442 | { |
---|
2443 | |
---|
2444 | ; |
---|
2445 | return 0; |
---|
2446 | } |
---|
2447 | _ACEOF |
---|
2448 | rm -f conftest.$ac_objext |
---|
2449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2450 | (eval $ac_compile) 2>conftest.er1 |
---|
2451 | ac_status=$? |
---|
2452 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2453 | rm -f conftest.er1 |
---|
2454 | cat conftest.err >&5 |
---|
2455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2456 | (exit $ac_status); } && |
---|
2457 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2458 | || test ! -s conftest.err' |
---|
2459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2460 | (eval $ac_try) 2>&5 |
---|
2461 | ac_status=$? |
---|
2462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2463 | (exit $ac_status); }; } && |
---|
2464 | { ac_try='test -s conftest.$ac_objext' |
---|
2465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2466 | (eval $ac_try) 2>&5 |
---|
2467 | ac_status=$? |
---|
2468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2469 | (exit $ac_status); }; }; then |
---|
2470 | ac_cv_prog_cc_g=yes |
---|
2471 | else |
---|
2472 | echo "$as_me: failed program was:" >&5 |
---|
2473 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2474 | |
---|
2475 | ac_cv_prog_cc_g=no |
---|
2476 | fi |
---|
2477 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2478 | fi |
---|
2479 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2480 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2481 | if test "$ac_test_CFLAGS" = set; then |
---|
2482 | CFLAGS=$ac_save_CFLAGS |
---|
2483 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2484 | if test "$GCC" = yes; then |
---|
2485 | CFLAGS="-g -O2" |
---|
2486 | else |
---|
2487 | CFLAGS="-g" |
---|
2488 | fi |
---|
2489 | else |
---|
2490 | if test "$GCC" = yes; then |
---|
2491 | CFLAGS="-O2" |
---|
2492 | else |
---|
2493 | CFLAGS= |
---|
2494 | fi |
---|
2495 | fi |
---|
2496 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2497 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2498 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2500 | else |
---|
2501 | ac_cv_prog_cc_stdc=no |
---|
2502 | ac_save_CC=$CC |
---|
2503 | cat >conftest.$ac_ext <<_ACEOF |
---|
2504 | /* confdefs.h. */ |
---|
2505 | _ACEOF |
---|
2506 | cat confdefs.h >>conftest.$ac_ext |
---|
2507 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2508 | /* end confdefs.h. */ |
---|
2509 | #include <stdarg.h> |
---|
2510 | #include <stdio.h> |
---|
2511 | #include <sys/types.h> |
---|
2512 | #include <sys/stat.h> |
---|
2513 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2514 | struct buf { int x; }; |
---|
2515 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2516 | static char *e (p, i) |
---|
2517 | char **p; |
---|
2518 | int i; |
---|
2519 | { |
---|
2520 | return p[i]; |
---|
2521 | } |
---|
2522 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2523 | { |
---|
2524 | char *s; |
---|
2525 | va_list v; |
---|
2526 | va_start (v,p); |
---|
2527 | s = g (p, va_arg (v,int)); |
---|
2528 | va_end (v); |
---|
2529 | return s; |
---|
2530 | } |
---|
2531 | |
---|
2532 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2533 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2534 | These don't provoke an error unfortunately, instead are silently treated |
---|
2535 | as 'x'. The following induces an error, until -std1 is added to get |
---|
2536 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2537 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2538 | that's true only with -std1. */ |
---|
2539 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2540 | |
---|
2541 | int test (int i, double x); |
---|
2542 | struct s1 {int (*f) (int a);}; |
---|
2543 | struct s2 {int (*f) (double a);}; |
---|
2544 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2545 | int argc; |
---|
2546 | char **argv; |
---|
2547 | int |
---|
2548 | main () |
---|
2549 | { |
---|
2550 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2551 | ; |
---|
2552 | return 0; |
---|
2553 | } |
---|
2554 | _ACEOF |
---|
2555 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2556 | # breaks some systems' header files. |
---|
2557 | # AIX -qlanglvl=ansi |
---|
2558 | # Ultrix and OSF/1 -std1 |
---|
2559 | # HP-UX 10.20 and later -Ae |
---|
2560 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2561 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2562 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2563 | do |
---|
2564 | CC="$ac_save_CC $ac_arg" |
---|
2565 | rm -f conftest.$ac_objext |
---|
2566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2567 | (eval $ac_compile) 2>conftest.er1 |
---|
2568 | ac_status=$? |
---|
2569 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2570 | rm -f conftest.er1 |
---|
2571 | cat conftest.err >&5 |
---|
2572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2573 | (exit $ac_status); } && |
---|
2574 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2575 | || test ! -s conftest.err' |
---|
2576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2577 | (eval $ac_try) 2>&5 |
---|
2578 | ac_status=$? |
---|
2579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2580 | (exit $ac_status); }; } && |
---|
2581 | { ac_try='test -s conftest.$ac_objext' |
---|
2582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2583 | (eval $ac_try) 2>&5 |
---|
2584 | ac_status=$? |
---|
2585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2586 | (exit $ac_status); }; }; then |
---|
2587 | ac_cv_prog_cc_stdc=$ac_arg |
---|
2588 | break |
---|
2589 | else |
---|
2590 | echo "$as_me: failed program was:" >&5 |
---|
2591 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2592 | |
---|
2593 | fi |
---|
2594 | rm -f conftest.err conftest.$ac_objext |
---|
2595 | done |
---|
2596 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
2597 | CC=$ac_save_CC |
---|
2598 | |
---|
2599 | fi |
---|
2600 | |
---|
2601 | case "x$ac_cv_prog_cc_stdc" in |
---|
2602 | x|xno) |
---|
2603 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
2604 | echo "${ECHO_T}none needed" >&6 ;; |
---|
2605 | *) |
---|
2606 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
2607 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
2608 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
2609 | esac |
---|
2610 | |
---|
2611 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
2612 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
2613 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
2614 | # the declaration of exit, since it's the most demanding environment. |
---|
2615 | cat >conftest.$ac_ext <<_ACEOF |
---|
2616 | #ifndef __cplusplus |
---|
2617 | choke me |
---|
2618 | #endif |
---|
2619 | _ACEOF |
---|
2620 | rm -f conftest.$ac_objext |
---|
2621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2622 | (eval $ac_compile) 2>conftest.er1 |
---|
2623 | ac_status=$? |
---|
2624 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2625 | rm -f conftest.er1 |
---|
2626 | cat conftest.err >&5 |
---|
2627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2628 | (exit $ac_status); } && |
---|
2629 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2630 | || test ! -s conftest.err' |
---|
2631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2632 | (eval $ac_try) 2>&5 |
---|
2633 | ac_status=$? |
---|
2634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2635 | (exit $ac_status); }; } && |
---|
2636 | { ac_try='test -s conftest.$ac_objext' |
---|
2637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2638 | (eval $ac_try) 2>&5 |
---|
2639 | ac_status=$? |
---|
2640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2641 | (exit $ac_status); }; }; then |
---|
2642 | for ac_declaration in \ |
---|
2643 | '' \ |
---|
2644 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2645 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2646 | 'extern "C" void exit (int) throw ();' \ |
---|
2647 | 'extern "C" void exit (int);' \ |
---|
2648 | 'void exit (int);' |
---|
2649 | do |
---|
2650 | cat >conftest.$ac_ext <<_ACEOF |
---|
2651 | /* confdefs.h. */ |
---|
2652 | _ACEOF |
---|
2653 | cat confdefs.h >>conftest.$ac_ext |
---|
2654 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2655 | /* end confdefs.h. */ |
---|
2656 | $ac_declaration |
---|
2657 | #include <stdlib.h> |
---|
2658 | int |
---|
2659 | main () |
---|
2660 | { |
---|
2661 | exit (42); |
---|
2662 | ; |
---|
2663 | return 0; |
---|
2664 | } |
---|
2665 | _ACEOF |
---|
2666 | rm -f conftest.$ac_objext |
---|
2667 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2668 | (eval $ac_compile) 2>conftest.er1 |
---|
2669 | ac_status=$? |
---|
2670 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2671 | rm -f conftest.er1 |
---|
2672 | cat conftest.err >&5 |
---|
2673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2674 | (exit $ac_status); } && |
---|
2675 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2676 | || test ! -s conftest.err' |
---|
2677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2678 | (eval $ac_try) 2>&5 |
---|
2679 | ac_status=$? |
---|
2680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2681 | (exit $ac_status); }; } && |
---|
2682 | { ac_try='test -s conftest.$ac_objext' |
---|
2683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2684 | (eval $ac_try) 2>&5 |
---|
2685 | ac_status=$? |
---|
2686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2687 | (exit $ac_status); }; }; then |
---|
2688 | : |
---|
2689 | else |
---|
2690 | echo "$as_me: failed program was:" >&5 |
---|
2691 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2692 | |
---|
2693 | continue |
---|
2694 | fi |
---|
2695 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2696 | cat >conftest.$ac_ext <<_ACEOF |
---|
2697 | /* confdefs.h. */ |
---|
2698 | _ACEOF |
---|
2699 | cat confdefs.h >>conftest.$ac_ext |
---|
2700 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2701 | /* end confdefs.h. */ |
---|
2702 | $ac_declaration |
---|
2703 | int |
---|
2704 | main () |
---|
2705 | { |
---|
2706 | exit (42); |
---|
2707 | ; |
---|
2708 | return 0; |
---|
2709 | } |
---|
2710 | _ACEOF |
---|
2711 | rm -f conftest.$ac_objext |
---|
2712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2713 | (eval $ac_compile) 2>conftest.er1 |
---|
2714 | ac_status=$? |
---|
2715 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2716 | rm -f conftest.er1 |
---|
2717 | cat conftest.err >&5 |
---|
2718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2719 | (exit $ac_status); } && |
---|
2720 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2721 | || test ! -s conftest.err' |
---|
2722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2723 | (eval $ac_try) 2>&5 |
---|
2724 | ac_status=$? |
---|
2725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2726 | (exit $ac_status); }; } && |
---|
2727 | { ac_try='test -s conftest.$ac_objext' |
---|
2728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2729 | (eval $ac_try) 2>&5 |
---|
2730 | ac_status=$? |
---|
2731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2732 | (exit $ac_status); }; }; then |
---|
2733 | break |
---|
2734 | else |
---|
2735 | echo "$as_me: failed program was:" >&5 |
---|
2736 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2737 | |
---|
2738 | fi |
---|
2739 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2740 | done |
---|
2741 | rm -f conftest* |
---|
2742 | if test -n "$ac_declaration"; then |
---|
2743 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2744 | echo $ac_declaration >>confdefs.h |
---|
2745 | echo '#endif' >>confdefs.h |
---|
2746 | fi |
---|
2747 | |
---|
2748 | else |
---|
2749 | echo "$as_me: failed program was:" >&5 |
---|
2750 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2751 | |
---|
2752 | fi |
---|
2753 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2754 | ac_ext=c |
---|
2755 | ac_cpp='$CPP $CPPFLAGS' |
---|
2756 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2757 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2758 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2759 | |
---|
2760 | if test -z "$CC" ; then |
---|
2761 | { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5 |
---|
2762 | echo "$as_me: error: Failed to find a C compiler!" >&2;} |
---|
2763 | { (exit 1); exit 1; }; } |
---|
2764 | fi |
---|
2765 | # Autoconf incorrectly concludes that cl recognises -g. It doesn't. |
---|
2766 | case "$CC" in |
---|
2767 | clang* ) ;; |
---|
2768 | cl* | */cl* | CL* | */CL* ) |
---|
2769 | if test "$ac_cv_prog_cc_g" = yes ; then |
---|
2770 | ac_cv_prog_cc_g=no |
---|
2771 | { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 |
---|
2772 | echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} |
---|
2773 | fi ;; |
---|
2774 | * ) |
---|
2775 | if test x"$CYGPATH_W" = x ; then |
---|
2776 | CYGPATH_W=echo |
---|
2777 | fi |
---|
2778 | ;; |
---|
2779 | esac |
---|
2780 | CFLAGS="$save_cflags" |
---|
2781 | |
---|
2782 | # add automake conditional so we can recognize cl compiler in makefile |
---|
2783 | coin_cc_is_cl=false |
---|
2784 | case "$CC" in |
---|
2785 | clang* ) ;; |
---|
2786 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
2787 | coin_cc_is_cl=true |
---|
2788 | ;; |
---|
2789 | esac |
---|
2790 | |
---|
2791 | |
---|
2792 | if test $coin_cc_is_cl = true; then |
---|
2793 | COIN_CC_IS_CL_TRUE= |
---|
2794 | COIN_CC_IS_CL_FALSE='#' |
---|
2795 | else |
---|
2796 | COIN_CC_IS_CL_TRUE='#' |
---|
2797 | COIN_CC_IS_CL_FALSE= |
---|
2798 | fi |
---|
2799 | |
---|
2800 | |
---|
2801 | # Check if a project specific CFLAGS variable has been set |
---|
2802 | if test x$COIN_PRJCT != x; then |
---|
2803 | eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set} |
---|
2804 | if test x$coin_tmp = xset; then |
---|
2805 | eval CFLAGS=\${${COIN_PRJCT}_CFLAGS} |
---|
2806 | fi |
---|
2807 | fi |
---|
2808 | |
---|
2809 | if test x"$CFLAGS" = x; then |
---|
2810 | |
---|
2811 | coin_add_cflags= |
---|
2812 | coin_opt_cflags= |
---|
2813 | coin_dbg_cflags= |
---|
2814 | coin_warn_cflags= |
---|
2815 | |
---|
2816 | if test "$GCC" = "yes"; then |
---|
2817 | case "$CC" in |
---|
2818 | icc* | */icc*) |
---|
2819 | ;; |
---|
2820 | *) |
---|
2821 | coin_opt_cflags="-O3" |
---|
2822 | coin_add_cflags="-pipe" |
---|
2823 | coin_dbg_cflags="-g -O0" |
---|
2824 | coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long" |
---|
2825 | case $build in |
---|
2826 | *-darwin*) |
---|
2827 | ;; |
---|
2828 | *) |
---|
2829 | coin_warn_cflags="-pedantic-errors $coin_warn_cflags" |
---|
2830 | ;; |
---|
2831 | esac |
---|
2832 | esac |
---|
2833 | fi |
---|
2834 | if test -z "$coin_opt_cflags"; then |
---|
2835 | case $build in |
---|
2836 | *-cygwin* | *-mingw*) |
---|
2837 | case "$CC" in |
---|
2838 | clang* ) ;; |
---|
2839 | cl* | */cl* | CL* | */CL*) |
---|
2840 | if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then |
---|
2841 | coin_opt_cflags='-MD -O2' |
---|
2842 | coin_dbg_cflags='-MDd' |
---|
2843 | else |
---|
2844 | coin_opt_cflags='-MT -O2' |
---|
2845 | coin_dbg_cflags='-MTd' |
---|
2846 | fi |
---|
2847 | coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE' |
---|
2848 | ;; |
---|
2849 | icl* | */icl* | ICL* | */ICL*) |
---|
2850 | if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then |
---|
2851 | coin_opt_cflags='-MD -Ox' |
---|
2852 | coin_dbg_cflags='-MDd -debug' |
---|
2853 | else |
---|
2854 | coin_opt_cflags='-MT -Ox' |
---|
2855 | coin_dbg_cflags='-MTd -debug' |
---|
2856 | fi |
---|
2857 | coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE' |
---|
2858 | ;; |
---|
2859 | esac |
---|
2860 | ;; |
---|
2861 | *-linux-*) |
---|
2862 | case "$CC" in |
---|
2863 | icc* | */icc*) |
---|
2864 | coin_opt_cflags="-O3 -ip -mp1" |
---|
2865 | coin_add_cflags="" |
---|
2866 | coin_dbg_cflags="-g" |
---|
2867 | # Check if -i_dynamic is necessary (for new glibc library) |
---|
2868 | CFLAGS= |
---|
2869 | cat >conftest.$ac_ext <<_ACEOF |
---|
2870 | /* confdefs.h. */ |
---|
2871 | _ACEOF |
---|
2872 | cat confdefs.h >>conftest.$ac_ext |
---|
2873 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2874 | /* end confdefs.h. */ |
---|
2875 | |
---|
2876 | int |
---|
2877 | main () |
---|
2878 | { |
---|
2879 | int i=0; i++; |
---|
2880 | ; |
---|
2881 | return 0; |
---|
2882 | } |
---|
2883 | _ACEOF |
---|
2884 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2885 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2886 | (eval $ac_link) 2>conftest.er1 |
---|
2887 | ac_status=$? |
---|
2888 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2889 | rm -f conftest.er1 |
---|
2890 | cat conftest.err >&5 |
---|
2891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2892 | (exit $ac_status); } && |
---|
2893 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2894 | || test ! -s conftest.err' |
---|
2895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2896 | (eval $ac_try) 2>&5 |
---|
2897 | ac_status=$? |
---|
2898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2899 | (exit $ac_status); }; } && |
---|
2900 | { ac_try='test -s conftest$ac_exeext' |
---|
2901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2902 | (eval $ac_try) 2>&5 |
---|
2903 | ac_status=$? |
---|
2904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2905 | (exit $ac_status); }; }; then |
---|
2906 | : |
---|
2907 | else |
---|
2908 | echo "$as_me: failed program was:" >&5 |
---|
2909 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2910 | |
---|
2911 | coin_add_cflags="-i_dynamic $coin_add_cflags" |
---|
2912 | fi |
---|
2913 | rm -f conftest.err conftest.$ac_objext \ |
---|
2914 | conftest$ac_exeext conftest.$ac_ext |
---|
2915 | ;; |
---|
2916 | pgcc* | */pgcc*) |
---|
2917 | coin_opt_cflags="-fast" |
---|
2918 | coin_add_cflags="-Kieee -pc 64" |
---|
2919 | coin_dbg_cflags="-g" |
---|
2920 | ;; |
---|
2921 | esac |
---|
2922 | ;; |
---|
2923 | *-ibm-*) |
---|
2924 | case "$CC" in |
---|
2925 | xlc* | */xlc* | mpxlc* | */mpxlc*) |
---|
2926 | coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" |
---|
2927 | coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" |
---|
2928 | coin_dbg_cflags="-g" |
---|
2929 | ;; |
---|
2930 | esac |
---|
2931 | ;; |
---|
2932 | *-hp-*) |
---|
2933 | coin_opt_cflags="-O" |
---|
2934 | coin_add_cflags="-Ae" |
---|
2935 | coin_dbg_cflags="-g" |
---|
2936 | ;; |
---|
2937 | *-*-solaris*) |
---|
2938 | coin_opt_cflags="-xO4" |
---|
2939 | coin_dbg_cflags="-g" |
---|
2940 | ;; |
---|
2941 | *-sgi-*) |
---|
2942 | coin_opt_cflags="-O -OPT:Olimit=0" |
---|
2943 | coin_dbg_cflags="-g" |
---|
2944 | ;; |
---|
2945 | esac |
---|
2946 | fi |
---|
2947 | |
---|
2948 | if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then |
---|
2949 | coin_dbg_cflags="-g" |
---|
2950 | fi |
---|
2951 | |
---|
2952 | if test -z "$coin_opt_cflags"; then |
---|
2953 | # Try if -O option works if nothing else is set |
---|
2954 | CFLAGS="-O" |
---|
2955 | cat >conftest.$ac_ext <<_ACEOF |
---|
2956 | /* confdefs.h. */ |
---|
2957 | _ACEOF |
---|
2958 | cat confdefs.h >>conftest.$ac_ext |
---|
2959 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2960 | /* end confdefs.h. */ |
---|
2961 | |
---|
2962 | int |
---|
2963 | main () |
---|
2964 | { |
---|
2965 | int i=0; i++; |
---|
2966 | ; |
---|
2967 | return 0; |
---|
2968 | } |
---|
2969 | _ACEOF |
---|
2970 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2972 | (eval $ac_link) 2>conftest.er1 |
---|
2973 | ac_status=$? |
---|
2974 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2975 | rm -f conftest.er1 |
---|
2976 | cat conftest.err >&5 |
---|
2977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2978 | (exit $ac_status); } && |
---|
2979 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2980 | || test ! -s conftest.err' |
---|
2981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2982 | (eval $ac_try) 2>&5 |
---|
2983 | ac_status=$? |
---|
2984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2985 | (exit $ac_status); }; } && |
---|
2986 | { ac_try='test -s conftest$ac_exeext' |
---|
2987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2988 | (eval $ac_try) 2>&5 |
---|
2989 | ac_status=$? |
---|
2990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2991 | (exit $ac_status); }; }; then |
---|
2992 | coin_opt_cflags="-O" |
---|
2993 | else |
---|
2994 | echo "$as_me: failed program was:" >&5 |
---|
2995 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2996 | |
---|
2997 | fi |
---|
2998 | rm -f conftest.err conftest.$ac_objext \ |
---|
2999 | conftest$ac_exeext conftest.$ac_ext |
---|
3000 | fi |
---|
3001 | |
---|
3002 | # if PM doesn't want the warning messages, take them out |
---|
3003 | if test x"$coin_skip_warn_cflags" = xyes; then |
---|
3004 | coin_warn_cflags= |
---|
3005 | fi |
---|
3006 | |
---|
3007 | if test x${DBG_CFLAGS+set} != xset; then |
---|
3008 | DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags" |
---|
3009 | fi |
---|
3010 | if test x${OPT_CFLAGS+set} != xset; then |
---|
3011 | OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags" |
---|
3012 | fi |
---|
3013 | |
---|
3014 | DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS" |
---|
3015 | OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS" |
---|
3016 | |
---|
3017 | if test "$coin_debug_compile" = "true"; then |
---|
3018 | CFLAGS="$DBG_CFLAGS" |
---|
3019 | else |
---|
3020 | CFLAGS="$OPT_CFLAGS" |
---|
3021 | fi |
---|
3022 | else |
---|
3023 | CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" |
---|
3024 | if test x${DBG_CFLAGS+set} != xset; then |
---|
3025 | DBG_CFLAGS="$CFLAGS" |
---|
3026 | fi |
---|
3027 | if test x${OPT_CFLAGS+set} != xset; then |
---|
3028 | OPT_CFLAGS="$CFLAGS" |
---|
3029 | fi |
---|
3030 | fi |
---|
3031 | |
---|
3032 | # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include |
---|
3033 | if test x$COIN_PRJCT != x; then |
---|
3034 | CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD" |
---|
3035 | fi |
---|
3036 | |
---|
3037 | # Try if CFLAGS works |
---|
3038 | save_CFLAGS="$CFLAGS" |
---|
3039 | cat >conftest.$ac_ext <<_ACEOF |
---|
3040 | /* confdefs.h. */ |
---|
3041 | _ACEOF |
---|
3042 | cat confdefs.h >>conftest.$ac_ext |
---|
3043 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3044 | /* end confdefs.h. */ |
---|
3045 | |
---|
3046 | int |
---|
3047 | main () |
---|
3048 | { |
---|
3049 | int i=0; i++; |
---|
3050 | ; |
---|
3051 | return 0; |
---|
3052 | } |
---|
3053 | _ACEOF |
---|
3054 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3056 | (eval $ac_link) 2>conftest.er1 |
---|
3057 | ac_status=$? |
---|
3058 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3059 | rm -f conftest.er1 |
---|
3060 | cat conftest.err >&5 |
---|
3061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3062 | (exit $ac_status); } && |
---|
3063 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3064 | || test ! -s conftest.err' |
---|
3065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3066 | (eval $ac_try) 2>&5 |
---|
3067 | ac_status=$? |
---|
3068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3069 | (exit $ac_status); }; } && |
---|
3070 | { ac_try='test -s conftest$ac_exeext' |
---|
3071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3072 | (eval $ac_try) 2>&5 |
---|
3073 | ac_status=$? |
---|
3074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3075 | (exit $ac_status); }; }; then |
---|
3076 | : |
---|
3077 | else |
---|
3078 | echo "$as_me: failed program was:" >&5 |
---|
3079 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3080 | |
---|
3081 | CFLAGS= |
---|
3082 | fi |
---|
3083 | rm -f conftest.err conftest.$ac_objext \ |
---|
3084 | conftest$ac_exeext conftest.$ac_ext |
---|
3085 | if test -z "$CFLAGS"; then |
---|
3086 | { 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 |
---|
3087 | 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;} |
---|
3088 | CFLAGS='-O' |
---|
3089 | cat >conftest.$ac_ext <<_ACEOF |
---|
3090 | /* confdefs.h. */ |
---|
3091 | _ACEOF |
---|
3092 | cat confdefs.h >>conftest.$ac_ext |
---|
3093 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3094 | /* end confdefs.h. */ |
---|
3095 | |
---|
3096 | int |
---|
3097 | main () |
---|
3098 | { |
---|
3099 | int i=0; i++; |
---|
3100 | ; |
---|
3101 | return 0; |
---|
3102 | } |
---|
3103 | _ACEOF |
---|
3104 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3106 | (eval $ac_link) 2>conftest.er1 |
---|
3107 | ac_status=$? |
---|
3108 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3109 | rm -f conftest.er1 |
---|
3110 | cat conftest.err >&5 |
---|
3111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3112 | (exit $ac_status); } && |
---|
3113 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3114 | || test ! -s conftest.err' |
---|
3115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3116 | (eval $ac_try) 2>&5 |
---|
3117 | ac_status=$? |
---|
3118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3119 | (exit $ac_status); }; } && |
---|
3120 | { ac_try='test -s conftest$ac_exeext' |
---|
3121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3122 | (eval $ac_try) 2>&5 |
---|
3123 | ac_status=$? |
---|
3124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3125 | (exit $ac_status); }; }; then |
---|
3126 | : |
---|
3127 | else |
---|
3128 | echo "$as_me: failed program was:" >&5 |
---|
3129 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3130 | |
---|
3131 | CFLAGS= |
---|
3132 | fi |
---|
3133 | rm -f conftest.err conftest.$ac_objext \ |
---|
3134 | conftest$ac_exeext conftest.$ac_ext |
---|
3135 | if test -z "$CFLAGS"; then |
---|
3136 | { 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 |
---|
3137 | 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;} |
---|
3138 | fi |
---|
3139 | fi |
---|
3140 | |
---|
3141 | { echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5 |
---|
3142 | echo "$as_me: C compiler options are: $CFLAGS" >&6;} |
---|
3143 | |
---|
3144 | |
---|
3145 | if test x"$MPICC" = x; then :; else |
---|
3146 | { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5 |
---|
3147 | echo "$as_me: Will use MPI C compiler $MPICC" >&6;} |
---|
3148 | CC="$MPICC" |
---|
3149 | fi |
---|
3150 | |
---|
3151 | # Correct the LD variable if we are using the MS or Intel-windows compiler |
---|
3152 | case "$CC" in |
---|
3153 | clang* ) ;; |
---|
3154 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
3155 | LD=link |
---|
3156 | ;; |
---|
3157 | esac |
---|
3158 | |
---|
3159 | ac_ext=c |
---|
3160 | ac_cpp='$CPP $CPPFLAGS' |
---|
3161 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3162 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3163 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3164 | |
---|
3165 | |
---|
3166 | case $build in |
---|
3167 | *-cygwin* | *-mingw*) |
---|
3168 | if test "$enable_msvc" = yes ; then |
---|
3169 | coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77" |
---|
3170 | else |
---|
3171 | coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c" |
---|
3172 | fi ;; |
---|
3173 | *-*-solaris*) |
---|
3174 | coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;; |
---|
3175 | *-linux-gnu*) |
---|
3176 | coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;; |
---|
3177 | *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;; |
---|
3178 | esac |
---|
3179 | |
---|
3180 | |
---|
3181 | |
---|
3182 | |
---|
3183 | |
---|
3184 | ac_ext=f |
---|
3185 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
3186 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3187 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
3188 | |
---|
3189 | |
---|
3190 | |
---|
3191 | |
---|
3192 | |
---|
3193 | |
---|
3194 | coin_has_f77=yes |
---|
3195 | |
---|
3196 | save_fflags="$FFLAGS" |
---|
3197 | |
---|
3198 | # We delete the cached value, since the test might not have been |
---|
3199 | # performed with our choice of compilers earlier |
---|
3200 | $as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; } |
---|
3201 | |
---|
3202 | # This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use |
---|
3203 | # coin_f77_comps to see if there's a program that matches one of the names. |
---|
3204 | # If there's no such program, F77 = unavailable. If we match the name, |
---|
3205 | # feed AC_PROG_F77 the same search list, just to be sure it's a functioning |
---|
3206 | # compiler. |
---|
3207 | # AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps]) |
---|
3208 | |
---|
3209 | |
---|
3210 | { echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5 |
---|
3211 | echo "$as_me: Trying to determine Fortran compiler name" >&6;} |
---|
3212 | if test -n "$ac_tool_prefix"; then |
---|
3213 | for ac_prog in $coin_f77_comps |
---|
3214 | do |
---|
3215 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3216 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3217 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3218 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3219 | if test "${ac_cv_prog_F77+set}" = set; then |
---|
3220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3221 | else |
---|
3222 | if test -n "$F77"; then |
---|
3223 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
3224 | else |
---|
3225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3226 | for as_dir in $PATH |
---|
3227 | do |
---|
3228 | IFS=$as_save_IFS |
---|
3229 | test -z "$as_dir" && as_dir=. |
---|
3230 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3231 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3232 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
3233 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3234 | break 2 |
---|
3235 | fi |
---|
3236 | done |
---|
3237 | done |
---|
3238 | |
---|
3239 | fi |
---|
3240 | fi |
---|
3241 | F77=$ac_cv_prog_F77 |
---|
3242 | if test -n "$F77"; then |
---|
3243 | echo "$as_me:$LINENO: result: $F77" >&5 |
---|
3244 | echo "${ECHO_T}$F77" >&6 |
---|
3245 | else |
---|
3246 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3247 | echo "${ECHO_T}no" >&6 |
---|
3248 | fi |
---|
3249 | |
---|
3250 | test -n "$F77" && break |
---|
3251 | done |
---|
3252 | fi |
---|
3253 | if test -z "$F77"; then |
---|
3254 | ac_ct_F77=$F77 |
---|
3255 | for ac_prog in $coin_f77_comps |
---|
3256 | do |
---|
3257 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3258 | set dummy $ac_prog; ac_word=$2 |
---|
3259 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3260 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3261 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
---|
3262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3263 | else |
---|
3264 | if test -n "$ac_ct_F77"; then |
---|
3265 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
3266 | else |
---|
3267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3268 | for as_dir in $PATH |
---|
3269 | do |
---|
3270 | IFS=$as_save_IFS |
---|
3271 | test -z "$as_dir" && as_dir=. |
---|
3272 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3273 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3274 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
3275 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3276 | break 2 |
---|
3277 | fi |
---|
3278 | done |
---|
3279 | done |
---|
3280 | |
---|
3281 | fi |
---|
3282 | fi |
---|
3283 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
3284 | if test -n "$ac_ct_F77"; then |
---|
3285 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
---|
3286 | echo "${ECHO_T}$ac_ct_F77" >&6 |
---|
3287 | else |
---|
3288 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3289 | echo "${ECHO_T}no" >&6 |
---|
3290 | fi |
---|
3291 | |
---|
3292 | test -n "$ac_ct_F77" && break |
---|
3293 | done |
---|
3294 | test -n "$ac_ct_F77" || ac_ct_F77="unavailable" |
---|
3295 | |
---|
3296 | F77=$ac_ct_F77 |
---|
3297 | fi |
---|
3298 | |
---|
3299 | |
---|
3300 | if test "$F77" != "unavailable" ; then |
---|
3301 | ac_ext=f |
---|
3302 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
3303 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3304 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
3305 | if test -n "$ac_tool_prefix"; then |
---|
3306 | for ac_prog in $coin_f77_comps |
---|
3307 | do |
---|
3308 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3309 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3310 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3311 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3312 | if test "${ac_cv_prog_F77+set}" = set; then |
---|
3313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3314 | else |
---|
3315 | if test -n "$F77"; then |
---|
3316 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
3317 | else |
---|
3318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3319 | for as_dir in $PATH |
---|
3320 | do |
---|
3321 | IFS=$as_save_IFS |
---|
3322 | test -z "$as_dir" && as_dir=. |
---|
3323 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3324 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3325 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
3326 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3327 | break 2 |
---|
3328 | fi |
---|
3329 | done |
---|
3330 | done |
---|
3331 | |
---|
3332 | fi |
---|
3333 | fi |
---|
3334 | F77=$ac_cv_prog_F77 |
---|
3335 | if test -n "$F77"; then |
---|
3336 | echo "$as_me:$LINENO: result: $F77" >&5 |
---|
3337 | echo "${ECHO_T}$F77" >&6 |
---|
3338 | else |
---|
3339 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3340 | echo "${ECHO_T}no" >&6 |
---|
3341 | fi |
---|
3342 | |
---|
3343 | test -n "$F77" && break |
---|
3344 | done |
---|
3345 | fi |
---|
3346 | if test -z "$F77"; then |
---|
3347 | ac_ct_F77=$F77 |
---|
3348 | for ac_prog in $coin_f77_comps |
---|
3349 | do |
---|
3350 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3351 | set dummy $ac_prog; ac_word=$2 |
---|
3352 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3353 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3354 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
---|
3355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3356 | else |
---|
3357 | if test -n "$ac_ct_F77"; then |
---|
3358 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
3359 | else |
---|
3360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3361 | for as_dir in $PATH |
---|
3362 | do |
---|
3363 | IFS=$as_save_IFS |
---|
3364 | test -z "$as_dir" && as_dir=. |
---|
3365 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3366 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3367 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
3368 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3369 | break 2 |
---|
3370 | fi |
---|
3371 | done |
---|
3372 | done |
---|
3373 | |
---|
3374 | fi |
---|
3375 | fi |
---|
3376 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
3377 | if test -n "$ac_ct_F77"; then |
---|
3378 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
---|
3379 | echo "${ECHO_T}$ac_ct_F77" >&6 |
---|
3380 | else |
---|
3381 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3382 | echo "${ECHO_T}no" >&6 |
---|
3383 | fi |
---|
3384 | |
---|
3385 | test -n "$ac_ct_F77" && break |
---|
3386 | done |
---|
3387 | |
---|
3388 | F77=$ac_ct_F77 |
---|
3389 | fi |
---|
3390 | |
---|
3391 | |
---|
3392 | # Provide some information about the compiler. |
---|
3393 | echo "$as_me:3393:" \ |
---|
3394 | "checking for Fortran 77 compiler version" >&5 |
---|
3395 | ac_compiler=`set X $ac_compile; echo $2` |
---|
3396 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
3397 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
3398 | ac_status=$? |
---|
3399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3400 | (exit $ac_status); } |
---|
3401 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
3402 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
3403 | ac_status=$? |
---|
3404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3405 | (exit $ac_status); } |
---|
3406 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
3407 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
3408 | ac_status=$? |
---|
3409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3410 | (exit $ac_status); } |
---|
3411 | rm -f a.out |
---|
3412 | |
---|
3413 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
3414 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
3415 | ac_save_ext=$ac_ext |
---|
3416 | ac_ext=F |
---|
3417 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
---|
3418 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
---|
3419 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
---|
3420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3421 | else |
---|
3422 | cat >conftest.$ac_ext <<_ACEOF |
---|
3423 | program main |
---|
3424 | #ifndef __GNUC__ |
---|
3425 | choke me |
---|
3426 | #endif |
---|
3427 | |
---|
3428 | end |
---|
3429 | _ACEOF |
---|
3430 | rm -f conftest.$ac_objext |
---|
3431 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3432 | (eval $ac_compile) 2>conftest.er1 |
---|
3433 | ac_status=$? |
---|
3434 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3435 | rm -f conftest.er1 |
---|
3436 | cat conftest.err >&5 |
---|
3437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3438 | (exit $ac_status); } && |
---|
3439 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3440 | || test ! -s conftest.err' |
---|
3441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3442 | (eval $ac_try) 2>&5 |
---|
3443 | ac_status=$? |
---|
3444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3445 | (exit $ac_status); }; } && |
---|
3446 | { ac_try='test -s conftest.$ac_objext' |
---|
3447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3448 | (eval $ac_try) 2>&5 |
---|
3449 | ac_status=$? |
---|
3450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3451 | (exit $ac_status); }; }; then |
---|
3452 | ac_compiler_gnu=yes |
---|
3453 | else |
---|
3454 | echo "$as_me: failed program was:" >&5 |
---|
3455 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3456 | |
---|
3457 | ac_compiler_gnu=no |
---|
3458 | fi |
---|
3459 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3460 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
---|
3461 | |
---|
3462 | fi |
---|
3463 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
---|
3464 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
---|
3465 | ac_ext=$ac_save_ext |
---|
3466 | ac_test_FFLAGS=${FFLAGS+set} |
---|
3467 | ac_save_FFLAGS=$FFLAGS |
---|
3468 | FFLAGS= |
---|
3469 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
---|
3470 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
---|
3471 | if test "${ac_cv_prog_f77_g+set}" = set; then |
---|
3472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3473 | else |
---|
3474 | FFLAGS=-g |
---|
3475 | cat >conftest.$ac_ext <<_ACEOF |
---|
3476 | program main |
---|
3477 | |
---|
3478 | end |
---|
3479 | _ACEOF |
---|
3480 | rm -f conftest.$ac_objext |
---|
3481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3482 | (eval $ac_compile) 2>conftest.er1 |
---|
3483 | ac_status=$? |
---|
3484 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3485 | rm -f conftest.er1 |
---|
3486 | cat conftest.err >&5 |
---|
3487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3488 | (exit $ac_status); } && |
---|
3489 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3490 | || test ! -s conftest.err' |
---|
3491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3492 | (eval $ac_try) 2>&5 |
---|
3493 | ac_status=$? |
---|
3494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3495 | (exit $ac_status); }; } && |
---|
3496 | { ac_try='test -s conftest.$ac_objext' |
---|
3497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3498 | (eval $ac_try) 2>&5 |
---|
3499 | ac_status=$? |
---|
3500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3501 | (exit $ac_status); }; }; then |
---|
3502 | ac_cv_prog_f77_g=yes |
---|
3503 | else |
---|
3504 | echo "$as_me: failed program was:" >&5 |
---|
3505 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3506 | |
---|
3507 | ac_cv_prog_f77_g=no |
---|
3508 | fi |
---|
3509 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3510 | |
---|
3511 | fi |
---|
3512 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
---|
3513 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
---|
3514 | if test "$ac_test_FFLAGS" = set; then |
---|
3515 | FFLAGS=$ac_save_FFLAGS |
---|
3516 | elif test $ac_cv_prog_f77_g = yes; then |
---|
3517 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
3518 | FFLAGS="-g -O2" |
---|
3519 | else |
---|
3520 | FFLAGS="-g" |
---|
3521 | fi |
---|
3522 | else |
---|
3523 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
3524 | FFLAGS="-O2" |
---|
3525 | else |
---|
3526 | FFLAGS= |
---|
3527 | fi |
---|
3528 | fi |
---|
3529 | |
---|
3530 | G77=`test $ac_compiler_gnu = yes && echo yes` |
---|
3531 | ac_ext=f |
---|
3532 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
3533 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3534 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
3535 | |
---|
3536 | else |
---|
3537 | { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5 |
---|
3538 | echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;} |
---|
3539 | fi |
---|
3540 | |
---|
3541 | FFLAGS="$save_fflags" |
---|
3542 | |
---|
3543 | # Check if a project specific FFLAGS variable has been set |
---|
3544 | if test x$COIN_PRJCT != x; then |
---|
3545 | eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set} |
---|
3546 | if test x$coin_tmp = xset; then |
---|
3547 | eval FFLAGS=\${${COIN_PRJCT}_FFLAGS} |
---|
3548 | fi |
---|
3549 | fi |
---|
3550 | |
---|
3551 | if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then |
---|
3552 | |
---|
3553 | coin_add_fflags= |
---|
3554 | coin_opt_fflags= |
---|
3555 | coin_dbg_fflags= |
---|
3556 | coin_warn_fflags= |
---|
3557 | |
---|
3558 | if test "$G77" = "yes"; then |
---|
3559 | coin_opt_fflags="-O3" |
---|
3560 | coin_add_fflags="-pipe" |
---|
3561 | coin_dbg_fflags="-g -O0" |
---|
3562 | else |
---|
3563 | case $build in |
---|
3564 | *-cygwin* | *-mingw*) |
---|
3565 | case $F77 in |
---|
3566 | ifort* | */ifort* | IFORT* | */IFORT* ) |
---|
3567 | if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then |
---|
3568 | coin_opt_fflags='-MD -O3' |
---|
3569 | coin_dbg_fflags='-MDd -debug' |
---|
3570 | else |
---|
3571 | coin_opt_fflags='-MT -O3' |
---|
3572 | coin_dbg_fflags='-MTd -debug' |
---|
3573 | fi |
---|
3574 | coin_add_fflags='-fpp -nologo' |
---|
3575 | ;; |
---|
3576 | compile_f2c*) |
---|
3577 | if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then |
---|
3578 | coin_opt_fflags='-MD -O2' |
---|
3579 | coin_dbg_fflags='-MDd' |
---|
3580 | else |
---|
3581 | coin_opt_fflags='-MT -O2' |
---|
3582 | coin_dbg_fflags='-MTd' |
---|
3583 | fi |
---|
3584 | coin_add_fflags='-nologo -wd4996' |
---|
3585 | ;; |
---|
3586 | esac |
---|
3587 | ;; |
---|
3588 | *-linux-*) |
---|
3589 | case $F77 in |
---|
3590 | ifc* | */ifc* | ifort* | */ifort*) |
---|
3591 | coin_opt_fflags="-O3 -ip" |
---|
3592 | coin_add_fflags="-cm -w90 -w95" |
---|
3593 | coin_dbg_fflags="-g -CA -CB -CS" |
---|
3594 | # Check if -i_dynamic is necessary (for new glibc library) |
---|
3595 | FFLAGS= |
---|
3596 | cat >conftest.$ac_ext <<_ACEOF |
---|
3597 | program main |
---|
3598 | write(*,*) 'Hello world' |
---|
3599 | end |
---|
3600 | _ACEOF |
---|
3601 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3603 | (eval $ac_link) 2>conftest.er1 |
---|
3604 | ac_status=$? |
---|
3605 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3606 | rm -f conftest.er1 |
---|
3607 | cat conftest.err >&5 |
---|
3608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3609 | (exit $ac_status); } && |
---|
3610 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3611 | || test ! -s conftest.err' |
---|
3612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3613 | (eval $ac_try) 2>&5 |
---|
3614 | ac_status=$? |
---|
3615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3616 | (exit $ac_status); }; } && |
---|
3617 | { ac_try='test -s conftest$ac_exeext' |
---|
3618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3619 | (eval $ac_try) 2>&5 |
---|
3620 | ac_status=$? |
---|
3621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3622 | (exit $ac_status); }; }; then |
---|
3623 | : |
---|
3624 | else |
---|
3625 | echo "$as_me: failed program was:" >&5 |
---|
3626 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3627 | |
---|
3628 | coin_add_fflags="-i_dynamic $coin_add_fflags" |
---|
3629 | fi |
---|
3630 | rm -f conftest.err conftest.$ac_objext \ |
---|
3631 | conftest$ac_exeext conftest.$ac_ext |
---|
3632 | ;; |
---|
3633 | pgf77* | */pgf77* | pgf90* | */pgf90*) |
---|
3634 | coin_opt_fflags="-fast" |
---|
3635 | coin_add_fflags="-Kieee -pc 64" |
---|
3636 | coin_dbg_fflags="-g" |
---|
3637 | ;; |
---|
3638 | esac |
---|
3639 | ;; |
---|
3640 | *-ibm-*) |
---|
3641 | case "$F77" in |
---|
3642 | xlf* | */xlf* | mpxlf* | */mpxlf* ) |
---|
3643 | coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" |
---|
3644 | coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" |
---|
3645 | coin_dbg_fflags="-g -C" |
---|
3646 | ;; |
---|
3647 | esac |
---|
3648 | ;; |
---|
3649 | *-hp-*) |
---|
3650 | coin_opt_fflags="+O3" |
---|
3651 | coin_add_fflags="+U77" |
---|
3652 | coin_dbg_fflags="-C -g" |
---|
3653 | ;; |
---|
3654 | *-*-solaris*) |
---|
3655 | coin_opt_fflags="-O4" |
---|
3656 | coin_dbg_fflags="-g" |
---|
3657 | ;; |
---|
3658 | *-sgi-*) |
---|
3659 | coin_opt_fflags="-O5 -OPT:Olimit=0" |
---|
3660 | coin_dbg_fflags="-g" |
---|
3661 | ;; |
---|
3662 | esac |
---|
3663 | fi |
---|
3664 | |
---|
3665 | if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then |
---|
3666 | coin_dbg_fflags="-g" |
---|
3667 | fi |
---|
3668 | |
---|
3669 | if test -z "$coin_opt_fflags"; then |
---|
3670 | # Try if -O option works if nothing else is set |
---|
3671 | FFLAGS=-O |
---|
3672 | cat >conftest.$ac_ext <<_ACEOF |
---|
3673 | program main |
---|
3674 | integer i |
---|
3675 | end |
---|
3676 | _ACEOF |
---|
3677 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3679 | (eval $ac_link) 2>conftest.er1 |
---|
3680 | ac_status=$? |
---|
3681 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3682 | rm -f conftest.er1 |
---|
3683 | cat conftest.err >&5 |
---|
3684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3685 | (exit $ac_status); } && |
---|
3686 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3687 | || test ! -s conftest.err' |
---|
3688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3689 | (eval $ac_try) 2>&5 |
---|
3690 | ac_status=$? |
---|
3691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3692 | (exit $ac_status); }; } && |
---|
3693 | { ac_try='test -s conftest$ac_exeext' |
---|
3694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3695 | (eval $ac_try) 2>&5 |
---|
3696 | ac_status=$? |
---|
3697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3698 | (exit $ac_status); }; }; then |
---|
3699 | coin_opt_fflags="-O" |
---|
3700 | else |
---|
3701 | echo "$as_me: failed program was:" >&5 |
---|
3702 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3703 | |
---|
3704 | fi |
---|
3705 | rm -f conftest.err conftest.$ac_objext \ |
---|
3706 | conftest$ac_exeext conftest.$ac_ext |
---|
3707 | fi |
---|
3708 | |
---|
3709 | # if PM doesn't want the warning messages, take them out |
---|
3710 | if test x"$coin_skip_warn_fflags" = xyes; then |
---|
3711 | coin_warn_fflags= |
---|
3712 | fi |
---|
3713 | |
---|
3714 | if test x${DBG_FFLAGS+set} != xset; then |
---|
3715 | DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags" |
---|
3716 | fi |
---|
3717 | if test x${OPT_FFLAGS+set} != xset; then |
---|
3718 | OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags" |
---|
3719 | fi |
---|
3720 | |
---|
3721 | DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS" |
---|
3722 | OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS" |
---|
3723 | |
---|
3724 | if test "$coin_debug_compile" = "true"; then |
---|
3725 | FFLAGS="$DBG_FFLAGS" |
---|
3726 | else |
---|
3727 | FFLAGS="$OPT_FFLAGS" |
---|
3728 | fi |
---|
3729 | else |
---|
3730 | FFLAGS="$FFLAGS $ADD_FFLAGS" |
---|
3731 | if test x${DBG_FFLAGS+set} != xset; then |
---|
3732 | DBG_FFLAGS="$FFLAGS" |
---|
3733 | fi |
---|
3734 | if test x${OPT_FFLAGS+set} != xset; then |
---|
3735 | OPT_FFLAGS="$FFLAGS" |
---|
3736 | fi |
---|
3737 | fi |
---|
3738 | |
---|
3739 | # Try if FFLAGS works |
---|
3740 | if test "$F77" != "unavailable" ; then |
---|
3741 | cat >conftest.$ac_ext <<_ACEOF |
---|
3742 | program main |
---|
3743 | integer i |
---|
3744 | end |
---|
3745 | _ACEOF |
---|
3746 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3748 | (eval $ac_link) 2>conftest.er1 |
---|
3749 | ac_status=$? |
---|
3750 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3751 | rm -f conftest.er1 |
---|
3752 | cat conftest.err >&5 |
---|
3753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3754 | (exit $ac_status); } && |
---|
3755 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3756 | || test ! -s conftest.err' |
---|
3757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3758 | (eval $ac_try) 2>&5 |
---|
3759 | ac_status=$? |
---|
3760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3761 | (exit $ac_status); }; } && |
---|
3762 | { ac_try='test -s conftest$ac_exeext' |
---|
3763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3764 | (eval $ac_try) 2>&5 |
---|
3765 | ac_status=$? |
---|
3766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3767 | (exit $ac_status); }; }; then |
---|
3768 | : |
---|
3769 | else |
---|
3770 | echo "$as_me: failed program was:" >&5 |
---|
3771 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3772 | |
---|
3773 | FFLAGS= |
---|
3774 | fi |
---|
3775 | rm -f conftest.err conftest.$ac_objext \ |
---|
3776 | conftest$ac_exeext conftest.$ac_ext |
---|
3777 | if test -z "$FFLAGS"; then |
---|
3778 | { 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 |
---|
3779 | 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;} |
---|
3780 | FFLAGS='-O' |
---|
3781 | cat >conftest.$ac_ext <<_ACEOF |
---|
3782 | program main |
---|
3783 | integer i |
---|
3784 | end |
---|
3785 | _ACEOF |
---|
3786 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3787 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3788 | (eval $ac_link) 2>conftest.er1 |
---|
3789 | ac_status=$? |
---|
3790 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3791 | rm -f conftest.er1 |
---|
3792 | cat conftest.err >&5 |
---|
3793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3794 | (exit $ac_status); } && |
---|
3795 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3796 | || test ! -s conftest.err' |
---|
3797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3798 | (eval $ac_try) 2>&5 |
---|
3799 | ac_status=$? |
---|
3800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3801 | (exit $ac_status); }; } && |
---|
3802 | { ac_try='test -s conftest$ac_exeext' |
---|
3803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3804 | (eval $ac_try) 2>&5 |
---|
3805 | ac_status=$? |
---|
3806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3807 | (exit $ac_status); }; }; then |
---|
3808 | : |
---|
3809 | else |
---|
3810 | echo "$as_me: failed program was:" >&5 |
---|
3811 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3812 | |
---|
3813 | FFLAGS= |
---|
3814 | fi |
---|
3815 | rm -f conftest.err conftest.$ac_objext \ |
---|
3816 | conftest$ac_exeext conftest.$ac_ext |
---|
3817 | if test -z "$FFLAGS"; then |
---|
3818 | { 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 |
---|
3819 | 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;} |
---|
3820 | fi |
---|
3821 | fi |
---|
3822 | fi |
---|
3823 | |
---|
3824 | { echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5 |
---|
3825 | echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;} |
---|
3826 | |
---|
3827 | |
---|
3828 | if test x"$MPIF77" = x; then :; else |
---|
3829 | { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5 |
---|
3830 | echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;} |
---|
3831 | F77="$MPIF77" |
---|
3832 | fi |
---|
3833 | |
---|
3834 | # correct the LD variable if we use the intel fortran compiler in windows |
---|
3835 | case "$F77" in |
---|
3836 | ifort* | */ifort* | IFORT* | */IFORT*) |
---|
3837 | LD=link |
---|
3838 | ;; |
---|
3839 | esac |
---|
3840 | |
---|
3841 | ac_ext=c |
---|
3842 | ac_cpp='$CPP $CPPFLAGS' |
---|
3843 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3844 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3845 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3846 | |
---|
3847 | |
---|
3848 | |
---|
3849 | # Get the linker flags (FLIBS) that are required for linking against this library |
---|
3850 | |
---|
3851 | # get FLIBS |
---|
3852 | ac_ext=f |
---|
3853 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
3854 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3855 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
3856 | echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5 |
---|
3857 | echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6 |
---|
3858 | if test "${ac_cv_prog_f77_v+set}" = set; then |
---|
3859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3860 | else |
---|
3861 | cat >conftest.$ac_ext <<_ACEOF |
---|
3862 | program main |
---|
3863 | |
---|
3864 | end |
---|
3865 | _ACEOF |
---|
3866 | rm -f conftest.$ac_objext |
---|
3867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3868 | (eval $ac_compile) 2>conftest.er1 |
---|
3869 | ac_status=$? |
---|
3870 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3871 | rm -f conftest.er1 |
---|
3872 | cat conftest.err >&5 |
---|
3873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3874 | (exit $ac_status); } && |
---|
3875 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3876 | || test ! -s conftest.err' |
---|
3877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3878 | (eval $ac_try) 2>&5 |
---|
3879 | ac_status=$? |
---|
3880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3881 | (exit $ac_status); }; } && |
---|
3882 | { ac_try='test -s conftest.$ac_objext' |
---|
3883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3884 | (eval $ac_try) 2>&5 |
---|
3885 | ac_status=$? |
---|
3886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3887 | (exit $ac_status); }; }; then |
---|
3888 | ac_cv_prog_f77_v= |
---|
3889 | # Try some options frequently used verbose output |
---|
3890 | for ac_verb in -v -verbose --verbose -V -\#\#\#; do |
---|
3891 | cat >conftest.$ac_ext <<_ACEOF |
---|
3892 | program main |
---|
3893 | |
---|
3894 | end |
---|
3895 | _ACEOF |
---|
3896 | |
---|
3897 | # Compile and link our simple test program by passing a flag (argument |
---|
3898 | # 1 to this macro) to the Fortran compiler in order to get |
---|
3899 | # "verbose" output that we can then parse for the Fortran linker |
---|
3900 | # flags. |
---|
3901 | ac_save_FFLAGS=$FFLAGS |
---|
3902 | FFLAGS="$FFLAGS $ac_verb" |
---|
3903 | (eval echo $as_me:3903: \"$ac_link\") >&5 |
---|
3904 | ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
---|
3905 | echo "$ac_f77_v_output" >&5 |
---|
3906 | FFLAGS=$ac_save_FFLAGS |
---|
3907 | |
---|
3908 | rm -f conftest* |
---|
3909 | |
---|
3910 | # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
---|
3911 | # /foo, /bar, and /baz are search directories for the Fortran linker. |
---|
3912 | # Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
---|
3913 | ac_f77_v_output="`echo $ac_f77_v_output | |
---|
3914 | grep 'LPATH is:' | |
---|
3915 | sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output" |
---|
3916 | |
---|
3917 | case $ac_f77_v_output in |
---|
3918 | # If we are using xlf then replace all the commas with spaces. |
---|
3919 | *xlfentry*) |
---|
3920 | ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; |
---|
3921 | |
---|
3922 | # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
---|
3923 | # $LIBS confuse us, and the libraries appear later in the output anyway). |
---|
3924 | *mGLOB_options_string*) |
---|
3925 | ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; |
---|
3926 | |
---|
3927 | # If we are using Cray Fortran then delete quotes. |
---|
3928 | # Use "\"" instead of '"' for font-lock-mode. |
---|
3929 | # FIXME: a more general fix for quoted arguments with spaces? |
---|
3930 | *cft90*) |
---|
3931 | ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;; |
---|
3932 | esac |
---|
3933 | |
---|
3934 | |
---|
3935 | # look for -l* and *.a constructs in the output |
---|
3936 | for ac_arg in $ac_f77_v_output; do |
---|
3937 | case $ac_arg in |
---|
3938 | [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) |
---|
3939 | ac_cv_prog_f77_v=$ac_verb |
---|
3940 | break 2 ;; |
---|
3941 | esac |
---|
3942 | done |
---|
3943 | done |
---|
3944 | if test -z "$ac_cv_prog_f77_v"; then |
---|
3945 | { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5 |
---|
3946 | echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} |
---|
3947 | fi |
---|
3948 | else |
---|
3949 | echo "$as_me: failed program was:" >&5 |
---|
3950 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3951 | |
---|
3952 | { echo "$as_me:$LINENO: WARNING: compilation failed" >&5 |
---|
3953 | echo "$as_me: WARNING: compilation failed" >&2;} |
---|
3954 | fi |
---|
3955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3956 | |
---|
3957 | fi |
---|
3958 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5 |
---|
3959 | echo "${ECHO_T}$ac_cv_prog_f77_v" >&6 |
---|
3960 | echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5 |
---|
3961 | echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6 |
---|
3962 | if test "${ac_cv_f77_libs+set}" = set; then |
---|
3963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3964 | else |
---|
3965 | if test "x$FLIBS" != "x"; then |
---|
3966 | ac_cv_f77_libs="$FLIBS" # Let the user override the test. |
---|
3967 | else |
---|
3968 | |
---|
3969 | cat >conftest.$ac_ext <<_ACEOF |
---|
3970 | program main |
---|
3971 | |
---|
3972 | end |
---|
3973 | _ACEOF |
---|
3974 | |
---|
3975 | # Compile and link our simple test program by passing a flag (argument |
---|
3976 | # 1 to this macro) to the Fortran compiler in order to get |
---|
3977 | # "verbose" output that we can then parse for the Fortran linker |
---|
3978 | # flags. |
---|
3979 | ac_save_FFLAGS=$FFLAGS |
---|
3980 | FFLAGS="$FFLAGS $ac_cv_prog_f77_v" |
---|
3981 | (eval echo $as_me:3981: \"$ac_link\") >&5 |
---|
3982 | ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
---|
3983 | echo "$ac_f77_v_output" >&5 |
---|
3984 | FFLAGS=$ac_save_FFLAGS |
---|
3985 | |
---|
3986 | rm -f conftest* |
---|
3987 | |
---|
3988 | # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
---|
3989 | # /foo, /bar, and /baz are search directories for the Fortran linker. |
---|
3990 | # Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
---|
3991 | ac_f77_v_output="`echo $ac_f77_v_output | |
---|
3992 | grep 'LPATH is:' | |
---|
3993 | sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output" |
---|
3994 | |
---|
3995 | case $ac_f77_v_output in |
---|
3996 | # If we are using xlf then replace all the commas with spaces. |
---|
3997 | *xlfentry*) |
---|
3998 | ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; |
---|
3999 | |
---|
4000 | # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
---|
4001 | # $LIBS confuse us, and the libraries appear later in the output anyway). |
---|
4002 | *mGLOB_options_string*) |
---|
4003 | ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; |
---|
4004 | |
---|
4005 | # If we are using Cray Fortran then delete quotes. |
---|
4006 | # Use "\"" instead of '"' for font-lock-mode. |
---|
4007 | # FIXME: a more general fix for quoted arguments with spaces? |
---|
4008 | *cft90*) |
---|
4009 | ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;; |
---|
4010 | esac |
---|
4011 | |
---|
4012 | |
---|
4013 | |
---|
4014 | ac_cv_f77_libs= |
---|
4015 | |
---|
4016 | # Save positional arguments (if any) |
---|
4017 | ac_save_positional="$@" |
---|
4018 | |
---|
4019 | set X $ac_f77_v_output |
---|
4020 | while test $# != 1; do |
---|
4021 | shift |
---|
4022 | ac_arg=$1 |
---|
4023 | case $ac_arg in |
---|
4024 | [\\/]*.a | ?:[\\/]*.a) |
---|
4025 | ac_exists=false |
---|
4026 | for ac_i in $ac_cv_f77_libs; do |
---|
4027 | if test x"$ac_arg" = x"$ac_i"; then |
---|
4028 | ac_exists=true |
---|
4029 | break |
---|
4030 | fi |
---|
4031 | done |
---|
4032 | |
---|
4033 | if test x"$ac_exists" = xtrue; then |
---|
4034 | : |
---|
4035 | else |
---|
4036 | ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" |
---|
4037 | fi |
---|
4038 | |
---|
4039 | ;; |
---|
4040 | -bI:*) |
---|
4041 | ac_exists=false |
---|
4042 | for ac_i in $ac_cv_f77_libs; do |
---|
4043 | if test x"$ac_arg" = x"$ac_i"; then |
---|
4044 | ac_exists=true |
---|
4045 | break |
---|
4046 | fi |
---|
4047 | done |
---|
4048 | |
---|
4049 | if test x"$ac_exists" = xtrue; then |
---|
4050 | : |
---|
4051 | else |
---|
4052 | if test "$ac_compiler_gnu" = yes; then |
---|
4053 | for ac_link_opt in $ac_arg; do |
---|
4054 | ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" |
---|
4055 | done |
---|
4056 | else |
---|
4057 | ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" |
---|
4058 | fi |
---|
4059 | fi |
---|
4060 | |
---|
4061 | ;; |
---|
4062 | # Ignore these flags. |
---|
4063 | -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*) |
---|
4064 | ;; |
---|
4065 | -lkernel32) |
---|
4066 | test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" |
---|
4067 | ;; |
---|
4068 | -[LRuY]) |
---|
4069 | # These flags, when seen by themselves, take an argument. |
---|
4070 | # We remove the space between option and argument and re-iterate |
---|
4071 | # unless we find an empty arg or a new option (starting with -) |
---|
4072 | case $2 in |
---|
4073 | "" | -*);; |
---|
4074 | *) |
---|
4075 | ac_arg="$ac_arg$2" |
---|
4076 | shift; shift |
---|
4077 | set X $ac_arg "$@" |
---|
4078 | ;; |
---|
4079 | esac |
---|
4080 | ;; |
---|
4081 | -YP,*) |
---|
4082 | for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
---|
4083 | ac_exists=false |
---|
4084 | for ac_i in $ac_cv_f77_libs; do |
---|
4085 | if test x"$ac_j" = x"$ac_i"; then |
---|
4086 | ac_exists=true |
---|
4087 | break |
---|
4088 | fi |
---|
4089 | done |
---|
4090 | |
---|
4091 | if test x"$ac_exists" = xtrue; then |
---|
4092 | : |
---|
4093 | else |
---|
4094 | ac_arg="$ac_arg $ac_j" |
---|
4095 | ac_cv_f77_libs="$ac_cv_f77_libs $ac_j" |
---|
4096 | fi |
---|
4097 | |
---|
4098 | done |
---|
4099 | ;; |
---|
4100 | -[lLR]*) |
---|
4101 | ac_exists=false |
---|
4102 | for ac_i in $ac_cv_f77_libs; do |
---|
4103 | if test x"$ac_arg" = x"$ac_i"; then |
---|
4104 | ac_exists=true |
---|
4105 | break |
---|
4106 | fi |
---|
4107 | done |
---|
4108 | |
---|
4109 | if test x"$ac_exists" = xtrue; then |
---|
4110 | : |
---|
4111 | else |
---|
4112 | ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" |
---|
4113 | fi |
---|
4114 | |
---|
4115 | ;; |
---|
4116 | # Ignore everything else. |
---|
4117 | esac |
---|
4118 | done |
---|
4119 | # restore positional arguments |
---|
4120 | set X $ac_save_positional; shift |
---|
4121 | |
---|
4122 | # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, |
---|
4123 | # then we insist that the "run path" must be an absolute path (i.e. it |
---|
4124 | # must begin with a "/"). |
---|
4125 | case `(uname -sr) 2>/dev/null` in |
---|
4126 | "SunOS 5"*) |
---|
4127 | ac_ld_run_path=`echo $ac_f77_v_output | |
---|
4128 | sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` |
---|
4129 | test "x$ac_ld_run_path" != x && |
---|
4130 | if test "$ac_compiler_gnu" = yes; then |
---|
4131 | for ac_link_opt in $ac_ld_run_path; do |
---|
4132 | ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" |
---|
4133 | done |
---|
4134 | else |
---|
4135 | ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path" |
---|
4136 | fi |
---|
4137 | ;; |
---|
4138 | esac |
---|
4139 | fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" |
---|
4140 | |
---|
4141 | fi |
---|
4142 | echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5 |
---|
4143 | echo "${ECHO_T}$ac_cv_f77_libs" >&6 |
---|
4144 | FLIBS="$ac_cv_f77_libs" |
---|
4145 | |
---|
4146 | |
---|
4147 | ac_ext=c |
---|
4148 | ac_cpp='$CPP $CPPFLAGS' |
---|
4149 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4150 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4151 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4152 | |
---|
4153 | orig_FLIBS="$FLIBS" |
---|
4154 | |
---|
4155 | # If FLIBS has been set by the user, we just restore its value here |
---|
4156 | if test x"$save_FLIBS" != x; then |
---|
4157 | FLIBS="$save_FLIBS" |
---|
4158 | else |
---|
4159 | # This is to correct a missing exclusion in autoconf 2.59 |
---|
4160 | if test x"$FLIBS" != x; then |
---|
4161 | my_flibs= |
---|
4162 | for flag in $FLIBS; do |
---|
4163 | case $flag in |
---|
4164 | -lcrt*.o) ;; |
---|
4165 | -lcygwin) ;; |
---|
4166 | -lgcc*) ;; |
---|
4167 | *) my_flibs="$my_flibs $flag" ;; |
---|
4168 | esac |
---|
4169 | done |
---|
4170 | FLIBS="$my_flibs" |
---|
4171 | fi |
---|
4172 | |
---|
4173 | case $build in |
---|
4174 | # The following is a fix to define FLIBS for ifort on Windows |
---|
4175 | # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly. |
---|
4176 | # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables. |
---|
4177 | # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line. |
---|
4178 | # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8. |
---|
4179 | # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now. |
---|
4180 | *-cygwin* | *-mingw*) |
---|
4181 | case "$F77" in |
---|
4182 | # ifort* | */ifort* | IFORT* | */IFORT*) |
---|
4183 | # FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib" |
---|
4184 | # if "$coin_debug_compile" = true ; then |
---|
4185 | # FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib" |
---|
4186 | # else |
---|
4187 | # FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib" |
---|
4188 | # fi |
---|
4189 | # ;; |
---|
4190 | compile_f2c*) |
---|
4191 | FLIBS=`$F77 -FLIBS` ;; |
---|
4192 | esac;; |
---|
4193 | *-hp-*) |
---|
4194 | FLIBS="$FLIBS -lm";; |
---|
4195 | *-ibm-*) |
---|
4196 | FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;; |
---|
4197 | *-linux-*) |
---|
4198 | case "$F77" in |
---|
4199 | pgf77* | */pgf77* | pgf90* | */pgf90*) |
---|
4200 | # ask linker to go through the archives multiple times |
---|
4201 | # (the Fortran compiler seems to do that automatically...) |
---|
4202 | FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;; |
---|
4203 | esac |
---|
4204 | esac |
---|
4205 | ac_cv_f77_libs="$FLIBS" |
---|
4206 | fi |
---|
4207 | |
---|
4208 | if test "x$orig_FLIBS" != "x$FLIBS" ; then |
---|
4209 | { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5 |
---|
4210 | echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;} |
---|
4211 | fi |
---|
4212 | |
---|
4213 | ac_ext=f |
---|
4214 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4215 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4216 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4217 | |
---|
4218 | echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5 |
---|
4219 | echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6 |
---|
4220 | if test "${ac_cv_f77_dummy_main+set}" = set; then |
---|
4221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4222 | else |
---|
4223 | ac_f77_dm_save_LIBS=$LIBS |
---|
4224 | LIBS="$LIBS $FLIBS" |
---|
4225 | ac_fortran_dm_var=F77_DUMMY_MAIN |
---|
4226 | ac_ext=c |
---|
4227 | ac_cpp='$CPP $CPPFLAGS' |
---|
4228 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4229 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4230 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4231 | |
---|
4232 | # First, try linking without a dummy main: |
---|
4233 | cat >conftest.$ac_ext <<_ACEOF |
---|
4234 | /* confdefs.h. */ |
---|
4235 | _ACEOF |
---|
4236 | cat confdefs.h >>conftest.$ac_ext |
---|
4237 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4238 | /* end confdefs.h. */ |
---|
4239 | |
---|
4240 | #ifdef F77_DUMMY_MAIN |
---|
4241 | |
---|
4242 | # ifdef __cplusplus |
---|
4243 | extern "C" |
---|
4244 | # endif |
---|
4245 | int F77_DUMMY_MAIN() { return 1; } |
---|
4246 | |
---|
4247 | #endif |
---|
4248 | int |
---|
4249 | main () |
---|
4250 | { |
---|
4251 | |
---|
4252 | ; |
---|
4253 | return 0; |
---|
4254 | } |
---|
4255 | _ACEOF |
---|
4256 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4257 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4258 | (eval $ac_link) 2>conftest.er1 |
---|
4259 | ac_status=$? |
---|
4260 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4261 | rm -f conftest.er1 |
---|
4262 | cat conftest.err >&5 |
---|
4263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4264 | (exit $ac_status); } && |
---|
4265 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4266 | || test ! -s conftest.err' |
---|
4267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4268 | (eval $ac_try) 2>&5 |
---|
4269 | ac_status=$? |
---|
4270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4271 | (exit $ac_status); }; } && |
---|
4272 | { ac_try='test -s conftest$ac_exeext' |
---|
4273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4274 | (eval $ac_try) 2>&5 |
---|
4275 | ac_status=$? |
---|
4276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4277 | (exit $ac_status); }; }; then |
---|
4278 | ac_cv_fortran_dummy_main=none |
---|
4279 | else |
---|
4280 | echo "$as_me: failed program was:" >&5 |
---|
4281 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4282 | |
---|
4283 | ac_cv_fortran_dummy_main=unknown |
---|
4284 | fi |
---|
4285 | rm -f conftest.err conftest.$ac_objext \ |
---|
4286 | conftest$ac_exeext conftest.$ac_ext |
---|
4287 | |
---|
4288 | if test $ac_cv_fortran_dummy_main = unknown; then |
---|
4289 | for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do |
---|
4290 | cat >conftest.$ac_ext <<_ACEOF |
---|
4291 | /* confdefs.h. */ |
---|
4292 | _ACEOF |
---|
4293 | cat confdefs.h >>conftest.$ac_ext |
---|
4294 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4295 | /* end confdefs.h. */ |
---|
4296 | #define $ac_fortran_dm_var $ac_func |
---|
4297 | #ifdef F77_DUMMY_MAIN |
---|
4298 | |
---|
4299 | # ifdef __cplusplus |
---|
4300 | extern "C" |
---|
4301 | # endif |
---|
4302 | int F77_DUMMY_MAIN() { return 1; } |
---|
4303 | |
---|
4304 | #endif |
---|
4305 | int |
---|
4306 | main () |
---|
4307 | { |
---|
4308 | |
---|
4309 | ; |
---|
4310 | return 0; |
---|
4311 | } |
---|
4312 | _ACEOF |
---|
4313 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4315 | (eval $ac_link) 2>conftest.er1 |
---|
4316 | ac_status=$? |
---|
4317 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4318 | rm -f conftest.er1 |
---|
4319 | cat conftest.err >&5 |
---|
4320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4321 | (exit $ac_status); } && |
---|
4322 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4323 | || test ! -s conftest.err' |
---|
4324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4325 | (eval $ac_try) 2>&5 |
---|
4326 | ac_status=$? |
---|
4327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4328 | (exit $ac_status); }; } && |
---|
4329 | { ac_try='test -s conftest$ac_exeext' |
---|
4330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4331 | (eval $ac_try) 2>&5 |
---|
4332 | ac_status=$? |
---|
4333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4334 | (exit $ac_status); }; }; then |
---|
4335 | ac_cv_fortran_dummy_main=$ac_func; break |
---|
4336 | else |
---|
4337 | echo "$as_me: failed program was:" >&5 |
---|
4338 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4339 | |
---|
4340 | fi |
---|
4341 | rm -f conftest.err conftest.$ac_objext \ |
---|
4342 | conftest$ac_exeext conftest.$ac_ext |
---|
4343 | done |
---|
4344 | fi |
---|
4345 | ac_ext=f |
---|
4346 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4347 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4348 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4349 | ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main |
---|
4350 | rm -f conftest* |
---|
4351 | LIBS=$ac_f77_dm_save_LIBS |
---|
4352 | |
---|
4353 | fi |
---|
4354 | echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5 |
---|
4355 | echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6 |
---|
4356 | F77_DUMMY_MAIN=$ac_cv_f77_dummy_main |
---|
4357 | if test "$F77_DUMMY_MAIN" != unknown; then |
---|
4358 | if test $F77_DUMMY_MAIN != none; then |
---|
4359 | |
---|
4360 | cat >>confdefs.h <<_ACEOF |
---|
4361 | #define F77_DUMMY_MAIN $F77_DUMMY_MAIN |
---|
4362 | _ACEOF |
---|
4363 | |
---|
4364 | if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then |
---|
4365 | |
---|
4366 | cat >>confdefs.h <<\_ACEOF |
---|
4367 | #define FC_DUMMY_MAIN_EQ_F77 1 |
---|
4368 | _ACEOF |
---|
4369 | |
---|
4370 | fi |
---|
4371 | fi |
---|
4372 | else |
---|
4373 | { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails |
---|
4374 | See \`config.log' for more details." >&5 |
---|
4375 | echo "$as_me: error: linking to Fortran libraries from C fails |
---|
4376 | See \`config.log' for more details." >&2;} |
---|
4377 | { (exit 1); exit 1; }; } |
---|
4378 | fi |
---|
4379 | |
---|
4380 | |
---|
4381 | ac_ext=f |
---|
4382 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4383 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4384 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4385 | |
---|
4386 | ac_ext=f |
---|
4387 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4388 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4389 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4390 | echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5 |
---|
4391 | echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6 |
---|
4392 | if test "${ac_cv_f77_mangling+set}" = set; then |
---|
4393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4394 | else |
---|
4395 | cat >conftest.$ac_ext <<_ACEOF |
---|
4396 | subroutine foobar() |
---|
4397 | return |
---|
4398 | end |
---|
4399 | subroutine foo_bar() |
---|
4400 | return |
---|
4401 | end |
---|
4402 | _ACEOF |
---|
4403 | rm -f conftest.$ac_objext |
---|
4404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4405 | (eval $ac_compile) 2>conftest.er1 |
---|
4406 | ac_status=$? |
---|
4407 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4408 | rm -f conftest.er1 |
---|
4409 | cat conftest.err >&5 |
---|
4410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4411 | (exit $ac_status); } && |
---|
4412 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
4413 | || test ! -s conftest.err' |
---|
4414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4415 | (eval $ac_try) 2>&5 |
---|
4416 | ac_status=$? |
---|
4417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4418 | (exit $ac_status); }; } && |
---|
4419 | { ac_try='test -s conftest.$ac_objext' |
---|
4420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4421 | (eval $ac_try) 2>&5 |
---|
4422 | ac_status=$? |
---|
4423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4424 | (exit $ac_status); }; }; then |
---|
4425 | mv conftest.$ac_objext cfortran_test.$ac_objext |
---|
4426 | |
---|
4427 | ac_save_LIBS=$LIBS |
---|
4428 | LIBS="cfortran_test.$ac_objext $LIBS $FLIBS" |
---|
4429 | |
---|
4430 | ac_ext=c |
---|
4431 | ac_cpp='$CPP $CPPFLAGS' |
---|
4432 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4433 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4434 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4435 | ac_success=no |
---|
4436 | for ac_foobar in foobar FOOBAR; do |
---|
4437 | for ac_underscore in "" "_"; do |
---|
4438 | ac_func="$ac_foobar$ac_underscore" |
---|
4439 | cat >conftest.$ac_ext <<_ACEOF |
---|
4440 | /* confdefs.h. */ |
---|
4441 | _ACEOF |
---|
4442 | cat confdefs.h >>conftest.$ac_ext |
---|
4443 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4444 | /* end confdefs.h. */ |
---|
4445 | |
---|
4446 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4447 | #ifdef __cplusplus |
---|
4448 | extern "C" |
---|
4449 | #endif |
---|
4450 | /* We use char because int might match the return type of a gcc2 |
---|
4451 | builtin and then its argument prototype would still apply. */ |
---|
4452 | char $ac_func (); |
---|
4453 | #ifdef F77_DUMMY_MAIN |
---|
4454 | |
---|
4455 | # ifdef __cplusplus |
---|
4456 | extern "C" |
---|
4457 | # endif |
---|
4458 | int F77_DUMMY_MAIN() { return 1; } |
---|
4459 | |
---|
4460 | #endif |
---|
4461 | int |
---|
4462 | main () |
---|
4463 | { |
---|
4464 | $ac_func (); |
---|
4465 | ; |
---|
4466 | return 0; |
---|
4467 | } |
---|
4468 | _ACEOF |
---|
4469 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4471 | (eval $ac_link) 2>conftest.er1 |
---|
4472 | ac_status=$? |
---|
4473 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4474 | rm -f conftest.er1 |
---|
4475 | cat conftest.err >&5 |
---|
4476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4477 | (exit $ac_status); } && |
---|
4478 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4479 | || test ! -s conftest.err' |
---|
4480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4481 | (eval $ac_try) 2>&5 |
---|
4482 | ac_status=$? |
---|
4483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4484 | (exit $ac_status); }; } && |
---|
4485 | { ac_try='test -s conftest$ac_exeext' |
---|
4486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4487 | (eval $ac_try) 2>&5 |
---|
4488 | ac_status=$? |
---|
4489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4490 | (exit $ac_status); }; }; then |
---|
4491 | ac_success=yes; break 2 |
---|
4492 | else |
---|
4493 | echo "$as_me: failed program was:" >&5 |
---|
4494 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4495 | |
---|
4496 | fi |
---|
4497 | rm -f conftest.err conftest.$ac_objext \ |
---|
4498 | conftest$ac_exeext conftest.$ac_ext |
---|
4499 | done |
---|
4500 | done |
---|
4501 | ac_ext=f |
---|
4502 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4503 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4504 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4505 | |
---|
4506 | if test "$ac_success" = "yes"; then |
---|
4507 | case $ac_foobar in |
---|
4508 | foobar) |
---|
4509 | ac_case=lower |
---|
4510 | ac_foo_bar=foo_bar |
---|
4511 | ;; |
---|
4512 | FOOBAR) |
---|
4513 | ac_case=upper |
---|
4514 | ac_foo_bar=FOO_BAR |
---|
4515 | ;; |
---|
4516 | esac |
---|
4517 | |
---|
4518 | ac_ext=c |
---|
4519 | ac_cpp='$CPP $CPPFLAGS' |
---|
4520 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4521 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4522 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4523 | ac_success_extra=no |
---|
4524 | for ac_extra in "" "_"; do |
---|
4525 | ac_func="$ac_foo_bar$ac_underscore$ac_extra" |
---|
4526 | cat >conftest.$ac_ext <<_ACEOF |
---|
4527 | /* confdefs.h. */ |
---|
4528 | _ACEOF |
---|
4529 | cat confdefs.h >>conftest.$ac_ext |
---|
4530 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4531 | /* end confdefs.h. */ |
---|
4532 | |
---|
4533 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4534 | #ifdef __cplusplus |
---|
4535 | extern "C" |
---|
4536 | #endif |
---|
4537 | /* We use char because int might match the return type of a gcc2 |
---|
4538 | builtin and then its argument prototype would still apply. */ |
---|
4539 | char $ac_func (); |
---|
4540 | #ifdef F77_DUMMY_MAIN |
---|
4541 | |
---|
4542 | # ifdef __cplusplus |
---|
4543 | extern "C" |
---|
4544 | # endif |
---|
4545 | int F77_DUMMY_MAIN() { return 1; } |
---|
4546 | |
---|
4547 | #endif |
---|
4548 | int |
---|
4549 | main () |
---|
4550 | { |
---|
4551 | $ac_func (); |
---|
4552 | ; |
---|
4553 | return 0; |
---|
4554 | } |
---|
4555 | _ACEOF |
---|
4556 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4557 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4558 | (eval $ac_link) 2>conftest.er1 |
---|
4559 | ac_status=$? |
---|
4560 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4561 | rm -f conftest.er1 |
---|
4562 | cat conftest.err >&5 |
---|
4563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4564 | (exit $ac_status); } && |
---|
4565 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4566 | || test ! -s conftest.err' |
---|
4567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4568 | (eval $ac_try) 2>&5 |
---|
4569 | ac_status=$? |
---|
4570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4571 | (exit $ac_status); }; } && |
---|
4572 | { ac_try='test -s conftest$ac_exeext' |
---|
4573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4574 | (eval $ac_try) 2>&5 |
---|
4575 | ac_status=$? |
---|
4576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4577 | (exit $ac_status); }; }; then |
---|
4578 | ac_success_extra=yes; break |
---|
4579 | else |
---|
4580 | echo "$as_me: failed program was:" >&5 |
---|
4581 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4582 | |
---|
4583 | fi |
---|
4584 | rm -f conftest.err conftest.$ac_objext \ |
---|
4585 | conftest$ac_exeext conftest.$ac_ext |
---|
4586 | done |
---|
4587 | ac_ext=f |
---|
4588 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4589 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4590 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4591 | |
---|
4592 | if test "$ac_success_extra" = "yes"; then |
---|
4593 | ac_cv_f77_mangling="$ac_case case" |
---|
4594 | if test -z "$ac_underscore"; then |
---|
4595 | ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore" |
---|
4596 | else |
---|
4597 | ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore" |
---|
4598 | fi |
---|
4599 | if test -z "$ac_extra"; then |
---|
4600 | ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore" |
---|
4601 | else |
---|
4602 | ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore" |
---|
4603 | fi |
---|
4604 | else |
---|
4605 | ac_cv_f77_mangling="unknown" |
---|
4606 | fi |
---|
4607 | else |
---|
4608 | ac_cv_f77_mangling="unknown" |
---|
4609 | fi |
---|
4610 | |
---|
4611 | LIBS=$ac_save_LIBS |
---|
4612 | rm -f cfortran_test* conftest* |
---|
4613 | else |
---|
4614 | echo "$as_me: failed program was:" >&5 |
---|
4615 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4616 | |
---|
4617 | { { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program |
---|
4618 | See \`config.log' for more details." >&5 |
---|
4619 | echo "$as_me: error: cannot compile a simple Fortran program |
---|
4620 | See \`config.log' for more details." >&2;} |
---|
4621 | { (exit 1); exit 1; }; } |
---|
4622 | fi |
---|
4623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4624 | |
---|
4625 | fi |
---|
4626 | echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5 |
---|
4627 | echo "${ECHO_T}$ac_cv_f77_mangling" >&6 |
---|
4628 | |
---|
4629 | ac_ext=f |
---|
4630 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4631 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4632 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4633 | |
---|
4634 | |
---|
4635 | ac_ext=f |
---|
4636 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4637 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4638 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4639 | |
---|
4640 | ac_ext=f |
---|
4641 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4642 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4643 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4644 | |
---|
4645 | |
---|
4646 | case $ac_cv_f77_mangling in |
---|
4647 | "lower case, no underscore, no extra underscore") |
---|
4648 | cat >>confdefs.h <<\_ACEOF |
---|
4649 | #define F77_FUNC(name,NAME) name |
---|
4650 | _ACEOF |
---|
4651 | |
---|
4652 | cat >>confdefs.h <<\_ACEOF |
---|
4653 | #define F77_FUNC_(name,NAME) name |
---|
4654 | _ACEOF |
---|
4655 | ;; |
---|
4656 | "lower case, no underscore, extra underscore") |
---|
4657 | cat >>confdefs.h <<\_ACEOF |
---|
4658 | #define F77_FUNC(name,NAME) name |
---|
4659 | _ACEOF |
---|
4660 | |
---|
4661 | cat >>confdefs.h <<\_ACEOF |
---|
4662 | #define F77_FUNC_(name,NAME) name ## _ |
---|
4663 | _ACEOF |
---|
4664 | ;; |
---|
4665 | "lower case, underscore, no extra underscore") |
---|
4666 | cat >>confdefs.h <<\_ACEOF |
---|
4667 | #define F77_FUNC(name,NAME) name ## _ |
---|
4668 | _ACEOF |
---|
4669 | |
---|
4670 | cat >>confdefs.h <<\_ACEOF |
---|
4671 | #define F77_FUNC_(name,NAME) name ## _ |
---|
4672 | _ACEOF |
---|
4673 | ;; |
---|
4674 | "lower case, underscore, extra underscore") |
---|
4675 | cat >>confdefs.h <<\_ACEOF |
---|
4676 | #define F77_FUNC(name,NAME) name ## _ |
---|
4677 | _ACEOF |
---|
4678 | |
---|
4679 | cat >>confdefs.h <<\_ACEOF |
---|
4680 | #define F77_FUNC_(name,NAME) name ## __ |
---|
4681 | _ACEOF |
---|
4682 | ;; |
---|
4683 | "upper case, no underscore, no extra underscore") |
---|
4684 | cat >>confdefs.h <<\_ACEOF |
---|
4685 | #define F77_FUNC(name,NAME) NAME |
---|
4686 | _ACEOF |
---|
4687 | |
---|
4688 | cat >>confdefs.h <<\_ACEOF |
---|
4689 | #define F77_FUNC_(name,NAME) NAME |
---|
4690 | _ACEOF |
---|
4691 | ;; |
---|
4692 | "upper case, no underscore, extra underscore") |
---|
4693 | cat >>confdefs.h <<\_ACEOF |
---|
4694 | #define F77_FUNC(name,NAME) NAME |
---|
4695 | _ACEOF |
---|
4696 | |
---|
4697 | cat >>confdefs.h <<\_ACEOF |
---|
4698 | #define F77_FUNC_(name,NAME) NAME ## _ |
---|
4699 | _ACEOF |
---|
4700 | ;; |
---|
4701 | "upper case, underscore, no extra underscore") |
---|
4702 | cat >>confdefs.h <<\_ACEOF |
---|
4703 | #define F77_FUNC(name,NAME) NAME ## _ |
---|
4704 | _ACEOF |
---|
4705 | |
---|
4706 | cat >>confdefs.h <<\_ACEOF |
---|
4707 | #define F77_FUNC_(name,NAME) NAME ## _ |
---|
4708 | _ACEOF |
---|
4709 | ;; |
---|
4710 | "upper case, underscore, extra underscore") |
---|
4711 | cat >>confdefs.h <<\_ACEOF |
---|
4712 | #define F77_FUNC(name,NAME) NAME ## _ |
---|
4713 | _ACEOF |
---|
4714 | |
---|
4715 | cat >>confdefs.h <<\_ACEOF |
---|
4716 | #define F77_FUNC_(name,NAME) NAME ## __ |
---|
4717 | _ACEOF |
---|
4718 | ;; |
---|
4719 | *) |
---|
4720 | { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5 |
---|
4721 | echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} |
---|
4722 | ;; |
---|
4723 | esac |
---|
4724 | |
---|
4725 | ac_ext=f |
---|
4726 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4727 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4728 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4729 | |
---|
4730 | ac_ext=c |
---|
4731 | ac_cpp='$CPP $CPPFLAGS' |
---|
4732 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4733 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4734 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4735 | |
---|
4736 | |
---|
4737 | |
---|
4738 | |
---|
4739 | # Check for Blas |
---|
4740 | |
---|
4741 | |
---|
4742 | # Check whether --enable-pkg-config or --disable-pkg-config was given. |
---|
4743 | if test "${enable_pkg_config+set}" = set; then |
---|
4744 | enableval="$enable_pkg_config" |
---|
4745 | use_pkgconfig="$enableval" |
---|
4746 | else |
---|
4747 | if test x$coin_cc_is_cl = xtrue; then |
---|
4748 | use_pkgconfig=no |
---|
4749 | else |
---|
4750 | use_pkgconfig=yes |
---|
4751 | fi |
---|
4752 | fi; |
---|
4753 | |
---|
4754 | if test $use_pkgconfig = yes ; then |
---|
4755 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
---|
4756 | if test -n "$ac_tool_prefix"; then |
---|
4757 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
---|
4758 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
---|
4759 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4760 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4761 | if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then |
---|
4762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4763 | else |
---|
4764 | if test -n "$PKG_CONFIG"; then |
---|
4765 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
---|
4766 | else |
---|
4767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4768 | for as_dir in $PATH |
---|
4769 | do |
---|
4770 | IFS=$as_save_IFS |
---|
4771 | test -z "$as_dir" && as_dir=. |
---|
4772 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4773 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4774 | ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" |
---|
4775 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4776 | break 2 |
---|
4777 | fi |
---|
4778 | done |
---|
4779 | done |
---|
4780 | |
---|
4781 | fi |
---|
4782 | fi |
---|
4783 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
---|
4784 | if test -n "$PKG_CONFIG"; then |
---|
4785 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
---|
4786 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
---|
4787 | else |
---|
4788 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4789 | echo "${ECHO_T}no" >&6 |
---|
4790 | fi |
---|
4791 | |
---|
4792 | fi |
---|
4793 | if test -z "$ac_cv_prog_PKG_CONFIG"; then |
---|
4794 | ac_ct_PKG_CONFIG=$PKG_CONFIG |
---|
4795 | # Extract the first word of "pkg-config", so it can be a program name with args. |
---|
4796 | set dummy pkg-config; ac_word=$2 |
---|
4797 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4798 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4799 | if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then |
---|
4800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4801 | else |
---|
4802 | if test -n "$ac_ct_PKG_CONFIG"; then |
---|
4803 | ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. |
---|
4804 | else |
---|
4805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4806 | for as_dir in $PATH |
---|
4807 | do |
---|
4808 | IFS=$as_save_IFS |
---|
4809 | test -z "$as_dir" && as_dir=. |
---|
4810 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4811 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4812 | ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" |
---|
4813 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4814 | break 2 |
---|
4815 | fi |
---|
4816 | done |
---|
4817 | done |
---|
4818 | |
---|
4819 | fi |
---|
4820 | fi |
---|
4821 | ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG |
---|
4822 | if test -n "$ac_ct_PKG_CONFIG"; then |
---|
4823 | echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5 |
---|
4824 | echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6 |
---|
4825 | else |
---|
4826 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4827 | echo "${ECHO_T}no" >&6 |
---|
4828 | fi |
---|
4829 | |
---|
4830 | PKG_CONFIG=$ac_ct_PKG_CONFIG |
---|
4831 | else |
---|
4832 | PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" |
---|
4833 | fi |
---|
4834 | |
---|
4835 | fi |
---|
4836 | if test -n "$PKG_CONFIG"; then |
---|
4837 | _pkg_min_version=0.16.0 |
---|
4838 | echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
---|
4839 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 |
---|
4840 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
---|
4841 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4842 | echo "${ECHO_T}yes" >&6 |
---|
4843 | else |
---|
4844 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4845 | echo "${ECHO_T}no" >&6 |
---|
4846 | PKG_CONFIG="" |
---|
4847 | fi |
---|
4848 | fi |
---|
4849 | |
---|
4850 | # check if pkg-config supports the short-errors flag |
---|
4851 | if test -n "$PKG_CONFIG" && \ |
---|
4852 | $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
---|
4853 | pkg_short_errors=" --short-errors " |
---|
4854 | else |
---|
4855 | pkg_short_errors="" |
---|
4856 | fi |
---|
4857 | fi |
---|
4858 | |
---|
4859 | |
---|
4860 | |
---|
4861 | if test -n "$PKG_CONFIG"; then |
---|
4862 | COIN_HAS_PKGCONFIG_TRUE= |
---|
4863 | COIN_HAS_PKGCONFIG_FALSE='#' |
---|
4864 | else |
---|
4865 | COIN_HAS_PKGCONFIG_TRUE='#' |
---|
4866 | COIN_HAS_PKGCONFIG_FALSE= |
---|
4867 | fi |
---|
4868 | |
---|
4869 | |
---|
4870 | |
---|
4871 | # assemble pkg-config search path for installed projects |
---|
4872 | COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
---|
4873 | |
---|
4874 | # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there |
---|
4875 | # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig, |
---|
4876 | # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}... |
---|
4877 | if test "x${prefix}" = xNONE ; then |
---|
4878 | COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" |
---|
4879 | else |
---|
4880 | COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" |
---|
4881 | fi |
---|
4882 | |
---|
4883 | |
---|
4884 | # Check whether --with-coin-instdir or --without-coin-instdir was given. |
---|
4885 | if test "${with_coin_instdir+set}" = set; then |
---|
4886 | withval="$with_coin_instdir" |
---|
4887 | if test -d "$withval"; then : ; else |
---|
4888 | { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5 |
---|
4889 | echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;} |
---|
4890 | { (exit 1); exit 1; }; } |
---|
4891 | fi |
---|
4892 | COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" |
---|
4893 | |
---|
4894 | fi; |
---|
4895 | |
---|
4896 | |
---|
4897 | |
---|
4898 | # assemble additional pkg-config search paths for uninstalled projects |
---|
4899 | if test x$coin_projectdir = xyes ; then |
---|
4900 | # if we are in a project setup, then in a classic setup, we want to find uninstalled projects |
---|
4901 | # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory |
---|
4902 | # unfortunately, if the user set prefix, then we do not know where the project base directory is located |
---|
4903 | # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data) |
---|
4904 | COIN_PKG_CONFIG_PATH_UNINSTALLED= |
---|
4905 | if test -f ../coin_subdirs.txt ; then |
---|
4906 | for i in `cat ../coin_subdirs.txt` ; do |
---|
4907 | if test -d ../$i ; then |
---|
4908 | COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" |
---|
4909 | fi |
---|
4910 | if test -d ../$i/pkgconfig ; then |
---|
4911 | COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" |
---|
4912 | fi |
---|
4913 | done |
---|
4914 | fi |
---|
4915 | |
---|
4916 | if test -f ../../coin_subdirs.txt ; then |
---|
4917 | for i in `cat ../../coin_subdirs.txt` ; do |
---|
4918 | if test -d ../../$i ; then |
---|
4919 | COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" |
---|
4920 | fi |
---|
4921 | if test -d ../../$i/pkgconfig ; then |
---|
4922 | COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" |
---|
4923 | fi |
---|
4924 | done |
---|
4925 | fi |
---|
4926 | |
---|
4927 | |
---|
4928 | fi |
---|
4929 | |
---|
4930 | if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then |
---|
4931 | { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5 |
---|
4932 | echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;} |
---|
4933 | fi |
---|
4934 | |
---|
4935 | |
---|
4936 | |
---|
4937 | |
---|
4938 | # Check whether --with-blas or --without-blas was given. |
---|
4939 | if test "${with_blas+set}" = set; then |
---|
4940 | withval="$with_blas" |
---|
4941 | use_blas="$withval" |
---|
4942 | else |
---|
4943 | use_blas= |
---|
4944 | fi; |
---|
4945 | |
---|
4946 | # if user specified --with-blas-lib, then we should give COIN_CHECK_PACKAGE |
---|
4947 | # preference |
---|
4948 | |
---|
4949 | # Check whether --with-blas-lib or --without-blas-lib was given. |
---|
4950 | if test "${with_blas_lib+set}" = set; then |
---|
4951 | withval="$with_blas_lib" |
---|
4952 | use_blas=BUILD |
---|
4953 | fi; |
---|
4954 | |
---|
4955 | # Check if user supplied option makes sense |
---|
4956 | if test x"$use_blas" != x; then |
---|
4957 | if test "$use_blas" = "BUILD"; then |
---|
4958 | # we come to this later |
---|
4959 | : |
---|
4960 | elif test "$use_blas" != "no"; then |
---|
4961 | echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5 |
---|
4962 | echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6 |
---|
4963 | coin_need_flibs=no |
---|
4964 | coin_save_LIBS="$LIBS" |
---|
4965 | LIBS="$use_blas $LIBS" |
---|
4966 | case $ac_ext in |
---|
4967 | f) |
---|
4968 | cat >conftest.$ac_ext <<_ACEOF |
---|
4969 | /* confdefs.h. */ |
---|
4970 | _ACEOF |
---|
4971 | cat confdefs.h >>conftest.$ac_ext |
---|
4972 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4973 | /* end confdefs.h. */ |
---|
4974 | |
---|
4975 | #ifdef F77_DUMMY_MAIN |
---|
4976 | |
---|
4977 | # ifdef __cplusplus |
---|
4978 | extern "C" |
---|
4979 | # endif |
---|
4980 | int F77_DUMMY_MAIN() { return 1; } |
---|
4981 | |
---|
4982 | #endif |
---|
4983 | int |
---|
4984 | main () |
---|
4985 | { |
---|
4986 | call daxpy |
---|
4987 | ; |
---|
4988 | return 0; |
---|
4989 | } |
---|
4990 | _ACEOF |
---|
4991 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4992 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4993 | (eval $ac_link) 2>conftest.er1 |
---|
4994 | ac_status=$? |
---|
4995 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4996 | rm -f conftest.er1 |
---|
4997 | cat conftest.err >&5 |
---|
4998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4999 | (exit $ac_status); } && |
---|
5000 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5001 | || test ! -s conftest.err' |
---|
5002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5003 | (eval $ac_try) 2>&5 |
---|
5004 | ac_status=$? |
---|
5005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5006 | (exit $ac_status); }; } && |
---|
5007 | { ac_try='test -s conftest$ac_exeext' |
---|
5008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5009 | (eval $ac_try) 2>&5 |
---|
5010 | ac_status=$? |
---|
5011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5012 | (exit $ac_status); }; }; then |
---|
5013 | if test $coin_need_flibs = yes ; then |
---|
5014 | use_blas="$use_blas $FLIBS" |
---|
5015 | fi |
---|
5016 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5017 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5018 | else |
---|
5019 | echo "$as_me: failed program was:" >&5 |
---|
5020 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5021 | |
---|
5022 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5023 | echo "${ECHO_T}no" >&6 |
---|
5024 | { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 |
---|
5025 | echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} |
---|
5026 | { (exit 1); exit 1; }; } |
---|
5027 | fi |
---|
5028 | rm -f conftest.err conftest.$ac_objext \ |
---|
5029 | conftest$ac_exeext conftest.$ac_ext |
---|
5030 | ;; |
---|
5031 | c) |
---|
5032 | ac_ext=f |
---|
5033 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
5034 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5035 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
5036 | case $ac_cv_f77_mangling in |
---|
5037 | upper*) ac_val="DAXPY" ;; |
---|
5038 | lower*) ac_val="daxpy" ;; |
---|
5039 | *) ac_val="unknown" ;; |
---|
5040 | esac |
---|
5041 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
5042 | |
---|
5043 | cfuncdaxpy="$ac_val" |
---|
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 | if test x"$coin_need_flibs" = xyes; then |
---|
5052 | flink_try=no; |
---|
5053 | else |
---|
5054 | cat >conftest.$ac_ext <<_ACEOF |
---|
5055 | /* confdefs.h. */ |
---|
5056 | _ACEOF |
---|
5057 | cat confdefs.h >>conftest.$ac_ext |
---|
5058 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5059 | /* end confdefs.h. */ |
---|
5060 | void $cfuncdaxpy(); |
---|
5061 | #ifdef F77_DUMMY_MAIN |
---|
5062 | |
---|
5063 | # ifdef __cplusplus |
---|
5064 | extern "C" |
---|
5065 | # endif |
---|
5066 | int F77_DUMMY_MAIN() { return 1; } |
---|
5067 | |
---|
5068 | #endif |
---|
5069 | int |
---|
5070 | main () |
---|
5071 | { |
---|
5072 | $cfuncdaxpy() |
---|
5073 | ; |
---|
5074 | return 0; |
---|
5075 | } |
---|
5076 | _ACEOF |
---|
5077 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5078 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5079 | (eval $ac_link) 2>conftest.er1 |
---|
5080 | ac_status=$? |
---|
5081 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5082 | rm -f conftest.er1 |
---|
5083 | cat conftest.err >&5 |
---|
5084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5085 | (exit $ac_status); } && |
---|
5086 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5087 | || test ! -s conftest.err' |
---|
5088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5089 | (eval $ac_try) 2>&5 |
---|
5090 | ac_status=$? |
---|
5091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5092 | (exit $ac_status); }; } && |
---|
5093 | { ac_try='test -s conftest$ac_exeext' |
---|
5094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5095 | (eval $ac_try) 2>&5 |
---|
5096 | ac_status=$? |
---|
5097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5098 | (exit $ac_status); }; }; then |
---|
5099 | flink_try=yes |
---|
5100 | else |
---|
5101 | echo "$as_me: failed program was:" >&5 |
---|
5102 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5103 | |
---|
5104 | flink_try=no |
---|
5105 | fi |
---|
5106 | rm -f conftest.err conftest.$ac_objext \ |
---|
5107 | conftest$ac_exeext conftest.$ac_ext |
---|
5108 | fi |
---|
5109 | if test $flink_try = yes; then |
---|
5110 | if test $coin_need_flibs = yes ; then |
---|
5111 | use_blas="$use_blas $FLIBS" |
---|
5112 | fi |
---|
5113 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5114 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5115 | else |
---|
5116 | if test x"$FLIBS" != x; then |
---|
5117 | flink_save_libs="$LIBS" |
---|
5118 | LIBS="$LIBS $FLIBS" |
---|
5119 | cat >conftest.$ac_ext <<_ACEOF |
---|
5120 | /* confdefs.h. */ |
---|
5121 | _ACEOF |
---|
5122 | cat confdefs.h >>conftest.$ac_ext |
---|
5123 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5124 | /* end confdefs.h. */ |
---|
5125 | void $cfuncdaxpy(); |
---|
5126 | #ifdef F77_DUMMY_MAIN |
---|
5127 | |
---|
5128 | # ifdef __cplusplus |
---|
5129 | extern "C" |
---|
5130 | # endif |
---|
5131 | int F77_DUMMY_MAIN() { return 1; } |
---|
5132 | |
---|
5133 | #endif |
---|
5134 | int |
---|
5135 | main () |
---|
5136 | { |
---|
5137 | $cfuncdaxpy() |
---|
5138 | ; |
---|
5139 | return 0; |
---|
5140 | } |
---|
5141 | _ACEOF |
---|
5142 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5144 | (eval $ac_link) 2>conftest.er1 |
---|
5145 | ac_status=$? |
---|
5146 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5147 | rm -f conftest.er1 |
---|
5148 | cat conftest.err >&5 |
---|
5149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5150 | (exit $ac_status); } && |
---|
5151 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5152 | || test ! -s conftest.err' |
---|
5153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5154 | (eval $ac_try) 2>&5 |
---|
5155 | ac_status=$? |
---|
5156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5157 | (exit $ac_status); }; } && |
---|
5158 | { ac_try='test -s conftest$ac_exeext' |
---|
5159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5160 | (eval $ac_try) 2>&5 |
---|
5161 | ac_status=$? |
---|
5162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5163 | (exit $ac_status); }; }; then |
---|
5164 | LIBS="$flink_save_libs" |
---|
5165 | coin_need_flibs=yes |
---|
5166 | if test $coin_need_flibs = yes ; then |
---|
5167 | use_blas="$use_blas $FLIBS" |
---|
5168 | fi |
---|
5169 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5170 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5171 | |
---|
5172 | else |
---|
5173 | echo "$as_me: failed program was:" >&5 |
---|
5174 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5175 | |
---|
5176 | LIBS="$flink_save_libs" |
---|
5177 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5178 | echo "${ECHO_T}no" >&6 |
---|
5179 | { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 |
---|
5180 | echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} |
---|
5181 | { (exit 1); exit 1; }; } |
---|
5182 | fi |
---|
5183 | rm -f conftest.err conftest.$ac_objext \ |
---|
5184 | conftest$ac_exeext conftest.$ac_ext |
---|
5185 | else |
---|
5186 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5187 | echo "${ECHO_T}no" >&6 |
---|
5188 | { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 |
---|
5189 | echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} |
---|
5190 | { (exit 1); exit 1; }; } |
---|
5191 | fi |
---|
5192 | fi |
---|
5193 | ;; |
---|
5194 | cc|cpp) |
---|
5195 | ac_ext=f |
---|
5196 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
5197 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5198 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
5199 | case $ac_cv_f77_mangling in |
---|
5200 | upper*) ac_val="DAXPY" ;; |
---|
5201 | lower*) ac_val="daxpy" ;; |
---|
5202 | *) ac_val="unknown" ;; |
---|
5203 | esac |
---|
5204 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
5205 | |
---|
5206 | cfuncdaxpy="$ac_val" |
---|
5207 | |
---|
5208 | ac_ext=c |
---|
5209 | ac_cpp='$CPP $CPPFLAGS' |
---|
5210 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5211 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5212 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5213 | |
---|
5214 | if test x"$coin_need_flibs" = xyes; then |
---|
5215 | flink_try=no; |
---|
5216 | else |
---|
5217 | cat >conftest.$ac_ext <<_ACEOF |
---|
5218 | /* confdefs.h. */ |
---|
5219 | _ACEOF |
---|
5220 | cat confdefs.h >>conftest.$ac_ext |
---|
5221 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5222 | /* end confdefs.h. */ |
---|
5223 | extern "C" {void $cfuncdaxpy();} |
---|
5224 | #ifdef F77_DUMMY_MAIN |
---|
5225 | |
---|
5226 | # ifdef __cplusplus |
---|
5227 | extern "C" |
---|
5228 | # endif |
---|
5229 | int F77_DUMMY_MAIN() { return 1; } |
---|
5230 | |
---|
5231 | #endif |
---|
5232 | int |
---|
5233 | main () |
---|
5234 | { |
---|
5235 | $cfuncdaxpy() |
---|
5236 | ; |
---|
5237 | return 0; |
---|
5238 | } |
---|
5239 | _ACEOF |
---|
5240 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5242 | (eval $ac_link) 2>conftest.er1 |
---|
5243 | ac_status=$? |
---|
5244 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5245 | rm -f conftest.er1 |
---|
5246 | cat conftest.err >&5 |
---|
5247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5248 | (exit $ac_status); } && |
---|
5249 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5250 | || test ! -s conftest.err' |
---|
5251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5252 | (eval $ac_try) 2>&5 |
---|
5253 | ac_status=$? |
---|
5254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5255 | (exit $ac_status); }; } && |
---|
5256 | { ac_try='test -s conftest$ac_exeext' |
---|
5257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5258 | (eval $ac_try) 2>&5 |
---|
5259 | ac_status=$? |
---|
5260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5261 | (exit $ac_status); }; }; then |
---|
5262 | flink_try=yes |
---|
5263 | else |
---|
5264 | echo "$as_me: failed program was:" >&5 |
---|
5265 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5266 | |
---|
5267 | flink_try=no |
---|
5268 | fi |
---|
5269 | rm -f conftest.err conftest.$ac_objext \ |
---|
5270 | conftest$ac_exeext conftest.$ac_ext |
---|
5271 | fi |
---|
5272 | if test $flink_try = yes; then |
---|
5273 | if test $coin_need_flibs = yes ; then |
---|
5274 | use_blas="$use_blas $FLIBS" |
---|
5275 | fi |
---|
5276 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5277 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5278 | else |
---|
5279 | if test x"$FLIBS" != x; then |
---|
5280 | flink_save_libs="$LIBS" |
---|
5281 | LIBS="$LIBS $FLIBS" |
---|
5282 | cat >conftest.$ac_ext <<_ACEOF |
---|
5283 | /* confdefs.h. */ |
---|
5284 | _ACEOF |
---|
5285 | cat confdefs.h >>conftest.$ac_ext |
---|
5286 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5287 | /* end confdefs.h. */ |
---|
5288 | extern "C" {void $cfuncdaxpy();} |
---|
5289 | #ifdef F77_DUMMY_MAIN |
---|
5290 | |
---|
5291 | # ifdef __cplusplus |
---|
5292 | extern "C" |
---|
5293 | # endif |
---|
5294 | int F77_DUMMY_MAIN() { return 1; } |
---|
5295 | |
---|
5296 | #endif |
---|
5297 | int |
---|
5298 | main () |
---|
5299 | { |
---|
5300 | $cfuncdaxpy() |
---|
5301 | ; |
---|
5302 | return 0; |
---|
5303 | } |
---|
5304 | _ACEOF |
---|
5305 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5306 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5307 | (eval $ac_link) 2>conftest.er1 |
---|
5308 | ac_status=$? |
---|
5309 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5310 | rm -f conftest.er1 |
---|
5311 | cat conftest.err >&5 |
---|
5312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5313 | (exit $ac_status); } && |
---|
5314 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5315 | || test ! -s conftest.err' |
---|
5316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5317 | (eval $ac_try) 2>&5 |
---|
5318 | ac_status=$? |
---|
5319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5320 | (exit $ac_status); }; } && |
---|
5321 | { ac_try='test -s conftest$ac_exeext' |
---|
5322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5323 | (eval $ac_try) 2>&5 |
---|
5324 | ac_status=$? |
---|
5325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5326 | (exit $ac_status); }; }; then |
---|
5327 | LIBS="$flink_save_libs" |
---|
5328 | coin_need_flibs=yes |
---|
5329 | if test $coin_need_flibs = yes ; then |
---|
5330 | use_blas="$use_blas $FLIBS" |
---|
5331 | fi |
---|
5332 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5333 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5334 | |
---|
5335 | else |
---|
5336 | echo "$as_me: failed program was:" >&5 |
---|
5337 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5338 | |
---|
5339 | LIBS="$flink_save_libs" |
---|
5340 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5341 | echo "${ECHO_T}no" >&6 |
---|
5342 | { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 |
---|
5343 | echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} |
---|
5344 | { (exit 1); exit 1; }; } |
---|
5345 | fi |
---|
5346 | rm -f conftest.err conftest.$ac_objext \ |
---|
5347 | conftest$ac_exeext conftest.$ac_ext |
---|
5348 | else |
---|
5349 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5350 | echo "${ECHO_T}no" >&6 |
---|
5351 | { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 |
---|
5352 | echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} |
---|
5353 | { (exit 1); exit 1; }; } |
---|
5354 | fi |
---|
5355 | fi |
---|
5356 | ;; |
---|
5357 | esac |
---|
5358 | |
---|
5359 | LIBS="$coin_save_LIBS" |
---|
5360 | fi |
---|
5361 | else |
---|
5362 | # Try to autodetect the library for blas based on build system |
---|
5363 | #AC_MSG_CHECKING([default locations for BLAS]) |
---|
5364 | case $build in |
---|
5365 | *-sgi-*) |
---|
5366 | echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5 |
---|
5367 | echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6 |
---|
5368 | coin_need_flibs=no |
---|
5369 | coin_save_LIBS="$LIBS" |
---|
5370 | LIBS="-lcomplib.sgimath $LIBS" |
---|
5371 | case $ac_ext in |
---|
5372 | f) |
---|
5373 | cat >conftest.$ac_ext <<_ACEOF |
---|
5374 | /* confdefs.h. */ |
---|
5375 | _ACEOF |
---|
5376 | cat confdefs.h >>conftest.$ac_ext |
---|
5377 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5378 | /* end confdefs.h. */ |
---|
5379 | |
---|
5380 | #ifdef F77_DUMMY_MAIN |
---|
5381 | |
---|
5382 | # ifdef __cplusplus |
---|
5383 | extern "C" |
---|
5384 | # endif |
---|
5385 | int F77_DUMMY_MAIN() { return 1; } |
---|
5386 | |
---|
5387 | #endif |
---|
5388 | int |
---|
5389 | main () |
---|
5390 | { |
---|
5391 | call daxpy |
---|
5392 | ; |
---|
5393 | return 0; |
---|
5394 | } |
---|
5395 | _ACEOF |
---|
5396 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5397 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5398 | (eval $ac_link) 2>conftest.er1 |
---|
5399 | ac_status=$? |
---|
5400 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5401 | rm -f conftest.er1 |
---|
5402 | cat conftest.err >&5 |
---|
5403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5404 | (exit $ac_status); } && |
---|
5405 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5406 | || test ! -s conftest.err' |
---|
5407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5408 | (eval $ac_try) 2>&5 |
---|
5409 | ac_status=$? |
---|
5410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5411 | (exit $ac_status); }; } && |
---|
5412 | { ac_try='test -s conftest$ac_exeext' |
---|
5413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5414 | (eval $ac_try) 2>&5 |
---|
5415 | ac_status=$? |
---|
5416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5417 | (exit $ac_status); }; }; then |
---|
5418 | use_blas="-lcomplib.sgimath" |
---|
5419 | if test $coin_need_flibs = yes ; then |
---|
5420 | use_blas="$use_blas $FLIBS" |
---|
5421 | fi |
---|
5422 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5423 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5424 | |
---|
5425 | else |
---|
5426 | echo "$as_me: failed program was:" >&5 |
---|
5427 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5428 | |
---|
5429 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5430 | echo "${ECHO_T}no" >&6 |
---|
5431 | fi |
---|
5432 | rm -f conftest.err conftest.$ac_objext \ |
---|
5433 | conftest$ac_exeext conftest.$ac_ext |
---|
5434 | ;; |
---|
5435 | c) |
---|
5436 | ac_ext=f |
---|
5437 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
5438 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5439 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
5440 | case $ac_cv_f77_mangling in |
---|
5441 | upper*) ac_val="DAXPY" ;; |
---|
5442 | lower*) ac_val="daxpy" ;; |
---|
5443 | *) ac_val="unknown" ;; |
---|
5444 | esac |
---|
5445 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
5446 | |
---|
5447 | cfuncdaxpy="$ac_val" |
---|
5448 | |
---|
5449 | ac_ext=c |
---|
5450 | ac_cpp='$CPP $CPPFLAGS' |
---|
5451 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5452 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5453 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5454 | |
---|
5455 | if test x"$coin_need_flibs" = xyes; then |
---|
5456 | flink_try=no; |
---|
5457 | else |
---|
5458 | cat >conftest.$ac_ext <<_ACEOF |
---|
5459 | /* confdefs.h. */ |
---|
5460 | _ACEOF |
---|
5461 | cat confdefs.h >>conftest.$ac_ext |
---|
5462 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5463 | /* end confdefs.h. */ |
---|
5464 | void $cfuncdaxpy(); |
---|
5465 | #ifdef F77_DUMMY_MAIN |
---|
5466 | |
---|
5467 | # ifdef __cplusplus |
---|
5468 | extern "C" |
---|
5469 | # endif |
---|
5470 | int F77_DUMMY_MAIN() { return 1; } |
---|
5471 | |
---|
5472 | #endif |
---|
5473 | int |
---|
5474 | main () |
---|
5475 | { |
---|
5476 | $cfuncdaxpy() |
---|
5477 | ; |
---|
5478 | return 0; |
---|
5479 | } |
---|
5480 | _ACEOF |
---|
5481 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5482 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5483 | (eval $ac_link) 2>conftest.er1 |
---|
5484 | ac_status=$? |
---|
5485 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5486 | rm -f conftest.er1 |
---|
5487 | cat conftest.err >&5 |
---|
5488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5489 | (exit $ac_status); } && |
---|
5490 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5491 | || test ! -s conftest.err' |
---|
5492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5493 | (eval $ac_try) 2>&5 |
---|
5494 | ac_status=$? |
---|
5495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5496 | (exit $ac_status); }; } && |
---|
5497 | { ac_try='test -s conftest$ac_exeext' |
---|
5498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5499 | (eval $ac_try) 2>&5 |
---|
5500 | ac_status=$? |
---|
5501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5502 | (exit $ac_status); }; }; then |
---|
5503 | flink_try=yes |
---|
5504 | else |
---|
5505 | echo "$as_me: failed program was:" >&5 |
---|
5506 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5507 | |
---|
5508 | flink_try=no |
---|
5509 | fi |
---|
5510 | rm -f conftest.err conftest.$ac_objext \ |
---|
5511 | conftest$ac_exeext conftest.$ac_ext |
---|
5512 | fi |
---|
5513 | if test $flink_try = yes; then |
---|
5514 | use_blas="-lcomplib.sgimath" |
---|
5515 | if test $coin_need_flibs = yes ; then |
---|
5516 | use_blas="$use_blas $FLIBS" |
---|
5517 | fi |
---|
5518 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5519 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5520 | |
---|
5521 | else |
---|
5522 | if test x"$FLIBS" != x; then |
---|
5523 | flink_save_libs="$LIBS" |
---|
5524 | LIBS="$LIBS $FLIBS" |
---|
5525 | cat >conftest.$ac_ext <<_ACEOF |
---|
5526 | /* confdefs.h. */ |
---|
5527 | _ACEOF |
---|
5528 | cat confdefs.h >>conftest.$ac_ext |
---|
5529 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5530 | /* end confdefs.h. */ |
---|
5531 | void $cfuncdaxpy(); |
---|
5532 | #ifdef F77_DUMMY_MAIN |
---|
5533 | |
---|
5534 | # ifdef __cplusplus |
---|
5535 | extern "C" |
---|
5536 | # endif |
---|
5537 | int F77_DUMMY_MAIN() { return 1; } |
---|
5538 | |
---|
5539 | #endif |
---|
5540 | int |
---|
5541 | main () |
---|
5542 | { |
---|
5543 | $cfuncdaxpy() |
---|
5544 | ; |
---|
5545 | return 0; |
---|
5546 | } |
---|
5547 | _ACEOF |
---|
5548 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5549 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5550 | (eval $ac_link) 2>conftest.er1 |
---|
5551 | ac_status=$? |
---|
5552 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5553 | rm -f conftest.er1 |
---|
5554 | cat conftest.err >&5 |
---|
5555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5556 | (exit $ac_status); } && |
---|
5557 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5558 | || test ! -s conftest.err' |
---|
5559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5560 | (eval $ac_try) 2>&5 |
---|
5561 | ac_status=$? |
---|
5562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5563 | (exit $ac_status); }; } && |
---|
5564 | { ac_try='test -s conftest$ac_exeext' |
---|
5565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5566 | (eval $ac_try) 2>&5 |
---|
5567 | ac_status=$? |
---|
5568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5569 | (exit $ac_status); }; }; then |
---|
5570 | LIBS="$flink_save_libs" |
---|
5571 | coin_need_flibs=yes |
---|
5572 | use_blas="-lcomplib.sgimath" |
---|
5573 | if test $coin_need_flibs = yes ; then |
---|
5574 | use_blas="$use_blas $FLIBS" |
---|
5575 | fi |
---|
5576 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5577 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5578 | |
---|
5579 | |
---|
5580 | else |
---|
5581 | echo "$as_me: failed program was:" >&5 |
---|
5582 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5583 | |
---|
5584 | LIBS="$flink_save_libs" |
---|
5585 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5586 | echo "${ECHO_T}no" >&6 |
---|
5587 | fi |
---|
5588 | rm -f conftest.err conftest.$ac_objext \ |
---|
5589 | conftest$ac_exeext conftest.$ac_ext |
---|
5590 | else |
---|
5591 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5592 | echo "${ECHO_T}no" >&6 |
---|
5593 | fi |
---|
5594 | fi |
---|
5595 | ;; |
---|
5596 | cc|cpp) |
---|
5597 | ac_ext=f |
---|
5598 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
5599 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5600 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
5601 | case $ac_cv_f77_mangling in |
---|
5602 | upper*) ac_val="DAXPY" ;; |
---|
5603 | lower*) ac_val="daxpy" ;; |
---|
5604 | *) ac_val="unknown" ;; |
---|
5605 | esac |
---|
5606 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
5607 | |
---|
5608 | cfuncdaxpy="$ac_val" |
---|
5609 | |
---|
5610 | ac_ext=c |
---|
5611 | ac_cpp='$CPP $CPPFLAGS' |
---|
5612 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5613 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5614 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5615 | |
---|
5616 | if test x"$coin_need_flibs" = xyes; then |
---|
5617 | flink_try=no; |
---|
5618 | else |
---|
5619 | cat >conftest.$ac_ext <<_ACEOF |
---|
5620 | /* confdefs.h. */ |
---|
5621 | _ACEOF |
---|
5622 | cat confdefs.h >>conftest.$ac_ext |
---|
5623 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5624 | /* end confdefs.h. */ |
---|
5625 | extern "C" {void $cfuncdaxpy();} |
---|
5626 | #ifdef F77_DUMMY_MAIN |
---|
5627 | |
---|
5628 | # ifdef __cplusplus |
---|
5629 | extern "C" |
---|
5630 | # endif |
---|
5631 | int F77_DUMMY_MAIN() { return 1; } |
---|
5632 | |
---|
5633 | #endif |
---|
5634 | int |
---|
5635 | main () |
---|
5636 | { |
---|
5637 | $cfuncdaxpy() |
---|
5638 | ; |
---|
5639 | return 0; |
---|
5640 | } |
---|
5641 | _ACEOF |
---|
5642 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5644 | (eval $ac_link) 2>conftest.er1 |
---|
5645 | ac_status=$? |
---|
5646 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5647 | rm -f conftest.er1 |
---|
5648 | cat conftest.err >&5 |
---|
5649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5650 | (exit $ac_status); } && |
---|
5651 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5652 | || test ! -s conftest.err' |
---|
5653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5654 | (eval $ac_try) 2>&5 |
---|
5655 | ac_status=$? |
---|
5656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5657 | (exit $ac_status); }; } && |
---|
5658 | { ac_try='test -s conftest$ac_exeext' |
---|
5659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5660 | (eval $ac_try) 2>&5 |
---|
5661 | ac_status=$? |
---|
5662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5663 | (exit $ac_status); }; }; then |
---|
5664 | flink_try=yes |
---|
5665 | else |
---|
5666 | echo "$as_me: failed program was:" >&5 |
---|
5667 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5668 | |
---|
5669 | flink_try=no |
---|
5670 | fi |
---|
5671 | rm -f conftest.err conftest.$ac_objext \ |
---|
5672 | conftest$ac_exeext conftest.$ac_ext |
---|
5673 | fi |
---|
5674 | if test $flink_try = yes; then |
---|
5675 | use_blas="-lcomplib.sgimath" |
---|
5676 | if test $coin_need_flibs = yes ; then |
---|
5677 | use_blas="$use_blas $FLIBS" |
---|
5678 | fi |
---|
5679 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5680 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5681 | |
---|
5682 | else |
---|
5683 | if test x"$FLIBS" != x; then |
---|
5684 | flink_save_libs="$LIBS" |
---|
5685 | LIBS="$LIBS $FLIBS" |
---|
5686 | cat >conftest.$ac_ext <<_ACEOF |
---|
5687 | /* confdefs.h. */ |
---|
5688 | _ACEOF |
---|
5689 | cat confdefs.h >>conftest.$ac_ext |
---|
5690 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5691 | /* end confdefs.h. */ |
---|
5692 | extern "C" {void $cfuncdaxpy();} |
---|
5693 | #ifdef F77_DUMMY_MAIN |
---|
5694 | |
---|
5695 | # ifdef __cplusplus |
---|
5696 | extern "C" |
---|
5697 | # endif |
---|
5698 | int F77_DUMMY_MAIN() { return 1; } |
---|
5699 | |
---|
5700 | #endif |
---|
5701 | int |
---|
5702 | main () |
---|
5703 | { |
---|
5704 | $cfuncdaxpy() |
---|
5705 | ; |
---|
5706 | return 0; |
---|
5707 | } |
---|
5708 | _ACEOF |
---|
5709 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5711 | (eval $ac_link) 2>conftest.er1 |
---|
5712 | ac_status=$? |
---|
5713 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5714 | rm -f conftest.er1 |
---|
5715 | cat conftest.err >&5 |
---|
5716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5717 | (exit $ac_status); } && |
---|
5718 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5719 | || test ! -s conftest.err' |
---|
5720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5721 | (eval $ac_try) 2>&5 |
---|
5722 | ac_status=$? |
---|
5723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5724 | (exit $ac_status); }; } && |
---|
5725 | { ac_try='test -s conftest$ac_exeext' |
---|
5726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5727 | (eval $ac_try) 2>&5 |
---|
5728 | ac_status=$? |
---|
5729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5730 | (exit $ac_status); }; }; then |
---|
5731 | LIBS="$flink_save_libs" |
---|
5732 | coin_need_flibs=yes |
---|
5733 | use_blas="-lcomplib.sgimath" |
---|
5734 | if test $coin_need_flibs = yes ; then |
---|
5735 | use_blas="$use_blas $FLIBS" |
---|
5736 | fi |
---|
5737 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5738 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5739 | |
---|
5740 | |
---|
5741 | else |
---|
5742 | echo "$as_me: failed program was:" >&5 |
---|
5743 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5744 | |
---|
5745 | LIBS="$flink_save_libs" |
---|
5746 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5747 | echo "${ECHO_T}no" >&6 |
---|
5748 | fi |
---|
5749 | rm -f conftest.err conftest.$ac_objext \ |
---|
5750 | conftest$ac_exeext conftest.$ac_ext |
---|
5751 | else |
---|
5752 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5753 | echo "${ECHO_T}no" >&6 |
---|
5754 | fi |
---|
5755 | fi |
---|
5756 | ;; |
---|
5757 | esac |
---|
5758 | |
---|
5759 | LIBS="$coin_save_LIBS" |
---|
5760 | ;; |
---|
5761 | |
---|
5762 | # Ideally, we'd use -library=sunperf, but it's an imperfect world. Studio |
---|
5763 | # cc doesn't recognise -library, it wants -xlic_lib. Studio 12 CC doesn't |
---|
5764 | # recognise -xlic_lib. Libtool doesn't like -xlic_lib anyway. Sun claims |
---|
5765 | # that CC and cc will understand -library in Studio 13. The main extra |
---|
5766 | # function of -xlic_lib and -library is to arrange for the Fortran run-time |
---|
5767 | # libraries to be linked for C++ and C. We can arrange that explicitly. |
---|
5768 | *-*-solaris*) |
---|
5769 | echo "$as_me:$LINENO: checking for BLAS in libsunperf" >&5 |
---|
5770 | echo $ECHO_N "checking for BLAS in libsunperf... $ECHO_C" >&6 |
---|
5771 | coin_need_flibs=no |
---|
5772 | coin_save_LIBS="$LIBS" |
---|
5773 | LIBS="-lsunperf $FLIBS $LIBS" |
---|
5774 | case $ac_ext in |
---|
5775 | f) |
---|
5776 | cat >conftest.$ac_ext <<_ACEOF |
---|
5777 | /* confdefs.h. */ |
---|
5778 | _ACEOF |
---|
5779 | cat confdefs.h >>conftest.$ac_ext |
---|
5780 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5781 | /* end confdefs.h. */ |
---|
5782 | |
---|
5783 | #ifdef F77_DUMMY_MAIN |
---|
5784 | |
---|
5785 | # ifdef __cplusplus |
---|
5786 | extern "C" |
---|
5787 | # endif |
---|
5788 | int F77_DUMMY_MAIN() { return 1; } |
---|
5789 | |
---|
5790 | #endif |
---|
5791 | int |
---|
5792 | main () |
---|
5793 | { |
---|
5794 | call daxpy |
---|
5795 | ; |
---|
5796 | return 0; |
---|
5797 | } |
---|
5798 | _ACEOF |
---|
5799 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5801 | (eval $ac_link) 2>conftest.er1 |
---|
5802 | ac_status=$? |
---|
5803 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5804 | rm -f conftest.er1 |
---|
5805 | cat conftest.err >&5 |
---|
5806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5807 | (exit $ac_status); } && |
---|
5808 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5809 | || test ! -s conftest.err' |
---|
5810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5811 | (eval $ac_try) 2>&5 |
---|
5812 | ac_status=$? |
---|
5813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5814 | (exit $ac_status); }; } && |
---|
5815 | { ac_try='test -s conftest$ac_exeext' |
---|
5816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5817 | (eval $ac_try) 2>&5 |
---|
5818 | ac_status=$? |
---|
5819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5820 | (exit $ac_status); }; }; then |
---|
5821 | use_blas='-lsunperf' |
---|
5822 | if test $coin_need_flibs = yes ; then |
---|
5823 | use_blas="$use_blas $FLIBS" |
---|
5824 | fi |
---|
5825 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5826 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5827 | |
---|
5828 | else |
---|
5829 | echo "$as_me: failed program was:" >&5 |
---|
5830 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5831 | |
---|
5832 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5833 | echo "${ECHO_T}no" >&6 |
---|
5834 | fi |
---|
5835 | rm -f conftest.err conftest.$ac_objext \ |
---|
5836 | conftest$ac_exeext conftest.$ac_ext |
---|
5837 | ;; |
---|
5838 | c) |
---|
5839 | ac_ext=f |
---|
5840 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
5841 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5842 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
5843 | case $ac_cv_f77_mangling in |
---|
5844 | upper*) ac_val="DAXPY" ;; |
---|
5845 | lower*) ac_val="daxpy" ;; |
---|
5846 | *) ac_val="unknown" ;; |
---|
5847 | esac |
---|
5848 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
5849 | |
---|
5850 | cfuncdaxpy="$ac_val" |
---|
5851 | |
---|
5852 | ac_ext=c |
---|
5853 | ac_cpp='$CPP $CPPFLAGS' |
---|
5854 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5855 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5856 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5857 | |
---|
5858 | if test x"$coin_need_flibs" = xyes; then |
---|
5859 | flink_try=no; |
---|
5860 | else |
---|
5861 | cat >conftest.$ac_ext <<_ACEOF |
---|
5862 | /* confdefs.h. */ |
---|
5863 | _ACEOF |
---|
5864 | cat confdefs.h >>conftest.$ac_ext |
---|
5865 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5866 | /* end confdefs.h. */ |
---|
5867 | void $cfuncdaxpy(); |
---|
5868 | #ifdef F77_DUMMY_MAIN |
---|
5869 | |
---|
5870 | # ifdef __cplusplus |
---|
5871 | extern "C" |
---|
5872 | # endif |
---|
5873 | int F77_DUMMY_MAIN() { return 1; } |
---|
5874 | |
---|
5875 | #endif |
---|
5876 | int |
---|
5877 | main () |
---|
5878 | { |
---|
5879 | $cfuncdaxpy() |
---|
5880 | ; |
---|
5881 | return 0; |
---|
5882 | } |
---|
5883 | _ACEOF |
---|
5884 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5885 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5886 | (eval $ac_link) 2>conftest.er1 |
---|
5887 | ac_status=$? |
---|
5888 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5889 | rm -f conftest.er1 |
---|
5890 | cat conftest.err >&5 |
---|
5891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5892 | (exit $ac_status); } && |
---|
5893 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5894 | || test ! -s conftest.err' |
---|
5895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5896 | (eval $ac_try) 2>&5 |
---|
5897 | ac_status=$? |
---|
5898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5899 | (exit $ac_status); }; } && |
---|
5900 | { ac_try='test -s conftest$ac_exeext' |
---|
5901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5902 | (eval $ac_try) 2>&5 |
---|
5903 | ac_status=$? |
---|
5904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5905 | (exit $ac_status); }; }; then |
---|
5906 | flink_try=yes |
---|
5907 | else |
---|
5908 | echo "$as_me: failed program was:" >&5 |
---|
5909 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5910 | |
---|
5911 | flink_try=no |
---|
5912 | fi |
---|
5913 | rm -f conftest.err conftest.$ac_objext \ |
---|
5914 | conftest$ac_exeext conftest.$ac_ext |
---|
5915 | fi |
---|
5916 | if test $flink_try = yes; then |
---|
5917 | use_blas='-lsunperf' |
---|
5918 | if test $coin_need_flibs = yes ; then |
---|
5919 | use_blas="$use_blas $FLIBS" |
---|
5920 | fi |
---|
5921 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5922 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5923 | |
---|
5924 | else |
---|
5925 | if test x"$FLIBS" != x; then |
---|
5926 | flink_save_libs="$LIBS" |
---|
5927 | LIBS="$LIBS $FLIBS" |
---|
5928 | cat >conftest.$ac_ext <<_ACEOF |
---|
5929 | /* confdefs.h. */ |
---|
5930 | _ACEOF |
---|
5931 | cat confdefs.h >>conftest.$ac_ext |
---|
5932 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5933 | /* end confdefs.h. */ |
---|
5934 | void $cfuncdaxpy(); |
---|
5935 | #ifdef F77_DUMMY_MAIN |
---|
5936 | |
---|
5937 | # ifdef __cplusplus |
---|
5938 | extern "C" |
---|
5939 | # endif |
---|
5940 | int F77_DUMMY_MAIN() { return 1; } |
---|
5941 | |
---|
5942 | #endif |
---|
5943 | int |
---|
5944 | main () |
---|
5945 | { |
---|
5946 | $cfuncdaxpy() |
---|
5947 | ; |
---|
5948 | return 0; |
---|
5949 | } |
---|
5950 | _ACEOF |
---|
5951 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5952 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5953 | (eval $ac_link) 2>conftest.er1 |
---|
5954 | ac_status=$? |
---|
5955 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5956 | rm -f conftest.er1 |
---|
5957 | cat conftest.err >&5 |
---|
5958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5959 | (exit $ac_status); } && |
---|
5960 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5961 | || test ! -s conftest.err' |
---|
5962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5963 | (eval $ac_try) 2>&5 |
---|
5964 | ac_status=$? |
---|
5965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5966 | (exit $ac_status); }; } && |
---|
5967 | { ac_try='test -s conftest$ac_exeext' |
---|
5968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5969 | (eval $ac_try) 2>&5 |
---|
5970 | ac_status=$? |
---|
5971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5972 | (exit $ac_status); }; }; then |
---|
5973 | LIBS="$flink_save_libs" |
---|
5974 | coin_need_flibs=yes |
---|
5975 | use_blas='-lsunperf' |
---|
5976 | if test $coin_need_flibs = yes ; then |
---|
5977 | use_blas="$use_blas $FLIBS" |
---|
5978 | fi |
---|
5979 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5980 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5981 | |
---|
5982 | |
---|
5983 | else |
---|
5984 | echo "$as_me: failed program was:" >&5 |
---|
5985 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5986 | |
---|
5987 | LIBS="$flink_save_libs" |
---|
5988 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5989 | echo "${ECHO_T}no" >&6 |
---|
5990 | fi |
---|
5991 | rm -f conftest.err conftest.$ac_objext \ |
---|
5992 | conftest$ac_exeext conftest.$ac_ext |
---|
5993 | else |
---|
5994 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5995 | echo "${ECHO_T}no" >&6 |
---|
5996 | fi |
---|
5997 | fi |
---|
5998 | ;; |
---|
5999 | cc|cpp) |
---|
6000 | ac_ext=f |
---|
6001 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
6002 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6003 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
6004 | case $ac_cv_f77_mangling in |
---|
6005 | upper*) ac_val="DAXPY" ;; |
---|
6006 | lower*) ac_val="daxpy" ;; |
---|
6007 | *) ac_val="unknown" ;; |
---|
6008 | esac |
---|
6009 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
6010 | |
---|
6011 | cfuncdaxpy="$ac_val" |
---|
6012 | |
---|
6013 | ac_ext=c |
---|
6014 | ac_cpp='$CPP $CPPFLAGS' |
---|
6015 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6016 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6017 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6018 | |
---|
6019 | if test x"$coin_need_flibs" = xyes; then |
---|
6020 | flink_try=no; |
---|
6021 | else |
---|
6022 | cat >conftest.$ac_ext <<_ACEOF |
---|
6023 | /* confdefs.h. */ |
---|
6024 | _ACEOF |
---|
6025 | cat confdefs.h >>conftest.$ac_ext |
---|
6026 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6027 | /* end confdefs.h. */ |
---|
6028 | extern "C" {void $cfuncdaxpy();} |
---|
6029 | #ifdef F77_DUMMY_MAIN |
---|
6030 | |
---|
6031 | # ifdef __cplusplus |
---|
6032 | extern "C" |
---|
6033 | # endif |
---|
6034 | int F77_DUMMY_MAIN() { return 1; } |
---|
6035 | |
---|
6036 | #endif |
---|
6037 | int |
---|
6038 | main () |
---|
6039 | { |
---|
6040 | $cfuncdaxpy() |
---|
6041 | ; |
---|
6042 | return 0; |
---|
6043 | } |
---|
6044 | _ACEOF |
---|
6045 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6046 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6047 | (eval $ac_link) 2>conftest.er1 |
---|
6048 | ac_status=$? |
---|
6049 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6050 | rm -f conftest.er1 |
---|
6051 | cat conftest.err >&5 |
---|
6052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6053 | (exit $ac_status); } && |
---|
6054 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6055 | || test ! -s conftest.err' |
---|
6056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6057 | (eval $ac_try) 2>&5 |
---|
6058 | ac_status=$? |
---|
6059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6060 | (exit $ac_status); }; } && |
---|
6061 | { ac_try='test -s conftest$ac_exeext' |
---|
6062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6063 | (eval $ac_try) 2>&5 |
---|
6064 | ac_status=$? |
---|
6065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6066 | (exit $ac_status); }; }; then |
---|
6067 | flink_try=yes |
---|
6068 | else |
---|
6069 | echo "$as_me: failed program was:" >&5 |
---|
6070 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6071 | |
---|
6072 | flink_try=no |
---|
6073 | fi |
---|
6074 | rm -f conftest.err conftest.$ac_objext \ |
---|
6075 | conftest$ac_exeext conftest.$ac_ext |
---|
6076 | fi |
---|
6077 | if test $flink_try = yes; then |
---|
6078 | use_blas='-lsunperf' |
---|
6079 | if test $coin_need_flibs = yes ; then |
---|
6080 | use_blas="$use_blas $FLIBS" |
---|
6081 | fi |
---|
6082 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6083 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6084 | |
---|
6085 | else |
---|
6086 | if test x"$FLIBS" != x; then |
---|
6087 | flink_save_libs="$LIBS" |
---|
6088 | LIBS="$LIBS $FLIBS" |
---|
6089 | cat >conftest.$ac_ext <<_ACEOF |
---|
6090 | /* confdefs.h. */ |
---|
6091 | _ACEOF |
---|
6092 | cat confdefs.h >>conftest.$ac_ext |
---|
6093 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6094 | /* end confdefs.h. */ |
---|
6095 | extern "C" {void $cfuncdaxpy();} |
---|
6096 | #ifdef F77_DUMMY_MAIN |
---|
6097 | |
---|
6098 | # ifdef __cplusplus |
---|
6099 | extern "C" |
---|
6100 | # endif |
---|
6101 | int F77_DUMMY_MAIN() { return 1; } |
---|
6102 | |
---|
6103 | #endif |
---|
6104 | int |
---|
6105 | main () |
---|
6106 | { |
---|
6107 | $cfuncdaxpy() |
---|
6108 | ; |
---|
6109 | return 0; |
---|
6110 | } |
---|
6111 | _ACEOF |
---|
6112 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6113 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6114 | (eval $ac_link) 2>conftest.er1 |
---|
6115 | ac_status=$? |
---|
6116 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6117 | rm -f conftest.er1 |
---|
6118 | cat conftest.err >&5 |
---|
6119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6120 | (exit $ac_status); } && |
---|
6121 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6122 | || test ! -s conftest.err' |
---|
6123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6124 | (eval $ac_try) 2>&5 |
---|
6125 | ac_status=$? |
---|
6126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6127 | (exit $ac_status); }; } && |
---|
6128 | { ac_try='test -s conftest$ac_exeext' |
---|
6129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6130 | (eval $ac_try) 2>&5 |
---|
6131 | ac_status=$? |
---|
6132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6133 | (exit $ac_status); }; }; then |
---|
6134 | LIBS="$flink_save_libs" |
---|
6135 | coin_need_flibs=yes |
---|
6136 | use_blas='-lsunperf' |
---|
6137 | if test $coin_need_flibs = yes ; then |
---|
6138 | use_blas="$use_blas $FLIBS" |
---|
6139 | fi |
---|
6140 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6141 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6142 | |
---|
6143 | |
---|
6144 | else |
---|
6145 | echo "$as_me: failed program was:" >&5 |
---|
6146 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6147 | |
---|
6148 | LIBS="$flink_save_libs" |
---|
6149 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6150 | echo "${ECHO_T}no" >&6 |
---|
6151 | fi |
---|
6152 | rm -f conftest.err conftest.$ac_objext \ |
---|
6153 | conftest$ac_exeext conftest.$ac_ext |
---|
6154 | else |
---|
6155 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6156 | echo "${ECHO_T}no" >&6 |
---|
6157 | fi |
---|
6158 | fi |
---|
6159 | ;; |
---|
6160 | esac |
---|
6161 | |
---|
6162 | LIBS="$coin_save_LIBS" |
---|
6163 | ;; |
---|
6164 | |
---|
6165 | *-cygwin* | *-mingw*) |
---|
6166 | case "$CC" in |
---|
6167 | clang* ) ;; |
---|
6168 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
6169 | coin_save_LIBS="$LIBS" |
---|
6170 | echo "$as_me:$LINENO: checking for BLAS in MKL (32bit)" >&5 |
---|
6171 | echo $ECHO_N "checking for BLAS in MKL (32bit)... $ECHO_C" >&6 |
---|
6172 | LIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $LIBS" |
---|
6173 | case $ac_ext in |
---|
6174 | f) |
---|
6175 | cat >conftest.$ac_ext <<_ACEOF |
---|
6176 | /* confdefs.h. */ |
---|
6177 | _ACEOF |
---|
6178 | cat confdefs.h >>conftest.$ac_ext |
---|
6179 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6180 | /* end confdefs.h. */ |
---|
6181 | |
---|
6182 | #ifdef F77_DUMMY_MAIN |
---|
6183 | |
---|
6184 | # ifdef __cplusplus |
---|
6185 | extern "C" |
---|
6186 | # endif |
---|
6187 | int F77_DUMMY_MAIN() { return 1; } |
---|
6188 | |
---|
6189 | #endif |
---|
6190 | int |
---|
6191 | main () |
---|
6192 | { |
---|
6193 | call daxpy |
---|
6194 | ; |
---|
6195 | return 0; |
---|
6196 | } |
---|
6197 | _ACEOF |
---|
6198 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6200 | (eval $ac_link) 2>conftest.er1 |
---|
6201 | ac_status=$? |
---|
6202 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6203 | rm -f conftest.er1 |
---|
6204 | cat conftest.err >&5 |
---|
6205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6206 | (exit $ac_status); } && |
---|
6207 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6208 | || test ! -s conftest.err' |
---|
6209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6210 | (eval $ac_try) 2>&5 |
---|
6211 | ac_status=$? |
---|
6212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6213 | (exit $ac_status); }; } && |
---|
6214 | { ac_try='test -s conftest$ac_exeext' |
---|
6215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6216 | (eval $ac_try) 2>&5 |
---|
6217 | ac_status=$? |
---|
6218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6219 | (exit $ac_status); }; }; then |
---|
6220 | use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib' |
---|
6221 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6222 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6223 | |
---|
6224 | else |
---|
6225 | echo "$as_me: failed program was:" >&5 |
---|
6226 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6227 | |
---|
6228 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6229 | echo "${ECHO_T}no" >&6 |
---|
6230 | fi |
---|
6231 | rm -f conftest.err conftest.$ac_objext \ |
---|
6232 | conftest$ac_exeext conftest.$ac_ext |
---|
6233 | ;; |
---|
6234 | c) |
---|
6235 | ac_ext=f |
---|
6236 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
6237 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6238 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
6239 | case $ac_cv_f77_mangling in |
---|
6240 | upper*) ac_val="DAXPY" ;; |
---|
6241 | lower*) ac_val="daxpy" ;; |
---|
6242 | *) ac_val="unknown" ;; |
---|
6243 | esac |
---|
6244 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
6245 | |
---|
6246 | cfuncdaxpy="$ac_val" |
---|
6247 | |
---|
6248 | ac_ext=c |
---|
6249 | ac_cpp='$CPP $CPPFLAGS' |
---|
6250 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6251 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6252 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6253 | |
---|
6254 | if test x"$coin_need_flibs" = xyes; then |
---|
6255 | flink_try=no; |
---|
6256 | else |
---|
6257 | cat >conftest.$ac_ext <<_ACEOF |
---|
6258 | /* confdefs.h. */ |
---|
6259 | _ACEOF |
---|
6260 | cat confdefs.h >>conftest.$ac_ext |
---|
6261 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6262 | /* end confdefs.h. */ |
---|
6263 | void $cfuncdaxpy(); |
---|
6264 | #ifdef F77_DUMMY_MAIN |
---|
6265 | |
---|
6266 | # ifdef __cplusplus |
---|
6267 | extern "C" |
---|
6268 | # endif |
---|
6269 | int F77_DUMMY_MAIN() { return 1; } |
---|
6270 | |
---|
6271 | #endif |
---|
6272 | int |
---|
6273 | main () |
---|
6274 | { |
---|
6275 | $cfuncdaxpy() |
---|
6276 | ; |
---|
6277 | return 0; |
---|
6278 | } |
---|
6279 | _ACEOF |
---|
6280 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6281 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6282 | (eval $ac_link) 2>conftest.er1 |
---|
6283 | ac_status=$? |
---|
6284 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6285 | rm -f conftest.er1 |
---|
6286 | cat conftest.err >&5 |
---|
6287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6288 | (exit $ac_status); } && |
---|
6289 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6290 | || test ! -s conftest.err' |
---|
6291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6292 | (eval $ac_try) 2>&5 |
---|
6293 | ac_status=$? |
---|
6294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6295 | (exit $ac_status); }; } && |
---|
6296 | { ac_try='test -s conftest$ac_exeext' |
---|
6297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6298 | (eval $ac_try) 2>&5 |
---|
6299 | ac_status=$? |
---|
6300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6301 | (exit $ac_status); }; }; then |
---|
6302 | flink_try=yes |
---|
6303 | else |
---|
6304 | echo "$as_me: failed program was:" >&5 |
---|
6305 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6306 | |
---|
6307 | flink_try=no |
---|
6308 | fi |
---|
6309 | rm -f conftest.err conftest.$ac_objext \ |
---|
6310 | conftest$ac_exeext conftest.$ac_ext |
---|
6311 | fi |
---|
6312 | if test $flink_try = yes; then |
---|
6313 | use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib' |
---|
6314 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6315 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6316 | |
---|
6317 | else |
---|
6318 | if test x"$FLIBS" != x; then |
---|
6319 | flink_save_libs="$LIBS" |
---|
6320 | LIBS="$LIBS $FLIBS" |
---|
6321 | cat >conftest.$ac_ext <<_ACEOF |
---|
6322 | /* confdefs.h. */ |
---|
6323 | _ACEOF |
---|
6324 | cat confdefs.h >>conftest.$ac_ext |
---|
6325 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6326 | /* end confdefs.h. */ |
---|
6327 | void $cfuncdaxpy(); |
---|
6328 | #ifdef F77_DUMMY_MAIN |
---|
6329 | |
---|
6330 | # ifdef __cplusplus |
---|
6331 | extern "C" |
---|
6332 | # endif |
---|
6333 | int F77_DUMMY_MAIN() { return 1; } |
---|
6334 | |
---|
6335 | #endif |
---|
6336 | int |
---|
6337 | main () |
---|
6338 | { |
---|
6339 | $cfuncdaxpy() |
---|
6340 | ; |
---|
6341 | return 0; |
---|
6342 | } |
---|
6343 | _ACEOF |
---|
6344 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6346 | (eval $ac_link) 2>conftest.er1 |
---|
6347 | ac_status=$? |
---|
6348 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6349 | rm -f conftest.er1 |
---|
6350 | cat conftest.err >&5 |
---|
6351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6352 | (exit $ac_status); } && |
---|
6353 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6354 | || test ! -s conftest.err' |
---|
6355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6356 | (eval $ac_try) 2>&5 |
---|
6357 | ac_status=$? |
---|
6358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6359 | (exit $ac_status); }; } && |
---|
6360 | { ac_try='test -s conftest$ac_exeext' |
---|
6361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6362 | (eval $ac_try) 2>&5 |
---|
6363 | ac_status=$? |
---|
6364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6365 | (exit $ac_status); }; }; then |
---|
6366 | LIBS="$flink_save_libs" |
---|
6367 | coin_need_flibs=yes |
---|
6368 | use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib' |
---|
6369 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6370 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6371 | |
---|
6372 | |
---|
6373 | else |
---|
6374 | echo "$as_me: failed program was:" >&5 |
---|
6375 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6376 | |
---|
6377 | LIBS="$flink_save_libs" |
---|
6378 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6379 | echo "${ECHO_T}no" >&6 |
---|
6380 | fi |
---|
6381 | rm -f conftest.err conftest.$ac_objext \ |
---|
6382 | conftest$ac_exeext conftest.$ac_ext |
---|
6383 | else |
---|
6384 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6385 | echo "${ECHO_T}no" >&6 |
---|
6386 | fi |
---|
6387 | fi |
---|
6388 | ;; |
---|
6389 | cc|cpp) |
---|
6390 | ac_ext=f |
---|
6391 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
6392 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6393 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
6394 | case $ac_cv_f77_mangling in |
---|
6395 | upper*) ac_val="DAXPY" ;; |
---|
6396 | lower*) ac_val="daxpy" ;; |
---|
6397 | *) ac_val="unknown" ;; |
---|
6398 | esac |
---|
6399 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
6400 | |
---|
6401 | cfuncdaxpy="$ac_val" |
---|
6402 | |
---|
6403 | ac_ext=c |
---|
6404 | ac_cpp='$CPP $CPPFLAGS' |
---|
6405 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6406 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6407 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6408 | |
---|
6409 | if test x"$coin_need_flibs" = xyes; then |
---|
6410 | flink_try=no; |
---|
6411 | else |
---|
6412 | cat >conftest.$ac_ext <<_ACEOF |
---|
6413 | /* confdefs.h. */ |
---|
6414 | _ACEOF |
---|
6415 | cat confdefs.h >>conftest.$ac_ext |
---|
6416 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6417 | /* end confdefs.h. */ |
---|
6418 | extern "C" {void $cfuncdaxpy();} |
---|
6419 | #ifdef F77_DUMMY_MAIN |
---|
6420 | |
---|
6421 | # ifdef __cplusplus |
---|
6422 | extern "C" |
---|
6423 | # endif |
---|
6424 | int F77_DUMMY_MAIN() { return 1; } |
---|
6425 | |
---|
6426 | #endif |
---|
6427 | int |
---|
6428 | main () |
---|
6429 | { |
---|
6430 | $cfuncdaxpy() |
---|
6431 | ; |
---|
6432 | return 0; |
---|
6433 | } |
---|
6434 | _ACEOF |
---|
6435 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6437 | (eval $ac_link) 2>conftest.er1 |
---|
6438 | ac_status=$? |
---|
6439 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6440 | rm -f conftest.er1 |
---|
6441 | cat conftest.err >&5 |
---|
6442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6443 | (exit $ac_status); } && |
---|
6444 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6445 | || test ! -s conftest.err' |
---|
6446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6447 | (eval $ac_try) 2>&5 |
---|
6448 | ac_status=$? |
---|
6449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6450 | (exit $ac_status); }; } && |
---|
6451 | { ac_try='test -s conftest$ac_exeext' |
---|
6452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6453 | (eval $ac_try) 2>&5 |
---|
6454 | ac_status=$? |
---|
6455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6456 | (exit $ac_status); }; }; then |
---|
6457 | flink_try=yes |
---|
6458 | else |
---|
6459 | echo "$as_me: failed program was:" >&5 |
---|
6460 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6461 | |
---|
6462 | flink_try=no |
---|
6463 | fi |
---|
6464 | rm -f conftest.err conftest.$ac_objext \ |
---|
6465 | conftest$ac_exeext conftest.$ac_ext |
---|
6466 | fi |
---|
6467 | if test $flink_try = yes; then |
---|
6468 | use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib' |
---|
6469 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6470 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6471 | |
---|
6472 | else |
---|
6473 | if test x"$FLIBS" != x; then |
---|
6474 | flink_save_libs="$LIBS" |
---|
6475 | LIBS="$LIBS $FLIBS" |
---|
6476 | cat >conftest.$ac_ext <<_ACEOF |
---|
6477 | /* confdefs.h. */ |
---|
6478 | _ACEOF |
---|
6479 | cat confdefs.h >>conftest.$ac_ext |
---|
6480 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6481 | /* end confdefs.h. */ |
---|
6482 | extern "C" {void $cfuncdaxpy();} |
---|
6483 | #ifdef F77_DUMMY_MAIN |
---|
6484 | |
---|
6485 | # ifdef __cplusplus |
---|
6486 | extern "C" |
---|
6487 | # endif |
---|
6488 | int F77_DUMMY_MAIN() { return 1; } |
---|
6489 | |
---|
6490 | #endif |
---|
6491 | int |
---|
6492 | main () |
---|
6493 | { |
---|
6494 | $cfuncdaxpy() |
---|
6495 | ; |
---|
6496 | return 0; |
---|
6497 | } |
---|
6498 | _ACEOF |
---|
6499 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6500 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6501 | (eval $ac_link) 2>conftest.er1 |
---|
6502 | ac_status=$? |
---|
6503 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6504 | rm -f conftest.er1 |
---|
6505 | cat conftest.err >&5 |
---|
6506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6507 | (exit $ac_status); } && |
---|
6508 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6509 | || test ! -s conftest.err' |
---|
6510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6511 | (eval $ac_try) 2>&5 |
---|
6512 | ac_status=$? |
---|
6513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6514 | (exit $ac_status); }; } && |
---|
6515 | { ac_try='test -s conftest$ac_exeext' |
---|
6516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6517 | (eval $ac_try) 2>&5 |
---|
6518 | ac_status=$? |
---|
6519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6520 | (exit $ac_status); }; }; then |
---|
6521 | LIBS="$flink_save_libs" |
---|
6522 | coin_need_flibs=yes |
---|
6523 | use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib' |
---|
6524 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6525 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6526 | |
---|
6527 | |
---|
6528 | else |
---|
6529 | echo "$as_me: failed program was:" >&5 |
---|
6530 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6531 | |
---|
6532 | LIBS="$flink_save_libs" |
---|
6533 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6534 | echo "${ECHO_T}no" >&6 |
---|
6535 | fi |
---|
6536 | rm -f conftest.err conftest.$ac_objext \ |
---|
6537 | conftest$ac_exeext conftest.$ac_ext |
---|
6538 | else |
---|
6539 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6540 | echo "${ECHO_T}no" >&6 |
---|
6541 | fi |
---|
6542 | fi |
---|
6543 | ;; |
---|
6544 | esac |
---|
6545 | |
---|
6546 | LIBS="$coin_save_LIBS" |
---|
6547 | |
---|
6548 | if test "x$use_blas" = x ; then |
---|
6549 | echo "$as_me:$LINENO: checking for BLAS in MKL (64bit)" >&5 |
---|
6550 | echo $ECHO_N "checking for BLAS in MKL (64bit)... $ECHO_C" >&6 |
---|
6551 | LIBS="mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib $LIBS" |
---|
6552 | case $ac_ext in |
---|
6553 | f) |
---|
6554 | cat >conftest.$ac_ext <<_ACEOF |
---|
6555 | /* confdefs.h. */ |
---|
6556 | _ACEOF |
---|
6557 | cat confdefs.h >>conftest.$ac_ext |
---|
6558 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6559 | /* end confdefs.h. */ |
---|
6560 | |
---|
6561 | #ifdef F77_DUMMY_MAIN |
---|
6562 | |
---|
6563 | # ifdef __cplusplus |
---|
6564 | extern "C" |
---|
6565 | # endif |
---|
6566 | int F77_DUMMY_MAIN() { return 1; } |
---|
6567 | |
---|
6568 | #endif |
---|
6569 | int |
---|
6570 | main () |
---|
6571 | { |
---|
6572 | call daxpy |
---|
6573 | ; |
---|
6574 | return 0; |
---|
6575 | } |
---|
6576 | _ACEOF |
---|
6577 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6579 | (eval $ac_link) 2>conftest.er1 |
---|
6580 | ac_status=$? |
---|
6581 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6582 | rm -f conftest.er1 |
---|
6583 | cat conftest.err >&5 |
---|
6584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6585 | (exit $ac_status); } && |
---|
6586 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6587 | || test ! -s conftest.err' |
---|
6588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6589 | (eval $ac_try) 2>&5 |
---|
6590 | ac_status=$? |
---|
6591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6592 | (exit $ac_status); }; } && |
---|
6593 | { ac_try='test -s conftest$ac_exeext' |
---|
6594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6595 | (eval $ac_try) 2>&5 |
---|
6596 | ac_status=$? |
---|
6597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6598 | (exit $ac_status); }; }; then |
---|
6599 | use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib' |
---|
6600 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6601 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6602 | |
---|
6603 | else |
---|
6604 | echo "$as_me: failed program was:" >&5 |
---|
6605 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6606 | |
---|
6607 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6608 | echo "${ECHO_T}no" >&6 |
---|
6609 | fi |
---|
6610 | rm -f conftest.err conftest.$ac_objext \ |
---|
6611 | conftest$ac_exeext conftest.$ac_ext |
---|
6612 | ;; |
---|
6613 | c) |
---|
6614 | ac_ext=f |
---|
6615 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
6616 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6617 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
6618 | case $ac_cv_f77_mangling in |
---|
6619 | upper*) ac_val="DAXPY" ;; |
---|
6620 | lower*) ac_val="daxpy" ;; |
---|
6621 | *) ac_val="unknown" ;; |
---|
6622 | esac |
---|
6623 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
6624 | |
---|
6625 | cfuncdaxpy="$ac_val" |
---|
6626 | |
---|
6627 | ac_ext=c |
---|
6628 | ac_cpp='$CPP $CPPFLAGS' |
---|
6629 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6630 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6631 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6632 | |
---|
6633 | if test x"$coin_need_flibs" = xyes; then |
---|
6634 | flink_try=no; |
---|
6635 | else |
---|
6636 | cat >conftest.$ac_ext <<_ACEOF |
---|
6637 | /* confdefs.h. */ |
---|
6638 | _ACEOF |
---|
6639 | cat confdefs.h >>conftest.$ac_ext |
---|
6640 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6641 | /* end confdefs.h. */ |
---|
6642 | void $cfuncdaxpy(); |
---|
6643 | #ifdef F77_DUMMY_MAIN |
---|
6644 | |
---|
6645 | # ifdef __cplusplus |
---|
6646 | extern "C" |
---|
6647 | # endif |
---|
6648 | int F77_DUMMY_MAIN() { return 1; } |
---|
6649 | |
---|
6650 | #endif |
---|
6651 | int |
---|
6652 | main () |
---|
6653 | { |
---|
6654 | $cfuncdaxpy() |
---|
6655 | ; |
---|
6656 | return 0; |
---|
6657 | } |
---|
6658 | _ACEOF |
---|
6659 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6661 | (eval $ac_link) 2>conftest.er1 |
---|
6662 | ac_status=$? |
---|
6663 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6664 | rm -f conftest.er1 |
---|
6665 | cat conftest.err >&5 |
---|
6666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6667 | (exit $ac_status); } && |
---|
6668 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6669 | || test ! -s conftest.err' |
---|
6670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6671 | (eval $ac_try) 2>&5 |
---|
6672 | ac_status=$? |
---|
6673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6674 | (exit $ac_status); }; } && |
---|
6675 | { ac_try='test -s conftest$ac_exeext' |
---|
6676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6677 | (eval $ac_try) 2>&5 |
---|
6678 | ac_status=$? |
---|
6679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6680 | (exit $ac_status); }; }; then |
---|
6681 | flink_try=yes |
---|
6682 | else |
---|
6683 | echo "$as_me: failed program was:" >&5 |
---|
6684 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6685 | |
---|
6686 | flink_try=no |
---|
6687 | fi |
---|
6688 | rm -f conftest.err conftest.$ac_objext \ |
---|
6689 | conftest$ac_exeext conftest.$ac_ext |
---|
6690 | fi |
---|
6691 | if test $flink_try = yes; then |
---|
6692 | use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib' |
---|
6693 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6694 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6695 | |
---|
6696 | else |
---|
6697 | if test x"$FLIBS" != x; then |
---|
6698 | flink_save_libs="$LIBS" |
---|
6699 | LIBS="$LIBS $FLIBS" |
---|
6700 | cat >conftest.$ac_ext <<_ACEOF |
---|
6701 | /* confdefs.h. */ |
---|
6702 | _ACEOF |
---|
6703 | cat confdefs.h >>conftest.$ac_ext |
---|
6704 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6705 | /* end confdefs.h. */ |
---|
6706 | void $cfuncdaxpy(); |
---|
6707 | #ifdef F77_DUMMY_MAIN |
---|
6708 | |
---|
6709 | # ifdef __cplusplus |
---|
6710 | extern "C" |
---|
6711 | # endif |
---|
6712 | int F77_DUMMY_MAIN() { return 1; } |
---|
6713 | |
---|
6714 | #endif |
---|
6715 | int |
---|
6716 | main () |
---|
6717 | { |
---|
6718 | $cfuncdaxpy() |
---|
6719 | ; |
---|
6720 | return 0; |
---|
6721 | } |
---|
6722 | _ACEOF |
---|
6723 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6725 | (eval $ac_link) 2>conftest.er1 |
---|
6726 | ac_status=$? |
---|
6727 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6728 | rm -f conftest.er1 |
---|
6729 | cat conftest.err >&5 |
---|
6730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6731 | (exit $ac_status); } && |
---|
6732 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6733 | || test ! -s conftest.err' |
---|
6734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6735 | (eval $ac_try) 2>&5 |
---|
6736 | ac_status=$? |
---|
6737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6738 | (exit $ac_status); }; } && |
---|
6739 | { ac_try='test -s conftest$ac_exeext' |
---|
6740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6741 | (eval $ac_try) 2>&5 |
---|
6742 | ac_status=$? |
---|
6743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6744 | (exit $ac_status); }; }; then |
---|
6745 | LIBS="$flink_save_libs" |
---|
6746 | coin_need_flibs=yes |
---|
6747 | use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib' |
---|
6748 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6749 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6750 | |
---|
6751 | |
---|
6752 | else |
---|
6753 | echo "$as_me: failed program was:" >&5 |
---|
6754 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6755 | |
---|
6756 | LIBS="$flink_save_libs" |
---|
6757 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6758 | echo "${ECHO_T}no" >&6 |
---|
6759 | fi |
---|
6760 | rm -f conftest.err conftest.$ac_objext \ |
---|
6761 | conftest$ac_exeext conftest.$ac_ext |
---|
6762 | else |
---|
6763 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6764 | echo "${ECHO_T}no" >&6 |
---|
6765 | fi |
---|
6766 | fi |
---|
6767 | ;; |
---|
6768 | cc|cpp) |
---|
6769 | ac_ext=f |
---|
6770 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
6771 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6772 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
6773 | case $ac_cv_f77_mangling in |
---|
6774 | upper*) ac_val="DAXPY" ;; |
---|
6775 | lower*) ac_val="daxpy" ;; |
---|
6776 | *) ac_val="unknown" ;; |
---|
6777 | esac |
---|
6778 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
6779 | |
---|
6780 | cfuncdaxpy="$ac_val" |
---|
6781 | |
---|
6782 | ac_ext=c |
---|
6783 | ac_cpp='$CPP $CPPFLAGS' |
---|
6784 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6785 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6786 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6787 | |
---|
6788 | if test x"$coin_need_flibs" = xyes; then |
---|
6789 | flink_try=no; |
---|
6790 | else |
---|
6791 | cat >conftest.$ac_ext <<_ACEOF |
---|
6792 | /* confdefs.h. */ |
---|
6793 | _ACEOF |
---|
6794 | cat confdefs.h >>conftest.$ac_ext |
---|
6795 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6796 | /* end confdefs.h. */ |
---|
6797 | extern "C" {void $cfuncdaxpy();} |
---|
6798 | #ifdef F77_DUMMY_MAIN |
---|
6799 | |
---|
6800 | # ifdef __cplusplus |
---|
6801 | extern "C" |
---|
6802 | # endif |
---|
6803 | int F77_DUMMY_MAIN() { return 1; } |
---|
6804 | |
---|
6805 | #endif |
---|
6806 | int |
---|
6807 | main () |
---|
6808 | { |
---|
6809 | $cfuncdaxpy() |
---|
6810 | ; |
---|
6811 | return 0; |
---|
6812 | } |
---|
6813 | _ACEOF |
---|
6814 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6816 | (eval $ac_link) 2>conftest.er1 |
---|
6817 | ac_status=$? |
---|
6818 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6819 | rm -f conftest.er1 |
---|
6820 | cat conftest.err >&5 |
---|
6821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6822 | (exit $ac_status); } && |
---|
6823 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6824 | || test ! -s conftest.err' |
---|
6825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6826 | (eval $ac_try) 2>&5 |
---|
6827 | ac_status=$? |
---|
6828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6829 | (exit $ac_status); }; } && |
---|
6830 | { ac_try='test -s conftest$ac_exeext' |
---|
6831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6832 | (eval $ac_try) 2>&5 |
---|
6833 | ac_status=$? |
---|
6834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6835 | (exit $ac_status); }; }; then |
---|
6836 | flink_try=yes |
---|
6837 | else |
---|
6838 | echo "$as_me: failed program was:" >&5 |
---|
6839 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6840 | |
---|
6841 | flink_try=no |
---|
6842 | fi |
---|
6843 | rm -f conftest.err conftest.$ac_objext \ |
---|
6844 | conftest$ac_exeext conftest.$ac_ext |
---|
6845 | fi |
---|
6846 | if test $flink_try = yes; then |
---|
6847 | use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib' |
---|
6848 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6849 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6850 | |
---|
6851 | else |
---|
6852 | if test x"$FLIBS" != x; then |
---|
6853 | flink_save_libs="$LIBS" |
---|
6854 | LIBS="$LIBS $FLIBS" |
---|
6855 | cat >conftest.$ac_ext <<_ACEOF |
---|
6856 | /* confdefs.h. */ |
---|
6857 | _ACEOF |
---|
6858 | cat confdefs.h >>conftest.$ac_ext |
---|
6859 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6860 | /* end confdefs.h. */ |
---|
6861 | extern "C" {void $cfuncdaxpy();} |
---|
6862 | #ifdef F77_DUMMY_MAIN |
---|
6863 | |
---|
6864 | # ifdef __cplusplus |
---|
6865 | extern "C" |
---|
6866 | # endif |
---|
6867 | int F77_DUMMY_MAIN() { return 1; } |
---|
6868 | |
---|
6869 | #endif |
---|
6870 | int |
---|
6871 | main () |
---|
6872 | { |
---|
6873 | $cfuncdaxpy() |
---|
6874 | ; |
---|
6875 | return 0; |
---|
6876 | } |
---|
6877 | _ACEOF |
---|
6878 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6880 | (eval $ac_link) 2>conftest.er1 |
---|
6881 | ac_status=$? |
---|
6882 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6883 | rm -f conftest.er1 |
---|
6884 | cat conftest.err >&5 |
---|
6885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6886 | (exit $ac_status); } && |
---|
6887 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6888 | || test ! -s conftest.err' |
---|
6889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6890 | (eval $ac_try) 2>&5 |
---|
6891 | ac_status=$? |
---|
6892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6893 | (exit $ac_status); }; } && |
---|
6894 | { ac_try='test -s conftest$ac_exeext' |
---|
6895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6896 | (eval $ac_try) 2>&5 |
---|
6897 | ac_status=$? |
---|
6898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6899 | (exit $ac_status); }; }; then |
---|
6900 | LIBS="$flink_save_libs" |
---|
6901 | coin_need_flibs=yes |
---|
6902 | use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib' |
---|
6903 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6904 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6905 | |
---|
6906 | |
---|
6907 | else |
---|
6908 | echo "$as_me: failed program was:" >&5 |
---|
6909 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6910 | |
---|
6911 | LIBS="$flink_save_libs" |
---|
6912 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6913 | echo "${ECHO_T}no" >&6 |
---|
6914 | fi |
---|
6915 | rm -f conftest.err conftest.$ac_objext \ |
---|
6916 | conftest$ac_exeext conftest.$ac_ext |
---|
6917 | else |
---|
6918 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6919 | echo "${ECHO_T}no" >&6 |
---|
6920 | fi |
---|
6921 | fi |
---|
6922 | ;; |
---|
6923 | esac |
---|
6924 | |
---|
6925 | LIBS="$coin_save_LIBS" |
---|
6926 | fi |
---|
6927 | ;; |
---|
6928 | esac |
---|
6929 | ;; |
---|
6930 | |
---|
6931 | *-darwin*) |
---|
6932 | echo "$as_me:$LINENO: checking for BLAS in Veclib" >&5 |
---|
6933 | echo $ECHO_N "checking for BLAS in Veclib... $ECHO_C" >&6 |
---|
6934 | coin_need_flibs=no |
---|
6935 | coin_save_LIBS="$LIBS" |
---|
6936 | LIBS="-framework Accelerate $LIBS" |
---|
6937 | case $ac_ext in |
---|
6938 | f) |
---|
6939 | cat >conftest.$ac_ext <<_ACEOF |
---|
6940 | /* confdefs.h. */ |
---|
6941 | _ACEOF |
---|
6942 | cat confdefs.h >>conftest.$ac_ext |
---|
6943 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6944 | /* end confdefs.h. */ |
---|
6945 | |
---|
6946 | #ifdef F77_DUMMY_MAIN |
---|
6947 | |
---|
6948 | # ifdef __cplusplus |
---|
6949 | extern "C" |
---|
6950 | # endif |
---|
6951 | int F77_DUMMY_MAIN() { return 1; } |
---|
6952 | |
---|
6953 | #endif |
---|
6954 | int |
---|
6955 | main () |
---|
6956 | { |
---|
6957 | call daxpy |
---|
6958 | ; |
---|
6959 | return 0; |
---|
6960 | } |
---|
6961 | _ACEOF |
---|
6962 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6963 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6964 | (eval $ac_link) 2>conftest.er1 |
---|
6965 | ac_status=$? |
---|
6966 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6967 | rm -f conftest.er1 |
---|
6968 | cat conftest.err >&5 |
---|
6969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6970 | (exit $ac_status); } && |
---|
6971 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6972 | || test ! -s conftest.err' |
---|
6973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6974 | (eval $ac_try) 2>&5 |
---|
6975 | ac_status=$? |
---|
6976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6977 | (exit $ac_status); }; } && |
---|
6978 | { ac_try='test -s conftest$ac_exeext' |
---|
6979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6980 | (eval $ac_try) 2>&5 |
---|
6981 | ac_status=$? |
---|
6982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6983 | (exit $ac_status); }; }; then |
---|
6984 | use_blas='-framework Accelerate' |
---|
6985 | if test $coin_need_flibs = yes ; then |
---|
6986 | use_blas="$use_blas $FLIBS" |
---|
6987 | fi |
---|
6988 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6989 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6990 | |
---|
6991 | else |
---|
6992 | echo "$as_me: failed program was:" >&5 |
---|
6993 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6994 | |
---|
6995 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6996 | echo "${ECHO_T}no" >&6 |
---|
6997 | fi |
---|
6998 | rm -f conftest.err conftest.$ac_objext \ |
---|
6999 | conftest$ac_exeext conftest.$ac_ext |
---|
7000 | ;; |
---|
7001 | c) |
---|
7002 | ac_ext=f |
---|
7003 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
7004 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7005 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
7006 | case $ac_cv_f77_mangling in |
---|
7007 | upper*) ac_val="DAXPY" ;; |
---|
7008 | lower*) ac_val="daxpy" ;; |
---|
7009 | *) ac_val="unknown" ;; |
---|
7010 | esac |
---|
7011 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
7012 | |
---|
7013 | cfuncdaxpy="$ac_val" |
---|
7014 | |
---|
7015 | ac_ext=c |
---|
7016 | ac_cpp='$CPP $CPPFLAGS' |
---|
7017 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7018 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7019 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7020 | |
---|
7021 | if test x"$coin_need_flibs" = xyes; then |
---|
7022 | flink_try=no; |
---|
7023 | else |
---|
7024 | cat >conftest.$ac_ext <<_ACEOF |
---|
7025 | /* confdefs.h. */ |
---|
7026 | _ACEOF |
---|
7027 | cat confdefs.h >>conftest.$ac_ext |
---|
7028 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7029 | /* end confdefs.h. */ |
---|
7030 | void $cfuncdaxpy(); |
---|
7031 | #ifdef F77_DUMMY_MAIN |
---|
7032 | |
---|
7033 | # ifdef __cplusplus |
---|
7034 | extern "C" |
---|
7035 | # endif |
---|
7036 | int F77_DUMMY_MAIN() { return 1; } |
---|
7037 | |
---|
7038 | #endif |
---|
7039 | int |
---|
7040 | main () |
---|
7041 | { |
---|
7042 | $cfuncdaxpy() |
---|
7043 | ; |
---|
7044 | return 0; |
---|
7045 | } |
---|
7046 | _ACEOF |
---|
7047 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7049 | (eval $ac_link) 2>conftest.er1 |
---|
7050 | ac_status=$? |
---|
7051 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7052 | rm -f conftest.er1 |
---|
7053 | cat conftest.err >&5 |
---|
7054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7055 | (exit $ac_status); } && |
---|
7056 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7057 | || test ! -s conftest.err' |
---|
7058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7059 | (eval $ac_try) 2>&5 |
---|
7060 | ac_status=$? |
---|
7061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7062 | (exit $ac_status); }; } && |
---|
7063 | { ac_try='test -s conftest$ac_exeext' |
---|
7064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7065 | (eval $ac_try) 2>&5 |
---|
7066 | ac_status=$? |
---|
7067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7068 | (exit $ac_status); }; }; then |
---|
7069 | flink_try=yes |
---|
7070 | else |
---|
7071 | echo "$as_me: failed program was:" >&5 |
---|
7072 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7073 | |
---|
7074 | flink_try=no |
---|
7075 | fi |
---|
7076 | rm -f conftest.err conftest.$ac_objext \ |
---|
7077 | conftest$ac_exeext conftest.$ac_ext |
---|
7078 | fi |
---|
7079 | if test $flink_try = yes; then |
---|
7080 | use_blas='-framework Accelerate' |
---|
7081 | if test $coin_need_flibs = yes ; then |
---|
7082 | use_blas="$use_blas $FLIBS" |
---|
7083 | fi |
---|
7084 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
7085 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
7086 | |
---|
7087 | else |
---|
7088 | if test x"$FLIBS" != x; then |
---|
7089 | flink_save_libs="$LIBS" |
---|
7090 | LIBS="$LIBS $FLIBS" |
---|
7091 | cat >conftest.$ac_ext <<_ACEOF |
---|
7092 | /* confdefs.h. */ |
---|
7093 | _ACEOF |
---|
7094 | cat confdefs.h >>conftest.$ac_ext |
---|
7095 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7096 | /* end confdefs.h. */ |
---|
7097 | void $cfuncdaxpy(); |
---|
7098 | #ifdef F77_DUMMY_MAIN |
---|
7099 | |
---|
7100 | # ifdef __cplusplus |
---|
7101 | extern "C" |
---|
7102 | # endif |
---|
7103 | int F77_DUMMY_MAIN() { return 1; } |
---|
7104 | |
---|
7105 | #endif |
---|
7106 | int |
---|
7107 | main () |
---|
7108 | { |
---|
7109 | $cfuncdaxpy() |
---|
7110 | ; |
---|
7111 | return 0; |
---|
7112 | } |
---|
7113 | _ACEOF |
---|
7114 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7116 | (eval $ac_link) 2>conftest.er1 |
---|
7117 | ac_status=$? |
---|
7118 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7119 | rm -f conftest.er1 |
---|
7120 | cat conftest.err >&5 |
---|
7121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7122 | (exit $ac_status); } && |
---|
7123 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7124 | || test ! -s conftest.err' |
---|
7125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7126 | (eval $ac_try) 2>&5 |
---|
7127 | ac_status=$? |
---|
7128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7129 | (exit $ac_status); }; } && |
---|
7130 | { ac_try='test -s conftest$ac_exeext' |
---|
7131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7132 | (eval $ac_try) 2>&5 |
---|
7133 | ac_status=$? |
---|
7134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7135 | (exit $ac_status); }; }; then |
---|
7136 | LIBS="$flink_save_libs" |
---|
7137 | coin_need_flibs=yes |
---|
7138 | use_blas='-framework Accelerate' |
---|
7139 | if test $coin_need_flibs = yes ; then |
---|
7140 | use_blas="$use_blas $FLIBS" |
---|
7141 | fi |
---|
7142 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
7143 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
7144 | |
---|
7145 | |
---|
7146 | else |
---|
7147 | echo "$as_me: failed program was:" >&5 |
---|
7148 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7149 | |
---|
7150 | LIBS="$flink_save_libs" |
---|
7151 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7152 | echo "${ECHO_T}no" >&6 |
---|
7153 | fi |
---|
7154 | rm -f conftest.err conftest.$ac_objext \ |
---|
7155 | conftest$ac_exeext conftest.$ac_ext |
---|
7156 | else |
---|
7157 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7158 | echo "${ECHO_T}no" >&6 |
---|
7159 | fi |
---|
7160 | fi |
---|
7161 | ;; |
---|
7162 | cc|cpp) |
---|
7163 | ac_ext=f |
---|
7164 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
7165 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7166 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
7167 | case $ac_cv_f77_mangling in |
---|
7168 | upper*) ac_val="DAXPY" ;; |
---|
7169 | lower*) ac_val="daxpy" ;; |
---|
7170 | *) ac_val="unknown" ;; |
---|
7171 | esac |
---|
7172 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
7173 | |
---|
7174 | cfuncdaxpy="$ac_val" |
---|
7175 | |
---|
7176 | ac_ext=c |
---|
7177 | ac_cpp='$CPP $CPPFLAGS' |
---|
7178 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7179 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7180 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7181 | |
---|
7182 | if test x"$coin_need_flibs" = xyes; then |
---|
7183 | flink_try=no; |
---|
7184 | else |
---|
7185 | cat >conftest.$ac_ext <<_ACEOF |
---|
7186 | /* confdefs.h. */ |
---|
7187 | _ACEOF |
---|
7188 | cat confdefs.h >>conftest.$ac_ext |
---|
7189 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7190 | /* end confdefs.h. */ |
---|
7191 | extern "C" {void $cfuncdaxpy();} |
---|
7192 | #ifdef F77_DUMMY_MAIN |
---|
7193 | |
---|
7194 | # ifdef __cplusplus |
---|
7195 | extern "C" |
---|
7196 | # endif |
---|
7197 | int F77_DUMMY_MAIN() { return 1; } |
---|
7198 | |
---|
7199 | #endif |
---|
7200 | int |
---|
7201 | main () |
---|
7202 | { |
---|
7203 | $cfuncdaxpy() |
---|
7204 | ; |
---|
7205 | return 0; |
---|
7206 | } |
---|
7207 | _ACEOF |
---|
7208 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7209 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7210 | (eval $ac_link) 2>conftest.er1 |
---|
7211 | ac_status=$? |
---|
7212 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7213 | rm -f conftest.er1 |
---|
7214 | cat conftest.err >&5 |
---|
7215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7216 | (exit $ac_status); } && |
---|
7217 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7218 | || test ! -s conftest.err' |
---|
7219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7220 | (eval $ac_try) 2>&5 |
---|
7221 | ac_status=$? |
---|
7222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7223 | (exit $ac_status); }; } && |
---|
7224 | { ac_try='test -s conftest$ac_exeext' |
---|
7225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7226 | (eval $ac_try) 2>&5 |
---|
7227 | ac_status=$? |
---|
7228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7229 | (exit $ac_status); }; }; then |
---|
7230 | flink_try=yes |
---|
7231 | else |
---|
7232 | echo "$as_me: failed program was:" >&5 |
---|
7233 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7234 | |
---|
7235 | flink_try=no |
---|
7236 | fi |
---|
7237 | rm -f conftest.err conftest.$ac_objext \ |
---|
7238 | conftest$ac_exeext conftest.$ac_ext |
---|
7239 | fi |
---|
7240 | if test $flink_try = yes; then |
---|
7241 | use_blas='-framework Accelerate' |
---|
7242 | if test $coin_need_flibs = yes ; then |
---|
7243 | use_blas="$use_blas $FLIBS" |
---|
7244 | fi |
---|
7245 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
7246 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
7247 | |
---|
7248 | else |
---|
7249 | if test x"$FLIBS" != x; then |
---|
7250 | flink_save_libs="$LIBS" |
---|
7251 | LIBS="$LIBS $FLIBS" |
---|
7252 | cat >conftest.$ac_ext <<_ACEOF |
---|
7253 | /* confdefs.h. */ |
---|
7254 | _ACEOF |
---|
7255 | cat confdefs.h >>conftest.$ac_ext |
---|
7256 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7257 | /* end confdefs.h. */ |
---|
7258 | extern "C" {void $cfuncdaxpy();} |
---|
7259 | #ifdef F77_DUMMY_MAIN |
---|
7260 | |
---|
7261 | # ifdef __cplusplus |
---|
7262 | extern "C" |
---|
7263 | # endif |
---|
7264 | int F77_DUMMY_MAIN() { return 1; } |
---|
7265 | |
---|
7266 | #endif |
---|
7267 | int |
---|
7268 | main () |
---|
7269 | { |
---|
7270 | $cfuncdaxpy() |
---|
7271 | ; |
---|
7272 | return 0; |
---|
7273 | } |
---|
7274 | _ACEOF |
---|
7275 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7276 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7277 | (eval $ac_link) 2>conftest.er1 |
---|
7278 | ac_status=$? |
---|
7279 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7280 | rm -f conftest.er1 |
---|
7281 | cat conftest.err >&5 |
---|
7282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7283 | (exit $ac_status); } && |
---|
7284 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7285 | || test ! -s conftest.err' |
---|
7286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7287 | (eval $ac_try) 2>&5 |
---|
7288 | ac_status=$? |
---|
7289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7290 | (exit $ac_status); }; } && |
---|
7291 | { ac_try='test -s conftest$ac_exeext' |
---|
7292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7293 | (eval $ac_try) 2>&5 |
---|
7294 | ac_status=$? |
---|
7295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7296 | (exit $ac_status); }; }; then |
---|
7297 | LIBS="$flink_save_libs" |
---|
7298 | coin_need_flibs=yes |
---|
7299 | use_blas='-framework Accelerate' |
---|
7300 | if test $coin_need_flibs = yes ; then |
---|
7301 | use_blas="$use_blas $FLIBS" |
---|
7302 | fi |
---|
7303 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
7304 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
7305 | |
---|
7306 | |
---|
7307 | else |
---|
7308 | echo "$as_me: failed program was:" >&5 |
---|
7309 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7310 | |
---|
7311 | LIBS="$flink_save_libs" |
---|
7312 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7313 | echo "${ECHO_T}no" >&6 |
---|
7314 | fi |
---|
7315 | rm -f conftest.err conftest.$ac_objext \ |
---|
7316 | conftest$ac_exeext conftest.$ac_ext |
---|
7317 | else |
---|
7318 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7319 | echo "${ECHO_T}no" >&6 |
---|
7320 | fi |
---|
7321 | fi |
---|
7322 | ;; |
---|
7323 | esac |
---|
7324 | |
---|
7325 | LIBS="$coin_save_LIBS" |
---|
7326 | ;; |
---|
7327 | esac |
---|
7328 | |
---|
7329 | if test -z "$use_blas" ; then |
---|
7330 | echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5 |
---|
7331 | echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6 |
---|
7332 | coin_need_flibs=no |
---|
7333 | coin_save_LIBS="$LIBS" |
---|
7334 | LIBS="-lblas $LIBS" |
---|
7335 | case $ac_ext in |
---|
7336 | f) |
---|
7337 | cat >conftest.$ac_ext <<_ACEOF |
---|
7338 | /* confdefs.h. */ |
---|
7339 | _ACEOF |
---|
7340 | cat confdefs.h >>conftest.$ac_ext |
---|
7341 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7342 | /* end confdefs.h. */ |
---|
7343 | |
---|
7344 | #ifdef F77_DUMMY_MAIN |
---|
7345 | |
---|
7346 | # ifdef __cplusplus |
---|
7347 | extern "C" |
---|
7348 | # endif |
---|
7349 | int F77_DUMMY_MAIN() { return 1; } |
---|
7350 | |
---|
7351 | #endif |
---|
7352 | int |
---|
7353 | main () |
---|
7354 | { |
---|
7355 | call daxpy |
---|
7356 | ; |
---|
7357 | return 0; |
---|
7358 | } |
---|
7359 | _ACEOF |
---|
7360 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7362 | (eval $ac_link) 2>conftest.er1 |
---|
7363 | ac_status=$? |
---|
7364 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7365 | rm -f conftest.er1 |
---|
7366 | cat conftest.err >&5 |
---|
7367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7368 | (exit $ac_status); } && |
---|
7369 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7370 | || test ! -s conftest.err' |
---|
7371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7372 | (eval $ac_try) 2>&5 |
---|
7373 | ac_status=$? |
---|
7374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7375 | (exit $ac_status); }; } && |
---|
7376 | { ac_try='test -s conftest$ac_exeext' |
---|
7377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7378 | (eval $ac_try) 2>&5 |
---|
7379 | ac_status=$? |
---|
7380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7381 | (exit $ac_status); }; }; then |
---|
7382 | use_blas='-lblas' |
---|
7383 | if test $coin_need_flibs = yes ; then |
---|
7384 | use_blas="$use_blas $FLIBS" |
---|
7385 | fi |
---|
7386 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
7387 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
7388 | |
---|
7389 | else |
---|
7390 | echo "$as_me: failed program was:" >&5 |
---|
7391 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7392 | |
---|
7393 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7394 | echo "${ECHO_T}no" >&6 |
---|
7395 | fi |
---|
7396 | rm -f conftest.err conftest.$ac_objext \ |
---|
7397 | conftest$ac_exeext conftest.$ac_ext |
---|
7398 | ;; |
---|
7399 | c) |
---|
7400 | ac_ext=f |
---|
7401 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
7402 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7403 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
7404 | case $ac_cv_f77_mangling in |
---|
7405 | upper*) ac_val="DAXPY" ;; |
---|
7406 | lower*) ac_val="daxpy" ;; |
---|
7407 | *) ac_val="unknown" ;; |
---|
7408 | esac |
---|
7409 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
7410 | |
---|
7411 | cfuncdaxpy="$ac_val" |
---|
7412 | |
---|
7413 | ac_ext=c |
---|
7414 | ac_cpp='$CPP $CPPFLAGS' |
---|
7415 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7416 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7417 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7418 | |
---|
7419 | if test x"$coin_need_flibs" = xyes; then |
---|
7420 | flink_try=no; |
---|
7421 | else |
---|
7422 | cat >conftest.$ac_ext <<_ACEOF |
---|
7423 | /* confdefs.h. */ |
---|
7424 | _ACEOF |
---|
7425 | cat confdefs.h >>conftest.$ac_ext |
---|
7426 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7427 | /* end confdefs.h. */ |
---|
7428 | void $cfuncdaxpy(); |
---|
7429 | #ifdef F77_DUMMY_MAIN |
---|
7430 | |
---|
7431 | # ifdef __cplusplus |
---|
7432 | extern "C" |
---|
7433 | # endif |
---|
7434 | int F77_DUMMY_MAIN() { return 1; } |
---|
7435 | |
---|
7436 | #endif |
---|
7437 | int |
---|
7438 | main () |
---|
7439 | { |
---|
7440 | $cfuncdaxpy() |
---|
7441 | ; |
---|
7442 | return 0; |
---|
7443 | } |
---|
7444 | _ACEOF |
---|
7445 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7447 | (eval $ac_link) 2>conftest.er1 |
---|
7448 | ac_status=$? |
---|
7449 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7450 | rm -f conftest.er1 |
---|
7451 | cat conftest.err >&5 |
---|
7452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7453 | (exit $ac_status); } && |
---|
7454 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7455 | || test ! -s conftest.err' |
---|
7456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7457 | (eval $ac_try) 2>&5 |
---|
7458 | ac_status=$? |
---|
7459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7460 | (exit $ac_status); }; } && |
---|
7461 | { ac_try='test -s conftest$ac_exeext' |
---|
7462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7463 | (eval $ac_try) 2>&5 |
---|
7464 | ac_status=$? |
---|
7465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7466 | (exit $ac_status); }; }; then |
---|
7467 | flink_try=yes |
---|
7468 | else |
---|
7469 | echo "$as_me: failed program was:" >&5 |
---|
7470 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7471 | |
---|
7472 | flink_try=no |
---|
7473 | fi |
---|
7474 | rm -f conftest.err conftest.$ac_objext \ |
---|
7475 | conftest$ac_exeext conftest.$ac_ext |
---|
7476 | fi |
---|
7477 | if test $flink_try = yes; then |
---|
7478 | use_blas='-lblas' |
---|
7479 | if test $coin_need_flibs = yes ; then |
---|
7480 | use_blas="$use_blas $FLIBS" |
---|
7481 | fi |
---|
7482 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
7483 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
7484 | |
---|
7485 | else |
---|
7486 | if test x"$FLIBS" != x; then |
---|
7487 | flink_save_libs="$LIBS" |
---|
7488 | LIBS="$LIBS $FLIBS" |
---|
7489 | cat >conftest.$ac_ext <<_ACEOF |
---|
7490 | /* confdefs.h. */ |
---|
7491 | _ACEOF |
---|
7492 | cat confdefs.h >>conftest.$ac_ext |
---|
7493 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7494 | /* end confdefs.h. */ |
---|
7495 | void $cfuncdaxpy(); |
---|
7496 | #ifdef F77_DUMMY_MAIN |
---|
7497 | |
---|
7498 | # ifdef __cplusplus |
---|
7499 | extern "C" |
---|
7500 | # endif |
---|
7501 | int F77_DUMMY_MAIN() { return 1; } |
---|
7502 | |
---|
7503 | #endif |
---|
7504 | int |
---|
7505 | main () |
---|
7506 | { |
---|
7507 | $cfuncdaxpy() |
---|
7508 | ; |
---|
7509 | return 0; |
---|
7510 | } |
---|
7511 | _ACEOF |
---|
7512 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7514 | (eval $ac_link) 2>conftest.er1 |
---|
7515 | ac_status=$? |
---|
7516 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7517 | rm -f conftest.er1 |
---|
7518 | cat conftest.err >&5 |
---|
7519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7520 | (exit $ac_status); } && |
---|
7521 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7522 | || test ! -s conftest.err' |
---|
7523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7524 | (eval $ac_try) 2>&5 |
---|
7525 | ac_status=$? |
---|
7526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7527 | (exit $ac_status); }; } && |
---|
7528 | { ac_try='test -s conftest$ac_exeext' |
---|
7529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7530 | (eval $ac_try) 2>&5 |
---|
7531 | ac_status=$? |
---|
7532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7533 | (exit $ac_status); }; }; then |
---|
7534 | LIBS="$flink_save_libs" |
---|
7535 | coin_need_flibs=yes |
---|
7536 | use_blas='-lblas' |
---|
7537 | if test $coin_need_flibs = yes ; then |
---|
7538 | use_blas="$use_blas $FLIBS" |
---|
7539 | fi |
---|
7540 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
7541 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
7542 | |
---|
7543 | |
---|
7544 | else |
---|
7545 | echo "$as_me: failed program was:" >&5 |
---|
7546 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7547 | |
---|
7548 | LIBS="$flink_save_libs" |
---|
7549 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7550 | echo "${ECHO_T}no" >&6 |
---|
7551 | fi |
---|
7552 | rm -f conftest.err conftest.$ac_objext \ |
---|
7553 | conftest$ac_exeext conftest.$ac_ext |
---|
7554 | else |
---|
7555 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7556 | echo "${ECHO_T}no" >&6 |
---|
7557 | fi |
---|
7558 | fi |
---|
7559 | ;; |
---|
7560 | cc|cpp) |
---|
7561 | ac_ext=f |
---|
7562 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
7563 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7564 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
7565 | case $ac_cv_f77_mangling in |
---|
7566 | upper*) ac_val="DAXPY" ;; |
---|
7567 | lower*) ac_val="daxpy" ;; |
---|
7568 | *) ac_val="unknown" ;; |
---|
7569 | esac |
---|
7570 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
7571 | |
---|
7572 | cfuncdaxpy="$ac_val" |
---|
7573 | |
---|
7574 | ac_ext=c |
---|
7575 | ac_cpp='$CPP $CPPFLAGS' |
---|
7576 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7577 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7578 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7579 | |
---|
7580 | if test x"$coin_need_flibs" = xyes; then |
---|
7581 | flink_try=no; |
---|
7582 | else |
---|
7583 | cat >conftest.$ac_ext <<_ACEOF |
---|
7584 | /* confdefs.h. */ |
---|
7585 | _ACEOF |
---|
7586 | cat confdefs.h >>conftest.$ac_ext |
---|
7587 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7588 | /* end confdefs.h. */ |
---|
7589 | extern "C" {void $cfuncdaxpy();} |
---|
7590 | #ifdef F77_DUMMY_MAIN |
---|
7591 | |
---|
7592 | # ifdef __cplusplus |
---|
7593 | extern "C" |
---|
7594 | # endif |
---|
7595 | int F77_DUMMY_MAIN() { return 1; } |
---|
7596 | |
---|
7597 | #endif |
---|
7598 | int |
---|
7599 | main () |
---|
7600 | { |
---|
7601 | $cfuncdaxpy() |
---|
7602 | ; |
---|
7603 | return 0; |
---|
7604 | } |
---|
7605 | _ACEOF |
---|
7606 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7607 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7608 | (eval $ac_link) 2>conftest.er1 |
---|
7609 | ac_status=$? |
---|
7610 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7611 | rm -f conftest.er1 |
---|
7612 | cat conftest.err >&5 |
---|
7613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7614 | (exit $ac_status); } && |
---|
7615 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7616 | || test ! -s conftest.err' |
---|
7617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7618 | (eval $ac_try) 2>&5 |
---|
7619 | ac_status=$? |
---|
7620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7621 | (exit $ac_status); }; } && |
---|
7622 | { ac_try='test -s conftest$ac_exeext' |
---|
7623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7624 | (eval $ac_try) 2>&5 |
---|
7625 | ac_status=$? |
---|
7626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7627 | (exit $ac_status); }; }; then |
---|
7628 | flink_try=yes |
---|
7629 | else |
---|
7630 | echo "$as_me: failed program was:" >&5 |
---|
7631 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7632 | |
---|
7633 | flink_try=no |
---|
7634 | fi |
---|
7635 | rm -f conftest.err conftest.$ac_objext \ |
---|
7636 | conftest$ac_exeext conftest.$ac_ext |
---|
7637 | fi |
---|
7638 | if test $flink_try = yes; then |
---|
7639 | use_blas='-lblas' |
---|
7640 | if test $coin_need_flibs = yes ; then |
---|
7641 | use_blas="$use_blas $FLIBS" |
---|
7642 | fi |
---|
7643 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
7644 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
7645 | |
---|
7646 | else |
---|
7647 | if test x"$FLIBS" != x; then |
---|
7648 | flink_save_libs="$LIBS" |
---|
7649 | LIBS="$LIBS $FLIBS" |
---|
7650 | cat >conftest.$ac_ext <<_ACEOF |
---|
7651 | /* confdefs.h. */ |
---|
7652 | _ACEOF |
---|
7653 | cat confdefs.h >>conftest.$ac_ext |
---|
7654 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7655 | /* end confdefs.h. */ |
---|
7656 | extern "C" {void $cfuncdaxpy();} |
---|
7657 | #ifdef F77_DUMMY_MAIN |
---|
7658 | |
---|
7659 | # ifdef __cplusplus |
---|
7660 | extern "C" |
---|
7661 | # endif |
---|
7662 | int F77_DUMMY_MAIN() { return 1; } |
---|
7663 | |
---|
7664 | #endif |
---|
7665 | int |
---|
7666 | main () |
---|
7667 | { |
---|
7668 | $cfuncdaxpy() |
---|
7669 | ; |
---|
7670 | return 0; |
---|
7671 | } |
---|
7672 | _ACEOF |
---|
7673 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7675 | (eval $ac_link) 2>conftest.er1 |
---|
7676 | ac_status=$? |
---|
7677 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7678 | rm -f conftest.er1 |
---|
7679 | cat conftest.err >&5 |
---|
7680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7681 | (exit $ac_status); } && |
---|
7682 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7683 | || test ! -s conftest.err' |
---|
7684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7685 | (eval $ac_try) 2>&5 |
---|
7686 | ac_status=$? |
---|
7687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7688 | (exit $ac_status); }; } && |
---|
7689 | { ac_try='test -s conftest$ac_exeext' |
---|
7690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7691 | (eval $ac_try) 2>&5 |
---|
7692 | ac_status=$? |
---|
7693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7694 | (exit $ac_status); }; }; then |
---|
7695 | LIBS="$flink_save_libs" |
---|
7696 | coin_need_flibs=yes |
---|
7697 | use_blas='-lblas' |
---|
7698 | if test $coin_need_flibs = yes ; then |
---|
7699 | use_blas="$use_blas $FLIBS" |
---|
7700 | fi |
---|
7701 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
7702 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
7703 | |
---|
7704 | |
---|
7705 | else |
---|
7706 | echo "$as_me: failed program was:" >&5 |
---|
7707 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7708 | |
---|
7709 | LIBS="$flink_save_libs" |
---|
7710 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7711 | echo "${ECHO_T}no" >&6 |
---|
7712 | fi |
---|
7713 | rm -f conftest.err conftest.$ac_objext \ |
---|
7714 | conftest$ac_exeext conftest.$ac_ext |
---|
7715 | else |
---|
7716 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7717 | echo "${ECHO_T}no" >&6 |
---|
7718 | fi |
---|
7719 | fi |
---|
7720 | ;; |
---|
7721 | esac |
---|
7722 | |
---|
7723 | LIBS="$coin_save_LIBS" |
---|
7724 | fi |
---|
7725 | |
---|
7726 | # If we have no other ideas, consider building BLAS. |
---|
7727 | if test -z "$use_blas" ; then |
---|
7728 | use_blas=BUILD |
---|
7729 | fi |
---|
7730 | fi |
---|
7731 | |
---|
7732 | if test "x$use_blas" = xBUILD ; then |
---|
7733 | |
---|
7734 | echo "$as_me:$LINENO: checking for COIN-OR package Blas" >&5 |
---|
7735 | echo $ECHO_N "checking for COIN-OR package Blas... $ECHO_C" >&6 |
---|
7736 | |
---|
7737 | coin_has_blas=notGiven |
---|
7738 | |
---|
7739 | # check if user wants to skip package in any case |
---|
7740 | if test x"$COIN_SKIP_PROJECTS" != x; then |
---|
7741 | for dir in $COIN_SKIP_PROJECTS; do |
---|
7742 | if test $dir = "Blas"; then |
---|
7743 | coin_has_blas=skipping |
---|
7744 | fi |
---|
7745 | done |
---|
7746 | fi |
---|
7747 | |
---|
7748 | if test "$coin_has_blas" != skipping; then |
---|
7749 | |
---|
7750 | # Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given. |
---|
7751 | if test "${with_blas+set}" = set; then |
---|
7752 | withval="$with_blas" |
---|
7753 | if test "$withval" = no ; then |
---|
7754 | coin_has_blas=skipping |
---|
7755 | fi |
---|
7756 | |
---|
7757 | fi; |
---|
7758 | fi |
---|
7759 | |
---|
7760 | BLAS_LIBS= |
---|
7761 | BLAS_CFLAGS= |
---|
7762 | BLAS_DATA= |
---|
7763 | BLAS_DEPENDENCIES= |
---|
7764 | BLAS_PCLIBS= |
---|
7765 | BLAS_PCREQUIRES= |
---|
7766 | |
---|
7767 | |
---|
7768 | |
---|
7769 | |
---|
7770 | |
---|
7771 | |
---|
7772 | |
---|
7773 | |
---|
7774 | |
---|
7775 | |
---|
7776 | |
---|
7777 | |
---|
7778 | |
---|
7779 | |
---|
7780 | |
---|
7781 | |
---|
7782 | |
---|
7783 | #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package |
---|
7784 | if test $coin_has_blas != skipping; then |
---|
7785 | |
---|
7786 | # Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given. |
---|
7787 | if test "${with_blas_lib+set}" = set; then |
---|
7788 | withval="$with_blas_lib" |
---|
7789 | if test "$withval" = no ; then |
---|
7790 | coin_has_blas=skipping |
---|
7791 | else |
---|
7792 | coin_has_blas=yes |
---|
7793 | BLAS_LIBS="$withval" |
---|
7794 | BLAS_PCLIBS="$withval" |
---|
7795 | |
---|
7796 | LAPACKLIB_PCLIBS="$withval $LAPACKLIB_PCLIBS" |
---|
7797 | LAPACKLIB_LIBS="$withval $LAPACKLIB_LIBS" |
---|
7798 | |
---|
7799 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
---|
7800 | if test -z "$PKG_CONFIG" ; then |
---|
7801 | BLAS_LIBS_INSTALLED="$withval" |
---|
7802 | LAPACKLIB_LIBS_INSTALLED="$withval $LAPACKLIB_LIBS_INSTALLED" |
---|
7803 | fi |
---|
7804 | fi |
---|
7805 | |
---|
7806 | fi; |
---|
7807 | fi |
---|
7808 | |
---|
7809 | if test $coin_has_blas != skipping; then |
---|
7810 | |
---|
7811 | # Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given. |
---|
7812 | if test "${with_blas_incdir+set}" = set; then |
---|
7813 | withval="$with_blas_incdir" |
---|
7814 | if test "$withval" = no ; then |
---|
7815 | coin_has_blas=skipping |
---|
7816 | else |
---|
7817 | coin_has_blas=yes |
---|
7818 | BLAS_CFLAGS="-I`${CYGPATH_W} $withval`" |
---|
7819 | LAPACKLIB_CFLAGS="-I`${CYGPATH_W} $withval` $LAPACKLIB_CFLAGS" |
---|
7820 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
---|
7821 | if test -z "$PKG_CONFIG" ; then |
---|
7822 | BLAS_CFLAGS_INSTALLED="$BLAS_CFLAGS" |
---|
7823 | LAPACKLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS $LAPACKLIB_CFLAGS_INSTALLED" |
---|
7824 | fi |
---|
7825 | fi |
---|
7826 | |
---|
7827 | fi; |
---|
7828 | fi |
---|
7829 | |
---|
7830 | if test $coin_has_blas != skipping; then |
---|
7831 | |
---|
7832 | # Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given. |
---|
7833 | if test "${with_blas_datadir+set}" = set; then |
---|
7834 | withval="$with_blas_datadir" |
---|
7835 | if test "$withval" = no ; then |
---|
7836 | coin_has_blas=skipping |
---|
7837 | else |
---|
7838 | coin_has_blas=yes |
---|
7839 | BLAS_DATA="$withval" |
---|
7840 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
---|
7841 | if test -z "$PKG_CONFIG" ; then |
---|
7842 | BLAS_DATA_INSTALLED="$withval" |
---|
7843 | fi |
---|
7844 | fi |
---|
7845 | |
---|
7846 | fi; |
---|
7847 | fi |
---|
7848 | |
---|
7849 | if test $coin_has_blas = notGiven; then |
---|
7850 | if test -n "$PKG_CONFIG" ; then |
---|
7851 | # set search path for pkg-config |
---|
7852 | # need to export variable to be sure that the following pkg-config gets these values |
---|
7853 | coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
---|
7854 | PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" |
---|
7855 | export PKG_CONFIG_PATH |
---|
7856 | |
---|
7857 | # let pkg-config do it's magic |
---|
7858 | |
---|
7859 | |
---|
7860 | |
---|
7861 | if test -n "$PKG_CONFIG" ; then |
---|
7862 | if $PKG_CONFIG --exists "coinblas"; then |
---|
7863 | BLAS_VERSIONS=`$PKG_CONFIG --modversion "coinblas" 2>/dev/null | tr '\n' ' '` |
---|
7864 | cflags=`$PKG_CONFIG --cflags "coinblas" 2>/dev/null` |
---|
7865 | # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files |
---|
7866 | # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's |
---|
7867 | # but only do this if is not trivial |
---|
7868 | if test "$CYGPATH_W" != "echo" ; then |
---|
7869 | # need to put into brackets since otherwise autoconf replaces the brackets in the sed command |
---|
7870 | cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
---|
7871 | fi |
---|
7872 | BLAS_CFLAGS="$cflags" |
---|
7873 | BLAS_LIBS=`$PKG_CONFIG --libs "coinblas" 2>/dev/null` |
---|
7874 | BLAS_DATA=`$PKG_CONFIG --variable=datadir "coinblas" 2>/dev/null` |
---|
7875 | coin_has_blas=yes |
---|
7876 | echo "$as_me:$LINENO: result: yes: $BLAS_VERSIONS" >&5 |
---|
7877 | echo "${ECHO_T}yes: $BLAS_VERSIONS" >&6 |
---|
7878 | |
---|
7879 | # adjust linker flags for (i)cl compiler |
---|
7880 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl) |
---|
7881 | if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ; |
---|
7882 | then |
---|
7883 | BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
---|
7884 | fi |
---|
7885 | BLAS_PCREQUIRES="coinblas" |
---|
7886 | |
---|
7887 | # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in LapackLib |
---|
7888 | |
---|
7889 | LAPACKLIB_PCREQUIRES="coinblas $LAPACKLIB_PCREQUIRES" |
---|
7890 | LAPACKLIB_CFLAGS="$BLAS_CFLAGS $LAPACKLIB_CFLAGS" |
---|
7891 | LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS" |
---|
7892 | |
---|
7893 | |
---|
7894 | |
---|
7895 | else |
---|
7896 | BLAS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinblas"` |
---|
7897 | coin_has_blas=notGiven |
---|
7898 | echo "$as_me:$LINENO: result: not given: $BLAS_PKG_ERRORS" >&5 |
---|
7899 | echo "${ECHO_T}not given: $BLAS_PKG_ERRORS" >&6 |
---|
7900 | |
---|
7901 | fi |
---|
7902 | else |
---|
7903 | { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Blas without pkg-config\"" >&5 |
---|
7904 | echo "$as_me: error: \"Cannot check for existance of module Blas without pkg-config\"" >&2;} |
---|
7905 | { (exit 1); exit 1; }; } |
---|
7906 | fi |
---|
7907 | |
---|
7908 | |
---|
7909 | |
---|
7910 | |
---|
7911 | # reset PKG_CONFIG_PATH variable |
---|
7912 | PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" |
---|
7913 | export PKG_CONFIG_PATH |
---|
7914 | |
---|
7915 | else |
---|
7916 | echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 |
---|
7917 | echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 |
---|
7918 | |
---|
7919 | echo "$as_me:$LINENO: checking for COIN-OR package Blas (fallback)" >&5 |
---|
7920 | echo $ECHO_N "checking for COIN-OR package Blas (fallback)... $ECHO_C" >&6 |
---|
7921 | |
---|
7922 | coin_has_blas=notGiven |
---|
7923 | BLAS_LIBS= |
---|
7924 | BLAS_LIBS_INSTALLED= |
---|
7925 | BLAS_CFLAGS= |
---|
7926 | BLAS_CFLAGS_INSTALLED= |
---|
7927 | BLAS_DATA= |
---|
7928 | BLAS_DATA_INSTALLED= |
---|
7929 | BLAS_PCLIBS= |
---|
7930 | BLAS_PCREQUIRES= |
---|
7931 | |
---|
7932 | # initial list of dependencies is "coinblas", but we need to filter out version number specifications (= x, <= x, >= x, != x) |
---|
7933 | projtoprocess="coinblas" |
---|
7934 | |
---|
7935 | # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it |
---|
7936 | # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards |
---|
7937 | # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples |
---|
7938 | # also, we setup the DATA variable |
---|
7939 | allproj="" |
---|
7940 | allpcfiles="" |
---|
7941 | allpcifiles="" |
---|
7942 | while test "x$projtoprocess" != x ; do |
---|
7943 | |
---|
7944 | for proj in $projtoprocess ; do |
---|
7945 | # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it |
---|
7946 | pcfile="" |
---|
7947 | save_IFS="$IFS" |
---|
7948 | IFS=":" |
---|
7949 | for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do |
---|
7950 | # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again |
---|
7951 | if test -r "$dir/${proj}-uninstalled.pc" ; then |
---|
7952 | pcfile="$dir/$proj-uninstalled.pc" |
---|
7953 | if test -r "$dir/${proj}.pc" ; then |
---|
7954 | pcifile="$dir/${proj}.pc" |
---|
7955 | else |
---|
7956 | { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5 |
---|
7957 | echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;} |
---|
7958 | pcifile= |
---|
7959 | fi |
---|
7960 | break |
---|
7961 | fi |
---|
7962 | done |
---|
7963 | IFS="$save_IFS" |
---|
7964 | |
---|
7965 | if test "x$pcfile" != x ; then |
---|
7966 | # read dependencies from $pcfile and filter it |
---|
7967 | projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` |
---|
7968 | |
---|
7969 | # add projrequires to the front of the list of projects that have to be processed next |
---|
7970 | # at the same time, remove $proj from this list |
---|
7971 | projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"` |
---|
7972 | |
---|
7973 | # read DATA from $pcfile, if _DATA is still empty |
---|
7974 | if test "x$BLAS_DATA" = x ; then |
---|
7975 | projdatadir= |
---|
7976 | pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile` |
---|
7977 | eval `sh -c "$pcfilemod"` |
---|
7978 | BLAS_DATA="$projdatadir" |
---|
7979 | fi |
---|
7980 | |
---|
7981 | allproj="$allproj $proj" |
---|
7982 | allpcfiles="$pcfile:$allpcfiles" |
---|
7983 | |
---|
7984 | else |
---|
7985 | echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 |
---|
7986 | echo "${ECHO_T}no, dependency $proj not available" >&6 |
---|
7987 | allproj=fail |
---|
7988 | break 2 |
---|
7989 | fi |
---|
7990 | |
---|
7991 | if test "x$pcifile" != x ; then |
---|
7992 | allpcifiles="$pcifile:$allpcifiles" |
---|
7993 | |
---|
7994 | # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty |
---|
7995 | if test "x$BLAS_DATA_INSTALLED" = x ; then |
---|
7996 | projdatadir= |
---|
7997 | pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile` |
---|
7998 | eval `sh -c "$pcifilemod"` |
---|
7999 | if test "${CYGPATH_W}" != "echo"; then |
---|
8000 | projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`" |
---|
8001 | fi |
---|
8002 | BLAS_DATA_INSTALLED="$projdatadir" |
---|
8003 | fi |
---|
8004 | |
---|
8005 | fi |
---|
8006 | |
---|
8007 | break |
---|
8008 | done |
---|
8009 | |
---|
8010 | # remove spaces on begin of $projtoprocess |
---|
8011 | projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'` |
---|
8012 | |
---|
8013 | done |
---|
8014 | |
---|
8015 | if test "$allproj" != fail ; then |
---|
8016 | |
---|
8017 | # now go through the list of .pc files and assemble compiler and linker flags |
---|
8018 | # important is here to obey the reverse order that has been setup before, |
---|
8019 | # since then libraries that are required by several others should be after these other libraries |
---|
8020 | pcfilesprocessed="" |
---|
8021 | |
---|
8022 | save_IFS="$IFS" |
---|
8023 | IFS=":" |
---|
8024 | for pcfile in $allpcfiles ; do |
---|
8025 | |
---|
8026 | # if $pcfile has been processed already, skip this round |
---|
8027 | if test "x$pcfilesprocessed" != x ; then |
---|
8028 | for pcfiledone in $pcfilesprocessed ; do |
---|
8029 | if test "$pcfiledone" = "$pcfile" ; then |
---|
8030 | continue 2 |
---|
8031 | fi |
---|
8032 | done |
---|
8033 | fi |
---|
8034 | |
---|
8035 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
---|
8036 | # replace "Libs:" by "echo projlibs=" |
---|
8037 | # replace "Cflags:" by "echo projcflags=" |
---|
8038 | # remove every line starting with <some word>: |
---|
8039 | pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile` |
---|
8040 | |
---|
8041 | # set projcflags and projlibs variables by running $pcfilemod |
---|
8042 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
---|
8043 | projcflags= |
---|
8044 | projlibs= |
---|
8045 | IFS="$save_IFS" |
---|
8046 | eval `sh -c "$pcfilemod"` |
---|
8047 | IFS=":" |
---|
8048 | |
---|
8049 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
---|
8050 | if test "${CYGPATH_W}" != "echo"; then |
---|
8051 | projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
---|
8052 | fi |
---|
8053 | BLAS_CFLAGS="$projcflags $BLAS_CFLAGS" |
---|
8054 | |
---|
8055 | # set LIBS variable |
---|
8056 | BLAS_LIBS="$projlibs $BLAS_LIBS" |
---|
8057 | |
---|
8058 | # remember that we have processed $pcfile |
---|
8059 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
---|
8060 | |
---|
8061 | done |
---|
8062 | IFS="$save_IFS" |
---|
8063 | |
---|
8064 | |
---|
8065 | # now go through the list of .pc files for installed projects and assemble compiler and linker flags |
---|
8066 | # important is here again to obey the reverse order that has been setup before, |
---|
8067 | # since then libraries that are required by several others should be after these other libraries |
---|
8068 | pcfilesprocessed="" |
---|
8069 | |
---|
8070 | save_IFS="$IFS" |
---|
8071 | IFS=":" |
---|
8072 | for pcfile in $allpcifiles ; do |
---|
8073 | |
---|
8074 | # if $pcfile has been processed already, skip this round |
---|
8075 | if test "x$pcfilesprocessed" != x ; then |
---|
8076 | for pcfiledone in $pcfilesprocessed ; do |
---|
8077 | if test "$pcfiledone" = "$pcfile" ; then |
---|
8078 | continue 2 |
---|
8079 | fi |
---|
8080 | done |
---|
8081 | fi |
---|
8082 | |
---|
8083 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
---|
8084 | # replace "Libs:" by "echo projlibs=" |
---|
8085 | # replace "Cflags:" by "echo projcflags=" |
---|
8086 | # remove every line starting with <some word>: |
---|
8087 | pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile` |
---|
8088 | |
---|
8089 | # set projcflags and projlibs variables by running $pcfilemod |
---|
8090 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
---|
8091 | projcflags= |
---|
8092 | projlibs= |
---|
8093 | IFS="$save_IFS" |
---|
8094 | eval `sh -c "$pcfilemod"` |
---|
8095 | IFS=":" |
---|
8096 | |
---|
8097 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
---|
8098 | if test "${CYGPATH_W}" != "echo"; then |
---|
8099 | projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
---|
8100 | fi |
---|
8101 | BLAS_CFLAGS_INSTALLED="$projcflags $BLAS_CFLAGS_INSTALLED" |
---|
8102 | |
---|
8103 | # set LIBS variable |
---|
8104 | BLAS_LIBS_INSTALLED="$projlibs $BLAS_LIBS_INSTALLED" |
---|
8105 | |
---|
8106 | # remember that we have processed $pcfile |
---|
8107 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
---|
8108 | |
---|
8109 | done |
---|
8110 | IFS="$save_IFS" |
---|
8111 | |
---|
8112 | |
---|
8113 | # finish up |
---|
8114 | coin_has_blas=yes |
---|
8115 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
8116 | echo "${ECHO_T}yes" >&6 |
---|
8117 | |
---|
8118 | cat >>confdefs.h <<\_ACEOF |
---|
8119 | #define COIN_HAS_BLAS 1 |
---|
8120 | _ACEOF |
---|
8121 | |
---|
8122 | |
---|
8123 | # adjust linker flags for (i)cl compiler |
---|
8124 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl), |
---|
8125 | # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`", |
---|
8126 | # everything of the form "-lname" by "libname.lib", and |
---|
8127 | # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path` |
---|
8128 | if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ; |
---|
8129 | then |
---|
8130 | BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
---|
8131 | BLAS_LIBS_INSTALLED=`echo " $BLAS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'` |
---|
8132 | fi |
---|
8133 | |
---|
8134 | BLAS_PCREQUIRES="coinblas" |
---|
8135 | |
---|
8136 | LAPACKLIB_PCREQUIRES="coinblas $LAPACKLIB_PCREQUIRES" |
---|
8137 | LAPACKLIB_CFLAGS="$BLAS_CFLAGS $LAPACKLIB_CFLAGS" |
---|
8138 | LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS" |
---|
8139 | LAPACKLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS_INSTALLED $LAPACKLIB_CFLAGS_INSTALLED" |
---|
8140 | LAPACKLIB_LIBS_INSTALLED="$BLAS_LIBS_INSTALLED $LAPACKLIB_LIBS_INSTALLED" |
---|
8141 | |
---|
8142 | |
---|
8143 | fi |
---|
8144 | |
---|
8145 | |
---|
8146 | |
---|
8147 | if test $coin_has_blas != notGiven && |
---|
8148 | test $coin_has_blas != skipping; then |
---|
8149 | COIN_HAS_BLAS_TRUE= |
---|
8150 | COIN_HAS_BLAS_FALSE='#' |
---|
8151 | else |
---|
8152 | COIN_HAS_BLAS_TRUE='#' |
---|
8153 | COIN_HAS_BLAS_FALSE= |
---|
8154 | fi |
---|
8155 | |
---|
8156 | |
---|
8157 | |
---|
8158 | fi |
---|
8159 | |
---|
8160 | else |
---|
8161 | echo "$as_me:$LINENO: result: $coin_has_blas" >&5 |
---|
8162 | echo "${ECHO_T}$coin_has_blas" >&6 |
---|
8163 | fi |
---|
8164 | |
---|
8165 | if test $coin_has_blas != skipping && |
---|
8166 | test $coin_has_blas != notGiven ; then |
---|
8167 | |
---|
8168 | cat >>confdefs.h <<\_ACEOF |
---|
8169 | #define COIN_HAS_BLAS 1 |
---|
8170 | _ACEOF |
---|
8171 | |
---|
8172 | |
---|
8173 | # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given. |
---|
8174 | if test "${enable_interpackage_dependencies+set}" = set; then |
---|
8175 | enableval="$enable_interpackage_dependencies" |
---|
8176 | |
---|
8177 | else |
---|
8178 | enable_interpackage_dependencies=yes |
---|
8179 | fi; |
---|
8180 | |
---|
8181 | if test $enable_interpackage_dependencies = yes ; then |
---|
8182 | # construct dependencies variables from LIBS variables |
---|
8183 | # we add an extra space in LIBS so we can substitute out everything starting with " -" |
---|
8184 | # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows |
---|
8185 | # then remove everything of the form -xxx |
---|
8186 | # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl) |
---|
8187 | BLAS_DEPENDENCIES=`echo " $BLAS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
---|
8188 | |
---|
8189 | LAPACKLIB_DEPENDENCIES=`echo " $LAPACKLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
---|
8190 | |
---|
8191 | fi |
---|
8192 | |
---|
8193 | if test 1 = 0 ; then #change this test to enable a bit of debugging output |
---|
8194 | if test -n "$BLAS_CFLAGS" ; then |
---|
8195 | { echo "$as_me:$LINENO: Blas CFLAGS are $BLAS_CFLAGS" >&5 |
---|
8196 | echo "$as_me: Blas CFLAGS are $BLAS_CFLAGS" >&6;} |
---|
8197 | fi |
---|
8198 | if test -n "$BLAS_LIBS" ; then |
---|
8199 | { echo "$as_me:$LINENO: Blas LIBS are $BLAS_LIBS" >&5 |
---|
8200 | echo "$as_me: Blas LIBS are $BLAS_LIBS" >&6;} |
---|
8201 | fi |
---|
8202 | if test -n "$BLAS_DEPENDENCIES" ; then |
---|
8203 | { echo "$as_me:$LINENO: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&5 |
---|
8204 | echo "$as_me: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&6;} |
---|
8205 | fi |
---|
8206 | if test -n "$BLAS_DATA" ; then |
---|
8207 | { echo "$as_me:$LINENO: Blas DATA is $BLAS_DATA" >&5 |
---|
8208 | echo "$as_me: Blas DATA is $BLAS_DATA" >&6;} |
---|
8209 | fi |
---|
8210 | if test -n "$BLAS_PCLIBS" ; then |
---|
8211 | { echo "$as_me:$LINENO: Blas PCLIBS are $BLAS_PCLIBS" >&5 |
---|
8212 | echo "$as_me: Blas PCLIBS are $BLAS_PCLIBS" >&6;} |
---|
8213 | fi |
---|
8214 | if test -n "$BLAS_PCREQUIRES" ; then |
---|
8215 | { echo "$as_me:$LINENO: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&5 |
---|
8216 | echo "$as_me: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&6;} |
---|
8217 | fi |
---|
8218 | |
---|
8219 | { echo "$as_me:$LINENO: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&5 |
---|
8220 | echo "$as_me: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&6;} |
---|
8221 | { echo "$as_me:$LINENO: LapackLib LIBS are $LAPACKLIB_LIBS" >&5 |
---|
8222 | echo "$as_me: LapackLib LIBS are $LAPACKLIB_LIBS" >&6;} |
---|
8223 | { echo "$as_me:$LINENO: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&5 |
---|
8224 | echo "$as_me: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&6;} |
---|
8225 | |
---|
8226 | fi |
---|
8227 | fi |
---|
8228 | |
---|
8229 | # Define the Makefile conditional |
---|
8230 | |
---|
8231 | |
---|
8232 | if test $coin_has_blas != notGiven && |
---|
8233 | test $coin_has_blas != skipping; then |
---|
8234 | COIN_HAS_BLAS_TRUE= |
---|
8235 | COIN_HAS_BLAS_FALSE='#' |
---|
8236 | else |
---|
8237 | COIN_HAS_BLAS_TRUE='#' |
---|
8238 | COIN_HAS_BLAS_FALSE= |
---|
8239 | fi |
---|
8240 | |
---|
8241 | |
---|
8242 | |
---|
8243 | |
---|
8244 | elif test "x$use_blas" != x && test "$use_blas" != no; then |
---|
8245 | coin_has_blas=yes |
---|
8246 | |
---|
8247 | |
---|
8248 | if test 0 = 0; then |
---|
8249 | COIN_HAS_BLAS_TRUE= |
---|
8250 | COIN_HAS_BLAS_FALSE='#' |
---|
8251 | else |
---|
8252 | COIN_HAS_BLAS_TRUE='#' |
---|
8253 | COIN_HAS_BLAS_FALSE= |
---|
8254 | fi |
---|
8255 | |
---|
8256 | |
---|
8257 | cat >>confdefs.h <<\_ACEOF |
---|
8258 | #define COIN_HAS_BLAS 1 |
---|
8259 | _ACEOF |
---|
8260 | |
---|
8261 | BLAS_LIBS="$use_blas" |
---|
8262 | BLAS_CFLAGS= |
---|
8263 | BLAS_DATA= |
---|
8264 | |
---|
8265 | |
---|
8266 | |
---|
8267 | |
---|
8268 | LAPACKLIB_PCLIBS="$BLAS_LIBS $LAPACKLIB_PCLIBS" |
---|
8269 | LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS" |
---|
8270 | LAPACKLIB_LIBS_INSTALLED="$BLAS_LIBS $LAPACKLIB_LIBS_INSTALLED" |
---|
8271 | |
---|
8272 | |
---|
8273 | else |
---|
8274 | coin_has_blas=no |
---|
8275 | |
---|
8276 | |
---|
8277 | if test 0 = 1; then |
---|
8278 | COIN_HAS_BLAS_TRUE= |
---|
8279 | COIN_HAS_BLAS_FALSE='#' |
---|
8280 | else |
---|
8281 | COIN_HAS_BLAS_TRUE='#' |
---|
8282 | COIN_HAS_BLAS_FALSE= |
---|
8283 | fi |
---|
8284 | |
---|
8285 | fi |
---|
8286 | |
---|
8287 | |
---|
8288 | |
---|
8289 | |
---|
8290 | |
---|
8291 | |
---|
8292 | |
---|
8293 | |
---|
8294 | if test $coin_has_blas != yes; then |
---|
8295 | { { echo "$as_me:$LINENO: error: Required package BLAS not found." >&5 |
---|
8296 | echo "$as_me: error: Required package BLAS not found." >&2;} |
---|
8297 | { (exit 1); exit 1; }; } |
---|
8298 | fi |
---|
8299 | |
---|
8300 | # FLIBS will be needed to link against this library, so add them to LAPACKLIB_PCLIBS |
---|
8301 | LAPACKLIB_PCLIBS="$LAPACKLIB_PCLIBS $FLIBS" |
---|
8302 | |
---|
8303 | # Take care that optimization is disbled for DLAMCH.F |
---|
8304 | |
---|
8305 | if test "x$DLAMCH_FFLAGS" = x ; then |
---|
8306 | #disable optimiziation for dlamch.f by adding -Od or -O0 at end of FFLAGS (hope to overwrite previous -O? option, if present) |
---|
8307 | case $F77 in |
---|
8308 | ifort* | */ifort* | IFORT* | */IFORT* ) |
---|
8309 | case $build in |
---|
8310 | *-cygwin* | *-mingw*) |
---|
8311 | DLAMCH_FFLAGS="$FFLAGS -Od" |
---|
8312 | ;; |
---|
8313 | *) |
---|
8314 | DLAMCH_FFLAGS="$FFLAGS -O0" |
---|
8315 | ;; |
---|
8316 | esac |
---|
8317 | ;; |
---|
8318 | compile_f2c*) |
---|
8319 | case "$CC" in |
---|
8320 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
8321 | DLAMCH_FFLAGS="$FFLAGS -Od" |
---|
8322 | ;; |
---|
8323 | *) |
---|
8324 | DLAMCH_FFLAGS="$FFLAGS -O0" |
---|
8325 | ;; |
---|
8326 | esac |
---|
8327 | ;; |
---|
8328 | *) |
---|
8329 | DLAMCH_FFLAGS="$FFLAGS -O0" |
---|
8330 | ;; |
---|
8331 | esac |
---|
8332 | fi |
---|
8333 | |
---|
8334 | |
---|
8335 | # Initialize autotools |
---|
8336 | { |
---|
8337 | |
---|
8338 | |
---|
8339 | |
---|
8340 | # START |
---|
8341 | |
---|
8342 | coin_disable_shared=no |
---|
8343 | # Test if force_shared has been set |
---|
8344 | if test "x" = xforce_shared; then |
---|
8345 | if test x$enable_shared = xno; then |
---|
8346 | { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5 |
---|
8347 | echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;} |
---|
8348 | { (exit 1); exit 1; }; } |
---|
8349 | fi |
---|
8350 | enable_shared=yes; |
---|
8351 | else |
---|
8352 | case $build in |
---|
8353 | *-cygwin* | *-mingw*) |
---|
8354 | coin_disable_shared=yes |
---|
8355 | if test x"$enable_shared" = xyes; then |
---|
8356 | case "$CC" in |
---|
8357 | clang* ) |
---|
8358 | { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5 |
---|
8359 | echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;} |
---|
8360 | ;; |
---|
8361 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
8362 | { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5 |
---|
8363 | echo "$as_me: Building of DLLs not supported in this configuration." >&6;} |
---|
8364 | ;; |
---|
8365 | *gcc*) |
---|
8366 | if test x"$enable_dependency_linking" = xyes; then |
---|
8367 | coin_disable_shared=no |
---|
8368 | else |
---|
8369 | { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5 |
---|
8370 | echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;} |
---|
8371 | fi |
---|
8372 | ;; |
---|
8373 | *) |
---|
8374 | { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5 |
---|
8375 | echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;} |
---|
8376 | ;; |
---|
8377 | esac |
---|
8378 | fi |
---|
8379 | ;; |
---|
8380 | *-aix*) |
---|
8381 | coin_disable_shared=yes |
---|
8382 | platform=AIX |
---|
8383 | if test x"$enable_shared" = xyes; then |
---|
8384 | { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5 |
---|
8385 | echo "$as_me: WARNING: Shared objects are not supported." >&2;} |
---|
8386 | fi |
---|
8387 | ;; |
---|
8388 | esac |
---|
8389 | fi |
---|
8390 | if test x"$coin_disable_shared" = xyes; then |
---|
8391 | if test x"$enable_shared" = xyes; then |
---|
8392 | : |
---|
8393 | else |
---|
8394 | # we don't disable shared, because it was not selected anyway |
---|
8395 | coin_disable_shared=no |
---|
8396 | fi |
---|
8397 | enable_shared=no |
---|
8398 | fi |
---|
8399 | # By default, we only want the shared objects to be compiled |
---|
8400 | # Check whether --enable-static or --disable-static was given. |
---|
8401 | if test "${enable_static+set}" = set; then |
---|
8402 | enableval="$enable_static" |
---|
8403 | p=${PACKAGE-default} |
---|
8404 | case $enableval in |
---|
8405 | yes) enable_static=yes ;; |
---|
8406 | no) enable_static=no ;; |
---|
8407 | *) |
---|
8408 | enable_static=no |
---|
8409 | # Look at the argument we got. We use all the common list separators. |
---|
8410 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
8411 | for pkg in $enableval; do |
---|
8412 | IFS="$lt_save_ifs" |
---|
8413 | if test "X$pkg" = "X$p"; then |
---|
8414 | enable_static=yes |
---|
8415 | fi |
---|
8416 | done |
---|
8417 | IFS="$lt_save_ifs" |
---|
8418 | ;; |
---|
8419 | esac |
---|
8420 | else |
---|
8421 | enable_static=no |
---|
8422 | fi; |
---|
8423 | |
---|
8424 | |
---|
8425 | |
---|
8426 | |
---|
8427 | # Initialize automake |
---|
8428 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
8429 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
8430 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
8431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8432 | else |
---|
8433 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
8434 | then ac_cv_prog_egrep='grep -E' |
---|
8435 | else ac_cv_prog_egrep='egrep' |
---|
8436 | fi |
---|
8437 | fi |
---|
8438 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
8439 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
8440 | EGREP=$ac_cv_prog_egrep |
---|
8441 | |
---|
8442 | |
---|
8443 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
---|
8444 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
---|
8445 | LN_S=$as_ln_s |
---|
8446 | if test "$LN_S" = "ln -s"; then |
---|
8447 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
8448 | echo "${ECHO_T}yes" >&6 |
---|
8449 | else |
---|
8450 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
---|
8451 | echo "${ECHO_T}no, using $LN_S" >&6 |
---|
8452 | fi |
---|
8453 | |
---|
8454 | am__api_version="1.9" |
---|
8455 | # Find a good install program. We prefer a C program (faster), |
---|
8456 | # so one script is as good as another. But avoid the broken or |
---|
8457 | # incompatible versions: |
---|
8458 | # SysV /etc/install, /usr/sbin/install |
---|
8459 | # SunOS /usr/etc/install |
---|
8460 | # IRIX /sbin/install |
---|
8461 | # AIX /bin/install |
---|
8462 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
8463 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
8464 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
8465 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
8466 | # OS/2's system install, which has a completely different semantic |
---|
8467 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
8468 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
8469 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
8470 | if test -z "$INSTALL"; then |
---|
8471 | if test "${ac_cv_path_install+set}" = set; then |
---|
8472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8473 | else |
---|
8474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8475 | for as_dir in $PATH |
---|
8476 | do |
---|
8477 | IFS=$as_save_IFS |
---|
8478 | test -z "$as_dir" && as_dir=. |
---|
8479 | # Account for people who put trailing slashes in PATH elements. |
---|
8480 | case $as_dir/ in |
---|
8481 | ./ | .// | /cC/* | \ |
---|
8482 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
8483 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
8484 | /usr/ucb/* ) ;; |
---|
8485 | *) |
---|
8486 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
8487 | # Don't use installbsd from OSF since it installs stuff as root |
---|
8488 | # by default. |
---|
8489 | for ac_prog in ginstall scoinst install; do |
---|
8490 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8491 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
8492 | if test $ac_prog = install && |
---|
8493 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
8494 | # AIX install. It has an incompatible calling convention. |
---|
8495 | : |
---|
8496 | elif test $ac_prog = install && |
---|
8497 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
8498 | # program-specific install script used by HP pwplus--don't use. |
---|
8499 | : |
---|
8500 | else |
---|
8501 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
8502 | break 3 |
---|
8503 | fi |
---|
8504 | fi |
---|
8505 | done |
---|
8506 | done |
---|
8507 | ;; |
---|
8508 | esac |
---|
8509 | done |
---|
8510 | |
---|
8511 | |
---|
8512 | fi |
---|
8513 | if test "${ac_cv_path_install+set}" = set; then |
---|
8514 | INSTALL=$ac_cv_path_install |
---|
8515 | else |
---|
8516 | # As a last resort, use the slow shell script. We don't cache a |
---|
8517 | # path for INSTALL within a source directory, because that will |
---|
8518 | # break other packages using the cache if that directory is |
---|
8519 | # removed, or if the path is relative. |
---|
8520 | INSTALL=$ac_install_sh |
---|
8521 | fi |
---|
8522 | fi |
---|
8523 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
8524 | echo "${ECHO_T}$INSTALL" >&6 |
---|
8525 | |
---|
8526 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
8527 | # It thinks the first close brace ends the variable substitution. |
---|
8528 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
8529 | |
---|
8530 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
8531 | |
---|
8532 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
8533 | |
---|
8534 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
8535 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
8536 | # Just in case |
---|
8537 | sleep 1 |
---|
8538 | echo timestamp > conftest.file |
---|
8539 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
8540 | # arguments. Must try -L first in case configure is actually a |
---|
8541 | # symlink; some systems play weird games with the mod time of symlinks |
---|
8542 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
8543 | # directory). |
---|
8544 | if ( |
---|
8545 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
8546 | if test "$*" = "X"; then |
---|
8547 | # -L didn't work. |
---|
8548 | set X `ls -t $srcdir/configure conftest.file` |
---|
8549 | fi |
---|
8550 | rm -f conftest.file |
---|
8551 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
8552 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
8553 | |
---|
8554 | # If neither matched, then we have a broken ls. This can happen |
---|
8555 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
8556 | # broken ls alias from the environment. This has actually |
---|
8557 | # happened. Such a system could not be considered "sane". |
---|
8558 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
8559 | alias in your environment" >&5 |
---|
8560 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
8561 | alias in your environment" >&2;} |
---|
8562 | { (exit 1); exit 1; }; } |
---|
8563 | fi |
---|
8564 | |
---|
8565 | test "$2" = conftest.file |
---|
8566 | ) |
---|
8567 | then |
---|
8568 | # Ok. |
---|
8569 | : |
---|
8570 | else |
---|
8571 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
8572 | Check your system clock" >&5 |
---|
8573 | echo "$as_me: error: newly created file is older than distributed files! |
---|
8574 | Check your system clock" >&2;} |
---|
8575 | { (exit 1); exit 1; }; } |
---|
8576 | fi |
---|
8577 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
8578 | echo "${ECHO_T}yes" >&6 |
---|
8579 | test "$program_prefix" != NONE && |
---|
8580 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
8581 | # Use a double $ so make ignores it. |
---|
8582 | test "$program_suffix" != NONE && |
---|
8583 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
8584 | # Double any \ or $. echo might interpret backslashes. |
---|
8585 | # By default was `s,x,x', remove it if useless. |
---|
8586 | cat <<\_ACEOF >conftest.sed |
---|
8587 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
8588 | _ACEOF |
---|
8589 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
8590 | rm conftest.sed |
---|
8591 | |
---|
8592 | # expand $ac_aux_dir to an absolute path |
---|
8593 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
8594 | |
---|
8595 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
8596 | # Use eval to expand $SHELL |
---|
8597 | if eval "$MISSING --run true"; then |
---|
8598 | am_missing_run="$MISSING --run " |
---|
8599 | else |
---|
8600 | am_missing_run= |
---|
8601 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
8602 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
8603 | fi |
---|
8604 | |
---|
8605 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
8606 | # We used to keeping the `.' as first argument, in order to |
---|
8607 | # allow $(mkdir_p) to be used without argument. As in |
---|
8608 | # $(mkdir_p) $(somedir) |
---|
8609 | # where $(somedir) is conditionally defined. However this is wrong |
---|
8610 | # for two reasons: |
---|
8611 | # 1. if the package is installed by a user who cannot write `.' |
---|
8612 | # make install will fail, |
---|
8613 | # 2. the above comment should most certainly read |
---|
8614 | # $(mkdir_p) $(DESTDIR)$(somedir) |
---|
8615 | # so it does not work when $(somedir) is undefined and |
---|
8616 | # $(DESTDIR) is not. |
---|
8617 | # To support the latter case, we have to write |
---|
8618 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
---|
8619 | # so the `.' trick is pointless. |
---|
8620 | mkdir_p='mkdir -p --' |
---|
8621 | else |
---|
8622 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
8623 | # recognize any option. It will interpret all options as |
---|
8624 | # directories to create, and then abort because `.' already |
---|
8625 | # exists. |
---|
8626 | for d in ./-p ./--version; |
---|
8627 | do |
---|
8628 | test -d $d && rmdir $d |
---|
8629 | done |
---|
8630 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
8631 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
8632 | mkdir_p='$(mkinstalldirs)' |
---|
8633 | else |
---|
8634 | mkdir_p='$(install_sh) -d' |
---|
8635 | fi |
---|
8636 | fi |
---|
8637 | |
---|
8638 | for ac_prog in gawk mawk nawk awk |
---|
8639 | do |
---|
8640 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
8641 | set dummy $ac_prog; ac_word=$2 |
---|
8642 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
8643 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
8644 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
8645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8646 | else |
---|
8647 | if test -n "$AWK"; then |
---|
8648 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
8649 | else |
---|
8650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8651 | for as_dir in $PATH |
---|
8652 | do |
---|
8653 | IFS=$as_save_IFS |
---|
8654 | test -z "$as_dir" && as_dir=. |
---|
8655 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8656 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8657 | ac_cv_prog_AWK="$ac_prog" |
---|
8658 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8659 | break 2 |
---|
8660 | fi |
---|
8661 | done |
---|
8662 | done |
---|
8663 | |
---|
8664 | fi |
---|
8665 | fi |
---|
8666 | AWK=$ac_cv_prog_AWK |
---|
8667 | if test -n "$AWK"; then |
---|
8668 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
8669 | echo "${ECHO_T}$AWK" >&6 |
---|
8670 | else |
---|
8671 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8672 | echo "${ECHO_T}no" >&6 |
---|
8673 | fi |
---|
8674 | |
---|
8675 | test -n "$AWK" && break |
---|
8676 | done |
---|
8677 | |
---|
8678 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
8679 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
8680 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
8681 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
8682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8683 | else |
---|
8684 | cat >conftest.make <<\_ACEOF |
---|
8685 | all: |
---|
8686 | @echo 'ac_maketemp="$(MAKE)"' |
---|
8687 | _ACEOF |
---|
8688 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
8689 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
8690 | if test -n "$ac_maketemp"; then |
---|
8691 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
8692 | else |
---|
8693 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
8694 | fi |
---|
8695 | rm -f conftest.make |
---|
8696 | fi |
---|
8697 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
8698 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
8699 | echo "${ECHO_T}yes" >&6 |
---|
8700 | SET_MAKE= |
---|
8701 | else |
---|
8702 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8703 | echo "${ECHO_T}no" >&6 |
---|
8704 | SET_MAKE="MAKE=${MAKE-make}" |
---|
8705 | fi |
---|
8706 | |
---|
8707 | rm -rf .tst 2>/dev/null |
---|
8708 | mkdir .tst 2>/dev/null |
---|
8709 | if test -d .tst; then |
---|
8710 | am__leading_dot=. |
---|
8711 | else |
---|
8712 | am__leading_dot=_ |
---|
8713 | fi |
---|
8714 | rmdir .tst 2>/dev/null |
---|
8715 | |
---|
8716 | DEPDIR="${am__leading_dot}deps" |
---|
8717 | |
---|
8718 | ac_config_commands="$ac_config_commands depfiles" |
---|
8719 | |
---|
8720 | |
---|
8721 | am_make=${MAKE-make} |
---|
8722 | cat > confinc << 'END' |
---|
8723 | am__doit: |
---|
8724 | @echo done |
---|
8725 | .PHONY: am__doit |
---|
8726 | END |
---|
8727 | # If we don't find an include directive, just comment out the code. |
---|
8728 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
8729 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
8730 | am__include="#" |
---|
8731 | am__quote= |
---|
8732 | _am_result=none |
---|
8733 | # First try GNU make style include. |
---|
8734 | echo "include confinc" > confmf |
---|
8735 | # We grep out `Entering directory' and `Leaving directory' |
---|
8736 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
8737 | # In particular we don't look at `^make:' because GNU make might |
---|
8738 | # be invoked under some other name (usually "gmake"), in which |
---|
8739 | # case it prints its new name instead of `make'. |
---|
8740 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
8741 | am__include=include |
---|
8742 | am__quote= |
---|
8743 | _am_result=GNU |
---|
8744 | fi |
---|
8745 | # Now try BSD make style include. |
---|
8746 | if test "$am__include" = "#"; then |
---|
8747 | echo '.include "confinc"' > confmf |
---|
8748 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
8749 | am__include=.include |
---|
8750 | am__quote="\"" |
---|
8751 | _am_result=BSD |
---|
8752 | fi |
---|
8753 | fi |
---|
8754 | |
---|
8755 | |
---|
8756 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
8757 | echo "${ECHO_T}$_am_result" >&6 |
---|
8758 | rm -f confinc confmf |
---|
8759 | |
---|
8760 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
8761 | if test "${enable_dependency_tracking+set}" = set; then |
---|
8762 | enableval="$enable_dependency_tracking" |
---|
8763 | |
---|
8764 | fi; |
---|
8765 | if test "x$enable_dependency_tracking" != xno; then |
---|
8766 | am_depcomp="$ac_aux_dir/depcomp" |
---|
8767 | AMDEPBACKSLASH='\' |
---|
8768 | fi |
---|
8769 | |
---|
8770 | |
---|
8771 | if test "x$enable_dependency_tracking" != xno; then |
---|
8772 | AMDEP_TRUE= |
---|
8773 | AMDEP_FALSE='#' |
---|
8774 | else |
---|
8775 | AMDEP_TRUE='#' |
---|
8776 | AMDEP_FALSE= |
---|
8777 | fi |
---|
8778 | |
---|
8779 | |
---|
8780 | |
---|
8781 | |
---|
8782 | |
---|
8783 | |
---|
8784 | # AC_MSG_NOTICE([Beginning automake initialisation.]) |
---|
8785 | # Stuff for automake |
---|
8786 | # test to see if srcdir already configured |
---|
8787 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
8788 | test -f $srcdir/config.status; then |
---|
8789 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
8790 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
8791 | { (exit 1); exit 1; }; } |
---|
8792 | fi |
---|
8793 | |
---|
8794 | # test whether we have cygpath |
---|
8795 | if test -z "$CYGPATH_W"; then |
---|
8796 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
8797 | CYGPATH_W='cygpath -w' |
---|
8798 | else |
---|
8799 | CYGPATH_W=echo |
---|
8800 | fi |
---|
8801 | fi |
---|
8802 | |
---|
8803 | |
---|
8804 | # Define the identity of the package. |
---|
8805 | PACKAGE='thirdpartylapack' |
---|
8806 | VERSION='1.5.3' |
---|
8807 | |
---|
8808 | |
---|
8809 | cat >>confdefs.h <<_ACEOF |
---|
8810 | #define PACKAGE "$PACKAGE" |
---|
8811 | _ACEOF |
---|
8812 | |
---|
8813 | |
---|
8814 | cat >>confdefs.h <<_ACEOF |
---|
8815 | #define VERSION "$VERSION" |
---|
8816 | _ACEOF |
---|
8817 | |
---|
8818 | # Some tools Automake needs. |
---|
8819 | |
---|
8820 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
8821 | |
---|
8822 | |
---|
8823 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
8824 | |
---|
8825 | |
---|
8826 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
8827 | |
---|
8828 | |
---|
8829 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
8830 | |
---|
8831 | |
---|
8832 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
8833 | |
---|
8834 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
8835 | |
---|
8836 | # Installed binaries are usually stripped using `strip' when the user |
---|
8837 | # run `make install-strip'. However `strip' might not be the right |
---|
8838 | # tool to use in cross-compilation environments, therefore Automake |
---|
8839 | # will honor the `STRIP' environment variable to overrule this program. |
---|
8840 | if test "$cross_compiling" != no; then |
---|
8841 | if test -n "$ac_tool_prefix"; then |
---|
8842 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
8843 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
8844 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
8845 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
8846 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
8847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8848 | else |
---|
8849 | if test -n "$STRIP"; then |
---|
8850 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
8851 | else |
---|
8852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8853 | for as_dir in $PATH |
---|
8854 | do |
---|
8855 | IFS=$as_save_IFS |
---|
8856 | test -z "$as_dir" && as_dir=. |
---|
8857 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8858 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8859 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
8860 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8861 | break 2 |
---|
8862 | fi |
---|
8863 | done |
---|
8864 | done |
---|
8865 | |
---|
8866 | fi |
---|
8867 | fi |
---|
8868 | STRIP=$ac_cv_prog_STRIP |
---|
8869 | if test -n "$STRIP"; then |
---|
8870 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
8871 | echo "${ECHO_T}$STRIP" >&6 |
---|
8872 | else |
---|
8873 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8874 | echo "${ECHO_T}no" >&6 |
---|
8875 | fi |
---|
8876 | |
---|
8877 | fi |
---|
8878 | if test -z "$ac_cv_prog_STRIP"; then |
---|
8879 | ac_ct_STRIP=$STRIP |
---|
8880 | # Extract the first word of "strip", so it can be a program name with args. |
---|
8881 | set dummy strip; ac_word=$2 |
---|
8882 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
8883 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
8884 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
8885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8886 | else |
---|
8887 | if test -n "$ac_ct_STRIP"; then |
---|
8888 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
8889 | else |
---|
8890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8891 | for as_dir in $PATH |
---|
8892 | do |
---|
8893 | IFS=$as_save_IFS |
---|
8894 | test -z "$as_dir" && as_dir=. |
---|
8895 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8896 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8897 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
8898 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8899 | break 2 |
---|
8900 | fi |
---|
8901 | done |
---|
8902 | done |
---|
8903 | |
---|
8904 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
8905 | fi |
---|
8906 | fi |
---|
8907 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
8908 | if test -n "$ac_ct_STRIP"; then |
---|
8909 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
8910 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
8911 | else |
---|
8912 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8913 | echo "${ECHO_T}no" >&6 |
---|
8914 | fi |
---|
8915 | |
---|
8916 | STRIP=$ac_ct_STRIP |
---|
8917 | else |
---|
8918 | STRIP="$ac_cv_prog_STRIP" |
---|
8919 | fi |
---|
8920 | |
---|
8921 | fi |
---|
8922 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
8923 | |
---|
8924 | # We need awk for the "check" target. The system "awk" is bad on |
---|
8925 | # some platforms. |
---|
8926 | # Always define AMTAR for backward compatibility. |
---|
8927 | |
---|
8928 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
8929 | |
---|
8930 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
---|
8931 | |
---|
8932 | |
---|
8933 | |
---|
8934 | |
---|
8935 | depcc="$CC" am_compiler_list= |
---|
8936 | |
---|
8937 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
8938 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
8939 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
8940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8941 | else |
---|
8942 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
8943 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
8944 | # making bogus files that we don't know about and never remove. For |
---|
8945 | # instance it was reported that on HP-UX the gcc test will end up |
---|
8946 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
8947 | # in D'. |
---|
8948 | mkdir conftest.dir |
---|
8949 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
8950 | # using a relative directory. |
---|
8951 | cp "$am_depcomp" conftest.dir |
---|
8952 | cd conftest.dir |
---|
8953 | # We will build objects and dependencies in a subdirectory because |
---|
8954 | # it helps to detect inapplicable dependency modes. For instance |
---|
8955 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
8956 | # side effect of compilation, but ICC will put the dependencies in |
---|
8957 | # the current directory while Tru64 will put them in the object |
---|
8958 | # directory. |
---|
8959 | mkdir sub |
---|
8960 | |
---|
8961 | am_cv_CC_dependencies_compiler_type=none |
---|
8962 | if test "$am_compiler_list" = ""; then |
---|
8963 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
8964 | fi |
---|
8965 | for depmode in $am_compiler_list; do |
---|
8966 | # Setup a source with many dependencies, because some compilers |
---|
8967 | # like to wrap large dependency lists on column 80 (with \), and |
---|
8968 | # we should not choose a depcomp mode which is confused by this. |
---|
8969 | # |
---|
8970 | # We need to recreate these files for each test, as the compiler may |
---|
8971 | # overwrite some of them when testing with obscure command lines. |
---|
8972 | # This happens at least with the AIX C compiler. |
---|
8973 | : > sub/conftest.c |
---|
8974 | for i in 1 2 3 4 5 6; do |
---|
8975 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
8976 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
8977 | # Solaris 8's {/usr,}/bin/sh. |
---|
8978 | touch sub/conftst$i.h |
---|
8979 | done |
---|
8980 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
8981 | |
---|
8982 | case $depmode in |
---|
8983 | nosideeffect) |
---|
8984 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
8985 | # only be used when explicitly requested |
---|
8986 | if test "x$enable_dependency_tracking" = xyes; then |
---|
8987 | continue |
---|
8988 | else |
---|
8989 | break |
---|
8990 | fi |
---|
8991 | ;; |
---|
8992 | none) break ;; |
---|
8993 | esac |
---|
8994 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
8995 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
8996 | # handle `-M -o', and we need to detect this. |
---|
8997 | if depmode=$depmode \ |
---|
8998 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
8999 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
9000 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
9001 | >/dev/null 2>conftest.err && |
---|
9002 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
9003 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
9004 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
9005 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
9006 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
9007 | # that says an option was ignored or not supported. |
---|
9008 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
9009 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
9010 | # The diagnosis changed in icc 8.0: |
---|
9011 | # icc: Command line remark: option '-MP' not supported |
---|
9012 | if (grep 'ignoring option' conftest.err || |
---|
9013 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
9014 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
9015 | break |
---|
9016 | fi |
---|
9017 | fi |
---|
9018 | done |
---|
9019 | |
---|
9020 | cd .. |
---|
9021 | rm -rf conftest.dir |
---|
9022 | else |
---|
9023 | am_cv_CC_dependencies_compiler_type=none |
---|
9024 | fi |
---|
9025 | |
---|
9026 | fi |
---|
9027 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
9028 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
9029 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
9030 | |
---|
9031 | |
---|
9032 | |
---|
9033 | if |
---|
9034 | test "x$enable_dependency_tracking" != xno \ |
---|
9035 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
9036 | am__fastdepCC_TRUE= |
---|
9037 | am__fastdepCC_FALSE='#' |
---|
9038 | else |
---|
9039 | am__fastdepCC_TRUE='#' |
---|
9040 | am__fastdepCC_FALSE= |
---|
9041 | fi |
---|
9042 | |
---|
9043 | |
---|
9044 | |
---|
9045 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
9046 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
---|
9047 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
---|
9048 | if test "${enable_maintainer_mode+set}" = set; then |
---|
9049 | enableval="$enable_maintainer_mode" |
---|
9050 | USE_MAINTAINER_MODE=$enableval |
---|
9051 | else |
---|
9052 | USE_MAINTAINER_MODE=no |
---|
9053 | fi; |
---|
9054 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
---|
9055 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
---|
9056 | |
---|
9057 | |
---|
9058 | if test $USE_MAINTAINER_MODE = yes; then |
---|
9059 | MAINTAINER_MODE_TRUE= |
---|
9060 | MAINTAINER_MODE_FALSE='#' |
---|
9061 | else |
---|
9062 | MAINTAINER_MODE_TRUE='#' |
---|
9063 | MAINTAINER_MODE_FALSE= |
---|
9064 | fi |
---|
9065 | |
---|
9066 | MAINT=$MAINTAINER_MODE_TRUE |
---|
9067 | |
---|
9068 | |
---|
9069 | |
---|
9070 | coin_have_externals=no |
---|
9071 | if test "$enable_maintainer_mode" = yes; then |
---|
9072 | |
---|
9073 | # If maintainer mode is chosen, we make sure that the correct versions |
---|
9074 | # of the tools are used, and that we know where libtool.m4 is (to |
---|
9075 | # recreate acinclude.m4) |
---|
9076 | |
---|
9077 | |
---|
9078 | LIBTOOLM4= |
---|
9079 | # Normally, $HOME |
---|
9080 | AUTOTOOLS_DFLT=$HOME |
---|
9081 | |
---|
9082 | echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5 |
---|
9083 | echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6 |
---|
9084 | if test "${ac_cv_use_correct_autotools+set}" = set; then |
---|
9085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9086 | else |
---|
9087 | ac_cv_use_correct_autotools=check |
---|
9088 | fi |
---|
9089 | echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5 |
---|
9090 | echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6 |
---|
9091 | |
---|
9092 | if test $ac_cv_use_correct_autotools = check; then |
---|
9093 | ac_cv_use_correct_autotools=yes |
---|
9094 | # Check if we have autoconf |
---|
9095 | # Extract the first word of "autoconf", so it can be a program name with args. |
---|
9096 | set dummy autoconf; ac_word=$2 |
---|
9097 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
9098 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
9099 | if test "${ac_cv_prog_have_autoconf+set}" = set; then |
---|
9100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9101 | else |
---|
9102 | if test -n "$have_autoconf"; then |
---|
9103 | ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test. |
---|
9104 | else |
---|
9105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
9106 | for as_dir in $PATH |
---|
9107 | do |
---|
9108 | IFS=$as_save_IFS |
---|
9109 | test -z "$as_dir" && as_dir=. |
---|
9110 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
9111 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
9112 | ac_cv_prog_have_autoconf="yes" |
---|
9113 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
9114 | break 2 |
---|
9115 | fi |
---|
9116 | done |
---|
9117 | done |
---|
9118 | |
---|
9119 | test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no" |
---|
9120 | fi |
---|
9121 | fi |
---|
9122 | have_autoconf=$ac_cv_prog_have_autoconf |
---|
9123 | if test -n "$have_autoconf"; then |
---|
9124 | echo "$as_me:$LINENO: result: $have_autoconf" >&5 |
---|
9125 | echo "${ECHO_T}$have_autoconf" >&6 |
---|
9126 | else |
---|
9127 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9128 | echo "${ECHO_T}no" >&6 |
---|
9129 | fi |
---|
9130 | |
---|
9131 | if test $have_autoconf = no; then |
---|
9132 | { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5 |
---|
9133 | echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;} |
---|
9134 | { (exit 1); exit 1; }; } |
---|
9135 | fi |
---|
9136 | |
---|
9137 | # Check whether autoconf is the correct version |
---|
9138 | correct_version='2.59' |
---|
9139 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
9140 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5 |
---|
9141 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6 |
---|
9142 | autoconf --version > confauto.out 2>&1 |
---|
9143 | if $EGREP $grep_version confauto.out >/dev/null 2>&1; then |
---|
9144 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
9145 | echo "${ECHO_T}yes" >&6 |
---|
9146 | else |
---|
9147 | rm -f confauto.out |
---|
9148 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9149 | echo "${ECHO_T}no" >&6 |
---|
9150 | { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5 |
---|
9151 | echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;} |
---|
9152 | { (exit 1); exit 1; }; } |
---|
9153 | fi |
---|
9154 | rm -f confauto.out |
---|
9155 | |
---|
9156 | # Check if the executable autoconf is picked up from the correct location |
---|
9157 | echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5 |
---|
9158 | echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6 |
---|
9159 | autoconf_dir=`which autoconf | sed -e 's=/autoconf=='` |
---|
9160 | autoconf_dir=`cd $autoconf_dir; pwd` |
---|
9161 | if test x$AUTOTOOLS_DIR = x; then |
---|
9162 | want_dir=$AUTOTOOLS_DFLT/bin |
---|
9163 | else |
---|
9164 | want_dir=$AUTOTOOLS_DIR/bin |
---|
9165 | fi |
---|
9166 | if test $autoconf_dir = `cd $want_dir; pwd`; then |
---|
9167 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
9168 | echo "${ECHO_T}yes" >&6 |
---|
9169 | else |
---|
9170 | rm -f confauto.out |
---|
9171 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9172 | echo "${ECHO_T}no" >&6 |
---|
9173 | { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 |
---|
9174 | echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} |
---|
9175 | { (exit 1); exit 1; }; } |
---|
9176 | fi |
---|
9177 | |
---|
9178 | # Check if we have automake |
---|
9179 | # Extract the first word of "automake", so it can be a program name with args. |
---|
9180 | set dummy automake; ac_word=$2 |
---|
9181 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
9182 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
9183 | if test "${ac_cv_prog_have_automake+set}" = set; then |
---|
9184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9185 | else |
---|
9186 | if test -n "$have_automake"; then |
---|
9187 | ac_cv_prog_have_automake="$have_automake" # Let the user override the test. |
---|
9188 | else |
---|
9189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
9190 | for as_dir in $PATH |
---|
9191 | do |
---|
9192 | IFS=$as_save_IFS |
---|
9193 | test -z "$as_dir" && as_dir=. |
---|
9194 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
9195 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
9196 | ac_cv_prog_have_automake="yes" |
---|
9197 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
9198 | break 2 |
---|
9199 | fi |
---|
9200 | done |
---|
9201 | done |
---|
9202 | |
---|
9203 | test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no" |
---|
9204 | fi |
---|
9205 | fi |
---|
9206 | have_automake=$ac_cv_prog_have_automake |
---|
9207 | if test -n "$have_automake"; then |
---|
9208 | echo "$as_me:$LINENO: result: $have_automake" >&5 |
---|
9209 | echo "${ECHO_T}$have_automake" >&6 |
---|
9210 | else |
---|
9211 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9212 | echo "${ECHO_T}no" >&6 |
---|
9213 | fi |
---|
9214 | |
---|
9215 | if test $have_automake = no; then |
---|
9216 | { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5 |
---|
9217 | echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;} |
---|
9218 | { (exit 1); exit 1; }; } |
---|
9219 | fi |
---|
9220 | |
---|
9221 | # Check whether automake is the correct version |
---|
9222 | correct_version='1.9.6' |
---|
9223 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
9224 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5 |
---|
9225 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6 |
---|
9226 | automake --version > confauto.out 2>&1 |
---|
9227 | if $EGREP $grep_version confauto.out >/dev/null 2>&1; then |
---|
9228 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
9229 | echo "${ECHO_T}yes" >&6 |
---|
9230 | else |
---|
9231 | rm -f confauto.out |
---|
9232 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9233 | echo "${ECHO_T}no" >&6 |
---|
9234 | { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5 |
---|
9235 | echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;} |
---|
9236 | { (exit 1); exit 1; }; } |
---|
9237 | fi |
---|
9238 | rm -f confauto.out |
---|
9239 | |
---|
9240 | # Check if the executable automake is picked up from the correct location |
---|
9241 | echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5 |
---|
9242 | echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6 |
---|
9243 | automake_dir=`which automake | sed -e 's=/automake=='` |
---|
9244 | automake_dir=`cd $automake_dir; pwd` |
---|
9245 | if test x$AUTOTOOLS_DIR = x; then |
---|
9246 | want_dir=$AUTOTOOLS_DFLT/bin |
---|
9247 | else |
---|
9248 | want_dir=$AUTOTOOLS_DIR/bin |
---|
9249 | fi |
---|
9250 | if test $automake_dir = `cd $want_dir; pwd`; then |
---|
9251 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
9252 | echo "${ECHO_T}yes" >&6 |
---|
9253 | else |
---|
9254 | rm -f confauto.out |
---|
9255 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9256 | echo "${ECHO_T}no" >&6 |
---|
9257 | { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 |
---|
9258 | echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} |
---|
9259 | { (exit 1); exit 1; }; } |
---|
9260 | fi |
---|
9261 | |
---|
9262 | # Check if this is the correct version of libtool (with escaped dots) |
---|
9263 | if test x$AUTOTOOLS_DIR = x; then |
---|
9264 | want_dir=$AUTOTOOLS_DFLT/share |
---|
9265 | else |
---|
9266 | want_dir=$AUTOTOOLS_DIR/share |
---|
9267 | fi |
---|
9268 | correct_version='1.5.22' |
---|
9269 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
9270 | if test -r $want_dir/libtool/ltmain.sh; then |
---|
9271 | have_ltmain=yes |
---|
9272 | : |
---|
9273 | else |
---|
9274 | have_ltmain=no |
---|
9275 | : |
---|
9276 | fi |
---|
9277 | |
---|
9278 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5 |
---|
9279 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6 |
---|
9280 | if test $have_ltmain = yes; then |
---|
9281 | if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then |
---|
9282 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
9283 | echo "${ECHO_T}yes" >&6 |
---|
9284 | else |
---|
9285 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9286 | echo "${ECHO_T}no" >&6 |
---|
9287 | { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5 |
---|
9288 | echo "$as_me: error: You don't have the correct version of libtool." >&2;} |
---|
9289 | { (exit 1); exit 1; }; } |
---|
9290 | fi |
---|
9291 | else |
---|
9292 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9293 | echo "${ECHO_T}no" >&6 |
---|
9294 | { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5 |
---|
9295 | echo "$as_me: error: I cannot find the ltmain.sh file." >&2;} |
---|
9296 | { (exit 1); exit 1; }; } |
---|
9297 | fi |
---|
9298 | fi |
---|
9299 | |
---|
9300 | # Check if we can find the libtool file |
---|
9301 | if test x$AUTOTOOLS_DIR = x; then |
---|
9302 | want_dir=$AUTOTOOLS_DFLT/share |
---|
9303 | else |
---|
9304 | want_dir=$AUTOTOOLS_DIR/share |
---|
9305 | fi |
---|
9306 | if test -r $want_dir/aclocal/libtool.m4; then |
---|
9307 | LIBTOOLM4="$want_dir/aclocal/libtool.m4" |
---|
9308 | : |
---|
9309 | else |
---|
9310 | { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5 |
---|
9311 | echo "$as_me: error: I cannot find the libtool.m4 file." >&2;} |
---|
9312 | { (exit 1); exit 1; }; } |
---|
9313 | : |
---|
9314 | fi |
---|
9315 | |
---|
9316 | |
---|
9317 | # Check if we have an Dependencies file |
---|
9318 | if test -r $srcdir/Dependencies; then |
---|
9319 | coin_have_externals=yes |
---|
9320 | fi |
---|
9321 | # Check if subversion is installed and understands https |
---|
9322 | # Extract the first word of "svn", so it can be a program name with args. |
---|
9323 | set dummy svn; ac_word=$2 |
---|
9324 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
9325 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
9326 | if test "${ac_cv_prog_have_svn+set}" = set; then |
---|
9327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9328 | else |
---|
9329 | if test -n "$have_svn"; then |
---|
9330 | ac_cv_prog_have_svn="$have_svn" # Let the user override the test. |
---|
9331 | else |
---|
9332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
9333 | for as_dir in $PATH |
---|
9334 | do |
---|
9335 | IFS=$as_save_IFS |
---|
9336 | test -z "$as_dir" && as_dir=. |
---|
9337 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
9338 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
9339 | ac_cv_prog_have_svn="yes" |
---|
9340 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
9341 | break 2 |
---|
9342 | fi |
---|
9343 | done |
---|
9344 | done |
---|
9345 | |
---|
9346 | test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no" |
---|
9347 | fi |
---|
9348 | fi |
---|
9349 | have_svn=$ac_cv_prog_have_svn |
---|
9350 | if test -n "$have_svn"; then |
---|
9351 | echo "$as_me:$LINENO: result: $have_svn" >&5 |
---|
9352 | echo "${ECHO_T}$have_svn" >&6 |
---|
9353 | else |
---|
9354 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9355 | echo "${ECHO_T}no" >&6 |
---|
9356 | fi |
---|
9357 | |
---|
9358 | if test x$have_svn = xyes; then |
---|
9359 | echo "$as_me:$LINENO: checking whether svn understands https" >&5 |
---|
9360 | echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6 |
---|
9361 | if test "${ac_cv_svn_understands_https+set}" = set; then |
---|
9362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9363 | else |
---|
9364 | svn --version > confauto.out 2>&1 |
---|
9365 | if $EGREP https confauto.out >/dev/null 2>&1; then |
---|
9366 | ac_cv_svn_understands_https=yes |
---|
9367 | else |
---|
9368 | ac_cv_svn_understands_https=no |
---|
9369 | have_svn=no |
---|
9370 | ac_cv_prog_have_svn=no |
---|
9371 | fi |
---|
9372 | rm -f confauto.out |
---|
9373 | fi |
---|
9374 | echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5 |
---|
9375 | echo "${ECHO_T}$ac_cv_svn_understands_https" >&6 |
---|
9376 | fi |
---|
9377 | |
---|
9378 | # Find the location of the BuildTools directory |
---|
9379 | BUILDTOOLSDIR= |
---|
9380 | if test -r $srcdir/BuildTools/coin.m4; then |
---|
9381 | BUILDTOOLSDIR=$srcdir/BuildTools |
---|
9382 | else |
---|
9383 | if test -r $srcdir/../BuildTools/coin.m4; then |
---|
9384 | BUILDTOOLSDIR=$srcdir/../BuildTools |
---|
9385 | else |
---|
9386 | if test -r $srcdir/../../BuildTools/coin.m4; then |
---|
9387 | BUILDTOOLSDIR=$srcdir/../../BuildTools |
---|
9388 | else |
---|
9389 | { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5 |
---|
9390 | echo "$as_me: error: Cannot find the BuildTools directory" >&2;} |
---|
9391 | { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; } |
---|
9392 | fi |
---|
9393 | fi |
---|
9394 | fi |
---|
9395 | |
---|
9396 | |
---|
9397 | # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools |
---|
9398 | if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then |
---|
9399 | $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools" |
---|
9400 | fi |
---|
9401 | |
---|
9402 | # The following variable is set to the name of the directory where |
---|
9403 | # the autotool scripts are located |
---|
9404 | |
---|
9405 | AUX_DIR=$ac_aux_dir |
---|
9406 | fi |
---|
9407 | |
---|
9408 | # helpful variable for the base directory of this package |
---|
9409 | abs_source_dir=`cd $srcdir; pwd` |
---|
9410 | |
---|
9411 | |
---|
9412 | # Stuff for example Makefiles |
---|
9413 | if test x$prefix = xNONE; then |
---|
9414 | full_prefix=$ac_default_prefix |
---|
9415 | else |
---|
9416 | full_prefix=$prefix |
---|
9417 | fi |
---|
9418 | full_prefix=`cd $full_prefix ; pwd` |
---|
9419 | |
---|
9420 | abs_lib_dir=$full_prefix/lib |
---|
9421 | |
---|
9422 | abs_include_dir=$full_prefix/include |
---|
9423 | |
---|
9424 | abs_bin_dir=$full_prefix/bin |
---|
9425 | |
---|
9426 | |
---|
9427 | |
---|
9428 | if test $coin_have_externals = yes && test x$have_svn = xyes; then |
---|
9429 | HAVE_EXTERNALS_TRUE= |
---|
9430 | HAVE_EXTERNALS_FALSE='#' |
---|
9431 | else |
---|
9432 | HAVE_EXTERNALS_TRUE='#' |
---|
9433 | HAVE_EXTERNALS_FALSE= |
---|
9434 | fi |
---|
9435 | |
---|
9436 | |
---|
9437 | # AC_MSG_NOTICE([End automake initialisation.]) |
---|
9438 | |
---|
9439 | |
---|
9440 | |
---|
9441 | LIBTOOL= |
---|
9442 | if test -f ../libtool; then |
---|
9443 | coin_config_dir=.. |
---|
9444 | LIBTOOL='$(SHELL) $(top_builddir)/../libtool' |
---|
9445 | fi |
---|
9446 | if test "x$LIBTOOL" = x; then |
---|
9447 | if test -f ../../libtool; then |
---|
9448 | coin_config_dir=../.. |
---|
9449 | LIBTOOL='$(SHELL) $(top_builddir)/../../libtool' |
---|
9450 | fi |
---|
9451 | fi |
---|
9452 | |
---|
9453 | if test "x$LIBTOOL" = x; then |
---|
9454 | # AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).]) |
---|
9455 | # Stuff for libtool |
---|
9456 | # Check whether --enable-shared or --disable-shared was given. |
---|
9457 | if test "${enable_shared+set}" = set; then |
---|
9458 | enableval="$enable_shared" |
---|
9459 | p=${PACKAGE-default} |
---|
9460 | case $enableval in |
---|
9461 | yes) enable_shared=yes ;; |
---|
9462 | no) enable_shared=no ;; |
---|
9463 | *) |
---|
9464 | enable_shared=no |
---|
9465 | # Look at the argument we got. We use all the common list separators. |
---|
9466 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
9467 | for pkg in $enableval; do |
---|
9468 | IFS="$lt_save_ifs" |
---|
9469 | if test "X$pkg" = "X$p"; then |
---|
9470 | enable_shared=yes |
---|
9471 | fi |
---|
9472 | done |
---|
9473 | IFS="$lt_save_ifs" |
---|
9474 | ;; |
---|
9475 | esac |
---|
9476 | else |
---|
9477 | enable_shared=yes |
---|
9478 | fi; |
---|
9479 | |
---|
9480 | # Check whether --enable-fast-install or --disable-fast-install was given. |
---|
9481 | if test "${enable_fast_install+set}" = set; then |
---|
9482 | enableval="$enable_fast_install" |
---|
9483 | p=${PACKAGE-default} |
---|
9484 | case $enableval in |
---|
9485 | yes) enable_fast_install=yes ;; |
---|
9486 | no) enable_fast_install=no ;; |
---|
9487 | *) |
---|
9488 | enable_fast_install=no |
---|
9489 | # Look at the argument we got. We use all the common list separators. |
---|
9490 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
9491 | for pkg in $enableval; do |
---|
9492 | IFS="$lt_save_ifs" |
---|
9493 | if test "X$pkg" = "X$p"; then |
---|
9494 | enable_fast_install=yes |
---|
9495 | fi |
---|
9496 | done |
---|
9497 | IFS="$lt_save_ifs" |
---|
9498 | ;; |
---|
9499 | esac |
---|
9500 | else |
---|
9501 | enable_fast_install=yes |
---|
9502 | fi; |
---|
9503 | |
---|
9504 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
9505 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
9506 | if test "${ac_cv_host+set}" = set; then |
---|
9507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9508 | else |
---|
9509 | ac_cv_host_alias=$host_alias |
---|
9510 | test -z "$ac_cv_host_alias" && |
---|
9511 | ac_cv_host_alias=$ac_cv_build_alias |
---|
9512 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
9513 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
9514 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
9515 | { (exit 1); exit 1; }; } |
---|
9516 | |
---|
9517 | fi |
---|
9518 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
9519 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
9520 | host=$ac_cv_host |
---|
9521 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
9522 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
9523 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
9524 | |
---|
9525 | |
---|
9526 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
---|
9527 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
---|
9528 | if test "${lt_cv_path_SED+set}" = set; then |
---|
9529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9530 | else |
---|
9531 | # Loop through the user's path and test for sed and gsed. |
---|
9532 | # Then use that list of sed's as ones to test for truncation. |
---|
9533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
9534 | for as_dir in $PATH |
---|
9535 | do |
---|
9536 | IFS=$as_save_IFS |
---|
9537 | test -z "$as_dir" && as_dir=. |
---|
9538 | for lt_ac_prog in sed gsed; do |
---|
9539 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
9540 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
---|
9541 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
---|
9542 | fi |
---|
9543 | done |
---|
9544 | done |
---|
9545 | done |
---|
9546 | lt_ac_max=0 |
---|
9547 | lt_ac_count=0 |
---|
9548 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
---|
9549 | # along with /bin/sed that truncates output. |
---|
9550 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
---|
9551 | test ! -f $lt_ac_sed && continue |
---|
9552 | cat /dev/null > conftest.in |
---|
9553 | lt_ac_count=0 |
---|
9554 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
---|
9555 | # Check for GNU sed and select it if it is found. |
---|
9556 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
---|
9557 | lt_cv_path_SED=$lt_ac_sed |
---|
9558 | break |
---|
9559 | fi |
---|
9560 | while true; do |
---|
9561 | cat conftest.in conftest.in >conftest.tmp |
---|
9562 | mv conftest.tmp conftest.in |
---|
9563 | cp conftest.in conftest.nl |
---|
9564 | echo >>conftest.nl |
---|
9565 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
---|
9566 | cmp -s conftest.out conftest.nl || break |
---|
9567 | # 10000 chars as input seems more than enough |
---|
9568 | test $lt_ac_count -gt 10 && break |
---|
9569 | lt_ac_count=`expr $lt_ac_count + 1` |
---|
9570 | if test $lt_ac_count -gt $lt_ac_max; then |
---|
9571 | lt_ac_max=$lt_ac_count |
---|
9572 | lt_cv_path_SED=$lt_ac_sed |
---|
9573 | fi |
---|
9574 | done |
---|
9575 | done |
---|
9576 | |
---|
9577 | fi |
---|
9578 | |
---|
9579 | SED=$lt_cv_path_SED |
---|
9580 | echo "$as_me:$LINENO: result: $SED" >&5 |
---|
9581 | echo "${ECHO_T}$SED" >&6 |
---|
9582 | |
---|
9583 | |
---|
9584 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
---|
9585 | if test "${with_gnu_ld+set}" = set; then |
---|
9586 | withval="$with_gnu_ld" |
---|
9587 | test "$withval" = no || with_gnu_ld=yes |
---|
9588 | else |
---|
9589 | with_gnu_ld=no |
---|
9590 | fi; |
---|
9591 | ac_prog=ld |
---|
9592 | if test "$GCC" = yes; then |
---|
9593 | # Check if gcc -print-prog-name=ld gives a path. |
---|
9594 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
---|
9595 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
---|
9596 | case $host in |
---|
9597 | *-*-mingw*) |
---|
9598 | # gcc leaves a trailing carriage return which upsets mingw |
---|
9599 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
9600 | *) |
---|
9601 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
9602 | esac |
---|
9603 | case $ac_prog in |
---|
9604 | # Accept absolute paths. |
---|
9605 | [\\/]* | ?:[\\/]*) |
---|
9606 | re_direlt='/[^/][^/]*/\.\./' |
---|
9607 | # Canonicalize the pathname of ld |
---|
9608 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
---|
9609 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
9610 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
---|
9611 | done |
---|
9612 | test -z "$LD" && LD="$ac_prog" |
---|
9613 | ;; |
---|
9614 | "") |
---|
9615 | # If it fails, then pretend we aren't using GCC. |
---|
9616 | ac_prog=ld |
---|
9617 | ;; |
---|
9618 | *) |
---|
9619 | # If it is relative, then search for the first ld in PATH. |
---|
9620 | with_gnu_ld=unknown |
---|
9621 | ;; |
---|
9622 | esac |
---|
9623 | elif test "$with_gnu_ld" = yes; then |
---|
9624 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
---|
9625 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
---|
9626 | else |
---|
9627 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
---|
9628 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
---|
9629 | fi |
---|
9630 | if test "${lt_cv_path_LD+set}" = set; then |
---|
9631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9632 | else |
---|
9633 | if test -z "$LD"; then |
---|
9634 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
9635 | for ac_dir in $PATH; do |
---|
9636 | IFS="$lt_save_ifs" |
---|
9637 | test -z "$ac_dir" && ac_dir=. |
---|
9638 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
9639 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
9640 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
9641 | # but apparently some variants of GNU ld only accept -v. |
---|
9642 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
9643 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
9644 | *GNU* | *'with BFD'*) |
---|
9645 | test "$with_gnu_ld" != no && break |
---|
9646 | ;; |
---|
9647 | *) |
---|
9648 | test "$with_gnu_ld" != yes && break |
---|
9649 | ;; |
---|
9650 | esac |
---|
9651 | fi |
---|
9652 | done |
---|
9653 | IFS="$lt_save_ifs" |
---|
9654 | else |
---|
9655 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
9656 | fi |
---|
9657 | fi |
---|
9658 | |
---|
9659 | LD="$lt_cv_path_LD" |
---|
9660 | if test -n "$LD"; then |
---|
9661 | echo "$as_me:$LINENO: result: $LD" >&5 |
---|
9662 | echo "${ECHO_T}$LD" >&6 |
---|
9663 | else |
---|
9664 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9665 | echo "${ECHO_T}no" >&6 |
---|
9666 | fi |
---|
9667 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
---|
9668 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
---|
9669 | { (exit 1); exit 1; }; } |
---|
9670 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
---|
9671 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
---|
9672 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
---|
9673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9674 | else |
---|
9675 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
---|
9676 | case `$LD -v 2>&1 </dev/null` in |
---|
9677 | *GNU* | *'with BFD'*) |
---|
9678 | lt_cv_prog_gnu_ld=yes |
---|
9679 | ;; |
---|
9680 | *) |
---|
9681 | lt_cv_prog_gnu_ld=no |
---|
9682 | ;; |
---|
9683 | esac |
---|
9684 | fi |
---|
9685 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
---|
9686 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
---|
9687 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
9688 | |
---|
9689 | |
---|
9690 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
---|
9691 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
---|
9692 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
---|
9693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9694 | else |
---|
9695 | lt_cv_ld_reload_flag='-r' |
---|
9696 | fi |
---|
9697 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
---|
9698 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
---|
9699 | reload_flag=$lt_cv_ld_reload_flag |
---|
9700 | case $reload_flag in |
---|
9701 | "" | " "*) ;; |
---|
9702 | *) reload_flag=" $reload_flag" ;; |
---|
9703 | esac |
---|
9704 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
9705 | case $host_os in |
---|
9706 | darwin*) |
---|
9707 | if test "$GCC" = yes; then |
---|
9708 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
---|
9709 | else |
---|
9710 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
9711 | fi |
---|
9712 | ;; |
---|
9713 | esac |
---|
9714 | |
---|
9715 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
---|
9716 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
---|
9717 | if test "${lt_cv_path_NM+set}" = set; then |
---|
9718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9719 | else |
---|
9720 | if test -n "$NM"; then |
---|
9721 | # Let the user override the test. |
---|
9722 | lt_cv_path_NM="$NM" |
---|
9723 | else |
---|
9724 | lt_nm_to_check="${ac_tool_prefix}nm" |
---|
9725 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
---|
9726 | lt_nm_to_check="$lt_nm_to_check nm" |
---|
9727 | fi |
---|
9728 | for lt_tmp_nm in $lt_nm_to_check; do |
---|
9729 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
9730 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
---|
9731 | IFS="$lt_save_ifs" |
---|
9732 | test -z "$ac_dir" && ac_dir=. |
---|
9733 | tmp_nm="$ac_dir/$lt_tmp_nm" |
---|
9734 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
---|
9735 | # Check to see if the nm accepts a BSD-compat flag. |
---|
9736 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
9737 | # nm: unknown option "B" ignored |
---|
9738 | # Tru64's nm complains that /dev/null is an invalid object file |
---|
9739 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
---|
9740 | */dev/null* | *'Invalid file or object type'*) |
---|
9741 | lt_cv_path_NM="$tmp_nm -B" |
---|
9742 | break |
---|
9743 | ;; |
---|
9744 | *) |
---|
9745 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
---|
9746 | */dev/null*) |
---|
9747 | lt_cv_path_NM="$tmp_nm -p" |
---|
9748 | break |
---|
9749 | ;; |
---|
9750 | *) |
---|
9751 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
---|
9752 | continue # so that we can try to find one that supports BSD flags |
---|
9753 | ;; |
---|
9754 | esac |
---|
9755 | ;; |
---|
9756 | esac |
---|
9757 | fi |
---|
9758 | done |
---|
9759 | IFS="$lt_save_ifs" |
---|
9760 | done |
---|
9761 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
---|
9762 | fi |
---|
9763 | fi |
---|
9764 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
---|
9765 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
---|
9766 | NM="$lt_cv_path_NM" |
---|
9767 | |
---|
9768 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
---|
9769 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
---|
9770 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
---|
9771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9772 | else |
---|
9773 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
---|
9774 | lt_cv_file_magic_test_file= |
---|
9775 | lt_cv_deplibs_check_method='unknown' |
---|
9776 | # Need to set the preceding variable on all platforms that support |
---|
9777 | # interlibrary dependencies. |
---|
9778 | # 'none' -- dependencies not supported. |
---|
9779 | # `unknown' -- same as none, but documents that we really don't know. |
---|
9780 | # 'pass_all' -- all dependencies passed with no checks. |
---|
9781 | # 'test_compile' -- check by making test program. |
---|
9782 | # 'file_magic [[regex]]' -- check by looking for files in library path |
---|
9783 | # which responds to the $file_magic_cmd with a given extended regex. |
---|
9784 | # If you have `file' or equivalent on your system and you're not sure |
---|
9785 | # whether `pass_all' will *always* work, you probably want this one. |
---|
9786 | |
---|
9787 | case $host_os in |
---|
9788 | aix4* | aix5*) |
---|
9789 | lt_cv_deplibs_check_method=pass_all |
---|
9790 | ;; |
---|
9791 | |
---|
9792 | beos*) |
---|
9793 | lt_cv_deplibs_check_method=pass_all |
---|
9794 | ;; |
---|
9795 | |
---|
9796 | bsdi[45]*) |
---|
9797 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
---|
9798 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
---|
9799 | lt_cv_file_magic_test_file=/shlib/libc.so |
---|
9800 | ;; |
---|
9801 | |
---|
9802 | cygwin*) |
---|
9803 | # func_win32_libid is a shell function defined in ltmain.sh |
---|
9804 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
---|
9805 | lt_cv_file_magic_cmd='func_win32_libid' |
---|
9806 | ;; |
---|
9807 | |
---|
9808 | mingw* | pw32*) |
---|
9809 | # Base MSYS/MinGW do not provide the 'file' command needed by |
---|
9810 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
---|
9811 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
---|
9812 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
9813 | ;; |
---|
9814 | |
---|
9815 | darwin* | rhapsody*) |
---|
9816 | lt_cv_deplibs_check_method=pass_all |
---|
9817 | ;; |
---|
9818 | |
---|
9819 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
9820 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
9821 | case $host_cpu in |
---|
9822 | i*86 ) |
---|
9823 | # Not sure whether the presence of OpenBSD here was a mistake. |
---|
9824 | # Let's accept both of them until this is cleared up. |
---|
9825 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
---|
9826 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
9827 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
---|
9828 | ;; |
---|
9829 | esac |
---|
9830 | else |
---|
9831 | lt_cv_deplibs_check_method=pass_all |
---|
9832 | fi |
---|
9833 | ;; |
---|
9834 | |
---|
9835 | gnu*) |
---|
9836 | lt_cv_deplibs_check_method=pass_all |
---|
9837 | ;; |
---|
9838 | |
---|
9839 | hpux10.20* | hpux11*) |
---|
9840 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
9841 | case $host_cpu in |
---|
9842 | ia64*) |
---|
9843 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
---|
9844 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
---|
9845 | ;; |
---|
9846 | hppa*64*) |
---|
9847 | 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]' |
---|
9848 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
---|
9849 | ;; |
---|
9850 | *) |
---|
9851 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
---|
9852 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
---|
9853 | ;; |
---|
9854 | esac |
---|
9855 | ;; |
---|
9856 | |
---|
9857 | interix3*) |
---|
9858 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
---|
9859 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
---|
9860 | ;; |
---|
9861 | |
---|
9862 | irix5* | irix6* | nonstopux*) |
---|
9863 | case $LD in |
---|
9864 | *-32|*"-32 ") libmagic=32-bit;; |
---|
9865 | *-n32|*"-n32 ") libmagic=N32;; |
---|
9866 | *-64|*"-64 ") libmagic=64-bit;; |
---|
9867 | *) libmagic=never-match;; |
---|
9868 | esac |
---|
9869 | lt_cv_deplibs_check_method=pass_all |
---|
9870 | ;; |
---|
9871 | |
---|
9872 | # This must be Linux ELF. |
---|
9873 | linux*) |
---|
9874 | lt_cv_deplibs_check_method=pass_all |
---|
9875 | ;; |
---|
9876 | |
---|
9877 | netbsd*) |
---|
9878 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
9879 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
9880 | else |
---|
9881 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
---|
9882 | fi |
---|
9883 | ;; |
---|
9884 | |
---|
9885 | newos6*) |
---|
9886 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
---|
9887 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
9888 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
---|
9889 | ;; |
---|
9890 | |
---|
9891 | nto-qnx*) |
---|
9892 | lt_cv_deplibs_check_method=unknown |
---|
9893 | ;; |
---|
9894 | |
---|
9895 | openbsd*) |
---|
9896 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
9897 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
---|
9898 | else |
---|
9899 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
9900 | fi |
---|
9901 | ;; |
---|
9902 | |
---|
9903 | osf3* | osf4* | osf5*) |
---|
9904 | lt_cv_deplibs_check_method=pass_all |
---|
9905 | ;; |
---|
9906 | |
---|
9907 | solaris*) |
---|
9908 | lt_cv_deplibs_check_method=pass_all |
---|
9909 | ;; |
---|
9910 | |
---|
9911 | sysv4 | sysv4.3*) |
---|
9912 | case $host_vendor in |
---|
9913 | motorola) |
---|
9914 | 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]' |
---|
9915 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
---|
9916 | ;; |
---|
9917 | ncr) |
---|
9918 | lt_cv_deplibs_check_method=pass_all |
---|
9919 | ;; |
---|
9920 | sequent) |
---|
9921 | lt_cv_file_magic_cmd='/bin/file' |
---|
9922 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
---|
9923 | ;; |
---|
9924 | sni) |
---|
9925 | lt_cv_file_magic_cmd='/bin/file' |
---|
9926 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
---|
9927 | lt_cv_file_magic_test_file=/lib/libc.so |
---|
9928 | ;; |
---|
9929 | siemens) |
---|
9930 | lt_cv_deplibs_check_method=pass_all |
---|
9931 | ;; |
---|
9932 | pc) |
---|
9933 | lt_cv_deplibs_check_method=pass_all |
---|
9934 | ;; |
---|
9935 | esac |
---|
9936 | ;; |
---|
9937 | |
---|
9938 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
9939 | lt_cv_deplibs_check_method=pass_all |
---|
9940 | ;; |
---|
9941 | esac |
---|
9942 | |
---|
9943 | fi |
---|
9944 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
---|
9945 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
---|
9946 | file_magic_cmd=$lt_cv_file_magic_cmd |
---|
9947 | deplibs_check_method=$lt_cv_deplibs_check_method |
---|
9948 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
---|
9949 | |
---|
9950 | |
---|
9951 | |
---|
9952 | |
---|
9953 | # If no C compiler was specified, use CC. |
---|
9954 | LTCC=${LTCC-"$CC"} |
---|
9955 | |
---|
9956 | # If no C compiler flags were specified, use CFLAGS. |
---|
9957 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
9958 | |
---|
9959 | # Allow CC to be a program name with arguments. |
---|
9960 | compiler=$CC |
---|
9961 | |
---|
9962 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
9963 | if test "${enable_libtool_lock+set}" = set; then |
---|
9964 | enableval="$enable_libtool_lock" |
---|
9965 | |
---|
9966 | fi; |
---|
9967 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
9968 | |
---|
9969 | # Some flags need to be propagated to the compiler or linker for good |
---|
9970 | # libtool support. |
---|
9971 | case $host in |
---|
9972 | ia64-*-hpux*) |
---|
9973 | # Find out which ABI we are using. |
---|
9974 | echo 'int i;' > conftest.$ac_ext |
---|
9975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9976 | (eval $ac_compile) 2>&5 |
---|
9977 | ac_status=$? |
---|
9978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9979 | (exit $ac_status); }; then |
---|
9980 | case `/usr/bin/file conftest.$ac_objext` in |
---|
9981 | *ELF-32*) |
---|
9982 | HPUX_IA64_MODE="32" |
---|
9983 | ;; |
---|
9984 | *ELF-64*) |
---|
9985 | HPUX_IA64_MODE="64" |
---|
9986 | ;; |
---|
9987 | esac |
---|
9988 | fi |
---|
9989 | rm -rf conftest* |
---|
9990 | ;; |
---|
9991 | *-*-irix6*) |
---|
9992 | # Find out which ABI we are using. |
---|
9993 | echo '#line 9993 "configure"' > conftest.$ac_ext |
---|
9994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9995 | (eval $ac_compile) 2>&5 |
---|
9996 | ac_status=$? |
---|
9997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9998 | (exit $ac_status); }; then |
---|
9999 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
10000 | case `/usr/bin/file conftest.$ac_objext` in |
---|
10001 | *32-bit*) |
---|
10002 | LD="${LD-ld} -melf32bsmip" |
---|
10003 | ;; |
---|
10004 | *N32*) |
---|
10005 | LD="${LD-ld} -melf32bmipn32" |
---|
10006 | ;; |
---|
10007 | *64-bit*) |
---|
10008 | LD="${LD-ld} -melf64bmip" |
---|
10009 | ;; |
---|
10010 | esac |
---|
10011 | else |
---|
10012 | case `/usr/bin/file conftest.$ac_objext` in |
---|
10013 | *32-bit*) |
---|
10014 | LD="${LD-ld} -32" |
---|
10015 | ;; |
---|
10016 | *N32*) |
---|
10017 | LD="${LD-ld} -n32" |
---|
10018 | ;; |
---|
10019 | *64-bit*) |
---|
10020 | LD="${LD-ld} -64" |
---|
10021 | ;; |
---|
10022 | esac |
---|
10023 | fi |
---|
10024 | fi |
---|
10025 | rm -rf conftest* |
---|
10026 | ;; |
---|
10027 | |
---|
10028 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
---|
10029 | # Find out which ABI we are using. |
---|
10030 | echo 'int i;' > conftest.$ac_ext |
---|
10031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10032 | (eval $ac_compile) 2>&5 |
---|
10033 | ac_status=$? |
---|
10034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10035 | (exit $ac_status); }; then |
---|
10036 | case `/usr/bin/file conftest.o` in |
---|
10037 | *32-bit*) |
---|
10038 | case $host in |
---|
10039 | x86_64-*linux*) |
---|
10040 | LD="${LD-ld} -m elf_i386" |
---|
10041 | ;; |
---|
10042 | ppc64-*linux*|powerpc64-*linux*) |
---|
10043 | LD="${LD-ld} -m elf32ppclinux" |
---|
10044 | ;; |
---|
10045 | s390x-*linux*) |
---|
10046 | LD="${LD-ld} -m elf_s390" |
---|
10047 | ;; |
---|
10048 | sparc64-*linux*) |
---|
10049 | LD="${LD-ld} -m elf32_sparc" |
---|
10050 | ;; |
---|
10051 | esac |
---|
10052 | ;; |
---|
10053 | *64-bit*) |
---|
10054 | case $host in |
---|
10055 | x86_64-*linux*) |
---|
10056 | LD="${LD-ld} -m elf_x86_64" |
---|
10057 | ;; |
---|
10058 | ppc*-*linux*|powerpc*-*linux*) |
---|
10059 | LD="${LD-ld} -m elf64ppc" |
---|
10060 | ;; |
---|
10061 | s390*-*linux*) |
---|
10062 | LD="${LD-ld} -m elf64_s390" |
---|
10063 | ;; |
---|
10064 | sparc*-*linux*) |
---|
10065 | LD="${LD-ld} -m elf64_sparc" |
---|
10066 | ;; |
---|
10067 | esac |
---|
10068 | ;; |
---|
10069 | esac |
---|
10070 | fi |
---|
10071 | rm -rf conftest* |
---|
10072 | ;; |
---|
10073 | |
---|
10074 | *-*-sco3.2v5*) |
---|
10075 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
10076 | SAVE_CFLAGS="$CFLAGS" |
---|
10077 | CFLAGS="$CFLAGS -belf" |
---|
10078 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
---|
10079 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
---|
10080 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
---|
10081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10082 | else |
---|
10083 | ac_ext=c |
---|
10084 | ac_cpp='$CPP $CPPFLAGS' |
---|
10085 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
10086 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
10087 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
10088 | |
---|
10089 | cat >conftest.$ac_ext <<_ACEOF |
---|
10090 | /* confdefs.h. */ |
---|
10091 | _ACEOF |
---|
10092 | cat confdefs.h >>conftest.$ac_ext |
---|
10093 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10094 | /* end confdefs.h. */ |
---|
10095 | |
---|
10096 | #ifdef F77_DUMMY_MAIN |
---|
10097 | |
---|
10098 | # ifdef __cplusplus |
---|
10099 | extern "C" |
---|
10100 | # endif |
---|
10101 | int F77_DUMMY_MAIN() { return 1; } |
---|
10102 | |
---|
10103 | #endif |
---|
10104 | int |
---|
10105 | main () |
---|
10106 | { |
---|
10107 | |
---|
10108 | ; |
---|
10109 | return 0; |
---|
10110 | } |
---|
10111 | _ACEOF |
---|
10112 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10113 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10114 | (eval $ac_link) 2>conftest.er1 |
---|
10115 | ac_status=$? |
---|
10116 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10117 | rm -f conftest.er1 |
---|
10118 | cat conftest.err >&5 |
---|
10119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10120 | (exit $ac_status); } && |
---|
10121 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10122 | || test ! -s conftest.err' |
---|
10123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10124 | (eval $ac_try) 2>&5 |
---|
10125 | ac_status=$? |
---|
10126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10127 | (exit $ac_status); }; } && |
---|
10128 | { ac_try='test -s conftest$ac_exeext' |
---|
10129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10130 | (eval $ac_try) 2>&5 |
---|
10131 | ac_status=$? |
---|
10132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10133 | (exit $ac_status); }; }; then |
---|
10134 | lt_cv_cc_needs_belf=yes |
---|
10135 | else |
---|
10136 | echo "$as_me: failed program was:" >&5 |
---|
10137 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10138 | |
---|
10139 | lt_cv_cc_needs_belf=no |
---|
10140 | fi |
---|
10141 | rm -f conftest.err conftest.$ac_objext \ |
---|
10142 | conftest$ac_exeext conftest.$ac_ext |
---|
10143 | ac_ext=c |
---|
10144 | ac_cpp='$CPP $CPPFLAGS' |
---|
10145 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
10146 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
10147 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
10148 | |
---|
10149 | fi |
---|
10150 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
---|
10151 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
---|
10152 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
10153 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
10154 | CFLAGS="$SAVE_CFLAGS" |
---|
10155 | fi |
---|
10156 | ;; |
---|
10157 | sparc*-*solaris*) |
---|
10158 | # Find out which ABI we are using. |
---|
10159 | echo 'int i;' > conftest.$ac_ext |
---|
10160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10161 | (eval $ac_compile) 2>&5 |
---|
10162 | ac_status=$? |
---|
10163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10164 | (exit $ac_status); }; then |
---|
10165 | case `/usr/bin/file conftest.o` in |
---|
10166 | *64-bit*) |
---|
10167 | case $lt_cv_prog_gnu_ld in |
---|
10168 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
---|
10169 | *) LD="${LD-ld} -64" ;; |
---|
10170 | esac |
---|
10171 | ;; |
---|
10172 | esac |
---|
10173 | fi |
---|
10174 | rm -rf conftest* |
---|
10175 | ;; |
---|
10176 | |
---|
10177 | |
---|
10178 | esac |
---|
10179 | |
---|
10180 | need_locks="$enable_libtool_lock" |
---|
10181 | |
---|
10182 | |
---|
10183 | ac_ext=c |
---|
10184 | ac_cpp='$CPP $CPPFLAGS' |
---|
10185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
10186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
10187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
10188 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
10189 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
10190 | # On Suns, sometimes $CPP names a directory. |
---|
10191 | if test -n "$CPP" && test -d "$CPP"; then |
---|
10192 | CPP= |
---|
10193 | fi |
---|
10194 | if test -z "$CPP"; then |
---|
10195 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
10196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10197 | else |
---|
10198 | # Double quotes because CPP needs to be expanded |
---|
10199 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
10200 | do |
---|
10201 | ac_preproc_ok=false |
---|
10202 | for ac_c_preproc_warn_flag in '' yes |
---|
10203 | do |
---|
10204 | # Use a header file that comes with gcc, so configuring glibc |
---|
10205 | # with a fresh cross-compiler works. |
---|
10206 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10207 | # <limits.h> exists even on freestanding compilers. |
---|
10208 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
10209 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
10210 | cat >conftest.$ac_ext <<_ACEOF |
---|
10211 | /* confdefs.h. */ |
---|
10212 | _ACEOF |
---|
10213 | cat confdefs.h >>conftest.$ac_ext |
---|
10214 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10215 | /* end confdefs.h. */ |
---|
10216 | #ifdef __STDC__ |
---|
10217 | # include <limits.h> |
---|
10218 | #else |
---|
10219 | # include <assert.h> |
---|
10220 | #endif |
---|
10221 | Syntax error |
---|
10222 | _ACEOF |
---|
10223 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
10224 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
10225 | ac_status=$? |
---|
10226 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10227 | rm -f conftest.er1 |
---|
10228 | cat conftest.err >&5 |
---|
10229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10230 | (exit $ac_status); } >/dev/null; then |
---|
10231 | if test -s conftest.err; then |
---|
10232 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
10233 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
10234 | else |
---|
10235 | ac_cpp_err= |
---|
10236 | fi |
---|
10237 | else |
---|
10238 | ac_cpp_err=yes |
---|
10239 | fi |
---|
10240 | if test -z "$ac_cpp_err"; then |
---|
10241 | : |
---|
10242 | else |
---|
10243 | echo "$as_me: failed program was:" >&5 |
---|
10244 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10245 | |
---|
10246 | # Broken: fails on valid input. |
---|
10247 | continue |
---|
10248 | fi |
---|
10249 | rm -f conftest.err conftest.$ac_ext |
---|
10250 | |
---|
10251 | # OK, works on sane cases. Now check whether non-existent headers |
---|
10252 | # can be detected and how. |
---|
10253 | cat >conftest.$ac_ext <<_ACEOF |
---|
10254 | /* confdefs.h. */ |
---|
10255 | _ACEOF |
---|
10256 | cat confdefs.h >>conftest.$ac_ext |
---|
10257 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10258 | /* end confdefs.h. */ |
---|
10259 | #include <ac_nonexistent.h> |
---|
10260 | _ACEOF |
---|
10261 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
10262 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
10263 | ac_status=$? |
---|
10264 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10265 | rm -f conftest.er1 |
---|
10266 | cat conftest.err >&5 |
---|
10267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10268 | (exit $ac_status); } >/dev/null; then |
---|
10269 | if test -s conftest.err; then |
---|
10270 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
10271 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
10272 | else |
---|
10273 | ac_cpp_err= |
---|
10274 | fi |
---|
10275 | else |
---|
10276 | ac_cpp_err=yes |
---|
10277 | fi |
---|
10278 | if test -z "$ac_cpp_err"; then |
---|
10279 | # Broken: success on invalid input. |
---|
10280 | continue |
---|
10281 | else |
---|
10282 | echo "$as_me: failed program was:" >&5 |
---|
10283 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10284 | |
---|
10285 | # Passes both tests. |
---|
10286 | ac_preproc_ok=: |
---|
10287 | break |
---|
10288 | fi |
---|
10289 | rm -f conftest.err conftest.$ac_ext |
---|
10290 | |
---|
10291 | done |
---|
10292 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
10293 | rm -f conftest.err conftest.$ac_ext |
---|
10294 | if $ac_preproc_ok; then |
---|
10295 | break |
---|
10296 | fi |
---|
10297 | |
---|
10298 | done |
---|
10299 | ac_cv_prog_CPP=$CPP |
---|
10300 | |
---|
10301 | fi |
---|
10302 | CPP=$ac_cv_prog_CPP |
---|
10303 | else |
---|
10304 | ac_cv_prog_CPP=$CPP |
---|
10305 | fi |
---|
10306 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
10307 | echo "${ECHO_T}$CPP" >&6 |
---|
10308 | ac_preproc_ok=false |
---|
10309 | for ac_c_preproc_warn_flag in '' yes |
---|
10310 | do |
---|
10311 | # Use a header file that comes with gcc, so configuring glibc |
---|
10312 | # with a fresh cross-compiler works. |
---|
10313 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10314 | # <limits.h> exists even on freestanding compilers. |
---|
10315 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
10316 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
10317 | cat >conftest.$ac_ext <<_ACEOF |
---|
10318 | /* confdefs.h. */ |
---|
10319 | _ACEOF |
---|
10320 | cat confdefs.h >>conftest.$ac_ext |
---|
10321 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10322 | /* end confdefs.h. */ |
---|
10323 | #ifdef __STDC__ |
---|
10324 | # include <limits.h> |
---|
10325 | #else |
---|
10326 | # include <assert.h> |
---|
10327 | #endif |
---|
10328 | Syntax error |
---|
10329 | _ACEOF |
---|
10330 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
10331 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
10332 | ac_status=$? |
---|
10333 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10334 | rm -f conftest.er1 |
---|
10335 | cat conftest.err >&5 |
---|
10336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10337 | (exit $ac_status); } >/dev/null; then |
---|
10338 | if test -s conftest.err; then |
---|
10339 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
10340 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
10341 | else |
---|
10342 | ac_cpp_err= |
---|
10343 | fi |
---|
10344 | else |
---|
10345 | ac_cpp_err=yes |
---|
10346 | fi |
---|
10347 | if test -z "$ac_cpp_err"; then |
---|
10348 | : |
---|
10349 | else |
---|
10350 | echo "$as_me: failed program was:" >&5 |
---|
10351 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10352 | |
---|
10353 | # Broken: fails on valid input. |
---|
10354 | continue |
---|
10355 | fi |
---|
10356 | rm -f conftest.err conftest.$ac_ext |
---|
10357 | |
---|
10358 | # OK, works on sane cases. Now check whether non-existent headers |
---|
10359 | # can be detected and how. |
---|
10360 | cat >conftest.$ac_ext <<_ACEOF |
---|
10361 | /* confdefs.h. */ |
---|
10362 | _ACEOF |
---|
10363 | cat confdefs.h >>conftest.$ac_ext |
---|
10364 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10365 | /* end confdefs.h. */ |
---|
10366 | #include <ac_nonexistent.h> |
---|
10367 | _ACEOF |
---|
10368 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
10369 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
10370 | ac_status=$? |
---|
10371 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10372 | rm -f conftest.er1 |
---|
10373 | cat conftest.err >&5 |
---|
10374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10375 | (exit $ac_status); } >/dev/null; then |
---|
10376 | if test -s conftest.err; then |
---|
10377 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
10378 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
10379 | else |
---|
10380 | ac_cpp_err= |
---|
10381 | fi |
---|
10382 | else |
---|
10383 | ac_cpp_err=yes |
---|
10384 | fi |
---|
10385 | if test -z "$ac_cpp_err"; then |
---|
10386 | # Broken: success on invalid input. |
---|
10387 | continue |
---|
10388 | else |
---|
10389 | echo "$as_me: failed program was:" >&5 |
---|
10390 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10391 | |
---|
10392 | # Passes both tests. |
---|
10393 | ac_preproc_ok=: |
---|
10394 | break |
---|
10395 | fi |
---|
10396 | rm -f conftest.err conftest.$ac_ext |
---|
10397 | |
---|
10398 | done |
---|
10399 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
10400 | rm -f conftest.err conftest.$ac_ext |
---|
10401 | if $ac_preproc_ok; then |
---|
10402 | : |
---|
10403 | else |
---|
10404 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
10405 | See \`config.log' for more details." >&5 |
---|
10406 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
10407 | See \`config.log' for more details." >&2;} |
---|
10408 | { (exit 1); exit 1; }; } |
---|
10409 | fi |
---|
10410 | |
---|
10411 | ac_ext=c |
---|
10412 | ac_cpp='$CPP $CPPFLAGS' |
---|
10413 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
10414 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
10415 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
10416 | |
---|
10417 | |
---|
10418 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
10419 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
10420 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
10421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10422 | else |
---|
10423 | cat >conftest.$ac_ext <<_ACEOF |
---|
10424 | /* confdefs.h. */ |
---|
10425 | _ACEOF |
---|
10426 | cat confdefs.h >>conftest.$ac_ext |
---|
10427 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10428 | /* end confdefs.h. */ |
---|
10429 | #include <stdlib.h> |
---|
10430 | #include <stdarg.h> |
---|
10431 | #include <string.h> |
---|
10432 | #include <float.h> |
---|
10433 | |
---|
10434 | #ifdef F77_DUMMY_MAIN |
---|
10435 | |
---|
10436 | # ifdef __cplusplus |
---|
10437 | extern "C" |
---|
10438 | # endif |
---|
10439 | int F77_DUMMY_MAIN() { return 1; } |
---|
10440 | |
---|
10441 | #endif |
---|
10442 | int |
---|
10443 | main () |
---|
10444 | { |
---|
10445 | |
---|
10446 | ; |
---|
10447 | return 0; |
---|
10448 | } |
---|
10449 | _ACEOF |
---|
10450 | rm -f conftest.$ac_objext |
---|
10451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10452 | (eval $ac_compile) 2>conftest.er1 |
---|
10453 | ac_status=$? |
---|
10454 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10455 | rm -f conftest.er1 |
---|
10456 | cat conftest.err >&5 |
---|
10457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10458 | (exit $ac_status); } && |
---|
10459 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10460 | || test ! -s conftest.err' |
---|
10461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10462 | (eval $ac_try) 2>&5 |
---|
10463 | ac_status=$? |
---|
10464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10465 | (exit $ac_status); }; } && |
---|
10466 | { ac_try='test -s conftest.$ac_objext' |
---|
10467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10468 | (eval $ac_try) 2>&5 |
---|
10469 | ac_status=$? |
---|
10470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10471 | (exit $ac_status); }; }; then |
---|
10472 | ac_cv_header_stdc=yes |
---|
10473 | else |
---|
10474 | echo "$as_me: failed program was:" >&5 |
---|
10475 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10476 | |
---|
10477 | ac_cv_header_stdc=no |
---|
10478 | fi |
---|
10479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
10480 | |
---|
10481 | if test $ac_cv_header_stdc = yes; then |
---|
10482 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
10483 | cat >conftest.$ac_ext <<_ACEOF |
---|
10484 | /* confdefs.h. */ |
---|
10485 | _ACEOF |
---|
10486 | cat confdefs.h >>conftest.$ac_ext |
---|
10487 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10488 | /* end confdefs.h. */ |
---|
10489 | #include <string.h> |
---|
10490 | |
---|
10491 | _ACEOF |
---|
10492 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
10493 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
10494 | : |
---|
10495 | else |
---|
10496 | ac_cv_header_stdc=no |
---|
10497 | fi |
---|
10498 | rm -f conftest* |
---|
10499 | |
---|
10500 | fi |
---|
10501 | |
---|
10502 | if test $ac_cv_header_stdc = yes; then |
---|
10503 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
10504 | cat >conftest.$ac_ext <<_ACEOF |
---|
10505 | /* confdefs.h. */ |
---|
10506 | _ACEOF |
---|
10507 | cat confdefs.h >>conftest.$ac_ext |
---|
10508 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10509 | /* end confdefs.h. */ |
---|
10510 | #include <stdlib.h> |
---|
10511 | |
---|
10512 | _ACEOF |
---|
10513 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
10514 | $EGREP "free" >/dev/null 2>&1; then |
---|
10515 | : |
---|
10516 | else |
---|
10517 | ac_cv_header_stdc=no |
---|
10518 | fi |
---|
10519 | rm -f conftest* |
---|
10520 | |
---|
10521 | fi |
---|
10522 | |
---|
10523 | if test $ac_cv_header_stdc = yes; then |
---|
10524 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
10525 | if test "$cross_compiling" = yes; then |
---|
10526 | : |
---|
10527 | else |
---|
10528 | cat >conftest.$ac_ext <<_ACEOF |
---|
10529 | /* confdefs.h. */ |
---|
10530 | _ACEOF |
---|
10531 | cat confdefs.h >>conftest.$ac_ext |
---|
10532 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10533 | /* end confdefs.h. */ |
---|
10534 | #include <ctype.h> |
---|
10535 | #if ((' ' & 0x0FF) == 0x020) |
---|
10536 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
10537 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
10538 | #else |
---|
10539 | # define ISLOWER(c) \ |
---|
10540 | (('a' <= (c) && (c) <= 'i') \ |
---|
10541 | || ('j' <= (c) && (c) <= 'r') \ |
---|
10542 | || ('s' <= (c) && (c) <= 'z')) |
---|
10543 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
10544 | #endif |
---|
10545 | |
---|
10546 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
10547 | int |
---|
10548 | main () |
---|
10549 | { |
---|
10550 | int i; |
---|
10551 | for (i = 0; i < 256; i++) |
---|
10552 | if (XOR (islower (i), ISLOWER (i)) |
---|
10553 | || toupper (i) != TOUPPER (i)) |
---|
10554 | exit(2); |
---|
10555 | exit (0); |
---|
10556 | } |
---|
10557 | _ACEOF |
---|
10558 | rm -f conftest$ac_exeext |
---|
10559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10560 | (eval $ac_link) 2>&5 |
---|
10561 | ac_status=$? |
---|
10562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10563 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
10564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10565 | (eval $ac_try) 2>&5 |
---|
10566 | ac_status=$? |
---|
10567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10568 | (exit $ac_status); }; }; then |
---|
10569 | : |
---|
10570 | else |
---|
10571 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
10572 | echo "$as_me: failed program was:" >&5 |
---|
10573 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10574 | |
---|
10575 | ( exit $ac_status ) |
---|
10576 | ac_cv_header_stdc=no |
---|
10577 | fi |
---|
10578 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
10579 | fi |
---|
10580 | fi |
---|
10581 | fi |
---|
10582 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
10583 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
10584 | if test $ac_cv_header_stdc = yes; then |
---|
10585 | |
---|
10586 | cat >>confdefs.h <<\_ACEOF |
---|
10587 | #define STDC_HEADERS 1 |
---|
10588 | _ACEOF |
---|
10589 | |
---|
10590 | fi |
---|
10591 | |
---|
10592 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
10593 | |
---|
10594 | |
---|
10595 | |
---|
10596 | |
---|
10597 | |
---|
10598 | |
---|
10599 | |
---|
10600 | |
---|
10601 | |
---|
10602 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
10603 | inttypes.h stdint.h unistd.h |
---|
10604 | do |
---|
10605 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
10606 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
10607 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
10608 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10610 | else |
---|
10611 | cat >conftest.$ac_ext <<_ACEOF |
---|
10612 | /* confdefs.h. */ |
---|
10613 | _ACEOF |
---|
10614 | cat confdefs.h >>conftest.$ac_ext |
---|
10615 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10616 | /* end confdefs.h. */ |
---|
10617 | $ac_includes_default |
---|
10618 | |
---|
10619 | #include <$ac_header> |
---|
10620 | _ACEOF |
---|
10621 | rm -f conftest.$ac_objext |
---|
10622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10623 | (eval $ac_compile) 2>conftest.er1 |
---|
10624 | ac_status=$? |
---|
10625 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10626 | rm -f conftest.er1 |
---|
10627 | cat conftest.err >&5 |
---|
10628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10629 | (exit $ac_status); } && |
---|
10630 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10631 | || test ! -s conftest.err' |
---|
10632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10633 | (eval $ac_try) 2>&5 |
---|
10634 | ac_status=$? |
---|
10635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10636 | (exit $ac_status); }; } && |
---|
10637 | { ac_try='test -s conftest.$ac_objext' |
---|
10638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10639 | (eval $ac_try) 2>&5 |
---|
10640 | ac_status=$? |
---|
10641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10642 | (exit $ac_status); }; }; then |
---|
10643 | eval "$as_ac_Header=yes" |
---|
10644 | else |
---|
10645 | echo "$as_me: failed program was:" >&5 |
---|
10646 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10647 | |
---|
10648 | eval "$as_ac_Header=no" |
---|
10649 | fi |
---|
10650 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
10651 | fi |
---|
10652 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
10653 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
10654 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
10655 | cat >>confdefs.h <<_ACEOF |
---|
10656 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
10657 | _ACEOF |
---|
10658 | |
---|
10659 | fi |
---|
10660 | |
---|
10661 | done |
---|
10662 | |
---|
10663 | |
---|
10664 | |
---|
10665 | for ac_header in dlfcn.h |
---|
10666 | do |
---|
10667 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
10668 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10669 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
10670 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
10671 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10673 | fi |
---|
10674 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
10675 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
10676 | else |
---|
10677 | # Is the header compilable? |
---|
10678 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
10679 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
10680 | cat >conftest.$ac_ext <<_ACEOF |
---|
10681 | /* confdefs.h. */ |
---|
10682 | _ACEOF |
---|
10683 | cat confdefs.h >>conftest.$ac_ext |
---|
10684 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10685 | /* end confdefs.h. */ |
---|
10686 | $ac_includes_default |
---|
10687 | #include <$ac_header> |
---|
10688 | _ACEOF |
---|
10689 | rm -f conftest.$ac_objext |
---|
10690 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10691 | (eval $ac_compile) 2>conftest.er1 |
---|
10692 | ac_status=$? |
---|
10693 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10694 | rm -f conftest.er1 |
---|
10695 | cat conftest.err >&5 |
---|
10696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10697 | (exit $ac_status); } && |
---|
10698 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10699 | || test ! -s conftest.err' |
---|
10700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10701 | (eval $ac_try) 2>&5 |
---|
10702 | ac_status=$? |
---|
10703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10704 | (exit $ac_status); }; } && |
---|
10705 | { ac_try='test -s conftest.$ac_objext' |
---|
10706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10707 | (eval $ac_try) 2>&5 |
---|
10708 | ac_status=$? |
---|
10709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10710 | (exit $ac_status); }; }; then |
---|
10711 | ac_header_compiler=yes |
---|
10712 | else |
---|
10713 | echo "$as_me: failed program was:" >&5 |
---|
10714 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10715 | |
---|
10716 | ac_header_compiler=no |
---|
10717 | fi |
---|
10718 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
10719 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
10720 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
10721 | |
---|
10722 | # Is the header present? |
---|
10723 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
10724 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
10725 | cat >conftest.$ac_ext <<_ACEOF |
---|
10726 | /* confdefs.h. */ |
---|
10727 | _ACEOF |
---|
10728 | cat confdefs.h >>conftest.$ac_ext |
---|
10729 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10730 | /* end confdefs.h. */ |
---|
10731 | #include <$ac_header> |
---|
10732 | _ACEOF |
---|
10733 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
10734 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
10735 | ac_status=$? |
---|
10736 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10737 | rm -f conftest.er1 |
---|
10738 | cat conftest.err >&5 |
---|
10739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10740 | (exit $ac_status); } >/dev/null; then |
---|
10741 | if test -s conftest.err; then |
---|
10742 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
10743 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
10744 | else |
---|
10745 | ac_cpp_err= |
---|
10746 | fi |
---|
10747 | else |
---|
10748 | ac_cpp_err=yes |
---|
10749 | fi |
---|
10750 | if test -z "$ac_cpp_err"; then |
---|
10751 | ac_header_preproc=yes |
---|
10752 | else |
---|
10753 | echo "$as_me: failed program was:" >&5 |
---|
10754 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10755 | |
---|
10756 | ac_header_preproc=no |
---|
10757 | fi |
---|
10758 | rm -f conftest.err conftest.$ac_ext |
---|
10759 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
10760 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
10761 | |
---|
10762 | # So? What about this header? |
---|
10763 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
10764 | yes:no: ) |
---|
10765 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
10766 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
10767 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
10768 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
10769 | ac_header_preproc=yes |
---|
10770 | ;; |
---|
10771 | no:yes:* ) |
---|
10772 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
10773 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
10774 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
10775 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
10776 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
10777 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
10778 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
10779 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
10780 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
10781 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
10782 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
10783 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
10784 | ( |
---|
10785 | cat <<\_ASBOX |
---|
10786 | ## --------------------------------------------------------------- ## |
---|
10787 | ## Report this to http://projects.coin-or.org/BuildTools/newticket ## |
---|
10788 | ## --------------------------------------------------------------- ## |
---|
10789 | _ASBOX |
---|
10790 | ) | |
---|
10791 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
10792 | ;; |
---|
10793 | esac |
---|
10794 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
10795 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
10796 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10798 | else |
---|
10799 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
10800 | fi |
---|
10801 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
10802 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
10803 | |
---|
10804 | fi |
---|
10805 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
10806 | cat >>confdefs.h <<_ACEOF |
---|
10807 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
10808 | _ACEOF |
---|
10809 | |
---|
10810 | fi |
---|
10811 | |
---|
10812 | done |
---|
10813 | |
---|
10814 | ac_ext=cc |
---|
10815 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
10816 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
10817 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
10818 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
10819 | if test -n "$ac_tool_prefix"; then |
---|
10820 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
10821 | do |
---|
10822 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
10823 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
10824 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
10825 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
10826 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
10827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10828 | else |
---|
10829 | if test -n "$CXX"; then |
---|
10830 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
10831 | else |
---|
10832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
10833 | for as_dir in $PATH |
---|
10834 | do |
---|
10835 | IFS=$as_save_IFS |
---|
10836 | test -z "$as_dir" && as_dir=. |
---|
10837 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
10838 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
10839 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
10840 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
10841 | break 2 |
---|
10842 | fi |
---|
10843 | done |
---|
10844 | done |
---|
10845 | |
---|
10846 | fi |
---|
10847 | fi |
---|
10848 | CXX=$ac_cv_prog_CXX |
---|
10849 | if test -n "$CXX"; then |
---|
10850 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
10851 | echo "${ECHO_T}$CXX" >&6 |
---|
10852 | else |
---|
10853 | echo "$as_me:$LINENO: result: no" >&5 |
---|
10854 | echo "${ECHO_T}no" >&6 |
---|
10855 | fi |
---|
10856 | |
---|
10857 | test -n "$CXX" && break |
---|
10858 | done |
---|
10859 | fi |
---|
10860 | if test -z "$CXX"; then |
---|
10861 | ac_ct_CXX=$CXX |
---|
10862 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
10863 | do |
---|
10864 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
10865 | set dummy $ac_prog; ac_word=$2 |
---|
10866 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
10867 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
10868 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
10869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10870 | else |
---|
10871 | if test -n "$ac_ct_CXX"; then |
---|
10872 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
10873 | else |
---|
10874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
10875 | for as_dir in $PATH |
---|
10876 | do |
---|
10877 | IFS=$as_save_IFS |
---|
10878 | test -z "$as_dir" && as_dir=. |
---|
10879 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
10880 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
10881 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
10882 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
10883 | break 2 |
---|
10884 | fi |
---|
10885 | done |
---|
10886 | done |
---|
10887 | |
---|
10888 | fi |
---|
10889 | fi |
---|
10890 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
10891 | if test -n "$ac_ct_CXX"; then |
---|
10892 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
10893 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
10894 | else |
---|
10895 | echo "$as_me:$LINENO: result: no" >&5 |
---|
10896 | echo "${ECHO_T}no" >&6 |
---|
10897 | fi |
---|
10898 | |
---|
10899 | test -n "$ac_ct_CXX" && break |
---|
10900 | done |
---|
10901 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
10902 | |
---|
10903 | CXX=$ac_ct_CXX |
---|
10904 | fi |
---|
10905 | |
---|
10906 | |
---|
10907 | # Provide some information about the compiler. |
---|
10908 | echo "$as_me:$LINENO:" \ |
---|
10909 | "checking for C++ compiler version" >&5 |
---|
10910 | ac_compiler=`set X $ac_compile; echo $2` |
---|
10911 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
10912 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
10913 | ac_status=$? |
---|
10914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10915 | (exit $ac_status); } |
---|
10916 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
10917 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
10918 | ac_status=$? |
---|
10919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10920 | (exit $ac_status); } |
---|
10921 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
10922 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
10923 | ac_status=$? |
---|
10924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10925 | (exit $ac_status); } |
---|
10926 | |
---|
10927 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
10928 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
10929 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
10930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10931 | else |
---|
10932 | cat >conftest.$ac_ext <<_ACEOF |
---|
10933 | /* confdefs.h. */ |
---|
10934 | _ACEOF |
---|
10935 | cat confdefs.h >>conftest.$ac_ext |
---|
10936 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10937 | /* end confdefs.h. */ |
---|
10938 | |
---|
10939 | #ifdef F77_DUMMY_MAIN |
---|
10940 | |
---|
10941 | # ifdef __cplusplus |
---|
10942 | extern "C" |
---|
10943 | # endif |
---|
10944 | int F77_DUMMY_MAIN() { return 1; } |
---|
10945 | |
---|
10946 | #endif |
---|
10947 | int |
---|
10948 | main () |
---|
10949 | { |
---|
10950 | #ifndef __GNUC__ |
---|
10951 | choke me |
---|
10952 | #endif |
---|
10953 | |
---|
10954 | ; |
---|
10955 | return 0; |
---|
10956 | } |
---|
10957 | _ACEOF |
---|
10958 | rm -f conftest.$ac_objext |
---|
10959 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10960 | (eval $ac_compile) 2>conftest.er1 |
---|
10961 | ac_status=$? |
---|
10962 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10963 | rm -f conftest.er1 |
---|
10964 | cat conftest.err >&5 |
---|
10965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10966 | (exit $ac_status); } && |
---|
10967 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
10968 | || test ! -s conftest.err' |
---|
10969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10970 | |
---|