1 |
|
#! /bin/sh |
2 |
|
# Guess values for system-dependent variables and create Makefiles. |
3 |
< |
# Generated by GNU Autoconf 2.59 for OOPSE 1.0. |
3 |
> |
# Generated by GNU Autoconf 2.61 for OOPSE 3.0. |
4 |
|
# |
5 |
|
# Report bugs to <gezelter@nd.edu>. |
6 |
|
# |
7 |
< |
# Copyright (C) 2003 Free Software Foundation, Inc. |
7 |
> |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8 |
> |
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
9 |
|
# This configure script is free software; the Free Software Foundation |
10 |
|
# gives unlimited permission to copy, distribute and modify it. |
11 |
|
## --------------------- ## |
12 |
|
## M4sh Initialization. ## |
13 |
|
## --------------------- ## |
14 |
|
|
15 |
< |
# Be Bourne compatible |
15 |
> |
# Be more Bourne compatible |
16 |
> |
DUALCASE=1; export DUALCASE # for MKS sh |
17 |
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18 |
|
emulate sh |
19 |
|
NULLCMD=: |
20 |
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
21 |
|
# is contrary to our usage. Disable this feature. |
22 |
|
alias -g '${1+"$@"}'='"$@"' |
23 |
< |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
24 |
< |
set -o posix |
23 |
> |
setopt NO_GLOB_SUBST |
24 |
> |
else |
25 |
> |
case `(set -o) 2>/dev/null` in |
26 |
> |
*posix*) set -o posix ;; |
27 |
> |
esac |
28 |
> |
|
29 |
|
fi |
24 |
– |
DUALCASE=1; export DUALCASE # for MKS sh |
30 |
|
|
31 |
+ |
|
32 |
+ |
|
33 |
+ |
|
34 |
+ |
# PATH needs CR |
35 |
+ |
# Avoid depending upon Character Ranges. |
36 |
+ |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
37 |
+ |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
38 |
+ |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
39 |
+ |
as_cr_digits='0123456789' |
40 |
+ |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
41 |
+ |
|
42 |
+ |
# The user is always right. |
43 |
+ |
if test "${PATH_SEPARATOR+set}" != set; then |
44 |
+ |
echo "#! /bin/sh" >conf$$.sh |
45 |
+ |
echo "exit 0" >>conf$$.sh |
46 |
+ |
chmod +x conf$$.sh |
47 |
+ |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
48 |
+ |
PATH_SEPARATOR=';' |
49 |
+ |
else |
50 |
+ |
PATH_SEPARATOR=: |
51 |
+ |
fi |
52 |
+ |
rm -rf conf$$.sh |
53 |
+ |
fi |
54 |
+ |
|
55 |
|
# Support unset when possible. |
56 |
|
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
57 |
|
as_unset=unset |
60 |
|
fi |
61 |
|
|
62 |
|
|
63 |
+ |
# IFS |
64 |
+ |
# We need space, tab and new line, in precisely that order. Quoting is |
65 |
+ |
# there to prevent editors from complaining about space-tab. |
66 |
+ |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
67 |
+ |
# splitting by setting IFS to empty value.) |
68 |
+ |
as_nl=' |
69 |
+ |
' |
70 |
+ |
IFS=" "" $as_nl" |
71 |
+ |
|
72 |
+ |
# Find who we are. Look in the path if we contain no directory separator. |
73 |
+ |
case $0 in |
74 |
+ |
*[\\/]* ) as_myself=$0 ;; |
75 |
+ |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
76 |
+ |
for as_dir in $PATH |
77 |
+ |
do |
78 |
+ |
IFS=$as_save_IFS |
79 |
+ |
test -z "$as_dir" && as_dir=. |
80 |
+ |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
81 |
+ |
done |
82 |
+ |
IFS=$as_save_IFS |
83 |
+ |
|
84 |
+ |
;; |
85 |
+ |
esac |
86 |
+ |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
87 |
+ |
# in which case we are not to be found in the path. |
88 |
+ |
if test "x$as_myself" = x; then |
89 |
+ |
as_myself=$0 |
90 |
+ |
fi |
91 |
+ |
if test ! -f "$as_myself"; then |
92 |
+ |
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
93 |
+ |
{ (exit 1); exit 1; } |
94 |
+ |
fi |
95 |
+ |
|
96 |
|
# Work around bugs in pre-3.0 UWIN ksh. |
97 |
< |
$as_unset ENV MAIL MAILPATH |
97 |
> |
for as_var in ENV MAIL MAILPATH |
98 |
> |
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
99 |
> |
done |
100 |
|
PS1='$ ' |
101 |
|
PS2='> ' |
102 |
|
PS4='+ ' |
110 |
|
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
111 |
|
eval $as_var=C; export $as_var |
112 |
|
else |
113 |
< |
$as_unset $as_var |
113 |
> |
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
114 |
|
fi |
115 |
|
done |
116 |
|
|
117 |
|
# Required to use basename. |
118 |
< |
if expr a : '\(a\)' >/dev/null 2>&1; then |
118 |
> |
if expr a : '\(a\)' >/dev/null 2>&1 && |
119 |
> |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
120 |
|
as_expr=expr |
121 |
|
else |
122 |
|
as_expr=false |
123 |
|
fi |
124 |
|
|
125 |
< |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
125 |
> |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
126 |
|
as_basename=basename |
127 |
|
else |
128 |
|
as_basename=false |
130 |
|
|
131 |
|
|
132 |
|
# Name of the executable. |
133 |
< |
as_me=`$as_basename "$0" || |
133 |
> |
as_me=`$as_basename -- "$0" || |
134 |
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
135 |
|
X"$0" : 'X\(//\)$' \| \ |
136 |
< |
X"$0" : 'X\(/\)$' \| \ |
72 |
< |
. : '\(.\)' 2>/dev/null || |
136 |
> |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
137 |
|
echo X/"$0" | |
138 |
< |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
139 |
< |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
140 |
< |
/^X\/\(\/\).*/{ s//\1/; q; } |
141 |
< |
s/.*/./; q'` |
138 |
> |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
139 |
> |
s//\1/ |
140 |
> |
q |
141 |
> |
} |
142 |
> |
/^X\/\(\/\/\)$/{ |
143 |
> |
s//\1/ |
144 |
> |
q |
145 |
> |
} |
146 |
> |
/^X\/\(\/\).*/{ |
147 |
> |
s//\1/ |
148 |
> |
q |
149 |
> |
} |
150 |
> |
s/.*/./; q'` |
151 |
|
|
152 |
+ |
# CDPATH. |
153 |
+ |
$as_unset CDPATH |
154 |
|
|
80 |
– |
# PATH needs CR, and LINENO needs CR and PATH. |
81 |
– |
# Avoid depending upon Character Ranges. |
82 |
– |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
83 |
– |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
84 |
– |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
85 |
– |
as_cr_digits='0123456789' |
86 |
– |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
155 |
|
|
156 |
< |
# The user is always right. |
157 |
< |
if test "${PATH_SEPARATOR+set}" != set; then |
158 |
< |
echo "#! /bin/sh" >conf$$.sh |
159 |
< |
echo "exit 0" >>conf$$.sh |
160 |
< |
chmod +x conf$$.sh |
93 |
< |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
94 |
< |
PATH_SEPARATOR=';' |
95 |
< |
else |
96 |
< |
PATH_SEPARATOR=: |
97 |
< |
fi |
98 |
< |
rm -f conf$$.sh |
156 |
> |
if test "x$CONFIG_SHELL" = x; then |
157 |
> |
if (eval ":") 2>/dev/null; then |
158 |
> |
as_have_required=yes |
159 |
> |
else |
160 |
> |
as_have_required=no |
161 |
|
fi |
162 |
|
|
163 |
+ |
if test $as_have_required = yes && (eval ": |
164 |
+ |
(as_func_return () { |
165 |
+ |
(exit \$1) |
166 |
+ |
} |
167 |
+ |
as_func_success () { |
168 |
+ |
as_func_return 0 |
169 |
+ |
} |
170 |
+ |
as_func_failure () { |
171 |
+ |
as_func_return 1 |
172 |
+ |
} |
173 |
+ |
as_func_ret_success () { |
174 |
+ |
return 0 |
175 |
+ |
} |
176 |
+ |
as_func_ret_failure () { |
177 |
+ |
return 1 |
178 |
+ |
} |
179 |
|
|
180 |
< |
as_lineno_1=$LINENO |
181 |
< |
as_lineno_2=$LINENO |
182 |
< |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
183 |
< |
test "x$as_lineno_1" != "x$as_lineno_2" && |
184 |
< |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
185 |
< |
# Find who we are. Look in the path if we contain no path at all |
186 |
< |
# relative or not. |
109 |
< |
case $0 in |
110 |
< |
*[\\/]* ) as_myself=$0 ;; |
111 |
< |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
112 |
< |
for as_dir in $PATH |
113 |
< |
do |
114 |
< |
IFS=$as_save_IFS |
115 |
< |
test -z "$as_dir" && as_dir=. |
116 |
< |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
117 |
< |
done |
180 |
> |
exitcode=0 |
181 |
> |
if as_func_success; then |
182 |
> |
: |
183 |
> |
else |
184 |
> |
exitcode=1 |
185 |
> |
echo as_func_success failed. |
186 |
> |
fi |
187 |
|
|
188 |
< |
;; |
189 |
< |
esac |
190 |
< |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
191 |
< |
# in which case we are not to be found in the path. |
192 |
< |
if test "x$as_myself" = x; then |
193 |
< |
as_myself=$0 |
194 |
< |
fi |
195 |
< |
if test ! -f "$as_myself"; then |
196 |
< |
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
197 |
< |
{ (exit 1); exit 1; }; } |
198 |
< |
fi |
199 |
< |
case $CONFIG_SHELL in |
200 |
< |
'') |
188 |
> |
if as_func_failure; then |
189 |
> |
exitcode=1 |
190 |
> |
echo as_func_failure succeeded. |
191 |
> |
fi |
192 |
> |
|
193 |
> |
if as_func_ret_success; then |
194 |
> |
: |
195 |
> |
else |
196 |
> |
exitcode=1 |
197 |
> |
echo as_func_ret_success failed. |
198 |
> |
fi |
199 |
> |
|
200 |
> |
if as_func_ret_failure; then |
201 |
> |
exitcode=1 |
202 |
> |
echo as_func_ret_failure succeeded. |
203 |
> |
fi |
204 |
> |
|
205 |
> |
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
206 |
> |
: |
207 |
> |
else |
208 |
> |
exitcode=1 |
209 |
> |
echo positional parameters were not saved. |
210 |
> |
fi |
211 |
> |
|
212 |
> |
test \$exitcode = 0) || { (exit 1); exit 1; } |
213 |
> |
|
214 |
> |
( |
215 |
> |
as_lineno_1=\$LINENO |
216 |
> |
as_lineno_2=\$LINENO |
217 |
> |
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
218 |
> |
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
219 |
> |
") 2> /dev/null; then |
220 |
> |
: |
221 |
> |
else |
222 |
> |
as_candidate_shells= |
223 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
224 |
|
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
225 |
|
do |
226 |
|
IFS=$as_save_IFS |
227 |
|
test -z "$as_dir" && as_dir=. |
228 |
< |
for as_base in sh bash ksh sh5; do |
138 |
< |
case $as_dir in |
228 |
> |
case $as_dir in |
229 |
|
/*) |
230 |
< |
if ("$as_dir/$as_base" -c ' |
230 |
> |
for as_base in sh bash ksh sh5; do |
231 |
> |
as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
232 |
> |
done;; |
233 |
> |
esac |
234 |
> |
done |
235 |
> |
IFS=$as_save_IFS |
236 |
> |
|
237 |
> |
|
238 |
> |
for as_shell in $as_candidate_shells $SHELL; do |
239 |
> |
# Try only shells that exist, to save several forks. |
240 |
> |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
241 |
> |
{ ("$as_shell") 2> /dev/null <<\_ASEOF |
242 |
> |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
243 |
> |
emulate sh |
244 |
> |
NULLCMD=: |
245 |
> |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
246 |
> |
# is contrary to our usage. Disable this feature. |
247 |
> |
alias -g '${1+"$@"}'='"$@"' |
248 |
> |
setopt NO_GLOB_SUBST |
249 |
> |
else |
250 |
> |
case `(set -o) 2>/dev/null` in |
251 |
> |
*posix*) set -o posix ;; |
252 |
> |
esac |
253 |
> |
|
254 |
> |
fi |
255 |
> |
|
256 |
> |
|
257 |
> |
: |
258 |
> |
_ASEOF |
259 |
> |
}; then |
260 |
> |
CONFIG_SHELL=$as_shell |
261 |
> |
as_have_required=yes |
262 |
> |
if { "$as_shell" 2> /dev/null <<\_ASEOF |
263 |
> |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
264 |
> |
emulate sh |
265 |
> |
NULLCMD=: |
266 |
> |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
267 |
> |
# is contrary to our usage. Disable this feature. |
268 |
> |
alias -g '${1+"$@"}'='"$@"' |
269 |
> |
setopt NO_GLOB_SUBST |
270 |
> |
else |
271 |
> |
case `(set -o) 2>/dev/null` in |
272 |
> |
*posix*) set -o posix ;; |
273 |
> |
esac |
274 |
> |
|
275 |
> |
fi |
276 |
> |
|
277 |
> |
|
278 |
> |
: |
279 |
> |
(as_func_return () { |
280 |
> |
(exit $1) |
281 |
> |
} |
282 |
> |
as_func_success () { |
283 |
> |
as_func_return 0 |
284 |
> |
} |
285 |
> |
as_func_failure () { |
286 |
> |
as_func_return 1 |
287 |
> |
} |
288 |
> |
as_func_ret_success () { |
289 |
> |
return 0 |
290 |
> |
} |
291 |
> |
as_func_ret_failure () { |
292 |
> |
return 1 |
293 |
> |
} |
294 |
> |
|
295 |
> |
exitcode=0 |
296 |
> |
if as_func_success; then |
297 |
> |
: |
298 |
> |
else |
299 |
> |
exitcode=1 |
300 |
> |
echo as_func_success failed. |
301 |
> |
fi |
302 |
> |
|
303 |
> |
if as_func_failure; then |
304 |
> |
exitcode=1 |
305 |
> |
echo as_func_failure succeeded. |
306 |
> |
fi |
307 |
> |
|
308 |
> |
if as_func_ret_success; then |
309 |
> |
: |
310 |
> |
else |
311 |
> |
exitcode=1 |
312 |
> |
echo as_func_ret_success failed. |
313 |
> |
fi |
314 |
> |
|
315 |
> |
if as_func_ret_failure; then |
316 |
> |
exitcode=1 |
317 |
> |
echo as_func_ret_failure succeeded. |
318 |
> |
fi |
319 |
> |
|
320 |
> |
if ( set x; as_func_ret_success y && test x = "$1" ); then |
321 |
> |
: |
322 |
> |
else |
323 |
> |
exitcode=1 |
324 |
> |
echo positional parameters were not saved. |
325 |
> |
fi |
326 |
> |
|
327 |
> |
test $exitcode = 0) || { (exit 1); exit 1; } |
328 |
> |
|
329 |
> |
( |
330 |
|
as_lineno_1=$LINENO |
331 |
|
as_lineno_2=$LINENO |
143 |
– |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
332 |
|
test "x$as_lineno_1" != "x$as_lineno_2" && |
333 |
< |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
146 |
< |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
147 |
< |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
148 |
< |
CONFIG_SHELL=$as_dir/$as_base |
149 |
< |
export CONFIG_SHELL |
150 |
< |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
151 |
< |
fi;; |
152 |
< |
esac |
153 |
< |
done |
154 |
< |
done |
155 |
< |
;; |
156 |
< |
esac |
333 |
> |
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
334 |
|
|
335 |
+ |
_ASEOF |
336 |
+ |
}; then |
337 |
+ |
break |
338 |
+ |
fi |
339 |
+ |
|
340 |
+ |
fi |
341 |
+ |
|
342 |
+ |
done |
343 |
+ |
|
344 |
+ |
if test "x$CONFIG_SHELL" != x; then |
345 |
+ |
for as_var in BASH_ENV ENV |
346 |
+ |
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
347 |
+ |
done |
348 |
+ |
export CONFIG_SHELL |
349 |
+ |
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
350 |
+ |
fi |
351 |
+ |
|
352 |
+ |
|
353 |
+ |
if test $as_have_required = no; then |
354 |
+ |
echo This script requires a shell more modern than all the |
355 |
+ |
echo shells that I found on your system. Please install a |
356 |
+ |
echo modern shell, or manually run the script under such a |
357 |
+ |
echo shell if you do have one. |
358 |
+ |
{ (exit 1); exit 1; } |
359 |
+ |
fi |
360 |
+ |
|
361 |
+ |
|
362 |
+ |
fi |
363 |
+ |
|
364 |
+ |
fi |
365 |
+ |
|
366 |
+ |
|
367 |
+ |
|
368 |
+ |
(eval "as_func_return () { |
369 |
+ |
(exit \$1) |
370 |
+ |
} |
371 |
+ |
as_func_success () { |
372 |
+ |
as_func_return 0 |
373 |
+ |
} |
374 |
+ |
as_func_failure () { |
375 |
+ |
as_func_return 1 |
376 |
+ |
} |
377 |
+ |
as_func_ret_success () { |
378 |
+ |
return 0 |
379 |
+ |
} |
380 |
+ |
as_func_ret_failure () { |
381 |
+ |
return 1 |
382 |
+ |
} |
383 |
+ |
|
384 |
+ |
exitcode=0 |
385 |
+ |
if as_func_success; then |
386 |
+ |
: |
387 |
+ |
else |
388 |
+ |
exitcode=1 |
389 |
+ |
echo as_func_success failed. |
390 |
+ |
fi |
391 |
+ |
|
392 |
+ |
if as_func_failure; then |
393 |
+ |
exitcode=1 |
394 |
+ |
echo as_func_failure succeeded. |
395 |
+ |
fi |
396 |
+ |
|
397 |
+ |
if as_func_ret_success; then |
398 |
+ |
: |
399 |
+ |
else |
400 |
+ |
exitcode=1 |
401 |
+ |
echo as_func_ret_success failed. |
402 |
+ |
fi |
403 |
+ |
|
404 |
+ |
if as_func_ret_failure; then |
405 |
+ |
exitcode=1 |
406 |
+ |
echo as_func_ret_failure succeeded. |
407 |
+ |
fi |
408 |
+ |
|
409 |
+ |
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
410 |
+ |
: |
411 |
+ |
else |
412 |
+ |
exitcode=1 |
413 |
+ |
echo positional parameters were not saved. |
414 |
+ |
fi |
415 |
+ |
|
416 |
+ |
test \$exitcode = 0") || { |
417 |
+ |
echo No shell found that supports shell functions. |
418 |
+ |
echo Please tell autoconf@gnu.org about your system, |
419 |
+ |
echo including any error possibly output before this |
420 |
+ |
echo message |
421 |
+ |
} |
422 |
+ |
|
423 |
+ |
|
424 |
+ |
|
425 |
+ |
as_lineno_1=$LINENO |
426 |
+ |
as_lineno_2=$LINENO |
427 |
+ |
test "x$as_lineno_1" != "x$as_lineno_2" && |
428 |
+ |
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
429 |
+ |
|
430 |
|
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
431 |
|
# uniformly replaced by the line number. The first 'sed' inserts a |
432 |
< |
# line-number line before each line; the second 'sed' does the real |
433 |
< |
# work. The second script uses 'N' to pair each line-number line |
434 |
< |
# with the numbered line, and appends trailing '-' during |
435 |
< |
# substitution so that $LINENO is not a special case at line end. |
432 |
> |
# line-number line after each line using $LINENO; the second 'sed' |
433 |
> |
# does the real work. The second script uses 'N' to pair each |
434 |
> |
# line-number line with the line containing $LINENO, and appends |
435 |
> |
# trailing '-' during substitution so that $LINENO is not a special |
436 |
> |
# case at line end. |
437 |
|
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
438 |
< |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
439 |
< |
sed '=' <$as_myself | |
438 |
> |
# scripts with optimization help from Paolo Bonzini. Blame Lee |
439 |
> |
# E. McMahon (1931-1989) for sed's syntax. :-) |
440 |
> |
sed -n ' |
441 |
> |
p |
442 |
> |
/[$]LINENO/= |
443 |
> |
' <$as_myself | |
444 |
|
sed ' |
445 |
+ |
s/[$]LINENO.*/&-/ |
446 |
+ |
t lineno |
447 |
+ |
b |
448 |
+ |
:lineno |
449 |
|
N |
450 |
< |
s,$,-, |
451 |
< |
: loop |
171 |
< |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
450 |
> |
:loop |
451 |
> |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
452 |
|
t loop |
453 |
< |
s,-$,, |
174 |
< |
s,^['$as_cr_digits']*\n,, |
453 |
> |
s/-\n.*// |
454 |
|
' >$as_me.lineno && |
455 |
< |
chmod +x $as_me.lineno || |
455 |
> |
chmod +x "$as_me.lineno" || |
456 |
|
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
457 |
|
{ (exit 1); exit 1; }; } |
458 |
|
|
459 |
|
# Don't try to exec as it changes $[0], causing all sort of problems |
460 |
|
# (the dirname of $[0] is not the place where we might find the |
461 |
< |
# original and so on. Autoconf is especially sensible to this). |
462 |
< |
. ./$as_me.lineno |
461 |
> |
# original and so on. Autoconf is especially sensitive to this). |
462 |
> |
. "./$as_me.lineno" |
463 |
|
# Exit status is that of the last command. |
464 |
|
exit |
465 |
|
} |
466 |
|
|
467 |
|
|
468 |
< |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
469 |
< |
*c*,-n*) ECHO_N= ECHO_C=' |
470 |
< |
' ECHO_T=' ' ;; |
471 |
< |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
472 |
< |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
468 |
> |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
469 |
> |
as_dirname=dirname |
470 |
> |
else |
471 |
> |
as_dirname=false |
472 |
> |
fi |
473 |
> |
|
474 |
> |
ECHO_C= ECHO_N= ECHO_T= |
475 |
> |
case `echo -n x` in |
476 |
> |
-n*) |
477 |
> |
case `echo 'x\c'` in |
478 |
> |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
479 |
> |
*) ECHO_C='\c';; |
480 |
> |
esac;; |
481 |
> |
*) |
482 |
> |
ECHO_N='-n';; |
483 |
|
esac |
484 |
|
|
485 |
< |
if expr a : '\(a\)' >/dev/null 2>&1; then |
485 |
> |
if expr a : '\(a\)' >/dev/null 2>&1 && |
486 |
> |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
487 |
|
as_expr=expr |
488 |
|
else |
489 |
|
as_expr=false |
490 |
|
fi |
491 |
|
|
492 |
< |
rm -f conf$$ conf$$.exe conf$$.file |
492 |
> |
rm -rf conf$$ conf$$.exe conf$$.file |
493 |
> |
if test -d conf$$.dir; then |
494 |
> |
rm -rf conf$$.dir/conf$$.file |
495 |
> |
else |
496 |
> |
rm -rf conf$$.dir |
497 |
> |
mkdir conf$$.dir |
498 |
> |
fi |
499 |
|
echo >conf$$.file |
500 |
|
if ln -s conf$$.file conf$$ 2>/dev/null; then |
501 |
< |
# We could just check for DJGPP; but this test a) works b) is more generic |
502 |
< |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
503 |
< |
if test -f conf$$.exe; then |
504 |
< |
# Don't use ln at all; we don't have any links |
501 |
> |
as_ln_s='ln -s' |
502 |
> |
# ... but there are two gotchas: |
503 |
> |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
504 |
> |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
505 |
> |
# In both cases, we have to default to `cp -p'. |
506 |
> |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
507 |
|
as_ln_s='cp -p' |
210 |
– |
else |
211 |
– |
as_ln_s='ln -s' |
212 |
– |
fi |
508 |
|
elif ln conf$$.file conf$$ 2>/dev/null; then |
509 |
|
as_ln_s=ln |
510 |
|
else |
511 |
|
as_ln_s='cp -p' |
512 |
|
fi |
513 |
< |
rm -f conf$$ conf$$.exe conf$$.file |
513 |
> |
rm -rf conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
514 |
> |
rmdir conf$$.dir 2>/dev/null |
515 |
|
|
516 |
|
if mkdir -p . 2>/dev/null; then |
517 |
|
as_mkdir_p=: |
520 |
|
as_mkdir_p=false |
521 |
|
fi |
522 |
|
|
523 |
< |
as_executable_p="test -f" |
523 |
> |
if test -x / >/dev/null 2>&1; then |
524 |
> |
as_test_x='test -x' |
525 |
> |
else |
526 |
> |
if ls -dL / >/dev/null 2>&1; then |
527 |
> |
as_ls_L_option=L |
528 |
> |
else |
529 |
> |
as_ls_L_option= |
530 |
> |
fi |
531 |
> |
as_test_x=' |
532 |
> |
eval sh -c '\'' |
533 |
> |
if test -d "$1"; then |
534 |
> |
test -d "$1/."; |
535 |
> |
else |
536 |
> |
case $1 in |
537 |
> |
-*)set "./$1";; |
538 |
> |
esac; |
539 |
> |
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
540 |
> |
???[sx]*):;;*)false;;esac;fi |
541 |
> |
'\'' sh |
542 |
> |
' |
543 |
> |
fi |
544 |
> |
as_executable_p=$as_test_x |
545 |
|
|
546 |
|
# Sed expression to map a string onto a valid CPP name. |
547 |
|
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
550 |
|
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
551 |
|
|
552 |
|
|
236 |
– |
# IFS |
237 |
– |
# We need space, tab and new line, in precisely that order. |
238 |
– |
as_nl=' |
239 |
– |
' |
240 |
– |
IFS=" $as_nl" |
553 |
|
|
554 |
< |
# CDPATH. |
243 |
< |
$as_unset CDPATH |
554 |
> |
exec 7<&0 </dev/null 6>&1 |
555 |
|
|
245 |
– |
|
556 |
|
# Name of the host. |
557 |
|
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
558 |
|
# so uname gets run too. |
559 |
|
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
560 |
|
|
251 |
– |
exec 6>&1 |
252 |
– |
|
561 |
|
# |
562 |
|
# Initializations. |
563 |
|
# |
564 |
|
ac_default_prefix=/usr/local |
565 |
+ |
ac_clean_files= |
566 |
|
ac_config_libobj_dir=. |
567 |
+ |
LIBOBJS= |
568 |
|
cross_compiling=no |
569 |
|
subdirs= |
570 |
|
MFLAGS= |
571 |
|
MAKEFLAGS= |
572 |
|
SHELL=${CONFIG_SHELL-/bin/sh} |
573 |
|
|
264 |
– |
# Maximum number of lines to put in a shell here document. |
265 |
– |
# This variable seems obsolete. It should probably be removed, and |
266 |
– |
# only ac_max_sed_lines should be used. |
267 |
– |
: ${ac_max_here_lines=38} |
268 |
– |
|
574 |
|
# Identity of this package. |
575 |
|
PACKAGE_NAME='OOPSE' |
576 |
|
PACKAGE_TARNAME='oopse' |
577 |
< |
PACKAGE_VERSION='1.0' |
578 |
< |
PACKAGE_STRING='OOPSE 1.0' |
577 |
> |
PACKAGE_VERSION='3.0' |
578 |
> |
PACKAGE_STRING='OOPSE 3.0' |
579 |
|
PACKAGE_BUGREPORT='gezelter@nd.edu' |
580 |
|
|
581 |
< |
ac_unique_file="src/oopse.cpp" |
581 |
> |
ac_unique_file="src/applications/oopse/oopse.cpp" |
582 |
|
ac_default_prefix="/usr/local" |
583 |
|
# Factoring default headers for most tests. |
584 |
|
ac_includes_default="\ |
585 |
|
#include <stdio.h> |
586 |
< |
#if HAVE_SYS_TYPES_H |
586 |
> |
#ifdef HAVE_SYS_TYPES_H |
587 |
|
# include <sys/types.h> |
588 |
|
#endif |
589 |
< |
#if HAVE_SYS_STAT_H |
589 |
> |
#ifdef HAVE_SYS_STAT_H |
590 |
|
# include <sys/stat.h> |
591 |
|
#endif |
592 |
< |
#if STDC_HEADERS |
592 |
> |
#ifdef STDC_HEADERS |
593 |
|
# include <stdlib.h> |
594 |
|
# include <stddef.h> |
595 |
|
#else |
596 |
< |
# if HAVE_STDLIB_H |
596 |
> |
# ifdef HAVE_STDLIB_H |
597 |
|
# include <stdlib.h> |
598 |
|
# endif |
599 |
|
#endif |
600 |
< |
#if HAVE_STRING_H |
601 |
< |
# if !STDC_HEADERS && HAVE_MEMORY_H |
600 |
> |
#ifdef HAVE_STRING_H |
601 |
> |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
602 |
|
# include <memory.h> |
603 |
|
# endif |
604 |
|
# include <string.h> |
605 |
|
#endif |
606 |
< |
#if HAVE_STRINGS_H |
606 |
> |
#ifdef HAVE_STRINGS_H |
607 |
|
# include <strings.h> |
608 |
|
#endif |
609 |
< |
#if HAVE_INTTYPES_H |
609 |
> |
#ifdef HAVE_INTTYPES_H |
610 |
|
# include <inttypes.h> |
306 |
– |
#else |
307 |
– |
# if HAVE_STDINT_H |
308 |
– |
# include <stdint.h> |
309 |
– |
# endif |
611 |
|
#endif |
612 |
< |
#if HAVE_UNISTD_H |
612 |
> |
#ifdef HAVE_STDINT_H |
613 |
> |
# include <stdint.h> |
614 |
> |
#endif |
615 |
> |
#ifdef HAVE_UNISTD_H |
616 |
|
# include <unistd.h> |
617 |
|
#endif" |
618 |
|
|
619 |
< |
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 PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC CPP EGREP LIBOBJS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI SPRNG_LIB_DIR SPRNG_INC_DIR SPRNG_LIB USE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LTLIBOBJS' |
619 |
> |
ac_subst_vars='SHELL |
620 |
> |
PATH_SEPARATOR |
621 |
> |
PACKAGE_NAME |
622 |
> |
PACKAGE_TARNAME |
623 |
> |
PACKAGE_VERSION |
624 |
> |
PACKAGE_STRING |
625 |
> |
PACKAGE_BUGREPORT |
626 |
> |
exec_prefix |
627 |
> |
prefix |
628 |
> |
program_transform_name |
629 |
> |
bindir |
630 |
> |
sbindir |
631 |
> |
libexecdir |
632 |
> |
datarootdir |
633 |
> |
datadir |
634 |
> |
sysconfdir |
635 |
> |
sharedstatedir |
636 |
> |
localstatedir |
637 |
> |
includedir |
638 |
> |
oldincludedir |
639 |
> |
docdir |
640 |
> |
infodir |
641 |
> |
htmldir |
642 |
> |
dvidir |
643 |
> |
pdfdir |
644 |
> |
psdir |
645 |
> |
libdir |
646 |
> |
localedir |
647 |
> |
mandir |
648 |
> |
DEFS |
649 |
> |
ECHO_C |
650 |
> |
ECHO_N |
651 |
> |
ECHO_T |
652 |
> |
LIBS |
653 |
> |
build_alias |
654 |
> |
host_alias |
655 |
> |
target_alias |
656 |
> |
build |
657 |
> |
build_cpu |
658 |
> |
build_vendor |
659 |
> |
build_os |
660 |
> |
host |
661 |
> |
host_cpu |
662 |
> |
host_vendor |
663 |
> |
host_os |
664 |
> |
PROGNAME |
665 |
> |
debug |
666 |
> |
USE_SINGLE_PRECISION |
667 |
> |
CXX |
668 |
> |
CXXFLAGS |
669 |
> |
LDFLAGS |
670 |
> |
CPPFLAGS |
671 |
> |
ac_ct_CXX |
672 |
> |
EXEEXT |
673 |
> |
OBJEXT |
674 |
> |
CC |
675 |
> |
CFLAGS |
676 |
> |
ac_ct_CC |
677 |
> |
FC |
678 |
> |
FCFLAGS |
679 |
> |
ac_ct_FC |
680 |
> |
CPP |
681 |
> |
GREP |
682 |
> |
EGREP |
683 |
> |
LN_S |
684 |
> |
SET_MAKE |
685 |
> |
RANLIB |
686 |
> |
PERLINTERP |
687 |
> |
PERL_SHEBANG |
688 |
> |
INSTALL_PROGRAM |
689 |
> |
INSTALL_SCRIPT |
690 |
> |
INSTALL_DATA |
691 |
> |
AR |
692 |
> |
PS |
693 |
> |
FCFLAGS_F90 |
694 |
> |
FCFLAGS_SRCEXT |
695 |
> |
PREPDEFFLAG |
696 |
> |
FCLIBS |
697 |
> |
FC_FUNC |
698 |
> |
FC_FUNC_ |
699 |
> |
MOD |
700 |
> |
F90_WORK_FILES_ARG |
701 |
> |
MODDIRFLAG |
702 |
> |
F90MODINCSPEC |
703 |
> |
F90_MODULE_NAMES |
704 |
> |
ZLIB_INC_DIR |
705 |
> |
ZLIB_LIB_DIR |
706 |
> |
ZLIB |
707 |
> |
FFTW_INC_DIR |
708 |
> |
FFTW_LIB_DIR |
709 |
> |
FFTW_LIBS |
710 |
> |
LIBOBJS |
711 |
> |
POW_LIB |
712 |
> |
CXXCPP |
713 |
> |
__func__ |
714 |
> |
MPI_LIB_DIR |
715 |
> |
MPI_INC_DIR |
716 |
> |
MPI_F90_INC |
717 |
> |
MPI_LIB |
718 |
> |
MPI_F90_LIB |
719 |
> |
USE_MPI |
720 |
> |
DOXYGEN |
721 |
> |
DOT |
722 |
> |
DOC |
723 |
> |
enable_dot |
724 |
> |
enable_html_docs |
725 |
> |
enable_latex_docs |
726 |
> |
BATEXT |
727 |
> |
MKINSTALLDIRS |
728 |
> |
OOPSE |
729 |
> |
OOPSE_HOME |
730 |
> |
SUBDIRS |
731 |
> |
LTLIBOBJS' |
732 |
|
ac_subst_files='' |
733 |
+ |
ac_precious_vars='build_alias |
734 |
+ |
host_alias |
735 |
+ |
target_alias |
736 |
+ |
CXX |
737 |
+ |
CXXFLAGS |
738 |
+ |
LDFLAGS |
739 |
+ |
LIBS |
740 |
+ |
CPPFLAGS |
741 |
+ |
CCC |
742 |
+ |
CC |
743 |
+ |
CFLAGS |
744 |
+ |
FC |
745 |
+ |
FCFLAGS |
746 |
+ |
CPP |
747 |
+ |
CXXCPP' |
748 |
|
|
749 |
+ |
|
750 |
|
# Initialize some variables set by options. |
751 |
|
ac_init_help= |
752 |
|
ac_init_version=false |
772 |
|
# and all the variables that are supposed to be based on exec_prefix |
773 |
|
# by default will actually change. |
774 |
|
# Use braces instead of parens because sh, perl, etc. also accept them. |
775 |
+ |
# (The list follows the same order as the GNU Coding Standards.) |
776 |
|
bindir='${exec_prefix}/bin' |
777 |
|
sbindir='${exec_prefix}/sbin' |
778 |
|
libexecdir='${exec_prefix}/libexec' |
779 |
< |
datadir='${prefix}/share' |
779 |
> |
datarootdir='${prefix}/share' |
780 |
> |
datadir='${datarootdir}' |
781 |
|
sysconfdir='${prefix}/etc' |
782 |
|
sharedstatedir='${prefix}/com' |
783 |
|
localstatedir='${prefix}/var' |
350 |
– |
libdir='${exec_prefix}/lib' |
784 |
|
includedir='${prefix}/include' |
785 |
|
oldincludedir='/usr/include' |
786 |
< |
infodir='${prefix}/info' |
787 |
< |
mandir='${prefix}/man' |
786 |
> |
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
787 |
> |
infodir='${datarootdir}/info' |
788 |
> |
htmldir='${docdir}' |
789 |
> |
dvidir='${docdir}' |
790 |
> |
pdfdir='${docdir}' |
791 |
> |
psdir='${docdir}' |
792 |
> |
libdir='${exec_prefix}/lib' |
793 |
> |
localedir='${datarootdir}/locale' |
794 |
> |
mandir='${datarootdir}/man' |
795 |
|
|
796 |
|
ac_prev= |
797 |
+ |
ac_dashdash= |
798 |
|
for ac_option |
799 |
|
do |
800 |
|
# If the previous option needs an argument, assign it. |
801 |
|
if test -n "$ac_prev"; then |
802 |
< |
eval "$ac_prev=\$ac_option" |
802 |
> |
eval $ac_prev=\$ac_option |
803 |
|
ac_prev= |
804 |
|
continue |
805 |
|
fi |
806 |
|
|
807 |
< |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
807 |
> |
case $ac_option in |
808 |
> |
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
809 |
> |
*) ac_optarg=yes ;; |
810 |
> |
esac |
811 |
|
|
812 |
|
# Accept the important Cygnus configure options, so we can diagnose typos. |
813 |
|
|
814 |
< |
case $ac_option in |
814 |
> |
case $ac_dashdash$ac_option in |
815 |
> |
--) |
816 |
> |
ac_dashdash=yes ;; |
817 |
|
|
818 |
|
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
819 |
|
ac_prev=bindir ;; |
835 |
|
--config-cache | -C) |
836 |
|
cache_file=config.cache ;; |
837 |
|
|
838 |
< |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
838 |
> |
-datadir | --datadir | --datadi | --datad) |
839 |
|
ac_prev=datadir ;; |
840 |
< |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
395 |
< |
| --da=*) |
840 |
> |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
841 |
|
datadir=$ac_optarg ;; |
842 |
|
|
843 |
+ |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
844 |
+ |
| --dataroo | --dataro | --datar) |
845 |
+ |
ac_prev=datarootdir ;; |
846 |
+ |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
847 |
+ |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
848 |
+ |
datarootdir=$ac_optarg ;; |
849 |
+ |
|
850 |
|
-disable-* | --disable-*) |
851 |
|
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
852 |
|
# Reject names that are not valid shell variable names. |
853 |
< |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
853 |
> |
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
854 |
|
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
855 |
|
{ (exit 1); exit 1; }; } |
856 |
< |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
857 |
< |
eval "enable_$ac_feature=no" ;; |
856 |
> |
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
857 |
> |
eval enable_$ac_feature=no ;; |
858 |
|
|
859 |
+ |
-docdir | --docdir | --docdi | --doc | --do) |
860 |
+ |
ac_prev=docdir ;; |
861 |
+ |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
862 |
+ |
docdir=$ac_optarg ;; |
863 |
+ |
|
864 |
+ |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
865 |
+ |
ac_prev=dvidir ;; |
866 |
+ |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
867 |
+ |
dvidir=$ac_optarg ;; |
868 |
+ |
|
869 |
|
-enable-* | --enable-*) |
870 |
|
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
871 |
|
# Reject names that are not valid shell variable names. |
872 |
< |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
872 |
> |
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
873 |
|
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
874 |
|
{ (exit 1); exit 1; }; } |
875 |
< |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
876 |
< |
case $ac_option in |
415 |
< |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
416 |
< |
*) ac_optarg=yes ;; |
417 |
< |
esac |
418 |
< |
eval "enable_$ac_feature='$ac_optarg'" ;; |
875 |
> |
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
876 |
> |
eval enable_$ac_feature=\$ac_optarg ;; |
877 |
|
|
878 |
|
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
879 |
|
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
899 |
|
ac_prev=host_alias ;; |
900 |
|
-host=* | --host=* | --hos=* | --ho=*) |
901 |
|
host_alias=$ac_optarg ;; |
902 |
+ |
|
903 |
+ |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
904 |
+ |
ac_prev=htmldir ;; |
905 |
+ |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
906 |
+ |
| --ht=*) |
907 |
+ |
htmldir=$ac_optarg ;; |
908 |
|
|
909 |
|
-includedir | --includedir | --includedi | --included | --include \ |
910 |
|
| --includ | --inclu | --incl | --inc) |
930 |
|
| --libexe=* | --libex=* | --libe=*) |
931 |
|
libexecdir=$ac_optarg ;; |
932 |
|
|
933 |
+ |
-localedir | --localedir | --localedi | --localed | --locale) |
934 |
+ |
ac_prev=localedir ;; |
935 |
+ |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
936 |
+ |
localedir=$ac_optarg ;; |
937 |
+ |
|
938 |
|
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
939 |
< |
| --localstate | --localstat | --localsta | --localst \ |
471 |
< |
| --locals | --local | --loca | --loc | --lo) |
939 |
> |
| --localstate | --localstat | --localsta | --localst | --locals) |
940 |
|
ac_prev=localstatedir ;; |
941 |
|
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
942 |
< |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
475 |
< |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
942 |
> |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
943 |
|
localstatedir=$ac_optarg ;; |
944 |
|
|
945 |
|
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1004 |
|
| --progr-tra=* | --program-tr=* | --program-t=*) |
1005 |
|
program_transform_name=$ac_optarg ;; |
1006 |
|
|
1007 |
+ |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1008 |
+ |
ac_prev=pdfdir ;; |
1009 |
+ |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1010 |
+ |
pdfdir=$ac_optarg ;; |
1011 |
+ |
|
1012 |
+ |
-psdir | --psdir | --psdi | --psd | --ps) |
1013 |
+ |
ac_prev=psdir ;; |
1014 |
+ |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1015 |
+ |
psdir=$ac_optarg ;; |
1016 |
+ |
|
1017 |
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1018 |
|
| -silent | --silent | --silen | --sile | --sil) |
1019 |
|
silent=yes ;; |
1066 |
|
-with-* | --with-*) |
1067 |
|
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1068 |
|
# Reject names that are not valid shell variable names. |
1069 |
< |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1069 |
> |
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1070 |
|
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
1071 |
|
{ (exit 1); exit 1; }; } |
1072 |
< |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
1073 |
< |
case $ac_option in |
597 |
< |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
598 |
< |
*) ac_optarg=yes ;; |
599 |
< |
esac |
600 |
< |
eval "with_$ac_package='$ac_optarg'" ;; |
1072 |
> |
ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1073 |
> |
eval with_$ac_package=\$ac_optarg ;; |
1074 |
|
|
1075 |
|
-without-* | --without-*) |
1076 |
|
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1077 |
|
# Reject names that are not valid shell variable names. |
1078 |
< |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1078 |
> |
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1079 |
|
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
1080 |
|
{ (exit 1); exit 1; }; } |
1081 |
< |
ac_package=`echo $ac_package | sed 's/-/_/g'` |
1082 |
< |
eval "with_$ac_package=no" ;; |
1081 |
> |
ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1082 |
> |
eval with_$ac_package=no ;; |
1083 |
|
|
1084 |
|
--x) |
1085 |
|
# Obsolete; use --with-x. |
1110 |
|
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1111 |
|
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1112 |
|
{ (exit 1); exit 1; }; } |
1113 |
< |
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
641 |
< |
eval "$ac_envvar='$ac_optarg'" |
1113 |
> |
eval $ac_envvar=\$ac_optarg |
1114 |
|
export $ac_envvar ;; |
1115 |
|
|
1116 |
|
*) |
1130 |
|
{ (exit 1); exit 1; }; } |
1131 |
|
fi |
1132 |
|
|
1133 |
< |
# Be sure to have absolute paths. |
1134 |
< |
for ac_var in exec_prefix prefix |
1133 |
> |
# Be sure to have absolute directory names. |
1134 |
> |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1135 |
> |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
1136 |
> |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1137 |
> |
libdir localedir mandir |
1138 |
|
do |
1139 |
< |
eval ac_val=$`echo $ac_var` |
1139 |
> |
eval ac_val=\$$ac_var |
1140 |
|
case $ac_val in |
1141 |
< |
[\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
1142 |
< |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
668 |
< |
{ (exit 1); exit 1; }; };; |
1141 |
> |
[\\/$]* | ?:[\\/]* ) continue;; |
1142 |
> |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1143 |
|
esac |
1144 |
< |
done |
1145 |
< |
|
672 |
< |
# Be sure to have absolute paths. |
673 |
< |
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
674 |
< |
localstatedir libdir includedir oldincludedir infodir mandir |
675 |
< |
do |
676 |
< |
eval ac_val=$`echo $ac_var` |
677 |
< |
case $ac_val in |
678 |
< |
[\\/$]* | ?:[\\/]* ) ;; |
679 |
< |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
680 |
< |
{ (exit 1); exit 1; }; };; |
681 |
< |
esac |
1144 |
> |
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1145 |
> |
{ (exit 1); exit 1; }; } |
1146 |
|
done |
1147 |
|
|
1148 |
|
# There might be people who depend on the old broken behavior: `$host' |
1169 |
|
test "$silent" = yes && exec 6>/dev/null |
1170 |
|
|
1171 |
|
|
1172 |
+ |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
1173 |
+ |
ac_ls_di=`ls -di .` && |
1174 |
+ |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1175 |
+ |
{ echo "$as_me: error: Working directory cannot be determined" >&2 |
1176 |
+ |
{ (exit 1); exit 1; }; } |
1177 |
+ |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1178 |
+ |
{ echo "$as_me: error: pwd does not report name of working directory" >&2 |
1179 |
+ |
{ (exit 1); exit 1; }; } |
1180 |
+ |
|
1181 |
+ |
|
1182 |
|
# Find the source files, if location was not specified. |
1183 |
|
if test -z "$srcdir"; then |
1184 |
|
ac_srcdir_defaulted=yes |
1185 |
< |
# Try the directory containing this script, then its parent. |
1186 |
< |
ac_confdir=`(dirname "$0") 2>/dev/null || |
1185 |
> |
# Try the directory containing this script, then the parent directory. |
1186 |
> |
ac_confdir=`$as_dirname -- "$0" || |
1187 |
|
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1188 |
|
X"$0" : 'X\(//\)[^/]' \| \ |
1189 |
|
X"$0" : 'X\(//\)$' \| \ |
1190 |
< |
X"$0" : 'X\(/\)' \| \ |
717 |
< |
. : '\(.\)' 2>/dev/null || |
1190 |
> |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1191 |
|
echo X"$0" | |
1192 |
< |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
1193 |
< |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
1194 |
< |
/^X\(\/\/\)$/{ s//\1/; q; } |
1195 |
< |
/^X\(\/\).*/{ s//\1/; q; } |
1196 |
< |
s/.*/./; q'` |
1192 |
> |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1193 |
> |
s//\1/ |
1194 |
> |
q |
1195 |
> |
} |
1196 |
> |
/^X\(\/\/\)[^/].*/{ |
1197 |
> |
s//\1/ |
1198 |
> |
q |
1199 |
> |
} |
1200 |
> |
/^X\(\/\/\)$/{ |
1201 |
> |
s//\1/ |
1202 |
> |
q |
1203 |
> |
} |
1204 |
> |
/^X\(\/\).*/{ |
1205 |
> |
s//\1/ |
1206 |
> |
q |
1207 |
> |
} |
1208 |
> |
s/.*/./; q'` |
1209 |
|
srcdir=$ac_confdir |
1210 |
< |
if test ! -r $srcdir/$ac_unique_file; then |
1210 |
> |
if test ! -r "$srcdir/$ac_unique_file"; then |
1211 |
|
srcdir=.. |
1212 |
|
fi |
1213 |
|
else |
1214 |
|
ac_srcdir_defaulted=no |
1215 |
|
fi |
1216 |
< |
if test ! -r $srcdir/$ac_unique_file; then |
1217 |
< |
if test "$ac_srcdir_defaulted" = yes; then |
1218 |
< |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
1216 |
> |
if test ! -r "$srcdir/$ac_unique_file"; then |
1217 |
> |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1218 |
> |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
1219 |
|
{ (exit 1); exit 1; }; } |
1220 |
< |
else |
1221 |
< |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
1220 |
> |
fi |
1221 |
> |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1222 |
> |
ac_abs_confdir=`( |
1223 |
> |
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
1224 |
|
{ (exit 1); exit 1; }; } |
1225 |
< |
fi |
1225 |
> |
pwd)` |
1226 |
> |
# When building in place, set srcdir=. |
1227 |
> |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
1228 |
> |
srcdir=. |
1229 |
|
fi |
1230 |
< |
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
1231 |
< |
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
1232 |
< |
{ (exit 1); exit 1; }; } |
1233 |
< |
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
1234 |
< |
ac_env_build_alias_set=${build_alias+set} |
1235 |
< |
ac_env_build_alias_value=$build_alias |
1236 |
< |
ac_cv_env_build_alias_set=${build_alias+set} |
1237 |
< |
ac_cv_env_build_alias_value=$build_alias |
1238 |
< |
ac_env_host_alias_set=${host_alias+set} |
1239 |
< |
ac_env_host_alias_value=$host_alias |
1240 |
< |
ac_cv_env_host_alias_set=${host_alias+set} |
1241 |
< |
ac_cv_env_host_alias_value=$host_alias |
752 |
< |
ac_env_target_alias_set=${target_alias+set} |
753 |
< |
ac_env_target_alias_value=$target_alias |
754 |
< |
ac_cv_env_target_alias_set=${target_alias+set} |
755 |
< |
ac_cv_env_target_alias_value=$target_alias |
756 |
< |
ac_env_CC_set=${CC+set} |
757 |
< |
ac_env_CC_value=$CC |
758 |
< |
ac_cv_env_CC_set=${CC+set} |
759 |
< |
ac_cv_env_CC_value=$CC |
760 |
< |
ac_env_CFLAGS_set=${CFLAGS+set} |
761 |
< |
ac_env_CFLAGS_value=$CFLAGS |
762 |
< |
ac_cv_env_CFLAGS_set=${CFLAGS+set} |
763 |
< |
ac_cv_env_CFLAGS_value=$CFLAGS |
764 |
< |
ac_env_LDFLAGS_set=${LDFLAGS+set} |
765 |
< |
ac_env_LDFLAGS_value=$LDFLAGS |
766 |
< |
ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
767 |
< |
ac_cv_env_LDFLAGS_value=$LDFLAGS |
768 |
< |
ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
769 |
< |
ac_env_CPPFLAGS_value=$CPPFLAGS |
770 |
< |
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
771 |
< |
ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
772 |
< |
ac_env_CXX_set=${CXX+set} |
773 |
< |
ac_env_CXX_value=$CXX |
774 |
< |
ac_cv_env_CXX_set=${CXX+set} |
775 |
< |
ac_cv_env_CXX_value=$CXX |
776 |
< |
ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
777 |
< |
ac_env_CXXFLAGS_value=$CXXFLAGS |
778 |
< |
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
779 |
< |
ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
780 |
< |
ac_env_F90_set=${F90+set} |
781 |
< |
ac_env_F90_value=$F90 |
782 |
< |
ac_cv_env_F90_set=${F90+set} |
783 |
< |
ac_cv_env_F90_value=$F90 |
784 |
< |
ac_env_F90FLAGS_set=${F90FLAGS+set} |
785 |
< |
ac_env_F90FLAGS_value=$F90FLAGS |
786 |
< |
ac_cv_env_F90FLAGS_set=${F90FLAGS+set} |
787 |
< |
ac_cv_env_F90FLAGS_value=$F90FLAGS |
788 |
< |
ac_env_CPP_set=${CPP+set} |
789 |
< |
ac_env_CPP_value=$CPP |
790 |
< |
ac_cv_env_CPP_set=${CPP+set} |
791 |
< |
ac_cv_env_CPP_value=$CPP |
1230 |
> |
# Remove unnecessary trailing slashes from srcdir. |
1231 |
> |
# Double slashes in file names in object file debugging info |
1232 |
> |
# mess up M-x gdb in Emacs. |
1233 |
> |
case $srcdir in |
1234 |
> |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1235 |
> |
esac |
1236 |
> |
for ac_var in $ac_precious_vars; do |
1237 |
> |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1238 |
> |
eval ac_env_${ac_var}_value=\$${ac_var} |
1239 |
> |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1240 |
> |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1241 |
> |
done |
1242 |
|
|
1243 |
|
# |
1244 |
|
# Report the --help message. |
1247 |
|
# Omit some internal or obsolete options to make the list less imposing. |
1248 |
|
# This message is too long to be a string in the A/UX 3.1 sh. |
1249 |
|
cat <<_ACEOF |
1250 |
< |
\`configure' configures OOPSE 1.0 to adapt to many kinds of systems. |
1250 |
> |
\`configure' configures OOPSE 3.0 to adapt to many kinds of systems. |
1251 |
|
|
1252 |
|
Usage: $0 [OPTION]... [VAR=VALUE]... |
1253 |
|
|
1267 |
|
-n, --no-create do not create output files |
1268 |
|
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1269 |
|
|
820 |
– |
_ACEOF |
821 |
– |
|
822 |
– |
cat <<_ACEOF |
1270 |
|
Installation directories: |
1271 |
|
--prefix=PREFIX install architecture-independent files in PREFIX |
1272 |
|
[$ac_default_prefix] |
1284 |
|
--bindir=DIR user executables [EPREFIX/bin] |
1285 |
|
--sbindir=DIR system admin executables [EPREFIX/sbin] |
1286 |
|
--libexecdir=DIR program executables [EPREFIX/libexec] |
840 |
– |
--datadir=DIR read-only architecture-independent data [PREFIX/share] |
1287 |
|
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1288 |
|
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1289 |
|
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1290 |
|
--libdir=DIR object code libraries [EPREFIX/lib] |
1291 |
|
--includedir=DIR C header files [PREFIX/include] |
1292 |
|
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
1293 |
< |
--infodir=DIR info documentation [PREFIX/info] |
1294 |
< |
--mandir=DIR man documentation [PREFIX/man] |
1293 |
> |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1294 |
> |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1295 |
> |
--infodir=DIR info documentation [DATAROOTDIR/info] |
1296 |
> |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1297 |
> |
--mandir=DIR man documentation [DATAROOTDIR/man] |
1298 |
> |
--docdir=DIR documentation root [DATAROOTDIR/doc/oopse] |
1299 |
> |
--htmldir=DIR html documentation [DOCDIR] |
1300 |
> |
--dvidir=DIR dvi documentation [DOCDIR] |
1301 |
> |
--pdfdir=DIR pdf documentation [DOCDIR] |
1302 |
> |
--psdir=DIR ps documentation [DOCDIR] |
1303 |
|
_ACEOF |
1304 |
|
|
1305 |
|
cat <<\_ACEOF |
1312 |
|
|
1313 |
|
if test -n "$ac_init_help"; then |
1314 |
|
case $ac_init_help in |
1315 |
< |
short | recursive ) echo "Configuration of OOPSE 1.0:";; |
1315 |
> |
short | recursive ) echo "Configuration of OOPSE 3.0:";; |
1316 |
|
esac |
1317 |
|
cat <<\_ACEOF |
1318 |
|
|
1319 |
|
Optional Features: |
1320 |
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1321 |
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
868 |
– |
--enable-debug Compile OOPSE in debug mode |
1322 |
|
--enable-oopse-home=DIR define oopse home dir PREFIX/oopse |
1323 |
+ |
--enable-debug Compile OOPSE in debug mode |
1324 |
+ |
--enable-single compile OOPSE in single precision |
1325 |
+ |
--enable-float synonym for --enable-single |
1326 |
+ |
--enable-doxygen enable documentation generation with doxygen (auto) |
1327 |
+ |
--enable-dot use 'dot' to generate graphs in doxygen (auto) |
1328 |
+ |
--enable-html-docs enable HTML generation with doxygen (yes) |
1329 |
+ |
--enable-latex-docs enable LaTeX documentation generation with doxygen (no) |
1330 |
|
|
1331 |
|
Optional Packages: |
1332 |
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1333 |
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1334 |
+ |
--with-perl-shebang override what perl thinks is the way for the kernel |
1335 |
+ |
to start it (seldom needed) |
1336 |
+ |
--with-zlib=DIR root directory path of zlib installation (defaults |
1337 |
+ |
to /usr/local or /usr if not found in /usr/local) |
1338 |
+ |
--with-fftw=DIR root directory path of fftw installation (defaults |
1339 |
+ |
to /usr/local or /usr if not found in /usr/local) |
1340 |
|
--with-mpi=<prefix> compile with MPI installed in <prefix> [default=no] |
875 |
– |
--with-sprng=<prefix> compile with SPRNG installed in <prefix> |
876 |
– |
[default=/usr/local] |
877 |
– |
--with-mkl Do we want MKL will check /usr/local/intel/mkl61 /opt/intel/mkl61 |
1341 |
|
|
1342 |
|
Some influential environment variables: |
880 |
– |
CC C compiler command |
881 |
– |
CFLAGS C compiler flags |
882 |
– |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
883 |
– |
nonstandard directory <lib dir> |
884 |
– |
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
885 |
– |
headers in a nonstandard directory <include dir> |
1343 |
|
CXX C++ compiler command |
1344 |
|
CXXFLAGS C++ compiler flags |
1345 |
< |
F90 Fortran 90 compiler command |
1346 |
< |
F90FLAGS Fortran 90 compiler flags |
1347 |
< |
CPP C preprocessor |
1348 |
< |
|
1345 |
> |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1346 |
> |
nonstandard directory <lib dir> |
1347 |
> |
LIBS libraries to pass to the linker, e.g. -l<library> |
1348 |
> |
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1349 |
> |
you have headers in a nonstandard directory <include dir> |
1350 |
> |
CC C compiler command |
1351 |
> |
CFLAGS C compiler flags |
1352 |
> |
FC Fortran compiler command |
1353 |
> |
FCFLAGS Fortran compiler flags |
1354 |
> |
CPP C preprocessor |
1355 |
> |
CXXCPP C++ preprocessor |
1356 |
> |
|
1357 |
|
Use these variables to override the choices made by `configure' or to help |
1358 |
|
it to find libraries and programs with nonstandard names/locations. |
1359 |
|
|
1360 |
|
Report bugs to <gezelter@nd.edu>. |
1361 |
|
_ACEOF |
1362 |
+ |
ac_status=$? |
1363 |
|
fi |
1364 |
|
|
1365 |
|
if test "$ac_init_help" = "recursive"; then |
1366 |
|
# If there are subdirs, report their specific --help. |
901 |
– |
ac_popdir=`pwd` |
1367 |
|
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1368 |
< |
test -d $ac_dir || continue |
1368 |
> |
test -d "$ac_dir" || continue |
1369 |
|
ac_builddir=. |
1370 |
|
|
1371 |
< |
if test "$ac_dir" != .; then |
1371 |
> |
case "$ac_dir" in |
1372 |
> |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1373 |
> |
*) |
1374 |
|
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1375 |
< |
# A "../" for each directory in $ac_dir_suffix. |
1376 |
< |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
1377 |
< |
else |
1378 |
< |
ac_dir_suffix= ac_top_builddir= |
1379 |
< |
fi |
1375 |
> |
# A ".." for each directory in $ac_dir_suffix. |
1376 |
> |
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
1377 |
> |
case $ac_top_builddir_sub in |
1378 |
> |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1379 |
> |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1380 |
> |
esac ;; |
1381 |
> |
esac |
1382 |
> |
ac_abs_top_builddir=$ac_pwd |
1383 |
> |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1384 |
> |
# for backward compatibility: |
1385 |
> |
ac_top_builddir=$ac_top_build_prefix |
1386 |
|
|
1387 |
|
case $srcdir in |
1388 |
< |
.) # No --srcdir option. We are building in place. |
1388 |
> |
.) # We are building in place. |
1389 |
|
ac_srcdir=. |
1390 |
< |
if test -z "$ac_top_builddir"; then |
1391 |
< |
ac_top_srcdir=. |
1392 |
< |
else |
920 |
< |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
921 |
< |
fi ;; |
922 |
< |
[\\/]* | ?:[\\/]* ) # Absolute path. |
1390 |
> |
ac_top_srcdir=$ac_top_builddir_sub |
1391 |
> |
ac_abs_top_srcdir=$ac_pwd ;; |
1392 |
> |
[\\/]* | ?:[\\/]* ) # Absolute name. |
1393 |
|
ac_srcdir=$srcdir$ac_dir_suffix; |
1394 |
< |
ac_top_srcdir=$srcdir ;; |
1395 |
< |
*) # Relative path. |
1396 |
< |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
1397 |
< |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
1394 |
> |
ac_top_srcdir=$srcdir |
1395 |
> |
ac_abs_top_srcdir=$srcdir ;; |
1396 |
> |
*) # Relative name. |
1397 |
> |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1398 |
> |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
1399 |
> |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1400 |
|
esac |
1401 |
+ |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1402 |
|
|
1403 |
< |
# Do not use `cd foo && pwd` to compute absolute paths, because |
1404 |
< |
# the directories may not exist. |
1405 |
< |
case `pwd` in |
1406 |
< |
.) ac_abs_builddir="$ac_dir";; |
1407 |
< |
*) |
1408 |
< |
case "$ac_dir" in |
1409 |
< |
.) ac_abs_builddir=`pwd`;; |
1410 |
< |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
938 |
< |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
939 |
< |
esac;; |
940 |
< |
esac |
941 |
< |
case $ac_abs_builddir in |
942 |
< |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
943 |
< |
*) |
944 |
< |
case ${ac_top_builddir}. in |
945 |
< |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
946 |
< |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
947 |
< |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
948 |
< |
esac;; |
949 |
< |
esac |
950 |
< |
case $ac_abs_builddir in |
951 |
< |
.) ac_abs_srcdir=$ac_srcdir;; |
952 |
< |
*) |
953 |
< |
case $ac_srcdir in |
954 |
< |
.) ac_abs_srcdir=$ac_abs_builddir;; |
955 |
< |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
956 |
< |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
957 |
< |
esac;; |
958 |
< |
esac |
959 |
< |
case $ac_abs_builddir in |
960 |
< |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
961 |
< |
*) |
962 |
< |
case $ac_top_srcdir in |
963 |
< |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
964 |
< |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
965 |
< |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
966 |
< |
esac;; |
967 |
< |
esac |
968 |
< |
|
969 |
< |
cd $ac_dir |
970 |
< |
# Check for guested configure; otherwise get Cygnus style configure. |
971 |
< |
if test -f $ac_srcdir/configure.gnu; then |
972 |
< |
echo |
973 |
< |
$SHELL $ac_srcdir/configure.gnu --help=recursive |
974 |
< |
elif test -f $ac_srcdir/configure; then |
975 |
< |
echo |
976 |
< |
$SHELL $ac_srcdir/configure --help=recursive |
977 |
< |
elif test -f $ac_srcdir/configure.ac || |
978 |
< |
test -f $ac_srcdir/configure.in; then |
979 |
< |
echo |
980 |
< |
$ac_configure --help |
1403 |
> |
cd "$ac_dir" || { ac_status=$?; continue; } |
1404 |
> |
# Check for guested configure. |
1405 |
> |
if test -f "$ac_srcdir/configure.gnu"; then |
1406 |
> |
echo && |
1407 |
> |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1408 |
> |
elif test -f "$ac_srcdir/configure"; then |
1409 |
> |
echo && |
1410 |
> |
$SHELL "$ac_srcdir/configure" --help=recursive |
1411 |
|
else |
1412 |
|
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1413 |
< |
fi |
1414 |
< |
cd $ac_popdir |
1413 |
> |
fi || ac_status=$? |
1414 |
> |
cd "$ac_pwd" || { ac_status=$?; break; } |
1415 |
|
done |
1416 |
|
fi |
1417 |
|
|
1418 |
< |
test -n "$ac_init_help" && exit 0 |
1418 |
> |
test -n "$ac_init_help" && exit $ac_status |
1419 |
|
if $ac_init_version; then |
1420 |
|
cat <<\_ACEOF |
1421 |
< |
OOPSE configure 1.0 |
1422 |
< |
generated by GNU Autoconf 2.59 |
1421 |
> |
OOPSE configure 3.0 |
1422 |
> |
generated by GNU Autoconf 2.61 |
1423 |
|
|
1424 |
< |
Copyright (C) 2003 Free Software Foundation, Inc. |
1424 |
> |
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1425 |
> |
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
1426 |
|
This configure script is free software; the Free Software Foundation |
1427 |
|
gives unlimited permission to copy, distribute and modify it. |
1428 |
|
_ACEOF |
1429 |
< |
exit 0 |
1429 |
> |
exit |
1430 |
|
fi |
1431 |
< |
exec 5>config.log |
1001 |
< |
cat >&5 <<_ACEOF |
1431 |
> |
cat >config.log <<_ACEOF |
1432 |
|
This file contains any messages produced by compilers while |
1433 |
|
running configure, to aid debugging if configure makes a mistake. |
1434 |
|
|
1435 |
< |
It was created by OOPSE $as_me 1.0, which was |
1436 |
< |
generated by GNU Autoconf 2.59. Invocation command line was |
1435 |
> |
It was created by OOPSE $as_me 3.0, which was |
1436 |
> |
generated by GNU Autoconf 2.61. Invocation command line was |
1437 |
|
|
1438 |
|
$ $0 $@ |
1439 |
|
|
1440 |
|
_ACEOF |
1441 |
+ |
exec 5>>config.log |
1442 |
|
{ |
1443 |
|
cat <<_ASUNAME |
1444 |
|
## --------- ## |
1457 |
|
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1458 |
|
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1459 |
|
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1460 |
< |
hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
1460 |
> |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1461 |
|
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1462 |
|
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1463 |
|
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1471 |
|
test -z "$as_dir" && as_dir=. |
1472 |
|
echo "PATH: $as_dir" |
1473 |
|
done |
1474 |
+ |
IFS=$as_save_IFS |
1475 |
|
|
1476 |
|
} >&5 |
1477 |
|
|
1493 |
|
ac_configure_args= |
1494 |
|
ac_configure_args0= |
1495 |
|
ac_configure_args1= |
1064 |
– |
ac_sep= |
1496 |
|
ac_must_keep_next=false |
1497 |
|
for ac_pass in 1 2 |
1498 |
|
do |
1503 |
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1504 |
|
| -silent | --silent | --silen | --sile | --sil) |
1505 |
|
continue ;; |
1506 |
< |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1506 |
> |
*\'*) |
1507 |
|
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1508 |
|
esac |
1509 |
|
case $ac_pass in |
1525 |
|
-* ) ac_must_keep_next=true ;; |
1526 |
|
esac |
1527 |
|
fi |
1528 |
< |
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1098 |
< |
# Get rid of the leading space. |
1099 |
< |
ac_sep=" " |
1528 |
> |
ac_configure_args="$ac_configure_args '$ac_arg'" |
1529 |
|
;; |
1530 |
|
esac |
1531 |
|
done |
1536 |
|
# When interrupted or exit'd, cleanup temporary files, and complete |
1537 |
|
# config.log. We remove comments because anyway the quotes in there |
1538 |
|
# would cause problems or look ugly. |
1539 |
< |
# WARNING: Be sure not to use single quotes in there, as some shells, |
1540 |
< |
# such as our DU 5.0 friend, will then `close' the trap. |
1539 |
> |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
1540 |
> |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1541 |
|
trap 'exit_status=$? |
1542 |
|
# Save into config.log some information that might help in debugging. |
1543 |
|
{ |
1550 |
|
_ASBOX |
1551 |
|
echo |
1552 |
|
# The following way of writing the cache mishandles newlines in values, |
1553 |
< |
{ |
1553 |
> |
( |
1554 |
> |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1555 |
> |
eval ac_val=\$$ac_var |
1556 |
> |
case $ac_val in #( |
1557 |
> |
*${as_nl}*) |
1558 |
> |
case $ac_var in #( |
1559 |
> |
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1560 |
> |
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
1561 |
> |
esac |
1562 |
> |
case $ac_var in #( |
1563 |
> |
_ | IFS | as_nl) ;; #( |
1564 |
> |
*) $as_unset $ac_var ;; |
1565 |
> |
esac ;; |
1566 |
> |
esac |
1567 |
> |
done |
1568 |
|
(set) 2>&1 | |
1569 |
< |
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1570 |
< |
*ac_space=\ *) |
1569 |
> |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1570 |
> |
*${as_nl}ac_space=\ *) |
1571 |
|
sed -n \ |
1572 |
< |
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1573 |
< |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1574 |
< |
;; |
1572 |
> |
"s/'\''/'\''\\\\'\'''\''/g; |
1573 |
> |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1574 |
> |
;; #( |
1575 |
|
*) |
1576 |
< |
sed -n \ |
1134 |
< |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1576 |
> |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1577 |
|
;; |
1578 |
< |
esac; |
1579 |
< |
} |
1578 |
> |
esac | |
1579 |
> |
sort |
1580 |
> |
) |
1581 |
|
echo |
1582 |
|
|
1583 |
|
cat <<\_ASBOX |
1588 |
|
echo |
1589 |
|
for ac_var in $ac_subst_vars |
1590 |
|
do |
1591 |
< |
eval ac_val=$`echo $ac_var` |
1592 |
< |
echo "$ac_var='"'"'$ac_val'"'"'" |
1591 |
> |
eval ac_val=\$$ac_var |
1592 |
> |
case $ac_val in |
1593 |
> |
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1594 |
> |
esac |
1595 |
> |
echo "$ac_var='\''$ac_val'\''" |
1596 |
|
done | sort |
1597 |
|
echo |
1598 |
|
|
1599 |
|
if test -n "$ac_subst_files"; then |
1600 |
|
cat <<\_ASBOX |
1601 |
< |
## ------------- ## |
1602 |
< |
## Output files. ## |
1603 |
< |
## ------------- ## |
1601 |
> |
## ------------------- ## |
1602 |
> |
## File substitutions. ## |
1603 |
> |
## ------------------- ## |
1604 |
|
_ASBOX |
1605 |
|
echo |
1606 |
|
for ac_var in $ac_subst_files |
1607 |
|
do |
1608 |
< |
eval ac_val=$`echo $ac_var` |
1609 |
< |
echo "$ac_var='"'"'$ac_val'"'"'" |
1608 |
> |
eval ac_val=\$$ac_var |
1609 |
> |
case $ac_val in |
1610 |
> |
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1611 |
> |
esac |
1612 |
> |
echo "$ac_var='\''$ac_val'\''" |
1613 |
|
done | sort |
1614 |
|
echo |
1615 |
|
fi |
1621 |
|
## ----------- ## |
1622 |
|
_ASBOX |
1623 |
|
echo |
1624 |
< |
sed "/^$/d" confdefs.h | sort |
1624 |
> |
cat confdefs.h |
1625 |
|
echo |
1626 |
|
fi |
1627 |
|
test "$ac_signal" != 0 && |
1628 |
|
echo "$as_me: caught signal $ac_signal" |
1629 |
|
echo "$as_me: exit $exit_status" |
1630 |
|
} >&5 |
1631 |
< |
rm -f core *.core && |
1632 |
< |
rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1631 |
> |
rm -rf core *.core core.conftest.* && |
1632 |
> |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1633 |
|
exit $exit_status |
1634 |
< |
' 0 |
1634 |
> |
' 0 |
1635 |
|
for ac_signal in 1 2 13 15; do |
1636 |
|
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1637 |
|
done |
1638 |
|
ac_signal=0 |
1639 |
|
|
1640 |
|
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
1641 |
< |
rm -rf conftest* confdefs.h |
1193 |
< |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
1194 |
< |
echo >confdefs.h |
1641 |
> |
rm -f -r conftest* confdefs.h |
1642 |
|
|
1643 |
|
# Predefined preprocessor variables. |
1644 |
|
|
1669 |
|
|
1670 |
|
# Let the site file select an alternate cache file if it wants to. |
1671 |
|
# Prefer explicitly selected file to automatically selected ones. |
1672 |
< |
if test -z "$CONFIG_SITE"; then |
1673 |
< |
if test "x$prefix" != xNONE; then |
1674 |
< |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
1675 |
< |
else |
1676 |
< |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1677 |
< |
fi |
1672 |
> |
if test -n "$CONFIG_SITE"; then |
1673 |
> |
set x "$CONFIG_SITE" |
1674 |
> |
elif test "x$prefix" != xNONE; then |
1675 |
> |
set x "$prefix/share/config.site" "$prefix/etc/config.site" |
1676 |
> |
else |
1677 |
> |
set x "$ac_default_prefix/share/config.site" \ |
1678 |
> |
"$ac_default_prefix/etc/config.site" |
1679 |
|
fi |
1680 |
< |
for ac_site_file in $CONFIG_SITE; do |
1680 |
> |
shift |
1681 |
> |
for ac_site_file |
1682 |
> |
do |
1683 |
|
if test -r "$ac_site_file"; then |
1684 |
|
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1685 |
|
echo "$as_me: loading site script $ac_site_file" >&6;} |
1695 |
|
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1696 |
|
echo "$as_me: loading cache $cache_file" >&6;} |
1697 |
|
case $cache_file in |
1698 |
< |
[\\/]* | ?:[\\/]* ) . $cache_file;; |
1699 |
< |
*) . ./$cache_file;; |
1698 |
> |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
1699 |
> |
*) . "./$cache_file";; |
1700 |
|
esac |
1701 |
|
fi |
1702 |
|
else |
1708 |
|
# Check that the precious variables saved in the cache have kept the same |
1709 |
|
# value. |
1710 |
|
ac_cache_corrupted=false |
1711 |
< |
for ac_var in `(set) 2>&1 | |
1262 |
< |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1711 |
> |
for ac_var in $ac_precious_vars; do |
1712 |
|
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1713 |
|
eval ac_new_set=\$ac_env_${ac_var}_set |
1714 |
< |
eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1715 |
< |
eval ac_new_val="\$ac_env_${ac_var}_value" |
1714 |
> |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1715 |
> |
eval ac_new_val=\$ac_env_${ac_var}_value |
1716 |
|
case $ac_old_set,$ac_new_set in |
1717 |
|
set,) |
1718 |
|
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1737 |
|
# Pass precious variables to config.status. |
1738 |
|
if test "$ac_new_set" = set; then |
1739 |
|
case $ac_new_val in |
1740 |
< |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1292 |
< |
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1740 |
> |
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1741 |
|
*) ac_arg=$ac_var=$ac_new_val ;; |
1742 |
|
esac |
1743 |
|
case " $ac_configure_args " in |
1754 |
|
{ (exit 1); exit 1; }; } |
1755 |
|
fi |
1756 |
|
|
1309 |
– |
ac_ext=c |
1310 |
– |
ac_cpp='$CPP $CPPFLAGS' |
1311 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1312 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1313 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1757 |
|
|
1758 |
|
|
1759 |
|
|
1778 |
|
|
1779 |
|
|
1780 |
|
|
1781 |
+ |
ac_ext=c |
1782 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
1783 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1784 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1785 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1786 |
|
|
1787 |
|
|
1340 |
– |
|
1788 |
|
ac_aux_dir= |
1789 |
< |
for ac_dir in ac-tools $srcdir/ac-tools; do |
1790 |
< |
if test -f $ac_dir/install-sh; then |
1789 |
> |
for ac_dir in ac-tools "$srcdir"/ac-tools; do |
1790 |
> |
if test -f "$ac_dir/install-sh"; then |
1791 |
|
ac_aux_dir=$ac_dir |
1792 |
|
ac_install_sh="$ac_aux_dir/install-sh -c" |
1793 |
|
break |
1794 |
< |
elif test -f $ac_dir/install.sh; then |
1794 |
> |
elif test -f "$ac_dir/install.sh"; then |
1795 |
|
ac_aux_dir=$ac_dir |
1796 |
|
ac_install_sh="$ac_aux_dir/install.sh -c" |
1797 |
|
break |
1798 |
< |
elif test -f $ac_dir/shtool; then |
1798 |
> |
elif test -f "$ac_dir/shtool"; then |
1799 |
|
ac_aux_dir=$ac_dir |
1800 |
|
ac_install_sh="$ac_aux_dir/shtool install -c" |
1801 |
|
break |
1802 |
|
fi |
1803 |
|
done |
1804 |
|
if test -z "$ac_aux_dir"; then |
1805 |
< |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5 |
1806 |
< |
echo "$as_me: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&2;} |
1805 |
> |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools \"$srcdir\"/ac-tools" >&5 |
1806 |
> |
echo "$as_me: error: cannot find install-sh or install.sh in ac-tools \"$srcdir\"/ac-tools" >&2;} |
1807 |
|
{ (exit 1); exit 1; }; } |
1808 |
|
fi |
1362 |
– |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1363 |
– |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1364 |
– |
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1809 |
|
|
1810 |
+ |
# These three variables are undocumented and unsupported, |
1811 |
+ |
# and are intended to be withdrawn in a future Autoconf release. |
1812 |
+ |
# They can cause serious problems if a builder's source tree is in a directory |
1813 |
+ |
# whose full name contains unusual characters. |
1814 |
+ |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
1815 |
+ |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
1816 |
+ |
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
1817 |
|
|
1367 |
– |
# This file is part of Autoconf. -*- Autoconf -*- |
1368 |
– |
# Programming languages support. |
1369 |
– |
# Copyright 2000, 2001 |
1370 |
– |
# Free Software Foundation, Inc. |
1371 |
– |
# |
1372 |
– |
# This program is free software; you can redistribute it and/or modify |
1373 |
– |
# it under the terms of the GNU General Public License as published by |
1374 |
– |
# the Free Software Foundation; either version 2, or (at your option) |
1375 |
– |
# any later version. |
1376 |
– |
# |
1377 |
– |
# This program is distributed in the hope that it will be useful, |
1378 |
– |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
1379 |
– |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1380 |
– |
# GNU General Public License for more details. |
1381 |
– |
# |
1382 |
– |
# You should have received a copy of the GNU General Public License |
1383 |
– |
# along with this program; if not, write to the Free Software |
1384 |
– |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
1385 |
– |
# 02111-1307, USA. |
1386 |
– |
# |
1387 |
– |
# As a special exception, the Free Software Foundation gives unlimited |
1388 |
– |
# permission to copy, distribute and modify the configure scripts that |
1389 |
– |
# are the output of Autoconf. You need not follow the terms of the GNU |
1390 |
– |
# General Public License when using or distributing such scripts, even |
1391 |
– |
# though portions of the text of Autoconf appear in them. The GNU |
1392 |
– |
# General Public License (GPL) does govern all other use of the material |
1393 |
– |
# that constitutes the Autoconf program. |
1394 |
– |
# |
1395 |
– |
# Certain portions of the Autoconf source text are designed to be copied |
1396 |
– |
# (in certain cases, depending on the input) into the output of |
1397 |
– |
# Autoconf. We call these the "data" portions. The rest of the Autoconf |
1398 |
– |
# source text consists of comments plus executable code that decides which |
1399 |
– |
# of the data portions to output in any given case. We call these |
1400 |
– |
# comments and executable code the "non-data" portions. Autoconf never |
1401 |
– |
# copies any of the non-data portions into its output. |
1402 |
– |
# |
1403 |
– |
# This special exception to the GPL applies to versions of Autoconf |
1404 |
– |
# released by the Free Software Foundation. When you make and |
1405 |
– |
# distribute a modified version of Autoconf, you may extend this special |
1406 |
– |
# exception to the GPL to apply to your modified version as well, *unless* |
1407 |
– |
# your modified version has the potential to copy into its output some |
1408 |
– |
# of the text that was the non-data portion of the version that you started |
1409 |
– |
# with. (In other words, unless your change moves or copies text from |
1410 |
– |
# the non-data portions to the data portions.) If your modification has |
1411 |
– |
# such potential, you must delete any notice of this special exception |
1412 |
– |
# to the GPL from your modified version. |
1413 |
– |
# |
1414 |
– |
# Written by Akim Demaille, Christian Marquardt, Martin Wilks (and probably |
1415 |
– |
# many others). |
1818 |
|
|
1819 |
|
|
1820 |
< |
# Table of Contents: |
1419 |
< |
# |
1420 |
< |
# 1. Language selection |
1421 |
< |
# and routines to produce programs in a given language. |
1422 |
< |
# a. Fortran 77 (to be moved from aclang.m4) |
1423 |
< |
# b. Fortran 90 |
1424 |
< |
# c. Fortran 95 |
1425 |
< |
# |
1426 |
< |
# 2. Producing programs in a given language. |
1427 |
< |
# a. Fortran 77 (to be moved from aclang.m4) |
1428 |
< |
# b. Fortran 90 |
1429 |
< |
# c. Fortran 95 |
1430 |
< |
# |
1431 |
< |
# 3. Looking for a compiler |
1432 |
< |
# And possibly the associated preprocessor. |
1433 |
< |
# a. Fortran 77 (to be moved from aclang.m4) |
1434 |
< |
# b. Fortran 90 |
1435 |
< |
# c. Fortran 95 |
1436 |
< |
# |
1437 |
< |
# 4. Compilers' characteristics. |
1438 |
< |
# a. Fortran 77 (to be moved from aclang.m4) |
1439 |
< |
# b. Fortran 90 |
1440 |
< |
# c. Fortran 95 |
1820 |
> |
ac_config_headers="$ac_config_headers src/config.h" |
1821 |
|
|
1442 |
– |
# _AC_LIST_MEMBER_IF(ELEMENT, LIST, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) |
1443 |
– |
# --------------------------------------------------------------------------- |
1444 |
– |
# |
1445 |
– |
# Processing the elements of a list is tedious in shell programming, |
1446 |
– |
# as lists tend to be implemented as space delimited strings. |
1447 |
– |
# |
1448 |
– |
# This macro searches LIST for ELEMENT, and executes ACTION-IF-FOUND |
1449 |
– |
# if ELEMENT is a member of LIST, otherwise it executes |
1450 |
– |
# ACTION-IF-NOT-FOUND. |
1451 |
– |
# _AC_LIST_MEMBER_IF |
1822 |
|
|
1823 |
|
|
1824 |
|
|
1455 |
– |
# _AC_LINKER_OPTION(LINKER-OPTIONS, SHELL-VARIABLE) |
1456 |
– |
# ------------------------------------------------- |
1457 |
– |
# |
1458 |
– |
# Specifying options to the compiler (whether it be the C, C++ or |
1459 |
– |
# Fortran 77 compiler) that are meant for the linker is compiler |
1460 |
– |
# dependent. This macro lets you give options to the compiler that |
1461 |
– |
# are meant for the linker in a portable, compiler-independent way. |
1462 |
– |
# |
1463 |
– |
# This macro take two arguments, a list of linker options that the |
1464 |
– |
# compiler should pass to the linker (LINKER-OPTIONS) and the name of |
1465 |
– |
# a shell variable (SHELL-VARIABLE). The list of linker options are |
1466 |
– |
# appended to the shell variable in a compiler-dependent way. |
1467 |
– |
# |
1468 |
– |
# For example, if the selected language is C, then this: |
1469 |
– |
# |
1470 |
– |
# _AC_LINKER_OPTION([-R /usr/local/lib/foo], foo_LDFLAGS) |
1471 |
– |
# |
1472 |
– |
# will expand into this if the selected C compiler is gcc: |
1473 |
– |
# |
1474 |
– |
# foo_LDFLAGS="-Xlinker -R -Xlinker /usr/local/lib/foo" |
1475 |
– |
# |
1476 |
– |
# otherwise, it will expand into this: |
1477 |
– |
# |
1478 |
– |
# foo_LDFLAGS"-R /usr/local/lib/foo" |
1479 |
– |
# |
1480 |
– |
# You are encouraged to add support for compilers that this macro |
1481 |
– |
# doesn't currently support. |
1482 |
– |
# FIXME: Get rid of this macro. |
1483 |
– |
# _AC_LINKER_OPTION |
1825 |
|
|
1826 |
|
|
1827 |
|
|
1487 |
– |
## ----------------------- ## |
1488 |
– |
## 1. Language selection. ## |
1489 |
– |
## ----------------------- ## |
1828 |
|
|
1491 |
– |
# ----------------------------- # |
1492 |
– |
# 1b. The Fortran 90 language. # |
1493 |
– |
# ----------------------------- # |
1829 |
|
|
1495 |
– |
# AC_LANG(Fortran 90) |
1496 |
– |
# ------------------- |
1830 |
|
|
1831 |
|
|
1832 |
|
|
1500 |
– |
# _AC_LANG_ABBREV(Fortran 90) |
1501 |
– |
# --------------------------- |
1833 |
|
|
1834 |
|
|
1835 |
|
|
1505 |
– |
# ----------------------------- # |
1506 |
– |
# 1c. The Fortran 95 language. # |
1507 |
– |
# ----------------------------- # |
1836 |
|
|
1509 |
– |
# AC_LANG(Fortran 95) |
1510 |
– |
# ------------------- |
1837 |
|
|
1838 |
|
|
1839 |
|
|
1514 |
– |
# _AC_LANG_ABBREV(Fortran 95) |
1515 |
– |
# --------------------------- |
1840 |
|
|
1841 |
|
|
1842 |
|
|
1519 |
– |
## ---------------------- ## |
1520 |
– |
## 2.Producing programs. ## |
1521 |
– |
## ---------------------- ## |
1843 |
|
|
1523 |
– |
# ------------------------ # |
1524 |
– |
# 2b. Fortran 90 sources. # |
1525 |
– |
# ------------------------ # |
1844 |
|
|
1527 |
– |
# AC_LANG_SOURCE(Fortran 90)(BODY) |
1528 |
– |
# -------------------------------- |
1845 |
|
|
1846 |
|
|
1847 |
|
|
1532 |
– |
# AC_LANG_PROGRAM(Fortran 90)([PROLOGUE], [BODY]) |
1533 |
– |
# ----------------------------------------------- |
1848 |
|
|
1849 |
|
|
1536 |
– |
# AC_LANG_CALL(Fortran 90)(PROLOGUE, FUNCTION) |
1537 |
– |
# -------------------------------------------- |
1850 |
|
|
1851 |
|
|
1852 |
|
|
1541 |
– |
# ------------------------ # |
1542 |
– |
# 2c. Fortran 95 sources. # |
1543 |
– |
# ------------------------ # |
1853 |
|
|
1545 |
– |
# AC_LANG_SOURCE(Fortran 95)(BODY) |
1546 |
– |
# -------------------------------- |
1854 |
|
|
1855 |
|
|
1549 |
– |
# AC_LANG_PROGRAM(Fortran 95)([PROLOGUE], [BODY]) |
1550 |
– |
# ----------------------------------------------- |
1856 |
|
|
1857 |
|
|
1553 |
– |
# AC_LANG_CALL(Fortran 95)(PROLOGUE, FUNCTION) |
1554 |
– |
# -------------------------------------------- |
1858 |
|
|
1859 |
|
|
1860 |
|
|
1558 |
– |
## -------------------------------------------- ## |
1559 |
– |
## 3. Looking for Compilers and Preprocessors. ## |
1560 |
– |
## -------------------------------------------- ## |
1861 |
|
|
1562 |
– |
# ----------------------------- # |
1563 |
– |
# 3b. The Fortran 90 compiler. # |
1564 |
– |
# ----------------------------- # |
1862 |
|
|
1863 |
|
|
1567 |
– |
# AC_LANG_PREPROC(Fortran 90) |
1568 |
– |
# --------------------------- |
1569 |
– |
# Find the Fortran 90 preprocessor. Must be AC_DEFUN'd to be AC_REQUIRE'able. |
1864 |
|
|
1865 |
+ |
# |
1866 |
+ |
# |
1867 |
+ |
# |
1868 |
|
|
1869 |
|
|
1573 |
– |
# AC_LANG_COMPILER(Fortran 90) |
1574 |
– |
# ---------------------------- |
1575 |
– |
# Find the Fortran 90 compiler. Must be AC_DEFUN'd to be |
1576 |
– |
# AC_REQUIRE'able. |
1870 |
|
|
1871 |
|
|
1872 |
|
|
1873 |
< |
# AC_PROG_F90([COMPILERS...]) |
1874 |
< |
# --------------------------- |
1875 |
< |
# COMPILERS is a space separated list of Fortran 90 compilers to search |
1583 |
< |
# for. |
1873 |
> |
|
1874 |
> |
# AC_F90_MODULE_NAMES |
1875 |
> |
# ------------------- |
1876 |
|
# |
1877 |
< |
# Compilers are ordered by |
1586 |
< |
# 1. F90, F95 |
1587 |
< |
# 2. Good/tested native compilers, bad/untested native compilers |
1877 |
> |
# Figure out how the Fortran 90 compiler constructs module file names |
1878 |
|
# |
1879 |
< |
# pgf90 is the Portland Group F90 compilers. |
1590 |
< |
# xlf90/xlf95 are IBM (AIX) F90/F95 compilers. |
1591 |
< |
# lf95 is the Lahey-Fujitsu compiler. |
1592 |
< |
# epcf90 is the "Edinburgh Portable Compiler" F90. |
1593 |
< |
# fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha. |
1594 |
< |
# AC_PROG_F90 |
1879 |
> |
# AC_F90_MODULE_NAMES |
1880 |
|
|
1881 |
|
|
1597 |
– |
# ----------------------------- # |
1598 |
– |
# 3c. The Fortran 95 compiler. # |
1599 |
– |
# ----------------------------- # |
1882 |
|
|
1883 |
|
|
1602 |
– |
# AC_LANG_PREPROC(Fortran 95) |
1603 |
– |
# --------------------------- |
1604 |
– |
# Find the Fortran 95 preprocessor. Must be AC_DEFUN'd to be AC_REQUIRE'able. |
1884 |
|
|
1885 |
|
|
1886 |
|
|
1608 |
– |
# AC_LANG_COMPILER(Fortran 95) |
1609 |
– |
# ---------------------------- |
1610 |
– |
# Find the Fortran 95 compiler. Must be AC_DEFUN'd to be |
1611 |
– |
# AC_REQUIRE'able. |
1887 |
|
|
1888 |
|
|
1889 |
|
|
1615 |
– |
# AC_PROG_F95([COMPILERS...]) |
1616 |
– |
# --------------------------- |
1617 |
– |
# COMPILERS is a space separated list of Fortran 95 compilers to search |
1618 |
– |
# for. |
1619 |
– |
# |
1620 |
– |
# Compilers are ordered by |
1621 |
– |
# 1. Good/tested native compilers, bad/untested native compilers |
1622 |
– |
# |
1623 |
– |
# xlf95 is the IBM (AIX) F95 compiler. |
1624 |
– |
# lf95 is the Lahey-Fujitsu compiler. |
1625 |
– |
# fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha. |
1626 |
– |
# AC_PROG_F95 |
1890 |
|
|
1891 |
|
|
1629 |
– |
## ------------------------------- ## |
1630 |
– |
## 4. Compilers' characteristics. ## |
1631 |
– |
## ------------------------------- ## |
1892 |
|
|
1893 |
|
|
1634 |
– |
# ---------------------------------------- # |
1635 |
– |
# 4b. Fortan 90 compiler characteristics. # |
1636 |
– |
# ---------------------------------------- # |
1894 |
|
|
1895 |
|
|
1639 |
– |
# _AC_PROG_F90_V_OUTPUT([FLAG = $ac_cv_prog_f90_v]) |
1640 |
– |
# ------------------------------------------------- |
1641 |
– |
# Link a trivial Fortran program, compiling with a verbose output FLAG |
1642 |
– |
# (which default value, $ac_cv_prog_f90_v, is computed by |
1643 |
– |
# _AC_PROG_F90_V), and return the output in $ac_f90_v_output. This |
1644 |
– |
# output is processed in the way expected by AC_F90_LIBRARY_LDFLAGS, |
1645 |
– |
# so that any link flags that are echoed by the compiler appear as |
1646 |
– |
# space-separated items. |
1647 |
– |
# _AC_PROG_F90_V_OUTPUT |
1896 |
|
|
1897 |
|
|
1650 |
– |
# _AC_PROG_F90_V |
1651 |
– |
# -------------- |
1652 |
– |
# |
1653 |
– |
# Determine the flag that causes the Fortran 90 compiler to print |
1654 |
– |
# information of library and object files (normally -v) |
1655 |
– |
# Needed for AC_F90_LIBRARY_FLAGS |
1656 |
– |
# Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###) |
1657 |
– |
# _AC_PROG_F90_V |
1898 |
|
|
1899 |
|
|
1660 |
– |
# AC_F90_LIBRARY_LDFLAGS |
1661 |
– |
# ---------------------- |
1662 |
– |
# |
1663 |
– |
# Determine the linker flags (e.g. "-L" and "-l") for the Fortran 90 |
1664 |
– |
# intrinsic and run-time libraries that are required to successfully |
1665 |
– |
# link a Fortran 90 program or shared library. The output variable |
1666 |
– |
# F90LIBS is set to these flags. |
1667 |
– |
# |
1668 |
– |
# This macro is intended to be used in those situations when it is |
1669 |
– |
# necessary to mix, e.g. C++ and Fortran 90, source code into a single |
1670 |
– |
# program or shared library. |
1671 |
– |
# |
1672 |
– |
# For example, if object files from a C++ and Fortran 90 compiler must |
1673 |
– |
# be linked together, then the C++ compiler/linker must be used for |
1674 |
– |
# linking (since special C++-ish things need to happen at link time |
1675 |
– |
# like calling global constructors, instantiating templates, enabling |
1676 |
– |
# exception support, etc.). |
1677 |
– |
# |
1678 |
– |
# However, the Fortran 90 intrinsic and run-time libraries must be |
1679 |
– |
# linked in as well, but the C++ compiler/linker doesn't know how to |
1680 |
– |
# add these Fortran 90 libraries. Hence, the macro |
1681 |
– |
# "AC_F90_LIBRARY_LDFLAGS" was created to determine these Fortran 90 |
1682 |
– |
# libraries. |
1683 |
– |
# |
1684 |
– |
# This macro was copied from the Fortran 77 version by Matthew D. Langston. |
1685 |
– |
# AC_F90_LIBRARY_LDFLAGS |
1900 |
|
|
1901 |
|
|
1688 |
– |
# _AC_F90_NAME_MANGLING |
1689 |
– |
# --------------------- |
1690 |
– |
# Test for the name mangling scheme used by the Fortran 90 compiler. |
1691 |
– |
# |
1692 |
– |
# Sets ac_cv_f90_mangling. The value contains three fields, separated |
1693 |
– |
# by commas: |
1694 |
– |
# |
1695 |
– |
# lower case / upper case: |
1696 |
– |
# case translation of the Fortan 90 symbols |
1697 |
– |
# underscore / no underscore: |
1698 |
– |
# whether the compiler appends "_" to symbol names |
1699 |
– |
# extra underscore / no extra underscore: |
1700 |
– |
# whether the compiler appends an extra "_" to symbol names already |
1701 |
– |
# containing at least one underscore |
1702 |
– |
# |
1703 |
– |
# _AC_F90_NAME_MANGLING |
1902 |
|
|
1705 |
– |
# The replacement is empty. |
1903 |
|
|
1904 |
|
|
1905 |
|
|
1709 |
– |
# AC_F90_WRAPPERS |
1710 |
– |
# --------------- |
1711 |
– |
# Defines C macros F90_FUNC(name,NAME) and F90_FUNC_(name,NAME) to |
1712 |
– |
# properly mangle the names of C identifiers, and C identifiers with |
1713 |
– |
# underscores, respectively, so that they match the name mangling |
1714 |
– |
# scheme used by the Fortran 90 compiler. |
1715 |
– |
# AC_F90_WRAPPERS |
1906 |
|
|
1907 |
|
|
1718 |
– |
# AC_F90_FUNC(NAME, [SHELLVAR = NAME]) |
1719 |
– |
# ------------------------------------ |
1720 |
– |
# For a Fortran subroutine of given NAME, define a shell variable |
1721 |
– |
# $SHELLVAR to the Fortran 90 mangled name. If the SHELLVAR |
1722 |
– |
# argument is not supplied, it defaults to NAME. |
1723 |
– |
# AC_F90_FUNC |
1908 |
|
|
1909 |
|
|
1726 |
– |
# ---------------------------------------- # |
1727 |
– |
# 4c. Fortan 95 compiler characteristics. # |
1728 |
– |
# ---------------------------------------- # |
1910 |
|
|
1911 |
|
|
1731 |
– |
# _AC_PROG_F95_V_OUTPUT([FLAG = $ac_cv_prog_f95_v]) |
1732 |
– |
# ------------------------------------------------- |
1733 |
– |
# Link a trivial Fortran program, compiling with a verbose output FLAG |
1734 |
– |
# (which default value, $ac_cv_prog_f95_v, is computed by |
1735 |
– |
# _AC_PROG_F95_V), and return the output in $ac_f95_v_output. This |
1736 |
– |
# output is processed in the way expected by AC_F95_LIBRARY_LDFLAGS, |
1737 |
– |
# so that any link flags that are echoed by the compiler appear as |
1738 |
– |
# space-separated items. |
1739 |
– |
# _AC_PROG_F95_V_OUTPUT |
1912 |
|
|
1913 |
|
|
1742 |
– |
# _AC_PROG_F95_V |
1743 |
– |
# -------------- |
1744 |
– |
# |
1745 |
– |
# Determine the flag that causes the Fortran 95 compiler to print |
1746 |
– |
# information of library and object files (normally -v) |
1747 |
– |
# Needed for AC_F95_LIBRARY_FLAGS |
1748 |
– |
# Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###) |
1749 |
– |
# _AC_PROG_F95_V |
1914 |
|
|
1915 |
|
|
1752 |
– |
# AC_F95_LIBRARY_LDFLAGS |
1753 |
– |
# ---------------------- |
1754 |
– |
# |
1755 |
– |
# Determine the linker flags (e.g. "-L" and "-l") for the Fortran 95 |
1756 |
– |
# intrinsic and run-time libraries that are required to successfully |
1757 |
– |
# link a Fortran 95 program or shared library. The output variable |
1758 |
– |
# F95LIBS is set to these flags. |
1759 |
– |
# |
1760 |
– |
# This macro is intended to be used in those situations when it is |
1761 |
– |
# necessary to mix, e.g. C++ and Fortran 95, source code into a single |
1762 |
– |
# program or shared library. |
1763 |
– |
# |
1764 |
– |
# For example, if object files from a C++ and Fortran 95 compiler must |
1765 |
– |
# be linked together, then the C++ compiler/linker must be used for |
1766 |
– |
# linking (since special C++-ish things need to happen at link time |
1767 |
– |
# like calling global constructors, instantiating templates, enabling |
1768 |
– |
# exception support, etc.). |
1769 |
– |
# |
1770 |
– |
# However, the Fortran 95 intrinsic and run-time libraries must be |
1771 |
– |
# linked in as well, but the C++ compiler/linker doesn't know how to |
1772 |
– |
# add these Fortran 95 libraries. Hence, the macro |
1773 |
– |
# "AC_F95_LIBRARY_LDFLAGS" was created to determine these Fortran 95 |
1774 |
– |
# libraries. |
1775 |
– |
# |
1776 |
– |
# This macro was copied from the Fortran 77 version by Matthew D. Langston. |
1777 |
– |
# AC_F95_LIBRARY_LDFLAGS |
1916 |
|
|
1917 |
|
|
1780 |
– |
# _AC_F95_NAME_MANGLING |
1781 |
– |
# --------------------- |
1782 |
– |
# Test for the name mangling scheme used by the Fortran 95 compiler. |
1783 |
– |
# |
1784 |
– |
# Sets ac_cv_f95_mangling. The value contains three fields, separated |
1785 |
– |
# by commas: |
1786 |
– |
# |
1787 |
– |
# lower case / upper case: |
1788 |
– |
# case translation of the Fortan 95 symbols |
1789 |
– |
# underscore / no underscore: |
1790 |
– |
# whether the compiler appends "_" to symbol names |
1791 |
– |
# extra underscore / no extra underscore: |
1792 |
– |
# whether the compiler appends an extra "_" to symbol names already |
1793 |
– |
# containing at least one underscore |
1794 |
– |
# |
1795 |
– |
# _AC_F95_NAME_MANGLING |
1918 |
|
|
1797 |
– |
# The replacement is empty. |
1919 |
|
|
1920 |
|
|
1921 |
|
|
1801 |
– |
# AC_F95_WRAPPERS |
1802 |
– |
# --------------- |
1803 |
– |
# Defines C macros F95_FUNC(name,NAME) and F95_FUNC_(name,NAME) to |
1804 |
– |
# properly mangle the names of C identifiers, and C identifiers with |
1805 |
– |
# underscores, respectively, so that they match the name mangling |
1806 |
– |
# scheme used by the Fortran 95 compiler. |
1807 |
– |
# AC_F95_WRAPPERS |
1922 |
|
|
1923 |
|
|
1810 |
– |
# AC_F95_FUNC(NAME, [SHELLVAR = NAME]) |
1811 |
– |
# ------------------------------------ |
1812 |
– |
# For a Fortran subroutine of given NAME, define a shell variable |
1813 |
– |
# $SHELLVAR to the Fortran 95 mangled name. If the SHELLVAR |
1814 |
– |
# argument is not supplied, it defaults to NAME. |
1815 |
– |
# AC_F95_FUNC |
1924 |
|
|
1925 |
|
|
1926 |
|
|
1965 |
|
|
1966 |
|
|
1967 |
|
|
1968 |
+ |
# who am i |
1969 |
+ |
# Make sure we can run config.sub. |
1970 |
+ |
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
1971 |
+ |
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
1972 |
+ |
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
1973 |
+ |
{ (exit 1); exit 1; }; } |
1974 |
|
|
1975 |
+ |
{ echo "$as_me:$LINENO: checking build system type" >&5 |
1976 |
+ |
echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
1977 |
+ |
if test "${ac_cv_build+set}" = set; then |
1978 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1979 |
+ |
else |
1980 |
+ |
ac_build_alias=$build_alias |
1981 |
+ |
test "x$ac_build_alias" = x && |
1982 |
+ |
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
1983 |
+ |
test "x$ac_build_alias" = x && |
1984 |
+ |
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1985 |
+ |
echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1986 |
+ |
{ (exit 1); exit 1; }; } |
1987 |
+ |
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
1988 |
+ |
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
1989 |
+ |
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
1990 |
+ |
{ (exit 1); exit 1; }; } |
1991 |
|
|
1992 |
+ |
fi |
1993 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1994 |
+ |
echo "${ECHO_T}$ac_cv_build" >&6; } |
1995 |
+ |
case $ac_cv_build in |
1996 |
+ |
*-*-*) ;; |
1997 |
+ |
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
1998 |
+ |
echo "$as_me: error: invalid value of canonical build" >&2;} |
1999 |
+ |
{ (exit 1); exit 1; }; };; |
2000 |
+ |
esac |
2001 |
+ |
build=$ac_cv_build |
2002 |
+ |
ac_save_IFS=$IFS; IFS='-' |
2003 |
+ |
set x $ac_cv_build |
2004 |
+ |
shift |
2005 |
+ |
build_cpu=$1 |
2006 |
+ |
build_vendor=$2 |
2007 |
+ |
shift; shift |
2008 |
+ |
# Remember, the first character of IFS is used to create $*, |
2009 |
+ |
# except with old shells: |
2010 |
+ |
build_os=$* |
2011 |
+ |
IFS=$ac_save_IFS |
2012 |
+ |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
2013 |
|
|
2014 |
|
|
2015 |
+ |
{ echo "$as_me:$LINENO: checking host system type" >&5 |
2016 |
+ |
echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
2017 |
+ |
if test "${ac_cv_host+set}" = set; then |
2018 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2019 |
+ |
else |
2020 |
+ |
if test "x$host_alias" = x; then |
2021 |
+ |
ac_cv_host=$ac_cv_build |
2022 |
+ |
else |
2023 |
+ |
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2024 |
+ |
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2025 |
+ |
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
2026 |
+ |
{ (exit 1); exit 1; }; } |
2027 |
+ |
fi |
2028 |
|
|
2029 |
+ |
fi |
2030 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2031 |
+ |
echo "${ECHO_T}$ac_cv_host" >&6; } |
2032 |
+ |
case $ac_cv_host in |
2033 |
+ |
*-*-*) ;; |
2034 |
+ |
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2035 |
+ |
echo "$as_me: error: invalid value of canonical host" >&2;} |
2036 |
+ |
{ (exit 1); exit 1; }; };; |
2037 |
+ |
esac |
2038 |
+ |
host=$ac_cv_host |
2039 |
+ |
ac_save_IFS=$IFS; IFS='-' |
2040 |
+ |
set x $ac_cv_host |
2041 |
+ |
shift |
2042 |
+ |
host_cpu=$1 |
2043 |
+ |
host_vendor=$2 |
2044 |
+ |
shift; shift |
2045 |
+ |
# Remember, the first character of IFS is used to create $*, |
2046 |
+ |
# except with old shells: |
2047 |
+ |
host_os=$* |
2048 |
+ |
IFS=$ac_save_IFS |
2049 |
+ |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
2050 |
|
|
2051 |
|
|
2052 |
|
|
2053 |
|
|
2054 |
|
|
1870 |
– |
|
2055 |
|
# set program name |
2056 |
|
PROGNAME="oopse" |
2057 |
|
|
2058 |
|
|
2059 |
+ |
|
2060 |
+ |
|
2061 |
+ |
OBJEXT=".$OBJEXT" |
2062 |
+ |
|
2063 |
+ |
OOPSE=oopse |
2064 |
+ |
|
2065 |
+ |
if test "x${prefix}" = "xNONE" |
2066 |
+ |
then |
2067 |
+ |
OOPSE_HOME=${ac_default_prefix}/oopse |
2068 |
+ |
else |
2069 |
+ |
OOPSE_HOME=${prefix}/oopse |
2070 |
+ |
fi |
2071 |
+ |
# Check whether --enable-oopse-home was given. |
2072 |
+ |
if test "${enable_oopse_home+set}" = set; then |
2073 |
+ |
enableval=$enable_oopse_home; OOPSE_HOME="${enableval}" |
2074 |
+ |
fi |
2075 |
+ |
|
2076 |
+ |
|
2077 |
|
# there are two ways to do debugging. One with the --enable-debug flag |
2078 |
|
# and one using the DEBUG environment variable |
2079 |
|
|
2080 |
|
debug=0 |
2081 |
< |
# Check whether --enable-debug or --disable-debug was given. |
2081 |
> |
# Check whether --enable-debug was given. |
2082 |
|
if test "${enable_debug+set}" = set; then |
2083 |
< |
enableval="$enable_debug" |
2084 |
< |
debug=1 |
2085 |
< |
fi; |
2083 |
> |
enableval=$enable_debug; debug=1 |
2084 |
> |
fi |
2085 |
> |
|
2086 |
|
if test "${DEBUG}"; then |
2087 |
|
|
2088 |
|
cat >>confdefs.h <<\_ACEOF |
2093 |
|
fi |
2094 |
|
|
2095 |
|
|
2096 |
< |
# who am i |
2097 |
< |
# Make sure we can run config.sub. |
2098 |
< |
$ac_config_sub sun4 >/dev/null 2>&1 || |
1897 |
< |
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
1898 |
< |
echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1899 |
< |
{ (exit 1); exit 1; }; } |
1900 |
< |
|
1901 |
< |
echo "$as_me:$LINENO: checking build system type" >&5 |
1902 |
< |
echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1903 |
< |
if test "${ac_cv_build+set}" = set; then |
1904 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2096 |
> |
# Check whether --enable-single was given. |
2097 |
> |
if test "${enable_single+set}" = set; then |
2098 |
> |
enableval=$enable_single; ok=$enableval |
2099 |
|
else |
2100 |
< |
ac_cv_build_alias=$build_alias |
1907 |
< |
test -z "$ac_cv_build_alias" && |
1908 |
< |
ac_cv_build_alias=`$ac_config_guess` |
1909 |
< |
test -z "$ac_cv_build_alias" && |
1910 |
< |
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1911 |
< |
echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1912 |
< |
{ (exit 1); exit 1; }; } |
1913 |
< |
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
1914 |
< |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
1915 |
< |
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
1916 |
< |
{ (exit 1); exit 1; }; } |
1917 |
< |
|
2100 |
> |
ok=no |
2101 |
|
fi |
1919 |
– |
echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1920 |
– |
echo "${ECHO_T}$ac_cv_build" >&6 |
1921 |
– |
build=$ac_cv_build |
1922 |
– |
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1923 |
– |
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
1924 |
– |
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
2102 |
|
|
2103 |
+ |
# Check whether --enable-float was given. |
2104 |
+ |
if test "${enable_float+set}" = set; then |
2105 |
+ |
enableval=$enable_float; ok=$enableval |
2106 |
+ |
fi |
2107 |
|
|
2108 |
< |
echo "$as_me:$LINENO: checking host system type" >&5 |
1928 |
< |
echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1929 |
< |
if test "${ac_cv_host+set}" = set; then |
1930 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1931 |
< |
else |
1932 |
< |
ac_cv_host_alias=$host_alias |
1933 |
< |
test -z "$ac_cv_host_alias" && |
1934 |
< |
ac_cv_host_alias=$ac_cv_build_alias |
1935 |
< |
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
1936 |
< |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
1937 |
< |
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1938 |
< |
{ (exit 1); exit 1; }; } |
2108 |
> |
if test "$ok" = "yes"; then |
2109 |
|
|
2110 |
< |
fi |
2111 |
< |
echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2112 |
< |
echo "${ECHO_T}$ac_cv_host" >&6 |
1943 |
< |
host=$ac_cv_host |
1944 |
< |
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1945 |
< |
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
1946 |
< |
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
2110 |
> |
cat >>confdefs.h <<\_ACEOF |
2111 |
> |
#define SINGLE_PRECISION 1 |
2112 |
> |
_ACEOF |
2113 |
|
|
2114 |
+ |
USE_SINGLE_PRECISION=yes |
2115 |
|
|
2116 |
+ |
fi |
2117 |
|
|
2118 |
< |
ac_ext=c |
2119 |
< |
ac_cpp='$CPP $CPPFLAGS' |
2120 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2121 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2122 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2123 |
< |
if test -n "$ac_tool_prefix"; then |
2124 |
< |
for ac_prog in icc xlc gcc cc |
2118 |
> |
# Checks for programs. |
2119 |
> |
ac_ext=cpp |
2120 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
2121 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2122 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2123 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2124 |
> |
if test -z "$CXX"; then |
2125 |
> |
if test -n "$CCC"; then |
2126 |
> |
CXX=$CCC |
2127 |
> |
else |
2128 |
> |
if test -n "$ac_tool_prefix"; then |
2129 |
> |
for ac_prog in mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC |
2130 |
|
do |
2131 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2132 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2133 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2134 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2135 |
< |
if test "${ac_cv_prog_CC+set}" = set; then |
2133 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2134 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2135 |
> |
if test "${ac_cv_prog_CXX+set}" = set; then |
2136 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2137 |
|
else |
2138 |
< |
if test -n "$CC"; then |
2139 |
< |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2138 |
> |
if test -n "$CXX"; then |
2139 |
> |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
2140 |
|
else |
2141 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2142 |
|
for as_dir in $PATH |
2144 |
|
IFS=$as_save_IFS |
2145 |
|
test -z "$as_dir" && as_dir=. |
2146 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2147 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2148 |
< |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2147 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2148 |
> |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
2149 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2150 |
|
break 2 |
2151 |
|
fi |
2152 |
|
done |
2153 |
|
done |
2154 |
+ |
IFS=$as_save_IFS |
2155 |
|
|
2156 |
|
fi |
2157 |
|
fi |
2158 |
< |
CC=$ac_cv_prog_CC |
2159 |
< |
if test -n "$CC"; then |
2160 |
< |
echo "$as_me:$LINENO: result: $CC" >&5 |
2161 |
< |
echo "${ECHO_T}$CC" >&6 |
2158 |
> |
CXX=$ac_cv_prog_CXX |
2159 |
> |
if test -n "$CXX"; then |
2160 |
> |
{ echo "$as_me:$LINENO: result: $CXX" >&5 |
2161 |
> |
echo "${ECHO_T}$CXX" >&6; } |
2162 |
|
else |
2163 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
2164 |
< |
echo "${ECHO_T}no" >&6 |
2163 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
2164 |
> |
echo "${ECHO_T}no" >&6; } |
2165 |
|
fi |
2166 |
|
|
2167 |
< |
test -n "$CC" && break |
2167 |
> |
|
2168 |
> |
test -n "$CXX" && break |
2169 |
|
done |
2170 |
|
fi |
2171 |
< |
if test -z "$CC"; then |
2172 |
< |
ac_ct_CC=$CC |
2173 |
< |
for ac_prog in icc xlc gcc cc |
2171 |
> |
if test -z "$CXX"; then |
2172 |
> |
ac_ct_CXX=$CXX |
2173 |
> |
for ac_prog in mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC |
2174 |
|
do |
2175 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2176 |
|
set dummy $ac_prog; ac_word=$2 |
2177 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2178 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2179 |
< |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2177 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2178 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2179 |
> |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
2180 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2181 |
|
else |
2182 |
< |
if test -n "$ac_ct_CC"; then |
2183 |
< |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2182 |
> |
if test -n "$ac_ct_CXX"; then |
2183 |
> |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
2184 |
|
else |
2185 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2186 |
|
for as_dir in $PATH |
2188 |
|
IFS=$as_save_IFS |
2189 |
|
test -z "$as_dir" && as_dir=. |
2190 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2191 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2192 |
< |
ac_cv_prog_ac_ct_CC="$ac_prog" |
2191 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2192 |
> |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
2193 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2194 |
|
break 2 |
2195 |
|
fi |
2196 |
|
done |
2197 |
|
done |
2198 |
+ |
IFS=$as_save_IFS |
2199 |
|
|
2200 |
|
fi |
2201 |
|
fi |
2202 |
< |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2203 |
< |
if test -n "$ac_ct_CC"; then |
2204 |
< |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2205 |
< |
echo "${ECHO_T}$ac_ct_CC" >&6 |
2202 |
> |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
2203 |
> |
if test -n "$ac_ct_CXX"; then |
2204 |
> |
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
2205 |
> |
echo "${ECHO_T}$ac_ct_CXX" >&6; } |
2206 |
|
else |
2207 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
2208 |
< |
echo "${ECHO_T}no" >&6 |
2207 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
2208 |
> |
echo "${ECHO_T}no" >&6; } |
2209 |
|
fi |
2210 |
|
|
2211 |
< |
test -n "$ac_ct_CC" && break |
2211 |
> |
|
2212 |
> |
test -n "$ac_ct_CXX" && break |
2213 |
|
done |
2214 |
|
|
2215 |
< |
CC=$ac_ct_CC |
2215 |
> |
if test "x$ac_ct_CXX" = x; then |
2216 |
> |
CXX="g++" |
2217 |
> |
else |
2218 |
> |
case $cross_compiling:$ac_tool_warned in |
2219 |
> |
yes:) |
2220 |
> |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2221 |
> |
whose name does not start with the host triplet. If you think this |
2222 |
> |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2223 |
> |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2224 |
> |
whose name does not start with the host triplet. If you think this |
2225 |
> |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2226 |
> |
ac_tool_warned=yes ;; |
2227 |
> |
esac |
2228 |
> |
CXX=$ac_ct_CXX |
2229 |
> |
fi |
2230 |
|
fi |
2231 |
|
|
2232 |
< |
|
2233 |
< |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2043 |
< |
See \`config.log' for more details." >&5 |
2044 |
< |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
2045 |
< |
See \`config.log' for more details." >&2;} |
2046 |
< |
{ (exit 1); exit 1; }; } |
2047 |
< |
|
2232 |
> |
fi |
2233 |
> |
fi |
2234 |
|
# Provide some information about the compiler. |
2235 |
< |
echo "$as_me:$LINENO:" \ |
2050 |
< |
"checking for C compiler version" >&5 |
2235 |
> |
echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
2236 |
|
ac_compiler=`set X $ac_compile; echo $2` |
2237 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2238 |
< |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
2237 |
> |
{ (ac_try="$ac_compiler --version >&5" |
2238 |
> |
case "(($ac_try" in |
2239 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2240 |
> |
*) ac_try_echo=$ac_try;; |
2241 |
> |
esac |
2242 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2243 |
> |
(eval "$ac_compiler --version >&5") 2>&5 |
2244 |
|
ac_status=$? |
2245 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2246 |
|
(exit $ac_status); } |
2247 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2248 |
< |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
2247 |
> |
{ (ac_try="$ac_compiler -v >&5" |
2248 |
> |
case "(($ac_try" in |
2249 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2250 |
> |
*) ac_try_echo=$ac_try;; |
2251 |
> |
esac |
2252 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2253 |
> |
(eval "$ac_compiler -v >&5") 2>&5 |
2254 |
|
ac_status=$? |
2255 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2256 |
|
(exit $ac_status); } |
2257 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2258 |
< |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
2257 |
> |
{ (ac_try="$ac_compiler -V >&5" |
2258 |
> |
case "(($ac_try" in |
2259 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2260 |
> |
*) ac_try_echo=$ac_try;; |
2261 |
> |
esac |
2262 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2263 |
> |
(eval "$ac_compiler -V >&5") 2>&5 |
2264 |
|
ac_status=$? |
2265 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2266 |
|
(exit $ac_status); } |
2285 |
|
# Try to create an executable without -o first, disregard a.out. |
2286 |
|
# It will help us diagnose broken compilers, and finding out an intuition |
2287 |
|
# of exeext. |
2288 |
< |
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2289 |
< |
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
2288 |
> |
{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
2289 |
> |
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; } |
2290 |
|
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2291 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
2292 |
< |
(eval $ac_link_default) 2>&5 |
2291 |
> |
# |
2292 |
> |
# List of possible output files, starting from the most likely. |
2293 |
> |
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
2294 |
> |
# only as a last resort. b.out is created by i960 compilers. |
2295 |
> |
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
2296 |
> |
# |
2297 |
> |
# The IRIX 6 linker writes into existing files which may not be |
2298 |
> |
# executable, retaining their permissions. Remove them first so a |
2299 |
> |
# subsequent execution test works. |
2300 |
> |
ac_rmfiles= |
2301 |
> |
for ac_file in $ac_files |
2302 |
> |
do |
2303 |
> |
case $ac_file in |
2304 |
> |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2305 |
> |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2306 |
> |
esac |
2307 |
> |
done |
2308 |
> |
rm -rf $ac_rmfiles |
2309 |
> |
|
2310 |
> |
if { (ac_try="$ac_link_default" |
2311 |
> |
case "(($ac_try" in |
2312 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2313 |
> |
*) ac_try_echo=$ac_try;; |
2314 |
> |
esac |
2315 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2316 |
> |
(eval "$ac_link_default") 2>&5 |
2317 |
|
ac_status=$? |
2318 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2319 |
|
(exit $ac_status); }; then |
2320 |
< |
# Find the output, starting from the most likely. This scheme is |
2321 |
< |
# not robust to junk in `.', hence go to wildcards (a.*) only as a last |
2322 |
< |
# resort. |
2323 |
< |
|
2324 |
< |
# Be careful to initialize this variable, since it used to be cached. |
2325 |
< |
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
2102 |
< |
ac_cv_exeext= |
2103 |
< |
# b.out is created by i960 compilers. |
2104 |
< |
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
2320 |
> |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2321 |
> |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2322 |
> |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
2323 |
> |
# so that the user can short-circuit this test for compilers unknown to |
2324 |
> |
# Autoconf. |
2325 |
> |
for ac_file in $ac_files '' |
2326 |
|
do |
2327 |
|
test -f "$ac_file" || continue |
2328 |
|
case $ac_file in |
2329 |
< |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
2329 |
> |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
2330 |
|
;; |
2110 |
– |
conftest.$ac_ext ) |
2111 |
– |
# This is the source file. |
2112 |
– |
;; |
2331 |
|
[ab].out ) |
2332 |
|
# We found the default executable, but exeext='' is most |
2333 |
|
# certainly right. |
2334 |
|
break;; |
2335 |
|
*.* ) |
2336 |
< |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2337 |
< |
# FIXME: I believe we export ac_cv_exeext for Libtool, |
2338 |
< |
# but it would be cool to find out if it's true. Does anybody |
2339 |
< |
# maintain Libtool? --akim. |
2340 |
< |
export ac_cv_exeext |
2336 |
> |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2337 |
> |
then :; else |
2338 |
> |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2339 |
> |
fi |
2340 |
> |
# We set ac_cv_exeext here because the later test for it is not |
2341 |
> |
# safe: cross compilers may not add the suffix if given an `-o' |
2342 |
> |
# argument, so we may need to know it at that point already. |
2343 |
> |
# Even if this section looks crufty: it has the advantage of |
2344 |
> |
# actually working. |
2345 |
|
break;; |
2346 |
|
* ) |
2347 |
|
break;; |
2348 |
|
esac |
2349 |
|
done |
2350 |
+ |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
2351 |
+ |
|
2352 |
|
else |
2353 |
+ |
ac_file='' |
2354 |
+ |
fi |
2355 |
+ |
|
2356 |
+ |
{ echo "$as_me:$LINENO: result: $ac_file" >&5 |
2357 |
+ |
echo "${ECHO_T}$ac_file" >&6; } |
2358 |
+ |
if test -z "$ac_file"; then |
2359 |
|
echo "$as_me: failed program was:" >&5 |
2360 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2361 |
|
|
2362 |
< |
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2362 |
> |
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
2363 |
|
See \`config.log' for more details." >&5 |
2364 |
< |
echo "$as_me: error: C compiler cannot create executables |
2364 |
> |
echo "$as_me: error: C++ compiler cannot create executables |
2365 |
|
See \`config.log' for more details." >&2;} |
2366 |
|
{ (exit 77); exit 77; }; } |
2367 |
|
fi |
2368 |
|
|
2369 |
|
ac_exeext=$ac_cv_exeext |
2140 |
– |
echo "$as_me:$LINENO: result: $ac_file" >&5 |
2141 |
– |
echo "${ECHO_T}$ac_file" >&6 |
2370 |
|
|
2371 |
< |
# Check the compiler produces executables we can run. If not, either |
2371 |
> |
# Check that the compiler produces executables we can run. If not, either |
2372 |
|
# the compiler is broken, or we cross compile. |
2373 |
< |
echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2374 |
< |
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
2373 |
> |
{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
2374 |
> |
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; } |
2375 |
|
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2376 |
|
# If not cross compiling, check that we can run a simple program. |
2377 |
|
if test "$cross_compiling" != yes; then |
2378 |
|
if { ac_try='./$ac_file' |
2379 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2380 |
< |
(eval $ac_try) 2>&5 |
2379 |
> |
{ (case "(($ac_try" in |
2380 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2381 |
> |
*) ac_try_echo=$ac_try;; |
2382 |
> |
esac |
2383 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2384 |
> |
(eval "$ac_try") 2>&5 |
2385 |
|
ac_status=$? |
2386 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2387 |
|
(exit $ac_status); }; }; then |
2390 |
|
if test "$cross_compiling" = maybe; then |
2391 |
|
cross_compiling=yes |
2392 |
|
else |
2393 |
< |
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2393 |
> |
{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
2394 |
|
If you meant to cross compile, use \`--host'. |
2395 |
|
See \`config.log' for more details." >&5 |
2396 |
< |
echo "$as_me: error: cannot run C compiled programs. |
2396 |
> |
echo "$as_me: error: cannot run C++ compiled programs. |
2397 |
|
If you meant to cross compile, use \`--host'. |
2398 |
|
See \`config.log' for more details." >&2;} |
2399 |
|
{ (exit 1); exit 1; }; } |
2400 |
|
fi |
2401 |
|
fi |
2402 |
|
fi |
2403 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
2404 |
< |
echo "${ECHO_T}yes" >&6 |
2403 |
> |
{ echo "$as_me:$LINENO: result: yes" >&5 |
2404 |
> |
echo "${ECHO_T}yes" >&6; } |
2405 |
|
|
2406 |
< |
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2406 |
> |
rm -rf a.out a.exe conftest$ac_cv_exeext b.out |
2407 |
|
ac_clean_files=$ac_clean_files_save |
2408 |
< |
# Check the compiler produces executables we can run. If not, either |
2408 |
> |
# Check that the compiler produces executables we can run. If not, either |
2409 |
|
# the compiler is broken, or we cross compile. |
2410 |
< |
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2411 |
< |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
2412 |
< |
echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2413 |
< |
echo "${ECHO_T}$cross_compiling" >&6 |
2410 |
> |
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2411 |
> |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
2412 |
> |
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2413 |
> |
echo "${ECHO_T}$cross_compiling" >&6; } |
2414 |
|
|
2415 |
< |
echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2416 |
< |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
2417 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2418 |
< |
(eval $ac_link) 2>&5 |
2415 |
> |
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2416 |
> |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
2417 |
> |
if { (ac_try="$ac_link" |
2418 |
> |
case "(($ac_try" in |
2419 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2420 |
> |
*) ac_try_echo=$ac_try;; |
2421 |
> |
esac |
2422 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2423 |
> |
(eval "$ac_link") 2>&5 |
2424 |
|
ac_status=$? |
2425 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2426 |
|
(exit $ac_status); }; then |
2431 |
|
for ac_file in conftest.exe conftest conftest.*; do |
2432 |
|
test -f "$ac_file" || continue |
2433 |
|
case $ac_file in |
2434 |
< |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
2434 |
> |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2435 |
|
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2199 |
– |
export ac_cv_exeext |
2436 |
|
break;; |
2437 |
|
* ) break;; |
2438 |
|
esac |
2445 |
|
{ (exit 1); exit 1; }; } |
2446 |
|
fi |
2447 |
|
|
2448 |
< |
rm -f conftest$ac_cv_exeext |
2449 |
< |
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2450 |
< |
echo "${ECHO_T}$ac_cv_exeext" >&6 |
2448 |
> |
rm -rf conftest$ac_cv_exeext |
2449 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2450 |
> |
echo "${ECHO_T}$ac_cv_exeext" >&6; } |
2451 |
|
|
2452 |
< |
rm -f conftest.$ac_ext |
2452 |
> |
rm -rf conftest.$ac_ext |
2453 |
|
EXEEXT=$ac_cv_exeext |
2454 |
|
ac_exeext=$EXEEXT |
2455 |
< |
echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2456 |
< |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
2455 |
> |
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2456 |
> |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
2457 |
|
if test "${ac_cv_objext+set}" = set; then |
2458 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2459 |
|
else |
2472 |
|
return 0; |
2473 |
|
} |
2474 |
|
_ACEOF |
2475 |
< |
rm -f conftest.o conftest.obj |
2476 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2477 |
< |
(eval $ac_compile) 2>&5 |
2475 |
> |
rm -rf conftest.o conftest.obj |
2476 |
> |
if { (ac_try="$ac_compile" |
2477 |
> |
case "(($ac_try" in |
2478 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2479 |
> |
*) ac_try_echo=$ac_try;; |
2480 |
> |
esac |
2481 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2482 |
> |
(eval "$ac_compile") 2>&5 |
2483 |
|
ac_status=$? |
2484 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2485 |
|
(exit $ac_status); }; then |
2486 |
< |
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
2486 |
> |
for ac_file in conftest.o conftest.obj conftest.*; do |
2487 |
> |
test -f "$ac_file" || continue; |
2488 |
|
case $ac_file in |
2489 |
< |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
2489 |
> |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
2490 |
|
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2491 |
|
break;; |
2492 |
|
esac |
2502 |
|
{ (exit 1); exit 1; }; } |
2503 |
|
fi |
2504 |
|
|
2505 |
< |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2505 |
> |
rm -rf conftest.$ac_cv_objext conftest.$ac_ext |
2506 |
|
fi |
2507 |
< |
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2508 |
< |
echo "${ECHO_T}$ac_cv_objext" >&6 |
2507 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2508 |
> |
echo "${ECHO_T}$ac_cv_objext" >&6; } |
2509 |
|
OBJEXT=$ac_cv_objext |
2510 |
|
ac_objext=$OBJEXT |
2511 |
< |
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2512 |
< |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2513 |
< |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2511 |
> |
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
2512 |
> |
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
2513 |
> |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
2514 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2515 |
|
else |
2516 |
|
cat >conftest.$ac_ext <<_ACEOF |
2531 |
|
return 0; |
2532 |
|
} |
2533 |
|
_ACEOF |
2534 |
< |
rm -f conftest.$ac_objext |
2535 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2536 |
< |
(eval $ac_compile) 2>conftest.er1 |
2534 |
> |
rm -rf conftest.$ac_objext |
2535 |
> |
if { (ac_try="$ac_compile" |
2536 |
> |
case "(($ac_try" in |
2537 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2538 |
> |
*) ac_try_echo=$ac_try;; |
2539 |
> |
esac |
2540 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2541 |
> |
(eval "$ac_compile") 2>conftest.er1 |
2542 |
|
ac_status=$? |
2543 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
2544 |
< |
rm -f conftest.er1 |
2544 |
> |
rm -rf conftest.er1 |
2545 |
|
cat conftest.err >&5 |
2546 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2547 |
< |
(exit $ac_status); } && |
2548 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
2549 |
< |
|| test ! -s conftest.err' |
2550 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2304 |
< |
(eval $ac_try) 2>&5 |
2305 |
< |
ac_status=$? |
2306 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2307 |
< |
(exit $ac_status); }; } && |
2308 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2309 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2310 |
< |
(eval $ac_try) 2>&5 |
2311 |
< |
ac_status=$? |
2312 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2313 |
< |
(exit $ac_status); }; }; then |
2547 |
> |
(exit $ac_status); } && { |
2548 |
> |
test -z "$ac_cxx_werror_flag" || |
2549 |
> |
test ! -s conftest.err |
2550 |
> |
} && test -s conftest.$ac_objext; then |
2551 |
|
ac_compiler_gnu=yes |
2552 |
|
else |
2553 |
|
echo "$as_me: failed program was:" >&5 |
2554 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2555 |
|
|
2556 |
< |
ac_compiler_gnu=no |
2556 |
> |
ac_compiler_gnu=no |
2557 |
|
fi |
2321 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2322 |
– |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2558 |
|
|
2559 |
+ |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
2560 |
+ |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
2561 |
+ |
|
2562 |
|
fi |
2563 |
< |
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2564 |
< |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2565 |
< |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
2566 |
< |
ac_test_CFLAGS=${CFLAGS+set} |
2567 |
< |
ac_save_CFLAGS=$CFLAGS |
2568 |
< |
CFLAGS="-g" |
2569 |
< |
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2570 |
< |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2333 |
< |
if test "${ac_cv_prog_cc_g+set}" = set; then |
2563 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
2564 |
> |
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
2565 |
> |
GXX=`test $ac_compiler_gnu = yes && echo yes` |
2566 |
> |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
2567 |
> |
ac_save_CXXFLAGS=$CXXFLAGS |
2568 |
> |
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
2569 |
> |
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
2570 |
> |
if test "${ac_cv_prog_cxx_g+set}" = set; then |
2571 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2572 |
|
else |
2573 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2573 |
> |
ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
2574 |
> |
ac_cxx_werror_flag=yes |
2575 |
> |
ac_cv_prog_cxx_g=no |
2576 |
> |
CXXFLAGS="-g" |
2577 |
> |
cat >conftest.$ac_ext <<_ACEOF |
2578 |
|
/* confdefs.h. */ |
2579 |
|
_ACEOF |
2580 |
|
cat confdefs.h >>conftest.$ac_ext |
2589 |
|
return 0; |
2590 |
|
} |
2591 |
|
_ACEOF |
2592 |
< |
rm -f conftest.$ac_objext |
2593 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2594 |
< |
(eval $ac_compile) 2>conftest.er1 |
2592 |
> |
rm -rf conftest.$ac_objext |
2593 |
> |
if { (ac_try="$ac_compile" |
2594 |
> |
case "(($ac_try" in |
2595 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2596 |
> |
*) ac_try_echo=$ac_try;; |
2597 |
> |
esac |
2598 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2599 |
> |
(eval "$ac_compile") 2>conftest.er1 |
2600 |
|
ac_status=$? |
2601 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
2602 |
< |
rm -f conftest.er1 |
2602 |
> |
rm -rf conftest.er1 |
2603 |
|
cat conftest.err >&5 |
2604 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2605 |
< |
(exit $ac_status); } && |
2606 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
2607 |
< |
|| test ! -s conftest.err' |
2608 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2609 |
< |
(eval $ac_try) 2>&5 |
2364 |
< |
ac_status=$? |
2365 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2366 |
< |
(exit $ac_status); }; } && |
2367 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2368 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2369 |
< |
(eval $ac_try) 2>&5 |
2370 |
< |
ac_status=$? |
2371 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2372 |
< |
(exit $ac_status); }; }; then |
2373 |
< |
ac_cv_prog_cc_g=yes |
2605 |
> |
(exit $ac_status); } && { |
2606 |
> |
test -z "$ac_cxx_werror_flag" || |
2607 |
> |
test ! -s conftest.err |
2608 |
> |
} && test -s conftest.$ac_objext; then |
2609 |
> |
ac_cv_prog_cxx_g=yes |
2610 |
|
else |
2611 |
|
echo "$as_me: failed program was:" >&5 |
2612 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2613 |
|
|
2614 |
< |
ac_cv_prog_cc_g=no |
2615 |
< |
fi |
2380 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2381 |
< |
fi |
2382 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2383 |
< |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
2384 |
< |
if test "$ac_test_CFLAGS" = set; then |
2385 |
< |
CFLAGS=$ac_save_CFLAGS |
2386 |
< |
elif test $ac_cv_prog_cc_g = yes; then |
2387 |
< |
if test "$GCC" = yes; then |
2388 |
< |
CFLAGS="-g -O2" |
2389 |
< |
else |
2390 |
< |
CFLAGS="-g" |
2391 |
< |
fi |
2392 |
< |
else |
2393 |
< |
if test "$GCC" = yes; then |
2394 |
< |
CFLAGS="-O2" |
2395 |
< |
else |
2396 |
< |
CFLAGS= |
2397 |
< |
fi |
2398 |
< |
fi |
2399 |
< |
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2400 |
< |
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
2401 |
< |
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
2402 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2403 |
< |
else |
2404 |
< |
ac_cv_prog_cc_stdc=no |
2405 |
< |
ac_save_CC=$CC |
2406 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2614 |
> |
CXXFLAGS="" |
2615 |
> |
cat >conftest.$ac_ext <<_ACEOF |
2616 |
|
/* confdefs.h. */ |
2617 |
|
_ACEOF |
2618 |
|
cat confdefs.h >>conftest.$ac_ext |
2619 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2620 |
|
/* end confdefs.h. */ |
2412 |
– |
#include <stdarg.h> |
2413 |
– |
#include <stdio.h> |
2414 |
– |
#include <sys/types.h> |
2415 |
– |
#include <sys/stat.h> |
2416 |
– |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2417 |
– |
struct buf { int x; }; |
2418 |
– |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2419 |
– |
static char *e (p, i) |
2420 |
– |
char **p; |
2421 |
– |
int i; |
2422 |
– |
{ |
2423 |
– |
return p[i]; |
2424 |
– |
} |
2425 |
– |
static char *f (char * (*g) (char **, int), char **p, ...) |
2426 |
– |
{ |
2427 |
– |
char *s; |
2428 |
– |
va_list v; |
2429 |
– |
va_start (v,p); |
2430 |
– |
s = g (p, va_arg (v,int)); |
2431 |
– |
va_end (v); |
2432 |
– |
return s; |
2433 |
– |
} |
2621 |
|
|
2435 |
– |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2436 |
– |
function prototypes and stuff, but not '\xHH' hex character constants. |
2437 |
– |
These don't provoke an error unfortunately, instead are silently treated |
2438 |
– |
as 'x'. The following induces an error, until -std1 is added to get |
2439 |
– |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2440 |
– |
array size at least. It's necessary to write '\x00'==0 to get something |
2441 |
– |
that's true only with -std1. */ |
2442 |
– |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2443 |
– |
|
2444 |
– |
int test (int i, double x); |
2445 |
– |
struct s1 {int (*f) (int a);}; |
2446 |
– |
struct s2 {int (*f) (double a);}; |
2447 |
– |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2448 |
– |
int argc; |
2449 |
– |
char **argv; |
2622 |
|
int |
2623 |
|
main () |
2624 |
|
{ |
2453 |
– |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2454 |
– |
; |
2455 |
– |
return 0; |
2456 |
– |
} |
2457 |
– |
_ACEOF |
2458 |
– |
# Don't try gcc -ansi; that turns off useful extensions and |
2459 |
– |
# breaks some systems' header files. |
2460 |
– |
# AIX -qlanglvl=ansi |
2461 |
– |
# Ultrix and OSF/1 -std1 |
2462 |
– |
# HP-UX 10.20 and later -Ae |
2463 |
– |
# HP-UX older versions -Aa -D_HPUX_SOURCE |
2464 |
– |
# SVR4 -Xc -D__EXTENSIONS__ |
2465 |
– |
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2466 |
– |
do |
2467 |
– |
CC="$ac_save_CC $ac_arg" |
2468 |
– |
rm -f conftest.$ac_objext |
2469 |
– |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2470 |
– |
(eval $ac_compile) 2>conftest.er1 |
2471 |
– |
ac_status=$? |
2472 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
2473 |
– |
rm -f conftest.er1 |
2474 |
– |
cat conftest.err >&5 |
2475 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2476 |
– |
(exit $ac_status); } && |
2477 |
– |
{ ac_try='test -z "$ac_c_werror_flag" |
2478 |
– |
|| test ! -s conftest.err' |
2479 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2480 |
– |
(eval $ac_try) 2>&5 |
2481 |
– |
ac_status=$? |
2482 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2483 |
– |
(exit $ac_status); }; } && |
2484 |
– |
{ ac_try='test -s conftest.$ac_objext' |
2485 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2486 |
– |
(eval $ac_try) 2>&5 |
2487 |
– |
ac_status=$? |
2488 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2489 |
– |
(exit $ac_status); }; }; then |
2490 |
– |
ac_cv_prog_cc_stdc=$ac_arg |
2491 |
– |
break |
2492 |
– |
else |
2493 |
– |
echo "$as_me: failed program was:" >&5 |
2494 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
2625 |
|
|
2496 |
– |
fi |
2497 |
– |
rm -f conftest.err conftest.$ac_objext |
2498 |
– |
done |
2499 |
– |
rm -f conftest.$ac_ext conftest.$ac_objext |
2500 |
– |
CC=$ac_save_CC |
2501 |
– |
|
2502 |
– |
fi |
2503 |
– |
|
2504 |
– |
case "x$ac_cv_prog_cc_stdc" in |
2505 |
– |
x|xno) |
2506 |
– |
echo "$as_me:$LINENO: result: none needed" >&5 |
2507 |
– |
echo "${ECHO_T}none needed" >&6 ;; |
2508 |
– |
*) |
2509 |
– |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2510 |
– |
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
2511 |
– |
CC="$CC $ac_cv_prog_cc_stdc" ;; |
2512 |
– |
esac |
2513 |
– |
|
2514 |
– |
# Some people use a C++ compiler to compile C. Since we use `exit', |
2515 |
– |
# in C++ we need to declare it. In case someone uses the same compiler |
2516 |
– |
# for both compiling C and C++ we need to have the C++ compiler decide |
2517 |
– |
# the declaration of exit, since it's the most demanding environment. |
2518 |
– |
cat >conftest.$ac_ext <<_ACEOF |
2519 |
– |
#ifndef __cplusplus |
2520 |
– |
choke me |
2521 |
– |
#endif |
2522 |
– |
_ACEOF |
2523 |
– |
rm -f conftest.$ac_objext |
2524 |
– |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2525 |
– |
(eval $ac_compile) 2>conftest.er1 |
2526 |
– |
ac_status=$? |
2527 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
2528 |
– |
rm -f conftest.er1 |
2529 |
– |
cat conftest.err >&5 |
2530 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2531 |
– |
(exit $ac_status); } && |
2532 |
– |
{ ac_try='test -z "$ac_c_werror_flag" |
2533 |
– |
|| test ! -s conftest.err' |
2534 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2535 |
– |
(eval $ac_try) 2>&5 |
2536 |
– |
ac_status=$? |
2537 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2538 |
– |
(exit $ac_status); }; } && |
2539 |
– |
{ ac_try='test -s conftest.$ac_objext' |
2540 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2541 |
– |
(eval $ac_try) 2>&5 |
2542 |
– |
ac_status=$? |
2543 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2544 |
– |
(exit $ac_status); }; }; then |
2545 |
– |
for ac_declaration in \ |
2546 |
– |
'' \ |
2547 |
– |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2548 |
– |
'extern "C" void std::exit (int); using std::exit;' \ |
2549 |
– |
'extern "C" void exit (int) throw ();' \ |
2550 |
– |
'extern "C" void exit (int);' \ |
2551 |
– |
'void exit (int);' |
2552 |
– |
do |
2553 |
– |
cat >conftest.$ac_ext <<_ACEOF |
2554 |
– |
/* confdefs.h. */ |
2555 |
– |
_ACEOF |
2556 |
– |
cat confdefs.h >>conftest.$ac_ext |
2557 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
2558 |
– |
/* end confdefs.h. */ |
2559 |
– |
$ac_declaration |
2560 |
– |
#include <stdlib.h> |
2561 |
– |
int |
2562 |
– |
main () |
2563 |
– |
{ |
2564 |
– |
exit (42); |
2626 |
|
; |
2627 |
|
return 0; |
2628 |
|
} |
2629 |
|
_ACEOF |
2630 |
< |
rm -f conftest.$ac_objext |
2631 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2632 |
< |
(eval $ac_compile) 2>conftest.er1 |
2630 |
> |
rm -rf conftest.$ac_objext |
2631 |
> |
if { (ac_try="$ac_compile" |
2632 |
> |
case "(($ac_try" in |
2633 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2634 |
> |
*) ac_try_echo=$ac_try;; |
2635 |
> |
esac |
2636 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2637 |
> |
(eval "$ac_compile") 2>conftest.er1 |
2638 |
|
ac_status=$? |
2639 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
2640 |
< |
rm -f conftest.er1 |
2640 |
> |
rm -rf conftest.er1 |
2641 |
|
cat conftest.err >&5 |
2642 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2643 |
< |
(exit $ac_status); } && |
2644 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
2645 |
< |
|| test ! -s conftest.err' |
2646 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2581 |
< |
(eval $ac_try) 2>&5 |
2582 |
< |
ac_status=$? |
2583 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2584 |
< |
(exit $ac_status); }; } && |
2585 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2586 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2587 |
< |
(eval $ac_try) 2>&5 |
2588 |
< |
ac_status=$? |
2589 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2590 |
< |
(exit $ac_status); }; }; then |
2643 |
> |
(exit $ac_status); } && { |
2644 |
> |
test -z "$ac_cxx_werror_flag" || |
2645 |
> |
test ! -s conftest.err |
2646 |
> |
} && test -s conftest.$ac_objext; then |
2647 |
|
: |
2648 |
|
else |
2649 |
|
echo "$as_me: failed program was:" >&5 |
2650 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2651 |
|
|
2652 |
< |
continue |
2653 |
< |
fi |
2654 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2599 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2652 |
> |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
2653 |
> |
CXXFLAGS="-g" |
2654 |
> |
cat >conftest.$ac_ext <<_ACEOF |
2655 |
|
/* confdefs.h. */ |
2656 |
|
_ACEOF |
2657 |
|
cat confdefs.h >>conftest.$ac_ext |
2658 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2659 |
|
/* end confdefs.h. */ |
2660 |
< |
$ac_declaration |
2660 |
> |
|
2661 |
|
int |
2662 |
|
main () |
2663 |
|
{ |
2664 |
< |
exit (42); |
2664 |
> |
|
2665 |
|
; |
2666 |
|
return 0; |
2667 |
|
} |
2668 |
|
_ACEOF |
2669 |
< |
rm -f conftest.$ac_objext |
2670 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2671 |
< |
(eval $ac_compile) 2>conftest.er1 |
2669 |
> |
rm -rf conftest.$ac_objext |
2670 |
> |
if { (ac_try="$ac_compile" |
2671 |
> |
case "(($ac_try" in |
2672 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2673 |
> |
*) ac_try_echo=$ac_try;; |
2674 |
> |
esac |
2675 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2676 |
> |
(eval "$ac_compile") 2>conftest.er1 |
2677 |
|
ac_status=$? |
2678 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
2679 |
< |
rm -f conftest.er1 |
2679 |
> |
rm -rf conftest.er1 |
2680 |
|
cat conftest.err >&5 |
2681 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2682 |
< |
(exit $ac_status); } && |
2683 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
2684 |
< |
|| test ! -s conftest.err' |
2685 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2686 |
< |
(eval $ac_try) 2>&5 |
2627 |
< |
ac_status=$? |
2628 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2629 |
< |
(exit $ac_status); }; } && |
2630 |
< |
{ ac_try='test -s conftest.$ac_objext' |
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); }; }; then |
2636 |
< |
break |
2682 |
> |
(exit $ac_status); } && { |
2683 |
> |
test -z "$ac_cxx_werror_flag" || |
2684 |
> |
test ! -s conftest.err |
2685 |
> |
} && test -s conftest.$ac_objext; then |
2686 |
> |
ac_cv_prog_cxx_g=yes |
2687 |
|
else |
2688 |
|
echo "$as_me: failed program was:" >&5 |
2689 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2690 |
|
|
2691 |
+ |
|
2692 |
|
fi |
2693 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2694 |
< |
done |
2644 |
< |
rm -f conftest* |
2645 |
< |
if test -n "$ac_declaration"; then |
2646 |
< |
echo '#ifdef __cplusplus' >>confdefs.h |
2647 |
< |
echo $ac_declaration >>confdefs.h |
2648 |
< |
echo '#endif' >>confdefs.h |
2693 |
> |
|
2694 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
2695 |
|
fi |
2696 |
|
|
2697 |
< |
else |
2698 |
< |
echo "$as_me: failed program was:" >&5 |
2653 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
2697 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
2698 |
> |
fi |
2699 |
|
|
2700 |
+ |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
2701 |
+ |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
2702 |
|
fi |
2703 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2703 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
2704 |
> |
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
2705 |
> |
if test "$ac_test_CXXFLAGS" = set; then |
2706 |
> |
CXXFLAGS=$ac_save_CXXFLAGS |
2707 |
> |
elif test $ac_cv_prog_cxx_g = yes; then |
2708 |
> |
if test "$GXX" = yes; then |
2709 |
> |
CXXFLAGS="-g -O2" |
2710 |
> |
else |
2711 |
> |
CXXFLAGS="-g" |
2712 |
> |
fi |
2713 |
> |
else |
2714 |
> |
if test "$GXX" = yes; then |
2715 |
> |
CXXFLAGS="-O2" |
2716 |
> |
else |
2717 |
> |
CXXFLAGS= |
2718 |
> |
fi |
2719 |
> |
fi |
2720 |
|
ac_ext=c |
2721 |
|
ac_cpp='$CPP $CPPFLAGS' |
2722 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2723 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2724 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2725 |
|
|
2726 |
< |
|
2727 |
< |
ac_ext=cc |
2728 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
2729 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2730 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2668 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2726 |
> |
ac_ext=c |
2727 |
> |
ac_cpp='$CPP $CPPFLAGS' |
2728 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2729 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2730 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2731 |
|
if test -n "$ac_tool_prefix"; then |
2732 |
< |
for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++ |
2732 |
> |
for ac_prog in mpicc icc pathcc pgcc cc xlc gcc |
2733 |
|
do |
2734 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2735 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2736 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2737 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2738 |
< |
if test "${ac_cv_prog_CXX+set}" = set; then |
2736 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2737 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2738 |
> |
if test "${ac_cv_prog_CC+set}" = set; then |
2739 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2740 |
|
else |
2741 |
< |
if test -n "$CXX"; then |
2742 |
< |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
2741 |
> |
if test -n "$CC"; then |
2742 |
> |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2743 |
|
else |
2744 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2745 |
|
for as_dir in $PATH |
2747 |
|
IFS=$as_save_IFS |
2748 |
|
test -z "$as_dir" && as_dir=. |
2749 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2750 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2751 |
< |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
2750 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2751 |
> |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2752 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2753 |
|
break 2 |
2754 |
|
fi |
2755 |
|
done |
2756 |
|
done |
2757 |
+ |
IFS=$as_save_IFS |
2758 |
|
|
2759 |
|
fi |
2760 |
|
fi |
2761 |
< |
CXX=$ac_cv_prog_CXX |
2762 |
< |
if test -n "$CXX"; then |
2763 |
< |
echo "$as_me:$LINENO: result: $CXX" >&5 |
2764 |
< |
echo "${ECHO_T}$CXX" >&6 |
2761 |
> |
CC=$ac_cv_prog_CC |
2762 |
> |
if test -n "$CC"; then |
2763 |
> |
{ echo "$as_me:$LINENO: result: $CC" >&5 |
2764 |
> |
echo "${ECHO_T}$CC" >&6; } |
2765 |
|
else |
2766 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
2767 |
< |
echo "${ECHO_T}no" >&6 |
2766 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
2767 |
> |
echo "${ECHO_T}no" >&6; } |
2768 |
|
fi |
2769 |
|
|
2770 |
< |
test -n "$CXX" && break |
2770 |
> |
|
2771 |
> |
test -n "$CC" && break |
2772 |
|
done |
2773 |
|
fi |
2774 |
< |
if test -z "$CXX"; then |
2775 |
< |
ac_ct_CXX=$CXX |
2776 |
< |
for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++ |
2774 |
> |
if test -z "$CC"; then |
2775 |
> |
ac_ct_CC=$CC |
2776 |
> |
for ac_prog in mpicc icc pathcc pgcc cc xlc gcc |
2777 |
|
do |
2778 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2779 |
|
set dummy $ac_prog; ac_word=$2 |
2780 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2781 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2782 |
< |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
2780 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2781 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2782 |
> |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2783 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2784 |
|
else |
2785 |
< |
if test -n "$ac_ct_CXX"; then |
2786 |
< |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
2785 |
> |
if test -n "$ac_ct_CC"; then |
2786 |
> |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2787 |
|
else |
2788 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2789 |
|
for as_dir in $PATH |
2791 |
|
IFS=$as_save_IFS |
2792 |
|
test -z "$as_dir" && as_dir=. |
2793 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2794 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2795 |
< |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
2794 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2795 |
> |
ac_cv_prog_ac_ct_CC="$ac_prog" |
2796 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2797 |
|
break 2 |
2798 |
|
fi |
2799 |
|
done |
2800 |
|
done |
2801 |
+ |
IFS=$as_save_IFS |
2802 |
|
|
2803 |
|
fi |
2804 |
|
fi |
2805 |
< |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
2806 |
< |
if test -n "$ac_ct_CXX"; then |
2807 |
< |
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
2808 |
< |
echo "${ECHO_T}$ac_ct_CXX" >&6 |
2805 |
> |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2806 |
> |
if test -n "$ac_ct_CC"; then |
2807 |
> |
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2808 |
> |
echo "${ECHO_T}$ac_ct_CC" >&6; } |
2809 |
|
else |
2810 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
2811 |
< |
echo "${ECHO_T}no" >&6 |
2810 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
2811 |
> |
echo "${ECHO_T}no" >&6; } |
2812 |
|
fi |
2813 |
|
|
2814 |
< |
test -n "$ac_ct_CXX" && break |
2814 |
> |
|
2815 |
> |
test -n "$ac_ct_CC" && break |
2816 |
|
done |
2751 |
– |
test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
2817 |
|
|
2818 |
< |
CXX=$ac_ct_CXX |
2818 |
> |
if test "x$ac_ct_CC" = x; then |
2819 |
> |
CC="" |
2820 |
> |
else |
2821 |
> |
case $cross_compiling:$ac_tool_warned in |
2822 |
> |
yes:) |
2823 |
> |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2824 |
> |
whose name does not start with the host triplet. If you think this |
2825 |
> |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2826 |
> |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2827 |
> |
whose name does not start with the host triplet. If you think this |
2828 |
> |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2829 |
> |
ac_tool_warned=yes ;; |
2830 |
> |
esac |
2831 |
> |
CC=$ac_ct_CC |
2832 |
> |
fi |
2833 |
|
fi |
2834 |
|
|
2835 |
|
|
2836 |
+ |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2837 |
+ |
See \`config.log' for more details." >&5 |
2838 |
+ |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
2839 |
+ |
See \`config.log' for more details." >&2;} |
2840 |
+ |
{ (exit 1); exit 1; }; } |
2841 |
+ |
|
2842 |
|
# Provide some information about the compiler. |
2843 |
< |
echo "$as_me:$LINENO:" \ |
2759 |
< |
"checking for C++ compiler version" >&5 |
2843 |
> |
echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2844 |
|
ac_compiler=`set X $ac_compile; echo $2` |
2845 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2846 |
< |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
2845 |
> |
{ (ac_try="$ac_compiler --version >&5" |
2846 |
> |
case "(($ac_try" in |
2847 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2848 |
> |
*) ac_try_echo=$ac_try;; |
2849 |
> |
esac |
2850 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2851 |
> |
(eval "$ac_compiler --version >&5") 2>&5 |
2852 |
|
ac_status=$? |
2853 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2854 |
|
(exit $ac_status); } |
2855 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2856 |
< |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
2855 |
> |
{ (ac_try="$ac_compiler -v >&5" |
2856 |
> |
case "(($ac_try" in |
2857 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2858 |
> |
*) ac_try_echo=$ac_try;; |
2859 |
> |
esac |
2860 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2861 |
> |
(eval "$ac_compiler -v >&5") 2>&5 |
2862 |
|
ac_status=$? |
2863 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2864 |
|
(exit $ac_status); } |
2865 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2866 |
< |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
2865 |
> |
{ (ac_try="$ac_compiler -V >&5" |
2866 |
> |
case "(($ac_try" in |
2867 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2868 |
> |
*) ac_try_echo=$ac_try;; |
2869 |
> |
esac |
2870 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2871 |
> |
(eval "$ac_compiler -V >&5") 2>&5 |
2872 |
|
ac_status=$? |
2873 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2874 |
|
(exit $ac_status); } |
2875 |
|
|
2876 |
< |
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
2877 |
< |
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
2878 |
< |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
2876 |
> |
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2877 |
> |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
2878 |
> |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2879 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2880 |
|
else |
2881 |
|
cat >conftest.$ac_ext <<_ACEOF |
2896 |
|
return 0; |
2897 |
|
} |
2898 |
|
_ACEOF |
2899 |
< |
rm -f conftest.$ac_objext |
2900 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2901 |
< |
(eval $ac_compile) 2>conftest.er1 |
2899 |
> |
rm -rf conftest.$ac_objext |
2900 |
> |
if { (ac_try="$ac_compile" |
2901 |
> |
case "(($ac_try" in |
2902 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2903 |
> |
*) ac_try_echo=$ac_try;; |
2904 |
> |
esac |
2905 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2906 |
> |
(eval "$ac_compile") 2>conftest.er1 |
2907 |
|
ac_status=$? |
2908 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
2909 |
|
rm -f conftest.er1 |
2910 |
|
cat conftest.err >&5 |
2911 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2912 |
< |
(exit $ac_status); } && |
2913 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
2914 |
< |
|| test ! -s conftest.err' |
2915 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2812 |
< |
(eval $ac_try) 2>&5 |
2813 |
< |
ac_status=$? |
2814 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2815 |
< |
(exit $ac_status); }; } && |
2816 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2817 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2818 |
< |
(eval $ac_try) 2>&5 |
2819 |
< |
ac_status=$? |
2820 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2821 |
< |
(exit $ac_status); }; }; then |
2912 |
> |
(exit $ac_status); } && { |
2913 |
> |
test -z "$ac_c_werror_flag" || |
2914 |
> |
test ! -s conftest.err |
2915 |
> |
} && test -s conftest.$ac_objext; then |
2916 |
|
ac_compiler_gnu=yes |
2917 |
|
else |
2918 |
|
echo "$as_me: failed program was:" >&5 |
2919 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2920 |
|
|
2921 |
< |
ac_compiler_gnu=no |
2921 |
> |
ac_compiler_gnu=no |
2922 |
|
fi |
2829 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2830 |
– |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
2923 |
|
|
2924 |
+ |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
2925 |
+ |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2926 |
+ |
|
2927 |
|
fi |
2928 |
< |
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
2929 |
< |
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
2930 |
< |
GXX=`test $ac_compiler_gnu = yes && echo yes` |
2931 |
< |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
2932 |
< |
ac_save_CXXFLAGS=$CXXFLAGS |
2933 |
< |
CXXFLAGS="-g" |
2934 |
< |
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
2935 |
< |
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
2841 |
< |
if test "${ac_cv_prog_cxx_g+set}" = set; then |
2928 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2929 |
> |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
2930 |
> |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
2931 |
> |
ac_test_CFLAGS=${CFLAGS+set} |
2932 |
> |
ac_save_CFLAGS=$CFLAGS |
2933 |
> |
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2934 |
> |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
2935 |
> |
if test "${ac_cv_prog_cc_g+set}" = set; then |
2936 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2937 |
|
else |
2938 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2938 |
> |
ac_save_c_werror_flag=$ac_c_werror_flag |
2939 |
> |
ac_c_werror_flag=yes |
2940 |
> |
ac_cv_prog_cc_g=no |
2941 |
> |
CFLAGS="-g" |
2942 |
> |
cat >conftest.$ac_ext <<_ACEOF |
2943 |
|
/* confdefs.h. */ |
2944 |
|
_ACEOF |
2945 |
|
cat confdefs.h >>conftest.$ac_ext |
2954 |
|
return 0; |
2955 |
|
} |
2956 |
|
_ACEOF |
2957 |
< |
rm -f conftest.$ac_objext |
2958 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2959 |
< |
(eval $ac_compile) 2>conftest.er1 |
2957 |
> |
rm -rf conftest.$ac_objext |
2958 |
> |
if { (ac_try="$ac_compile" |
2959 |
> |
case "(($ac_try" in |
2960 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2961 |
> |
*) ac_try_echo=$ac_try;; |
2962 |
> |
esac |
2963 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2964 |
> |
(eval "$ac_compile") 2>conftest.er1 |
2965 |
|
ac_status=$? |
2966 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
2967 |
|
rm -f conftest.er1 |
2968 |
|
cat conftest.err >&5 |
2969 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2970 |
< |
(exit $ac_status); } && |
2971 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
2972 |
< |
|| test ! -s conftest.err' |
2973 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2974 |
< |
(eval $ac_try) 2>&5 |
2872 |
< |
ac_status=$? |
2873 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2874 |
< |
(exit $ac_status); }; } && |
2875 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2876 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2877 |
< |
(eval $ac_try) 2>&5 |
2878 |
< |
ac_status=$? |
2879 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2880 |
< |
(exit $ac_status); }; }; then |
2881 |
< |
ac_cv_prog_cxx_g=yes |
2970 |
> |
(exit $ac_status); } && { |
2971 |
> |
test -z "$ac_c_werror_flag" || |
2972 |
> |
test ! -s conftest.err |
2973 |
> |
} && test -s conftest.$ac_objext; then |
2974 |
> |
ac_cv_prog_cc_g=yes |
2975 |
|
else |
2976 |
|
echo "$as_me: failed program was:" >&5 |
2977 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2978 |
|
|
2979 |
< |
ac_cv_prog_cxx_g=no |
2980 |
< |
fi |
2888 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2889 |
< |
fi |
2890 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
2891 |
< |
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
2892 |
< |
if test "$ac_test_CXXFLAGS" = set; then |
2893 |
< |
CXXFLAGS=$ac_save_CXXFLAGS |
2894 |
< |
elif test $ac_cv_prog_cxx_g = yes; then |
2895 |
< |
if test "$GXX" = yes; then |
2896 |
< |
CXXFLAGS="-g -O2" |
2897 |
< |
else |
2898 |
< |
CXXFLAGS="-g" |
2899 |
< |
fi |
2900 |
< |
else |
2901 |
< |
if test "$GXX" = yes; then |
2902 |
< |
CXXFLAGS="-O2" |
2903 |
< |
else |
2904 |
< |
CXXFLAGS= |
2905 |
< |
fi |
2906 |
< |
fi |
2907 |
< |
for ac_declaration in \ |
2908 |
< |
'' \ |
2909 |
< |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2910 |
< |
'extern "C" void std::exit (int); using std::exit;' \ |
2911 |
< |
'extern "C" void exit (int) throw ();' \ |
2912 |
< |
'extern "C" void exit (int);' \ |
2913 |
< |
'void exit (int);' |
2914 |
< |
do |
2915 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2979 |
> |
CFLAGS="" |
2980 |
> |
cat >conftest.$ac_ext <<_ACEOF |
2981 |
|
/* confdefs.h. */ |
2982 |
|
_ACEOF |
2983 |
|
cat confdefs.h >>conftest.$ac_ext |
2984 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2985 |
|
/* end confdefs.h. */ |
2986 |
< |
$ac_declaration |
2922 |
< |
#include <stdlib.h> |
2986 |
> |
|
2987 |
|
int |
2988 |
|
main () |
2989 |
|
{ |
2990 |
< |
exit (42); |
2990 |
> |
|
2991 |
|
; |
2992 |
|
return 0; |
2993 |
|
} |
2994 |
|
_ACEOF |
2995 |
< |
rm -f conftest.$ac_objext |
2996 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2997 |
< |
(eval $ac_compile) 2>conftest.er1 |
2995 |
> |
rm -rf conftest.$ac_objext |
2996 |
> |
if { (ac_try="$ac_compile" |
2997 |
> |
case "(($ac_try" in |
2998 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2999 |
> |
*) ac_try_echo=$ac_try;; |
3000 |
> |
esac |
3001 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3002 |
> |
(eval "$ac_compile") 2>conftest.er1 |
3003 |
|
ac_status=$? |
3004 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
3005 |
< |
rm -f conftest.er1 |
3005 |
> |
rm -rf conftest.er1 |
3006 |
|
cat conftest.err >&5 |
3007 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3008 |
< |
(exit $ac_status); } && |
3009 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
3010 |
< |
|| test ! -s conftest.err' |
3011 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2943 |
< |
(eval $ac_try) 2>&5 |
2944 |
< |
ac_status=$? |
2945 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2946 |
< |
(exit $ac_status); }; } && |
2947 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2948 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2949 |
< |
(eval $ac_try) 2>&5 |
2950 |
< |
ac_status=$? |
2951 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2952 |
< |
(exit $ac_status); }; }; then |
3008 |
> |
(exit $ac_status); } && { |
3009 |
> |
test -z "$ac_c_werror_flag" || |
3010 |
> |
test ! -s conftest.err |
3011 |
> |
} && test -s conftest.$ac_objext; then |
3012 |
|
: |
3013 |
|
else |
3014 |
|
echo "$as_me: failed program was:" >&5 |
3015 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3016 |
|
|
3017 |
< |
continue |
3018 |
< |
fi |
3019 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2961 |
< |
cat >conftest.$ac_ext <<_ACEOF |
3017 |
> |
ac_c_werror_flag=$ac_save_c_werror_flag |
3018 |
> |
CFLAGS="-g" |
3019 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3020 |
|
/* confdefs.h. */ |
3021 |
|
_ACEOF |
3022 |
|
cat confdefs.h >>conftest.$ac_ext |
3023 |
|
cat >>conftest.$ac_ext <<_ACEOF |
3024 |
|
/* end confdefs.h. */ |
3025 |
< |
$ac_declaration |
3025 |
> |
|
3026 |
|
int |
3027 |
|
main () |
3028 |
|
{ |
3029 |
< |
exit (42); |
3029 |
> |
|
3030 |
|
; |
3031 |
|
return 0; |
3032 |
|
} |
3033 |
|
_ACEOF |
3034 |
< |
rm -f conftest.$ac_objext |
3035 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3036 |
< |
(eval $ac_compile) 2>conftest.er1 |
3034 |
> |
rm -rf conftest.$ac_objext |
3035 |
> |
if { (ac_try="$ac_compile" |
3036 |
> |
case "(($ac_try" in |
3037 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3038 |
> |
*) ac_try_echo=$ac_try;; |
3039 |
> |
esac |
3040 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3041 |
> |
(eval "$ac_compile") 2>conftest.er1 |
3042 |
|
ac_status=$? |
3043 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
3044 |
|
rm -f conftest.er1 |
3045 |
|
cat conftest.err >&5 |
3046 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3047 |
< |
(exit $ac_status); } && |
3048 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
3049 |
< |
|| test ! -s conftest.err' |
3050 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3051 |
< |
(eval $ac_try) 2>&5 |
2989 |
< |
ac_status=$? |
2990 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2991 |
< |
(exit $ac_status); }; } && |
2992 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2993 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2994 |
< |
(eval $ac_try) 2>&5 |
2995 |
< |
ac_status=$? |
2996 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2997 |
< |
(exit $ac_status); }; }; then |
2998 |
< |
break |
3047 |
> |
(exit $ac_status); } && { |
3048 |
> |
test -z "$ac_c_werror_flag" || |
3049 |
> |
test ! -s conftest.err |
3050 |
> |
} && test -s conftest.$ac_objext; then |
3051 |
> |
ac_cv_prog_cc_g=yes |
3052 |
|
else |
3053 |
|
echo "$as_me: failed program was:" >&5 |
3054 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3055 |
|
|
3056 |
+ |
|
3057 |
|
fi |
3058 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3059 |
< |
done |
3006 |
< |
rm -f conftest* |
3007 |
< |
if test -n "$ac_declaration"; then |
3008 |
< |
echo '#ifdef __cplusplus' >>confdefs.h |
3009 |
< |
echo $ac_declaration >>confdefs.h |
3010 |
< |
echo '#endif' >>confdefs.h |
3058 |
> |
|
3059 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
3060 |
|
fi |
3061 |
|
|
3062 |
< |
ac_ext=c |
3063 |
< |
ac_cpp='$CPP $CPPFLAGS' |
3015 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3016 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3017 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3062 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
3063 |
> |
fi |
3064 |
|
|
3065 |
< |
|
3066 |
< |
OOPSE_TEMPLATE_FLAGS="" |
3067 |
< |
if test $ac_cv_cxx_compiler_gnu = no; then |
3068 |
< |
echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5 |
3069 |
< |
echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6 |
3070 |
< |
echo 'void f(){}' > conftest.cc |
3071 |
< |
if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then |
3072 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
3073 |
< |
echo "${ECHO_T}yes" >&6 |
3074 |
< |
OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink" |
3065 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
3066 |
> |
ac_c_werror_flag=$ac_save_c_werror_flag |
3067 |
> |
fi |
3068 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3069 |
> |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
3070 |
> |
if test "$ac_test_CFLAGS" = set; then |
3071 |
> |
CFLAGS=$ac_save_CFLAGS |
3072 |
> |
elif test $ac_cv_prog_cc_g = yes; then |
3073 |
> |
if test "$GCC" = yes; then |
3074 |
> |
CFLAGS="-g -O2" |
3075 |
|
else |
3076 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
3031 |
< |
echo "${ECHO_T}no" >&6 |
3076 |
> |
CFLAGS="-g" |
3077 |
|
fi |
3078 |
< |
rm -f conftest* |
3079 |
< |
echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -instances=static" >&5 |
3080 |
< |
echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6 |
3036 |
< |
echo 'void f(){}' > conftest.cc |
3037 |
< |
if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then |
3038 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
3039 |
< |
echo "${ECHO_T}yes" >&6 |
3040 |
< |
OOPSE_TEMPLATE_FLAGS="-instances=static" |
3078 |
> |
else |
3079 |
> |
if test "$GCC" = yes; then |
3080 |
> |
CFLAGS="-O2" |
3081 |
|
else |
3082 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
3043 |
< |
echo "${ECHO_T}no" >&6 |
3082 |
> |
CFLAGS= |
3083 |
|
fi |
3084 |
< |
rm -f conftest* |
3085 |
< |
echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -pto" >&5 |
3086 |
< |
echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6 |
3087 |
< |
echo 'void f(){}' > conftest.cc |
3088 |
< |
if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then |
3089 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
3090 |
< |
echo "${ECHO_T}yes" >&6 |
3091 |
< |
OOPSE_TEMPLATE_FLAGS="-pto" |
3092 |
< |
else |
3093 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
3094 |
< |
echo "${ECHO_T}no" >&6 |
3095 |
< |
fi |
3096 |
< |
rm -f conftest* |
3097 |
< |
echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -LANG:std" >&5 |
3098 |
< |
echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6 |
3099 |
< |
echo 'void f(){}' > conftest.cc |
3100 |
< |
if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then |
3101 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
3102 |
< |
echo "${ECHO_T}yes" >&6 |
3084 |
> |
fi |
3085 |
> |
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3086 |
> |
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
3087 |
> |
if test "${ac_cv_prog_cc_c89+set}" = set; then |
3088 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3089 |
> |
else |
3090 |
> |
ac_cv_prog_cc_c89=no |
3091 |
> |
ac_save_CC=$CC |
3092 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3093 |
> |
/* confdefs.h. */ |
3094 |
> |
_ACEOF |
3095 |
> |
cat confdefs.h >>conftest.$ac_ext |
3096 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
3097 |
> |
/* end confdefs.h. */ |
3098 |
> |
#include <stdarg.h> |
3099 |
> |
#include <stdio.h> |
3100 |
> |
#include <sys/types.h> |
3101 |
> |
#include <sys/stat.h> |
3102 |
> |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3103 |
> |
struct buf { int x; }; |
3104 |
> |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3105 |
> |
static char *e (p, i) |
3106 |
> |
char **p; |
3107 |
> |
int i; |
3108 |
> |
{ |
3109 |
> |
return p[i]; |
3110 |
> |
} |
3111 |
> |
static char *f (char * (*g) (char **, int), char **p, ...) |
3112 |
> |
{ |
3113 |
> |
char *s; |
3114 |
> |
va_list v; |
3115 |
> |
va_start (v,p); |
3116 |
> |
s = g (p, va_arg (v,int)); |
3117 |
> |
va_end (v); |
3118 |
> |
return s; |
3119 |
> |
} |
3120 |
|
|
3121 |
+ |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3122 |
+ |
function prototypes and stuff, but not '\xHH' hex character constants. |
3123 |
+ |
These don't provoke an error unfortunately, instead are silently treated |
3124 |
+ |
as 'x'. The following induces an error, until -std is added to get |
3125 |
+ |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3126 |
+ |
array size at least. It's necessary to write '\x00'==0 to get something |
3127 |
+ |
that's true only with -std. */ |
3128 |
+ |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3129 |
|
|
3130 |
< |
EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std" |
3131 |
< |
else |
3132 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
3133 |
< |
echo "${ECHO_T}no" >&6 |
3134 |
< |
fi |
3130 |
> |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3131 |
> |
inside strings and character constants. */ |
3132 |
> |
#define FOO(x) 'x' |
3133 |
> |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3134 |
> |
|
3135 |
> |
int test (int i, double x); |
3136 |
> |
struct s1 {int (*f) (int a);}; |
3137 |
> |
struct s2 {int (*f) (double a);}; |
3138 |
> |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3139 |
> |
int argc; |
3140 |
> |
char **argv; |
3141 |
> |
int |
3142 |
> |
main () |
3143 |
> |
{ |
3144 |
> |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3145 |
> |
; |
3146 |
> |
return 0; |
3147 |
> |
} |
3148 |
> |
_ACEOF |
3149 |
> |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3150 |
> |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3151 |
> |
do |
3152 |
> |
CC="$ac_save_CC $ac_arg" |
3153 |
> |
rm -rf conftest.$ac_objext |
3154 |
> |
if { (ac_try="$ac_compile" |
3155 |
> |
case "(($ac_try" in |
3156 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3157 |
> |
*) ac_try_echo=$ac_try;; |
3158 |
> |
esac |
3159 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3160 |
> |
(eval "$ac_compile") 2>conftest.er1 |
3161 |
> |
ac_status=$? |
3162 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
3163 |
> |
rm -f conftest.er1 |
3164 |
> |
cat conftest.err >&5 |
3165 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3166 |
> |
(exit $ac_status); } && { |
3167 |
> |
test -z "$ac_c_werror_flag" || |
3168 |
> |
test ! -s conftest.err |
3169 |
> |
} && test -s conftest.$ac_objext; then |
3170 |
> |
ac_cv_prog_cc_c89=$ac_arg |
3171 |
> |
else |
3172 |
> |
echo "$as_me: failed program was:" >&5 |
3173 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
3174 |
> |
|
3175 |
> |
|
3176 |
|
fi |
3177 |
|
|
3178 |
+ |
rm -rf core conftest.err conftest.$ac_objext |
3179 |
+ |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
3180 |
+ |
done |
3181 |
+ |
rm -rf conftest.$ac_ext |
3182 |
+ |
CC=$ac_save_CC |
3183 |
|
|
3184 |
+ |
fi |
3185 |
+ |
# AC_CACHE_VAL |
3186 |
+ |
case "x$ac_cv_prog_cc_c89" in |
3187 |
+ |
x) |
3188 |
+ |
{ echo "$as_me:$LINENO: result: none needed" >&5 |
3189 |
+ |
echo "${ECHO_T}none needed" >&6; } ;; |
3190 |
+ |
xno) |
3191 |
+ |
{ echo "$as_me:$LINENO: result: unsupported" >&5 |
3192 |
+ |
echo "${ECHO_T}unsupported" >&6; } ;; |
3193 |
+ |
*) |
3194 |
+ |
CC="$CC $ac_cv_prog_cc_c89" |
3195 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3196 |
+ |
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
3197 |
+ |
esac |
3198 |
|
|
3199 |
|
|
3200 |
< |
ac_ext=f90 |
3201 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3202 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3203 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3200 |
> |
ac_ext=c |
3201 |
> |
ac_cpp='$CPP $CPPFLAGS' |
3202 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3203 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3204 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3205 |
> |
|
3206 |
> |
ac_ext=${ac_fc_srcext-f} |
3207 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
3208 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
3209 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
3210 |
|
if test -n "$ac_tool_prefix"; then |
3211 |
< |
for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
3211 |
> |
for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
3212 |
|
do |
3213 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3214 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3215 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3216 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3217 |
< |
if test "${ac_cv_prog_F90+set}" = set; then |
3218 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3089 |
< |
else |
3090 |
< |
if test -n "$F90"; then |
3091 |
< |
ac_cv_prog_F90="$F90" # Let the user override the test. |
3215 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3216 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3217 |
> |
if test "${ac_cv_prog_FC+set}" = set; then |
3218 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3219 |
|
else |
3220 |
+ |
if test -n "$FC"; then |
3221 |
+ |
ac_cv_prog_FC="$FC" # Let the user override the test. |
3222 |
+ |
else |
3223 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3224 |
|
for as_dir in $PATH |
3225 |
|
do |
3226 |
|
IFS=$as_save_IFS |
3227 |
|
test -z "$as_dir" && as_dir=. |
3228 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
3229 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3230 |
< |
ac_cv_prog_F90="$ac_tool_prefix$ac_prog" |
3229 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3230 |
> |
ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
3231 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3232 |
|
break 2 |
3233 |
|
fi |
3234 |
|
done |
3235 |
|
done |
3236 |
+ |
IFS=$as_save_IFS |
3237 |
|
|
3238 |
|
fi |
3239 |
|
fi |
3240 |
< |
F90=$ac_cv_prog_F90 |
3241 |
< |
if test -n "$F90"; then |
3242 |
< |
echo "$as_me:$LINENO: result: $F90" >&5 |
3243 |
< |
echo "${ECHO_T}$F90" >&6 |
3240 |
> |
FC=$ac_cv_prog_FC |
3241 |
> |
if test -n "$FC"; then |
3242 |
> |
{ echo "$as_me:$LINENO: result: $FC" >&5 |
3243 |
> |
echo "${ECHO_T}$FC" >&6; } |
3244 |
|
else |
3245 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
3246 |
< |
echo "${ECHO_T}no" >&6 |
3245 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
3246 |
> |
echo "${ECHO_T}no" >&6; } |
3247 |
|
fi |
3248 |
|
|
3249 |
< |
test -n "$F90" && break |
3249 |
> |
|
3250 |
> |
test -n "$FC" && break |
3251 |
|
done |
3252 |
|
fi |
3253 |
< |
if test -z "$F90"; then |
3254 |
< |
ac_ct_F90=$F90 |
3255 |
< |
for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
3253 |
> |
if test -z "$FC"; then |
3254 |
> |
ac_ct_FC=$FC |
3255 |
> |
for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
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_F90+set}" = set; then |
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_FC+set}" = set; then |
3262 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3263 |
|
else |
3264 |
< |
if test -n "$ac_ct_F90"; then |
3265 |
< |
ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test. |
3264 |
> |
if test -n "$ac_ct_FC"; then |
3265 |
> |
ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. |
3266 |
|
else |
3267 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3268 |
|
for as_dir in $PATH |
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_F90="$ac_prog" |
3273 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3274 |
> |
ac_cv_prog_ac_ct_FC="$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 |
+ |
IFS=$as_save_IFS |
3281 |
|
|
3282 |
|
fi |
3283 |
|
fi |
3284 |
< |
ac_ct_F90=$ac_cv_prog_ac_ct_F90 |
3285 |
< |
if test -n "$ac_ct_F90"; then |
3286 |
< |
echo "$as_me:$LINENO: result: $ac_ct_F90" >&5 |
3287 |
< |
echo "${ECHO_T}$ac_ct_F90" >&6 |
3284 |
> |
ac_ct_FC=$ac_cv_prog_ac_ct_FC |
3285 |
> |
if test -n "$ac_ct_FC"; then |
3286 |
> |
{ echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 |
3287 |
> |
echo "${ECHO_T}$ac_ct_FC" >&6; } |
3288 |
|
else |
3289 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
3290 |
< |
echo "${ECHO_T}no" >&6 |
3289 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
3290 |
> |
echo "${ECHO_T}no" >&6; } |
3291 |
|
fi |
3292 |
|
|
3293 |
< |
test -n "$ac_ct_F90" && break |
3293 |
> |
|
3294 |
> |
test -n "$ac_ct_FC" && break |
3295 |
|
done |
3296 |
|
|
3297 |
< |
F90=$ac_ct_F90 |
3297 |
> |
if test "x$ac_ct_FC" = x; then |
3298 |
> |
FC="" |
3299 |
> |
else |
3300 |
> |
case $cross_compiling:$ac_tool_warned in |
3301 |
> |
yes:) |
3302 |
> |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
3303 |
> |
whose name does not start with the host triplet. If you think this |
3304 |
> |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
3305 |
> |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
3306 |
> |
whose name does not start with the host triplet. If you think this |
3307 |
> |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
3308 |
> |
ac_tool_warned=yes ;; |
3309 |
> |
esac |
3310 |
> |
FC=$ac_ct_FC |
3311 |
> |
fi |
3312 |
|
fi |
3313 |
|
|
3314 |
|
|
3315 |
< |
# If we don't use `.F90' as extension, the preprocessor is not run on the |
3316 |
< |
# input file. |
3315 |
> |
# Provide some information about the compiler. |
3316 |
> |
echo "$as_me:$LINENO: checking for Fortran compiler version" >&5 |
3317 |
> |
ac_compiler=`set X $ac_compile; echo $2` |
3318 |
> |
{ (ac_try="$ac_compiler --version >&5" |
3319 |
> |
case "(($ac_try" in |
3320 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3321 |
> |
*) ac_try_echo=$ac_try;; |
3322 |
> |
esac |
3323 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3324 |
> |
(eval "$ac_compiler --version >&5") 2>&5 |
3325 |
> |
ac_status=$? |
3326 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3327 |
> |
(exit $ac_status); } |
3328 |
> |
{ (ac_try="$ac_compiler -v >&5" |
3329 |
> |
case "(($ac_try" in |
3330 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3331 |
> |
*) ac_try_echo=$ac_try;; |
3332 |
> |
esac |
3333 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3334 |
> |
(eval "$ac_compiler -v >&5") 2>&5 |
3335 |
> |
ac_status=$? |
3336 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3337 |
> |
(exit $ac_status); } |
3338 |
> |
{ (ac_try="$ac_compiler -V >&5" |
3339 |
> |
case "(($ac_try" in |
3340 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3341 |
> |
*) ac_try_echo=$ac_try;; |
3342 |
> |
esac |
3343 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3344 |
> |
(eval "$ac_compiler -V >&5") 2>&5 |
3345 |
> |
ac_status=$? |
3346 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3347 |
> |
(exit $ac_status); } |
3348 |
> |
rm -rf a.out |
3349 |
> |
|
3350 |
> |
# If we don't use `.F' as extension, the preprocessor is not run on the |
3351 |
> |
# input file. (Note that this only needs to work for GNU compilers.) |
3352 |
|
ac_save_ext=$ac_ext |
3353 |
< |
ac_ext=F90 |
3354 |
< |
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5 |
3355 |
< |
echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6 |
3356 |
< |
if test "${ac_cv_f90_compiler_gnu+set}" = set; then |
3353 |
> |
ac_ext=F |
3354 |
> |
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 |
3355 |
> |
echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6; } |
3356 |
> |
if test "${ac_cv_fc_compiler_gnu+set}" = set; then |
3357 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3358 |
|
else |
3359 |
|
cat >conftest.$ac_ext <<_ACEOF |
3360 |
< |
|
3178 |
< |
program main |
3179 |
< |
|
3360 |
> |
program main |
3361 |
|
#ifndef __GNUC__ |
3362 |
|
choke me |
3363 |
|
#endif |
3364 |
|
|
3365 |
< |
end program main |
3185 |
< |
|
3365 |
> |
end |
3366 |
|
_ACEOF |
3367 |
< |
rm -f conftest.$ac_objext |
3368 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3369 |
< |
(eval $ac_compile) 2>conftest.er1 |
3367 |
> |
rm -rf conftest.$ac_objext |
3368 |
> |
if { (ac_try="$ac_compile" |
3369 |
> |
case "(($ac_try" in |
3370 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3371 |
> |
*) ac_try_echo=$ac_try;; |
3372 |
> |
esac |
3373 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3374 |
> |
(eval "$ac_compile") 2>conftest.er1 |
3375 |
|
ac_status=$? |
3376 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
3377 |
|
rm -f conftest.er1 |
3378 |
|
cat conftest.err >&5 |
3379 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3380 |
< |
(exit $ac_status); } && |
3381 |
< |
{ ac_try='test -z "$ac_f90_werror_flag" |
3382 |
< |
|| test ! -s conftest.err' |
3383 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3199 |
< |
(eval $ac_try) 2>&5 |
3200 |
< |
ac_status=$? |
3201 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3202 |
< |
(exit $ac_status); }; } && |
3203 |
< |
{ ac_try='test -s conftest.$ac_objext' |
3204 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3205 |
< |
(eval $ac_try) 2>&5 |
3206 |
< |
ac_status=$? |
3207 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3208 |
< |
(exit $ac_status); }; }; then |
3380 |
> |
(exit $ac_status); } && { |
3381 |
> |
test -z "$ac_fc_werror_flag" || |
3382 |
> |
test ! -s conftest.err |
3383 |
> |
} && test -s conftest.$ac_objext; then |
3384 |
|
ac_compiler_gnu=yes |
3385 |
|
else |
3386 |
|
echo "$as_me: failed program was:" >&5 |
3387 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3388 |
|
|
3389 |
< |
ac_compiler_gnu=no |
3389 |
> |
ac_compiler_gnu=no |
3390 |
|
fi |
3216 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3217 |
– |
ac_cv_f90_compiler_gnu=$ac_compiler_gnu |
3391 |
|
|
3392 |
+ |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
3393 |
+ |
ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
3394 |
+ |
|
3395 |
|
fi |
3396 |
< |
echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5 |
3397 |
< |
echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6 |
3396 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 |
3397 |
> |
echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6; } |
3398 |
|
ac_ext=$ac_save_ext |
3399 |
< |
G95=`test $ac_compiler_gnu = yes && echo yes` |
3400 |
< |
ac_ext=c |
3401 |
< |
ac_cpp='$CPP $CPPFLAGS' |
3402 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3403 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3404 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3399 |
> |
ac_test_FFLAGS=${FCFLAGS+set} |
3400 |
> |
ac_save_FFLAGS=$FCFLAGS |
3401 |
> |
FCFLAGS= |
3402 |
> |
{ echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 |
3403 |
> |
echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6; } |
3404 |
> |
if test "${ac_cv_prog_fc_g+set}" = set; then |
3405 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3406 |
> |
else |
3407 |
> |
FCFLAGS=-g |
3408 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3409 |
> |
program main |
3410 |
|
|
3411 |
+ |
end |
3412 |
+ |
_ACEOF |
3413 |
+ |
rm -rf conftest.$ac_objext |
3414 |
+ |
if { (ac_try="$ac_compile" |
3415 |
+ |
case "(($ac_try" in |
3416 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3417 |
+ |
*) ac_try_echo=$ac_try;; |
3418 |
+ |
esac |
3419 |
+ |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3420 |
+ |
(eval "$ac_compile") 2>conftest.er1 |
3421 |
+ |
ac_status=$? |
3422 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
3423 |
+ |
rm -f conftest.er1 |
3424 |
+ |
cat conftest.err >&5 |
3425 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3426 |
+ |
(exit $ac_status); } && { |
3427 |
+ |
test -z "$ac_fc_werror_flag" || |
3428 |
+ |
test ! -s conftest.err |
3429 |
+ |
} && test -s conftest.$ac_objext; then |
3430 |
+ |
ac_cv_prog_fc_g=yes |
3431 |
+ |
else |
3432 |
+ |
echo "$as_me: failed program was:" >&5 |
3433 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3434 |
|
|
3435 |
+ |
ac_cv_prog_fc_g=no |
3436 |
+ |
fi |
3437 |
|
|
3438 |
+ |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
3439 |
|
|
3440 |
< |
|
3441 |
< |
# Try to determine native compiler flags that allow us to use F90 suffix |
3442 |
< |
# for preprocessed f90 source. |
3443 |
< |
|
3444 |
< |
if test "$ac_test_PREPFLAG" != "set"; then |
3445 |
< |
PREPFLAG="" |
3446 |
< |
case "${host_cpu}-${host_os}" in |
3447 |
< |
|
3448 |
< |
*linux*) if test "$F90" = ifc -o "$F90" = ifort; then |
3449 |
< |
PREPFLAG="-fpp1 " |
3243 |
< |
fi;; |
3244 |
< |
*aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
3245 |
< |
PREPFLAG="-qsuffix=cpp=F90 " |
3246 |
< |
fi;; |
3247 |
< |
*darwin*) |
3248 |
< |
if test "$F90" = f90 -o "$F90" = xlf90; then |
3249 |
< |
PREPFLAG="-qsuffix=cpp=F90 " |
3250 |
< |
fi;; |
3251 |
< |
esac |
3252 |
< |
|
3253 |
< |
if test -z "$PREPFLAG"; then |
3254 |
< |
{ echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5 |
3255 |
< |
echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;} |
3256 |
< |
PREPFLAG="" |
3440 |
> |
fi |
3441 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 |
3442 |
> |
echo "${ECHO_T}$ac_cv_prog_fc_g" >&6; } |
3443 |
> |
if test "$ac_test_FFLAGS" = set; then |
3444 |
> |
FCFLAGS=$ac_save_FFLAGS |
3445 |
> |
elif test $ac_cv_prog_fc_g = yes; then |
3446 |
> |
if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
3447 |
> |
FCFLAGS="-g -O2" |
3448 |
> |
else |
3449 |
> |
FCFLAGS="-g" |
3450 |
|
fi |
3451 |
< |
|
3452 |
< |
echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5 |
3453 |
< |
echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6 |
3454 |
< |
|
3455 |
< |
|
3456 |
< |
ac_ext=f90 |
3264 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3265 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3266 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3267 |
< |
|
3268 |
< |
ac_save_ext=$ac_ext |
3269 |
< |
ac_ext=F90 |
3270 |
< |
ac_save_F90FLAGS=$F90FLAGS |
3271 |
< |
|
3272 |
< |
if test "$PREPFLAG"; then |
3273 |
< |
F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST" |
3451 |
> |
else |
3452 |
> |
if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
3453 |
> |
FCFLAGS="-O2" |
3454 |
> |
else |
3455 |
> |
FCFLAGS= |
3456 |
> |
fi |
3457 |
|
fi |
3458 |
|
|
3459 |
< |
cat >conftest.$ac_ext <<_ACEOF |
3460 |
< |
|
3461 |
< |
|
3462 |
< |
program main |
3463 |
< |
|
3281 |
< |
integer :: i |
3282 |
< |
i = 1 |
3459 |
> |
ac_ext=c |
3460 |
> |
ac_cpp='$CPP $CPPFLAGS' |
3461 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3462 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3463 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3464 |
|
|
3465 |
< |
|
3466 |
< |
end program main |
3467 |
< |
|
3465 |
> |
ac_ext=c |
3466 |
> |
ac_cpp='$CPP $CPPFLAGS' |
3467 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3468 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3469 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3470 |
> |
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3471 |
> |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
3472 |
> |
# On Suns, sometimes $CPP names a directory. |
3473 |
> |
if test -n "$CPP" && test -d "$CPP"; then |
3474 |
> |
CPP= |
3475 |
> |
fi |
3476 |
> |
if test -z "$CPP"; then |
3477 |
> |
if test "${ac_cv_prog_CPP+set}" = set; then |
3478 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3479 |
> |
else |
3480 |
> |
# Double quotes because CPP needs to be expanded |
3481 |
> |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
3482 |
> |
do |
3483 |
> |
ac_preproc_ok=false |
3484 |
> |
for ac_c_preproc_warn_flag in '' yes |
3485 |
> |
do |
3486 |
> |
# Use a header file that comes with gcc, so configuring glibc |
3487 |
> |
# with a fresh cross-compiler works. |
3488 |
> |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3489 |
> |
# <limits.h> exists even on freestanding compilers. |
3490 |
> |
# On the NeXT, cc -E runs the code through the compiler's parser, |
3491 |
> |
# not just through cpp. "Syntax error" is here to catch this case. |
3492 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3493 |
> |
/* confdefs.h. */ |
3494 |
|
_ACEOF |
3495 |
< |
rm -f conftest.$ac_objext |
3496 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3497 |
< |
(eval $ac_compile) 2>conftest.er1 |
3495 |
> |
cat confdefs.h >>conftest.$ac_ext |
3496 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
3497 |
> |
/* end confdefs.h. */ |
3498 |
> |
#ifdef __STDC__ |
3499 |
> |
# include <limits.h> |
3500 |
> |
#else |
3501 |
> |
# include <assert.h> |
3502 |
> |
#endif |
3503 |
> |
Syntax error |
3504 |
> |
_ACEOF |
3505 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
3506 |
> |
case "(($ac_try" in |
3507 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3508 |
> |
*) ac_try_echo=$ac_try;; |
3509 |
> |
esac |
3510 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3511 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3512 |
|
ac_status=$? |
3513 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
3514 |
< |
rm -f conftest.er1 |
3514 |
> |
rm -rf conftest.er1 |
3515 |
|
cat conftest.err >&5 |
3516 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3517 |
< |
(exit $ac_status); } && |
3518 |
< |
{ ac_try='test -z "$ac_f90_werror_flag" |
3519 |
< |
|| test ! -s conftest.err' |
3520 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3521 |
< |
(eval $ac_try) 2>&5 |
3301 |
< |
ac_status=$? |
3302 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3303 |
< |
(exit $ac_status); }; } && |
3304 |
< |
{ ac_try='test -s conftest.$ac_objext' |
3305 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3306 |
< |
(eval $ac_try) 2>&5 |
3307 |
< |
ac_status=$? |
3308 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3309 |
< |
(exit $ac_status); }; }; then |
3310 |
< |
prepflagworks=1 |
3517 |
> |
(exit $ac_status); } >/dev/null && { |
3518 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3519 |
> |
test ! -s conftest.err |
3520 |
> |
}; then |
3521 |
> |
: |
3522 |
|
else |
3523 |
|
echo "$as_me: failed program was:" >&5 |
3524 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3525 |
|
|
3526 |
< |
prepflagworks=0 |
3526 |
> |
# Broken: fails on valid input. |
3527 |
> |
continue |
3528 |
|
fi |
3317 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3529 |
|
|
3530 |
< |
F90FLAGS=$ac_save_F90FLAGS |
3320 |
< |
ac_ext=$ac_save_ext |
3321 |
< |
ac_ext=c |
3322 |
< |
ac_cpp='$CPP $CPPFLAGS' |
3323 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3324 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3325 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3530 |
> |
rm -rf conftest.err conftest.$ac_ext |
3531 |
|
|
3532 |
< |
|
3533 |
< |
if test "$prepflagworks" = 1; then |
3534 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
3535 |
< |
echo "${ECHO_T}yes" >&6 |
3331 |
< |
|
3332 |
< |
else |
3333 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
3334 |
< |
echo "${ECHO_T}no" >&6 |
3335 |
< |
{ { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5 |
3336 |
< |
echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;} |
3337 |
< |
{ (exit 1); exit 1; }; } |
3338 |
< |
fi |
3339 |
< |
fi |
3340 |
< |
|
3341 |
< |
|
3342 |
< |
|
3343 |
< |
|
3344 |
< |
|
3345 |
< |
# Try to determine native compiler flags that allow us to use F90 suffix |
3346 |
< |
# for preprocessed f90 source with -D type defines |
3347 |
< |
|
3348 |
< |
if test "$ac_test_PREPDEFFLAG" != "set"; then |
3349 |
< |
PREPDEFFLAG="" |
3350 |
< |
case "${host_cpu}-${host_os}" in |
3351 |
< |
|
3352 |
< |
*linux*) if test "$F90" = ifc -o "$F90" = ifort; then |
3353 |
< |
PREPDEFFLAG=" " |
3354 |
< |
fi;; |
3355 |
< |
*aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
3356 |
< |
PREPDEFFLAG="-WF," |
3357 |
< |
fi;; |
3358 |
< |
*darwin*) |
3359 |
< |
if test "$F90" = f90 -o "$F90" = xlf90; then |
3360 |
< |
PREPDEFFLAG="-WF," |
3361 |
< |
fi;; |
3362 |
< |
esac |
3363 |
< |
|
3364 |
< |
if test -z "$PREPDEFFLAG"; then |
3365 |
< |
{ echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5 |
3366 |
< |
echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;} |
3367 |
< |
PREPDEFFLAG=" " |
3368 |
< |
fi |
3369 |
< |
|
3370 |
< |
echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5 |
3371 |
< |
echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6 |
3372 |
< |
|
3373 |
< |
|
3374 |
< |
ac_ext=f90 |
3375 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3376 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3377 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3378 |
< |
|
3379 |
< |
ac_save_ext=$ac_ext |
3380 |
< |
ac_ext=F90 |
3381 |
< |
ac_save_F90FLAGS=$F90FLAGS |
3382 |
< |
|
3383 |
< |
if test "$PREPDEFFLAG"; then |
3384 |
< |
F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST" |
3385 |
< |
fi |
3386 |
< |
|
3387 |
< |
cat >conftest.$ac_ext <<_ACEOF |
3388 |
< |
|
3389 |
< |
|
3390 |
< |
program main |
3391 |
< |
|
3392 |
< |
integer :: i |
3393 |
< |
#ifdef TEST |
3394 |
< |
i = 1 |
3395 |
< |
#else |
3396 |
< |
choke me |
3397 |
< |
#endif |
3398 |
< |
|
3399 |
< |
|
3400 |
< |
end program main |
3401 |
< |
|
3532 |
> |
# OK, works on sane cases. Now check whether nonexistent headers |
3533 |
> |
# can be detected and how. |
3534 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3535 |
> |
/* confdefs.h. */ |
3536 |
|
_ACEOF |
3537 |
< |
rm -f conftest.$ac_objext |
3538 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3539 |
< |
(eval $ac_compile) 2>conftest.er1 |
3537 |
> |
cat confdefs.h >>conftest.$ac_ext |
3538 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
3539 |
> |
/* end confdefs.h. */ |
3540 |
> |
#include <ac_nonexistent.h> |
3541 |
> |
_ACEOF |
3542 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
3543 |
> |
case "(($ac_try" in |
3544 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3545 |
> |
*) ac_try_echo=$ac_try;; |
3546 |
> |
esac |
3547 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3548 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3549 |
|
ac_status=$? |
3550 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
3551 |
|
rm -f conftest.er1 |
3552 |
|
cat conftest.err >&5 |
3553 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3554 |
< |
(exit $ac_status); } && |
3555 |
< |
{ ac_try='test -z "$ac_f90_werror_flag" |
3556 |
< |
|| test ! -s conftest.err' |
3557 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3558 |
< |
(eval $ac_try) 2>&5 |
3559 |
< |
ac_status=$? |
3417 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3418 |
< |
(exit $ac_status); }; } && |
3419 |
< |
{ ac_try='test -s conftest.$ac_objext' |
3420 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3421 |
< |
(eval $ac_try) 2>&5 |
3422 |
< |
ac_status=$? |
3423 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3424 |
< |
(exit $ac_status); }; }; then |
3425 |
< |
prepdefflagworks=1 |
3554 |
> |
(exit $ac_status); } >/dev/null && { |
3555 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3556 |
> |
test ! -s conftest.err |
3557 |
> |
}; then |
3558 |
> |
# Broken: success on invalid input. |
3559 |
> |
continue |
3560 |
|
else |
3561 |
|
echo "$as_me: failed program was:" >&5 |
3562 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3563 |
|
|
3564 |
< |
prepdefflagworks=0 |
3564 |
> |
# Passes both tests. |
3565 |
> |
ac_preproc_ok=: |
3566 |
> |
break |
3567 |
|
fi |
3432 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3568 |
|
|
3569 |
< |
F90FLAGS=$ac_save_F90FLAGS |
3435 |
< |
ac_ext=$ac_save_ext |
3436 |
< |
ac_ext=c |
3437 |
< |
ac_cpp='$CPP $CPPFLAGS' |
3438 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3439 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3440 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3569 |
> |
rm -rf conftest.err conftest.$ac_ext |
3570 |
|
|
3571 |
< |
|
3572 |
< |
|
3573 |
< |
if test "$prepdefflagworks" = 1; then |
3574 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
3575 |
< |
echo "${ECHO_T}yes" >&6 |
3447 |
< |
|
3448 |
< |
else |
3449 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
3450 |
< |
echo "${ECHO_T}no" >&6 |
3451 |
< |
{ { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5 |
3452 |
< |
echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;} |
3453 |
< |
{ (exit 1); exit 1; }; } |
3454 |
< |
fi |
3571 |
> |
done |
3572 |
> |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3573 |
> |
rm -rf conftest.err conftest.$ac_ext |
3574 |
> |
if $ac_preproc_ok; then |
3575 |
> |
break |
3576 |
|
fi |
3577 |
|
|
3578 |
< |
ac_ext=f90 |
3579 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3459 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3460 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3578 |
> |
done |
3579 |
> |
ac_cv_prog_CPP=$CPP |
3580 |
|
|
3581 |
< |
|
3582 |
< |
|
3464 |
< |
ac_ext=f90 |
3465 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3466 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3467 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3468 |
< |
echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5 |
3469 |
< |
echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6 |
3470 |
< |
if test "${ac_cv_prog_f90_v+set}" = set; then |
3471 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3581 |
> |
fi |
3582 |
> |
CPP=$ac_cv_prog_CPP |
3583 |
|
else |
3584 |
< |
|
3585 |
< |
cat >conftest.$ac_ext <<_ACEOF |
3586 |
< |
|
3587 |
< |
program main |
3588 |
< |
|
3589 |
< |
|
3590 |
< |
end program main |
3591 |
< |
|
3584 |
> |
ac_cv_prog_CPP=$CPP |
3585 |
> |
fi |
3586 |
> |
{ echo "$as_me:$LINENO: result: $CPP" >&5 |
3587 |
> |
echo "${ECHO_T}$CPP" >&6; } |
3588 |
> |
ac_preproc_ok=false |
3589 |
> |
for ac_c_preproc_warn_flag in '' yes |
3590 |
> |
do |
3591 |
> |
# Use a header file that comes with gcc, so configuring glibc |
3592 |
> |
# with a fresh cross-compiler works. |
3593 |
> |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3594 |
> |
# <limits.h> exists even on freestanding compilers. |
3595 |
> |
# On the NeXT, cc -E runs the code through the compiler's parser, |
3596 |
> |
# not just through cpp. "Syntax error" is here to catch this case. |
3597 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3598 |
> |
/* confdefs.h. */ |
3599 |
|
_ACEOF |
3600 |
< |
rm -f conftest.$ac_objext |
3601 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3602 |
< |
(eval $ac_compile) 2>conftest.er1 |
3600 |
> |
cat confdefs.h >>conftest.$ac_ext |
3601 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
3602 |
> |
/* end confdefs.h. */ |
3603 |
> |
#ifdef __STDC__ |
3604 |
> |
# include <limits.h> |
3605 |
> |
#else |
3606 |
> |
# include <assert.h> |
3607 |
> |
#endif |
3608 |
> |
Syntax error |
3609 |
> |
_ACEOF |
3610 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
3611 |
> |
case "(($ac_try" in |
3612 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3613 |
> |
*) ac_try_echo=$ac_try;; |
3614 |
> |
esac |
3615 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3616 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3617 |
|
ac_status=$? |
3618 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
3619 |
|
rm -f conftest.er1 |
3620 |
|
cat conftest.err >&5 |
3621 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3622 |
< |
(exit $ac_status); } && |
3623 |
< |
{ ac_try='test -z "$ac_f90_werror_flag" |
3624 |
< |
|| test ! -s conftest.err' |
3625 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3626 |
< |
(eval $ac_try) 2>&5 |
3627 |
< |
ac_status=$? |
3628 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3629 |
< |
(exit $ac_status); }; } && |
3498 |
< |
{ ac_try='test -s conftest.$ac_objext' |
3499 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3500 |
< |
(eval $ac_try) 2>&5 |
3501 |
< |
ac_status=$? |
3502 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3503 |
< |
(exit $ac_status); }; }; then |
3504 |
< |
ac_cv_prog_f90_v= |
3505 |
< |
# Try some options frequently used verbose output |
3506 |
< |
for ac_verb in -v -verbose --verbose -V -\#\#\#; do |
3507 |
< |
ac_ext=f90 |
3508 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3509 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3510 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3622 |
> |
(exit $ac_status); } >/dev/null && { |
3623 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3624 |
> |
test ! -s conftest.err |
3625 |
> |
}; then |
3626 |
> |
: |
3627 |
> |
else |
3628 |
> |
echo "$as_me: failed program was:" >&5 |
3629 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
3630 |
|
|
3631 |
< |
cat >conftest.$ac_ext <<_ACEOF |
3631 |
> |
# Broken: fails on valid input. |
3632 |
> |
continue |
3633 |
> |
fi |
3634 |
|
|
3635 |
< |
program main |
3635 |
> |
rm -rf conftest.err conftest.$ac_ext |
3636 |
|
|
3637 |
< |
|
3638 |
< |
end program main |
3639 |
< |
|
3637 |
> |
# OK, works on sane cases. Now check whether nonexistent headers |
3638 |
> |
# can be detected and how. |
3639 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3640 |
> |
/* confdefs.h. */ |
3641 |
|
_ACEOF |
3642 |
< |
|
3643 |
< |
# Compile and link our simple test program by passing a flag (argument |
3644 |
< |
# 1 to this macro) to the Fortran 90 compiler in order to get |
3645 |
< |
# "verbose" output that we can then parse for the Fortran 90 linker |
3646 |
< |
# flags. |
3647 |
< |
ac_save_F90FLAGS=$F90FLAGS |
3648 |
< |
F90FLAGS="$F90FLAGS $ac_verb" |
3649 |
< |
|
3650 |
< |
(eval echo $as_me:3528: \"$ac_link\") >&5 |
3651 |
< |
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
3652 |
< |
echo "$ac_f90_v_output" >&5 |
3653 |
< |
F90FLAGS=$ac_save_F90FLAGS |
3654 |
< |
|
3655 |
< |
rm -f conftest.* |
3656 |
< |
ac_ext=f90 |
3657 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3658 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3659 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3660 |
< |
|
3661 |
< |
# If we are using xlf then replace all the commas with spaces. |
3662 |
< |
if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then |
3663 |
< |
ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'` |
3664 |
< |
fi |
3543 |
< |
|
3544 |
< |
# If we are using Cray Fortran then delete quotes. |
3545 |
< |
# Use "\"" instead of '"' for font-lock-mode. |
3546 |
< |
# FIXME: a more general fix for quoted arguments with spaces? |
3547 |
< |
if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then |
3548 |
< |
ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"` |
3549 |
< |
fi |
3550 |
< |
# look for -l* and *.a constructs in the output |
3551 |
< |
for ac_arg in $ac_f90_v_output; do |
3552 |
< |
case $ac_arg in |
3553 |
< |
[\\/]*.a | ?:[\\/]*.a | -[lLRu]*) |
3554 |
< |
ac_cv_prog_f90_v=$ac_verb |
3555 |
< |
break 2 ;; |
3556 |
< |
esac |
3557 |
< |
done |
3558 |
< |
done |
3559 |
< |
if test -z "$ac_cv_prog_f90_v"; then |
3560 |
< |
{ echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5 |
3561 |
< |
echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;} |
3562 |
< |
fi |
3642 |
> |
cat confdefs.h >>conftest.$ac_ext |
3643 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
3644 |
> |
/* end confdefs.h. */ |
3645 |
> |
#include <ac_nonexistent.h> |
3646 |
> |
_ACEOF |
3647 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
3648 |
> |
case "(($ac_try" in |
3649 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3650 |
> |
*) ac_try_echo=$ac_try;; |
3651 |
> |
esac |
3652 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3653 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3654 |
> |
ac_status=$? |
3655 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
3656 |
> |
rm -f conftest.er1 |
3657 |
> |
cat conftest.err >&5 |
3658 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3659 |
> |
(exit $ac_status); } >/dev/null && { |
3660 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3661 |
> |
test ! -s conftest.err |
3662 |
> |
}; then |
3663 |
> |
# Broken: success on invalid input. |
3664 |
> |
continue |
3665 |
|
else |
3666 |
|
echo "$as_me: failed program was:" >&5 |
3667 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3668 |
|
|
3669 |
< |
{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5 |
3670 |
< |
echo "$as_me: WARNING: compilation failed" >&2;} |
3669 |
> |
# Passes both tests. |
3670 |
> |
ac_preproc_ok=: |
3671 |
> |
break |
3672 |
|
fi |
3570 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3673 |
|
|
3674 |
+ |
rm -rf conftest.err conftest.$ac_ext |
3675 |
+ |
|
3676 |
+ |
done |
3677 |
+ |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3678 |
+ |
rm -rf conftest.err conftest.$ac_ext |
3679 |
+ |
if $ac_preproc_ok; then |
3680 |
+ |
: |
3681 |
+ |
else |
3682 |
+ |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3683 |
+ |
See \`config.log' for more details." >&5 |
3684 |
+ |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
3685 |
+ |
See \`config.log' for more details." >&2;} |
3686 |
+ |
{ (exit 1); exit 1; }; } |
3687 |
|
fi |
3688 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5 |
3689 |
< |
echo "${ECHO_T}$ac_cv_prog_f90_v" >&6 |
3690 |
< |
echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5 |
3691 |
< |
echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6 |
3692 |
< |
if test "${ac_cv_flibs+set}" = set; then |
3688 |
> |
|
3689 |
> |
ac_ext=c |
3690 |
> |
ac_cpp='$CPP $CPPFLAGS' |
3691 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3692 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3693 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3694 |
> |
|
3695 |
> |
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3696 |
> |
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
3697 |
> |
if test "${ac_cv_path_GREP+set}" = set; then |
3698 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3699 |
|
else |
3700 |
< |
if test "x$F90LIBS" != "x"; then |
3701 |
< |
ac_cv_f90libs="$F90LIBS" # Let the user override the test. |
3700 |
> |
# Extract the first word of "grep ggrep" to use in msg output |
3701 |
> |
if test -z "$GREP"; then |
3702 |
> |
set dummy grep ggrep; ac_prog_name=$2 |
3703 |
> |
if test "${ac_cv_path_GREP+set}" = set; then |
3704 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3705 |
|
else |
3706 |
+ |
ac_path_GREP_found=false |
3707 |
+ |
# Loop through the user's path and test for each of PROGNAME-LIST |
3708 |
+ |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3709 |
+ |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3710 |
+ |
do |
3711 |
+ |
IFS=$as_save_IFS |
3712 |
+ |
test -z "$as_dir" && as_dir=. |
3713 |
+ |
for ac_prog in grep ggrep; do |
3714 |
+ |
for ac_exec_ext in '' $ac_executable_extensions; do |
3715 |
+ |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3716 |
+ |
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
3717 |
+ |
# Check for GNU ac_path_GREP and select it if it is found. |
3718 |
+ |
# Check for GNU $ac_path_GREP |
3719 |
+ |
case `"$ac_path_GREP" --version 2>&1` in |
3720 |
+ |
*GNU*) |
3721 |
+ |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
3722 |
+ |
*) |
3723 |
+ |
ac_count=0 |
3724 |
+ |
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3725 |
+ |
while : |
3726 |
+ |
do |
3727 |
+ |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
3728 |
+ |
mv "conftest.tmp" "conftest.in" |
3729 |
+ |
cp "conftest.in" "conftest.nl" |
3730 |
+ |
echo 'GREP' >> "conftest.nl" |
3731 |
+ |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3732 |
+ |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3733 |
+ |
ac_count=`expr $ac_count + 1` |
3734 |
+ |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
3735 |
+ |
# Best one so far, save it but keep looking for a better one |
3736 |
+ |
ac_cv_path_GREP="$ac_path_GREP" |
3737 |
+ |
ac_path_GREP_max=$ac_count |
3738 |
+ |
fi |
3739 |
+ |
# 10*(2^10) chars as input seems more than enough |
3740 |
+ |
test $ac_count -gt 10 && break |
3741 |
+ |
done |
3742 |
+ |
rm -rf conftest.in conftest.tmp conftest.nl conftest.out;; |
3743 |
+ |
esac |
3744 |
|
|
3584 |
– |
ac_ext=f90 |
3585 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3586 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3587 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3745 |
|
|
3746 |
< |
cat >conftest.$ac_ext <<_ACEOF |
3746 |
> |
$ac_path_GREP_found && break 3 |
3747 |
> |
done |
3748 |
> |
done |
3749 |
|
|
3750 |
< |
program main |
3750 |
> |
done |
3751 |
> |
IFS=$as_save_IFS |
3752 |
|
|
3753 |
|
|
3754 |
< |
end program main |
3754 |
> |
fi |
3755 |
|
|
3756 |
< |
_ACEOF |
3757 |
< |
|
3758 |
< |
# Compile and link our simple test program by passing a flag (argument |
3759 |
< |
# 1 to this macro) to the Fortran 90 compiler in order to get |
3760 |
< |
# "verbose" output that we can then parse for the Fortran 90 linker |
3601 |
< |
# flags. |
3602 |
< |
ac_save_F90FLAGS=$F90FLAGS |
3603 |
< |
F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v" |
3604 |
< |
|
3605 |
< |
(eval echo $as_me:3605: \"$ac_link\") >&5 |
3606 |
< |
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
3607 |
< |
echo "$ac_f90_v_output" >&5 |
3608 |
< |
F90FLAGS=$ac_save_F90FLAGS |
3609 |
< |
|
3610 |
< |
rm -f conftest.* |
3611 |
< |
ac_ext=f90 |
3612 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3613 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3614 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3615 |
< |
|
3616 |
< |
# If we are using xlf then replace all the commas with spaces. |
3617 |
< |
if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then |
3618 |
< |
ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'` |
3756 |
> |
GREP="$ac_cv_path_GREP" |
3757 |
> |
if test -z "$GREP"; then |
3758 |
> |
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3759 |
> |
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3760 |
> |
{ (exit 1); exit 1; }; } |
3761 |
|
fi |
3762 |
|
|
3763 |
< |
# If we are using Cray Fortran then delete quotes. |
3764 |
< |
# Use "\"" instead of '"' for font-lock-mode. |
3623 |
< |
# FIXME: a more general fix for quoted arguments with spaces? |
3624 |
< |
if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then |
3625 |
< |
ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"` |
3763 |
> |
else |
3764 |
> |
ac_cv_path_GREP=$GREP |
3765 |
|
fi |
3766 |
|
|
3628 |
– |
ac_cv_f90libs= |
3767 |
|
|
3768 |
< |
# Save positional arguments (if any) |
3769 |
< |
ac_save_positional="$@" |
3768 |
> |
fi |
3769 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3770 |
> |
echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
3771 |
> |
GREP="$ac_cv_path_GREP" |
3772 |
|
|
3633 |
– |
set X $ac_f90_v_output |
3634 |
– |
while test $# != 1; do |
3635 |
– |
shift |
3636 |
– |
ac_arg=$1 |
3637 |
– |
case $ac_arg in |
3638 |
– |
[\\/]*.a | ?:[\\/]*.a) |
3639 |
– |
ac_exists=false |
3640 |
– |
for ac_i in $ac_cv_f90libs; do |
3641 |
– |
if test x"$ac_arg" = x"$ac_i"; then |
3642 |
– |
ac_exists=true |
3643 |
– |
break |
3644 |
– |
fi |
3645 |
– |
done |
3773 |
|
|
3774 |
< |
if test x"$ac_exists" = xtrue; then |
3775 |
< |
: |
3774 |
> |
{ echo "$as_me:$LINENO: checking for egrep" >&5 |
3775 |
> |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
3776 |
> |
if test "${ac_cv_path_EGREP+set}" = set; then |
3777 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3778 |
|
else |
3779 |
< |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
3780 |
< |
fi |
3781 |
< |
|
3782 |
< |
;; |
3783 |
< |
-bI:*) |
3784 |
< |
ac_exists=false |
3785 |
< |
for ac_i in $ac_cv_f90libs; do |
3786 |
< |
if test x"$ac_arg" = x"$ac_i"; then |
3787 |
< |
ac_exists=true |
3788 |
< |
break |
3779 |
> |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3780 |
> |
then ac_cv_path_EGREP="$GREP -E" |
3781 |
> |
else |
3782 |
> |
# Extract the first word of "egrep" to use in msg output |
3783 |
> |
if test -z "$EGREP"; then |
3784 |
> |
set dummy egrep; ac_prog_name=$2 |
3785 |
> |
if test "${ac_cv_path_EGREP+set}" = set; then |
3786 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3787 |
> |
else |
3788 |
> |
ac_path_EGREP_found=false |
3789 |
> |
# Loop through the user's path and test for each of PROGNAME-LIST |
3790 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3791 |
> |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3792 |
> |
do |
3793 |
> |
IFS=$as_save_IFS |
3794 |
> |
test -z "$as_dir" && as_dir=. |
3795 |
> |
for ac_prog in egrep; do |
3796 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
3797 |
> |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
3798 |
> |
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
3799 |
> |
# Check for GNU ac_path_EGREP and select it if it is found. |
3800 |
> |
# Check for GNU $ac_path_EGREP |
3801 |
> |
case `"$ac_path_EGREP" --version 2>&1` in |
3802 |
> |
*GNU*) |
3803 |
> |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
3804 |
> |
*) |
3805 |
> |
ac_count=0 |
3806 |
> |
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3807 |
> |
while : |
3808 |
> |
do |
3809 |
> |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
3810 |
> |
mv "conftest.tmp" "conftest.in" |
3811 |
> |
cp "conftest.in" "conftest.nl" |
3812 |
> |
echo 'EGREP' >> "conftest.nl" |
3813 |
> |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3814 |
> |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3815 |
> |
ac_count=`expr $ac_count + 1` |
3816 |
> |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
3817 |
> |
# Best one so far, save it but keep looking for a better one |
3818 |
> |
ac_cv_path_EGREP="$ac_path_EGREP" |
3819 |
> |
ac_path_EGREP_max=$ac_count |
3820 |
|
fi |
3821 |
+ |
# 10*(2^10) chars as input seems more than enough |
3822 |
+ |
test $ac_count -gt 10 && break |
3823 |
|
done |
3824 |
+ |
rm -rf conftest.in conftest.tmp conftest.nl conftest.out;; |
3825 |
+ |
esac |
3826 |
|
|
3827 |
< |
if test x"$ac_exists" = xtrue; then |
3828 |
< |
: |
3665 |
< |
else |
3666 |
< |
if test "$ac_compiler_gnu" = yes; then |
3667 |
< |
for ac_link_opt in $ac_arg; do |
3668 |
< |
ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt" |
3827 |
> |
|
3828 |
> |
$ac_path_EGREP_found && break 3 |
3829 |
|
done |
3830 |
< |
else |
3671 |
< |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
3672 |
< |
fi |
3673 |
< |
fi |
3830 |
> |
done |
3831 |
|
|
3832 |
< |
;; |
3833 |
< |
# Ignore these flags. |
3677 |
< |
-lang* | -lcrt[012].o | -lc | -lgcc | -LANG:=*) |
3678 |
< |
;; |
3679 |
< |
-lkernel32) |
3680 |
< |
test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
3681 |
< |
;; |
3682 |
< |
-[LRuY]) |
3683 |
< |
# These flags, when seen by themselves, take an argument. |
3684 |
< |
# We remove the space between option and argument and re-iterate |
3685 |
< |
# unless we find an empty arg or a new option (starting with -) |
3686 |
< |
case $2 in |
3687 |
< |
"" | -*);; |
3688 |
< |
*) |
3689 |
< |
ac_arg="$ac_arg$2" |
3832 |
> |
done |
3833 |
> |
IFS=$as_save_IFS |
3834 |
|
|
3691 |
– |
shift; shift |
3692 |
– |
set X $ac_arg "$@" |
3693 |
– |
;; |
3694 |
– |
esac |
3695 |
– |
;; |
3696 |
– |
-YP,*) |
3697 |
– |
for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
3698 |
– |
ac_exists=false |
3699 |
– |
for ac_i in $ac_cv_f90libs; do |
3700 |
– |
if test x"$ac_j" = x"$ac_i"; then |
3701 |
– |
ac_exists=true |
3702 |
– |
break |
3703 |
– |
fi |
3704 |
– |
done |
3835 |
|
|
3706 |
– |
if test x"$ac_exists" = xtrue; then |
3707 |
– |
: |
3708 |
– |
else |
3709 |
– |
ac_arg="$ac_arg $ac_j" |
3710 |
– |
ac_cv_f90libs="$ac_cv_f90libs $ac_j" |
3836 |
|
fi |
3837 |
|
|
3838 |
< |
done |
3839 |
< |
;; |
3840 |
< |
-[lLR]*) |
3841 |
< |
ac_exists=false |
3842 |
< |
for ac_i in $ac_cv_f90libs; do |
3843 |
< |
if test x"$ac_arg" = x"$ac_i"; then |
3719 |
< |
ac_exists=true |
3720 |
< |
break |
3721 |
< |
fi |
3722 |
< |
done |
3838 |
> |
EGREP="$ac_cv_path_EGREP" |
3839 |
> |
if test -z "$EGREP"; then |
3840 |
> |
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3841 |
> |
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3842 |
> |
{ (exit 1); exit 1; }; } |
3843 |
> |
fi |
3844 |
|
|
3724 |
– |
if test x"$ac_exists" = xtrue; then |
3725 |
– |
: |
3845 |
|
else |
3846 |
< |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
3846 |
> |
ac_cv_path_EGREP=$EGREP |
3847 |
|
fi |
3848 |
|
|
3730 |
– |
;; |
3731 |
– |
# Ignore everything else. |
3732 |
– |
esac |
3733 |
– |
done |
3734 |
– |
# restore positional arguments |
3735 |
– |
set X $ac_save_positional; shift |
3849 |
|
|
3850 |
< |
# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, |
3851 |
< |
# then we insist that the "run path" must be an absolute path (i.e. it |
3852 |
< |
# must begin with a "/"). |
3853 |
< |
case `(uname -sr) 2>/dev/null` in |
3854 |
< |
"SunOS 5"*) |
3742 |
< |
ac_ld_run_path=`echo $ac_f90_v_output | |
3743 |
< |
sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` |
3744 |
< |
test "x$ac_ld_run_path" != x && |
3850 |
> |
fi |
3851 |
> |
fi |
3852 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3853 |
> |
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
3854 |
> |
EGREP="$ac_cv_path_EGREP" |
3855 |
|
|
3856 |
< |
if test "$ac_compiler_gnu" = yes; then |
3857 |
< |
for ac_link_opt in $ac_ld_run_path; do |
3858 |
< |
ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt" |
3859 |
< |
done |
3856 |
> |
|
3857 |
> |
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3858 |
> |
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
3859 |
> |
LN_S=$as_ln_s |
3860 |
> |
if test "$LN_S" = "ln -s"; then |
3861 |
> |
{ echo "$as_me:$LINENO: result: yes" >&5 |
3862 |
> |
echo "${ECHO_T}yes" >&6; } |
3863 |
|
else |
3864 |
< |
ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path" |
3864 |
> |
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3865 |
> |
echo "${ECHO_T}no, using $LN_S" >&6; } |
3866 |
|
fi |
3753 |
– |
;; |
3754 |
– |
esac |
3755 |
– |
fi # test "x$F90LIBS" = "x" |
3867 |
|
|
3868 |
< |
fi |
3869 |
< |
echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5 |
3870 |
< |
echo "${ECHO_T}$ac_cv_flibs" >&6 |
3871 |
< |
F90LIBS="$ac_cv_f90libs" |
3761 |
< |
|
3762 |
< |
ac_ext=f90 |
3763 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3764 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3765 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3766 |
< |
|
3767 |
< |
|
3768 |
< |
echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5 |
3769 |
< |
echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6 |
3770 |
< |
if test "${ac_cv_f90_mangling+set}" = set; then |
3868 |
> |
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3869 |
> |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
3870 |
> |
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
3871 |
> |
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
3872 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3873 |
|
else |
3874 |
< |
ac_ext=f90 |
3875 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3876 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3877 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3777 |
< |
cat >conftest.$ac_ext <<_ACEOF |
3778 |
< |
subroutine foobar() |
3779 |
< |
return |
3780 |
< |
end |
3781 |
< |
subroutine foo_bar() |
3782 |
< |
return |
3783 |
< |
end |
3874 |
> |
cat >conftest.make <<\_ACEOF |
3875 |
> |
SHELL = /bin/sh |
3876 |
> |
all: |
3877 |
> |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
3878 |
|
_ACEOF |
3879 |
< |
rm -f conftest.$ac_objext |
3880 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3881 |
< |
(eval $ac_compile) 2>conftest.er1 |
3882 |
< |
ac_status=$? |
3883 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
3884 |
< |
rm -f conftest.er1 |
3885 |
< |
cat conftest.err >&5 |
3886 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3887 |
< |
(exit $ac_status); } && |
3888 |
< |
{ ac_try='test -z "$ac_f90_werror_flag" |
3889 |
< |
|| test ! -s conftest.err' |
3890 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3891 |
< |
(eval $ac_try) 2>&5 |
3798 |
< |
ac_status=$? |
3799 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3800 |
< |
(exit $ac_status); }; } && |
3801 |
< |
{ ac_try='test -s conftest.$ac_objext' |
3802 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3803 |
< |
(eval $ac_try) 2>&5 |
3804 |
< |
ac_status=$? |
3805 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3806 |
< |
(exit $ac_status); }; }; then |
3807 |
< |
mv conftest.$ac_objext cf90_test.$ac_objext |
3808 |
< |
|
3809 |
< |
ac_ext=c |
3810 |
< |
ac_cpp='$CPP $CPPFLAGS' |
3811 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3812 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3813 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3814 |
< |
|
3815 |
< |
ac_save_LIBS=$LIBS |
3816 |
< |
LIBS="cf90_test.$ac_objext $F90LIBS $LIBS" |
3817 |
< |
|
3818 |
< |
ac_success=no |
3819 |
< |
for ac_foobar in foobar FOOBAR; do |
3820 |
< |
for ac_underscore in "" "_"; do |
3821 |
< |
ac_func="$ac_foobar$ac_underscore" |
3822 |
< |
cat >conftest.$ac_ext <<_ACEOF |
3823 |
< |
/* confdefs.h. */ |
3824 |
< |
_ACEOF |
3825 |
< |
cat confdefs.h >>conftest.$ac_ext |
3826 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
3827 |
< |
/* end confdefs.h. */ |
3828 |
< |
|
3829 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
3830 |
< |
#ifdef __cplusplus |
3831 |
< |
extern "C" |
3832 |
< |
#endif |
3833 |
< |
/* We use char because int might match the return type of a gcc2 |
3834 |
< |
builtin and then its argument prototype would still apply. */ |
3835 |
< |
char $ac_func (); |
3836 |
< |
int |
3837 |
< |
main () |
3838 |
< |
{ |
3839 |
< |
$ac_func (); |
3840 |
< |
; |
3841 |
< |
return 0; |
3842 |
< |
} |
3843 |
< |
_ACEOF |
3844 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
3845 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3846 |
< |
(eval $ac_link) 2>conftest.er1 |
3847 |
< |
ac_status=$? |
3848 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
3849 |
< |
rm -f conftest.er1 |
3850 |
< |
cat conftest.err >&5 |
3851 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3852 |
< |
(exit $ac_status); } && |
3853 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
3854 |
< |
|| test ! -s conftest.err' |
3855 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3856 |
< |
(eval $ac_try) 2>&5 |
3857 |
< |
ac_status=$? |
3858 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3859 |
< |
(exit $ac_status); }; } && |
3860 |
< |
{ ac_try='test -s conftest$ac_exeext' |
3861 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3862 |
< |
(eval $ac_try) 2>&5 |
3863 |
< |
ac_status=$? |
3864 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3865 |
< |
(exit $ac_status); }; }; then |
3866 |
< |
ac_success=yes; break 2 |
3879 |
> |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
3880 |
> |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3881 |
> |
*@@@%%%=?*=@@@%%%*) |
3882 |
> |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
3883 |
> |
*) |
3884 |
> |
eval ac_cv_prog_make_${ac_make}_set=no;; |
3885 |
> |
esac |
3886 |
> |
rm -rf conftest.make |
3887 |
> |
fi |
3888 |
> |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3889 |
> |
{ echo "$as_me:$LINENO: result: yes" >&5 |
3890 |
> |
echo "${ECHO_T}yes" >&6; } |
3891 |
> |
SET_MAKE= |
3892 |
|
else |
3893 |
< |
echo "$as_me: failed program was:" >&5 |
3894 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
3895 |
< |
|
3893 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
3894 |
> |
echo "${ECHO_T}no" >&6; } |
3895 |
> |
SET_MAKE="MAKE=${MAKE-make}" |
3896 |
|
fi |
3872 |
– |
rm -f conftest.err conftest.$ac_objext \ |
3873 |
– |
conftest$ac_exeext conftest.$ac_ext |
3874 |
– |
done |
3875 |
– |
done |
3897 |
|
|
3898 |
< |
if test "$ac_success" = "yes"; then |
3899 |
< |
case $ac_foobar in |
3900 |
< |
foobar) |
3901 |
< |
ac_case=lower |
3902 |
< |
ac_foo_bar=foo_bar |
3903 |
< |
;; |
3904 |
< |
FOOBAR) |
3884 |
< |
ac_case=upper |
3885 |
< |
ac_foo_bar=FOO_BAR |
3886 |
< |
;; |
3887 |
< |
esac |
3888 |
< |
|
3889 |
< |
ac_success_extra=no |
3890 |
< |
for ac_extra in "" "_"; do |
3891 |
< |
ac_func="$ac_foo_bar$ac_underscore$ac_extra" |
3892 |
< |
|
3893 |
< |
cat >conftest.$ac_ext <<_ACEOF |
3894 |
< |
/* confdefs.h. */ |
3895 |
< |
_ACEOF |
3896 |
< |
cat confdefs.h >>conftest.$ac_ext |
3897 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
3898 |
< |
/* end confdefs.h. */ |
3899 |
< |
|
3900 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
3901 |
< |
#ifdef __cplusplus |
3902 |
< |
extern "C" |
3903 |
< |
#endif |
3904 |
< |
/* We use char because int might match the return type of a gcc2 |
3905 |
< |
builtin and then its argument prototype would still apply. */ |
3906 |
< |
char $ac_func (); |
3907 |
< |
int |
3908 |
< |
main () |
3909 |
< |
{ |
3910 |
< |
$ac_func (); |
3911 |
< |
; |
3912 |
< |
return 0; |
3913 |
< |
} |
3914 |
< |
_ACEOF |
3915 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
3916 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3917 |
< |
(eval $ac_link) 2>conftest.er1 |
3918 |
< |
ac_status=$? |
3919 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
3920 |
< |
rm -f conftest.er1 |
3921 |
< |
cat conftest.err >&5 |
3922 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3923 |
< |
(exit $ac_status); } && |
3924 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
3925 |
< |
|| test ! -s conftest.err' |
3926 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3927 |
< |
(eval $ac_try) 2>&5 |
3928 |
< |
ac_status=$? |
3929 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3930 |
< |
(exit $ac_status); }; } && |
3931 |
< |
{ ac_try='test -s conftest$ac_exeext' |
3932 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3933 |
< |
(eval $ac_try) 2>&5 |
3934 |
< |
ac_status=$? |
3935 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3936 |
< |
(exit $ac_status); }; }; then |
3937 |
< |
ac_success_extra=yes; break |
3898 |
> |
if test -n "$ac_tool_prefix"; then |
3899 |
> |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
3900 |
> |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
3901 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3902 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3903 |
> |
if test "${ac_cv_prog_RANLIB+set}" = set; then |
3904 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3905 |
|
else |
3906 |
< |
echo "$as_me: failed program was:" >&5 |
3907 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
3906 |
> |
if test -n "$RANLIB"; then |
3907 |
> |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
3908 |
> |
else |
3909 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3910 |
> |
for as_dir in $PATH |
3911 |
> |
do |
3912 |
> |
IFS=$as_save_IFS |
3913 |
> |
test -z "$as_dir" && as_dir=. |
3914 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
3915 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3916 |
> |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
3917 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3918 |
> |
break 2 |
3919 |
> |
fi |
3920 |
> |
done |
3921 |
> |
done |
3922 |
> |
IFS=$as_save_IFS |
3923 |
|
|
3924 |
|
fi |
3925 |
< |
rm -f conftest.err conftest.$ac_objext \ |
3926 |
< |
conftest$ac_exeext conftest.$ac_ext |
3927 |
< |
done |
3925 |
> |
fi |
3926 |
> |
RANLIB=$ac_cv_prog_RANLIB |
3927 |
> |
if test -n "$RANLIB"; then |
3928 |
> |
{ echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3929 |
> |
echo "${ECHO_T}$RANLIB" >&6; } |
3930 |
> |
else |
3931 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
3932 |
> |
echo "${ECHO_T}no" >&6; } |
3933 |
> |
fi |
3934 |
|
|
3947 |
– |
if test "$ac_success_extra" = "yes"; then |
3948 |
– |
ac_cv_f90_mangling="$ac_case case" |
3949 |
– |
if test -z "$ac_underscore"; then |
3950 |
– |
ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore" |
3951 |
– |
else |
3952 |
– |
ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore" |
3935 |
|
|
3936 |
< |
fi |
3937 |
< |
if test -z "$ac_extra"; then |
3938 |
< |
ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore" |
3939 |
< |
else |
3940 |
< |
ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore" |
3941 |
< |
fi |
3942 |
< |
else |
3943 |
< |
ac_cv_f90_mangling="unknown" |
3944 |
< |
fi |
3945 |
< |
else |
3946 |
< |
ac_cv_f90_mangling="unknown" |
3947 |
< |
|
3936 |
> |
fi |
3937 |
> |
if test -z "$ac_cv_prog_RANLIB"; then |
3938 |
> |
ac_ct_RANLIB=$RANLIB |
3939 |
> |
# Extract the first word of "ranlib", so it can be a program name with args. |
3940 |
> |
set dummy ranlib; ac_word=$2 |
3941 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3942 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3943 |
> |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
3944 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3945 |
> |
else |
3946 |
> |
if test -n "$ac_ct_RANLIB"; then |
3947 |
> |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
3948 |
> |
else |
3949 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3950 |
> |
for as_dir in $PATH |
3951 |
> |
do |
3952 |
> |
IFS=$as_save_IFS |
3953 |
> |
test -z "$as_dir" && as_dir=. |
3954 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
3955 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3956 |
> |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
3957 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3958 |
> |
break 2 |
3959 |
|
fi |
3960 |
+ |
done |
3961 |
+ |
done |
3962 |
+ |
IFS=$as_save_IFS |
3963 |
|
|
3964 |
< |
LIBS=$ac_save_LIBS |
3965 |
< |
ac_ext=f90 |
3966 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3967 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3968 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3969 |
< |
rm -f cf90_test* conftest* |
3964 |
> |
fi |
3965 |
> |
fi |
3966 |
> |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3967 |
> |
if test -n "$ac_ct_RANLIB"; then |
3968 |
> |
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3969 |
> |
echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
3970 |
|
else |
3971 |
< |
echo "$as_me: failed program was:" >&5 |
3972 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
3977 |
< |
|
3971 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
3972 |
> |
echo "${ECHO_T}no" >&6; } |
3973 |
|
fi |
3979 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3980 |
– |
ac_ext=f90 |
3981 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3982 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3983 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3974 |
|
|
3975 |
< |
fi |
3976 |
< |
echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5 |
3977 |
< |
echo "${ECHO_T}$ac_cv_f90_mangling" >&6 |
3975 |
> |
if test "x$ac_ct_RANLIB" = x; then |
3976 |
> |
RANLIB=":" |
3977 |
> |
else |
3978 |
> |
case $cross_compiling:$ac_tool_warned in |
3979 |
> |
yes:) |
3980 |
> |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
3981 |
> |
whose name does not start with the host triplet. If you think this |
3982 |
> |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
3983 |
> |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
3984 |
> |
whose name does not start with the host triplet. If you think this |
3985 |
> |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
3986 |
> |
ac_tool_warned=yes ;; |
3987 |
> |
esac |
3988 |
> |
RANLIB=$ac_ct_RANLIB |
3989 |
> |
fi |
3990 |
> |
else |
3991 |
> |
RANLIB="$ac_cv_prog_RANLIB" |
3992 |
> |
fi |
3993 |
|
|
3994 |
|
|
3995 |
+ |
# Extract the first word of "perl", so it can be a program name with args. |
3996 |
+ |
set dummy perl; ac_word=$2 |
3997 |
+ |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3998 |
+ |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3999 |
+ |
if test "${ac_cv_path_PERLINTERP+set}" = set; then |
4000 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4001 |
+ |
else |
4002 |
+ |
case $PERLINTERP in |
4003 |
+ |
[\\/]* | ?:[\\/]*) |
4004 |
+ |
ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path. |
4005 |
+ |
;; |
4006 |
+ |
*) |
4007 |
+ |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4008 |
+ |
for as_dir in $PATH |
4009 |
+ |
do |
4010 |
+ |
IFS=$as_save_IFS |
4011 |
+ |
test -z "$as_dir" && as_dir=. |
4012 |
+ |
for ac_exec_ext in '' $ac_executable_extensions; do |
4013 |
+ |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4014 |
+ |
ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext" |
4015 |
+ |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4016 |
+ |
break 2 |
4017 |
+ |
fi |
4018 |
+ |
done |
4019 |
+ |
done |
4020 |
+ |
IFS=$as_save_IFS |
4021 |
|
|
4022 |
< |
case $ac_cv_f90_mangling in |
4023 |
< |
"lower case, no underscore, no extra underscore") |
4024 |
< |
cat >>confdefs.h <<\_ACEOF |
4025 |
< |
#define F90_FUNC(name,NAME) name |
4026 |
< |
_ACEOF |
4022 |
> |
test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl" |
4023 |
> |
;; |
4024 |
> |
esac |
4025 |
> |
fi |
4026 |
> |
PERLINTERP=$ac_cv_path_PERLINTERP |
4027 |
> |
if test -n "$PERLINTERP"; then |
4028 |
> |
{ echo "$as_me:$LINENO: result: $PERLINTERP" >&5 |
4029 |
> |
echo "${ECHO_T}$PERLINTERP" >&6; } |
4030 |
> |
else |
4031 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
4032 |
> |
echo "${ECHO_T}no" >&6; } |
4033 |
> |
fi |
4034 |
|
|
3997 |
– |
cat >>confdefs.h <<\_ACEOF |
3998 |
– |
#define F90_FUNC_(name,NAME) name |
3999 |
– |
_ACEOF |
4000 |
– |
;; |
4001 |
– |
"lower case, no underscore, extra underscore") |
4002 |
– |
cat >>confdefs.h <<\_ACEOF |
4003 |
– |
#define F90_FUNC(name,NAME) name |
4004 |
– |
_ACEOF |
4035 |
|
|
4036 |
< |
cat >>confdefs.h <<\_ACEOF |
4037 |
< |
#define F90_FUNC_(name,NAME) name ## _ |
4008 |
< |
_ACEOF |
4009 |
< |
;; |
4010 |
< |
"lower case, underscore, no extra underscore") |
4011 |
< |
cat >>confdefs.h <<\_ACEOF |
4012 |
< |
#define F90_FUNC(name,NAME) name ## _ |
4013 |
< |
_ACEOF |
4036 |
> |
ac_cv_path_perlinterp="$PERLINTERP" |
4037 |
> |
_sHpB='#!' |
4038 |
|
|
4015 |
– |
cat >>confdefs.h <<\_ACEOF |
4016 |
– |
#define F90_FUNC_(name,NAME) name ## _ |
4017 |
– |
_ACEOF |
4018 |
– |
;; |
4019 |
– |
"lower case, underscore, extra underscore") |
4020 |
– |
cat >>confdefs.h <<\_ACEOF |
4021 |
– |
#define F90_FUNC(name,NAME) name ## _ |
4022 |
– |
_ACEOF |
4039 |
|
|
4040 |
< |
cat >>confdefs.h <<\_ACEOF |
4041 |
< |
#define F90_FUNC_(name,NAME) name ## __ |
4042 |
< |
_ACEOF |
4043 |
< |
;; |
4044 |
< |
"upper case, no underscore, no extra underscore") |
4045 |
< |
cat >>confdefs.h <<\_ACEOF |
4030 |
< |
#define F90_FUNC(name,NAME) NAME |
4031 |
< |
_ACEOF |
4040 |
> |
# Check whether --with-perl-shebang was given. |
4041 |
> |
if test "${with_perl_shebang+set}" = set; then |
4042 |
> |
withval=$with_perl_shebang; opt_perl_shebang="$withval" |
4043 |
> |
else |
4044 |
> |
opt_perl_shebang="not_set" |
4045 |
> |
fi |
4046 |
|
|
4047 |
< |
cat >>confdefs.h <<\_ACEOF |
4048 |
< |
#define F90_FUNC_(name,NAME) NAME |
4049 |
< |
_ACEOF |
4050 |
< |
;; |
4051 |
< |
"upper case, no underscore, extra underscore") |
4052 |
< |
cat >>confdefs.h <<\_ACEOF |
4053 |
< |
#define F90_FUNC(name,NAME) NAME |
4054 |
< |
_ACEOF |
4047 |
> |
{ echo "$as_me:$LINENO: checking whether explicit instead of detected sharpbang is to be used" >&5 |
4048 |
> |
echo $ECHO_N "checking whether explicit instead of detected sharpbang is to be used... $ECHO_C" >&6; } |
4049 |
> |
if test "${ax_cv_opt_perl_shebang+set}" = set; then |
4050 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4051 |
> |
else |
4052 |
> |
case "$opt_perl_shebang" in |
4053 |
> |
not_set ) ax_cv_opt_perl_shebang='' |
4054 |
> |
;; |
4055 |
> |
* ) |
4056 |
> |
ax_cv_opt_perl_shebang=`echo "$opt_perl_shebang" | sed -e's|^#!\s*\(.*\)$|\1|'` |
4057 |
> |
esac |
4058 |
> |
|
4059 |
> |
fi |
4060 |
> |
{ echo "$as_me:$LINENO: result: $ax_cv_opt_perl_shebang" >&5 |
4061 |
> |
echo "${ECHO_T}$ax_cv_opt_perl_shebang" >&6; } |
4062 |
> |
if test "A$ax_cv_opt_perl_shebang" != "A" |
4063 |
> |
then |
4064 |
> |
ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang" |
4065 |
> |
PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl" |
4066 |
> |
{ echo "$as_me:$LINENO: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5 |
4067 |
> |
echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;} |
4068 |
> |
|
4069 |
> |
# Automatic detection of sharpbang formula starts here |
4070 |
> |
else |
4071 |
> |
_somian_shbangperl=`$PERLINTERP -V:startperl` |
4072 |
> |
negclass="[^']"; # must leave this comment: m4 will remove the outer brackets for us, heheh |
4073 |
> |
{ echo "$as_me:$LINENO: checking for kernel sharpbang invocation to start perl" >&5 |
4074 |
> |
echo $ECHO_N "checking for kernel sharpbang invocation to start perl... $ECHO_C" >&6; } |
4075 |
> |
if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then |
4076 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4077 |
> |
else |
4078 |
> |
_somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"` |
4079 |
> |
if test "x$_somian_kspb_perl" == x |
4080 |
> |
then _somian_ksbp_warn_empty='durnit' |
4081 |
> |
else |
4082 |
> |
case "A$_somian_kspb_perl" in |
4083 |
> |
A#!*perl* ) |
4084 |
> |
ac_cv_sys_kernshrpbang_perl=`echo "$_somian_kspb_perl" | sed -e's|#!\(.*\)$|\1|'` |
4085 |
> |
;; |
4086 |
> |
A* ) _somian_ksbp_warn_defau='trouble' |
4087 |
> |
ac_cv_sys_kernshrpbang_perl="$PERLINTERP" |
4088 |
> |
esac |
4089 |
> |
fi |
4090 |
> |
|
4091 |
> |
fi |
4092 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_sys_kernshrpbang_perl" >&5 |
4093 |
> |
echo "${ECHO_T}$ac_cv_sys_kernshrpbang_perl" >&6; } |
4094 |
> |
# The above prints Checking ... result message to user. |
4095 |
> |
PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl" |
4096 |
> |
|
4097 |
> |
if test A${_somian_ksbp_warn_empty+set} == Aset |
4098 |
> |
then { echo "$as_me:$LINENO: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5 |
4099 |
> |
echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;} |
4100 |
> |
fi |
4101 |
> |
# Inform user after printing result value |
4102 |
> |
if test A${_somian_ksbp_warn_defau+set} == Aset |
4103 |
> |
then { echo "$as_me:$LINENO: Maybe Not good -" >&5 |
4104 |
> |
echo "$as_me: Maybe Not good -" >&6;} |
4105 |
> |
{ echo "$as_me:$LINENO: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5 |
4106 |
> |
echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;} |
4107 |
> |
else { echo "$as_me:$LINENO: OK Good result - " >&5 |
4108 |
> |
echo "$as_me: OK Good result - " >&6;} |
4109 |
> |
{ echo "$as_me:$LINENO: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5 |
4110 |
> |
echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;} |
4111 |
> |
fi |
4112 |
> |
fi |
4113 |
> |
|
4114 |
> |
# Find a good install program. We prefer a C program (faster), |
4115 |
> |
# so one script is as good as another. But avoid the broken or |
4116 |
> |
# incompatible versions: |
4117 |
> |
# SysV /etc/install, /usr/sbin/install |
4118 |
> |
# SunOS /usr/etc/install |
4119 |
> |
# IRIX /sbin/install |
4120 |
> |
# AIX /bin/install |
4121 |
> |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
4122 |
> |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
4123 |
> |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
4124 |
> |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
4125 |
> |
# OS/2's system install, which has a completely different semantic |
4126 |
> |
# ./install, which can be erroneously created by make from ./install.sh. |
4127 |
> |
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4128 |
> |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
4129 |
> |
if test -z "$INSTALL"; then |
4130 |
> |
if test "${ac_cv_path_install+set}" = set; then |
4131 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4132 |
> |
else |
4133 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4134 |
> |
for as_dir in $PATH |
4135 |
> |
do |
4136 |
> |
IFS=$as_save_IFS |
4137 |
> |
test -z "$as_dir" && as_dir=. |
4138 |
> |
# Account for people who put trailing slashes in PATH elements. |
4139 |
> |
case $as_dir/ in |
4140 |
> |
./ | .// | /cC/* | \ |
4141 |
> |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
4142 |
> |
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
4143 |
> |
/usr/ucb/* ) ;; |
4144 |
> |
*) |
4145 |
> |
# OSF1 and SCO ODT 3.0 have their own names for install. |
4146 |
> |
# Don't use installbsd from OSF since it installs stuff as root |
4147 |
> |
# by default. |
4148 |
> |
for ac_prog in ginstall scoinst install; do |
4149 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
4150 |
> |
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
4151 |
> |
if test $ac_prog = install && |
4152 |
> |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
4153 |
> |
# AIX install. It has an incompatible calling convention. |
4154 |
> |
: |
4155 |
> |
elif test $ac_prog = install && |
4156 |
> |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
4157 |
> |
# program-specific install script used by HP pwplus--don't use. |
4158 |
> |
: |
4159 |
> |
else |
4160 |
> |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
4161 |
> |
break 3 |
4162 |
> |
fi |
4163 |
> |
fi |
4164 |
> |
done |
4165 |
> |
done |
4166 |
> |
;; |
4167 |
> |
esac |
4168 |
> |
done |
4169 |
> |
IFS=$as_save_IFS |
4170 |
> |
|
4171 |
> |
|
4172 |
> |
fi |
4173 |
> |
if test "${ac_cv_path_install+set}" = set; then |
4174 |
> |
INSTALL=$ac_cv_path_install |
4175 |
> |
else |
4176 |
> |
# As a last resort, use the slow shell script. Don't cache a |
4177 |
> |
# value for INSTALL within a source directory, because that will |
4178 |
> |
# break other packages using the cache if that directory is |
4179 |
> |
# removed, or if the value is a relative name. |
4180 |
> |
INSTALL=$ac_install_sh |
4181 |
> |
fi |
4182 |
> |
fi |
4183 |
> |
{ echo "$as_me:$LINENO: result: $INSTALL" >&5 |
4184 |
> |
echo "${ECHO_T}$INSTALL" >&6; } |
4185 |
> |
|
4186 |
> |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4187 |
> |
# It thinks the first close brace ends the variable substitution. |
4188 |
> |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
4189 |
> |
|
4190 |
> |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
4191 |
> |
|
4192 |
> |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4193 |
> |
|
4194 |
> |
case "x$INSTALL" in |
4195 |
> |
x/*) ;; |
4196 |
> |
*) INSTALL=`pwd`/ac-tools/"shtool install -c" ; |
4197 |
> |
esac |
4198 |
> |
MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f" |
4199 |
> |
# Extract the first word of "ar", so it can be a program name with args. |
4200 |
> |
set dummy ar; ac_word=$2 |
4201 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4202 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4203 |
> |
if test "${ac_cv_prog_AR+set}" = set; then |
4204 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4205 |
> |
else |
4206 |
> |
if test -n "$AR"; then |
4207 |
> |
ac_cv_prog_AR="$AR" # Let the user override the test. |
4208 |
> |
else |
4209 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4210 |
> |
for as_dir in $PATH |
4211 |
> |
do |
4212 |
> |
IFS=$as_save_IFS |
4213 |
> |
test -z "$as_dir" && as_dir=. |
4214 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
4215 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4216 |
> |
ac_cv_prog_AR="ar" |
4217 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4218 |
> |
break 2 |
4219 |
> |
fi |
4220 |
> |
done |
4221 |
> |
done |
4222 |
> |
IFS=$as_save_IFS |
4223 |
|
|
4224 |
< |
cat >>confdefs.h <<\_ACEOF |
4225 |
< |
#define F90_FUNC_(name,NAME) NAME ## _ |
4226 |
< |
_ACEOF |
4227 |
< |
;; |
4228 |
< |
"upper case, underscore, no extra underscore") |
4229 |
< |
cat >>confdefs.h <<\_ACEOF |
4230 |
< |
#define F90_FUNC(name,NAME) NAME ## _ |
4231 |
< |
_ACEOF |
4224 |
> |
test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE" |
4225 |
> |
fi |
4226 |
> |
fi |
4227 |
> |
AR=$ac_cv_prog_AR |
4228 |
> |
if test -n "$AR"; then |
4229 |
> |
{ echo "$as_me:$LINENO: result: $AR" >&5 |
4230 |
> |
echo "${ECHO_T}$AR" >&6; } |
4231 |
> |
else |
4232 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
4233 |
> |
echo "${ECHO_T}no" >&6; } |
4234 |
> |
fi |
4235 |
|
|
4051 |
– |
cat >>confdefs.h <<\_ACEOF |
4052 |
– |
#define F90_FUNC_(name,NAME) NAME ## _ |
4053 |
– |
_ACEOF |
4054 |
– |
;; |
4055 |
– |
"upper case, underscore, extra underscore") |
4056 |
– |
cat >>confdefs.h <<\_ACEOF |
4057 |
– |
#define F90_FUNC(name,NAME) NAME ## _ |
4058 |
– |
_ACEOF |
4236 |
|
|
4237 |
< |
cat >>confdefs.h <<\_ACEOF |
4238 |
< |
#define F90_FUNC_(name,NAME) NAME ## __ |
4237 |
> |
if test "$AR" = "NONE"; then |
4238 |
> |
cat >confcache <<\_ACEOF |
4239 |
> |
# This file is a shell script that caches the results of configure |
4240 |
> |
# tests run on this system so they can be shared between configure |
4241 |
> |
# scripts and configure runs, see configure's option --config-cache. |
4242 |
> |
# It is not useful on other systems. If it contains results you don't |
4243 |
> |
# want to keep, you may remove or edit it. |
4244 |
> |
# |
4245 |
> |
# config.status only pays attention to the cache file if you give it |
4246 |
> |
# the --recheck option to rerun configure. |
4247 |
> |
# |
4248 |
> |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
4249 |
> |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
4250 |
> |
# following values. |
4251 |
> |
|
4252 |
|
_ACEOF |
4063 |
– |
;; |
4064 |
– |
*) |
4065 |
– |
{ echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5 |
4066 |
– |
echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;} |
4067 |
– |
;; |
4068 |
– |
esac |
4253 |
|
|
4254 |
+ |
# The following way of writing the cache mishandles newlines in values, |
4255 |
+ |
# but we know of no workaround that is simple, portable, and efficient. |
4256 |
+ |
# So, we kill variables containing newlines. |
4257 |
+ |
# Ultrix sh set writes to stderr and can't be redirected directly, |
4258 |
+ |
# and sets the high bit in the cache file unless we assign to the vars. |
4259 |
+ |
( |
4260 |
+ |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
4261 |
+ |
eval ac_val=\$$ac_var |
4262 |
+ |
case $ac_val in #( |
4263 |
+ |
*${as_nl}*) |
4264 |
+ |
case $ac_var in #( |
4265 |
+ |
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
4266 |
+ |
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
4267 |
+ |
esac |
4268 |
+ |
case $ac_var in #( |
4269 |
+ |
_ | IFS | as_nl) ;; #( |
4270 |
+ |
*) $as_unset $ac_var ;; |
4271 |
+ |
esac ;; |
4272 |
+ |
esac |
4273 |
+ |
done |
4274 |
|
|
4275 |
+ |
(set) 2>&1 | |
4276 |
+ |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
4277 |
+ |
*${as_nl}ac_space=\ *) |
4278 |
+ |
# `set' does not quote correctly, so add quotes (double-quote |
4279 |
+ |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
4280 |
+ |
sed -n \ |
4281 |
+ |
"s/'/'\\\\''/g; |
4282 |
+ |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
4283 |
+ |
;; #( |
4284 |
+ |
*) |
4285 |
+ |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
4286 |
+ |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
4287 |
+ |
;; |
4288 |
+ |
esac | |
4289 |
+ |
sort |
4290 |
+ |
) | |
4291 |
+ |
sed ' |
4292 |
+ |
/^ac_cv_env_/b end |
4293 |
+ |
t clear |
4294 |
+ |
:clear |
4295 |
+ |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
4296 |
+ |
t end |
4297 |
+ |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
4298 |
+ |
:end' >>confcache |
4299 |
+ |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
4300 |
+ |
if test -w "$cache_file"; then |
4301 |
+ |
test "x$cache_file" != "x/dev/null" && |
4302 |
+ |
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
4303 |
+ |
echo "$as_me: updating cache $cache_file" >&6;} |
4304 |
+ |
cat confcache >$cache_file |
4305 |
+ |
else |
4306 |
+ |
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
4307 |
+ |
echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
4308 |
+ |
fi |
4309 |
+ |
fi |
4310 |
+ |
rm -rf confcache |
4311 |
+ |
exit 1 |
4312 |
+ |
fi |
4313 |
+ |
# Extract the first word of "ps", so it can be a program name with args. |
4314 |
+ |
set dummy ps; ac_word=$2 |
4315 |
+ |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4316 |
+ |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4317 |
+ |
if test "${ac_cv_path_PS+set}" = set; then |
4318 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4319 |
+ |
else |
4320 |
+ |
case $PS in |
4321 |
+ |
[\\/]* | ?:[\\/]*) |
4322 |
+ |
ac_cv_path_PS="$PS" # Let the user override the test with a path. |
4323 |
+ |
;; |
4324 |
+ |
*) |
4325 |
+ |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4326 |
+ |
for as_dir in $PATH |
4327 |
+ |
do |
4328 |
+ |
IFS=$as_save_IFS |
4329 |
+ |
test -z "$as_dir" && as_dir=. |
4330 |
+ |
for ac_exec_ext in '' $ac_executable_extensions; do |
4331 |
+ |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4332 |
+ |
ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext" |
4333 |
+ |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4334 |
+ |
break 2 |
4335 |
+ |
fi |
4336 |
+ |
done |
4337 |
+ |
done |
4338 |
+ |
IFS=$as_save_IFS |
4339 |
|
|
4340 |
+ |
;; |
4341 |
+ |
esac |
4342 |
+ |
fi |
4343 |
+ |
PS=$ac_cv_path_PS |
4344 |
+ |
if test -n "$PS"; then |
4345 |
+ |
{ echo "$as_me:$LINENO: result: $PS" >&5 |
4346 |
+ |
echo "${ECHO_T}$PS" >&6; } |
4347 |
+ |
else |
4348 |
+ |
{ echo "$as_me:$LINENO: result: no" >&5 |
4349 |
+ |
echo "${ECHO_T}no" >&6; } |
4350 |
+ |
fi |
4351 |
|
|
4352 |
|
|
4353 |
< |
echo "$as_me:$LINENO: checking for module suffix" >&5 |
4354 |
< |
echo $ECHO_N "checking for module suffix... $ECHO_C" >&6 |
4355 |
< |
rm -f conftest* |
4356 |
< |
# Intel ifc compiler generates files by the name of work.pc and work.pcl (!) |
4078 |
< |
rm -f work* |
4079 |
< |
cat >conftest.f90 <<EOF |
4080 |
< |
module conftest |
4081 |
< |
integer n |
4082 |
< |
parameter (n=1) |
4083 |
< |
end module conftest |
4084 |
< |
EOF |
4085 |
< |
# SGI and absoft compilers generates module name in upper case! |
4086 |
< |
testname="conftest" |
4087 |
< |
modcase="lower" |
4088 |
< |
if $F90 -c conftest.f90 > conftest.out 2>&1 ; then |
4089 |
< |
MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o` |
4090 |
< |
MOD=`echo "$MOD" | sed -e 's/conftest\.//g'` |
4091 |
< |
if test -z "$MOD" ; then |
4092 |
< |
MOD=`ls CONFTEST* 2>/dev/null \ |
4093 |
< |
| grep -v CONFTEST.f | grep -v CONFTEST.o` |
4094 |
< |
MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'` |
4095 |
< |
if test -n "$MOD" ; then |
4096 |
< |
testname="CONFTEST" |
4097 |
< |
modcase="upper" |
4098 |
< |
fi |
4099 |
< |
fi |
4100 |
< |
if test -z "$MOD" ; then |
4101 |
< |
echo "$as_me:$LINENO: result: unknown" >&5 |
4102 |
< |
echo "${ECHO_T}unknown" >&6 |
4103 |
< |
# Use mod if we can't figure it out |
4104 |
< |
MOD="mod" |
4105 |
< |
else |
4106 |
< |
echo "$as_me:$LINENO: result: $MOD" >&5 |
4107 |
< |
echo "${ECHO_T}$MOD" >&6 |
4108 |
< |
fi |
4109 |
< |
if test -s work.pcl ; then |
4110 |
< |
{ echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5 |
4111 |
< |
echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;} |
4112 |
< |
fi |
4353 |
> |
{ echo "$as_me:$LINENO: checking for POSIX or BSD ps syntax" >&5 |
4354 |
> |
echo $ECHO_N "checking for POSIX or BSD ps syntax... $ECHO_C" >&6; } |
4355 |
> |
if test "${ac_cv_prog_ps_syntax+set}" = set; then |
4356 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4357 |
|
else |
4358 |
< |
echo "$as_me:$LINENO: result: unknown" >&5 |
4359 |
< |
echo "${ECHO_T}unknown" >&6 |
4358 |
> |
|
4359 |
> |
if $PS ax -o rss > /dev/null 2>&1; then |
4360 |
> |
ac_cv_prog_ps_ax=yes |
4361 |
> |
else |
4362 |
> |
ac_cv_prog_ps_ax=no |
4363 |
> |
fi |
4364 |
> |
if $PS -ef -o rss > /dev/null 2>&1; then |
4365 |
> |
ac_cv_prog_ps_ef=yes |
4366 |
> |
else |
4367 |
> |
ac_cv_prog_ps_ef=no |
4368 |
> |
fi |
4369 |
> |
if test "$ac_cv_prog_ps_ax" = yes; then |
4370 |
> |
ac_cv_prog_ps_syntax=BSD |
4371 |
> |
else |
4372 |
> |
if test "$ac_cv_prog_ps_ef" = yes; then |
4373 |
> |
ac_cv_prog_ps_syntax=POSIX |
4374 |
> |
else |
4375 |
> |
{ { echo "$as_me:$LINENO: error: Could not determine ps syntax" >&5 |
4376 |
> |
echo "$as_me: error: Could not determine ps syntax" >&2;} |
4377 |
> |
{ (exit 1); exit 1; }; } |
4378 |
> |
fi |
4379 |
> |
fi |
4380 |
> |
|
4381 |
|
fi |
4382 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_ps_syntax" >&5 |
4383 |
+ |
echo "${ECHO_T}$ac_cv_prog_ps_syntax" >&6; } |
4384 |
|
|
4385 |
+ |
cat >>confdefs.h <<_ACEOF |
4386 |
+ |
#define PSCOMMAND $PS |
4387 |
+ |
_ACEOF |
4388 |
|
|
4389 |
+ |
if test "$ac_cv_prog_ps_syntax" = BSD; then |
4390 |
|
|
4391 |
+ |
cat >>confdefs.h <<\_ACEOF |
4392 |
+ |
#define PSTYPE_IS_BSD 1 |
4393 |
+ |
_ACEOF |
4394 |
|
|
4395 |
+ |
else |
4396 |
+ |
if test "$ac_cv_prog_ps_syntax" = POSIX; then |
4397 |
|
|
4398 |
< |
# Check for module include path (some use -I, some (Solaris) use -M, some |
4399 |
< |
# (absoft) use -p). |
4400 |
< |
# Intel compilers use a wierd system: -cl,filename.pcl . If no file is |
4125 |
< |
# specified, work.pcl and work.pc are created. However, if you specify |
4126 |
< |
# a file, it must contain a the name of a file ending in .pc . Ugh! |
4127 |
< |
# Use the module made above |
4128 |
< |
echo "$as_me:$LINENO: checking for module directory path flag" >&5 |
4129 |
< |
echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6 |
4130 |
< |
rm -f conftest* |
4131 |
< |
# Intel ifc compiler generates files by the name of work.pc and work.pcl (!) |
4132 |
< |
rm -f work* |
4133 |
< |
cat >conftest.f90 <<EOF |
4134 |
< |
module conftest |
4135 |
< |
integer n |
4136 |
< |
parameter (n=1) |
4137 |
< |
end module conftest |
4138 |
< |
EOF |
4139 |
< |
# SGI and absoft compilers generates module name in upper case! |
4140 |
< |
testname="conftest" |
4141 |
< |
if $F90 -c conftest.f90 > conftest.out 2>&1 ; then |
4142 |
< |
mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o` |
4143 |
< |
mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'` |
4144 |
< |
if test -n "$mod" ; then |
4145 |
< |
testname="CONFTEST" |
4146 |
< |
fi |
4147 |
< |
madedir=0 |
4148 |
< |
if test ! -d conf ; then mkdir conf ; madedir=1; fi |
4149 |
< |
cp $testname.$MOD conf |
4150 |
< |
rm -f conftest* CONFTEST* |
4151 |
< |
cat >conftest1.f90 <<EOF |
4152 |
< |
program main |
4153 |
< |
use conftest |
4154 |
< |
print *, n |
4155 |
< |
end |
4156 |
< |
EOF |
4157 |
< |
F90_WORK_FILES_ARG="" |
4158 |
< |
F90MODINCSPEC="" |
4159 |
< |
if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then |
4160 |
< |
MODDIRFLAG="-I" |
4161 |
< |
F90MODINCSPEC="-I<dir>" |
4162 |
< |
echo "$as_me:$LINENO: result: -I" >&5 |
4163 |
< |
echo "${ECHO_T}-I" >&6 |
4164 |
< |
elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then |
4165 |
< |
MODDIRFLAG="-M" |
4166 |
< |
F90MODINCSPEC="-M<dir>" |
4167 |
< |
echo "$as_me:$LINENO: result: -M" >&5 |
4168 |
< |
echo "${ECHO_T}-M" >&6 |
4169 |
< |
elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then |
4170 |
< |
MODDIRFLAG="-p" |
4171 |
< |
F90MODINCSPEC="-p<dir>" |
4172 |
< |
echo "$as_me:$LINENO: result: -p" >&5 |
4173 |
< |
echo "${ECHO_T}-p" >&6 |
4174 |
< |
elif test -s work.pc ; then |
4175 |
< |
cp work.pc conf/mpimod.pc |
4176 |
< |
echo "mpimod.pc" > conf/mpimod.pcl |
4177 |
< |
echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl |
4178 |
< |
if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then |
4179 |
< |
MODDIRFLAG='-cl,mpimod.pcl' |
4180 |
< |
echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5 |
4181 |
< |
echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6 |
4182 |
< |
F90_WORK_FILES_ARG="-cl,mpimod.pcl" |
4183 |
< |
F90MODINCSPEC="-cl,<dir>/<file>mod.pcl" |
4398 |
> |
cat >>confdefs.h <<\_ACEOF |
4399 |
> |
#define PSTYPE_IS_POSIX 1 |
4400 |
> |
_ACEOF |
4401 |
|
|
4402 |
< |
else |
4403 |
< |
# The version of the Intel compiler that I have refuses to let |
4404 |
< |
# you put the "work catalog" list anywhere but the current |
4405 |
< |
# directory. For example, you cannot in |
4189 |
< |
: |
4190 |
< |
fi |
4402 |
> |
else |
4403 |
> |
{ { echo "$as_me:$LINENO: error: Unknown ps syntax type!" >&5 |
4404 |
> |
echo "$as_me: error: Unknown ps syntax type!" >&2;} |
4405 |
> |
{ (exit 1); exit 1; }; } |
4406 |
|
fi |
4192 |
– |
if test -z "MODDIRFLAG" ; then |
4193 |
– |
echo "$as_me:$LINENO: result: unknown" >&5 |
4194 |
– |
echo "${ECHO_T}unknown" >&6 |
4195 |
– |
fi |
4196 |
– |
|
4197 |
– |
|
4198 |
– |
rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod* |
4199 |
– |
if test $madedir = 1 ; then rmdir conf ; fi |
4407 |
|
fi |
4408 |
|
|
4409 |
+ |
ac_ext=${ac_fc_srcext-f} |
4410 |
+ |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
4411 |
+ |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
4412 |
+ |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
4413 |
|
|
4203 |
– |
ac_ext=c |
4204 |
– |
ac_cpp='$CPP $CPPFLAGS' |
4205 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4206 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4207 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4414 |
|
|
4415 |
< |
|
4416 |
< |
ac_ext=c |
4417 |
< |
ac_cpp='$CPP $CPPFLAGS' |
4418 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4419 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4420 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4421 |
< |
|
4216 |
< |
ac_ext=c |
4217 |
< |
ac_cpp='$CPP $CPPFLAGS' |
4218 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4219 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4220 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4221 |
< |
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4222 |
< |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
4223 |
< |
# On Suns, sometimes $CPP names a directory. |
4224 |
< |
if test -n "$CPP" && test -d "$CPP"; then |
4225 |
< |
CPP= |
4226 |
< |
fi |
4227 |
< |
if test -z "$CPP"; then |
4228 |
< |
if test "${ac_cv_prog_CPP+set}" = set; then |
4415 |
> |
ac_ext=${ac_fc_srcext-f} |
4416 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
4417 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
4418 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
4419 |
> |
{ echo "$as_me:$LINENO: checking for Fortran flag to compile .F90 files" >&5 |
4420 |
> |
echo $ECHO_N "checking for Fortran flag to compile .F90 files... $ECHO_C" >&6; } |
4421 |
> |
if test "${ac_cv_fc_srcext_F90+set}" = set; then |
4422 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4423 |
|
else |
4424 |
< |
# Double quotes because CPP needs to be expanded |
4425 |
< |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
4426 |
< |
do |
4427 |
< |
ac_preproc_ok=false |
4428 |
< |
for ac_c_preproc_warn_flag in '' yes |
4429 |
< |
do |
4237 |
< |
# Use a header file that comes with gcc, so configuring glibc |
4238 |
< |
# with a fresh cross-compiler works. |
4239 |
< |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4240 |
< |
# <limits.h> exists even on freestanding compilers. |
4241 |
< |
# On the NeXT, cc -E runs the code through the compiler's parser, |
4242 |
< |
# not just through cpp. "Syntax error" is here to catch this case. |
4424 |
> |
ac_ext=F90 |
4425 |
> |
ac_fcflags_srcext_save=$ac_fcflags_srcext |
4426 |
> |
ac_fcflags_srcext= |
4427 |
> |
ac_cv_fc_srcext_F90=unknown |
4428 |
> |
for ac_flag in none -qsuffix=f=F90 -Tf; do |
4429 |
> |
test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag" |
4430 |
|
cat >conftest.$ac_ext <<_ACEOF |
4431 |
< |
/* confdefs.h. */ |
4431 |
> |
program main |
4432 |
> |
|
4433 |
> |
end |
4434 |
|
_ACEOF |
4435 |
< |
cat confdefs.h >>conftest.$ac_ext |
4436 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
4437 |
< |
/* end confdefs.h. */ |
4438 |
< |
#ifdef __STDC__ |
4439 |
< |
# include <limits.h> |
4440 |
< |
#else |
4441 |
< |
# include <assert.h> |
4442 |
< |
#endif |
4254 |
< |
Syntax error |
4255 |
< |
_ACEOF |
4256 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4257 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4435 |
> |
rm -rf conftest.$ac_objext |
4436 |
> |
if { (ac_try="$ac_compile" |
4437 |
> |
case "(($ac_try" in |
4438 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4439 |
> |
*) ac_try_echo=$ac_try;; |
4440 |
> |
esac |
4441 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4442 |
> |
(eval "$ac_compile") 2>conftest.er1 |
4443 |
|
ac_status=$? |
4444 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
4445 |
|
rm -f conftest.er1 |
4446 |
|
cat conftest.err >&5 |
4447 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4448 |
< |
(exit $ac_status); } >/dev/null; then |
4449 |
< |
if test -s conftest.err; then |
4450 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
4451 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4452 |
< |
else |
4268 |
< |
ac_cpp_err= |
4269 |
< |
fi |
4448 |
> |
(exit $ac_status); } && { |
4449 |
> |
test -z "$ac_fc_werror_flag" || |
4450 |
> |
test ! -s conftest.err |
4451 |
> |
} && test -s conftest.$ac_objext; then |
4452 |
> |
ac_cv_fc_srcext_F90=$ac_flag; break |
4453 |
|
else |
4271 |
– |
ac_cpp_err=yes |
4272 |
– |
fi |
4273 |
– |
if test -z "$ac_cpp_err"; then |
4274 |
– |
: |
4275 |
– |
else |
4454 |
|
echo "$as_me: failed program was:" >&5 |
4455 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
4456 |
|
|
4457 |
< |
# Broken: fails on valid input. |
4280 |
< |
continue |
4457 |
> |
|
4458 |
|
fi |
4282 |
– |
rm -f conftest.err conftest.$ac_ext |
4459 |
|
|
4460 |
< |
# OK, works on sane cases. Now check whether non-existent headers |
4461 |
< |
# can be detected and how. |
4462 |
< |
cat >conftest.$ac_ext <<_ACEOF |
4463 |
< |
/* confdefs.h. */ |
4464 |
< |
_ACEOF |
4289 |
< |
cat confdefs.h >>conftest.$ac_ext |
4290 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
4291 |
< |
/* end confdefs.h. */ |
4292 |
< |
#include <ac_nonexistent.h> |
4293 |
< |
_ACEOF |
4294 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4295 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4296 |
< |
ac_status=$? |
4297 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
4298 |
< |
rm -f conftest.er1 |
4299 |
< |
cat conftest.err >&5 |
4300 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4301 |
< |
(exit $ac_status); } >/dev/null; then |
4302 |
< |
if test -s conftest.err; then |
4303 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
4304 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4305 |
< |
else |
4306 |
< |
ac_cpp_err= |
4307 |
< |
fi |
4308 |
< |
else |
4309 |
< |
ac_cpp_err=yes |
4460 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
4461 |
> |
done |
4462 |
> |
rm -rf conftest.$ac_objext conftest.F90 |
4463 |
> |
ac_fcflags_srcext=$ac_fcflags_srcext_save |
4464 |
> |
|
4465 |
|
fi |
4466 |
< |
if test -z "$ac_cpp_err"; then |
4467 |
< |
# Broken: success on invalid input. |
4468 |
< |
continue |
4466 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_fc_srcext_F90" >&5 |
4467 |
> |
echo "${ECHO_T}$ac_cv_fc_srcext_F90" >&6; } |
4468 |
> |
if test "x$ac_cv_fc_srcext_F90" = xunknown; then |
4469 |
> |
{ { echo "$as_me:$LINENO: error: Fortran could not compile .F90 files" >&5 |
4470 |
> |
echo "$as_me: error: Fortran could not compile .F90 files" >&2;} |
4471 |
> |
{ (exit 1); exit 1; }; } |
4472 |
|
else |
4473 |
< |
echo "$as_me: failed program was:" >&5 |
4474 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
4473 |
> |
ac_fc_srcext=F90 |
4474 |
> |
if test "x$ac_cv_fc_srcext_F90" = xnone; then |
4475 |
> |
ac_fcflags_srcext="" |
4476 |
> |
FCFLAGS_F90="" |
4477 |
> |
else |
4478 |
> |
ac_fcflags_srcext=$ac_cv_fc_srcext_F90 |
4479 |
> |
FCFLAGS_F90=$ac_cv_fc_srcext_F90 |
4480 |
> |
fi |
4481 |
|
|
4318 |
– |
# Passes both tests. |
4319 |
– |
ac_preproc_ok=: |
4320 |
– |
break |
4321 |
– |
fi |
4322 |
– |
rm -f conftest.err conftest.$ac_ext |
4482 |
|
|
4324 |
– |
done |
4325 |
– |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4326 |
– |
rm -f conftest.err conftest.$ac_ext |
4327 |
– |
if $ac_preproc_ok; then |
4328 |
– |
break |
4483 |
|
fi |
4484 |
+ |
ac_ext=${ac_fc_srcext-f} |
4485 |
+ |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
4486 |
+ |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
4487 |
+ |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
4488 |
|
|
4331 |
– |
done |
4332 |
– |
ac_cv_prog_CPP=$CPP |
4489 |
|
|
4490 |
< |
fi |
4491 |
< |
CPP=$ac_cv_prog_CPP |
4492 |
< |
else |
4493 |
< |
ac_cv_prog_CPP=$CPP |
4494 |
< |
fi |
4495 |
< |
echo "$as_me:$LINENO: result: $CPP" >&5 |
4496 |
< |
echo "${ECHO_T}$CPP" >&6 |
4497 |
< |
ac_preproc_ok=false |
4498 |
< |
for ac_c_preproc_warn_flag in '' yes |
4499 |
< |
do |
4500 |
< |
# Use a header file that comes with gcc, so configuring glibc |
4501 |
< |
# with a fresh cross-compiler works. |
4502 |
< |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4503 |
< |
# <limits.h> exists even on freestanding compilers. |
4504 |
< |
# On the NeXT, cc -E runs the code through the compiler's parser, |
4505 |
< |
# not just through cpp. "Syntax error" is here to catch this case. |
4506 |
< |
cat >conftest.$ac_ext <<_ACEOF |
4507 |
< |
/* confdefs.h. */ |
4508 |
< |
_ACEOF |
4509 |
< |
cat confdefs.h >>conftest.$ac_ext |
4510 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
4511 |
< |
/* end confdefs.h. */ |
4512 |
< |
#ifdef __STDC__ |
4513 |
< |
# include <limits.h> |
4514 |
< |
#else |
4515 |
< |
# include <assert.h> |
4360 |
< |
#endif |
4361 |
< |
Syntax error |
4362 |
< |
_ACEOF |
4363 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4364 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4365 |
< |
ac_status=$? |
4366 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
4367 |
< |
rm -f conftest.er1 |
4368 |
< |
cat conftest.err >&5 |
4369 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4370 |
< |
(exit $ac_status); } >/dev/null; then |
4371 |
< |
if test -s conftest.err; then |
4372 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
4373 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4374 |
< |
else |
4375 |
< |
ac_cpp_err= |
4490 |
> |
|
4491 |
> |
|
4492 |
> |
|
4493 |
> |
# Try to determine native compiler flags that allow us to use F90 suffix |
4494 |
> |
# for preprocessed f90 source. |
4495 |
> |
|
4496 |
> |
if test "$ac_test_PREPFLAG" != "set"; then |
4497 |
> |
PREPFLAG="" |
4498 |
> |
case "${host_cpu}-${host_os}" in |
4499 |
> |
|
4500 |
> |
*linux*) if test "$FC" = ifc -o "$FC" = ifort; then |
4501 |
> |
PREPFLAG="-fpp1 " |
4502 |
> |
fi;; |
4503 |
> |
*aix*) if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then |
4504 |
> |
PREPFLAG="-qsuffix=cpp=F90 " |
4505 |
> |
fi;; |
4506 |
> |
*darwin*) |
4507 |
> |
if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then |
4508 |
> |
PREPFLAG="-qsuffix=cpp=F90 " |
4509 |
> |
fi;; |
4510 |
> |
esac |
4511 |
> |
|
4512 |
> |
if test -z "$PREPFLAG"; then |
4513 |
> |
{ echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5 |
4514 |
> |
echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;} |
4515 |
> |
PREPFLAG="" |
4516 |
|
fi |
4377 |
– |
else |
4378 |
– |
ac_cpp_err=yes |
4379 |
– |
fi |
4380 |
– |
if test -z "$ac_cpp_err"; then |
4381 |
– |
: |
4382 |
– |
else |
4383 |
– |
echo "$as_me: failed program was:" >&5 |
4384 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
4517 |
|
|
4518 |
< |
# Broken: fails on valid input. |
4519 |
< |
continue |
4518 |
> |
{ echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5 |
4519 |
> |
echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6; } |
4520 |
> |
|
4521 |
> |
ac_ext=${ac_fc_srcext-f} |
4522 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
4523 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
4524 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
4525 |
> |
|
4526 |
> |
ac_save_ext=$ac_ext |
4527 |
> |
ac_ext=F90 |
4528 |
> |
ac_save_FCFLAGS_SRCEXT=$FCFLAGS_SRCEXT |
4529 |
> |
|
4530 |
> |
if test "$PREPFLAG"; then |
4531 |
> |
FCFLAGS_SRCEXT="${PREPFLAG}" |
4532 |
|
fi |
4389 |
– |
rm -f conftest.err conftest.$ac_ext |
4533 |
|
|
4534 |
< |
# OK, works on sane cases. Now check whether non-existent headers |
4535 |
< |
# can be detected and how. |
4536 |
< |
cat >conftest.$ac_ext <<_ACEOF |
4537 |
< |
/* confdefs.h. */ |
4534 |
> |
cat >conftest.$ac_ext <<_ACEOF |
4535 |
> |
|
4536 |
> |
|
4537 |
> |
program conftest |
4538 |
> |
integer :: i |
4539 |
> |
i = 1 |
4540 |
> |
end program conftest |
4541 |
> |
|
4542 |
|
_ACEOF |
4543 |
< |
cat confdefs.h >>conftest.$ac_ext |
4544 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
4545 |
< |
/* end confdefs.h. */ |
4546 |
< |
#include <ac_nonexistent.h> |
4547 |
< |
_ACEOF |
4548 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4549 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4543 |
> |
rm -rf conftest.$ac_objext |
4544 |
> |
if { (ac_try="$ac_compile" |
4545 |
> |
case "(($ac_try" in |
4546 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4547 |
> |
*) ac_try_echo=$ac_try;; |
4548 |
> |
esac |
4549 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4550 |
> |
(eval "$ac_compile") 2>conftest.er1 |
4551 |
|
ac_status=$? |
4552 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
4553 |
|
rm -f conftest.er1 |
4554 |
|
cat conftest.err >&5 |
4555 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4556 |
< |
(exit $ac_status); } >/dev/null; then |
4557 |
< |
if test -s conftest.err; then |
4558 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
4559 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4560 |
< |
else |
4413 |
< |
ac_cpp_err= |
4414 |
< |
fi |
4556 |
> |
(exit $ac_status); } && { |
4557 |
> |
test -z "$ac_fc_werror_flag" || |
4558 |
> |
test ! -s conftest.err |
4559 |
> |
} && test -s conftest.$ac_objext; then |
4560 |
> |
prepflagworks=1 |
4561 |
|
else |
4416 |
– |
ac_cpp_err=yes |
4417 |
– |
fi |
4418 |
– |
if test -z "$ac_cpp_err"; then |
4419 |
– |
# Broken: success on invalid input. |
4420 |
– |
continue |
4421 |
– |
else |
4562 |
|
echo "$as_me: failed program was:" >&5 |
4563 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
4564 |
|
|
4565 |
< |
# Passes both tests. |
4426 |
< |
ac_preproc_ok=: |
4427 |
< |
break |
4565 |
> |
prepflagworks=0 |
4566 |
|
fi |
4429 |
– |
rm -f conftest.err conftest.$ac_ext |
4567 |
|
|
4568 |
< |
done |
4432 |
< |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4433 |
< |
rm -f conftest.err conftest.$ac_ext |
4434 |
< |
if $ac_preproc_ok; then |
4435 |
< |
: |
4436 |
< |
else |
4437 |
< |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4438 |
< |
See \`config.log' for more details." >&5 |
4439 |
< |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
4440 |
< |
See \`config.log' for more details." >&2;} |
4441 |
< |
{ (exit 1); exit 1; }; } |
4442 |
< |
fi |
4568 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
4569 |
|
|
4570 |
< |
ac_ext=c |
4571 |
< |
ac_cpp='$CPP $CPPFLAGS' |
4572 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4573 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4574 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4570 |
> |
FCFLAGS_SRCEXT=$ac_save_FCFLAGS_SRCEXT |
4571 |
> |
ac_ext=$ac_save_ext |
4572 |
> |
ac_ext=${ac_fc_srcext-f} |
4573 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
4574 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
4575 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
4576 |
|
|
4577 |
|
|
4578 |
< |
echo "$as_me:$LINENO: checking for egrep" >&5 |
4579 |
< |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
4580 |
< |
if test "${ac_cv_prog_egrep+set}" = set; then |
4581 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4582 |
< |
else |
4583 |
< |
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
4584 |
< |
then ac_cv_prog_egrep='grep -E' |
4585 |
< |
else ac_cv_prog_egrep='egrep' |
4586 |
< |
fi |
4578 |
> |
if test "$prepflagworks" = 1; then |
4579 |
> |
{ echo "$as_me:$LINENO: result: yes" >&5 |
4580 |
> |
echo "${ECHO_T}yes" >&6; } |
4581 |
> |
FCFLAGS_SRCEXT="${PREPFLAG}" |
4582 |
> |
|
4583 |
> |
else |
4584 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
4585 |
> |
echo "${ECHO_T}no" >&6; } |
4586 |
> |
{ { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5 |
4587 |
> |
echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;} |
4588 |
> |
{ (exit 1); exit 1; }; } |
4589 |
> |
fi |
4590 |
|
fi |
4461 |
– |
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
4462 |
– |
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
4463 |
– |
EGREP=$ac_cv_prog_egrep |
4591 |
|
|
4592 |
|
|
4466 |
– |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4467 |
– |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
4468 |
– |
if test "${ac_cv_header_stdc+set}" = set; then |
4469 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4470 |
– |
else |
4471 |
– |
cat >conftest.$ac_ext <<_ACEOF |
4472 |
– |
/* confdefs.h. */ |
4473 |
– |
_ACEOF |
4474 |
– |
cat confdefs.h >>conftest.$ac_ext |
4475 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
4476 |
– |
/* end confdefs.h. */ |
4477 |
– |
#include <stdlib.h> |
4478 |
– |
#include <stdarg.h> |
4479 |
– |
#include <string.h> |
4480 |
– |
#include <float.h> |
4593 |
|
|
4482 |
– |
int |
4483 |
– |
main () |
4484 |
– |
{ |
4594 |
|
|
4486 |
– |
; |
4487 |
– |
return 0; |
4488 |
– |
} |
4489 |
– |
_ACEOF |
4490 |
– |
rm -f conftest.$ac_objext |
4491 |
– |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4492 |
– |
(eval $ac_compile) 2>conftest.er1 |
4493 |
– |
ac_status=$? |
4494 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
4495 |
– |
rm -f conftest.er1 |
4496 |
– |
cat conftest.err >&5 |
4497 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4498 |
– |
(exit $ac_status); } && |
4499 |
– |
{ ac_try='test -z "$ac_c_werror_flag" |
4500 |
– |
|| test ! -s conftest.err' |
4501 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4502 |
– |
(eval $ac_try) 2>&5 |
4503 |
– |
ac_status=$? |
4504 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4505 |
– |
(exit $ac_status); }; } && |
4506 |
– |
{ ac_try='test -s conftest.$ac_objext' |
4507 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4508 |
– |
(eval $ac_try) 2>&5 |
4509 |
– |
ac_status=$? |
4510 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4511 |
– |
(exit $ac_status); }; }; then |
4512 |
– |
ac_cv_header_stdc=yes |
4513 |
– |
else |
4514 |
– |
echo "$as_me: failed program was:" >&5 |
4515 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
4595 |
|
|
4596 |
< |
ac_cv_header_stdc=no |
4597 |
< |
fi |
4519 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4596 |
> |
# Try to determine native compiler flags that allow us to use F90 suffix |
4597 |
> |
# for preprocessed f90 source with -D type defines |
4598 |
|
|
4599 |
< |
if test $ac_cv_header_stdc = yes; then |
4600 |
< |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4601 |
< |
cat >conftest.$ac_ext <<_ACEOF |
4524 |
< |
/* confdefs.h. */ |
4525 |
< |
_ACEOF |
4526 |
< |
cat confdefs.h >>conftest.$ac_ext |
4527 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
4528 |
< |
/* end confdefs.h. */ |
4529 |
< |
#include <string.h> |
4599 |
> |
if test "$ac_test_PREPDEFFLAG" != "set"; then |
4600 |
> |
PREPDEFFLAG="" |
4601 |
> |
case "${host_cpu}-${host_os}" in |
4602 |
|
|
4603 |
< |
_ACEOF |
4604 |
< |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4605 |
< |
$EGREP "memchr" >/dev/null 2>&1; then |
4606 |
< |
: |
4607 |
< |
else |
4608 |
< |
ac_cv_header_stdc=no |
4609 |
< |
fi |
4610 |
< |
rm -f conftest* |
4603 |
> |
*linux*) if test "$FC" = ifc -o "$FC" = ifort; then |
4604 |
> |
PREPDEFFLAG=" " |
4605 |
> |
fi;; |
4606 |
> |
*aix*) if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then |
4607 |
> |
PREPDEFFLAG="-WF," |
4608 |
> |
fi;; |
4609 |
> |
*darwin*) |
4610 |
> |
if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then |
4611 |
> |
PREPDEFFLAG="-WF," |
4612 |
> |
fi;; |
4613 |
> |
esac |
4614 |
|
|
4615 |
< |
fi |
4615 |
> |
if test -z "$PREPDEFFLAG"; then |
4616 |
> |
{ echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5 |
4617 |
> |
echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;} |
4618 |
> |
PREPDEFFLAG=" " |
4619 |
> |
fi |
4620 |
|
|
4621 |
< |
if test $ac_cv_header_stdc = yes; then |
4622 |
< |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4544 |
< |
cat >conftest.$ac_ext <<_ACEOF |
4545 |
< |
/* confdefs.h. */ |
4546 |
< |
_ACEOF |
4547 |
< |
cat confdefs.h >>conftest.$ac_ext |
4548 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
4549 |
< |
/* end confdefs.h. */ |
4550 |
< |
#include <stdlib.h> |
4621 |
> |
{ echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5 |
4622 |
> |
echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6; } |
4623 |
|
|
4624 |
< |
_ACEOF |
4625 |
< |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4626 |
< |
$EGREP "free" >/dev/null 2>&1; then |
4627 |
< |
: |
4556 |
< |
else |
4557 |
< |
ac_cv_header_stdc=no |
4558 |
< |
fi |
4559 |
< |
rm -f conftest* |
4624 |
> |
ac_ext=${ac_fc_srcext-f} |
4625 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
4626 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
4627 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
4628 |
|
|
4629 |
< |
fi |
4629 |
> |
ac_save_ext=$ac_ext |
4630 |
> |
ac_ext=F90 |
4631 |
> |
ac_save_FCFLAGS=$FCFLAGS |
4632 |
|
|
4633 |
< |
if test $ac_cv_header_stdc = yes; then |
4634 |
< |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4565 |
< |
if test "$cross_compiling" = yes; then |
4566 |
< |
: |
4567 |
< |
else |
4568 |
< |
cat >conftest.$ac_ext <<_ACEOF |
4569 |
< |
/* confdefs.h. */ |
4570 |
< |
_ACEOF |
4571 |
< |
cat confdefs.h >>conftest.$ac_ext |
4572 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
4573 |
< |
/* end confdefs.h. */ |
4574 |
< |
#include <ctype.h> |
4575 |
< |
#if ((' ' & 0x0FF) == 0x020) |
4576 |
< |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4577 |
< |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4578 |
< |
#else |
4579 |
< |
# define ISLOWER(c) \ |
4580 |
< |
(('a' <= (c) && (c) <= 'i') \ |
4581 |
< |
|| ('j' <= (c) && (c) <= 'r') \ |
4582 |
< |
|| ('s' <= (c) && (c) <= 'z')) |
4583 |
< |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4584 |
< |
#endif |
4585 |
< |
|
4586 |
< |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4587 |
< |
int |
4588 |
< |
main () |
4589 |
< |
{ |
4590 |
< |
int i; |
4591 |
< |
for (i = 0; i < 256; i++) |
4592 |
< |
if (XOR (islower (i), ISLOWER (i)) |
4593 |
< |
|| toupper (i) != TOUPPER (i)) |
4594 |
< |
exit(2); |
4595 |
< |
exit (0); |
4596 |
< |
} |
4597 |
< |
_ACEOF |
4598 |
< |
rm -f conftest$ac_exeext |
4599 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4600 |
< |
(eval $ac_link) 2>&5 |
4601 |
< |
ac_status=$? |
4602 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4603 |
< |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4604 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4605 |
< |
(eval $ac_try) 2>&5 |
4606 |
< |
ac_status=$? |
4607 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4608 |
< |
(exit $ac_status); }; }; then |
4609 |
< |
: |
4610 |
< |
else |
4611 |
< |
echo "$as_me: program exited with status $ac_status" >&5 |
4612 |
< |
echo "$as_me: failed program was:" >&5 |
4613 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
4614 |
< |
|
4615 |
< |
( exit $ac_status ) |
4616 |
< |
ac_cv_header_stdc=no |
4633 |
> |
if test "$PREPDEFFLAG"; then |
4634 |
> |
FCFLAGS="${FCFLAGS} ${PREPDEFFLAG}-DTEST" |
4635 |
|
fi |
4618 |
– |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4619 |
– |
fi |
4620 |
– |
fi |
4621 |
– |
fi |
4622 |
– |
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4623 |
– |
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
4624 |
– |
if test $ac_cv_header_stdc = yes; then |
4636 |
|
|
4637 |
< |
cat >>confdefs.h <<\_ACEOF |
4627 |
< |
#define STDC_HEADERS 1 |
4628 |
< |
_ACEOF |
4637 |
> |
cat >conftest.$ac_ext <<_ACEOF |
4638 |
|
|
4630 |
– |
fi |
4639 |
|
|
4640 |
< |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4640 |
> |
program conftest |
4641 |
> |
integer :: i |
4642 |
> |
#ifdef TEST |
4643 |
> |
i = 1 |
4644 |
> |
#else |
4645 |
> |
choke me |
4646 |
> |
#endif |
4647 |
> |
end program conftest |
4648 |
|
|
4634 |
– |
|
4635 |
– |
|
4636 |
– |
|
4637 |
– |
|
4638 |
– |
|
4639 |
– |
|
4640 |
– |
|
4641 |
– |
|
4642 |
– |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4643 |
– |
inttypes.h stdint.h unistd.h |
4644 |
– |
do |
4645 |
– |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4646 |
– |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4647 |
– |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4648 |
– |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4649 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4650 |
– |
else |
4651 |
– |
cat >conftest.$ac_ext <<_ACEOF |
4652 |
– |
/* confdefs.h. */ |
4649 |
|
_ACEOF |
4650 |
< |
cat confdefs.h >>conftest.$ac_ext |
4651 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
4652 |
< |
/* end confdefs.h. */ |
4653 |
< |
$ac_includes_default |
4654 |
< |
|
4655 |
< |
#include <$ac_header> |
4656 |
< |
_ACEOF |
4657 |
< |
rm -f conftest.$ac_objext |
4662 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4663 |
< |
(eval $ac_compile) 2>conftest.er1 |
4650 |
> |
rm -rf conftest.$ac_objext |
4651 |
> |
if { (ac_try="$ac_compile" |
4652 |
> |
case "(($ac_try" in |
4653 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4654 |
> |
*) ac_try_echo=$ac_try;; |
4655 |
> |
esac |
4656 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4657 |
> |
(eval "$ac_compile") 2>conftest.er1 |
4658 |
|
ac_status=$? |
4659 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
4660 |
|
rm -f conftest.er1 |
4661 |
|
cat conftest.err >&5 |
4662 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4663 |
< |
(exit $ac_status); } && |
4664 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
4665 |
< |
|| test ! -s conftest.err' |
4666 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4667 |
< |
(eval $ac_try) 2>&5 |
4674 |
< |
ac_status=$? |
4675 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4676 |
< |
(exit $ac_status); }; } && |
4677 |
< |
{ ac_try='test -s conftest.$ac_objext' |
4678 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4679 |
< |
(eval $ac_try) 2>&5 |
4680 |
< |
ac_status=$? |
4681 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4682 |
< |
(exit $ac_status); }; }; then |
4683 |
< |
eval "$as_ac_Header=yes" |
4663 |
> |
(exit $ac_status); } && { |
4664 |
> |
test -z "$ac_fc_werror_flag" || |
4665 |
> |
test ! -s conftest.err |
4666 |
> |
} && test -s conftest.$ac_objext; then |
4667 |
> |
prepdefflagworks=1 |
4668 |
|
else |
4669 |
|
echo "$as_me: failed program was:" >&5 |
4670 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
4671 |
|
|
4672 |
< |
eval "$as_ac_Header=no" |
4672 |
> |
prepdefflagworks=0 |
4673 |
|
fi |
4690 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4691 |
– |
fi |
4692 |
– |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4693 |
– |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4694 |
– |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4695 |
– |
cat >>confdefs.h <<_ACEOF |
4696 |
– |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4697 |
– |
_ACEOF |
4674 |
|
|
4675 |
< |
fi |
4675 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
4676 |
|
|
4677 |
< |
done |
4677 |
> |
FCFLAGS=$ac_save_FCFLAGS |
4678 |
> |
ac_ext=$ac_save_ext |
4679 |
> |
ac_ext=${ac_fc_srcext-f} |
4680 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
4681 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
4682 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
4683 |
|
|
4684 |
|
|
4685 |
< |
# clean out junk possibly left behind by a previous configuration |
4686 |
< |
rm -f utils/getopt.h |
4687 |
< |
# Check for getopt_long support |
4685 |
> |
if test "$prepdefflagworks" = 1; then |
4686 |
> |
{ echo "$as_me:$LINENO: result: yes" >&5 |
4687 |
> |
echo "${ECHO_T}yes" >&6; } |
4688 |
|
|
4689 |
< |
for ac_header in getopt.h |
4690 |
< |
do |
4691 |
< |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4692 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4693 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4694 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4695 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4715 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4689 |
> |
else |
4690 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
4691 |
> |
echo "${ECHO_T}no" >&6; } |
4692 |
> |
{ { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5 |
4693 |
> |
echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;} |
4694 |
> |
{ (exit 1); exit 1; }; } |
4695 |
> |
fi |
4696 |
|
fi |
4697 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4698 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4697 |
> |
|
4698 |
> |
ac_ext=${ac_fc_srcext-f} |
4699 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
4700 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
4701 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
4702 |
> |
{ echo "$as_me:$LINENO: checking how to get verbose linking output from $FC" >&5 |
4703 |
> |
echo $ECHO_N "checking how to get verbose linking output from $FC... $ECHO_C" >&6; } |
4704 |
> |
if test "${ac_cv_prog_fc_v+set}" = set; then |
4705 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4706 |
|
else |
4707 |
< |
# Is the header compilable? |
4708 |
< |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4709 |
< |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
4710 |
< |
cat >conftest.$ac_ext <<_ACEOF |
4724 |
< |
/* confdefs.h. */ |
4707 |
> |
cat >conftest.$ac_ext <<_ACEOF |
4708 |
> |
program main |
4709 |
> |
|
4710 |
> |
end |
4711 |
|
_ACEOF |
4712 |
< |
cat confdefs.h >>conftest.$ac_ext |
4713 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
4714 |
< |
/* end confdefs.h. */ |
4715 |
< |
$ac_includes_default |
4716 |
< |
#include <$ac_header> |
4717 |
< |
_ACEOF |
4718 |
< |
rm -f conftest.$ac_objext |
4719 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4734 |
< |
(eval $ac_compile) 2>conftest.er1 |
4712 |
> |
rm -rf conftest.$ac_objext |
4713 |
> |
if { (ac_try="$ac_compile" |
4714 |
> |
case "(($ac_try" in |
4715 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4716 |
> |
*) ac_try_echo=$ac_try;; |
4717 |
> |
esac |
4718 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4719 |
> |
(eval "$ac_compile") 2>conftest.er1 |
4720 |
|
ac_status=$? |
4721 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
4722 |
< |
rm -f conftest.er1 |
4722 |
> |
rm -rf conftest.er1 |
4723 |
|
cat conftest.err >&5 |
4724 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4725 |
< |
(exit $ac_status); } && |
4726 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
4727 |
< |
|| test ! -s conftest.err' |
4728 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4729 |
< |
(eval $ac_try) 2>&5 |
4730 |
< |
ac_status=$? |
4731 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4732 |
< |
(exit $ac_status); }; } && |
4733 |
< |
{ ac_try='test -s conftest.$ac_objext' |
4749 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4750 |
< |
(eval $ac_try) 2>&5 |
4751 |
< |
ac_status=$? |
4752 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4753 |
< |
(exit $ac_status); }; }; then |
4754 |
< |
ac_header_compiler=yes |
4755 |
< |
else |
4756 |
< |
echo "$as_me: failed program was:" >&5 |
4757 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
4725 |
> |
(exit $ac_status); } && { |
4726 |
> |
test -z "$ac_fc_werror_flag" || |
4727 |
> |
test ! -s conftest.err |
4728 |
> |
} && test -s conftest.$ac_objext; then |
4729 |
> |
ac_cv_prog_fc_v= |
4730 |
> |
# Try some options frequently used verbose output |
4731 |
> |
for ac_verb in -v -verbose --verbose -V -\#\#\#; do |
4732 |
> |
cat >conftest.$ac_ext <<_ACEOF |
4733 |
> |
program main |
4734 |
|
|
4735 |
< |
ac_header_compiler=no |
4760 |
< |
fi |
4761 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4762 |
< |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4763 |
< |
echo "${ECHO_T}$ac_header_compiler" >&6 |
4764 |
< |
|
4765 |
< |
# Is the header present? |
4766 |
< |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4767 |
< |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
4768 |
< |
cat >conftest.$ac_ext <<_ACEOF |
4769 |
< |
/* confdefs.h. */ |
4735 |
> |
end |
4736 |
|
_ACEOF |
4737 |
< |
cat confdefs.h >>conftest.$ac_ext |
4738 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
4739 |
< |
/* end confdefs.h. */ |
4740 |
< |
#include <$ac_header> |
4741 |
< |
_ACEOF |
4742 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4743 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4744 |
< |
ac_status=$? |
4745 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
4746 |
< |
rm -f conftest.er1 |
4747 |
< |
cat conftest.err >&5 |
4748 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4749 |
< |
(exit $ac_status); } >/dev/null; then |
4750 |
< |
if test -s conftest.err; then |
4751 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
4752 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4753 |
< |
else |
4754 |
< |
ac_cpp_err= |
4755 |
< |
fi |
4756 |
< |
else |
4757 |
< |
ac_cpp_err=yes |
4737 |
> |
|
4738 |
> |
# Compile and link our simple test program by passing a flag (argument |
4739 |
> |
# 1 to this macro) to the Fortran compiler in order to get |
4740 |
> |
# "verbose" output that we can then parse for the Fortran linker |
4741 |
> |
# flags. |
4742 |
> |
ac_save_FFLAGS=$FCFLAGS |
4743 |
> |
FCFLAGS="$FCFLAGS $ac_verb" |
4744 |
> |
eval "set x $ac_link" |
4745 |
> |
shift |
4746 |
> |
echo "$as_me:$LINENO: $*" >&5 |
4747 |
> |
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
4748 |
> |
echo "$ac_fc_v_output" >&5 |
4749 |
> |
FCFLAGS=$ac_save_FFLAGS |
4750 |
> |
|
4751 |
> |
rm -rf conftest* |
4752 |
> |
|
4753 |
> |
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
4754 |
> |
# /foo, /bar, and /baz are search directories for the Fortran linker. |
4755 |
> |
# Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
4756 |
> |
ac_fc_v_output="`echo $ac_fc_v_output | |
4757 |
> |
grep 'LPATH is:' | |
4758 |
> |
sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output" |
4759 |
> |
|
4760 |
> |
# FIXME: we keep getting bitten by quoted arguments; a more general fix |
4761 |
> |
# that detects unbalanced quotes in FLIBS should be implemented |
4762 |
> |
# and (ugh) tested at some point. |
4763 |
> |
case $ac_fc_v_output in |
4764 |
> |
# If we are using xlf then replace all the commas with spaces. |
4765 |
> |
*xlfentry*) |
4766 |
> |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;; |
4767 |
> |
|
4768 |
> |
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
4769 |
> |
# $LIBS confuse us, and the libraries appear later in the output anyway). |
4770 |
> |
*mGLOB_options_string*) |
4771 |
> |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; |
4772 |
> |
|
4773 |
> |
# Portland Group compiler has singly- or doubly-quoted -cmdline argument |
4774 |
> |
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. |
4775 |
> |
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". |
4776 |
> |
*-cmdline\ * | *-ignore\ * | *-def\ *) |
4777 |
> |
ac_fc_v_output=`echo $ac_fc_v_output | sed "\ |
4778 |
> |
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g |
4779 |
> |
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g |
4780 |
> |
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; |
4781 |
> |
|
4782 |
> |
# If we are using Cray Fortran then delete quotes. |
4783 |
> |
*cft90*) |
4784 |
> |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; |
4785 |
> |
esac |
4786 |
> |
|
4787 |
> |
|
4788 |
> |
# look for -l* and *.a constructs in the output |
4789 |
> |
for ac_arg in $ac_fc_v_output; do |
4790 |
> |
case $ac_arg in |
4791 |
> |
[\\/]*.a | ?:[\\/]*.a | -[lLRu]*) |
4792 |
> |
ac_cv_prog_fc_v=$ac_verb |
4793 |
> |
break 2 ;; |
4794 |
> |
esac |
4795 |
> |
done |
4796 |
> |
done |
4797 |
> |
if test -z "$ac_cv_prog_fc_v"; then |
4798 |
> |
{ echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $FC" >&5 |
4799 |
> |
echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;} |
4800 |
|
fi |
4793 |
– |
if test -z "$ac_cpp_err"; then |
4794 |
– |
ac_header_preproc=yes |
4801 |
|
else |
4802 |
|
echo "$as_me: failed program was:" >&5 |
4803 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
4804 |
|
|
4805 |
< |
ac_header_preproc=no |
4805 |
> |
{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5 |
4806 |
> |
echo "$as_me: WARNING: compilation failed" >&2;} |
4807 |
|
fi |
4801 |
– |
rm -f conftest.err conftest.$ac_ext |
4802 |
– |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4803 |
– |
echo "${ECHO_T}$ac_header_preproc" >&6 |
4808 |
|
|
4809 |
< |
# So? What about this header? |
4810 |
< |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4811 |
< |
yes:no: ) |
4812 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4813 |
< |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
4814 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4815 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
4816 |
< |
ac_header_preproc=yes |
4813 |
< |
;; |
4814 |
< |
no:yes:* ) |
4815 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4816 |
< |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
4817 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4818 |
< |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
4819 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
4820 |
< |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
4821 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
4822 |
< |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
4823 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4824 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
4825 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4826 |
< |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
4827 |
< |
( |
4828 |
< |
cat <<\_ASBOX |
4829 |
< |
## ------------------------------ ## |
4830 |
< |
## Report this to gezelter@nd.edu ## |
4831 |
< |
## ------------------------------ ## |
4832 |
< |
_ASBOX |
4833 |
< |
) | |
4834 |
< |
sed "s/^/$as_me: WARNING: /" >&2 |
4835 |
< |
;; |
4836 |
< |
esac |
4837 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4838 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4839 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4809 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
4810 |
> |
|
4811 |
> |
fi |
4812 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_fc_v" >&5 |
4813 |
> |
echo "${ECHO_T}$ac_cv_prog_fc_v" >&6; } |
4814 |
> |
{ echo "$as_me:$LINENO: checking for Fortran libraries of $FC" >&5 |
4815 |
> |
echo $ECHO_N "checking for Fortran libraries of $FC... $ECHO_C" >&6; } |
4816 |
> |
if test "${ac_cv_fc_libs+set}" = set; then |
4817 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4818 |
|
else |
4819 |
< |
eval "$as_ac_Header=\$ac_header_preproc" |
4819 |
> |
if test "x$FCLIBS" != "x"; then |
4820 |
> |
ac_cv_fc_libs="$FCLIBS" # Let the user override the test. |
4821 |
> |
else |
4822 |
> |
|
4823 |
> |
cat >conftest.$ac_ext <<_ACEOF |
4824 |
> |
program main |
4825 |
> |
|
4826 |
> |
end |
4827 |
> |
_ACEOF |
4828 |
> |
|
4829 |
> |
# Compile and link our simple test program by passing a flag (argument |
4830 |
> |
# 1 to this macro) to the Fortran compiler in order to get |
4831 |
> |
# "verbose" output that we can then parse for the Fortran linker |
4832 |
> |
# flags. |
4833 |
> |
ac_save_FFLAGS=$FCFLAGS |
4834 |
> |
FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v" |
4835 |
> |
eval "set x $ac_link" |
4836 |
> |
shift |
4837 |
> |
echo "$as_me:$LINENO: $*" >&5 |
4838 |
> |
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
4839 |
> |
echo "$ac_fc_v_output" >&5 |
4840 |
> |
FCFLAGS=$ac_save_FFLAGS |
4841 |
> |
|
4842 |
> |
rm -rf conftest* |
4843 |
> |
|
4844 |
> |
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
4845 |
> |
# /foo, /bar, and /baz are search directories for the Fortran linker. |
4846 |
> |
# Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
4847 |
> |
ac_fc_v_output="`echo $ac_fc_v_output | |
4848 |
> |
grep 'LPATH is:' | |
4849 |
> |
sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output" |
4850 |
> |
|
4851 |
> |
# FIXME: we keep getting bitten by quoted arguments; a more general fix |
4852 |
> |
# that detects unbalanced quotes in FLIBS should be implemented |
4853 |
> |
# and (ugh) tested at some point. |
4854 |
> |
case $ac_fc_v_output in |
4855 |
> |
# If we are using xlf then replace all the commas with spaces. |
4856 |
> |
*xlfentry*) |
4857 |
> |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;; |
4858 |
> |
|
4859 |
> |
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
4860 |
> |
# $LIBS confuse us, and the libraries appear later in the output anyway). |
4861 |
> |
*mGLOB_options_string*) |
4862 |
> |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; |
4863 |
> |
|
4864 |
> |
# Portland Group compiler has singly- or doubly-quoted -cmdline argument |
4865 |
> |
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. |
4866 |
> |
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". |
4867 |
> |
*-cmdline\ * | *-ignore\ * | *-def\ *) |
4868 |
> |
ac_fc_v_output=`echo $ac_fc_v_output | sed "\ |
4869 |
> |
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g |
4870 |
> |
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g |
4871 |
> |
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; |
4872 |
> |
|
4873 |
> |
# If we are using Cray Fortran then delete quotes. |
4874 |
> |
*cft90*) |
4875 |
> |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; |
4876 |
> |
esac |
4877 |
> |
|
4878 |
> |
|
4879 |
> |
|
4880 |
> |
ac_cv_fc_libs= |
4881 |
> |
|
4882 |
> |
# Save positional arguments (if any) |
4883 |
> |
ac_save_positional="$@" |
4884 |
> |
|
4885 |
> |
set X $ac_fc_v_output |
4886 |
> |
while test $# != 1; do |
4887 |
> |
shift |
4888 |
> |
ac_arg=$1 |
4889 |
> |
case $ac_arg in |
4890 |
> |
[\\/]*.a | ?:[\\/]*.a) |
4891 |
> |
ac_exists=false |
4892 |
> |
for ac_i in $ac_cv_fc_libs; do |
4893 |
> |
if test x"$ac_arg" = x"$ac_i"; then |
4894 |
> |
ac_exists=true |
4895 |
> |
break |
4896 |
> |
fi |
4897 |
> |
done |
4898 |
> |
|
4899 |
> |
if test x"$ac_exists" = xtrue; then |
4900 |
> |
: |
4901 |
> |
else |
4902 |
> |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
4903 |
|
fi |
4844 |
– |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4845 |
– |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4904 |
|
|
4905 |
+ |
;; |
4906 |
+ |
-bI:*) |
4907 |
+ |
ac_exists=false |
4908 |
+ |
for ac_i in $ac_cv_fc_libs; do |
4909 |
+ |
if test x"$ac_arg" = x"$ac_i"; then |
4910 |
+ |
ac_exists=true |
4911 |
+ |
break |
4912 |
+ |
fi |
4913 |
+ |
done |
4914 |
+ |
|
4915 |
+ |
if test x"$ac_exists" = xtrue; then |
4916 |
+ |
: |
4917 |
+ |
else |
4918 |
+ |
if test "$ac_compiler_gnu" = yes; then |
4919 |
+ |
for ac_link_opt in $ac_arg; do |
4920 |
+ |
ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" |
4921 |
+ |
done |
4922 |
+ |
else |
4923 |
+ |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
4924 |
|
fi |
4925 |
< |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4926 |
< |
cat >>confdefs.h <<_ACEOF |
4927 |
< |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4928 |
< |
_ACEOF |
4925 |
> |
fi |
4926 |
> |
|
4927 |
> |
;; |
4928 |
> |
# Ignore these flags. |
4929 |
> |
-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*) |
4930 |
> |
;; |
4931 |
> |
-lkernel32) |
4932 |
> |
test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
4933 |
> |
;; |
4934 |
> |
-[LRuYz]) |
4935 |
> |
# These flags, when seen by themselves, take an argument. |
4936 |
> |
# We remove the space between option and argument and re-iterate |
4937 |
> |
# unless we find an empty arg or a new option (starting with -) |
4938 |
> |
case $2 in |
4939 |
> |
"" | -*);; |
4940 |
> |
*) |
4941 |
> |
ac_arg="$ac_arg$2" |
4942 |
> |
shift; shift |
4943 |
> |
set X $ac_arg "$@" |
4944 |
> |
;; |
4945 |
> |
esac |
4946 |
> |
;; |
4947 |
> |
-YP,*) |
4948 |
> |
for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
4949 |
> |
ac_exists=false |
4950 |
> |
for ac_i in $ac_cv_fc_libs; do |
4951 |
> |
if test x"$ac_j" = x"$ac_i"; then |
4952 |
> |
ac_exists=true |
4953 |
> |
break |
4954 |
> |
fi |
4955 |
> |
done |
4956 |
|
|
4957 |
+ |
if test x"$ac_exists" = xtrue; then |
4958 |
+ |
: |
4959 |
+ |
else |
4960 |
+ |
ac_arg="$ac_arg $ac_j" |
4961 |
+ |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_j" |
4962 |
|
fi |
4963 |
|
|
4964 |
+ |
done |
4965 |
+ |
;; |
4966 |
+ |
-[lLR]*) |
4967 |
+ |
ac_exists=false |
4968 |
+ |
for ac_i in $ac_cv_fc_libs; do |
4969 |
+ |
if test x"$ac_arg" = x"$ac_i"; then |
4970 |
+ |
ac_exists=true |
4971 |
+ |
break |
4972 |
+ |
fi |
4973 |
+ |
done |
4974 |
+ |
|
4975 |
+ |
if test x"$ac_exists" = xtrue; then |
4976 |
+ |
: |
4977 |
+ |
else |
4978 |
+ |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
4979 |
+ |
fi |
4980 |
+ |
|
4981 |
+ |
;; |
4982 |
+ |
-zallextract*| -zdefaultextract) |
4983 |
+ |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
4984 |
+ |
;; |
4985 |
+ |
# Ignore everything else. |
4986 |
+ |
esac |
4987 |
|
done |
4988 |
+ |
# restore positional arguments |
4989 |
+ |
set X $ac_save_positional; shift |
4990 |
|
|
4991 |
+ |
# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, |
4992 |
+ |
# then we insist that the "run path" must be an absolute path (i.e. it |
4993 |
+ |
# must begin with a "/"). |
4994 |
+ |
case `(uname -sr) 2>/dev/null` in |
4995 |
+ |
"SunOS 5"*) |
4996 |
+ |
ac_ld_run_path=`echo $ac_fc_v_output | |
4997 |
+ |
sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` |
4998 |
+ |
test "x$ac_ld_run_path" != x && |
4999 |
+ |
if test "$ac_compiler_gnu" = yes; then |
5000 |
+ |
for ac_link_opt in $ac_ld_run_path; do |
5001 |
+ |
ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" |
5002 |
+ |
done |
5003 |
+ |
else |
5004 |
+ |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path" |
5005 |
+ |
fi |
5006 |
+ |
;; |
5007 |
+ |
esac |
5008 |
+ |
fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" |
5009 |
|
|
5010 |
< |
for ac_func in getopt_long |
5011 |
< |
do |
5012 |
< |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5013 |
< |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5014 |
< |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
5015 |
< |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
5010 |
> |
fi |
5011 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_fc_libs" >&5 |
5012 |
> |
echo "${ECHO_T}$ac_cv_fc_libs" >&6; } |
5013 |
> |
FCLIBS="$ac_cv_fc_libs" |
5014 |
> |
|
5015 |
> |
|
5016 |
> |
ac_ext=${ac_fc_srcext-f} |
5017 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5018 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5019 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5020 |
> |
|
5021 |
> |
|
5022 |
> |
ac_ext=${ac_fc_srcext-f} |
5023 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5024 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5025 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5026 |
> |
|
5027 |
> |
{ echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5 |
5028 |
> |
echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6; } |
5029 |
> |
if test "${ac_cv_fc_dummy_main+set}" = set; then |
5030 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5031 |
|
else |
5032 |
< |
cat >conftest.$ac_ext <<_ACEOF |
5032 |
> |
ac_fc_dm_save_LIBS=$LIBS |
5033 |
> |
LIBS="$LIBS $FCLIBS" |
5034 |
> |
ac_fortran_dm_var=FC_DUMMY_MAIN |
5035 |
> |
ac_ext=c |
5036 |
> |
ac_cpp='$CPP $CPPFLAGS' |
5037 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5038 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5039 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5040 |
> |
|
5041 |
> |
# First, try linking without a dummy main: |
5042 |
> |
cat >conftest.$ac_ext <<_ACEOF |
5043 |
|
/* confdefs.h. */ |
5044 |
|
_ACEOF |
5045 |
|
cat confdefs.h >>conftest.$ac_ext |
5046 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5047 |
|
/* end confdefs.h. */ |
4872 |
– |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
4873 |
– |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
4874 |
– |
#define $ac_func innocuous_$ac_func |
5048 |
|
|
5049 |
< |
/* System header to define __stub macros and hopefully few prototypes, |
5050 |
< |
which can conflict with char $ac_func (); below. |
5051 |
< |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5052 |
< |
<limits.h> exists even on freestanding compilers. */ |
5053 |
< |
|
5054 |
< |
#ifdef __STDC__ |
4882 |
< |
# include <limits.h> |
4883 |
< |
#else |
4884 |
< |
# include <assert.h> |
5049 |
> |
#ifdef FC_DUMMY_MAIN |
5050 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
5051 |
> |
# ifdef __cplusplus |
5052 |
> |
extern "C" |
5053 |
> |
# endif |
5054 |
> |
int FC_DUMMY_MAIN() { return 1; } |
5055 |
|
#endif |
4886 |
– |
|
4887 |
– |
#undef $ac_func |
4888 |
– |
|
4889 |
– |
/* Override any gcc2 internal prototype to avoid an error. */ |
4890 |
– |
#ifdef __cplusplus |
4891 |
– |
extern "C" |
4892 |
– |
{ |
5056 |
|
#endif |
4894 |
– |
/* We use char because int might match the return type of a gcc2 |
4895 |
– |
builtin and then its argument prototype would still apply. */ |
4896 |
– |
char $ac_func (); |
4897 |
– |
/* The GNU C library defines this for functions which it implements |
4898 |
– |
to always fail with ENOSYS. Some functions are actually named |
4899 |
– |
something starting with __ and the normal name is an alias. */ |
4900 |
– |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
4901 |
– |
choke me |
4902 |
– |
#else |
4903 |
– |
char (*f) () = $ac_func; |
4904 |
– |
#endif |
4905 |
– |
#ifdef __cplusplus |
4906 |
– |
} |
4907 |
– |
#endif |
4908 |
– |
|
5057 |
|
int |
5058 |
|
main () |
5059 |
|
{ |
5060 |
< |
return f != $ac_func; |
5060 |
> |
|
5061 |
|
; |
5062 |
|
return 0; |
5063 |
|
} |
5064 |
|
_ACEOF |
5065 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
5066 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5067 |
< |
(eval $ac_link) 2>conftest.er1 |
5065 |
> |
rm -rf conftest.$ac_objext conftest$ac_exeext |
5066 |
> |
if { (ac_try="$ac_link" |
5067 |
> |
case "(($ac_try" in |
5068 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5069 |
> |
*) ac_try_echo=$ac_try;; |
5070 |
> |
esac |
5071 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5072 |
> |
(eval "$ac_link") 2>conftest.er1 |
5073 |
|
ac_status=$? |
5074 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
5075 |
|
rm -f conftest.er1 |
5076 |
|
cat conftest.err >&5 |
5077 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5078 |
< |
(exit $ac_status); } && |
5079 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
5080 |
< |
|| test ! -s conftest.err' |
5081 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5082 |
< |
(eval $ac_try) 2>&5 |
5083 |
< |
ac_status=$? |
4931 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4932 |
< |
(exit $ac_status); }; } && |
4933 |
< |
{ ac_try='test -s conftest$ac_exeext' |
4934 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4935 |
< |
(eval $ac_try) 2>&5 |
4936 |
< |
ac_status=$? |
4937 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4938 |
< |
(exit $ac_status); }; }; then |
4939 |
< |
eval "$as_ac_var=yes" |
5078 |
> |
(exit $ac_status); } && { |
5079 |
> |
test -z "$ac_c_werror_flag" || |
5080 |
> |
test ! -s conftest.err |
5081 |
> |
} && test -s conftest$ac_exeext && |
5082 |
> |
$as_test_x conftest$ac_exeext; then |
5083 |
> |
ac_cv_fortran_dummy_main=none |
5084 |
|
else |
5085 |
|
echo "$as_me: failed program was:" >&5 |
5086 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5087 |
|
|
5088 |
< |
eval "$as_ac_var=no" |
5088 |
> |
ac_cv_fortran_dummy_main=unknown |
5089 |
|
fi |
5090 |
< |
rm -f conftest.err conftest.$ac_objext \ |
5090 |
> |
|
5091 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
5092 |
|
conftest$ac_exeext conftest.$ac_ext |
4948 |
– |
fi |
4949 |
– |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
4950 |
– |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
4951 |
– |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
4952 |
– |
cat >>confdefs.h <<_ACEOF |
4953 |
– |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
4954 |
– |
_ACEOF |
5093 |
|
|
5094 |
< |
else |
5095 |
< |
# FreeBSD has a gnugetopt library for this |
5096 |
< |
echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5 |
4959 |
< |
echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6 |
4960 |
< |
if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then |
4961 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4962 |
< |
else |
4963 |
< |
ac_check_lib_save_LIBS=$LIBS |
4964 |
< |
LIBS="-lgnugetopt $LIBS" |
4965 |
< |
cat >conftest.$ac_ext <<_ACEOF |
5094 |
> |
if test $ac_cv_fortran_dummy_main = unknown; then |
5095 |
> |
for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do |
5096 |
> |
cat >conftest.$ac_ext <<_ACEOF |
5097 |
|
/* confdefs.h. */ |
5098 |
|
_ACEOF |
5099 |
|
cat confdefs.h >>conftest.$ac_ext |
5100 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5101 |
|
/* end confdefs.h. */ |
5102 |
< |
|
5103 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
5104 |
< |
#ifdef __cplusplus |
5105 |
< |
extern "C" |
5102 |
> |
#define $ac_fortran_dm_var $ac_func |
5103 |
> |
#ifdef FC_DUMMY_MAIN |
5104 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
5105 |
> |
# ifdef __cplusplus |
5106 |
> |
extern "C" |
5107 |
> |
# endif |
5108 |
> |
int FC_DUMMY_MAIN() { return 1; } |
5109 |
|
#endif |
5110 |
< |
/* We use char because int might match the return type of a gcc2 |
4977 |
< |
builtin and then its argument prototype would still apply. */ |
4978 |
< |
char getopt_long (); |
5110 |
> |
#endif |
5111 |
|
int |
5112 |
|
main () |
5113 |
|
{ |
5114 |
< |
getopt_long (); |
5114 |
> |
|
5115 |
|
; |
5116 |
|
return 0; |
5117 |
|
} |
5118 |
|
_ACEOF |
5119 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
5120 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5121 |
< |
(eval $ac_link) 2>conftest.er1 |
5119 |
> |
rm -rf conftest.$ac_objext conftest$ac_exeext |
5120 |
> |
if { (ac_try="$ac_link" |
5121 |
> |
case "(($ac_try" in |
5122 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5123 |
> |
*) ac_try_echo=$ac_try;; |
5124 |
> |
esac |
5125 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5126 |
> |
(eval "$ac_link") 2>conftest.er1 |
5127 |
|
ac_status=$? |
5128 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
5129 |
|
rm -f conftest.er1 |
5130 |
|
cat conftest.err >&5 |
5131 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5132 |
< |
(exit $ac_status); } && |
5133 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
5134 |
< |
|| test ! -s conftest.err' |
5135 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5136 |
< |
(eval $ac_try) 2>&5 |
5137 |
< |
ac_status=$? |
5001 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5002 |
< |
(exit $ac_status); }; } && |
5003 |
< |
{ ac_try='test -s conftest$ac_exeext' |
5004 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5005 |
< |
(eval $ac_try) 2>&5 |
5006 |
< |
ac_status=$? |
5007 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5008 |
< |
(exit $ac_status); }; }; then |
5009 |
< |
ac_cv_lib_gnugetopt_getopt_long=yes |
5132 |
> |
(exit $ac_status); } && { |
5133 |
> |
test -z "$ac_c_werror_flag" || |
5134 |
> |
test ! -s conftest.err |
5135 |
> |
} && test -s conftest$ac_exeext && |
5136 |
> |
$as_test_x conftest$ac_exeext; then |
5137 |
> |
ac_cv_fortran_dummy_main=$ac_func; break |
5138 |
|
else |
5139 |
|
echo "$as_me: failed program was:" >&5 |
5140 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5141 |
|
|
5142 |
< |
ac_cv_lib_gnugetopt_getopt_long=no |
5142 |
> |
|
5143 |
|
fi |
5144 |
< |
rm -f conftest.err conftest.$ac_objext \ |
5144 |
> |
|
5145 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
5146 |
|
conftest$ac_exeext conftest.$ac_ext |
5147 |
< |
LIBS=$ac_check_lib_save_LIBS |
5147 |
> |
done |
5148 |
> |
fi |
5149 |
> |
ac_ext=${ac_fc_srcext-f} |
5150 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5151 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5152 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5153 |
> |
ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main |
5154 |
> |
rm -rf conftest* |
5155 |
> |
LIBS=$ac_fc_dm_save_LIBS |
5156 |
> |
|
5157 |
|
fi |
5158 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5 |
5159 |
< |
echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6 |
5160 |
< |
if test $ac_cv_lib_gnugetopt_getopt_long = yes; then |
5161 |
< |
cat >>confdefs.h <<\_ACEOF |
5162 |
< |
#define HAVE_GETOPT_LONG 1 |
5158 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_fc_dummy_main" >&5 |
5159 |
> |
echo "${ECHO_T}$ac_cv_fc_dummy_main" >&6; } |
5160 |
> |
FC_DUMMY_MAIN=$ac_cv_fc_dummy_main |
5161 |
> |
if test "$FC_DUMMY_MAIN" != unknown; then |
5162 |
> |
if test $FC_DUMMY_MAIN != none; then |
5163 |
> |
|
5164 |
> |
cat >>confdefs.h <<_ACEOF |
5165 |
> |
#define FC_DUMMY_MAIN $FC_DUMMY_MAIN |
5166 |
|
_ACEOF |
5167 |
|
|
5168 |
< |
else |
5028 |
< |
# use the GNU replacement |
5029 |
< |
case $LIBOBJS in |
5030 |
< |
"getopt.$ac_objext" | \ |
5031 |
< |
*" getopt.$ac_objext" | \ |
5032 |
< |
"getopt.$ac_objext "* | \ |
5033 |
< |
*" getopt.$ac_objext "* ) ;; |
5034 |
< |
*) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;; |
5035 |
< |
esac |
5168 |
> |
if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then |
5169 |
|
|
5170 |
< |
case $LIBOBJS in |
5171 |
< |
"getopt1.$ac_objext" | \ |
5172 |
< |
*" getopt1.$ac_objext" | \ |
5040 |
< |
"getopt1.$ac_objext "* | \ |
5041 |
< |
*" getopt1.$ac_objext "* ) ;; |
5042 |
< |
*) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;; |
5043 |
< |
esac |
5170 |
> |
cat >>confdefs.h <<\_ACEOF |
5171 |
> |
#define FC_DUMMY_MAIN_EQ_F77 1 |
5172 |
> |
_ACEOF |
5173 |
|
|
5174 |
< |
ac_config_links="$ac_config_links utils/getopt.h:utils/gnugetopt.h" |
5046 |
< |
|
5174 |
> |
fi |
5175 |
|
fi |
5176 |
< |
|
5176 |
> |
else |
5177 |
> |
{ { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails |
5178 |
> |
See \`config.log' for more details." >&5 |
5179 |
> |
echo "$as_me: error: linking to Fortran libraries from C fails |
5180 |
> |
See \`config.log' for more details." >&2;} |
5181 |
> |
{ (exit 1); exit 1; }; } |
5182 |
|
fi |
5050 |
– |
done |
5183 |
|
|
5184 |
|
|
5185 |
+ |
ac_ext=${ac_fc_srcext-f} |
5186 |
+ |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5187 |
+ |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5188 |
+ |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5189 |
|
|
5190 |
< |
case $debug in |
5191 |
< |
1) |
5192 |
< |
;; |
5193 |
< |
*) |
5194 |
< |
|
5195 |
< |
|
5196 |
< |
|
5061 |
< |
|
5062 |
< |
|
5063 |
< |
|
5064 |
< |
echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5 |
5065 |
< |
echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6 |
5066 |
< |
if test "${ac_cv_prog_really_gcc+set}" = set; then |
5190 |
> |
ac_ext=${ac_fc_srcext-f} |
5191 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5192 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5193 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5194 |
> |
{ echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5 |
5195 |
> |
echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6; } |
5196 |
> |
if test "${ac_cv_fc_mangling+set}" = set; then |
5197 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5198 |
|
else |
5199 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
5200 |
+ |
subroutine foobar() |
5201 |
+ |
return |
5202 |
+ |
end |
5203 |
+ |
subroutine foo_bar() |
5204 |
+ |
return |
5205 |
+ |
end |
5206 |
+ |
_ACEOF |
5207 |
+ |
rm -rf conftest.$ac_objext |
5208 |
+ |
if { (ac_try="$ac_compile" |
5209 |
+ |
case "(($ac_try" in |
5210 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5211 |
+ |
*) ac_try_echo=$ac_try;; |
5212 |
+ |
esac |
5213 |
+ |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5214 |
+ |
(eval "$ac_compile") 2>conftest.er1 |
5215 |
+ |
ac_status=$? |
5216 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
5217 |
+ |
rm -f conftest.er1 |
5218 |
+ |
cat conftest.err >&5 |
5219 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5220 |
+ |
(exit $ac_status); } && { |
5221 |
+ |
test -z "$ac_fc_werror_flag" || |
5222 |
+ |
test ! -s conftest.err |
5223 |
+ |
} && test -s conftest.$ac_objext; then |
5224 |
+ |
mv conftest.$ac_objext cfortran_test.$ac_objext |
5225 |
|
|
5226 |
< |
cat > conftest.c <<EOF |
5227 |
< |
#ifdef __GNUC__ |
5228 |
< |
#ifndef __INTEL_COMPILER |
5229 |
< |
yes; |
5230 |
< |
#endif |
5226 |
> |
ac_save_LIBS=$LIBS |
5227 |
> |
LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS" |
5228 |
> |
|
5229 |
> |
ac_ext=c |
5230 |
> |
ac_cpp='$CPP $CPPFLAGS' |
5231 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5232 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5233 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5234 |
> |
ac_success=no |
5235 |
> |
for ac_foobar in foobar FOOBAR; do |
5236 |
> |
for ac_underscore in "" "_"; do |
5237 |
> |
ac_func="$ac_foobar$ac_underscore" |
5238 |
> |
cat >conftest.$ac_ext <<_ACEOF |
5239 |
> |
/* confdefs.h. */ |
5240 |
> |
_ACEOF |
5241 |
> |
cat confdefs.h >>conftest.$ac_ext |
5242 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
5243 |
> |
/* end confdefs.h. */ |
5244 |
> |
|
5245 |
> |
/* Override any GCC internal prototype to avoid an error. |
5246 |
> |
Use char because int might match the return type of a GCC |
5247 |
> |
builtin and then its argument prototype would still apply. */ |
5248 |
> |
#ifdef __cplusplus |
5249 |
> |
extern "C" |
5250 |
|
#endif |
5251 |
< |
EOF |
5252 |
< |
if { ac_try='${CC-cc} -E conftest.c' |
5253 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5254 |
< |
(eval $ac_try) 2>&5 |
5251 |
> |
char $ac_func (); |
5252 |
> |
#ifdef FC_DUMMY_MAIN |
5253 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
5254 |
> |
# ifdef __cplusplus |
5255 |
> |
extern "C" |
5256 |
> |
# endif |
5257 |
> |
int FC_DUMMY_MAIN() { return 1; } |
5258 |
> |
#endif |
5259 |
> |
#endif |
5260 |
> |
int |
5261 |
> |
main () |
5262 |
> |
{ |
5263 |
> |
return $ac_func (); |
5264 |
> |
; |
5265 |
> |
return 0; |
5266 |
> |
} |
5267 |
> |
_ACEOF |
5268 |
> |
rm -rf conftest.$ac_objext conftest$ac_exeext |
5269 |
> |
if { (ac_try="$ac_link" |
5270 |
> |
case "(($ac_try" in |
5271 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5272 |
> |
*) ac_try_echo=$ac_try;; |
5273 |
> |
esac |
5274 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5275 |
> |
(eval "$ac_link") 2>conftest.er1 |
5276 |
|
ac_status=$? |
5277 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
5278 |
+ |
rm -f conftest.er1 |
5279 |
+ |
cat conftest.err >&5 |
5280 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5281 |
< |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
5282 |
< |
ac_cv_prog_really_gcc=yes |
5281 |
> |
(exit $ac_status); } && { |
5282 |
> |
test -z "$ac_c_werror_flag" || |
5283 |
> |
test ! -s conftest.err |
5284 |
> |
} && test -s conftest$ac_exeext && |
5285 |
> |
$as_test_x conftest$ac_exeext; then |
5286 |
> |
ac_success=yes; break 2 |
5287 |
|
else |
5288 |
< |
ac_cv_prog_really_gcc=no |
5289 |
< |
fi |
5288 |
> |
echo "$as_me: failed program was:" >&5 |
5289 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
5290 |
|
|
5088 |
– |
fi |
5089 |
– |
echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5 |
5090 |
– |
echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6 |
5091 |
– |
if test "$ac_cv_prog_really_gcc" = yes; then |
5092 |
– |
: |
5291 |
|
|
5094 |
– |
else |
5095 |
– |
: |
5096 |
– |
|
5292 |
|
fi |
5293 |
|
|
5294 |
+ |
rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
5295 |
+ |
conftest$ac_exeext conftest.$ac_ext |
5296 |
+ |
done |
5297 |
+ |
done |
5298 |
+ |
ac_ext=${ac_fc_srcext-f} |
5299 |
+ |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5300 |
+ |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5301 |
+ |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5302 |
|
|
5303 |
< |
# Try to determine "good" native compiler flags if none specified on command |
5304 |
< |
# line |
5305 |
< |
if test "$ac_test_CFLAGS" != "set"; then |
5306 |
< |
CFLAGS="" |
5307 |
< |
case "${host_cpu}-${host_os}" in |
5303 |
> |
if test "$ac_success" = "yes"; then |
5304 |
> |
case $ac_foobar in |
5305 |
> |
foobar) |
5306 |
> |
ac_case=lower |
5307 |
> |
ac_foo_bar=foo_bar |
5308 |
> |
;; |
5309 |
> |
FOOBAR) |
5310 |
> |
ac_case=upper |
5311 |
> |
ac_foo_bar=FOO_BAR |
5312 |
> |
;; |
5313 |
> |
esac |
5314 |
|
|
5315 |
< |
*linux*) if test "$CC" = icc; then |
5316 |
< |
CFLAGS="-O" |
5317 |
< |
fi;; |
5318 |
< |
sparc-solaris2*) if test "$CC" = cc; then |
5319 |
< |
CFLAGS="-native -fast -xO5 -dalign" |
5320 |
< |
fi;; |
5315 |
> |
ac_ext=c |
5316 |
> |
ac_cpp='$CPP $CPPFLAGS' |
5317 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5318 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5319 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5320 |
> |
ac_success_extra=no |
5321 |
> |
for ac_extra in "" "_"; do |
5322 |
> |
ac_func="$ac_foo_bar$ac_underscore$ac_extra" |
5323 |
> |
cat >conftest.$ac_ext <<_ACEOF |
5324 |
> |
/* confdefs.h. */ |
5325 |
> |
_ACEOF |
5326 |
> |
cat confdefs.h >>conftest.$ac_ext |
5327 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
5328 |
> |
/* end confdefs.h. */ |
5329 |
|
|
5330 |
< |
alpha*-osf*) if test "$CC" = cc; then |
5331 |
< |
CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1" |
5332 |
< |
fi;; |
5333 |
< |
|
5334 |
< |
hppa*-hpux*) if test "$CC" = cc; then |
5335 |
< |
CFLAGS="-Ae +O3 +Oall" |
5336 |
< |
fi;; |
5337 |
< |
|
5338 |
< |
rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then |
5339 |
< |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
5340 |
< |
fi;; |
5341 |
< |
powerpc*-aix*) |
5342 |
< |
if test "$CC" = cc -o "$CC" = xlc; then |
5343 |
< |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
5344 |
< |
echo "*******************************************************" |
5345 |
< |
echo "* You have AIX on an unknown powerpc system. It is *" |
5346 |
< |
echo "* recommended that you use *" |
5347 |
< |
echo "* *" |
5348 |
< |
echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
5349 |
< |
echo "* ^^^ *" |
5350 |
< |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
5351 |
< |
echo "* PowerPC CPU you have. For more info, man cc. *" |
5352 |
< |
echo "*******************************************************" |
5353 |
< |
fi;; |
5354 |
< |
*darwin*) |
5355 |
< |
if test "$CC" = xlc -o "$CC" = cc; then |
5356 |
< |
CFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
5357 |
< |
fi;; |
5358 |
< |
esac |
5359 |
< |
|
5360 |
< |
# use default flags for gcc on all systems |
5361 |
< |
if test $ac_cv_prog_really_gcc = yes; then |
5362 |
< |
CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
5363 |
< |
fi |
5364 |
< |
|
5365 |
< |
# test for gcc-specific flags: |
5366 |
< |
if test $ac_cv_prog_really_gcc = yes; then |
5367 |
< |
# -malign-double for x86 systems |
5368 |
< |
|
5369 |
< |
|
5370 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5 |
5371 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6 |
5155 |
< |
if test "${ac_align_double+set}" = set; then |
5156 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5157 |
< |
else |
5158 |
< |
echo 'void f(){}' > conftest.c |
5159 |
< |
if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then |
5160 |
< |
ac_align_double=yes |
5161 |
< |
else |
5162 |
< |
ac_align_double=no |
5163 |
< |
fi |
5164 |
< |
rm -f conftest* |
5165 |
< |
|
5166 |
< |
fi |
5167 |
< |
echo "$as_me:$LINENO: result: $ac_align_double" >&5 |
5168 |
< |
echo "${ECHO_T}$ac_align_double" >&6 |
5169 |
< |
if test "$ac_align_double" = yes; then |
5170 |
< |
: |
5171 |
< |
CFLAGS="$CFLAGS -malign-double" |
5330 |
> |
/* Override any GCC internal prototype to avoid an error. |
5331 |
> |
Use char because int might match the return type of a GCC |
5332 |
> |
builtin and then its argument prototype would still apply. */ |
5333 |
> |
#ifdef __cplusplus |
5334 |
> |
extern "C" |
5335 |
> |
#endif |
5336 |
> |
char $ac_func (); |
5337 |
> |
#ifdef FC_DUMMY_MAIN |
5338 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
5339 |
> |
# ifdef __cplusplus |
5340 |
> |
extern "C" |
5341 |
> |
# endif |
5342 |
> |
int FC_DUMMY_MAIN() { return 1; } |
5343 |
> |
#endif |
5344 |
> |
#endif |
5345 |
> |
int |
5346 |
> |
main () |
5347 |
> |
{ |
5348 |
> |
return $ac_func (); |
5349 |
> |
; |
5350 |
> |
return 0; |
5351 |
> |
} |
5352 |
> |
_ACEOF |
5353 |
> |
rm -rf conftest.$ac_objext conftest$ac_exeext |
5354 |
> |
if { (ac_try="$ac_link" |
5355 |
> |
case "(($ac_try" in |
5356 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5357 |
> |
*) ac_try_echo=$ac_try;; |
5358 |
> |
esac |
5359 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5360 |
> |
(eval "$ac_link") 2>conftest.er1 |
5361 |
> |
ac_status=$? |
5362 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
5363 |
> |
rm -f conftest.er1 |
5364 |
> |
cat conftest.err >&5 |
5365 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5366 |
> |
(exit $ac_status); } && { |
5367 |
> |
test -z "$ac_c_werror_flag" || |
5368 |
> |
test ! -s conftest.err |
5369 |
> |
} && test -s conftest$ac_exeext && |
5370 |
> |
$as_test_x conftest$ac_exeext; then |
5371 |
> |
ac_success_extra=yes; break |
5372 |
|
else |
5373 |
< |
: |
5373 |
> |
echo "$as_me: failed program was:" >&5 |
5374 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
5375 |
|
|
5175 |
– |
fi |
5376 |
|
|
5177 |
– |
# -fstrict-aliasing for gcc-2.95+ |
5178 |
– |
|
5179 |
– |
|
5180 |
– |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5 |
5181 |
– |
echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6 |
5182 |
– |
if test "${ac_fstrict_aliasing+set}" = set; then |
5183 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5184 |
– |
else |
5185 |
– |
echo 'void f(){}' > conftest.c |
5186 |
– |
if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then |
5187 |
– |
ac_fstrict_aliasing=yes |
5188 |
– |
else |
5189 |
– |
ac_fstrict_aliasing=no |
5377 |
|
fi |
5191 |
– |
rm -f conftest* |
5378 |
|
|
5379 |
< |
fi |
5380 |
< |
echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5 |
5381 |
< |
echo "${ECHO_T}$ac_fstrict_aliasing" >&6 |
5382 |
< |
if test "$ac_fstrict_aliasing" = yes; then |
5383 |
< |
: |
5384 |
< |
CFLAGS="$CFLAGS -fstrict-aliasing" |
5385 |
< |
else |
5200 |
< |
: |
5379 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
5380 |
> |
conftest$ac_exeext conftest.$ac_ext |
5381 |
> |
done |
5382 |
> |
ac_ext=${ac_fc_srcext-f} |
5383 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5384 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5385 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5386 |
|
|
5387 |
< |
fi |
5388 |
< |
|
5387 |
> |
if test "$ac_success_extra" = "yes"; then |
5388 |
> |
ac_cv_fc_mangling="$ac_case case" |
5389 |
> |
if test -z "$ac_underscore"; then |
5390 |
> |
ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore" |
5391 |
> |
else |
5392 |
> |
ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore" |
5393 |
> |
fi |
5394 |
> |
if test -z "$ac_extra"; then |
5395 |
> |
ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore" |
5396 |
> |
else |
5397 |
> |
ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore" |
5398 |
> |
fi |
5399 |
> |
else |
5400 |
> |
ac_cv_fc_mangling="unknown" |
5401 |
> |
fi |
5402 |
> |
else |
5403 |
> |
ac_cv_fc_mangling="unknown" |
5404 |
|
fi |
5405 |
|
|
5406 |
< |
CPU_FLAGS="" |
5407 |
< |
if test $ac_cv_prog_really_gcc = yes; then |
5208 |
< |
case "${host_cpu}" in |
5209 |
< |
i586*) |
5210 |
< |
|
5211 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5 |
5212 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6 |
5213 |
< |
if test "${ac_cpu_pentium+set}" = set; then |
5214 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5406 |
> |
LIBS=$ac_save_LIBS |
5407 |
> |
rm -rf cfortran_test* conftest* |
5408 |
|
else |
5409 |
< |
echo 'void f(){}' > conftest.c |
5410 |
< |
if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then |
5218 |
< |
ac_cpu_pentium=yes |
5219 |
< |
else |
5220 |
< |
ac_cpu_pentium=no |
5221 |
< |
fi |
5222 |
< |
rm -f conftest* |
5409 |
> |
echo "$as_me: failed program was:" >&5 |
5410 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
5411 |
|
|
5412 |
+ |
{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program |
5413 |
+ |
See \`config.log' for more details." >&5 |
5414 |
+ |
echo "$as_me: error: cannot compile a simple Fortran program |
5415 |
+ |
See \`config.log' for more details." >&2;} |
5416 |
+ |
{ (exit 1); exit 1; }; } |
5417 |
|
fi |
5225 |
– |
echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5 |
5226 |
– |
echo "${ECHO_T}$ac_cpu_pentium" >&6 |
5227 |
– |
if test "$ac_cpu_pentium" = yes; then |
5228 |
– |
: |
5229 |
– |
CPU_FLAGS=-mcpu=pentium |
5230 |
– |
else |
5231 |
– |
: |
5418 |
|
|
5419 |
+ |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
5420 |
|
|
5234 |
– |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5 |
5235 |
– |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6 |
5236 |
– |
if test "${ac_pentium+set}" = set; then |
5237 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5238 |
– |
else |
5239 |
– |
echo 'void f(){}' > conftest.c |
5240 |
– |
if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then |
5241 |
– |
ac_pentium=yes |
5242 |
– |
else |
5243 |
– |
ac_pentium=no |
5421 |
|
fi |
5422 |
< |
rm -f conftest* |
5422 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_fc_mangling" >&5 |
5423 |
> |
echo "${ECHO_T}$ac_cv_fc_mangling" >&6; } |
5424 |
|
|
5425 |
< |
fi |
5426 |
< |
echo "$as_me:$LINENO: result: $ac_pentium" >&5 |
5427 |
< |
echo "${ECHO_T}$ac_pentium" >&6 |
5428 |
< |
if test "$ac_pentium" = yes; then |
5251 |
< |
: |
5252 |
< |
CPU_FLAGS=-mpentium |
5253 |
< |
else |
5254 |
< |
: |
5425 |
> |
ac_ext=${ac_fc_srcext-f} |
5426 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5427 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5428 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5429 |
|
|
5430 |
< |
fi |
5430 |
> |
ac_ext=${ac_fc_srcext-f} |
5431 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5432 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5433 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5434 |
|
|
5258 |
– |
fi |
5435 |
|
|
5436 |
< |
;; |
5437 |
< |
i686*) |
5436 |
> |
case $ac_cv_fc_mangling in |
5437 |
> |
"lower case, no underscore, no extra underscore") |
5438 |
> |
cat >>confdefs.h <<\_ACEOF |
5439 |
> |
#define FC_FUNC(name,NAME) name |
5440 |
> |
_ACEOF |
5441 |
|
|
5442 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5 |
5443 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6 |
5444 |
< |
if test "${ac_cpu_pentiumpro+set}" = set; then |
5445 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5446 |
< |
else |
5447 |
< |
echo 'void f(){}' > conftest.c |
5448 |
< |
if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then |
5449 |
< |
ac_cpu_pentiumpro=yes |
5271 |
< |
else |
5272 |
< |
ac_cpu_pentiumpro=no |
5273 |
< |
fi |
5274 |
< |
rm -f conftest* |
5442 |
> |
cat >>confdefs.h <<\_ACEOF |
5443 |
> |
#define FC_FUNC_(name,NAME) name |
5444 |
> |
_ACEOF |
5445 |
> |
;; |
5446 |
> |
"lower case, no underscore, extra underscore") |
5447 |
> |
cat >>confdefs.h <<\_ACEOF |
5448 |
> |
#define FC_FUNC(name,NAME) name |
5449 |
> |
_ACEOF |
5450 |
|
|
5451 |
< |
fi |
5452 |
< |
echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5 |
5453 |
< |
echo "${ECHO_T}$ac_cpu_pentiumpro" >&6 |
5454 |
< |
if test "$ac_cpu_pentiumpro" = yes; then |
5455 |
< |
: |
5456 |
< |
CPU_FLAGS=-mcpu=pentiumpro |
5457 |
< |
else |
5458 |
< |
: |
5451 |
> |
cat >>confdefs.h <<\_ACEOF |
5452 |
> |
#define FC_FUNC_(name,NAME) name ## _ |
5453 |
> |
_ACEOF |
5454 |
> |
;; |
5455 |
> |
"lower case, underscore, no extra underscore") |
5456 |
> |
cat >>confdefs.h <<\_ACEOF |
5457 |
> |
#define FC_FUNC(name,NAME) name ## _ |
5458 |
> |
_ACEOF |
5459 |
|
|
5460 |
+ |
cat >>confdefs.h <<\_ACEOF |
5461 |
+ |
#define FC_FUNC_(name,NAME) name ## _ |
5462 |
+ |
_ACEOF |
5463 |
+ |
;; |
5464 |
+ |
"lower case, underscore, extra underscore") |
5465 |
+ |
cat >>confdefs.h <<\_ACEOF |
5466 |
+ |
#define FC_FUNC(name,NAME) name ## _ |
5467 |
+ |
_ACEOF |
5468 |
|
|
5469 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5 |
5470 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6 |
5471 |
< |
if test "${ac_pentiumpro+set}" = set; then |
5472 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5473 |
< |
else |
5474 |
< |
echo 'void f(){}' > conftest.c |
5475 |
< |
if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then |
5476 |
< |
ac_pentiumpro=yes |
5294 |
< |
else |
5295 |
< |
ac_pentiumpro=no |
5296 |
< |
fi |
5297 |
< |
rm -f conftest* |
5469 |
> |
cat >>confdefs.h <<\_ACEOF |
5470 |
> |
#define FC_FUNC_(name,NAME) name ## __ |
5471 |
> |
_ACEOF |
5472 |
> |
;; |
5473 |
> |
"upper case, no underscore, no extra underscore") |
5474 |
> |
cat >>confdefs.h <<\_ACEOF |
5475 |
> |
#define FC_FUNC(name,NAME) NAME |
5476 |
> |
_ACEOF |
5477 |
|
|
5478 |
< |
fi |
5479 |
< |
echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5 |
5480 |
< |
echo "${ECHO_T}$ac_pentiumpro" >&6 |
5481 |
< |
if test "$ac_pentiumpro" = yes; then |
5482 |
< |
: |
5483 |
< |
CPU_FLAGS=-mpentiumpro |
5484 |
< |
else |
5485 |
< |
: |
5307 |
< |
|
5308 |
< |
fi |
5309 |
< |
|
5310 |
< |
fi |
5311 |
< |
|
5312 |
< |
;; |
5313 |
< |
powerpc*) |
5314 |
< |
cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null` |
5315 |
< |
is60x=`echo $cputype | egrep "^600-9e?$"` |
5316 |
< |
if test -n "$is60x"; then |
5478 |
> |
cat >>confdefs.h <<\_ACEOF |
5479 |
> |
#define FC_FUNC_(name,NAME) NAME |
5480 |
> |
_ACEOF |
5481 |
> |
;; |
5482 |
> |
"upper case, no underscore, extra underscore") |
5483 |
> |
cat >>confdefs.h <<\_ACEOF |
5484 |
> |
#define FC_FUNC(name,NAME) NAME |
5485 |
> |
_ACEOF |
5486 |
|
|
5487 |
+ |
cat >>confdefs.h <<\_ACEOF |
5488 |
+ |
#define FC_FUNC_(name,NAME) NAME ## _ |
5489 |
+ |
_ACEOF |
5490 |
+ |
;; |
5491 |
+ |
"upper case, underscore, no extra underscore") |
5492 |
+ |
cat >>confdefs.h <<\_ACEOF |
5493 |
+ |
#define FC_FUNC(name,NAME) NAME ## _ |
5494 |
+ |
_ACEOF |
5495 |
|
|
5496 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5 |
5497 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6 |
5498 |
< |
if test "${ac_m_cpu_60x+set}" = set; then |
5499 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5500 |
< |
else |
5501 |
< |
echo 'void f(){}' > conftest.c |
5502 |
< |
if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then |
5503 |
< |
ac_m_cpu_60x=yes |
5327 |
< |
else |
5328 |
< |
ac_m_cpu_60x=no |
5329 |
< |
fi |
5330 |
< |
rm -f conftest* |
5496 |
> |
cat >>confdefs.h <<\_ACEOF |
5497 |
> |
#define FC_FUNC_(name,NAME) NAME ## _ |
5498 |
> |
_ACEOF |
5499 |
> |
;; |
5500 |
> |
"upper case, underscore, extra underscore") |
5501 |
> |
cat >>confdefs.h <<\_ACEOF |
5502 |
> |
#define FC_FUNC(name,NAME) NAME ## _ |
5503 |
> |
_ACEOF |
5504 |
|
|
5505 |
< |
fi |
5506 |
< |
echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5 |
5507 |
< |
echo "${ECHO_T}$ac_m_cpu_60x" >&6 |
5508 |
< |
if test "$ac_m_cpu_60x" = yes; then |
5509 |
< |
: |
5510 |
< |
CPU_FLAGS=-mcpu=$cputype |
5511 |
< |
else |
5512 |
< |
: |
5505 |
> |
cat >>confdefs.h <<\_ACEOF |
5506 |
> |
#define FC_FUNC_(name,NAME) NAME ## __ |
5507 |
> |
_ACEOF |
5508 |
> |
;; |
5509 |
> |
*) |
5510 |
> |
{ echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5 |
5511 |
> |
echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} |
5512 |
> |
;; |
5513 |
> |
esac |
5514 |
|
|
5515 |
< |
fi |
5515 |
> |
ac_ext=${ac_fc_srcext-f} |
5516 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5517 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5518 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5519 |
|
|
5343 |
– |
elif test "$cputype" = 750; then |
5520 |
|
|
5521 |
|
|
5522 |
< |
echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5 |
5523 |
< |
echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6 |
5524 |
< |
if test "${ac_cv_prog_gcc_2_95+set}" = set; then |
5522 |
> |
ac_ext=${ac_fc_srcext-f} |
5523 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5524 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5525 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5526 |
> |
{ echo "$as_me:$LINENO: checking how to get verbose linking output from $FC" >&5 |
5527 |
> |
echo $ECHO_N "checking how to get verbose linking output from $FC... $ECHO_C" >&6; } |
5528 |
> |
if test "${ac_cv_prog_fc_v+set}" = set; then |
5529 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5530 |
|
else |
5531 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
5532 |
+ |
program main |
5533 |
|
|
5534 |
< |
cat > conftest.c <<EOF |
5535 |
< |
#ifdef __GNUC__ && !defined (__INTEL_COMPILER) |
5536 |
< |
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
5537 |
< |
yes; |
5538 |
< |
# endif |
5539 |
< |
#endif |
5540 |
< |
EOF |
5541 |
< |
if { ac_try='${CC-cc} -E conftest.c' |
5542 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5543 |
< |
(eval $ac_try) 2>&5 |
5534 |
> |
end |
5535 |
> |
_ACEOF |
5536 |
> |
rm -rf conftest.$ac_objext |
5537 |
> |
if { (ac_try="$ac_compile" |
5538 |
> |
case "(($ac_try" in |
5539 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5540 |
> |
*) ac_try_echo=$ac_try;; |
5541 |
> |
esac |
5542 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5543 |
> |
(eval "$ac_compile") 2>conftest.er1 |
5544 |
|
ac_status=$? |
5545 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
5546 |
+ |
rm -f conftest.er1 |
5547 |
+ |
cat conftest.err >&5 |
5548 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5549 |
< |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
5550 |
< |
ac_cv_prog_gcc_2_95=yes |
5551 |
< |
else |
5552 |
< |
ac_cv_prog_gcc_2_95=no |
5553 |
< |
fi |
5549 |
> |
(exit $ac_status); } && { |
5550 |
> |
test -z "$ac_fc_werror_flag" || |
5551 |
> |
test ! -s conftest.err |
5552 |
> |
} && test -s conftest.$ac_objext; then |
5553 |
> |
ac_cv_prog_fc_v= |
5554 |
> |
# Try some options frequently used verbose output |
5555 |
> |
for ac_verb in -v -verbose --verbose -V -\#\#\#; do |
5556 |
> |
cat >conftest.$ac_ext <<_ACEOF |
5557 |
> |
program main |
5558 |
|
|
5559 |
< |
fi |
5560 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5 |
5372 |
< |
echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6 |
5373 |
< |
if test "$ac_cv_prog_gcc_2_95" = yes; then |
5374 |
< |
: |
5559 |
> |
end |
5560 |
> |
_ACEOF |
5561 |
|
|
5562 |
+ |
# Compile and link our simple test program by passing a flag (argument |
5563 |
+ |
# 1 to this macro) to the Fortran compiler in order to get |
5564 |
+ |
# "verbose" output that we can then parse for the Fortran linker |
5565 |
+ |
# flags. |
5566 |
+ |
ac_save_FFLAGS=$FCFLAGS |
5567 |
+ |
FCFLAGS="$FCFLAGS $ac_verb" |
5568 |
+ |
eval "set x $ac_link" |
5569 |
+ |
shift |
5570 |
+ |
echo "$as_me:$LINENO: $*" >&5 |
5571 |
+ |
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
5572 |
+ |
echo "$ac_fc_v_output" >&5 |
5573 |
+ |
FCFLAGS=$ac_save_FFLAGS |
5574 |
|
|
5575 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5 |
5378 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6 |
5379 |
< |
if test "${ac_m_cpu_750+set}" = set; then |
5380 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5381 |
< |
else |
5382 |
< |
echo 'void f(){}' > conftest.c |
5383 |
< |
if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then |
5384 |
< |
ac_m_cpu_750=yes |
5385 |
< |
else |
5386 |
< |
ac_m_cpu_750=no |
5387 |
< |
fi |
5388 |
< |
rm -f conftest* |
5575 |
> |
rm -rf conftest* |
5576 |
|
|
5577 |
< |
fi |
5578 |
< |
echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5 |
5579 |
< |
echo "${ECHO_T}$ac_m_cpu_750" >&6 |
5580 |
< |
if test "$ac_m_cpu_750" = yes; then |
5581 |
< |
: |
5582 |
< |
CPU_FLAGS=-mcpu=750 |
5396 |
< |
else |
5397 |
< |
: |
5577 |
> |
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
5578 |
> |
# /foo, /bar, and /baz are search directories for the Fortran linker. |
5579 |
> |
# Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
5580 |
> |
ac_fc_v_output="`echo $ac_fc_v_output | |
5581 |
> |
grep 'LPATH is:' | |
5582 |
> |
sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output" |
5583 |
|
|
5584 |
< |
fi |
5584 |
> |
# FIXME: we keep getting bitten by quoted arguments; a more general fix |
5585 |
> |
# that detects unbalanced quotes in FLIBS should be implemented |
5586 |
> |
# and (ugh) tested at some point. |
5587 |
> |
case $ac_fc_v_output in |
5588 |
> |
# If we are using xlf then replace all the commas with spaces. |
5589 |
> |
*xlfentry*) |
5590 |
> |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;; |
5591 |
|
|
5592 |
< |
else |
5593 |
< |
: |
5592 |
> |
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
5593 |
> |
# $LIBS confuse us, and the libraries appear later in the output anyway). |
5594 |
> |
*mGLOB_options_string*) |
5595 |
> |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; |
5596 |
|
|
5597 |
< |
fi |
5597 |
> |
# Portland Group compiler has singly- or doubly-quoted -cmdline argument |
5598 |
> |
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. |
5599 |
> |
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". |
5600 |
> |
*-cmdline\ * | *-ignore\ * | *-def\ *) |
5601 |
> |
ac_fc_v_output=`echo $ac_fc_v_output | sed "\ |
5602 |
> |
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g |
5603 |
> |
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g |
5604 |
> |
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; |
5605 |
|
|
5606 |
< |
fi |
5607 |
< |
if test -z "$CPU_FLAGS"; then |
5606 |
> |
# If we are using Cray Fortran then delete quotes. |
5607 |
> |
*cft90*) |
5608 |
> |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; |
5609 |
> |
esac |
5610 |
|
|
5611 |
|
|
5612 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5 |
5613 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6 |
5614 |
< |
if test "${ac_m_cpu_powerpc+set}" = set; then |
5615 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5616 |
< |
else |
5617 |
< |
echo 'void f(){}' > conftest.c |
5618 |
< |
if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then |
5619 |
< |
ac_m_cpu_powerpc=yes |
5620 |
< |
else |
5621 |
< |
ac_m_cpu_powerpc=no |
5612 |
> |
# look for -l* and *.a constructs in the output |
5613 |
> |
for ac_arg in $ac_fc_v_output; do |
5614 |
> |
case $ac_arg in |
5615 |
> |
[\\/]*.a | ?:[\\/]*.a | -[lLRu]*) |
5616 |
> |
ac_cv_prog_fc_v=$ac_verb |
5617 |
> |
break 2 ;; |
5618 |
> |
esac |
5619 |
> |
done |
5620 |
> |
done |
5621 |
> |
if test -z "$ac_cv_prog_fc_v"; then |
5622 |
> |
{ echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $FC" >&5 |
5623 |
> |
echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;} |
5624 |
|
fi |
5421 |
– |
rm -f conftest* |
5422 |
– |
|
5423 |
– |
fi |
5424 |
– |
echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5 |
5425 |
– |
echo "${ECHO_T}$ac_m_cpu_powerpc" >&6 |
5426 |
– |
if test "$ac_m_cpu_powerpc" = yes; then |
5427 |
– |
: |
5428 |
– |
CPU_FLAGS=-mcpu=powerpc |
5625 |
|
else |
5626 |
< |
: |
5626 |
> |
echo "$as_me: failed program was:" >&5 |
5627 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
5628 |
|
|
5629 |
+ |
{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5 |
5630 |
+ |
echo "$as_me: WARNING: compilation failed" >&2;} |
5631 |
|
fi |
5632 |
|
|
5633 |
< |
fi |
5435 |
< |
if test -z "$CPU_FLAGS"; then |
5633 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5634 |
|
|
5635 |
< |
|
5636 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5 |
5637 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6 |
5638 |
< |
if test "${ac_m_powerpc+set}" = set; then |
5635 |
> |
fi |
5636 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_fc_v" >&5 |
5637 |
> |
echo "${ECHO_T}$ac_cv_prog_fc_v" >&6; } |
5638 |
> |
{ echo "$as_me:$LINENO: checking for Fortran libraries of $FC" >&5 |
5639 |
> |
echo $ECHO_N "checking for Fortran libraries of $FC... $ECHO_C" >&6; } |
5640 |
> |
if test "${ac_cv_fc_libs+set}" = set; then |
5641 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5642 |
|
else |
5643 |
< |
echo 'void f(){}' > conftest.c |
5644 |
< |
if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then |
5445 |
< |
ac_m_powerpc=yes |
5643 |
> |
if test "x$FCLIBS" != "x"; then |
5644 |
> |
ac_cv_fc_libs="$FCLIBS" # Let the user override the test. |
5645 |
|
else |
5447 |
– |
ac_m_powerpc=no |
5448 |
– |
fi |
5449 |
– |
rm -f conftest* |
5646 |
|
|
5647 |
< |
fi |
5648 |
< |
echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5 |
5453 |
< |
echo "${ECHO_T}$ac_m_powerpc" >&6 |
5454 |
< |
if test "$ac_m_powerpc" = yes; then |
5455 |
< |
: |
5456 |
< |
CPU_FLAGS=-mpowerpc |
5457 |
< |
else |
5458 |
< |
: |
5647 |
> |
cat >conftest.$ac_ext <<_ACEOF |
5648 |
> |
program main |
5649 |
|
|
5650 |
< |
fi |
5650 |
> |
end |
5651 |
> |
_ACEOF |
5652 |
|
|
5653 |
< |
fi |
5654 |
< |
esac |
5655 |
< |
fi |
5656 |
< |
|
5657 |
< |
if test -n "$CPU_FLAGS"; then |
5658 |
< |
CFLAGS="$CFLAGS $CPU_FLAGS" |
5659 |
< |
fi |
5653 |
> |
# Compile and link our simple test program by passing a flag (argument |
5654 |
> |
# 1 to this macro) to the Fortran compiler in order to get |
5655 |
> |
# "verbose" output that we can then parse for the Fortran linker |
5656 |
> |
# flags. |
5657 |
> |
ac_save_FFLAGS=$FCFLAGS |
5658 |
> |
FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v" |
5659 |
> |
eval "set x $ac_link" |
5660 |
> |
shift |
5661 |
> |
echo "$as_me:$LINENO: $*" >&5 |
5662 |
> |
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
5663 |
> |
echo "$ac_fc_v_output" >&5 |
5664 |
> |
FCFLAGS=$ac_save_FFLAGS |
5665 |
|
|
5666 |
< |
if test -z "$CFLAGS"; then |
5471 |
< |
echo "" |
5472 |
< |
echo "********************************************************" |
5473 |
< |
echo "* WARNING: Don't know the best CFLAGS for this system *" |
5474 |
< |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
5475 |
< |
echo "* (otherwise, a default of CFLAGS=-O3 will be used) *" |
5476 |
< |
echo "********************************************************" |
5477 |
< |
echo "" |
5478 |
< |
CFLAGS="-O3" |
5479 |
< |
fi |
5666 |
> |
rm -rf conftest* |
5667 |
|
|
5668 |
+ |
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
5669 |
+ |
# /foo, /bar, and /baz are search directories for the Fortran linker. |
5670 |
+ |
# Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
5671 |
+ |
ac_fc_v_output="`echo $ac_fc_v_output | |
5672 |
+ |
grep 'LPATH is:' | |
5673 |
+ |
sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output" |
5674 |
|
|
5675 |
+ |
# FIXME: we keep getting bitten by quoted arguments; a more general fix |
5676 |
+ |
# that detects unbalanced quotes in FLIBS should be implemented |
5677 |
+ |
# and (ugh) tested at some point. |
5678 |
+ |
case $ac_fc_v_output in |
5679 |
+ |
# If we are using xlf then replace all the commas with spaces. |
5680 |
+ |
*xlfentry*) |
5681 |
+ |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;; |
5682 |
|
|
5683 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5 |
5684 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6 |
5685 |
< |
if test "${ac_guessed_cflags+set}" = set; then |
5686 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5683 |
> |
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
5684 |
> |
# $LIBS confuse us, and the libraries appear later in the output anyway). |
5685 |
> |
*mGLOB_options_string*) |
5686 |
> |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; |
5687 |
> |
|
5688 |
> |
# Portland Group compiler has singly- or doubly-quoted -cmdline argument |
5689 |
> |
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. |
5690 |
> |
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". |
5691 |
> |
*-cmdline\ * | *-ignore\ * | *-def\ *) |
5692 |
> |
ac_fc_v_output=`echo $ac_fc_v_output | sed "\ |
5693 |
> |
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g |
5694 |
> |
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g |
5695 |
> |
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; |
5696 |
> |
|
5697 |
> |
# If we are using Cray Fortran then delete quotes. |
5698 |
> |
*cft90*) |
5699 |
> |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; |
5700 |
> |
esac |
5701 |
> |
|
5702 |
> |
|
5703 |
> |
|
5704 |
> |
ac_cv_fc_libs= |
5705 |
> |
|
5706 |
> |
# Save positional arguments (if any) |
5707 |
> |
ac_save_positional="$@" |
5708 |
> |
|
5709 |
> |
set X $ac_fc_v_output |
5710 |
> |
while test $# != 1; do |
5711 |
> |
shift |
5712 |
> |
ac_arg=$1 |
5713 |
> |
case $ac_arg in |
5714 |
> |
[\\/]*.a | ?:[\\/]*.a) |
5715 |
> |
ac_exists=false |
5716 |
> |
for ac_i in $ac_cv_fc_libs; do |
5717 |
> |
if test x"$ac_arg" = x"$ac_i"; then |
5718 |
> |
ac_exists=true |
5719 |
> |
break |
5720 |
> |
fi |
5721 |
> |
done |
5722 |
> |
|
5723 |
> |
if test x"$ac_exists" = xtrue; then |
5724 |
> |
: |
5725 |
|
else |
5726 |
< |
echo 'void f(){}' > conftest.c |
5489 |
< |
if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then |
5490 |
< |
ac_guessed_cflags=yes |
5491 |
< |
else |
5492 |
< |
ac_guessed_cflags=no |
5726 |
> |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
5727 |
|
fi |
5494 |
– |
rm -f conftest* |
5728 |
|
|
5729 |
< |
fi |
5730 |
< |
echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5 |
5731 |
< |
echo "${ECHO_T}$ac_guessed_cflags" >&6 |
5732 |
< |
if test "$ac_guessed_cflags" = yes; then |
5733 |
< |
: |
5729 |
> |
;; |
5730 |
> |
-bI:*) |
5731 |
> |
ac_exists=false |
5732 |
> |
for ac_i in $ac_cv_fc_libs; do |
5733 |
> |
if test x"$ac_arg" = x"$ac_i"; then |
5734 |
> |
ac_exists=true |
5735 |
> |
break |
5736 |
> |
fi |
5737 |
> |
done |
5738 |
|
|
5739 |
+ |
if test x"$ac_exists" = xtrue; then |
5740 |
+ |
: |
5741 |
|
else |
5742 |
< |
: |
5742 |
> |
if test "$ac_compiler_gnu" = yes; then |
5743 |
> |
for ac_link_opt in $ac_arg; do |
5744 |
> |
ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" |
5745 |
> |
done |
5746 |
> |
else |
5747 |
> |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
5748 |
> |
fi |
5749 |
> |
fi |
5750 |
|
|
5751 |
< |
echo "" |
5752 |
< |
echo "********************************************************" |
5753 |
< |
echo "* WARNING: The guessed CFLAGS don't seem to work with *" |
5754 |
< |
echo "* your compiler. *" |
5755 |
< |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
5756 |
< |
echo "********************************************************" |
5757 |
< |
echo "" |
5758 |
< |
CFLAGS="" |
5751 |
> |
;; |
5752 |
> |
# Ignore these flags. |
5753 |
> |
-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*) |
5754 |
> |
;; |
5755 |
> |
-lkernel32) |
5756 |
> |
test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
5757 |
> |
;; |
5758 |
> |
-[LRuYz]) |
5759 |
> |
# These flags, when seen by themselves, take an argument. |
5760 |
> |
# We remove the space between option and argument and re-iterate |
5761 |
> |
# unless we find an empty arg or a new option (starting with -) |
5762 |
> |
case $2 in |
5763 |
> |
"" | -*);; |
5764 |
> |
*) |
5765 |
> |
ac_arg="$ac_arg$2" |
5766 |
> |
shift; shift |
5767 |
> |
set X $ac_arg "$@" |
5768 |
> |
;; |
5769 |
> |
esac |
5770 |
> |
;; |
5771 |
> |
-YP,*) |
5772 |
> |
for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
5773 |
> |
ac_exists=false |
5774 |
> |
for ac_i in $ac_cv_fc_libs; do |
5775 |
> |
if test x"$ac_j" = x"$ac_i"; then |
5776 |
> |
ac_exists=true |
5777 |
> |
break |
5778 |
> |
fi |
5779 |
> |
done |
5780 |
|
|
5781 |
+ |
if test x"$ac_exists" = xtrue; then |
5782 |
+ |
: |
5783 |
+ |
else |
5784 |
+ |
ac_arg="$ac_arg $ac_j" |
5785 |
+ |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_j" |
5786 |
|
fi |
5787 |
|
|
5788 |
+ |
done |
5789 |
+ |
;; |
5790 |
+ |
-[lLR]*) |
5791 |
+ |
ac_exists=false |
5792 |
+ |
for ac_i in $ac_cv_fc_libs; do |
5793 |
+ |
if test x"$ac_arg" = x"$ac_i"; then |
5794 |
+ |
ac_exists=true |
5795 |
+ |
break |
5796 |
+ |
fi |
5797 |
+ |
done |
5798 |
|
|
5799 |
+ |
if test x"$ac_exists" = xtrue; then |
5800 |
+ |
: |
5801 |
+ |
else |
5802 |
+ |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
5803 |
|
fi |
5804 |
|
|
5805 |
+ |
;; |
5806 |
+ |
-zallextract*| -zdefaultextract) |
5807 |
+ |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
5808 |
+ |
;; |
5809 |
+ |
# Ignore everything else. |
5810 |
+ |
esac |
5811 |
+ |
done |
5812 |
+ |
# restore positional arguments |
5813 |
+ |
set X $ac_save_positional; shift |
5814 |
|
|
5815 |
+ |
# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, |
5816 |
+ |
# then we insist that the "run path" must be an absolute path (i.e. it |
5817 |
+ |
# must begin with a "/"). |
5818 |
+ |
case `(uname -sr) 2>/dev/null` in |
5819 |
+ |
"SunOS 5"*) |
5820 |
+ |
ac_ld_run_path=`echo $ac_fc_v_output | |
5821 |
+ |
sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` |
5822 |
+ |
test "x$ac_ld_run_path" != x && |
5823 |
+ |
if test "$ac_compiler_gnu" = yes; then |
5824 |
+ |
for ac_link_opt in $ac_ld_run_path; do |
5825 |
+ |
ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" |
5826 |
+ |
done |
5827 |
+ |
else |
5828 |
+ |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path" |
5829 |
+ |
fi |
5830 |
+ |
;; |
5831 |
+ |
esac |
5832 |
+ |
fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" |
5833 |
|
|
5834 |
+ |
fi |
5835 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_fc_libs" >&5 |
5836 |
+ |
echo "${ECHO_T}$ac_cv_fc_libs" >&6; } |
5837 |
+ |
FCLIBS="$ac_cv_fc_libs" |
5838 |
|
|
5839 |
|
|
5840 |
+ |
ac_ext=${ac_fc_srcext-f} |
5841 |
+ |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5842 |
+ |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5843 |
+ |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5844 |
|
|
5845 |
|
|
5525 |
– |
echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5 |
5526 |
– |
echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6 |
5527 |
– |
if test "${ac_cv_prog_really_gxx+set}" = set; then |
5528 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5529 |
– |
else |
5846 |
|
|
5847 |
< |
cat > conftest.cpp <<EOF |
5848 |
< |
#ifdef __GNUC__ |
5849 |
< |
#ifndef __INTEL_COMPILER |
5850 |
< |
yes; |
5851 |
< |
#endif |
5852 |
< |
#endif |
5847 |
> |
{ echo "$as_me:$LINENO: checking for module suffix" >&5 |
5848 |
> |
echo $ECHO_N "checking for module suffix... $ECHO_C" >&6; } |
5849 |
> |
rm -rf conftest* |
5850 |
> |
# Intel ifc compiler generates files by the name of work.pc and work.pcl (!) |
5851 |
> |
rm -f work* |
5852 |
> |
cat >conftest.$ac_ext <<EOF |
5853 |
> |
module conftest |
5854 |
> |
integer n |
5855 |
> |
parameter (n=1) |
5856 |
> |
end module conftest |
5857 |
|
EOF |
5858 |
< |
if { ac_try='${CXX-c++} -E conftest.cpp' |
5859 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5860 |
< |
(eval $ac_try) 2>&5 |
5861 |
< |
ac_status=$? |
5862 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5863 |
< |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
5864 |
< |
ac_cv_prog_really_gxx=yes |
5858 |
> |
# SGI and absoft compilers generates module name in upper case! |
5859 |
> |
testname="conftest" |
5860 |
> |
modcase="lower" |
5861 |
> |
if (eval $ac_compile) 2>/dev/null ; then |
5862 |
> |
MOD=`ls conftest* | grep -v conftest.$ac_ext | grep -v conftest.o` |
5863 |
> |
MOD=`echo "$MOD" | sed -e 's/conftest\.//g'` |
5864 |
> |
if test -z "$MOD" ; then |
5865 |
> |
MOD=`ls CONFTEST* 2>/dev/null \ |
5866 |
> |
| grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o` |
5867 |
> |
MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'` |
5868 |
> |
if test -n "$MOD" ; then |
5869 |
> |
testname="CONFTEST" |
5870 |
> |
modcase="upper" |
5871 |
> |
fi |
5872 |
> |
fi |
5873 |
> |
if test -z "$MOD" ; then |
5874 |
> |
{ echo "$as_me:$LINENO: result: unknown" >&5 |
5875 |
> |
echo "${ECHO_T}unknown" >&6; } |
5876 |
> |
# Use mod if we can't figure it out |
5877 |
> |
MOD="mod" |
5878 |
> |
else |
5879 |
> |
{ echo "$as_me:$LINENO: result: $MOD" >&5 |
5880 |
> |
echo "${ECHO_T}$MOD" >&6; } |
5881 |
> |
fi |
5882 |
> |
if test -s work.pcl ; then |
5883 |
> |
{ echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5 |
5884 |
> |
echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;} |
5885 |
> |
fi |
5886 |
|
else |
5887 |
< |
ac_cv_prog_really_gxx=no |
5887 |
> |
{ echo "$as_me:$LINENO: result: unknown" >&5 |
5888 |
> |
echo "${ECHO_T}unknown" >&6; } |
5889 |
|
fi |
5890 |
|
|
5549 |
– |
fi |
5550 |
– |
echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5 |
5551 |
– |
echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6 |
5552 |
– |
if test "$ac_cv_prog_really_gxx" = yes; then |
5553 |
– |
: |
5891 |
|
|
5555 |
– |
else |
5556 |
– |
: |
5892 |
|
|
5558 |
– |
fi |
5893 |
|
|
5894 |
|
|
5895 |
< |
# Try to determine "good" native compiler flags if none specified on command |
5896 |
< |
# line |
5897 |
< |
if test "$ac_test_CXXFLAGS" != "set"; then |
5898 |
< |
CXXFLAGS="" |
5899 |
< |
case "${host_cpu}-${host_os}" in |
5895 |
> |
# Check for module include path (some use -I, some (Solaris) use -M, some |
5896 |
> |
# (absoft) use -p). |
5897 |
> |
# Intel compilers use a wierd system: -cl,filename.pcl . If no file is |
5898 |
> |
# specified, work.pcl and work.pc are created. However, if you specify |
5899 |
> |
# a file, it must contain a the name of a file ending in .pc . Ugh! |
5900 |
> |
# Use the module made above |
5901 |
> |
{ echo "$as_me:$LINENO: checking for module directory path flag" >&5 |
5902 |
> |
echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6; } |
5903 |
> |
rm -rf conftest* |
5904 |
> |
# Intel ifc compiler generates files by the name of work.pc and work.pcl (!) |
5905 |
> |
rm -f work* |
5906 |
> |
cat >conftest.$ac_ext <<EOF |
5907 |
> |
module conftest |
5908 |
> |
integer n |
5909 |
> |
parameter (n=1) |
5910 |
> |
end module conftest |
5911 |
> |
EOF |
5912 |
> |
# SGI and absoft compilers generates module name in upper case! |
5913 |
> |
testname="conftest" |
5914 |
> |
if (eval $ac_compile) 2>/dev/null ; then |
5915 |
> |
mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o` |
5916 |
> |
mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'` |
5917 |
> |
if test -n "$mod" ; then |
5918 |
> |
testname="CONFTEST" |
5919 |
> |
fi |
5920 |
> |
madedir=0 |
5921 |
> |
if test ! -d conf ; then mkdir conf ; madedir=1; fi |
5922 |
> |
cp $testname.$MOD conf |
5923 |
> |
rm -f conftest* CONFTEST* |
5924 |
> |
cat >conftest1.$ac_ext <<EOF |
5925 |
> |
program main |
5926 |
> |
use conftest |
5927 |
> |
print *, n |
5928 |
> |
end |
5929 |
> |
EOF |
5930 |
> |
F90_WORK_FILES_ARG="" |
5931 |
> |
F90MODINCSPEC="" |
5932 |
> |
if $FC -c -Iconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext > conftest.out 2>&1 ; then |
5933 |
> |
MODDIRFLAG="-I" |
5934 |
> |
F90MODINCSPEC="-I<dir>" |
5935 |
> |
{ echo "$as_me:$LINENO: result: -I" >&5 |
5936 |
> |
echo "${ECHO_T}-I" >&6; } |
5937 |
> |
elif $FC -c -Mconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then |
5938 |
> |
MODDIRFLAG="-M" |
5939 |
> |
F90MODINCSPEC="-M<dir>" |
5940 |
> |
{ echo "$as_me:$LINENO: result: -M" >&5 |
5941 |
> |
echo "${ECHO_T}-M" >&6; } |
5942 |
> |
elif $FC -c -pconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then |
5943 |
> |
MODDIRFLAG="-p" |
5944 |
> |
F90MODINCSPEC="-p<dir>" |
5945 |
> |
{ echo "$as_me:$LINENO: result: -p" >&5 |
5946 |
> |
echo "${ECHO_T}-p" >&6; } |
5947 |
> |
elif test -s work.pc ; then |
5948 |
> |
cp work.pc conf/mpimod.pc |
5949 |
> |
echo "mpimod.pc" > conf/mpimod.pcl |
5950 |
> |
echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl |
5951 |
> |
if $FC -c -cl,conf/mpimod.pcl $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >>conftest.out 2>&1 ; then |
5952 |
> |
MODDIRFLAG='-cl,mpimod.pcl' |
5953 |
> |
{ echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5 |
5954 |
> |
echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6; } |
5955 |
> |
F90_WORK_FILES_ARG="-cl,mpimod.pcl" |
5956 |
> |
F90MODINCSPEC="-cl,<dir>/<file>mod.pcl" |
5957 |
|
|
5958 |
< |
*linux*) if test "$CXX" = icc -o "$CXX" = icpc; then |
5959 |
< |
CXXFLAGS="-O" |
5960 |
< |
fi;; |
5961 |
< |
sparc-solaris2*) if test "$CXX" = CC; then |
5962 |
< |
CXXFLAGS="-native -fast -xO5 -dalign" |
5963 |
< |
fi;; |
5964 |
< |
rs6000*-aix*) if test "$CXX" = xlC; then |
5965 |
< |
CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" |
5966 |
< |
fi;; |
5967 |
< |
powerpc*-aix*) |
5968 |
< |
if test "$CXX" = xlC; then |
5578 |
< |
CXXFLAGS="-O3 -qarch=ppc -qansialias -w" |
5579 |
< |
echo "*******************************************************" |
5580 |
< |
echo "* You have AIX on an unknown powerpc system. It is *" |
5581 |
< |
echo "* recommended that you use *" |
5582 |
< |
echo "* *" |
5583 |
< |
echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
5584 |
< |
echo "* ^^^ *" |
5585 |
< |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
5586 |
< |
echo "* PowerPC CPU you have. For more info, man cc. *" |
5587 |
< |
echo "*******************************************************" |
5588 |
< |
fi;; |
5589 |
< |
*darwin*) |
5590 |
< |
if test "$CXX" = xlc++; then |
5591 |
< |
CXXFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
5592 |
< |
fi;; |
5593 |
< |
esac |
5958 |
> |
else |
5959 |
> |
# The version of the Intel compiler that I have refuses to let |
5960 |
> |
# you put the "work catalog" list anywhere but the current |
5961 |
> |
# directory. For example, you cannot in |
5962 |
> |
: |
5963 |
> |
fi |
5964 |
> |
fi |
5965 |
> |
if test -z "MODDIRFLAG" ; then |
5966 |
> |
{ echo "$as_me:$LINENO: result: unknown" >&5 |
5967 |
> |
echo "${ECHO_T}unknown" >&6; } |
5968 |
> |
fi |
5969 |
|
|
5595 |
– |
# use default flags for gcc on all systems |
5596 |
– |
if test $ac_cv_prog_really_gxx = yes; then |
5597 |
– |
CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
5598 |
– |
fi |
5970 |
|
|
5971 |
< |
# test for gcc-specific flags: |
5972 |
< |
if test $ac_cv_prog_really_gxx = yes; then |
5973 |
< |
# -malign-double for x86 systems |
5971 |
> |
rm -rf conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod* |
5972 |
> |
if test $madedir = 1 ; then rmdir conf ; fi |
5973 |
> |
fi |
5974 |
|
|
5975 |
|
|
5976 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5 |
5977 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6 |
5978 |
< |
if test "${ac_align_double+set}" = set; then |
5976 |
> |
{ echo "$as_me:$LINENO: checking for Fortran 90 module file names" >&5 |
5977 |
> |
echo $ECHO_N "checking for Fortran 90 module file names... $ECHO_C" >&6; } |
5978 |
> |
if test "${ac_cv_f90_module_names+set}" = set; then |
5979 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5980 |
|
else |
5981 |
< |
echo 'void f(){}' > conftest.cpp |
5982 |
< |
if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then |
5983 |
< |
ac_align_double=yes |
5981 |
> |
ac_ext=${ac_fc_srcext-f} |
5982 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5983 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5984 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5985 |
> |
|
5986 |
> |
# carry out the test in a new directory, so that we don't miss anything |
5987 |
> |
mkdir conftest |
5988 |
> |
cd conftest |
5989 |
> |
cat >conftest.$ac_ext <<_ACEOF |
5990 |
> |
MODULE Bar |
5991 |
> |
END MODULE Bar |
5992 |
> |
_ACEOF |
5993 |
> |
rm -rf conftest.$ac_objext |
5994 |
> |
if { (ac_try="$ac_compile" |
5995 |
> |
case "(($ac_try" in |
5996 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5997 |
> |
*) ac_try_echo=$ac_try;; |
5998 |
> |
esac |
5999 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6000 |
> |
(eval "$ac_compile") 2>conftest.er1 |
6001 |
> |
ac_status=$? |
6002 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
6003 |
> |
rm -f conftest.er1 |
6004 |
> |
cat conftest.err >&5 |
6005 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6006 |
> |
(exit $ac_status); } && { |
6007 |
> |
test -z "$ac_fc_werror_flag" || |
6008 |
> |
test ! -s conftest.err |
6009 |
> |
} && test -s conftest.$ac_objext; then |
6010 |
> |
ac_cv_f90_module_names= |
6011 |
> |
ac_file_list=* |
6012 |
> |
for ac_file in $ac_file_list; do |
6013 |
> |
case $ac_file in |
6014 |
> |
# don't care for original source and object files |
6015 |
> |
conftest.$ac_ext | conftest.$ac_objext | conftest.err ) |
6016 |
> |
: |
6017 |
> |
;; |
6018 |
> |
# look for new files derived from the file name |
6019 |
> |
*conftest*) |
6020 |
> |
ac_pat=`echo $ac_file | sed s/conftest/%FILE%/` |
6021 |
> |
ac_exists=false |
6022 |
> |
for ac_i in $ac_cv_f90_module_names; do |
6023 |
> |
if test x"$ac_pat" = x"$ac_i"; then |
6024 |
> |
ac_exists=true |
6025 |
> |
break |
6026 |
> |
fi |
6027 |
> |
done |
6028 |
> |
|
6029 |
> |
if test x"$ac_exists" = xtrue; then |
6030 |
> |
: |
6031 |
|
else |
6032 |
< |
ac_align_double=no |
6032 |
> |
ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat" |
6033 |
|
fi |
5616 |
– |
rm -f conftest* |
6034 |
|
|
6035 |
< |
fi |
6036 |
< |
echo "$as_me:$LINENO: result: $ac_align_double" >&5 |
6037 |
< |
echo "${ECHO_T}$ac_align_double" >&6 |
6038 |
< |
if test "$ac_align_double" = yes; then |
6039 |
< |
: |
6040 |
< |
CXXFLAGS="$CXXFLAGS -malign-double" |
6041 |
< |
else |
6042 |
< |
: |
6035 |
> |
;; |
6036 |
> |
# look for new files derived from the module name, |
6037 |
> |
# with different case translation schemes |
6038 |
> |
*Bar*) |
6039 |
> |
ac_pat=`echo $ac_file | sed s/Bar/%Module%/` |
6040 |
> |
ac_exists=false |
6041 |
> |
for ac_i in $ac_cv_f90_module_names; do |
6042 |
> |
if test x"$ac_pat" = x"$ac_i"; then |
6043 |
> |
ac_exists=true |
6044 |
> |
break |
6045 |
> |
fi |
6046 |
> |
done |
6047 |
|
|
6048 |
+ |
if test x"$ac_exists" = xtrue; then |
6049 |
+ |
: |
6050 |
+ |
else |
6051 |
+ |
ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat" |
6052 |
|
fi |
6053 |
|
|
6054 |
< |
# -fstrict-aliasing for gcc-2.95+ |
6054 |
> |
;; |
6055 |
> |
*bar*) |
6056 |
> |
ac_pat=`echo $ac_file | sed s/bar/%module%/` |
6057 |
> |
ac_exists=false |
6058 |
> |
for ac_i in $ac_cv_f90_module_names; do |
6059 |
> |
if test x"$ac_pat" = x"$ac_i"; then |
6060 |
> |
ac_exists=true |
6061 |
> |
break |
6062 |
> |
fi |
6063 |
> |
done |
6064 |
|
|
6065 |
< |
|
6066 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5 |
5633 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6 |
5634 |
< |
if test "${ac_fstrict_aliasing+set}" = set; then |
5635 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6065 |
> |
if test x"$ac_exists" = xtrue; then |
6066 |
> |
: |
6067 |
|
else |
6068 |
< |
echo 'void f(){}' > conftest.cpp |
5638 |
< |
if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then |
5639 |
< |
ac_fstrict_aliasing=yes |
5640 |
< |
else |
5641 |
< |
ac_fstrict_aliasing=no |
6068 |
> |
ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat" |
6069 |
|
fi |
5643 |
– |
rm -f conftest* |
6070 |
|
|
6071 |
< |
fi |
6072 |
< |
echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5 |
6073 |
< |
echo "${ECHO_T}$ac_fstrict_aliasing" >&6 |
6074 |
< |
if test "$ac_fstrict_aliasing" = yes; then |
6075 |
< |
: |
6076 |
< |
CXXFLAGS="$CXXFLAGS -fstrict-aliasing" |
6077 |
< |
else |
6078 |
< |
: |
6071 |
> |
;; |
6072 |
> |
*BAR*) |
6073 |
> |
ac_pat=`echo $ac_file | sed s/BAR/%MODULE%/` |
6074 |
> |
ac_exists=false |
6075 |
> |
for ac_i in $ac_cv_f90_module_names; do |
6076 |
> |
if test x"$ac_pat" = x"$ac_i"; then |
6077 |
> |
ac_exists=true |
6078 |
> |
break |
6079 |
> |
fi |
6080 |
> |
done |
6081 |
|
|
6082 |
+ |
if test x"$ac_exists" = xtrue; then |
6083 |
+ |
: |
6084 |
+ |
else |
6085 |
+ |
ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat" |
6086 |
|
fi |
6087 |
|
|
6088 |
< |
fi |
6088 |
> |
;; |
6089 |
> |
# Other files - we have no idea how they are generated |
6090 |
> |
*) |
6091 |
> |
{ echo "$as_me:$LINENO: WARNING: Bogus file found: $ac_file" >&5 |
6092 |
> |
echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;} |
6093 |
> |
;; |
6094 |
> |
esac |
6095 |
> |
done |
6096 |
> |
if test "x$ac_cv_f90_module_names" = "x"; then |
6097 |
> |
{ echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5 |
6098 |
> |
echo "$as_me: WARNING: Couldn't determine module file names" >&2;} |
6099 |
> |
fi |
6100 |
|
|
5658 |
– |
CPU_FLAGS="" |
5659 |
– |
if test $ac_cv_prog_really_gxx = yes; then |
5660 |
– |
case "${host_cpu}" in |
5661 |
– |
i586*) |
5662 |
– |
|
5663 |
– |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5 |
5664 |
– |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6 |
5665 |
– |
if test "${ac_cpu_pentium+set}" = set; then |
5666 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6101 |
|
else |
6102 |
< |
echo 'void f(){}' > conftest.cpp |
6103 |
< |
if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then |
5670 |
< |
ac_cpu_pentium=yes |
5671 |
< |
else |
5672 |
< |
ac_cpu_pentium=no |
5673 |
< |
fi |
5674 |
< |
rm -f conftest* |
6102 |
> |
echo "$as_me: failed program was:" >&5 |
6103 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6104 |
|
|
6105 |
+ |
ac_cv_f90_module_names= |
6106 |
+ |
{ echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5 |
6107 |
+ |
echo "$as_me: WARNING: Couldn't determine module file names" >&2;} |
6108 |
|
fi |
5677 |
– |
echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5 |
5678 |
– |
echo "${ECHO_T}$ac_cpu_pentium" >&6 |
5679 |
– |
if test "$ac_cpu_pentium" = yes; then |
5680 |
– |
: |
5681 |
– |
CPU_FLAGS=-mcpu=pentium |
5682 |
– |
else |
5683 |
– |
: |
6109 |
|
|
6110 |
+ |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
6111 |
+ |
cd .. |
6112 |
+ |
# cleanup |
6113 |
+ |
rm -rf conftest |
6114 |
+ |
ac_ext=${ac_fc_srcext-f} |
6115 |
+ |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6116 |
+ |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6117 |
+ |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6118 |
|
|
5686 |
– |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5 |
5687 |
– |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6 |
5688 |
– |
if test "${ac_pentium+set}" = set; then |
5689 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5690 |
– |
else |
5691 |
– |
echo 'void f(){}' > conftest.cpp |
5692 |
– |
if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then |
5693 |
– |
ac_pentium=yes |
5694 |
– |
else |
5695 |
– |
ac_pentium=no |
6119 |
|
fi |
6120 |
< |
rm -f conftest* |
6120 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_f90_module_names" >&5 |
6121 |
> |
echo "${ECHO_T}$ac_cv_f90_module_names" >&6; } # AC_CACHE_CHECK |
6122 |
|
|
6123 |
< |
fi |
6124 |
< |
echo "$as_me:$LINENO: result: $ac_pentium" >&5 |
5701 |
< |
echo "${ECHO_T}$ac_pentium" >&6 |
5702 |
< |
if test "$ac_pentium" = yes; then |
5703 |
< |
: |
5704 |
< |
CPU_FLAGS=-mpentium |
5705 |
< |
else |
5706 |
< |
: |
6123 |
> |
# We now generate a shell script that will help us to figure out the correct |
6124 |
> |
# module file names, using the value of ac_cv_f90_module_names |
6125 |
|
|
6126 |
< |
fi |
6126 |
> |
echo "Generating shell script modnam" |
6127 |
|
|
6128 |
< |
fi |
6128 |
> |
cat > scripts/modnam << EOF |
6129 |
> |
#! /bin/sh |
6130 |
> |
# This script is auto-generated by configure |
6131 |
> |
# |
6132 |
> |
usage="\\ |
6133 |
> |
Usage: \$0 [FILES] |
6134 |
|
|
6135 |
< |
;; |
6136 |
< |
i686*) |
6135 |
> |
[FILES] are Fortran 90 source files. |
6136 |
> |
The output is a list of module file names that the Fortran 90 compiler |
6137 |
> |
generates when compiling [FILES]." |
6138 |
|
|
6139 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5 |
6140 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6 |
5717 |
< |
if test "${ac_cpu_pentiumpro+set}" = set; then |
5718 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5719 |
< |
else |
5720 |
< |
echo 'void f(){}' > conftest.cpp |
5721 |
< |
if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then |
5722 |
< |
ac_cpu_pentiumpro=yes |
5723 |
< |
else |
5724 |
< |
ac_cpu_pentiumpro=no |
5725 |
< |
fi |
5726 |
< |
rm -f conftest* |
6139 |
> |
list= |
6140 |
> |
empty= |
6141 |
|
|
6142 |
+ |
if test \$# -eq 0; then |
6143 |
+ |
echo "\$usage"; exit 0 |
6144 |
|
fi |
5729 |
– |
echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5 |
5730 |
– |
echo "${ECHO_T}$ac_cpu_pentiumpro" >&6 |
5731 |
– |
if test "$ac_cpu_pentiumpro" = yes; then |
5732 |
– |
: |
5733 |
– |
CPU_FLAGS=-mcpu=pentiumpro |
5734 |
– |
else |
5735 |
– |
: |
6145 |
|
|
6146 |
+ |
while test \$# != 0; do |
6147 |
|
|
6148 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5 |
6149 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6 |
5740 |
< |
if test "${ac_pentiumpro+set}" = set; then |
5741 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5742 |
< |
else |
5743 |
< |
echo 'void f(){}' > conftest.cpp |
5744 |
< |
if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then |
5745 |
< |
ac_pentiumpro=yes |
5746 |
< |
else |
5747 |
< |
ac_pentiumpro=no |
5748 |
< |
fi |
5749 |
< |
rm -f conftest* |
6148 |
> |
file=\$1 |
6149 |
> |
shift |
6150 |
|
|
6151 |
< |
fi |
6152 |
< |
echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5 |
5753 |
< |
echo "${ECHO_T}$ac_pentiumpro" >&6 |
5754 |
< |
if test "$ac_pentiumpro" = yes; then |
5755 |
< |
: |
5756 |
< |
CPU_FLAGS=-mpentiumpro |
5757 |
< |
else |
5758 |
< |
: |
6151 |
> |
# strip suffix |
6152 |
> |
base=\`echo \$file | sed 's/[.][^.]*$//'\` |
6153 |
|
|
6154 |
< |
fi |
6154 |
> |
test ! -f \$file && continue |
6155 |
|
|
6156 |
< |
fi |
6156 |
> |
# Look for module definitions and transform them to upper / lower case |
6157 |
> |
mods=\`cat \$file | sed '/^ *[mM][oO][dD][uU][lL][eE]/!d;s/^ *[mM][oO][dD][uU][lL][eE] *\([A-Za-z_][A-Za-z0-9_]*\).*\$/\1/'\` |
6158 |
> |
upper=\`echo \$mods | tr a-z A-Z\` |
6159 |
> |
lower=\`echo \$mods | tr A-Z a-z\` |
6160 |
|
|
6161 |
< |
;; |
6162 |
< |
powerpc*) |
5766 |
< |
cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null` |
5767 |
< |
is60x=`echo $cputype | egrep "^600-9e?$"` |
5768 |
< |
if test -n "$is60x"; then |
6161 |
> |
# Here, the patterns for generating module file names were inserted by configure |
6162 |
> |
for trans in $ac_cv_f90_module_names; do |
6163 |
|
|
6164 |
+ |
pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\` |
6165 |
+ |
var=empty |
6166 |
+ |
case \$pat in |
6167 |
+ |
%MODULE%) |
6168 |
+ |
var=upper ;; |
6169 |
+ |
%Module%) |
6170 |
+ |
var=mods ;; |
6171 |
+ |
%module%) |
6172 |
+ |
var=lower ;; |
6173 |
+ |
%FILE%) |
6174 |
+ |
test -n "\$mods" && var=base ;; |
6175 |
+ |
esac |
6176 |
+ |
new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\` |
6177 |
+ |
list="\$list \$new" |
6178 |
+ |
done |
6179 |
+ |
done |
6180 |
|
|
6181 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5 |
6182 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6 |
6183 |
< |
if test "${ac_m_cpu_60x+set}" = set; then |
6184 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5775 |
< |
else |
5776 |
< |
echo 'void f(){}' > conftest.cpp |
5777 |
< |
if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then |
5778 |
< |
ac_m_cpu_60x=yes |
5779 |
< |
else |
5780 |
< |
ac_m_cpu_60x=no |
5781 |
< |
fi |
5782 |
< |
rm -f conftest* |
6181 |
> |
echo \$list |
6182 |
> |
# end of configure-generated script |
6183 |
> |
EOF |
6184 |
> |
chmod 755 scripts/modnam |
6185 |
|
|
6186 |
< |
fi |
6187 |
< |
echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5 |
6188 |
< |
echo "${ECHO_T}$ac_m_cpu_60x" >&6 |
6189 |
< |
if test "$ac_m_cpu_60x" = yes; then |
6190 |
< |
: |
6191 |
< |
CPU_FLAGS=-mcpu=$cputype |
6192 |
< |
else |
6193 |
< |
: |
6186 |
> |
pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'` |
6187 |
> |
F90_MODULE_NAMES=empty |
6188 |
> |
case $pat in |
6189 |
> |
%MODULE%) |
6190 |
> |
F90_MODULE_NAMES=UPPER ;; |
6191 |
> |
%Module%) |
6192 |
> |
F90_MODULE_NAMES=Mixed ;; |
6193 |
> |
%module%) |
6194 |
> |
F90_MODULE_NAMES=lower ;; |
6195 |
> |
*) |
6196 |
> |
F90_MODULE_NAMES=unknown ;; |
6197 |
> |
esac |
6198 |
|
|
6199 |
< |
fi |
6199 |
> |
ac_ext=c |
6200 |
> |
ac_cpp='$CPP $CPPFLAGS' |
6201 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6202 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6203 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6204 |
|
|
5795 |
– |
elif test "$cputype" = 750; then |
6205 |
|
|
6206 |
+ |
ac_ext=c |
6207 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
6208 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6209 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6210 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6211 |
|
|
6212 |
< |
echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5 |
6213 |
< |
echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6 |
6214 |
< |
if test "${ac_cv_prog_gxx_2_95+set}" = set; then |
6212 |
> |
|
6213 |
> |
|
6214 |
> |
{ echo "$as_me:$LINENO: checking for asin in -lm" >&5 |
6215 |
> |
echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6; } |
6216 |
> |
if test "${ac_cv_lib_m_asin+set}" = set; then |
6217 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6218 |
|
else |
6219 |
+ |
ac_check_lib_save_LIBS=$LIBS |
6220 |
+ |
LIBS="-lm $LIBS" |
6221 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
6222 |
+ |
/* confdefs.h. */ |
6223 |
+ |
_ACEOF |
6224 |
+ |
cat confdefs.h >>conftest.$ac_ext |
6225 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
6226 |
+ |
/* end confdefs.h. */ |
6227 |
|
|
6228 |
< |
cat > conftest.cpp <<EOF |
6229 |
< |
#ifdef __GNUC__ && !defined (__INTEL_COMPILER) |
6230 |
< |
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
6231 |
< |
yes; |
6228 |
> |
/* Override any GCC internal prototype to avoid an error. |
6229 |
> |
Use char because int might match the return type of a GCC |
6230 |
> |
builtin and then its argument prototype would still apply. */ |
6231 |
> |
#ifdef __cplusplus |
6232 |
> |
extern "C" |
6233 |
> |
#endif |
6234 |
> |
char asin (); |
6235 |
> |
#ifdef FC_DUMMY_MAIN |
6236 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
6237 |
> |
# ifdef __cplusplus |
6238 |
> |
extern "C" |
6239 |
|
# endif |
6240 |
+ |
int FC_DUMMY_MAIN() { return 1; } |
6241 |
|
#endif |
6242 |
< |
EOF |
6243 |
< |
if { ac_try='${CXX-c++} -E conftest.cpp' |
6244 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6245 |
< |
(eval $ac_try) 2>&5 |
6242 |
> |
#endif |
6243 |
> |
int |
6244 |
> |
main () |
6245 |
> |
{ |
6246 |
> |
return asin (); |
6247 |
> |
; |
6248 |
> |
return 0; |
6249 |
> |
} |
6250 |
> |
_ACEOF |
6251 |
> |
rm -rf conftest.$ac_objext conftest$ac_exeext |
6252 |
> |
if { (ac_try="$ac_link" |
6253 |
> |
case "(($ac_try" in |
6254 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6255 |
> |
*) ac_try_echo=$ac_try;; |
6256 |
> |
esac |
6257 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6258 |
> |
(eval "$ac_link") 2>conftest.er1 |
6259 |
|
ac_status=$? |
6260 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
6261 |
+ |
rm -f conftest.er1 |
6262 |
+ |
cat conftest.err >&5 |
6263 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6264 |
< |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
6265 |
< |
ac_cv_prog_gxx_2_95=yes |
6264 |
> |
(exit $ac_status); } && { |
6265 |
> |
test -z "$ac_c_werror_flag" || |
6266 |
> |
test ! -s conftest.err |
6267 |
> |
} && test -s conftest$ac_exeext && |
6268 |
> |
$as_test_x conftest$ac_exeext; then |
6269 |
> |
ac_cv_lib_m_asin=yes |
6270 |
|
else |
6271 |
< |
ac_cv_prog_gxx_2_95=no |
6272 |
< |
fi |
6271 |
> |
echo "$as_me: failed program was:" >&5 |
6272 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6273 |
|
|
6274 |
+ |
ac_cv_lib_m_asin=no |
6275 |
|
fi |
5823 |
– |
echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5 |
5824 |
– |
echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6 |
5825 |
– |
if test "$ac_cv_prog_gxx_2_95" = yes; then |
5826 |
– |
: |
6276 |
|
|
6277 |
< |
|
6278 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5 |
6279 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6 |
5831 |
< |
if test "${ac_m_cpu_750+set}" = set; then |
5832 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5833 |
< |
else |
5834 |
< |
echo 'void f(){}' > conftest.cpp |
5835 |
< |
if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then |
5836 |
< |
ac_m_cpu_750=yes |
5837 |
< |
else |
5838 |
< |
ac_m_cpu_750=no |
6277 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6278 |
> |
conftest$ac_exeext conftest.$ac_ext |
6279 |
> |
LIBS=$ac_check_lib_save_LIBS |
6280 |
|
fi |
6281 |
< |
rm -f conftest* |
6281 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5 |
6282 |
> |
echo "${ECHO_T}$ac_cv_lib_m_asin" >&6; } |
6283 |
> |
if test $ac_cv_lib_m_asin = yes; then |
6284 |
> |
cat >>confdefs.h <<_ACEOF |
6285 |
> |
#define HAVE_LIBM 1 |
6286 |
> |
_ACEOF |
6287 |
|
|
6288 |
< |
fi |
5843 |
< |
echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5 |
5844 |
< |
echo "${ECHO_T}$ac_m_cpu_750" >&6 |
5845 |
< |
if test "$ac_m_cpu_750" = yes; then |
5846 |
< |
: |
5847 |
< |
CPU_FLAGS=-mcpu=750 |
5848 |
< |
else |
5849 |
< |
: |
6288 |
> |
LIBS="-lm $LIBS" |
6289 |
|
|
5851 |
– |
fi |
5852 |
– |
|
6290 |
|
else |
6291 |
< |
: |
5855 |
< |
|
6291 |
> |
exit |
6292 |
|
fi |
6293 |
|
|
5858 |
– |
fi |
5859 |
– |
if test -z "$CPU_FLAGS"; then |
6294 |
|
|
6295 |
< |
|
6296 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5 |
6297 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6 |
5864 |
< |
if test "${ac_m_cpu_powerpc+set}" = set; then |
6295 |
> |
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
6296 |
> |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
6297 |
> |
if test "${ac_cv_header_stdc+set}" = set; then |
6298 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6299 |
|
else |
6300 |
< |
echo 'void f(){}' > conftest.cpp |
6301 |
< |
if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then |
6302 |
< |
ac_m_cpu_powerpc=yes |
6303 |
< |
else |
6304 |
< |
ac_m_cpu_powerpc=no |
6305 |
< |
fi |
6306 |
< |
rm -f conftest* |
6300 |
> |
cat >conftest.$ac_ext <<_ACEOF |
6301 |
> |
/* confdefs.h. */ |
6302 |
> |
_ACEOF |
6303 |
> |
cat confdefs.h >>conftest.$ac_ext |
6304 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6305 |
> |
/* end confdefs.h. */ |
6306 |
> |
#include <stdlib.h> |
6307 |
> |
#include <stdarg.h> |
6308 |
> |
#include <string.h> |
6309 |
> |
#include <float.h> |
6310 |
|
|
6311 |
< |
fi |
6312 |
< |
echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5 |
6313 |
< |
echo "${ECHO_T}$ac_m_cpu_powerpc" >&6 |
6314 |
< |
if test "$ac_m_cpu_powerpc" = yes; then |
6315 |
< |
: |
6316 |
< |
CPU_FLAGS=-mcpu=powerpc |
6311 |
> |
#ifdef FC_DUMMY_MAIN |
6312 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
6313 |
> |
# ifdef __cplusplus |
6314 |
> |
extern "C" |
6315 |
> |
# endif |
6316 |
> |
int FC_DUMMY_MAIN() { return 1; } |
6317 |
> |
#endif |
6318 |
> |
#endif |
6319 |
> |
int |
6320 |
> |
main () |
6321 |
> |
{ |
6322 |
> |
|
6323 |
> |
; |
6324 |
> |
return 0; |
6325 |
> |
} |
6326 |
> |
_ACEOF |
6327 |
> |
rm -rf conftest.$ac_objext |
6328 |
> |
if { (ac_try="$ac_compile" |
6329 |
> |
case "(($ac_try" in |
6330 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6331 |
> |
*) ac_try_echo=$ac_try;; |
6332 |
> |
esac |
6333 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6334 |
> |
(eval "$ac_compile") 2>conftest.er1 |
6335 |
> |
ac_status=$? |
6336 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
6337 |
> |
rm -f conftest.er1 |
6338 |
> |
cat conftest.err >&5 |
6339 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6340 |
> |
(exit $ac_status); } && { |
6341 |
> |
test -z "$ac_c_werror_flag" || |
6342 |
> |
test ! -s conftest.err |
6343 |
> |
} && test -s conftest.$ac_objext; then |
6344 |
> |
ac_cv_header_stdc=yes |
6345 |
|
else |
6346 |
< |
: |
6346 |
> |
echo "$as_me: failed program was:" >&5 |
6347 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6348 |
|
|
6349 |
+ |
ac_cv_header_stdc=no |
6350 |
|
fi |
6351 |
|
|
6352 |
< |
fi |
5887 |
< |
if test -z "$CPU_FLAGS"; then |
6352 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
6353 |
|
|
6354 |
+ |
if test $ac_cv_header_stdc = yes; then |
6355 |
+ |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
6356 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
6357 |
+ |
/* confdefs.h. */ |
6358 |
+ |
_ACEOF |
6359 |
+ |
cat confdefs.h >>conftest.$ac_ext |
6360 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
6361 |
+ |
/* end confdefs.h. */ |
6362 |
+ |
#include <string.h> |
6363 |
|
|
6364 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5 |
6365 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6 |
6366 |
< |
if test "${ac_m_powerpc+set}" = set; then |
6367 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6364 |
> |
_ACEOF |
6365 |
> |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6366 |
> |
$EGREP "memchr" >/dev/null 2>&1; then |
6367 |
> |
: |
6368 |
|
else |
6369 |
< |
echo 'void f(){}' > conftest.cpp |
5896 |
< |
if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then |
5897 |
< |
ac_m_powerpc=yes |
5898 |
< |
else |
5899 |
< |
ac_m_powerpc=no |
6369 |
> |
ac_cv_header_stdc=no |
6370 |
|
fi |
6371 |
< |
rm -f conftest* |
6371 |
> |
rm -rf conftest* |
6372 |
|
|
6373 |
|
fi |
5904 |
– |
echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5 |
5905 |
– |
echo "${ECHO_T}$ac_m_powerpc" >&6 |
5906 |
– |
if test "$ac_m_powerpc" = yes; then |
5907 |
– |
: |
5908 |
– |
CPU_FLAGS=-mpowerpc |
5909 |
– |
else |
5910 |
– |
: |
6374 |
|
|
6375 |
< |
fi |
6375 |
> |
if test $ac_cv_header_stdc = yes; then |
6376 |
> |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
6377 |
> |
cat >conftest.$ac_ext <<_ACEOF |
6378 |
> |
/* confdefs.h. */ |
6379 |
> |
_ACEOF |
6380 |
> |
cat confdefs.h >>conftest.$ac_ext |
6381 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6382 |
> |
/* end confdefs.h. */ |
6383 |
> |
#include <stdlib.h> |
6384 |
|
|
6385 |
< |
fi |
6386 |
< |
esac |
6387 |
< |
fi |
6388 |
< |
|
5918 |
< |
if test -n "$CPU_FLAGS"; then |
5919 |
< |
CXXFLAGS="$CXXFLAGS $CPU_FLAGS" |
5920 |
< |
fi |
5921 |
< |
|
5922 |
< |
if test -z "$CXXFLAGS"; then |
5923 |
< |
echo "" |
5924 |
< |
echo "**********************************************************" |
5925 |
< |
echo "* WARNING: Don't know the best CXXFLAGS for this system *" |
5926 |
< |
echo "* Use make CXXFLAGS=..., or edit the top level Makefile *" |
5927 |
< |
echo "* (otherwise, a default of CXXFLAGS=-O3 will be used) *" |
5928 |
< |
echo "**********************************************************" |
5929 |
< |
echo "" |
5930 |
< |
CXXFLAGS="-O3" |
5931 |
< |
fi |
5932 |
< |
|
5933 |
< |
|
5934 |
< |
|
5935 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5 |
5936 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6 |
5937 |
< |
if test "${ac_guessed_cxxflags+set}" = set; then |
5938 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6385 |
> |
_ACEOF |
6386 |
> |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6387 |
> |
$EGREP "free" >/dev/null 2>&1; then |
6388 |
> |
: |
6389 |
|
else |
6390 |
< |
echo 'void f(){}' > conftest.cpp |
5941 |
< |
if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then |
5942 |
< |
ac_guessed_cxxflags=yes |
5943 |
< |
else |
5944 |
< |
ac_guessed_cxxflags=no |
6390 |
> |
ac_cv_header_stdc=no |
6391 |
|
fi |
6392 |
< |
rm -f conftest* |
6392 |
> |
rm -rf conftest* |
6393 |
|
|
6394 |
|
fi |
5949 |
– |
echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5 |
5950 |
– |
echo "${ECHO_T}$ac_guessed_cxxflags" >&6 |
5951 |
– |
if test "$ac_guessed_cxxflags" = yes; then |
5952 |
– |
: |
6395 |
|
|
6396 |
+ |
if test $ac_cv_header_stdc = yes; then |
6397 |
+ |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
6398 |
+ |
if test "$cross_compiling" = yes; then |
6399 |
+ |
: |
6400 |
|
else |
6401 |
< |
: |
6402 |
< |
|
6403 |
< |
echo "" |
6404 |
< |
echo "**********************************************************" |
6405 |
< |
echo "* WARNING: The guessed CXXFLAGS don't seem to work with *" |
6406 |
< |
echo "* your compiler. *" |
6407 |
< |
echo "* Use make CXXFLAGS=..., or edit the top level Makefile *" |
6408 |
< |
echo "**********************************************************" |
6409 |
< |
echo "" |
6410 |
< |
CXXFLAGS="" |
6401 |
> |
cat >conftest.$ac_ext <<_ACEOF |
6402 |
> |
/* confdefs.h. */ |
6403 |
> |
_ACEOF |
6404 |
> |
cat confdefs.h >>conftest.$ac_ext |
6405 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6406 |
> |
/* end confdefs.h. */ |
6407 |
> |
#include <ctype.h> |
6408 |
> |
#include <stdlib.h> |
6409 |
> |
#if ((' ' & 0x0FF) == 0x020) |
6410 |
> |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
6411 |
> |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
6412 |
> |
#else |
6413 |
> |
# define ISLOWER(c) \ |
6414 |
> |
(('a' <= (c) && (c) <= 'i') \ |
6415 |
> |
|| ('j' <= (c) && (c) <= 'r') \ |
6416 |
> |
|| ('s' <= (c) && (c) <= 'z')) |
6417 |
> |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
6418 |
> |
#endif |
6419 |
|
|
6420 |
+ |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
6421 |
+ |
int |
6422 |
+ |
main () |
6423 |
+ |
{ |
6424 |
+ |
int i; |
6425 |
+ |
for (i = 0; i < 256; i++) |
6426 |
+ |
if (XOR (islower (i), ISLOWER (i)) |
6427 |
+ |
|| toupper (i) != TOUPPER (i)) |
6428 |
+ |
return 2; |
6429 |
+ |
return 0; |
6430 |
+ |
} |
6431 |
+ |
_ACEOF |
6432 |
+ |
rm -rf conftest$ac_exeext |
6433 |
+ |
if { (ac_try="$ac_link" |
6434 |
+ |
case "(($ac_try" in |
6435 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6436 |
+ |
*) ac_try_echo=$ac_try;; |
6437 |
+ |
esac |
6438 |
+ |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6439 |
+ |
(eval "$ac_link") 2>&5 |
6440 |
+ |
ac_status=$? |
6441 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6442 |
+ |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6443 |
+ |
{ (case "(($ac_try" in |
6444 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6445 |
+ |
*) ac_try_echo=$ac_try;; |
6446 |
+ |
esac |
6447 |
+ |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6448 |
+ |
(eval "$ac_try") 2>&5 |
6449 |
+ |
ac_status=$? |
6450 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6451 |
+ |
(exit $ac_status); }; }; then |
6452 |
+ |
: |
6453 |
+ |
else |
6454 |
+ |
echo "$as_me: program exited with status $ac_status" >&5 |
6455 |
+ |
echo "$as_me: failed program was:" >&5 |
6456 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
6457 |
+ |
|
6458 |
+ |
( exit $ac_status ) |
6459 |
+ |
ac_cv_header_stdc=no |
6460 |
|
fi |
6461 |
+ |
rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6462 |
+ |
fi |
6463 |
|
|
6464 |
|
|
6465 |
|
fi |
6466 |
+ |
fi |
6467 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
6468 |
+ |
echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
6469 |
+ |
if test $ac_cv_header_stdc = yes; then |
6470 |
|
|
6471 |
+ |
cat >>confdefs.h <<\_ACEOF |
6472 |
+ |
#define STDC_HEADERS 1 |
6473 |
+ |
_ACEOF |
6474 |
|
|
6475 |
+ |
fi |
6476 |
|
|
6477 |
+ |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
6478 |
|
|
6479 |
|
|
5975 |
– |
# Try to determine "good" native compiler flags if none specified on command |
5976 |
– |
# line |
6480 |
|
|
5978 |
– |
if test x"$F90FLAGS" = x ; then |
5979 |
– |
F90FLAGS="" |
5980 |
– |
case "${host_cpu}-${host_os}" in |
6481 |
|
|
5982 |
– |
*linux*) if test "$F90" = ifc -o "$F90" = ifort; then |
5983 |
– |
F90FLAGS="-O" |
5984 |
– |
fi;; |
5985 |
– |
rs6000*-aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
5986 |
– |
F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" |
5987 |
– |
fi;; |
5988 |
– |
powerpc*-aix*) |
5989 |
– |
if test "$F90" = f90 -o "$F90" = xlf90; then |
5990 |
– |
F90FLAGS="-O3 -qarch=ppc -qansialias -w" |
5991 |
– |
echo "*******************************************************" |
5992 |
– |
echo "* You have AIX on an unknown powerpc system. It is *" |
5993 |
– |
echo "* recommended that you use *" |
5994 |
– |
echo "* *" |
5995 |
– |
echo "* F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
5996 |
– |
echo "* ^^^ *" |
5997 |
– |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
5998 |
– |
echo "* PowerPC CPU you have. For more info, man xlf. *" |
5999 |
– |
echo "*******************************************************" |
6000 |
– |
fi;; |
6001 |
– |
*darwin*) |
6002 |
– |
if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then |
6003 |
– |
F90FLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto" |
6004 |
– |
fi;; |
6005 |
– |
esac |
6482 |
|
|
6007 |
– |
if test -n "$CPU_FLAGS"; then |
6008 |
– |
F90FLAGS="$F90FLAGS $CPU_FLAGS" |
6009 |
– |
fi |
6483 |
|
|
6011 |
– |
if test -z "$F90FLAGS"; then |
6012 |
– |
echo "" |
6013 |
– |
echo "**********************************************************" |
6014 |
– |
echo "* WARNING: Don't know the best F90FLAGS for this system *" |
6015 |
– |
echo "* Use make F90FLAGS=..., or edit the top level Makefile *" |
6016 |
– |
echo "* (otherwise, a default of F90FLAGS=-O3 will be used) *" |
6017 |
– |
echo "**********************************************************" |
6018 |
– |
echo "" |
6019 |
– |
F90FLAGS="-O3" |
6020 |
– |
fi |
6484 |
|
|
6485 |
|
|
6486 |
< |
echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5 |
6487 |
< |
echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6 |
6488 |
< |
if test "${ac_guessed_f90flags+set}" = set; then |
6486 |
> |
|
6487 |
> |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
6488 |
> |
inttypes.h stdint.h unistd.h |
6489 |
> |
do |
6490 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6491 |
> |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6492 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
6493 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6494 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6495 |
|
else |
6496 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
6497 |
+ |
/* confdefs.h. */ |
6498 |
+ |
_ACEOF |
6499 |
+ |
cat confdefs.h >>conftest.$ac_ext |
6500 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
6501 |
+ |
/* end confdefs.h. */ |
6502 |
+ |
$ac_includes_default |
6503 |
|
|
6504 |
< |
|
6505 |
< |
|
6506 |
< |
ac_ext=f90 |
6507 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
6508 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6509 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
6510 |
< |
|
6511 |
< |
echo 'program main' > conftest.$ac_ext |
6512 |
< |
echo 'end program main' >> conftest.$ac_ext |
6513 |
< |
ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5' |
6039 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6040 |
< |
(eval $ac_compile) 2>&5 |
6504 |
> |
#include <$ac_header> |
6505 |
> |
_ACEOF |
6506 |
> |
rm -rf conftest.$ac_objext |
6507 |
> |
if { (ac_try="$ac_compile" |
6508 |
> |
case "(($ac_try" in |
6509 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6510 |
> |
*) ac_try_echo=$ac_try;; |
6511 |
> |
esac |
6512 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6513 |
> |
(eval "$ac_compile") 2>conftest.er1 |
6514 |
|
ac_status=$? |
6515 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
6516 |
+ |
rm -f conftest.er1 |
6517 |
+ |
cat conftest.err >&5 |
6518 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6519 |
< |
(exit $ac_status); }; then |
6520 |
< |
ac_guessed_f90flags=yes |
6519 |
> |
(exit $ac_status); } && { |
6520 |
> |
test -z "$ac_c_werror_flag" || |
6521 |
> |
test ! -s conftest.err |
6522 |
> |
} && test -s conftest.$ac_objext; then |
6523 |
> |
eval "$as_ac_Header=yes" |
6524 |
|
else |
6525 |
< |
ac_guessed_f90flags=no |
6525 |
> |
echo "$as_me: failed program was:" >&5 |
6526 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6527 |
> |
|
6528 |
> |
eval "$as_ac_Header=no" |
6529 |
|
fi |
6048 |
– |
rm -f conftest* |
6049 |
– |
ac_ext=c |
6050 |
– |
ac_cpp='$CPP $CPPFLAGS' |
6051 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6052 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6053 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6530 |
|
|
6531 |
+ |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
6532 |
+ |
fi |
6533 |
+ |
ac_res=`eval echo '${'$as_ac_Header'}'` |
6534 |
+ |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
6535 |
+ |
echo "${ECHO_T}$ac_res" >&6; } |
6536 |
+ |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6537 |
+ |
cat >>confdefs.h <<_ACEOF |
6538 |
+ |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6539 |
+ |
_ACEOF |
6540 |
|
|
6541 |
|
fi |
6057 |
– |
echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5 |
6058 |
– |
echo "${ECHO_T}$ac_guessed_f90flags" >&6 |
6059 |
– |
if test "$ac_guessed_f90flags" = yes; then |
6060 |
– |
: |
6542 |
|
|
6543 |
< |
else |
6063 |
< |
: |
6543 |
> |
done |
6544 |
|
|
6065 |
– |
echo "" |
6066 |
– |
echo "**********************************************************" |
6067 |
– |
echo "* WARNING: The guessed F90FLAGS don't seem to work with *" |
6068 |
– |
echo "* your compiler. *" |
6069 |
– |
echo "* Use make F90FLAGS=..., or edit the top level Makefile *" |
6070 |
– |
echo "**********************************************************" |
6071 |
– |
echo "" |
6072 |
– |
F90FLAGS="" |
6545 |
|
|
6546 |
+ |
# |
6547 |
+ |
# Handle user hints |
6548 |
+ |
# |
6549 |
+ |
|
6550 |
+ |
# Check whether --with-zlib was given. |
6551 |
+ |
if test "${with_zlib+set}" = set; then |
6552 |
+ |
withval=$with_zlib; zlib_dir="$withval" |
6553 |
+ |
else |
6554 |
+ |
zlib_dir="not_set" |
6555 |
|
fi |
6556 |
|
|
6557 |
+ |
if test "$zlib_dir" != "no"; then |
6558 |
|
|
6559 |
+ |
if test "$zlib_dir" != "not_set" ; then |
6560 |
+ |
if test -d "$zlib_dir" |
6561 |
+ |
then |
6562 |
+ |
ZLIB_HOME="$zlib_dir" |
6563 |
+ |
else |
6564 |
+ |
{ echo "$as_me:$LINENO: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&5 |
6565 |
+ |
echo "$as_me: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&2;} |
6566 |
+ |
fi |
6567 |
|
fi |
6568 |
|
|
6569 |
< |
;; |
6570 |
< |
esac |
6569 |
> |
ZLIB_HOME=/usr/local |
6570 |
> |
if test ! -f "${ZLIB_HOME}/include/zlib.h" |
6571 |
> |
then |
6572 |
> |
ZLIB_HOME=/usr |
6573 |
> |
fi |
6574 |
|
|
6575 |
< |
# Find a good install program. We prefer a C program (faster), |
6576 |
< |
# so one script is as good as another. But avoid the broken or |
6577 |
< |
# incompatible versions: |
6578 |
< |
# SysV /etc/install, /usr/sbin/install |
6579 |
< |
# SunOS /usr/etc/install |
6580 |
< |
# IRIX /sbin/install |
6581 |
< |
# AIX /bin/install |
6582 |
< |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
6583 |
< |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
6091 |
< |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
6092 |
< |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
6093 |
< |
# OS/2's system install, which has a completely different semantic |
6094 |
< |
# ./install, which can be erroneously created by make from ./install.sh. |
6095 |
< |
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
6096 |
< |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
6097 |
< |
if test -z "$INSTALL"; then |
6098 |
< |
if test "${ac_cv_path_install+set}" = set; then |
6099 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6100 |
< |
else |
6101 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6102 |
< |
for as_dir in $PATH |
6103 |
< |
do |
6104 |
< |
IFS=$as_save_IFS |
6105 |
< |
test -z "$as_dir" && as_dir=. |
6106 |
< |
# Account for people who put trailing slashes in PATH elements. |
6107 |
< |
case $as_dir/ in |
6108 |
< |
./ | .// | /cC/* | \ |
6109 |
< |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
6110 |
< |
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
6111 |
< |
/usr/ucb/* ) ;; |
6112 |
< |
*) |
6113 |
< |
# OSF1 and SCO ODT 3.0 have their own names for install. |
6114 |
< |
# Don't use installbsd from OSF since it installs stuff as root |
6115 |
< |
# by default. |
6116 |
< |
for ac_prog in ginstall scoinst install; do |
6117 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
6118 |
< |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
6119 |
< |
if test $ac_prog = install && |
6120 |
< |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
6121 |
< |
# AIX install. It has an incompatible calling convention. |
6122 |
< |
: |
6123 |
< |
elif test $ac_prog = install && |
6124 |
< |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
6125 |
< |
# program-specific install script used by HP pwplus--don't use. |
6126 |
< |
: |
6127 |
< |
else |
6128 |
< |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
6129 |
< |
break 3 |
6130 |
< |
fi |
6131 |
< |
fi |
6132 |
< |
done |
6133 |
< |
done |
6134 |
< |
;; |
6135 |
< |
esac |
6136 |
< |
done |
6575 |
> |
# |
6576 |
> |
# Locate zlib, if wanted |
6577 |
> |
# |
6578 |
> |
if test -n "${ZLIB_HOME}" |
6579 |
> |
then |
6580 |
> |
ZLIB_OLD_LDFLAGS=$LDFLAGS |
6581 |
> |
ZLIB_OLD_CPPFLAGS=$LDFLAGS |
6582 |
> |
LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib" |
6583 |
> |
CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include" |
6584 |
|
|
6585 |
< |
|
6586 |
< |
fi |
6587 |
< |
if test "${ac_cv_path_install+set}" = set; then |
6588 |
< |
INSTALL=$ac_cv_path_install |
6589 |
< |
else |
6143 |
< |
# As a last resort, use the slow shell script. We don't cache a |
6144 |
< |
# path for INSTALL within a source directory, because that will |
6145 |
< |
# break other packages using the cache if that directory is |
6146 |
< |
# removed, or if the path is relative. |
6147 |
< |
INSTALL=$ac_install_sh |
6148 |
< |
fi |
6149 |
< |
fi |
6150 |
< |
echo "$as_me:$LINENO: result: $INSTALL" >&5 |
6151 |
< |
echo "${ECHO_T}$INSTALL" >&6 |
6152 |
< |
|
6153 |
< |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
6154 |
< |
# It thinks the first close brace ends the variable substitution. |
6155 |
< |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
6156 |
< |
|
6157 |
< |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
6158 |
< |
|
6159 |
< |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
6160 |
< |
|
6161 |
< |
echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
6162 |
< |
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
6163 |
< |
LN_S=$as_ln_s |
6164 |
< |
if test "$LN_S" = "ln -s"; then |
6165 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
6166 |
< |
echo "${ECHO_T}yes" >&6 |
6167 |
< |
else |
6168 |
< |
echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
6169 |
< |
echo "${ECHO_T}no, using $LN_S" >&6 |
6170 |
< |
fi |
6171 |
< |
|
6172 |
< |
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
6173 |
< |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
6174 |
< |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
6175 |
< |
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
6176 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6177 |
< |
else |
6178 |
< |
cat >conftest.make <<\_ACEOF |
6179 |
< |
all: |
6180 |
< |
@echo 'ac_maketemp="$(MAKE)"' |
6181 |
< |
_ACEOF |
6182 |
< |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
6183 |
< |
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
6184 |
< |
if test -n "$ac_maketemp"; then |
6185 |
< |
eval ac_cv_prog_make_${ac_make}_set=yes |
6186 |
< |
else |
6187 |
< |
eval ac_cv_prog_make_${ac_make}_set=no |
6188 |
< |
fi |
6189 |
< |
rm -f conftest.make |
6190 |
< |
fi |
6191 |
< |
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
6192 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
6193 |
< |
echo "${ECHO_T}yes" >&6 |
6194 |
< |
SET_MAKE= |
6195 |
< |
else |
6196 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
6197 |
< |
echo "${ECHO_T}no" >&6 |
6198 |
< |
SET_MAKE="MAKE=${MAKE-make}" |
6199 |
< |
fi |
6200 |
< |
|
6201 |
< |
if test -n "$ac_tool_prefix"; then |
6202 |
< |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6203 |
< |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
6204 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6205 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6206 |
< |
if test "${ac_cv_prog_RANLIB+set}" = set; then |
6207 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6208 |
< |
else |
6209 |
< |
if test -n "$RANLIB"; then |
6210 |
< |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6211 |
< |
else |
6212 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6213 |
< |
for as_dir in $PATH |
6214 |
< |
do |
6215 |
< |
IFS=$as_save_IFS |
6216 |
< |
test -z "$as_dir" && as_dir=. |
6217 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
6218 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6219 |
< |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6220 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6221 |
< |
break 2 |
6222 |
< |
fi |
6223 |
< |
done |
6224 |
< |
done |
6225 |
< |
|
6226 |
< |
fi |
6227 |
< |
fi |
6228 |
< |
RANLIB=$ac_cv_prog_RANLIB |
6229 |
< |
if test -n "$RANLIB"; then |
6230 |
< |
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6231 |
< |
echo "${ECHO_T}$RANLIB" >&6 |
6232 |
< |
else |
6233 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
6234 |
< |
echo "${ECHO_T}no" >&6 |
6235 |
< |
fi |
6236 |
< |
|
6237 |
< |
fi |
6238 |
< |
if test -z "$ac_cv_prog_RANLIB"; then |
6239 |
< |
ac_ct_RANLIB=$RANLIB |
6240 |
< |
# Extract the first word of "ranlib", so it can be a program name with args. |
6241 |
< |
set dummy ranlib; ac_word=$2 |
6242 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6243 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6244 |
< |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6245 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6246 |
< |
else |
6247 |
< |
if test -n "$ac_ct_RANLIB"; then |
6248 |
< |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6249 |
< |
else |
6250 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6251 |
< |
for as_dir in $PATH |
6252 |
< |
do |
6253 |
< |
IFS=$as_save_IFS |
6254 |
< |
test -z "$as_dir" && as_dir=. |
6255 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
6256 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6257 |
< |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
6258 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6259 |
< |
break 2 |
6260 |
< |
fi |
6261 |
< |
done |
6262 |
< |
done |
6263 |
< |
|
6264 |
< |
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
6265 |
< |
fi |
6266 |
< |
fi |
6267 |
< |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6268 |
< |
if test -n "$ac_ct_RANLIB"; then |
6269 |
< |
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6270 |
< |
echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
6271 |
< |
else |
6272 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
6273 |
< |
echo "${ECHO_T}no" >&6 |
6274 |
< |
fi |
6275 |
< |
|
6276 |
< |
RANLIB=$ac_ct_RANLIB |
6277 |
< |
else |
6278 |
< |
RANLIB="$ac_cv_prog_RANLIB" |
6279 |
< |
fi |
6280 |
< |
|
6281 |
< |
for ac_prog in 'bison -y' byacc |
6282 |
< |
do |
6283 |
< |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
6284 |
< |
set dummy $ac_prog; ac_word=$2 |
6285 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6286 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6287 |
< |
if test "${ac_cv_prog_YACC+set}" = set; then |
6288 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6289 |
< |
else |
6290 |
< |
if test -n "$YACC"; then |
6291 |
< |
ac_cv_prog_YACC="$YACC" # Let the user override the test. |
6292 |
< |
else |
6293 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6294 |
< |
for as_dir in $PATH |
6295 |
< |
do |
6296 |
< |
IFS=$as_save_IFS |
6297 |
< |
test -z "$as_dir" && as_dir=. |
6298 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
6299 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6300 |
< |
ac_cv_prog_YACC="$ac_prog" |
6301 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6302 |
< |
break 2 |
6303 |
< |
fi |
6304 |
< |
done |
6305 |
< |
done |
6306 |
< |
|
6307 |
< |
fi |
6308 |
< |
fi |
6309 |
< |
YACC=$ac_cv_prog_YACC |
6310 |
< |
if test -n "$YACC"; then |
6311 |
< |
echo "$as_me:$LINENO: result: $YACC" >&5 |
6312 |
< |
echo "${ECHO_T}$YACC" >&6 |
6313 |
< |
else |
6314 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
6315 |
< |
echo "${ECHO_T}no" >&6 |
6316 |
< |
fi |
6317 |
< |
|
6318 |
< |
test -n "$YACC" && break |
6319 |
< |
done |
6320 |
< |
test -n "$YACC" || YACC="yacc" |
6321 |
< |
|
6322 |
< |
for ac_prog in flex lex |
6323 |
< |
do |
6324 |
< |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
6325 |
< |
set dummy $ac_prog; ac_word=$2 |
6326 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6327 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6328 |
< |
if test "${ac_cv_prog_LEX+set}" = set; then |
6329 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6330 |
< |
else |
6331 |
< |
if test -n "$LEX"; then |
6332 |
< |
ac_cv_prog_LEX="$LEX" # Let the user override the test. |
6333 |
< |
else |
6334 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6335 |
< |
for as_dir in $PATH |
6336 |
< |
do |
6337 |
< |
IFS=$as_save_IFS |
6338 |
< |
test -z "$as_dir" && as_dir=. |
6339 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
6340 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6341 |
< |
ac_cv_prog_LEX="$ac_prog" |
6342 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6343 |
< |
break 2 |
6344 |
< |
fi |
6345 |
< |
done |
6346 |
< |
done |
6347 |
< |
|
6348 |
< |
fi |
6349 |
< |
fi |
6350 |
< |
LEX=$ac_cv_prog_LEX |
6351 |
< |
if test -n "$LEX"; then |
6352 |
< |
echo "$as_me:$LINENO: result: $LEX" >&5 |
6353 |
< |
echo "${ECHO_T}$LEX" >&6 |
6354 |
< |
else |
6355 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
6356 |
< |
echo "${ECHO_T}no" >&6 |
6357 |
< |
fi |
6358 |
< |
|
6359 |
< |
test -n "$LEX" && break |
6360 |
< |
done |
6361 |
< |
test -n "$LEX" || LEX=":" |
6585 |
> |
ac_ext=c |
6586 |
> |
ac_cpp='$CPP $CPPFLAGS' |
6587 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6588 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6589 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6590 |
|
|
6591 |
< |
if test -z "$LEXLIB" |
6592 |
< |
then |
6593 |
< |
echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
6366 |
< |
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
6367 |
< |
if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
6591 |
> |
{ echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 |
6592 |
> |
echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; } |
6593 |
> |
if test "${ac_cv_lib_z_inflateEnd+set}" = set; then |
6594 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6595 |
|
else |
6596 |
|
ac_check_lib_save_LIBS=$LIBS |
6597 |
< |
LIBS="-lfl $LIBS" |
6597 |
> |
LIBS="-lz $LIBS" |
6598 |
|
cat >conftest.$ac_ext <<_ACEOF |
6599 |
|
/* confdefs.h. */ |
6600 |
|
_ACEOF |
6602 |
|
cat >>conftest.$ac_ext <<_ACEOF |
6603 |
|
/* end confdefs.h. */ |
6604 |
|
|
6605 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
6605 |
> |
/* Override any GCC internal prototype to avoid an error. |
6606 |
> |
Use char because int might match the return type of a GCC |
6607 |
> |
builtin and then its argument prototype would still apply. */ |
6608 |
|
#ifdef __cplusplus |
6609 |
|
extern "C" |
6610 |
|
#endif |
6611 |
< |
/* We use char because int might match the return type of a gcc2 |
6612 |
< |
builtin and then its argument prototype would still apply. */ |
6613 |
< |
char yywrap (); |
6611 |
> |
char inflateEnd (); |
6612 |
> |
#ifdef FC_DUMMY_MAIN |
6613 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
6614 |
> |
# ifdef __cplusplus |
6615 |
> |
extern "C" |
6616 |
> |
# endif |
6617 |
> |
int FC_DUMMY_MAIN() { return 1; } |
6618 |
> |
#endif |
6619 |
> |
#endif |
6620 |
|
int |
6621 |
|
main () |
6622 |
|
{ |
6623 |
< |
yywrap (); |
6623 |
> |
return inflateEnd (); |
6624 |
|
; |
6625 |
|
return 0; |
6626 |
|
} |
6627 |
|
_ACEOF |
6628 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
6629 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6630 |
< |
(eval $ac_link) 2>conftest.er1 |
6628 |
> |
rm -rf conftest.$ac_objext conftest$ac_exeext |
6629 |
> |
if { (ac_try="$ac_link" |
6630 |
> |
case "(($ac_try" in |
6631 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6632 |
> |
*) ac_try_echo=$ac_try;; |
6633 |
> |
esac |
6634 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6635 |
> |
(eval "$ac_link") 2>conftest.er1 |
6636 |
|
ac_status=$? |
6637 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
6638 |
|
rm -f conftest.er1 |
6639 |
|
cat conftest.err >&5 |
6640 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6641 |
< |
(exit $ac_status); } && |
6642 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
6643 |
< |
|| test ! -s conftest.err' |
6644 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6645 |
< |
(eval $ac_try) 2>&5 |
6646 |
< |
ac_status=$? |
6408 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6409 |
< |
(exit $ac_status); }; } && |
6410 |
< |
{ ac_try='test -s conftest$ac_exeext' |
6411 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6412 |
< |
(eval $ac_try) 2>&5 |
6413 |
< |
ac_status=$? |
6414 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6415 |
< |
(exit $ac_status); }; }; then |
6416 |
< |
ac_cv_lib_fl_yywrap=yes |
6641 |
> |
(exit $ac_status); } && { |
6642 |
> |
test -z "$ac_c_werror_flag" || |
6643 |
> |
test ! -s conftest.err |
6644 |
> |
} && test -s conftest$ac_exeext && |
6645 |
> |
$as_test_x conftest$ac_exeext; then |
6646 |
> |
ac_cv_lib_z_inflateEnd=yes |
6647 |
|
else |
6648 |
|
echo "$as_me: failed program was:" >&5 |
6649 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6650 |
|
|
6651 |
< |
ac_cv_lib_fl_yywrap=no |
6651 |
> |
ac_cv_lib_z_inflateEnd=no |
6652 |
|
fi |
6653 |
< |
rm -f conftest.err conftest.$ac_objext \ |
6653 |
> |
|
6654 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6655 |
|
conftest$ac_exeext conftest.$ac_ext |
6656 |
|
LIBS=$ac_check_lib_save_LIBS |
6657 |
|
fi |
6658 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
6659 |
< |
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
6660 |
< |
if test $ac_cv_lib_fl_yywrap = yes; then |
6661 |
< |
LEXLIB="-lfl" |
6658 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 |
6659 |
> |
echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; } |
6660 |
> |
if test $ac_cv_lib_z_inflateEnd = yes; then |
6661 |
> |
zlib_cv_libz=yes |
6662 |
|
else |
6663 |
< |
echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
6664 |
< |
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
6665 |
< |
if test "${ac_cv_lib_l_yywrap+set}" = set; then |
6663 |
> |
zlib_cv_libz=no |
6664 |
> |
fi |
6665 |
> |
|
6666 |
> |
if test "${ac_cv_header_zlib_h+set}" = set; then |
6667 |
> |
{ echo "$as_me:$LINENO: checking for zlib.h" >&5 |
6668 |
> |
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } |
6669 |
> |
if test "${ac_cv_header_zlib_h+set}" = set; then |
6670 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6671 |
+ |
fi |
6672 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
6673 |
+ |
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } |
6674 |
|
else |
6675 |
< |
ac_check_lib_save_LIBS=$LIBS |
6676 |
< |
LIBS="-ll $LIBS" |
6675 |
> |
# Is the header compilable? |
6676 |
> |
{ echo "$as_me:$LINENO: checking zlib.h usability" >&5 |
6677 |
> |
echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } |
6678 |
|
cat >conftest.$ac_ext <<_ACEOF |
6679 |
|
/* confdefs.h. */ |
6680 |
|
_ACEOF |
6681 |
|
cat confdefs.h >>conftest.$ac_ext |
6682 |
|
cat >>conftest.$ac_ext <<_ACEOF |
6683 |
|
/* end confdefs.h. */ |
6684 |
< |
|
6685 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
6447 |
< |
#ifdef __cplusplus |
6448 |
< |
extern "C" |
6449 |
< |
#endif |
6450 |
< |
/* We use char because int might match the return type of a gcc2 |
6451 |
< |
builtin and then its argument prototype would still apply. */ |
6452 |
< |
char yywrap (); |
6453 |
< |
int |
6454 |
< |
main () |
6455 |
< |
{ |
6456 |
< |
yywrap (); |
6457 |
< |
; |
6458 |
< |
return 0; |
6459 |
< |
} |
6684 |
> |
$ac_includes_default |
6685 |
> |
#include <zlib.h> |
6686 |
|
_ACEOF |
6687 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
6688 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6689 |
< |
(eval $ac_link) 2>conftest.er1 |
6687 |
> |
rm -rf conftest.$ac_objext |
6688 |
> |
if { (ac_try="$ac_compile" |
6689 |
> |
case "(($ac_try" in |
6690 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6691 |
> |
*) ac_try_echo=$ac_try;; |
6692 |
> |
esac |
6693 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6694 |
> |
(eval "$ac_compile") 2>conftest.er1 |
6695 |
|
ac_status=$? |
6696 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
6697 |
|
rm -f conftest.er1 |
6698 |
|
cat conftest.err >&5 |
6699 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6700 |
< |
(exit $ac_status); } && |
6701 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
6702 |
< |
|| test ! -s conftest.err' |
6703 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6704 |
< |
(eval $ac_try) 2>&5 |
6474 |
< |
ac_status=$? |
6475 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6476 |
< |
(exit $ac_status); }; } && |
6477 |
< |
{ ac_try='test -s conftest$ac_exeext' |
6478 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6479 |
< |
(eval $ac_try) 2>&5 |
6480 |
< |
ac_status=$? |
6481 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6482 |
< |
(exit $ac_status); }; }; then |
6483 |
< |
ac_cv_lib_l_yywrap=yes |
6700 |
> |
(exit $ac_status); } && { |
6701 |
> |
test -z "$ac_c_werror_flag" || |
6702 |
> |
test ! -s conftest.err |
6703 |
> |
} && test -s conftest.$ac_objext; then |
6704 |
> |
ac_header_compiler=yes |
6705 |
|
else |
6706 |
|
echo "$as_me: failed program was:" >&5 |
6707 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6708 |
|
|
6709 |
< |
ac_cv_lib_l_yywrap=no |
6709 |
> |
ac_header_compiler=no |
6710 |
|
fi |
6490 |
– |
rm -f conftest.err conftest.$ac_objext \ |
6491 |
– |
conftest$ac_exeext conftest.$ac_ext |
6492 |
– |
LIBS=$ac_check_lib_save_LIBS |
6493 |
– |
fi |
6494 |
– |
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
6495 |
– |
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
6496 |
– |
if test $ac_cv_lib_l_yywrap = yes; then |
6497 |
– |
LEXLIB="-ll" |
6498 |
– |
fi |
6711 |
|
|
6712 |
< |
fi |
6712 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
6713 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6714 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
6715 |
|
|
6716 |
< |
fi |
6717 |
< |
|
6718 |
< |
if test "x$LEX" != "x:"; then |
6505 |
< |
echo "$as_me:$LINENO: checking lex output file root" >&5 |
6506 |
< |
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
6507 |
< |
if test "${ac_cv_prog_lex_root+set}" = set; then |
6508 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6509 |
< |
else |
6510 |
< |
# The minimal lex program is just a single line: %%. But some broken lexes |
6511 |
< |
# (Solaris, I think it was) want two %% lines, so accommodate them. |
6512 |
< |
cat >conftest.l <<_ACEOF |
6513 |
< |
%% |
6514 |
< |
%% |
6515 |
< |
_ACEOF |
6516 |
< |
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
6517 |
< |
(eval $LEX conftest.l) 2>&5 |
6518 |
< |
ac_status=$? |
6519 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6520 |
< |
(exit $ac_status); } |
6521 |
< |
if test -f lex.yy.c; then |
6522 |
< |
ac_cv_prog_lex_root=lex.yy |
6523 |
< |
elif test -f lexyy.c; then |
6524 |
< |
ac_cv_prog_lex_root=lexyy |
6525 |
< |
else |
6526 |
< |
{ { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
6527 |
< |
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
6528 |
< |
{ (exit 1); exit 1; }; } |
6529 |
< |
fi |
6530 |
< |
fi |
6531 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
6532 |
< |
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
6533 |
< |
rm -f conftest.l |
6534 |
< |
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
6535 |
< |
|
6536 |
< |
echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
6537 |
< |
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
6538 |
< |
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
6539 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6540 |
< |
else |
6541 |
< |
# POSIX says lex can declare yytext either as a pointer or an array; the |
6542 |
< |
# default is implementation-dependent. Figure out which it is, since |
6543 |
< |
# not all implementations provide the %pointer and %array declarations. |
6544 |
< |
ac_cv_prog_lex_yytext_pointer=no |
6545 |
< |
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
6546 |
< |
ac_save_LIBS=$LIBS |
6547 |
< |
LIBS="$LIBS $LEXLIB" |
6716 |
> |
# Is the header present? |
6717 |
> |
{ echo "$as_me:$LINENO: checking zlib.h presence" >&5 |
6718 |
> |
echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } |
6719 |
|
cat >conftest.$ac_ext <<_ACEOF |
6720 |
< |
`cat $LEX_OUTPUT_ROOT.c` |
6720 |
> |
/* confdefs.h. */ |
6721 |
|
_ACEOF |
6722 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
6723 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6724 |
< |
(eval $ac_link) 2>conftest.er1 |
6722 |
> |
cat confdefs.h >>conftest.$ac_ext |
6723 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6724 |
> |
/* end confdefs.h. */ |
6725 |
> |
#include <zlib.h> |
6726 |
> |
_ACEOF |
6727 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
6728 |
> |
case "(($ac_try" in |
6729 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6730 |
> |
*) ac_try_echo=$ac_try;; |
6731 |
> |
esac |
6732 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6733 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
6734 |
|
ac_status=$? |
6735 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
6736 |
|
rm -f conftest.er1 |
6737 |
|
cat conftest.err >&5 |
6738 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6739 |
< |
(exit $ac_status); } && |
6740 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
6741 |
< |
|| test ! -s conftest.err' |
6742 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6743 |
< |
(eval $ac_try) 2>&5 |
6564 |
< |
ac_status=$? |
6565 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6566 |
< |
(exit $ac_status); }; } && |
6567 |
< |
{ ac_try='test -s conftest$ac_exeext' |
6568 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6569 |
< |
(eval $ac_try) 2>&5 |
6570 |
< |
ac_status=$? |
6571 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6572 |
< |
(exit $ac_status); }; }; then |
6573 |
< |
ac_cv_prog_lex_yytext_pointer=yes |
6739 |
> |
(exit $ac_status); } >/dev/null && { |
6740 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
6741 |
> |
test ! -s conftest.err |
6742 |
> |
}; then |
6743 |
> |
ac_header_preproc=yes |
6744 |
|
else |
6745 |
|
echo "$as_me: failed program was:" >&5 |
6746 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6747 |
|
|
6748 |
+ |
ac_header_preproc=no |
6749 |
|
fi |
6579 |
– |
rm -f conftest.err conftest.$ac_objext \ |
6580 |
– |
conftest$ac_exeext conftest.$ac_ext |
6581 |
– |
LIBS=$ac_save_LIBS |
6582 |
– |
rm -f "${LEX_OUTPUT_ROOT}.c" |
6750 |
|
|
6751 |
< |
fi |
6752 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
6753 |
< |
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
6587 |
< |
if test $ac_cv_prog_lex_yytext_pointer = yes; then |
6588 |
< |
|
6589 |
< |
cat >>confdefs.h <<\_ACEOF |
6590 |
< |
#define YYTEXT_POINTER 1 |
6591 |
< |
_ACEOF |
6751 |
> |
rm -rf conftest.err conftest.$ac_ext |
6752 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6753 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
6754 |
|
|
6755 |
< |
fi |
6756 |
< |
|
6757 |
< |
fi |
6758 |
< |
# Extract the first word of "ar", so it can be a program name with args. |
6759 |
< |
set dummy ar; ac_word=$2 |
6760 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6761 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6762 |
< |
if test "${ac_cv_prog_AR+set}" = set; then |
6755 |
> |
# So? What about this header? |
6756 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6757 |
> |
yes:no: ) |
6758 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
6759 |
> |
echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
6760 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
6761 |
> |
echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} |
6762 |
> |
ac_header_preproc=yes |
6763 |
> |
;; |
6764 |
> |
no:yes:* ) |
6765 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
6766 |
> |
echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} |
6767 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
6768 |
> |
echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} |
6769 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 |
6770 |
> |
echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} |
6771 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
6772 |
> |
echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
6773 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
6774 |
> |
echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} |
6775 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
6776 |
> |
echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} |
6777 |
> |
( cat <<\_ASBOX |
6778 |
> |
## ------------------------------ ## |
6779 |
> |
## Report this to gezelter@nd.edu ## |
6780 |
> |
## ------------------------------ ## |
6781 |
> |
_ASBOX |
6782 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
6783 |
> |
;; |
6784 |
> |
esac |
6785 |
> |
{ echo "$as_me:$LINENO: checking for zlib.h" >&5 |
6786 |
> |
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } |
6787 |
> |
if test "${ac_cv_header_zlib_h+set}" = set; then |
6788 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6789 |
|
else |
6790 |
< |
if test -n "$AR"; then |
6791 |
< |
ac_cv_prog_AR="$AR" # Let the user override the test. |
6792 |
< |
else |
6793 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6607 |
< |
for as_dir in $PATH |
6608 |
< |
do |
6609 |
< |
IFS=$as_save_IFS |
6610 |
< |
test -z "$as_dir" && as_dir=. |
6611 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
6612 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6613 |
< |
ac_cv_prog_AR="ar" |
6614 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6615 |
< |
break 2 |
6616 |
< |
fi |
6617 |
< |
done |
6618 |
< |
done |
6790 |
> |
ac_cv_header_zlib_h=$ac_header_preproc |
6791 |
> |
fi |
6792 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
6793 |
> |
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } |
6794 |
|
|
6620 |
– |
test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE" |
6795 |
|
fi |
6796 |
< |
fi |
6797 |
< |
AR=$ac_cv_prog_AR |
6624 |
< |
if test -n "$AR"; then |
6625 |
< |
echo "$as_me:$LINENO: result: $AR" >&5 |
6626 |
< |
echo "${ECHO_T}$AR" >&6 |
6796 |
> |
if test $ac_cv_header_zlib_h = yes; then |
6797 |
> |
zlib_cv_zlib_h=yes |
6798 |
|
else |
6799 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
6629 |
< |
echo "${ECHO_T}no" >&6 |
6799 |
> |
zlib_cv_zlib_h=no |
6800 |
|
fi |
6801 |
|
|
6632 |
– |
if test "$AR" = "NONE"; then |
6633 |
– |
{ { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5 |
6634 |
– |
echo "$as_me: error: --> Can't find \`ar'!" >&2;} |
6635 |
– |
{ (exit 1); exit 1; }; } |
6636 |
– |
cat >confcache <<\_ACEOF |
6637 |
– |
# This file is a shell script that caches the results of configure |
6638 |
– |
# tests run on this system so they can be shared between configure |
6639 |
– |
# scripts and configure runs, see configure's option --config-cache. |
6640 |
– |
# It is not useful on other systems. If it contains results you don't |
6641 |
– |
# want to keep, you may remove or edit it. |
6642 |
– |
# |
6643 |
– |
# config.status only pays attention to the cache file if you give it |
6644 |
– |
# the --recheck option to rerun configure. |
6645 |
– |
# |
6646 |
– |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
6647 |
– |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
6648 |
– |
# following values. |
6802 |
|
|
6803 |
< |
_ACEOF |
6803 |
> |
ac_ext=c |
6804 |
> |
ac_cpp='$CPP $CPPFLAGS' |
6805 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6806 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6807 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6808 |
|
|
6652 |
– |
# The following way of writing the cache mishandles newlines in values, |
6653 |
– |
# but we know of no workaround that is simple, portable, and efficient. |
6654 |
– |
# So, don't put newlines in cache variables' values. |
6655 |
– |
# Ultrix sh set writes to stderr and can't be redirected directly, |
6656 |
– |
# and sets the high bit in the cache file unless we assign to the vars. |
6657 |
– |
{ |
6658 |
– |
(set) 2>&1 | |
6659 |
– |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
6660 |
– |
*ac_space=\ *) |
6661 |
– |
# `set' does not quote correctly, so add quotes (double-quote |
6662 |
– |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
6663 |
– |
sed -n \ |
6664 |
– |
"s/'/'\\\\''/g; |
6665 |
– |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
6666 |
– |
;; |
6667 |
– |
*) |
6668 |
– |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
6669 |
– |
sed -n \ |
6670 |
– |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
6671 |
– |
;; |
6672 |
– |
esac; |
6673 |
– |
} | |
6674 |
– |
sed ' |
6675 |
– |
t clear |
6676 |
– |
: clear |
6677 |
– |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
6678 |
– |
t end |
6679 |
– |
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
6680 |
– |
: end' >>confcache |
6681 |
– |
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
6682 |
– |
if test -w $cache_file; then |
6683 |
– |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
6684 |
– |
cat confcache >$cache_file |
6685 |
– |
else |
6686 |
– |
echo "not updating unwritable cache $cache_file" |
6687 |
– |
fi |
6688 |
– |
fi |
6689 |
– |
rm -f confcache |
6690 |
– |
exit 1 |
6691 |
– |
fi |
6809 |
|
|
6810 |
+ |
if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"; then |
6811 |
|
|
6812 |
+ |
cat >>confdefs.h <<\_ACEOF |
6813 |
+ |
#define HAVE_ZLIB_H 1 |
6814 |
+ |
_ACEOF |
6815 |
|
|
6695 |
– |
# Check whether --with-mpi or --without-mpi was given. |
6696 |
– |
if test "${with_mpi+set}" = set; then |
6697 |
– |
withval="$with_mpi" |
6698 |
– |
with_mpi=$withval |
6699 |
– |
else |
6700 |
– |
with_mpi="no" |
6701 |
– |
fi; |
6816 |
|
|
6817 |
< |
case "x$with_mpi" in |
6818 |
< |
xyes | "x") USE_MPI=yes;; |
6819 |
< |
xno) USE_MPI=no ;; |
6706 |
< |
*) MPI="$with_mpi"; USE_MPI=yes ;; |
6707 |
< |
esac |
6708 |
< |
if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then |
6709 |
< |
MPI="/usr/local" |
6710 |
< |
fi |
6711 |
< |
if test "$USE_MPI" = "yes"; then |
6817 |
> |
cat >>confdefs.h <<\_ACEOF |
6818 |
> |
#define HAVE_LIBZ 1 |
6819 |
> |
_ACEOF |
6820 |
|
|
6821 |
+ |
ZLIB_INC_DIR="${ZLIB_HOME}/include" |
6822 |
+ |
ZLIB_LIB_DIR="${ZLIB_HOME}/lib" |
6823 |
+ |
ZLIB="-lz" |
6824 |
+ |
else |
6825 |
+ |
{ echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5 |
6826 |
+ |
echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6; } |
6827 |
+ |
ZLIB_INC_DIR= |
6828 |
+ |
ZLIB_LIB_DIR= |
6829 |
+ |
ZLIB= |
6830 |
+ |
LDFLAGS="$ZLIB_OLD_LDFLAGS" |
6831 |
+ |
CPPFLAGS="$ZLIB_OLD_CPPFLAGS" |
6832 |
+ |
{ echo "$as_me:$LINENO: result: failed" >&5 |
6833 |
+ |
echo "${ECHO_T}failed" >&6; } |
6834 |
+ |
echo "" |
6835 |
+ |
echo "*********************************************************" |
6836 |
+ |
echo "* WARNING: Could not find a working zlib installation *" |
6837 |
+ |
echo "* If you need OOPSE to be able to deal with compressed *" |
6838 |
+ |
echo "* trajectory dump files be sure to specify a valid zlib *" |
6839 |
+ |
echo "* installation with --with-zlib=DIR *" |
6840 |
+ |
echo "* *" |
6841 |
+ |
echo "* OOPSE will still work without zlib installed. *" |
6842 |
+ |
echo "*********************************************************" |
6843 |
+ |
echo "" |
6844 |
+ |
fi |
6845 |
|
|
6714 |
– |
# Set variables... |
6715 |
– |
MPI_LIB_DIR="$MPI/lib" |
6716 |
– |
MPI_INC_DIR="$MPI/include" |
6846 |
|
|
6847 |
|
|
6719 |
– |
|
6720 |
– |
echo "$as_me:$LINENO: checking for mpi.h" >&5 |
6721 |
– |
echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6 |
6722 |
– |
have_mpi_h=0 |
6723 |
– |
echo '#include <mpi.h>' > conftest.cc |
6724 |
– |
if test -z "`${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1`"; then |
6725 |
– |
echo "$as_me:$LINENO: result: yes" >&5 |
6726 |
– |
echo "${ECHO_T}yes" >&6 |
6727 |
– |
have_mpi_h=1 |
6728 |
– |
else |
6729 |
– |
echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
6730 |
– |
echo "${ECHO_T}no! Check MPI include paths" >&6 |
6731 |
– |
USE_MPI="no" |
6848 |
|
fi |
6733 |
– |
rm -f conftest* |
6734 |
– |
if test "$have_mpi_h" = 1; then |
6735 |
– |
|
6736 |
– |
cat >>confdefs.h <<\_ACEOF |
6737 |
– |
#define HAVE_MPI_H 1 |
6738 |
– |
_ACEOF |
6739 |
– |
|
6849 |
|
fi |
6850 |
|
|
6851 |
< |
echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5 |
6852 |
< |
echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6 |
6853 |
< |
have_mpif_h=0 |
6854 |
< |
rm -f conftest* |
6855 |
< |
cat >conftest.f90 <<EOF |
6856 |
< |
program main |
6857 |
< |
include 'mpif.h' |
6749 |
< |
end |
6750 |
< |
EOF |
6751 |
< |
if $F90 -I$MPI_INC_DIR -c conftest.f90 > conftest.out 2>&1 ; then |
6752 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
6753 |
< |
echo "${ECHO_T}yes" >&6 |
6754 |
< |
MPI_F90_INC="$MPI_INC_DIR" |
6755 |
< |
have_mpif_h=1 |
6851 |
> |
# |
6852 |
> |
# Handle user hints |
6853 |
> |
# |
6854 |
> |
|
6855 |
> |
# Check whether --with-fftw was given. |
6856 |
> |
if test "${with_fftw+set}" = set; then |
6857 |
> |
withval=$with_fftw; fftw_dir="$withval" |
6858 |
|
else |
6859 |
< |
if test -s conftest.out ; then |
6758 |
< |
cat conftest.out >> config.log |
6759 |
< |
fi |
6760 |
< |
echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
6761 |
< |
echo "${ECHO_T}no! Check MPI include paths" >&6 |
6762 |
< |
USE_MPI="no" |
6859 |
> |
fftw_dir="not_set" |
6860 |
|
fi |
6764 |
– |
rm -f conftest* |
6861 |
|
|
6862 |
< |
if test "$have_mpif_h" = 1; then |
6863 |
< |
|
6864 |
< |
cat >>confdefs.h <<\_ACEOF |
6865 |
< |
#define HAVE_MPIF_H 1 |
6866 |
< |
_ACEOF |
6867 |
< |
|
6868 |
< |
fi |
6862 |
> |
if test "$fftw_dir" != "no"; then |
6863 |
> |
if test "$fftw_dir" != "not_set" ; then |
6864 |
> |
if test -d "$fftw_dir"; then |
6865 |
> |
FFTW_HOME="$fftw_dir" |
6866 |
> |
else |
6867 |
> |
{ echo "$as_me:$LINENO: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&5 |
6868 |
> |
echo "$as_me: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&2;} |
6869 |
> |
FFTW_HOME=/usr/local |
6870 |
> |
if test ! -f "${FFTW_HOME}/include/fftw3.h" -o -f "${FFTW_HOME}/include/fftw.h" -o -f "${FFTW_HOME}/include/dfftw.h"; then |
6871 |
> |
FFTW_HOME=/usr |
6872 |
> |
fi |
6873 |
> |
fi |
6874 |
> |
# |
6875 |
> |
# Locate fftw, if wanted |
6876 |
> |
# |
6877 |
> |
if test -n "${FFTW_HOME}"; then |
6878 |
> |
FFTW_OLD_LDFLAGS=$LDFLAGS |
6879 |
> |
FFTW_OLD_CPPFLAGS=$LDFLAGS |
6880 |
> |
LDFLAGS="$LDFLAGS -L${FFTW_HOME}/lib" |
6881 |
> |
CPPFLAGS="$CPPFLAGS -I${FFTW_HOME}/include" |
6882 |
|
|
6883 |
< |
ac_ext=c |
6883 |
> |
ac_ext=c |
6884 |
|
ac_cpp='$CPP $CPPFLAGS' |
6885 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6886 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6887 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6888 |
|
|
6889 |
< |
ac_save_LDFLAGS=$LDFLAGS |
6890 |
< |
LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} " |
6891 |
< |
|
6783 |
< |
if test x = x"$MPI_LIB"; then |
6784 |
< |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 |
6785 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6 |
6786 |
< |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then |
6889 |
> |
{ echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5 |
6890 |
> |
echo $ECHO_N "checking for fftw_execute in -lfftw3... $ECHO_C" >&6; } |
6891 |
> |
if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then |
6892 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6893 |
|
else |
6894 |
|
ac_check_lib_save_LIBS=$LIBS |
6895 |
< |
LIBS="-lmpich $LIBS" |
6895 |
> |
LIBS="-lfftw3 $LIBS" |
6896 |
|
cat >conftest.$ac_ext <<_ACEOF |
6897 |
|
/* confdefs.h. */ |
6898 |
|
_ACEOF |
6900 |
|
cat >>conftest.$ac_ext <<_ACEOF |
6901 |
|
/* end confdefs.h. */ |
6902 |
|
|
6903 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
6903 |
> |
/* Override any GCC internal prototype to avoid an error. |
6904 |
> |
Use char because int might match the return type of a GCC |
6905 |
> |
builtin and then its argument prototype would still apply. */ |
6906 |
|
#ifdef __cplusplus |
6907 |
|
extern "C" |
6908 |
|
#endif |
6909 |
< |
/* We use char because int might match the return type of a gcc2 |
6910 |
< |
builtin and then its argument prototype would still apply. */ |
6911 |
< |
char MPI_Init (); |
6909 |
> |
char fftw_execute (); |
6910 |
> |
#ifdef FC_DUMMY_MAIN |
6911 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
6912 |
> |
# ifdef __cplusplus |
6913 |
> |
extern "C" |
6914 |
> |
# endif |
6915 |
> |
int FC_DUMMY_MAIN() { return 1; } |
6916 |
> |
#endif |
6917 |
> |
#endif |
6918 |
|
int |
6919 |
|
main () |
6920 |
|
{ |
6921 |
< |
MPI_Init (); |
6921 |
> |
return fftw_execute (); |
6922 |
|
; |
6923 |
|
return 0; |
6924 |
|
} |
6925 |
|
_ACEOF |
6926 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
6927 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6928 |
< |
(eval $ac_link) 2>conftest.er1 |
6926 |
> |
rm -rf conftest.$ac_objext conftest$ac_exeext |
6927 |
> |
if { (ac_try="$ac_link" |
6928 |
> |
case "(($ac_try" in |
6929 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6930 |
> |
*) ac_try_echo=$ac_try;; |
6931 |
> |
esac |
6932 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6933 |
> |
(eval "$ac_link") 2>conftest.er1 |
6934 |
|
ac_status=$? |
6935 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
6936 |
|
rm -f conftest.er1 |
6937 |
|
cat conftest.err >&5 |
6938 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6939 |
< |
(exit $ac_status); } && |
6940 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
6941 |
< |
|| test ! -s conftest.err' |
6942 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6943 |
< |
(eval $ac_try) 2>&5 |
6944 |
< |
ac_status=$? |
6827 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6828 |
< |
(exit $ac_status); }; } && |
6829 |
< |
{ ac_try='test -s conftest$ac_exeext' |
6830 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6831 |
< |
(eval $ac_try) 2>&5 |
6832 |
< |
ac_status=$? |
6833 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6834 |
< |
(exit $ac_status); }; }; then |
6835 |
< |
ac_cv_lib_mpich_MPI_Init=yes |
6939 |
> |
(exit $ac_status); } && { |
6940 |
> |
test -z "$ac_c_werror_flag" || |
6941 |
> |
test ! -s conftest.err |
6942 |
> |
} && test -s conftest$ac_exeext && |
6943 |
> |
$as_test_x conftest$ac_exeext; then |
6944 |
> |
ac_cv_lib_fftw3_fftw_execute=yes |
6945 |
|
else |
6946 |
|
echo "$as_me: failed program was:" >&5 |
6947 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6948 |
|
|
6949 |
< |
ac_cv_lib_mpich_MPI_Init=no |
6949 |
> |
ac_cv_lib_fftw3_fftw_execute=no |
6950 |
|
fi |
6951 |
< |
rm -f conftest.err conftest.$ac_objext \ |
6951 |
> |
|
6952 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6953 |
|
conftest$ac_exeext conftest.$ac_ext |
6954 |
|
LIBS=$ac_check_lib_save_LIBS |
6955 |
|
fi |
6956 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
6957 |
< |
echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6 |
6958 |
< |
if test $ac_cv_lib_mpich_MPI_Init = yes; then |
6959 |
< |
MPI_LIB="-lmpich" |
6956 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5 |
6957 |
> |
echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_execute" >&6; } |
6958 |
> |
if test $ac_cv_lib_fftw3_fftw_execute = yes; then |
6959 |
> |
fftw_cv_libfftw3=yes |
6960 |
> |
else |
6961 |
> |
fftw_cv_libfftw3=no |
6962 |
|
fi |
6963 |
|
|
6964 |
< |
fi |
6965 |
< |
if test x = x"$MPI_LIB"; then |
6966 |
< |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
6967 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
6856 |
< |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
6964 |
> |
if test "${ac_cv_header_fftw3_h+set}" = set; then |
6965 |
> |
{ echo "$as_me:$LINENO: checking for fftw3.h" >&5 |
6966 |
> |
echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6; } |
6967 |
> |
if test "${ac_cv_header_fftw3_h+set}" = set; then |
6968 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6969 |
+ |
fi |
6970 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5 |
6971 |
+ |
echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6; } |
6972 |
|
else |
6973 |
< |
ac_check_lib_save_LIBS=$LIBS |
6974 |
< |
LIBS="-lmpi $LIBS" |
6973 |
> |
# Is the header compilable? |
6974 |
> |
{ echo "$as_me:$LINENO: checking fftw3.h usability" >&5 |
6975 |
> |
echo $ECHO_N "checking fftw3.h usability... $ECHO_C" >&6; } |
6976 |
|
cat >conftest.$ac_ext <<_ACEOF |
6977 |
|
/* confdefs.h. */ |
6978 |
|
_ACEOF |
6979 |
|
cat confdefs.h >>conftest.$ac_ext |
6980 |
|
cat >>conftest.$ac_ext <<_ACEOF |
6981 |
|
/* end confdefs.h. */ |
6982 |
< |
|
6983 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
6869 |
< |
#ifdef __cplusplus |
6870 |
< |
extern "C" |
6871 |
< |
#endif |
6872 |
< |
/* We use char because int might match the return type of a gcc2 |
6873 |
< |
builtin and then its argument prototype would still apply. */ |
6874 |
< |
char MPI_Init (); |
6875 |
< |
int |
6876 |
< |
main () |
6877 |
< |
{ |
6878 |
< |
MPI_Init (); |
6879 |
< |
; |
6880 |
< |
return 0; |
6881 |
< |
} |
6982 |
> |
$ac_includes_default |
6983 |
> |
#include <fftw3.h> |
6984 |
|
_ACEOF |
6985 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
6986 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6987 |
< |
(eval $ac_link) 2>conftest.er1 |
6985 |
> |
rm -rf conftest.$ac_objext |
6986 |
> |
if { (ac_try="$ac_compile" |
6987 |
> |
case "(($ac_try" in |
6988 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6989 |
> |
*) ac_try_echo=$ac_try;; |
6990 |
> |
esac |
6991 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6992 |
> |
(eval "$ac_compile") 2>conftest.er1 |
6993 |
|
ac_status=$? |
6994 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
6995 |
|
rm -f conftest.er1 |
6996 |
|
cat conftest.err >&5 |
6997 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6998 |
< |
(exit $ac_status); } && |
6999 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
7000 |
< |
|| test ! -s conftest.err' |
7001 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7002 |
< |
(eval $ac_try) 2>&5 |
6896 |
< |
ac_status=$? |
6897 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6898 |
< |
(exit $ac_status); }; } && |
6899 |
< |
{ ac_try='test -s conftest$ac_exeext' |
6900 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6901 |
< |
(eval $ac_try) 2>&5 |
6902 |
< |
ac_status=$? |
6903 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6904 |
< |
(exit $ac_status); }; }; then |
6905 |
< |
ac_cv_lib_mpi_MPI_Init=yes |
6998 |
> |
(exit $ac_status); } && { |
6999 |
> |
test -z "$ac_c_werror_flag" || |
7000 |
> |
test ! -s conftest.err |
7001 |
> |
} && test -s conftest.$ac_objext; then |
7002 |
> |
ac_header_compiler=yes |
7003 |
|
else |
7004 |
|
echo "$as_me: failed program was:" >&5 |
7005 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7006 |
|
|
7007 |
< |
ac_cv_lib_mpi_MPI_Init=no |
7007 |
> |
ac_header_compiler=no |
7008 |
|
fi |
6912 |
– |
rm -f conftest.err conftest.$ac_objext \ |
6913 |
– |
conftest$ac_exeext conftest.$ac_ext |
6914 |
– |
LIBS=$ac_check_lib_save_LIBS |
6915 |
– |
fi |
6916 |
– |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
6917 |
– |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
6918 |
– |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
6919 |
– |
MPI_LIB="-lmpi" |
6920 |
– |
fi |
7009 |
|
|
7010 |
< |
fi |
7011 |
< |
$as_unset ac_cv_lib_mpi_MPI_Init |
7012 |
< |
if test x = x"$MPI_LIB"; then |
7013 |
< |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
7014 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
7015 |
< |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
7016 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6929 |
< |
else |
6930 |
< |
ac_check_lib_save_LIBS=$LIBS |
6931 |
< |
LIBS="-lmpi "-llam" $LIBS" |
7010 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
7011 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7012 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
7013 |
> |
|
7014 |
> |
# Is the header present? |
7015 |
> |
{ echo "$as_me:$LINENO: checking fftw3.h presence" >&5 |
7016 |
> |
echo $ECHO_N "checking fftw3.h presence... $ECHO_C" >&6; } |
7017 |
|
cat >conftest.$ac_ext <<_ACEOF |
7018 |
|
/* confdefs.h. */ |
7019 |
|
_ACEOF |
7020 |
|
cat confdefs.h >>conftest.$ac_ext |
7021 |
|
cat >>conftest.$ac_ext <<_ACEOF |
7022 |
|
/* end confdefs.h. */ |
7023 |
< |
|
6939 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
6940 |
< |
#ifdef __cplusplus |
6941 |
< |
extern "C" |
6942 |
< |
#endif |
6943 |
< |
/* We use char because int might match the return type of a gcc2 |
6944 |
< |
builtin and then its argument prototype would still apply. */ |
6945 |
< |
char MPI_Init (); |
6946 |
< |
int |
6947 |
< |
main () |
6948 |
< |
{ |
6949 |
< |
MPI_Init (); |
6950 |
< |
; |
6951 |
< |
return 0; |
6952 |
< |
} |
7023 |
> |
#include <fftw3.h> |
7024 |
|
_ACEOF |
7025 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
7026 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7027 |
< |
(eval $ac_link) 2>conftest.er1 |
7025 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
7026 |
> |
case "(($ac_try" in |
7027 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7028 |
> |
*) ac_try_echo=$ac_try;; |
7029 |
> |
esac |
7030 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7031 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7032 |
|
ac_status=$? |
7033 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
7034 |
|
rm -f conftest.er1 |
7035 |
|
cat conftest.err >&5 |
7036 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7037 |
< |
(exit $ac_status); } && |
7038 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
7039 |
< |
|| test ! -s conftest.err' |
7040 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7041 |
< |
(eval $ac_try) 2>&5 |
6967 |
< |
ac_status=$? |
6968 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6969 |
< |
(exit $ac_status); }; } && |
6970 |
< |
{ ac_try='test -s conftest$ac_exeext' |
6971 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6972 |
< |
(eval $ac_try) 2>&5 |
6973 |
< |
ac_status=$? |
6974 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6975 |
< |
(exit $ac_status); }; }; then |
6976 |
< |
ac_cv_lib_mpi_MPI_Init=yes |
7037 |
> |
(exit $ac_status); } >/dev/null && { |
7038 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
7039 |
> |
test ! -s conftest.err |
7040 |
> |
}; then |
7041 |
> |
ac_header_preproc=yes |
7042 |
|
else |
7043 |
|
echo "$as_me: failed program was:" >&5 |
7044 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7045 |
|
|
7046 |
< |
ac_cv_lib_mpi_MPI_Init=no |
7046 |
> |
ac_header_preproc=no |
7047 |
|
fi |
6983 |
– |
rm -f conftest.err conftest.$ac_objext \ |
6984 |
– |
conftest$ac_exeext conftest.$ac_ext |
6985 |
– |
LIBS=$ac_check_lib_save_LIBS |
6986 |
– |
fi |
6987 |
– |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
6988 |
– |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
6989 |
– |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
6990 |
– |
MPI_LIB="-lmpi -llam" |
6991 |
– |
fi |
7048 |
|
|
7049 |
< |
fi |
7049 |
> |
rm -rf conftest.err conftest.$ac_ext |
7050 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7051 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
7052 |
|
|
7053 |
< |
$as_unset ac_cv_lib_mpi_MPI_Init |
7054 |
< |
if test x = x"$MPI_LIB"; then |
7055 |
< |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
7056 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
7057 |
< |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
7053 |
> |
# So? What about this header? |
7054 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7055 |
> |
yes:no: ) |
7056 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
7057 |
> |
echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
7058 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5 |
7059 |
> |
echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;} |
7060 |
> |
ac_header_preproc=yes |
7061 |
> |
;; |
7062 |
> |
no:yes:* ) |
7063 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5 |
7064 |
> |
echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;} |
7065 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: check for missing prerequisite headers?" >&5 |
7066 |
> |
echo "$as_me: WARNING: fftw3.h: check for missing prerequisite headers?" >&2;} |
7067 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5 |
7068 |
> |
echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;} |
7069 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&5 |
7070 |
> |
echo "$as_me: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&2;} |
7071 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5 |
7072 |
> |
echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;} |
7073 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5 |
7074 |
> |
echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;} |
7075 |
> |
( cat <<\_ASBOX |
7076 |
> |
## ------------------------------ ## |
7077 |
> |
## Report this to gezelter@nd.edu ## |
7078 |
> |
## ------------------------------ ## |
7079 |
> |
_ASBOX |
7080 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
7081 |
> |
;; |
7082 |
> |
esac |
7083 |
> |
{ echo "$as_me:$LINENO: checking for fftw3.h" >&5 |
7084 |
> |
echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6; } |
7085 |
> |
if test "${ac_cv_header_fftw3_h+set}" = set; then |
7086 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7087 |
|
else |
7088 |
+ |
ac_cv_header_fftw3_h=$ac_header_preproc |
7089 |
+ |
fi |
7090 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5 |
7091 |
+ |
echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6; } |
7092 |
+ |
|
7093 |
+ |
fi |
7094 |
+ |
if test $ac_cv_header_fftw3_h = yes; then |
7095 |
+ |
fftw_cv_fftw3_h=yes |
7096 |
+ |
else |
7097 |
+ |
fftw_cv_fftw3_h=no |
7098 |
+ |
fi |
7099 |
+ |
|
7100 |
+ |
|
7101 |
+ |
if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then |
7102 |
+ |
{ echo "$as_me:$LINENO: checking for fftwnd_one in -lfftw" >&5 |
7103 |
+ |
echo $ECHO_N "checking for fftwnd_one in -lfftw... $ECHO_C" >&6; } |
7104 |
+ |
if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then |
7105 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7106 |
+ |
else |
7107 |
|
ac_check_lib_save_LIBS=$LIBS |
7108 |
< |
LIBS="-lmpi -llam -lpthread $LIBS" |
7108 |
> |
LIBS="-lfftw $LIBS" |
7109 |
|
cat >conftest.$ac_ext <<_ACEOF |
7110 |
|
/* confdefs.h. */ |
7111 |
|
_ACEOF |
7113 |
|
cat >>conftest.$ac_ext <<_ACEOF |
7114 |
|
/* end confdefs.h. */ |
7115 |
|
|
7116 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
7116 |
> |
/* Override any GCC internal prototype to avoid an error. |
7117 |
> |
Use char because int might match the return type of a GCC |
7118 |
> |
builtin and then its argument prototype would still apply. */ |
7119 |
|
#ifdef __cplusplus |
7120 |
|
extern "C" |
7121 |
|
#endif |
7122 |
< |
/* We use char because int might match the return type of a gcc2 |
7123 |
< |
builtin and then its argument prototype would still apply. */ |
7124 |
< |
char MPI_Init (); |
7122 |
> |
char fftwnd_one (); |
7123 |
> |
#ifdef FC_DUMMY_MAIN |
7124 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7125 |
> |
# ifdef __cplusplus |
7126 |
> |
extern "C" |
7127 |
> |
# endif |
7128 |
> |
int FC_DUMMY_MAIN() { return 1; } |
7129 |
> |
#endif |
7130 |
> |
#endif |
7131 |
|
int |
7132 |
|
main () |
7133 |
|
{ |
7134 |
< |
MPI_Init (); |
7134 |
> |
return fftwnd_one (); |
7135 |
|
; |
7136 |
|
return 0; |
7137 |
|
} |
7138 |
|
_ACEOF |
7139 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
7140 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7141 |
< |
(eval $ac_link) 2>conftest.er1 |
7139 |
> |
rm -rf conftest.$ac_objext conftest$ac_exeext |
7140 |
> |
if { (ac_try="$ac_link" |
7141 |
> |
case "(($ac_try" in |
7142 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7143 |
> |
*) ac_try_echo=$ac_try;; |
7144 |
> |
esac |
7145 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7146 |
> |
(eval "$ac_link") 2>conftest.er1 |
7147 |
|
ac_status=$? |
7148 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
7149 |
|
rm -f conftest.er1 |
7150 |
|
cat conftest.err >&5 |
7151 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7152 |
< |
(exit $ac_status); } && |
7153 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
7154 |
< |
|| test ! -s conftest.err' |
7155 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7156 |
< |
(eval $ac_try) 2>&5 |
7157 |
< |
ac_status=$? |
7040 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7041 |
< |
(exit $ac_status); }; } && |
7042 |
< |
{ ac_try='test -s conftest$ac_exeext' |
7043 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7044 |
< |
(eval $ac_try) 2>&5 |
7045 |
< |
ac_status=$? |
7046 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7047 |
< |
(exit $ac_status); }; }; then |
7048 |
< |
ac_cv_lib_mpi_MPI_Init=yes |
7152 |
> |
(exit $ac_status); } && { |
7153 |
> |
test -z "$ac_c_werror_flag" || |
7154 |
> |
test ! -s conftest.err |
7155 |
> |
} && test -s conftest$ac_exeext && |
7156 |
> |
$as_test_x conftest$ac_exeext; then |
7157 |
> |
ac_cv_lib_fftw_fftwnd_one=yes |
7158 |
|
else |
7159 |
|
echo "$as_me: failed program was:" >&5 |
7160 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7161 |
|
|
7162 |
< |
ac_cv_lib_mpi_MPI_Init=no |
7162 |
> |
ac_cv_lib_fftw_fftwnd_one=no |
7163 |
|
fi |
7164 |
< |
rm -f conftest.err conftest.$ac_objext \ |
7164 |
> |
|
7165 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7166 |
|
conftest$ac_exeext conftest.$ac_ext |
7167 |
|
LIBS=$ac_check_lib_save_LIBS |
7168 |
|
fi |
7169 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
7170 |
< |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
7171 |
< |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
7172 |
< |
MPI_LIB="-lmpi -llam -lpthread" |
7169 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftwnd_one" >&5 |
7170 |
> |
echo "${ECHO_T}$ac_cv_lib_fftw_fftwnd_one" >&6; } |
7171 |
> |
if test $ac_cv_lib_fftw_fftwnd_one = yes; then |
7172 |
> |
fftw_cv_libfftw=yes |
7173 |
|
else |
7174 |
< |
|
7065 |
< |
{ { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5 |
7066 |
< |
echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;} |
7067 |
< |
{ (exit 1); exit 1; }; } |
7068 |
< |
USE_MPI="no" |
7069 |
< |
|
7174 |
> |
fftw_cv_libfftw=no |
7175 |
|
fi |
7176 |
|
|
7177 |
+ |
if test "${ac_cv_header_fftw_h+set}" = set; then |
7178 |
+ |
{ echo "$as_me:$LINENO: checking for fftw.h" >&5 |
7179 |
+ |
echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6; } |
7180 |
+ |
if test "${ac_cv_header_fftw_h+set}" = set; then |
7181 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7182 |
|
fi |
7183 |
< |
|
7184 |
< |
|
7075 |
< |
|
7076 |
< |
echo "$as_me:$LINENO: checking for MPI Fortran library" >&5 |
7077 |
< |
echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6 |
7078 |
< |
MPI_F90_LIB="" |
7079 |
< |
if test -f "$MPI_LIB_DIR/libfmpich.a" ; then |
7080 |
< |
MPI_F90_LIB="-lfmpich" |
7081 |
< |
elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then |
7082 |
< |
MPI_F90_LIB="-llamf77mpi" |
7183 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5 |
7184 |
> |
echo "${ECHO_T}$ac_cv_header_fftw_h" >&6; } |
7185 |
|
else |
7186 |
< |
MPI_F90_LIB=" " |
7187 |
< |
fi |
7188 |
< |
echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5 |
7189 |
< |
echo "${ECHO_T}found $MPI_F90_LIB" >&6 |
7186 |
> |
# Is the header compilable? |
7187 |
> |
{ echo "$as_me:$LINENO: checking fftw.h usability" >&5 |
7188 |
> |
echo $ECHO_N "checking fftw.h usability... $ECHO_C" >&6; } |
7189 |
> |
cat >conftest.$ac_ext <<_ACEOF |
7190 |
> |
/* confdefs.h. */ |
7191 |
> |
_ACEOF |
7192 |
> |
cat confdefs.h >>conftest.$ac_ext |
7193 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
7194 |
> |
/* end confdefs.h. */ |
7195 |
> |
$ac_includes_default |
7196 |
> |
#include <fftw.h> |
7197 |
> |
_ACEOF |
7198 |
> |
rm -rf conftest.$ac_objext |
7199 |
> |
if { (ac_try="$ac_compile" |
7200 |
> |
case "(($ac_try" in |
7201 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7202 |
> |
*) ac_try_echo=$ac_try;; |
7203 |
> |
esac |
7204 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7205 |
> |
(eval "$ac_compile") 2>conftest.er1 |
7206 |
> |
ac_status=$? |
7207 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
7208 |
> |
rm -f conftest.er1 |
7209 |
> |
cat conftest.err >&5 |
7210 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7211 |
> |
(exit $ac_status); } && { |
7212 |
> |
test -z "$ac_c_werror_flag" || |
7213 |
> |
test ! -s conftest.err |
7214 |
> |
} && test -s conftest.$ac_objext; then |
7215 |
> |
ac_header_compiler=yes |
7216 |
> |
else |
7217 |
> |
echo "$as_me: failed program was:" >&5 |
7218 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
7219 |
|
|
7220 |
< |
|
7220 |
> |
ac_header_compiler=no |
7221 |
|
fi |
7222 |
|
|
7223 |
+ |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
7224 |
+ |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7225 |
+ |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
7226 |
|
|
7227 |
< |
|
7228 |
< |
# Check whether --with-sprng or --without-sprng was given. |
7229 |
< |
if test "${with_sprng+set}" = set; then |
7230 |
< |
withval="$with_sprng" |
7231 |
< |
with_sprng=$withval |
7227 |
> |
# Is the header present? |
7228 |
> |
{ echo "$as_me:$LINENO: checking fftw.h presence" >&5 |
7229 |
> |
echo $ECHO_N "checking fftw.h presence... $ECHO_C" >&6; } |
7230 |
> |
cat >conftest.$ac_ext <<_ACEOF |
7231 |
> |
/* confdefs.h. */ |
7232 |
> |
_ACEOF |
7233 |
> |
cat confdefs.h >>conftest.$ac_ext |
7234 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
7235 |
> |
/* end confdefs.h. */ |
7236 |
> |
#include <fftw.h> |
7237 |
> |
_ACEOF |
7238 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
7239 |
> |
case "(($ac_try" in |
7240 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7241 |
> |
*) ac_try_echo=$ac_try;; |
7242 |
> |
esac |
7243 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7244 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7245 |
> |
ac_status=$? |
7246 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
7247 |
> |
rm -f conftest.er1 |
7248 |
> |
cat conftest.err >&5 |
7249 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7250 |
> |
(exit $ac_status); } >/dev/null && { |
7251 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
7252 |
> |
test ! -s conftest.err |
7253 |
> |
}; then |
7254 |
> |
ac_header_preproc=yes |
7255 |
|
else |
7256 |
< |
with_sprng="/usr/local" |
7257 |
< |
fi; |
7256 |
> |
echo "$as_me: failed program was:" >&5 |
7257 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
7258 |
|
|
7259 |
< |
case "x$with_sprng" in |
7103 |
< |
xyes | "x") USE_SPRNG=yes;; |
7104 |
< |
xno) USE_SPRNG=no ;; |
7105 |
< |
*) SPRNG="$with_sprng"; USE_SPRNG=yes ;; |
7106 |
< |
esac |
7107 |
< |
if test "$USE_SPRNG" = "yes" -a -z "$with_sprng"; then |
7108 |
< |
SPRNG="/usr/local" |
7259 |
> |
ac_header_preproc=no |
7260 |
|
fi |
7110 |
– |
if test "$USE_SPRNG" = "yes"; then |
7261 |
|
|
7262 |
+ |
rm -rf conftest.err conftest.$ac_ext |
7263 |
+ |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7264 |
+ |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
7265 |
|
|
7266 |
< |
# Set variables... |
7267 |
< |
SPRNG_LIB_DIR="$SPRNG/lib" |
7268 |
< |
SPRNG_INC_DIR="$SPRNG/include" |
7269 |
< |
|
7270 |
< |
|
7271 |
< |
|
7272 |
< |
echo "$as_me:$LINENO: checking for sprng.h" >&5 |
7273 |
< |
echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6 |
7274 |
< |
have_sprng_h=0 |
7275 |
< |
echo '#include <sprng.h>' > conftest.cc |
7276 |
< |
if test -z "`${CXX} -I${SPRNG_INC_DIR} -c conftest.cc 2>&1`"; then |
7277 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
7278 |
< |
echo "${ECHO_T}yes" >&6 |
7279 |
< |
have_sprng_h=1 |
7280 |
< |
else |
7281 |
< |
echo "$as_me:$LINENO: result: no! Check SPRNG include path!" >&5 |
7282 |
< |
echo "${ECHO_T}no! Check SPRNG include path!" >&6 |
7283 |
< |
USE_SPRNG="no" |
7284 |
< |
fi |
7285 |
< |
rm -f conftest* |
7286 |
< |
if test "$have_sprng_h" = 1; then |
7287 |
< |
|
7288 |
< |
cat >>confdefs.h <<\_ACEOF |
7289 |
< |
#define HAVE_SPRNG_H 1 |
7290 |
< |
_ACEOF |
7266 |
> |
# So? What about this header? |
7267 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7268 |
> |
yes:no: ) |
7269 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
7270 |
> |
echo "$as_me: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
7271 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the compiler's result" >&5 |
7272 |
> |
echo "$as_me: WARNING: fftw.h: proceeding with the compiler's result" >&2;} |
7273 |
> |
ac_header_preproc=yes |
7274 |
> |
;; |
7275 |
> |
no:yes:* ) |
7276 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw.h: present but cannot be compiled" >&5 |
7277 |
> |
echo "$as_me: WARNING: fftw.h: present but cannot be compiled" >&2;} |
7278 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw.h: check for missing prerequisite headers?" >&5 |
7279 |
> |
echo "$as_me: WARNING: fftw.h: check for missing prerequisite headers?" >&2;} |
7280 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw.h: see the Autoconf documentation" >&5 |
7281 |
> |
echo "$as_me: WARNING: fftw.h: see the Autoconf documentation" >&2;} |
7282 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw.h: section \"Present But Cannot Be Compiled\"" >&5 |
7283 |
> |
echo "$as_me: WARNING: fftw.h: section \"Present But Cannot Be Compiled\"" >&2;} |
7284 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the preprocessor's result" >&5 |
7285 |
> |
echo "$as_me: WARNING: fftw.h: proceeding with the preprocessor's result" >&2;} |
7286 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw.h: in the future, the compiler will take precedence" >&5 |
7287 |
> |
echo "$as_me: WARNING: fftw.h: in the future, the compiler will take precedence" >&2;} |
7288 |
> |
( cat <<\_ASBOX |
7289 |
> |
## ------------------------------ ## |
7290 |
> |
## Report this to gezelter@nd.edu ## |
7291 |
> |
## ------------------------------ ## |
7292 |
> |
_ASBOX |
7293 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
7294 |
> |
;; |
7295 |
> |
esac |
7296 |
> |
{ echo "$as_me:$LINENO: checking for fftw.h" >&5 |
7297 |
> |
echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6; } |
7298 |
> |
if test "${ac_cv_header_fftw_h+set}" = set; then |
7299 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7300 |
> |
else |
7301 |
> |
ac_cv_header_fftw_h=$ac_header_preproc |
7302 |
> |
fi |
7303 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5 |
7304 |
> |
echo "${ECHO_T}$ac_cv_header_fftw_h" >&6; } |
7305 |
|
|
7306 |
|
fi |
7307 |
+ |
if test $ac_cv_header_fftw_h = yes; then |
7308 |
+ |
fftw_cv_fftw_h=yes |
7309 |
+ |
else |
7310 |
+ |
fftw_cv_fftw_h=no |
7311 |
+ |
fi |
7312 |
|
|
7141 |
– |
ac_ext=c |
7142 |
– |
ac_cpp='$CPP $CPPFLAGS' |
7143 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7144 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7145 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7313 |
|
|
7314 |
< |
ac_save_LDFLAGS=$LDFLAGS |
7315 |
< |
LDFLAGS="${LDFLAGS} -L${SPRNG_LIB_DIR} " |
7316 |
< |
|
7317 |
< |
echo "$as_me:$LINENO: checking for init_rng in -lsprng" >&5 |
7151 |
< |
echo $ECHO_N "checking for init_rng in -lsprng... $ECHO_C" >&6 |
7152 |
< |
if test "${ac_cv_lib_sprng_init_rng+set}" = set; then |
7314 |
> |
if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then |
7315 |
> |
{ echo "$as_me:$LINENO: checking for fftwnd_one in -ldfftw" >&5 |
7316 |
> |
echo $ECHO_N "checking for fftwnd_one in -ldfftw... $ECHO_C" >&6; } |
7317 |
> |
if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then |
7318 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7319 |
|
else |
7320 |
|
ac_check_lib_save_LIBS=$LIBS |
7321 |
< |
LIBS="-lsprng $LIBS" |
7321 |
> |
LIBS="-ldfftw $LIBS" |
7322 |
|
cat >conftest.$ac_ext <<_ACEOF |
7323 |
|
/* confdefs.h. */ |
7324 |
|
_ACEOF |
7326 |
|
cat >>conftest.$ac_ext <<_ACEOF |
7327 |
|
/* end confdefs.h. */ |
7328 |
|
|
7329 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
7329 |
> |
/* Override any GCC internal prototype to avoid an error. |
7330 |
> |
Use char because int might match the return type of a GCC |
7331 |
> |
builtin and then its argument prototype would still apply. */ |
7332 |
|
#ifdef __cplusplus |
7333 |
|
extern "C" |
7334 |
|
#endif |
7335 |
< |
/* We use char because int might match the return type of a gcc2 |
7336 |
< |
builtin and then its argument prototype would still apply. */ |
7337 |
< |
char init_rng (); |
7335 |
> |
char fftwnd_one (); |
7336 |
> |
#ifdef FC_DUMMY_MAIN |
7337 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7338 |
> |
# ifdef __cplusplus |
7339 |
> |
extern "C" |
7340 |
> |
# endif |
7341 |
> |
int FC_DUMMY_MAIN() { return 1; } |
7342 |
> |
#endif |
7343 |
> |
#endif |
7344 |
|
int |
7345 |
|
main () |
7346 |
|
{ |
7347 |
< |
init_rng (); |
7347 |
> |
return fftwnd_one (); |
7348 |
|
; |
7349 |
|
return 0; |
7350 |
|
} |
7351 |
|
_ACEOF |
7352 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
7353 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7354 |
< |
(eval $ac_link) 2>conftest.er1 |
7352 |
> |
rm -rf conftest.$ac_objext conftest$ac_exeext |
7353 |
> |
if { (ac_try="$ac_link" |
7354 |
> |
case "(($ac_try" in |
7355 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7356 |
> |
*) ac_try_echo=$ac_try;; |
7357 |
> |
esac |
7358 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7359 |
> |
(eval "$ac_link") 2>conftest.er1 |
7360 |
|
ac_status=$? |
7361 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
7362 |
|
rm -f conftest.er1 |
7363 |
|
cat conftest.err >&5 |
7364 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7365 |
< |
(exit $ac_status); } && |
7366 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
7367 |
< |
|| test ! -s conftest.err' |
7368 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7369 |
< |
(eval $ac_try) 2>&5 |
7370 |
< |
ac_status=$? |
7193 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7194 |
< |
(exit $ac_status); }; } && |
7195 |
< |
{ ac_try='test -s conftest$ac_exeext' |
7196 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7197 |
< |
(eval $ac_try) 2>&5 |
7198 |
< |
ac_status=$? |
7199 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7200 |
< |
(exit $ac_status); }; }; then |
7201 |
< |
ac_cv_lib_sprng_init_rng=yes |
7365 |
> |
(exit $ac_status); } && { |
7366 |
> |
test -z "$ac_c_werror_flag" || |
7367 |
> |
test ! -s conftest.err |
7368 |
> |
} && test -s conftest$ac_exeext && |
7369 |
> |
$as_test_x conftest$ac_exeext; then |
7370 |
> |
ac_cv_lib_dfftw_fftwnd_one=yes |
7371 |
|
else |
7372 |
|
echo "$as_me: failed program was:" >&5 |
7373 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7374 |
|
|
7375 |
< |
ac_cv_lib_sprng_init_rng=no |
7375 |
> |
ac_cv_lib_dfftw_fftwnd_one=no |
7376 |
|
fi |
7377 |
< |
rm -f conftest.err conftest.$ac_objext \ |
7377 |
> |
|
7378 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7379 |
|
conftest$ac_exeext conftest.$ac_ext |
7380 |
|
LIBS=$ac_check_lib_save_LIBS |
7381 |
|
fi |
7382 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5 |
7383 |
< |
echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6 |
7384 |
< |
if test $ac_cv_lib_sprng_init_rng = yes; then |
7385 |
< |
SPRNG_LIB="-lsprng" |
7382 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dfftw_fftwnd_one" >&5 |
7383 |
> |
echo "${ECHO_T}$ac_cv_lib_dfftw_fftwnd_one" >&6; } |
7384 |
> |
if test $ac_cv_lib_dfftw_fftwnd_one = yes; then |
7385 |
> |
fftw_cv_libdfftw=yes |
7386 |
|
else |
7387 |
< |
|
7218 |
< |
{ { echo "$as_me:$LINENO: error: Didn't find libsprng; check path for SPRNG package first..." >&5 |
7219 |
< |
echo "$as_me: error: Didn't find libsprng; check path for SPRNG package first..." >&2;} |
7220 |
< |
{ (exit 1); exit 1; }; } |
7221 |
< |
USE_SPRNG="no" |
7222 |
< |
|
7387 |
> |
fftw_cv_libdfftw=no |
7388 |
|
fi |
7389 |
|
|
7390 |
< |
|
7391 |
< |
if test "$USE_SPRNG" = "no"; then |
7392 |
< |
{ { echo "$as_me:$LINENO: error: No working SPRNG library found" >&5 |
7393 |
< |
echo "$as_me: error: No working SPRNG library found" >&2;} |
7229 |
< |
{ (exit 1); exit 1; }; } |
7230 |
< |
fi |
7231 |
< |
|
7232 |
< |
|
7233 |
< |
fi |
7234 |
< |
|
7235 |
< |
|
7236 |
< |
|
7237 |
< |
echo "$as_me:$LINENO: checking if MKL is wanted" >&5 |
7238 |
< |
echo $ECHO_N "checking if MKL is wanted... $ECHO_C" >&6 |
7239 |
< |
|
7240 |
< |
# Check whether --with-mkl or --without-mkl was given. |
7241 |
< |
if test "${with_mkl+set}" = set; then |
7242 |
< |
withval="$with_mkl" |
7243 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
7244 |
< |
echo "${ECHO_T}yes" >&6 |
7245 |
< |
for dir in $withval /usr/local/intel/mkl61 /opt/intel/mkl61; do |
7246 |
< |
mkldir="$dir" |
7247 |
< |
if test -f "$dir/include/mkl.h"; then |
7248 |
< |
found_mkl="yes"; |
7249 |
< |
break; |
7250 |
< |
fi |
7251 |
< |
done |
7252 |
< |
if test x_$found_mkl != x_yes; then |
7253 |
< |
{ { echo "$as_me:$LINENO: error: Cannot find MKL includes" >&5 |
7254 |
< |
echo "$as_me: error: Cannot find MKL includes" >&2;} |
7255 |
< |
{ (exit 1); exit 1; }; } |
7256 |
< |
else |
7257 |
< |
printf "MKL includes found in $mkldir/include\n"; |
7258 |
< |
fi |
7259 |
< |
|
7260 |
< |
|
7261 |
< |
|
7262 |
< |
ac_ext=c |
7263 |
< |
ac_cpp='$CPP $CPPFLAGS' |
7264 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7265 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7266 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7267 |
< |
|
7268 |
< |
ac_save_CPPFLAGS=$CPPFLAGS |
7269 |
< |
CPPFLAGS="${CPPFLAGS} -I${mkldir}/include" |
7270 |
< |
ac_save_LDFLAGS=$LDFLAGS |
7271 |
< |
LDFLAGS="${LDFLAGS} -L${mkldir}/lib/32 -lmkl -lvml -lguide" |
7272 |
< |
if test "${ac_cv_header_mkl_h+set}" = set; then |
7273 |
< |
echo "$as_me:$LINENO: checking for mkl.h" >&5 |
7274 |
< |
echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6 |
7275 |
< |
if test "${ac_cv_header_mkl_h+set}" = set; then |
7390 |
> |
if test "${ac_cv_header_dfftw_h+set}" = set; then |
7391 |
> |
{ echo "$as_me:$LINENO: checking for dfftw.h" >&5 |
7392 |
> |
echo $ECHO_N "checking for dfftw.h... $ECHO_C" >&6; } |
7393 |
> |
if test "${ac_cv_header_dfftw_h+set}" = set; then |
7394 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7395 |
|
fi |
7396 |
< |
echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5 |
7397 |
< |
echo "${ECHO_T}$ac_cv_header_mkl_h" >&6 |
7396 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5 |
7397 |
> |
echo "${ECHO_T}$ac_cv_header_dfftw_h" >&6; } |
7398 |
|
else |
7399 |
|
# Is the header compilable? |
7400 |
< |
echo "$as_me:$LINENO: checking mkl.h usability" >&5 |
7401 |
< |
echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6 |
7400 |
> |
{ echo "$as_me:$LINENO: checking dfftw.h usability" >&5 |
7401 |
> |
echo $ECHO_N "checking dfftw.h usability... $ECHO_C" >&6; } |
7402 |
|
cat >conftest.$ac_ext <<_ACEOF |
7403 |
|
/* confdefs.h. */ |
7404 |
|
_ACEOF |
7406 |
|
cat >>conftest.$ac_ext <<_ACEOF |
7407 |
|
/* end confdefs.h. */ |
7408 |
|
$ac_includes_default |
7409 |
< |
#include <mkl.h> |
7409 |
> |
#include <dfftw.h> |
7410 |
|
_ACEOF |
7411 |
< |
rm -f conftest.$ac_objext |
7412 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7413 |
< |
(eval $ac_compile) 2>conftest.er1 |
7411 |
> |
rm -rf conftest.$ac_objext |
7412 |
> |
if { (ac_try="$ac_compile" |
7413 |
> |
case "(($ac_try" in |
7414 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7415 |
> |
*) ac_try_echo=$ac_try;; |
7416 |
> |
esac |
7417 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7418 |
> |
(eval "$ac_compile") 2>conftest.er1 |
7419 |
|
ac_status=$? |
7420 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
7421 |
|
rm -f conftest.er1 |
7422 |
|
cat conftest.err >&5 |
7423 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7424 |
< |
(exit $ac_status); } && |
7425 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
7426 |
< |
|| test ! -s conftest.err' |
7427 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7305 |
< |
(eval $ac_try) 2>&5 |
7306 |
< |
ac_status=$? |
7307 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7308 |
< |
(exit $ac_status); }; } && |
7309 |
< |
{ ac_try='test -s conftest.$ac_objext' |
7310 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7311 |
< |
(eval $ac_try) 2>&5 |
7312 |
< |
ac_status=$? |
7313 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7314 |
< |
(exit $ac_status); }; }; then |
7424 |
> |
(exit $ac_status); } && { |
7425 |
> |
test -z "$ac_c_werror_flag" || |
7426 |
> |
test ! -s conftest.err |
7427 |
> |
} && test -s conftest.$ac_objext; then |
7428 |
|
ac_header_compiler=yes |
7429 |
|
else |
7430 |
|
echo "$as_me: failed program was:" >&5 |
7431 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7432 |
|
|
7433 |
< |
ac_header_compiler=no |
7433 |
> |
ac_header_compiler=no |
7434 |
|
fi |
7322 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7323 |
– |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7324 |
– |
echo "${ECHO_T}$ac_header_compiler" >&6 |
7435 |
|
|
7436 |
+ |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
7437 |
+ |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7438 |
+ |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
7439 |
+ |
|
7440 |
|
# Is the header present? |
7441 |
< |
echo "$as_me:$LINENO: checking mkl.h presence" >&5 |
7442 |
< |
echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6 |
7441 |
> |
{ echo "$as_me:$LINENO: checking dfftw.h presence" >&5 |
7442 |
> |
echo $ECHO_N "checking dfftw.h presence... $ECHO_C" >&6; } |
7443 |
|
cat >conftest.$ac_ext <<_ACEOF |
7444 |
|
/* confdefs.h. */ |
7445 |
|
_ACEOF |
7446 |
|
cat confdefs.h >>conftest.$ac_ext |
7447 |
|
cat >>conftest.$ac_ext <<_ACEOF |
7448 |
|
/* end confdefs.h. */ |
7449 |
< |
#include <mkl.h> |
7449 |
> |
#include <dfftw.h> |
7450 |
|
_ACEOF |
7451 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
7452 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7451 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
7452 |
> |
case "(($ac_try" in |
7453 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7454 |
> |
*) ac_try_echo=$ac_try;; |
7455 |
> |
esac |
7456 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7457 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7458 |
|
ac_status=$? |
7459 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
7460 |
|
rm -f conftest.er1 |
7461 |
|
cat conftest.err >&5 |
7462 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7463 |
< |
(exit $ac_status); } >/dev/null; then |
7464 |
< |
if test -s conftest.err; then |
7465 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
7466 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
7348 |
< |
else |
7349 |
< |
ac_cpp_err= |
7350 |
< |
fi |
7351 |
< |
else |
7352 |
< |
ac_cpp_err=yes |
7353 |
< |
fi |
7354 |
< |
if test -z "$ac_cpp_err"; then |
7463 |
> |
(exit $ac_status); } >/dev/null && { |
7464 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
7465 |
> |
test ! -s conftest.err |
7466 |
> |
}; then |
7467 |
|
ac_header_preproc=yes |
7468 |
|
else |
7469 |
|
echo "$as_me: failed program was:" >&5 |
7471 |
|
|
7472 |
|
ac_header_preproc=no |
7473 |
|
fi |
7362 |
– |
rm -f conftest.err conftest.$ac_ext |
7363 |
– |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7364 |
– |
echo "${ECHO_T}$ac_header_preproc" >&6 |
7474 |
|
|
7475 |
+ |
rm -rf conftest.err conftest.$ac_ext |
7476 |
+ |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7477 |
+ |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
7478 |
+ |
|
7479 |
|
# So? What about this header? |
7480 |
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7481 |
|
yes:no: ) |
7482 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
7483 |
< |
echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
7484 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the compiler's result" >&5 |
7485 |
< |
echo "$as_me: WARNING: mkl.h: proceeding with the compiler's result" >&2;} |
7482 |
> |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
7483 |
> |
echo "$as_me: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
7484 |
> |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the compiler's result" >&5 |
7485 |
> |
echo "$as_me: WARNING: dfftw.h: proceeding with the compiler's result" >&2;} |
7486 |
|
ac_header_preproc=yes |
7487 |
|
;; |
7488 |
|
no:yes:* ) |
7489 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5 |
7490 |
< |
echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;} |
7491 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: check for missing prerequisite headers?" >&5 |
7492 |
< |
echo "$as_me: WARNING: mkl.h: check for missing prerequisite headers?" >&2;} |
7493 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: see the Autoconf documentation" >&5 |
7494 |
< |
echo "$as_me: WARNING: mkl.h: see the Autoconf documentation" >&2;} |
7495 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: section \"Present But Cannot Be Compiled\"" >&5 |
7496 |
< |
echo "$as_me: WARNING: mkl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
7497 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5 |
7498 |
< |
echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;} |
7499 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: in the future, the compiler will take precedence" >&5 |
7500 |
< |
echo "$as_me: WARNING: mkl.h: in the future, the compiler will take precedence" >&2;} |
7501 |
< |
( |
7389 |
< |
cat <<\_ASBOX |
7489 |
> |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: present but cannot be compiled" >&5 |
7490 |
> |
echo "$as_me: WARNING: dfftw.h: present but cannot be compiled" >&2;} |
7491 |
> |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: check for missing prerequisite headers?" >&5 |
7492 |
> |
echo "$as_me: WARNING: dfftw.h: check for missing prerequisite headers?" >&2;} |
7493 |
> |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: see the Autoconf documentation" >&5 |
7494 |
> |
echo "$as_me: WARNING: dfftw.h: see the Autoconf documentation" >&2;} |
7495 |
> |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: section \"Present But Cannot Be Compiled\"" >&5 |
7496 |
> |
echo "$as_me: WARNING: dfftw.h: section \"Present But Cannot Be Compiled\"" >&2;} |
7497 |
> |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the preprocessor's result" >&5 |
7498 |
> |
echo "$as_me: WARNING: dfftw.h: proceeding with the preprocessor's result" >&2;} |
7499 |
> |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: in the future, the compiler will take precedence" >&5 |
7500 |
> |
echo "$as_me: WARNING: dfftw.h: in the future, the compiler will take precedence" >&2;} |
7501 |
> |
( cat <<\_ASBOX |
7502 |
|
## ------------------------------ ## |
7503 |
|
## Report this to gezelter@nd.edu ## |
7504 |
|
## ------------------------------ ## |
7505 |
|
_ASBOX |
7506 |
< |
) | |
7395 |
< |
sed "s/^/$as_me: WARNING: /" >&2 |
7506 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
7507 |
|
;; |
7508 |
|
esac |
7509 |
< |
echo "$as_me:$LINENO: checking for mkl.h" >&5 |
7510 |
< |
echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6 |
7511 |
< |
if test "${ac_cv_header_mkl_h+set}" = set; then |
7509 |
> |
{ echo "$as_me:$LINENO: checking for dfftw.h" >&5 |
7510 |
> |
echo $ECHO_N "checking for dfftw.h... $ECHO_C" >&6; } |
7511 |
> |
if test "${ac_cv_header_dfftw_h+set}" = set; then |
7512 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7513 |
|
else |
7514 |
< |
ac_cv_header_mkl_h=$ac_header_preproc |
7514 |
> |
ac_cv_header_dfftw_h=$ac_header_preproc |
7515 |
|
fi |
7516 |
< |
echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5 |
7517 |
< |
echo "${ECHO_T}$ac_cv_header_mkl_h" >&6 |
7516 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5 |
7517 |
> |
echo "${ECHO_T}$ac_cv_header_dfftw_h" >&6; } |
7518 |
|
|
7519 |
|
fi |
7520 |
< |
if test $ac_cv_header_mkl_h = yes; then |
7520 |
> |
if test $ac_cv_header_dfftw_h = yes; then |
7521 |
> |
fftw_cv_dfftw_h=yes |
7522 |
> |
else |
7523 |
> |
fftw_cv_dfftw_h=no |
7524 |
> |
fi |
7525 |
|
|
7526 |
< |
echo "$as_me:$LINENO: checking for vslNewStream in -lmkl" >&5 |
7527 |
< |
echo $ECHO_N "checking for vslNewStream in -lmkl... $ECHO_C" >&6 |
7528 |
< |
if test "${ac_cv_lib_mkl_vslNewStream+set}" = set; then |
7526 |
> |
|
7527 |
> |
fi |
7528 |
> |
fi |
7529 |
> |
ac_ext=c |
7530 |
> |
ac_cpp='$CPP $CPPFLAGS' |
7531 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7532 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7533 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7534 |
> |
|
7535 |
> |
if test "$fftw_cv_libfftw3" = "yes" -a "$fftw_cv_fftw3_h" = "yes"; then |
7536 |
> |
|
7537 |
> |
cat >>confdefs.h <<\_ACEOF |
7538 |
> |
#define HAVE_FFTW3_H 1 |
7539 |
> |
_ACEOF |
7540 |
> |
|
7541 |
> |
FFTW_INC_DIR="${FFTW_HOME}/include" |
7542 |
> |
FFTW_LIB_DIR="${FFTW_HOME}/lib" |
7543 |
> |
FFTW_LIBS="-lfftw3" |
7544 |
> |
else |
7545 |
> |
if test "$fftw_cv_libfftw" = "yes" -a "$fftw_cv_fftw_h" = "yes"; then |
7546 |
> |
|
7547 |
> |
cat >>confdefs.h <<\_ACEOF |
7548 |
> |
#define HAVE_FFTW_H 1 |
7549 |
> |
_ACEOF |
7550 |
> |
|
7551 |
> |
FFTW_INC_DIR="${FFTW_HOME}/include" |
7552 |
> |
FFTW_LIB_DIR="${FFTW_HOME}/lib" |
7553 |
> |
FFTW_LIBS="-lfftw" |
7554 |
> |
else |
7555 |
> |
if test "$fftw_cv_libdfftw" = "yes" -a "$fftw_cv_dfftw_h" = "yes"; then |
7556 |
> |
|
7557 |
> |
cat >>confdefs.h <<\_ACEOF |
7558 |
> |
#define HAVE_DFFTW_H 1 |
7559 |
> |
_ACEOF |
7560 |
> |
|
7561 |
> |
FFTW_INC_DIR="${FFTW_HOME}/include" |
7562 |
> |
FFTW_LIB_DIR="${FFTW_HOME}/lib" |
7563 |
> |
FFTW_LIBS="-ldfftw" |
7564 |
> |
else |
7565 |
> |
{ echo "$as_me:$LINENO: checking fftw in ${FFTW_HOME}" >&5 |
7566 |
> |
echo $ECHO_N "checking fftw in ${FFTW_HOME}... $ECHO_C" >&6; } |
7567 |
> |
FFTW_INC_DIR= |
7568 |
> |
FFTW_LIB_DIR= |
7569 |
> |
FFTW_LIBS= |
7570 |
> |
LDFLAGS="$FFTW_OLD_LDFLAGS" |
7571 |
> |
CPPFLAGS="$FFTW_OLD_CPPFLAGS" |
7572 |
> |
{ echo "$as_me:$LINENO: result: failed" >&5 |
7573 |
> |
echo "${ECHO_T}failed" >&6; } |
7574 |
> |
echo "" |
7575 |
> |
echo "*********************************************************" |
7576 |
> |
echo "* WARNING: Could not find a working FFTW installation *" |
7577 |
> |
echo "* If you need the staticProps program to be able to *" |
7578 |
> |
echo "* compute undulation spectra, be sure to specify a *" |
7579 |
> |
echo "* valid fftw installation with --with-fftw=DIR *" |
7580 |
> |
echo "* *" |
7581 |
> |
echo "* OOPSE will still work without fftw installed. *" |
7582 |
> |
echo "*********************************************************" |
7583 |
> |
echo "" |
7584 |
> |
fi |
7585 |
> |
fi |
7586 |
> |
fi |
7587 |
> |
|
7588 |
> |
|
7589 |
> |
|
7590 |
> |
fi |
7591 |
> |
fi |
7592 |
> |
fi |
7593 |
> |
|
7594 |
> |
|
7595 |
> |
|
7596 |
> |
# Checks for header files. |
7597 |
> |
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
7598 |
> |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
7599 |
> |
if test "${ac_cv_header_stdc+set}" = set; then |
7600 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7601 |
|
else |
7602 |
< |
ac_check_lib_save_LIBS=$LIBS |
7417 |
< |
LIBS="-lmkl $LIBS" |
7418 |
< |
cat >conftest.$ac_ext <<_ACEOF |
7602 |
> |
cat >conftest.$ac_ext <<_ACEOF |
7603 |
|
/* confdefs.h. */ |
7604 |
|
_ACEOF |
7605 |
|
cat confdefs.h >>conftest.$ac_ext |
7606 |
|
cat >>conftest.$ac_ext <<_ACEOF |
7607 |
|
/* end confdefs.h. */ |
7608 |
+ |
#include <stdlib.h> |
7609 |
+ |
#include <stdarg.h> |
7610 |
+ |
#include <string.h> |
7611 |
+ |
#include <float.h> |
7612 |
|
|
7613 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
7614 |
< |
#ifdef __cplusplus |
7615 |
< |
extern "C" |
7613 |
> |
#ifdef FC_DUMMY_MAIN |
7614 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7615 |
> |
# ifdef __cplusplus |
7616 |
> |
extern "C" |
7617 |
> |
# endif |
7618 |
> |
int FC_DUMMY_MAIN() { return 1; } |
7619 |
|
#endif |
7620 |
< |
/* We use char because int might match the return type of a gcc2 |
7430 |
< |
builtin and then its argument prototype would still apply. */ |
7431 |
< |
char vslNewStream (); |
7620 |
> |
#endif |
7621 |
|
int |
7622 |
|
main () |
7623 |
|
{ |
7624 |
< |
vslNewStream (); |
7624 |
> |
|
7625 |
|
; |
7626 |
|
return 0; |
7627 |
|
} |
7628 |
|
_ACEOF |
7629 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
7630 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7631 |
< |
(eval $ac_link) 2>conftest.er1 |
7629 |
> |
rm -rf conftest.$ac_objext |
7630 |
> |
if { (ac_try="$ac_compile" |
7631 |
> |
case "(($ac_try" in |
7632 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7633 |
> |
*) ac_try_echo=$ac_try;; |
7634 |
> |
esac |
7635 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7636 |
> |
(eval "$ac_compile") 2>conftest.er1 |
7637 |
|
ac_status=$? |
7638 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
7639 |
|
rm -f conftest.er1 |
7640 |
|
cat conftest.err >&5 |
7641 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7642 |
< |
(exit $ac_status); } && |
7643 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
7644 |
< |
|| test ! -s conftest.err' |
7645 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7646 |
< |
(eval $ac_try) 2>&5 |
7453 |
< |
ac_status=$? |
7454 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7455 |
< |
(exit $ac_status); }; } && |
7456 |
< |
{ ac_try='test -s conftest$ac_exeext' |
7457 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7458 |
< |
(eval $ac_try) 2>&5 |
7459 |
< |
ac_status=$? |
7460 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7461 |
< |
(exit $ac_status); }; }; then |
7462 |
< |
ac_cv_lib_mkl_vslNewStream=yes |
7642 |
> |
(exit $ac_status); } && { |
7643 |
> |
test -z "$ac_c_werror_flag" || |
7644 |
> |
test ! -s conftest.err |
7645 |
> |
} && test -s conftest.$ac_objext; then |
7646 |
> |
ac_cv_header_stdc=yes |
7647 |
|
else |
7648 |
|
echo "$as_me: failed program was:" >&5 |
7649 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7650 |
|
|
7651 |
< |
ac_cv_lib_mkl_vslNewStream=no |
7651 |
> |
ac_cv_header_stdc=no |
7652 |
|
fi |
7653 |
< |
rm -f conftest.err conftest.$ac_objext \ |
7654 |
< |
conftest$ac_exeext conftest.$ac_ext |
7655 |
< |
LIBS=$ac_check_lib_save_LIBS |
7653 |
> |
|
7654 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
7655 |
> |
|
7656 |
> |
if test $ac_cv_header_stdc = yes; then |
7657 |
> |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
7658 |
> |
cat >conftest.$ac_ext <<_ACEOF |
7659 |
> |
/* confdefs.h. */ |
7660 |
> |
_ACEOF |
7661 |
> |
cat confdefs.h >>conftest.$ac_ext |
7662 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
7663 |
> |
/* end confdefs.h. */ |
7664 |
> |
#include <string.h> |
7665 |
> |
|
7666 |
> |
_ACEOF |
7667 |
> |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7668 |
> |
$EGREP "memchr" >/dev/null 2>&1; then |
7669 |
> |
: |
7670 |
> |
else |
7671 |
> |
ac_cv_header_stdc=no |
7672 |
|
fi |
7673 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5 |
7674 |
< |
echo "${ECHO_T}$ac_cv_lib_mkl_vslNewStream" >&6 |
7475 |
< |
if test $ac_cv_lib_mkl_vslNewStream = yes; then |
7476 |
< |
MKL_LIBDIR="${mkldir}/lib/32", |
7477 |
< |
MKL_LIB="-lmkl -lvml -lguide", |
7478 |
< |
HAVE_MKL="yes" |
7673 |
> |
rm -rf conftest* |
7674 |
> |
|
7675 |
|
fi |
7676 |
|
|
7677 |
+ |
if test $ac_cv_header_stdc = yes; then |
7678 |
+ |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
7679 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
7680 |
+ |
/* confdefs.h. */ |
7681 |
+ |
_ACEOF |
7682 |
+ |
cat confdefs.h >>conftest.$ac_ext |
7683 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
7684 |
+ |
/* end confdefs.h. */ |
7685 |
+ |
#include <stdlib.h> |
7686 |
|
|
7687 |
+ |
_ACEOF |
7688 |
+ |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7689 |
+ |
$EGREP "free" >/dev/null 2>&1; then |
7690 |
+ |
: |
7691 |
|
else |
7692 |
< |
MKL_INC="-I${mkldir}/include" |
7692 |
> |
ac_cv_header_stdc=no |
7693 |
|
fi |
7694 |
+ |
rm -rf conftest* |
7695 |
|
|
7696 |
+ |
fi |
7697 |
|
|
7698 |
< |
CPPFLAGS=$ac_save_CPPFLAGS |
7699 |
< |
LDFLAGS=$ac_save_LDFLAGS |
7700 |
< |
ac_ext=c |
7701 |
< |
ac_cpp='$CPP $CPPFLAGS' |
7702 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7703 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7704 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7698 |
> |
if test $ac_cv_header_stdc = yes; then |
7699 |
> |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
7700 |
> |
if test "$cross_compiling" = yes; then |
7701 |
> |
: |
7702 |
> |
else |
7703 |
> |
cat >conftest.$ac_ext <<_ACEOF |
7704 |
> |
/* confdefs.h. */ |
7705 |
> |
_ACEOF |
7706 |
> |
cat confdefs.h >>conftest.$ac_ext |
7707 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
7708 |
> |
/* end confdefs.h. */ |
7709 |
> |
#include <ctype.h> |
7710 |
> |
#include <stdlib.h> |
7711 |
> |
#if ((' ' & 0x0FF) == 0x020) |
7712 |
> |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
7713 |
> |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
7714 |
> |
#else |
7715 |
> |
# define ISLOWER(c) \ |
7716 |
> |
(('a' <= (c) && (c) <= 'i') \ |
7717 |
> |
|| ('j' <= (c) && (c) <= 'r') \ |
7718 |
> |
|| ('s' <= (c) && (c) <= 'z')) |
7719 |
> |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
7720 |
> |
#endif |
7721 |
|
|
7722 |
< |
|
7723 |
< |
if test x_$HAVE_MKL != x_yes; then |
7724 |
< |
{ { echo "$as_me:$LINENO: error: Can't build with MKL" >&5 |
7725 |
< |
echo "$as_me: error: Can't build with MKL" >&2;} |
7726 |
< |
{ (exit 1); exit 1; }; } |
7727 |
< |
fi |
7728 |
< |
|
7729 |
< |
|
7730 |
< |
|
7731 |
< |
|
7732 |
< |
|
7722 |
> |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
7723 |
> |
int |
7724 |
> |
main () |
7725 |
> |
{ |
7726 |
> |
int i; |
7727 |
> |
for (i = 0; i < 256; i++) |
7728 |
> |
if (XOR (islower (i), ISLOWER (i)) |
7729 |
> |
|| toupper (i) != TOUPPER (i)) |
7730 |
> |
return 2; |
7731 |
> |
return 0; |
7732 |
> |
} |
7733 |
> |
_ACEOF |
7734 |
> |
rm -rf conftest$ac_exeext |
7735 |
> |
if { (ac_try="$ac_link" |
7736 |
> |
case "(($ac_try" in |
7737 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7738 |
> |
*) ac_try_echo=$ac_try;; |
7739 |
> |
esac |
7740 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7741 |
> |
(eval "$ac_link") 2>&5 |
7742 |
> |
ac_status=$? |
7743 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7744 |
> |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7745 |
> |
{ (case "(($ac_try" in |
7746 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7747 |
> |
*) ac_try_echo=$ac_try;; |
7748 |
> |
esac |
7749 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7750 |
> |
(eval "$ac_try") 2>&5 |
7751 |
> |
ac_status=$? |
7752 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7753 |
> |
(exit $ac_status); }; }; then |
7754 |
> |
: |
7755 |
|
else |
7756 |
+ |
echo "$as_me: program exited with status $ac_status" >&5 |
7757 |
+ |
echo "$as_me: failed program was:" >&5 |
7758 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
7759 |
|
|
7760 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
7761 |
< |
echo "${ECHO_T}no" >&6 |
7760 |
> |
( exit $ac_status ) |
7761 |
> |
ac_cv_header_stdc=no |
7762 |
> |
fi |
7763 |
> |
rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
7764 |
> |
fi |
7765 |
|
|
7511 |
– |
fi; |
7766 |
|
|
7767 |
+ |
fi |
7768 |
+ |
fi |
7769 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
7770 |
+ |
echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
7771 |
+ |
if test $ac_cv_header_stdc = yes; then |
7772 |
|
|
7773 |
+ |
cat >>confdefs.h <<\_ACEOF |
7774 |
+ |
#define STDC_HEADERS 1 |
7775 |
+ |
_ACEOF |
7776 |
|
|
7777 |
+ |
fi |
7778 |
|
|
7779 |
|
|
7517 |
– |
OBJEXT=".$OBJEXT" |
7780 |
|
|
7519 |
– |
OOPSE=oopse |
7781 |
|
|
7521 |
– |
if test "x${prefix}" = "xNONE" |
7522 |
– |
then |
7523 |
– |
OOPSE_HOME=${ac_default_prefix}/oopse |
7524 |
– |
else |
7525 |
– |
OOPSE_HOME=${prefix}/oopse |
7526 |
– |
fi |
7527 |
– |
# Check whether --enable-oopse-home or --disable-oopse-home was given. |
7528 |
– |
if test "${enable_oopse_home+set}" = set; then |
7529 |
– |
enableval="$enable_oopse_home" |
7530 |
– |
OOPSE_HOME="${enableval}" |
7531 |
– |
fi; |
7782 |
|
|
7533 |
– |
case "x$INSTALL" in |
7534 |
– |
x/*) ;; |
7535 |
– |
*) INSTALL=`pwd`/ac-tools/"shtool install -c" ; |
7536 |
– |
esac |
7783 |
|
|
7538 |
– |
MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f" |
7784 |
|
|
7540 |
– |
SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder third-party " |
7785 |
|
|
7542 |
– |
CFLAGS=${CFLAGS-""} |
7543 |
– |
CXXFLAGS=${CXXFLAGS-""} |
7544 |
– |
CPPFLAGS=${CPPFLAGS-""} |
7545 |
– |
FFLAGS=${FFLAGS-""} |
7546 |
– |
F90FLAGS=${F90FLAGS-""} |
7547 |
– |
LDFLAGS=${LDFLAGS-""} |
7548 |
– |
DEBUG=${DEBUG-"-g"} |
7786 |
|
|
7550 |
– |
case $debug in |
7551 |
– |
1) |
7552 |
– |
FFLAGS="$DEBUG $FFLAGS" |
7553 |
– |
F90FLAGS="$DEBUG $F90FLAGS" |
7554 |
– |
;; |
7555 |
– |
*) |
7556 |
– |
;; |
7557 |
– |
esac |
7787 |
|
|
7788 |
|
|
7789 |
|
|
7801 |
|
|
7802 |
|
|
7803 |
|
|
7804 |
< |
ac_config_headers="$ac_config_headers libBASS/config.h libmdtools/config.h" |
7804 |
> |
for ac_header in conio.h dlfcn.h fstream.h iostream.h libintl.h limits.h machine/hal_sysinfo.h math.h stddef.h stdio.h stdlib.h string.h strings.h strstream.h sys/param.h sys/pstat.h sys/sysmp.h sys/sysctl.h sys/sysinfo.h sys/systemcfg.h sys/table.h sys/time.h time.h unistd.h zlib.h |
7805 |
> |
do |
7806 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7807 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7808 |
> |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7809 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
7810 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7811 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7812 |
> |
fi |
7813 |
> |
ac_res=`eval echo '${'$as_ac_Header'}'` |
7814 |
> |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
7815 |
> |
echo "${ECHO_T}$ac_res" >&6; } |
7816 |
> |
else |
7817 |
> |
# Is the header compilable? |
7818 |
> |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7819 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
7820 |
> |
cat >conftest.$ac_ext <<_ACEOF |
7821 |
> |
/* confdefs.h. */ |
7822 |
> |
_ACEOF |
7823 |
> |
cat confdefs.h >>conftest.$ac_ext |
7824 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
7825 |
> |
/* end confdefs.h. */ |
7826 |
> |
$ac_includes_default |
7827 |
> |
#include <$ac_header> |
7828 |
> |
_ACEOF |
7829 |
> |
rm -rf conftest.$ac_objext |
7830 |
> |
if { (ac_try="$ac_compile" |
7831 |
> |
case "(($ac_try" in |
7832 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7833 |
> |
*) ac_try_echo=$ac_try;; |
7834 |
> |
esac |
7835 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7836 |
> |
(eval "$ac_compile") 2>conftest.er1 |
7837 |
> |
ac_status=$? |
7838 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
7839 |
> |
rm -f conftest.er1 |
7840 |
> |
cat conftest.err >&5 |
7841 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7842 |
> |
(exit $ac_status); } && { |
7843 |
> |
test -z "$ac_c_werror_flag" || |
7844 |
> |
test ! -s conftest.err |
7845 |
> |
} && test -s conftest.$ac_objext; then |
7846 |
> |
ac_header_compiler=yes |
7847 |
> |
else |
7848 |
> |
echo "$as_me: failed program was:" >&5 |
7849 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
7850 |
|
|
7851 |
< |
ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile third-party/Makefile samples/alkane/Makefile samples/argon/Makefile samples/lipid/Makefile samples/minimizer/Makefile samples/metals/Makefile samples/water/Makefile samples/water/dimer/Makefile samples/water/spce/Makefile samples/water/ssd/Makefile samples/water/ssde/Makefile samples/water/tip4p/Makefile samples/water/tip3p_ice/Makefile samples/zcons/Makefile" |
7851 |
> |
ac_header_compiler=no |
7852 |
> |
fi |
7853 |
|
|
7854 |
+ |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
7855 |
+ |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7856 |
+ |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
7857 |
|
|
7858 |
< |
cat >confcache <<\_ACEOF |
7859 |
< |
# This file is a shell script that caches the results of configure |
7860 |
< |
# tests run on this system so they can be shared between configure |
7861 |
< |
# scripts and configure runs, see configure's option --config-cache. |
7862 |
< |
# It is not useful on other systems. If it contains results you don't |
7585 |
< |
# want to keep, you may remove or edit it. |
7586 |
< |
# |
7587 |
< |
# config.status only pays attention to the cache file if you give it |
7588 |
< |
# the --recheck option to rerun configure. |
7589 |
< |
# |
7590 |
< |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
7591 |
< |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
7592 |
< |
# following values. |
7593 |
< |
|
7858 |
> |
# Is the header present? |
7859 |
> |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7860 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
7861 |
> |
cat >conftest.$ac_ext <<_ACEOF |
7862 |
> |
/* confdefs.h. */ |
7863 |
|
_ACEOF |
7864 |
+ |
cat confdefs.h >>conftest.$ac_ext |
7865 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
7866 |
+ |
/* end confdefs.h. */ |
7867 |
+ |
#include <$ac_header> |
7868 |
+ |
_ACEOF |
7869 |
+ |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
7870 |
+ |
case "(($ac_try" in |
7871 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7872 |
+ |
*) ac_try_echo=$ac_try;; |
7873 |
+ |
esac |
7874 |
+ |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7875 |
+ |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7876 |
+ |
ac_status=$? |
7877 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
7878 |
+ |
rm -f conftest.er1 |
7879 |
+ |
cat conftest.err >&5 |
7880 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7881 |
+ |
(exit $ac_status); } >/dev/null && { |
7882 |
+ |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
7883 |
+ |
test ! -s conftest.err |
7884 |
+ |
}; then |
7885 |
+ |
ac_header_preproc=yes |
7886 |
+ |
else |
7887 |
+ |
echo "$as_me: failed program was:" >&5 |
7888 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
7889 |
|
|
7890 |
< |
# The following way of writing the cache mishandles newlines in values, |
7597 |
< |
# but we know of no workaround that is simple, portable, and efficient. |
7598 |
< |
# So, don't put newlines in cache variables' values. |
7599 |
< |
# Ultrix sh set writes to stderr and can't be redirected directly, |
7600 |
< |
# and sets the high bit in the cache file unless we assign to the vars. |
7601 |
< |
{ |
7602 |
< |
(set) 2>&1 | |
7603 |
< |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
7604 |
< |
*ac_space=\ *) |
7605 |
< |
# `set' does not quote correctly, so add quotes (double-quote |
7606 |
< |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
7607 |
< |
sed -n \ |
7608 |
< |
"s/'/'\\\\''/g; |
7609 |
< |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
7610 |
< |
;; |
7611 |
< |
*) |
7612 |
< |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
7613 |
< |
sed -n \ |
7614 |
< |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
7615 |
< |
;; |
7616 |
< |
esac; |
7617 |
< |
} | |
7618 |
< |
sed ' |
7619 |
< |
t clear |
7620 |
< |
: clear |
7621 |
< |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
7622 |
< |
t end |
7623 |
< |
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7624 |
< |
: end' >>confcache |
7625 |
< |
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
7626 |
< |
if test -w $cache_file; then |
7627 |
< |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
7628 |
< |
cat confcache >$cache_file |
7629 |
< |
else |
7630 |
< |
echo "not updating unwritable cache $cache_file" |
7631 |
< |
fi |
7890 |
> |
ac_header_preproc=no |
7891 |
|
fi |
7633 |
– |
rm -f confcache |
7892 |
|
|
7893 |
< |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
7894 |
< |
# Let make expand exec_prefix. |
7895 |
< |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
7896 |
< |
|
7897 |
< |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
7898 |
< |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
7899 |
< |
# trailing colons and then remove the whole line if VPATH becomes empty |
7900 |
< |
# (actually we leave an empty line to preserve line numbers). |
7901 |
< |
if test "x$srcdir" = x.; then |
7902 |
< |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
7903 |
< |
s/:*\$(srcdir):*/:/; |
7904 |
< |
s/:*\${srcdir}:*/:/; |
7905 |
< |
s/:*@srcdir@:*/:/; |
7906 |
< |
s/^\([^=]*=[ ]*\):*/\1/; |
7907 |
< |
s/:*$//; |
7908 |
< |
s/^[^=]*=[ ]*$//; |
7909 |
< |
}' |
7893 |
> |
rm -rf conftest.err conftest.$ac_ext |
7894 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7895 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
7896 |
> |
|
7897 |
> |
# So? What about this header? |
7898 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7899 |
> |
yes:no: ) |
7900 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7901 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
7902 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
7903 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
7904 |
> |
ac_header_preproc=yes |
7905 |
> |
;; |
7906 |
> |
no:yes:* ) |
7907 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7908 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
7909 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
7910 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
7911 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
7912 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
7913 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
7914 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
7915 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
7916 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
7917 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
7918 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
7919 |
> |
( cat <<\_ASBOX |
7920 |
> |
## ------------------------------ ## |
7921 |
> |
## Report this to gezelter@nd.edu ## |
7922 |
> |
## ------------------------------ ## |
7923 |
> |
_ASBOX |
7924 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
7925 |
> |
;; |
7926 |
> |
esac |
7927 |
> |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7928 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
7929 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7930 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7931 |
> |
else |
7932 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
7933 |
|
fi |
7934 |
+ |
ac_res=`eval echo '${'$as_ac_Header'}'` |
7935 |
+ |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
7936 |
+ |
echo "${ECHO_T}$ac_res" >&6; } |
7937 |
|
|
7938 |
< |
DEFS=-DHAVE_CONFIG_H |
7938 |
> |
fi |
7939 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7940 |
> |
cat >>confdefs.h <<_ACEOF |
7941 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7942 |
> |
_ACEOF |
7943 |
|
|
7944 |
< |
ac_libobjs= |
7945 |
< |
ac_ltlibobjs= |
7658 |
< |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
7659 |
< |
# 1. Remove the extension, and $U if already installed. |
7660 |
< |
ac_i=`echo "$ac_i" | |
7661 |
< |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
7662 |
< |
# 2. Add them. |
7663 |
< |
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
7664 |
< |
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
7944 |
> |
fi |
7945 |
> |
|
7946 |
|
done |
7666 |
– |
LIBOBJS=$ac_libobjs |
7947 |
|
|
7668 |
– |
LTLIBOBJS=$ac_ltlibobjs |
7948 |
|
|
7949 |
+ |
# Checks for typedefs, structures, and compiler characteristics. |
7950 |
+ |
{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
7951 |
+ |
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; } |
7952 |
+ |
if test "${ac_cv_header_stdbool_h+set}" = set; then |
7953 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7954 |
+ |
else |
7955 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
7956 |
+ |
/* confdefs.h. */ |
7957 |
+ |
_ACEOF |
7958 |
+ |
cat confdefs.h >>conftest.$ac_ext |
7959 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
7960 |
+ |
/* end confdefs.h. */ |
7961 |
|
|
7962 |
+ |
#include <stdbool.h> |
7963 |
+ |
#ifndef bool |
7964 |
+ |
"error: bool is not defined" |
7965 |
+ |
#endif |
7966 |
+ |
#ifndef false |
7967 |
+ |
"error: false is not defined" |
7968 |
+ |
#endif |
7969 |
+ |
#if false |
7970 |
+ |
"error: false is not 0" |
7971 |
+ |
#endif |
7972 |
+ |
#ifndef true |
7973 |
+ |
"error: true is not defined" |
7974 |
+ |
#endif |
7975 |
+ |
#if true != 1 |
7976 |
+ |
"error: true is not 1" |
7977 |
+ |
#endif |
7978 |
+ |
#ifndef __bool_true_false_are_defined |
7979 |
+ |
"error: __bool_true_false_are_defined is not defined" |
7980 |
+ |
#endif |
7981 |
|
|
7982 |
< |
: ${CONFIG_STATUS=./config.status} |
7673 |
< |
ac_clean_files_save=$ac_clean_files |
7674 |
< |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
7675 |
< |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
7676 |
< |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
7677 |
< |
cat >$CONFIG_STATUS <<_ACEOF |
7678 |
< |
#! $SHELL |
7679 |
< |
# Generated by $as_me. |
7680 |
< |
# Run this file to recreate the current configuration. |
7681 |
< |
# Compiler output produced by configure, useful for debugging |
7682 |
< |
# configure, is in config.log if it exists. |
7982 |
> |
struct s { _Bool s: 1; _Bool t; } s; |
7983 |
|
|
7984 |
< |
debug=false |
7985 |
< |
ac_cs_recheck=false |
7986 |
< |
ac_cs_silent=false |
7987 |
< |
SHELL=\${CONFIG_SHELL-$SHELL} |
7988 |
< |
_ACEOF |
7984 |
> |
char a[true == 1 ? 1 : -1]; |
7985 |
> |
char b[false == 0 ? 1 : -1]; |
7986 |
> |
char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
7987 |
> |
char d[(bool) 0.5 == true ? 1 : -1]; |
7988 |
> |
bool e = &s; |
7989 |
> |
char f[(_Bool) 0.0 == false ? 1 : -1]; |
7990 |
> |
char g[true]; |
7991 |
> |
char h[sizeof (_Bool)]; |
7992 |
> |
char i[sizeof s.t]; |
7993 |
> |
enum { j = false, k = true, l = false * true, m = true * 256 }; |
7994 |
> |
_Bool n[m]; |
7995 |
> |
char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
7996 |
> |
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
7997 |
> |
# if defined __xlc__ || defined __GNUC__ |
7998 |
> |
/* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 |
7999 |
> |
reported by James Lemley on 2005-10-05; see |
8000 |
> |
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html |
8001 |
> |
This test is not quite right, since xlc is allowed to |
8002 |
> |
reject this program, as the initializer for xlcbug is |
8003 |
> |
not one of the forms that C requires support for. |
8004 |
> |
However, doing the test right would require a runtime |
8005 |
> |
test, and that would make cross-compilation harder. |
8006 |
> |
Let us hope that IBM fixes the xlc bug, and also adds |
8007 |
> |
support for this kind of constant expression. In the |
8008 |
> |
meantime, this test will reject xlc, which is OK, since |
8009 |
> |
our stdbool.h substitute should suffice. We also test |
8010 |
> |
this with GCC, where it should work, to detect more |
8011 |
> |
quickly whether someone messes up the test in the |
8012 |
> |
future. */ |
8013 |
> |
char digs[] = "0123456789"; |
8014 |
> |
int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); |
8015 |
> |
# endif |
8016 |
> |
/* Catch a bug in an HP-UX C compiler. See |
8017 |
> |
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
8018 |
> |
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
8019 |
> |
*/ |
8020 |
> |
_Bool q = true; |
8021 |
> |
_Bool *pq = &q; |
8022 |
|
|
8023 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
8024 |
< |
## --------------------- ## |
8025 |
< |
## M4sh Initialization. ## |
8026 |
< |
## --------------------- ## |
8023 |
> |
#ifdef FC_DUMMY_MAIN |
8024 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8025 |
> |
# ifdef __cplusplus |
8026 |
> |
extern "C" |
8027 |
> |
# endif |
8028 |
> |
int FC_DUMMY_MAIN() { return 1; } |
8029 |
> |
#endif |
8030 |
> |
#endif |
8031 |
> |
int |
8032 |
> |
main () |
8033 |
> |
{ |
8034 |
|
|
8035 |
< |
# Be Bourne compatible |
8036 |
< |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
8037 |
< |
emulate sh |
8038 |
< |
NULLCMD=: |
8039 |
< |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
8040 |
< |
# is contrary to our usage. Disable this feature. |
8041 |
< |
alias -g '${1+"$@"}'='"$@"' |
8042 |
< |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
8043 |
< |
set -o posix |
8035 |
> |
*pq |= q; |
8036 |
> |
*pq |= ! q; |
8037 |
> |
/* Refer to every declared value, to avoid compiler optimizations. */ |
8038 |
> |
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
8039 |
> |
+ !m + !n + !o + !p + !q + !pq); |
8040 |
> |
|
8041 |
> |
; |
8042 |
> |
return 0; |
8043 |
> |
} |
8044 |
> |
_ACEOF |
8045 |
> |
rm -rf conftest.$ac_objext |
8046 |
> |
if { (ac_try="$ac_compile" |
8047 |
> |
case "(($ac_try" in |
8048 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8049 |
> |
*) ac_try_echo=$ac_try;; |
8050 |
> |
esac |
8051 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8052 |
> |
(eval "$ac_compile") 2>conftest.er1 |
8053 |
> |
ac_status=$? |
8054 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
8055 |
> |
rm -f conftest.er1 |
8056 |
> |
cat conftest.err >&5 |
8057 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8058 |
> |
(exit $ac_status); } && { |
8059 |
> |
test -z "$ac_c_werror_flag" || |
8060 |
> |
test ! -s conftest.err |
8061 |
> |
} && test -s conftest.$ac_objext; then |
8062 |
> |
ac_cv_header_stdbool_h=yes |
8063 |
> |
else |
8064 |
> |
echo "$as_me: failed program was:" >&5 |
8065 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
8066 |
> |
|
8067 |
> |
ac_cv_header_stdbool_h=no |
8068 |
|
fi |
7705 |
– |
DUALCASE=1; export DUALCASE # for MKS sh |
8069 |
|
|
8070 |
< |
# Support unset when possible. |
8071 |
< |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
8072 |
< |
as_unset=unset |
8070 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
8071 |
> |
fi |
8072 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
8073 |
> |
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; } |
8074 |
> |
{ echo "$as_me:$LINENO: checking for _Bool" >&5 |
8075 |
> |
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
8076 |
> |
if test "${ac_cv_type__Bool+set}" = set; then |
8077 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8078 |
|
else |
8079 |
< |
as_unset=false |
8079 |
> |
cat >conftest.$ac_ext <<_ACEOF |
8080 |
> |
/* confdefs.h. */ |
8081 |
> |
_ACEOF |
8082 |
> |
cat confdefs.h >>conftest.$ac_ext |
8083 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
8084 |
> |
/* end confdefs.h. */ |
8085 |
> |
$ac_includes_default |
8086 |
> |
typedef _Bool ac__type_new_; |
8087 |
> |
#ifdef FC_DUMMY_MAIN |
8088 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8089 |
> |
# ifdef __cplusplus |
8090 |
> |
extern "C" |
8091 |
> |
# endif |
8092 |
> |
int FC_DUMMY_MAIN() { return 1; } |
8093 |
> |
#endif |
8094 |
> |
#endif |
8095 |
> |
int |
8096 |
> |
main () |
8097 |
> |
{ |
8098 |
> |
if ((ac__type_new_ *) 0) |
8099 |
> |
return 0; |
8100 |
> |
if (sizeof (ac__type_new_)) |
8101 |
> |
return 0; |
8102 |
> |
; |
8103 |
> |
return 0; |
8104 |
> |
} |
8105 |
> |
_ACEOF |
8106 |
> |
rm -rf conftest.$ac_objext |
8107 |
> |
if { (ac_try="$ac_compile" |
8108 |
> |
case "(($ac_try" in |
8109 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8110 |
> |
*) ac_try_echo=$ac_try;; |
8111 |
> |
esac |
8112 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8113 |
> |
(eval "$ac_compile") 2>conftest.er1 |
8114 |
> |
ac_status=$? |
8115 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
8116 |
> |
rm -f conftest.er1 |
8117 |
> |
cat conftest.err >&5 |
8118 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8119 |
> |
(exit $ac_status); } && { |
8120 |
> |
test -z "$ac_c_werror_flag" || |
8121 |
> |
test ! -s conftest.err |
8122 |
> |
} && test -s conftest.$ac_objext; then |
8123 |
> |
ac_cv_type__Bool=yes |
8124 |
> |
else |
8125 |
> |
echo "$as_me: failed program was:" >&5 |
8126 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
8127 |
> |
|
8128 |
> |
ac_cv_type__Bool=no |
8129 |
|
fi |
8130 |
|
|
8131 |
+ |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
8132 |
+ |
fi |
8133 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
8134 |
+ |
echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
8135 |
+ |
if test $ac_cv_type__Bool = yes; then |
8136 |
|
|
8137 |
< |
# Work around bugs in pre-3.0 UWIN ksh. |
8138 |
< |
$as_unset ENV MAIL MAILPATH |
8139 |
< |
PS1='$ ' |
7718 |
< |
PS2='> ' |
7719 |
< |
PS4='+ ' |
8137 |
> |
cat >>confdefs.h <<_ACEOF |
8138 |
> |
#define HAVE__BOOL 1 |
8139 |
> |
_ACEOF |
8140 |
|
|
7721 |
– |
# NLS nuisances. |
7722 |
– |
for as_var in \ |
7723 |
– |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
7724 |
– |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
7725 |
– |
LC_TELEPHONE LC_TIME |
7726 |
– |
do |
7727 |
– |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
7728 |
– |
eval $as_var=C; export $as_var |
7729 |
– |
else |
7730 |
– |
$as_unset $as_var |
7731 |
– |
fi |
7732 |
– |
done |
8141 |
|
|
7734 |
– |
# Required to use basename. |
7735 |
– |
if expr a : '\(a\)' >/dev/null 2>&1; then |
7736 |
– |
as_expr=expr |
7737 |
– |
else |
7738 |
– |
as_expr=false |
8142 |
|
fi |
8143 |
|
|
8144 |
< |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
8145 |
< |
as_basename=basename |
8146 |
< |
else |
8147 |
< |
as_basename=false |
8144 |
> |
if test $ac_cv_header_stdbool_h = yes; then |
8145 |
> |
|
8146 |
> |
cat >>confdefs.h <<\_ACEOF |
8147 |
> |
#define HAVE_STDBOOL_H 1 |
8148 |
> |
_ACEOF |
8149 |
> |
|
8150 |
|
fi |
8151 |
|
|
8152 |
+ |
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
8153 |
+ |
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
8154 |
+ |
if test "${ac_cv_c_const+set}" = set; then |
8155 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8156 |
+ |
else |
8157 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
8158 |
+ |
/* confdefs.h. */ |
8159 |
+ |
_ACEOF |
8160 |
+ |
cat confdefs.h >>conftest.$ac_ext |
8161 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
8162 |
+ |
/* end confdefs.h. */ |
8163 |
|
|
8164 |
< |
# Name of the executable. |
8165 |
< |
as_me=`$as_basename "$0" || |
8166 |
< |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
8167 |
< |
X"$0" : 'X\(//\)$' \| \ |
8168 |
< |
X"$0" : 'X\(/\)$' \| \ |
8169 |
< |
. : '\(.\)' 2>/dev/null || |
8170 |
< |
echo X/"$0" | |
8171 |
< |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
8172 |
< |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
8173 |
< |
/^X\/\(\/\).*/{ s//\1/; q; } |
8174 |
< |
s/.*/./; q'` |
8164 |
> |
#ifdef FC_DUMMY_MAIN |
8165 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8166 |
> |
# ifdef __cplusplus |
8167 |
> |
extern "C" |
8168 |
> |
# endif |
8169 |
> |
int FC_DUMMY_MAIN() { return 1; } |
8170 |
> |
#endif |
8171 |
> |
#endif |
8172 |
> |
int |
8173 |
> |
main () |
8174 |
> |
{ |
8175 |
> |
/* FIXME: Include the comments suggested by Paul. */ |
8176 |
> |
#ifndef __cplusplus |
8177 |
> |
/* Ultrix mips cc rejects this. */ |
8178 |
> |
typedef int charset[2]; |
8179 |
> |
const charset cs; |
8180 |
> |
/* SunOS 4.1.1 cc rejects this. */ |
8181 |
> |
char const *const *pcpcc; |
8182 |
> |
char **ppc; |
8183 |
> |
/* NEC SVR4.0.2 mips cc rejects this. */ |
8184 |
> |
struct point {int x, y;}; |
8185 |
> |
static struct point const zero = {0,0}; |
8186 |
> |
/* AIX XL C 1.02.0.0 rejects this. |
8187 |
> |
It does not let you subtract one const X* pointer from another in |
8188 |
> |
an arm of an if-expression whose if-part is not a constant |
8189 |
> |
expression */ |
8190 |
> |
const char *g = "string"; |
8191 |
> |
pcpcc = &g + (g ? g-g : 0); |
8192 |
> |
/* HPUX 7.0 cc rejects these. */ |
8193 |
> |
++pcpcc; |
8194 |
> |
ppc = (char**) pcpcc; |
8195 |
> |
pcpcc = (char const *const *) ppc; |
8196 |
> |
{ /* SCO 3.2v4 cc rejects this. */ |
8197 |
> |
char *t; |
8198 |
> |
char const *s = 0 ? (char *) 0 : (char const *) 0; |
8199 |
|
|
8200 |
+ |
*t++ = 0; |
8201 |
+ |
if (s) return 0; |
8202 |
+ |
} |
8203 |
+ |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
8204 |
+ |
int x[] = {25, 17}; |
8205 |
+ |
const int *foo = &x[0]; |
8206 |
+ |
++foo; |
8207 |
+ |
} |
8208 |
+ |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
8209 |
+ |
typedef const int *iptr; |
8210 |
+ |
iptr p = 0; |
8211 |
+ |
++p; |
8212 |
+ |
} |
8213 |
+ |
{ /* AIX XL C 1.02.0.0 rejects this saying |
8214 |
+ |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
8215 |
+ |
struct s { int j; const int *ap[3]; }; |
8216 |
+ |
struct s *b; b->j = 5; |
8217 |
+ |
} |
8218 |
+ |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
8219 |
+ |
const int foo = 10; |
8220 |
+ |
if (!foo) return 0; |
8221 |
+ |
} |
8222 |
+ |
return !cs[0] && !zero.x; |
8223 |
+ |
#endif |
8224 |
|
|
8225 |
< |
# PATH needs CR, and LINENO needs CR and PATH. |
8226 |
< |
# Avoid depending upon Character Ranges. |
8227 |
< |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
8228 |
< |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
8229 |
< |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
8230 |
< |
as_cr_digits='0123456789' |
8231 |
< |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
8225 |
> |
; |
8226 |
> |
return 0; |
8227 |
> |
} |
8228 |
> |
_ACEOF |
8229 |
> |
rm -rf conftest.$ac_objext |
8230 |
> |
if { (ac_try="$ac_compile" |
8231 |
> |
case "(($ac_try" in |
8232 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8233 |
> |
*) ac_try_echo=$ac_try;; |
8234 |
> |
esac |
8235 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8236 |
> |
(eval "$ac_compile") 2>conftest.er1 |
8237 |
> |
ac_status=$? |
8238 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
8239 |
> |
rm -f conftest.er1 |
8240 |
> |
cat conftest.err >&5 |
8241 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8242 |
> |
(exit $ac_status); } && { |
8243 |
> |
test -z "$ac_c_werror_flag" || |
8244 |
> |
test ! -s conftest.err |
8245 |
> |
} && test -s conftest.$ac_objext; then |
8246 |
> |
ac_cv_c_const=yes |
8247 |
> |
else |
8248 |
> |
echo "$as_me: failed program was:" >&5 |
8249 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
8250 |
|
|
8251 |
< |
# The user is always right. |
7770 |
< |
if test "${PATH_SEPARATOR+set}" != set; then |
7771 |
< |
echo "#! /bin/sh" >conf$$.sh |
7772 |
< |
echo "exit 0" >>conf$$.sh |
7773 |
< |
chmod +x conf$$.sh |
7774 |
< |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
7775 |
< |
PATH_SEPARATOR=';' |
7776 |
< |
else |
7777 |
< |
PATH_SEPARATOR=: |
7778 |
< |
fi |
7779 |
< |
rm -f conf$$.sh |
8251 |
> |
ac_cv_c_const=no |
8252 |
|
fi |
8253 |
|
|
8254 |
+ |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
8255 |
+ |
fi |
8256 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
8257 |
+ |
echo "${ECHO_T}$ac_cv_c_const" >&6; } |
8258 |
+ |
if test $ac_cv_c_const = no; then |
8259 |
|
|
8260 |
< |
as_lineno_1=$LINENO |
8261 |
< |
as_lineno_2=$LINENO |
8262 |
< |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
7786 |
< |
test "x$as_lineno_1" != "x$as_lineno_2" && |
7787 |
< |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
7788 |
< |
# Find who we are. Look in the path if we contain no path at all |
7789 |
< |
# relative or not. |
7790 |
< |
case $0 in |
7791 |
< |
*[\\/]* ) as_myself=$0 ;; |
7792 |
< |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7793 |
< |
for as_dir in $PATH |
7794 |
< |
do |
7795 |
< |
IFS=$as_save_IFS |
7796 |
< |
test -z "$as_dir" && as_dir=. |
7797 |
< |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
7798 |
< |
done |
8260 |
> |
cat >>confdefs.h <<\_ACEOF |
8261 |
> |
#define const |
8262 |
> |
_ACEOF |
8263 |
|
|
8264 |
< |
;; |
7801 |
< |
esac |
7802 |
< |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
7803 |
< |
# in which case we are not to be found in the path. |
7804 |
< |
if test "x$as_myself" = x; then |
7805 |
< |
as_myself=$0 |
7806 |
< |
fi |
7807 |
< |
if test ! -f "$as_myself"; then |
7808 |
< |
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
7809 |
< |
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
7810 |
< |
{ (exit 1); exit 1; }; } |
7811 |
< |
fi |
7812 |
< |
case $CONFIG_SHELL in |
7813 |
< |
'') |
7814 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7815 |
< |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
7816 |
< |
do |
7817 |
< |
IFS=$as_save_IFS |
7818 |
< |
test -z "$as_dir" && as_dir=. |
7819 |
< |
for as_base in sh bash ksh sh5; do |
7820 |
< |
case $as_dir in |
7821 |
< |
/*) |
7822 |
< |
if ("$as_dir/$as_base" -c ' |
7823 |
< |
as_lineno_1=$LINENO |
7824 |
< |
as_lineno_2=$LINENO |
7825 |
< |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
7826 |
< |
test "x$as_lineno_1" != "x$as_lineno_2" && |
7827 |
< |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
7828 |
< |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
7829 |
< |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
7830 |
< |
CONFIG_SHELL=$as_dir/$as_base |
7831 |
< |
export CONFIG_SHELL |
7832 |
< |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
7833 |
< |
fi;; |
7834 |
< |
esac |
7835 |
< |
done |
7836 |
< |
done |
7837 |
< |
;; |
7838 |
< |
esac |
8264 |
> |
fi |
8265 |
|
|
8266 |
< |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
8267 |
< |
# uniformly replaced by the line number. The first 'sed' inserts a |
8268 |
< |
# line-number line before each line; the second 'sed' does the real |
8269 |
< |
# work. The second script uses 'N' to pair each line-number line |
8270 |
< |
# with the numbered line, and appends trailing '-' during |
8271 |
< |
# substitution so that $LINENO is not a special case at line end. |
8272 |
< |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
8273 |
< |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
8274 |
< |
sed '=' <$as_myself | |
8275 |
< |
sed ' |
8276 |
< |
N |
8277 |
< |
s,$,-, |
8278 |
< |
: loop |
8279 |
< |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
8280 |
< |
t loop |
8281 |
< |
s,-$,, |
8282 |
< |
s,^['$as_cr_digits']*\n,, |
8283 |
< |
' >$as_me.lineno && |
7858 |
< |
chmod +x $as_me.lineno || |
7859 |
< |
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
7860 |
< |
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
7861 |
< |
{ (exit 1); exit 1; }; } |
8266 |
> |
{ echo "$as_me:$LINENO: checking for inline" >&5 |
8267 |
> |
echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
8268 |
> |
if test "${ac_cv_c_inline+set}" = set; then |
8269 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8270 |
> |
else |
8271 |
> |
ac_cv_c_inline=no |
8272 |
> |
for ac_kw in inline __inline__ __inline; do |
8273 |
> |
cat >conftest.$ac_ext <<_ACEOF |
8274 |
> |
/* confdefs.h. */ |
8275 |
> |
_ACEOF |
8276 |
> |
cat confdefs.h >>conftest.$ac_ext |
8277 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
8278 |
> |
/* end confdefs.h. */ |
8279 |
> |
#ifndef __cplusplus |
8280 |
> |
typedef int foo_t; |
8281 |
> |
static $ac_kw foo_t static_foo () {return 0; } |
8282 |
> |
$ac_kw foo_t foo () {return 0; } |
8283 |
> |
#endif |
8284 |
|
|
8285 |
< |
# Don't try to exec as it changes $[0], causing all sort of problems |
8286 |
< |
# (the dirname of $[0] is not the place where we might find the |
8287 |
< |
# original and so on. Autoconf is especially sensible to this). |
8288 |
< |
. ./$as_me.lineno |
8289 |
< |
# Exit status is that of the last command. |
8290 |
< |
exit |
7869 |
< |
} |
7870 |
< |
|
7871 |
< |
|
7872 |
< |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
7873 |
< |
*c*,-n*) ECHO_N= ECHO_C=' |
7874 |
< |
' ECHO_T=' ' ;; |
7875 |
< |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
7876 |
< |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
8285 |
> |
_ACEOF |
8286 |
> |
rm -rf conftest.$ac_objext |
8287 |
> |
if { (ac_try="$ac_compile" |
8288 |
> |
case "(($ac_try" in |
8289 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8290 |
> |
*) ac_try_echo=$ac_try;; |
8291 |
|
esac |
8292 |
< |
|
8293 |
< |
if expr a : '\(a\)' >/dev/null 2>&1; then |
8294 |
< |
as_expr=expr |
8292 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8293 |
> |
(eval "$ac_compile") 2>conftest.er1 |
8294 |
> |
ac_status=$? |
8295 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
8296 |
> |
rm -f conftest.er1 |
8297 |
> |
cat conftest.err >&5 |
8298 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8299 |
> |
(exit $ac_status); } && { |
8300 |
> |
test -z "$ac_c_werror_flag" || |
8301 |
> |
test ! -s conftest.err |
8302 |
> |
} && test -s conftest.$ac_objext; then |
8303 |
> |
ac_cv_c_inline=$ac_kw |
8304 |
|
else |
8305 |
< |
as_expr=false |
8306 |
< |
fi |
8305 |
> |
echo "$as_me: failed program was:" >&5 |
8306 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
8307 |
|
|
7885 |
– |
rm -f conf$$ conf$$.exe conf$$.file |
7886 |
– |
echo >conf$$.file |
7887 |
– |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
7888 |
– |
# We could just check for DJGPP; but this test a) works b) is more generic |
7889 |
– |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
7890 |
– |
if test -f conf$$.exe; then |
7891 |
– |
# Don't use ln at all; we don't have any links |
7892 |
– |
as_ln_s='cp -p' |
7893 |
– |
else |
7894 |
– |
as_ln_s='ln -s' |
7895 |
– |
fi |
7896 |
– |
elif ln conf$$.file conf$$ 2>/dev/null; then |
7897 |
– |
as_ln_s=ln |
7898 |
– |
else |
7899 |
– |
as_ln_s='cp -p' |
7900 |
– |
fi |
7901 |
– |
rm -f conf$$ conf$$.exe conf$$.file |
8308 |
|
|
7903 |
– |
if mkdir -p . 2>/dev/null; then |
7904 |
– |
as_mkdir_p=: |
7905 |
– |
else |
7906 |
– |
test -d ./-p && rmdir ./-p |
7907 |
– |
as_mkdir_p=false |
8309 |
|
fi |
8310 |
|
|
8311 |
< |
as_executable_p="test -f" |
8311 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
8312 |
> |
test "$ac_cv_c_inline" != no && break |
8313 |
> |
done |
8314 |
|
|
8315 |
< |
# Sed expression to map a string onto a valid CPP name. |
8316 |
< |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
8315 |
> |
fi |
8316 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
8317 |
> |
echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
8318 |
|
|
7915 |
– |
# Sed expression to map a string onto a valid variable name. |
7916 |
– |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
8319 |
|
|
8320 |
+ |
case $ac_cv_c_inline in |
8321 |
+ |
inline | yes) ;; |
8322 |
+ |
*) |
8323 |
+ |
case $ac_cv_c_inline in |
8324 |
+ |
no) ac_val=;; |
8325 |
+ |
*) ac_val=$ac_cv_c_inline;; |
8326 |
+ |
esac |
8327 |
+ |
cat >>confdefs.h <<_ACEOF |
8328 |
+ |
#ifndef __cplusplus |
8329 |
+ |
#define inline $ac_val |
8330 |
+ |
#endif |
8331 |
+ |
_ACEOF |
8332 |
+ |
;; |
8333 |
+ |
esac |
8334 |
|
|
8335 |
< |
# IFS |
8336 |
< |
# We need space, tab and new line, in precisely that order. |
8337 |
< |
as_nl=' |
8338 |
< |
' |
8339 |
< |
IFS=" $as_nl" |
8340 |
< |
|
8341 |
< |
# CDPATH. |
8342 |
< |
$as_unset CDPATH |
8343 |
< |
|
8344 |
< |
exec 6>&1 |
8345 |
< |
|
8346 |
< |
# Open the log real soon, to keep \$[0] and so on meaningful, and to |
8347 |
< |
# report actual input values of CONFIG_FILES etc. instead of their |
8348 |
< |
# values after options handling. Logging --version etc. is OK. |
8349 |
< |
exec 5>>config.log |
8335 |
> |
{ echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 |
8336 |
> |
echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; } |
8337 |
> |
if test "${ac_cv_c_restrict+set}" = set; then |
8338 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8339 |
> |
else |
8340 |
> |
ac_cv_c_restrict=no |
8341 |
> |
# Try the official restrict keyword, then gcc's __restrict, and |
8342 |
> |
# the less common variants. |
8343 |
> |
for ac_kw in restrict __restrict __restrict__ _Restrict; do |
8344 |
> |
cat >conftest.$ac_ext <<_ACEOF |
8345 |
> |
/* confdefs.h. */ |
8346 |
> |
_ACEOF |
8347 |
> |
cat confdefs.h >>conftest.$ac_ext |
8348 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
8349 |
> |
/* end confdefs.h. */ |
8350 |
> |
typedef int * int_ptr; |
8351 |
> |
int foo (int_ptr $ac_kw ip) { |
8352 |
> |
return ip[0]; |
8353 |
> |
} |
8354 |
> |
#ifdef FC_DUMMY_MAIN |
8355 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8356 |
> |
# ifdef __cplusplus |
8357 |
> |
extern "C" |
8358 |
> |
# endif |
8359 |
> |
int FC_DUMMY_MAIN() { return 1; } |
8360 |
> |
#endif |
8361 |
> |
#endif |
8362 |
> |
int |
8363 |
> |
main () |
8364 |
|
{ |
8365 |
< |
echo |
8366 |
< |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
8367 |
< |
## Running $as_me. ## |
8368 |
< |
_ASBOX |
8369 |
< |
} >&5 |
8370 |
< |
cat >&5 <<_CSEOF |
8371 |
< |
|
7942 |
< |
This file was extended by OOPSE $as_me 1.0, which was |
7943 |
< |
generated by GNU Autoconf 2.59. Invocation command line was |
7944 |
< |
|
7945 |
< |
CONFIG_FILES = $CONFIG_FILES |
7946 |
< |
CONFIG_HEADERS = $CONFIG_HEADERS |
7947 |
< |
CONFIG_LINKS = $CONFIG_LINKS |
7948 |
< |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
7949 |
< |
$ $0 $@ |
7950 |
< |
|
7951 |
< |
_CSEOF |
7952 |
< |
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
7953 |
< |
echo >&5 |
8365 |
> |
int s[1]; |
8366 |
> |
int * $ac_kw t = s; |
8367 |
> |
t[0] = 0; |
8368 |
> |
return foo(t) |
8369 |
> |
; |
8370 |
> |
return 0; |
8371 |
> |
} |
8372 |
|
_ACEOF |
8373 |
+ |
rm -rf conftest.$ac_objext |
8374 |
+ |
if { (ac_try="$ac_compile" |
8375 |
+ |
case "(($ac_try" in |
8376 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8377 |
+ |
*) ac_try_echo=$ac_try;; |
8378 |
+ |
esac |
8379 |
+ |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8380 |
+ |
(eval "$ac_compile") 2>conftest.er1 |
8381 |
+ |
ac_status=$? |
8382 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
8383 |
+ |
rm -f conftest.er1 |
8384 |
+ |
cat conftest.err >&5 |
8385 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8386 |
+ |
(exit $ac_status); } && { |
8387 |
+ |
test -z "$ac_c_werror_flag" || |
8388 |
+ |
test ! -s conftest.err |
8389 |
+ |
} && test -s conftest.$ac_objext; then |
8390 |
+ |
ac_cv_c_restrict=$ac_kw |
8391 |
+ |
else |
8392 |
+ |
echo "$as_me: failed program was:" >&5 |
8393 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
8394 |
|
|
7956 |
– |
# Files that config.status was made for. |
7957 |
– |
if test -n "$ac_config_files"; then |
7958 |
– |
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
7959 |
– |
fi |
8395 |
|
|
7961 |
– |
if test -n "$ac_config_headers"; then |
7962 |
– |
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
8396 |
|
fi |
8397 |
|
|
8398 |
< |
if test -n "$ac_config_links"; then |
8399 |
< |
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
8400 |
< |
fi |
8398 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
8399 |
> |
test "$ac_cv_c_restrict" != no && break |
8400 |
> |
done |
8401 |
|
|
7969 |
– |
if test -n "$ac_config_commands"; then |
7970 |
– |
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
8402 |
|
fi |
8403 |
< |
|
8404 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
8405 |
< |
|
8406 |
< |
ac_cs_usage="\ |
8407 |
< |
\`$as_me' instantiates files from templates according to the |
8408 |
< |
current configuration. |
8409 |
< |
|
7979 |
< |
Usage: $0 [OPTIONS] [FILE]... |
7980 |
< |
|
7981 |
< |
-h, --help print this help, then exit |
7982 |
< |
-V, --version print version number, then exit |
7983 |
< |
-q, --quiet do not print progress messages |
7984 |
< |
-d, --debug don't remove temporary files |
7985 |
< |
--recheck update $as_me by reconfiguring in the same conditions |
7986 |
< |
--file=FILE[:TEMPLATE] |
7987 |
< |
instantiate the configuration file FILE |
7988 |
< |
--header=FILE[:TEMPLATE] |
7989 |
< |
instantiate the configuration header FILE |
7990 |
< |
|
7991 |
< |
Configuration files: |
7992 |
< |
$config_files |
7993 |
< |
|
7994 |
< |
Configuration headers: |
7995 |
< |
$config_headers |
7996 |
< |
|
7997 |
< |
Configuration links: |
7998 |
< |
$config_links |
7999 |
< |
|
8000 |
< |
Report bugs to <bug-autoconf@gnu.org>." |
8403 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 |
8404 |
> |
echo "${ECHO_T}$ac_cv_c_restrict" >&6; } |
8405 |
> |
case $ac_cv_c_restrict in |
8406 |
> |
restrict) ;; |
8407 |
> |
no) |
8408 |
> |
cat >>confdefs.h <<\_ACEOF |
8409 |
> |
#define restrict |
8410 |
|
_ACEOF |
8411 |
< |
|
8412 |
< |
cat >>$CONFIG_STATUS <<_ACEOF |
8413 |
< |
ac_cs_version="\\ |
8414 |
< |
OOPSE config.status 1.0 |
8415 |
< |
configured by $0, generated by GNU Autoconf 2.59, |
8416 |
< |
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
8411 |
> |
;; |
8412 |
> |
*) cat >>confdefs.h <<_ACEOF |
8413 |
> |
#define restrict $ac_cv_c_restrict |
8414 |
> |
_ACEOF |
8415 |
> |
;; |
8416 |
> |
esac |
8417 |
|
|
8418 |
< |
Copyright (C) 2003 Free Software Foundation, Inc. |
8419 |
< |
This config.status script is free software; the Free Software Foundation |
8420 |
< |
gives unlimited permission to copy, distribute and modify it." |
8421 |
< |
srcdir=$srcdir |
8422 |
< |
INSTALL="$INSTALL" |
8418 |
> |
{ echo "$as_me:$LINENO: checking for size_t" >&5 |
8419 |
> |
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
8420 |
> |
if test "${ac_cv_type_size_t+set}" = set; then |
8421 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8422 |
> |
else |
8423 |
> |
cat >conftest.$ac_ext <<_ACEOF |
8424 |
> |
/* confdefs.h. */ |
8425 |
|
_ACEOF |
8426 |
< |
|
8427 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
8428 |
< |
# If no file are specified by the user, then we need to provide default |
8429 |
< |
# value. By we need to know if files were specified by the user. |
8430 |
< |
ac_need_defaults=: |
8431 |
< |
while test $# != 0 |
8432 |
< |
do |
8433 |
< |
case $1 in |
8434 |
< |
--*=*) |
8435 |
< |
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
8436 |
< |
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
8437 |
< |
ac_shift=: |
8438 |
< |
;; |
8439 |
< |
-*) |
8440 |
< |
ac_option=$1 |
8441 |
< |
ac_optarg=$2 |
8442 |
< |
ac_shift=shift |
8443 |
< |
;; |
8444 |
< |
*) # This is not an option, so the user has probably given explicit |
8445 |
< |
# arguments. |
8446 |
< |
ac_option=$1 |
8447 |
< |
ac_need_defaults=false;; |
8448 |
< |
esac |
8038 |
< |
|
8039 |
< |
case $ac_option in |
8040 |
< |
# Handling of the options. |
8426 |
> |
cat confdefs.h >>conftest.$ac_ext |
8427 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
8428 |
> |
/* end confdefs.h. */ |
8429 |
> |
$ac_includes_default |
8430 |
> |
typedef size_t ac__type_new_; |
8431 |
> |
#ifdef FC_DUMMY_MAIN |
8432 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8433 |
> |
# ifdef __cplusplus |
8434 |
> |
extern "C" |
8435 |
> |
# endif |
8436 |
> |
int FC_DUMMY_MAIN() { return 1; } |
8437 |
> |
#endif |
8438 |
> |
#endif |
8439 |
> |
int |
8440 |
> |
main () |
8441 |
> |
{ |
8442 |
> |
if ((ac__type_new_ *) 0) |
8443 |
> |
return 0; |
8444 |
> |
if (sizeof (ac__type_new_)) |
8445 |
> |
return 0; |
8446 |
> |
; |
8447 |
> |
return 0; |
8448 |
> |
} |
8449 |
|
_ACEOF |
8450 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
8451 |
< |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
8452 |
< |
ac_cs_recheck=: ;; |
8453 |
< |
--version | --vers* | -V ) |
8454 |
< |
echo "$ac_cs_version"; exit 0 ;; |
8455 |
< |
--he | --h) |
8456 |
< |
# Conflict between --help and --header |
8457 |
< |
{ { echo "$as_me:$LINENO: error: ambiguous option: $1 |
8458 |
< |
Try \`$0 --help' for more information." >&5 |
8459 |
< |
echo "$as_me: error: ambiguous option: $1 |
8460 |
< |
Try \`$0 --help' for more information." >&2;} |
8461 |
< |
{ (exit 1); exit 1; }; };; |
8462 |
< |
--help | --hel | -h ) |
8463 |
< |
echo "$ac_cs_usage"; exit 0 ;; |
8464 |
< |
--debug | --d* | -d ) |
8465 |
< |
debug=: ;; |
8466 |
< |
--file | --fil | --fi | --f ) |
8467 |
< |
$ac_shift |
8468 |
< |
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
8469 |
< |
ac_need_defaults=false;; |
8470 |
< |
--header | --heade | --head | --hea ) |
8063 |
< |
$ac_shift |
8064 |
< |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
8065 |
< |
ac_need_defaults=false;; |
8066 |
< |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
8067 |
< |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
8068 |
< |
ac_cs_silent=: ;; |
8450 |
> |
rm -rf conftest.$ac_objext |
8451 |
> |
if { (ac_try="$ac_compile" |
8452 |
> |
case "(($ac_try" in |
8453 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8454 |
> |
*) ac_try_echo=$ac_try;; |
8455 |
> |
esac |
8456 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8457 |
> |
(eval "$ac_compile") 2>conftest.er1 |
8458 |
> |
ac_status=$? |
8459 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
8460 |
> |
rm -f conftest.er1 |
8461 |
> |
cat conftest.err >&5 |
8462 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8463 |
> |
(exit $ac_status); } && { |
8464 |
> |
test -z "$ac_c_werror_flag" || |
8465 |
> |
test ! -s conftest.err |
8466 |
> |
} && test -s conftest.$ac_objext; then |
8467 |
> |
ac_cv_type_size_t=yes |
8468 |
> |
else |
8469 |
> |
echo "$as_me: failed program was:" >&5 |
8470 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
8471 |
|
|
8472 |
< |
# This is an error. |
8473 |
< |
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
8072 |
< |
Try \`$0 --help' for more information." >&5 |
8073 |
< |
echo "$as_me: error: unrecognized option: $1 |
8074 |
< |
Try \`$0 --help' for more information." >&2;} |
8075 |
< |
{ (exit 1); exit 1; }; } ;; |
8472 |
> |
ac_cv_type_size_t=no |
8473 |
> |
fi |
8474 |
|
|
8475 |
< |
*) ac_config_targets="$ac_config_targets $1" ;; |
8475 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
8476 |
> |
fi |
8477 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
8478 |
> |
echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
8479 |
> |
if test $ac_cv_type_size_t = yes; then |
8480 |
> |
: |
8481 |
> |
else |
8482 |
|
|
8483 |
< |
esac |
8484 |
< |
shift |
8485 |
< |
done |
8483 |
> |
cat >>confdefs.h <<_ACEOF |
8484 |
> |
#define size_t unsigned int |
8485 |
> |
_ACEOF |
8486 |
|
|
8083 |
– |
ac_configure_extra_args= |
8084 |
– |
|
8085 |
– |
if $ac_cs_silent; then |
8086 |
– |
exec 6>/dev/null |
8087 |
– |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
8487 |
|
fi |
8488 |
|
|
8489 |
+ |
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
8490 |
+ |
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
8491 |
+ |
if test "${ac_cv_header_time+set}" = set; then |
8492 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8493 |
+ |
else |
8494 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
8495 |
+ |
/* confdefs.h. */ |
8496 |
|
_ACEOF |
8497 |
< |
cat >>$CONFIG_STATUS <<_ACEOF |
8498 |
< |
if \$ac_cs_recheck; then |
8499 |
< |
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
8500 |
< |
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8501 |
< |
fi |
8497 |
> |
cat confdefs.h >>conftest.$ac_ext |
8498 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
8499 |
> |
/* end confdefs.h. */ |
8500 |
> |
#include <sys/types.h> |
8501 |
> |
#include <sys/time.h> |
8502 |
> |
#include <time.h> |
8503 |
|
|
8504 |
+ |
#ifdef FC_DUMMY_MAIN |
8505 |
+ |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8506 |
+ |
# ifdef __cplusplus |
8507 |
+ |
extern "C" |
8508 |
+ |
# endif |
8509 |
+ |
int FC_DUMMY_MAIN() { return 1; } |
8510 |
+ |
#endif |
8511 |
+ |
#endif |
8512 |
+ |
int |
8513 |
+ |
main () |
8514 |
+ |
{ |
8515 |
+ |
if ((struct tm *) 0) |
8516 |
+ |
return 0; |
8517 |
+ |
; |
8518 |
+ |
return 0; |
8519 |
+ |
} |
8520 |
|
_ACEOF |
8521 |
+ |
rm -rf conftest.$ac_objext |
8522 |
+ |
if { (ac_try="$ac_compile" |
8523 |
+ |
case "(($ac_try" in |
8524 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8525 |
+ |
*) ac_try_echo=$ac_try;; |
8526 |
+ |
esac |
8527 |
+ |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8528 |
+ |
(eval "$ac_compile") 2>conftest.er1 |
8529 |
+ |
ac_status=$? |
8530 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
8531 |
+ |
rm -f conftest.er1 |
8532 |
+ |
cat conftest.err >&5 |
8533 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8534 |
+ |
(exit $ac_status); } && { |
8535 |
+ |
test -z "$ac_c_werror_flag" || |
8536 |
+ |
test ! -s conftest.err |
8537 |
+ |
} && test -s conftest.$ac_objext; then |
8538 |
+ |
ac_cv_header_time=yes |
8539 |
+ |
else |
8540 |
+ |
echo "$as_me: failed program was:" >&5 |
8541 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
8542 |
|
|
8543 |
+ |
ac_cv_header_time=no |
8544 |
+ |
fi |
8545 |
|
|
8546 |
+ |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
8547 |
+ |
fi |
8548 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
8549 |
+ |
echo "${ECHO_T}$ac_cv_header_time" >&6; } |
8550 |
+ |
if test $ac_cv_header_time = yes; then |
8551 |
|
|
8552 |
+ |
cat >>confdefs.h <<\_ACEOF |
8553 |
+ |
#define TIME_WITH_SYS_TIME 1 |
8554 |
+ |
_ACEOF |
8555 |
|
|
8102 |
– |
|
8103 |
– |
cat >>$CONFIG_STATUS <<\_ACEOF |
8104 |
– |
for ac_config_target in $ac_config_targets |
8105 |
– |
do |
8106 |
– |
case "$ac_config_target" in |
8107 |
– |
# Handling of arguments. |
8108 |
– |
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
8109 |
– |
"libBASS/Makefile" ) CONFIG_FILES="$CONFIG_FILES libBASS/Makefile" ;; |
8110 |
– |
"libmdtools/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmdtools/Makefile" ;; |
8111 |
– |
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
8112 |
– |
"utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; |
8113 |
– |
"utils/sysbuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;; |
8114 |
– |
"forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;; |
8115 |
– |
"samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;; |
8116 |
– |
"third-party/Makefile" ) CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;; |
8117 |
– |
"samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;; |
8118 |
– |
"samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;; |
8119 |
– |
"samples/lipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;; |
8120 |
– |
"samples/minimizer/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/minimizer/Makefile" ;; |
8121 |
– |
"samples/metals/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;; |
8122 |
– |
"samples/water/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;; |
8123 |
– |
"samples/water/dimer/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/dimer/Makefile" ;; |
8124 |
– |
"samples/water/spce/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/spce/Makefile" ;; |
8125 |
– |
"samples/water/ssd/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/ssd/Makefile" ;; |
8126 |
– |
"samples/water/ssde/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/ssde/Makefile" ;; |
8127 |
– |
"samples/water/tip4p/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/tip4p/Makefile" ;; |
8128 |
– |
"samples/water/tip3p_ice/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/tip3p_ice/Makefile" ;; |
8129 |
– |
"samples/zcons/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/zcons/Makefile" ;; |
8130 |
– |
"utils/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS utils/getopt.h:utils/gnugetopt.h" ;; |
8131 |
– |
"libBASS/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libBASS/config.h" ;; |
8132 |
– |
"libmdtools/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;; |
8133 |
– |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
8134 |
– |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
8135 |
– |
{ (exit 1); exit 1; }; };; |
8136 |
– |
esac |
8137 |
– |
done |
8138 |
– |
|
8139 |
– |
# If the user did not use the arguments to specify the items to instantiate, |
8140 |
– |
# then the envvar interface is used. Set only those that are not. |
8141 |
– |
# We use the long form for the default assignment because of an extremely |
8142 |
– |
# bizarre bug on SunOS 4.1.3. |
8143 |
– |
if $ac_need_defaults; then |
8144 |
– |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
8145 |
– |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
8146 |
– |
test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
8556 |
|
fi |
8557 |
|
|
8558 |
< |
# Have a temporary directory for convenience. Make it in the build tree |
8559 |
< |
# simply because there is no reason to put it here, and in addition, |
8558 |
> |
{ echo "$as_me:$LINENO: checking for clock_t" >&5 |
8559 |
> |
echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; } |
8560 |
> |
if test "${ac_cv_type_clock_t+set}" = set; then |
8561 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8562 |
> |
else |
8563 |
> |
cat >conftest.$ac_ext <<_ACEOF |
8564 |
> |
/* confdefs.h. */ |
8565 |
> |
_ACEOF |
8566 |
> |
cat confdefs.h >>conftest.$ac_ext |
8567 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
8568 |
> |
/* end confdefs.h. */ |
8569 |
> |
$ac_includes_default |
8570 |
> |
typedef clock_t ac__type_new_; |
8571 |
> |
#ifdef FC_DUMMY_MAIN |
8572 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8573 |
> |
# ifdef __cplusplus |
8574 |
> |
extern "C" |
8575 |
> |
# endif |
8576 |
> |
int FC_DUMMY_MAIN() { return 1; } |
8577 |
> |
#endif |
8578 |
> |
#endif |
8579 |
> |
int |
8580 |
> |
main () |
8581 |
> |
{ |
8582 |
> |
if ((ac__type_new_ *) 0) |
8583 |
> |
return 0; |
8584 |
> |
if (sizeof (ac__type_new_)) |
8585 |
> |
return 0; |
8586 |
> |
; |
8587 |
> |
return 0; |
8588 |
> |
} |
8589 |
> |
_ACEOF |
8590 |
> |
rm -rf conftest.$ac_objext |
8591 |
> |
if { (ac_try="$ac_compile" |
8592 |
> |
case "(($ac_try" in |
8593 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8594 |
> |
*) ac_try_echo=$ac_try;; |
8595 |
> |
esac |
8596 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8597 |
> |
(eval "$ac_compile") 2>conftest.er1 |
8598 |
> |
ac_status=$? |
8599 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
8600 |
> |
rm -f conftest.er1 |
8601 |
> |
cat conftest.err >&5 |
8602 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8603 |
> |
(exit $ac_status); } && { |
8604 |
> |
test -z "$ac_c_werror_flag" || |
8605 |
> |
test ! -s conftest.err |
8606 |
> |
} && test -s conftest.$ac_objext; then |
8607 |
> |
ac_cv_type_clock_t=yes |
8608 |
> |
else |
8609 |
> |
echo "$as_me: failed program was:" >&5 |
8610 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
8611 |
> |
|
8612 |
> |
ac_cv_type_clock_t=no |
8613 |
> |
fi |
8614 |
> |
|
8615 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
8616 |
> |
fi |
8617 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_type_clock_t" >&5 |
8618 |
> |
echo "${ECHO_T}$ac_cv_type_clock_t" >&6; } |
8619 |
> |
if test $ac_cv_type_clock_t = yes; then |
8620 |
> |
|
8621 |
> |
cat >>confdefs.h <<_ACEOF |
8622 |
> |
#define HAVE_CLOCK_T 1 |
8623 |
> |
_ACEOF |
8624 |
> |
|
8625 |
> |
|
8626 |
> |
fi |
8627 |
> |
|
8628 |
> |
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
8629 |
> |
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
8630 |
> |
if test "${ac_cv_c_const+set}" = set; then |
8631 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8632 |
> |
else |
8633 |
> |
cat >conftest.$ac_ext <<_ACEOF |
8634 |
> |
/* confdefs.h. */ |
8635 |
> |
_ACEOF |
8636 |
> |
cat confdefs.h >>conftest.$ac_ext |
8637 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
8638 |
> |
/* end confdefs.h. */ |
8639 |
> |
|
8640 |
> |
#ifdef FC_DUMMY_MAIN |
8641 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8642 |
> |
# ifdef __cplusplus |
8643 |
> |
extern "C" |
8644 |
> |
# endif |
8645 |
> |
int FC_DUMMY_MAIN() { return 1; } |
8646 |
> |
#endif |
8647 |
> |
#endif |
8648 |
> |
int |
8649 |
> |
main () |
8650 |
> |
{ |
8651 |
> |
/* FIXME: Include the comments suggested by Paul. */ |
8652 |
> |
#ifndef __cplusplus |
8653 |
> |
/* Ultrix mips cc rejects this. */ |
8654 |
> |
typedef int charset[2]; |
8655 |
> |
const charset cs; |
8656 |
> |
/* SunOS 4.1.1 cc rejects this. */ |
8657 |
> |
char const *const *pcpcc; |
8658 |
> |
char **ppc; |
8659 |
> |
/* NEC SVR4.0.2 mips cc rejects this. */ |
8660 |
> |
struct point {int x, y;}; |
8661 |
> |
static struct point const zero = {0,0}; |
8662 |
> |
/* AIX XL C 1.02.0.0 rejects this. |
8663 |
> |
It does not let you subtract one const X* pointer from another in |
8664 |
> |
an arm of an if-expression whose if-part is not a constant |
8665 |
> |
expression */ |
8666 |
> |
const char *g = "string"; |
8667 |
> |
pcpcc = &g + (g ? g-g : 0); |
8668 |
> |
/* HPUX 7.0 cc rejects these. */ |
8669 |
> |
++pcpcc; |
8670 |
> |
ppc = (char**) pcpcc; |
8671 |
> |
pcpcc = (char const *const *) ppc; |
8672 |
> |
{ /* SCO 3.2v4 cc rejects this. */ |
8673 |
> |
char *t; |
8674 |
> |
char const *s = 0 ? (char *) 0 : (char const *) 0; |
8675 |
> |
|
8676 |
> |
*t++ = 0; |
8677 |
> |
if (s) return 0; |
8678 |
> |
} |
8679 |
> |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
8680 |
> |
int x[] = {25, 17}; |
8681 |
> |
const int *foo = &x[0]; |
8682 |
> |
++foo; |
8683 |
> |
} |
8684 |
> |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
8685 |
> |
typedef const int *iptr; |
8686 |
> |
iptr p = 0; |
8687 |
> |
++p; |
8688 |
> |
} |
8689 |
> |
{ /* AIX XL C 1.02.0.0 rejects this saying |
8690 |
> |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
8691 |
> |
struct s { int j; const int *ap[3]; }; |
8692 |
> |
struct s *b; b->j = 5; |
8693 |
> |
} |
8694 |
> |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
8695 |
> |
const int foo = 10; |
8696 |
> |
if (!foo) return 0; |
8697 |
> |
} |
8698 |
> |
return !cs[0] && !zero.x; |
8699 |
> |
#endif |
8700 |
> |
|
8701 |
> |
; |
8702 |
> |
return 0; |
8703 |
> |
} |
8704 |
> |
_ACEOF |
8705 |
> |
rm -rf conftest.$ac_objext |
8706 |
> |
if { (ac_try="$ac_compile" |
8707 |
> |
case "(($ac_try" in |
8708 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8709 |
> |
*) ac_try_echo=$ac_try;; |
8710 |
> |
esac |
8711 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8712 |
> |
(eval "$ac_compile") 2>conftest.er1 |
8713 |
> |
ac_status=$? |
8714 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
8715 |
> |
rm -f conftest.er1 |
8716 |
> |
cat conftest.err >&5 |
8717 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8718 |
> |
(exit $ac_status); } && { |
8719 |
> |
test -z "$ac_c_werror_flag" || |
8720 |
> |
test ! -s conftest.err |
8721 |
> |
} && test -s conftest.$ac_objext; then |
8722 |
> |
ac_cv_c_const=yes |
8723 |
> |
else |
8724 |
> |
echo "$as_me: failed program was:" >&5 |
8725 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
8726 |
> |
|
8727 |
> |
ac_cv_c_const=no |
8728 |
> |
fi |
8729 |
> |
|
8730 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
8731 |
> |
fi |
8732 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
8733 |
> |
echo "${ECHO_T}$ac_cv_c_const" >&6; } |
8734 |
> |
if test $ac_cv_c_const = no; then |
8735 |
> |
|
8736 |
> |
cat >>confdefs.h <<\_ACEOF |
8737 |
> |
#define const |
8738 |
> |
_ACEOF |
8739 |
> |
|
8740 |
> |
fi |
8741 |
> |
|
8742 |
> |
{ echo "$as_me:$LINENO: checking for inline" >&5 |
8743 |
> |
echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
8744 |
> |
if test "${ac_cv_c_inline+set}" = set; then |
8745 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8746 |
> |
else |
8747 |
> |
ac_cv_c_inline=no |
8748 |
> |
for ac_kw in inline __inline__ __inline; do |
8749 |
> |
cat >conftest.$ac_ext <<_ACEOF |
8750 |
> |
/* confdefs.h. */ |
8751 |
> |
_ACEOF |
8752 |
> |
cat confdefs.h >>conftest.$ac_ext |
8753 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
8754 |
> |
/* end confdefs.h. */ |
8755 |
> |
#ifndef __cplusplus |
8756 |
> |
typedef int foo_t; |
8757 |
> |
static $ac_kw foo_t static_foo () {return 0; } |
8758 |
> |
$ac_kw foo_t foo () {return 0; } |
8759 |
> |
#endif |
8760 |
> |
|
8761 |
> |
_ACEOF |
8762 |
> |
rm -rf conftest.$ac_objext |
8763 |
> |
if { (ac_try="$ac_compile" |
8764 |
> |
case "(($ac_try" in |
8765 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8766 |
> |
*) ac_try_echo=$ac_try;; |
8767 |
> |
esac |
8768 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8769 |
> |
(eval "$ac_compile") 2>conftest.er1 |
8770 |
> |
ac_status=$? |
8771 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
8772 |
> |
rm -f conftest.er1 |
8773 |
> |
cat conftest.err >&5 |
8774 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8775 |
> |
(exit $ac_status); } && { |
8776 |
> |
test -z "$ac_c_werror_flag" || |
8777 |
> |
test ! -s conftest.err |
8778 |
> |
} && test -s conftest.$ac_objext; then |
8779 |
> |
ac_cv_c_inline=$ac_kw |
8780 |
> |
else |
8781 |
> |
echo "$as_me: failed program was:" >&5 |
8782 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
8783 |
> |
|
8784 |
> |
|
8785 |
> |
fi |
8786 |
> |
|
8787 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
8788 |
> |
test "$ac_cv_c_inline" != no && break |
8789 |
> |
done |
8790 |
> |
|
8791 |
> |
fi |
8792 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
8793 |
> |
echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
8794 |
> |
|
8795 |
> |
|
8796 |
> |
case $ac_cv_c_inline in |
8797 |
> |
inline | yes) ;; |
8798 |
> |
*) |
8799 |
> |
case $ac_cv_c_inline in |
8800 |
> |
no) ac_val=;; |
8801 |
> |
*) ac_val=$ac_cv_c_inline;; |
8802 |
> |
esac |
8803 |
> |
cat >>confdefs.h <<_ACEOF |
8804 |
> |
#ifndef __cplusplus |
8805 |
> |
#define inline $ac_val |
8806 |
> |
#endif |
8807 |
> |
_ACEOF |
8808 |
> |
;; |
8809 |
> |
esac |
8810 |
> |
|
8811 |
> |
|
8812 |
> |
# Checks for library functions. |
8813 |
> |
|
8814 |
> |
for ac_header in stdlib.h |
8815 |
> |
do |
8816 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8817 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8818 |
> |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8819 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8820 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8821 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8822 |
> |
fi |
8823 |
> |
ac_res=`eval echo '${'$as_ac_Header'}'` |
8824 |
> |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
8825 |
> |
echo "${ECHO_T}$ac_res" >&6; } |
8826 |
> |
else |
8827 |
> |
# Is the header compilable? |
8828 |
> |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8829 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
8830 |
> |
cat >conftest.$ac_ext <<_ACEOF |
8831 |
> |
/* confdefs.h. */ |
8832 |
> |
_ACEOF |
8833 |
> |
cat confdefs.h >>conftest.$ac_ext |
8834 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
8835 |
> |
/* end confdefs.h. */ |
8836 |
> |
$ac_includes_default |
8837 |
> |
#include <$ac_header> |
8838 |
> |
_ACEOF |
8839 |
> |
rm -rf conftest.$ac_objext |
8840 |
> |
if { (ac_try="$ac_compile" |
8841 |
> |
case "(($ac_try" in |
8842 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8843 |
> |
*) ac_try_echo=$ac_try;; |
8844 |
> |
esac |
8845 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8846 |
> |
(eval "$ac_compile") 2>conftest.er1 |
8847 |
> |
ac_status=$? |
8848 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
8849 |
> |
rm -f conftest.er1 |
8850 |
> |
cat conftest.err >&5 |
8851 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8852 |
> |
(exit $ac_status); } && { |
8853 |
> |
test -z "$ac_c_werror_flag" || |
8854 |
> |
test ! -s conftest.err |
8855 |
> |
} && test -s conftest.$ac_objext; then |
8856 |
> |
ac_header_compiler=yes |
8857 |
> |
else |
8858 |
> |
echo "$as_me: failed program was:" >&5 |
8859 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
8860 |
> |
|
8861 |
> |
ac_header_compiler=no |
8862 |
> |
fi |
8863 |
> |
|
8864 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
8865 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8866 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
8867 |
> |
|
8868 |
> |
# Is the header present? |
8869 |
> |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8870 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
8871 |
> |
cat >conftest.$ac_ext <<_ACEOF |
8872 |
> |
/* confdefs.h. */ |
8873 |
> |
_ACEOF |
8874 |
> |
cat confdefs.h >>conftest.$ac_ext |
8875 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
8876 |
> |
/* end confdefs.h. */ |
8877 |
> |
#include <$ac_header> |
8878 |
> |
_ACEOF |
8879 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
8880 |
> |
case "(($ac_try" in |
8881 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8882 |
> |
*) ac_try_echo=$ac_try;; |
8883 |
> |
esac |
8884 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8885 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
8886 |
> |
ac_status=$? |
8887 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
8888 |
> |
rm -rf conftest.er1 |
8889 |
> |
cat conftest.err >&5 |
8890 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8891 |
> |
(exit $ac_status); } >/dev/null && { |
8892 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
8893 |
> |
test ! -s conftest.err |
8894 |
> |
}; then |
8895 |
> |
ac_header_preproc=yes |
8896 |
> |
else |
8897 |
> |
echo "$as_me: failed program was:" >&5 |
8898 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
8899 |
> |
|
8900 |
> |
ac_header_preproc=no |
8901 |
> |
fi |
8902 |
> |
|
8903 |
> |
rm -rf conftest.err conftest.$ac_ext |
8904 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8905 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
8906 |
> |
|
8907 |
> |
# So? What about this header? |
8908 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8909 |
> |
yes:no: ) |
8910 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8911 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8912 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8913 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
8914 |
> |
ac_header_preproc=yes |
8915 |
> |
;; |
8916 |
> |
no:yes:* ) |
8917 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8918 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
8919 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8920 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
8921 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
8922 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
8923 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
8924 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
8925 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8926 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
8927 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8928 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
8929 |
> |
( cat <<\_ASBOX |
8930 |
> |
## ------------------------------ ## |
8931 |
> |
## Report this to gezelter@nd.edu ## |
8932 |
> |
## ------------------------------ ## |
8933 |
> |
_ASBOX |
8934 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
8935 |
> |
;; |
8936 |
> |
esac |
8937 |
> |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8938 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8939 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8940 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8941 |
> |
else |
8942 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
8943 |
> |
fi |
8944 |
> |
ac_res=`eval echo '${'$as_ac_Header'}'` |
8945 |
> |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
8946 |
> |
echo "${ECHO_T}$ac_res" >&6; } |
8947 |
> |
|
8948 |
> |
fi |
8949 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8950 |
> |
cat >>confdefs.h <<_ACEOF |
8951 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
8952 |
> |
_ACEOF |
8953 |
> |
|
8954 |
> |
fi |
8955 |
> |
|
8956 |
> |
done |
8957 |
> |
|
8958 |
> |
{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
8959 |
> |
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } |
8960 |
> |
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
8961 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8962 |
> |
else |
8963 |
> |
if test "$cross_compiling" = yes; then |
8964 |
> |
ac_cv_func_malloc_0_nonnull=no |
8965 |
> |
else |
8966 |
> |
cat >conftest.$ac_ext <<_ACEOF |
8967 |
> |
/* confdefs.h. */ |
8968 |
> |
_ACEOF |
8969 |
> |
cat confdefs.h >>conftest.$ac_ext |
8970 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
8971 |
> |
/* end confdefs.h. */ |
8972 |
> |
#if defined STDC_HEADERS || defined HAVE_STDLIB_H |
8973 |
> |
# include <stdlib.h> |
8974 |
> |
#else |
8975 |
> |
char *malloc (); |
8976 |
> |
#endif |
8977 |
> |
|
8978 |
> |
#ifdef FC_DUMMY_MAIN |
8979 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8980 |
> |
# ifdef __cplusplus |
8981 |
> |
extern "C" |
8982 |
> |
# endif |
8983 |
> |
int FC_DUMMY_MAIN() { return 1; } |
8984 |
> |
#endif |
8985 |
> |
#endif |
8986 |
> |
int |
8987 |
> |
main () |
8988 |
> |
{ |
8989 |
> |
return ! malloc (0); |
8990 |
> |
; |
8991 |
> |
return 0; |
8992 |
> |
} |
8993 |
> |
_ACEOF |
8994 |
> |
rm -rf conftest$ac_exeext |
8995 |
> |
if { (ac_try="$ac_link" |
8996 |
> |
case "(($ac_try" in |
8997 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8998 |
> |
*) ac_try_echo=$ac_try;; |
8999 |
> |
esac |
9000 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9001 |
> |
(eval "$ac_link") 2>&5 |
9002 |
> |
ac_status=$? |
9003 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9004 |
> |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
9005 |
> |
{ (case "(($ac_try" in |
9006 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9007 |
> |
*) ac_try_echo=$ac_try;; |
9008 |
> |
esac |
9009 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9010 |
> |
(eval "$ac_try") 2>&5 |
9011 |
> |
ac_status=$? |
9012 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9013 |
> |
(exit $ac_status); }; }; then |
9014 |
> |
ac_cv_func_malloc_0_nonnull=yes |
9015 |
> |
else |
9016 |
> |
echo "$as_me: program exited with status $ac_status" >&5 |
9017 |
> |
echo "$as_me: failed program was:" >&5 |
9018 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
9019 |
> |
|
9020 |
> |
( exit $ac_status ) |
9021 |
> |
ac_cv_func_malloc_0_nonnull=no |
9022 |
> |
fi |
9023 |
> |
rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
9024 |
> |
fi |
9025 |
> |
|
9026 |
> |
|
9027 |
> |
fi |
9028 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
9029 |
> |
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } |
9030 |
> |
if test $ac_cv_func_malloc_0_nonnull = yes; then |
9031 |
> |
|
9032 |
> |
cat >>confdefs.h <<\_ACEOF |
9033 |
> |
#define HAVE_MALLOC 1 |
9034 |
> |
_ACEOF |
9035 |
> |
|
9036 |
> |
else |
9037 |
> |
cat >>confdefs.h <<\_ACEOF |
9038 |
> |
#define HAVE_MALLOC 0 |
9039 |
> |
_ACEOF |
9040 |
> |
|
9041 |
> |
case " $LIBOBJS " in |
9042 |
> |
*" malloc.$ac_objext "* ) ;; |
9043 |
> |
*) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
9044 |
> |
;; |
9045 |
> |
esac |
9046 |
> |
|
9047 |
> |
|
9048 |
> |
cat >>confdefs.h <<\_ACEOF |
9049 |
> |
#define malloc rpl_malloc |
9050 |
> |
_ACEOF |
9051 |
> |
|
9052 |
> |
fi |
9053 |
> |
|
9054 |
> |
|
9055 |
> |
|
9056 |
> |
{ echo "$as_me:$LINENO: checking for working memcmp" >&5 |
9057 |
> |
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; } |
9058 |
> |
if test "${ac_cv_func_memcmp_working+set}" = set; then |
9059 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9060 |
> |
else |
9061 |
> |
if test "$cross_compiling" = yes; then |
9062 |
> |
ac_cv_func_memcmp_working=no |
9063 |
> |
else |
9064 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9065 |
> |
/* confdefs.h. */ |
9066 |
> |
_ACEOF |
9067 |
> |
cat confdefs.h >>conftest.$ac_ext |
9068 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
9069 |
> |
/* end confdefs.h. */ |
9070 |
> |
$ac_includes_default |
9071 |
> |
#ifdef FC_DUMMY_MAIN |
9072 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
9073 |
> |
# ifdef __cplusplus |
9074 |
> |
extern "C" |
9075 |
> |
# endif |
9076 |
> |
int FC_DUMMY_MAIN() { return 1; } |
9077 |
> |
#endif |
9078 |
> |
#endif |
9079 |
> |
int |
9080 |
> |
main () |
9081 |
> |
{ |
9082 |
> |
|
9083 |
> |
/* Some versions of memcmp are not 8-bit clean. */ |
9084 |
> |
char c0 = '\100', c1 = '\200', c2 = '\201'; |
9085 |
> |
if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
9086 |
> |
return 1; |
9087 |
> |
|
9088 |
> |
/* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
9089 |
> |
or more and with at least one buffer not starting on a 4-byte boundary. |
9090 |
> |
William Lewis provided this test program. */ |
9091 |
> |
{ |
9092 |
> |
char foo[21]; |
9093 |
> |
char bar[21]; |
9094 |
> |
int i; |
9095 |
> |
for (i = 0; i < 4; i++) |
9096 |
> |
{ |
9097 |
> |
char *a = foo + i; |
9098 |
> |
char *b = bar + i; |
9099 |
> |
strcpy (a, "--------01111111"); |
9100 |
> |
strcpy (b, "--------10000000"); |
9101 |
> |
if (memcmp (a, b, 16) >= 0) |
9102 |
> |
return 1; |
9103 |
> |
} |
9104 |
> |
return 0; |
9105 |
> |
} |
9106 |
> |
|
9107 |
> |
; |
9108 |
> |
return 0; |
9109 |
> |
} |
9110 |
> |
_ACEOF |
9111 |
> |
rm -rf conftest$ac_exeext |
9112 |
> |
if { (ac_try="$ac_link" |
9113 |
> |
case "(($ac_try" in |
9114 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9115 |
> |
*) ac_try_echo=$ac_try;; |
9116 |
> |
esac |
9117 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9118 |
> |
(eval "$ac_link") 2>&5 |
9119 |
> |
ac_status=$? |
9120 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9121 |
> |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
9122 |
> |
{ (case "(($ac_try" in |
9123 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9124 |
> |
*) ac_try_echo=$ac_try;; |
9125 |
> |
esac |
9126 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9127 |
> |
(eval "$ac_try") 2>&5 |
9128 |
> |
ac_status=$? |
9129 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9130 |
> |
(exit $ac_status); }; }; then |
9131 |
> |
ac_cv_func_memcmp_working=yes |
9132 |
> |
else |
9133 |
> |
echo "$as_me: program exited with status $ac_status" >&5 |
9134 |
> |
echo "$as_me: failed program was:" >&5 |
9135 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
9136 |
> |
|
9137 |
> |
( exit $ac_status ) |
9138 |
> |
ac_cv_func_memcmp_working=no |
9139 |
> |
fi |
9140 |
> |
rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
9141 |
> |
fi |
9142 |
> |
|
9143 |
> |
|
9144 |
> |
fi |
9145 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
9146 |
> |
echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; } |
9147 |
> |
test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
9148 |
> |
*" memcmp.$ac_objext "* ) ;; |
9149 |
> |
*) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
9150 |
> |
;; |
9151 |
> |
esac |
9152 |
> |
|
9153 |
> |
|
9154 |
> |
|
9155 |
> |
for ac_header in stdlib.h |
9156 |
> |
do |
9157 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
9158 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9159 |
> |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9160 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
9161 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9162 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9163 |
> |
fi |
9164 |
> |
ac_res=`eval echo '${'$as_ac_Header'}'` |
9165 |
> |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
9166 |
> |
echo "${ECHO_T}$ac_res" >&6; } |
9167 |
> |
else |
9168 |
> |
# Is the header compilable? |
9169 |
> |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9170 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
9171 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9172 |
> |
/* confdefs.h. */ |
9173 |
> |
_ACEOF |
9174 |
> |
cat confdefs.h >>conftest.$ac_ext |
9175 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
9176 |
> |
/* end confdefs.h. */ |
9177 |
> |
$ac_includes_default |
9178 |
> |
#include <$ac_header> |
9179 |
> |
_ACEOF |
9180 |
> |
rm -rf conftest.$ac_objext |
9181 |
> |
if { (ac_try="$ac_compile" |
9182 |
> |
case "(($ac_try" in |
9183 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9184 |
> |
*) ac_try_echo=$ac_try;; |
9185 |
> |
esac |
9186 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9187 |
> |
(eval "$ac_compile") 2>conftest.er1 |
9188 |
> |
ac_status=$? |
9189 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
9190 |
> |
rm -f conftest.er1 |
9191 |
> |
cat conftest.err >&5 |
9192 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9193 |
> |
(exit $ac_status); } && { |
9194 |
> |
test -z "$ac_c_werror_flag" || |
9195 |
> |
test ! -s conftest.err |
9196 |
> |
} && test -s conftest.$ac_objext; then |
9197 |
> |
ac_header_compiler=yes |
9198 |
> |
else |
9199 |
> |
echo "$as_me: failed program was:" >&5 |
9200 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
9201 |
> |
|
9202 |
> |
ac_header_compiler=no |
9203 |
> |
fi |
9204 |
> |
|
9205 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
9206 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9207 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
9208 |
> |
|
9209 |
> |
# Is the header present? |
9210 |
> |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9211 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
9212 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9213 |
> |
/* confdefs.h. */ |
9214 |
> |
_ACEOF |
9215 |
> |
cat confdefs.h >>conftest.$ac_ext |
9216 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
9217 |
> |
/* end confdefs.h. */ |
9218 |
> |
#include <$ac_header> |
9219 |
> |
_ACEOF |
9220 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
9221 |
> |
case "(($ac_try" in |
9222 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9223 |
> |
*) ac_try_echo=$ac_try;; |
9224 |
> |
esac |
9225 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9226 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
9227 |
> |
ac_status=$? |
9228 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
9229 |
> |
rm -f conftest.er1 |
9230 |
> |
cat conftest.err >&5 |
9231 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9232 |
> |
(exit $ac_status); } >/dev/null && { |
9233 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
9234 |
> |
test ! -s conftest.err |
9235 |
> |
}; then |
9236 |
> |
ac_header_preproc=yes |
9237 |
> |
else |
9238 |
> |
echo "$as_me: failed program was:" >&5 |
9239 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
9240 |
> |
|
9241 |
> |
ac_header_preproc=no |
9242 |
> |
fi |
9243 |
> |
|
9244 |
> |
rm -rf conftest.err conftest.$ac_ext |
9245 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9246 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
9247 |
> |
|
9248 |
> |
# So? What about this header? |
9249 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9250 |
> |
yes:no: ) |
9251 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9252 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9253 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9254 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
9255 |
> |
ac_header_preproc=yes |
9256 |
> |
;; |
9257 |
> |
no:yes:* ) |
9258 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9259 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
9260 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9261 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
9262 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
9263 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
9264 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
9265 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
9266 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9267 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
9268 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9269 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
9270 |
> |
( cat <<\_ASBOX |
9271 |
> |
## ------------------------------ ## |
9272 |
> |
## Report this to gezelter@nd.edu ## |
9273 |
> |
## ------------------------------ ## |
9274 |
> |
_ASBOX |
9275 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
9276 |
> |
;; |
9277 |
> |
esac |
9278 |
> |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9279 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
9280 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9281 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9282 |
> |
else |
9283 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
9284 |
> |
fi |
9285 |
> |
ac_res=`eval echo '${'$as_ac_Header'}'` |
9286 |
> |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
9287 |
> |
echo "${ECHO_T}$ac_res" >&6; } |
9288 |
> |
|
9289 |
> |
fi |
9290 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9291 |
> |
cat >>confdefs.h <<_ACEOF |
9292 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
9293 |
> |
_ACEOF |
9294 |
> |
|
9295 |
> |
fi |
9296 |
> |
|
9297 |
> |
done |
9298 |
> |
|
9299 |
> |
{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 |
9300 |
> |
echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; } |
9301 |
> |
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then |
9302 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9303 |
> |
else |
9304 |
> |
if test "$cross_compiling" = yes; then |
9305 |
> |
ac_cv_func_realloc_0_nonnull=no |
9306 |
> |
else |
9307 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9308 |
> |
/* confdefs.h. */ |
9309 |
> |
_ACEOF |
9310 |
> |
cat confdefs.h >>conftest.$ac_ext |
9311 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
9312 |
> |
/* end confdefs.h. */ |
9313 |
> |
#if defined STDC_HEADERS || defined HAVE_STDLIB_H |
9314 |
> |
# include <stdlib.h> |
9315 |
> |
#else |
9316 |
> |
char *realloc (); |
9317 |
> |
#endif |
9318 |
> |
|
9319 |
> |
#ifdef FC_DUMMY_MAIN |
9320 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
9321 |
> |
# ifdef __cplusplus |
9322 |
> |
extern "C" |
9323 |
> |
# endif |
9324 |
> |
int FC_DUMMY_MAIN() { return 1; } |
9325 |
> |
#endif |
9326 |
> |
#endif |
9327 |
> |
int |
9328 |
> |
main () |
9329 |
> |
{ |
9330 |
> |
return ! realloc (0, 0); |
9331 |
> |
; |
9332 |
> |
return 0; |
9333 |
> |
} |
9334 |
> |
_ACEOF |
9335 |
> |
rm -rf conftest$ac_exeext |
9336 |
> |
if { (ac_try="$ac_link" |
9337 |
> |
case "(($ac_try" in |
9338 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9339 |
> |
*) ac_try_echo=$ac_try;; |
9340 |
> |
esac |
9341 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9342 |
> |
(eval "$ac_link") 2>&5 |
9343 |
> |
ac_status=$? |
9344 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9345 |
> |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
9346 |
> |
{ (case "(($ac_try" in |
9347 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9348 |
> |
*) ac_try_echo=$ac_try;; |
9349 |
> |
esac |
9350 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9351 |
> |
(eval "$ac_try") 2>&5 |
9352 |
> |
ac_status=$? |
9353 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9354 |
> |
(exit $ac_status); }; }; then |
9355 |
> |
ac_cv_func_realloc_0_nonnull=yes |
9356 |
> |
else |
9357 |
> |
echo "$as_me: program exited with status $ac_status" >&5 |
9358 |
> |
echo "$as_me: failed program was:" >&5 |
9359 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
9360 |
> |
|
9361 |
> |
( exit $ac_status ) |
9362 |
> |
ac_cv_func_realloc_0_nonnull=no |
9363 |
> |
fi |
9364 |
> |
rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
9365 |
> |
fi |
9366 |
> |
|
9367 |
> |
|
9368 |
> |
fi |
9369 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 |
9370 |
> |
echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; } |
9371 |
> |
if test $ac_cv_func_realloc_0_nonnull = yes; then |
9372 |
> |
|
9373 |
> |
cat >>confdefs.h <<\_ACEOF |
9374 |
> |
#define HAVE_REALLOC 1 |
9375 |
> |
_ACEOF |
9376 |
> |
|
9377 |
> |
else |
9378 |
> |
cat >>confdefs.h <<\_ACEOF |
9379 |
> |
#define HAVE_REALLOC 0 |
9380 |
> |
_ACEOF |
9381 |
> |
|
9382 |
> |
case " $LIBOBJS " in |
9383 |
> |
*" realloc.$ac_objext "* ) ;; |
9384 |
> |
*) LIBOBJS="$LIBOBJS realloc.$ac_objext" |
9385 |
> |
;; |
9386 |
> |
esac |
9387 |
> |
|
9388 |
> |
|
9389 |
> |
cat >>confdefs.h <<\_ACEOF |
9390 |
> |
#define realloc rpl_realloc |
9391 |
> |
_ACEOF |
9392 |
> |
|
9393 |
> |
fi |
9394 |
> |
|
9395 |
> |
|
9396 |
> |
|
9397 |
> |
|
9398 |
> |
|
9399 |
> |
for ac_header in sys/select.h sys/socket.h |
9400 |
> |
do |
9401 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
9402 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9403 |
> |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9404 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
9405 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9406 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9407 |
> |
fi |
9408 |
> |
ac_res=`eval echo '${'$as_ac_Header'}'` |
9409 |
> |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
9410 |
> |
echo "${ECHO_T}$ac_res" >&6; } |
9411 |
> |
else |
9412 |
> |
# Is the header compilable? |
9413 |
> |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9414 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
9415 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9416 |
> |
/* confdefs.h. */ |
9417 |
> |
_ACEOF |
9418 |
> |
cat confdefs.h >>conftest.$ac_ext |
9419 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
9420 |
> |
/* end confdefs.h. */ |
9421 |
> |
$ac_includes_default |
9422 |
> |
#include <$ac_header> |
9423 |
> |
_ACEOF |
9424 |
> |
rm -rf conftest.$ac_objext |
9425 |
> |
if { (ac_try="$ac_compile" |
9426 |
> |
case "(($ac_try" in |
9427 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9428 |
> |
*) ac_try_echo=$ac_try;; |
9429 |
> |
esac |
9430 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9431 |
> |
(eval "$ac_compile") 2>conftest.er1 |
9432 |
> |
ac_status=$? |
9433 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
9434 |
> |
rm -f conftest.er1 |
9435 |
> |
cat conftest.err >&5 |
9436 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9437 |
> |
(exit $ac_status); } && { |
9438 |
> |
test -z "$ac_c_werror_flag" || |
9439 |
> |
test ! -s conftest.err |
9440 |
> |
} && test -s conftest.$ac_objext; then |
9441 |
> |
ac_header_compiler=yes |
9442 |
> |
else |
9443 |
> |
echo "$as_me: failed program was:" >&5 |
9444 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
9445 |
> |
|
9446 |
> |
ac_header_compiler=no |
9447 |
> |
fi |
9448 |
> |
|
9449 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
9450 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9451 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
9452 |
> |
|
9453 |
> |
# Is the header present? |
9454 |
> |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9455 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
9456 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9457 |
> |
/* confdefs.h. */ |
9458 |
> |
_ACEOF |
9459 |
> |
cat confdefs.h >>conftest.$ac_ext |
9460 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
9461 |
> |
/* end confdefs.h. */ |
9462 |
> |
#include <$ac_header> |
9463 |
> |
_ACEOF |
9464 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
9465 |
> |
case "(($ac_try" in |
9466 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9467 |
> |
*) ac_try_echo=$ac_try;; |
9468 |
> |
esac |
9469 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9470 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
9471 |
> |
ac_status=$? |
9472 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
9473 |
> |
rm -f conftest.er1 |
9474 |
> |
cat conftest.err >&5 |
9475 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9476 |
> |
(exit $ac_status); } >/dev/null && { |
9477 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
9478 |
> |
test ! -s conftest.err |
9479 |
> |
}; then |
9480 |
> |
ac_header_preproc=yes |
9481 |
> |
else |
9482 |
> |
echo "$as_me: failed program was:" >&5 |
9483 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
9484 |
> |
|
9485 |
> |
ac_header_preproc=no |
9486 |
> |
fi |
9487 |
> |
|
9488 |
> |
rm -rf conftest.err conftest.$ac_ext |
9489 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9490 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
9491 |
> |
|
9492 |
> |
# So? What about this header? |
9493 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9494 |
> |
yes:no: ) |
9495 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9496 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9497 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9498 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
9499 |
> |
ac_header_preproc=yes |
9500 |
> |
;; |
9501 |
> |
no:yes:* ) |
9502 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9503 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
9504 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9505 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
9506 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
9507 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
9508 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
9509 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
9510 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9511 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
9512 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9513 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
9514 |
> |
( cat <<\_ASBOX |
9515 |
> |
## ------------------------------ ## |
9516 |
> |
## Report this to gezelter@nd.edu ## |
9517 |
> |
## ------------------------------ ## |
9518 |
> |
_ASBOX |
9519 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
9520 |
> |
;; |
9521 |
> |
esac |
9522 |
> |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9523 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
9524 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9525 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9526 |
> |
else |
9527 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
9528 |
> |
fi |
9529 |
> |
ac_res=`eval echo '${'$as_ac_Header'}'` |
9530 |
> |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
9531 |
> |
echo "${ECHO_T}$ac_res" >&6; } |
9532 |
> |
|
9533 |
> |
fi |
9534 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9535 |
> |
cat >>confdefs.h <<_ACEOF |
9536 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
9537 |
> |
_ACEOF |
9538 |
> |
|
9539 |
> |
fi |
9540 |
> |
|
9541 |
> |
done |
9542 |
> |
|
9543 |
> |
{ echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
9544 |
> |
echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } |
9545 |
> |
if test "${ac_cv_func_select_args+set}" = set; then |
9546 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9547 |
> |
else |
9548 |
> |
for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
9549 |
> |
for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
9550 |
> |
for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
9551 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9552 |
> |
/* confdefs.h. */ |
9553 |
> |
_ACEOF |
9554 |
> |
cat confdefs.h >>conftest.$ac_ext |
9555 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
9556 |
> |
/* end confdefs.h. */ |
9557 |
> |
$ac_includes_default |
9558 |
> |
#ifdef HAVE_SYS_SELECT_H |
9559 |
> |
# include <sys/select.h> |
9560 |
> |
#endif |
9561 |
> |
#ifdef HAVE_SYS_SOCKET_H |
9562 |
> |
# include <sys/socket.h> |
9563 |
> |
#endif |
9564 |
> |
|
9565 |
> |
#ifdef FC_DUMMY_MAIN |
9566 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
9567 |
> |
# ifdef __cplusplus |
9568 |
> |
extern "C" |
9569 |
> |
# endif |
9570 |
> |
int FC_DUMMY_MAIN() { return 1; } |
9571 |
> |
#endif |
9572 |
> |
#endif |
9573 |
> |
int |
9574 |
> |
main () |
9575 |
> |
{ |
9576 |
> |
extern int select ($ac_arg1, |
9577 |
> |
$ac_arg234, $ac_arg234, $ac_arg234, |
9578 |
> |
$ac_arg5); |
9579 |
> |
; |
9580 |
> |
return 0; |
9581 |
> |
} |
9582 |
> |
_ACEOF |
9583 |
> |
rm -rf conftest.$ac_objext |
9584 |
> |
if { (ac_try="$ac_compile" |
9585 |
> |
case "(($ac_try" in |
9586 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9587 |
> |
*) ac_try_echo=$ac_try;; |
9588 |
> |
esac |
9589 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9590 |
> |
(eval "$ac_compile") 2>conftest.er1 |
9591 |
> |
ac_status=$? |
9592 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
9593 |
> |
rm -f conftest.er1 |
9594 |
> |
cat conftest.err >&5 |
9595 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9596 |
> |
(exit $ac_status); } && { |
9597 |
> |
test -z "$ac_c_werror_flag" || |
9598 |
> |
test ! -s conftest.err |
9599 |
> |
} && test -s conftest.$ac_objext; then |
9600 |
> |
ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
9601 |
> |
else |
9602 |
> |
echo "$as_me: failed program was:" >&5 |
9603 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
9604 |
> |
|
9605 |
> |
|
9606 |
> |
fi |
9607 |
> |
|
9608 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
9609 |
> |
done |
9610 |
> |
done |
9611 |
> |
done |
9612 |
> |
# Provide a safe default value. |
9613 |
> |
: ${ac_cv_func_select_args='int,int *,struct timeval *'} |
9614 |
> |
|
9615 |
> |
fi |
9616 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
9617 |
> |
echo "${ECHO_T}$ac_cv_func_select_args" >&6; } |
9618 |
> |
ac_save_IFS=$IFS; IFS=',' |
9619 |
> |
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` |
9620 |
> |
IFS=$ac_save_IFS |
9621 |
> |
shift |
9622 |
> |
|
9623 |
> |
cat >>confdefs.h <<_ACEOF |
9624 |
> |
#define SELECT_TYPE_ARG1 $1 |
9625 |
> |
_ACEOF |
9626 |
> |
|
9627 |
> |
|
9628 |
> |
cat >>confdefs.h <<_ACEOF |
9629 |
> |
#define SELECT_TYPE_ARG234 ($2) |
9630 |
> |
_ACEOF |
9631 |
> |
|
9632 |
> |
|
9633 |
> |
cat >>confdefs.h <<_ACEOF |
9634 |
> |
#define SELECT_TYPE_ARG5 ($3) |
9635 |
> |
_ACEOF |
9636 |
> |
|
9637 |
> |
rm -rf conftest* |
9638 |
> |
|
9639 |
> |
|
9640 |
> |
for ac_func in strftime |
9641 |
> |
do |
9642 |
> |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9643 |
> |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9644 |
> |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9645 |
> |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
9646 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9647 |
> |
else |
9648 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9649 |
> |
/* confdefs.h. */ |
9650 |
> |
_ACEOF |
9651 |
> |
cat confdefs.h >>conftest.$ac_ext |
9652 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
9653 |
> |
/* end confdefs.h. */ |
9654 |
> |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9655 |
> |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9656 |
> |
#define $ac_func innocuous_$ac_func |
9657 |
> |
|
9658 |
> |
/* System header to define __stub macros and hopefully few prototypes, |
9659 |
> |
which can conflict with char $ac_func (); below. |
9660 |
> |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9661 |
> |
<limits.h> exists even on freestanding compilers. */ |
9662 |
> |
|
9663 |
> |
#ifdef __STDC__ |
9664 |
> |
# include <limits.h> |
9665 |
> |
#else |
9666 |
> |
# include <assert.h> |
9667 |
> |
#endif |
9668 |
> |
|
9669 |
> |
#undef $ac_func |
9670 |
> |
|
9671 |
> |
/* Override any GCC internal prototype to avoid an error. |
9672 |
> |
Use char because int might match the return type of a GCC |
9673 |
> |
builtin and then its argument prototype would still apply. */ |
9674 |
> |
#ifdef __cplusplus |
9675 |
> |
extern "C" |
9676 |
> |
#endif |
9677 |
> |
char $ac_func (); |
9678 |
> |
/* The GNU C library defines this for functions which it implements |
9679 |
> |
to always fail with ENOSYS. Some functions are actually named |
9680 |
> |
something starting with __ and the normal name is an alias. */ |
9681 |
> |
#if defined __stub_$ac_func || defined __stub___$ac_func |
9682 |
> |
choke me |
9683 |
> |
#endif |
9684 |
> |
|
9685 |
> |
#ifdef FC_DUMMY_MAIN |
9686 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
9687 |
> |
# ifdef __cplusplus |
9688 |
> |
extern "C" |
9689 |
> |
# endif |
9690 |
> |
int FC_DUMMY_MAIN() { return 1; } |
9691 |
> |
#endif |
9692 |
> |
#endif |
9693 |
> |
int |
9694 |
> |
main () |
9695 |
> |
{ |
9696 |
> |
return $ac_func (); |
9697 |
> |
; |
9698 |
> |
return 0; |
9699 |
> |
} |
9700 |
> |
_ACEOF |
9701 |
> |
rm -rf conftest.$ac_objext conftest$ac_exeext |
9702 |
> |
if { (ac_try="$ac_link" |
9703 |
> |
case "(($ac_try" in |
9704 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9705 |
> |
*) ac_try_echo=$ac_try;; |
9706 |
> |
esac |
9707 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9708 |
> |
(eval "$ac_link") 2>conftest.er1 |
9709 |
> |
ac_status=$? |
9710 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
9711 |
> |
rm -f conftest.er1 |
9712 |
> |
cat conftest.err >&5 |
9713 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9714 |
> |
(exit $ac_status); } && { |
9715 |
> |
test -z "$ac_c_werror_flag" || |
9716 |
> |
test ! -s conftest.err |
9717 |
> |
} && test -s conftest$ac_exeext && |
9718 |
> |
$as_test_x conftest$ac_exeext; then |
9719 |
> |
eval "$as_ac_var=yes" |
9720 |
> |
else |
9721 |
> |
echo "$as_me: failed program was:" >&5 |
9722 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
9723 |
> |
|
9724 |
> |
eval "$as_ac_var=no" |
9725 |
> |
fi |
9726 |
> |
|
9727 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9728 |
> |
conftest$ac_exeext conftest.$ac_ext |
9729 |
> |
fi |
9730 |
> |
ac_res=`eval echo '${'$as_ac_var'}'` |
9731 |
> |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
9732 |
> |
echo "${ECHO_T}$ac_res" >&6; } |
9733 |
> |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
9734 |
> |
cat >>confdefs.h <<_ACEOF |
9735 |
> |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
9736 |
> |
_ACEOF |
9737 |
> |
|
9738 |
> |
else |
9739 |
> |
# strftime is in -lintl on SCO UNIX. |
9740 |
> |
{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 |
9741 |
> |
echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } |
9742 |
> |
if test "${ac_cv_lib_intl_strftime+set}" = set; then |
9743 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9744 |
> |
else |
9745 |
> |
ac_check_lib_save_LIBS=$LIBS |
9746 |
> |
LIBS="-lintl $LIBS" |
9747 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9748 |
> |
/* confdefs.h. */ |
9749 |
> |
_ACEOF |
9750 |
> |
cat confdefs.h >>conftest.$ac_ext |
9751 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
9752 |
> |
/* end confdefs.h. */ |
9753 |
> |
|
9754 |
> |
/* Override any GCC internal prototype to avoid an error. |
9755 |
> |
Use char because int might match the return type of a GCC |
9756 |
> |
builtin and then its argument prototype would still apply. */ |
9757 |
> |
#ifdef __cplusplus |
9758 |
> |
extern "C" |
9759 |
> |
#endif |
9760 |
> |
char strftime (); |
9761 |
> |
#ifdef FC_DUMMY_MAIN |
9762 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
9763 |
> |
# ifdef __cplusplus |
9764 |
> |
extern "C" |
9765 |
> |
# endif |
9766 |
> |
int FC_DUMMY_MAIN() { return 1; } |
9767 |
> |
#endif |
9768 |
> |
#endif |
9769 |
> |
int |
9770 |
> |
main () |
9771 |
> |
{ |
9772 |
> |
return strftime (); |
9773 |
> |
; |
9774 |
> |
return 0; |
9775 |
> |
} |
9776 |
> |
_ACEOF |
9777 |
> |
rm -rf conftest.$ac_objext conftest$ac_exeext |
9778 |
> |
if { (ac_try="$ac_link" |
9779 |
> |
case "(($ac_try" in |
9780 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9781 |
> |
*) ac_try_echo=$ac_try;; |
9782 |
> |
esac |
9783 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9784 |
> |
(eval "$ac_link") 2>conftest.er1 |
9785 |
> |
ac_status=$? |
9786 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
9787 |
> |
rm -f conftest.er1 |
9788 |
> |
cat conftest.err >&5 |
9789 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9790 |
> |
(exit $ac_status); } && { |
9791 |
> |
test -z "$ac_c_werror_flag" || |
9792 |
> |
test ! -s conftest.err |
9793 |
> |
} && test -s conftest$ac_exeext && |
9794 |
> |
$as_test_x conftest$ac_exeext; then |
9795 |
> |
ac_cv_lib_intl_strftime=yes |
9796 |
> |
else |
9797 |
> |
echo "$as_me: failed program was:" >&5 |
9798 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
9799 |
> |
|
9800 |
> |
ac_cv_lib_intl_strftime=no |
9801 |
> |
fi |
9802 |
> |
|
9803 |
> |
rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9804 |
> |
conftest$ac_exeext conftest.$ac_ext |
9805 |
> |
LIBS=$ac_check_lib_save_LIBS |
9806 |
> |
fi |
9807 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 |
9808 |
> |
echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } |
9809 |
> |
if test $ac_cv_lib_intl_strftime = yes; then |
9810 |
> |
cat >>confdefs.h <<\_ACEOF |
9811 |
> |
#define HAVE_STRFTIME 1 |
9812 |
> |
_ACEOF |
9813 |
> |
|
9814 |
> |
LIBS="-lintl $LIBS" |
9815 |
> |
fi |
9816 |
> |
|
9817 |
> |
fi |
9818 |
> |
done |
9819 |
> |
|
9820 |
> |
{ echo "$as_me:$LINENO: checking for working strtod" >&5 |
9821 |
> |
echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; } |
9822 |
> |
if test "${ac_cv_func_strtod+set}" = set; then |
9823 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9824 |
> |
else |
9825 |
> |
if test "$cross_compiling" = yes; then |
9826 |
> |
ac_cv_func_strtod=no |
9827 |
> |
else |
9828 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9829 |
> |
/* confdefs.h. */ |
9830 |
> |
_ACEOF |
9831 |
> |
cat confdefs.h >>conftest.$ac_ext |
9832 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
9833 |
> |
/* end confdefs.h. */ |
9834 |
> |
|
9835 |
> |
$ac_includes_default |
9836 |
> |
#ifndef strtod |
9837 |
> |
double strtod (); |
9838 |
> |
#endif |
9839 |
> |
int |
9840 |
> |
main() |
9841 |
> |
{ |
9842 |
> |
{ |
9843 |
> |
/* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
9844 |
> |
char *string = " +69"; |
9845 |
> |
char *term; |
9846 |
> |
double value; |
9847 |
> |
value = strtod (string, &term); |
9848 |
> |
if (value != 69 || term != (string + 4)) |
9849 |
> |
return 1; |
9850 |
> |
} |
9851 |
> |
|
9852 |
> |
{ |
9853 |
> |
/* Under Solaris 2.4, strtod returns the wrong value for the |
9854 |
> |
terminating character under some conditions. */ |
9855 |
> |
char *string = "NaN"; |
9856 |
> |
char *term; |
9857 |
> |
strtod (string, &term); |
9858 |
> |
if (term != string && *(term - 1) == 0) |
9859 |
> |
return 1; |
9860 |
> |
} |
9861 |
> |
return 0; |
9862 |
> |
} |
9863 |
> |
|
9864 |
> |
_ACEOF |
9865 |
> |
rm -f conftest$ac_exeext |
9866 |
> |
if { (ac_try="$ac_link" |
9867 |
> |
case "(($ac_try" in |
9868 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9869 |
> |
*) ac_try_echo=$ac_try;; |
9870 |
> |
esac |
9871 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9872 |
> |
(eval "$ac_link") 2>&5 |
9873 |
> |
ac_status=$? |
9874 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9875 |
> |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
9876 |
> |
{ (case "(($ac_try" in |
9877 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9878 |
> |
*) ac_try_echo=$ac_try;; |
9879 |
> |
esac |
9880 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9881 |
> |
(eval "$ac_try") 2>&5 |
9882 |
> |
ac_status=$? |
9883 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9884 |
> |
(exit $ac_status); }; }; then |
9885 |
> |
ac_cv_func_strtod=yes |
9886 |
> |
else |
9887 |
> |
echo "$as_me: program exited with status $ac_status" >&5 |
9888 |
> |
echo "$as_me: failed program was:" >&5 |
9889 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
9890 |
> |
|
9891 |
> |
( exit $ac_status ) |
9892 |
> |
ac_cv_func_strtod=no |
9893 |
> |
fi |
9894 |
> |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
9895 |
> |
fi |
9896 |
> |
|
9897 |
> |
|
9898 |
> |
fi |
9899 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
9900 |
> |
echo "${ECHO_T}$ac_cv_func_strtod" >&6; } |
9901 |
> |
if test $ac_cv_func_strtod = no; then |
9902 |
> |
case " $LIBOBJS " in |
9903 |
> |
*" strtod.$ac_objext "* ) ;; |
9904 |
> |
*) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
9905 |
> |
;; |
9906 |
> |
esac |
9907 |
> |
|
9908 |
> |
{ echo "$as_me:$LINENO: checking for pow" >&5 |
9909 |
> |
echo $ECHO_N "checking for pow... $ECHO_C" >&6; } |
9910 |
> |
if test "${ac_cv_func_pow+set}" = set; then |
9911 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9912 |
> |
else |
9913 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9914 |
> |
/* confdefs.h. */ |
9915 |
> |
_ACEOF |
9916 |
> |
cat confdefs.h >>conftest.$ac_ext |
9917 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
9918 |
> |
/* end confdefs.h. */ |
9919 |
> |
/* Define pow to an innocuous variant, in case <limits.h> declares pow. |
9920 |
> |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9921 |
> |
#define pow innocuous_pow |
9922 |
> |
|
9923 |
> |
/* System header to define __stub macros and hopefully few prototypes, |
9924 |
> |
which can conflict with char pow (); below. |
9925 |
> |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9926 |
> |
<limits.h> exists even on freestanding compilers. */ |
9927 |
> |
|
9928 |
> |
#ifdef __STDC__ |
9929 |
> |
# include <limits.h> |
9930 |
> |
#else |
9931 |
> |
# include <assert.h> |
9932 |
> |
#endif |
9933 |
> |
|
9934 |
> |
#undef pow |
9935 |
> |
|
9936 |
> |
/* Override any GCC internal prototype to avoid an error. |
9937 |
> |
Use char because int might match the return type of a GCC |
9938 |
> |
builtin and then its argument prototype would still apply. */ |
9939 |
> |
#ifdef __cplusplus |
9940 |
> |
extern "C" |
9941 |
> |
#endif |
9942 |
> |
char pow (); |
9943 |
> |
/* The GNU C library defines this for functions which it implements |
9944 |
> |
to always fail with ENOSYS. Some functions are actually named |
9945 |
> |
something starting with __ and the normal name is an alias. */ |
9946 |
> |
#if defined __stub_pow || defined __stub___pow |
9947 |
> |
choke me |
9948 |
> |
#endif |
9949 |
> |
|
9950 |
> |
#ifdef FC_DUMMY_MAIN |
9951 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
9952 |
> |
# ifdef __cplusplus |
9953 |
> |
extern "C" |
9954 |
> |
# endif |
9955 |
> |
int FC_DUMMY_MAIN() { return 1; } |
9956 |
> |
#endif |
9957 |
> |
#endif |
9958 |
> |
int |
9959 |
> |
main () |
9960 |
> |
{ |
9961 |
> |
return pow (); |
9962 |
> |
; |
9963 |
> |
return 0; |
9964 |
> |
} |
9965 |
> |
_ACEOF |
9966 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
9967 |
> |
if { (ac_try="$ac_link" |
9968 |
> |
case "(($ac_try" in |
9969 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9970 |
> |
*) ac_try_echo=$ac_try;; |
9971 |
> |
esac |
9972 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9973 |
> |
(eval "$ac_link") 2>conftest.er1 |
9974 |
> |
ac_status=$? |
9975 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
9976 |
> |
rm -f conftest.er1 |
9977 |
> |
cat conftest.err >&5 |
9978 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9979 |
> |
(exit $ac_status); } && { |
9980 |
> |
test -z "$ac_c_werror_flag" || |
9981 |
> |
test ! -s conftest.err |
9982 |
> |
} && test -s conftest$ac_exeext && |
9983 |
> |
$as_test_x conftest$ac_exeext; then |
9984 |
> |
ac_cv_func_pow=yes |
9985 |
> |
else |
9986 |
> |
echo "$as_me: failed program was:" >&5 |
9987 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
9988 |
> |
|
9989 |
> |
ac_cv_func_pow=no |
9990 |
> |
fi |
9991 |
> |
|
9992 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9993 |
> |
conftest$ac_exeext conftest.$ac_ext |
9994 |
> |
fi |
9995 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
9996 |
> |
echo "${ECHO_T}$ac_cv_func_pow" >&6; } |
9997 |
> |
|
9998 |
> |
if test $ac_cv_func_pow = no; then |
9999 |
> |
{ echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
10000 |
> |
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } |
10001 |
> |
if test "${ac_cv_lib_m_pow+set}" = set; then |
10002 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10003 |
> |
else |
10004 |
> |
ac_check_lib_save_LIBS=$LIBS |
10005 |
> |
LIBS="-lm $LIBS" |
10006 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10007 |
> |
/* confdefs.h. */ |
10008 |
> |
_ACEOF |
10009 |
> |
cat confdefs.h >>conftest.$ac_ext |
10010 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
10011 |
> |
/* end confdefs.h. */ |
10012 |
> |
|
10013 |
> |
/* Override any GCC internal prototype to avoid an error. |
10014 |
> |
Use char because int might match the return type of a GCC |
10015 |
> |
builtin and then its argument prototype would still apply. */ |
10016 |
> |
#ifdef __cplusplus |
10017 |
> |
extern "C" |
10018 |
> |
#endif |
10019 |
> |
char pow (); |
10020 |
> |
#ifdef FC_DUMMY_MAIN |
10021 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10022 |
> |
# ifdef __cplusplus |
10023 |
> |
extern "C" |
10024 |
> |
# endif |
10025 |
> |
int FC_DUMMY_MAIN() { return 1; } |
10026 |
> |
#endif |
10027 |
> |
#endif |
10028 |
> |
int |
10029 |
> |
main () |
10030 |
> |
{ |
10031 |
> |
return pow (); |
10032 |
> |
; |
10033 |
> |
return 0; |
10034 |
> |
} |
10035 |
> |
_ACEOF |
10036 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
10037 |
> |
if { (ac_try="$ac_link" |
10038 |
> |
case "(($ac_try" in |
10039 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10040 |
> |
*) ac_try_echo=$ac_try;; |
10041 |
> |
esac |
10042 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10043 |
> |
(eval "$ac_link") 2>conftest.er1 |
10044 |
> |
ac_status=$? |
10045 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
10046 |
> |
rm -f conftest.er1 |
10047 |
> |
cat conftest.err >&5 |
10048 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10049 |
> |
(exit $ac_status); } && { |
10050 |
> |
test -z "$ac_c_werror_flag" || |
10051 |
> |
test ! -s conftest.err |
10052 |
> |
} && test -s conftest$ac_exeext && |
10053 |
> |
$as_test_x conftest$ac_exeext; then |
10054 |
> |
ac_cv_lib_m_pow=yes |
10055 |
> |
else |
10056 |
> |
echo "$as_me: failed program was:" >&5 |
10057 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
10058 |
> |
|
10059 |
> |
ac_cv_lib_m_pow=no |
10060 |
> |
fi |
10061 |
> |
|
10062 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10063 |
> |
conftest$ac_exeext conftest.$ac_ext |
10064 |
> |
LIBS=$ac_check_lib_save_LIBS |
10065 |
> |
fi |
10066 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
10067 |
> |
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } |
10068 |
> |
if test $ac_cv_lib_m_pow = yes; then |
10069 |
> |
POW_LIB=-lm |
10070 |
> |
else |
10071 |
> |
{ echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
10072 |
> |
echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
10073 |
> |
fi |
10074 |
> |
|
10075 |
> |
fi |
10076 |
> |
|
10077 |
> |
fi |
10078 |
> |
|
10079 |
> |
|
10080 |
> |
|
10081 |
> |
|
10082 |
> |
|
10083 |
> |
|
10084 |
> |
|
10085 |
> |
|
10086 |
> |
|
10087 |
> |
|
10088 |
> |
|
10089 |
> |
|
10090 |
> |
|
10091 |
> |
|
10092 |
> |
|
10093 |
> |
|
10094 |
> |
|
10095 |
> |
|
10096 |
> |
|
10097 |
> |
|
10098 |
> |
|
10099 |
> |
|
10100 |
> |
|
10101 |
> |
|
10102 |
> |
|
10103 |
> |
|
10104 |
> |
|
10105 |
> |
|
10106 |
> |
for ac_func in floor getpagesize gettimeofday memchr memmove memset pow pstat_getdynamic pstat_getstatic rint select snprintf sranddev sqrt strcasecmp strchr strdup stricmp strncasecmp strnicmp strrchr strstr strtol sysmp getsysinfo sysctl table |
10107 |
> |
do |
10108 |
> |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10109 |
> |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10110 |
> |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
10111 |
> |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
10112 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10113 |
> |
else |
10114 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10115 |
> |
/* confdefs.h. */ |
10116 |
> |
_ACEOF |
10117 |
> |
cat confdefs.h >>conftest.$ac_ext |
10118 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
10119 |
> |
/* end confdefs.h. */ |
10120 |
> |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10121 |
> |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
10122 |
> |
#define $ac_func innocuous_$ac_func |
10123 |
> |
|
10124 |
> |
/* System header to define __stub macros and hopefully few prototypes, |
10125 |
> |
which can conflict with char $ac_func (); below. |
10126 |
> |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10127 |
> |
<limits.h> exists even on freestanding compilers. */ |
10128 |
> |
|
10129 |
> |
#ifdef __STDC__ |
10130 |
> |
# include <limits.h> |
10131 |
> |
#else |
10132 |
> |
# include <assert.h> |
10133 |
> |
#endif |
10134 |
> |
|
10135 |
> |
#undef $ac_func |
10136 |
> |
|
10137 |
> |
/* Override any GCC internal prototype to avoid an error. |
10138 |
> |
Use char because int might match the return type of a GCC |
10139 |
> |
builtin and then its argument prototype would still apply. */ |
10140 |
> |
#ifdef __cplusplus |
10141 |
> |
extern "C" |
10142 |
> |
#endif |
10143 |
> |
char $ac_func (); |
10144 |
> |
/* The GNU C library defines this for functions which it implements |
10145 |
> |
to always fail with ENOSYS. Some functions are actually named |
10146 |
> |
something starting with __ and the normal name is an alias. */ |
10147 |
> |
#if defined __stub_$ac_func || defined __stub___$ac_func |
10148 |
> |
choke me |
10149 |
> |
#endif |
10150 |
> |
|
10151 |
> |
#ifdef FC_DUMMY_MAIN |
10152 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10153 |
> |
# ifdef __cplusplus |
10154 |
> |
extern "C" |
10155 |
> |
# endif |
10156 |
> |
int FC_DUMMY_MAIN() { return 1; } |
10157 |
> |
#endif |
10158 |
> |
#endif |
10159 |
> |
int |
10160 |
> |
main () |
10161 |
> |
{ |
10162 |
> |
return $ac_func (); |
10163 |
> |
; |
10164 |
> |
return 0; |
10165 |
> |
} |
10166 |
> |
_ACEOF |
10167 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
10168 |
> |
if { (ac_try="$ac_link" |
10169 |
> |
case "(($ac_try" in |
10170 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10171 |
> |
*) ac_try_echo=$ac_try;; |
10172 |
> |
esac |
10173 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10174 |
> |
(eval "$ac_link") 2>conftest.er1 |
10175 |
> |
ac_status=$? |
10176 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
10177 |
> |
rm -f conftest.er1 |
10178 |
> |
cat conftest.err >&5 |
10179 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10180 |
> |
(exit $ac_status); } && { |
10181 |
> |
test -z "$ac_c_werror_flag" || |
10182 |
> |
test ! -s conftest.err |
10183 |
> |
} && test -s conftest$ac_exeext && |
10184 |
> |
$as_test_x conftest$ac_exeext; then |
10185 |
> |
eval "$as_ac_var=yes" |
10186 |
> |
else |
10187 |
> |
echo "$as_me: failed program was:" >&5 |
10188 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
10189 |
> |
|
10190 |
> |
eval "$as_ac_var=no" |
10191 |
> |
fi |
10192 |
> |
|
10193 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10194 |
> |
conftest$ac_exeext conftest.$ac_ext |
10195 |
> |
fi |
10196 |
> |
ac_res=`eval echo '${'$as_ac_var'}'` |
10197 |
> |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
10198 |
> |
echo "${ECHO_T}$ac_res" >&6; } |
10199 |
> |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
10200 |
> |
cat >>confdefs.h <<_ACEOF |
10201 |
> |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
10202 |
> |
_ACEOF |
10203 |
> |
|
10204 |
> |
fi |
10205 |
> |
done |
10206 |
> |
|
10207 |
> |
|
10208 |
> |
# special check for _system_configuration because AIX <4.3.2 do not |
10209 |
> |
# contain the `physmem' member. |
10210 |
> |
{ echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5 |
10211 |
> |
echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6; } |
10212 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10213 |
> |
/* confdefs.h. */ |
10214 |
> |
_ACEOF |
10215 |
> |
cat confdefs.h >>conftest.$ac_ext |
10216 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
10217 |
> |
/* end confdefs.h. */ |
10218 |
> |
#include <sys/systemcfg.h> |
10219 |
> |
#ifdef FC_DUMMY_MAIN |
10220 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10221 |
> |
# ifdef __cplusplus |
10222 |
> |
extern "C" |
10223 |
> |
# endif |
10224 |
> |
int FC_DUMMY_MAIN() { return 1; } |
10225 |
> |
#endif |
10226 |
> |
#endif |
10227 |
> |
int |
10228 |
> |
main () |
10229 |
> |
{ |
10230 |
> |
double x = _system_configuration.physmem; |
10231 |
> |
; |
10232 |
> |
return 0; |
10233 |
> |
} |
10234 |
> |
_ACEOF |
10235 |
> |
rm -f conftest.$ac_objext |
10236 |
> |
if { (ac_try="$ac_compile" |
10237 |
> |
case "(($ac_try" in |
10238 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10239 |
> |
*) ac_try_echo=$ac_try;; |
10240 |
> |
esac |
10241 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10242 |
> |
(eval "$ac_compile") 2>conftest.er1 |
10243 |
> |
ac_status=$? |
10244 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
10245 |
> |
rm -f conftest.er1 |
10246 |
> |
cat conftest.err >&5 |
10247 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10248 |
> |
(exit $ac_status); } && { |
10249 |
> |
test -z "$ac_c_werror_flag" || |
10250 |
> |
test ! -s conftest.err |
10251 |
> |
} && test -s conftest.$ac_objext; then |
10252 |
> |
{ echo "$as_me:$LINENO: result: yes" >&5 |
10253 |
> |
echo "${ECHO_T}yes" >&6; } |
10254 |
> |
|
10255 |
> |
cat >>confdefs.h <<\_ACEOF |
10256 |
> |
#define HAVE__SYSTEM_CONFIGURATION 1 |
10257 |
> |
_ACEOF |
10258 |
> |
|
10259 |
> |
else |
10260 |
> |
echo "$as_me: failed program was:" >&5 |
10261 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
10262 |
> |
|
10263 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
10264 |
> |
echo "${ECHO_T}no" >&6; } |
10265 |
> |
fi |
10266 |
> |
|
10267 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10268 |
> |
|
10269 |
> |
# clean out junk possibly left behind by a previous configuration |
10270 |
> |
rm -f src/getopt.h |
10271 |
> |
# Check for getopt_long support |
10272 |
> |
|
10273 |
> |
for ac_header in getopt.h |
10274 |
> |
do |
10275 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10276 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10277 |
> |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10278 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10279 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10280 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10281 |
> |
fi |
10282 |
> |
ac_res=`eval echo '${'$as_ac_Header'}'` |
10283 |
> |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
10284 |
> |
echo "${ECHO_T}$ac_res" >&6; } |
10285 |
> |
else |
10286 |
> |
# Is the header compilable? |
10287 |
> |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10288 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10289 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10290 |
> |
/* confdefs.h. */ |
10291 |
> |
_ACEOF |
10292 |
> |
cat confdefs.h >>conftest.$ac_ext |
10293 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
10294 |
> |
/* end confdefs.h. */ |
10295 |
> |
$ac_includes_default |
10296 |
> |
#include <$ac_header> |
10297 |
> |
_ACEOF |
10298 |
> |
rm -f conftest.$ac_objext |
10299 |
> |
if { (ac_try="$ac_compile" |
10300 |
> |
case "(($ac_try" in |
10301 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10302 |
> |
*) ac_try_echo=$ac_try;; |
10303 |
> |
esac |
10304 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10305 |
> |
(eval "$ac_compile") 2>conftest.er1 |
10306 |
> |
ac_status=$? |
10307 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
10308 |
> |
rm -f conftest.er1 |
10309 |
> |
cat conftest.err >&5 |
10310 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10311 |
> |
(exit $ac_status); } && { |
10312 |
> |
test -z "$ac_c_werror_flag" || |
10313 |
> |
test ! -s conftest.err |
10314 |
> |
} && test -s conftest.$ac_objext; then |
10315 |
> |
ac_header_compiler=yes |
10316 |
> |
else |
10317 |
> |
echo "$as_me: failed program was:" >&5 |
10318 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
10319 |
> |
|
10320 |
> |
ac_header_compiler=no |
10321 |
> |
fi |
10322 |
> |
|
10323 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10324 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10325 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
10326 |
> |
|
10327 |
> |
# Is the header present? |
10328 |
> |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10329 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10330 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10331 |
> |
/* confdefs.h. */ |
10332 |
> |
_ACEOF |
10333 |
> |
cat confdefs.h >>conftest.$ac_ext |
10334 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
10335 |
> |
/* end confdefs.h. */ |
10336 |
> |
#include <$ac_header> |
10337 |
> |
_ACEOF |
10338 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
10339 |
> |
case "(($ac_try" in |
10340 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10341 |
> |
*) ac_try_echo=$ac_try;; |
10342 |
> |
esac |
10343 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10344 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
10345 |
> |
ac_status=$? |
10346 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
10347 |
> |
rm -f conftest.er1 |
10348 |
> |
cat conftest.err >&5 |
10349 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10350 |
> |
(exit $ac_status); } >/dev/null && { |
10351 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
10352 |
> |
test ! -s conftest.err |
10353 |
> |
}; then |
10354 |
> |
ac_header_preproc=yes |
10355 |
> |
else |
10356 |
> |
echo "$as_me: failed program was:" >&5 |
10357 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
10358 |
> |
|
10359 |
> |
ac_header_preproc=no |
10360 |
> |
fi |
10361 |
> |
|
10362 |
> |
rm -f conftest.err conftest.$ac_ext |
10363 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10364 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
10365 |
> |
|
10366 |
> |
# So? What about this header? |
10367 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10368 |
> |
yes:no: ) |
10369 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10370 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10371 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10372 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10373 |
> |
ac_header_preproc=yes |
10374 |
> |
;; |
10375 |
> |
no:yes:* ) |
10376 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10377 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10378 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10379 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10380 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10381 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10382 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10383 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10384 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10385 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10386 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10387 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10388 |
> |
( cat <<\_ASBOX |
10389 |
> |
## ------------------------------ ## |
10390 |
> |
## Report this to gezelter@nd.edu ## |
10391 |
> |
## ------------------------------ ## |
10392 |
> |
_ASBOX |
10393 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
10394 |
> |
;; |
10395 |
> |
esac |
10396 |
> |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10397 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10398 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10399 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10400 |
> |
else |
10401 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
10402 |
> |
fi |
10403 |
> |
ac_res=`eval echo '${'$as_ac_Header'}'` |
10404 |
> |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
10405 |
> |
echo "${ECHO_T}$ac_res" >&6; } |
10406 |
> |
|
10407 |
> |
fi |
10408 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10409 |
> |
cat >>confdefs.h <<_ACEOF |
10410 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
10411 |
> |
_ACEOF |
10412 |
> |
|
10413 |
> |
fi |
10414 |
> |
|
10415 |
> |
done |
10416 |
> |
|
10417 |
> |
|
10418 |
> |
for ac_func in getopt_long |
10419 |
> |
do |
10420 |
> |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10421 |
> |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10422 |
> |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
10423 |
> |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
10424 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10425 |
> |
else |
10426 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10427 |
> |
/* confdefs.h. */ |
10428 |
> |
_ACEOF |
10429 |
> |
cat confdefs.h >>conftest.$ac_ext |
10430 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
10431 |
> |
/* end confdefs.h. */ |
10432 |
> |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10433 |
> |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
10434 |
> |
#define $ac_func innocuous_$ac_func |
10435 |
> |
|
10436 |
> |
/* System header to define __stub macros and hopefully few prototypes, |
10437 |
> |
which can conflict with char $ac_func (); below. |
10438 |
> |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10439 |
> |
<limits.h> exists even on freestanding compilers. */ |
10440 |
> |
|
10441 |
> |
#ifdef __STDC__ |
10442 |
> |
# include <limits.h> |
10443 |
> |
#else |
10444 |
> |
# include <assert.h> |
10445 |
> |
#endif |
10446 |
> |
|
10447 |
> |
#undef $ac_func |
10448 |
> |
|
10449 |
> |
/* Override any GCC internal prototype to avoid an error. |
10450 |
> |
Use char because int might match the return type of a GCC |
10451 |
> |
builtin and then its argument prototype would still apply. */ |
10452 |
> |
#ifdef __cplusplus |
10453 |
> |
extern "C" |
10454 |
> |
#endif |
10455 |
> |
char $ac_func (); |
10456 |
> |
/* The GNU C library defines this for functions which it implements |
10457 |
> |
to always fail with ENOSYS. Some functions are actually named |
10458 |
> |
something starting with __ and the normal name is an alias. */ |
10459 |
> |
#if defined __stub_$ac_func || defined __stub___$ac_func |
10460 |
> |
choke me |
10461 |
> |
#endif |
10462 |
> |
|
10463 |
> |
#ifdef FC_DUMMY_MAIN |
10464 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10465 |
> |
# ifdef __cplusplus |
10466 |
> |
extern "C" |
10467 |
> |
# endif |
10468 |
> |
int FC_DUMMY_MAIN() { return 1; } |
10469 |
> |
#endif |
10470 |
> |
#endif |
10471 |
> |
int |
10472 |
> |
main () |
10473 |
> |
{ |
10474 |
> |
return $ac_func (); |
10475 |
> |
; |
10476 |
> |
return 0; |
10477 |
> |
} |
10478 |
> |
_ACEOF |
10479 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
10480 |
> |
if { (ac_try="$ac_link" |
10481 |
> |
case "(($ac_try" in |
10482 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10483 |
> |
*) ac_try_echo=$ac_try;; |
10484 |
> |
esac |
10485 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10486 |
> |
(eval "$ac_link") 2>conftest.er1 |
10487 |
> |
ac_status=$? |
10488 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
10489 |
> |
rm -f conftest.er1 |
10490 |
> |
cat conftest.err >&5 |
10491 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10492 |
> |
(exit $ac_status); } && { |
10493 |
> |
test -z "$ac_c_werror_flag" || |
10494 |
> |
test ! -s conftest.err |
10495 |
> |
} && test -s conftest$ac_exeext && |
10496 |
> |
$as_test_x conftest$ac_exeext; then |
10497 |
> |
eval "$as_ac_var=yes" |
10498 |
> |
else |
10499 |
> |
echo "$as_me: failed program was:" >&5 |
10500 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
10501 |
> |
|
10502 |
> |
eval "$as_ac_var=no" |
10503 |
> |
fi |
10504 |
> |
|
10505 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10506 |
> |
conftest$ac_exeext conftest.$ac_ext |
10507 |
> |
fi |
10508 |
> |
ac_res=`eval echo '${'$as_ac_var'}'` |
10509 |
> |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
10510 |
> |
echo "${ECHO_T}$ac_res" >&6; } |
10511 |
> |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
10512 |
> |
cat >>confdefs.h <<_ACEOF |
10513 |
> |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
10514 |
> |
_ACEOF |
10515 |
> |
|
10516 |
> |
else |
10517 |
> |
# FreeBSD has a gnugetopt library for this |
10518 |
> |
{ echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5 |
10519 |
> |
echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6; } |
10520 |
> |
if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then |
10521 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10522 |
> |
else |
10523 |
> |
ac_check_lib_save_LIBS=$LIBS |
10524 |
> |
LIBS="-lgnugetopt $LIBS" |
10525 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10526 |
> |
/* confdefs.h. */ |
10527 |
> |
_ACEOF |
10528 |
> |
cat confdefs.h >>conftest.$ac_ext |
10529 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
10530 |
> |
/* end confdefs.h. */ |
10531 |
> |
|
10532 |
> |
/* Override any GCC internal prototype to avoid an error. |
10533 |
> |
Use char because int might match the return type of a GCC |
10534 |
> |
builtin and then its argument prototype would still apply. */ |
10535 |
> |
#ifdef __cplusplus |
10536 |
> |
extern "C" |
10537 |
> |
#endif |
10538 |
> |
char getopt_long (); |
10539 |
> |
#ifdef FC_DUMMY_MAIN |
10540 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10541 |
> |
# ifdef __cplusplus |
10542 |
> |
extern "C" |
10543 |
> |
# endif |
10544 |
> |
int FC_DUMMY_MAIN() { return 1; } |
10545 |
> |
#endif |
10546 |
> |
#endif |
10547 |
> |
int |
10548 |
> |
main () |
10549 |
> |
{ |
10550 |
> |
return getopt_long (); |
10551 |
> |
; |
10552 |
> |
return 0; |
10553 |
> |
} |
10554 |
> |
_ACEOF |
10555 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
10556 |
> |
if { (ac_try="$ac_link" |
10557 |
> |
case "(($ac_try" in |
10558 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10559 |
> |
*) ac_try_echo=$ac_try;; |
10560 |
> |
esac |
10561 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10562 |
> |
(eval "$ac_link") 2>conftest.er1 |
10563 |
> |
ac_status=$? |
10564 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
10565 |
> |
rm -f conftest.er1 |
10566 |
> |
cat conftest.err >&5 |
10567 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10568 |
> |
(exit $ac_status); } && { |
10569 |
> |
test -z "$ac_c_werror_flag" || |
10570 |
> |
test ! -s conftest.err |
10571 |
> |
} && test -s conftest$ac_exeext && |
10572 |
> |
$as_test_x conftest$ac_exeext; then |
10573 |
> |
ac_cv_lib_gnugetopt_getopt_long=yes |
10574 |
> |
else |
10575 |
> |
echo "$as_me: failed program was:" >&5 |
10576 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
10577 |
> |
|
10578 |
> |
ac_cv_lib_gnugetopt_getopt_long=no |
10579 |
> |
fi |
10580 |
> |
|
10581 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10582 |
> |
conftest$ac_exeext conftest.$ac_ext |
10583 |
> |
LIBS=$ac_check_lib_save_LIBS |
10584 |
> |
fi |
10585 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5 |
10586 |
> |
echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6; } |
10587 |
> |
if test $ac_cv_lib_gnugetopt_getopt_long = yes; then |
10588 |
> |
cat >>confdefs.h <<\_ACEOF |
10589 |
> |
#define HAVE_GETOPT_LONG 1 |
10590 |
> |
_ACEOF |
10591 |
> |
|
10592 |
> |
else |
10593 |
> |
# use the GNU replacement |
10594 |
> |
case " $LIBOBJS " in |
10595 |
> |
*" getopt.$ac_objext "* ) ;; |
10596 |
> |
*) LIBOBJS="$LIBOBJS getopt.$ac_objext" |
10597 |
> |
;; |
10598 |
> |
esac |
10599 |
> |
|
10600 |
> |
case " $LIBOBJS " in |
10601 |
> |
*" getopt1.$ac_objext "* ) ;; |
10602 |
> |
*) LIBOBJS="$LIBOBJS getopt1.$ac_objext" |
10603 |
> |
;; |
10604 |
> |
esac |
10605 |
> |
|
10606 |
> |
ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h" |
10607 |
> |
|
10608 |
> |
fi |
10609 |
> |
|
10610 |
> |
fi |
10611 |
> |
done |
10612 |
> |
|
10613 |
> |
|
10614 |
> |
ac_ext=cpp |
10615 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
10616 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10617 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10618 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10619 |
> |
|
10620 |
> |
|
10621 |
> |
{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
10622 |
> |
echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; } |
10623 |
> |
if test "${ac_cv_cxx_namespaces+set}" = set; then |
10624 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10625 |
> |
else |
10626 |
> |
|
10627 |
> |
ac_ext=cpp |
10628 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
10629 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10630 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10631 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10632 |
> |
|
10633 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10634 |
> |
/* confdefs.h. */ |
10635 |
> |
_ACEOF |
10636 |
> |
cat confdefs.h >>conftest.$ac_ext |
10637 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
10638 |
> |
/* end confdefs.h. */ |
10639 |
> |
namespace Outer { namespace Inner { int i = 0; }} |
10640 |
> |
#ifdef FC_DUMMY_MAIN |
10641 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10642 |
> |
# ifdef __cplusplus |
10643 |
> |
extern "C" |
10644 |
> |
# endif |
10645 |
> |
int FC_DUMMY_MAIN() { return 1; } |
10646 |
> |
#endif |
10647 |
> |
#endif |
10648 |
> |
int |
10649 |
> |
main () |
10650 |
> |
{ |
10651 |
> |
using namespace Outer::Inner; return i; |
10652 |
> |
; |
10653 |
> |
return 0; |
10654 |
> |
} |
10655 |
> |
_ACEOF |
10656 |
> |
rm -f conftest.$ac_objext |
10657 |
> |
if { (ac_try="$ac_compile" |
10658 |
> |
case "(($ac_try" in |
10659 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10660 |
> |
*) ac_try_echo=$ac_try;; |
10661 |
> |
esac |
10662 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10663 |
> |
(eval "$ac_compile") 2>conftest.er1 |
10664 |
> |
ac_status=$? |
10665 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
10666 |
> |
rm -f conftest.er1 |
10667 |
> |
cat conftest.err >&5 |
10668 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10669 |
> |
(exit $ac_status); } && { |
10670 |
> |
test -z "$ac_cxx_werror_flag" || |
10671 |
> |
test ! -s conftest.err |
10672 |
> |
} && test -s conftest.$ac_objext; then |
10673 |
> |
ac_cv_cxx_namespaces=yes |
10674 |
> |
else |
10675 |
> |
echo "$as_me: failed program was:" >&5 |
10676 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
10677 |
> |
|
10678 |
> |
ac_cv_cxx_namespaces=no |
10679 |
> |
fi |
10680 |
> |
|
10681 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10682 |
> |
ac_ext=cpp |
10683 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
10684 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10685 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10686 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10687 |
> |
|
10688 |
> |
|
10689 |
> |
fi |
10690 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
10691 |
> |
echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } |
10692 |
> |
if test "$ac_cv_cxx_namespaces" = yes; then |
10693 |
> |
|
10694 |
> |
cat >>confdefs.h <<\_ACEOF |
10695 |
> |
#define HAVE_NAMESPACES |
10696 |
> |
_ACEOF |
10697 |
> |
|
10698 |
> |
fi |
10699 |
> |
|
10700 |
> |
ac_ext=cpp |
10701 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
10702 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10703 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10704 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10705 |
> |
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
10706 |
> |
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
10707 |
> |
if test -z "$CXXCPP"; then |
10708 |
> |
if test "${ac_cv_prog_CXXCPP+set}" = set; then |
10709 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10710 |
> |
else |
10711 |
> |
# Double quotes because CXXCPP needs to be expanded |
10712 |
> |
for CXXCPP in "$CXX -E" "/lib/cpp" |
10713 |
> |
do |
10714 |
> |
ac_preproc_ok=false |
10715 |
> |
for ac_cxx_preproc_warn_flag in '' yes |
10716 |
> |
do |
10717 |
> |
# Use a header file that comes with gcc, so configuring glibc |
10718 |
> |
# with a fresh cross-compiler works. |
10719 |
> |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10720 |
> |
# <limits.h> exists even on freestanding compilers. |
10721 |
> |
# On the NeXT, cc -E runs the code through the compiler's parser, |
10722 |
> |
# not just through cpp. "Syntax error" is here to catch this case. |
10723 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10724 |
> |
/* confdefs.h. */ |
10725 |
> |
_ACEOF |
10726 |
> |
cat confdefs.h >>conftest.$ac_ext |
10727 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
10728 |
> |
/* end confdefs.h. */ |
10729 |
> |
#ifdef __STDC__ |
10730 |
> |
# include <limits.h> |
10731 |
> |
#else |
10732 |
> |
# include <assert.h> |
10733 |
> |
#endif |
10734 |
> |
Syntax error |
10735 |
> |
_ACEOF |
10736 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
10737 |
> |
case "(($ac_try" in |
10738 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10739 |
> |
*) ac_try_echo=$ac_try;; |
10740 |
> |
esac |
10741 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10742 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
10743 |
> |
ac_status=$? |
10744 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
10745 |
> |
rm -f conftest.er1 |
10746 |
> |
cat conftest.err >&5 |
10747 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10748 |
> |
(exit $ac_status); } >/dev/null && { |
10749 |
> |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
10750 |
> |
test ! -s conftest.err |
10751 |
> |
}; then |
10752 |
> |
: |
10753 |
> |
else |
10754 |
> |
echo "$as_me: failed program was:" >&5 |
10755 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
10756 |
> |
|
10757 |
> |
# Broken: fails on valid input. |
10758 |
> |
continue |
10759 |
> |
fi |
10760 |
> |
|
10761 |
> |
rm -f conftest.err conftest.$ac_ext |
10762 |
> |
|
10763 |
> |
# OK, works on sane cases. Now check whether nonexistent headers |
10764 |
> |
# can be detected and how. |
10765 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10766 |
> |
/* confdefs.h. */ |
10767 |
> |
_ACEOF |
10768 |
> |
cat confdefs.h >>conftest.$ac_ext |
10769 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
10770 |
> |
/* end confdefs.h. */ |
10771 |
> |
#include <ac_nonexistent.h> |
10772 |
> |
_ACEOF |
10773 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
10774 |
> |
case "(($ac_try" in |
10775 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10776 |
> |
*) ac_try_echo=$ac_try;; |
10777 |
> |
esac |
10778 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10779 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
10780 |
> |
ac_status=$? |
10781 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
10782 |
> |
rm -f conftest.er1 |
10783 |
> |
cat conftest.err >&5 |
10784 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10785 |
> |
(exit $ac_status); } >/dev/null && { |
10786 |
> |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
10787 |
> |
test ! -s conftest.err |
10788 |
> |
}; then |
10789 |
> |
# Broken: success on invalid input. |
10790 |
> |
continue |
10791 |
> |
else |
10792 |
> |
echo "$as_me: failed program was:" >&5 |
10793 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
10794 |
> |
|
10795 |
> |
# Passes both tests. |
10796 |
> |
ac_preproc_ok=: |
10797 |
> |
break |
10798 |
> |
fi |
10799 |
> |
|
10800 |
> |
rm -f conftest.err conftest.$ac_ext |
10801 |
> |
|
10802 |
> |
done |
10803 |
> |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
10804 |
> |
rm -f conftest.err conftest.$ac_ext |
10805 |
> |
if $ac_preproc_ok; then |
10806 |
> |
break |
10807 |
> |
fi |
10808 |
> |
|
10809 |
> |
done |
10810 |
> |
ac_cv_prog_CXXCPP=$CXXCPP |
10811 |
> |
|
10812 |
> |
fi |
10813 |
> |
CXXCPP=$ac_cv_prog_CXXCPP |
10814 |
> |
else |
10815 |
> |
ac_cv_prog_CXXCPP=$CXXCPP |
10816 |
> |
fi |
10817 |
> |
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
10818 |
> |
echo "${ECHO_T}$CXXCPP" >&6; } |
10819 |
> |
ac_preproc_ok=false |
10820 |
> |
for ac_cxx_preproc_warn_flag in '' yes |
10821 |
> |
do |
10822 |
> |
# Use a header file that comes with gcc, so configuring glibc |
10823 |
> |
# with a fresh cross-compiler works. |
10824 |
> |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10825 |
> |
# <limits.h> exists even on freestanding compilers. |
10826 |
> |
# On the NeXT, cc -E runs the code through the compiler's parser, |
10827 |
> |
# not just through cpp. "Syntax error" is here to catch this case. |
10828 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10829 |
> |
/* confdefs.h. */ |
10830 |
> |
_ACEOF |
10831 |
> |
cat confdefs.h >>conftest.$ac_ext |
10832 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
10833 |
> |
/* end confdefs.h. */ |
10834 |
> |
#ifdef __STDC__ |
10835 |
> |
# include <limits.h> |
10836 |
> |
#else |
10837 |
> |
# include <assert.h> |
10838 |
> |
#endif |
10839 |
> |
Syntax error |
10840 |
> |
_ACEOF |
10841 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
10842 |
> |
case "(($ac_try" in |
10843 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10844 |
> |
*) ac_try_echo=$ac_try;; |
10845 |
> |
esac |
10846 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10847 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
10848 |
> |
ac_status=$? |
10849 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
10850 |
> |
rm -f conftest.er1 |
10851 |
> |
cat conftest.err >&5 |
10852 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10853 |
> |
(exit $ac_status); } >/dev/null && { |
10854 |
> |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
10855 |
> |
test ! -s conftest.err |
10856 |
> |
}; then |
10857 |
> |
: |
10858 |
> |
else |
10859 |
> |
echo "$as_me: failed program was:" >&5 |
10860 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
10861 |
> |
|
10862 |
> |
# Broken: fails on valid input. |
10863 |
> |
continue |
10864 |
> |
fi |
10865 |
> |
|
10866 |
> |
rm -f conftest.err conftest.$ac_ext |
10867 |
> |
|
10868 |
> |
# OK, works on sane cases. Now check whether nonexistent headers |
10869 |
> |
# can be detected and how. |
10870 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10871 |
> |
/* confdefs.h. */ |
10872 |
> |
_ACEOF |
10873 |
> |
cat confdefs.h >>conftest.$ac_ext |
10874 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
10875 |
> |
/* end confdefs.h. */ |
10876 |
> |
#include <ac_nonexistent.h> |
10877 |
> |
_ACEOF |
10878 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
10879 |
> |
case "(($ac_try" in |
10880 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10881 |
> |
*) ac_try_echo=$ac_try;; |
10882 |
> |
esac |
10883 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10884 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
10885 |
> |
ac_status=$? |
10886 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
10887 |
> |
rm -f conftest.er1 |
10888 |
> |
cat conftest.err >&5 |
10889 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10890 |
> |
(exit $ac_status); } >/dev/null && { |
10891 |
> |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
10892 |
> |
test ! -s conftest.err |
10893 |
> |
}; then |
10894 |
> |
# Broken: success on invalid input. |
10895 |
> |
continue |
10896 |
> |
else |
10897 |
> |
echo "$as_me: failed program was:" >&5 |
10898 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
10899 |
> |
|
10900 |
> |
# Passes both tests. |
10901 |
> |
ac_preproc_ok=: |
10902 |
> |
break |
10903 |
> |
fi |
10904 |
> |
|
10905 |
> |
rm -f conftest.err conftest.$ac_ext |
10906 |
> |
|
10907 |
> |
done |
10908 |
> |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
10909 |
> |
rm -f conftest.err conftest.$ac_ext |
10910 |
> |
if $ac_preproc_ok; then |
10911 |
> |
: |
10912 |
> |
else |
10913 |
> |
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
10914 |
> |
See \`config.log' for more details." >&5 |
10915 |
> |
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
10916 |
> |
See \`config.log' for more details." >&2;} |
10917 |
> |
{ (exit 1); exit 1; }; } |
10918 |
> |
fi |
10919 |
> |
|
10920 |
> |
ac_ext=cpp |
10921 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
10922 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10923 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10924 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10925 |
> |
|
10926 |
> |
|
10927 |
> |
{ echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5 |
10928 |
> |
echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6; } |
10929 |
> |
if test "${ac_cv_cxx_have_stl+set}" = set; then |
10930 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10931 |
> |
else |
10932 |
> |
|
10933 |
> |
|
10934 |
> |
ac_ext=cpp |
10935 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
10936 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10937 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10938 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10939 |
> |
|
10940 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10941 |
> |
/* confdefs.h. */ |
10942 |
> |
_ACEOF |
10943 |
> |
cat confdefs.h >>conftest.$ac_ext |
10944 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
10945 |
> |
/* end confdefs.h. */ |
10946 |
> |
#include <list> |
10947 |
> |
#include <deque> |
10948 |
> |
#ifdef HAVE_NAMESPACES |
10949 |
> |
using namespace std; |
10950 |
> |
#endif |
10951 |
> |
#ifdef FC_DUMMY_MAIN |
10952 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10953 |
> |
# ifdef __cplusplus |
10954 |
> |
extern "C" |
10955 |
> |
# endif |
10956 |
> |
int FC_DUMMY_MAIN() { return 1; } |
10957 |
> |
#endif |
10958 |
> |
#endif |
10959 |
> |
int |
10960 |
> |
main () |
10961 |
> |
{ |
10962 |
> |
list<int> x; x.push_back(5); |
10963 |
> |
list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0; |
10964 |
> |
; |
10965 |
> |
return 0; |
10966 |
> |
} |
10967 |
> |
_ACEOF |
10968 |
> |
rm -f conftest.$ac_objext |
10969 |
> |
if { (ac_try="$ac_compile" |
10970 |
> |
case "(($ac_try" in |
10971 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10972 |
> |
*) ac_try_echo=$ac_try;; |
10973 |
> |
esac |
10974 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10975 |
> |
(eval "$ac_compile") 2>conftest.er1 |
10976 |
> |
ac_status=$? |
10977 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
10978 |
> |
rm -f conftest.er1 |
10979 |
> |
cat conftest.err >&5 |
10980 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10981 |
> |
(exit $ac_status); } && { |
10982 |
> |
test -z "$ac_cxx_werror_flag" || |
10983 |
> |
test ! -s conftest.err |
10984 |
> |
} && test -s conftest.$ac_objext; then |
10985 |
> |
ac_cv_cxx_have_stl=yes |
10986 |
> |
else |
10987 |
> |
echo "$as_me: failed program was:" >&5 |
10988 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
10989 |
> |
|
10990 |
> |
ac_cv_cxx_have_stl=no |
10991 |
> |
fi |
10992 |
> |
|
10993 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10994 |
> |
ac_ext=cpp |
10995 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
10996 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10997 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10998 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10999 |
> |
|
11000 |
> |
|
11001 |
> |
fi |
11002 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5 |
11003 |
> |
echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6; } |
11004 |
> |
if test "$ac_cv_cxx_have_stl" = yes; then |
11005 |
> |
|
11006 |
> |
cat >>confdefs.h <<\_ACEOF |
11007 |
> |
#define HAVE_STL |
11008 |
> |
_ACEOF |
11009 |
> |
|
11010 |
> |
fi |
11011 |
> |
|
11012 |
> |
|
11013 |
> |
|
11014 |
> |
if test "${ac_cv_header_iostream+set}" = set; then |
11015 |
> |
{ echo "$as_me:$LINENO: checking for iostream" >&5 |
11016 |
> |
echo $ECHO_N "checking for iostream... $ECHO_C" >&6; } |
11017 |
> |
if test "${ac_cv_header_iostream+set}" = set; then |
11018 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11019 |
> |
fi |
11020 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5 |
11021 |
> |
echo "${ECHO_T}$ac_cv_header_iostream" >&6; } |
11022 |
> |
else |
11023 |
> |
# Is the header compilable? |
11024 |
> |
{ echo "$as_me:$LINENO: checking iostream usability" >&5 |
11025 |
> |
echo $ECHO_N "checking iostream usability... $ECHO_C" >&6; } |
11026 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11027 |
> |
/* confdefs.h. */ |
11028 |
> |
_ACEOF |
11029 |
> |
cat confdefs.h >>conftest.$ac_ext |
11030 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
11031 |
> |
/* end confdefs.h. */ |
11032 |
> |
$ac_includes_default |
11033 |
> |
#include <iostream> |
11034 |
> |
_ACEOF |
11035 |
> |
rm -f conftest.$ac_objext |
11036 |
> |
if { (ac_try="$ac_compile" |
11037 |
> |
case "(($ac_try" in |
11038 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11039 |
> |
*) ac_try_echo=$ac_try;; |
11040 |
> |
esac |
11041 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11042 |
> |
(eval "$ac_compile") 2>conftest.er1 |
11043 |
> |
ac_status=$? |
11044 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
11045 |
> |
rm -f conftest.er1 |
11046 |
> |
cat conftest.err >&5 |
11047 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11048 |
> |
(exit $ac_status); } && { |
11049 |
> |
test -z "$ac_cxx_werror_flag" || |
11050 |
> |
test ! -s conftest.err |
11051 |
> |
} && test -s conftest.$ac_objext; then |
11052 |
> |
ac_header_compiler=yes |
11053 |
> |
else |
11054 |
> |
echo "$as_me: failed program was:" >&5 |
11055 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
11056 |
> |
|
11057 |
> |
ac_header_compiler=no |
11058 |
> |
fi |
11059 |
> |
|
11060 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11061 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11062 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
11063 |
> |
|
11064 |
> |
# Is the header present? |
11065 |
> |
{ echo "$as_me:$LINENO: checking iostream presence" >&5 |
11066 |
> |
echo $ECHO_N "checking iostream presence... $ECHO_C" >&6; } |
11067 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11068 |
> |
/* confdefs.h. */ |
11069 |
> |
_ACEOF |
11070 |
> |
cat confdefs.h >>conftest.$ac_ext |
11071 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
11072 |
> |
/* end confdefs.h. */ |
11073 |
> |
#include <iostream> |
11074 |
> |
_ACEOF |
11075 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
11076 |
> |
case "(($ac_try" in |
11077 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11078 |
> |
*) ac_try_echo=$ac_try;; |
11079 |
> |
esac |
11080 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11081 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
11082 |
> |
ac_status=$? |
11083 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
11084 |
> |
rm -f conftest.er1 |
11085 |
> |
cat conftest.err >&5 |
11086 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11087 |
> |
(exit $ac_status); } >/dev/null && { |
11088 |
> |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
11089 |
> |
test ! -s conftest.err |
11090 |
> |
}; then |
11091 |
> |
ac_header_preproc=yes |
11092 |
> |
else |
11093 |
> |
echo "$as_me: failed program was:" >&5 |
11094 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
11095 |
> |
|
11096 |
> |
ac_header_preproc=no |
11097 |
> |
fi |
11098 |
> |
|
11099 |
> |
rm -f conftest.err conftest.$ac_ext |
11100 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11101 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
11102 |
> |
|
11103 |
> |
# So? What about this header? |
11104 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
11105 |
> |
yes:no: ) |
11106 |
> |
{ echo "$as_me:$LINENO: WARNING: iostream: accepted by the compiler, rejected by the preprocessor!" >&5 |
11107 |
> |
echo "$as_me: WARNING: iostream: accepted by the compiler, rejected by the preprocessor!" >&2;} |
11108 |
> |
{ echo "$as_me:$LINENO: WARNING: iostream: proceeding with the compiler's result" >&5 |
11109 |
> |
echo "$as_me: WARNING: iostream: proceeding with the compiler's result" >&2;} |
11110 |
> |
ac_header_preproc=yes |
11111 |
> |
;; |
11112 |
> |
no:yes:* ) |
11113 |
> |
{ echo "$as_me:$LINENO: WARNING: iostream: present but cannot be compiled" >&5 |
11114 |
> |
echo "$as_me: WARNING: iostream: present but cannot be compiled" >&2;} |
11115 |
> |
{ echo "$as_me:$LINENO: WARNING: iostream: check for missing prerequisite headers?" >&5 |
11116 |
> |
echo "$as_me: WARNING: iostream: check for missing prerequisite headers?" >&2;} |
11117 |
> |
{ echo "$as_me:$LINENO: WARNING: iostream: see the Autoconf documentation" >&5 |
11118 |
> |
echo "$as_me: WARNING: iostream: see the Autoconf documentation" >&2;} |
11119 |
> |
{ echo "$as_me:$LINENO: WARNING: iostream: section \"Present But Cannot Be Compiled\"" >&5 |
11120 |
> |
echo "$as_me: WARNING: iostream: section \"Present But Cannot Be Compiled\"" >&2;} |
11121 |
> |
{ echo "$as_me:$LINENO: WARNING: iostream: proceeding with the preprocessor's result" >&5 |
11122 |
> |
echo "$as_me: WARNING: iostream: proceeding with the preprocessor's result" >&2;} |
11123 |
> |
{ echo "$as_me:$LINENO: WARNING: iostream: in the future, the compiler will take precedence" >&5 |
11124 |
> |
echo "$as_me: WARNING: iostream: in the future, the compiler will take precedence" >&2;} |
11125 |
> |
( cat <<\_ASBOX |
11126 |
> |
## ------------------------------ ## |
11127 |
> |
## Report this to gezelter@nd.edu ## |
11128 |
> |
## ------------------------------ ## |
11129 |
> |
_ASBOX |
11130 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
11131 |
> |
;; |
11132 |
> |
esac |
11133 |
> |
{ echo "$as_me:$LINENO: checking for iostream" >&5 |
11134 |
> |
echo $ECHO_N "checking for iostream... $ECHO_C" >&6; } |
11135 |
> |
if test "${ac_cv_header_iostream+set}" = set; then |
11136 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11137 |
> |
else |
11138 |
> |
ac_cv_header_iostream=$ac_header_preproc |
11139 |
> |
fi |
11140 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5 |
11141 |
> |
echo "${ECHO_T}$ac_cv_header_iostream" >&6; } |
11142 |
> |
|
11143 |
> |
fi |
11144 |
> |
if test $ac_cv_header_iostream = yes; then |
11145 |
> |
|
11146 |
> |
|
11147 |
> |
cat >>confdefs.h <<\_ACEOF |
11148 |
> |
#define HAVE_IOSTREAM 1 |
11149 |
> |
_ACEOF |
11150 |
> |
|
11151 |
> |
|
11152 |
> |
else |
11153 |
> |
|
11154 |
> |
|
11155 |
> |
for ac_header in iostream.h |
11156 |
> |
do |
11157 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11158 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11159 |
> |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11160 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
11161 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11162 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11163 |
> |
fi |
11164 |
> |
ac_res=`eval echo '${'$as_ac_Header'}'` |
11165 |
> |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
11166 |
> |
echo "${ECHO_T}$ac_res" >&6; } |
11167 |
> |
else |
11168 |
> |
# Is the header compilable? |
11169 |
> |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11170 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
11171 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11172 |
> |
/* confdefs.h. */ |
11173 |
> |
_ACEOF |
11174 |
> |
cat confdefs.h >>conftest.$ac_ext |
11175 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
11176 |
> |
/* end confdefs.h. */ |
11177 |
> |
$ac_includes_default |
11178 |
> |
#include <$ac_header> |
11179 |
> |
_ACEOF |
11180 |
> |
rm -f conftest.$ac_objext |
11181 |
> |
if { (ac_try="$ac_compile" |
11182 |
> |
case "(($ac_try" in |
11183 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11184 |
> |
*) ac_try_echo=$ac_try;; |
11185 |
> |
esac |
11186 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11187 |
> |
(eval "$ac_compile") 2>conftest.er1 |
11188 |
> |
ac_status=$? |
11189 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
11190 |
> |
rm -f conftest.er1 |
11191 |
> |
cat conftest.err >&5 |
11192 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11193 |
> |
(exit $ac_status); } && { |
11194 |
> |
test -z "$ac_cxx_werror_flag" || |
11195 |
> |
test ! -s conftest.err |
11196 |
> |
} && test -s conftest.$ac_objext; then |
11197 |
> |
ac_header_compiler=yes |
11198 |
> |
else |
11199 |
> |
echo "$as_me: failed program was:" >&5 |
11200 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
11201 |
> |
|
11202 |
> |
ac_header_compiler=no |
11203 |
> |
fi |
11204 |
> |
|
11205 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11206 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11207 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
11208 |
> |
|
11209 |
> |
# Is the header present? |
11210 |
> |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11211 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
11212 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11213 |
> |
/* confdefs.h. */ |
11214 |
> |
_ACEOF |
11215 |
> |
cat confdefs.h >>conftest.$ac_ext |
11216 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
11217 |
> |
/* end confdefs.h. */ |
11218 |
> |
#include <$ac_header> |
11219 |
> |
_ACEOF |
11220 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
11221 |
> |
case "(($ac_try" in |
11222 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11223 |
> |
*) ac_try_echo=$ac_try;; |
11224 |
> |
esac |
11225 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11226 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
11227 |
> |
ac_status=$? |
11228 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
11229 |
> |
rm -f conftest.er1 |
11230 |
> |
cat conftest.err >&5 |
11231 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11232 |
> |
(exit $ac_status); } >/dev/null && { |
11233 |
> |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
11234 |
> |
test ! -s conftest.err |
11235 |
> |
}; then |
11236 |
> |
ac_header_preproc=yes |
11237 |
> |
else |
11238 |
> |
echo "$as_me: failed program was:" >&5 |
11239 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
11240 |
> |
|
11241 |
> |
ac_header_preproc=no |
11242 |
> |
fi |
11243 |
> |
|
11244 |
> |
rm -f conftest.err conftest.$ac_ext |
11245 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11246 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
11247 |
> |
|
11248 |
> |
# So? What about this header? |
11249 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
11250 |
> |
yes:no: ) |
11251 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11252 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
11253 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11254 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
11255 |
> |
ac_header_preproc=yes |
11256 |
> |
;; |
11257 |
> |
no:yes:* ) |
11258 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11259 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
11260 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11261 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
11262 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
11263 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
11264 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
11265 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
11266 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11267 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
11268 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11269 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
11270 |
> |
( cat <<\_ASBOX |
11271 |
> |
## ------------------------------ ## |
11272 |
> |
## Report this to gezelter@nd.edu ## |
11273 |
> |
## ------------------------------ ## |
11274 |
> |
_ASBOX |
11275 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
11276 |
> |
;; |
11277 |
> |
esac |
11278 |
> |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11279 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
11280 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11281 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11282 |
> |
else |
11283 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
11284 |
> |
fi |
11285 |
> |
ac_res=`eval echo '${'$as_ac_Header'}'` |
11286 |
> |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
11287 |
> |
echo "${ECHO_T}$ac_res" >&6; } |
11288 |
> |
|
11289 |
> |
fi |
11290 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11291 |
> |
cat >>confdefs.h <<_ACEOF |
11292 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
11293 |
> |
_ACEOF |
11294 |
> |
|
11295 |
> |
fi |
11296 |
> |
|
11297 |
> |
done |
11298 |
> |
|
11299 |
> |
|
11300 |
> |
fi |
11301 |
> |
|
11302 |
> |
|
11303 |
> |
|
11304 |
> |
|
11305 |
> |
if test "${ac_cv_header_iomanip+set}" = set; then |
11306 |
> |
{ echo "$as_me:$LINENO: checking for iomanip" >&5 |
11307 |
> |
echo $ECHO_N "checking for iomanip... $ECHO_C" >&6; } |
11308 |
> |
if test "${ac_cv_header_iomanip+set}" = set; then |
11309 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11310 |
> |
fi |
11311 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_iomanip" >&5 |
11312 |
> |
echo "${ECHO_T}$ac_cv_header_iomanip" >&6; } |
11313 |
> |
else |
11314 |
> |
# Is the header compilable? |
11315 |
> |
{ echo "$as_me:$LINENO: checking iomanip usability" >&5 |
11316 |
> |
echo $ECHO_N "checking iomanip usability... $ECHO_C" >&6; } |
11317 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11318 |
> |
/* confdefs.h. */ |
11319 |
> |
_ACEOF |
11320 |
> |
cat confdefs.h >>conftest.$ac_ext |
11321 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
11322 |
> |
/* end confdefs.h. */ |
11323 |
> |
$ac_includes_default |
11324 |
> |
#include <iomanip> |
11325 |
> |
_ACEOF |
11326 |
> |
rm -f conftest.$ac_objext |
11327 |
> |
if { (ac_try="$ac_compile" |
11328 |
> |
case "(($ac_try" in |
11329 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11330 |
> |
*) ac_try_echo=$ac_try;; |
11331 |
> |
esac |
11332 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11333 |
> |
(eval "$ac_compile") 2>conftest.er1 |
11334 |
> |
ac_status=$? |
11335 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
11336 |
> |
rm -f conftest.er1 |
11337 |
> |
cat conftest.err >&5 |
11338 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11339 |
> |
(exit $ac_status); } && { |
11340 |
> |
test -z "$ac_cxx_werror_flag" || |
11341 |
> |
test ! -s conftest.err |
11342 |
> |
} && test -s conftest.$ac_objext; then |
11343 |
> |
ac_header_compiler=yes |
11344 |
> |
else |
11345 |
> |
echo "$as_me: failed program was:" >&5 |
11346 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
11347 |
> |
|
11348 |
> |
ac_header_compiler=no |
11349 |
> |
fi |
11350 |
> |
|
11351 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11352 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11353 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
11354 |
> |
|
11355 |
> |
# Is the header present? |
11356 |
> |
{ echo "$as_me:$LINENO: checking iomanip presence" >&5 |
11357 |
> |
echo $ECHO_N "checking iomanip presence... $ECHO_C" >&6; } |
11358 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11359 |
> |
/* confdefs.h. */ |
11360 |
> |
_ACEOF |
11361 |
> |
cat confdefs.h >>conftest.$ac_ext |
11362 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
11363 |
> |
/* end confdefs.h. */ |
11364 |
> |
#include <iomanip> |
11365 |
> |
_ACEOF |
11366 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
11367 |
> |
case "(($ac_try" in |
11368 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11369 |
> |
*) ac_try_echo=$ac_try;; |
11370 |
> |
esac |
11371 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11372 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
11373 |
> |
ac_status=$? |
11374 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
11375 |
> |
rm -f conftest.er1 |
11376 |
> |
cat conftest.err >&5 |
11377 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11378 |
> |
(exit $ac_status); } >/dev/null && { |
11379 |
> |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
11380 |
> |
test ! -s conftest.err |
11381 |
> |
}; then |
11382 |
> |
ac_header_preproc=yes |
11383 |
> |
else |
11384 |
> |
echo "$as_me: failed program was:" >&5 |
11385 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
11386 |
> |
|
11387 |
> |
ac_header_preproc=no |
11388 |
> |
fi |
11389 |
> |
|
11390 |
> |
rm -f conftest.err conftest.$ac_ext |
11391 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11392 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
11393 |
> |
|
11394 |
> |
# So? What about this header? |
11395 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
11396 |
> |
yes:no: ) |
11397 |
> |
{ echo "$as_me:$LINENO: WARNING: iomanip: accepted by the compiler, rejected by the preprocessor!" >&5 |
11398 |
> |
echo "$as_me: WARNING: iomanip: accepted by the compiler, rejected by the preprocessor!" >&2;} |
11399 |
> |
{ echo "$as_me:$LINENO: WARNING: iomanip: proceeding with the compiler's result" >&5 |
11400 |
> |
echo "$as_me: WARNING: iomanip: proceeding with the compiler's result" >&2;} |
11401 |
> |
ac_header_preproc=yes |
11402 |
> |
;; |
11403 |
> |
no:yes:* ) |
11404 |
> |
{ echo "$as_me:$LINENO: WARNING: iomanip: present but cannot be compiled" >&5 |
11405 |
> |
echo "$as_me: WARNING: iomanip: present but cannot be compiled" >&2;} |
11406 |
> |
{ echo "$as_me:$LINENO: WARNING: iomanip: check for missing prerequisite headers?" >&5 |
11407 |
> |
echo "$as_me: WARNING: iomanip: check for missing prerequisite headers?" >&2;} |
11408 |
> |
{ echo "$as_me:$LINENO: WARNING: iomanip: see the Autoconf documentation" >&5 |
11409 |
> |
echo "$as_me: WARNING: iomanip: see the Autoconf documentation" >&2;} |
11410 |
> |
{ echo "$as_me:$LINENO: WARNING: iomanip: section \"Present But Cannot Be Compiled\"" >&5 |
11411 |
> |
echo "$as_me: WARNING: iomanip: section \"Present But Cannot Be Compiled\"" >&2;} |
11412 |
> |
{ echo "$as_me:$LINENO: WARNING: iomanip: proceeding with the preprocessor's result" >&5 |
11413 |
> |
echo "$as_me: WARNING: iomanip: proceeding with the preprocessor's result" >&2;} |
11414 |
> |
{ echo "$as_me:$LINENO: WARNING: iomanip: in the future, the compiler will take precedence" >&5 |
11415 |
> |
echo "$as_me: WARNING: iomanip: in the future, the compiler will take precedence" >&2;} |
11416 |
> |
( cat <<\_ASBOX |
11417 |
> |
## ------------------------------ ## |
11418 |
> |
## Report this to gezelter@nd.edu ## |
11419 |
> |
## ------------------------------ ## |
11420 |
> |
_ASBOX |
11421 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
11422 |
> |
;; |
11423 |
> |
esac |
11424 |
> |
{ echo "$as_me:$LINENO: checking for iomanip" >&5 |
11425 |
> |
echo $ECHO_N "checking for iomanip... $ECHO_C" >&6; } |
11426 |
> |
if test "${ac_cv_header_iomanip+set}" = set; then |
11427 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11428 |
> |
else |
11429 |
> |
ac_cv_header_iomanip=$ac_header_preproc |
11430 |
> |
fi |
11431 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_iomanip" >&5 |
11432 |
> |
echo "${ECHO_T}$ac_cv_header_iomanip" >&6; } |
11433 |
> |
|
11434 |
> |
fi |
11435 |
> |
if test $ac_cv_header_iomanip = yes; then |
11436 |
> |
|
11437 |
> |
|
11438 |
> |
cat >>confdefs.h <<\_ACEOF |
11439 |
> |
#define HAVE_IOMANIP 1 |
11440 |
> |
_ACEOF |
11441 |
> |
|
11442 |
> |
|
11443 |
> |
else |
11444 |
> |
|
11445 |
> |
|
11446 |
> |
for ac_header in iomanip.h |
11447 |
> |
do |
11448 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11449 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11450 |
> |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11451 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
11452 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11453 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11454 |
> |
fi |
11455 |
> |
ac_res=`eval echo '${'$as_ac_Header'}'` |
11456 |
> |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
11457 |
> |
echo "${ECHO_T}$ac_res" >&6; } |
11458 |
> |
else |
11459 |
> |
# Is the header compilable? |
11460 |
> |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11461 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
11462 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11463 |
> |
/* confdefs.h. */ |
11464 |
> |
_ACEOF |
11465 |
> |
cat confdefs.h >>conftest.$ac_ext |
11466 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
11467 |
> |
/* end confdefs.h. */ |
11468 |
> |
$ac_includes_default |
11469 |
> |
#include <$ac_header> |
11470 |
> |
_ACEOF |
11471 |
> |
rm -f conftest.$ac_objext |
11472 |
> |
if { (ac_try="$ac_compile" |
11473 |
> |
case "(($ac_try" in |
11474 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11475 |
> |
*) ac_try_echo=$ac_try;; |
11476 |
> |
esac |
11477 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11478 |
> |
(eval "$ac_compile") 2>conftest.er1 |
11479 |
> |
ac_status=$? |
11480 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
11481 |
> |
rm -f conftest.er1 |
11482 |
> |
cat conftest.err >&5 |
11483 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11484 |
> |
(exit $ac_status); } && { |
11485 |
> |
test -z "$ac_cxx_werror_flag" || |
11486 |
> |
test ! -s conftest.err |
11487 |
> |
} && test -s conftest.$ac_objext; then |
11488 |
> |
ac_header_compiler=yes |
11489 |
> |
else |
11490 |
> |
echo "$as_me: failed program was:" >&5 |
11491 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
11492 |
> |
|
11493 |
> |
ac_header_compiler=no |
11494 |
> |
fi |
11495 |
> |
|
11496 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11497 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11498 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
11499 |
> |
|
11500 |
> |
# Is the header present? |
11501 |
> |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11502 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
11503 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11504 |
> |
/* confdefs.h. */ |
11505 |
> |
_ACEOF |
11506 |
> |
cat confdefs.h >>conftest.$ac_ext |
11507 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
11508 |
> |
/* end confdefs.h. */ |
11509 |
> |
#include <$ac_header> |
11510 |
> |
_ACEOF |
11511 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
11512 |
> |
case "(($ac_try" in |
11513 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11514 |
> |
*) ac_try_echo=$ac_try;; |
11515 |
> |
esac |
11516 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11517 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
11518 |
> |
ac_status=$? |
11519 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
11520 |
> |
rm -f conftest.er1 |
11521 |
> |
cat conftest.err >&5 |
11522 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11523 |
> |
(exit $ac_status); } >/dev/null && { |
11524 |
> |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
11525 |
> |
test ! -s conftest.err |
11526 |
> |
}; then |
11527 |
> |
ac_header_preproc=yes |
11528 |
> |
else |
11529 |
> |
echo "$as_me: failed program was:" >&5 |
11530 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
11531 |
> |
|
11532 |
> |
ac_header_preproc=no |
11533 |
> |
fi |
11534 |
> |
|
11535 |
> |
rm -f conftest.err conftest.$ac_ext |
11536 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11537 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
11538 |
> |
|
11539 |
> |
# So? What about this header? |
11540 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
11541 |
> |
yes:no: ) |
11542 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11543 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
11544 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11545 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
11546 |
> |
ac_header_preproc=yes |
11547 |
> |
;; |
11548 |
> |
no:yes:* ) |
11549 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11550 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
11551 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11552 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
11553 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
11554 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
11555 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
11556 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
11557 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11558 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
11559 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11560 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
11561 |
> |
( cat <<\_ASBOX |
11562 |
> |
## ------------------------------ ## |
11563 |
> |
## Report this to gezelter@nd.edu ## |
11564 |
> |
## ------------------------------ ## |
11565 |
> |
_ASBOX |
11566 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
11567 |
> |
;; |
11568 |
> |
esac |
11569 |
> |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11570 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
11571 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11572 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11573 |
> |
else |
11574 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
11575 |
> |
fi |
11576 |
> |
ac_res=`eval echo '${'$as_ac_Header'}'` |
11577 |
> |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
11578 |
> |
echo "${ECHO_T}$ac_res" >&6; } |
11579 |
> |
|
11580 |
> |
fi |
11581 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11582 |
> |
cat >>confdefs.h <<_ACEOF |
11583 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
11584 |
> |
_ACEOF |
11585 |
> |
|
11586 |
> |
fi |
11587 |
> |
|
11588 |
> |
done |
11589 |
> |
|
11590 |
> |
|
11591 |
> |
fi |
11592 |
> |
|
11593 |
> |
|
11594 |
> |
|
11595 |
> |
|
11596 |
> |
for ac_header in cmath |
11597 |
> |
do |
11598 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11599 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11600 |
> |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11601 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
11602 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11603 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11604 |
> |
fi |
11605 |
> |
ac_res=`eval echo '${'$as_ac_Header'}'` |
11606 |
> |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
11607 |
> |
echo "${ECHO_T}$ac_res" >&6; } |
11608 |
> |
else |
11609 |
> |
# Is the header compilable? |
11610 |
> |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11611 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
11612 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11613 |
> |
/* confdefs.h. */ |
11614 |
> |
_ACEOF |
11615 |
> |
cat confdefs.h >>conftest.$ac_ext |
11616 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
11617 |
> |
/* end confdefs.h. */ |
11618 |
> |
$ac_includes_default |
11619 |
> |
#include <$ac_header> |
11620 |
> |
_ACEOF |
11621 |
> |
rm -f conftest.$ac_objext |
11622 |
> |
if { (ac_try="$ac_compile" |
11623 |
> |
case "(($ac_try" in |
11624 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11625 |
> |
*) ac_try_echo=$ac_try;; |
11626 |
> |
esac |
11627 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11628 |
> |
(eval "$ac_compile") 2>conftest.er1 |
11629 |
> |
ac_status=$? |
11630 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
11631 |
> |
rm -f conftest.er1 |
11632 |
> |
cat conftest.err >&5 |
11633 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11634 |
> |
(exit $ac_status); } && { |
11635 |
> |
test -z "$ac_cxx_werror_flag" || |
11636 |
> |
test ! -s conftest.err |
11637 |
> |
} && test -s conftest.$ac_objext; then |
11638 |
> |
ac_header_compiler=yes |
11639 |
> |
else |
11640 |
> |
echo "$as_me: failed program was:" >&5 |
11641 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
11642 |
> |
|
11643 |
> |
ac_header_compiler=no |
11644 |
> |
fi |
11645 |
> |
|
11646 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11647 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11648 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
11649 |
> |
|
11650 |
> |
# Is the header present? |
11651 |
> |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11652 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
11653 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11654 |
> |
/* confdefs.h. */ |
11655 |
> |
_ACEOF |
11656 |
> |
cat confdefs.h >>conftest.$ac_ext |
11657 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
11658 |
> |
/* end confdefs.h. */ |
11659 |
> |
#include <$ac_header> |
11660 |
> |
_ACEOF |
11661 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
11662 |
> |
case "(($ac_try" in |
11663 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11664 |
> |
*) ac_try_echo=$ac_try;; |
11665 |
> |
esac |
11666 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11667 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
11668 |
> |
ac_status=$? |
11669 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
11670 |
> |
rm -f conftest.er1 |
11671 |
> |
cat conftest.err >&5 |
11672 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11673 |
> |
(exit $ac_status); } >/dev/null && { |
11674 |
> |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
11675 |
> |
test ! -s conftest.err |
11676 |
> |
}; then |
11677 |
> |
ac_header_preproc=yes |
11678 |
> |
else |
11679 |
> |
echo "$as_me: failed program was:" >&5 |
11680 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
11681 |
> |
|
11682 |
> |
ac_header_preproc=no |
11683 |
> |
fi |
11684 |
> |
|
11685 |
> |
rm -f conftest.err conftest.$ac_ext |
11686 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11687 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
11688 |
> |
|
11689 |
> |
# So? What about this header? |
11690 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
11691 |
> |
yes:no: ) |
11692 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11693 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
11694 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11695 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
11696 |
> |
ac_header_preproc=yes |
11697 |
> |
;; |
11698 |
> |
no:yes:* ) |
11699 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11700 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
11701 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11702 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
11703 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
11704 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
11705 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
11706 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
11707 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11708 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
11709 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11710 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
11711 |
> |
( cat <<\_ASBOX |
11712 |
> |
## ------------------------------ ## |
11713 |
> |
## Report this to gezelter@nd.edu ## |
11714 |
> |
## ------------------------------ ## |
11715 |
> |
_ASBOX |
11716 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
11717 |
> |
;; |
11718 |
> |
esac |
11719 |
> |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11720 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
11721 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11722 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11723 |
> |
else |
11724 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
11725 |
> |
fi |
11726 |
> |
ac_res=`eval echo '${'$as_ac_Header'}'` |
11727 |
> |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
11728 |
> |
echo "${ECHO_T}$ac_res" >&6; } |
11729 |
> |
|
11730 |
> |
fi |
11731 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11732 |
> |
cat >>confdefs.h <<_ACEOF |
11733 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
11734 |
> |
_ACEOF |
11735 |
> |
|
11736 |
> |
fi |
11737 |
> |
|
11738 |
> |
done |
11739 |
> |
|
11740 |
> |
|
11741 |
> |
|
11742 |
> |
|
11743 |
> |
{ echo "$as_me:$LINENO: checking for C++ iostream in namespace std" >&5 |
11744 |
> |
echo $ECHO_N "checking for C++ iostream in namespace std... $ECHO_C" >&6; } |
11745 |
> |
if test "${ac_cv_cxx_have_std_iostream+set}" = set; then |
11746 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11747 |
> |
else |
11748 |
> |
|
11749 |
> |
ac_cv_cxx_have_std_iostream=no |
11750 |
> |
ac_cv_cxx_need_use_std_iostream=no |
11751 |
> |
if test "x$ac_cv_cxx_namespaces" = xyes; then |
11752 |
> |
|
11753 |
> |
ac_ext=cpp |
11754 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
11755 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11756 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11757 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
11758 |
> |
|
11759 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11760 |
> |
/* confdefs.h. */ |
11761 |
> |
_ACEOF |
11762 |
> |
cat confdefs.h >>conftest.$ac_ext |
11763 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
11764 |
> |
/* end confdefs.h. */ |
11765 |
> |
|
11766 |
> |
#ifdef HAVE_IOSTREAM |
11767 |
> |
#include <iostream> |
11768 |
> |
#else |
11769 |
> |
#include <iostream.h> |
11770 |
> |
#endif |
11771 |
> |
|
11772 |
> |
#ifdef FC_DUMMY_MAIN |
11773 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11774 |
> |
# ifdef __cplusplus |
11775 |
> |
extern "C" |
11776 |
> |
# endif |
11777 |
> |
int FC_DUMMY_MAIN() { return 1; } |
11778 |
> |
#endif |
11779 |
> |
#endif |
11780 |
> |
int |
11781 |
> |
main () |
11782 |
> |
{ |
11783 |
> |
std::cout<<"Hello World"<<std::endl;return 0; |
11784 |
> |
; |
11785 |
> |
return 0; |
11786 |
> |
} |
11787 |
> |
_ACEOF |
11788 |
> |
rm -f conftest.$ac_objext |
11789 |
> |
if { (ac_try="$ac_compile" |
11790 |
> |
case "(($ac_try" in |
11791 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11792 |
> |
*) ac_try_echo=$ac_try;; |
11793 |
> |
esac |
11794 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11795 |
> |
(eval "$ac_compile") 2>conftest.er1 |
11796 |
> |
ac_status=$? |
11797 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
11798 |
> |
rm -f conftest.er1 |
11799 |
> |
cat conftest.err >&5 |
11800 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11801 |
> |
(exit $ac_status); } && { |
11802 |
> |
test -z "$ac_cxx_werror_flag" || |
11803 |
> |
test ! -s conftest.err |
11804 |
> |
} && test -s conftest.$ac_objext; then |
11805 |
> |
ac_cv_cxx_have_std_iostream=yes |
11806 |
> |
else |
11807 |
> |
echo "$as_me: failed program was:" >&5 |
11808 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
11809 |
> |
|
11810 |
> |
|
11811 |
> |
fi |
11812 |
> |
|
11813 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11814 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11815 |
> |
/* confdefs.h. */ |
11816 |
> |
_ACEOF |
11817 |
> |
cat confdefs.h >>conftest.$ac_ext |
11818 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
11819 |
> |
/* end confdefs.h. */ |
11820 |
> |
|
11821 |
> |
#define __USE_STD_IOSTREAM 1 |
11822 |
> |
#ifdef HAVE_IOSTREAM |
11823 |
> |
#include <iostream> |
11824 |
> |
#else |
11825 |
> |
#include <iostream.h> |
11826 |
> |
#endif |
11827 |
> |
|
11828 |
> |
#ifdef FC_DUMMY_MAIN |
11829 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11830 |
> |
# ifdef __cplusplus |
11831 |
> |
extern "C" |
11832 |
> |
# endif |
11833 |
> |
int FC_DUMMY_MAIN() { return 1; } |
11834 |
> |
#endif |
11835 |
> |
#endif |
11836 |
> |
int |
11837 |
> |
main () |
11838 |
> |
{ |
11839 |
> |
std::cout<<"Hello World"<<std::endl;return 0; |
11840 |
> |
; |
11841 |
> |
return 0; |
11842 |
> |
} |
11843 |
> |
_ACEOF |
11844 |
> |
rm -f conftest.$ac_objext |
11845 |
> |
if { (ac_try="$ac_compile" |
11846 |
> |
case "(($ac_try" in |
11847 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11848 |
> |
*) ac_try_echo=$ac_try;; |
11849 |
> |
esac |
11850 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11851 |
> |
(eval "$ac_compile") 2>conftest.er1 |
11852 |
> |
ac_status=$? |
11853 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
11854 |
> |
rm -f conftest.er1 |
11855 |
> |
cat conftest.err >&5 |
11856 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11857 |
> |
(exit $ac_status); } && { |
11858 |
> |
test -z "$ac_cxx_werror_flag" || |
11859 |
> |
test ! -s conftest.err |
11860 |
> |
} && test -s conftest.$ac_objext; then |
11861 |
> |
ac_cv_cxx_have_std_iostream=yes;ac_cv_cxx_need_use_std_iostream=yes |
11862 |
> |
else |
11863 |
> |
echo "$as_me: failed program was:" >&5 |
11864 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
11865 |
> |
|
11866 |
> |
|
11867 |
> |
fi |
11868 |
> |
|
11869 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11870 |
> |
ac_ext=cpp |
11871 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
11872 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11873 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11874 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
11875 |
> |
|
11876 |
> |
fi |
11877 |
> |
|
11878 |
> |
fi |
11879 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iostream" >&5 |
11880 |
> |
echo "${ECHO_T}$ac_cv_cxx_have_std_iostream" >&6; } |
11881 |
> |
if test "$ac_cv_cxx_have_std_iostream" = yes; then |
11882 |
> |
|
11883 |
> |
cat >>confdefs.h <<\_ACEOF |
11884 |
> |
#define HAVE_STD_IOSTREAM 1 |
11885 |
> |
_ACEOF |
11886 |
> |
|
11887 |
> |
fi |
11888 |
> |
if test "$ac_cv_cxx_need_use_std_iostream" = yes; then |
11889 |
> |
|
11890 |
> |
cat >>confdefs.h <<\_ACEOF |
11891 |
> |
#define __USE_STD_IOSTREAM 1 |
11892 |
> |
_ACEOF |
11893 |
> |
|
11894 |
> |
fi |
11895 |
> |
|
11896 |
> |
|
11897 |
> |
|
11898 |
> |
|
11899 |
> |
{ echo "$as_me:$LINENO: checking for C++ Standard Template Library in namespace std." >&5 |
11900 |
> |
echo $ECHO_N "checking for C++ Standard Template Library in namespace std.... $ECHO_C" >&6; } |
11901 |
> |
if test "${ac_cv_cxx_have_std_stl+set}" = set; then |
11902 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11903 |
> |
else |
11904 |
> |
|
11905 |
> |
ac_cv_cxx_have_std_stl=no |
11906 |
> |
if test "x$ac_cv_cxx_namespaces" = xyes; then |
11907 |
> |
|
11908 |
> |
ac_ext=cpp |
11909 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
11910 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11911 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11912 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
11913 |
> |
|
11914 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11915 |
> |
/* confdefs.h. */ |
11916 |
> |
_ACEOF |
11917 |
> |
cat confdefs.h >>conftest.$ac_ext |
11918 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
11919 |
> |
/* end confdefs.h. */ |
11920 |
> |
#include <list> |
11921 |
> |
|
11922 |
> |
#ifdef FC_DUMMY_MAIN |
11923 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11924 |
> |
# ifdef __cplusplus |
11925 |
> |
extern "C" |
11926 |
> |
# endif |
11927 |
> |
int FC_DUMMY_MAIN() { return 1; } |
11928 |
> |
#endif |
11929 |
> |
#endif |
11930 |
> |
int |
11931 |
> |
main () |
11932 |
> |
{ |
11933 |
> |
std::list<int> foo;return 0; |
11934 |
> |
; |
11935 |
> |
return 0; |
11936 |
> |
} |
11937 |
> |
_ACEOF |
11938 |
> |
rm -f conftest.$ac_objext |
11939 |
> |
if { (ac_try="$ac_compile" |
11940 |
> |
case "(($ac_try" in |
11941 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11942 |
> |
*) ac_try_echo=$ac_try;; |
11943 |
> |
esac |
11944 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11945 |
> |
(eval "$ac_compile") 2>conftest.er1 |
11946 |
> |
ac_status=$? |
11947 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
11948 |
> |
rm -f conftest.er1 |
11949 |
> |
cat conftest.err >&5 |
11950 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11951 |
> |
(exit $ac_status); } && { |
11952 |
> |
test -z "$ac_cxx_werror_flag" || |
11953 |
> |
test ! -s conftest.err |
11954 |
> |
} && test -s conftest.$ac_objext; then |
11955 |
> |
ac_cv_cxx_have_std_stl=yes |
11956 |
> |
else |
11957 |
> |
echo "$as_me: failed program was:" >&5 |
11958 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
11959 |
> |
|
11960 |
> |
|
11961 |
> |
fi |
11962 |
> |
|
11963 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11964 |
> |
ac_ext=cpp |
11965 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
11966 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11967 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11968 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
11969 |
> |
|
11970 |
> |
fi |
11971 |
> |
|
11972 |
> |
fi |
11973 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_stl" >&5 |
11974 |
> |
echo "${ECHO_T}$ac_cv_cxx_have_std_stl" >&6; } |
11975 |
> |
if test "$ac_cv_cxx_have_std_stl" = yes; then |
11976 |
> |
|
11977 |
> |
cat >>confdefs.h <<\_ACEOF |
11978 |
> |
#define HAVE_STD_STL 1 |
11979 |
> |
_ACEOF |
11980 |
> |
|
11981 |
> |
fi |
11982 |
> |
|
11983 |
> |
|
11984 |
> |
|
11985 |
> |
{ echo "$as_me:$LINENO: checking for fstream::attach()" >&5 |
11986 |
> |
echo $ECHO_N "checking for fstream::attach()... $ECHO_C" >&6; } |
11987 |
> |
if test "${ac_cv_cxx_have_fstream_attach+set}" = set; then |
11988 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11989 |
> |
else |
11990 |
> |
|
11991 |
> |
ac_cv_cxx_have_fstream_attach=no |
11992 |
> |
|
11993 |
> |
ac_ext=cpp |
11994 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
11995 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11996 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11997 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
11998 |
> |
|
11999 |
> |
cat >conftest.$ac_ext <<_ACEOF |
12000 |
> |
/* confdefs.h. */ |
12001 |
> |
_ACEOF |
12002 |
> |
cat confdefs.h >>conftest.$ac_ext |
12003 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
12004 |
> |
/* end confdefs.h. */ |
12005 |
> |
|
12006 |
> |
#ifdef HAVE_IOSTREAM |
12007 |
> |
#include <fstream> |
12008 |
> |
#else |
12009 |
> |
#include <fstream.h> |
12010 |
> |
#endif |
12011 |
> |
#ifdef HAVE_STD_IOSTREAM |
12012 |
> |
using namespace std; |
12013 |
> |
#endif |
12014 |
> |
|
12015 |
> |
#ifdef FC_DUMMY_MAIN |
12016 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12017 |
> |
# ifdef __cplusplus |
12018 |
> |
extern "C" |
12019 |
> |
# endif |
12020 |
> |
int FC_DUMMY_MAIN() { return 1; } |
12021 |
> |
#endif |
12022 |
> |
#endif |
12023 |
> |
int |
12024 |
> |
main () |
12025 |
> |
{ |
12026 |
> |
int fd=0;ofstream s;s.attach(fd); |
12027 |
> |
; |
12028 |
> |
return 0; |
12029 |
> |
} |
12030 |
> |
_ACEOF |
12031 |
> |
rm -f conftest.$ac_objext |
12032 |
> |
if { (ac_try="$ac_compile" |
12033 |
> |
case "(($ac_try" in |
12034 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12035 |
> |
*) ac_try_echo=$ac_try;; |
12036 |
> |
esac |
12037 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12038 |
> |
(eval "$ac_compile") 2>conftest.er1 |
12039 |
> |
ac_status=$? |
12040 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
12041 |
> |
rm -f conftest.er1 |
12042 |
> |
cat conftest.err >&5 |
12043 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12044 |
> |
(exit $ac_status); } && { |
12045 |
> |
test -z "$ac_cxx_werror_flag" || |
12046 |
> |
test ! -s conftest.err |
12047 |
> |
} && test -s conftest.$ac_objext; then |
12048 |
> |
ac_cv_cxx_have_fstream_attach=yes |
12049 |
> |
else |
12050 |
> |
echo "$as_me: failed program was:" >&5 |
12051 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
12052 |
> |
|
12053 |
> |
|
12054 |
> |
fi |
12055 |
> |
|
12056 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12057 |
> |
ac_ext=cpp |
12058 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
12059 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12060 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12061 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
12062 |
> |
|
12063 |
> |
|
12064 |
> |
fi |
12065 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fstream_attach" >&5 |
12066 |
> |
echo "${ECHO_T}$ac_cv_cxx_have_fstream_attach" >&6; } |
12067 |
> |
if test "$ac_cv_cxx_have_fstream_attach" = yes; then |
12068 |
> |
|
12069 |
> |
cat >>confdefs.h <<\_ACEOF |
12070 |
> |
#define HAVE_FSTREAM_ATTACH 1 |
12071 |
> |
_ACEOF |
12072 |
> |
|
12073 |
> |
fi |
12074 |
> |
|
12075 |
> |
|
12076 |
> |
|
12077 |
> |
{ echo "$as_me:$LINENO: checking for fstream::open()" >&5 |
12078 |
> |
echo $ECHO_N "checking for fstream::open()... $ECHO_C" >&6; } |
12079 |
> |
if test "${ac_cv_cxx_have_fstream_open+set}" = set; then |
12080 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12081 |
> |
else |
12082 |
> |
|
12083 |
> |
ac_cv_cxx_have_fstream_open=no |
12084 |
> |
ac_cv_cxx_fstream_open_prot=no |
12085 |
> |
|
12086 |
> |
ac_ext=cpp |
12087 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
12088 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12089 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12090 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
12091 |
> |
|
12092 |
> |
# Try with 2 parameters |
12093 |
> |
cat >conftest.$ac_ext <<_ACEOF |
12094 |
> |
/* confdefs.h. */ |
12095 |
> |
_ACEOF |
12096 |
> |
cat confdefs.h >>conftest.$ac_ext |
12097 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
12098 |
> |
/* end confdefs.h. */ |
12099 |
> |
|
12100 |
> |
#ifdef HAVE_IOSTREAM |
12101 |
> |
#include <fstream> |
12102 |
> |
#else |
12103 |
> |
#include <fstream.h> |
12104 |
> |
#endif |
12105 |
> |
#ifdef HAVE_STD_IOSTREAM |
12106 |
> |
using namespace std; |
12107 |
> |
#endif |
12108 |
> |
|
12109 |
> |
#ifdef FC_DUMMY_MAIN |
12110 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12111 |
> |
# ifdef __cplusplus |
12112 |
> |
extern "C" |
12113 |
> |
# endif |
12114 |
> |
int FC_DUMMY_MAIN() { return 1; } |
12115 |
> |
#endif |
12116 |
> |
#endif |
12117 |
> |
int |
12118 |
> |
main () |
12119 |
> |
{ |
12120 |
> |
ofstream s;s.open("conftest.txt",ios::out|ios::trunc); |
12121 |
> |
; |
12122 |
> |
return 0; |
12123 |
> |
} |
12124 |
> |
_ACEOF |
12125 |
> |
rm -f conftest.$ac_objext |
12126 |
> |
if { (ac_try="$ac_compile" |
12127 |
> |
case "(($ac_try" in |
12128 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12129 |
> |
*) ac_try_echo=$ac_try;; |
12130 |
> |
esac |
12131 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12132 |
> |
(eval "$ac_compile") 2>conftest.er1 |
12133 |
> |
ac_status=$? |
12134 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
12135 |
> |
rm -f conftest.er1 |
12136 |
> |
cat conftest.err >&5 |
12137 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12138 |
> |
(exit $ac_status); } && { |
12139 |
> |
test -z "$ac_cxx_werror_flag" || |
12140 |
> |
test ! -s conftest.err |
12141 |
> |
} && test -s conftest.$ac_objext; then |
12142 |
> |
ac_cv_cxx_have_fstream_open=yes |
12143 |
> |
else |
12144 |
> |
echo "$as_me: failed program was:" >&5 |
12145 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
12146 |
> |
|
12147 |
> |
|
12148 |
> |
fi |
12149 |
> |
|
12150 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12151 |
> |
# Try with mode parameter |
12152 |
> |
cat >conftest.$ac_ext <<_ACEOF |
12153 |
> |
/* confdefs.h. */ |
12154 |
> |
_ACEOF |
12155 |
> |
cat confdefs.h >>conftest.$ac_ext |
12156 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
12157 |
> |
/* end confdefs.h. */ |
12158 |
> |
|
12159 |
> |
#ifdef HAVE_IOSTREAM |
12160 |
> |
#include <fstream> |
12161 |
> |
#else |
12162 |
> |
#include <fstream.h> |
12163 |
> |
#endif |
12164 |
> |
#ifdef HAVE_STD_IOSTREAM |
12165 |
> |
using namespace std; |
12166 |
> |
#endif |
12167 |
> |
|
12168 |
> |
#ifdef FC_DUMMY_MAIN |
12169 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12170 |
> |
# ifdef __cplusplus |
12171 |
> |
extern "C" |
12172 |
> |
# endif |
12173 |
> |
int FC_DUMMY_MAIN() { return 1; } |
12174 |
> |
#endif |
12175 |
> |
#endif |
12176 |
> |
int |
12177 |
> |
main () |
12178 |
> |
{ |
12179 |
> |
ofstream s;s.open("conftest.txt",ios::out|ios::trunc,0666); |
12180 |
> |
; |
12181 |
> |
return 0; |
12182 |
> |
} |
12183 |
> |
_ACEOF |
12184 |
> |
rm -f conftest.$ac_objext |
12185 |
> |
if { (ac_try="$ac_compile" |
12186 |
> |
case "(($ac_try" in |
12187 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12188 |
> |
*) ac_try_echo=$ac_try;; |
12189 |
> |
esac |
12190 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12191 |
> |
(eval "$ac_compile") 2>conftest.er1 |
12192 |
> |
ac_status=$? |
12193 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
12194 |
> |
rm -f conftest.er1 |
12195 |
> |
cat conftest.err >&5 |
12196 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12197 |
> |
(exit $ac_status); } && { |
12198 |
> |
test -z "$ac_cxx_werror_flag" || |
12199 |
> |
test ! -s conftest.err |
12200 |
> |
} && test -s conftest.$ac_objext; then |
12201 |
> |
ac_cv_cxx_fstream_open_prot=yes |
12202 |
> |
else |
12203 |
> |
echo "$as_me: failed program was:" >&5 |
12204 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
12205 |
> |
|
12206 |
> |
|
12207 |
> |
fi |
12208 |
> |
|
12209 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12210 |
> |
ac_ext=cpp |
12211 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
12212 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12213 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12214 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
12215 |
> |
|
12216 |
> |
|
12217 |
> |
fi |
12218 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fstream_open" >&5 |
12219 |
> |
echo "${ECHO_T}$ac_cv_cxx_have_fstream_open" >&6; } |
12220 |
> |
if test "$ac_cv_cxx_have_fstream_open" = yes; then |
12221 |
> |
|
12222 |
> |
cat >>confdefs.h <<\_ACEOF |
12223 |
> |
#define HAVE_FSTREAM_OPEN 1 |
12224 |
> |
_ACEOF |
12225 |
> |
|
12226 |
> |
fi |
12227 |
> |
if test "$ac_cv_cxx_fstream_open_prot" = yes; then |
12228 |
> |
|
12229 |
> |
cat >>confdefs.h <<\_ACEOF |
12230 |
> |
#define FSTREAM_OPEN_PROT 1 |
12231 |
> |
_ACEOF |
12232 |
> |
|
12233 |
> |
fi |
12234 |
> |
|
12235 |
> |
|
12236 |
> |
|
12237 |
> |
|
12238 |
> |
|
12239 |
> |
|
12240 |
> |
|
12241 |
> |
for ac_header in ctype.h iostream fstream sstream strstream |
12242 |
> |
do |
12243 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12244 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12245 |
> |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12246 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
12247 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12248 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12249 |
> |
fi |
12250 |
> |
ac_res=`eval echo '${'$as_ac_Header'}'` |
12251 |
> |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
12252 |
> |
echo "${ECHO_T}$ac_res" >&6; } |
12253 |
> |
else |
12254 |
> |
# Is the header compilable? |
12255 |
> |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12256 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
12257 |
> |
cat >conftest.$ac_ext <<_ACEOF |
12258 |
> |
/* confdefs.h. */ |
12259 |
> |
_ACEOF |
12260 |
> |
cat confdefs.h >>conftest.$ac_ext |
12261 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
12262 |
> |
/* end confdefs.h. */ |
12263 |
> |
$ac_includes_default |
12264 |
> |
#include <$ac_header> |
12265 |
> |
_ACEOF |
12266 |
> |
rm -f conftest.$ac_objext |
12267 |
> |
if { (ac_try="$ac_compile" |
12268 |
> |
case "(($ac_try" in |
12269 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12270 |
> |
*) ac_try_echo=$ac_try;; |
12271 |
> |
esac |
12272 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12273 |
> |
(eval "$ac_compile") 2>conftest.er1 |
12274 |
> |
ac_status=$? |
12275 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
12276 |
> |
rm -f conftest.er1 |
12277 |
> |
cat conftest.err >&5 |
12278 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12279 |
> |
(exit $ac_status); } && { |
12280 |
> |
test -z "$ac_cxx_werror_flag" || |
12281 |
> |
test ! -s conftest.err |
12282 |
> |
} && test -s conftest.$ac_objext; then |
12283 |
> |
ac_header_compiler=yes |
12284 |
> |
else |
12285 |
> |
echo "$as_me: failed program was:" >&5 |
12286 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
12287 |
> |
|
12288 |
> |
ac_header_compiler=no |
12289 |
> |
fi |
12290 |
> |
|
12291 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12292 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12293 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
12294 |
> |
|
12295 |
> |
# Is the header present? |
12296 |
> |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12297 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
12298 |
> |
cat >conftest.$ac_ext <<_ACEOF |
12299 |
> |
/* confdefs.h. */ |
12300 |
> |
_ACEOF |
12301 |
> |
cat confdefs.h >>conftest.$ac_ext |
12302 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
12303 |
> |
/* end confdefs.h. */ |
12304 |
> |
#include <$ac_header> |
12305 |
> |
_ACEOF |
12306 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
12307 |
> |
case "(($ac_try" in |
12308 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12309 |
> |
*) ac_try_echo=$ac_try;; |
12310 |
> |
esac |
12311 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12312 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
12313 |
> |
ac_status=$? |
12314 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
12315 |
> |
rm -f conftest.er1 |
12316 |
> |
cat conftest.err >&5 |
12317 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12318 |
> |
(exit $ac_status); } >/dev/null && { |
12319 |
> |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
12320 |
> |
test ! -s conftest.err |
12321 |
> |
}; then |
12322 |
> |
ac_header_preproc=yes |
12323 |
> |
else |
12324 |
> |
echo "$as_me: failed program was:" >&5 |
12325 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
12326 |
> |
|
12327 |
> |
ac_header_preproc=no |
12328 |
> |
fi |
12329 |
> |
|
12330 |
> |
rm -f conftest.err conftest.$ac_ext |
12331 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12332 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
12333 |
> |
|
12334 |
> |
# So? What about this header? |
12335 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
12336 |
> |
yes:no: ) |
12337 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12338 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
12339 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12340 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
12341 |
> |
ac_header_preproc=yes |
12342 |
> |
;; |
12343 |
> |
no:yes:* ) |
12344 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12345 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
12346 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12347 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
12348 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
12349 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
12350 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
12351 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
12352 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12353 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
12354 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12355 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
12356 |
> |
( cat <<\_ASBOX |
12357 |
> |
## ------------------------------ ## |
12358 |
> |
## Report this to gezelter@nd.edu ## |
12359 |
> |
## ------------------------------ ## |
12360 |
> |
_ASBOX |
12361 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
12362 |
> |
;; |
12363 |
> |
esac |
12364 |
> |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12365 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
12366 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12367 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12368 |
> |
else |
12369 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
12370 |
> |
fi |
12371 |
> |
ac_res=`eval echo '${'$as_ac_Header'}'` |
12372 |
> |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
12373 |
> |
echo "${ECHO_T}$ac_res" >&6; } |
12374 |
> |
|
12375 |
> |
fi |
12376 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12377 |
> |
cat >>confdefs.h <<_ACEOF |
12378 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
12379 |
> |
_ACEOF |
12380 |
> |
|
12381 |
> |
fi |
12382 |
> |
|
12383 |
> |
done |
12384 |
> |
|
12385 |
> |
# AC_CPP_FUNC |
12386 |
> |
# ------------------ # |
12387 |
> |
# Checks to see if ANSI C99 CPP variable __func__ works. |
12388 |
> |
# If not, perhaps __FUNCTION__ works instead. |
12389 |
> |
# If not, we'll just define __func__ to "". |
12390 |
> |
# AC_CPP_FUNC |
12391 |
> |
|
12392 |
> |
case $ac_cv_prog_cc_stdc in |
12393 |
> |
no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; |
12394 |
> |
*) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 |
12395 |
> |
echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; } |
12396 |
> |
if test "${ac_cv_prog_cc_c99+set}" = set; then |
12397 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12398 |
> |
else |
12399 |
> |
ac_cv_prog_cc_c99=no |
12400 |
> |
ac_save_CC=$CC |
12401 |
> |
cat >conftest.$ac_ext <<_ACEOF |
12402 |
> |
/* confdefs.h. */ |
12403 |
> |
_ACEOF |
12404 |
> |
cat confdefs.h >>conftest.$ac_ext |
12405 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
12406 |
> |
/* end confdefs.h. */ |
12407 |
> |
#include <stdarg.h> |
12408 |
> |
#include <stdbool.h> |
12409 |
> |
#include <stdlib.h> |
12410 |
> |
#include <wchar.h> |
12411 |
> |
#include <stdio.h> |
12412 |
> |
|
12413 |
> |
// Check varargs macros. These examples are taken from C99 6.10.3.5. |
12414 |
> |
#define debug(...) fprintf (stderr, __VA_ARGS__) |
12415 |
> |
#define showlist(...) puts (#__VA_ARGS__) |
12416 |
> |
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
12417 |
> |
static void |
12418 |
> |
test_varargs_macros (void) |
12419 |
> |
{ |
12420 |
> |
int x = 1234; |
12421 |
> |
int y = 5678; |
12422 |
> |
debug ("Flag"); |
12423 |
> |
debug ("X = %d\n", x); |
12424 |
> |
showlist (The first, second, and third items.); |
12425 |
> |
report (x>y, "x is %d but y is %d", x, y); |
12426 |
> |
} |
12427 |
> |
|
12428 |
> |
// Check long long types. |
12429 |
> |
#define BIG64 18446744073709551615ull |
12430 |
> |
#define BIG32 4294967295ul |
12431 |
> |
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
12432 |
> |
#if !BIG_OK |
12433 |
> |
your preprocessor is broken; |
12434 |
> |
#endif |
12435 |
> |
#if BIG_OK |
12436 |
> |
#else |
12437 |
> |
your preprocessor is broken; |
12438 |
> |
#endif |
12439 |
> |
static long long int bignum = -9223372036854775807LL; |
12440 |
> |
static unsigned long long int ubignum = BIG64; |
12441 |
> |
|
12442 |
> |
struct incomplete_array |
12443 |
> |
{ |
12444 |
> |
int datasize; |
12445 |
> |
double data[]; |
12446 |
> |
}; |
12447 |
> |
|
12448 |
> |
struct named_init { |
12449 |
> |
int number; |
12450 |
> |
const wchar_t *name; |
12451 |
> |
double average; |
12452 |
> |
}; |
12453 |
> |
|
12454 |
> |
typedef const char *ccp; |
12455 |
> |
|
12456 |
> |
static inline int |
12457 |
> |
test_restrict (ccp restrict text) |
12458 |
> |
{ |
12459 |
> |
// See if C++-style comments work. |
12460 |
> |
// Iterate through items via the restricted pointer. |
12461 |
> |
// Also check for declarations in for loops. |
12462 |
> |
for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
12463 |
> |
continue; |
12464 |
> |
return 0; |
12465 |
> |
} |
12466 |
> |
|
12467 |
> |
// Check varargs and va_copy. |
12468 |
> |
static void |
12469 |
> |
test_varargs (const char *format, ...) |
12470 |
> |
{ |
12471 |
> |
va_list args; |
12472 |
> |
va_start (args, format); |
12473 |
> |
va_list args_copy; |
12474 |
> |
va_copy (args_copy, args); |
12475 |
> |
|
12476 |
> |
const char *str; |
12477 |
> |
int number; |
12478 |
> |
float fnumber; |
12479 |
> |
|
12480 |
> |
while (*format) |
12481 |
> |
{ |
12482 |
> |
switch (*format++) |
12483 |
> |
{ |
12484 |
> |
case 's': // string |
12485 |
> |
str = va_arg (args_copy, const char *); |
12486 |
> |
break; |
12487 |
> |
case 'd': // int |
12488 |
> |
number = va_arg (args_copy, int); |
12489 |
> |
break; |
12490 |
> |
case 'f': // float |
12491 |
> |
fnumber = va_arg (args_copy, double); |
12492 |
> |
break; |
12493 |
> |
default: |
12494 |
> |
break; |
12495 |
> |
} |
12496 |
> |
} |
12497 |
> |
va_end (args_copy); |
12498 |
> |
va_end (args); |
12499 |
> |
} |
12500 |
> |
|
12501 |
> |
#ifdef FC_DUMMY_MAIN |
12502 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12503 |
> |
# ifdef __cplusplus |
12504 |
> |
extern "C" |
12505 |
> |
# endif |
12506 |
> |
int FC_DUMMY_MAIN() { return 1; } |
12507 |
> |
#endif |
12508 |
> |
#endif |
12509 |
> |
int |
12510 |
> |
main () |
12511 |
> |
{ |
12512 |
> |
|
12513 |
> |
// Check bool. |
12514 |
> |
_Bool success = false; |
12515 |
> |
|
12516 |
> |
// Check restrict. |
12517 |
> |
if (test_restrict ("String literal") == 0) |
12518 |
> |
success = true; |
12519 |
> |
char *restrict newvar = "Another string"; |
12520 |
> |
|
12521 |
> |
// Check varargs. |
12522 |
> |
test_varargs ("s, d' f .", "string", 65, 34.234); |
12523 |
> |
test_varargs_macros (); |
12524 |
> |
|
12525 |
> |
// Check flexible array members. |
12526 |
> |
struct incomplete_array *ia = |
12527 |
> |
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
12528 |
> |
ia->datasize = 10; |
12529 |
> |
for (int i = 0; i < ia->datasize; ++i) |
12530 |
> |
ia->data[i] = i * 1.234; |
12531 |
> |
|
12532 |
> |
// Check named initializers. |
12533 |
> |
struct named_init ni = { |
12534 |
> |
.number = 34, |
12535 |
> |
.name = L"Test wide string", |
12536 |
> |
.average = 543.34343, |
12537 |
> |
}; |
12538 |
> |
|
12539 |
> |
ni.number = 58; |
12540 |
> |
|
12541 |
> |
int dynamic_array[ni.number]; |
12542 |
> |
dynamic_array[ni.number - 1] = 543; |
12543 |
> |
|
12544 |
> |
// work around unused variable warnings |
12545 |
> |
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
12546 |
> |
|| dynamic_array[ni.number - 1] != 543); |
12547 |
> |
|
12548 |
> |
; |
12549 |
> |
return 0; |
12550 |
> |
} |
12551 |
> |
_ACEOF |
12552 |
> |
for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99 |
12553 |
> |
do |
12554 |
> |
CC="$ac_save_CC $ac_arg" |
12555 |
> |
rm -f conftest.$ac_objext |
12556 |
> |
if { (ac_try="$ac_compile" |
12557 |
> |
case "(($ac_try" in |
12558 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12559 |
> |
*) ac_try_echo=$ac_try;; |
12560 |
> |
esac |
12561 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12562 |
> |
(eval "$ac_compile") 2>conftest.er1 |
12563 |
> |
ac_status=$? |
12564 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
12565 |
> |
rm -f conftest.er1 |
12566 |
> |
cat conftest.err >&5 |
12567 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12568 |
> |
(exit $ac_status); } && { |
12569 |
> |
test -z "$ac_cxx_werror_flag" || |
12570 |
> |
test ! -s conftest.err |
12571 |
> |
} && test -s conftest.$ac_objext; then |
12572 |
> |
ac_cv_prog_cc_c99=$ac_arg |
12573 |
> |
else |
12574 |
> |
echo "$as_me: failed program was:" >&5 |
12575 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
12576 |
> |
|
12577 |
> |
|
12578 |
> |
fi |
12579 |
> |
|
12580 |
> |
rm -f core conftest.err conftest.$ac_objext |
12581 |
> |
test "x$ac_cv_prog_cc_c99" != "xno" && break |
12582 |
> |
done |
12583 |
> |
rm -f conftest.$ac_ext |
12584 |
> |
CC=$ac_save_CC |
12585 |
> |
|
12586 |
> |
fi |
12587 |
> |
# AC_CACHE_VAL |
12588 |
> |
case "x$ac_cv_prog_cc_c99" in |
12589 |
> |
x) |
12590 |
> |
{ echo "$as_me:$LINENO: result: none needed" >&5 |
12591 |
> |
echo "${ECHO_T}none needed" >&6; } ;; |
12592 |
> |
xno) |
12593 |
> |
{ echo "$as_me:$LINENO: result: unsupported" >&5 |
12594 |
> |
echo "${ECHO_T}unsupported" >&6; } ;; |
12595 |
> |
*) |
12596 |
> |
CC="$CC $ac_cv_prog_cc_c99" |
12597 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 |
12598 |
> |
echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;; |
12599 |
> |
esac |
12600 |
> |
if test "x$ac_cv_prog_cc_c99" != xno; then |
12601 |
> |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
12602 |
> |
else |
12603 |
> |
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
12604 |
> |
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
12605 |
> |
if test "${ac_cv_prog_cc_c89+set}" = set; then |
12606 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12607 |
> |
else |
12608 |
> |
ac_cv_prog_cc_c89=no |
12609 |
> |
ac_save_CC=$CC |
12610 |
> |
cat >conftest.$ac_ext <<_ACEOF |
12611 |
> |
/* confdefs.h. */ |
12612 |
> |
_ACEOF |
12613 |
> |
cat confdefs.h >>conftest.$ac_ext |
12614 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
12615 |
> |
/* end confdefs.h. */ |
12616 |
> |
#include <stdarg.h> |
12617 |
> |
#include <stdio.h> |
12618 |
> |
#include <sys/types.h> |
12619 |
> |
#include <sys/stat.h> |
12620 |
> |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
12621 |
> |
struct buf { int x; }; |
12622 |
> |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
12623 |
> |
static char *e (p, i) |
12624 |
> |
char **p; |
12625 |
> |
int i; |
12626 |
> |
{ |
12627 |
> |
return p[i]; |
12628 |
> |
} |
12629 |
> |
static char *f (char * (*g) (char **, int), char **p, ...) |
12630 |
> |
{ |
12631 |
> |
char *s; |
12632 |
> |
va_list v; |
12633 |
> |
va_start (v,p); |
12634 |
> |
s = g (p, va_arg (v,int)); |
12635 |
> |
va_end (v); |
12636 |
> |
return s; |
12637 |
> |
} |
12638 |
> |
|
12639 |
> |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
12640 |
> |
function prototypes and stuff, but not '\xHH' hex character constants. |
12641 |
> |
These don't provoke an error unfortunately, instead are silently treated |
12642 |
> |
as 'x'. The following induces an error, until -std is added to get |
12643 |
> |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
12644 |
> |
array size at least. It's necessary to write '\x00'==0 to get something |
12645 |
> |
that's true only with -std. */ |
12646 |
> |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
12647 |
> |
|
12648 |
> |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
12649 |
> |
inside strings and character constants. */ |
12650 |
> |
#define FOO(x) 'x' |
12651 |
> |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
12652 |
> |
|
12653 |
> |
int test (int i, double x); |
12654 |
> |
struct s1 {int (*f) (int a);}; |
12655 |
> |
struct s2 {int (*f) (double a);}; |
12656 |
> |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
12657 |
> |
int argc; |
12658 |
> |
char **argv; |
12659 |
> |
#ifdef FC_DUMMY_MAIN |
12660 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12661 |
> |
# ifdef __cplusplus |
12662 |
> |
extern "C" |
12663 |
> |
# endif |
12664 |
> |
int FC_DUMMY_MAIN() { return 1; } |
12665 |
> |
#endif |
12666 |
> |
#endif |
12667 |
> |
int |
12668 |
> |
main () |
12669 |
> |
{ |
12670 |
> |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
12671 |
> |
; |
12672 |
> |
return 0; |
12673 |
> |
} |
12674 |
> |
_ACEOF |
12675 |
> |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
12676 |
> |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
12677 |
> |
do |
12678 |
> |
CC="$ac_save_CC $ac_arg" |
12679 |
> |
rm -f conftest.$ac_objext |
12680 |
> |
if { (ac_try="$ac_compile" |
12681 |
> |
case "(($ac_try" in |
12682 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12683 |
> |
*) ac_try_echo=$ac_try;; |
12684 |
> |
esac |
12685 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12686 |
> |
(eval "$ac_compile") 2>conftest.er1 |
12687 |
> |
ac_status=$? |
12688 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
12689 |
> |
rm -f conftest.er1 |
12690 |
> |
cat conftest.err >&5 |
12691 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12692 |
> |
(exit $ac_status); } && { |
12693 |
> |
test -z "$ac_cxx_werror_flag" || |
12694 |
> |
test ! -s conftest.err |
12695 |
> |
} && test -s conftest.$ac_objext; then |
12696 |
> |
ac_cv_prog_cc_c89=$ac_arg |
12697 |
> |
else |
12698 |
> |
echo "$as_me: failed program was:" >&5 |
12699 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
12700 |
> |
|
12701 |
> |
|
12702 |
> |
fi |
12703 |
> |
|
12704 |
> |
rm -f core conftest.err conftest.$ac_objext |
12705 |
> |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
12706 |
> |
done |
12707 |
> |
rm -f conftest.$ac_ext |
12708 |
> |
CC=$ac_save_CC |
12709 |
> |
|
12710 |
> |
fi |
12711 |
> |
# AC_CACHE_VAL |
12712 |
> |
case "x$ac_cv_prog_cc_c89" in |
12713 |
> |
x) |
12714 |
> |
{ echo "$as_me:$LINENO: result: none needed" >&5 |
12715 |
> |
echo "${ECHO_T}none needed" >&6; } ;; |
12716 |
> |
xno) |
12717 |
> |
{ echo "$as_me:$LINENO: result: unsupported" >&5 |
12718 |
> |
echo "${ECHO_T}unsupported" >&6; } ;; |
12719 |
> |
*) |
12720 |
> |
CC="$CC $ac_cv_prog_cc_c89" |
12721 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
12722 |
> |
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
12723 |
> |
esac |
12724 |
> |
if test "x$ac_cv_prog_cc_c89" != xno; then |
12725 |
> |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
12726 |
> |
else |
12727 |
> |
ac_cv_prog_cc_stdc=no |
12728 |
> |
fi |
12729 |
> |
|
12730 |
> |
|
12731 |
> |
fi |
12732 |
> |
|
12733 |
> |
;; |
12734 |
> |
esac |
12735 |
> |
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5 |
12736 |
> |
echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; } |
12737 |
> |
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
12738 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12739 |
> |
fi |
12740 |
> |
|
12741 |
> |
case $ac_cv_prog_cc_stdc in |
12742 |
> |
no) { echo "$as_me:$LINENO: result: unsupported" >&5 |
12743 |
> |
echo "${ECHO_T}unsupported" >&6; } ;; |
12744 |
> |
'') { echo "$as_me:$LINENO: result: none needed" >&5 |
12745 |
> |
echo "${ECHO_T}none needed" >&6; } ;; |
12746 |
> |
*) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
12747 |
> |
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;; |
12748 |
> |
esac |
12749 |
> |
|
12750 |
> |
|
12751 |
> |
{ echo "$as_me:$LINENO: checking for an ANSI C99-conforming __func__" >&5 |
12752 |
> |
echo $ECHO_N "checking for an ANSI C99-conforming __func__... $ECHO_C" >&6; } |
12753 |
> |
if test "${ac_cv_cpp_func+set}" = set; then |
12754 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12755 |
> |
else |
12756 |
> |
cat >conftest.$ac_ext <<_ACEOF |
12757 |
> |
/* confdefs.h. */ |
12758 |
> |
_ACEOF |
12759 |
> |
cat confdefs.h >>conftest.$ac_ext |
12760 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
12761 |
> |
/* end confdefs.h. */ |
12762 |
> |
|
12763 |
> |
#ifdef FC_DUMMY_MAIN |
12764 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12765 |
> |
# ifdef __cplusplus |
12766 |
> |
extern "C" |
12767 |
> |
# endif |
12768 |
> |
int FC_DUMMY_MAIN() { return 1; } |
12769 |
> |
#endif |
12770 |
> |
#endif |
12771 |
> |
int |
12772 |
> |
main () |
12773 |
> |
{ |
12774 |
> |
const char *foo = __func__; |
12775 |
> |
; |
12776 |
> |
return 0; |
12777 |
> |
} |
12778 |
> |
_ACEOF |
12779 |
> |
rm -f conftest.$ac_objext |
12780 |
> |
if { (ac_try="$ac_compile" |
12781 |
> |
case "(($ac_try" in |
12782 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12783 |
> |
*) ac_try_echo=$ac_try;; |
12784 |
> |
esac |
12785 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12786 |
> |
(eval "$ac_compile") 2>conftest.er1 |
12787 |
> |
ac_status=$? |
12788 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
12789 |
> |
rm -f conftest.er1 |
12790 |
> |
cat conftest.err >&5 |
12791 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12792 |
> |
(exit $ac_status); } && { |
12793 |
> |
test -z "$ac_cxx_werror_flag" || |
12794 |
> |
test ! -s conftest.err |
12795 |
> |
} && test -s conftest.$ac_objext; then |
12796 |
> |
ac_cv_cpp_func=yes |
12797 |
> |
else |
12798 |
> |
echo "$as_me: failed program was:" >&5 |
12799 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
12800 |
> |
|
12801 |
> |
cat >conftest.$ac_ext <<_ACEOF |
12802 |
> |
/* confdefs.h. */ |
12803 |
> |
_ACEOF |
12804 |
> |
cat confdefs.h >>conftest.$ac_ext |
12805 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
12806 |
> |
/* end confdefs.h. */ |
12807 |
> |
|
12808 |
> |
#ifdef FC_DUMMY_MAIN |
12809 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12810 |
> |
# ifdef __cplusplus |
12811 |
> |
extern "C" |
12812 |
> |
# endif |
12813 |
> |
int FC_DUMMY_MAIN() { return 1; } |
12814 |
> |
#endif |
12815 |
> |
#endif |
12816 |
> |
int |
12817 |
> |
main () |
12818 |
> |
{ |
12819 |
> |
const char *foo = __FUNCTION__; |
12820 |
> |
; |
12821 |
> |
return 0; |
12822 |
> |
} |
12823 |
> |
_ACEOF |
12824 |
> |
rm -f conftest.$ac_objext |
12825 |
> |
if { (ac_try="$ac_compile" |
12826 |
> |
case "(($ac_try" in |
12827 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12828 |
> |
*) ac_try_echo=$ac_try;; |
12829 |
> |
esac |
12830 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12831 |
> |
(eval "$ac_compile") 2>conftest.er1 |
12832 |
> |
ac_status=$? |
12833 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
12834 |
> |
rm -f conftest.er1 |
12835 |
> |
cat conftest.err >&5 |
12836 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12837 |
> |
(exit $ac_status); } && { |
12838 |
> |
test -z "$ac_cxx_werror_flag" || |
12839 |
> |
test ! -s conftest.err |
12840 |
> |
} && test -s conftest.$ac_objext; then |
12841 |
> |
ac_cv_cpp_func=__FUNCTION__ |
12842 |
> |
else |
12843 |
> |
echo "$as_me: failed program was:" >&5 |
12844 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
12845 |
> |
|
12846 |
> |
ac_cv_cpp_func=no |
12847 |
> |
fi |
12848 |
> |
|
12849 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12850 |
> |
fi |
12851 |
> |
|
12852 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12853 |
> |
fi |
12854 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_cpp_func" >&5 |
12855 |
> |
echo "${ECHO_T}$ac_cv_cpp_func" >&6; } |
12856 |
> |
if test $ac_cv_cpp_func = __FUNCTION__; then |
12857 |
> |
|
12858 |
> |
cat >>confdefs.h <<\_ACEOF |
12859 |
> |
#define __func__ __FUNCTION__ |
12860 |
> |
_ACEOF |
12861 |
> |
|
12862 |
> |
elif test $ac_cv_cpp_func = no; then |
12863 |
> |
|
12864 |
> |
cat >>confdefs.h <<\_ACEOF |
12865 |
> |
#define __func__ "" |
12866 |
> |
_ACEOF |
12867 |
> |
|
12868 |
> |
fi |
12869 |
> |
|
12870 |
> |
|
12871 |
> |
|
12872 |
> |
|
12873 |
> |
|
12874 |
> |
case $debug in |
12875 |
> |
1) |
12876 |
> |
;; |
12877 |
> |
*) |
12878 |
> |
|
12879 |
> |
|
12880 |
> |
|
12881 |
> |
|
12882 |
> |
# Try to determine "good" native compiler flags if none specified on command |
12883 |
> |
# line |
12884 |
> |
|
12885 |
> |
if test "$ac_test_FFLAGS" != "set"; then |
12886 |
> |
FCFLAGS="" |
12887 |
> |
case "${host_cpu}-${host_os}" in |
12888 |
> |
|
12889 |
> |
*linux*) if test "$FC" = ifc -o "$FC" = ifort; then |
12890 |
> |
FCFLAGS="-O3 -ip -no-prec-div" |
12891 |
> |
fi;; |
12892 |
> |
rs6000*-aix*) if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then |
12893 |
> |
FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" |
12894 |
> |
fi;; |
12895 |
> |
powerpc*-aix*) |
12896 |
> |
if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then |
12897 |
> |
FCFLAGS="-O3 -qarch=ppc -qansialias -w" |
12898 |
> |
echo "*******************************************************" |
12899 |
> |
echo "* You have AIX on an unknown powerpc system. It is *" |
12900 |
> |
echo "* recommended that you use *" |
12901 |
> |
echo "* *" |
12902 |
> |
echo "* FCFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
12903 |
> |
echo "* ^^^ *" |
12904 |
> |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
12905 |
> |
echo "* PowerPC CPU you have. For more info, man xlf. *" |
12906 |
> |
echo "*******************************************************" |
12907 |
> |
fi;; |
12908 |
> |
*darwin*) |
12909 |
> |
if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then |
12910 |
> |
FCFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto" |
12911 |
> |
fi |
12912 |
> |
if test "$FC" = ifort; then |
12913 |
> |
FCFLAGS="-O3 -ip -no-prec-dev -mdynamic-no-pic" |
12914 |
> |
fi;; |
12915 |
> |
esac |
12916 |
> |
|
12917 |
> |
if test -n "$CPU_FLAGS"; then |
12918 |
> |
FCFLAGS="$FCFLAGS $CPU_FLAGS" |
12919 |
> |
fi |
12920 |
> |
|
12921 |
> |
if test -z "$FCFLAGS"; then |
12922 |
> |
echo "" |
12923 |
> |
echo "*********************************************************" |
12924 |
> |
echo "* WARNING: Don't know the best FCFLAGS for this system *" |
12925 |
> |
echo "* Use make FCFLAGS=..., or edit the top level Makefile *" |
12926 |
> |
echo "* (otherwise, a default of FCFLAGS=-O3 will be used) *" |
12927 |
> |
echo "*********************************************************" |
12928 |
> |
echo "" |
12929 |
> |
FCFLAGS="-O3" |
12930 |
> |
fi |
12931 |
> |
|
12932 |
> |
|
12933 |
> |
{ echo "$as_me:$LINENO: checking whether ${FC} accepts ${FCFLAGS}" >&5 |
12934 |
> |
echo $ECHO_N "checking whether ${FC} accepts ${FCFLAGS}... $ECHO_C" >&6; } |
12935 |
> |
if test "${ac_guessed_f90flags+set}" = set; then |
12936 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12937 |
> |
else |
12938 |
> |
|
12939 |
> |
|
12940 |
> |
ac_ext=${ac_fc_srcext-f} |
12941 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
12942 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
12943 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
12944 |
> |
|
12945 |
> |
echo 'program main' > conftest.$ac_ext |
12946 |
> |
echo 'end program main' >> conftest.$ac_ext |
12947 |
> |
ac_compile='${FC} -c ${FCFLAGS} $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext 1>&5' |
12948 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12949 |
> |
(eval $ac_compile) 2>&5 |
12950 |
> |
ac_status=$? |
12951 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12952 |
> |
(exit $ac_status); }; then |
12953 |
> |
ac_guessed_f90flags=yes |
12954 |
> |
else |
12955 |
> |
ac_guessed_f90flags=no |
12956 |
> |
fi |
12957 |
> |
rm -rf conftest* |
12958 |
> |
ac_ext=cpp |
12959 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
12960 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12961 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12962 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
12963 |
> |
|
12964 |
> |
|
12965 |
> |
fi |
12966 |
> |
{ echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5 |
12967 |
> |
echo "${ECHO_T}$ac_guessed_f90flags" >&6; } |
12968 |
> |
if test "$ac_guessed_f90flags" = yes; then |
12969 |
> |
: |
12970 |
> |
|
12971 |
> |
else |
12972 |
> |
: |
12973 |
> |
|
12974 |
> |
echo "" |
12975 |
> |
echo "**********************************************************" |
12976 |
> |
echo "* WARNING: The guessed FCFLAGS don't seem to work with *" |
12977 |
> |
echo "* your compiler. *" |
12978 |
> |
echo "* Use make FCFLAGS=..., or edit the top level Makefile *" |
12979 |
> |
echo "*********************************************************" |
12980 |
> |
echo "" |
12981 |
> |
FCFLAGS="" |
12982 |
> |
|
12983 |
> |
fi |
12984 |
> |
|
12985 |
> |
|
12986 |
> |
fi |
12987 |
> |
|
12988 |
> |
|
12989 |
> |
|
12990 |
> |
|
12991 |
> |
|
12992 |
> |
|
12993 |
> |
|
12994 |
> |
{ echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5 |
12995 |
> |
echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6; } |
12996 |
> |
if test "${ac_cv_prog_really_gcc+set}" = set; then |
12997 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12998 |
> |
else |
12999 |
> |
|
13000 |
> |
cat > conftest.c <<EOF |
13001 |
> |
#ifdef __GNUC__ |
13002 |
> |
#if defined(__INTEL_COMPILER) || defined(__PATHCC__) |
13003 |
> |
no; |
13004 |
> |
#else |
13005 |
> |
yes; |
13006 |
> |
#endif |
13007 |
> |
#endif |
13008 |
> |
EOF |
13009 |
> |
if { ac_try='${CC-cc} -E conftest.c' |
13010 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13011 |
> |
(eval $ac_try) 2>&5 |
13012 |
> |
ac_status=$? |
13013 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13014 |
> |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
13015 |
> |
ac_cv_prog_really_gcc=yes |
13016 |
> |
else |
13017 |
> |
ac_cv_prog_really_gcc=no |
13018 |
> |
fi |
13019 |
> |
|
13020 |
> |
fi |
13021 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5 |
13022 |
> |
echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6; } |
13023 |
> |
if test "$ac_cv_prog_really_gcc" = yes; then |
13024 |
> |
: |
13025 |
> |
|
13026 |
> |
else |
13027 |
> |
: |
13028 |
> |
|
13029 |
> |
fi |
13030 |
> |
|
13031 |
> |
|
13032 |
> |
# Try to determine "good" native compiler flags if none specified on command |
13033 |
> |
# line |
13034 |
> |
if test "$ac_test_CFLAGS" != "set"; then |
13035 |
> |
CFLAGS="" |
13036 |
> |
case "${host_cpu}-${host_os}" in |
13037 |
> |
|
13038 |
> |
*linux*) if test "$CC" = icc; then |
13039 |
> |
CFLAGS="-O" |
13040 |
> |
fi;; |
13041 |
> |
sparc-solaris2*) if test "$CC" = cc; then |
13042 |
> |
CFLAGS="-O -dalign" |
13043 |
> |
fi;; |
13044 |
> |
|
13045 |
> |
alpha*-osf*) if test "$CC" = cc; then |
13046 |
> |
CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1" |
13047 |
> |
fi;; |
13048 |
> |
|
13049 |
> |
hppa*-hpux*) if test "$CC" = cc; then |
13050 |
> |
CFLAGS="-Ae +O3 +Oall" |
13051 |
> |
fi;; |
13052 |
> |
|
13053 |
> |
rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then |
13054 |
> |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
13055 |
> |
fi;; |
13056 |
> |
powerpc*-aix*) |
13057 |
> |
if test "$CC" = cc -o "$CC" = xlc; then |
13058 |
> |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
13059 |
> |
echo "*******************************************************" |
13060 |
> |
echo "* You have AIX on an unknown powerpc system. It is *" |
13061 |
> |
echo "* recommended that you use *" |
13062 |
> |
echo "* *" |
13063 |
> |
echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
13064 |
> |
echo "* ^^^ *" |
13065 |
> |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
13066 |
> |
echo "* PowerPC CPU you have. For more info, man cc. *" |
13067 |
> |
echo "*******************************************************" |
13068 |
> |
fi;; |
13069 |
> |
*darwin*) |
13070 |
> |
if test "$CC" = xlc -o "$CC" = cc; then |
13071 |
> |
CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
13072 |
> |
fi |
13073 |
> |
if test "$CC" = icc; then |
13074 |
> |
CFLAGS="-O3 -ip -no-prec-div -mdynamic-no-pic" |
13075 |
> |
fi;; |
13076 |
> |
esac |
13077 |
> |
|
13078 |
> |
# use default flags for gcc on all systems |
13079 |
> |
if test $ac_cv_prog_really_gcc = yes; then |
13080 |
> |
CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
13081 |
> |
fi |
13082 |
> |
|
13083 |
> |
# test for gcc-specific flags: |
13084 |
> |
if test $ac_cv_prog_really_gcc = yes; then |
13085 |
> |
# -malign-double for x86 systems |
13086 |
> |
|
13087 |
> |
|
13088 |
> |
{ echo "$as_me:$LINENO: checking whether ${CC} accepts -malign-double" >&5 |
13089 |
> |
echo $ECHO_N "checking whether ${CC} accepts -malign-double... $ECHO_C" >&6; } |
13090 |
> |
if test "${ac_align_double+set}" = set; then |
13091 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13092 |
> |
else |
13093 |
> |
echo 'void f(){}' > conftest.c |
13094 |
> |
if test -z "`${CC} -malign-double -c conftest.c 2>&1`"; then |
13095 |
> |
ac_align_double=yes |
13096 |
> |
else |
13097 |
> |
ac_align_double=no |
13098 |
> |
fi |
13099 |
> |
rm -f conftest* |
13100 |
> |
|
13101 |
> |
fi |
13102 |
> |
{ echo "$as_me:$LINENO: result: $ac_align_double" >&5 |
13103 |
> |
echo "${ECHO_T}$ac_align_double" >&6; } |
13104 |
> |
if test "$ac_align_double" = yes; then |
13105 |
> |
: |
13106 |
> |
CFLAGS="$CFLAGS -malign-double" |
13107 |
> |
else |
13108 |
> |
: |
13109 |
> |
|
13110 |
> |
fi |
13111 |
> |
|
13112 |
> |
# -fstrict-aliasing for gcc-2.95+ |
13113 |
> |
|
13114 |
> |
|
13115 |
> |
{ echo "$as_me:$LINENO: checking whether ${CC} accepts -fstrict-aliasing" >&5 |
13116 |
> |
echo $ECHO_N "checking whether ${CC} accepts -fstrict-aliasing... $ECHO_C" >&6; } |
13117 |
> |
if test "${ac_fstrict_aliasing+set}" = set; then |
13118 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13119 |
> |
else |
13120 |
> |
echo 'void f(){}' > conftest.c |
13121 |
> |
if test -z "`${CC} -fstrict-aliasing -c conftest.c 2>&1`"; then |
13122 |
> |
ac_fstrict_aliasing=yes |
13123 |
> |
else |
13124 |
> |
ac_fstrict_aliasing=no |
13125 |
> |
fi |
13126 |
> |
rm -f conftest* |
13127 |
> |
|
13128 |
> |
fi |
13129 |
> |
{ echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5 |
13130 |
> |
echo "${ECHO_T}$ac_fstrict_aliasing" >&6; } |
13131 |
> |
if test "$ac_fstrict_aliasing" = yes; then |
13132 |
> |
: |
13133 |
> |
CFLAGS="$CFLAGS -fstrict-aliasing" |
13134 |
> |
else |
13135 |
> |
: |
13136 |
> |
|
13137 |
> |
fi |
13138 |
> |
|
13139 |
> |
fi |
13140 |
> |
|
13141 |
> |
CPU_FLAGS="" |
13142 |
> |
if test $ac_cv_prog_really_gcc = yes; then |
13143 |
> |
case "${host_cpu}" in |
13144 |
> |
i586*) |
13145 |
> |
|
13146 |
> |
{ echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=pentium" >&5 |
13147 |
> |
echo $ECHO_N "checking whether ${CC} accepts -mcpu=pentium... $ECHO_C" >&6; } |
13148 |
> |
if test "${ac_cpu_pentium+set}" = set; then |
13149 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13150 |
> |
else |
13151 |
> |
echo 'void f(){}' > conftest.c |
13152 |
> |
if test -z "`${CC} -mcpu=pentium -c conftest.c 2>&1`"; then |
13153 |
> |
ac_cpu_pentium=yes |
13154 |
> |
else |
13155 |
> |
ac_cpu_pentium=no |
13156 |
> |
fi |
13157 |
> |
rm -f conftest* |
13158 |
> |
|
13159 |
> |
fi |
13160 |
> |
{ echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5 |
13161 |
> |
echo "${ECHO_T}$ac_cpu_pentium" >&6; } |
13162 |
> |
if test "$ac_cpu_pentium" = yes; then |
13163 |
> |
: |
13164 |
> |
CPU_FLAGS=-mcpu=pentium |
13165 |
> |
else |
13166 |
> |
: |
13167 |
> |
|
13168 |
> |
|
13169 |
> |
{ echo "$as_me:$LINENO: checking whether ${CC} accepts -mpentium" >&5 |
13170 |
> |
echo $ECHO_N "checking whether ${CC} accepts -mpentium... $ECHO_C" >&6; } |
13171 |
> |
if test "${ac_pentium+set}" = set; then |
13172 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13173 |
> |
else |
13174 |
> |
echo 'void f(){}' > conftest.c |
13175 |
> |
if test -z "`${CC} -mpentium -c conftest.c 2>&1`"; then |
13176 |
> |
ac_pentium=yes |
13177 |
> |
else |
13178 |
> |
ac_pentium=no |
13179 |
> |
fi |
13180 |
> |
rm -f conftest* |
13181 |
> |
|
13182 |
> |
fi |
13183 |
> |
{ echo "$as_me:$LINENO: result: $ac_pentium" >&5 |
13184 |
> |
echo "${ECHO_T}$ac_pentium" >&6; } |
13185 |
> |
if test "$ac_pentium" = yes; then |
13186 |
> |
: |
13187 |
> |
CPU_FLAGS=-mpentium |
13188 |
> |
else |
13189 |
> |
: |
13190 |
> |
|
13191 |
> |
fi |
13192 |
> |
|
13193 |
> |
fi |
13194 |
> |
|
13195 |
> |
;; |
13196 |
> |
i686*) |
13197 |
> |
|
13198 |
> |
{ echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=pentiumpro" >&5 |
13199 |
> |
echo $ECHO_N "checking whether ${CC} accepts -mcpu=pentiumpro... $ECHO_C" >&6; } |
13200 |
> |
if test "${ac_cpu_pentiumpro+set}" = set; then |
13201 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13202 |
> |
else |
13203 |
> |
echo 'void f(){}' > conftest.c |
13204 |
> |
if test -z "`${CC} -mcpu=pentiumpro -c conftest.c 2>&1`"; then |
13205 |
> |
ac_cpu_pentiumpro=yes |
13206 |
> |
else |
13207 |
> |
ac_cpu_pentiumpro=no |
13208 |
> |
fi |
13209 |
> |
rm -f conftest* |
13210 |
> |
|
13211 |
> |
fi |
13212 |
> |
{ echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5 |
13213 |
> |
echo "${ECHO_T}$ac_cpu_pentiumpro" >&6; } |
13214 |
> |
if test "$ac_cpu_pentiumpro" = yes; then |
13215 |
> |
: |
13216 |
> |
CPU_FLAGS=-mcpu=pentiumpro |
13217 |
> |
else |
13218 |
> |
: |
13219 |
> |
|
13220 |
> |
|
13221 |
> |
{ echo "$as_me:$LINENO: checking whether ${CC} accepts -mpentiumpro" >&5 |
13222 |
> |
echo $ECHO_N "checking whether ${CC} accepts -mpentiumpro... $ECHO_C" >&6; } |
13223 |
> |
if test "${ac_pentiumpro+set}" = set; then |
13224 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13225 |
> |
else |
13226 |
> |
echo 'void f(){}' > conftest.c |
13227 |
> |
if test -z "`${CC} -mpentiumpro -c conftest.c 2>&1`"; then |
13228 |
> |
ac_pentiumpro=yes |
13229 |
> |
else |
13230 |
> |
ac_pentiumpro=no |
13231 |
> |
fi |
13232 |
> |
rm -f conftest* |
13233 |
> |
|
13234 |
> |
fi |
13235 |
> |
{ echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5 |
13236 |
> |
echo "${ECHO_T}$ac_pentiumpro" >&6; } |
13237 |
> |
if test "$ac_pentiumpro" = yes; then |
13238 |
> |
: |
13239 |
> |
CPU_FLAGS=-mpentiumpro |
13240 |
> |
else |
13241 |
> |
: |
13242 |
> |
|
13243 |
> |
fi |
13244 |
> |
|
13245 |
> |
fi |
13246 |
> |
|
13247 |
> |
;; |
13248 |
> |
powerpc*) |
13249 |
> |
cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null` |
13250 |
> |
is60x=`echo $cputype | egrep "^600-9e?$"` |
13251 |
> |
if test -n "$is60x"; then |
13252 |
> |
|
13253 |
> |
|
13254 |
> |
{ echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=$cputype" >&5 |
13255 |
> |
echo $ECHO_N "checking whether ${CC} accepts -mcpu=$cputype... $ECHO_C" >&6; } |
13256 |
> |
if test "${ac_m_cpu_60x+set}" = set; then |
13257 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13258 |
> |
else |
13259 |
> |
echo 'void f(){}' > conftest.c |
13260 |
> |
if test -z "`${CC} -mcpu=$cputype -c conftest.c 2>&1`"; then |
13261 |
> |
ac_m_cpu_60x=yes |
13262 |
> |
else |
13263 |
> |
ac_m_cpu_60x=no |
13264 |
> |
fi |
13265 |
> |
rm -f conftest* |
13266 |
> |
|
13267 |
> |
fi |
13268 |
> |
{ echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5 |
13269 |
> |
echo "${ECHO_T}$ac_m_cpu_60x" >&6; } |
13270 |
> |
if test "$ac_m_cpu_60x" = yes; then |
13271 |
> |
: |
13272 |
> |
CPU_FLAGS=-mcpu=$cputype |
13273 |
> |
else |
13274 |
> |
: |
13275 |
> |
|
13276 |
> |
fi |
13277 |
> |
|
13278 |
> |
elif test "$cputype" = 750; then |
13279 |
> |
|
13280 |
> |
|
13281 |
> |
{ echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5 |
13282 |
> |
echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6; } |
13283 |
> |
if test "${ac_cv_prog_gcc_2_95+set}" = set; then |
13284 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13285 |
> |
else |
13286 |
> |
|
13287 |
> |
cat > conftest.c <<EOF |
13288 |
> |
#ifdef __GNUC__ && !defined (__INTEL_COMPILER) |
13289 |
> |
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
13290 |
> |
yes; |
13291 |
> |
# endif |
13292 |
> |
#endif |
13293 |
> |
EOF |
13294 |
> |
if { ac_try='${CC-cc} -E conftest.c' |
13295 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13296 |
> |
(eval $ac_try) 2>&5 |
13297 |
> |
ac_status=$? |
13298 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13299 |
> |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
13300 |
> |
ac_cv_prog_gcc_2_95=yes |
13301 |
> |
else |
13302 |
> |
ac_cv_prog_gcc_2_95=no |
13303 |
> |
fi |
13304 |
> |
|
13305 |
> |
fi |
13306 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5 |
13307 |
> |
echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6; } |
13308 |
> |
if test "$ac_cv_prog_gcc_2_95" = yes; then |
13309 |
> |
: |
13310 |
> |
|
13311 |
> |
|
13312 |
> |
{ echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=750" >&5 |
13313 |
> |
echo $ECHO_N "checking whether ${CC} accepts -mcpu=750... $ECHO_C" >&6; } |
13314 |
> |
if test "${ac_m_cpu_750+set}" = set; then |
13315 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13316 |
> |
else |
13317 |
> |
echo 'void f(){}' > conftest.c |
13318 |
> |
if test -z "`${CC} -mcpu=750 -c conftest.c 2>&1`"; then |
13319 |
> |
ac_m_cpu_750=yes |
13320 |
> |
else |
13321 |
> |
ac_m_cpu_750=no |
13322 |
> |
fi |
13323 |
> |
rm -f conftest* |
13324 |
> |
|
13325 |
> |
fi |
13326 |
> |
{ echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5 |
13327 |
> |
echo "${ECHO_T}$ac_m_cpu_750" >&6; } |
13328 |
> |
if test "$ac_m_cpu_750" = yes; then |
13329 |
> |
: |
13330 |
> |
CPU_FLAGS=-mcpu=750 |
13331 |
> |
else |
13332 |
> |
: |
13333 |
> |
|
13334 |
> |
fi |
13335 |
> |
|
13336 |
> |
else |
13337 |
> |
: |
13338 |
> |
|
13339 |
> |
fi |
13340 |
> |
|
13341 |
> |
fi |
13342 |
> |
if test -z "$CPU_FLAGS"; then |
13343 |
> |
|
13344 |
> |
|
13345 |
> |
{ echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=powerpc" >&5 |
13346 |
> |
echo $ECHO_N "checking whether ${CC} accepts -mcpu=powerpc... $ECHO_C" >&6; } |
13347 |
> |
if test "${ac_m_cpu_powerpc+set}" = set; then |
13348 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13349 |
> |
else |
13350 |
> |
echo 'void f(){}' > conftest.c |
13351 |
> |
if test -z "`${CC} -mcpu=powerpc -c conftest.c 2>&1`"; then |
13352 |
> |
ac_m_cpu_powerpc=yes |
13353 |
> |
else |
13354 |
> |
ac_m_cpu_powerpc=no |
13355 |
> |
fi |
13356 |
> |
rm -f conftest* |
13357 |
> |
|
13358 |
> |
fi |
13359 |
> |
{ echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5 |
13360 |
> |
echo "${ECHO_T}$ac_m_cpu_powerpc" >&6; } |
13361 |
> |
if test "$ac_m_cpu_powerpc" = yes; then |
13362 |
> |
: |
13363 |
> |
CPU_FLAGS=-mcpu=powerpc |
13364 |
> |
else |
13365 |
> |
: |
13366 |
> |
|
13367 |
> |
fi |
13368 |
> |
|
13369 |
> |
fi |
13370 |
> |
if test -z "$CPU_FLAGS"; then |
13371 |
> |
|
13372 |
> |
|
13373 |
> |
{ echo "$as_me:$LINENO: checking whether ${CC} accepts -mpowerpc" >&5 |
13374 |
> |
echo $ECHO_N "checking whether ${CC} accepts -mpowerpc... $ECHO_C" >&6; } |
13375 |
> |
if test "${ac_m_powerpc+set}" = set; then |
13376 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13377 |
> |
else |
13378 |
> |
echo 'void f(){}' > conftest.c |
13379 |
> |
if test -z "`${CC} -mpowerpc -c conftest.c 2>&1`"; then |
13380 |
> |
ac_m_powerpc=yes |
13381 |
> |
else |
13382 |
> |
ac_m_powerpc=no |
13383 |
> |
fi |
13384 |
> |
rm -f conftest* |
13385 |
> |
|
13386 |
> |
fi |
13387 |
> |
{ echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5 |
13388 |
> |
echo "${ECHO_T}$ac_m_powerpc" >&6; } |
13389 |
> |
if test "$ac_m_powerpc" = yes; then |
13390 |
> |
: |
13391 |
> |
CPU_FLAGS=-mpowerpc |
13392 |
> |
else |
13393 |
> |
: |
13394 |
> |
|
13395 |
> |
fi |
13396 |
> |
|
13397 |
> |
fi |
13398 |
> |
esac |
13399 |
> |
fi |
13400 |
> |
|
13401 |
> |
if test -n "$CPU_FLAGS"; then |
13402 |
> |
CFLAGS="$CFLAGS $CPU_FLAGS" |
13403 |
> |
fi |
13404 |
> |
|
13405 |
> |
if test -z "$CFLAGS"; then |
13406 |
> |
echo "" |
13407 |
> |
echo "********************************************************" |
13408 |
> |
echo "* WARNING: Don't know the best CFLAGS for this system *" |
13409 |
> |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
13410 |
> |
echo "* (otherwise, a default of CFLAGS=-O3 will be used) *" |
13411 |
> |
echo "********************************************************" |
13412 |
> |
echo "" |
13413 |
> |
CFLAGS="-O3" |
13414 |
> |
fi |
13415 |
> |
|
13416 |
> |
|
13417 |
> |
|
13418 |
> |
{ echo "$as_me:$LINENO: checking whether ${CC} accepts ${CFLAGS}" >&5 |
13419 |
> |
echo $ECHO_N "checking whether ${CC} accepts ${CFLAGS}... $ECHO_C" >&6; } |
13420 |
> |
if test "${ac_guessed_cflags+set}" = set; then |
13421 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13422 |
> |
else |
13423 |
> |
echo 'void f(){}' > conftest.c |
13424 |
> |
if test -z "`${CC} ${CFLAGS} -c conftest.c 2>&1`"; then |
13425 |
> |
ac_guessed_cflags=yes |
13426 |
> |
else |
13427 |
> |
ac_guessed_cflags=no |
13428 |
> |
fi |
13429 |
> |
rm -f conftest* |
13430 |
> |
|
13431 |
> |
fi |
13432 |
> |
{ echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5 |
13433 |
> |
echo "${ECHO_T}$ac_guessed_cflags" >&6; } |
13434 |
> |
if test "$ac_guessed_cflags" = yes; then |
13435 |
> |
: |
13436 |
> |
|
13437 |
> |
else |
13438 |
> |
: |
13439 |
> |
|
13440 |
> |
echo "" |
13441 |
> |
echo "********************************************************" |
13442 |
> |
echo "* WARNING: The guessed CFLAGS don't seem to work with *" |
13443 |
> |
echo "* your compiler. *" |
13444 |
> |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
13445 |
> |
echo "********************************************************" |
13446 |
> |
echo "" |
13447 |
> |
CFLAGS="" |
13448 |
> |
|
13449 |
> |
fi |
13450 |
> |
|
13451 |
> |
|
13452 |
> |
fi |
13453 |
> |
|
13454 |
> |
|
13455 |
> |
|
13456 |
> |
|
13457 |
> |
|
13458 |
> |
|
13459 |
> |
|
13460 |
> |
{ echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5 |
13461 |
> |
echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6; } |
13462 |
> |
if test "${ac_cv_prog_really_gxx+set}" = set; then |
13463 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13464 |
> |
else |
13465 |
> |
|
13466 |
> |
cat > conftest.cpp <<EOF |
13467 |
> |
#ifdef __GNUC__ |
13468 |
> |
#if defined(__INTEL_COMPILER) || defined(__PATHCC__) |
13469 |
> |
no; |
13470 |
> |
#else |
13471 |
> |
yes; |
13472 |
> |
#endif |
13473 |
> |
#endif |
13474 |
> |
EOF |
13475 |
> |
if { ac_try='${CXX-c++} -E conftest.cpp' |
13476 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13477 |
> |
(eval $ac_try) 2>&5 |
13478 |
> |
ac_status=$? |
13479 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13480 |
> |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
13481 |
> |
ac_cv_prog_really_gxx=yes |
13482 |
> |
else |
13483 |
> |
ac_cv_prog_really_gxx=no |
13484 |
> |
fi |
13485 |
> |
|
13486 |
> |
fi |
13487 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5 |
13488 |
> |
echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6; } |
13489 |
> |
if test "$ac_cv_prog_really_gxx" = yes; then |
13490 |
> |
: |
13491 |
> |
|
13492 |
> |
else |
13493 |
> |
: |
13494 |
> |
|
13495 |
> |
fi |
13496 |
> |
|
13497 |
> |
|
13498 |
> |
# Try to determine "good" native compiler flags if none specified on command |
13499 |
> |
# line |
13500 |
> |
if test "$ac_test_CXXFLAGS" != "set"; then |
13501 |
> |
CXXFLAGS="" |
13502 |
> |
case "${host_cpu}-${host_os}" in |
13503 |
> |
|
13504 |
> |
*linux*) if test "$CXX" = icc -o "$CXX" = icpc; then |
13505 |
> |
CXXFLAGS="-O" |
13506 |
> |
fi;; |
13507 |
> |
sparc-solaris2*) if test "$CXX" = CC; then |
13508 |
> |
CXXFLAGS="-features=extensions -O -dalign" |
13509 |
> |
fi;; |
13510 |
> |
rs6000*-aix*) if test "$CXX" = xlC; then |
13511 |
> |
CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" |
13512 |
> |
fi;; |
13513 |
> |
powerpc*-aix*) |
13514 |
> |
if test "$CXX" = xlC; then |
13515 |
> |
CXXFLAGS="-O3 -qarch=ppc -qansialias -w" |
13516 |
> |
echo "*******************************************************" |
13517 |
> |
echo "* You have AIX on an unknown powerpc system. It is *" |
13518 |
> |
echo "* recommended that you use *" |
13519 |
> |
echo "* *" |
13520 |
> |
echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
13521 |
> |
echo "* ^^^ *" |
13522 |
> |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
13523 |
> |
echo "* PowerPC CPU you have. For more info, man cc. *" |
13524 |
> |
echo "*******************************************************" |
13525 |
> |
fi;; |
13526 |
> |
*darwin*) |
13527 |
> |
if test "$CXX" = xlc++ -o "$CXX" = xlC ; then |
13528 |
> |
CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
13529 |
> |
fi |
13530 |
> |
if test "$CXX" = icpc; then |
13531 |
> |
CXXFLAGS="-O3 -ip -no-prec-div -mdynamic-no-pic" |
13532 |
> |
fi;; |
13533 |
> |
esac |
13534 |
> |
|
13535 |
> |
# use default flags for gcc on all systems |
13536 |
> |
if test $ac_cv_prog_really_gxx = yes; then |
13537 |
> |
CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
13538 |
> |
fi |
13539 |
> |
|
13540 |
> |
# test for gcc-specific flags: |
13541 |
> |
if test $ac_cv_prog_really_gxx = yes; then |
13542 |
> |
# -malign-double for x86 systems |
13543 |
> |
|
13544 |
> |
|
13545 |
> |
{ echo "$as_me:$LINENO: checking whether ${CXX} accepts -malign-double" >&5 |
13546 |
> |
echo $ECHO_N "checking whether ${CXX} accepts -malign-double... $ECHO_C" >&6; } |
13547 |
> |
if test "${ac_align_double+set}" = set; then |
13548 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13549 |
> |
else |
13550 |
> |
echo 'void f(){}' > conftest.cpp |
13551 |
> |
if test -z "`${CXX} -malign-double -c conftest.cpp 2>&1`"; then |
13552 |
> |
ac_align_double=yes |
13553 |
> |
else |
13554 |
> |
ac_align_double=no |
13555 |
> |
fi |
13556 |
> |
rm -f conftest* |
13557 |
> |
|
13558 |
> |
fi |
13559 |
> |
{ echo "$as_me:$LINENO: result: $ac_align_double" >&5 |
13560 |
> |
echo "${ECHO_T}$ac_align_double" >&6; } |
13561 |
> |
if test "$ac_align_double" = yes; then |
13562 |
> |
: |
13563 |
> |
CXXFLAGS="$CXXFLAGS -malign-double" |
13564 |
> |
else |
13565 |
> |
: |
13566 |
> |
|
13567 |
> |
fi |
13568 |
> |
|
13569 |
> |
# -fstrict-aliasing for gcc-2.95+ |
13570 |
> |
|
13571 |
> |
|
13572 |
> |
{ echo "$as_me:$LINENO: checking whether ${CXX} accepts -fstrict-aliasing" >&5 |
13573 |
> |
echo $ECHO_N "checking whether ${CXX} accepts -fstrict-aliasing... $ECHO_C" >&6; } |
13574 |
> |
if test "${ac_fstrict_aliasing+set}" = set; then |
13575 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13576 |
> |
else |
13577 |
> |
echo 'void f(){}' > conftest.cpp |
13578 |
> |
if test -z "`${CXX} -fstrict-aliasing -c conftest.cpp 2>&1`"; then |
13579 |
> |
ac_fstrict_aliasing=yes |
13580 |
> |
else |
13581 |
> |
ac_fstrict_aliasing=no |
13582 |
> |
fi |
13583 |
> |
rm -f conftest* |
13584 |
> |
|
13585 |
> |
fi |
13586 |
> |
{ echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5 |
13587 |
> |
echo "${ECHO_T}$ac_fstrict_aliasing" >&6; } |
13588 |
> |
if test "$ac_fstrict_aliasing" = yes; then |
13589 |
> |
: |
13590 |
> |
CXXFLAGS="$CXXFLAGS -fstrict-aliasing" |
13591 |
> |
else |
13592 |
> |
: |
13593 |
> |
|
13594 |
> |
fi |
13595 |
> |
|
13596 |
> |
fi |
13597 |
> |
|
13598 |
> |
CPU_FLAGS="" |
13599 |
> |
if test $ac_cv_prog_really_gxx = yes; then |
13600 |
> |
case "${host_cpu}" in |
13601 |
> |
i586*) |
13602 |
> |
|
13603 |
> |
{ echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=pentium" >&5 |
13604 |
> |
echo $ECHO_N "checking whether ${CXX} accepts -mcpu=pentium... $ECHO_C" >&6; } |
13605 |
> |
if test "${ac_cpu_pentium+set}" = set; then |
13606 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13607 |
> |
else |
13608 |
> |
echo 'void f(){}' > conftest.cpp |
13609 |
> |
if test -z "`${CXX} -mcpu=pentium -c conftest.cpp 2>&1`"; then |
13610 |
> |
ac_cpu_pentium=yes |
13611 |
> |
else |
13612 |
> |
ac_cpu_pentium=no |
13613 |
> |
fi |
13614 |
> |
rm -f conftest* |
13615 |
> |
|
13616 |
> |
fi |
13617 |
> |
{ echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5 |
13618 |
> |
echo "${ECHO_T}$ac_cpu_pentium" >&6; } |
13619 |
> |
if test "$ac_cpu_pentium" = yes; then |
13620 |
> |
: |
13621 |
> |
CPU_FLAGS=-mcpu=pentium |
13622 |
> |
else |
13623 |
> |
: |
13624 |
> |
|
13625 |
> |
|
13626 |
> |
{ echo "$as_me:$LINENO: checking whether ${CXX} accepts -mpentium" >&5 |
13627 |
> |
echo $ECHO_N "checking whether ${CXX} accepts -mpentium... $ECHO_C" >&6; } |
13628 |
> |
if test "${ac_pentium+set}" = set; then |
13629 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13630 |
> |
else |
13631 |
> |
echo 'void f(){}' > conftest.cpp |
13632 |
> |
if test -z "`${CXX} -mpentium -c conftest.cpp 2>&1`"; then |
13633 |
> |
ac_pentium=yes |
13634 |
> |
else |
13635 |
> |
ac_pentium=no |
13636 |
> |
fi |
13637 |
> |
rm -f conftest* |
13638 |
> |
|
13639 |
> |
fi |
13640 |
> |
{ echo "$as_me:$LINENO: result: $ac_pentium" >&5 |
13641 |
> |
echo "${ECHO_T}$ac_pentium" >&6; } |
13642 |
> |
if test "$ac_pentium" = yes; then |
13643 |
> |
: |
13644 |
> |
CPU_FLAGS=-mpentium |
13645 |
> |
else |
13646 |
> |
: |
13647 |
> |
|
13648 |
> |
fi |
13649 |
> |
|
13650 |
> |
fi |
13651 |
> |
|
13652 |
> |
;; |
13653 |
> |
i686*) |
13654 |
> |
|
13655 |
> |
{ echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=pentiumpro" >&5 |
13656 |
> |
echo $ECHO_N "checking whether ${CXX} accepts -mcpu=pentiumpro... $ECHO_C" >&6; } |
13657 |
> |
if test "${ac_cpu_pentiumpro+set}" = set; then |
13658 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13659 |
> |
else |
13660 |
> |
echo 'void f(){}' > conftest.cpp |
13661 |
> |
if test -z "`${CXX} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then |
13662 |
> |
ac_cpu_pentiumpro=yes |
13663 |
> |
else |
13664 |
> |
ac_cpu_pentiumpro=no |
13665 |
> |
fi |
13666 |
> |
rm -f conftest* |
13667 |
> |
|
13668 |
> |
fi |
13669 |
> |
{ echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5 |
13670 |
> |
echo "${ECHO_T}$ac_cpu_pentiumpro" >&6; } |
13671 |
> |
if test "$ac_cpu_pentiumpro" = yes; then |
13672 |
> |
: |
13673 |
> |
CPU_FLAGS=-mcpu=pentiumpro |
13674 |
> |
else |
13675 |
> |
: |
13676 |
> |
|
13677 |
> |
|
13678 |
> |
{ echo "$as_me:$LINENO: checking whether ${CXX} accepts -mpentiumpro" >&5 |
13679 |
> |
echo $ECHO_N "checking whether ${CXX} accepts -mpentiumpro... $ECHO_C" >&6; } |
13680 |
> |
if test "${ac_pentiumpro+set}" = set; then |
13681 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13682 |
> |
else |
13683 |
> |
echo 'void f(){}' > conftest.cpp |
13684 |
> |
if test -z "`${CXX} -mpentiumpro -c conftest.cpp 2>&1`"; then |
13685 |
> |
ac_pentiumpro=yes |
13686 |
> |
else |
13687 |
> |
ac_pentiumpro=no |
13688 |
> |
fi |
13689 |
> |
rm -f conftest* |
13690 |
> |
|
13691 |
> |
fi |
13692 |
> |
{ echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5 |
13693 |
> |
echo "${ECHO_T}$ac_pentiumpro" >&6; } |
13694 |
> |
if test "$ac_pentiumpro" = yes; then |
13695 |
> |
: |
13696 |
> |
CPU_FLAGS=-mpentiumpro |
13697 |
> |
else |
13698 |
> |
: |
13699 |
> |
|
13700 |
> |
fi |
13701 |
> |
|
13702 |
> |
fi |
13703 |
> |
|
13704 |
> |
;; |
13705 |
> |
powerpc*) |
13706 |
> |
cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null` |
13707 |
> |
is60x=`echo $cputype | egrep "^600-9e?$"` |
13708 |
> |
if test -n "$is60x"; then |
13709 |
> |
|
13710 |
> |
|
13711 |
> |
{ echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=$cputype" >&5 |
13712 |
> |
echo $ECHO_N "checking whether ${CXX} accepts -mcpu=$cputype... $ECHO_C" >&6; } |
13713 |
> |
if test "${ac_m_cpu_60x+set}" = set; then |
13714 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13715 |
> |
else |
13716 |
> |
echo 'void f(){}' > conftest.cpp |
13717 |
> |
if test -z "`${CXX} -mcpu=$cputype -c conftest.cpp 2>&1`"; then |
13718 |
> |
ac_m_cpu_60x=yes |
13719 |
> |
else |
13720 |
> |
ac_m_cpu_60x=no |
13721 |
> |
fi |
13722 |
> |
rm -f conftest* |
13723 |
> |
|
13724 |
> |
fi |
13725 |
> |
{ echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5 |
13726 |
> |
echo "${ECHO_T}$ac_m_cpu_60x" >&6; } |
13727 |
> |
if test "$ac_m_cpu_60x" = yes; then |
13728 |
> |
: |
13729 |
> |
CPU_FLAGS=-mcpu=$cputype |
13730 |
> |
else |
13731 |
> |
: |
13732 |
> |
|
13733 |
> |
fi |
13734 |
> |
|
13735 |
> |
elif test "$cputype" = 750; then |
13736 |
> |
|
13737 |
> |
|
13738 |
> |
{ echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5 |
13739 |
> |
echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6; } |
13740 |
> |
if test "${ac_cv_prog_gxx_2_95+set}" = set; then |
13741 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13742 |
> |
else |
13743 |
> |
|
13744 |
> |
cat > conftest.cpp <<EOF |
13745 |
> |
#ifdef __GNUC__ && !defined (__INTEL_COMPILER) |
13746 |
> |
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
13747 |
> |
yes; |
13748 |
> |
# endif |
13749 |
> |
#endif |
13750 |
> |
EOF |
13751 |
> |
if { ac_try='${CXX-c++} -E conftest.cpp' |
13752 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13753 |
> |
(eval $ac_try) 2>&5 |
13754 |
> |
ac_status=$? |
13755 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13756 |
> |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
13757 |
> |
ac_cv_prog_gxx_2_95=yes |
13758 |
> |
else |
13759 |
> |
ac_cv_prog_gxx_2_95=no |
13760 |
> |
fi |
13761 |
> |
|
13762 |
> |
fi |
13763 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5 |
13764 |
> |
echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6; } |
13765 |
> |
if test "$ac_cv_prog_gxx_2_95" = yes; then |
13766 |
> |
: |
13767 |
> |
|
13768 |
> |
|
13769 |
> |
{ echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=750" >&5 |
13770 |
> |
echo $ECHO_N "checking whether ${CXX} accepts -mcpu=750... $ECHO_C" >&6; } |
13771 |
> |
if test "${ac_m_cpu_750+set}" = set; then |
13772 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13773 |
> |
else |
13774 |
> |
echo 'void f(){}' > conftest.cpp |
13775 |
> |
if test -z "`${CXX} -mcpu=750 -c conftest.cpp 2>&1`"; then |
13776 |
> |
ac_m_cpu_750=yes |
13777 |
> |
else |
13778 |
> |
ac_m_cpu_750=no |
13779 |
> |
fi |
13780 |
> |
rm -f conftest* |
13781 |
> |
|
13782 |
> |
fi |
13783 |
> |
{ echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5 |
13784 |
> |
echo "${ECHO_T}$ac_m_cpu_750" >&6; } |
13785 |
> |
if test "$ac_m_cpu_750" = yes; then |
13786 |
> |
: |
13787 |
> |
CPU_FLAGS=-mcpu=750 |
13788 |
> |
else |
13789 |
> |
: |
13790 |
> |
|
13791 |
> |
fi |
13792 |
> |
|
13793 |
> |
else |
13794 |
> |
: |
13795 |
> |
|
13796 |
> |
fi |
13797 |
> |
|
13798 |
> |
fi |
13799 |
> |
if test -z "$CPU_FLAGS"; then |
13800 |
> |
|
13801 |
> |
|
13802 |
> |
{ echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=powerpc" >&5 |
13803 |
> |
echo $ECHO_N "checking whether ${CXX} accepts -mcpu=powerpc... $ECHO_C" >&6; } |
13804 |
> |
if test "${ac_m_cpu_powerpc+set}" = set; then |
13805 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13806 |
> |
else |
13807 |
> |
echo 'void f(){}' > conftest.cpp |
13808 |
> |
if test -z "`${CXX} -mcpu=powerpc -c conftest.cpp 2>&1`"; then |
13809 |
> |
ac_m_cpu_powerpc=yes |
13810 |
> |
else |
13811 |
> |
ac_m_cpu_powerpc=no |
13812 |
> |
fi |
13813 |
> |
rm -f conftest* |
13814 |
> |
|
13815 |
> |
fi |
13816 |
> |
{ echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5 |
13817 |
> |
echo "${ECHO_T}$ac_m_cpu_powerpc" >&6; } |
13818 |
> |
if test "$ac_m_cpu_powerpc" = yes; then |
13819 |
> |
: |
13820 |
> |
CPU_FLAGS=-mcpu=powerpc |
13821 |
> |
else |
13822 |
> |
: |
13823 |
> |
|
13824 |
> |
fi |
13825 |
> |
|
13826 |
> |
fi |
13827 |
> |
if test -z "$CPU_FLAGS"; then |
13828 |
> |
|
13829 |
> |
|
13830 |
> |
{ echo "$as_me:$LINENO: checking whether ${CXX} accepts -mpowerpc" >&5 |
13831 |
> |
echo $ECHO_N "checking whether ${CXX} accepts -mpowerpc... $ECHO_C" >&6; } |
13832 |
> |
if test "${ac_m_powerpc+set}" = set; then |
13833 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13834 |
> |
else |
13835 |
> |
echo 'void f(){}' > conftest.cpp |
13836 |
> |
if test -z "`${CXX} -mpowerpc -c conftest.cpp 2>&1`"; then |
13837 |
> |
ac_m_powerpc=yes |
13838 |
> |
else |
13839 |
> |
ac_m_powerpc=no |
13840 |
> |
fi |
13841 |
> |
rm -f conftest* |
13842 |
> |
|
13843 |
> |
fi |
13844 |
> |
{ echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5 |
13845 |
> |
echo "${ECHO_T}$ac_m_powerpc" >&6; } |
13846 |
> |
if test "$ac_m_powerpc" = yes; then |
13847 |
> |
: |
13848 |
> |
CPU_FLAGS=-mpowerpc |
13849 |
> |
else |
13850 |
> |
: |
13851 |
> |
|
13852 |
> |
fi |
13853 |
> |
|
13854 |
> |
fi |
13855 |
> |
esac |
13856 |
> |
fi |
13857 |
> |
|
13858 |
> |
if test -n "$CPU_FLAGS"; then |
13859 |
> |
CXXFLAGS="$CXXFLAGS $CPU_FLAGS" |
13860 |
> |
fi |
13861 |
> |
|
13862 |
> |
if test -z "$CXXFLAGS"; then |
13863 |
> |
echo "" |
13864 |
> |
echo "**********************************************************" |
13865 |
> |
echo "* WARNING: Don't know the best CXXFLAGS for this system *" |
13866 |
> |
echo "* Use make CXXFLAGS=..., or edit the top level Makefile *" |
13867 |
> |
echo "* (otherwise, a default of CXXFLAGS=-O3 will be used) *" |
13868 |
> |
echo "**********************************************************" |
13869 |
> |
echo "" |
13870 |
> |
CXXFLAGS="-O3" |
13871 |
> |
fi |
13872 |
> |
|
13873 |
> |
|
13874 |
> |
|
13875 |
> |
{ echo "$as_me:$LINENO: checking whether ${CXX} accepts ${CXXFLAGS}" >&5 |
13876 |
> |
echo $ECHO_N "checking whether ${CXX} accepts ${CXXFLAGS}... $ECHO_C" >&6; } |
13877 |
> |
if test "${ac_guessed_cxxflags+set}" = set; then |
13878 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13879 |
> |
else |
13880 |
> |
echo 'void f(){}' > conftest.cpp |
13881 |
> |
if test -z "`${CXX} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then |
13882 |
> |
ac_guessed_cxxflags=yes |
13883 |
> |
else |
13884 |
> |
ac_guessed_cxxflags=no |
13885 |
> |
fi |
13886 |
> |
rm -f conftest* |
13887 |
> |
|
13888 |
> |
fi |
13889 |
> |
{ echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5 |
13890 |
> |
echo "${ECHO_T}$ac_guessed_cxxflags" >&6; } |
13891 |
> |
if test "$ac_guessed_cxxflags" = yes; then |
13892 |
> |
: |
13893 |
> |
|
13894 |
> |
else |
13895 |
> |
: |
13896 |
> |
|
13897 |
> |
echo "" |
13898 |
> |
echo "**********************************************************" |
13899 |
> |
echo "* WARNING: The guessed CXXFLAGS don't seem to work with *" |
13900 |
> |
echo "* your compiler. *" |
13901 |
> |
echo "* Use make CXXFLAGS=..., or edit the top level Makefile *" |
13902 |
> |
echo "**********************************************************" |
13903 |
> |
echo "" |
13904 |
> |
CXXFLAGS="" |
13905 |
> |
|
13906 |
> |
fi |
13907 |
> |
|
13908 |
> |
|
13909 |
> |
fi |
13910 |
> |
|
13911 |
> |
;; |
13912 |
> |
esac |
13913 |
> |
|
13914 |
> |
|
13915 |
> |
cat >>confdefs.h <<\_ACEOF |
13916 |
> |
#define OBAPI |
13917 |
> |
_ACEOF |
13918 |
> |
|
13919 |
> |
|
13920 |
> |
|
13921 |
> |
|
13922 |
> |
# Check whether --with-mpi was given. |
13923 |
> |
if test "${with_mpi+set}" = set; then |
13924 |
> |
withval=$with_mpi; with_mpi=$withval |
13925 |
> |
else |
13926 |
> |
with_mpi="no" |
13927 |
> |
fi |
13928 |
> |
|
13929 |
> |
|
13930 |
> |
case "x$with_mpi" in |
13931 |
> |
xyes | "x") USE_MPI=yes;; |
13932 |
> |
xno) USE_MPI=no ;; |
13933 |
> |
*) MPI="$with_mpi"; USE_MPI=yes ;; |
13934 |
> |
esac |
13935 |
> |
if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then |
13936 |
> |
MPI="/usr/local" |
13937 |
> |
fi |
13938 |
> |
if test "$USE_MPI" = "yes"; then |
13939 |
> |
|
13940 |
> |
|
13941 |
> |
# Set variables... |
13942 |
> |
MPI_LIB_DIR="$MPI/lib" |
13943 |
> |
MPI_INC_DIR="$MPI/include" |
13944 |
> |
|
13945 |
> |
|
13946 |
> |
|
13947 |
> |
ac_ext=c |
13948 |
> |
ac_cpp='$CPP $CPPFLAGS' |
13949 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13950 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13951 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
13952 |
> |
|
13953 |
> |
{ echo "$as_me:$LINENO: checking for mpi.h" >&5 |
13954 |
> |
echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6; } |
13955 |
> |
have_mpi_h=0 |
13956 |
> |
rm -f conftest* |
13957 |
> |
echo '#include <mpi.h>' > conftest.c |
13958 |
> |
if ${CC} -I${MPI_INC_DIR} -c conftest.c 2>&1 ; then |
13959 |
> |
{ echo "$as_me:$LINENO: result: yes" >&5 |
13960 |
> |
echo "${ECHO_T}yes" >&6; } |
13961 |
> |
have_mpi_h=1 |
13962 |
> |
else |
13963 |
> |
if test -s conftest.out ; then |
13964 |
> |
cat conftest.out >> config.log |
13965 |
> |
fi |
13966 |
> |
{ echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
13967 |
> |
echo "${ECHO_T}no! Check MPI include paths" >&6; } |
13968 |
> |
USE_MPI="no" |
13969 |
> |
fi |
13970 |
> |
rm -f conftest* |
13971 |
> |
if test "$have_mpi_h" = 1; then |
13972 |
> |
|
13973 |
> |
cat >>confdefs.h <<\_ACEOF |
13974 |
> |
#define HAVE_MPI_H 1 |
13975 |
> |
_ACEOF |
13976 |
> |
|
13977 |
> |
fi |
13978 |
> |
|
13979 |
> |
{ echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5 |
13980 |
> |
echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6; } |
13981 |
> |
|
13982 |
> |
ac_ext=${ac_fc_srcext-f} |
13983 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
13984 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
13985 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
13986 |
> |
|
13987 |
> |
ac_save_ext=$ac_ext |
13988 |
> |
ac_ext=F90 |
13989 |
> |
ac_save_FCFLAGS=$FCFLAGS |
13990 |
> |
have_mpif_h=0 |
13991 |
> |
rm -f conftest* |
13992 |
> |
cat >conftest.$ac_ext <<EOF |
13993 |
> |
program main |
13994 |
> |
include 'mpif.h' |
13995 |
> |
end |
13996 |
> |
EOF |
13997 |
> |
if $FC -I$MPI_INC_DIR -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext > conftest.out 2>&1 ; then |
13998 |
> |
{ echo "$as_me:$LINENO: result: yes" >&5 |
13999 |
> |
echo "${ECHO_T}yes" >&6; } |
14000 |
> |
MPI_F90_INC="$MPI_INC_DIR" |
14001 |
> |
have_mpif_h=1 |
14002 |
> |
else |
14003 |
> |
if test -s conftest.out ; then |
14004 |
> |
cat conftest.out >> config.log |
14005 |
> |
fi |
14006 |
> |
{ echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
14007 |
> |
echo "${ECHO_T}no! Check MPI include paths" >&6; } |
14008 |
> |
USE_MPI="no" |
14009 |
> |
fi |
14010 |
> |
rm -f conftest* |
14011 |
> |
|
14012 |
> |
if test "$have_mpif_h" = 1; then |
14013 |
> |
|
14014 |
> |
cat >>confdefs.h <<\_ACEOF |
14015 |
> |
#define HAVE_MPIF_H 1 |
14016 |
> |
_ACEOF |
14017 |
> |
|
14018 |
> |
fi |
14019 |
> |
FCFLAGS=$ac_save_FCFLAGS |
14020 |
> |
ac_ext=$ac_save_ext |
14021 |
> |
ac_ext=c |
14022 |
> |
ac_cpp='$CPP $CPPFLAGS' |
14023 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
14024 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
14025 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
14026 |
> |
|
14027 |
> |
|
14028 |
> |
ac_ext=c |
14029 |
> |
ac_cpp='$CPP $CPPFLAGS' |
14030 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
14031 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
14032 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
14033 |
> |
|
14034 |
> |
ac_save_LDFLAGS=$LDFLAGS |
14035 |
> |
LDFLAGS="-L${MPI_LIB_DIR} ${LDFLAGS} " |
14036 |
> |
|
14037 |
> |
if test x = x"$MPI_LIB"; then |
14038 |
> |
{ echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 |
14039 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6; } |
14040 |
> |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then |
14041 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14042 |
> |
else |
14043 |
> |
ac_check_lib_save_LIBS=$LIBS |
14044 |
> |
LIBS="-lmpich $LIBS" |
14045 |
> |
cat >conftest.$ac_ext <<_ACEOF |
14046 |
> |
/* confdefs.h. */ |
14047 |
> |
_ACEOF |
14048 |
> |
cat confdefs.h >>conftest.$ac_ext |
14049 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
14050 |
> |
/* end confdefs.h. */ |
14051 |
> |
|
14052 |
> |
/* Override any GCC internal prototype to avoid an error. |
14053 |
> |
Use char because int might match the return type of a GCC |
14054 |
> |
builtin and then its argument prototype would still apply. */ |
14055 |
> |
#ifdef __cplusplus |
14056 |
> |
extern "C" |
14057 |
> |
#endif |
14058 |
> |
char MPI_Init (); |
14059 |
> |
#ifdef FC_DUMMY_MAIN |
14060 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
14061 |
> |
# ifdef __cplusplus |
14062 |
> |
extern "C" |
14063 |
> |
# endif |
14064 |
> |
int FC_DUMMY_MAIN() { return 1; } |
14065 |
> |
#endif |
14066 |
> |
#endif |
14067 |
> |
int |
14068 |
> |
main () |
14069 |
> |
{ |
14070 |
> |
return MPI_Init (); |
14071 |
> |
; |
14072 |
> |
return 0; |
14073 |
> |
} |
14074 |
> |
_ACEOF |
14075 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
14076 |
> |
if { (ac_try="$ac_link" |
14077 |
> |
case "(($ac_try" in |
14078 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14079 |
> |
*) ac_try_echo=$ac_try;; |
14080 |
> |
esac |
14081 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14082 |
> |
(eval "$ac_link") 2>conftest.er1 |
14083 |
> |
ac_status=$? |
14084 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
14085 |
> |
rm -f conftest.er1 |
14086 |
> |
cat conftest.err >&5 |
14087 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14088 |
> |
(exit $ac_status); } && { |
14089 |
> |
test -z "$ac_c_werror_flag" || |
14090 |
> |
test ! -s conftest.err |
14091 |
> |
} && test -s conftest$ac_exeext && |
14092 |
> |
$as_test_x conftest$ac_exeext; then |
14093 |
> |
ac_cv_lib_mpich_MPI_Init=yes |
14094 |
> |
else |
14095 |
> |
echo "$as_me: failed program was:" >&5 |
14096 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
14097 |
> |
|
14098 |
> |
ac_cv_lib_mpich_MPI_Init=no |
14099 |
> |
fi |
14100 |
> |
|
14101 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14102 |
> |
conftest$ac_exeext conftest.$ac_ext |
14103 |
> |
LIBS=$ac_check_lib_save_LIBS |
14104 |
> |
fi |
14105 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
14106 |
> |
echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6; } |
14107 |
> |
if test $ac_cv_lib_mpich_MPI_Init = yes; then |
14108 |
> |
MPI_LIB="-lmpich" |
14109 |
> |
fi |
14110 |
> |
|
14111 |
> |
fi |
14112 |
> |
$as_unset ac_cv_lib_mpich_MPI_Init |
14113 |
> |
if test x = x"$MPI_LIB"; then |
14114 |
> |
{ echo "$as_me:$LINENO: checking for MPI_Init in -lpmpich" >&5 |
14115 |
> |
echo $ECHO_N "checking for MPI_Init in -lpmpich... $ECHO_C" >&6; } |
14116 |
> |
if test "${ac_cv_lib_pmpich_MPI_Init+set}" = set; then |
14117 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14118 |
> |
else |
14119 |
> |
ac_check_lib_save_LIBS=$LIBS |
14120 |
> |
LIBS="-lpmpich -lmpich -lpmpich -lmpich $LIBS" |
14121 |
> |
cat >conftest.$ac_ext <<_ACEOF |
14122 |
> |
/* confdefs.h. */ |
14123 |
> |
_ACEOF |
14124 |
> |
cat confdefs.h >>conftest.$ac_ext |
14125 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
14126 |
> |
/* end confdefs.h. */ |
14127 |
> |
|
14128 |
> |
/* Override any GCC internal prototype to avoid an error. |
14129 |
> |
Use char because int might match the return type of a GCC |
14130 |
> |
builtin and then its argument prototype would still apply. */ |
14131 |
> |
#ifdef __cplusplus |
14132 |
> |
extern "C" |
14133 |
> |
#endif |
14134 |
> |
char MPI_Init (); |
14135 |
> |
#ifdef FC_DUMMY_MAIN |
14136 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
14137 |
> |
# ifdef __cplusplus |
14138 |
> |
extern "C" |
14139 |
> |
# endif |
14140 |
> |
int FC_DUMMY_MAIN() { return 1; } |
14141 |
> |
#endif |
14142 |
> |
#endif |
14143 |
> |
int |
14144 |
> |
main () |
14145 |
> |
{ |
14146 |
> |
return MPI_Init (); |
14147 |
> |
; |
14148 |
> |
return 0; |
14149 |
> |
} |
14150 |
> |
_ACEOF |
14151 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
14152 |
> |
if { (ac_try="$ac_link" |
14153 |
> |
case "(($ac_try" in |
14154 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14155 |
> |
*) ac_try_echo=$ac_try;; |
14156 |
> |
esac |
14157 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14158 |
> |
(eval "$ac_link") 2>conftest.er1 |
14159 |
> |
ac_status=$? |
14160 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
14161 |
> |
rm -f conftest.er1 |
14162 |
> |
cat conftest.err >&5 |
14163 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14164 |
> |
(exit $ac_status); } && { |
14165 |
> |
test -z "$ac_c_werror_flag" || |
14166 |
> |
test ! -s conftest.err |
14167 |
> |
} && test -s conftest$ac_exeext && |
14168 |
> |
$as_test_x conftest$ac_exeext; then |
14169 |
> |
ac_cv_lib_pmpich_MPI_Init=yes |
14170 |
> |
else |
14171 |
> |
echo "$as_me: failed program was:" >&5 |
14172 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
14173 |
> |
|
14174 |
> |
ac_cv_lib_pmpich_MPI_Init=no |
14175 |
> |
fi |
14176 |
> |
|
14177 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14178 |
> |
conftest$ac_exeext conftest.$ac_ext |
14179 |
> |
LIBS=$ac_check_lib_save_LIBS |
14180 |
> |
fi |
14181 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pmpich_MPI_Init" >&5 |
14182 |
> |
echo "${ECHO_T}$ac_cv_lib_pmpich_MPI_Init" >&6; } |
14183 |
> |
if test $ac_cv_lib_pmpich_MPI_Init = yes; then |
14184 |
> |
MPI_LIB="-lpmpich -lmpich -lpmpich -lmpich" |
14185 |
> |
fi |
14186 |
> |
|
14187 |
> |
fi |
14188 |
> |
if test x = x"$MPI_LIB"; then |
14189 |
> |
{ echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
14190 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6; } |
14191 |
> |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
14192 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14193 |
> |
else |
14194 |
> |
ac_check_lib_save_LIBS=$LIBS |
14195 |
> |
LIBS="-lmpi $LIBS" |
14196 |
> |
cat >conftest.$ac_ext <<_ACEOF |
14197 |
> |
/* confdefs.h. */ |
14198 |
> |
_ACEOF |
14199 |
> |
cat confdefs.h >>conftest.$ac_ext |
14200 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
14201 |
> |
/* end confdefs.h. */ |
14202 |
> |
|
14203 |
> |
/* Override any GCC internal prototype to avoid an error. |
14204 |
> |
Use char because int might match the return type of a GCC |
14205 |
> |
builtin and then its argument prototype would still apply. */ |
14206 |
> |
#ifdef __cplusplus |
14207 |
> |
extern "C" |
14208 |
> |
#endif |
14209 |
> |
char MPI_Init (); |
14210 |
> |
#ifdef FC_DUMMY_MAIN |
14211 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
14212 |
> |
# ifdef __cplusplus |
14213 |
> |
extern "C" |
14214 |
> |
# endif |
14215 |
> |
int FC_DUMMY_MAIN() { return 1; } |
14216 |
> |
#endif |
14217 |
> |
#endif |
14218 |
> |
int |
14219 |
> |
main () |
14220 |
> |
{ |
14221 |
> |
return MPI_Init (); |
14222 |
> |
; |
14223 |
> |
return 0; |
14224 |
> |
} |
14225 |
> |
_ACEOF |
14226 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
14227 |
> |
if { (ac_try="$ac_link" |
14228 |
> |
case "(($ac_try" in |
14229 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14230 |
> |
*) ac_try_echo=$ac_try;; |
14231 |
> |
esac |
14232 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14233 |
> |
(eval "$ac_link") 2>conftest.er1 |
14234 |
> |
ac_status=$? |
14235 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
14236 |
> |
rm -f conftest.er1 |
14237 |
> |
cat conftest.err >&5 |
14238 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14239 |
> |
(exit $ac_status); } && { |
14240 |
> |
test -z "$ac_c_werror_flag" || |
14241 |
> |
test ! -s conftest.err |
14242 |
> |
} && test -s conftest$ac_exeext && |
14243 |
> |
$as_test_x conftest$ac_exeext; then |
14244 |
> |
ac_cv_lib_mpi_MPI_Init=yes |
14245 |
> |
else |
14246 |
> |
echo "$as_me: failed program was:" >&5 |
14247 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
14248 |
> |
|
14249 |
> |
ac_cv_lib_mpi_MPI_Init=no |
14250 |
> |
fi |
14251 |
> |
|
14252 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14253 |
> |
conftest$ac_exeext conftest.$ac_ext |
14254 |
> |
LIBS=$ac_check_lib_save_LIBS |
14255 |
> |
fi |
14256 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
14257 |
> |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6; } |
14258 |
> |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
14259 |
> |
MPI_LIB="-lmpi" |
14260 |
> |
fi |
14261 |
> |
|
14262 |
> |
fi |
14263 |
> |
$as_unset ac_cv_lib_mpi_MPI_Init |
14264 |
> |
if test x = x"$MPI_LIB"; then |
14265 |
> |
{ echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
14266 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6; } |
14267 |
> |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
14268 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14269 |
> |
else |
14270 |
> |
ac_check_lib_save_LIBS=$LIBS |
14271 |
> |
LIBS="-lmpi -llam $LIBS" |
14272 |
> |
cat >conftest.$ac_ext <<_ACEOF |
14273 |
> |
/* confdefs.h. */ |
14274 |
> |
_ACEOF |
14275 |
> |
cat confdefs.h >>conftest.$ac_ext |
14276 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
14277 |
> |
/* end confdefs.h. */ |
14278 |
> |
|
14279 |
> |
/* Override any GCC internal prototype to avoid an error. |
14280 |
> |
Use char because int might match the return type of a GCC |
14281 |
> |
builtin and then its argument prototype would still apply. */ |
14282 |
> |
#ifdef __cplusplus |
14283 |
> |
extern "C" |
14284 |
> |
#endif |
14285 |
> |
char MPI_Init (); |
14286 |
> |
#ifdef FC_DUMMY_MAIN |
14287 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
14288 |
> |
# ifdef __cplusplus |
14289 |
> |
extern "C" |
14290 |
> |
# endif |
14291 |
> |
int FC_DUMMY_MAIN() { return 1; } |
14292 |
> |
#endif |
14293 |
> |
#endif |
14294 |
> |
int |
14295 |
> |
main () |
14296 |
> |
{ |
14297 |
> |
return MPI_Init (); |
14298 |
> |
; |
14299 |
> |
return 0; |
14300 |
> |
} |
14301 |
> |
_ACEOF |
14302 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
14303 |
> |
if { (ac_try="$ac_link" |
14304 |
> |
case "(($ac_try" in |
14305 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14306 |
> |
*) ac_try_echo=$ac_try;; |
14307 |
> |
esac |
14308 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14309 |
> |
(eval "$ac_link") 2>conftest.er1 |
14310 |
> |
ac_status=$? |
14311 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
14312 |
> |
rm -f conftest.er1 |
14313 |
> |
cat conftest.err >&5 |
14314 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14315 |
> |
(exit $ac_status); } && { |
14316 |
> |
test -z "$ac_c_werror_flag" || |
14317 |
> |
test ! -s conftest.err |
14318 |
> |
} && test -s conftest$ac_exeext && |
14319 |
> |
$as_test_x conftest$ac_exeext; then |
14320 |
> |
ac_cv_lib_mpi_MPI_Init=yes |
14321 |
> |
else |
14322 |
> |
echo "$as_me: failed program was:" >&5 |
14323 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
14324 |
> |
|
14325 |
> |
ac_cv_lib_mpi_MPI_Init=no |
14326 |
> |
fi |
14327 |
> |
|
14328 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14329 |
> |
conftest$ac_exeext conftest.$ac_ext |
14330 |
> |
LIBS=$ac_check_lib_save_LIBS |
14331 |
> |
fi |
14332 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
14333 |
> |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6; } |
14334 |
> |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
14335 |
> |
MPI_LIB="-lmpi -llam" |
14336 |
> |
fi |
14337 |
> |
|
14338 |
> |
fi |
14339 |
> |
$as_unset ac_cv_lib_mpi_MPI_Init |
14340 |
> |
if test x = x"$MPI_LIB"; then |
14341 |
> |
{ echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
14342 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6; } |
14343 |
> |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
14344 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14345 |
> |
else |
14346 |
> |
ac_check_lib_save_LIBS=$LIBS |
14347 |
> |
LIBS="-lmpi -llam -lpthread $LIBS" |
14348 |
> |
cat >conftest.$ac_ext <<_ACEOF |
14349 |
> |
/* confdefs.h. */ |
14350 |
> |
_ACEOF |
14351 |
> |
cat confdefs.h >>conftest.$ac_ext |
14352 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
14353 |
> |
/* end confdefs.h. */ |
14354 |
> |
|
14355 |
> |
/* Override any GCC internal prototype to avoid an error. |
14356 |
> |
Use char because int might match the return type of a GCC |
14357 |
> |
builtin and then its argument prototype would still apply. */ |
14358 |
> |
#ifdef __cplusplus |
14359 |
> |
extern "C" |
14360 |
> |
#endif |
14361 |
> |
char MPI_Init (); |
14362 |
> |
#ifdef FC_DUMMY_MAIN |
14363 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
14364 |
> |
# ifdef __cplusplus |
14365 |
> |
extern "C" |
14366 |
> |
# endif |
14367 |
> |
int FC_DUMMY_MAIN() { return 1; } |
14368 |
> |
#endif |
14369 |
> |
#endif |
14370 |
> |
int |
14371 |
> |
main () |
14372 |
> |
{ |
14373 |
> |
return MPI_Init (); |
14374 |
> |
; |
14375 |
> |
return 0; |
14376 |
> |
} |
14377 |
> |
_ACEOF |
14378 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
14379 |
> |
if { (ac_try="$ac_link" |
14380 |
> |
case "(($ac_try" in |
14381 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14382 |
> |
*) ac_try_echo=$ac_try;; |
14383 |
> |
esac |
14384 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14385 |
> |
(eval "$ac_link") 2>conftest.er1 |
14386 |
> |
ac_status=$? |
14387 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
14388 |
> |
rm -f conftest.er1 |
14389 |
> |
cat conftest.err >&5 |
14390 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14391 |
> |
(exit $ac_status); } && { |
14392 |
> |
test -z "$ac_c_werror_flag" || |
14393 |
> |
test ! -s conftest.err |
14394 |
> |
} && test -s conftest$ac_exeext && |
14395 |
> |
$as_test_x conftest$ac_exeext; then |
14396 |
> |
ac_cv_lib_mpi_MPI_Init=yes |
14397 |
> |
else |
14398 |
> |
echo "$as_me: failed program was:" >&5 |
14399 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
14400 |
> |
|
14401 |
> |
ac_cv_lib_mpi_MPI_Init=no |
14402 |
> |
fi |
14403 |
> |
|
14404 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14405 |
> |
conftest$ac_exeext conftest.$ac_ext |
14406 |
> |
LIBS=$ac_check_lib_save_LIBS |
14407 |
> |
fi |
14408 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
14409 |
> |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6; } |
14410 |
> |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
14411 |
> |
MPI_LIB="-lmpi -llam -lpthread" |
14412 |
> |
else |
14413 |
> |
|
14414 |
> |
{ { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5 |
14415 |
> |
echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;} |
14416 |
> |
{ (exit 1); exit 1; }; } |
14417 |
> |
USE_MPI="no" |
14418 |
> |
|
14419 |
> |
fi |
14420 |
> |
|
14421 |
> |
fi |
14422 |
> |
|
14423 |
> |
|
14424 |
> |
|
14425 |
> |
{ echo "$as_me:$LINENO: checking for MPI Fortran library" >&5 |
14426 |
> |
echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6; } |
14427 |
> |
MPI_F90_LIB="" |
14428 |
> |
if test -f "$MPI_LIB_DIR/libfmpich.a" ; then |
14429 |
> |
MPI_F90_LIB="-lfmpich" |
14430 |
> |
elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then |
14431 |
> |
MPI_F90_LIB="-llamf77mpi" |
14432 |
> |
else |
14433 |
> |
MPI_F90_LIB=" " |
14434 |
> |
fi |
14435 |
> |
{ echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5 |
14436 |
> |
echo "${ECHO_T}found $MPI_F90_LIB" >&6; } |
14437 |
> |
|
14438 |
> |
|
14439 |
> |
fi |
14440 |
> |
|
14441 |
> |
|
14442 |
> |
|
14443 |
> |
|
14444 |
> |
# Check whether --enable-doxygen was given. |
14445 |
> |
if test "${enable_doxygen+set}" = set; then |
14446 |
> |
enableval=$enable_doxygen; |
14447 |
> |
fi |
14448 |
> |
|
14449 |
> |
# Check whether --enable-dot was given. |
14450 |
> |
if test "${enable_dot+set}" = set; then |
14451 |
> |
enableval=$enable_dot; |
14452 |
> |
fi |
14453 |
> |
|
14454 |
> |
# Check whether --enable-html-docs was given. |
14455 |
> |
if test "${enable_html_docs+set}" = set; then |
14456 |
> |
enableval=$enable_html_docs; |
14457 |
> |
else |
14458 |
> |
enable_html_docs=yes |
14459 |
> |
fi |
14460 |
> |
|
14461 |
> |
# Check whether --enable-latex-docs was given. |
14462 |
> |
if test "${enable_latex_docs+set}" = set; then |
14463 |
> |
enableval=$enable_latex_docs; |
14464 |
> |
else |
14465 |
> |
enable_latex_docs=no |
14466 |
> |
fi |
14467 |
> |
|
14468 |
> |
if test "x$enable_doxygen" = xno; then |
14469 |
> |
enable_doc=no |
14470 |
> |
else |
14471 |
> |
# Extract the first word of "doxygen", so it can be a program name with args. |
14472 |
> |
set dummy doxygen; ac_word=$2 |
14473 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14474 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
14475 |
> |
if test "${ac_cv_path_DOXYGEN+set}" = set; then |
14476 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14477 |
> |
else |
14478 |
> |
case $DOXYGEN in |
14479 |
> |
[\\/]* | ?:[\\/]*) |
14480 |
> |
ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
14481 |
> |
;; |
14482 |
> |
*) |
14483 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14484 |
> |
for as_dir in $PATH |
14485 |
> |
do |
14486 |
> |
IFS=$as_save_IFS |
14487 |
> |
test -z "$as_dir" && as_dir=. |
14488 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
14489 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
14490 |
> |
ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
14491 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14492 |
> |
break 2 |
14493 |
> |
fi |
14494 |
> |
done |
14495 |
> |
done |
14496 |
> |
IFS=$as_save_IFS |
14497 |
> |
|
14498 |
> |
;; |
14499 |
> |
esac |
14500 |
> |
fi |
14501 |
> |
DOXYGEN=$ac_cv_path_DOXYGEN |
14502 |
> |
if test -n "$DOXYGEN"; then |
14503 |
> |
{ echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
14504 |
> |
echo "${ECHO_T}$DOXYGEN" >&6; } |
14505 |
> |
else |
14506 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
14507 |
> |
echo "${ECHO_T}no" >&6; } |
14508 |
> |
fi |
14509 |
> |
|
14510 |
> |
|
14511 |
> |
if test "x$DOXYGEN" = x; then |
14512 |
> |
if test "x$enable_doxygen" = xyes; then |
14513 |
> |
{ { echo "$as_me:$LINENO: error: could not find doxygen" >&5 |
14514 |
> |
echo "$as_me: error: could not find doxygen" >&2;} |
14515 |
> |
{ (exit 1); exit 1; }; } |
14516 |
> |
fi |
14517 |
> |
enable_doc=no |
14518 |
> |
else |
14519 |
> |
enable_doc=yes |
14520 |
> |
# Extract the first word of "dot", so it can be a program name with args. |
14521 |
> |
set dummy dot; ac_word=$2 |
14522 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14523 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
14524 |
> |
if test "${ac_cv_path_DOT+set}" = set; then |
14525 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14526 |
> |
else |
14527 |
> |
case $DOT in |
14528 |
> |
[\\/]* | ?:[\\/]*) |
14529 |
> |
ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
14530 |
> |
;; |
14531 |
> |
*) |
14532 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14533 |
> |
for as_dir in $PATH |
14534 |
> |
do |
14535 |
> |
IFS=$as_save_IFS |
14536 |
> |
test -z "$as_dir" && as_dir=. |
14537 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
14538 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
14539 |
> |
ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
14540 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14541 |
> |
break 2 |
14542 |
> |
fi |
14543 |
> |
done |
14544 |
> |
done |
14545 |
> |
IFS=$as_save_IFS |
14546 |
> |
|
14547 |
> |
;; |
14548 |
> |
esac |
14549 |
> |
fi |
14550 |
> |
DOT=$ac_cv_path_DOT |
14551 |
> |
if test -n "$DOT"; then |
14552 |
> |
{ echo "$as_me:$LINENO: result: $DOT" >&5 |
14553 |
> |
echo "${ECHO_T}$DOT" >&6; } |
14554 |
> |
else |
14555 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
14556 |
> |
echo "${ECHO_T}no" >&6; } |
14557 |
> |
fi |
14558 |
> |
|
14559 |
> |
|
14560 |
> |
fi |
14561 |
> |
fi |
14562 |
> |
|
14563 |
> |
if test "x$enable_doc" = xyes; then |
14564 |
> |
DOC=1 |
14565 |
> |
else |
14566 |
> |
DOC=0 |
14567 |
> |
fi |
14568 |
> |
|
14569 |
> |
|
14570 |
> |
if test x$DOT = x; then |
14571 |
> |
if test "x$enable_dot" = xyes; then |
14572 |
> |
{ { echo "$as_me:$LINENO: error: could not find dot" >&5 |
14573 |
> |
echo "$as_me: error: could not find dot" >&2;} |
14574 |
> |
{ (exit 1); exit 1; }; } |
14575 |
> |
fi |
14576 |
> |
enable_dot=no |
14577 |
> |
else |
14578 |
> |
enable_dot=yes |
14579 |
> |
fi |
14580 |
> |
|
14581 |
> |
|
14582 |
> |
|
14583 |
> |
|
14584 |
> |
|
14585 |
> |
|
14586 |
> |
|
14587 |
> |
|
14588 |
> |
|
14589 |
> |
|
14590 |
> |
|
14591 |
> |
|
14592 |
> |
|
14593 |
> |
|
14594 |
> |
|
14595 |
> |
|
14596 |
> |
|
14597 |
> |
|
14598 |
> |
|
14599 |
> |
ac_config_files="$ac_config_files make/Makefile src/utils/Makefile scripts/filepp" |
14600 |
> |
|
14601 |
> |
|
14602 |
> |
cat >confcache <<\_ACEOF |
14603 |
> |
# This file is a shell script that caches the results of configure |
14604 |
> |
# tests run on this system so they can be shared between configure |
14605 |
> |
# scripts and configure runs, see configure's option --config-cache. |
14606 |
> |
# It is not useful on other systems. If it contains results you don't |
14607 |
> |
# want to keep, you may remove or edit it. |
14608 |
> |
# |
14609 |
> |
# config.status only pays attention to the cache file if you give it |
14610 |
> |
# the --recheck option to rerun configure. |
14611 |
> |
# |
14612 |
> |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
14613 |
> |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
14614 |
> |
# following values. |
14615 |
> |
|
14616 |
> |
_ACEOF |
14617 |
> |
|
14618 |
> |
# The following way of writing the cache mishandles newlines in values, |
14619 |
> |
# but we know of no workaround that is simple, portable, and efficient. |
14620 |
> |
# So, we kill variables containing newlines. |
14621 |
> |
# Ultrix sh set writes to stderr and can't be redirected directly, |
14622 |
> |
# and sets the high bit in the cache file unless we assign to the vars. |
14623 |
> |
( |
14624 |
> |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
14625 |
> |
eval ac_val=\$$ac_var |
14626 |
> |
case $ac_val in #( |
14627 |
> |
*${as_nl}*) |
14628 |
> |
case $ac_var in #( |
14629 |
> |
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
14630 |
> |
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
14631 |
> |
esac |
14632 |
> |
case $ac_var in #( |
14633 |
> |
_ | IFS | as_nl) ;; #( |
14634 |
> |
*) $as_unset $ac_var ;; |
14635 |
> |
esac ;; |
14636 |
> |
esac |
14637 |
> |
done |
14638 |
> |
|
14639 |
> |
(set) 2>&1 | |
14640 |
> |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14641 |
> |
*${as_nl}ac_space=\ *) |
14642 |
> |
# `set' does not quote correctly, so add quotes (double-quote |
14643 |
> |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
14644 |
> |
sed -n \ |
14645 |
> |
"s/'/'\\\\''/g; |
14646 |
> |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
14647 |
> |
;; #( |
14648 |
> |
*) |
14649 |
> |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
14650 |
> |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
14651 |
> |
;; |
14652 |
> |
esac | |
14653 |
> |
sort |
14654 |
> |
) | |
14655 |
> |
sed ' |
14656 |
> |
/^ac_cv_env_/b end |
14657 |
> |
t clear |
14658 |
> |
:clear |
14659 |
> |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14660 |
> |
t end |
14661 |
> |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14662 |
> |
:end' >>confcache |
14663 |
> |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
14664 |
> |
if test -w "$cache_file"; then |
14665 |
> |
test "x$cache_file" != "x/dev/null" && |
14666 |
> |
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
14667 |
> |
echo "$as_me: updating cache $cache_file" >&6;} |
14668 |
> |
cat confcache >$cache_file |
14669 |
> |
else |
14670 |
> |
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
14671 |
> |
echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
14672 |
> |
fi |
14673 |
> |
fi |
14674 |
> |
rm -f confcache |
14675 |
> |
|
14676 |
> |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14677 |
> |
# Let make expand exec_prefix. |
14678 |
> |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
14679 |
> |
|
14680 |
> |
DEFS=-DHAVE_CONFIG_H |
14681 |
> |
|
14682 |
> |
ac_libobjs= |
14683 |
> |
ac_ltlibobjs= |
14684 |
> |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
14685 |
> |
# 1. Remove the extension, and $U if already installed. |
14686 |
> |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14687 |
> |
ac_i=`echo "$ac_i" | sed "$ac_script"` |
14688 |
> |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
14689 |
> |
# will be set to the directory where LIBOBJS objects are built. |
14690 |
> |
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
14691 |
> |
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
14692 |
> |
done |
14693 |
> |
LIBOBJS=$ac_libobjs |
14694 |
> |
|
14695 |
> |
LTLIBOBJS=$ac_ltlibobjs |
14696 |
> |
|
14697 |
> |
|
14698 |
> |
|
14699 |
> |
: ${CONFIG_STATUS=./config.status} |
14700 |
> |
ac_clean_files_save=$ac_clean_files |
14701 |
> |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
14702 |
> |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
14703 |
> |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
14704 |
> |
cat >$CONFIG_STATUS <<_ACEOF |
14705 |
> |
#! $SHELL |
14706 |
> |
# Generated by $as_me. |
14707 |
> |
# Run this file to recreate the current configuration. |
14708 |
> |
# Compiler output produced by configure, useful for debugging |
14709 |
> |
# configure, is in config.log if it exists. |
14710 |
> |
|
14711 |
> |
debug=false |
14712 |
> |
ac_cs_recheck=false |
14713 |
> |
ac_cs_silent=false |
14714 |
> |
SHELL=\${CONFIG_SHELL-$SHELL} |
14715 |
> |
_ACEOF |
14716 |
> |
|
14717 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
14718 |
> |
## --------------------- ## |
14719 |
> |
## M4sh Initialization. ## |
14720 |
> |
## --------------------- ## |
14721 |
> |
|
14722 |
> |
# Be more Bourne compatible |
14723 |
> |
DUALCASE=1; export DUALCASE # for MKS sh |
14724 |
> |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
14725 |
> |
emulate sh |
14726 |
> |
NULLCMD=: |
14727 |
> |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
14728 |
> |
# is contrary to our usage. Disable this feature. |
14729 |
> |
alias -g '${1+"$@"}'='"$@"' |
14730 |
> |
setopt NO_GLOB_SUBST |
14731 |
> |
else |
14732 |
> |
case `(set -o) 2>/dev/null` in |
14733 |
> |
*posix*) set -o posix ;; |
14734 |
> |
esac |
14735 |
> |
|
14736 |
> |
fi |
14737 |
> |
|
14738 |
> |
|
14739 |
> |
|
14740 |
> |
|
14741 |
> |
# PATH needs CR |
14742 |
> |
# Avoid depending upon Character Ranges. |
14743 |
> |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
14744 |
> |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
14745 |
> |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
14746 |
> |
as_cr_digits='0123456789' |
14747 |
> |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
14748 |
> |
|
14749 |
> |
# The user is always right. |
14750 |
> |
if test "${PATH_SEPARATOR+set}" != set; then |
14751 |
> |
echo "#! /bin/sh" >conf$$.sh |
14752 |
> |
echo "exit 0" >>conf$$.sh |
14753 |
> |
chmod +x conf$$.sh |
14754 |
> |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
14755 |
> |
PATH_SEPARATOR=';' |
14756 |
> |
else |
14757 |
> |
PATH_SEPARATOR=: |
14758 |
> |
fi |
14759 |
> |
rm -f conf$$.sh |
14760 |
> |
fi |
14761 |
> |
|
14762 |
> |
# Support unset when possible. |
14763 |
> |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
14764 |
> |
as_unset=unset |
14765 |
> |
else |
14766 |
> |
as_unset=false |
14767 |
> |
fi |
14768 |
> |
|
14769 |
> |
|
14770 |
> |
# IFS |
14771 |
> |
# We need space, tab and new line, in precisely that order. Quoting is |
14772 |
> |
# there to prevent editors from complaining about space-tab. |
14773 |
> |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
14774 |
> |
# splitting by setting IFS to empty value.) |
14775 |
> |
as_nl=' |
14776 |
> |
' |
14777 |
> |
IFS=" "" $as_nl" |
14778 |
> |
|
14779 |
> |
# Find who we are. Look in the path if we contain no directory separator. |
14780 |
> |
case $0 in |
14781 |
> |
*[\\/]* ) as_myself=$0 ;; |
14782 |
> |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14783 |
> |
for as_dir in $PATH |
14784 |
> |
do |
14785 |
> |
IFS=$as_save_IFS |
14786 |
> |
test -z "$as_dir" && as_dir=. |
14787 |
> |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
14788 |
> |
done |
14789 |
> |
IFS=$as_save_IFS |
14790 |
> |
|
14791 |
> |
;; |
14792 |
> |
esac |
14793 |
> |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
14794 |
> |
# in which case we are not to be found in the path. |
14795 |
> |
if test "x$as_myself" = x; then |
14796 |
> |
as_myself=$0 |
14797 |
> |
fi |
14798 |
> |
if test ! -f "$as_myself"; then |
14799 |
> |
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
14800 |
> |
{ (exit 1); exit 1; } |
14801 |
> |
fi |
14802 |
> |
|
14803 |
> |
# Work around bugs in pre-3.0 UWIN ksh. |
14804 |
> |
for as_var in ENV MAIL MAILPATH |
14805 |
> |
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
14806 |
> |
done |
14807 |
> |
PS1='$ ' |
14808 |
> |
PS2='> ' |
14809 |
> |
PS4='+ ' |
14810 |
> |
|
14811 |
> |
# NLS nuisances. |
14812 |
> |
for as_var in \ |
14813 |
> |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
14814 |
> |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
14815 |
> |
LC_TELEPHONE LC_TIME |
14816 |
> |
do |
14817 |
> |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
14818 |
> |
eval $as_var=C; export $as_var |
14819 |
> |
else |
14820 |
> |
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
14821 |
> |
fi |
14822 |
> |
done |
14823 |
> |
|
14824 |
> |
# Required to use basename. |
14825 |
> |
if expr a : '\(a\)' >/dev/null 2>&1 && |
14826 |
> |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
14827 |
> |
as_expr=expr |
14828 |
> |
else |
14829 |
> |
as_expr=false |
14830 |
> |
fi |
14831 |
> |
|
14832 |
> |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
14833 |
> |
as_basename=basename |
14834 |
> |
else |
14835 |
> |
as_basename=false |
14836 |
> |
fi |
14837 |
> |
|
14838 |
> |
|
14839 |
> |
# Name of the executable. |
14840 |
> |
as_me=`$as_basename -- "$0" || |
14841 |
> |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14842 |
> |
X"$0" : 'X\(//\)$' \| \ |
14843 |
> |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
14844 |
> |
echo X/"$0" | |
14845 |
> |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
14846 |
> |
s//\1/ |
14847 |
> |
q |
14848 |
> |
} |
14849 |
> |
/^X\/\(\/\/\)$/{ |
14850 |
> |
s//\1/ |
14851 |
> |
q |
14852 |
> |
} |
14853 |
> |
/^X\/\(\/\).*/{ |
14854 |
> |
s//\1/ |
14855 |
> |
q |
14856 |
> |
} |
14857 |
> |
s/.*/./; q'` |
14858 |
> |
|
14859 |
> |
# CDPATH. |
14860 |
> |
$as_unset CDPATH |
14861 |
> |
|
14862 |
> |
|
14863 |
> |
|
14864 |
> |
as_lineno_1=$LINENO |
14865 |
> |
as_lineno_2=$LINENO |
14866 |
> |
test "x$as_lineno_1" != "x$as_lineno_2" && |
14867 |
> |
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
14868 |
> |
|
14869 |
> |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
14870 |
> |
# uniformly replaced by the line number. The first 'sed' inserts a |
14871 |
> |
# line-number line after each line using $LINENO; the second 'sed' |
14872 |
> |
# does the real work. The second script uses 'N' to pair each |
14873 |
> |
# line-number line with the line containing $LINENO, and appends |
14874 |
> |
# trailing '-' during substitution so that $LINENO is not a special |
14875 |
> |
# case at line end. |
14876 |
> |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
14877 |
> |
# scripts with optimization help from Paolo Bonzini. Blame Lee |
14878 |
> |
# E. McMahon (1931-1989) for sed's syntax. :-) |
14879 |
> |
sed -n ' |
14880 |
> |
p |
14881 |
> |
/[$]LINENO/= |
14882 |
> |
' <$as_myself | |
14883 |
> |
sed ' |
14884 |
> |
s/[$]LINENO.*/&-/ |
14885 |
> |
t lineno |
14886 |
> |
b |
14887 |
> |
:lineno |
14888 |
> |
N |
14889 |
> |
:loop |
14890 |
> |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
14891 |
> |
t loop |
14892 |
> |
s/-\n.*// |
14893 |
> |
' >$as_me.lineno && |
14894 |
> |
chmod +x "$as_me.lineno" || |
14895 |
> |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
14896 |
> |
{ (exit 1); exit 1; }; } |
14897 |
> |
|
14898 |
> |
# Don't try to exec as it changes $[0], causing all sort of problems |
14899 |
> |
# (the dirname of $[0] is not the place where we might find the |
14900 |
> |
# original and so on. Autoconf is especially sensitive to this). |
14901 |
> |
. "./$as_me.lineno" |
14902 |
> |
# Exit status is that of the last command. |
14903 |
> |
exit |
14904 |
> |
} |
14905 |
> |
|
14906 |
> |
|
14907 |
> |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14908 |
> |
as_dirname=dirname |
14909 |
> |
else |
14910 |
> |
as_dirname=false |
14911 |
> |
fi |
14912 |
> |
|
14913 |
> |
ECHO_C= ECHO_N= ECHO_T= |
14914 |
> |
case `echo -n x` in |
14915 |
> |
-n*) |
14916 |
> |
case `echo 'x\c'` in |
14917 |
> |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
14918 |
> |
*) ECHO_C='\c';; |
14919 |
> |
esac;; |
14920 |
> |
*) |
14921 |
> |
ECHO_N='-n';; |
14922 |
> |
esac |
14923 |
> |
|
14924 |
> |
if expr a : '\(a\)' >/dev/null 2>&1 && |
14925 |
> |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
14926 |
> |
as_expr=expr |
14927 |
> |
else |
14928 |
> |
as_expr=false |
14929 |
> |
fi |
14930 |
> |
|
14931 |
> |
rm -f conf$$ conf$$.exe conf$$.file |
14932 |
> |
if test -d conf$$.dir; then |
14933 |
> |
rm -f conf$$.dir/conf$$.file |
14934 |
> |
else |
14935 |
> |
rm -f conf$$.dir |
14936 |
> |
mkdir conf$$.dir |
14937 |
> |
fi |
14938 |
> |
echo >conf$$.file |
14939 |
> |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
14940 |
> |
as_ln_s='ln -s' |
14941 |
> |
# ... but there are two gotchas: |
14942 |
> |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
14943 |
> |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
14944 |
> |
# In both cases, we have to default to `cp -p'. |
14945 |
> |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
14946 |
> |
as_ln_s='cp -p' |
14947 |
> |
elif ln conf$$.file conf$$ 2>/dev/null; then |
14948 |
> |
as_ln_s=ln |
14949 |
> |
else |
14950 |
> |
as_ln_s='cp -p' |
14951 |
> |
fi |
14952 |
> |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14953 |
> |
rmdir conf$$.dir 2>/dev/null |
14954 |
> |
|
14955 |
> |
if mkdir -p . 2>/dev/null; then |
14956 |
> |
as_mkdir_p=: |
14957 |
> |
else |
14958 |
> |
test -d ./-p && rmdir ./-p |
14959 |
> |
as_mkdir_p=false |
14960 |
> |
fi |
14961 |
> |
|
14962 |
> |
if test -x / >/dev/null 2>&1; then |
14963 |
> |
as_test_x='test -x' |
14964 |
> |
else |
14965 |
> |
if ls -dL / >/dev/null 2>&1; then |
14966 |
> |
as_ls_L_option=L |
14967 |
> |
else |
14968 |
> |
as_ls_L_option= |
14969 |
> |
fi |
14970 |
> |
as_test_x=' |
14971 |
> |
eval sh -c '\'' |
14972 |
> |
if test -d "$1"; then |
14973 |
> |
test -d "$1/."; |
14974 |
> |
else |
14975 |
> |
case $1 in |
14976 |
> |
-*)set "./$1";; |
14977 |
> |
esac; |
14978 |
> |
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
14979 |
> |
???[sx]*):;;*)false;;esac;fi |
14980 |
> |
'\'' sh |
14981 |
> |
' |
14982 |
> |
fi |
14983 |
> |
as_executable_p=$as_test_x |
14984 |
> |
|
14985 |
> |
# Sed expression to map a string onto a valid CPP name. |
14986 |
> |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
14987 |
> |
|
14988 |
> |
# Sed expression to map a string onto a valid variable name. |
14989 |
> |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
14990 |
> |
|
14991 |
> |
|
14992 |
> |
exec 6>&1 |
14993 |
> |
|
14994 |
> |
# Save the log message, to keep $[0] and so on meaningful, and to |
14995 |
> |
# report actual input values of CONFIG_FILES etc. instead of their |
14996 |
> |
# values after options handling. |
14997 |
> |
ac_log=" |
14998 |
> |
This file was extended by OOPSE $as_me 3.0, which was |
14999 |
> |
generated by GNU Autoconf 2.61. Invocation command line was |
15000 |
> |
|
15001 |
> |
CONFIG_FILES = $CONFIG_FILES |
15002 |
> |
CONFIG_HEADERS = $CONFIG_HEADERS |
15003 |
> |
CONFIG_LINKS = $CONFIG_LINKS |
15004 |
> |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
15005 |
> |
$ $0 $@ |
15006 |
> |
|
15007 |
> |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15008 |
> |
" |
15009 |
> |
|
15010 |
> |
_ACEOF |
15011 |
> |
|
15012 |
> |
cat >>$CONFIG_STATUS <<_ACEOF |
15013 |
> |
# Files that config.status was made for. |
15014 |
> |
config_files="$ac_config_files" |
15015 |
> |
config_headers="$ac_config_headers" |
15016 |
> |
config_links="$ac_config_links" |
15017 |
> |
|
15018 |
> |
_ACEOF |
15019 |
> |
|
15020 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
15021 |
> |
ac_cs_usage="\ |
15022 |
> |
\`$as_me' instantiates files from templates according to the |
15023 |
> |
current configuration. |
15024 |
> |
|
15025 |
> |
Usage: $0 [OPTIONS] [FILE]... |
15026 |
> |
|
15027 |
> |
-h, --help print this help, then exit |
15028 |
> |
-V, --version print version number and configuration settings, then exit |
15029 |
> |
-q, --quiet do not print progress messages |
15030 |
> |
-d, --debug don't remove temporary files |
15031 |
> |
--recheck update $as_me by reconfiguring in the same conditions |
15032 |
> |
--file=FILE[:TEMPLATE] |
15033 |
> |
instantiate the configuration file FILE |
15034 |
> |
--header=FILE[:TEMPLATE] |
15035 |
> |
instantiate the configuration header FILE |
15036 |
> |
|
15037 |
> |
Configuration files: |
15038 |
> |
$config_files |
15039 |
> |
|
15040 |
> |
Configuration headers: |
15041 |
> |
$config_headers |
15042 |
> |
|
15043 |
> |
Configuration links: |
15044 |
> |
$config_links |
15045 |
> |
|
15046 |
> |
Report bugs to <bug-autoconf@gnu.org>." |
15047 |
> |
|
15048 |
> |
_ACEOF |
15049 |
> |
cat >>$CONFIG_STATUS <<_ACEOF |
15050 |
> |
ac_cs_version="\\ |
15051 |
> |
OOPSE config.status 3.0 |
15052 |
> |
configured by $0, generated by GNU Autoconf 2.61, |
15053 |
> |
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
15054 |
> |
|
15055 |
> |
Copyright (C) 2006 Free Software Foundation, Inc. |
15056 |
> |
This config.status script is free software; the Free Software Foundation |
15057 |
> |
gives unlimited permission to copy, distribute and modify it." |
15058 |
> |
|
15059 |
> |
ac_pwd='$ac_pwd' |
15060 |
> |
srcdir='$srcdir' |
15061 |
> |
INSTALL='$INSTALL' |
15062 |
> |
_ACEOF |
15063 |
> |
|
15064 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
15065 |
> |
# If no file are specified by the user, then we need to provide default |
15066 |
> |
# value. By we need to know if files were specified by the user. |
15067 |
> |
ac_need_defaults=: |
15068 |
> |
while test $# != 0 |
15069 |
> |
do |
15070 |
> |
case $1 in |
15071 |
> |
--*=*) |
15072 |
> |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15073 |
> |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
15074 |
> |
ac_shift=: |
15075 |
> |
;; |
15076 |
> |
*) |
15077 |
> |
ac_option=$1 |
15078 |
> |
ac_optarg=$2 |
15079 |
> |
ac_shift=shift |
15080 |
> |
;; |
15081 |
> |
esac |
15082 |
> |
|
15083 |
> |
case $ac_option in |
15084 |
> |
# Handling of the options. |
15085 |
> |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
15086 |
> |
ac_cs_recheck=: ;; |
15087 |
> |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15088 |
> |
echo "$ac_cs_version"; exit ;; |
15089 |
> |
--debug | --debu | --deb | --de | --d | -d ) |
15090 |
> |
debug=: ;; |
15091 |
> |
--file | --fil | --fi | --f ) |
15092 |
> |
$ac_shift |
15093 |
> |
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
15094 |
> |
ac_need_defaults=false;; |
15095 |
> |
--header | --heade | --head | --hea ) |
15096 |
> |
$ac_shift |
15097 |
> |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
15098 |
> |
ac_need_defaults=false;; |
15099 |
> |
--he | --h) |
15100 |
> |
# Conflict between --help and --header |
15101 |
> |
{ echo "$as_me: error: ambiguous option: $1 |
15102 |
> |
Try \`$0 --help' for more information." >&2 |
15103 |
> |
{ (exit 1); exit 1; }; };; |
15104 |
> |
--help | --hel | -h ) |
15105 |
> |
echo "$ac_cs_usage"; exit ;; |
15106 |
> |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15107 |
> |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
15108 |
> |
ac_cs_silent=: ;; |
15109 |
> |
|
15110 |
> |
# This is an error. |
15111 |
> |
-*) { echo "$as_me: error: unrecognized option: $1 |
15112 |
> |
Try \`$0 --help' for more information." >&2 |
15113 |
> |
{ (exit 1); exit 1; }; } ;; |
15114 |
> |
|
15115 |
> |
*) ac_config_targets="$ac_config_targets $1" |
15116 |
> |
ac_need_defaults=false ;; |
15117 |
> |
|
15118 |
> |
esac |
15119 |
> |
shift |
15120 |
> |
done |
15121 |
> |
|
15122 |
> |
ac_configure_extra_args= |
15123 |
> |
|
15124 |
> |
if $ac_cs_silent; then |
15125 |
> |
exec 6>/dev/null |
15126 |
> |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
15127 |
> |
fi |
15128 |
> |
|
15129 |
> |
_ACEOF |
15130 |
> |
cat >>$CONFIG_STATUS <<_ACEOF |
15131 |
> |
if \$ac_cs_recheck; then |
15132 |
> |
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
15133 |
> |
CONFIG_SHELL=$SHELL |
15134 |
> |
export CONFIG_SHELL |
15135 |
> |
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15136 |
> |
fi |
15137 |
> |
|
15138 |
> |
_ACEOF |
15139 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
15140 |
> |
exec 5>>config.log |
15141 |
> |
{ |
15142 |
> |
echo |
15143 |
> |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
15144 |
> |
## Running $as_me. ## |
15145 |
> |
_ASBOX |
15146 |
> |
echo "$ac_log" |
15147 |
> |
} >&5 |
15148 |
> |
|
15149 |
> |
_ACEOF |
15150 |
> |
cat >>$CONFIG_STATUS <<_ACEOF |
15151 |
> |
_ACEOF |
15152 |
> |
|
15153 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
15154 |
> |
|
15155 |
> |
# Handling of arguments. |
15156 |
> |
for ac_config_target in $ac_config_targets |
15157 |
> |
do |
15158 |
> |
case $ac_config_target in |
15159 |
> |
"src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
15160 |
> |
"src/getopt.h") CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;; |
15161 |
> |
"make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;; |
15162 |
> |
"src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;; |
15163 |
> |
"scripts/filepp") CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;; |
15164 |
> |
|
15165 |
> |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
15166 |
> |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
15167 |
> |
{ (exit 1); exit 1; }; };; |
15168 |
> |
esac |
15169 |
> |
done |
15170 |
> |
|
15171 |
> |
|
15172 |
> |
# If the user did not use the arguments to specify the items to instantiate, |
15173 |
> |
# then the envvar interface is used. Set only those that are not. |
15174 |
> |
# We use the long form for the default assignment because of an extremely |
15175 |
> |
# bizarre bug on SunOS 4.1.3. |
15176 |
> |
if $ac_need_defaults; then |
15177 |
> |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
15178 |
> |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
15179 |
> |
test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
15180 |
> |
fi |
15181 |
> |
|
15182 |
> |
# Have a temporary directory for convenience. Make it in the build tree |
15183 |
> |
# simply because there is no reason against having it here, and in addition, |
15184 |
|
# creating and moving files from /tmp can sometimes cause problems. |
15185 |
< |
# Create a temporary directory, and hook for its removal unless debugging. |
15185 |
> |
# Hook for its removal unless debugging. |
15186 |
> |
# Note that there is a small window in which the directory will not be cleaned: |
15187 |
> |
# after its creation but before its name has been assigned to `$tmp'. |
15188 |
|
$debug || |
15189 |
|
{ |
15190 |
< |
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
15190 |
> |
tmp= |
15191 |
> |
trap 'exit_status=$? |
15192 |
> |
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
15193 |
> |
' 0 |
15194 |
|
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
15195 |
|
} |
8158 |
– |
|
15196 |
|
# Create a (secure) tmp directory for tmp files. |
15197 |
|
|
15198 |
|
{ |
15199 |
< |
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
15199 |
> |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
15200 |
|
test -n "$tmp" && test -d "$tmp" |
15201 |
|
} || |
15202 |
|
{ |
15203 |
< |
tmp=./confstat$$-$RANDOM |
15204 |
< |
(umask 077 && mkdir $tmp) |
15203 |
> |
tmp=./conf$$-$RANDOM |
15204 |
> |
(umask 077 && mkdir "$tmp") |
15205 |
|
} || |
15206 |
|
{ |
15207 |
|
echo "$me: cannot create a temporary directory in ." >&2 |
15208 |
|
{ (exit 1); exit 1; } |
15209 |
|
} |
15210 |
|
|
8174 |
– |
_ACEOF |
8175 |
– |
|
8176 |
– |
cat >>$CONFIG_STATUS <<_ACEOF |
8177 |
– |
|
15211 |
|
# |
15212 |
< |
# CONFIG_FILES section. |
15212 |
> |
# Set up the sed scripts for CONFIG_FILES section. |
15213 |
|
# |
15214 |
|
|
15215 |
|
# No need to generate the scripts if there are no CONFIG_FILES. |
15216 |
|
# This happens for instance when ./config.status config.h |
15217 |
< |
if test -n "\$CONFIG_FILES"; then |
15218 |
< |
# Protect against being on the right side of a sed subst in config.status. |
15219 |
< |
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
15220 |
< |
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
15221 |
< |
s,@SHELL@,$SHELL,;t t |
15222 |
< |
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
15223 |
< |
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
15224 |
< |
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
15225 |
< |
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
15226 |
< |
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
15227 |
< |
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
15228 |
< |
s,@exec_prefix@,$exec_prefix,;t t |
15229 |
< |
s,@prefix@,$prefix,;t t |
15230 |
< |
s,@program_transform_name@,$program_transform_name,;t t |
15231 |
< |
s,@bindir@,$bindir,;t t |
15232 |
< |
s,@sbindir@,$sbindir,;t t |
15233 |
< |
s,@libexecdir@,$libexecdir,;t t |
15234 |
< |
s,@datadir@,$datadir,;t t |
15235 |
< |
s,@sysconfdir@,$sysconfdir,;t t |
15236 |
< |
s,@sharedstatedir@,$sharedstatedir,;t t |
15237 |
< |
s,@localstatedir@,$localstatedir,;t t |
15238 |
< |
s,@libdir@,$libdir,;t t |
15239 |
< |
s,@includedir@,$includedir,;t t |
15240 |
< |
s,@oldincludedir@,$oldincludedir,;t t |
15241 |
< |
s,@infodir@,$infodir,;t t |
15242 |
< |
s,@mandir@,$mandir,;t t |
15243 |
< |
s,@build_alias@,$build_alias,;t t |
15244 |
< |
s,@host_alias@,$host_alias,;t t |
15245 |
< |
s,@target_alias@,$target_alias,;t t |
15246 |
< |
s,@DEFS@,$DEFS,;t t |
15247 |
< |
s,@ECHO_C@,$ECHO_C,;t t |
15248 |
< |
s,@ECHO_N@,$ECHO_N,;t t |
15249 |
< |
s,@ECHO_T@,$ECHO_T,;t t |
15250 |
< |
s,@LIBS@,$LIBS,;t t |
15251 |
< |
s,@PROGNAME@,$PROGNAME,;t t |
15252 |
< |
s,@debug@,$debug,;t t |
15253 |
< |
s,@build@,$build,;t t |
15254 |
< |
s,@build_cpu@,$build_cpu,;t t |
15255 |
< |
s,@build_vendor@,$build_vendor,;t t |
15256 |
< |
s,@build_os@,$build_os,;t t |
15257 |
< |
s,@host@,$host,;t t |
15258 |
< |
s,@host_cpu@,$host_cpu,;t t |
15259 |
< |
s,@host_vendor@,$host_vendor,;t t |
15260 |
< |
s,@host_os@,$host_os,;t t |
15261 |
< |
s,@CC@,$CC,;t t |
15262 |
< |
s,@CFLAGS@,$CFLAGS,;t t |
15263 |
< |
s,@LDFLAGS@,$LDFLAGS,;t t |
15264 |
< |
s,@CPPFLAGS@,$CPPFLAGS,;t t |
15265 |
< |
s,@ac_ct_CC@,$ac_ct_CC,;t t |
15266 |
< |
s,@EXEEXT@,$EXEEXT,;t t |
15267 |
< |
s,@OBJEXT@,$OBJEXT,;t t |
15268 |
< |
s,@CXX@,$CXX,;t t |
15269 |
< |
s,@CXXFLAGS@,$CXXFLAGS,;t t |
15270 |
< |
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
15271 |
< |
s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t |
15272 |
< |
s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t |
15273 |
< |
s,@F90@,$F90,;t t |
15274 |
< |
s,@F90FLAGS@,$F90FLAGS,;t t |
15275 |
< |
s,@ac_ct_F90@,$ac_ct_F90,;t t |
15276 |
< |
s,@PREPFLAG@,$PREPFLAG,;t t |
15277 |
< |
s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t |
15278 |
< |
s,@F90LIBS@,$F90LIBS,;t t |
15279 |
< |
s,@F90_FUNC@,$F90_FUNC,;t t |
15280 |
< |
s,@F90_FUNC_@,$F90_FUNC_,;t t |
15281 |
< |
s,@MOD@,$MOD,;t t |
15282 |
< |
s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t |
15283 |
< |
s,@MODDIRFLAG@,$MODDIRFLAG,;t t |
15284 |
< |
s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t |
15285 |
< |
s,@CPP@,$CPP,;t t |
15286 |
< |
s,@EGREP@,$EGREP,;t t |
15287 |
< |
s,@LIBOBJS@,$LIBOBJS,;t t |
15288 |
< |
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
15289 |
< |
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
15290 |
< |
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
15291 |
< |
s,@LN_S@,$LN_S,;t t |
15292 |
< |
s,@SET_MAKE@,$SET_MAKE,;t t |
15293 |
< |
s,@RANLIB@,$RANLIB,;t t |
15294 |
< |
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
15295 |
< |
s,@YACC@,$YACC,;t t |
15296 |
< |
s,@LEX@,$LEX,;t t |
15297 |
< |
s,@LEXLIB@,$LEXLIB,;t t |
15298 |
< |
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
15299 |
< |
s,@AR@,$AR,;t t |
15300 |
< |
s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t |
15301 |
< |
s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t |
15302 |
< |
s,@MPI_F90_INC@,$MPI_F90_INC,;t t |
15303 |
< |
s,@MPI_LIB@,$MPI_LIB,;t t |
15304 |
< |
s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t |
15305 |
< |
s,@USE_MPI@,$USE_MPI,;t t |
15306 |
< |
s,@SPRNG_LIB_DIR@,$SPRNG_LIB_DIR,;t t |
15307 |
< |
s,@SPRNG_INC_DIR@,$SPRNG_INC_DIR,;t t |
15308 |
< |
s,@SPRNG_LIB@,$SPRNG_LIB,;t t |
15309 |
< |
s,@USE_SPRNG@,$USE_SPRNG,;t t |
15310 |
< |
s,@MKL_LIBDIR@,$MKL_LIBDIR,;t t |
15311 |
< |
s,@MKL_LIB@,$MKL_LIB,;t t |
15312 |
< |
s,@MKL_INC@,$MKL_INC,;t t |
15313 |
< |
s,@HAVE_MKL@,$HAVE_MKL,;t t |
15314 |
< |
s,@BATEXT@,$BATEXT,;t t |
15315 |
< |
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
15316 |
< |
s,@OOPSE@,$OOPSE,;t t |
15317 |
< |
s,@OOPSE_HOME@,$OOPSE_HOME,;t t |
15318 |
< |
s,@SUBDIRS@,$SUBDIRS,;t t |
15319 |
< |
s,@FFLAGS@,$FFLAGS,;t t |
15320 |
< |
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
15321 |
< |
CEOF |
15217 |
> |
if test -n "$CONFIG_FILES"; then |
15218 |
> |
|
15219 |
> |
_ACEOF |
15220 |
> |
|
15221 |
> |
|
15222 |
> |
|
15223 |
> |
ac_delim='%!_!# ' |
15224 |
> |
for ac_last_try in false false false false false :; do |
15225 |
> |
cat >conf$$subs.sed <<_ACEOF |
15226 |
> |
SHELL!$SHELL$ac_delim |
15227 |
> |
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
15228 |
> |
PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
15229 |
> |
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
15230 |
> |
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
15231 |
> |
PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
15232 |
> |
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
15233 |
> |
exec_prefix!$exec_prefix$ac_delim |
15234 |
> |
prefix!$prefix$ac_delim |
15235 |
> |
program_transform_name!$program_transform_name$ac_delim |
15236 |
> |
bindir!$bindir$ac_delim |
15237 |
> |
sbindir!$sbindir$ac_delim |
15238 |
> |
libexecdir!$libexecdir$ac_delim |
15239 |
> |
datarootdir!$datarootdir$ac_delim |
15240 |
> |
datadir!$datadir$ac_delim |
15241 |
> |
sysconfdir!$sysconfdir$ac_delim |
15242 |
> |
sharedstatedir!$sharedstatedir$ac_delim |
15243 |
> |
localstatedir!$localstatedir$ac_delim |
15244 |
> |
includedir!$includedir$ac_delim |
15245 |
> |
oldincludedir!$oldincludedir$ac_delim |
15246 |
> |
docdir!$docdir$ac_delim |
15247 |
> |
infodir!$infodir$ac_delim |
15248 |
> |
htmldir!$htmldir$ac_delim |
15249 |
> |
dvidir!$dvidir$ac_delim |
15250 |
> |
pdfdir!$pdfdir$ac_delim |
15251 |
> |
psdir!$psdir$ac_delim |
15252 |
> |
libdir!$libdir$ac_delim |
15253 |
> |
localedir!$localedir$ac_delim |
15254 |
> |
mandir!$mandir$ac_delim |
15255 |
> |
DEFS!$DEFS$ac_delim |
15256 |
> |
ECHO_C!$ECHO_C$ac_delim |
15257 |
> |
ECHO_N!$ECHO_N$ac_delim |
15258 |
> |
ECHO_T!$ECHO_T$ac_delim |
15259 |
> |
LIBS!$LIBS$ac_delim |
15260 |
> |
build_alias!$build_alias$ac_delim |
15261 |
> |
host_alias!$host_alias$ac_delim |
15262 |
> |
target_alias!$target_alias$ac_delim |
15263 |
> |
build!$build$ac_delim |
15264 |
> |
build_cpu!$build_cpu$ac_delim |
15265 |
> |
build_vendor!$build_vendor$ac_delim |
15266 |
> |
build_os!$build_os$ac_delim |
15267 |
> |
host!$host$ac_delim |
15268 |
> |
host_cpu!$host_cpu$ac_delim |
15269 |
> |
host_vendor!$host_vendor$ac_delim |
15270 |
> |
host_os!$host_os$ac_delim |
15271 |
> |
PROGNAME!$PROGNAME$ac_delim |
15272 |
> |
debug!$debug$ac_delim |
15273 |
> |
USE_SINGLE_PRECISION!$USE_SINGLE_PRECISION$ac_delim |
15274 |
> |
CXX!$CXX$ac_delim |
15275 |
> |
CXXFLAGS!$CXXFLAGS$ac_delim |
15276 |
> |
LDFLAGS!$LDFLAGS$ac_delim |
15277 |
> |
CPPFLAGS!$CPPFLAGS$ac_delim |
15278 |
> |
ac_ct_CXX!$ac_ct_CXX$ac_delim |
15279 |
> |
EXEEXT!$EXEEXT$ac_delim |
15280 |
> |
OBJEXT!$OBJEXT$ac_delim |
15281 |
> |
CC!$CC$ac_delim |
15282 |
> |
CFLAGS!$CFLAGS$ac_delim |
15283 |
> |
ac_ct_CC!$ac_ct_CC$ac_delim |
15284 |
> |
FC!$FC$ac_delim |
15285 |
> |
FCFLAGS!$FCFLAGS$ac_delim |
15286 |
> |
ac_ct_FC!$ac_ct_FC$ac_delim |
15287 |
> |
CPP!$CPP$ac_delim |
15288 |
> |
GREP!$GREP$ac_delim |
15289 |
> |
EGREP!$EGREP$ac_delim |
15290 |
> |
LN_S!$LN_S$ac_delim |
15291 |
> |
SET_MAKE!$SET_MAKE$ac_delim |
15292 |
> |
RANLIB!$RANLIB$ac_delim |
15293 |
> |
PERLINTERP!$PERLINTERP$ac_delim |
15294 |
> |
PERL_SHEBANG!$PERL_SHEBANG$ac_delim |
15295 |
> |
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
15296 |
> |
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
15297 |
> |
INSTALL_DATA!$INSTALL_DATA$ac_delim |
15298 |
> |
AR!$AR$ac_delim |
15299 |
> |
PS!$PS$ac_delim |
15300 |
> |
FCFLAGS_F90!$FCFLAGS_F90$ac_delim |
15301 |
> |
FCFLAGS_SRCEXT!$FCFLAGS_SRCEXT$ac_delim |
15302 |
> |
PREPDEFFLAG!$PREPDEFFLAG$ac_delim |
15303 |
> |
FCLIBS!$FCLIBS$ac_delim |
15304 |
> |
FC_FUNC!$FC_FUNC$ac_delim |
15305 |
> |
FC_FUNC_!$FC_FUNC_$ac_delim |
15306 |
> |
MOD!$MOD$ac_delim |
15307 |
> |
F90_WORK_FILES_ARG!$F90_WORK_FILES_ARG$ac_delim |
15308 |
> |
MODDIRFLAG!$MODDIRFLAG$ac_delim |
15309 |
> |
F90MODINCSPEC!$F90MODINCSPEC$ac_delim |
15310 |
> |
F90_MODULE_NAMES!$F90_MODULE_NAMES$ac_delim |
15311 |
> |
ZLIB_INC_DIR!$ZLIB_INC_DIR$ac_delim |
15312 |
> |
ZLIB_LIB_DIR!$ZLIB_LIB_DIR$ac_delim |
15313 |
> |
ZLIB!$ZLIB$ac_delim |
15314 |
> |
FFTW_INC_DIR!$FFTW_INC_DIR$ac_delim |
15315 |
> |
FFTW_LIB_DIR!$FFTW_LIB_DIR$ac_delim |
15316 |
> |
FFTW_LIBS!$FFTW_LIBS$ac_delim |
15317 |
> |
LIBOBJS!$LIBOBJS$ac_delim |
15318 |
> |
POW_LIB!$POW_LIB$ac_delim |
15319 |
> |
CXXCPP!$CXXCPP$ac_delim |
15320 |
> |
__func__!$__func__$ac_delim |
15321 |
> |
MPI_LIB_DIR!$MPI_LIB_DIR$ac_delim |
15322 |
> |
MPI_INC_DIR!$MPI_INC_DIR$ac_delim |
15323 |
> |
_ACEOF |
15324 |
|
|
15325 |
+ |
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
15326 |
+ |
break |
15327 |
+ |
elif $ac_last_try; then |
15328 |
+ |
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
15329 |
+ |
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
15330 |
+ |
{ (exit 1); exit 1; }; } |
15331 |
+ |
else |
15332 |
+ |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
15333 |
+ |
fi |
15334 |
+ |
done |
15335 |
+ |
|
15336 |
+ |
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
15337 |
+ |
if test -n "$ac_eof"; then |
15338 |
+ |
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
15339 |
+ |
ac_eof=`expr $ac_eof + 1` |
15340 |
+ |
fi |
15341 |
+ |
|
15342 |
+ |
cat >>$CONFIG_STATUS <<_ACEOF |
15343 |
+ |
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
15344 |
+ |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
15345 |
|
_ACEOF |
15346 |
+ |
sed ' |
15347 |
+ |
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
15348 |
+ |
s/^/s,@/; s/!/@,|#_!!_#|/ |
15349 |
+ |
:n |
15350 |
+ |
t n |
15351 |
+ |
s/'"$ac_delim"'$/,g/; t |
15352 |
+ |
s/$/\\/; p |
15353 |
+ |
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
15354 |
+ |
' >>$CONFIG_STATUS <conf$$subs.sed |
15355 |
+ |
rm -f conf$$subs.sed |
15356 |
+ |
cat >>$CONFIG_STATUS <<_ACEOF |
15357 |
+ |
CEOF$ac_eof |
15358 |
+ |
_ACEOF |
15359 |
|
|
15360 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
15361 |
< |
# Split the substitutions into bite-sized pieces for seds with |
15362 |
< |
# small command number limits, like on Digital OSF/1 and HP-UX. |
15363 |
< |
ac_max_sed_lines=48 |
15364 |
< |
ac_sed_frag=1 # Number of current file. |
15365 |
< |
ac_beg=1 # First line for current file. |
15366 |
< |
ac_end=$ac_max_sed_lines # Line after last line for current file. |
15367 |
< |
ac_more_lines=: |
15368 |
< |
ac_sed_cmds= |
15369 |
< |
while $ac_more_lines; do |
15370 |
< |
if test $ac_beg -gt 1; then |
15371 |
< |
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
15372 |
< |
else |
15373 |
< |
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
15374 |
< |
fi |
15375 |
< |
if test ! -s $tmp/subs.frag; then |
15376 |
< |
ac_more_lines=false |
15377 |
< |
else |
15378 |
< |
# The purpose of the label and of the branching condition is to |
15379 |
< |
# speed up the sed processing (if there are no `@' at all, there |
15380 |
< |
# is no need to browse any of the substitutions). |
15381 |
< |
# These are the two extra sed commands mentioned above. |
15382 |
< |
(echo ':t |
15383 |
< |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
15384 |
< |
if test -z "$ac_sed_cmds"; then |
15385 |
< |
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
15386 |
< |
else |
15387 |
< |
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
15388 |
< |
fi |
15389 |
< |
ac_sed_frag=`expr $ac_sed_frag + 1` |
8322 |
< |
ac_beg=$ac_end |
8323 |
< |
ac_end=`expr $ac_end + $ac_max_sed_lines` |
8324 |
< |
fi |
8325 |
< |
done |
8326 |
< |
if test -z "$ac_sed_cmds"; then |
8327 |
< |
ac_sed_cmds=cat |
15360 |
> |
|
15361 |
> |
ac_delim='%!_!# ' |
15362 |
> |
for ac_last_try in false false false false false :; do |
15363 |
> |
cat >conf$$subs.sed <<_ACEOF |
15364 |
> |
MPI_F90_INC!$MPI_F90_INC$ac_delim |
15365 |
> |
MPI_LIB!$MPI_LIB$ac_delim |
15366 |
> |
MPI_F90_LIB!$MPI_F90_LIB$ac_delim |
15367 |
> |
USE_MPI!$USE_MPI$ac_delim |
15368 |
> |
DOXYGEN!$DOXYGEN$ac_delim |
15369 |
> |
DOT!$DOT$ac_delim |
15370 |
> |
DOC!$DOC$ac_delim |
15371 |
> |
enable_dot!$enable_dot$ac_delim |
15372 |
> |
enable_html_docs!$enable_html_docs$ac_delim |
15373 |
> |
enable_latex_docs!$enable_latex_docs$ac_delim |
15374 |
> |
BATEXT!$BATEXT$ac_delim |
15375 |
> |
MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim |
15376 |
> |
OOPSE!$OOPSE$ac_delim |
15377 |
> |
OOPSE_HOME!$OOPSE_HOME$ac_delim |
15378 |
> |
SUBDIRS!$SUBDIRS$ac_delim |
15379 |
> |
LTLIBOBJS!$LTLIBOBJS$ac_delim |
15380 |
> |
_ACEOF |
15381 |
> |
|
15382 |
> |
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then |
15383 |
> |
break |
15384 |
> |
elif $ac_last_try; then |
15385 |
> |
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
15386 |
> |
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
15387 |
> |
{ (exit 1); exit 1; }; } |
15388 |
> |
else |
15389 |
> |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
15390 |
|
fi |
15391 |
< |
fi # test -n "$CONFIG_FILES" |
15391 |
> |
done |
15392 |
|
|
15393 |
+ |
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
15394 |
+ |
if test -n "$ac_eof"; then |
15395 |
+ |
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
15396 |
+ |
ac_eof=`expr $ac_eof + 1` |
15397 |
+ |
fi |
15398 |
+ |
|
15399 |
+ |
cat >>$CONFIG_STATUS <<_ACEOF |
15400 |
+ |
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
15401 |
+ |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
15402 |
|
_ACEOF |
15403 |
+ |
sed ' |
15404 |
+ |
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
15405 |
+ |
s/^/s,@/; s/!/@,|#_!!_#|/ |
15406 |
+ |
:n |
15407 |
+ |
t n |
15408 |
+ |
s/'"$ac_delim"'$/,g/; t |
15409 |
+ |
s/$/\\/; p |
15410 |
+ |
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
15411 |
+ |
' >>$CONFIG_STATUS <conf$$subs.sed |
15412 |
+ |
rm -f conf$$subs.sed |
15413 |
+ |
cat >>$CONFIG_STATUS <<_ACEOF |
15414 |
+ |
:end |
15415 |
+ |
s/|#_!!_#|//g |
15416 |
+ |
CEOF$ac_eof |
15417 |
+ |
_ACEOF |
15418 |
+ |
|
15419 |
+ |
|
15420 |
+ |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
15421 |
+ |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
15422 |
+ |
# trailing colons and then remove the whole line if VPATH becomes empty |
15423 |
+ |
# (actually we leave an empty line to preserve line numbers). |
15424 |
+ |
if test "x$srcdir" = x.; then |
15425 |
+ |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
15426 |
+ |
s/:*\$(srcdir):*/:/ |
15427 |
+ |
s/:*\${srcdir}:*/:/ |
15428 |
+ |
s/:*@srcdir@:*/:/ |
15429 |
+ |
s/^\([^=]*=[ ]*\):*/\1/ |
15430 |
+ |
s/:*$// |
15431 |
+ |
s/^[^=]*=[ ]*$// |
15432 |
+ |
}' |
15433 |
+ |
fi |
15434 |
+ |
|
15435 |
|
cat >>$CONFIG_STATUS <<\_ACEOF |
15436 |
< |
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
15437 |
< |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
15438 |
< |
case $ac_file in |
15439 |
< |
- | *:- | *:-:* ) # input from stdin |
15440 |
< |
cat >$tmp/stdin |
15441 |
< |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
15442 |
< |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
8340 |
< |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8341 |
< |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
8342 |
< |
* ) ac_file_in=$ac_file.in ;; |
15436 |
> |
fi # test -n "$CONFIG_FILES" |
15437 |
> |
|
15438 |
> |
|
15439 |
> |
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS |
15440 |
> |
do |
15441 |
> |
case $ac_tag in |
15442 |
> |
:[FHLC]) ac_mode=$ac_tag; continue;; |
15443 |
|
esac |
15444 |
+ |
case $ac_mode$ac_tag in |
15445 |
+ |
:[FHL]*:*);; |
15446 |
+ |
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
15447 |
+ |
echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
15448 |
+ |
{ (exit 1); exit 1; }; };; |
15449 |
+ |
:[FH]-) ac_tag=-:-;; |
15450 |
+ |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
15451 |
+ |
esac |
15452 |
+ |
ac_save_IFS=$IFS |
15453 |
+ |
IFS=: |
15454 |
+ |
set x $ac_tag |
15455 |
+ |
IFS=$ac_save_IFS |
15456 |
+ |
shift |
15457 |
+ |
ac_file=$1 |
15458 |
+ |
shift |
15459 |
|
|
15460 |
< |
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
15461 |
< |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
15460 |
> |
case $ac_mode in |
15461 |
> |
:L) ac_source=$1;; |
15462 |
> |
:[FH]) |
15463 |
> |
ac_file_inputs= |
15464 |
> |
for ac_f |
15465 |
> |
do |
15466 |
> |
case $ac_f in |
15467 |
> |
-) ac_f="$tmp/stdin";; |
15468 |
> |
*) # Look for the file first in the build tree, then in the source tree |
15469 |
> |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
15470 |
> |
# because $ac_f cannot contain `:'. |
15471 |
> |
test -f "$ac_f" || |
15472 |
> |
case $ac_f in |
15473 |
> |
[\\/$]*) false;; |
15474 |
> |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
15475 |
> |
esac || |
15476 |
> |
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
15477 |
> |
echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
15478 |
> |
{ (exit 1); exit 1; }; };; |
15479 |
> |
esac |
15480 |
> |
ac_file_inputs="$ac_file_inputs $ac_f" |
15481 |
> |
done |
15482 |
> |
|
15483 |
> |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
15484 |
> |
# use $as_me), people would be surprised to read: |
15485 |
> |
# /* config.h. Generated by config.status. */ |
15486 |
> |
configure_input="Generated from "`IFS=: |
15487 |
> |
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
15488 |
> |
if test x"$ac_file" != x-; then |
15489 |
> |
configure_input="$ac_file. $configure_input" |
15490 |
> |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
15491 |
> |
echo "$as_me: creating $ac_file" >&6;} |
15492 |
> |
fi |
15493 |
> |
|
15494 |
> |
case $ac_tag in |
15495 |
> |
*:-:* | *:-) cat >"$tmp/stdin";; |
15496 |
> |
esac |
15497 |
> |
;; |
15498 |
> |
esac |
15499 |
> |
|
15500 |
> |
ac_dir=`$as_dirname -- "$ac_file" || |
15501 |
|
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15502 |
|
X"$ac_file" : 'X\(//\)[^/]' \| \ |
15503 |
|
X"$ac_file" : 'X\(//\)$' \| \ |
15504 |
< |
X"$ac_file" : 'X\(/\)' \| \ |
8351 |
< |
. : '\(.\)' 2>/dev/null || |
15504 |
> |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15505 |
|
echo X"$ac_file" | |
15506 |
< |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
15507 |
< |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
15508 |
< |
/^X\(\/\/\)$/{ s//\1/; q; } |
15509 |
< |
/^X\(\/\).*/{ s//\1/; q; } |
15510 |
< |
s/.*/./; q'` |
15511 |
< |
{ if $as_mkdir_p; then |
15512 |
< |
mkdir -p "$ac_dir" |
15513 |
< |
else |
15514 |
< |
as_dir="$ac_dir" |
15506 |
> |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
15507 |
> |
s//\1/ |
15508 |
> |
q |
15509 |
> |
} |
15510 |
> |
/^X\(\/\/\)[^/].*/{ |
15511 |
> |
s//\1/ |
15512 |
> |
q |
15513 |
> |
} |
15514 |
> |
/^X\(\/\/\)$/{ |
15515 |
> |
s//\1/ |
15516 |
> |
q |
15517 |
> |
} |
15518 |
> |
/^X\(\/\).*/{ |
15519 |
> |
s//\1/ |
15520 |
> |
q |
15521 |
> |
} |
15522 |
> |
s/.*/./; q'` |
15523 |
> |
{ as_dir="$ac_dir" |
15524 |
> |
case $as_dir in #( |
15525 |
> |
-*) as_dir=./$as_dir;; |
15526 |
> |
esac |
15527 |
> |
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
15528 |
|
as_dirs= |
15529 |
< |
while test ! -d "$as_dir"; do |
15530 |
< |
as_dirs="$as_dir $as_dirs" |
15531 |
< |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
15529 |
> |
while :; do |
15530 |
> |
case $as_dir in #( |
15531 |
> |
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
15532 |
> |
*) as_qdir=$as_dir;; |
15533 |
> |
esac |
15534 |
> |
as_dirs="'$as_qdir' $as_dirs" |
15535 |
> |
as_dir=`$as_dirname -- "$as_dir" || |
15536 |
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15537 |
|
X"$as_dir" : 'X\(//\)[^/]' \| \ |
15538 |
|
X"$as_dir" : 'X\(//\)$' \| \ |
15539 |
< |
X"$as_dir" : 'X\(/\)' \| \ |
8370 |
< |
. : '\(.\)' 2>/dev/null || |
15539 |
> |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
15540 |
|
echo X"$as_dir" | |
15541 |
< |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
15542 |
< |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
15543 |
< |
/^X\(\/\/\)$/{ s//\1/; q; } |
15544 |
< |
/^X\(\/\).*/{ s//\1/; q; } |
15545 |
< |
s/.*/./; q'` |
15541 |
> |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
15542 |
> |
s//\1/ |
15543 |
> |
q |
15544 |
> |
} |
15545 |
> |
/^X\(\/\/\)[^/].*/{ |
15546 |
> |
s//\1/ |
15547 |
> |
q |
15548 |
> |
} |
15549 |
> |
/^X\(\/\/\)$/{ |
15550 |
> |
s//\1/ |
15551 |
> |
q |
15552 |
> |
} |
15553 |
> |
/^X\(\/\).*/{ |
15554 |
> |
s//\1/ |
15555 |
> |
q |
15556 |
> |
} |
15557 |
> |
s/.*/./; q'` |
15558 |
> |
test -d "$as_dir" && break |
15559 |
|
done |
15560 |
< |
test ! -n "$as_dirs" || mkdir $as_dirs |
15561 |
< |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
15562 |
< |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
15560 |
> |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
15561 |
> |
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
15562 |
> |
echo "$as_me: error: cannot create directory $as_dir" >&2;} |
15563 |
|
{ (exit 1); exit 1; }; }; } |
8382 |
– |
|
15564 |
|
ac_builddir=. |
15565 |
|
|
15566 |
< |
if test "$ac_dir" != .; then |
15566 |
> |
case "$ac_dir" in |
15567 |
> |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
15568 |
> |
*) |
15569 |
|
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
15570 |
< |
# A "../" for each directory in $ac_dir_suffix. |
15571 |
< |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
15572 |
< |
else |
15573 |
< |
ac_dir_suffix= ac_top_builddir= |
15574 |
< |
fi |
15570 |
> |
# A ".." for each directory in $ac_dir_suffix. |
15571 |
> |
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
15572 |
> |
case $ac_top_builddir_sub in |
15573 |
> |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
15574 |
> |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
15575 |
> |
esac ;; |
15576 |
> |
esac |
15577 |
> |
ac_abs_top_builddir=$ac_pwd |
15578 |
> |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
15579 |
> |
# for backward compatibility: |
15580 |
> |
ac_top_builddir=$ac_top_build_prefix |
15581 |
|
|
15582 |
|
case $srcdir in |
15583 |
< |
.) # No --srcdir option. We are building in place. |
15583 |
> |
.) # We are building in place. |
15584 |
|
ac_srcdir=. |
15585 |
< |
if test -z "$ac_top_builddir"; then |
15586 |
< |
ac_top_srcdir=. |
15587 |
< |
else |
8399 |
< |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
8400 |
< |
fi ;; |
8401 |
< |
[\\/]* | ?:[\\/]* ) # Absolute path. |
15585 |
> |
ac_top_srcdir=$ac_top_builddir_sub |
15586 |
> |
ac_abs_top_srcdir=$ac_pwd ;; |
15587 |
> |
[\\/]* | ?:[\\/]* ) # Absolute name. |
15588 |
|
ac_srcdir=$srcdir$ac_dir_suffix; |
15589 |
< |
ac_top_srcdir=$srcdir ;; |
15590 |
< |
*) # Relative path. |
15591 |
< |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
15592 |
< |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
15589 |
> |
ac_top_srcdir=$srcdir |
15590 |
> |
ac_abs_top_srcdir=$srcdir ;; |
15591 |
> |
*) # Relative name. |
15592 |
> |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
15593 |
> |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
15594 |
> |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
15595 |
|
esac |
15596 |
+ |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
15597 |
|
|
8409 |
– |
# Do not use `cd foo && pwd` to compute absolute paths, because |
8410 |
– |
# the directories may not exist. |
8411 |
– |
case `pwd` in |
8412 |
– |
.) ac_abs_builddir="$ac_dir";; |
8413 |
– |
*) |
8414 |
– |
case "$ac_dir" in |
8415 |
– |
.) ac_abs_builddir=`pwd`;; |
8416 |
– |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
8417 |
– |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
8418 |
– |
esac;; |
8419 |
– |
esac |
8420 |
– |
case $ac_abs_builddir in |
8421 |
– |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
8422 |
– |
*) |
8423 |
– |
case ${ac_top_builddir}. in |
8424 |
– |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
8425 |
– |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
8426 |
– |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
8427 |
– |
esac;; |
8428 |
– |
esac |
8429 |
– |
case $ac_abs_builddir in |
8430 |
– |
.) ac_abs_srcdir=$ac_srcdir;; |
8431 |
– |
*) |
8432 |
– |
case $ac_srcdir in |
8433 |
– |
.) ac_abs_srcdir=$ac_abs_builddir;; |
8434 |
– |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
8435 |
– |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
8436 |
– |
esac;; |
8437 |
– |
esac |
8438 |
– |
case $ac_abs_builddir in |
8439 |
– |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
8440 |
– |
*) |
8441 |
– |
case $ac_top_srcdir in |
8442 |
– |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
8443 |
– |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
8444 |
– |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
8445 |
– |
esac;; |
8446 |
– |
esac |
15598 |
|
|
15599 |
+ |
case $ac_mode in |
15600 |
+ |
:F) |
15601 |
+ |
# |
15602 |
+ |
# CONFIG_FILE |
15603 |
+ |
# |
15604 |
|
|
15605 |
|
case $INSTALL in |
15606 |
|
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
15607 |
< |
*) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
15607 |
> |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
15608 |
|
esac |
15609 |
+ |
_ACEOF |
15610 |
|
|
15611 |
< |
if test x"$ac_file" != x-; then |
15612 |
< |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
15613 |
< |
echo "$as_me: creating $ac_file" >&6;} |
15614 |
< |
rm -f "$ac_file" |
8458 |
< |
fi |
8459 |
< |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
8460 |
< |
# use $as_me), people would be surprised to read: |
8461 |
< |
# /* config.h. Generated by config.status. */ |
8462 |
< |
if test x"$ac_file" = x-; then |
8463 |
< |
configure_input= |
8464 |
< |
else |
8465 |
< |
configure_input="$ac_file. " |
8466 |
< |
fi |
8467 |
< |
configure_input=$configure_input"Generated from `echo $ac_file_in | |
8468 |
< |
sed 's,.*/,,'` by configure." |
15611 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
15612 |
> |
# If the template does not know about datarootdir, expand it. |
15613 |
> |
# FIXME: This hack should be removed a few years after 2.60. |
15614 |
> |
ac_datarootdir_hack=; ac_datarootdir_seen= |
15615 |
|
|
15616 |
< |
# First look for the input files in the build tree, otherwise in the |
15617 |
< |
# src tree. |
15618 |
< |
ac_file_inputs=`IFS=: |
15619 |
< |
for f in $ac_file_in; do |
15620 |
< |
case $f in |
15621 |
< |
-) echo $tmp/stdin ;; |
15622 |
< |
[\\/$]*) |
15623 |
< |
# Absolute (can't be DOS-style, as IFS=:) |
15624 |
< |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
15625 |
< |
echo "$as_me: error: cannot find input file: $f" >&2;} |
15626 |
< |
{ (exit 1); exit 1; }; } |
15627 |
< |
echo "$f";; |
15628 |
< |
*) # Relative |
15629 |
< |
if test -f "$f"; then |
8484 |
< |
# Build tree |
8485 |
< |
echo "$f" |
8486 |
< |
elif test -f "$srcdir/$f"; then |
8487 |
< |
# Source tree |
8488 |
< |
echo "$srcdir/$f" |
8489 |
< |
else |
8490 |
< |
# /dev/null tree |
8491 |
< |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
8492 |
< |
echo "$as_me: error: cannot find input file: $f" >&2;} |
8493 |
< |
{ (exit 1); exit 1; }; } |
8494 |
< |
fi;; |
8495 |
< |
esac |
8496 |
< |
done` || { (exit 1); exit 1; } |
15616 |
> |
case `sed -n '/datarootdir/ { |
15617 |
> |
p |
15618 |
> |
q |
15619 |
> |
} |
15620 |
> |
/@datadir@/p |
15621 |
> |
/@docdir@/p |
15622 |
> |
/@infodir@/p |
15623 |
> |
/@localedir@/p |
15624 |
> |
/@mandir@/p |
15625 |
> |
' $ac_file_inputs` in |
15626 |
> |
*datarootdir*) ac_datarootdir_seen=yes;; |
15627 |
> |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
15628 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
15629 |
> |
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
15630 |
|
_ACEOF |
15631 |
|
cat >>$CONFIG_STATUS <<_ACEOF |
15632 |
+ |
ac_datarootdir_hack=' |
15633 |
+ |
s&@datadir@&$datadir&g |
15634 |
+ |
s&@docdir@&$docdir&g |
15635 |
+ |
s&@infodir@&$infodir&g |
15636 |
+ |
s&@localedir@&$localedir&g |
15637 |
+ |
s&@mandir@&$mandir&g |
15638 |
+ |
s&\\\${datarootdir}&$datarootdir&g' ;; |
15639 |
+ |
esac |
15640 |
+ |
_ACEOF |
15641 |
+ |
|
15642 |
+ |
# Neutralize VPATH when `$srcdir' = `.'. |
15643 |
+ |
# Shell code in configure.ac might set extrasub. |
15644 |
+ |
# FIXME: do we really want to maintain this feature? |
15645 |
+ |
cat >>$CONFIG_STATUS <<_ACEOF |
15646 |
|
sed "$ac_vpsub |
15647 |
|
$extrasub |
15648 |
|
_ACEOF |
15649 |
|
cat >>$CONFIG_STATUS <<\_ACEOF |
15650 |
|
:t |
15651 |
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
15652 |
< |
s,@configure_input@,$configure_input,;t t |
15653 |
< |
s,@srcdir@,$ac_srcdir,;t t |
15654 |
< |
s,@abs_srcdir@,$ac_abs_srcdir,;t t |
15655 |
< |
s,@top_srcdir@,$ac_top_srcdir,;t t |
15656 |
< |
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
15657 |
< |
s,@builddir@,$ac_builddir,;t t |
15658 |
< |
s,@abs_builddir@,$ac_abs_builddir,;t t |
15659 |
< |
s,@top_builddir@,$ac_top_builddir,;t t |
15660 |
< |
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
15661 |
< |
s,@INSTALL@,$ac_INSTALL,;t t |
15662 |
< |
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
15663 |
< |
rm -f $tmp/stdin |
8517 |
< |
if test x"$ac_file" != x-; then |
8518 |
< |
mv $tmp/out $ac_file |
8519 |
< |
else |
8520 |
< |
cat $tmp/out |
8521 |
< |
rm -f $tmp/out |
8522 |
< |
fi |
8523 |
< |
|
8524 |
< |
done |
8525 |
< |
_ACEOF |
8526 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
15652 |
> |
s&@configure_input@&$configure_input&;t t |
15653 |
> |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
15654 |
> |
s&@srcdir@&$ac_srcdir&;t t |
15655 |
> |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
15656 |
> |
s&@top_srcdir@&$ac_top_srcdir&;t t |
15657 |
> |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
15658 |
> |
s&@builddir@&$ac_builddir&;t t |
15659 |
> |
s&@abs_builddir@&$ac_abs_builddir&;t t |
15660 |
> |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
15661 |
> |
s&@INSTALL@&$ac_INSTALL&;t t |
15662 |
> |
$ac_datarootdir_hack |
15663 |
> |
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
15664 |
|
|
15665 |
< |
# |
15666 |
< |
# CONFIG_HEADER section. |
15667 |
< |
# |
15665 |
> |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
15666 |
> |
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
15667 |
> |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
15668 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
15669 |
> |
which seems to be undefined. Please make sure it is defined." >&5 |
15670 |
> |
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
15671 |
> |
which seems to be undefined. Please make sure it is defined." >&2;} |
15672 |
|
|
15673 |
< |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
8533 |
< |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
8534 |
< |
# |
8535 |
< |
# ac_d sets the value in "#define NAME VALUE" lines. |
8536 |
< |
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
8537 |
< |
ac_dB='[ ].*$,\1#\2' |
8538 |
< |
ac_dC=' ' |
8539 |
< |
ac_dD=',;t' |
8540 |
< |
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
8541 |
< |
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
8542 |
< |
ac_uB='$,\1#\2define\3' |
8543 |
< |
ac_uC=' ' |
8544 |
< |
ac_uD=',;t' |
8545 |
< |
|
8546 |
< |
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
8547 |
< |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
15673 |
> |
rm -f "$tmp/stdin" |
15674 |
|
case $ac_file in |
15675 |
< |
- | *:- | *:-:* ) # input from stdin |
15676 |
< |
cat >$tmp/stdin |
8551 |
< |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8552 |
< |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
8553 |
< |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8554 |
< |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
8555 |
< |
* ) ac_file_in=$ac_file.in ;; |
15675 |
> |
-) cat "$tmp/out"; rm -f "$tmp/out";; |
15676 |
> |
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
15677 |
|
esac |
15678 |
< |
|
15679 |
< |
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
15680 |
< |
echo "$as_me: creating $ac_file" >&6;} |
15681 |
< |
|
15682 |
< |
# First look for the input files in the build tree, otherwise in the |
8562 |
< |
# src tree. |
8563 |
< |
ac_file_inputs=`IFS=: |
8564 |
< |
for f in $ac_file_in; do |
8565 |
< |
case $f in |
8566 |
< |
-) echo $tmp/stdin ;; |
8567 |
< |
[\\/$]*) |
8568 |
< |
# Absolute (can't be DOS-style, as IFS=:) |
8569 |
< |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
8570 |
< |
echo "$as_me: error: cannot find input file: $f" >&2;} |
8571 |
< |
{ (exit 1); exit 1; }; } |
8572 |
< |
# Do quote $f, to prevent DOS paths from being IFS'd. |
8573 |
< |
echo "$f";; |
8574 |
< |
*) # Relative |
8575 |
< |
if test -f "$f"; then |
8576 |
< |
# Build tree |
8577 |
< |
echo "$f" |
8578 |
< |
elif test -f "$srcdir/$f"; then |
8579 |
< |
# Source tree |
8580 |
< |
echo "$srcdir/$f" |
8581 |
< |
else |
8582 |
< |
# /dev/null tree |
8583 |
< |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
8584 |
< |
echo "$as_me: error: cannot find input file: $f" >&2;} |
8585 |
< |
{ (exit 1); exit 1; }; } |
8586 |
< |
fi;; |
8587 |
< |
esac |
8588 |
< |
done` || { (exit 1); exit 1; } |
8589 |
< |
# Remove the trailing spaces. |
8590 |
< |
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
8591 |
< |
|
15678 |
> |
;; |
15679 |
> |
:H) |
15680 |
> |
# |
15681 |
> |
# CONFIG_HEADER |
15682 |
> |
# |
15683 |
|
_ACEOF |
15684 |
|
|
15685 |
< |
# Transform confdefs.h into two sed scripts, `conftest.defines' and |
15686 |
< |
# `conftest.undefs', that substitutes the proper values into |
15687 |
< |
# config.h.in to produce config.h. The first handles `#define' |
15688 |
< |
# templates, and the second `#undef' templates. |
15689 |
< |
# And first: Protect against being on the right side of a sed subst in |
15690 |
< |
# config.status. Protect against being in an unquoted here document |
15691 |
< |
# in config.status. |
15692 |
< |
rm -f conftest.defines conftest.undefs |
15693 |
< |
# Using a here document instead of a string reduces the quoting nightmare. |
15694 |
< |
# Putting comments in sed scripts is not portable. |
15695 |
< |
# |
15696 |
< |
# `end' is used to avoid that the second main sed command (meant for |
15697 |
< |
# 0-ary CPP macros) applies to n-ary macro definitions. |
15698 |
< |
# See the Autoconf documentation for `clear'. |
15699 |
< |
cat >confdef2sed.sed <<\_ACEOF |
15700 |
< |
s/[\\&,]/\\&/g |
15701 |
< |
s,[\\$`],\\&,g |
15702 |
< |
t clear |
15703 |
< |
: clear |
8613 |
< |
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
8614 |
< |
t end |
8615 |
< |
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
8616 |
< |
: end |
8617 |
< |
_ACEOF |
8618 |
< |
# If some macros were called several times there might be several times |
8619 |
< |
# the same #defines, which is useless. Nevertheless, we may not want to |
8620 |
< |
# sort them, since we want the *last* AC-DEFINE to be honored. |
8621 |
< |
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
8622 |
< |
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
8623 |
< |
rm -f confdef2sed.sed |
15685 |
> |
# Transform confdefs.h into a sed script `conftest.defines', that |
15686 |
> |
# substitutes the proper values into config.h.in to produce config.h. |
15687 |
> |
rm -f conftest.defines conftest.tail |
15688 |
> |
# First, append a space to every undef/define line, to ease matching. |
15689 |
> |
echo 's/$/ /' >conftest.defines |
15690 |
> |
# Then, protect against being on the right side of a sed subst, or in |
15691 |
> |
# an unquoted here document, in config.status. If some macros were |
15692 |
> |
# called several times there might be several #defines for the same |
15693 |
> |
# symbol, which is useless. But do not sort them, since the last |
15694 |
> |
# AC_DEFINE must be honored. |
15695 |
> |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
15696 |
> |
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
15697 |
> |
# NAME is the cpp macro being defined, VALUE is the value it is being given. |
15698 |
> |
# PARAMS is the parameter list in the macro definition--in most cases, it's |
15699 |
> |
# just an empty string. |
15700 |
> |
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
15701 |
> |
ac_dB='\\)[ (].*,\\1define\\2' |
15702 |
> |
ac_dC=' ' |
15703 |
> |
ac_dD=' ,' |
15704 |
|
|
15705 |
< |
# This sed command replaces #undef with comments. This is necessary, for |
15705 |
> |
uniq confdefs.h | |
15706 |
> |
sed -n ' |
15707 |
> |
t rset |
15708 |
> |
:rset |
15709 |
> |
s/^[ ]*#[ ]*define[ ][ ]*// |
15710 |
> |
t ok |
15711 |
> |
d |
15712 |
> |
:ok |
15713 |
> |
s/[\\&,]/\\&/g |
15714 |
> |
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
15715 |
> |
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
15716 |
> |
' >>conftest.defines |
15717 |
> |
|
15718 |
> |
# Remove the space that was appended to ease matching. |
15719 |
> |
# Then replace #undef with comments. This is necessary, for |
15720 |
|
# example, in the case of _POSIX_SOURCE, which is predefined and required |
15721 |
|
# on some systems where configure will not decide to define it. |
15722 |
< |
cat >>conftest.undefs <<\_ACEOF |
15723 |
< |
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
15724 |
< |
_ACEOF |
15722 |
> |
# (The regexp can be short, since the line contains either #define or #undef.) |
15723 |
> |
echo 's/ $// |
15724 |
> |
s,^[ #]*u.*,/* & */,' >>conftest.defines |
15725 |
|
|
15726 |
< |
# Break up conftest.defines because some shells have a limit on the size |
15727 |
< |
# of here documents, and old seds have small limits too (100 cmds). |
15728 |
< |
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
15729 |
< |
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
15730 |
< |
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
15731 |
< |
echo ' :' >>$CONFIG_STATUS |
15732 |
< |
rm -f conftest.tail |
15733 |
< |
while grep . conftest.defines >/dev/null |
15726 |
> |
# Break up conftest.defines: |
15727 |
> |
ac_max_sed_lines=50 |
15728 |
> |
|
15729 |
> |
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
15730 |
> |
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
15731 |
> |
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
15732 |
> |
# et cetera. |
15733 |
> |
ac_in='$ac_file_inputs' |
15734 |
> |
ac_out='"$tmp/out1"' |
15735 |
> |
ac_nxt='"$tmp/out2"' |
15736 |
> |
|
15737 |
> |
while : |
15738 |
|
do |
15739 |
< |
# Write a limited-size here document to $tmp/defines.sed. |
15740 |
< |
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
15741 |
< |
# Speed up: don't consider the non `#define' lines. |
15742 |
< |
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
15743 |
< |
# Work around the forget-to-reset-the-flag bug. |
15744 |
< |
echo 't clr' >>$CONFIG_STATUS |
15745 |
< |
echo ': clr' >>$CONFIG_STATUS |
15746 |
< |
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
15739 |
> |
# Write a here document: |
15740 |
> |
cat >>$CONFIG_STATUS <<_ACEOF |
15741 |
> |
# First, check the format of the line: |
15742 |
> |
cat >"\$tmp/defines.sed" <<\\CEOF |
15743 |
> |
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
15744 |
> |
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
15745 |
> |
b |
15746 |
> |
:def |
15747 |
> |
_ACEOF |
15748 |
> |
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
15749 |
|
echo 'CEOF |
15750 |
< |
sed -f $tmp/defines.sed $tmp/in >$tmp/out |
15751 |
< |
rm -f $tmp/in |
15752 |
< |
mv $tmp/out $tmp/in |
15753 |
< |
' >>$CONFIG_STATUS |
8654 |
< |
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
15750 |
> |
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
15751 |
> |
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
15752 |
> |
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
15753 |
> |
grep . conftest.tail >/dev/null || break |
15754 |
|
rm -f conftest.defines |
15755 |
|
mv conftest.tail conftest.defines |
15756 |
|
done |
15757 |
< |
rm -f conftest.defines |
8659 |
< |
echo ' fi # grep' >>$CONFIG_STATUS |
8660 |
< |
echo >>$CONFIG_STATUS |
15757 |
> |
rm -f conftest.defines conftest.tail |
15758 |
|
|
15759 |
< |
# Break up conftest.undefs because some shells have a limit on the size |
8663 |
< |
# of here documents, and old seds have small limits too (100 cmds). |
8664 |
< |
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
8665 |
< |
rm -f conftest.tail |
8666 |
< |
while grep . conftest.undefs >/dev/null |
8667 |
< |
do |
8668 |
< |
# Write a limited-size here document to $tmp/undefs.sed. |
8669 |
< |
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
8670 |
< |
# Speed up: don't consider the non `#undef' |
8671 |
< |
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
8672 |
< |
# Work around the forget-to-reset-the-flag bug. |
8673 |
< |
echo 't clr' >>$CONFIG_STATUS |
8674 |
< |
echo ': clr' >>$CONFIG_STATUS |
8675 |
< |
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
8676 |
< |
echo 'CEOF |
8677 |
< |
sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
8678 |
< |
rm -f $tmp/in |
8679 |
< |
mv $tmp/out $tmp/in |
8680 |
< |
' >>$CONFIG_STATUS |
8681 |
< |
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
8682 |
< |
rm -f conftest.undefs |
8683 |
< |
mv conftest.tail conftest.undefs |
8684 |
< |
done |
8685 |
< |
rm -f conftest.undefs |
8686 |
< |
|
15759 |
> |
echo "ac_result=$ac_in" >>$CONFIG_STATUS |
15760 |
|
cat >>$CONFIG_STATUS <<\_ACEOF |
15761 |
< |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
15762 |
< |
# use $as_me), people would be surprised to read: |
15763 |
< |
# /* config.h. Generated by config.status. */ |
15764 |
< |
if test x"$ac_file" = x-; then |
8692 |
< |
echo "/* Generated by configure. */" >$tmp/config.h |
8693 |
< |
else |
8694 |
< |
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
8695 |
< |
fi |
8696 |
< |
cat $tmp/in >>$tmp/config.h |
8697 |
< |
rm -f $tmp/in |
8698 |
< |
if test x"$ac_file" != x-; then |
8699 |
< |
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
15761 |
> |
if test x"$ac_file" != x-; then |
15762 |
> |
echo "/* $configure_input */" >"$tmp/config.h" |
15763 |
> |
cat "$ac_result" >>"$tmp/config.h" |
15764 |
> |
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
15765 |
|
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
15766 |
|
echo "$as_me: $ac_file is unchanged" >&6;} |
15767 |
|
else |
8703 |
– |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
8704 |
– |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8705 |
– |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
8706 |
– |
X"$ac_file" : 'X\(//\)$' \| \ |
8707 |
– |
X"$ac_file" : 'X\(/\)' \| \ |
8708 |
– |
. : '\(.\)' 2>/dev/null || |
8709 |
– |
echo X"$ac_file" | |
8710 |
– |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
8711 |
– |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
8712 |
– |
/^X\(\/\/\)$/{ s//\1/; q; } |
8713 |
– |
/^X\(\/\).*/{ s//\1/; q; } |
8714 |
– |
s/.*/./; q'` |
8715 |
– |
{ if $as_mkdir_p; then |
8716 |
– |
mkdir -p "$ac_dir" |
8717 |
– |
else |
8718 |
– |
as_dir="$ac_dir" |
8719 |
– |
as_dirs= |
8720 |
– |
while test ! -d "$as_dir"; do |
8721 |
– |
as_dirs="$as_dir $as_dirs" |
8722 |
– |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
8723 |
– |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8724 |
– |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
8725 |
– |
X"$as_dir" : 'X\(//\)$' \| \ |
8726 |
– |
X"$as_dir" : 'X\(/\)' \| \ |
8727 |
– |
. : '\(.\)' 2>/dev/null || |
8728 |
– |
echo X"$as_dir" | |
8729 |
– |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
8730 |
– |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
8731 |
– |
/^X\(\/\/\)$/{ s//\1/; q; } |
8732 |
– |
/^X\(\/\).*/{ s//\1/; q; } |
8733 |
– |
s/.*/./; q'` |
8734 |
– |
done |
8735 |
– |
test ! -n "$as_dirs" || mkdir $as_dirs |
8736 |
– |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
8737 |
– |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
8738 |
– |
{ (exit 1); exit 1; }; }; } |
8739 |
– |
|
15768 |
|
rm -f $ac_file |
15769 |
< |
mv $tmp/config.h $ac_file |
15769 |
> |
mv "$tmp/config.h" $ac_file |
15770 |
|
fi |
15771 |
|
else |
15772 |
< |
cat $tmp/config.h |
15773 |
< |
rm -f $tmp/config.h |
15772 |
> |
echo "/* $configure_input */" |
15773 |
> |
cat "$ac_result" |
15774 |
|
fi |
15775 |
< |
done |
15776 |
< |
_ACEOF |
15777 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
15775 |
> |
rm -f "$tmp/out12" |
15776 |
> |
;; |
15777 |
> |
:L) |
15778 |
> |
# |
15779 |
> |
# CONFIG_LINK |
15780 |
> |
# |
15781 |
|
|
15782 |
< |
# |
15783 |
< |
# CONFIG_LINKS section. |
8753 |
< |
# |
15782 |
> |
{ echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5 |
15783 |
> |
echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;} |
15784 |
|
|
15785 |
< |
for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
8756 |
< |
ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
8757 |
< |
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8758 |
< |
|
8759 |
< |
{ echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
8760 |
< |
echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} |
8761 |
< |
|
8762 |
< |
if test ! -r $srcdir/$ac_source; then |
15785 |
> |
if test ! -r "$srcdir/$ac_source"; then |
15786 |
|
{ { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
15787 |
|
echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} |
15788 |
|
{ (exit 1); exit 1; }; } |
15789 |
|
fi |
15790 |
< |
rm -f $ac_dest |
15790 |
> |
rm -f "$ac_file" |
15791 |
|
|
15792 |
< |
# Make relative symlinks. |
15793 |
< |
ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || |
15794 |
< |
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15795 |
< |
X"$ac_dest" : 'X\(//\)[^/]' \| \ |
15796 |
< |
X"$ac_dest" : 'X\(//\)$' \| \ |
15797 |
< |
X"$ac_dest" : 'X\(/\)' \| \ |
15798 |
< |
. : '\(.\)' 2>/dev/null || |
15799 |
< |
echo X"$ac_dest" | |
15800 |
< |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
15801 |
< |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
15802 |
< |
/^X\(\/\/\)$/{ s//\1/; q; } |
15803 |
< |
/^X\(\/\).*/{ s//\1/; q; } |
8781 |
< |
s/.*/./; q'` |
8782 |
< |
{ if $as_mkdir_p; then |
8783 |
< |
mkdir -p "$ac_dest_dir" |
8784 |
< |
else |
8785 |
< |
as_dir="$ac_dest_dir" |
8786 |
< |
as_dirs= |
8787 |
< |
while test ! -d "$as_dir"; do |
8788 |
< |
as_dirs="$as_dir $as_dirs" |
8789 |
< |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
8790 |
< |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8791 |
< |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
8792 |
< |
X"$as_dir" : 'X\(//\)$' \| \ |
8793 |
< |
X"$as_dir" : 'X\(/\)' \| \ |
8794 |
< |
. : '\(.\)' 2>/dev/null || |
8795 |
< |
echo X"$as_dir" | |
8796 |
< |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
8797 |
< |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
8798 |
< |
/^X\(\/\/\)$/{ s//\1/; q; } |
8799 |
< |
/^X\(\/\).*/{ s//\1/; q; } |
8800 |
< |
s/.*/./; q'` |
8801 |
< |
done |
8802 |
< |
test ! -n "$as_dirs" || mkdir $as_dirs |
8803 |
< |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 |
8804 |
< |
echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} |
8805 |
< |
{ (exit 1); exit 1; }; }; } |
15792 |
> |
# Try a relative symlink, then a hard link, then a copy. |
15793 |
> |
case $srcdir in |
15794 |
> |
[\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; |
15795 |
> |
*) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;; |
15796 |
> |
esac |
15797 |
> |
ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || |
15798 |
> |
ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null || |
15799 |
> |
cp -p "$srcdir/$ac_source" "$ac_file" || |
15800 |
> |
{ { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5 |
15801 |
> |
echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;} |
15802 |
> |
{ (exit 1); exit 1; }; } |
15803 |
> |
;; |
15804 |
|
|
15805 |
< |
ac_builddir=. |
15805 |
> |
esac |
15806 |
|
|
8809 |
– |
if test "$ac_dest_dir" != .; then |
8810 |
– |
ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` |
8811 |
– |
# A "../" for each directory in $ac_dir_suffix. |
8812 |
– |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
8813 |
– |
else |
8814 |
– |
ac_dir_suffix= ac_top_builddir= |
8815 |
– |
fi |
15807 |
|
|
15808 |
< |
case $srcdir in |
15809 |
< |
.) # No --srcdir option. We are building in place. |
15810 |
< |
ac_srcdir=. |
15811 |
< |
if test -z "$ac_top_builddir"; then |
8821 |
< |
ac_top_srcdir=. |
8822 |
< |
else |
8823 |
< |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
8824 |
< |
fi ;; |
8825 |
< |
[\\/]* | ?:[\\/]* ) # Absolute path. |
8826 |
< |
ac_srcdir=$srcdir$ac_dir_suffix; |
8827 |
< |
ac_top_srcdir=$srcdir ;; |
8828 |
< |
*) # Relative path. |
8829 |
< |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
8830 |
< |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
8831 |
< |
esac |
15808 |
> |
case $ac_file$ac_mode in |
15809 |
> |
"make/Makefile":F) chmod 0755 scripts/* ;; |
15810 |
> |
"src/utils/Makefile":F) chmod 0755 scripts/* ;; |
15811 |
> |
"scripts/filepp":F) chmod 0755 scripts/* ;; |
15812 |
|
|
8833 |
– |
# Do not use `cd foo && pwd` to compute absolute paths, because |
8834 |
– |
# the directories may not exist. |
8835 |
– |
case `pwd` in |
8836 |
– |
.) ac_abs_builddir="$ac_dest_dir";; |
8837 |
– |
*) |
8838 |
– |
case "$ac_dest_dir" in |
8839 |
– |
.) ac_abs_builddir=`pwd`;; |
8840 |
– |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; |
8841 |
– |
*) ac_abs_builddir=`pwd`/"$ac_dest_dir";; |
8842 |
– |
esac;; |
8843 |
– |
esac |
8844 |
– |
case $ac_abs_builddir in |
8845 |
– |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
8846 |
– |
*) |
8847 |
– |
case ${ac_top_builddir}. in |
8848 |
– |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
8849 |
– |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
8850 |
– |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
8851 |
– |
esac;; |
8852 |
– |
esac |
8853 |
– |
case $ac_abs_builddir in |
8854 |
– |
.) ac_abs_srcdir=$ac_srcdir;; |
8855 |
– |
*) |
8856 |
– |
case $ac_srcdir in |
8857 |
– |
.) ac_abs_srcdir=$ac_abs_builddir;; |
8858 |
– |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
8859 |
– |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
8860 |
– |
esac;; |
8861 |
– |
esac |
8862 |
– |
case $ac_abs_builddir in |
8863 |
– |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
8864 |
– |
*) |
8865 |
– |
case $ac_top_srcdir in |
8866 |
– |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
8867 |
– |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
8868 |
– |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
8869 |
– |
esac;; |
8870 |
– |
esac |
8871 |
– |
|
8872 |
– |
|
8873 |
– |
case $srcdir in |
8874 |
– |
[\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; |
8875 |
– |
*) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
15813 |
|
esac |
15814 |
+ |
done # for ac_tag |
15815 |
|
|
8878 |
– |
# Try a symlink, then a hard link, then a copy. |
8879 |
– |
ln -s $ac_rel_source $ac_dest 2>/dev/null || |
8880 |
– |
ln $srcdir/$ac_source $ac_dest 2>/dev/null || |
8881 |
– |
cp -p $srcdir/$ac_source $ac_dest || |
8882 |
– |
{ { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 |
8883 |
– |
echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} |
8884 |
– |
{ (exit 1); exit 1; }; } |
8885 |
– |
done |
8886 |
– |
_ACEOF |
15816 |
|
|
8888 |
– |
cat >>$CONFIG_STATUS <<\_ACEOF |
8889 |
– |
|
15817 |
|
{ (exit 0); exit 0; } |
15818 |
|
_ACEOF |
15819 |
|
chmod +x $CONFIG_STATUS |