1 |
|
#! /bin/sh |
2 |
|
# Guess values for system-dependent variables and create Makefiles. |
3 |
< |
# Generated by GNU Autoconf 2.59 for OOPSE 2.0. |
3 |
> |
# Generated by GNU Autoconf 2.62 for OOPSE 4.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, 2007, 2008 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 |
20 |
> |
# Pre-4.2 versions of Zsh do 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 |
+ |
as_nl=' |
43 |
+ |
' |
44 |
+ |
export as_nl |
45 |
+ |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
46 |
+ |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
47 |
+ |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
48 |
+ |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
49 |
+ |
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
50 |
+ |
as_echo='printf %s\n' |
51 |
+ |
as_echo_n='printf %s' |
52 |
+ |
else |
53 |
+ |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
54 |
+ |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
55 |
+ |
as_echo_n='/usr/ucb/echo -n' |
56 |
+ |
else |
57 |
+ |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 |
+ |
as_echo_n_body='eval |
59 |
+ |
arg=$1; |
60 |
+ |
case $arg in |
61 |
+ |
*"$as_nl"*) |
62 |
+ |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
63 |
+ |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
64 |
+ |
esac; |
65 |
+ |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
66 |
+ |
' |
67 |
+ |
export as_echo_n_body |
68 |
+ |
as_echo_n='sh -c $as_echo_n_body as_echo' |
69 |
+ |
fi |
70 |
+ |
export as_echo_body |
71 |
+ |
as_echo='sh -c $as_echo_body as_echo' |
72 |
+ |
fi |
73 |
+ |
|
74 |
+ |
# The user is always right. |
75 |
+ |
if test "${PATH_SEPARATOR+set}" != set; then |
76 |
+ |
PATH_SEPARATOR=: |
77 |
+ |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
78 |
+ |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
79 |
+ |
PATH_SEPARATOR=';' |
80 |
+ |
} |
81 |
+ |
fi |
82 |
+ |
|
83 |
|
# Support unset when possible. |
84 |
|
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
85 |
|
as_unset=unset |
88 |
|
fi |
89 |
|
|
90 |
|
|
91 |
+ |
# IFS |
92 |
+ |
# We need space, tab and new line, in precisely that order. Quoting is |
93 |
+ |
# there to prevent editors from complaining about space-tab. |
94 |
+ |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
95 |
+ |
# splitting by setting IFS to empty value.) |
96 |
+ |
IFS=" "" $as_nl" |
97 |
+ |
|
98 |
+ |
# Find who we are. Look in the path if we contain no directory separator. |
99 |
+ |
case $0 in |
100 |
+ |
*[\\/]* ) as_myself=$0 ;; |
101 |
+ |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
102 |
+ |
for as_dir in $PATH |
103 |
+ |
do |
104 |
+ |
IFS=$as_save_IFS |
105 |
+ |
test -z "$as_dir" && as_dir=. |
106 |
+ |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
107 |
+ |
done |
108 |
+ |
IFS=$as_save_IFS |
109 |
+ |
|
110 |
+ |
;; |
111 |
+ |
esac |
112 |
+ |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
113 |
+ |
# in which case we are not to be found in the path. |
114 |
+ |
if test "x$as_myself" = x; then |
115 |
+ |
as_myself=$0 |
116 |
+ |
fi |
117 |
+ |
if test ! -f "$as_myself"; then |
118 |
+ |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
119 |
+ |
{ (exit 1); exit 1; } |
120 |
+ |
fi |
121 |
+ |
|
122 |
|
# Work around bugs in pre-3.0 UWIN ksh. |
123 |
< |
$as_unset ENV MAIL MAILPATH |
123 |
> |
for as_var in ENV MAIL MAILPATH |
124 |
> |
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
125 |
> |
done |
126 |
|
PS1='$ ' |
127 |
|
PS2='> ' |
128 |
|
PS4='+ ' |
129 |
|
|
130 |
|
# NLS nuisances. |
131 |
< |
for as_var in \ |
132 |
< |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
133 |
< |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
134 |
< |
LC_TELEPHONE LC_TIME |
45 |
< |
do |
46 |
< |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
47 |
< |
eval $as_var=C; export $as_var |
48 |
< |
else |
49 |
< |
$as_unset $as_var |
50 |
< |
fi |
51 |
< |
done |
131 |
> |
LC_ALL=C |
132 |
> |
export LC_ALL |
133 |
> |
LANGUAGE=C |
134 |
> |
export LANGUAGE |
135 |
|
|
136 |
|
# Required to use basename. |
137 |
< |
if expr a : '\(a\)' >/dev/null 2>&1; then |
137 |
> |
if expr a : '\(a\)' >/dev/null 2>&1 && |
138 |
> |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
139 |
|
as_expr=expr |
140 |
|
else |
141 |
|
as_expr=false |
142 |
|
fi |
143 |
|
|
144 |
< |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
144 |
> |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
145 |
|
as_basename=basename |
146 |
|
else |
147 |
|
as_basename=false |
149 |
|
|
150 |
|
|
151 |
|
# Name of the executable. |
152 |
< |
as_me=`$as_basename "$0" || |
152 |
> |
as_me=`$as_basename -- "$0" || |
153 |
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
154 |
|
X"$0" : 'X\(//\)$' \| \ |
155 |
< |
X"$0" : 'X\(/\)$' \| \ |
156 |
< |
. : '\(.\)' 2>/dev/null || |
157 |
< |
echo X/"$0" | |
158 |
< |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
159 |
< |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
160 |
< |
/^X\/\(\/\).*/{ s//\1/; q; } |
161 |
< |
s/.*/./; q'` |
155 |
> |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
156 |
> |
$as_echo X/"$0" | |
157 |
> |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
158 |
> |
s//\1/ |
159 |
> |
q |
160 |
> |
} |
161 |
> |
/^X\/\(\/\/\)$/{ |
162 |
> |
s//\1/ |
163 |
> |
q |
164 |
> |
} |
165 |
> |
/^X\/\(\/\).*/{ |
166 |
> |
s//\1/ |
167 |
> |
q |
168 |
> |
} |
169 |
> |
s/.*/./; q'` |
170 |
|
|
171 |
+ |
# CDPATH. |
172 |
+ |
$as_unset CDPATH |
173 |
|
|
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 |
174 |
|
|
175 |
< |
# The user is always right. |
176 |
< |
if test "${PATH_SEPARATOR+set}" != set; then |
177 |
< |
echo "#! /bin/sh" >conf$$.sh |
178 |
< |
echo "exit 0" >>conf$$.sh |
179 |
< |
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 |
175 |
> |
if test "x$CONFIG_SHELL" = x; then |
176 |
> |
if (eval ":") 2>/dev/null; then |
177 |
> |
as_have_required=yes |
178 |
> |
else |
179 |
> |
as_have_required=no |
180 |
|
fi |
181 |
|
|
182 |
+ |
if test $as_have_required = yes && (eval ": |
183 |
+ |
(as_func_return () { |
184 |
+ |
(exit \$1) |
185 |
+ |
} |
186 |
+ |
as_func_success () { |
187 |
+ |
as_func_return 0 |
188 |
+ |
} |
189 |
+ |
as_func_failure () { |
190 |
+ |
as_func_return 1 |
191 |
+ |
} |
192 |
+ |
as_func_ret_success () { |
193 |
+ |
return 0 |
194 |
+ |
} |
195 |
+ |
as_func_ret_failure () { |
196 |
+ |
return 1 |
197 |
+ |
} |
198 |
|
|
199 |
< |
as_lineno_1=$LINENO |
200 |
< |
as_lineno_2=$LINENO |
201 |
< |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
202 |
< |
test "x$as_lineno_1" != "x$as_lineno_2" && |
203 |
< |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
204 |
< |
# Find who we are. Look in the path if we contain no path at all |
205 |
< |
# 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 |
199 |
> |
exitcode=0 |
200 |
> |
if as_func_success; then |
201 |
> |
: |
202 |
> |
else |
203 |
> |
exitcode=1 |
204 |
> |
echo as_func_success failed. |
205 |
> |
fi |
206 |
|
|
207 |
< |
;; |
208 |
< |
esac |
209 |
< |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
210 |
< |
# in which case we are not to be found in the path. |
211 |
< |
if test "x$as_myself" = x; then |
212 |
< |
as_myself=$0 |
213 |
< |
fi |
214 |
< |
if test ! -f "$as_myself"; then |
215 |
< |
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
216 |
< |
{ (exit 1); exit 1; }; } |
217 |
< |
fi |
218 |
< |
case $CONFIG_SHELL in |
219 |
< |
'') |
207 |
> |
if as_func_failure; then |
208 |
> |
exitcode=1 |
209 |
> |
echo as_func_failure succeeded. |
210 |
> |
fi |
211 |
> |
|
212 |
> |
if as_func_ret_success; then |
213 |
> |
: |
214 |
> |
else |
215 |
> |
exitcode=1 |
216 |
> |
echo as_func_ret_success failed. |
217 |
> |
fi |
218 |
> |
|
219 |
> |
if as_func_ret_failure; then |
220 |
> |
exitcode=1 |
221 |
> |
echo as_func_ret_failure succeeded. |
222 |
> |
fi |
223 |
> |
|
224 |
> |
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
225 |
> |
: |
226 |
> |
else |
227 |
> |
exitcode=1 |
228 |
> |
echo positional parameters were not saved. |
229 |
> |
fi |
230 |
> |
|
231 |
> |
test \$exitcode = 0) || { (exit 1); exit 1; } |
232 |
> |
|
233 |
> |
( |
234 |
> |
as_lineno_1=\$LINENO |
235 |
> |
as_lineno_2=\$LINENO |
236 |
> |
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
237 |
> |
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
238 |
> |
") 2> /dev/null; then |
239 |
> |
: |
240 |
> |
else |
241 |
> |
as_candidate_shells= |
242 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
243 |
|
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
244 |
|
do |
245 |
|
IFS=$as_save_IFS |
246 |
|
test -z "$as_dir" && as_dir=. |
247 |
< |
for as_base in sh bash ksh sh5; do |
138 |
< |
case $as_dir in |
247 |
> |
case $as_dir in |
248 |
|
/*) |
249 |
< |
if ("$as_dir/$as_base" -c ' |
249 |
> |
for as_base in sh bash ksh sh5; do |
250 |
> |
as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
251 |
> |
done;; |
252 |
> |
esac |
253 |
> |
done |
254 |
> |
IFS=$as_save_IFS |
255 |
> |
|
256 |
> |
|
257 |
> |
for as_shell in $as_candidate_shells $SHELL; do |
258 |
> |
# Try only shells that exist, to save several forks. |
259 |
> |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
260 |
> |
{ ("$as_shell") 2> /dev/null <<\_ASEOF |
261 |
> |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
262 |
> |
emulate sh |
263 |
> |
NULLCMD=: |
264 |
> |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
265 |
> |
# is contrary to our usage. Disable this feature. |
266 |
> |
alias -g '${1+"$@"}'='"$@"' |
267 |
> |
setopt NO_GLOB_SUBST |
268 |
> |
else |
269 |
> |
case `(set -o) 2>/dev/null` in |
270 |
> |
*posix*) set -o posix ;; |
271 |
> |
esac |
272 |
> |
|
273 |
> |
fi |
274 |
> |
|
275 |
> |
|
276 |
> |
: |
277 |
> |
_ASEOF |
278 |
> |
}; then |
279 |
> |
CONFIG_SHELL=$as_shell |
280 |
> |
as_have_required=yes |
281 |
> |
if { "$as_shell" 2> /dev/null <<\_ASEOF |
282 |
> |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
283 |
> |
emulate sh |
284 |
> |
NULLCMD=: |
285 |
> |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
286 |
> |
# is contrary to our usage. Disable this feature. |
287 |
> |
alias -g '${1+"$@"}'='"$@"' |
288 |
> |
setopt NO_GLOB_SUBST |
289 |
> |
else |
290 |
> |
case `(set -o) 2>/dev/null` in |
291 |
> |
*posix*) set -o posix ;; |
292 |
> |
esac |
293 |
> |
|
294 |
> |
fi |
295 |
> |
|
296 |
> |
|
297 |
> |
: |
298 |
> |
(as_func_return () { |
299 |
> |
(exit $1) |
300 |
> |
} |
301 |
> |
as_func_success () { |
302 |
> |
as_func_return 0 |
303 |
> |
} |
304 |
> |
as_func_failure () { |
305 |
> |
as_func_return 1 |
306 |
> |
} |
307 |
> |
as_func_ret_success () { |
308 |
> |
return 0 |
309 |
> |
} |
310 |
> |
as_func_ret_failure () { |
311 |
> |
return 1 |
312 |
> |
} |
313 |
> |
|
314 |
> |
exitcode=0 |
315 |
> |
if as_func_success; then |
316 |
> |
: |
317 |
> |
else |
318 |
> |
exitcode=1 |
319 |
> |
echo as_func_success failed. |
320 |
> |
fi |
321 |
> |
|
322 |
> |
if as_func_failure; then |
323 |
> |
exitcode=1 |
324 |
> |
echo as_func_failure succeeded. |
325 |
> |
fi |
326 |
> |
|
327 |
> |
if as_func_ret_success; then |
328 |
> |
: |
329 |
> |
else |
330 |
> |
exitcode=1 |
331 |
> |
echo as_func_ret_success failed. |
332 |
> |
fi |
333 |
> |
|
334 |
> |
if as_func_ret_failure; then |
335 |
> |
exitcode=1 |
336 |
> |
echo as_func_ret_failure succeeded. |
337 |
> |
fi |
338 |
> |
|
339 |
> |
if ( set x; as_func_ret_success y && test x = "$1" ); then |
340 |
> |
: |
341 |
> |
else |
342 |
> |
exitcode=1 |
343 |
> |
echo positional parameters were not saved. |
344 |
> |
fi |
345 |
> |
|
346 |
> |
test $exitcode = 0) || { (exit 1); exit 1; } |
347 |
> |
|
348 |
> |
( |
349 |
|
as_lineno_1=$LINENO |
350 |
|
as_lineno_2=$LINENO |
143 |
– |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
351 |
|
test "x$as_lineno_1" != "x$as_lineno_2" && |
352 |
< |
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 |
352 |
> |
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
353 |
|
|
354 |
+ |
_ASEOF |
355 |
+ |
}; then |
356 |
+ |
break |
357 |
+ |
fi |
358 |
+ |
|
359 |
+ |
fi |
360 |
+ |
|
361 |
+ |
done |
362 |
+ |
|
363 |
+ |
if test "x$CONFIG_SHELL" != x; then |
364 |
+ |
for as_var in BASH_ENV ENV |
365 |
+ |
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
366 |
+ |
done |
367 |
+ |
export CONFIG_SHELL |
368 |
+ |
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
369 |
+ |
fi |
370 |
+ |
|
371 |
+ |
|
372 |
+ |
if test $as_have_required = no; then |
373 |
+ |
echo This script requires a shell more modern than all the |
374 |
+ |
echo shells that I found on your system. Please install a |
375 |
+ |
echo modern shell, or manually run the script under such a |
376 |
+ |
echo shell if you do have one. |
377 |
+ |
{ (exit 1); exit 1; } |
378 |
+ |
fi |
379 |
+ |
|
380 |
+ |
|
381 |
+ |
fi |
382 |
+ |
|
383 |
+ |
fi |
384 |
+ |
|
385 |
+ |
|
386 |
+ |
|
387 |
+ |
(eval "as_func_return () { |
388 |
+ |
(exit \$1) |
389 |
+ |
} |
390 |
+ |
as_func_success () { |
391 |
+ |
as_func_return 0 |
392 |
+ |
} |
393 |
+ |
as_func_failure () { |
394 |
+ |
as_func_return 1 |
395 |
+ |
} |
396 |
+ |
as_func_ret_success () { |
397 |
+ |
return 0 |
398 |
+ |
} |
399 |
+ |
as_func_ret_failure () { |
400 |
+ |
return 1 |
401 |
+ |
} |
402 |
+ |
|
403 |
+ |
exitcode=0 |
404 |
+ |
if as_func_success; then |
405 |
+ |
: |
406 |
+ |
else |
407 |
+ |
exitcode=1 |
408 |
+ |
echo as_func_success failed. |
409 |
+ |
fi |
410 |
+ |
|
411 |
+ |
if as_func_failure; then |
412 |
+ |
exitcode=1 |
413 |
+ |
echo as_func_failure succeeded. |
414 |
+ |
fi |
415 |
+ |
|
416 |
+ |
if as_func_ret_success; then |
417 |
+ |
: |
418 |
+ |
else |
419 |
+ |
exitcode=1 |
420 |
+ |
echo as_func_ret_success failed. |
421 |
+ |
fi |
422 |
+ |
|
423 |
+ |
if as_func_ret_failure; then |
424 |
+ |
exitcode=1 |
425 |
+ |
echo as_func_ret_failure succeeded. |
426 |
+ |
fi |
427 |
+ |
|
428 |
+ |
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
429 |
+ |
: |
430 |
+ |
else |
431 |
+ |
exitcode=1 |
432 |
+ |
echo positional parameters were not saved. |
433 |
+ |
fi |
434 |
+ |
|
435 |
+ |
test \$exitcode = 0") || { |
436 |
+ |
echo No shell found that supports shell functions. |
437 |
+ |
echo Please tell bug-autoconf@gnu.org about your system, |
438 |
+ |
echo including any error possibly output before this message. |
439 |
+ |
echo This can help us improve future autoconf versions. |
440 |
+ |
echo Configuration will now proceed without shell functions. |
441 |
+ |
} |
442 |
+ |
|
443 |
+ |
|
444 |
+ |
|
445 |
+ |
as_lineno_1=$LINENO |
446 |
+ |
as_lineno_2=$LINENO |
447 |
+ |
test "x$as_lineno_1" != "x$as_lineno_2" && |
448 |
+ |
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
449 |
+ |
|
450 |
|
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
451 |
|
# uniformly replaced by the line number. The first 'sed' inserts a |
452 |
< |
# line-number line before each line; the second 'sed' does the real |
453 |
< |
# work. The second script uses 'N' to pair each line-number line |
454 |
< |
# with the numbered line, and appends trailing '-' during |
455 |
< |
# substitution so that $LINENO is not a special case at line end. |
452 |
> |
# line-number line after each line using $LINENO; the second 'sed' |
453 |
> |
# does the real work. The second script uses 'N' to pair each |
454 |
> |
# line-number line with the line containing $LINENO, and appends |
455 |
> |
# trailing '-' during substitution so that $LINENO is not a special |
456 |
> |
# case at line end. |
457 |
|
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
458 |
< |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
459 |
< |
sed '=' <$as_myself | |
458 |
> |
# scripts with optimization help from Paolo Bonzini. Blame Lee |
459 |
> |
# E. McMahon (1931-1989) for sed's syntax. :-) |
460 |
> |
sed -n ' |
461 |
> |
p |
462 |
> |
/[$]LINENO/= |
463 |
> |
' <$as_myself | |
464 |
|
sed ' |
465 |
+ |
s/[$]LINENO.*/&-/ |
466 |
+ |
t lineno |
467 |
+ |
b |
468 |
+ |
:lineno |
469 |
|
N |
470 |
< |
s,$,-, |
471 |
< |
: loop |
171 |
< |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
470 |
> |
:loop |
471 |
> |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
472 |
|
t loop |
473 |
< |
s,-$,, |
174 |
< |
s,^['$as_cr_digits']*\n,, |
473 |
> |
s/-\n.*// |
474 |
|
' >$as_me.lineno && |
475 |
< |
chmod +x $as_me.lineno || |
476 |
< |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
475 |
> |
chmod +x "$as_me.lineno" || |
476 |
> |
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
477 |
|
{ (exit 1); exit 1; }; } |
478 |
|
|
479 |
|
# Don't try to exec as it changes $[0], causing all sort of problems |
480 |
|
# (the dirname of $[0] is not the place where we might find the |
481 |
< |
# original and so on. Autoconf is especially sensible to this). |
482 |
< |
. ./$as_me.lineno |
481 |
> |
# original and so on. Autoconf is especially sensitive to this). |
482 |
> |
. "./$as_me.lineno" |
483 |
|
# Exit status is that of the last command. |
484 |
|
exit |
485 |
|
} |
486 |
|
|
487 |
|
|
488 |
< |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
489 |
< |
*c*,-n*) ECHO_N= ECHO_C=' |
490 |
< |
' ECHO_T=' ' ;; |
491 |
< |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
492 |
< |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
194 |
< |
esac |
488 |
> |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
489 |
> |
as_dirname=dirname |
490 |
> |
else |
491 |
> |
as_dirname=false |
492 |
> |
fi |
493 |
|
|
494 |
< |
if expr a : '\(a\)' >/dev/null 2>&1; then |
494 |
> |
ECHO_C= ECHO_N= ECHO_T= |
495 |
> |
case `echo -n x` in |
496 |
> |
-n*) |
497 |
> |
case `echo 'x\c'` in |
498 |
> |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
499 |
> |
*) ECHO_C='\c';; |
500 |
> |
esac;; |
501 |
> |
*) |
502 |
> |
ECHO_N='-n';; |
503 |
> |
esac |
504 |
> |
if expr a : '\(a\)' >/dev/null 2>&1 && |
505 |
> |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
506 |
|
as_expr=expr |
507 |
|
else |
508 |
|
as_expr=false |
509 |
|
fi |
510 |
|
|
511 |
|
rm -f conf$$ conf$$.exe conf$$.file |
512 |
< |
echo >conf$$.file |
513 |
< |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
514 |
< |
# We could just check for DJGPP; but this test a) works b) is more generic |
515 |
< |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
516 |
< |
if test -f conf$$.exe; then |
517 |
< |
# Don't use ln at all; we don't have any links |
518 |
< |
as_ln_s='cp -p' |
519 |
< |
else |
512 |
> |
if test -d conf$$.dir; then |
513 |
> |
rm -f conf$$.dir/conf$$.file |
514 |
> |
else |
515 |
> |
rm -f conf$$.dir |
516 |
> |
mkdir conf$$.dir 2>/dev/null |
517 |
> |
fi |
518 |
> |
if (echo >conf$$.file) 2>/dev/null; then |
519 |
> |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
520 |
|
as_ln_s='ln -s' |
521 |
+ |
# ... but there are two gotchas: |
522 |
+ |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
523 |
+ |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
524 |
+ |
# In both cases, we have to default to `cp -p'. |
525 |
+ |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
526 |
+ |
as_ln_s='cp -p' |
527 |
+ |
elif ln conf$$.file conf$$ 2>/dev/null; then |
528 |
+ |
as_ln_s=ln |
529 |
+ |
else |
530 |
+ |
as_ln_s='cp -p' |
531 |
|
fi |
213 |
– |
elif ln conf$$.file conf$$ 2>/dev/null; then |
214 |
– |
as_ln_s=ln |
532 |
|
else |
533 |
|
as_ln_s='cp -p' |
534 |
|
fi |
535 |
< |
rm -f conf$$ conf$$.exe conf$$.file |
535 |
> |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
536 |
> |
rmdir conf$$.dir 2>/dev/null |
537 |
|
|
538 |
|
if mkdir -p . 2>/dev/null; then |
539 |
|
as_mkdir_p=: |
542 |
|
as_mkdir_p=false |
543 |
|
fi |
544 |
|
|
545 |
< |
as_executable_p="test -f" |
545 |
> |
if test -x / >/dev/null 2>&1; then |
546 |
> |
as_test_x='test -x' |
547 |
> |
else |
548 |
> |
if ls -dL / >/dev/null 2>&1; then |
549 |
> |
as_ls_L_option=L |
550 |
> |
else |
551 |
> |
as_ls_L_option= |
552 |
> |
fi |
553 |
> |
as_test_x=' |
554 |
> |
eval sh -c '\'' |
555 |
> |
if test -d "$1"; then |
556 |
> |
test -d "$1/."; |
557 |
> |
else |
558 |
> |
case $1 in |
559 |
> |
-*)set "./$1";; |
560 |
> |
esac; |
561 |
> |
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
562 |
> |
???[sx]*):;;*)false;;esac;fi |
563 |
> |
'\'' sh |
564 |
> |
' |
565 |
> |
fi |
566 |
> |
as_executable_p=$as_test_x |
567 |
|
|
568 |
|
# Sed expression to map a string onto a valid CPP name. |
569 |
|
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
572 |
|
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
573 |
|
|
574 |
|
|
236 |
– |
# IFS |
237 |
– |
# We need space, tab and new line, in precisely that order. |
238 |
– |
as_nl=' |
239 |
– |
' |
240 |
– |
IFS=" $as_nl" |
575 |
|
|
576 |
< |
# CDPATH. |
243 |
< |
$as_unset CDPATH |
576 |
> |
exec 7<&0 </dev/null 6>&1 |
577 |
|
|
245 |
– |
|
578 |
|
# Name of the host. |
579 |
|
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
580 |
|
# so uname gets run too. |
581 |
|
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
582 |
|
|
251 |
– |
exec 6>&1 |
252 |
– |
|
583 |
|
# |
584 |
|
# Initializations. |
585 |
|
# |
586 |
|
ac_default_prefix=/usr/local |
587 |
+ |
ac_clean_files= |
588 |
|
ac_config_libobj_dir=. |
589 |
+ |
LIBOBJS= |
590 |
|
cross_compiling=no |
591 |
|
subdirs= |
592 |
|
MFLAGS= |
593 |
|
MAKEFLAGS= |
594 |
|
SHELL=${CONFIG_SHELL-/bin/sh} |
595 |
|
|
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 |
– |
|
596 |
|
# Identity of this package. |
597 |
|
PACKAGE_NAME='OOPSE' |
598 |
|
PACKAGE_TARNAME='oopse' |
599 |
< |
PACKAGE_VERSION='2.0' |
600 |
< |
PACKAGE_STRING='OOPSE 2.0' |
599 |
> |
PACKAGE_VERSION='4.0' |
600 |
> |
PACKAGE_STRING='OOPSE 4.0' |
601 |
|
PACKAGE_BUGREPORT='gezelter@nd.edu' |
602 |
|
|
603 |
|
ac_unique_file="src/applications/oopse/oopse.cpp" |
605 |
|
# Factoring default headers for most tests. |
606 |
|
ac_includes_default="\ |
607 |
|
#include <stdio.h> |
608 |
< |
#if HAVE_SYS_TYPES_H |
608 |
> |
#ifdef HAVE_SYS_TYPES_H |
609 |
|
# include <sys/types.h> |
610 |
|
#endif |
611 |
< |
#if HAVE_SYS_STAT_H |
611 |
> |
#ifdef HAVE_SYS_STAT_H |
612 |
|
# include <sys/stat.h> |
613 |
|
#endif |
614 |
< |
#if STDC_HEADERS |
614 |
> |
#ifdef STDC_HEADERS |
615 |
|
# include <stdlib.h> |
616 |
|
# include <stddef.h> |
617 |
|
#else |
618 |
< |
# if HAVE_STDLIB_H |
618 |
> |
# ifdef HAVE_STDLIB_H |
619 |
|
# include <stdlib.h> |
620 |
|
# endif |
621 |
|
#endif |
622 |
< |
#if HAVE_STRING_H |
623 |
< |
# if !STDC_HEADERS && HAVE_MEMORY_H |
622 |
> |
#ifdef HAVE_STRING_H |
623 |
> |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
624 |
|
# include <memory.h> |
625 |
|
# endif |
626 |
|
# include <string.h> |
627 |
|
#endif |
628 |
< |
#if HAVE_STRINGS_H |
628 |
> |
#ifdef HAVE_STRINGS_H |
629 |
|
# include <strings.h> |
630 |
|
#endif |
631 |
< |
#if HAVE_INTTYPES_H |
631 |
> |
#ifdef HAVE_INTTYPES_H |
632 |
|
# include <inttypes.h> |
306 |
– |
#else |
307 |
– |
# if HAVE_STDINT_H |
308 |
– |
# include <stdint.h> |
309 |
– |
# endif |
633 |
|
#endif |
634 |
< |
#if HAVE_UNISTD_H |
634 |
> |
#ifdef HAVE_STDINT_H |
635 |
> |
# include <stdint.h> |
636 |
> |
#endif |
637 |
> |
#ifdef HAVE_UNISTD_H |
638 |
|
# include <unistd.h> |
639 |
|
#endif" |
640 |
|
|
641 |
< |
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os PROGNAME debug CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC FC FCFLAGS ac_ct_FC CPP EGREP LN_S SET_MAKE RANLIB ac_ct_RANLIB PERLINTERP PERL_SHEBANG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR PS FCFLAGS_F90 FCFLAGS_SRCEXT PREPDEFFLAG FCLIBS FC_FUNC FC_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC F90_MODULE_NAMES LIBOBJS POW_LIB CXXCPP __func__ MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI USE_CGAL CGAL_INC_DIR CGAL_LIB_DIR CGAL_RLIB_DIR CGAL_DEFINES CGAL_CXXFLAGS CGAL_LIBS DOXYGEN DOT DOC enable_dot enable_html_docs enable_latex_docs BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS LTLIBOBJS' |
641 |
> |
ac_subst_vars='SHELL |
642 |
> |
PATH_SEPARATOR |
643 |
> |
PACKAGE_NAME |
644 |
> |
PACKAGE_TARNAME |
645 |
> |
PACKAGE_VERSION |
646 |
> |
PACKAGE_STRING |
647 |
> |
PACKAGE_BUGREPORT |
648 |
> |
exec_prefix |
649 |
> |
prefix |
650 |
> |
program_transform_name |
651 |
> |
bindir |
652 |
> |
sbindir |
653 |
> |
libexecdir |
654 |
> |
datarootdir |
655 |
> |
datadir |
656 |
> |
sysconfdir |
657 |
> |
sharedstatedir |
658 |
> |
localstatedir |
659 |
> |
includedir |
660 |
> |
oldincludedir |
661 |
> |
docdir |
662 |
> |
infodir |
663 |
> |
htmldir |
664 |
> |
dvidir |
665 |
> |
pdfdir |
666 |
> |
psdir |
667 |
> |
libdir |
668 |
> |
localedir |
669 |
> |
mandir |
670 |
> |
DEFS |
671 |
> |
ECHO_C |
672 |
> |
ECHO_N |
673 |
> |
ECHO_T |
674 |
> |
LIBS |
675 |
> |
build_alias |
676 |
> |
host_alias |
677 |
> |
target_alias |
678 |
> |
build |
679 |
> |
build_cpu |
680 |
> |
build_vendor |
681 |
> |
build_os |
682 |
> |
host |
683 |
> |
host_cpu |
684 |
> |
host_vendor |
685 |
> |
host_os |
686 |
> |
PROGNAME |
687 |
> |
debug |
688 |
> |
USE_SINGLE_PRECISION |
689 |
> |
ac_cc_set |
690 |
> |
ac_cc_path |
691 |
> |
ac_cxx_set |
692 |
> |
ac_cxx_path |
693 |
> |
ac_fc_set |
694 |
> |
ac_fc_path |
695 |
> |
acx_mpi_mpicc |
696 |
> |
acx_mpi_mpicc_path |
697 |
> |
acx_mpi_mpif90 |
698 |
> |
acx_mpi_mpif90_path |
699 |
> |
acx_mpi_mpicxx |
700 |
> |
acx_mpi_mpicxx_path |
701 |
> |
MPI_CPPFLAGS |
702 |
> |
MPI_LIBS |
703 |
> |
MPI90_LIBS |
704 |
> |
USE_MPI |
705 |
> |
CXX |
706 |
> |
CXXFLAGS |
707 |
> |
LDFLAGS |
708 |
> |
CPPFLAGS |
709 |
> |
ac_ct_CXX |
710 |
> |
EXEEXT |
711 |
> |
OBJEXT |
712 |
> |
CC |
713 |
> |
CFLAGS |
714 |
> |
ac_ct_CC |
715 |
> |
FC |
716 |
> |
FCFLAGS |
717 |
> |
ac_ct_FC |
718 |
> |
CPP |
719 |
> |
GREP |
720 |
> |
EGREP |
721 |
> |
LN_S |
722 |
> |
SET_MAKE |
723 |
> |
RANLIB |
724 |
> |
PERLINTERP |
725 |
> |
PERL_SHEBANG |
726 |
> |
INSTALL_PROGRAM |
727 |
> |
INSTALL_SCRIPT |
728 |
> |
INSTALL_DATA |
729 |
> |
AR |
730 |
> |
PS |
731 |
> |
FCFLAGS_F90 |
732 |
> |
FCFLAGS_SRCEXT |
733 |
> |
PREPDEFFLAG |
734 |
> |
FCLIBS |
735 |
> |
FC_FUNC |
736 |
> |
FC_FUNC_ |
737 |
> |
MOD |
738 |
> |
F90_WORK_FILES_ARG |
739 |
> |
MODDIRFLAG |
740 |
> |
F90MODINCSPEC |
741 |
> |
F90_MODULE_NAMES |
742 |
> |
ZLIB_INC_DIR |
743 |
> |
ZLIB_LIB_DIR |
744 |
> |
ZLIB |
745 |
> |
FFTW_INC_DIR |
746 |
> |
FFTW_LIB_DIR |
747 |
> |
FFTW_LIBS |
748 |
> |
QHULL_INC_DIR |
749 |
> |
QHULL_LIB_DIR |
750 |
> |
QHULL |
751 |
> |
USE_QHULL |
752 |
> |
CXXCPP |
753 |
> |
OPENBABEL_INC_DIR |
754 |
> |
OPENBABEL_LIB_DIR |
755 |
> |
OPENBABEL_LIB |
756 |
> |
USE_OPENBABEL |
757 |
> |
LIBOBJS |
758 |
> |
POW_LIB |
759 |
> |
CGAL_MAKEFILE |
760 |
> |
CGAL_CXXFLAGS |
761 |
> |
CGAL_CPPFLAGS |
762 |
> |
CGAL_LDFLAGS |
763 |
> |
CGAL_LIBS |
764 |
> |
USE_CGAL |
765 |
> |
DOXYGEN |
766 |
> |
DOT |
767 |
> |
DOC |
768 |
> |
enable_dot |
769 |
> |
enable_html_docs |
770 |
> |
enable_latex_docs |
771 |
> |
BATEXT |
772 |
> |
MKINSTALLDIRS |
773 |
> |
OOPSE |
774 |
> |
OOPSE_HOME |
775 |
> |
SUBDIRS |
776 |
> |
LTLIBOBJS' |
777 |
|
ac_subst_files='' |
778 |
+ |
ac_user_opts=' |
779 |
+ |
enable_option_checking |
780 |
+ |
enable_oopse_home |
781 |
+ |
enable_debug |
782 |
+ |
enable_single |
783 |
+ |
enable_float |
784 |
+ |
with_mpi |
785 |
+ |
with_perl_shebang |
786 |
+ |
with_zlib |
787 |
+ |
with_fftw |
788 |
+ |
with_qhull |
789 |
+ |
with_openbabel |
790 |
+ |
with_cgalmakefile |
791 |
+ |
enable_doxygen |
792 |
+ |
enable_dot |
793 |
+ |
enable_html_docs |
794 |
+ |
enable_latex_docs |
795 |
+ |
' |
796 |
+ |
ac_precious_vars='build_alias |
797 |
+ |
host_alias |
798 |
+ |
target_alias |
799 |
+ |
CXX |
800 |
+ |
CXXFLAGS |
801 |
+ |
LDFLAGS |
802 |
+ |
LIBS |
803 |
+ |
CPPFLAGS |
804 |
+ |
CCC |
805 |
+ |
CC |
806 |
+ |
CFLAGS |
807 |
+ |
FC |
808 |
+ |
FCFLAGS |
809 |
+ |
CPP |
810 |
+ |
CXXCPP' |
811 |
|
|
812 |
+ |
|
813 |
|
# Initialize some variables set by options. |
814 |
|
ac_init_help= |
815 |
|
ac_init_version=false |
816 |
+ |
ac_unrecognized_opts= |
817 |
+ |
ac_unrecognized_sep= |
818 |
|
# The variables have the same names as the options, with |
819 |
|
# dashes changed to underlines. |
820 |
|
cache_file=/dev/null |
837 |
|
# and all the variables that are supposed to be based on exec_prefix |
838 |
|
# by default will actually change. |
839 |
|
# Use braces instead of parens because sh, perl, etc. also accept them. |
840 |
+ |
# (The list follows the same order as the GNU Coding Standards.) |
841 |
|
bindir='${exec_prefix}/bin' |
842 |
|
sbindir='${exec_prefix}/sbin' |
843 |
|
libexecdir='${exec_prefix}/libexec' |
844 |
< |
datadir='${prefix}/share' |
844 |
> |
datarootdir='${prefix}/share' |
845 |
> |
datadir='${datarootdir}' |
846 |
|
sysconfdir='${prefix}/etc' |
847 |
|
sharedstatedir='${prefix}/com' |
848 |
|
localstatedir='${prefix}/var' |
350 |
– |
libdir='${exec_prefix}/lib' |
849 |
|
includedir='${prefix}/include' |
850 |
|
oldincludedir='/usr/include' |
851 |
< |
infodir='${prefix}/info' |
852 |
< |
mandir='${prefix}/man' |
851 |
> |
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
852 |
> |
infodir='${datarootdir}/info' |
853 |
> |
htmldir='${docdir}' |
854 |
> |
dvidir='${docdir}' |
855 |
> |
pdfdir='${docdir}' |
856 |
> |
psdir='${docdir}' |
857 |
> |
libdir='${exec_prefix}/lib' |
858 |
> |
localedir='${datarootdir}/locale' |
859 |
> |
mandir='${datarootdir}/man' |
860 |
|
|
861 |
|
ac_prev= |
862 |
+ |
ac_dashdash= |
863 |
|
for ac_option |
864 |
|
do |
865 |
|
# If the previous option needs an argument, assign it. |
866 |
|
if test -n "$ac_prev"; then |
867 |
< |
eval "$ac_prev=\$ac_option" |
867 |
> |
eval $ac_prev=\$ac_option |
868 |
|
ac_prev= |
869 |
|
continue |
870 |
|
fi |
871 |
|
|
872 |
< |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
872 |
> |
case $ac_option in |
873 |
> |
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
874 |
> |
*) ac_optarg=yes ;; |
875 |
> |
esac |
876 |
|
|
877 |
|
# Accept the important Cygnus configure options, so we can diagnose typos. |
878 |
|
|
879 |
< |
case $ac_option in |
879 |
> |
case $ac_dashdash$ac_option in |
880 |
> |
--) |
881 |
> |
ac_dashdash=yes ;; |
882 |
|
|
883 |
|
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
884 |
|
ac_prev=bindir ;; |
900 |
|
--config-cache | -C) |
901 |
|
cache_file=config.cache ;; |
902 |
|
|
903 |
< |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
903 |
> |
-datadir | --datadir | --datadi | --datad) |
904 |
|
ac_prev=datadir ;; |
905 |
< |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
395 |
< |
| --da=*) |
905 |
> |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
906 |
|
datadir=$ac_optarg ;; |
907 |
|
|
908 |
+ |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
909 |
+ |
| --dataroo | --dataro | --datar) |
910 |
+ |
ac_prev=datarootdir ;; |
911 |
+ |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
912 |
+ |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
913 |
+ |
datarootdir=$ac_optarg ;; |
914 |
+ |
|
915 |
|
-disable-* | --disable-*) |
916 |
< |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
916 |
> |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
917 |
|
# Reject names that are not valid shell variable names. |
918 |
< |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
919 |
< |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
918 |
> |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
919 |
> |
{ $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
920 |
|
{ (exit 1); exit 1; }; } |
921 |
< |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
922 |
< |
eval "enable_$ac_feature=no" ;; |
921 |
> |
ac_useropt_orig=$ac_useropt |
922 |
> |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
923 |
> |
case $ac_user_opts in |
924 |
> |
*" |
925 |
> |
"enable_$ac_useropt" |
926 |
> |
"*) ;; |
927 |
> |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
928 |
> |
ac_unrecognized_sep=', ';; |
929 |
> |
esac |
930 |
> |
eval enable_$ac_useropt=no ;; |
931 |
|
|
932 |
< |
-enable-* | --enable-*) |
933 |
< |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
932 |
> |
-docdir | --docdir | --docdi | --doc | --do) |
933 |
> |
ac_prev=docdir ;; |
934 |
> |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
935 |
> |
docdir=$ac_optarg ;; |
936 |
> |
|
937 |
> |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
938 |
> |
ac_prev=dvidir ;; |
939 |
> |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
940 |
> |
dvidir=$ac_optarg ;; |
941 |
> |
|
942 |
> |
-enable-* | --enable-*) |
943 |
> |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
944 |
|
# Reject names that are not valid shell variable names. |
945 |
< |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
946 |
< |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
945 |
> |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
946 |
> |
{ $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
947 |
|
{ (exit 1); exit 1; }; } |
948 |
< |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
949 |
< |
case $ac_option in |
950 |
< |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
951 |
< |
*) ac_optarg=yes ;; |
948 |
> |
ac_useropt_orig=$ac_useropt |
949 |
> |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
950 |
> |
case $ac_user_opts in |
951 |
> |
*" |
952 |
> |
"enable_$ac_useropt" |
953 |
> |
"*) ;; |
954 |
> |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
955 |
> |
ac_unrecognized_sep=', ';; |
956 |
|
esac |
957 |
< |
eval "enable_$ac_feature='$ac_optarg'" ;; |
957 |
> |
eval enable_$ac_useropt=\$ac_optarg ;; |
958 |
|
|
959 |
|
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
960 |
|
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
981 |
|
-host=* | --host=* | --hos=* | --ho=*) |
982 |
|
host_alias=$ac_optarg ;; |
983 |
|
|
984 |
+ |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
985 |
+ |
ac_prev=htmldir ;; |
986 |
+ |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
987 |
+ |
| --ht=*) |
988 |
+ |
htmldir=$ac_optarg ;; |
989 |
+ |
|
990 |
|
-includedir | --includedir | --includedi | --included | --include \ |
991 |
|
| --includ | --inclu | --incl | --inc) |
992 |
|
ac_prev=includedir ;; |
1011 |
|
| --libexe=* | --libex=* | --libe=*) |
1012 |
|
libexecdir=$ac_optarg ;; |
1013 |
|
|
1014 |
+ |
-localedir | --localedir | --localedi | --localed | --locale) |
1015 |
+ |
ac_prev=localedir ;; |
1016 |
+ |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
1017 |
+ |
localedir=$ac_optarg ;; |
1018 |
+ |
|
1019 |
|
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
1020 |
< |
| --localstate | --localstat | --localsta | --localst \ |
471 |
< |
| --locals | --local | --loca | --loc | --lo) |
1020 |
> |
| --localstate | --localstat | --localsta | --localst | --locals) |
1021 |
|
ac_prev=localstatedir ;; |
1022 |
|
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
1023 |
< |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
475 |
< |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
1023 |
> |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1024 |
|
localstatedir=$ac_optarg ;; |
1025 |
|
|
1026 |
|
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1085 |
|
| --progr-tra=* | --program-tr=* | --program-t=*) |
1086 |
|
program_transform_name=$ac_optarg ;; |
1087 |
|
|
1088 |
+ |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1089 |
+ |
ac_prev=pdfdir ;; |
1090 |
+ |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1091 |
+ |
pdfdir=$ac_optarg ;; |
1092 |
+ |
|
1093 |
+ |
-psdir | --psdir | --psdi | --psd | --ps) |
1094 |
+ |
ac_prev=psdir ;; |
1095 |
+ |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1096 |
+ |
psdir=$ac_optarg ;; |
1097 |
+ |
|
1098 |
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1099 |
|
| -silent | --silent | --silen | --sile | --sil) |
1100 |
|
silent=yes ;; |
1145 |
|
ac_init_version=: ;; |
1146 |
|
|
1147 |
|
-with-* | --with-*) |
1148 |
< |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1148 |
> |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1149 |
|
# Reject names that are not valid shell variable names. |
1150 |
< |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1151 |
< |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
1150 |
> |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1151 |
> |
{ $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
1152 |
|
{ (exit 1); exit 1; }; } |
1153 |
< |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
1154 |
< |
case $ac_option in |
1155 |
< |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
1156 |
< |
*) ac_optarg=yes ;; |
1153 |
> |
ac_useropt_orig=$ac_useropt |
1154 |
> |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1155 |
> |
case $ac_user_opts in |
1156 |
> |
*" |
1157 |
> |
"with_$ac_useropt" |
1158 |
> |
"*) ;; |
1159 |
> |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
1160 |
> |
ac_unrecognized_sep=', ';; |
1161 |
|
esac |
1162 |
< |
eval "with_$ac_package='$ac_optarg'" ;; |
1162 |
> |
eval with_$ac_useropt=\$ac_optarg ;; |
1163 |
|
|
1164 |
|
-without-* | --without-*) |
1165 |
< |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1165 |
> |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1166 |
|
# Reject names that are not valid shell variable names. |
1167 |
< |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1168 |
< |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
1167 |
> |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1168 |
> |
{ $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
1169 |
|
{ (exit 1); exit 1; }; } |
1170 |
< |
ac_package=`echo $ac_package | sed 's/-/_/g'` |
1171 |
< |
eval "with_$ac_package=no" ;; |
1170 |
> |
ac_useropt_orig=$ac_useropt |
1171 |
> |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1172 |
> |
case $ac_user_opts in |
1173 |
> |
*" |
1174 |
> |
"with_$ac_useropt" |
1175 |
> |
"*) ;; |
1176 |
> |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
1177 |
> |
ac_unrecognized_sep=', ';; |
1178 |
> |
esac |
1179 |
> |
eval with_$ac_useropt=no ;; |
1180 |
|
|
1181 |
|
--x) |
1182 |
|
# Obsolete; use --with-x. |
1196 |
|
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1197 |
|
x_libraries=$ac_optarg ;; |
1198 |
|
|
1199 |
< |
-*) { echo "$as_me: error: unrecognized option: $ac_option |
1199 |
> |
-*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
1200 |
|
Try \`$0 --help' for more information." >&2 |
1201 |
|
{ (exit 1); exit 1; }; } |
1202 |
|
;; |
1205 |
|
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1206 |
|
# Reject names that are not valid shell variable names. |
1207 |
|
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1208 |
< |
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1208 |
> |
{ $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1209 |
|
{ (exit 1); exit 1; }; } |
1210 |
< |
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
641 |
< |
eval "$ac_envvar='$ac_optarg'" |
1210 |
> |
eval $ac_envvar=\$ac_optarg |
1211 |
|
export $ac_envvar ;; |
1212 |
|
|
1213 |
|
*) |
1214 |
|
# FIXME: should be removed in autoconf 3.0. |
1215 |
< |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1215 |
> |
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1216 |
|
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1217 |
< |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1217 |
> |
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1218 |
|
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1219 |
|
;; |
1220 |
|
|
1223 |
|
|
1224 |
|
if test -n "$ac_prev"; then |
1225 |
|
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1226 |
< |
{ echo "$as_me: error: missing argument to $ac_option" >&2 |
1226 |
> |
{ $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
1227 |
|
{ (exit 1); exit 1; }; } |
1228 |
|
fi |
1229 |
|
|
1230 |
< |
# Be sure to have absolute paths. |
1231 |
< |
for ac_var in exec_prefix prefix |
1232 |
< |
do |
1233 |
< |
eval ac_val=$`echo $ac_var` |
1234 |
< |
case $ac_val in |
1235 |
< |
[\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
667 |
< |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
668 |
< |
{ (exit 1); exit 1; }; };; |
1230 |
> |
if test -n "$ac_unrecognized_opts"; then |
1231 |
> |
case $enable_option_checking in |
1232 |
> |
no) ;; |
1233 |
> |
fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 |
1234 |
> |
{ (exit 1); exit 1; }; } ;; |
1235 |
> |
*) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1236 |
|
esac |
1237 |
< |
done |
1237 |
> |
fi |
1238 |
|
|
1239 |
< |
# Be sure to have absolute paths. |
1240 |
< |
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
1241 |
< |
localstatedir libdir includedir oldincludedir infodir mandir |
1239 |
> |
# Check all directory arguments for consistency. |
1240 |
> |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1241 |
> |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
1242 |
> |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1243 |
> |
libdir localedir mandir |
1244 |
|
do |
1245 |
< |
eval ac_val=$`echo $ac_var` |
1245 |
> |
eval ac_val=\$$ac_var |
1246 |
> |
# Remove trailing slashes. |
1247 |
|
case $ac_val in |
1248 |
< |
[\\/$]* | ?:[\\/]* ) ;; |
1249 |
< |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1250 |
< |
{ (exit 1); exit 1; }; };; |
1248 |
> |
*/ ) |
1249 |
> |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
1250 |
> |
eval $ac_var=\$ac_val;; |
1251 |
|
esac |
1252 |
+ |
# Be sure to have absolute directory names. |
1253 |
+ |
case $ac_val in |
1254 |
+ |
[\\/$]* | ?:[\\/]* ) continue;; |
1255 |
+ |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1256 |
+ |
esac |
1257 |
+ |
{ $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1258 |
+ |
{ (exit 1); exit 1; }; } |
1259 |
|
done |
1260 |
|
|
1261 |
|
# There might be people who depend on the old broken behavior: `$host' |
1269 |
|
if test "x$host_alias" != x; then |
1270 |
|
if test "x$build_alias" = x; then |
1271 |
|
cross_compiling=maybe |
1272 |
< |
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1272 |
> |
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1273 |
|
If a cross compiler is detected then cross compile mode will be used." >&2 |
1274 |
|
elif test "x$build_alias" != "x$host_alias"; then |
1275 |
|
cross_compiling=yes |
1282 |
|
test "$silent" = yes && exec 6>/dev/null |
1283 |
|
|
1284 |
|
|
1285 |
< |
# Find the source files, if location was not specified. |
1286 |
< |
if test -z "$srcdir"; then |
1287 |
< |
ac_srcdir_defaulted=yes |
1288 |
< |
# Try the directory containing this script, then its parent. |
1289 |
< |
ac_confdir=`(dirname "$0") 2>/dev/null || |
1290 |
< |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1291 |
< |
X"$0" : 'X\(//\)[^/]' \| \ |
1292 |
< |
X"$0" : 'X\(//\)$' \| \ |
1293 |
< |
X"$0" : 'X\(/\)' \| \ |
1294 |
< |
. : '\(.\)' 2>/dev/null || |
1295 |
< |
echo X"$0" | |
1296 |
< |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
1297 |
< |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
1298 |
< |
/^X\(\/\/\)$/{ s//\1/; q; } |
1299 |
< |
/^X\(\/\).*/{ s//\1/; q; } |
1300 |
< |
s/.*/./; q'` |
1285 |
> |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
1286 |
> |
ac_ls_di=`ls -di .` && |
1287 |
> |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1288 |
> |
{ $as_echo "$as_me: error: Working directory cannot be determined" >&2 |
1289 |
> |
{ (exit 1); exit 1; }; } |
1290 |
> |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1291 |
> |
{ $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
1292 |
> |
{ (exit 1); exit 1; }; } |
1293 |
> |
|
1294 |
> |
|
1295 |
> |
# Find the source files, if location was not specified. |
1296 |
> |
if test -z "$srcdir"; then |
1297 |
> |
ac_srcdir_defaulted=yes |
1298 |
> |
# Try the directory containing this script, then the parent directory. |
1299 |
> |
ac_confdir=`$as_dirname -- "$as_myself" || |
1300 |
> |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1301 |
> |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
1302 |
> |
X"$as_myself" : 'X\(//\)$' \| \ |
1303 |
> |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1304 |
> |
$as_echo X"$as_myself" | |
1305 |
> |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1306 |
> |
s//\1/ |
1307 |
> |
q |
1308 |
> |
} |
1309 |
> |
/^X\(\/\/\)[^/].*/{ |
1310 |
> |
s//\1/ |
1311 |
> |
q |
1312 |
> |
} |
1313 |
> |
/^X\(\/\/\)$/{ |
1314 |
> |
s//\1/ |
1315 |
> |
q |
1316 |
> |
} |
1317 |
> |
/^X\(\/\).*/{ |
1318 |
> |
s//\1/ |
1319 |
> |
q |
1320 |
> |
} |
1321 |
> |
s/.*/./; q'` |
1322 |
|
srcdir=$ac_confdir |
1323 |
< |
if test ! -r $srcdir/$ac_unique_file; then |
1323 |
> |
if test ! -r "$srcdir/$ac_unique_file"; then |
1324 |
|
srcdir=.. |
1325 |
|
fi |
1326 |
|
else |
1327 |
|
ac_srcdir_defaulted=no |
1328 |
|
fi |
1329 |
< |
if test ! -r $srcdir/$ac_unique_file; then |
1330 |
< |
if test "$ac_srcdir_defaulted" = yes; then |
1331 |
< |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
1329 |
> |
if test ! -r "$srcdir/$ac_unique_file"; then |
1330 |
> |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1331 |
> |
{ $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
1332 |
|
{ (exit 1); exit 1; }; } |
735 |
– |
else |
736 |
– |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
737 |
– |
{ (exit 1); exit 1; }; } |
738 |
– |
fi |
1333 |
|
fi |
1334 |
< |
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
1335 |
< |
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
1334 |
> |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1335 |
> |
ac_abs_confdir=`( |
1336 |
> |
cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
1337 |
|
{ (exit 1); exit 1; }; } |
1338 |
< |
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
1339 |
< |
ac_env_build_alias_set=${build_alias+set} |
1340 |
< |
ac_env_build_alias_value=$build_alias |
1341 |
< |
ac_cv_env_build_alias_set=${build_alias+set} |
1342 |
< |
ac_cv_env_build_alias_value=$build_alias |
1343 |
< |
ac_env_host_alias_set=${host_alias+set} |
1344 |
< |
ac_env_host_alias_value=$host_alias |
1345 |
< |
ac_cv_env_host_alias_set=${host_alias+set} |
1346 |
< |
ac_cv_env_host_alias_value=$host_alias |
1347 |
< |
ac_env_target_alias_set=${target_alias+set} |
1348 |
< |
ac_env_target_alias_value=$target_alias |
1349 |
< |
ac_cv_env_target_alias_set=${target_alias+set} |
1350 |
< |
ac_cv_env_target_alias_value=$target_alias |
1351 |
< |
ac_env_CXX_set=${CXX+set} |
1352 |
< |
ac_env_CXX_value=$CXX |
1353 |
< |
ac_cv_env_CXX_set=${CXX+set} |
1354 |
< |
ac_cv_env_CXX_value=$CXX |
760 |
< |
ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
761 |
< |
ac_env_CXXFLAGS_value=$CXXFLAGS |
762 |
< |
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
763 |
< |
ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
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_CC_set=${CC+set} |
773 |
< |
ac_env_CC_value=$CC |
774 |
< |
ac_cv_env_CC_set=${CC+set} |
775 |
< |
ac_cv_env_CC_value=$CC |
776 |
< |
ac_env_CFLAGS_set=${CFLAGS+set} |
777 |
< |
ac_env_CFLAGS_value=$CFLAGS |
778 |
< |
ac_cv_env_CFLAGS_set=${CFLAGS+set} |
779 |
< |
ac_cv_env_CFLAGS_value=$CFLAGS |
780 |
< |
ac_env_FC_set=${FC+set} |
781 |
< |
ac_env_FC_value=$FC |
782 |
< |
ac_cv_env_FC_set=${FC+set} |
783 |
< |
ac_cv_env_FC_value=$FC |
784 |
< |
ac_env_FCFLAGS_set=${FCFLAGS+set} |
785 |
< |
ac_env_FCFLAGS_value=$FCFLAGS |
786 |
< |
ac_cv_env_FCFLAGS_set=${FCFLAGS+set} |
787 |
< |
ac_cv_env_FCFLAGS_value=$FCFLAGS |
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 |
792 |
< |
ac_env_CXXCPP_set=${CXXCPP+set} |
793 |
< |
ac_env_CXXCPP_value=$CXXCPP |
794 |
< |
ac_cv_env_CXXCPP_set=${CXXCPP+set} |
795 |
< |
ac_cv_env_CXXCPP_value=$CXXCPP |
1338 |
> |
pwd)` |
1339 |
> |
# When building in place, set srcdir=. |
1340 |
> |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
1341 |
> |
srcdir=. |
1342 |
> |
fi |
1343 |
> |
# Remove unnecessary trailing slashes from srcdir. |
1344 |
> |
# Double slashes in file names in object file debugging info |
1345 |
> |
# mess up M-x gdb in Emacs. |
1346 |
> |
case $srcdir in |
1347 |
> |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1348 |
> |
esac |
1349 |
> |
for ac_var in $ac_precious_vars; do |
1350 |
> |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1351 |
> |
eval ac_env_${ac_var}_value=\$${ac_var} |
1352 |
> |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1353 |
> |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1354 |
> |
done |
1355 |
|
|
1356 |
|
# |
1357 |
|
# Report the --help message. |
1360 |
|
# Omit some internal or obsolete options to make the list less imposing. |
1361 |
|
# This message is too long to be a string in the A/UX 3.1 sh. |
1362 |
|
cat <<_ACEOF |
1363 |
< |
\`configure' configures OOPSE 2.0 to adapt to many kinds of systems. |
1363 |
> |
\`configure' configures OOPSE 4.0 to adapt to many kinds of systems. |
1364 |
|
|
1365 |
|
Usage: $0 [OPTION]... [VAR=VALUE]... |
1366 |
|
|
1380 |
|
-n, --no-create do not create output files |
1381 |
|
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1382 |
|
|
824 |
– |
_ACEOF |
825 |
– |
|
826 |
– |
cat <<_ACEOF |
1383 |
|
Installation directories: |
1384 |
|
--prefix=PREFIX install architecture-independent files in PREFIX |
1385 |
< |
[$ac_default_prefix] |
1385 |
> |
[$ac_default_prefix] |
1386 |
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1387 |
< |
[PREFIX] |
1387 |
> |
[PREFIX] |
1388 |
|
|
1389 |
|
By default, \`make install' will install all the files in |
1390 |
|
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1394 |
|
For better control, use the options below. |
1395 |
|
|
1396 |
|
Fine tuning of the installation directories: |
1397 |
< |
--bindir=DIR user executables [EPREFIX/bin] |
1398 |
< |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
1399 |
< |
--libexecdir=DIR program executables [EPREFIX/libexec] |
1400 |
< |
--datadir=DIR read-only architecture-independent data [PREFIX/share] |
1401 |
< |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1402 |
< |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1403 |
< |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1404 |
< |
--libdir=DIR object code libraries [EPREFIX/lib] |
1405 |
< |
--includedir=DIR C header files [PREFIX/include] |
1406 |
< |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
1407 |
< |
--infodir=DIR info documentation [PREFIX/info] |
1408 |
< |
--mandir=DIR man documentation [PREFIX/man] |
1397 |
> |
--bindir=DIR user executables [EPREFIX/bin] |
1398 |
> |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
1399 |
> |
--libexecdir=DIR program executables [EPREFIX/libexec] |
1400 |
> |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1401 |
> |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1402 |
> |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1403 |
> |
--libdir=DIR object code libraries [EPREFIX/lib] |
1404 |
> |
--includedir=DIR C header files [PREFIX/include] |
1405 |
> |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
1406 |
> |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1407 |
> |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1408 |
> |
--infodir=DIR info documentation [DATAROOTDIR/info] |
1409 |
> |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1410 |
> |
--mandir=DIR man documentation [DATAROOTDIR/man] |
1411 |
> |
--docdir=DIR documentation root [DATAROOTDIR/doc/oopse] |
1412 |
> |
--htmldir=DIR html documentation [DOCDIR] |
1413 |
> |
--dvidir=DIR dvi documentation [DOCDIR] |
1414 |
> |
--pdfdir=DIR pdf documentation [DOCDIR] |
1415 |
> |
--psdir=DIR ps documentation [DOCDIR] |
1416 |
|
_ACEOF |
1417 |
|
|
1418 |
|
cat <<\_ACEOF |
1425 |
|
|
1426 |
|
if test -n "$ac_init_help"; then |
1427 |
|
case $ac_init_help in |
1428 |
< |
short | recursive ) echo "Configuration of OOPSE 2.0:";; |
1428 |
> |
short | recursive ) echo "Configuration of OOPSE 4.0:";; |
1429 |
|
esac |
1430 |
|
cat <<\_ACEOF |
1431 |
|
|
1432 |
|
Optional Features: |
1433 |
+ |
--disable-option-checking ignore unrecognized --enable/--with options |
1434 |
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1435 |
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1436 |
|
--enable-oopse-home=DIR define oopse home dir PREFIX/oopse |
1437 |
|
--enable-debug Compile OOPSE in debug mode |
1438 |
+ |
--enable-single compile OOPSE in single precision |
1439 |
+ |
--enable-float synonym for --enable-single |
1440 |
|
--enable-doxygen enable documentation generation with doxygen (auto) |
1441 |
|
--enable-dot use 'dot' to generate graphs in doxygen (auto) |
1442 |
|
--enable-html-docs enable HTML generation with doxygen (yes) |
1445 |
|
Optional Packages: |
1446 |
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1447 |
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1448 |
+ |
--with-mpi=auto|mpich|lam|openmpi|no |
1449 |
+ |
Indicates which kind of MPI implementation to use |
1450 |
+ |
[default=auto] |
1451 |
|
--with-perl-shebang override what perl thinks is the way for the kernel |
1452 |
|
to start it (seldom needed) |
1453 |
< |
--with-zlib=DIR root directory path of zlib installation defaults to |
1454 |
< |
/usr/local or /usr if not found in /usr/local |
1455 |
< |
--without-zlib to disable zlib usage completely |
1456 |
< |
--with-mpi=<prefix> compile with MPI installed in <prefix> [default=no] |
1457 |
< |
--with-cgal-makefile=FILE CGAL makefile that should be used |
1453 |
> |
--with-zlib=DIR root directory path of zlib installation (defaults |
1454 |
> |
to /usr/local or /usr if not found in /usr/local) |
1455 |
> |
--with-fftw=DIR root directory path of fftw installation (defaults |
1456 |
> |
to /usr/local or /usr if not found in /usr/local) |
1457 |
> |
--with-qhull=DIR root directory path of qhull installation (defaults |
1458 |
> |
to /usr/local or /usr if not found in /usr/local) |
1459 |
> |
--with-openbabel=DIR root directory path of openbabel-2.x installation |
1460 |
> |
(defaults to /usr/local or /usr if not found in |
1461 |
> |
/usr/local) |
1462 |
> |
--with-cgalmakefile=makefile |
1463 |
> |
Use the following CGAL makefile |
1464 |
|
|
1465 |
|
Some influential environment variables: |
1466 |
|
CXX C++ compiler command |
1467 |
|
CXXFLAGS C++ compiler flags |
1468 |
|
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1469 |
|
nonstandard directory <lib dir> |
1470 |
< |
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
1471 |
< |
headers in a nonstandard directory <include dir> |
1470 |
> |
LIBS libraries to pass to the linker, e.g. -l<library> |
1471 |
> |
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1472 |
> |
you have headers in a nonstandard directory <include dir> |
1473 |
|
CC C compiler command |
1474 |
|
CFLAGS C compiler flags |
1475 |
|
FC Fortran compiler command |
1482 |
|
|
1483 |
|
Report bugs to <gezelter@nd.edu>. |
1484 |
|
_ACEOF |
1485 |
+ |
ac_status=$? |
1486 |
|
fi |
1487 |
|
|
1488 |
|
if test "$ac_init_help" = "recursive"; then |
1489 |
|
# If there are subdirs, report their specific --help. |
913 |
– |
ac_popdir=`pwd` |
1490 |
|
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1491 |
< |
test -d $ac_dir || continue |
1491 |
> |
test -d "$ac_dir" || |
1492 |
> |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
1493 |
> |
continue |
1494 |
|
ac_builddir=. |
1495 |
|
|
1496 |
< |
if test "$ac_dir" != .; then |
1497 |
< |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1498 |
< |
# A "../" for each directory in $ac_dir_suffix. |
1499 |
< |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
1500 |
< |
else |
1501 |
< |
ac_dir_suffix= ac_top_builddir= |
1502 |
< |
fi |
1496 |
> |
case "$ac_dir" in |
1497 |
> |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1498 |
> |
*) |
1499 |
> |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
1500 |
> |
# A ".." for each directory in $ac_dir_suffix. |
1501 |
> |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1502 |
> |
case $ac_top_builddir_sub in |
1503 |
> |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1504 |
> |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1505 |
> |
esac ;; |
1506 |
> |
esac |
1507 |
> |
ac_abs_top_builddir=$ac_pwd |
1508 |
> |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1509 |
> |
# for backward compatibility: |
1510 |
> |
ac_top_builddir=$ac_top_build_prefix |
1511 |
|
|
1512 |
|
case $srcdir in |
1513 |
< |
.) # No --srcdir option. We are building in place. |
1513 |
> |
.) # We are building in place. |
1514 |
|
ac_srcdir=. |
1515 |
< |
if test -z "$ac_top_builddir"; then |
1516 |
< |
ac_top_srcdir=. |
1517 |
< |
else |
932 |
< |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
933 |
< |
fi ;; |
934 |
< |
[\\/]* | ?:[\\/]* ) # Absolute path. |
1515 |
> |
ac_top_srcdir=$ac_top_builddir_sub |
1516 |
> |
ac_abs_top_srcdir=$ac_pwd ;; |
1517 |
> |
[\\/]* | ?:[\\/]* ) # Absolute name. |
1518 |
|
ac_srcdir=$srcdir$ac_dir_suffix; |
1519 |
< |
ac_top_srcdir=$srcdir ;; |
1520 |
< |
*) # Relative path. |
1521 |
< |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
1522 |
< |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
1523 |
< |
esac |
1524 |
< |
|
942 |
< |
# Do not use `cd foo && pwd` to compute absolute paths, because |
943 |
< |
# the directories may not exist. |
944 |
< |
case `pwd` in |
945 |
< |
.) ac_abs_builddir="$ac_dir";; |
946 |
< |
*) |
947 |
< |
case "$ac_dir" in |
948 |
< |
.) ac_abs_builddir=`pwd`;; |
949 |
< |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
950 |
< |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
951 |
< |
esac;; |
952 |
< |
esac |
953 |
< |
case $ac_abs_builddir in |
954 |
< |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
955 |
< |
*) |
956 |
< |
case ${ac_top_builddir}. in |
957 |
< |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
958 |
< |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
959 |
< |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
960 |
< |
esac;; |
961 |
< |
esac |
962 |
< |
case $ac_abs_builddir in |
963 |
< |
.) ac_abs_srcdir=$ac_srcdir;; |
964 |
< |
*) |
965 |
< |
case $ac_srcdir in |
966 |
< |
.) ac_abs_srcdir=$ac_abs_builddir;; |
967 |
< |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
968 |
< |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
969 |
< |
esac;; |
970 |
< |
esac |
971 |
< |
case $ac_abs_builddir in |
972 |
< |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
973 |
< |
*) |
974 |
< |
case $ac_top_srcdir in |
975 |
< |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
976 |
< |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
977 |
< |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
978 |
< |
esac;; |
1519 |
> |
ac_top_srcdir=$srcdir |
1520 |
> |
ac_abs_top_srcdir=$srcdir ;; |
1521 |
> |
*) # Relative name. |
1522 |
> |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1523 |
> |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
1524 |
> |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1525 |
|
esac |
1526 |
+ |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1527 |
|
|
1528 |
< |
cd $ac_dir |
1529 |
< |
# Check for guested configure; otherwise get Cygnus style configure. |
1530 |
< |
if test -f $ac_srcdir/configure.gnu; then |
1531 |
< |
echo |
1532 |
< |
$SHELL $ac_srcdir/configure.gnu --help=recursive |
1533 |
< |
elif test -f $ac_srcdir/configure; then |
1534 |
< |
echo |
1535 |
< |
$SHELL $ac_srcdir/configure --help=recursive |
989 |
< |
elif test -f $ac_srcdir/configure.ac || |
990 |
< |
test -f $ac_srcdir/configure.in; then |
991 |
< |
echo |
992 |
< |
$ac_configure --help |
1528 |
> |
cd "$ac_dir" || { ac_status=$?; continue; } |
1529 |
> |
# Check for guested configure. |
1530 |
> |
if test -f "$ac_srcdir/configure.gnu"; then |
1531 |
> |
echo && |
1532 |
> |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1533 |
> |
elif test -f "$ac_srcdir/configure"; then |
1534 |
> |
echo && |
1535 |
> |
$SHELL "$ac_srcdir/configure" --help=recursive |
1536 |
|
else |
1537 |
< |
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1538 |
< |
fi |
1539 |
< |
cd $ac_popdir |
1537 |
> |
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1538 |
> |
fi || ac_status=$? |
1539 |
> |
cd "$ac_pwd" || { ac_status=$?; break; } |
1540 |
|
done |
1541 |
|
fi |
1542 |
|
|
1543 |
< |
test -n "$ac_init_help" && exit 0 |
1543 |
> |
test -n "$ac_init_help" && exit $ac_status |
1544 |
|
if $ac_init_version; then |
1545 |
|
cat <<\_ACEOF |
1546 |
< |
OOPSE configure 2.0 |
1547 |
< |
generated by GNU Autoconf 2.59 |
1546 |
> |
OOPSE configure 4.0 |
1547 |
> |
generated by GNU Autoconf 2.62 |
1548 |
|
|
1549 |
< |
Copyright (C) 2003 Free Software Foundation, Inc. |
1549 |
> |
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1550 |
> |
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
1551 |
|
This configure script is free software; the Free Software Foundation |
1552 |
|
gives unlimited permission to copy, distribute and modify it. |
1553 |
|
_ACEOF |
1554 |
< |
exit 0 |
1554 |
> |
exit |
1555 |
|
fi |
1556 |
< |
exec 5>config.log |
1013 |
< |
cat >&5 <<_ACEOF |
1556 |
> |
cat >config.log <<_ACEOF |
1557 |
|
This file contains any messages produced by compilers while |
1558 |
|
running configure, to aid debugging if configure makes a mistake. |
1559 |
|
|
1560 |
< |
It was created by OOPSE $as_me 2.0, which was |
1561 |
< |
generated by GNU Autoconf 2.59. Invocation command line was |
1560 |
> |
It was created by OOPSE $as_me 4.0, which was |
1561 |
> |
generated by GNU Autoconf 2.62. Invocation command line was |
1562 |
|
|
1563 |
|
$ $0 $@ |
1564 |
|
|
1565 |
|
_ACEOF |
1566 |
+ |
exec 5>>config.log |
1567 |
|
{ |
1568 |
|
cat <<_ASUNAME |
1569 |
|
## --------- ## |
1582 |
|
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1583 |
|
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1584 |
|
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1585 |
< |
hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
1585 |
> |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1586 |
|
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1587 |
|
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1588 |
|
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1594 |
|
do |
1595 |
|
IFS=$as_save_IFS |
1596 |
|
test -z "$as_dir" && as_dir=. |
1597 |
< |
echo "PATH: $as_dir" |
1597 |
> |
$as_echo "PATH: $as_dir" |
1598 |
|
done |
1599 |
+ |
IFS=$as_save_IFS |
1600 |
|
|
1601 |
|
} >&5 |
1602 |
|
|
1618 |
|
ac_configure_args= |
1619 |
|
ac_configure_args0= |
1620 |
|
ac_configure_args1= |
1076 |
– |
ac_sep= |
1621 |
|
ac_must_keep_next=false |
1622 |
|
for ac_pass in 1 2 |
1623 |
|
do |
1628 |
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1629 |
|
| -silent | --silent | --silen | --sile | --sil) |
1630 |
|
continue ;; |
1631 |
< |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1632 |
< |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1631 |
> |
*\'*) |
1632 |
> |
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1633 |
|
esac |
1634 |
|
case $ac_pass in |
1635 |
|
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1650 |
|
-* ) ac_must_keep_next=true ;; |
1651 |
|
esac |
1652 |
|
fi |
1653 |
< |
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1110 |
< |
# Get rid of the leading space. |
1111 |
< |
ac_sep=" " |
1653 |
> |
ac_configure_args="$ac_configure_args '$ac_arg'" |
1654 |
|
;; |
1655 |
|
esac |
1656 |
|
done |
1661 |
|
# When interrupted or exit'd, cleanup temporary files, and complete |
1662 |
|
# config.log. We remove comments because anyway the quotes in there |
1663 |
|
# would cause problems or look ugly. |
1664 |
< |
# WARNING: Be sure not to use single quotes in there, as some shells, |
1665 |
< |
# such as our DU 5.0 friend, will then `close' the trap. |
1664 |
> |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
1665 |
> |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1666 |
|
trap 'exit_status=$? |
1667 |
|
# Save into config.log some information that might help in debugging. |
1668 |
|
{ |
1675 |
|
_ASBOX |
1676 |
|
echo |
1677 |
|
# The following way of writing the cache mishandles newlines in values, |
1678 |
< |
{ |
1678 |
> |
( |
1679 |
> |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1680 |
> |
eval ac_val=\$$ac_var |
1681 |
> |
case $ac_val in #( |
1682 |
> |
*${as_nl}*) |
1683 |
> |
case $ac_var in #( |
1684 |
> |
*_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1685 |
> |
$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
1686 |
> |
esac |
1687 |
> |
case $ac_var in #( |
1688 |
> |
_ | IFS | as_nl) ;; #( |
1689 |
> |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
1690 |
> |
*) $as_unset $ac_var ;; |
1691 |
> |
esac ;; |
1692 |
> |
esac |
1693 |
> |
done |
1694 |
|
(set) 2>&1 | |
1695 |
< |
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1696 |
< |
*ac_space=\ *) |
1695 |
> |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1696 |
> |
*${as_nl}ac_space=\ *) |
1697 |
|
sed -n \ |
1698 |
< |
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1699 |
< |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1700 |
< |
;; |
1698 |
> |
"s/'\''/'\''\\\\'\'''\''/g; |
1699 |
> |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1700 |
> |
;; #( |
1701 |
|
*) |
1702 |
< |
sed -n \ |
1146 |
< |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1702 |
> |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1703 |
|
;; |
1704 |
< |
esac; |
1705 |
< |
} |
1704 |
> |
esac | |
1705 |
> |
sort |
1706 |
> |
) |
1707 |
|
echo |
1708 |
|
|
1709 |
|
cat <<\_ASBOX |
1714 |
|
echo |
1715 |
|
for ac_var in $ac_subst_vars |
1716 |
|
do |
1717 |
< |
eval ac_val=$`echo $ac_var` |
1718 |
< |
echo "$ac_var='"'"'$ac_val'"'"'" |
1717 |
> |
eval ac_val=\$$ac_var |
1718 |
> |
case $ac_val in |
1719 |
> |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1720 |
> |
esac |
1721 |
> |
$as_echo "$ac_var='\''$ac_val'\''" |
1722 |
|
done | sort |
1723 |
|
echo |
1724 |
|
|
1725 |
|
if test -n "$ac_subst_files"; then |
1726 |
|
cat <<\_ASBOX |
1727 |
< |
## ------------- ## |
1728 |
< |
## Output files. ## |
1729 |
< |
## ------------- ## |
1727 |
> |
## ------------------- ## |
1728 |
> |
## File substitutions. ## |
1729 |
> |
## ------------------- ## |
1730 |
|
_ASBOX |
1731 |
|
echo |
1732 |
|
for ac_var in $ac_subst_files |
1733 |
|
do |
1734 |
< |
eval ac_val=$`echo $ac_var` |
1735 |
< |
echo "$ac_var='"'"'$ac_val'"'"'" |
1734 |
> |
eval ac_val=\$$ac_var |
1735 |
> |
case $ac_val in |
1736 |
> |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1737 |
> |
esac |
1738 |
> |
$as_echo "$ac_var='\''$ac_val'\''" |
1739 |
|
done | sort |
1740 |
|
echo |
1741 |
|
fi |
1747 |
|
## ----------- ## |
1748 |
|
_ASBOX |
1749 |
|
echo |
1750 |
< |
sed "/^$/d" confdefs.h | sort |
1750 |
> |
cat confdefs.h |
1751 |
|
echo |
1752 |
|
fi |
1753 |
|
test "$ac_signal" != 0 && |
1754 |
< |
echo "$as_me: caught signal $ac_signal" |
1755 |
< |
echo "$as_me: exit $exit_status" |
1754 |
> |
$as_echo "$as_me: caught signal $ac_signal" |
1755 |
> |
$as_echo "$as_me: exit $exit_status" |
1756 |
|
} >&5 |
1757 |
< |
rm -f core *.core && |
1758 |
< |
rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1757 |
> |
rm -f core *.core core.conftest.* && |
1758 |
> |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1759 |
|
exit $exit_status |
1760 |
< |
' 0 |
1760 |
> |
' 0 |
1761 |
|
for ac_signal in 1 2 13 15; do |
1762 |
|
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1763 |
|
done |
1764 |
|
ac_signal=0 |
1765 |
|
|
1766 |
|
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
1767 |
< |
rm -rf conftest* confdefs.h |
1205 |
< |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
1206 |
< |
echo >confdefs.h |
1767 |
> |
rm -f -r conftest* confdefs.h |
1768 |
|
|
1769 |
|
# Predefined preprocessor variables. |
1770 |
|
|
1794 |
|
|
1795 |
|
|
1796 |
|
# Let the site file select an alternate cache file if it wants to. |
1797 |
< |
# Prefer explicitly selected file to automatically selected ones. |
1798 |
< |
if test -z "$CONFIG_SITE"; then |
1799 |
< |
if test "x$prefix" != xNONE; then |
1800 |
< |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
1801 |
< |
else |
1802 |
< |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1803 |
< |
fi |
1797 |
> |
# Prefer an explicitly selected file to automatically selected ones. |
1798 |
> |
ac_site_file1=NONE |
1799 |
> |
ac_site_file2=NONE |
1800 |
> |
if test -n "$CONFIG_SITE"; then |
1801 |
> |
ac_site_file1=$CONFIG_SITE |
1802 |
> |
elif test "x$prefix" != xNONE; then |
1803 |
> |
ac_site_file1=$prefix/share/config.site |
1804 |
> |
ac_site_file2=$prefix/etc/config.site |
1805 |
> |
else |
1806 |
> |
ac_site_file1=$ac_default_prefix/share/config.site |
1807 |
> |
ac_site_file2=$ac_default_prefix/etc/config.site |
1808 |
|
fi |
1809 |
< |
for ac_site_file in $CONFIG_SITE; do |
1809 |
> |
for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
1810 |
> |
do |
1811 |
> |
test "x$ac_site_file" = xNONE && continue |
1812 |
|
if test -r "$ac_site_file"; then |
1813 |
< |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1814 |
< |
echo "$as_me: loading site script $ac_site_file" >&6;} |
1813 |
> |
{ $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1814 |
> |
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
1815 |
|
sed 's/^/| /' "$ac_site_file" >&5 |
1816 |
|
. "$ac_site_file" |
1817 |
|
fi |
1821 |
|
# Some versions of bash will fail to source /dev/null (special |
1822 |
|
# files actually), so we avoid doing that. |
1823 |
|
if test -f "$cache_file"; then |
1824 |
< |
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1825 |
< |
echo "$as_me: loading cache $cache_file" >&6;} |
1824 |
> |
{ $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1825 |
> |
$as_echo "$as_me: loading cache $cache_file" >&6;} |
1826 |
|
case $cache_file in |
1827 |
< |
[\\/]* | ?:[\\/]* ) . $cache_file;; |
1828 |
< |
*) . ./$cache_file;; |
1827 |
> |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
1828 |
> |
*) . "./$cache_file";; |
1829 |
|
esac |
1830 |
|
fi |
1831 |
|
else |
1832 |
< |
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1833 |
< |
echo "$as_me: creating cache $cache_file" >&6;} |
1832 |
> |
{ $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1833 |
> |
$as_echo "$as_me: creating cache $cache_file" >&6;} |
1834 |
|
>$cache_file |
1835 |
|
fi |
1836 |
|
|
1837 |
|
# Check that the precious variables saved in the cache have kept the same |
1838 |
|
# value. |
1839 |
|
ac_cache_corrupted=false |
1840 |
< |
for ac_var in `(set) 2>&1 | |
1274 |
< |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1840 |
> |
for ac_var in $ac_precious_vars; do |
1841 |
|
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1842 |
|
eval ac_new_set=\$ac_env_${ac_var}_set |
1843 |
< |
eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1844 |
< |
eval ac_new_val="\$ac_env_${ac_var}_value" |
1843 |
> |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1844 |
> |
eval ac_new_val=\$ac_env_${ac_var}_value |
1845 |
|
case $ac_old_set,$ac_new_set in |
1846 |
|
set,) |
1847 |
< |
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1848 |
< |
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1847 |
> |
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1848 |
> |
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1849 |
|
ac_cache_corrupted=: ;; |
1850 |
|
,set) |
1851 |
< |
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1852 |
< |
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1851 |
> |
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1852 |
> |
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1853 |
|
ac_cache_corrupted=: ;; |
1854 |
|
,);; |
1855 |
|
*) |
1856 |
|
if test "x$ac_old_val" != "x$ac_new_val"; then |
1857 |
< |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1858 |
< |
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1859 |
< |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1860 |
< |
echo "$as_me: former value: $ac_old_val" >&2;} |
1861 |
< |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1862 |
< |
echo "$as_me: current value: $ac_new_val" >&2;} |
1863 |
< |
ac_cache_corrupted=: |
1857 |
> |
# differences in whitespace do not lead to failure. |
1858 |
> |
ac_old_val_w=`echo x $ac_old_val` |
1859 |
> |
ac_new_val_w=`echo x $ac_new_val` |
1860 |
> |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
1861 |
> |
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1862 |
> |
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1863 |
> |
ac_cache_corrupted=: |
1864 |
> |
else |
1865 |
> |
{ $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
1866 |
> |
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
1867 |
> |
eval $ac_var=\$ac_old_val |
1868 |
> |
fi |
1869 |
> |
{ $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
1870 |
> |
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
1871 |
> |
{ $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
1872 |
> |
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
1873 |
|
fi;; |
1874 |
|
esac |
1875 |
|
# Pass precious variables to config.status. |
1876 |
|
if test "$ac_new_set" = set; then |
1877 |
|
case $ac_new_val in |
1878 |
< |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1304 |
< |
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1878 |
> |
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1879 |
|
*) ac_arg=$ac_var=$ac_new_val ;; |
1880 |
|
esac |
1881 |
|
case " $ac_configure_args " in |
1885 |
|
fi |
1886 |
|
done |
1887 |
|
if $ac_cache_corrupted; then |
1888 |
< |
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1889 |
< |
echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1890 |
< |
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1891 |
< |
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1888 |
> |
{ $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1889 |
> |
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1890 |
> |
{ { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1891 |
> |
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1892 |
|
{ (exit 1); exit 1; }; } |
1893 |
|
fi |
1894 |
|
|
1321 |
– |
ac_ext=c |
1322 |
– |
ac_cpp='$CPP $CPPFLAGS' |
1323 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1324 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1325 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1895 |
|
|
1896 |
|
|
1897 |
|
|
1916 |
|
|
1917 |
|
|
1918 |
|
|
1919 |
+ |
ac_ext=c |
1920 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
1921 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1922 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1923 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1924 |
|
|
1925 |
|
|
1352 |
– |
|
1926 |
|
ac_aux_dir= |
1927 |
< |
for ac_dir in ac-tools $srcdir/ac-tools; do |
1928 |
< |
if test -f $ac_dir/install-sh; then |
1927 |
> |
for ac_dir in ac-tools "$srcdir"/ac-tools; do |
1928 |
> |
if test -f "$ac_dir/install-sh"; then |
1929 |
|
ac_aux_dir=$ac_dir |
1930 |
|
ac_install_sh="$ac_aux_dir/install-sh -c" |
1931 |
|
break |
1932 |
< |
elif test -f $ac_dir/install.sh; then |
1932 |
> |
elif test -f "$ac_dir/install.sh"; then |
1933 |
|
ac_aux_dir=$ac_dir |
1934 |
|
ac_install_sh="$ac_aux_dir/install.sh -c" |
1935 |
|
break |
1936 |
< |
elif test -f $ac_dir/shtool; then |
1936 |
> |
elif test -f "$ac_dir/shtool"; then |
1937 |
|
ac_aux_dir=$ac_dir |
1938 |
|
ac_install_sh="$ac_aux_dir/shtool install -c" |
1939 |
|
break |
1940 |
|
fi |
1941 |
|
done |
1942 |
|
if test -z "$ac_aux_dir"; then |
1943 |
< |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5 |
1944 |
< |
echo "$as_me: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&2;} |
1943 |
> |
{ { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools \"$srcdir\"/ac-tools" >&5 |
1944 |
> |
$as_echo "$as_me: error: cannot find install-sh or install.sh in ac-tools \"$srcdir\"/ac-tools" >&2;} |
1945 |
|
{ (exit 1); exit 1; }; } |
1946 |
|
fi |
1374 |
– |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1375 |
– |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1376 |
– |
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1947 |
|
|
1948 |
+ |
# These three variables are undocumented and unsupported, |
1949 |
+ |
# and are intended to be withdrawn in a future Autoconf release. |
1950 |
+ |
# They can cause serious problems if a builder's source tree is in a directory |
1951 |
+ |
# whose full name contains unusual characters. |
1952 |
+ |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
1953 |
+ |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
1954 |
+ |
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
1955 |
|
|
1379 |
– |
ac_config_headers="$ac_config_headers src/config.h" |
1956 |
|
|
1957 |
|
|
1958 |
+ |
ac_config_headers="$ac_config_headers src/config.h" |
1959 |
|
|
1960 |
|
|
1961 |
|
|
1996 |
|
|
1997 |
|
|
1998 |
|
|
1999 |
+ |
|
2000 |
+ |
|
2001 |
+ |
|
2002 |
+ |
|
2003 |
|
# |
2004 |
|
# |
2005 |
|
# |
2006 |
|
|
2007 |
|
|
2008 |
+ |
|
2009 |
+ |
|
2010 |
+ |
|
2011 |
+ |
|
2012 |
+ |
|
2013 |
+ |
|
2014 |
+ |
|
2015 |
+ |
|
2016 |
|
# AC_F90_MODULE_NAMES |
2017 |
|
# ------------------- |
2018 |
|
# |
2055 |
|
|
2056 |
|
|
2057 |
|
|
1469 |
– |
# who am i |
1470 |
– |
# Make sure we can run config.sub. |
1471 |
– |
$ac_config_sub sun4 >/dev/null 2>&1 || |
1472 |
– |
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
1473 |
– |
echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1474 |
– |
{ (exit 1); exit 1; }; } |
2058 |
|
|
2059 |
< |
echo "$as_me:$LINENO: checking build system type" >&5 |
2060 |
< |
echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
2061 |
< |
if test "${ac_cv_build+set}" = set; then |
2062 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2063 |
< |
else |
2064 |
< |
ac_cv_build_alias=$build_alias |
2065 |
< |
test -z "$ac_cv_build_alias" && |
2066 |
< |
ac_cv_build_alias=`$ac_config_guess` |
2067 |
< |
test -z "$ac_cv_build_alias" && |
2068 |
< |
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2069 |
< |
echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
2059 |
> |
|
2060 |
> |
|
2061 |
> |
|
2062 |
> |
|
2063 |
> |
|
2064 |
> |
|
2065 |
> |
|
2066 |
> |
|
2067 |
> |
|
2068 |
> |
|
2069 |
> |
|
2070 |
> |
|
2071 |
> |
|
2072 |
> |
|
2073 |
> |
|
2074 |
> |
|
2075 |
> |
|
2076 |
> |
|
2077 |
> |
|
2078 |
> |
|
2079 |
> |
|
2080 |
> |
|
2081 |
> |
|
2082 |
> |
|
2083 |
> |
|
2084 |
> |
|
2085 |
> |
|
2086 |
> |
|
2087 |
> |
|
2088 |
> |
|
2089 |
> |
|
2090 |
> |
|
2091 |
> |
|
2092 |
> |
|
2093 |
> |
|
2094 |
> |
|
2095 |
> |
|
2096 |
> |
|
2097 |
> |
|
2098 |
> |
|
2099 |
> |
|
2100 |
> |
|
2101 |
> |
|
2102 |
> |
|
2103 |
> |
|
2104 |
> |
|
2105 |
> |
|
2106 |
> |
|
2107 |
> |
|
2108 |
> |
|
2109 |
> |
# ACX_MPI_GET_PROG |
2110 |
> |
|
2111 |
> |
# ACX_DETECT_MPI_IMPLEMENTATION |
2112 |
> |
|
2113 |
> |
|
2114 |
> |
|
2115 |
> |
|
2116 |
> |
|
2117 |
> |
# ACX_MPI |
2118 |
> |
|
2119 |
> |
|
2120 |
> |
|
2121 |
> |
|
2122 |
> |
|
2123 |
> |
|
2124 |
> |
|
2125 |
> |
|
2126 |
> |
|
2127 |
> |
|
2128 |
> |
|
2129 |
> |
|
2130 |
> |
|
2131 |
> |
|
2132 |
> |
|
2133 |
> |
|
2134 |
> |
|
2135 |
> |
|
2136 |
> |
|
2137 |
> |
|
2138 |
> |
|
2139 |
> |
|
2140 |
> |
|
2141 |
> |
|
2142 |
> |
|
2143 |
> |
|
2144 |
> |
|
2145 |
> |
# This is taken from http://autoqt.sourceforge.net/ |
2146 |
> |
# Copyright (c) 2002, Geoffrey Wossum |
2147 |
> |
# All rights reserved. |
2148 |
> |
|
2149 |
> |
# Redistribution and use in source and binary forms, with or without |
2150 |
> |
# modification, are permitted provided that the following conditions are |
2151 |
> |
# met: |
2152 |
> |
|
2153 |
> |
# - Redistributions of source code must retain the above copyright notice, |
2154 |
> |
# this list of conditions and the following disclaimer. |
2155 |
> |
|
2156 |
> |
# - Redistributions in binary form must reproduce the above copyright |
2157 |
> |
# notice, this list of conditions and the following disclaimer in the |
2158 |
> |
# documentation and/or other materials provided with the distribution. |
2159 |
> |
|
2160 |
> |
# - Neither the name of Geoffrey Wossum nor the names of its |
2161 |
> |
# contributors may be used to endorse or promote products derived from |
2162 |
> |
# this software without specific prior written permission. |
2163 |
> |
|
2164 |
> |
|
2165 |
> |
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
2166 |
> |
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED |
2167 |
> |
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
2168 |
> |
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR |
2169 |
> |
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
2170 |
> |
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
2171 |
> |
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
2172 |
> |
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
2173 |
> |
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
2174 |
> |
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
2175 |
> |
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
2176 |
> |
|
2177 |
> |
|
2178 |
> |
# Check for Qt compiler flags, linker flags, and binary packages |
2179 |
> |
|
2180 |
> |
|
2181 |
> |
|
2182 |
> |
# who am i |
2183 |
> |
# Make sure we can run config.sub. |
2184 |
> |
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2185 |
> |
{ { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2186 |
> |
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
2187 |
|
{ (exit 1); exit 1; }; } |
2188 |
< |
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
2189 |
< |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
2190 |
< |
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
2188 |
> |
|
2189 |
> |
{ $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2190 |
> |
$as_echo_n "checking build system type... " >&6; } |
2191 |
> |
if test "${ac_cv_build+set}" = set; then |
2192 |
> |
$as_echo_n "(cached) " >&6 |
2193 |
> |
else |
2194 |
> |
ac_build_alias=$build_alias |
2195 |
> |
test "x$ac_build_alias" = x && |
2196 |
> |
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
2197 |
> |
test "x$ac_build_alias" = x && |
2198 |
> |
{ { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2199 |
> |
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
2200 |
|
{ (exit 1); exit 1; }; } |
2201 |
+ |
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
2202 |
+ |
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2203 |
+ |
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
2204 |
+ |
{ (exit 1); exit 1; }; } |
2205 |
|
|
2206 |
|
fi |
2207 |
< |
echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2208 |
< |
echo "${ECHO_T}$ac_cv_build" >&6 |
2207 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2208 |
> |
$as_echo "$ac_cv_build" >&6; } |
2209 |
> |
case $ac_cv_build in |
2210 |
> |
*-*-*) ;; |
2211 |
> |
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2212 |
> |
$as_echo "$as_me: error: invalid value of canonical build" >&2;} |
2213 |
> |
{ (exit 1); exit 1; }; };; |
2214 |
> |
esac |
2215 |
|
build=$ac_cv_build |
2216 |
< |
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2217 |
< |
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
2218 |
< |
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
2216 |
> |
ac_save_IFS=$IFS; IFS='-' |
2217 |
> |
set x $ac_cv_build |
2218 |
> |
shift |
2219 |
> |
build_cpu=$1 |
2220 |
> |
build_vendor=$2 |
2221 |
> |
shift; shift |
2222 |
> |
# Remember, the first character of IFS is used to create $*, |
2223 |
> |
# except with old shells: |
2224 |
> |
build_os=$* |
2225 |
> |
IFS=$ac_save_IFS |
2226 |
> |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
2227 |
|
|
2228 |
|
|
2229 |
< |
echo "$as_me:$LINENO: checking host system type" >&5 |
2230 |
< |
echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
2229 |
> |
{ $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2230 |
> |
$as_echo_n "checking host system type... " >&6; } |
2231 |
|
if test "${ac_cv_host+set}" = set; then |
2232 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2232 |
> |
$as_echo_n "(cached) " >&6 |
2233 |
|
else |
2234 |
< |
ac_cv_host_alias=$host_alias |
2235 |
< |
test -z "$ac_cv_host_alias" && |
2236 |
< |
ac_cv_host_alias=$ac_cv_build_alias |
2237 |
< |
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
2238 |
< |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
2239 |
< |
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
2234 |
> |
if test "x$host_alias" = x; then |
2235 |
> |
ac_cv_host=$ac_cv_build |
2236 |
> |
else |
2237 |
> |
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2238 |
> |
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2239 |
> |
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
2240 |
|
{ (exit 1); exit 1; }; } |
2241 |
+ |
fi |
2242 |
|
|
2243 |
|
fi |
2244 |
< |
echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2245 |
< |
echo "${ECHO_T}$ac_cv_host" >&6 |
2244 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2245 |
> |
$as_echo "$ac_cv_host" >&6; } |
2246 |
> |
case $ac_cv_host in |
2247 |
> |
*-*-*) ;; |
2248 |
> |
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2249 |
> |
$as_echo "$as_me: error: invalid value of canonical host" >&2;} |
2250 |
> |
{ (exit 1); exit 1; }; };; |
2251 |
> |
esac |
2252 |
|
host=$ac_cv_host |
2253 |
< |
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2254 |
< |
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
2255 |
< |
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
2253 |
> |
ac_save_IFS=$IFS; IFS='-' |
2254 |
> |
set x $ac_cv_host |
2255 |
> |
shift |
2256 |
> |
host_cpu=$1 |
2257 |
> |
host_vendor=$2 |
2258 |
> |
shift; shift |
2259 |
> |
# Remember, the first character of IFS is used to create $*, |
2260 |
> |
# except with old shells: |
2261 |
> |
host_os=$* |
2262 |
> |
IFS=$ac_save_IFS |
2263 |
> |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
2264 |
|
|
2265 |
|
|
2266 |
|
|
2282 |
|
else |
2283 |
|
OOPSE_HOME=${prefix}/oopse |
2284 |
|
fi |
2285 |
< |
# Check whether --enable-oopse-home or --disable-oopse-home was given. |
2285 |
> |
# Check whether --enable-oopse-home was given. |
2286 |
|
if test "${enable_oopse_home+set}" = set; then |
2287 |
< |
enableval="$enable_oopse_home" |
2288 |
< |
OOPSE_HOME="${enableval}" |
1547 |
< |
fi; |
2287 |
> |
enableval=$enable_oopse_home; OOPSE_HOME="${enableval}" |
2288 |
> |
fi |
2289 |
|
|
2290 |
+ |
|
2291 |
|
# there are two ways to do debugging. One with the --enable-debug flag |
2292 |
|
# and one using the DEBUG environment variable |
2293 |
|
|
2294 |
|
debug=0 |
2295 |
< |
# Check whether --enable-debug or --disable-debug was given. |
2295 |
> |
# Check whether --enable-debug was given. |
2296 |
|
if test "${enable_debug+set}" = set; then |
2297 |
< |
enableval="$enable_debug" |
2298 |
< |
debug=1 |
2299 |
< |
fi; |
2297 |
> |
enableval=$enable_debug; debug=1 |
2298 |
> |
fi |
2299 |
> |
|
2300 |
|
if test "${DEBUG}"; then |
2301 |
|
|
2302 |
|
cat >>confdefs.h <<\_ACEOF |
2307 |
|
fi |
2308 |
|
|
2309 |
|
|
2310 |
< |
# Checks for programs. |
2311 |
< |
ac_ext=cc |
2312 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
1571 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1572 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1573 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
1574 |
< |
if test -n "$ac_tool_prefix"; then |
1575 |
< |
for ac_prog in $CCC pathCC icpc icc xlc++ xlC CC g++ c++ |
1576 |
< |
do |
1577 |
< |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
1578 |
< |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
1579 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1580 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1581 |
< |
if test "${ac_cv_prog_CXX+set}" = set; then |
1582 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2310 |
> |
# Check whether --enable-single was given. |
2311 |
> |
if test "${enable_single+set}" = set; then |
2312 |
> |
enableval=$enable_single; ok=$enableval |
2313 |
|
else |
2314 |
< |
if test -n "$CXX"; then |
2315 |
< |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
2314 |
> |
ok=no |
2315 |
> |
fi |
2316 |
> |
|
2317 |
> |
# Check whether --enable-float was given. |
2318 |
> |
if test "${enable_float+set}" = set; then |
2319 |
> |
enableval=$enable_float; ok=$enableval |
2320 |
> |
fi |
2321 |
> |
|
2322 |
> |
if test "$ok" = "yes"; then |
2323 |
> |
|
2324 |
> |
cat >>confdefs.h <<\_ACEOF |
2325 |
> |
#define SINGLE_PRECISION 1 |
2326 |
> |
_ACEOF |
2327 |
> |
|
2328 |
> |
USE_SINGLE_PRECISION=yes |
2329 |
> |
|
2330 |
> |
fi |
2331 |
> |
|
2332 |
> |
if test x"$CC" != x; then |
2333 |
> |
for ac_prog in $CC |
2334 |
> |
do |
2335 |
> |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2336 |
> |
set dummy $ac_prog; ac_word=$2 |
2337 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2338 |
> |
$as_echo_n "checking for $ac_word... " >&6; } |
2339 |
> |
if test "${ac_cv_prog_ac_cc_set+set}" = set; then |
2340 |
> |
$as_echo_n "(cached) " >&6 |
2341 |
|
else |
2342 |
+ |
if test -n "$ac_cc_set"; then |
2343 |
+ |
ac_cv_prog_ac_cc_set="$ac_cc_set" # Let the user override the test. |
2344 |
+ |
else |
2345 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2346 |
|
for as_dir in $PATH |
2347 |
|
do |
2348 |
|
IFS=$as_save_IFS |
2349 |
|
test -z "$as_dir" && as_dir=. |
2350 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2351 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2352 |
< |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
2353 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2351 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2352 |
> |
ac_cv_prog_ac_cc_set="$ac_prog" |
2353 |
> |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2354 |
|
break 2 |
2355 |
|
fi |
2356 |
|
done |
2357 |
|
done |
2358 |
+ |
IFS=$as_save_IFS |
2359 |
|
|
2360 |
|
fi |
2361 |
|
fi |
2362 |
< |
CXX=$ac_cv_prog_CXX |
2363 |
< |
if test -n "$CXX"; then |
2364 |
< |
echo "$as_me:$LINENO: result: $CXX" >&5 |
2365 |
< |
echo "${ECHO_T}$CXX" >&6 |
2362 |
> |
ac_cc_set=$ac_cv_prog_ac_cc_set |
2363 |
> |
if test -n "$ac_cc_set"; then |
2364 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cc_set" >&5 |
2365 |
> |
$as_echo "$ac_cc_set" >&6; } |
2366 |
|
else |
2367 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
2368 |
< |
echo "${ECHO_T}no" >&6 |
2367 |
> |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
2368 |
> |
$as_echo "no" >&6; } |
2369 |
|
fi |
2370 |
|
|
2371 |
< |
test -n "$CXX" && break |
2372 |
< |
done |
2371 |
> |
|
2372 |
> |
test -n "$ac_cc_set" && break |
2373 |
> |
done |
2374 |
> |
test -n "$ac_cc_set" || ac_cc_set="no" |
2375 |
> |
|
2376 |
> |
if test $ac_cc_set != no; then |
2377 |
> |
|
2378 |
> |
# Extract the first word of "$ac_cc_set", so it can be a program name with args. |
2379 |
> |
set dummy $ac_cc_set; ac_word=$2 |
2380 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2381 |
> |
$as_echo_n "checking for $ac_word... " >&6; } |
2382 |
> |
if test "${ac_cv_path_ac_cc_path+set}" = set; then |
2383 |
> |
$as_echo_n "(cached) " >&6 |
2384 |
> |
else |
2385 |
> |
case $ac_cc_path in |
2386 |
> |
[\\/]* | ?:[\\/]*) |
2387 |
> |
ac_cv_path_ac_cc_path="$ac_cc_path" # Let the user override the test with a path. |
2388 |
> |
;; |
2389 |
> |
*) |
2390 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2391 |
> |
for as_dir in $PATH |
2392 |
> |
do |
2393 |
> |
IFS=$as_save_IFS |
2394 |
> |
test -z "$as_dir" && as_dir=. |
2395 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2396 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2397 |
> |
ac_cv_path_ac_cc_path="$as_dir/$ac_word$ac_exec_ext" |
2398 |
> |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2399 |
> |
break 2 |
2400 |
> |
fi |
2401 |
> |
done |
2402 |
> |
done |
2403 |
> |
IFS=$as_save_IFS |
2404 |
> |
|
2405 |
> |
test -z "$ac_cv_path_ac_cc_path" && ac_cv_path_ac_cc_path="no" |
2406 |
> |
;; |
2407 |
> |
esac |
2408 |
|
fi |
2409 |
< |
if test -z "$CXX"; then |
2410 |
< |
ac_ct_CXX=$CXX |
2411 |
< |
for ac_prog in $CCC pathCC icpc icc xlc++ xlC CC g++ c++ |
2409 |
> |
ac_cc_path=$ac_cv_path_ac_cc_path |
2410 |
> |
if test -n "$ac_cc_path"; then |
2411 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cc_path" >&5 |
2412 |
> |
$as_echo "$ac_cc_path" >&6; } |
2413 |
> |
else |
2414 |
> |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
2415 |
> |
$as_echo "no" >&6; } |
2416 |
> |
fi |
2417 |
> |
|
2418 |
> |
|
2419 |
> |
else |
2420 |
> |
|
2421 |
> |
{ { $as_echo "$as_me:$LINENO: error: Specified C compiler $CC doesn't seem to exist!" >&5 |
2422 |
> |
$as_echo "$as_me: error: Specified C compiler $CC doesn't seem to exist!" >&2;} |
2423 |
> |
{ (exit 1); exit 1; }; } |
2424 |
> |
fi |
2425 |
> |
|
2426 |
> |
|
2427 |
> |
if test $ac_cc_path != no; then |
2428 |
> |
|
2429 |
> |
{ $as_echo "$as_me:$LINENO: Will attempt to use $CC as C compiler" >&5 |
2430 |
> |
$as_echo "$as_me: Will attempt to use $CC as C compiler" >&6;} |
2431 |
> |
else |
2432 |
> |
|
2433 |
> |
{ { $as_echo "$as_me:$LINENO: error: Can't find path to user-specified C compiler $CC" >&5 |
2434 |
> |
$as_echo "$as_me: error: Can't find path to user-specified C compiler $CC" >&2;} |
2435 |
> |
{ (exit 1); exit 1; }; } |
2436 |
> |
fi |
2437 |
> |
|
2438 |
> |
fi |
2439 |
> |
|
2440 |
> |
if test x"$CXX" != x; then |
2441 |
> |
for ac_prog in $CXX |
2442 |
|
do |
2443 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2444 |
|
set dummy $ac_prog; ac_word=$2 |
2445 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2446 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2447 |
< |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
2448 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2445 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2446 |
> |
$as_echo_n "checking for $ac_word... " >&6; } |
2447 |
> |
if test "${ac_cv_prog_ac_cxx_set+set}" = set; then |
2448 |
> |
$as_echo_n "(cached) " >&6 |
2449 |
|
else |
2450 |
< |
if test -n "$ac_ct_CXX"; then |
2451 |
< |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
2450 |
> |
if test -n "$ac_cxx_set"; then |
2451 |
> |
ac_cv_prog_ac_cxx_set="$ac_cxx_set" # Let the user override the test. |
2452 |
|
else |
2453 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2454 |
|
for as_dir in $PATH |
2456 |
|
IFS=$as_save_IFS |
2457 |
|
test -z "$as_dir" && as_dir=. |
2458 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2459 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2460 |
< |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
2461 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2459 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2460 |
> |
ac_cv_prog_ac_cxx_set="$ac_prog" |
2461 |
> |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2462 |
|
break 2 |
2463 |
|
fi |
2464 |
|
done |
2465 |
|
done |
2466 |
+ |
IFS=$as_save_IFS |
2467 |
|
|
2468 |
|
fi |
2469 |
|
fi |
2470 |
< |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
2471 |
< |
if test -n "$ac_ct_CXX"; then |
2472 |
< |
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
2473 |
< |
echo "${ECHO_T}$ac_ct_CXX" >&6 |
2470 |
> |
ac_cxx_set=$ac_cv_prog_ac_cxx_set |
2471 |
> |
if test -n "$ac_cxx_set"; then |
2472 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cxx_set" >&5 |
2473 |
> |
$as_echo "$ac_cxx_set" >&6; } |
2474 |
|
else |
2475 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
2476 |
< |
echo "${ECHO_T}no" >&6 |
2475 |
> |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
2476 |
> |
$as_echo "no" >&6; } |
2477 |
|
fi |
2478 |
|
|
2479 |
< |
test -n "$ac_ct_CXX" && break |
2479 |
> |
|
2480 |
> |
test -n "$ac_cxx_set" && break |
2481 |
|
done |
2482 |
< |
test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
2482 |
> |
test -n "$ac_cxx_set" || ac_cxx_set="no" |
2483 |
|
|
2484 |
< |
CXX=$ac_ct_CXX |
2484 |
> |
if test $ac_cxx_set != no; then |
2485 |
> |
|
2486 |
> |
# Extract the first word of "$ac_cxx_set", so it can be a program name with args. |
2487 |
> |
set dummy $ac_cxx_set; ac_word=$2 |
2488 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2489 |
> |
$as_echo_n "checking for $ac_word... " >&6; } |
2490 |
> |
if test "${ac_cv_path_ac_cxx_path+set}" = set; then |
2491 |
> |
$as_echo_n "(cached) " >&6 |
2492 |
> |
else |
2493 |
> |
case $ac_cxx_path in |
2494 |
> |
[\\/]* | ?:[\\/]*) |
2495 |
> |
ac_cv_path_ac_cxx_path="$ac_cxx_path" # Let the user override the test with a path. |
2496 |
> |
;; |
2497 |
> |
*) |
2498 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2499 |
> |
for as_dir in $PATH |
2500 |
> |
do |
2501 |
> |
IFS=$as_save_IFS |
2502 |
> |
test -z "$as_dir" && as_dir=. |
2503 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2504 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2505 |
> |
ac_cv_path_ac_cxx_path="$as_dir/$ac_word$ac_exec_ext" |
2506 |
> |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2507 |
> |
break 2 |
2508 |
> |
fi |
2509 |
> |
done |
2510 |
> |
done |
2511 |
> |
IFS=$as_save_IFS |
2512 |
> |
|
2513 |
> |
test -z "$ac_cv_path_ac_cxx_path" && ac_cv_path_ac_cxx_path="no" |
2514 |
> |
;; |
2515 |
> |
esac |
2516 |
|
fi |
2517 |
+ |
ac_cxx_path=$ac_cv_path_ac_cxx_path |
2518 |
+ |
if test -n "$ac_cxx_path"; then |
2519 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_cxx_path" >&5 |
2520 |
+ |
$as_echo "$ac_cxx_path" >&6; } |
2521 |
+ |
else |
2522 |
+ |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
2523 |
+ |
$as_echo "no" >&6; } |
2524 |
+ |
fi |
2525 |
|
|
2526 |
|
|
2527 |
< |
# Provide some information about the compiler. |
1663 |
< |
echo "$as_me:$LINENO:" \ |
1664 |
< |
"checking for C++ compiler version" >&5 |
1665 |
< |
ac_compiler=`set X $ac_compile; echo $2` |
1666 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
1667 |
< |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
1668 |
< |
ac_status=$? |
1669 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1670 |
< |
(exit $ac_status); } |
1671 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
1672 |
< |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
1673 |
< |
ac_status=$? |
1674 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1675 |
< |
(exit $ac_status); } |
1676 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
1677 |
< |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
1678 |
< |
ac_status=$? |
1679 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1680 |
< |
(exit $ac_status); } |
2527 |
> |
else |
2528 |
|
|
2529 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2530 |
< |
/* confdefs.h. */ |
2531 |
< |
_ACEOF |
2532 |
< |
cat confdefs.h >>conftest.$ac_ext |
1686 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
1687 |
< |
/* end confdefs.h. */ |
2529 |
> |
{ { $as_echo "$as_me:$LINENO: error: Specified C++ compiler $CXX doesn't seem to exist!" >&5 |
2530 |
> |
$as_echo "$as_me: error: Specified C++ compiler $CXX doesn't seem to exist!" >&2;} |
2531 |
> |
{ (exit 1); exit 1; }; } |
2532 |
> |
fi |
2533 |
|
|
1689 |
– |
int |
1690 |
– |
main () |
1691 |
– |
{ |
2534 |
|
|
2535 |
< |
; |
1694 |
< |
return 0; |
1695 |
< |
} |
1696 |
< |
_ACEOF |
1697 |
< |
ac_clean_files_save=$ac_clean_files |
1698 |
< |
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
1699 |
< |
# Try to create an executable without -o first, disregard a.out. |
1700 |
< |
# It will help us diagnose broken compilers, and finding out an intuition |
1701 |
< |
# of exeext. |
1702 |
< |
echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
1703 |
< |
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
1704 |
< |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1705 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
1706 |
< |
(eval $ac_link_default) 2>&5 |
1707 |
< |
ac_status=$? |
1708 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1709 |
< |
(exit $ac_status); }; then |
1710 |
< |
# Find the output, starting from the most likely. This scheme is |
1711 |
< |
# not robust to junk in `.', hence go to wildcards (a.*) only as a last |
1712 |
< |
# resort. |
2535 |
> |
if test $ac_cxx_path != no; then |
2536 |
|
|
2537 |
< |
# Be careful to initialize this variable, since it used to be cached. |
2538 |
< |
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
1716 |
< |
ac_cv_exeext= |
1717 |
< |
# b.out is created by i960 compilers. |
1718 |
< |
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
1719 |
< |
do |
1720 |
< |
test -f "$ac_file" || continue |
1721 |
< |
case $ac_file in |
1722 |
< |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
1723 |
< |
;; |
1724 |
< |
conftest.$ac_ext ) |
1725 |
< |
# This is the source file. |
1726 |
< |
;; |
1727 |
< |
[ab].out ) |
1728 |
< |
# We found the default executable, but exeext='' is most |
1729 |
< |
# certainly right. |
1730 |
< |
break;; |
1731 |
< |
*.* ) |
1732 |
< |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1733 |
< |
# FIXME: I believe we export ac_cv_exeext for Libtool, |
1734 |
< |
# but it would be cool to find out if it's true. Does anybody |
1735 |
< |
# maintain Libtool? --akim. |
1736 |
< |
export ac_cv_exeext |
1737 |
< |
break;; |
1738 |
< |
* ) |
1739 |
< |
break;; |
1740 |
< |
esac |
1741 |
< |
done |
2537 |
> |
{ $as_echo "$as_me:$LINENO: Will attempt to use $CXX as C++ compiler" >&5 |
2538 |
> |
$as_echo "$as_me: Will attempt to use $CXX as C++ compiler" >&6;} |
2539 |
|
else |
1743 |
– |
echo "$as_me: failed program was:" >&5 |
1744 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
2540 |
|
|
2541 |
< |
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
2542 |
< |
See \`config.log' for more details." >&5 |
2543 |
< |
echo "$as_me: error: C++ compiler cannot create executables |
1749 |
< |
See \`config.log' for more details." >&2;} |
1750 |
< |
{ (exit 77); exit 77; }; } |
2541 |
> |
{ { $as_echo "$as_me:$LINENO: error: Can't find path to user-specified C++ compiler $CXX" >&5 |
2542 |
> |
$as_echo "$as_me: error: Can't find path to user-specified C++ compiler $CXX" >&2;} |
2543 |
> |
{ (exit 1); exit 1; }; } |
2544 |
|
fi |
2545 |
|
|
2546 |
< |
ac_exeext=$ac_cv_exeext |
1754 |
< |
echo "$as_me:$LINENO: result: $ac_file" >&5 |
1755 |
< |
echo "${ECHO_T}$ac_file" >&6 |
2546 |
> |
fi |
2547 |
|
|
2548 |
< |
# Check the compiler produces executables we can run. If not, either |
2549 |
< |
# the compiler is broken, or we cross compile. |
2550 |
< |
echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
2551 |
< |
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
2552 |
< |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2553 |
< |
# If not cross compiling, check that we can run a simple program. |
2554 |
< |
if test "$cross_compiling" != yes; then |
2555 |
< |
if { ac_try='./$ac_file' |
2556 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2557 |
< |
(eval $ac_try) 2>&5 |
2558 |
< |
ac_status=$? |
2559 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2560 |
< |
(exit $ac_status); }; }; then |
2561 |
< |
cross_compiling=no |
2562 |
< |
else |
2563 |
< |
if test "$cross_compiling" = maybe; then |
2564 |
< |
cross_compiling=yes |
2565 |
< |
else |
2566 |
< |
{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
2567 |
< |
If you meant to cross compile, use \`--host'. |
2568 |
< |
See \`config.log' for more details." >&5 |
2569 |
< |
echo "$as_me: error: cannot run C++ compiled programs. |
2570 |
< |
If you meant to cross compile, use \`--host'. |
1780 |
< |
See \`config.log' for more details." >&2;} |
1781 |
< |
{ (exit 1); exit 1; }; } |
1782 |
< |
fi |
2548 |
> |
if test x"$FC" != x; then |
2549 |
> |
for ac_prog in $FC |
2550 |
> |
do |
2551 |
> |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2552 |
> |
set dummy $ac_prog; ac_word=$2 |
2553 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2554 |
> |
$as_echo_n "checking for $ac_word... " >&6; } |
2555 |
> |
if test "${ac_cv_prog_ac_fc_set+set}" = set; then |
2556 |
> |
$as_echo_n "(cached) " >&6 |
2557 |
> |
else |
2558 |
> |
if test -n "$ac_fc_set"; then |
2559 |
> |
ac_cv_prog_ac_fc_set="$ac_fc_set" # Let the user override the test. |
2560 |
> |
else |
2561 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2562 |
> |
for as_dir in $PATH |
2563 |
> |
do |
2564 |
> |
IFS=$as_save_IFS |
2565 |
> |
test -z "$as_dir" && as_dir=. |
2566 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2567 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2568 |
> |
ac_cv_prog_ac_fc_set="$ac_prog" |
2569 |
> |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2570 |
> |
break 2 |
2571 |
|
fi |
2572 |
+ |
done |
2573 |
+ |
done |
2574 |
+ |
IFS=$as_save_IFS |
2575 |
+ |
|
2576 |
|
fi |
2577 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
2578 |
< |
echo "${ECHO_T}yes" >&6 |
2577 |
> |
fi |
2578 |
> |
ac_fc_set=$ac_cv_prog_ac_fc_set |
2579 |
> |
if test -n "$ac_fc_set"; then |
2580 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_fc_set" >&5 |
2581 |
> |
$as_echo "$ac_fc_set" >&6; } |
2582 |
> |
else |
2583 |
> |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
2584 |
> |
$as_echo "no" >&6; } |
2585 |
> |
fi |
2586 |
|
|
1788 |
– |
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
1789 |
– |
ac_clean_files=$ac_clean_files_save |
1790 |
– |
# Check the compiler produces executables we can run. If not, either |
1791 |
– |
# the compiler is broken, or we cross compile. |
1792 |
– |
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
1793 |
– |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
1794 |
– |
echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
1795 |
– |
echo "${ECHO_T}$cross_compiling" >&6 |
2587 |
|
|
2588 |
< |
echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
1798 |
< |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
1799 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
1800 |
< |
(eval $ac_link) 2>&5 |
1801 |
< |
ac_status=$? |
1802 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1803 |
< |
(exit $ac_status); }; then |
1804 |
< |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
1805 |
< |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
1806 |
< |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
1807 |
< |
# `rm'. |
1808 |
< |
for ac_file in conftest.exe conftest conftest.*; do |
1809 |
< |
test -f "$ac_file" || continue |
1810 |
< |
case $ac_file in |
1811 |
< |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
1812 |
< |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1813 |
< |
export ac_cv_exeext |
1814 |
< |
break;; |
1815 |
< |
* ) break;; |
1816 |
< |
esac |
2588 |
> |
test -n "$ac_fc_set" && break |
2589 |
|
done |
2590 |
+ |
test -n "$ac_fc_set" || ac_fc_set="no" |
2591 |
+ |
|
2592 |
+ |
if test $ac_fc_set != no; then |
2593 |
+ |
|
2594 |
+ |
# Extract the first word of "$ac_fc_set", so it can be a program name with args. |
2595 |
+ |
set dummy $ac_fc_set; ac_word=$2 |
2596 |
+ |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2597 |
+ |
$as_echo_n "checking for $ac_word... " >&6; } |
2598 |
+ |
if test "${ac_cv_path_ac_fc_path+set}" = set; then |
2599 |
+ |
$as_echo_n "(cached) " >&6 |
2600 |
|
else |
2601 |
< |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2602 |
< |
See \`config.log' for more details." >&5 |
2603 |
< |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2604 |
< |
See \`config.log' for more details." >&2;} |
2605 |
< |
{ (exit 1); exit 1; }; } |
2601 |
> |
case $ac_fc_path in |
2602 |
> |
[\\/]* | ?:[\\/]*) |
2603 |
> |
ac_cv_path_ac_fc_path="$ac_fc_path" # Let the user override the test with a path. |
2604 |
> |
;; |
2605 |
> |
*) |
2606 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2607 |
> |
for as_dir in $PATH |
2608 |
> |
do |
2609 |
> |
IFS=$as_save_IFS |
2610 |
> |
test -z "$as_dir" && as_dir=. |
2611 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2612 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2613 |
> |
ac_cv_path_ac_fc_path="$as_dir/$ac_word$ac_exec_ext" |
2614 |
> |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2615 |
> |
break 2 |
2616 |
> |
fi |
2617 |
> |
done |
2618 |
> |
done |
2619 |
> |
IFS=$as_save_IFS |
2620 |
> |
|
2621 |
> |
test -z "$ac_cv_path_ac_fc_path" && ac_cv_path_ac_fc_path="no" |
2622 |
> |
;; |
2623 |
> |
esac |
2624 |
|
fi |
2625 |
+ |
ac_fc_path=$ac_cv_path_ac_fc_path |
2626 |
+ |
if test -n "$ac_fc_path"; then |
2627 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_fc_path" >&5 |
2628 |
+ |
$as_echo "$ac_fc_path" >&6; } |
2629 |
+ |
else |
2630 |
+ |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
2631 |
+ |
$as_echo "no" >&6; } |
2632 |
+ |
fi |
2633 |
|
|
1826 |
– |
rm -f conftest$ac_cv_exeext |
1827 |
– |
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
1828 |
– |
echo "${ECHO_T}$ac_cv_exeext" >&6 |
2634 |
|
|
1830 |
– |
rm -f conftest.$ac_ext |
1831 |
– |
EXEEXT=$ac_cv_exeext |
1832 |
– |
ac_exeext=$EXEEXT |
1833 |
– |
echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
1834 |
– |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
1835 |
– |
if test "${ac_cv_objext+set}" = set; then |
1836 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2635 |
|
else |
1838 |
– |
cat >conftest.$ac_ext <<_ACEOF |
1839 |
– |
/* confdefs.h. */ |
1840 |
– |
_ACEOF |
1841 |
– |
cat confdefs.h >>conftest.$ac_ext |
1842 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
1843 |
– |
/* end confdefs.h. */ |
2636 |
|
|
2637 |
< |
int |
2638 |
< |
main () |
2639 |
< |
{ |
2637 |
> |
{ { $as_echo "$as_me:$LINENO: error: Specified Fortran compiler $FC doesn't seem to exist!" >&5 |
2638 |
> |
$as_echo "$as_me: error: Specified Fortran compiler $FC doesn't seem to exist!" >&2;} |
2639 |
> |
{ (exit 1); exit 1; }; } |
2640 |
> |
fi |
2641 |
|
|
2642 |
< |
; |
2643 |
< |
return 0; |
2644 |
< |
} |
2645 |
< |
_ACEOF |
2646 |
< |
rm -f conftest.o conftest.obj |
1854 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1855 |
< |
(eval $ac_compile) 2>&5 |
1856 |
< |
ac_status=$? |
1857 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1858 |
< |
(exit $ac_status); }; then |
1859 |
< |
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
1860 |
< |
case $ac_file in |
1861 |
< |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
1862 |
< |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
1863 |
< |
break;; |
1864 |
< |
esac |
1865 |
< |
done |
2642 |
> |
|
2643 |
> |
if test $ac_fc_path != no; then |
2644 |
> |
|
2645 |
> |
{ $as_echo "$as_me:$LINENO: Will attempt to use $FC as Fortran compiler" >&5 |
2646 |
> |
$as_echo "$as_me: Will attempt to use $FC as Fortran compiler" >&6;} |
2647 |
|
else |
1867 |
– |
echo "$as_me: failed program was:" >&5 |
1868 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
2648 |
|
|
2649 |
< |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2650 |
< |
See \`config.log' for more details." >&5 |
1872 |
< |
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
1873 |
< |
See \`config.log' for more details." >&2;} |
2649 |
> |
{ { $as_echo "$as_me:$LINENO: error: Can't find path to user-specified Fortran compiler $FC" >&5 |
2650 |
> |
$as_echo "$as_me: error: Can't find path to user-specified Fortran compiler $FC" >&2;} |
2651 |
|
{ (exit 1); exit 1; }; } |
2652 |
|
fi |
2653 |
|
|
1877 |
– |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2654 |
|
fi |
1879 |
– |
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
1880 |
– |
echo "${ECHO_T}$ac_cv_objext" >&6 |
1881 |
– |
OBJEXT=$ac_cv_objext |
1882 |
– |
ac_objext=$OBJEXT |
1883 |
– |
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
1884 |
– |
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
1885 |
– |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
1886 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1887 |
– |
else |
1888 |
– |
cat >conftest.$ac_ext <<_ACEOF |
1889 |
– |
/* confdefs.h. */ |
1890 |
– |
_ACEOF |
1891 |
– |
cat confdefs.h >>conftest.$ac_ext |
1892 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
1893 |
– |
/* end confdefs.h. */ |
2655 |
|
|
1895 |
– |
int |
1896 |
– |
main () |
1897 |
– |
{ |
1898 |
– |
#ifndef __GNUC__ |
1899 |
– |
choke me |
1900 |
– |
#endif |
2656 |
|
|
1902 |
– |
; |
1903 |
– |
return 0; |
1904 |
– |
} |
1905 |
– |
_ACEOF |
1906 |
– |
rm -f conftest.$ac_objext |
1907 |
– |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1908 |
– |
(eval $ac_compile) 2>conftest.er1 |
1909 |
– |
ac_status=$? |
1910 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
1911 |
– |
rm -f conftest.er1 |
1912 |
– |
cat conftest.err >&5 |
1913 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1914 |
– |
(exit $ac_status); } && |
1915 |
– |
{ ac_try='test -z "$ac_cxx_werror_flag" |
1916 |
– |
|| test ! -s conftest.err' |
1917 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1918 |
– |
(eval $ac_try) 2>&5 |
1919 |
– |
ac_status=$? |
1920 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1921 |
– |
(exit $ac_status); }; } && |
1922 |
– |
{ ac_try='test -s conftest.$ac_objext' |
1923 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1924 |
– |
(eval $ac_try) 2>&5 |
1925 |
– |
ac_status=$? |
1926 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1927 |
– |
(exit $ac_status); }; }; then |
1928 |
– |
ac_compiler_gnu=yes |
1929 |
– |
else |
1930 |
– |
echo "$as_me: failed program was:" >&5 |
1931 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
2657 |
|
|
1933 |
– |
ac_compiler_gnu=no |
1934 |
– |
fi |
1935 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1936 |
– |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
2658 |
|
|
2659 |
< |
fi |
2660 |
< |
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
2661 |
< |
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
1941 |
< |
GXX=`test $ac_compiler_gnu = yes && echo yes` |
1942 |
< |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
1943 |
< |
ac_save_CXXFLAGS=$CXXFLAGS |
1944 |
< |
CXXFLAGS="-g" |
1945 |
< |
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
1946 |
< |
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
1947 |
< |
if test "${ac_cv_prog_cxx_g+set}" = set; then |
1948 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2659 |
> |
# Check whether --with-mpi was given. |
2660 |
> |
if test "${with_mpi+set}" = set; then |
2661 |
> |
withval=$with_mpi; |
2662 |
|
else |
2663 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2664 |
< |
/* confdefs.h. */ |
1952 |
< |
_ACEOF |
1953 |
< |
cat confdefs.h >>conftest.$ac_ext |
1954 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
1955 |
< |
/* end confdefs.h. */ |
2663 |
> |
with_mpi="auto" |
2664 |
> |
fi |
2665 |
|
|
2666 |
< |
int |
1958 |
< |
main () |
1959 |
< |
{ |
2666 |
> |
if test "x$with_mpi" != "xno"; then |
2667 |
|
|
2668 |
< |
; |
2669 |
< |
return 0; |
2670 |
< |
} |
2671 |
< |
_ACEOF |
2672 |
< |
rm -f conftest.$ac_objext |
2673 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2674 |
< |
(eval $ac_compile) 2>conftest.er1 |
2675 |
< |
ac_status=$? |
2676 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
1970 |
< |
rm -f conftest.er1 |
1971 |
< |
cat conftest.err >&5 |
1972 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1973 |
< |
(exit $ac_status); } && |
1974 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
1975 |
< |
|| test ! -s conftest.err' |
1976 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1977 |
< |
(eval $ac_try) 2>&5 |
1978 |
< |
ac_status=$? |
1979 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1980 |
< |
(exit $ac_status); }; } && |
1981 |
< |
{ ac_try='test -s conftest.$ac_objext' |
1982 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1983 |
< |
(eval $ac_try) 2>&5 |
1984 |
< |
ac_status=$? |
1985 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1986 |
< |
(exit $ac_status); }; }; then |
1987 |
< |
ac_cv_prog_cxx_g=yes |
2668 |
> |
|
2669 |
> |
for ac_prog in $CC openmpicc mpicc |
2670 |
> |
do |
2671 |
> |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2672 |
> |
set dummy $ac_prog; ac_word=$2 |
2673 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2674 |
> |
$as_echo_n "checking for $ac_word... " >&6; } |
2675 |
> |
if test "${ac_cv_prog_acx_mpi_mpicc+set}" = set; then |
2676 |
> |
$as_echo_n "(cached) " >&6 |
2677 |
|
else |
2678 |
< |
echo "$as_me: failed program was:" >&5 |
2679 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
2678 |
> |
if test -n "$acx_mpi_mpicc"; then |
2679 |
> |
ac_cv_prog_acx_mpi_mpicc="$acx_mpi_mpicc" # Let the user override the test. |
2680 |
> |
else |
2681 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2682 |
> |
for as_dir in $PATH |
2683 |
> |
do |
2684 |
> |
IFS=$as_save_IFS |
2685 |
> |
test -z "$as_dir" && as_dir=. |
2686 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2687 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2688 |
> |
ac_cv_prog_acx_mpi_mpicc="$ac_prog" |
2689 |
> |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2690 |
> |
break 2 |
2691 |
> |
fi |
2692 |
> |
done |
2693 |
> |
done |
2694 |
> |
IFS=$as_save_IFS |
2695 |
|
|
1992 |
– |
ac_cv_prog_cxx_g=no |
2696 |
|
fi |
1994 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2697 |
|
fi |
2698 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
2699 |
< |
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
2700 |
< |
if test "$ac_test_CXXFLAGS" = set; then |
2701 |
< |
CXXFLAGS=$ac_save_CXXFLAGS |
2000 |
< |
elif test $ac_cv_prog_cxx_g = yes; then |
2001 |
< |
if test "$GXX" = yes; then |
2002 |
< |
CXXFLAGS="-g -O2" |
2003 |
< |
else |
2004 |
< |
CXXFLAGS="-g" |
2005 |
< |
fi |
2698 |
> |
acx_mpi_mpicc=$ac_cv_prog_acx_mpi_mpicc |
2699 |
> |
if test -n "$acx_mpi_mpicc"; then |
2700 |
> |
{ $as_echo "$as_me:$LINENO: result: $acx_mpi_mpicc" >&5 |
2701 |
> |
$as_echo "$acx_mpi_mpicc" >&6; } |
2702 |
|
else |
2703 |
< |
if test "$GXX" = yes; then |
2704 |
< |
CXXFLAGS="-O2" |
2009 |
< |
else |
2010 |
< |
CXXFLAGS= |
2011 |
< |
fi |
2703 |
> |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
2704 |
> |
$as_echo "no" >&6; } |
2705 |
|
fi |
2706 |
< |
for ac_declaration in \ |
2707 |
< |
'' \ |
2708 |
< |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2709 |
< |
'extern "C" void std::exit (int); using std::exit;' \ |
2710 |
< |
'extern "C" void exit (int) throw ();' \ |
2711 |
< |
'extern "C" void exit (int);' \ |
2712 |
< |
'void exit (int);' |
2706 |
> |
|
2707 |
> |
|
2708 |
> |
test -n "$acx_mpi_mpicc" && break |
2709 |
> |
done |
2710 |
> |
test -n "$acx_mpi_mpicc" || acx_mpi_mpicc="no" |
2711 |
> |
|
2712 |
> |
if test $acx_mpi_mpicc != no; then |
2713 |
> |
|
2714 |
> |
# Extract the first word of "$acx_mpi_mpicc", so it can be a program name with args. |
2715 |
> |
set dummy $acx_mpi_mpicc; ac_word=$2 |
2716 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2717 |
> |
$as_echo_n "checking for $ac_word... " >&6; } |
2718 |
> |
if test "${ac_cv_path_acx_mpi_mpicc_path+set}" = set; then |
2719 |
> |
$as_echo_n "(cached) " >&6 |
2720 |
> |
else |
2721 |
> |
case $acx_mpi_mpicc_path in |
2722 |
> |
[\\/]* | ?:[\\/]*) |
2723 |
> |
ac_cv_path_acx_mpi_mpicc_path="$acx_mpi_mpicc_path" # Let the user override the test with a path. |
2724 |
> |
;; |
2725 |
> |
*) |
2726 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2727 |
> |
for as_dir in $PATH |
2728 |
|
do |
2729 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2730 |
< |
/* confdefs.h. */ |
2731 |
< |
_ACEOF |
2732 |
< |
cat confdefs.h >>conftest.$ac_ext |
2733 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
2734 |
< |
/* end confdefs.h. */ |
2735 |
< |
$ac_declaration |
2736 |
< |
#include <stdlib.h> |
2737 |
< |
int |
2738 |
< |
main () |
2739 |
< |
{ |
2740 |
< |
exit (42); |
2741 |
< |
; |
2742 |
< |
return 0; |
2743 |
< |
} |
2744 |
< |
_ACEOF |
2745 |
< |
rm -f conftest.$ac_objext |
2746 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2747 |
< |
(eval $ac_compile) 2>conftest.er1 |
2748 |
< |
ac_status=$? |
2041 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
2042 |
< |
rm -f conftest.er1 |
2043 |
< |
cat conftest.err >&5 |
2044 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2045 |
< |
(exit $ac_status); } && |
2046 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
2047 |
< |
|| test ! -s conftest.err' |
2048 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2049 |
< |
(eval $ac_try) 2>&5 |
2050 |
< |
ac_status=$? |
2051 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2052 |
< |
(exit $ac_status); }; } && |
2053 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2054 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2055 |
< |
(eval $ac_try) 2>&5 |
2056 |
< |
ac_status=$? |
2057 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2058 |
< |
(exit $ac_status); }; }; then |
2059 |
< |
: |
2729 |
> |
IFS=$as_save_IFS |
2730 |
> |
test -z "$as_dir" && as_dir=. |
2731 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2732 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2733 |
> |
ac_cv_path_acx_mpi_mpicc_path="$as_dir/$ac_word$ac_exec_ext" |
2734 |
> |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2735 |
> |
break 2 |
2736 |
> |
fi |
2737 |
> |
done |
2738 |
> |
done |
2739 |
> |
IFS=$as_save_IFS |
2740 |
> |
|
2741 |
> |
test -z "$ac_cv_path_acx_mpi_mpicc_path" && ac_cv_path_acx_mpi_mpicc_path="no" |
2742 |
> |
;; |
2743 |
> |
esac |
2744 |
> |
fi |
2745 |
> |
acx_mpi_mpicc_path=$ac_cv_path_acx_mpi_mpicc_path |
2746 |
> |
if test -n "$acx_mpi_mpicc_path"; then |
2747 |
> |
{ $as_echo "$as_me:$LINENO: result: $acx_mpi_mpicc_path" >&5 |
2748 |
> |
$as_echo "$acx_mpi_mpicc_path" >&6; } |
2749 |
|
else |
2750 |
< |
echo "$as_me: failed program was:" >&5 |
2751 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
2750 |
> |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
2751 |
> |
$as_echo "no" >&6; } |
2752 |
> |
fi |
2753 |
|
|
2754 |
< |
continue |
2754 |
> |
|
2755 |
|
fi |
2756 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2757 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2758 |
< |
/* confdefs.h. */ |
2759 |
< |
_ACEOF |
2760 |
< |
cat confdefs.h >>conftest.$ac_ext |
2761 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
2762 |
< |
/* end confdefs.h. */ |
2763 |
< |
$ac_declaration |
2764 |
< |
int |
2075 |
< |
main () |
2076 |
< |
{ |
2077 |
< |
exit (42); |
2078 |
< |
; |
2079 |
< |
return 0; |
2080 |
< |
} |
2081 |
< |
_ACEOF |
2082 |
< |
rm -f conftest.$ac_objext |
2083 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2084 |
< |
(eval $ac_compile) 2>conftest.er1 |
2085 |
< |
ac_status=$? |
2086 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
2087 |
< |
rm -f conftest.er1 |
2088 |
< |
cat conftest.err >&5 |
2089 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2090 |
< |
(exit $ac_status); } && |
2091 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
2092 |
< |
|| test ! -s conftest.err' |
2093 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2094 |
< |
(eval $ac_try) 2>&5 |
2095 |
< |
ac_status=$? |
2096 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2097 |
< |
(exit $ac_status); }; } && |
2098 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2099 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2100 |
< |
(eval $ac_try) 2>&5 |
2101 |
< |
ac_status=$? |
2102 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2103 |
< |
(exit $ac_status); }; }; then |
2104 |
< |
break |
2756 |
> |
|
2757 |
> |
for ac_prog in $FC openmpif90 mpif90 |
2758 |
> |
do |
2759 |
> |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2760 |
> |
set dummy $ac_prog; ac_word=$2 |
2761 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2762 |
> |
$as_echo_n "checking for $ac_word... " >&6; } |
2763 |
> |
if test "${ac_cv_prog_acx_mpi_mpif90+set}" = set; then |
2764 |
> |
$as_echo_n "(cached) " >&6 |
2765 |
|
else |
2766 |
< |
echo "$as_me: failed program was:" >&5 |
2767 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
2766 |
> |
if test -n "$acx_mpi_mpif90"; then |
2767 |
> |
ac_cv_prog_acx_mpi_mpif90="$acx_mpi_mpif90" # Let the user override the test. |
2768 |
> |
else |
2769 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2770 |
> |
for as_dir in $PATH |
2771 |
> |
do |
2772 |
> |
IFS=$as_save_IFS |
2773 |
> |
test -z "$as_dir" && as_dir=. |
2774 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2775 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2776 |
> |
ac_cv_prog_acx_mpi_mpif90="$ac_prog" |
2777 |
> |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2778 |
> |
break 2 |
2779 |
> |
fi |
2780 |
> |
done |
2781 |
> |
done |
2782 |
> |
IFS=$as_save_IFS |
2783 |
|
|
2784 |
|
fi |
2110 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2111 |
– |
done |
2112 |
– |
rm -f conftest* |
2113 |
– |
if test -n "$ac_declaration"; then |
2114 |
– |
echo '#ifdef __cplusplus' >>confdefs.h |
2115 |
– |
echo $ac_declaration >>confdefs.h |
2116 |
– |
echo '#endif' >>confdefs.h |
2785 |
|
fi |
2786 |
+ |
acx_mpi_mpif90=$ac_cv_prog_acx_mpi_mpif90 |
2787 |
+ |
if test -n "$acx_mpi_mpif90"; then |
2788 |
+ |
{ $as_echo "$as_me:$LINENO: result: $acx_mpi_mpif90" >&5 |
2789 |
+ |
$as_echo "$acx_mpi_mpif90" >&6; } |
2790 |
+ |
else |
2791 |
+ |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
2792 |
+ |
$as_echo "no" >&6; } |
2793 |
+ |
fi |
2794 |
|
|
2119 |
– |
ac_ext=c |
2120 |
– |
ac_cpp='$CPP $CPPFLAGS' |
2121 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2122 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2123 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2795 |
|
|
2796 |
< |
ac_ext=c |
2797 |
< |
ac_cpp='$CPP $CPPFLAGS' |
2798 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2799 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2800 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2801 |
< |
if test -n "$ac_tool_prefix"; then |
2802 |
< |
for ac_prog in pathcc icc xlc gcc cc |
2803 |
< |
do |
2804 |
< |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2805 |
< |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2806 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2807 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2137 |
< |
if test "${ac_cv_prog_CC+set}" = set; then |
2138 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2796 |
> |
test -n "$acx_mpi_mpif90" && break |
2797 |
> |
done |
2798 |
> |
test -n "$acx_mpi_mpif90" || acx_mpi_mpif90="no" |
2799 |
> |
|
2800 |
> |
if test $acx_mpi_mpif90 != no; then |
2801 |
> |
|
2802 |
> |
# Extract the first word of "$acx_mpi_mpif90", so it can be a program name with args. |
2803 |
> |
set dummy $acx_mpi_mpif90; ac_word=$2 |
2804 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2805 |
> |
$as_echo_n "checking for $ac_word... " >&6; } |
2806 |
> |
if test "${ac_cv_path_acx_mpi_mpif90_path+set}" = set; then |
2807 |
> |
$as_echo_n "(cached) " >&6 |
2808 |
|
else |
2809 |
< |
if test -n "$CC"; then |
2810 |
< |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2811 |
< |
else |
2812 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2809 |
> |
case $acx_mpi_mpif90_path in |
2810 |
> |
[\\/]* | ?:[\\/]*) |
2811 |
> |
ac_cv_path_acx_mpi_mpif90_path="$acx_mpi_mpif90_path" # Let the user override the test with a path. |
2812 |
> |
;; |
2813 |
> |
*) |
2814 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2815 |
|
for as_dir in $PATH |
2816 |
|
do |
2817 |
|
IFS=$as_save_IFS |
2818 |
|
test -z "$as_dir" && as_dir=. |
2819 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2820 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2821 |
< |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2822 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2820 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2821 |
> |
ac_cv_path_acx_mpi_mpif90_path="$as_dir/$ac_word$ac_exec_ext" |
2822 |
> |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2823 |
|
break 2 |
2824 |
|
fi |
2825 |
|
done |
2826 |
|
done |
2827 |
+ |
IFS=$as_save_IFS |
2828 |
|
|
2829 |
+ |
test -z "$ac_cv_path_acx_mpi_mpif90_path" && ac_cv_path_acx_mpi_mpif90_path="no" |
2830 |
+ |
;; |
2831 |
+ |
esac |
2832 |
|
fi |
2833 |
< |
fi |
2834 |
< |
CC=$ac_cv_prog_CC |
2835 |
< |
if test -n "$CC"; then |
2836 |
< |
echo "$as_me:$LINENO: result: $CC" >&5 |
2162 |
< |
echo "${ECHO_T}$CC" >&6 |
2833 |
> |
acx_mpi_mpif90_path=$ac_cv_path_acx_mpi_mpif90_path |
2834 |
> |
if test -n "$acx_mpi_mpif90_path"; then |
2835 |
> |
{ $as_echo "$as_me:$LINENO: result: $acx_mpi_mpif90_path" >&5 |
2836 |
> |
$as_echo "$acx_mpi_mpif90_path" >&6; } |
2837 |
|
else |
2838 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
2839 |
< |
echo "${ECHO_T}no" >&6 |
2838 |
> |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
2839 |
> |
$as_echo "no" >&6; } |
2840 |
|
fi |
2841 |
|
|
2842 |
< |
test -n "$CC" && break |
2169 |
< |
done |
2842 |
> |
|
2843 |
|
fi |
2844 |
< |
if test -z "$CC"; then |
2845 |
< |
ac_ct_CC=$CC |
2173 |
< |
for ac_prog in pathcc icc xlc gcc cc |
2844 |
> |
|
2845 |
> |
for ac_prog in $CXX openmpicxx openmpiCC openmpic++ mpicxx mpiCC mpic++ |
2846 |
|
do |
2847 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2848 |
|
set dummy $ac_prog; ac_word=$2 |
2849 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2850 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2851 |
< |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2852 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2849 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2850 |
> |
$as_echo_n "checking for $ac_word... " >&6; } |
2851 |
> |
if test "${ac_cv_prog_acx_mpi_mpicxx+set}" = set; then |
2852 |
> |
$as_echo_n "(cached) " >&6 |
2853 |
|
else |
2854 |
< |
if test -n "$ac_ct_CC"; then |
2855 |
< |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2854 |
> |
if test -n "$acx_mpi_mpicxx"; then |
2855 |
> |
ac_cv_prog_acx_mpi_mpicxx="$acx_mpi_mpicxx" # Let the user override the test. |
2856 |
|
else |
2857 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2858 |
|
for as_dir in $PATH |
2860 |
|
IFS=$as_save_IFS |
2861 |
|
test -z "$as_dir" && as_dir=. |
2862 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2863 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2864 |
< |
ac_cv_prog_ac_ct_CC="$ac_prog" |
2865 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2863 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2864 |
> |
ac_cv_prog_acx_mpi_mpicxx="$ac_prog" |
2865 |
> |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2866 |
|
break 2 |
2867 |
|
fi |
2868 |
|
done |
2869 |
|
done |
2870 |
+ |
IFS=$as_save_IFS |
2871 |
|
|
2872 |
|
fi |
2873 |
|
fi |
2874 |
< |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2875 |
< |
if test -n "$ac_ct_CC"; then |
2876 |
< |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2877 |
< |
echo "${ECHO_T}$ac_ct_CC" >&6 |
2874 |
> |
acx_mpi_mpicxx=$ac_cv_prog_acx_mpi_mpicxx |
2875 |
> |
if test -n "$acx_mpi_mpicxx"; then |
2876 |
> |
{ $as_echo "$as_me:$LINENO: result: $acx_mpi_mpicxx" >&5 |
2877 |
> |
$as_echo "$acx_mpi_mpicxx" >&6; } |
2878 |
|
else |
2879 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
2880 |
< |
echo "${ECHO_T}no" >&6 |
2879 |
> |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
2880 |
> |
$as_echo "no" >&6; } |
2881 |
|
fi |
2882 |
|
|
2883 |
< |
test -n "$ac_ct_CC" && break |
2883 |
> |
|
2884 |
> |
test -n "$acx_mpi_mpicxx" && break |
2885 |
|
done |
2886 |
+ |
test -n "$acx_mpi_mpicxx" || acx_mpi_mpicxx="no" |
2887 |
|
|
2888 |
< |
CC=$ac_ct_CC |
2888 |
> |
if test $acx_mpi_mpicxx != no; then |
2889 |
> |
|
2890 |
> |
# Extract the first word of "$acx_mpi_mpicxx", so it can be a program name with args. |
2891 |
> |
set dummy $acx_mpi_mpicxx; ac_word=$2 |
2892 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2893 |
> |
$as_echo_n "checking for $ac_word... " >&6; } |
2894 |
> |
if test "${ac_cv_path_acx_mpi_mpicxx_path+set}" = set; then |
2895 |
> |
$as_echo_n "(cached) " >&6 |
2896 |
> |
else |
2897 |
> |
case $acx_mpi_mpicxx_path in |
2898 |
> |
[\\/]* | ?:[\\/]*) |
2899 |
> |
ac_cv_path_acx_mpi_mpicxx_path="$acx_mpi_mpicxx_path" # Let the user override the test with a path. |
2900 |
> |
;; |
2901 |
> |
*) |
2902 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2903 |
> |
for as_dir in $PATH |
2904 |
> |
do |
2905 |
> |
IFS=$as_save_IFS |
2906 |
> |
test -z "$as_dir" && as_dir=. |
2907 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2908 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2909 |
> |
ac_cv_path_acx_mpi_mpicxx_path="$as_dir/$ac_word$ac_exec_ext" |
2910 |
> |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2911 |
> |
break 2 |
2912 |
> |
fi |
2913 |
> |
done |
2914 |
> |
done |
2915 |
> |
IFS=$as_save_IFS |
2916 |
> |
|
2917 |
> |
test -z "$ac_cv_path_acx_mpi_mpicxx_path" && ac_cv_path_acx_mpi_mpicxx_path="no" |
2918 |
> |
;; |
2919 |
> |
esac |
2920 |
|
fi |
2921 |
+ |
acx_mpi_mpicxx_path=$ac_cv_path_acx_mpi_mpicxx_path |
2922 |
+ |
if test -n "$acx_mpi_mpicxx_path"; then |
2923 |
+ |
{ $as_echo "$as_me:$LINENO: result: $acx_mpi_mpicxx_path" >&5 |
2924 |
+ |
$as_echo "$acx_mpi_mpicxx_path" >&6; } |
2925 |
+ |
else |
2926 |
+ |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
2927 |
+ |
$as_echo "no" >&6; } |
2928 |
+ |
fi |
2929 |
|
|
2930 |
|
|
2931 |
< |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2218 |
< |
See \`config.log' for more details." >&5 |
2219 |
< |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
2220 |
< |
See \`config.log' for more details." >&2;} |
2221 |
< |
{ (exit 1); exit 1; }; } |
2931 |
> |
fi |
2932 |
|
|
2933 |
< |
# Provide some information about the compiler. |
2224 |
< |
echo "$as_me:$LINENO:" \ |
2225 |
< |
"checking for C compiler version" >&5 |
2226 |
< |
ac_compiler=`set X $ac_compile; echo $2` |
2227 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2228 |
< |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
2229 |
< |
ac_status=$? |
2230 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2231 |
< |
(exit $ac_status); } |
2232 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2233 |
< |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
2234 |
< |
ac_status=$? |
2235 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2236 |
< |
(exit $ac_status); } |
2237 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2238 |
< |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
2239 |
< |
ac_status=$? |
2240 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2241 |
< |
(exit $ac_status); } |
2933 |
> |
if test $acx_mpi_mpicc = no; then |
2934 |
|
|
2935 |
< |
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2936 |
< |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2937 |
< |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2938 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2935 |
> |
if test $acx_mpi_mpicxx = no; then |
2936 |
> |
|
2937 |
> |
acx_mpi_compiler=no |
2938 |
> |
|
2939 |
|
else |
2940 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2940 |
> |
|
2941 |
> |
acx_mpi_compiler=$acx_mpi_mpicxx |
2942 |
> |
acx_mpi_compiler_path=$acx_mpi_mpicxx_path |
2943 |
> |
fi |
2944 |
> |
|
2945 |
> |
|
2946 |
> |
else |
2947 |
> |
|
2948 |
> |
if test $acx_mpi_mpicxx = no; then |
2949 |
> |
|
2950 |
> |
acx_mpi_compiler=$acx_mpi_mpicc |
2951 |
> |
acx_mpi_compiler_path=$acx_mpi_mpicc_path |
2952 |
> |
|
2953 |
> |
else |
2954 |
> |
|
2955 |
> |
{ $as_echo "$as_me:$LINENO: checking whether to use $acx_mpi_mpicc or $acx_mpi_mpicxx" >&5 |
2956 |
> |
$as_echo_n "checking whether to use $acx_mpi_mpicc or $acx_mpi_mpicxx... " >&6; } |
2957 |
> |
ac_ext=cpp |
2958 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
2959 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2960 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2961 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2962 |
> |
|
2963 |
> |
cat >conftest.$ac_ext <<_ACEOF |
2964 |
|
/* confdefs.h. */ |
2965 |
|
_ACEOF |
2966 |
|
cat confdefs.h >>conftest.$ac_ext |
2967 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2968 |
|
/* end confdefs.h. */ |
2969 |
|
|
2970 |
+ |
#include <mpi.h> |
2971 |
+ |
|
2972 |
|
int |
2973 |
|
main () |
2974 |
|
{ |
2258 |
– |
#ifndef __GNUC__ |
2259 |
– |
choke me |
2260 |
– |
#endif |
2975 |
|
|
2976 |
+ |
MPI_Finalize(); |
2977 |
+ |
|
2978 |
|
; |
2979 |
|
return 0; |
2980 |
|
} |
2981 |
|
_ACEOF |
2982 |
< |
rm -f conftest.$ac_objext |
2983 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2984 |
< |
(eval $ac_compile) 2>conftest.er1 |
2982 |
> |
if { (ac_try="$acx_mpi_mpicxx_path -c conftest.$ac_ext >&5" |
2983 |
> |
case "(($ac_try" in |
2984 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2985 |
> |
*) ac_try_echo=$ac_try;; |
2986 |
> |
esac |
2987 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2988 |
> |
$as_echo "$ac_try_echo") >&5 |
2989 |
> |
(eval "$acx_mpi_mpicxx_path -c conftest.$ac_ext >&5") 2>conftest.er1 |
2990 |
|
ac_status=$? |
2991 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
2992 |
|
rm -f conftest.er1 |
2993 |
|
cat conftest.err >&5 |
2994 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2995 |
< |
(exit $ac_status); } && |
2996 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
2997 |
< |
|| test ! -s conftest.err' |
2998 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2999 |
< |
(eval $ac_try) 2>&5 |
3000 |
< |
ac_status=$? |
3001 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3002 |
< |
(exit $ac_status); }; } && |
2282 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2283 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2284 |
< |
(eval $ac_try) 2>&5 |
2285 |
< |
ac_status=$? |
2286 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2287 |
< |
(exit $ac_status); }; }; then |
2288 |
< |
ac_compiler_gnu=yes |
2994 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2995 |
> |
(exit $ac_status); } && { |
2996 |
> |
test -z "$ac_cxx_werror_flag" || |
2997 |
> |
test ! -s conftest.err |
2998 |
> |
} && test -s conftest.$ac_objext; then |
2999 |
> |
|
3000 |
> |
acx_mpi_compiler=$acx_mpi_mpicxx |
3001 |
> |
acx_mpi_compiler_path=$acx_mpi_mpicxx_path |
3002 |
> |
|
3003 |
|
else |
2290 |
– |
echo "$as_me: failed program was:" >&5 |
2291 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
3004 |
|
|
3005 |
< |
ac_compiler_gnu=no |
3005 |
> |
acx_mpi_compiler=$acx_mpi_mpicc |
3006 |
> |
acx_mpi_compiler_path=$acx_mpi_mpicc_path |
3007 |
|
fi |
2295 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2296 |
– |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3008 |
|
|
3009 |
+ |
ac_ext=c |
3010 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
3011 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3012 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3013 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3014 |
+ |
|
3015 |
+ |
{ $as_echo "$as_me:$LINENO: result: $acx_mpi_compiler" >&5 |
3016 |
+ |
$as_echo "$acx_mpi_compiler" >&6; } |
3017 |
|
fi |
3018 |
< |
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3019 |
< |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
3020 |
< |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
3021 |
< |
ac_test_CFLAGS=${CFLAGS+set} |
3022 |
< |
ac_save_CFLAGS=$CFLAGS |
3023 |
< |
CFLAGS="-g" |
3024 |
< |
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3025 |
< |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
3026 |
< |
if test "${ac_cv_prog_cc_g+set}" = set; then |
3027 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3018 |
> |
|
3019 |
> |
fi |
3020 |
> |
|
3021 |
> |
{ $as_echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5 |
3022 |
> |
$as_echo_n "checking whether mpif.h is usable... " >&6; } |
3023 |
> |
ac_ext=${ac_fc_srcext-f} |
3024 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
3025 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
3026 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
3027 |
> |
|
3028 |
> |
ac_save_ext=$ac_ext |
3029 |
> |
ac_ext=F90 |
3030 |
> |
rm -f conftest* |
3031 |
> |
cat >conftest.$ac_ext <<EOF |
3032 |
> |
program main |
3033 |
> |
include 'mpif.h' |
3034 |
> |
call MPI_Init |
3035 |
> |
end |
3036 |
> |
EOF |
3037 |
> |
if $acx_mpi_mpif90_path -c conftest.$ac_ext > conftest.out 2>&1 ; then |
3038 |
> |
acx_mpi_f90_compiler=yes |
3039 |
> |
{ $as_echo "$as_me:$LINENO: result: yes" >&5 |
3040 |
> |
$as_echo "yes" >&6; } |
3041 |
|
else |
3042 |
< |
cat >conftest.$ac_ext <<_ACEOF |
3043 |
< |
/* confdefs.h. */ |
3044 |
< |
_ACEOF |
3045 |
< |
cat confdefs.h >>conftest.$ac_ext |
3046 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
3047 |
< |
/* end confdefs.h. */ |
3042 |
> |
if test -s conftest.out ; then |
3043 |
> |
cat conftest.out >> config.log |
3044 |
> |
fi |
3045 |
> |
acx_mpi_f90_compiler=no |
3046 |
> |
{ $as_echo "$as_me:$LINENO: result: no! Check MPI fortran include paths" >&5 |
3047 |
> |
$as_echo "no! Check MPI fortran include paths" >&6; } |
3048 |
> |
fi |
3049 |
> |
rm -f conftest* |
3050 |
> |
ac_ext=$ac_save_ext |
3051 |
> |
ac_ext=c |
3052 |
> |
ac_cpp='$CPP $CPPFLAGS' |
3053 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3054 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3055 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3056 |
|
|
3057 |
< |
int |
2318 |
< |
main () |
2319 |
< |
{ |
3057 |
> |
if test $acx_mpi_compiler = no || test $acx_mpi_f90_compiler = no; then |
3058 |
|
|
3059 |
< |
; |
3060 |
< |
return 0; |
3061 |
< |
} |
3062 |
< |
_ACEOF |
3063 |
< |
rm -f conftest.$ac_objext |
3064 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3065 |
< |
(eval $ac_compile) 2>conftest.er1 |
3059 |
> |
acx_cv_mpi_implementation=no |
3060 |
> |
else |
3061 |
> |
{ $as_echo "$as_me:$LINENO: checking for the MPI implementation flavor" >&5 |
3062 |
> |
$as_echo_n "checking for the MPI implementation flavor... " >&6; } |
3063 |
> |
if test "${acx_cv_mpi_implementation+set}" = set; then |
3064 |
> |
$as_echo_n "(cached) " >&6 |
3065 |
> |
else |
3066 |
> |
acx_cv_mpi_implementation=no |
3067 |
> |
if { (ac_try="grep -q LAM $acx_mpi_compiler_path" |
3068 |
> |
case "(($ac_try" in |
3069 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3070 |
> |
*) ac_try_echo=$ac_try;; |
3071 |
> |
esac |
3072 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3073 |
> |
$as_echo "$ac_try_echo") >&5 |
3074 |
> |
(eval "grep -q LAM $acx_mpi_compiler_path") 2>conftest.er1 |
3075 |
|
ac_status=$? |
3076 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
3077 |
|
rm -f conftest.er1 |
3078 |
|
cat conftest.err >&5 |
3079 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3080 |
< |
(exit $ac_status); } && |
3081 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
3082 |
< |
|| test ! -s conftest.err' |
3083 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3084 |
< |
(eval $ac_try) 2>&5 |
3079 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3080 |
> |
(exit $ac_status); }; then |
3081 |
> |
|
3082 |
> |
acx_cv_mpi_implementation=lammpi |
3083 |
> |
|
3084 |
> |
else |
3085 |
> |
|
3086 |
> |
if { (ac_try="grep -q showme $acx_mpi_compiler_path" |
3087 |
> |
case "(($ac_try" in |
3088 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3089 |
> |
*) ac_try_echo=$ac_try;; |
3090 |
> |
esac |
3091 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3092 |
> |
$as_echo "$ac_try_echo") >&5 |
3093 |
> |
(eval "grep -q showme $acx_mpi_compiler_path") 2>conftest.er1 |
3094 |
|
ac_status=$? |
3095 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3096 |
< |
(exit $ac_status); }; } && |
3097 |
< |
{ ac_try='test -s conftest.$ac_objext' |
3098 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3099 |
< |
(eval $ac_try) 2>&5 |
3095 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
3096 |
> |
rm -f conftest.er1 |
3097 |
> |
cat conftest.err >&5 |
3098 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3099 |
> |
(exit $ac_status); }; then |
3100 |
> |
|
3101 |
> |
acx_cv_mpi_implementation=openmpi |
3102 |
> |
|
3103 |
> |
else |
3104 |
> |
|
3105 |
> |
if { (ac_try="grep -q MPICH $acx_mpi_compiler_path" |
3106 |
> |
case "(($ac_try" in |
3107 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3108 |
> |
*) ac_try_echo=$ac_try;; |
3109 |
> |
esac |
3110 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3111 |
> |
$as_echo "$ac_try_echo") >&5 |
3112 |
> |
(eval "grep -q MPICH $acx_mpi_compiler_path") 2>conftest.er1 |
3113 |
|
ac_status=$? |
3114 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3115 |
< |
(exit $ac_status); }; }; then |
3116 |
< |
ac_cv_prog_cc_g=yes |
3114 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
3115 |
> |
rm -f conftest.er1 |
3116 |
> |
cat conftest.err >&5 |
3117 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3118 |
> |
(exit $ac_status); }; then |
3119 |
> |
|
3120 |
> |
acx_cv_mpi_implementation=mpich |
3121 |
> |
|
3122 |
|
else |
3123 |
< |
echo "$as_me: failed program was:" >&5 |
3124 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
3123 |
> |
acx_cv_mpi_implementation=$with_mpi |
3124 |
> |
fi |
3125 |
|
|
2352 |
– |
ac_cv_prog_cc_g=no |
3126 |
|
fi |
3127 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3127 |
> |
|
3128 |
|
fi |
3129 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3130 |
< |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
3131 |
< |
if test "$ac_test_CFLAGS" = set; then |
3132 |
< |
CFLAGS=$ac_save_CFLAGS |
3133 |
< |
elif test $ac_cv_prog_cc_g = yes; then |
3134 |
< |
if test "$GCC" = yes; then |
3135 |
< |
CFLAGS="-g -O2" |
3129 |
> |
|
3130 |
> |
fi |
3131 |
> |
{ $as_echo "$as_me:$LINENO: result: $acx_cv_mpi_implementation" >&5 |
3132 |
> |
$as_echo "$acx_cv_mpi_implementation" >&6; } |
3133 |
> |
|
3134 |
> |
fi |
3135 |
> |
case $acx_cv_mpi_implementation in |
3136 |
> |
(lammpi) |
3137 |
> |
|
3138 |
> |
cat >>confdefs.h <<\_ACEOF |
3139 |
> |
#define MPI_IS_LAMMPI 1 |
3140 |
> |
_ACEOF |
3141 |
> |
|
3142 |
> |
;; |
3143 |
> |
(openmpi) |
3144 |
> |
|
3145 |
> |
cat >>confdefs.h <<\_ACEOF |
3146 |
> |
#define MPI_IS_OPENMPI 1 |
3147 |
> |
_ACEOF |
3148 |
> |
|
3149 |
> |
;; |
3150 |
> |
(mpich) |
3151 |
> |
|
3152 |
> |
cat >>confdefs.h <<\_ACEOF |
3153 |
> |
#define MPI_IS_MPICH 1 |
3154 |
> |
_ACEOF |
3155 |
> |
|
3156 |
> |
;; |
3157 |
> |
esac |
3158 |
> |
if test $acx_cv_mpi_implementation = no; then |
3159 |
> |
|
3160 |
> |
acx_mpi_cflags="" |
3161 |
> |
acx_mpi_libs="" |
3162 |
> |
USE_MPI="no" |
3163 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&5 |
3164 |
> |
$as_echo "$as_me: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&2;} |
3165 |
> |
else |
3166 |
> |
|
3167 |
> |
|
3168 |
> |
{ $as_echo "$as_me:$LINENO: checking how to compile MPI-C code" >&5 |
3169 |
> |
$as_echo_n "checking how to compile MPI-C code... " >&6; } |
3170 |
> |
if test "${acx_mpi_cflags+set}" = set; then |
3171 |
> |
$as_echo_n "(cached) " >&6 |
3172 |
> |
else |
3173 |
> |
|
3174 |
> |
case $acx_cv_mpi_implementation in |
3175 |
> |
(lammpi) |
3176 |
> |
cfo="--showme:compile" |
3177 |
> |
;; |
3178 |
> |
(openmpi) |
3179 |
> |
cfo="--showme:compile" |
3180 |
> |
;; |
3181 |
> |
(mpich) |
3182 |
> |
case "$acx_mpi_compiler_path" in |
3183 |
> |
(*mpiCC) |
3184 |
> |
sc_cv_cn="-CC=" |
3185 |
> |
;; |
3186 |
> |
(*mpicxx) |
3187 |
> |
sc_cv_cn="-cxx=" |
3188 |
> |
;; |
3189 |
> |
(*mpicc) |
3190 |
> |
sc_cv_cn="-cc=" |
3191 |
> |
;; |
3192 |
> |
(*) |
3193 |
> |
sc_cv_cn="" |
3194 |
> |
;; |
3195 |
> |
esac |
3196 |
> |
cfo="-compile_info $sc_cv_cn" |
3197 |
> |
;; |
3198 |
> |
esac |
3199 |
> |
$as_echo "$as_me:$LINENO: mpi_pre_cflags=\"\`$acx_mpi_compiler_path $cfo || echo ' no'\`\"" >&5 |
3200 |
> |
mpi_pre_cflags="`$acx_mpi_compiler_path $cfo 2>conftest.er1 || echo ' no'`" |
3201 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
3202 |
> |
rm -f conftest.er1 |
3203 |
> |
cat conftest.err >&5 |
3204 |
> |
$as_echo "$as_me:$LINENO: mpi_pre_cflags = $mpi_pre_cflags" >&5 |
3205 |
> |
case "$mpi_pre_cflags" in |
3206 |
> |
(*no) |
3207 |
> |
acx_mpi_cflags=no |
3208 |
> |
acx_mpi_cflags="no" |
3209 |
> |
;; |
3210 |
> |
(*) |
3211 |
> |
acx_mpi_tmp_mode="normal" |
3212 |
> |
acx_mpi_tmp_prefix="" |
3213 |
> |
eval "acx_mpi_cflags=\"\"" |
3214 |
> |
for acx_mpi_tmp in $mpi_pre_cflags; do |
3215 |
> |
case "$acx_mpi_tmp_mode" in |
3216 |
> |
(normal) |
3217 |
> |
case "$acx_mpi_tmp" in |
3218 |
> |
(-I|-D) |
3219 |
> |
acx_mpi_tmp_prefix="$acx_mpi_tmp" |
3220 |
> |
acx_mpi_tmp_mode="accept" |
3221 |
> |
;; |
3222 |
> |
(-I*|-D*) |
3223 |
> |
eval "acx_mpi_cflags=\"`eval 'as_val=${'\\acx_mpi_cflags'} |
3224 |
> |
$as_echo "$as_val"'` \$acx_mpi_tmp\"" |
3225 |
> |
;; |
3226 |
> |
(-L|-l) |
3227 |
> |
acx_mpi_tmp_mode="skip" |
3228 |
> |
;; |
3229 |
> |
(*) |
3230 |
> |
;; |
3231 |
> |
esac |
3232 |
> |
;; |
3233 |
> |
(accept) |
3234 |
> |
eval "acx_mpi_cflags=\"`eval 'as_val=${'\\acx_mpi_cflags'} |
3235 |
> |
$as_echo "$as_val"'` \$acx_mpi_tmp_prefix \$acx_mpi_tmp\"" |
3236 |
> |
;; |
3237 |
> |
(skip) |
3238 |
> |
;; |
3239 |
> |
esac |
3240 |
> |
done |
3241 |
> |
|
3242 |
> |
;; |
3243 |
> |
esac |
3244 |
> |
|
3245 |
> |
fi |
3246 |
> |
{ $as_echo "$as_me:$LINENO: result: $acx_mpi_cflags" >&5 |
3247 |
> |
$as_echo "$acx_mpi_cflags" >&6; } |
3248 |
> |
|
3249 |
> |
|
3250 |
> |
{ $as_echo "$as_me:$LINENO: checking how to link MPI-C code" >&5 |
3251 |
> |
$as_echo_n "checking how to link MPI-C code... " >&6; } |
3252 |
> |
if test "${acx_mpi_libs+set}" = set; then |
3253 |
> |
$as_echo_n "(cached) " >&6 |
3254 |
> |
else |
3255 |
> |
|
3256 |
> |
case $acx_cv_mpi_implementation in |
3257 |
> |
(lammpi) |
3258 |
> |
lfo="--showme:compile --showme:link" |
3259 |
> |
;; |
3260 |
> |
(openmpi) |
3261 |
> |
lfo="--showme:link" |
3262 |
> |
;; |
3263 |
> |
(mpich) |
3264 |
> |
case "$acx_mpi_compiler_path" in |
3265 |
> |
(*mpiCC) |
3266 |
> |
sc_cv_cn="-CC=" |
3267 |
> |
;; |
3268 |
> |
(*mpicxx) |
3269 |
> |
sc_cv_cn="-cxx=" |
3270 |
> |
;; |
3271 |
> |
(*mpicc) |
3272 |
> |
sc_cv_cn="-cc=" |
3273 |
> |
;; |
3274 |
> |
(*) |
3275 |
> |
sc_cv_cn="" |
3276 |
> |
;; |
3277 |
> |
esac |
3278 |
> |
lfo="-link_info $sc_cv_cn" |
3279 |
> |
;; |
3280 |
> |
esac |
3281 |
> |
$as_echo "$as_me:$LINENO: mpi_pre_libs=\"\`$acx_mpi_compiler_path $lfo || echo ' no'\`\"" >&5 |
3282 |
> |
mpi_pre_libs="`$acx_mpi_compiler_path $lfo 2>conftest.er1 || echo ' no'`" |
3283 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
3284 |
> |
rm -f conftest.er1 |
3285 |
> |
cat conftest.err >&5 |
3286 |
> |
$as_echo "$as_me:$LINENO: mpi_pre_libs = $mpi_pre_libs" >&5 |
3287 |
> |
case "$mpi_pre_libs" in |
3288 |
> |
(*no) |
3289 |
> |
acx_mpi_libs=no |
3290 |
> |
;; |
3291 |
> |
(*) |
3292 |
> |
acx_mpi_libs="$mpi_pre_libs" |
3293 |
> |
;; |
3294 |
> |
esac |
3295 |
> |
|
3296 |
> |
fi |
3297 |
> |
{ $as_echo "$as_me:$LINENO: result: $acx_mpi_libs" >&5 |
3298 |
> |
$as_echo "$acx_mpi_libs" >&6; } |
3299 |
> |
|
3300 |
> |
if test $acx_mpi_mpif90_path != no; then |
3301 |
> |
|
3302 |
> |
|
3303 |
> |
{ $as_echo "$as_me:$LINENO: checking how to link MPI-Fortran code" >&5 |
3304 |
> |
$as_echo_n "checking how to link MPI-Fortran code... " >&6; } |
3305 |
> |
if test "${acx_mpi90_libs+set}" = set; then |
3306 |
> |
$as_echo_n "(cached) " >&6 |
3307 |
> |
else |
3308 |
> |
|
3309 |
> |
$as_echo "$as_me:$LINENO: mpi_pre_libs=\"\`$acx_mpi_mpif90_path $lfo || echo \" no\"\`\"" >&5 |
3310 |
> |
mpi_pre_libs="`$acx_mpi_mpif90_path $lfo 2>conftest.er1 || echo " no"`" |
3311 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
3312 |
> |
rm -f conftest.er1 |
3313 |
> |
cat conftest.err >&5 |
3314 |
> |
$as_echo "$as_me:$LINENO: mpi_pre_libs = $mpi_pre_libs" >&5 |
3315 |
> |
case "$mpi_pre_libs" in |
3316 |
> |
(*no) |
3317 |
> |
acx_mpi90_libs=no |
3318 |
> |
;; |
3319 |
> |
(*) |
3320 |
> |
acx_mpi90_libs="$mpi_pre_libs" |
3321 |
> |
;; |
3322 |
> |
esac |
3323 |
> |
|
3324 |
> |
fi |
3325 |
> |
{ $as_echo "$as_me:$LINENO: result: $acx_mpi90_libs" >&5 |
3326 |
> |
$as_echo "$acx_mpi90_libs" >&6; } |
3327 |
> |
|
3328 |
> |
|
3329 |
> |
fi |
3330 |
> |
|
3331 |
> |
if test "$acx_mpi_cflags" = no -o "$acx_mpi_libs" = no; then |
3332 |
> |
|
3333 |
> |
acx_mpi_cflags="" |
3334 |
> |
acx_mpi_libs="" |
3335 |
> |
USE_MPI="no" |
3336 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&5 |
3337 |
> |
$as_echo "$as_me: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&2;} |
3338 |
> |
else |
3339 |
> |
|
3340 |
> |
MPI_CPPFLAGS=$acx_mpi_cflags |
3341 |
> |
|
3342 |
> |
MPI_LIBS=$acx_mpi_libs |
3343 |
> |
|
3344 |
> |
if test "$acx_mpi90_libs" != no; then |
3345 |
> |
MPI90_LIBS=$acx_mpi90_libs |
3346 |
> |
|
3347 |
> |
fi |
3348 |
> |
|
3349 |
> |
USE_MPI="yes" |
3350 |
> |
fi |
3351 |
> |
|
3352 |
> |
|
3353 |
> |
fi |
3354 |
> |
|
3355 |
> |
|
3356 |
> |
fi |
3357 |
> |
|
3358 |
> |
|
3359 |
> |
|
3360 |
> |
# Checks for programs. |
3361 |
> |
ac_ext=cpp |
3362 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
3363 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3364 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3365 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
3366 |
> |
if test -z "$CXX"; then |
3367 |
> |
if test -n "$CCC"; then |
3368 |
> |
CXX=$CCC |
3369 |
|
else |
3370 |
< |
CFLAGS="-g" |
3371 |
< |
fi |
3370 |
> |
if test -n "$ac_tool_prefix"; then |
3371 |
> |
for ac_prog in $CXX $ac_cv_prog_acx_mpi_mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC |
3372 |
> |
do |
3373 |
> |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3374 |
> |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3375 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3376 |
> |
$as_echo_n "checking for $ac_word... " >&6; } |
3377 |
> |
if test "${ac_cv_prog_CXX+set}" = set; then |
3378 |
> |
$as_echo_n "(cached) " >&6 |
3379 |
|
else |
3380 |
< |
if test "$GCC" = yes; then |
3381 |
< |
CFLAGS="-O2" |
3382 |
< |
else |
3383 |
< |
CFLAGS= |
3380 |
> |
if test -n "$CXX"; then |
3381 |
> |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
3382 |
> |
else |
3383 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3384 |
> |
for as_dir in $PATH |
3385 |
> |
do |
3386 |
> |
IFS=$as_save_IFS |
3387 |
> |
test -z "$as_dir" && as_dir=. |
3388 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
3389 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3390 |
> |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
3391 |
> |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3392 |
> |
break 2 |
3393 |
|
fi |
3394 |
+ |
done |
3395 |
+ |
done |
3396 |
+ |
IFS=$as_save_IFS |
3397 |
+ |
|
3398 |
|
fi |
3399 |
< |
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3400 |
< |
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
3401 |
< |
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
3402 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3399 |
> |
fi |
3400 |
> |
CXX=$ac_cv_prog_CXX |
3401 |
> |
if test -n "$CXX"; then |
3402 |
> |
{ $as_echo "$as_me:$LINENO: result: $CXX" >&5 |
3403 |
> |
$as_echo "$CXX" >&6; } |
3404 |
|
else |
3405 |
< |
ac_cv_prog_cc_stdc=no |
3406 |
< |
ac_save_CC=$CC |
3405 |
> |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
3406 |
> |
$as_echo "no" >&6; } |
3407 |
> |
fi |
3408 |
> |
|
3409 |
> |
|
3410 |
> |
test -n "$CXX" && break |
3411 |
> |
done |
3412 |
> |
fi |
3413 |
> |
if test -z "$CXX"; then |
3414 |
> |
ac_ct_CXX=$CXX |
3415 |
> |
for ac_prog in $CXX $ac_cv_prog_acx_mpi_mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC |
3416 |
> |
do |
3417 |
> |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3418 |
> |
set dummy $ac_prog; ac_word=$2 |
3419 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3420 |
> |
$as_echo_n "checking for $ac_word... " >&6; } |
3421 |
> |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
3422 |
> |
$as_echo_n "(cached) " >&6 |
3423 |
> |
else |
3424 |
> |
if test -n "$ac_ct_CXX"; then |
3425 |
> |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
3426 |
> |
else |
3427 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3428 |
> |
for as_dir in $PATH |
3429 |
> |
do |
3430 |
> |
IFS=$as_save_IFS |
3431 |
> |
test -z "$as_dir" && as_dir=. |
3432 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
3433 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3434 |
> |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
3435 |
> |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3436 |
> |
break 2 |
3437 |
> |
fi |
3438 |
> |
done |
3439 |
> |
done |
3440 |
> |
IFS=$as_save_IFS |
3441 |
> |
|
3442 |
> |
fi |
3443 |
> |
fi |
3444 |
> |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
3445 |
> |
if test -n "$ac_ct_CXX"; then |
3446 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
3447 |
> |
$as_echo "$ac_ct_CXX" >&6; } |
3448 |
> |
else |
3449 |
> |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
3450 |
> |
$as_echo "no" >&6; } |
3451 |
> |
fi |
3452 |
> |
|
3453 |
> |
|
3454 |
> |
test -n "$ac_ct_CXX" && break |
3455 |
> |
done |
3456 |
> |
|
3457 |
> |
if test "x$ac_ct_CXX" = x; then |
3458 |
> |
CXX="g++" |
3459 |
> |
else |
3460 |
> |
case $cross_compiling:$ac_tool_warned in |
3461 |
> |
yes:) |
3462 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
3463 |
> |
whose name does not start with the host triplet. If you think this |
3464 |
> |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
3465 |
> |
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
3466 |
> |
whose name does not start with the host triplet. If you think this |
3467 |
> |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
3468 |
> |
ac_tool_warned=yes ;; |
3469 |
> |
esac |
3470 |
> |
CXX=$ac_ct_CXX |
3471 |
> |
fi |
3472 |
> |
fi |
3473 |
> |
|
3474 |
> |
fi |
3475 |
> |
fi |
3476 |
> |
# Provide some information about the compiler. |
3477 |
> |
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
3478 |
> |
set X $ac_compile |
3479 |
> |
ac_compiler=$2 |
3480 |
> |
{ (ac_try="$ac_compiler --version >&5" |
3481 |
> |
case "(($ac_try" in |
3482 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3483 |
> |
*) ac_try_echo=$ac_try;; |
3484 |
> |
esac |
3485 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3486 |
> |
$as_echo "$ac_try_echo") >&5 |
3487 |
> |
(eval "$ac_compiler --version >&5") 2>&5 |
3488 |
> |
ac_status=$? |
3489 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3490 |
> |
(exit $ac_status); } |
3491 |
> |
{ (ac_try="$ac_compiler -v >&5" |
3492 |
> |
case "(($ac_try" in |
3493 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3494 |
> |
*) ac_try_echo=$ac_try;; |
3495 |
> |
esac |
3496 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3497 |
> |
$as_echo "$ac_try_echo") >&5 |
3498 |
> |
(eval "$ac_compiler -v >&5") 2>&5 |
3499 |
> |
ac_status=$? |
3500 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3501 |
> |
(exit $ac_status); } |
3502 |
> |
{ (ac_try="$ac_compiler -V >&5" |
3503 |
> |
case "(($ac_try" in |
3504 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3505 |
> |
*) ac_try_echo=$ac_try;; |
3506 |
> |
esac |
3507 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3508 |
> |
$as_echo "$ac_try_echo") >&5 |
3509 |
> |
(eval "$ac_compiler -V >&5") 2>&5 |
3510 |
> |
ac_status=$? |
3511 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3512 |
> |
(exit $ac_status); } |
3513 |
> |
|
3514 |
|
cat >conftest.$ac_ext <<_ACEOF |
3515 |
|
/* confdefs.h. */ |
3516 |
|
_ACEOF |
3517 |
|
cat confdefs.h >>conftest.$ac_ext |
3518 |
|
cat >>conftest.$ac_ext <<_ACEOF |
3519 |
|
/* end confdefs.h. */ |
3520 |
< |
#include <stdarg.h> |
3521 |
< |
#include <stdio.h> |
3522 |
< |
#include <sys/types.h> |
2389 |
< |
#include <sys/stat.h> |
2390 |
< |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2391 |
< |
struct buf { int x; }; |
2392 |
< |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2393 |
< |
static char *e (p, i) |
2394 |
< |
char **p; |
2395 |
< |
int i; |
3520 |
> |
|
3521 |
> |
int |
3522 |
> |
main () |
3523 |
|
{ |
3524 |
< |
return p[i]; |
3524 |
> |
|
3525 |
> |
; |
3526 |
> |
return 0; |
3527 |
|
} |
3528 |
< |
static char *f (char * (*g) (char **, int), char **p, ...) |
3528 |
> |
_ACEOF |
3529 |
> |
ac_clean_files_save=$ac_clean_files |
3530 |
> |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
3531 |
> |
# Try to create an executable without -o first, disregard a.out. |
3532 |
> |
# It will help us diagnose broken compilers, and finding out an intuition |
3533 |
> |
# of exeext. |
3534 |
> |
{ $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
3535 |
> |
$as_echo_n "checking for C++ compiler default output file name... " >&6; } |
3536 |
> |
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3537 |
> |
|
3538 |
> |
# The possible output files: |
3539 |
> |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
3540 |
> |
|
3541 |
> |
ac_rmfiles= |
3542 |
> |
for ac_file in $ac_files |
3543 |
> |
do |
3544 |
> |
case $ac_file in |
3545 |
> |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3546 |
> |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3547 |
> |
esac |
3548 |
> |
done |
3549 |
> |
rm -f $ac_rmfiles |
3550 |
> |
|
3551 |
> |
if { (ac_try="$ac_link_default" |
3552 |
> |
case "(($ac_try" in |
3553 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3554 |
> |
*) ac_try_echo=$ac_try;; |
3555 |
> |
esac |
3556 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3557 |
> |
$as_echo "$ac_try_echo") >&5 |
3558 |
> |
(eval "$ac_link_default") 2>&5 |
3559 |
> |
ac_status=$? |
3560 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3561 |
> |
(exit $ac_status); }; then |
3562 |
> |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3563 |
> |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
3564 |
> |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
3565 |
> |
# so that the user can short-circuit this test for compilers unknown to |
3566 |
> |
# Autoconf. |
3567 |
> |
for ac_file in $ac_files '' |
3568 |
> |
do |
3569 |
> |
test -f "$ac_file" || continue |
3570 |
> |
case $ac_file in |
3571 |
> |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
3572 |
> |
;; |
3573 |
> |
[ab].out ) |
3574 |
> |
# We found the default executable, but exeext='' is most |
3575 |
> |
# certainly right. |
3576 |
> |
break;; |
3577 |
> |
*.* ) |
3578 |
> |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3579 |
> |
then :; else |
3580 |
> |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3581 |
> |
fi |
3582 |
> |
# We set ac_cv_exeext here because the later test for it is not |
3583 |
> |
# safe: cross compilers may not add the suffix if given an `-o' |
3584 |
> |
# argument, so we may need to know it at that point already. |
3585 |
> |
# Even if this section looks crufty: it has the advantage of |
3586 |
> |
# actually working. |
3587 |
> |
break;; |
3588 |
> |
* ) |
3589 |
> |
break;; |
3590 |
> |
esac |
3591 |
> |
done |
3592 |
> |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
3593 |
> |
|
3594 |
> |
else |
3595 |
> |
ac_file='' |
3596 |
> |
fi |
3597 |
> |
|
3598 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
3599 |
> |
$as_echo "$ac_file" >&6; } |
3600 |
> |
if test -z "$ac_file"; then |
3601 |
> |
$as_echo "$as_me: failed program was:" >&5 |
3602 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
3603 |
> |
|
3604 |
> |
{ { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
3605 |
> |
See \`config.log' for more details." >&5 |
3606 |
> |
$as_echo "$as_me: error: C++ compiler cannot create executables |
3607 |
> |
See \`config.log' for more details." >&2;} |
3608 |
> |
{ (exit 77); exit 77; }; } |
3609 |
> |
fi |
3610 |
> |
|
3611 |
> |
ac_exeext=$ac_cv_exeext |
3612 |
> |
|
3613 |
> |
# Check that the compiler produces executables we can run. If not, either |
3614 |
> |
# the compiler is broken, or we cross compile. |
3615 |
> |
{ $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
3616 |
> |
$as_echo_n "checking whether the C++ compiler works... " >&6; } |
3617 |
> |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3618 |
> |
# If not cross compiling, check that we can run a simple program. |
3619 |
> |
if test "$cross_compiling" != yes; then |
3620 |
> |
if { ac_try='./$ac_file' |
3621 |
> |
{ (case "(($ac_try" in |
3622 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3623 |
> |
*) ac_try_echo=$ac_try;; |
3624 |
> |
esac |
3625 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3626 |
> |
$as_echo "$ac_try_echo") >&5 |
3627 |
> |
(eval "$ac_try") 2>&5 |
3628 |
> |
ac_status=$? |
3629 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3630 |
> |
(exit $ac_status); }; }; then |
3631 |
> |
cross_compiling=no |
3632 |
> |
else |
3633 |
> |
if test "$cross_compiling" = maybe; then |
3634 |
> |
cross_compiling=yes |
3635 |
> |
else |
3636 |
> |
{ { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
3637 |
> |
If you meant to cross compile, use \`--host'. |
3638 |
> |
See \`config.log' for more details." >&5 |
3639 |
> |
$as_echo "$as_me: error: cannot run C++ compiled programs. |
3640 |
> |
If you meant to cross compile, use \`--host'. |
3641 |
> |
See \`config.log' for more details." >&2;} |
3642 |
> |
{ (exit 1); exit 1; }; } |
3643 |
> |
fi |
3644 |
> |
fi |
3645 |
> |
fi |
3646 |
> |
{ $as_echo "$as_me:$LINENO: result: yes" >&5 |
3647 |
> |
$as_echo "yes" >&6; } |
3648 |
> |
|
3649 |
> |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3650 |
> |
ac_clean_files=$ac_clean_files_save |
3651 |
> |
# Check that the compiler produces executables we can run. If not, either |
3652 |
> |
# the compiler is broken, or we cross compile. |
3653 |
> |
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3654 |
> |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
3655 |
> |
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
3656 |
> |
$as_echo "$cross_compiling" >&6; } |
3657 |
> |
|
3658 |
> |
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3659 |
> |
$as_echo_n "checking for suffix of executables... " >&6; } |
3660 |
> |
if { (ac_try="$ac_link" |
3661 |
> |
case "(($ac_try" in |
3662 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3663 |
> |
*) ac_try_echo=$ac_try;; |
3664 |
> |
esac |
3665 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3666 |
> |
$as_echo "$ac_try_echo") >&5 |
3667 |
> |
(eval "$ac_link") 2>&5 |
3668 |
> |
ac_status=$? |
3669 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3670 |
> |
(exit $ac_status); }; then |
3671 |
> |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
3672 |
> |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3673 |
> |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
3674 |
> |
# `rm'. |
3675 |
> |
for ac_file in conftest.exe conftest conftest.*; do |
3676 |
> |
test -f "$ac_file" || continue |
3677 |
> |
case $ac_file in |
3678 |
> |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3679 |
> |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3680 |
> |
break;; |
3681 |
> |
* ) break;; |
3682 |
> |
esac |
3683 |
> |
done |
3684 |
> |
else |
3685 |
> |
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3686 |
> |
See \`config.log' for more details." >&5 |
3687 |
> |
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
3688 |
> |
See \`config.log' for more details." >&2;} |
3689 |
> |
{ (exit 1); exit 1; }; } |
3690 |
> |
fi |
3691 |
> |
|
3692 |
> |
rm -f conftest$ac_cv_exeext |
3693 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3694 |
> |
$as_echo "$ac_cv_exeext" >&6; } |
3695 |
> |
|
3696 |
> |
rm -f conftest.$ac_ext |
3697 |
> |
EXEEXT=$ac_cv_exeext |
3698 |
> |
ac_exeext=$EXEEXT |
3699 |
> |
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3700 |
> |
$as_echo_n "checking for suffix of object files... " >&6; } |
3701 |
> |
if test "${ac_cv_objext+set}" = set; then |
3702 |
> |
$as_echo_n "(cached) " >&6 |
3703 |
> |
else |
3704 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3705 |
> |
/* confdefs.h. */ |
3706 |
> |
_ACEOF |
3707 |
> |
cat confdefs.h >>conftest.$ac_ext |
3708 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
3709 |
> |
/* end confdefs.h. */ |
3710 |
> |
|
3711 |
> |
int |
3712 |
> |
main () |
3713 |
|
{ |
3714 |
< |
char *s; |
3715 |
< |
va_list v; |
3716 |
< |
va_start (v,p); |
2404 |
< |
s = g (p, va_arg (v,int)); |
2405 |
< |
va_end (v); |
2406 |
< |
return s; |
3714 |
> |
|
3715 |
> |
; |
3716 |
> |
return 0; |
3717 |
|
} |
3718 |
+ |
_ACEOF |
3719 |
+ |
rm -f conftest.o conftest.obj |
3720 |
+ |
if { (ac_try="$ac_compile" |
3721 |
+ |
case "(($ac_try" in |
3722 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3723 |
+ |
*) ac_try_echo=$ac_try;; |
3724 |
+ |
esac |
3725 |
+ |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3726 |
+ |
$as_echo "$ac_try_echo") >&5 |
3727 |
+ |
(eval "$ac_compile") 2>&5 |
3728 |
+ |
ac_status=$? |
3729 |
+ |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3730 |
+ |
(exit $ac_status); }; then |
3731 |
+ |
for ac_file in conftest.o conftest.obj conftest.*; do |
3732 |
+ |
test -f "$ac_file" || continue; |
3733 |
+ |
case $ac_file in |
3734 |
+ |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
3735 |
+ |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3736 |
+ |
break;; |
3737 |
+ |
esac |
3738 |
+ |
done |
3739 |
+ |
else |
3740 |
+ |
$as_echo "$as_me: failed program was:" >&5 |
3741 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3742 |
|
|
3743 |
< |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3744 |
< |
function prototypes and stuff, but not '\xHH' hex character constants. |
3745 |
< |
These don't provoke an error unfortunately, instead are silently treated |
3746 |
< |
as 'x'. The following induces an error, until -std1 is added to get |
3747 |
< |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3748 |
< |
array size at least. It's necessary to write '\x00'==0 to get something |
2415 |
< |
that's true only with -std1. */ |
2416 |
< |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3743 |
> |
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
3744 |
> |
See \`config.log' for more details." >&5 |
3745 |
> |
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
3746 |
> |
See \`config.log' for more details." >&2;} |
3747 |
> |
{ (exit 1); exit 1; }; } |
3748 |
> |
fi |
3749 |
|
|
3750 |
< |
int test (int i, double x); |
3751 |
< |
struct s1 {int (*f) (int a);}; |
3752 |
< |
struct s2 {int (*f) (double a);}; |
3753 |
< |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3754 |
< |
int argc; |
3755 |
< |
char **argv; |
3750 |
> |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3751 |
> |
fi |
3752 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3753 |
> |
$as_echo "$ac_cv_objext" >&6; } |
3754 |
> |
OBJEXT=$ac_cv_objext |
3755 |
> |
ac_objext=$OBJEXT |
3756 |
> |
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
3757 |
> |
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
3758 |
> |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
3759 |
> |
$as_echo_n "(cached) " >&6 |
3760 |
> |
else |
3761 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3762 |
> |
/* confdefs.h. */ |
3763 |
> |
_ACEOF |
3764 |
> |
cat confdefs.h >>conftest.$ac_ext |
3765 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
3766 |
> |
/* end confdefs.h. */ |
3767 |
> |
|
3768 |
|
int |
3769 |
|
main () |
3770 |
|
{ |
3771 |
< |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3771 |
> |
#ifndef __GNUC__ |
3772 |
> |
choke me |
3773 |
> |
#endif |
3774 |
> |
|
3775 |
|
; |
3776 |
|
return 0; |
3777 |
|
} |
3778 |
|
_ACEOF |
3779 |
< |
# Don't try gcc -ansi; that turns off useful extensions and |
3780 |
< |
# breaks some systems' header files. |
3781 |
< |
# AIX -qlanglvl=ansi |
3782 |
< |
# Ultrix and OSF/1 -std1 |
3783 |
< |
# HP-UX 10.20 and later -Ae |
3784 |
< |
# HP-UX older versions -Aa -D_HPUX_SOURCE |
3785 |
< |
# SVR4 -Xc -D__EXTENSIONS__ |
3786 |
< |
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3787 |
< |
do |
2441 |
< |
CC="$ac_save_CC $ac_arg" |
2442 |
< |
rm -f conftest.$ac_objext |
2443 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2444 |
< |
(eval $ac_compile) 2>conftest.er1 |
3779 |
> |
rm -f conftest.$ac_objext |
3780 |
> |
if { (ac_try="$ac_compile" |
3781 |
> |
case "(($ac_try" in |
3782 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3783 |
> |
*) ac_try_echo=$ac_try;; |
3784 |
> |
esac |
3785 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3786 |
> |
$as_echo "$ac_try_echo") >&5 |
3787 |
> |
(eval "$ac_compile") 2>conftest.er1 |
3788 |
|
ac_status=$? |
3789 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
3790 |
|
rm -f conftest.er1 |
3791 |
|
cat conftest.err >&5 |
3792 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3793 |
< |
(exit $ac_status); } && |
3794 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
3795 |
< |
|| test ! -s conftest.err' |
3796 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3797 |
< |
(eval $ac_try) 2>&5 |
2455 |
< |
ac_status=$? |
2456 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2457 |
< |
(exit $ac_status); }; } && |
2458 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2459 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2460 |
< |
(eval $ac_try) 2>&5 |
2461 |
< |
ac_status=$? |
2462 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2463 |
< |
(exit $ac_status); }; }; then |
2464 |
< |
ac_cv_prog_cc_stdc=$ac_arg |
2465 |
< |
break |
3792 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3793 |
> |
(exit $ac_status); } && { |
3794 |
> |
test -z "$ac_cxx_werror_flag" || |
3795 |
> |
test ! -s conftest.err |
3796 |
> |
} && test -s conftest.$ac_objext; then |
3797 |
> |
ac_compiler_gnu=yes |
3798 |
|
else |
3799 |
< |
echo "$as_me: failed program was:" >&5 |
3799 |
> |
$as_echo "$as_me: failed program was:" >&5 |
3800 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3801 |
|
|
3802 |
+ |
ac_compiler_gnu=no |
3803 |
|
fi |
2471 |
– |
rm -f conftest.err conftest.$ac_objext |
2472 |
– |
done |
2473 |
– |
rm -f conftest.$ac_ext conftest.$ac_objext |
2474 |
– |
CC=$ac_save_CC |
3804 |
|
|
3805 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3806 |
+ |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
3807 |
+ |
|
3808 |
|
fi |
3809 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
3810 |
+ |
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
3811 |
+ |
if test $ac_compiler_gnu = yes; then |
3812 |
+ |
GXX=yes |
3813 |
+ |
else |
3814 |
+ |
GXX= |
3815 |
+ |
fi |
3816 |
+ |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
3817 |
+ |
ac_save_CXXFLAGS=$CXXFLAGS |
3818 |
+ |
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
3819 |
+ |
$as_echo_n "checking whether $CXX accepts -g... " >&6; } |
3820 |
+ |
if test "${ac_cv_prog_cxx_g+set}" = set; then |
3821 |
+ |
$as_echo_n "(cached) " >&6 |
3822 |
+ |
else |
3823 |
+ |
ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
3824 |
+ |
ac_cxx_werror_flag=yes |
3825 |
+ |
ac_cv_prog_cxx_g=no |
3826 |
+ |
CXXFLAGS="-g" |
3827 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3828 |
+ |
/* confdefs.h. */ |
3829 |
+ |
_ACEOF |
3830 |
+ |
cat confdefs.h >>conftest.$ac_ext |
3831 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
3832 |
+ |
/* end confdefs.h. */ |
3833 |
|
|
3834 |
< |
case "x$ac_cv_prog_cc_stdc" in |
3835 |
< |
x|xno) |
3836 |
< |
echo "$as_me:$LINENO: result: none needed" >&5 |
2481 |
< |
echo "${ECHO_T}none needed" >&6 ;; |
2482 |
< |
*) |
2483 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2484 |
< |
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
2485 |
< |
CC="$CC $ac_cv_prog_cc_stdc" ;; |
2486 |
< |
esac |
3834 |
> |
int |
3835 |
> |
main () |
3836 |
> |
{ |
3837 |
|
|
3838 |
< |
# Some people use a C++ compiler to compile C. Since we use `exit', |
3839 |
< |
# in C++ we need to declare it. In case someone uses the same compiler |
3840 |
< |
# for both compiling C and C++ we need to have the C++ compiler decide |
2491 |
< |
# the declaration of exit, since it's the most demanding environment. |
2492 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2493 |
< |
#ifndef __cplusplus |
2494 |
< |
choke me |
2495 |
< |
#endif |
3838 |
> |
; |
3839 |
> |
return 0; |
3840 |
> |
} |
3841 |
|
_ACEOF |
3842 |
|
rm -f conftest.$ac_objext |
3843 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3844 |
< |
(eval $ac_compile) 2>conftest.er1 |
3843 |
> |
if { (ac_try="$ac_compile" |
3844 |
> |
case "(($ac_try" in |
3845 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3846 |
> |
*) ac_try_echo=$ac_try;; |
3847 |
> |
esac |
3848 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3849 |
> |
$as_echo "$ac_try_echo") >&5 |
3850 |
> |
(eval "$ac_compile") 2>conftest.er1 |
3851 |
|
ac_status=$? |
3852 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
3853 |
|
rm -f conftest.er1 |
3854 |
|
cat conftest.err >&5 |
3855 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3856 |
< |
(exit $ac_status); } && |
3857 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
3858 |
< |
|| test ! -s conftest.err' |
3859 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3860 |
< |
(eval $ac_try) 2>&5 |
3861 |
< |
ac_status=$? |
3862 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3863 |
< |
(exit $ac_status); }; } && |
3864 |
< |
{ ac_try='test -s conftest.$ac_objext' |
3865 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3866 |
< |
(eval $ac_try) 2>&5 |
2516 |
< |
ac_status=$? |
2517 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2518 |
< |
(exit $ac_status); }; }; then |
2519 |
< |
for ac_declaration in \ |
2520 |
< |
'' \ |
2521 |
< |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2522 |
< |
'extern "C" void std::exit (int); using std::exit;' \ |
2523 |
< |
'extern "C" void exit (int) throw ();' \ |
2524 |
< |
'extern "C" void exit (int);' \ |
2525 |
< |
'void exit (int);' |
2526 |
< |
do |
2527 |
< |
cat >conftest.$ac_ext <<_ACEOF |
3855 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3856 |
> |
(exit $ac_status); } && { |
3857 |
> |
test -z "$ac_cxx_werror_flag" || |
3858 |
> |
test ! -s conftest.err |
3859 |
> |
} && test -s conftest.$ac_objext; then |
3860 |
> |
ac_cv_prog_cxx_g=yes |
3861 |
> |
else |
3862 |
> |
$as_echo "$as_me: failed program was:" >&5 |
3863 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
3864 |
> |
|
3865 |
> |
CXXFLAGS="" |
3866 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3867 |
|
/* confdefs.h. */ |
3868 |
|
_ACEOF |
3869 |
|
cat confdefs.h >>conftest.$ac_ext |
3870 |
|
cat >>conftest.$ac_ext <<_ACEOF |
3871 |
|
/* end confdefs.h. */ |
3872 |
< |
$ac_declaration |
2534 |
< |
#include <stdlib.h> |
3872 |
> |
|
3873 |
|
int |
3874 |
|
main () |
3875 |
|
{ |
3876 |
< |
exit (42); |
3876 |
> |
|
3877 |
|
; |
3878 |
|
return 0; |
3879 |
|
} |
3880 |
|
_ACEOF |
3881 |
|
rm -f conftest.$ac_objext |
3882 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3883 |
< |
(eval $ac_compile) 2>conftest.er1 |
3882 |
> |
if { (ac_try="$ac_compile" |
3883 |
> |
case "(($ac_try" in |
3884 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3885 |
> |
*) ac_try_echo=$ac_try;; |
3886 |
> |
esac |
3887 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3888 |
> |
$as_echo "$ac_try_echo") >&5 |
3889 |
> |
(eval "$ac_compile") 2>conftest.er1 |
3890 |
|
ac_status=$? |
3891 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
3892 |
|
rm -f conftest.er1 |
3893 |
|
cat conftest.err >&5 |
3894 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3895 |
< |
(exit $ac_status); } && |
3896 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
3897 |
< |
|| test ! -s conftest.err' |
3898 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2555 |
< |
(eval $ac_try) 2>&5 |
2556 |
< |
ac_status=$? |
2557 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2558 |
< |
(exit $ac_status); }; } && |
2559 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2560 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2561 |
< |
(eval $ac_try) 2>&5 |
2562 |
< |
ac_status=$? |
2563 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2564 |
< |
(exit $ac_status); }; }; then |
3894 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3895 |
> |
(exit $ac_status); } && { |
3896 |
> |
test -z "$ac_cxx_werror_flag" || |
3897 |
> |
test ! -s conftest.err |
3898 |
> |
} && test -s conftest.$ac_objext; then |
3899 |
|
: |
3900 |
|
else |
3901 |
< |
echo "$as_me: failed program was:" >&5 |
3901 |
> |
$as_echo "$as_me: failed program was:" >&5 |
3902 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3903 |
|
|
3904 |
< |
continue |
3905 |
< |
fi |
3906 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2573 |
< |
cat >conftest.$ac_ext <<_ACEOF |
3904 |
> |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
3905 |
> |
CXXFLAGS="-g" |
3906 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3907 |
|
/* confdefs.h. */ |
3908 |
|
_ACEOF |
3909 |
|
cat confdefs.h >>conftest.$ac_ext |
3910 |
|
cat >>conftest.$ac_ext <<_ACEOF |
3911 |
|
/* end confdefs.h. */ |
3912 |
< |
$ac_declaration |
3912 |
> |
|
3913 |
|
int |
3914 |
|
main () |
3915 |
|
{ |
3916 |
< |
exit (42); |
3916 |
> |
|
3917 |
|
; |
3918 |
|
return 0; |
3919 |
|
} |
3920 |
|
_ACEOF |
3921 |
|
rm -f conftest.$ac_objext |
3922 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3923 |
< |
(eval $ac_compile) 2>conftest.er1 |
3922 |
> |
if { (ac_try="$ac_compile" |
3923 |
> |
case "(($ac_try" in |
3924 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3925 |
> |
*) ac_try_echo=$ac_try;; |
3926 |
> |
esac |
3927 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3928 |
> |
$as_echo "$ac_try_echo") >&5 |
3929 |
> |
(eval "$ac_compile") 2>conftest.er1 |
3930 |
|
ac_status=$? |
3931 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
3932 |
|
rm -f conftest.er1 |
3933 |
|
cat conftest.err >&5 |
3934 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3935 |
< |
(exit $ac_status); } && |
3936 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
3937 |
< |
|| test ! -s conftest.err' |
3938 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3939 |
< |
(eval $ac_try) 2>&5 |
2601 |
< |
ac_status=$? |
2602 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2603 |
< |
(exit $ac_status); }; } && |
2604 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2605 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2606 |
< |
(eval $ac_try) 2>&5 |
2607 |
< |
ac_status=$? |
2608 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2609 |
< |
(exit $ac_status); }; }; then |
2610 |
< |
break |
3934 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3935 |
> |
(exit $ac_status); } && { |
3936 |
> |
test -z "$ac_cxx_werror_flag" || |
3937 |
> |
test ! -s conftest.err |
3938 |
> |
} && test -s conftest.$ac_objext; then |
3939 |
> |
ac_cv_prog_cxx_g=yes |
3940 |
|
else |
3941 |
< |
echo "$as_me: failed program was:" >&5 |
3941 |
> |
$as_echo "$as_me: failed program was:" >&5 |
3942 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3943 |
|
|
3944 |
+ |
|
3945 |
|
fi |
3946 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3947 |
< |
done |
2618 |
< |
rm -f conftest* |
2619 |
< |
if test -n "$ac_declaration"; then |
2620 |
< |
echo '#ifdef __cplusplus' >>confdefs.h |
2621 |
< |
echo $ac_declaration >>confdefs.h |
2622 |
< |
echo '#endif' >>confdefs.h |
3946 |
> |
|
3947 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3948 |
|
fi |
3949 |
|
|
3950 |
< |
else |
3951 |
< |
echo "$as_me: failed program was:" >&5 |
2627 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
3950 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3951 |
> |
fi |
3952 |
|
|
3953 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3954 |
+ |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
3955 |
|
fi |
3956 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3956 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
3957 |
> |
$as_echo "$ac_cv_prog_cxx_g" >&6; } |
3958 |
> |
if test "$ac_test_CXXFLAGS" = set; then |
3959 |
> |
CXXFLAGS=$ac_save_CXXFLAGS |
3960 |
> |
elif test $ac_cv_prog_cxx_g = yes; then |
3961 |
> |
if test "$GXX" = yes; then |
3962 |
> |
CXXFLAGS="-g -O2" |
3963 |
> |
else |
3964 |
> |
CXXFLAGS="-g" |
3965 |
> |
fi |
3966 |
> |
else |
3967 |
> |
if test "$GXX" = yes; then |
3968 |
> |
CXXFLAGS="-O2" |
3969 |
> |
else |
3970 |
> |
CXXFLAGS= |
3971 |
> |
fi |
3972 |
> |
fi |
3973 |
|
ac_ext=c |
3974 |
|
ac_cpp='$CPP $CPPFLAGS' |
3975 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3976 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3977 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3978 |
|
|
3979 |
< |
ac_ext=${FC_SRCEXT-f} |
3980 |
< |
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' |
3981 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' |
3982 |
< |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
3979 |
> |
ac_ext=c |
3980 |
> |
ac_cpp='$CPP $CPPFLAGS' |
3981 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3982 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3983 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3984 |
|
if test -n "$ac_tool_prefix"; then |
3985 |
< |
for ac_prog in pathf95 ifort ifc xlf95 pgf95 lf95 epcf90 xlf90 pgf90 fort f95 f90 g95 f77 |
3985 |
> |
for ac_prog in $CC $ac_cv_prog_acx_mpi_mpicc icc pathcc pgcc cc xlc gcc |
3986 |
|
do |
3987 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3988 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3989 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3990 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3991 |
< |
if test "${ac_cv_prog_FC+set}" = set; then |
3992 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3989 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3990 |
> |
$as_echo_n "checking for $ac_word... " >&6; } |
3991 |
> |
if test "${ac_cv_prog_CC+set}" = set; then |
3992 |
> |
$as_echo_n "(cached) " >&6 |
3993 |
|
else |
3994 |
< |
if test -n "$FC"; then |
3995 |
< |
ac_cv_prog_FC="$FC" # Let the user override the test. |
3994 |
> |
if test -n "$CC"; then |
3995 |
> |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3996 |
|
else |
3997 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3998 |
|
for as_dir in $PATH |
4000 |
|
IFS=$as_save_IFS |
4001 |
|
test -z "$as_dir" && as_dir=. |
4002 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
4003 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4004 |
< |
ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
4005 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4003 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4004 |
> |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
4005 |
> |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4006 |
|
break 2 |
4007 |
|
fi |
4008 |
|
done |
4009 |
|
done |
4010 |
+ |
IFS=$as_save_IFS |
4011 |
|
|
4012 |
|
fi |
4013 |
|
fi |
4014 |
< |
FC=$ac_cv_prog_FC |
4015 |
< |
if test -n "$FC"; then |
4016 |
< |
echo "$as_me:$LINENO: result: $FC" >&5 |
4017 |
< |
echo "${ECHO_T}$FC" >&6 |
4014 |
> |
CC=$ac_cv_prog_CC |
4015 |
> |
if test -n "$CC"; then |
4016 |
> |
{ $as_echo "$as_me:$LINENO: result: $CC" >&5 |
4017 |
> |
$as_echo "$CC" >&6; } |
4018 |
|
else |
4019 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
4020 |
< |
echo "${ECHO_T}no" >&6 |
4019 |
> |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
4020 |
> |
$as_echo "no" >&6; } |
4021 |
|
fi |
4022 |
|
|
4023 |
< |
test -n "$FC" && break |
4023 |
> |
|
4024 |
> |
test -n "$CC" && break |
4025 |
|
done |
4026 |
|
fi |
4027 |
< |
if test -z "$FC"; then |
4028 |
< |
ac_ct_FC=$FC |
4029 |
< |
for ac_prog in pathf95 ifort ifc xlf95 pgf95 lf95 epcf90 xlf90 pgf90 fort f95 f90 g95 f77 |
4027 |
> |
if test -z "$CC"; then |
4028 |
> |
ac_ct_CC=$CC |
4029 |
> |
for ac_prog in $CC $ac_cv_prog_acx_mpi_mpicc icc pathcc pgcc cc xlc gcc |
4030 |
|
do |
4031 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
4032 |
|
set dummy $ac_prog; ac_word=$2 |
4033 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4034 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4035 |
< |
if test "${ac_cv_prog_ac_ct_FC+set}" = set; then |
4036 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4033 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4034 |
> |
$as_echo_n "checking for $ac_word... " >&6; } |
4035 |
> |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
4036 |
> |
$as_echo_n "(cached) " >&6 |
4037 |
|
else |
4038 |
< |
if test -n "$ac_ct_FC"; then |
4039 |
< |
ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. |
4038 |
> |
if test -n "$ac_ct_CC"; then |
4039 |
> |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
4040 |
|
else |
4041 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4042 |
|
for as_dir in $PATH |
4044 |
|
IFS=$as_save_IFS |
4045 |
|
test -z "$as_dir" && as_dir=. |
4046 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
4047 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4048 |
< |
ac_cv_prog_ac_ct_FC="$ac_prog" |
4049 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4047 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4048 |
> |
ac_cv_prog_ac_ct_CC="$ac_prog" |
4049 |
> |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4050 |
|
break 2 |
4051 |
|
fi |
4052 |
|
done |
4053 |
|
done |
4054 |
+ |
IFS=$as_save_IFS |
4055 |
|
|
4056 |
|
fi |
4057 |
|
fi |
4058 |
< |
ac_ct_FC=$ac_cv_prog_ac_ct_FC |
4059 |
< |
if test -n "$ac_ct_FC"; then |
4060 |
< |
echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 |
4061 |
< |
echo "${ECHO_T}$ac_ct_FC" >&6 |
4058 |
> |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4059 |
> |
if test -n "$ac_ct_CC"; then |
4060 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
4061 |
> |
$as_echo "$ac_ct_CC" >&6; } |
4062 |
|
else |
4063 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
4064 |
< |
echo "${ECHO_T}no" >&6 |
4063 |
> |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
4064 |
> |
$as_echo "no" >&6; } |
4065 |
|
fi |
4066 |
|
|
2721 |
– |
test -n "$ac_ct_FC" && break |
2722 |
– |
done |
4067 |
|
|
4068 |
< |
FC=$ac_ct_FC |
4068 |
> |
test -n "$ac_ct_CC" && break |
4069 |
> |
done |
4070 |
> |
|
4071 |
> |
if test "x$ac_ct_CC" = x; then |
4072 |
> |
CC="" |
4073 |
> |
else |
4074 |
> |
case $cross_compiling:$ac_tool_warned in |
4075 |
> |
yes:) |
4076 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
4077 |
> |
whose name does not start with the host triplet. If you think this |
4078 |
> |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
4079 |
> |
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
4080 |
> |
whose name does not start with the host triplet. If you think this |
4081 |
> |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
4082 |
> |
ac_tool_warned=yes ;; |
4083 |
> |
esac |
4084 |
> |
CC=$ac_ct_CC |
4085 |
> |
fi |
4086 |
|
fi |
4087 |
|
|
4088 |
|
|
4089 |
+ |
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
4090 |
+ |
See \`config.log' for more details." >&5 |
4091 |
+ |
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
4092 |
+ |
See \`config.log' for more details." >&2;} |
4093 |
+ |
{ (exit 1); exit 1; }; } |
4094 |
+ |
|
4095 |
|
# Provide some information about the compiler. |
4096 |
< |
echo "$as_me:2729:" \ |
4097 |
< |
"checking for Fortran compiler version" >&5 |
4098 |
< |
ac_compiler=`set X $ac_compile; echo $2` |
4099 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
4100 |
< |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
4096 |
> |
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
4097 |
> |
set X $ac_compile |
4098 |
> |
ac_compiler=$2 |
4099 |
> |
{ (ac_try="$ac_compiler --version >&5" |
4100 |
> |
case "(($ac_try" in |
4101 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4102 |
> |
*) ac_try_echo=$ac_try;; |
4103 |
> |
esac |
4104 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4105 |
> |
$as_echo "$ac_try_echo") >&5 |
4106 |
> |
(eval "$ac_compiler --version >&5") 2>&5 |
4107 |
|
ac_status=$? |
4108 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4108 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4109 |
|
(exit $ac_status); } |
4110 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
4111 |
< |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
4110 |
> |
{ (ac_try="$ac_compiler -v >&5" |
4111 |
> |
case "(($ac_try" in |
4112 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4113 |
> |
*) ac_try_echo=$ac_try;; |
4114 |
> |
esac |
4115 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4116 |
> |
$as_echo "$ac_try_echo") >&5 |
4117 |
> |
(eval "$ac_compiler -v >&5") 2>&5 |
4118 |
|
ac_status=$? |
4119 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4119 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4120 |
|
(exit $ac_status); } |
4121 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
4122 |
< |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
4121 |
> |
{ (ac_try="$ac_compiler -V >&5" |
4122 |
> |
case "(($ac_try" in |
4123 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4124 |
> |
*) ac_try_echo=$ac_try;; |
4125 |
> |
esac |
4126 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4127 |
> |
$as_echo "$ac_try_echo") >&5 |
4128 |
> |
(eval "$ac_compiler -V >&5") 2>&5 |
4129 |
|
ac_status=$? |
4130 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4130 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4131 |
|
(exit $ac_status); } |
4132 |
+ |
|
4133 |
+ |
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
4134 |
+ |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
4135 |
+ |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
4136 |
+ |
$as_echo_n "(cached) " >&6 |
4137 |
+ |
else |
4138 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
4139 |
+ |
/* confdefs.h. */ |
4140 |
+ |
_ACEOF |
4141 |
+ |
cat confdefs.h >>conftest.$ac_ext |
4142 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
4143 |
+ |
/* end confdefs.h. */ |
4144 |
+ |
|
4145 |
+ |
int |
4146 |
+ |
main () |
4147 |
+ |
{ |
4148 |
+ |
#ifndef __GNUC__ |
4149 |
+ |
choke me |
4150 |
+ |
#endif |
4151 |
+ |
|
4152 |
+ |
; |
4153 |
+ |
return 0; |
4154 |
+ |
} |
4155 |
+ |
_ACEOF |
4156 |
+ |
rm -f conftest.$ac_objext |
4157 |
+ |
if { (ac_try="$ac_compile" |
4158 |
+ |
case "(($ac_try" in |
4159 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4160 |
+ |
*) ac_try_echo=$ac_try;; |
4161 |
+ |
esac |
4162 |
+ |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4163 |
+ |
$as_echo "$ac_try_echo") >&5 |
4164 |
+ |
(eval "$ac_compile") 2>conftest.er1 |
4165 |
+ |
ac_status=$? |
4166 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
4167 |
+ |
rm -f conftest.er1 |
4168 |
+ |
cat conftest.err >&5 |
4169 |
+ |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4170 |
+ |
(exit $ac_status); } && { |
4171 |
+ |
test -z "$ac_c_werror_flag" || |
4172 |
+ |
test ! -s conftest.err |
4173 |
+ |
} && test -s conftest.$ac_objext; then |
4174 |
+ |
ac_compiler_gnu=yes |
4175 |
+ |
else |
4176 |
+ |
$as_echo "$as_me: failed program was:" >&5 |
4177 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
4178 |
+ |
|
4179 |
+ |
ac_compiler_gnu=no |
4180 |
+ |
fi |
4181 |
+ |
|
4182 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4183 |
+ |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4184 |
+ |
|
4185 |
+ |
fi |
4186 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
4187 |
+ |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
4188 |
+ |
if test $ac_compiler_gnu = yes; then |
4189 |
+ |
GCC=yes |
4190 |
+ |
else |
4191 |
+ |
GCC= |
4192 |
+ |
fi |
4193 |
+ |
ac_test_CFLAGS=${CFLAGS+set} |
4194 |
+ |
ac_save_CFLAGS=$CFLAGS |
4195 |
+ |
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
4196 |
+ |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
4197 |
+ |
if test "${ac_cv_prog_cc_g+set}" = set; then |
4198 |
+ |
$as_echo_n "(cached) " >&6 |
4199 |
+ |
else |
4200 |
+ |
ac_save_c_werror_flag=$ac_c_werror_flag |
4201 |
+ |
ac_c_werror_flag=yes |
4202 |
+ |
ac_cv_prog_cc_g=no |
4203 |
+ |
CFLAGS="-g" |
4204 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
4205 |
+ |
/* confdefs.h. */ |
4206 |
+ |
_ACEOF |
4207 |
+ |
cat confdefs.h >>conftest.$ac_ext |
4208 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
4209 |
+ |
/* end confdefs.h. */ |
4210 |
+ |
|
4211 |
+ |
int |
4212 |
+ |
main () |
4213 |
+ |
{ |
4214 |
+ |
|
4215 |
+ |
; |
4216 |
+ |
return 0; |
4217 |
+ |
} |
4218 |
+ |
_ACEOF |
4219 |
+ |
rm -f conftest.$ac_objext |
4220 |
+ |
if { (ac_try="$ac_compile" |
4221 |
+ |
case "(($ac_try" in |
4222 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4223 |
+ |
*) ac_try_echo=$ac_try;; |
4224 |
+ |
esac |
4225 |
+ |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4226 |
+ |
$as_echo "$ac_try_echo") >&5 |
4227 |
+ |
(eval "$ac_compile") 2>conftest.er1 |
4228 |
+ |
ac_status=$? |
4229 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
4230 |
+ |
rm -f conftest.er1 |
4231 |
+ |
cat conftest.err >&5 |
4232 |
+ |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4233 |
+ |
(exit $ac_status); } && { |
4234 |
+ |
test -z "$ac_c_werror_flag" || |
4235 |
+ |
test ! -s conftest.err |
4236 |
+ |
} && test -s conftest.$ac_objext; then |
4237 |
+ |
ac_cv_prog_cc_g=yes |
4238 |
+ |
else |
4239 |
+ |
$as_echo "$as_me: failed program was:" >&5 |
4240 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
4241 |
+ |
|
4242 |
+ |
CFLAGS="" |
4243 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
4244 |
+ |
/* confdefs.h. */ |
4245 |
+ |
_ACEOF |
4246 |
+ |
cat confdefs.h >>conftest.$ac_ext |
4247 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
4248 |
+ |
/* end confdefs.h. */ |
4249 |
+ |
|
4250 |
+ |
int |
4251 |
+ |
main () |
4252 |
+ |
{ |
4253 |
+ |
|
4254 |
+ |
; |
4255 |
+ |
return 0; |
4256 |
+ |
} |
4257 |
+ |
_ACEOF |
4258 |
+ |
rm -f conftest.$ac_objext |
4259 |
+ |
if { (ac_try="$ac_compile" |
4260 |
+ |
case "(($ac_try" in |
4261 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4262 |
+ |
*) ac_try_echo=$ac_try;; |
4263 |
+ |
esac |
4264 |
+ |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4265 |
+ |
$as_echo "$ac_try_echo") >&5 |
4266 |
+ |
(eval "$ac_compile") 2>conftest.er1 |
4267 |
+ |
ac_status=$? |
4268 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
4269 |
+ |
rm -f conftest.er1 |
4270 |
+ |
cat conftest.err >&5 |
4271 |
+ |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4272 |
+ |
(exit $ac_status); } && { |
4273 |
+ |
test -z "$ac_c_werror_flag" || |
4274 |
+ |
test ! -s conftest.err |
4275 |
+ |
} && test -s conftest.$ac_objext; then |
4276 |
+ |
: |
4277 |
+ |
else |
4278 |
+ |
$as_echo "$as_me: failed program was:" >&5 |
4279 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
4280 |
+ |
|
4281 |
+ |
ac_c_werror_flag=$ac_save_c_werror_flag |
4282 |
+ |
CFLAGS="-g" |
4283 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
4284 |
+ |
/* confdefs.h. */ |
4285 |
+ |
_ACEOF |
4286 |
+ |
cat confdefs.h >>conftest.$ac_ext |
4287 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
4288 |
+ |
/* end confdefs.h. */ |
4289 |
+ |
|
4290 |
+ |
int |
4291 |
+ |
main () |
4292 |
+ |
{ |
4293 |
+ |
|
4294 |
+ |
; |
4295 |
+ |
return 0; |
4296 |
+ |
} |
4297 |
+ |
_ACEOF |
4298 |
+ |
rm -f conftest.$ac_objext |
4299 |
+ |
if { (ac_try="$ac_compile" |
4300 |
+ |
case "(($ac_try" in |
4301 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4302 |
+ |
*) ac_try_echo=$ac_try;; |
4303 |
+ |
esac |
4304 |
+ |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4305 |
+ |
$as_echo "$ac_try_echo") >&5 |
4306 |
+ |
(eval "$ac_compile") 2>conftest.er1 |
4307 |
+ |
ac_status=$? |
4308 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
4309 |
+ |
rm -f conftest.er1 |
4310 |
+ |
cat conftest.err >&5 |
4311 |
+ |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4312 |
+ |
(exit $ac_status); } && { |
4313 |
+ |
test -z "$ac_c_werror_flag" || |
4314 |
+ |
test ! -s conftest.err |
4315 |
+ |
} && test -s conftest.$ac_objext; then |
4316 |
+ |
ac_cv_prog_cc_g=yes |
4317 |
+ |
else |
4318 |
+ |
$as_echo "$as_me: failed program was:" >&5 |
4319 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
4320 |
+ |
|
4321 |
+ |
|
4322 |
+ |
fi |
4323 |
+ |
|
4324 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4325 |
+ |
fi |
4326 |
+ |
|
4327 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4328 |
+ |
fi |
4329 |
+ |
|
4330 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4331 |
+ |
ac_c_werror_flag=$ac_save_c_werror_flag |
4332 |
+ |
fi |
4333 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
4334 |
+ |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
4335 |
+ |
if test "$ac_test_CFLAGS" = set; then |
4336 |
+ |
CFLAGS=$ac_save_CFLAGS |
4337 |
+ |
elif test $ac_cv_prog_cc_g = yes; then |
4338 |
+ |
if test "$GCC" = yes; then |
4339 |
+ |
CFLAGS="-g -O2" |
4340 |
+ |
else |
4341 |
+ |
CFLAGS="-g" |
4342 |
+ |
fi |
4343 |
+ |
else |
4344 |
+ |
if test "$GCC" = yes; then |
4345 |
+ |
CFLAGS="-O2" |
4346 |
+ |
else |
4347 |
+ |
CFLAGS= |
4348 |
+ |
fi |
4349 |
+ |
fi |
4350 |
+ |
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
4351 |
+ |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
4352 |
+ |
if test "${ac_cv_prog_cc_c89+set}" = set; then |
4353 |
+ |
$as_echo_n "(cached) " >&6 |
4354 |
+ |
else |
4355 |
+ |
ac_cv_prog_cc_c89=no |
4356 |
+ |
ac_save_CC=$CC |
4357 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
4358 |
+ |
/* confdefs.h. */ |
4359 |
+ |
_ACEOF |
4360 |
+ |
cat confdefs.h >>conftest.$ac_ext |
4361 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
4362 |
+ |
/* end confdefs.h. */ |
4363 |
+ |
#include <stdarg.h> |
4364 |
+ |
#include <stdio.h> |
4365 |
+ |
#include <sys/types.h> |
4366 |
+ |
#include <sys/stat.h> |
4367 |
+ |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4368 |
+ |
struct buf { int x; }; |
4369 |
+ |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
4370 |
+ |
static char *e (p, i) |
4371 |
+ |
char **p; |
4372 |
+ |
int i; |
4373 |
+ |
{ |
4374 |
+ |
return p[i]; |
4375 |
+ |
} |
4376 |
+ |
static char *f (char * (*g) (char **, int), char **p, ...) |
4377 |
+ |
{ |
4378 |
+ |
char *s; |
4379 |
+ |
va_list v; |
4380 |
+ |
va_start (v,p); |
4381 |
+ |
s = g (p, va_arg (v,int)); |
4382 |
+ |
va_end (v); |
4383 |
+ |
return s; |
4384 |
+ |
} |
4385 |
+ |
|
4386 |
+ |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4387 |
+ |
function prototypes and stuff, but not '\xHH' hex character constants. |
4388 |
+ |
These don't provoke an error unfortunately, instead are silently treated |
4389 |
+ |
as 'x'. The following induces an error, until -std is added to get |
4390 |
+ |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4391 |
+ |
array size at least. It's necessary to write '\x00'==0 to get something |
4392 |
+ |
that's true only with -std. */ |
4393 |
+ |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4394 |
+ |
|
4395 |
+ |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4396 |
+ |
inside strings and character constants. */ |
4397 |
+ |
#define FOO(x) 'x' |
4398 |
+ |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
4399 |
+ |
|
4400 |
+ |
int test (int i, double x); |
4401 |
+ |
struct s1 {int (*f) (int a);}; |
4402 |
+ |
struct s2 {int (*f) (double a);}; |
4403 |
+ |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
4404 |
+ |
int argc; |
4405 |
+ |
char **argv; |
4406 |
+ |
int |
4407 |
+ |
main () |
4408 |
+ |
{ |
4409 |
+ |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
4410 |
+ |
; |
4411 |
+ |
return 0; |
4412 |
+ |
} |
4413 |
+ |
_ACEOF |
4414 |
+ |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4415 |
+ |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
4416 |
+ |
do |
4417 |
+ |
CC="$ac_save_CC $ac_arg" |
4418 |
+ |
rm -f conftest.$ac_objext |
4419 |
+ |
if { (ac_try="$ac_compile" |
4420 |
+ |
case "(($ac_try" in |
4421 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4422 |
+ |
*) ac_try_echo=$ac_try;; |
4423 |
+ |
esac |
4424 |
+ |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4425 |
+ |
$as_echo "$ac_try_echo") >&5 |
4426 |
+ |
(eval "$ac_compile") 2>conftest.er1 |
4427 |
+ |
ac_status=$? |
4428 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
4429 |
+ |
rm -f conftest.er1 |
4430 |
+ |
cat conftest.err >&5 |
4431 |
+ |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4432 |
+ |
(exit $ac_status); } && { |
4433 |
+ |
test -z "$ac_c_werror_flag" || |
4434 |
+ |
test ! -s conftest.err |
4435 |
+ |
} && test -s conftest.$ac_objext; then |
4436 |
+ |
ac_cv_prog_cc_c89=$ac_arg |
4437 |
+ |
else |
4438 |
+ |
$as_echo "$as_me: failed program was:" >&5 |
4439 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
4440 |
+ |
|
4441 |
+ |
|
4442 |
+ |
fi |
4443 |
+ |
|
4444 |
+ |
rm -f core conftest.err conftest.$ac_objext |
4445 |
+ |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
4446 |
+ |
done |
4447 |
+ |
rm -f conftest.$ac_ext |
4448 |
+ |
CC=$ac_save_CC |
4449 |
+ |
|
4450 |
+ |
fi |
4451 |
+ |
# AC_CACHE_VAL |
4452 |
+ |
case "x$ac_cv_prog_cc_c89" in |
4453 |
+ |
x) |
4454 |
+ |
{ $as_echo "$as_me:$LINENO: result: none needed" >&5 |
4455 |
+ |
$as_echo "none needed" >&6; } ;; |
4456 |
+ |
xno) |
4457 |
+ |
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
4458 |
+ |
$as_echo "unsupported" >&6; } ;; |
4459 |
+ |
*) |
4460 |
+ |
CC="$CC $ac_cv_prog_cc_c89" |
4461 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
4462 |
+ |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
4463 |
+ |
esac |
4464 |
+ |
|
4465 |
+ |
|
4466 |
+ |
ac_ext=c |
4467 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
4468 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4469 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4470 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4471 |
+ |
|
4472 |
+ |
ac_ext=${ac_fc_srcext-f} |
4473 |
+ |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
4474 |
+ |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
4475 |
+ |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
4476 |
+ |
if test -n "$ac_tool_prefix"; then |
4477 |
+ |
for ac_prog in $FC $ac_cv_prog_acx_mpi_mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
4478 |
+ |
do |
4479 |
+ |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4480 |
+ |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4481 |
+ |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4482 |
+ |
$as_echo_n "checking for $ac_word... " >&6; } |
4483 |
+ |
if test "${ac_cv_prog_FC+set}" = set; then |
4484 |
+ |
$as_echo_n "(cached) " >&6 |
4485 |
+ |
else |
4486 |
+ |
if test -n "$FC"; then |
4487 |
+ |
ac_cv_prog_FC="$FC" # Let the user override the test. |
4488 |
+ |
else |
4489 |
+ |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4490 |
+ |
for as_dir in $PATH |
4491 |
+ |
do |
4492 |
+ |
IFS=$as_save_IFS |
4493 |
+ |
test -z "$as_dir" && as_dir=. |
4494 |
+ |
for ac_exec_ext in '' $ac_executable_extensions; do |
4495 |
+ |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4496 |
+ |
ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
4497 |
+ |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4498 |
+ |
break 2 |
4499 |
+ |
fi |
4500 |
+ |
done |
4501 |
+ |
done |
4502 |
+ |
IFS=$as_save_IFS |
4503 |
+ |
|
4504 |
+ |
fi |
4505 |
+ |
fi |
4506 |
+ |
FC=$ac_cv_prog_FC |
4507 |
+ |
if test -n "$FC"; then |
4508 |
+ |
{ $as_echo "$as_me:$LINENO: result: $FC" >&5 |
4509 |
+ |
$as_echo "$FC" >&6; } |
4510 |
+ |
else |
4511 |
+ |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
4512 |
+ |
$as_echo "no" >&6; } |
4513 |
+ |
fi |
4514 |
+ |
|
4515 |
+ |
|
4516 |
+ |
test -n "$FC" && break |
4517 |
+ |
done |
4518 |
+ |
fi |
4519 |
+ |
if test -z "$FC"; then |
4520 |
+ |
ac_ct_FC=$FC |
4521 |
+ |
for ac_prog in $FC $ac_cv_prog_acx_mpi_mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
4522 |
+ |
do |
4523 |
+ |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
4524 |
+ |
set dummy $ac_prog; ac_word=$2 |
4525 |
+ |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4526 |
+ |
$as_echo_n "checking for $ac_word... " >&6; } |
4527 |
+ |
if test "${ac_cv_prog_ac_ct_FC+set}" = set; then |
4528 |
+ |
$as_echo_n "(cached) " >&6 |
4529 |
+ |
else |
4530 |
+ |
if test -n "$ac_ct_FC"; then |
4531 |
+ |
ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. |
4532 |
+ |
else |
4533 |
+ |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4534 |
+ |
for as_dir in $PATH |
4535 |
+ |
do |
4536 |
+ |
IFS=$as_save_IFS |
4537 |
+ |
test -z "$as_dir" && as_dir=. |
4538 |
+ |
for ac_exec_ext in '' $ac_executable_extensions; do |
4539 |
+ |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4540 |
+ |
ac_cv_prog_ac_ct_FC="$ac_prog" |
4541 |
+ |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4542 |
+ |
break 2 |
4543 |
+ |
fi |
4544 |
+ |
done |
4545 |
+ |
done |
4546 |
+ |
IFS=$as_save_IFS |
4547 |
+ |
|
4548 |
+ |
fi |
4549 |
+ |
fi |
4550 |
+ |
ac_ct_FC=$ac_cv_prog_ac_ct_FC |
4551 |
+ |
if test -n "$ac_ct_FC"; then |
4552 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 |
4553 |
+ |
$as_echo "$ac_ct_FC" >&6; } |
4554 |
+ |
else |
4555 |
+ |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
4556 |
+ |
$as_echo "no" >&6; } |
4557 |
+ |
fi |
4558 |
+ |
|
4559 |
+ |
|
4560 |
+ |
test -n "$ac_ct_FC" && break |
4561 |
+ |
done |
4562 |
+ |
|
4563 |
+ |
if test "x$ac_ct_FC" = x; then |
4564 |
+ |
FC="" |
4565 |
+ |
else |
4566 |
+ |
case $cross_compiling:$ac_tool_warned in |
4567 |
+ |
yes:) |
4568 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
4569 |
+ |
whose name does not start with the host triplet. If you think this |
4570 |
+ |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
4571 |
+ |
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
4572 |
+ |
whose name does not start with the host triplet. If you think this |
4573 |
+ |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
4574 |
+ |
ac_tool_warned=yes ;; |
4575 |
+ |
esac |
4576 |
+ |
FC=$ac_ct_FC |
4577 |
+ |
fi |
4578 |
+ |
fi |
4579 |
+ |
|
4580 |
+ |
|
4581 |
+ |
# Provide some information about the compiler. |
4582 |
+ |
$as_echo "$as_me:$LINENO: checking for Fortran compiler version" >&5 |
4583 |
+ |
set X $ac_compile |
4584 |
+ |
ac_compiler=$2 |
4585 |
+ |
{ (ac_try="$ac_compiler --version >&5" |
4586 |
+ |
case "(($ac_try" in |
4587 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4588 |
+ |
*) ac_try_echo=$ac_try;; |
4589 |
+ |
esac |
4590 |
+ |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4591 |
+ |
$as_echo "$ac_try_echo") >&5 |
4592 |
+ |
(eval "$ac_compiler --version >&5") 2>&5 |
4593 |
+ |
ac_status=$? |
4594 |
+ |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4595 |
+ |
(exit $ac_status); } |
4596 |
+ |
{ (ac_try="$ac_compiler -v >&5" |
4597 |
+ |
case "(($ac_try" in |
4598 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4599 |
+ |
*) ac_try_echo=$ac_try;; |
4600 |
+ |
esac |
4601 |
+ |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4602 |
+ |
$as_echo "$ac_try_echo") >&5 |
4603 |
+ |
(eval "$ac_compiler -v >&5") 2>&5 |
4604 |
+ |
ac_status=$? |
4605 |
+ |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4606 |
+ |
(exit $ac_status); } |
4607 |
+ |
{ (ac_try="$ac_compiler -V >&5" |
4608 |
+ |
case "(($ac_try" in |
4609 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4610 |
+ |
*) ac_try_echo=$ac_try;; |
4611 |
+ |
esac |
4612 |
+ |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4613 |
+ |
$as_echo "$ac_try_echo") >&5 |
4614 |
+ |
(eval "$ac_compiler -V >&5") 2>&5 |
4615 |
+ |
ac_status=$? |
4616 |
+ |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4617 |
+ |
(exit $ac_status); } |
4618 |
|
rm -f a.out |
4619 |
|
|
4620 |
|
# If we don't use `.F' as extension, the preprocessor is not run on the |
4621 |
|
# input file. (Note that this only needs to work for GNU compilers.) |
4622 |
|
ac_save_ext=$ac_ext |
4623 |
|
ac_ext=F |
4624 |
< |
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 |
4625 |
< |
echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6 |
4624 |
> |
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 |
4625 |
> |
$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } |
4626 |
|
if test "${ac_cv_fc_compiler_gnu+set}" = set; then |
4627 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4627 |
> |
$as_echo_n "(cached) " >&6 |
4628 |
|
else |
4629 |
|
cat >conftest.$ac_ext <<_ACEOF |
4630 |
|
program main |
4635 |
|
end |
4636 |
|
_ACEOF |
4637 |
|
rm -f conftest.$ac_objext |
4638 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4639 |
< |
(eval $ac_compile) 2>conftest.er1 |
4638 |
> |
if { (ac_try="$ac_compile" |
4639 |
> |
case "(($ac_try" in |
4640 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4641 |
> |
*) ac_try_echo=$ac_try;; |
4642 |
> |
esac |
4643 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4644 |
> |
$as_echo "$ac_try_echo") >&5 |
4645 |
> |
(eval "$ac_compile") 2>conftest.er1 |
4646 |
|
ac_status=$? |
4647 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
4648 |
|
rm -f conftest.er1 |
4649 |
|
cat conftest.err >&5 |
4650 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4651 |
< |
(exit $ac_status); } && |
4652 |
< |
{ ac_try='test -z "$ac_fc_werror_flag" |
4653 |
< |
|| test ! -s conftest.err' |
4654 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2778 |
< |
(eval $ac_try) 2>&5 |
2779 |
< |
ac_status=$? |
2780 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2781 |
< |
(exit $ac_status); }; } && |
2782 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2783 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2784 |
< |
(eval $ac_try) 2>&5 |
2785 |
< |
ac_status=$? |
2786 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2787 |
< |
(exit $ac_status); }; }; then |
4650 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4651 |
> |
(exit $ac_status); } && { |
4652 |
> |
test -z "$ac_fc_werror_flag" || |
4653 |
> |
test ! -s conftest.err |
4654 |
> |
} && test -s conftest.$ac_objext; then |
4655 |
|
ac_compiler_gnu=yes |
4656 |
|
else |
4657 |
< |
echo "$as_me: failed program was:" >&5 |
4657 |
> |
$as_echo "$as_me: failed program was:" >&5 |
4658 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
4659 |
|
|
4660 |
< |
ac_compiler_gnu=no |
4660 |
> |
ac_compiler_gnu=no |
4661 |
|
fi |
4662 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4662 |
> |
|
4663 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4664 |
|
ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
4665 |
|
|
4666 |
|
fi |
4667 |
< |
echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 |
4668 |
< |
echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6 |
4667 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 |
4668 |
> |
$as_echo "$ac_cv_fc_compiler_gnu" >&6; } |
4669 |
|
ac_ext=$ac_save_ext |
4670 |
|
ac_test_FFLAGS=${FCFLAGS+set} |
4671 |
|
ac_save_FFLAGS=$FCFLAGS |
4672 |
|
FCFLAGS= |
4673 |
< |
echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 |
4674 |
< |
echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6 |
4673 |
> |
{ $as_echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 |
4674 |
> |
$as_echo_n "checking whether $FC accepts -g... " >&6; } |
4675 |
|
if test "${ac_cv_prog_fc_g+set}" = set; then |
4676 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4676 |
> |
$as_echo_n "(cached) " >&6 |
4677 |
|
else |
4678 |
|
FCFLAGS=-g |
4679 |
|
cat >conftest.$ac_ext <<_ACEOF |
4682 |
|
end |
4683 |
|
_ACEOF |
4684 |
|
rm -f conftest.$ac_objext |
4685 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4686 |
< |
(eval $ac_compile) 2>conftest.er1 |
4685 |
> |
if { (ac_try="$ac_compile" |
4686 |
> |
case "(($ac_try" in |
4687 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4688 |
> |
*) ac_try_echo=$ac_try;; |
4689 |
> |
esac |
4690 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4691 |
> |
$as_echo "$ac_try_echo") >&5 |
4692 |
> |
(eval "$ac_compile") 2>conftest.er1 |
4693 |
|
ac_status=$? |
4694 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
4695 |
|
rm -f conftest.er1 |
4696 |
|
cat conftest.err >&5 |
4697 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4698 |
< |
(exit $ac_status); } && |
4699 |
< |
{ ac_try='test -z "$ac_fc_werror_flag" |
4700 |
< |
|| test ! -s conftest.err' |
4701 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2828 |
< |
(eval $ac_try) 2>&5 |
2829 |
< |
ac_status=$? |
2830 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2831 |
< |
(exit $ac_status); }; } && |
2832 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2833 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2834 |
< |
(eval $ac_try) 2>&5 |
2835 |
< |
ac_status=$? |
2836 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2837 |
< |
(exit $ac_status); }; }; then |
4697 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4698 |
> |
(exit $ac_status); } && { |
4699 |
> |
test -z "$ac_fc_werror_flag" || |
4700 |
> |
test ! -s conftest.err |
4701 |
> |
} && test -s conftest.$ac_objext; then |
4702 |
|
ac_cv_prog_fc_g=yes |
4703 |
|
else |
4704 |
< |
echo "$as_me: failed program was:" >&5 |
4704 |
> |
$as_echo "$as_me: failed program was:" >&5 |
4705 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
4706 |
|
|
4707 |
< |
ac_cv_prog_fc_g=no |
4707 |
> |
ac_cv_prog_fc_g=no |
4708 |
|
fi |
2845 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4709 |
|
|
4710 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4711 |
+ |
|
4712 |
|
fi |
4713 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 |
4714 |
< |
echo "${ECHO_T}$ac_cv_prog_fc_g" >&6 |
4713 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 |
4714 |
> |
$as_echo "$ac_cv_prog_fc_g" >&6; } |
4715 |
|
if test "$ac_test_FFLAGS" = set; then |
4716 |
|
FCFLAGS=$ac_save_FFLAGS |
4717 |
|
elif test $ac_cv_prog_fc_g = yes; then |
4739 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4740 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4741 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4742 |
< |
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4743 |
< |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
4742 |
> |
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4743 |
> |
$as_echo_n "checking how to run the C preprocessor... " >&6; } |
4744 |
|
# On Suns, sometimes $CPP names a directory. |
4745 |
|
if test -n "$CPP" && test -d "$CPP"; then |
4746 |
|
CPP= |
4747 |
|
fi |
4748 |
|
if test -z "$CPP"; then |
4749 |
|
if test "${ac_cv_prog_CPP+set}" = set; then |
4750 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4750 |
> |
$as_echo_n "(cached) " >&6 |
4751 |
|
else |
4752 |
|
# Double quotes because CPP needs to be expanded |
4753 |
|
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
4774 |
|
#endif |
4775 |
|
Syntax error |
4776 |
|
_ACEOF |
4777 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4778 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4777 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
4778 |
> |
case "(($ac_try" in |
4779 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4780 |
> |
*) ac_try_echo=$ac_try;; |
4781 |
> |
esac |
4782 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4783 |
> |
$as_echo "$ac_try_echo") >&5 |
4784 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4785 |
|
ac_status=$? |
4786 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
4787 |
|
rm -f conftest.er1 |
4788 |
|
cat conftest.err >&5 |
4789 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4790 |
< |
(exit $ac_status); } >/dev/null; then |
4791 |
< |
if test -s conftest.err; then |
4792 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
4793 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
2923 |
< |
else |
2924 |
< |
ac_cpp_err= |
2925 |
< |
fi |
2926 |
< |
else |
2927 |
< |
ac_cpp_err=yes |
2928 |
< |
fi |
2929 |
< |
if test -z "$ac_cpp_err"; then |
4789 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4790 |
> |
(exit $ac_status); } >/dev/null && { |
4791 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4792 |
> |
test ! -s conftest.err |
4793 |
> |
}; then |
4794 |
|
: |
4795 |
|
else |
4796 |
< |
echo "$as_me: failed program was:" >&5 |
4796 |
> |
$as_echo "$as_me: failed program was:" >&5 |
4797 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
4798 |
|
|
4799 |
|
# Broken: fails on valid input. |
4800 |
|
continue |
4801 |
|
fi |
4802 |
+ |
|
4803 |
|
rm -f conftest.err conftest.$ac_ext |
4804 |
|
|
4805 |
< |
# OK, works on sane cases. Now check whether non-existent headers |
4805 |
> |
# OK, works on sane cases. Now check whether nonexistent headers |
4806 |
|
# can be detected and how. |
4807 |
|
cat >conftest.$ac_ext <<_ACEOF |
4808 |
|
/* confdefs.h. */ |
4812 |
|
/* end confdefs.h. */ |
4813 |
|
#include <ac_nonexistent.h> |
4814 |
|
_ACEOF |
4815 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4816 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4815 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
4816 |
> |
case "(($ac_try" in |
4817 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4818 |
> |
*) ac_try_echo=$ac_try;; |
4819 |
> |
esac |
4820 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4821 |
> |
$as_echo "$ac_try_echo") >&5 |
4822 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4823 |
|
ac_status=$? |
4824 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
4825 |
|
rm -f conftest.er1 |
4826 |
|
cat conftest.err >&5 |
4827 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4828 |
< |
(exit $ac_status); } >/dev/null; then |
4829 |
< |
if test -s conftest.err; then |
4830 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
4831 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
2961 |
< |
else |
2962 |
< |
ac_cpp_err= |
2963 |
< |
fi |
2964 |
< |
else |
2965 |
< |
ac_cpp_err=yes |
2966 |
< |
fi |
2967 |
< |
if test -z "$ac_cpp_err"; then |
4827 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4828 |
> |
(exit $ac_status); } >/dev/null && { |
4829 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4830 |
> |
test ! -s conftest.err |
4831 |
> |
}; then |
4832 |
|
# Broken: success on invalid input. |
4833 |
|
continue |
4834 |
|
else |
4835 |
< |
echo "$as_me: failed program was:" >&5 |
4835 |
> |
$as_echo "$as_me: failed program was:" >&5 |
4836 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
4837 |
|
|
4838 |
|
# Passes both tests. |
4839 |
|
ac_preproc_ok=: |
4840 |
|
break |
4841 |
|
fi |
4842 |
+ |
|
4843 |
|
rm -f conftest.err conftest.$ac_ext |
4844 |
|
|
4845 |
|
done |
4857 |
|
else |
4858 |
|
ac_cv_prog_CPP=$CPP |
4859 |
|
fi |
4860 |
< |
echo "$as_me:$LINENO: result: $CPP" >&5 |
4861 |
< |
echo "${ECHO_T}$CPP" >&6 |
4860 |
> |
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
4861 |
> |
$as_echo "$CPP" >&6; } |
4862 |
|
ac_preproc_ok=false |
4863 |
|
for ac_c_preproc_warn_flag in '' yes |
4864 |
|
do |
4881 |
|
#endif |
4882 |
|
Syntax error |
4883 |
|
_ACEOF |
4884 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4885 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4884 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
4885 |
> |
case "(($ac_try" in |
4886 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4887 |
> |
*) ac_try_echo=$ac_try;; |
4888 |
> |
esac |
4889 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4890 |
> |
$as_echo "$ac_try_echo") >&5 |
4891 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4892 |
|
ac_status=$? |
4893 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
4894 |
|
rm -f conftest.er1 |
4895 |
|
cat conftest.err >&5 |
4896 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4897 |
< |
(exit $ac_status); } >/dev/null; then |
4898 |
< |
if test -s conftest.err; then |
4899 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
4900 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3030 |
< |
else |
3031 |
< |
ac_cpp_err= |
3032 |
< |
fi |
3033 |
< |
else |
3034 |
< |
ac_cpp_err=yes |
3035 |
< |
fi |
3036 |
< |
if test -z "$ac_cpp_err"; then |
4896 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4897 |
> |
(exit $ac_status); } >/dev/null && { |
4898 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4899 |
> |
test ! -s conftest.err |
4900 |
> |
}; then |
4901 |
|
: |
4902 |
|
else |
4903 |
< |
echo "$as_me: failed program was:" >&5 |
4903 |
> |
$as_echo "$as_me: failed program was:" >&5 |
4904 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
4905 |
|
|
4906 |
|
# Broken: fails on valid input. |
4907 |
|
continue |
4908 |
|
fi |
4909 |
+ |
|
4910 |
|
rm -f conftest.err conftest.$ac_ext |
4911 |
|
|
4912 |
< |
# OK, works on sane cases. Now check whether non-existent headers |
4912 |
> |
# OK, works on sane cases. Now check whether nonexistent headers |
4913 |
|
# can be detected and how. |
4914 |
|
cat >conftest.$ac_ext <<_ACEOF |
4915 |
|
/* confdefs.h. */ |
4919 |
|
/* end confdefs.h. */ |
4920 |
|
#include <ac_nonexistent.h> |
4921 |
|
_ACEOF |
4922 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4923 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4922 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
4923 |
> |
case "(($ac_try" in |
4924 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4925 |
> |
*) ac_try_echo=$ac_try;; |
4926 |
> |
esac |
4927 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4928 |
> |
$as_echo "$ac_try_echo") >&5 |
4929 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4930 |
|
ac_status=$? |
4931 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
4932 |
|
rm -f conftest.er1 |
4933 |
|
cat conftest.err >&5 |
4934 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4935 |
< |
(exit $ac_status); } >/dev/null; then |
4936 |
< |
if test -s conftest.err; then |
4937 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
4938 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3068 |
< |
else |
3069 |
< |
ac_cpp_err= |
3070 |
< |
fi |
3071 |
< |
else |
3072 |
< |
ac_cpp_err=yes |
3073 |
< |
fi |
3074 |
< |
if test -z "$ac_cpp_err"; then |
4934 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4935 |
> |
(exit $ac_status); } >/dev/null && { |
4936 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4937 |
> |
test ! -s conftest.err |
4938 |
> |
}; then |
4939 |
|
# Broken: success on invalid input. |
4940 |
|
continue |
4941 |
|
else |
4942 |
< |
echo "$as_me: failed program was:" >&5 |
4942 |
> |
$as_echo "$as_me: failed program was:" >&5 |
4943 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
4944 |
|
|
4945 |
|
# Passes both tests. |
4946 |
|
ac_preproc_ok=: |
4947 |
|
break |
4948 |
|
fi |
4949 |
+ |
|
4950 |
|
rm -f conftest.err conftest.$ac_ext |
4951 |
|
|
4952 |
|
done |
4955 |
|
if $ac_preproc_ok; then |
4956 |
|
: |
4957 |
|
else |
4958 |
< |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4958 |
> |
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4959 |
|
See \`config.log' for more details." >&5 |
4960 |
< |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
4960 |
> |
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
4961 |
|
See \`config.log' for more details." >&2;} |
4962 |
|
{ (exit 1); exit 1; }; } |
4963 |
|
fi |
4968 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4969 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4970 |
|
|
4971 |
< |
echo "$as_me:$LINENO: checking for egrep" >&5 |
4972 |
< |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
4973 |
< |
if test "${ac_cv_prog_egrep+set}" = set; then |
4974 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4971 |
> |
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
4972 |
> |
$as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
4973 |
> |
if test "${ac_cv_path_GREP+set}" = set; then |
4974 |
> |
$as_echo_n "(cached) " >&6 |
4975 |
|
else |
4976 |
< |
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
4977 |
< |
then ac_cv_prog_egrep='grep -E' |
4978 |
< |
else ac_cv_prog_egrep='egrep' |
4976 |
> |
if test -z "$GREP"; then |
4977 |
> |
ac_path_GREP_found=false |
4978 |
> |
# Loop through the user's path and test for each of PROGNAME-LIST |
4979 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4980 |
> |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4981 |
> |
do |
4982 |
> |
IFS=$as_save_IFS |
4983 |
> |
test -z "$as_dir" && as_dir=. |
4984 |
> |
for ac_prog in grep ggrep; do |
4985 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
4986 |
> |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
4987 |
> |
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
4988 |
> |
# Check for GNU ac_path_GREP and select it if it is found. |
4989 |
> |
# Check for GNU $ac_path_GREP |
4990 |
> |
case `"$ac_path_GREP" --version 2>&1` in |
4991 |
> |
*GNU*) |
4992 |
> |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
4993 |
> |
*) |
4994 |
> |
ac_count=0 |
4995 |
> |
$as_echo_n 0123456789 >"conftest.in" |
4996 |
> |
while : |
4997 |
> |
do |
4998 |
> |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4999 |
> |
mv "conftest.tmp" "conftest.in" |
5000 |
> |
cp "conftest.in" "conftest.nl" |
5001 |
> |
$as_echo 'GREP' >> "conftest.nl" |
5002 |
> |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
5003 |
> |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
5004 |
> |
ac_count=`expr $ac_count + 1` |
5005 |
> |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
5006 |
> |
# Best one so far, save it but keep looking for a better one |
5007 |
> |
ac_cv_path_GREP="$ac_path_GREP" |
5008 |
> |
ac_path_GREP_max=$ac_count |
5009 |
|
fi |
5010 |
+ |
# 10*(2^10) chars as input seems more than enough |
5011 |
+ |
test $ac_count -gt 10 && break |
5012 |
+ |
done |
5013 |
+ |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5014 |
+ |
esac |
5015 |
+ |
|
5016 |
+ |
$ac_path_GREP_found && break 3 |
5017 |
+ |
done |
5018 |
+ |
done |
5019 |
+ |
done |
5020 |
+ |
IFS=$as_save_IFS |
5021 |
+ |
if test -z "$ac_cv_path_GREP"; then |
5022 |
+ |
{ { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
5023 |
+ |
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
5024 |
+ |
{ (exit 1); exit 1; }; } |
5025 |
+ |
fi |
5026 |
+ |
else |
5027 |
+ |
ac_cv_path_GREP=$GREP |
5028 |
|
fi |
3116 |
– |
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
3117 |
– |
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
3118 |
– |
EGREP=$ac_cv_prog_egrep |
5029 |
|
|
5030 |
+ |
fi |
5031 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
5032 |
+ |
$as_echo "$ac_cv_path_GREP" >&6; } |
5033 |
+ |
GREP="$ac_cv_path_GREP" |
5034 |
|
|
5035 |
< |
echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
5036 |
< |
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
5035 |
> |
|
5036 |
> |
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
5037 |
> |
$as_echo_n "checking for egrep... " >&6; } |
5038 |
> |
if test "${ac_cv_path_EGREP+set}" = set; then |
5039 |
> |
$as_echo_n "(cached) " >&6 |
5040 |
> |
else |
5041 |
> |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
5042 |
> |
then ac_cv_path_EGREP="$GREP -E" |
5043 |
> |
else |
5044 |
> |
if test -z "$EGREP"; then |
5045 |
> |
ac_path_EGREP_found=false |
5046 |
> |
# Loop through the user's path and test for each of PROGNAME-LIST |
5047 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5048 |
> |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
5049 |
> |
do |
5050 |
> |
IFS=$as_save_IFS |
5051 |
> |
test -z "$as_dir" && as_dir=. |
5052 |
> |
for ac_prog in egrep; do |
5053 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
5054 |
> |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
5055 |
> |
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
5056 |
> |
# Check for GNU ac_path_EGREP and select it if it is found. |
5057 |
> |
# Check for GNU $ac_path_EGREP |
5058 |
> |
case `"$ac_path_EGREP" --version 2>&1` in |
5059 |
> |
*GNU*) |
5060 |
> |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
5061 |
> |
*) |
5062 |
> |
ac_count=0 |
5063 |
> |
$as_echo_n 0123456789 >"conftest.in" |
5064 |
> |
while : |
5065 |
> |
do |
5066 |
> |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
5067 |
> |
mv "conftest.tmp" "conftest.in" |
5068 |
> |
cp "conftest.in" "conftest.nl" |
5069 |
> |
$as_echo 'EGREP' >> "conftest.nl" |
5070 |
> |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
5071 |
> |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
5072 |
> |
ac_count=`expr $ac_count + 1` |
5073 |
> |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
5074 |
> |
# Best one so far, save it but keep looking for a better one |
5075 |
> |
ac_cv_path_EGREP="$ac_path_EGREP" |
5076 |
> |
ac_path_EGREP_max=$ac_count |
5077 |
> |
fi |
5078 |
> |
# 10*(2^10) chars as input seems more than enough |
5079 |
> |
test $ac_count -gt 10 && break |
5080 |
> |
done |
5081 |
> |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5082 |
> |
esac |
5083 |
> |
|
5084 |
> |
$ac_path_EGREP_found && break 3 |
5085 |
> |
done |
5086 |
> |
done |
5087 |
> |
done |
5088 |
> |
IFS=$as_save_IFS |
5089 |
> |
if test -z "$ac_cv_path_EGREP"; then |
5090 |
> |
{ { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
5091 |
> |
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
5092 |
> |
{ (exit 1); exit 1; }; } |
5093 |
> |
fi |
5094 |
> |
else |
5095 |
> |
ac_cv_path_EGREP=$EGREP |
5096 |
> |
fi |
5097 |
> |
|
5098 |
> |
fi |
5099 |
> |
fi |
5100 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
5101 |
> |
$as_echo "$ac_cv_path_EGREP" >&6; } |
5102 |
> |
EGREP="$ac_cv_path_EGREP" |
5103 |
> |
|
5104 |
> |
|
5105 |
> |
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
5106 |
> |
$as_echo_n "checking whether ln -s works... " >&6; } |
5107 |
|
LN_S=$as_ln_s |
5108 |
|
if test "$LN_S" = "ln -s"; then |
5109 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
5110 |
< |
echo "${ECHO_T}yes" >&6 |
5109 |
> |
{ $as_echo "$as_me:$LINENO: result: yes" >&5 |
5110 |
> |
$as_echo "yes" >&6; } |
5111 |
|
else |
5112 |
< |
echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
5113 |
< |
echo "${ECHO_T}no, using $LN_S" >&6 |
5112 |
> |
{ $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
5113 |
> |
$as_echo "no, using $LN_S" >&6; } |
5114 |
|
fi |
5115 |
|
|
5116 |
< |
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
5117 |
< |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
5118 |
< |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
5119 |
< |
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
5120 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5116 |
> |
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
5117 |
> |
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
5118 |
> |
set x ${MAKE-make} |
5119 |
> |
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
5120 |
> |
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
5121 |
> |
$as_echo_n "(cached) " >&6 |
5122 |
|
else |
5123 |
|
cat >conftest.make <<\_ACEOF |
5124 |
+ |
SHELL = /bin/sh |
5125 |
|
all: |
5126 |
< |
@echo 'ac_maketemp="$(MAKE)"' |
5126 |
> |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
5127 |
|
_ACEOF |
5128 |
|
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
5129 |
< |
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
5130 |
< |
if test -n "$ac_maketemp"; then |
5131 |
< |
eval ac_cv_prog_make_${ac_make}_set=yes |
5132 |
< |
else |
5133 |
< |
eval ac_cv_prog_make_${ac_make}_set=no |
5134 |
< |
fi |
5129 |
> |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
5130 |
> |
*@@@%%%=?*=@@@%%%*) |
5131 |
> |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
5132 |
> |
*) |
5133 |
> |
eval ac_cv_prog_make_${ac_make}_set=no;; |
5134 |
> |
esac |
5135 |
|
rm -f conftest.make |
5136 |
|
fi |
5137 |
< |
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
5138 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
5139 |
< |
echo "${ECHO_T}yes" >&6 |
5137 |
> |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
5138 |
> |
{ $as_echo "$as_me:$LINENO: result: yes" >&5 |
5139 |
> |
$as_echo "yes" >&6; } |
5140 |
|
SET_MAKE= |
5141 |
|
else |
5142 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
5143 |
< |
echo "${ECHO_T}no" >&6 |
5142 |
> |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
5143 |
> |
$as_echo "no" >&6; } |
5144 |
|
SET_MAKE="MAKE=${MAKE-make}" |
5145 |
|
fi |
5146 |
|
|
5147 |
|
if test -n "$ac_tool_prefix"; then |
5148 |
|
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
5149 |
|
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5150 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5151 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5150 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5151 |
> |
$as_echo_n "checking for $ac_word... " >&6; } |
5152 |
|
if test "${ac_cv_prog_RANLIB+set}" = set; then |
5153 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5153 |
> |
$as_echo_n "(cached) " >&6 |
5154 |
|
else |
5155 |
|
if test -n "$RANLIB"; then |
5156 |
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
5161 |
|
IFS=$as_save_IFS |
5162 |
|
test -z "$as_dir" && as_dir=. |
5163 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
5164 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5164 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5165 |
|
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5166 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5166 |
> |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5167 |
|
break 2 |
5168 |
|
fi |
5169 |
|
done |
5170 |
|
done |
5171 |
+ |
IFS=$as_save_IFS |
5172 |
|
|
5173 |
|
fi |
5174 |
|
fi |
5175 |
|
RANLIB=$ac_cv_prog_RANLIB |
5176 |
|
if test -n "$RANLIB"; then |
5177 |
< |
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
5178 |
< |
echo "${ECHO_T}$RANLIB" >&6 |
5177 |
> |
{ $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
5178 |
> |
$as_echo "$RANLIB" >&6; } |
5179 |
|
else |
5180 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
5181 |
< |
echo "${ECHO_T}no" >&6 |
5180 |
> |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
5181 |
> |
$as_echo "no" >&6; } |
5182 |
|
fi |
5183 |
|
|
5184 |
+ |
|
5185 |
|
fi |
5186 |
|
if test -z "$ac_cv_prog_RANLIB"; then |
5187 |
|
ac_ct_RANLIB=$RANLIB |
5188 |
|
# Extract the first word of "ranlib", so it can be a program name with args. |
5189 |
|
set dummy ranlib; ac_word=$2 |
5190 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5191 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5190 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5191 |
> |
$as_echo_n "checking for $ac_word... " >&6; } |
5192 |
|
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
5193 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5193 |
> |
$as_echo_n "(cached) " >&6 |
5194 |
|
else |
5195 |
|
if test -n "$ac_ct_RANLIB"; then |
5196 |
|
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
5201 |
|
IFS=$as_save_IFS |
5202 |
|
test -z "$as_dir" && as_dir=. |
5203 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
5204 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5204 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5205 |
|
ac_cv_prog_ac_ct_RANLIB="ranlib" |
5206 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5206 |
> |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5207 |
|
break 2 |
5208 |
|
fi |
5209 |
|
done |
5210 |
|
done |
5211 |
+ |
IFS=$as_save_IFS |
5212 |
|
|
3224 |
– |
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
5213 |
|
fi |
5214 |
|
fi |
5215 |
|
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5216 |
|
if test -n "$ac_ct_RANLIB"; then |
5217 |
< |
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
5218 |
< |
echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
5217 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
5218 |
> |
$as_echo "$ac_ct_RANLIB" >&6; } |
5219 |
|
else |
5220 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
5221 |
< |
echo "${ECHO_T}no" >&6 |
5220 |
> |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
5221 |
> |
$as_echo "no" >&6; } |
5222 |
|
fi |
5223 |
|
|
5224 |
< |
RANLIB=$ac_ct_RANLIB |
5225 |
< |
else |
5226 |
< |
RANLIB="$ac_cv_prog_RANLIB" |
5227 |
< |
fi |
5228 |
< |
|
5229 |
< |
|
5230 |
< |
# Extract the first word of "perl", so it can be a program name with args. |
5231 |
< |
set dummy perl; ac_word=$2 |
5232 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5233 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5234 |
< |
if test "${ac_cv_path_PERLINTERP+set}" = set; then |
5235 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5236 |
< |
else |
5224 |
> |
if test "x$ac_ct_RANLIB" = x; then |
5225 |
> |
RANLIB=":" |
5226 |
> |
else |
5227 |
> |
case $cross_compiling:$ac_tool_warned in |
5228 |
> |
yes:) |
5229 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
5230 |
> |
whose name does not start with the host triplet. If you think this |
5231 |
> |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
5232 |
> |
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
5233 |
> |
whose name does not start with the host triplet. If you think this |
5234 |
> |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
5235 |
> |
ac_tool_warned=yes ;; |
5236 |
> |
esac |
5237 |
> |
RANLIB=$ac_ct_RANLIB |
5238 |
> |
fi |
5239 |
> |
else |
5240 |
> |
RANLIB="$ac_cv_prog_RANLIB" |
5241 |
> |
fi |
5242 |
> |
|
5243 |
> |
|
5244 |
> |
# Extract the first word of "perl", so it can be a program name with args. |
5245 |
> |
set dummy perl; ac_word=$2 |
5246 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5247 |
> |
$as_echo_n "checking for $ac_word... " >&6; } |
5248 |
> |
if test "${ac_cv_path_PERLINTERP+set}" = set; then |
5249 |
> |
$as_echo_n "(cached) " >&6 |
5250 |
> |
else |
5251 |
|
case $PERLINTERP in |
5252 |
|
[\\/]* | ?:[\\/]*) |
5253 |
|
ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path. |
5259 |
|
IFS=$as_save_IFS |
5260 |
|
test -z "$as_dir" && as_dir=. |
5261 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
5262 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5262 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5263 |
|
ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext" |
5264 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5264 |
> |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5265 |
|
break 2 |
5266 |
|
fi |
5267 |
|
done |
5268 |
|
done |
5269 |
+ |
IFS=$as_save_IFS |
5270 |
|
|
5271 |
|
test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl" |
5272 |
|
;; |
5273 |
|
esac |
5274 |
|
fi |
5275 |
|
PERLINTERP=$ac_cv_path_PERLINTERP |
3273 |
– |
|
5276 |
|
if test -n "$PERLINTERP"; then |
5277 |
< |
echo "$as_me:$LINENO: result: $PERLINTERP" >&5 |
5278 |
< |
echo "${ECHO_T}$PERLINTERP" >&6 |
5277 |
> |
{ $as_echo "$as_me:$LINENO: result: $PERLINTERP" >&5 |
5278 |
> |
$as_echo "$PERLINTERP" >&6; } |
5279 |
|
else |
5280 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
5281 |
< |
echo "${ECHO_T}no" >&6 |
5280 |
> |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
5281 |
> |
$as_echo "no" >&6; } |
5282 |
|
fi |
5283 |
|
|
5284 |
+ |
|
5285 |
|
ac_cv_path_perlinterp="$PERLINTERP" |
5286 |
|
_sHpB='#!' |
5287 |
|
|
5288 |
|
|
5289 |
< |
# Check whether --with-perl-shebang or --without-perl-shebang was given. |
5289 |
> |
# Check whether --with-perl-shebang was given. |
5290 |
|
if test "${with_perl_shebang+set}" = set; then |
5291 |
< |
withval="$with_perl_shebang" |
3289 |
< |
opt_perl_shebang="$withval" |
5291 |
> |
withval=$with_perl_shebang; opt_perl_shebang="$withval" |
5292 |
|
else |
5293 |
|
opt_perl_shebang="not_set" |
5294 |
< |
fi; |
5295 |
< |
echo "$as_me:$LINENO: checking whether explicit instead of detected sharpbang is to be used" >&5 |
5296 |
< |
echo $ECHO_N "checking whether explicit instead of detected sharpbang is to be used... $ECHO_C" >&6 |
5294 |
> |
fi |
5295 |
> |
|
5296 |
> |
{ $as_echo "$as_me:$LINENO: checking whether explicit instead of detected sharpbang is to be used" >&5 |
5297 |
> |
$as_echo_n "checking whether explicit instead of detected sharpbang is to be used... " >&6; } |
5298 |
|
if test "${ax_cv_opt_perl_shebang+set}" = set; then |
5299 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5299 |
> |
$as_echo_n "(cached) " >&6 |
5300 |
|
else |
5301 |
|
case "$opt_perl_shebang" in |
5302 |
|
not_set ) ax_cv_opt_perl_shebang='' |
5306 |
|
esac |
5307 |
|
|
5308 |
|
fi |
5309 |
< |
echo "$as_me:$LINENO: result: $ax_cv_opt_perl_shebang" >&5 |
5310 |
< |
echo "${ECHO_T}$ax_cv_opt_perl_shebang" >&6 |
5309 |
> |
{ $as_echo "$as_me:$LINENO: result: $ax_cv_opt_perl_shebang" >&5 |
5310 |
> |
$as_echo "$ax_cv_opt_perl_shebang" >&6; } |
5311 |
|
if test "A$ax_cv_opt_perl_shebang" != "A" |
5312 |
|
then |
5313 |
|
ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang" |
5314 |
|
PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl" |
5315 |
< |
{ echo "$as_me:$LINENO: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5 |
5316 |
< |
echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;} |
5315 |
> |
{ $as_echo "$as_me:$LINENO: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5 |
5316 |
> |
$as_echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;} |
5317 |
|
|
5318 |
|
# Automatic detection of sharpbang formula starts here |
5319 |
|
else |
5320 |
|
_somian_shbangperl=`$PERLINTERP -V:startperl` |
5321 |
|
negclass="[^']"; # must leave this comment: m4 will remove the outer brackets for us, heheh |
5322 |
< |
echo "$as_me:$LINENO: checking for kernel sharpbang invocation to start perl" >&5 |
5323 |
< |
echo $ECHO_N "checking for kernel sharpbang invocation to start perl... $ECHO_C" >&6 |
5322 |
> |
{ $as_echo "$as_me:$LINENO: checking for kernel sharpbang invocation to start perl" >&5 |
5323 |
> |
$as_echo_n "checking for kernel sharpbang invocation to start perl... " >&6; } |
5324 |
|
if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then |
5325 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5325 |
> |
$as_echo_n "(cached) " >&6 |
5326 |
|
else |
5327 |
|
_somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"` |
5328 |
|
if test "x$_somian_kspb_perl" == x |
5338 |
|
fi |
5339 |
|
|
5340 |
|
fi |
5341 |
< |
echo "$as_me:$LINENO: result: $ac_cv_sys_kernshrpbang_perl" >&5 |
5342 |
< |
echo "${ECHO_T}$ac_cv_sys_kernshrpbang_perl" >&6 |
5341 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_kernshrpbang_perl" >&5 |
5342 |
> |
$as_echo "$ac_cv_sys_kernshrpbang_perl" >&6; } |
5343 |
|
# The above prints Checking ... result message to user. |
5344 |
|
PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl" |
5345 |
|
|
5346 |
|
if test A${_somian_ksbp_warn_empty+set} == Aset |
5347 |
< |
then { echo "$as_me:$LINENO: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5 |
5348 |
< |
echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;} |
5347 |
> |
then { $as_echo "$as_me:$LINENO: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5 |
5348 |
> |
$as_echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;} |
5349 |
|
fi |
5350 |
|
# Inform user after printing result value |
5351 |
|
if test A${_somian_ksbp_warn_defau+set} == Aset |
5352 |
< |
then { echo "$as_me:$LINENO: Maybe Not good -" >&5 |
5353 |
< |
echo "$as_me: Maybe Not good -" >&6;} |
5354 |
< |
{ echo "$as_me:$LINENO: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5 |
5355 |
< |
echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;} |
5356 |
< |
else { echo "$as_me:$LINENO: OK Good result - " >&5 |
5357 |
< |
echo "$as_me: OK Good result - " >&6;} |
5358 |
< |
{ echo "$as_me:$LINENO: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5 |
5359 |
< |
echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;} |
5352 |
> |
then { $as_echo "$as_me:$LINENO: Maybe Not good -" >&5 |
5353 |
> |
$as_echo "$as_me: Maybe Not good -" >&6;} |
5354 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5 |
5355 |
> |
$as_echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;} |
5356 |
> |
else { $as_echo "$as_me:$LINENO: OK Good result - " >&5 |
5357 |
> |
$as_echo "$as_me: OK Good result - " >&6;} |
5358 |
> |
{ $as_echo "$as_me:$LINENO: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5 |
5359 |
> |
$as_echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;} |
5360 |
|
fi |
5361 |
|
fi |
5362 |
|
|
5373 |
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
5374 |
|
# OS/2's system install, which has a completely different semantic |
5375 |
|
# ./install, which can be erroneously created by make from ./install.sh. |
5376 |
< |
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
5377 |
< |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
5376 |
> |
# Reject install programs that cannot install multiple files. |
5377 |
> |
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
5378 |
> |
$as_echo_n "checking for a BSD-compatible install... " >&6; } |
5379 |
|
if test -z "$INSTALL"; then |
5380 |
|
if test "${ac_cv_path_install+set}" = set; then |
5381 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5381 |
> |
$as_echo_n "(cached) " >&6 |
5382 |
|
else |
5383 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5384 |
|
for as_dir in $PATH |
5397 |
|
# by default. |
5398 |
|
for ac_prog in ginstall scoinst install; do |
5399 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
5400 |
< |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
5400 |
> |
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
5401 |
|
if test $ac_prog = install && |
5402 |
|
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
5403 |
|
# AIX install. It has an incompatible calling convention. |
5407 |
|
# program-specific install script used by HP pwplus--don't use. |
5408 |
|
: |
5409 |
|
else |
5410 |
< |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
5411 |
< |
break 3 |
5410 |
> |
rm -rf conftest.one conftest.two conftest.dir |
5411 |
> |
echo one > conftest.one |
5412 |
> |
echo two > conftest.two |
5413 |
> |
mkdir conftest.dir |
5414 |
> |
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
5415 |
> |
test -s conftest.one && test -s conftest.two && |
5416 |
> |
test -s conftest.dir/conftest.one && |
5417 |
> |
test -s conftest.dir/conftest.two |
5418 |
> |
then |
5419 |
> |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
5420 |
> |
break 3 |
5421 |
> |
fi |
5422 |
|
fi |
5423 |
|
fi |
5424 |
|
done |
5425 |
|
done |
5426 |
|
;; |
5427 |
|
esac |
5428 |
+ |
|
5429 |
|
done |
5430 |
+ |
IFS=$as_save_IFS |
5431 |
|
|
5432 |
+ |
rm -rf conftest.one conftest.two conftest.dir |
5433 |
|
|
5434 |
|
fi |
5435 |
|
if test "${ac_cv_path_install+set}" = set; then |
5436 |
|
INSTALL=$ac_cv_path_install |
5437 |
|
else |
5438 |
< |
# As a last resort, use the slow shell script. We don't cache a |
5439 |
< |
# path for INSTALL within a source directory, because that will |
5438 |
> |
# As a last resort, use the slow shell script. Don't cache a |
5439 |
> |
# value for INSTALL within a source directory, because that will |
5440 |
|
# break other packages using the cache if that directory is |
5441 |
< |
# removed, or if the path is relative. |
5441 |
> |
# removed, or if the value is a relative name. |
5442 |
|
INSTALL=$ac_install_sh |
5443 |
|
fi |
5444 |
|
fi |
5445 |
< |
echo "$as_me:$LINENO: result: $INSTALL" >&5 |
5446 |
< |
echo "${ECHO_T}$INSTALL" >&6 |
5445 |
> |
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
5446 |
> |
$as_echo "$INSTALL" >&6; } |
5447 |
|
|
5448 |
|
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
5449 |
|
# It thinks the first close brace ends the variable substitution. |
5460 |
|
MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f" |
5461 |
|
# Extract the first word of "ar", so it can be a program name with args. |
5462 |
|
set dummy ar; ac_word=$2 |
5463 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5464 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5463 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5464 |
> |
$as_echo_n "checking for $ac_word... " >&6; } |
5465 |
|
if test "${ac_cv_prog_AR+set}" = set; then |
5466 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5466 |
> |
$as_echo_n "(cached) " >&6 |
5467 |
|
else |
5468 |
|
if test -n "$AR"; then |
5469 |
|
ac_cv_prog_AR="$AR" # Let the user override the test. |
5474 |
|
IFS=$as_save_IFS |
5475 |
|
test -z "$as_dir" && as_dir=. |
5476 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
5477 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5477 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5478 |
|
ac_cv_prog_AR="ar" |
5479 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5479 |
> |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5480 |
|
break 2 |
5481 |
|
fi |
5482 |
|
done |
5483 |
|
done |
5484 |
+ |
IFS=$as_save_IFS |
5485 |
|
|
5486 |
|
test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE" |
5487 |
|
fi |
5488 |
|
fi |
5489 |
|
AR=$ac_cv_prog_AR |
5490 |
|
if test -n "$AR"; then |
5491 |
< |
echo "$as_me:$LINENO: result: $AR" >&5 |
5492 |
< |
echo "${ECHO_T}$AR" >&6 |
5493 |
< |
else |
5494 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
5495 |
< |
echo "${ECHO_T}no" >&6 |
5491 |
> |
{ $as_echo "$as_me:$LINENO: result: $AR" >&5 |
5492 |
> |
$as_echo "$AR" >&6; } |
5493 |
> |
else |
5494 |
> |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
5495 |
> |
$as_echo "no" >&6; } |
5496 |
|
fi |
5497 |
|
|
5498 |
+ |
|
5499 |
|
if test "$AR" = "NONE"; then |
3481 |
– |
{ { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5 |
3482 |
– |
echo "$as_me: error: --> Can't find \`ar'!" >&2;} |
3483 |
– |
{ (exit 1); exit 1; }; } |
5500 |
|
cat >confcache <<\_ACEOF |
5501 |
|
# This file is a shell script that caches the results of configure |
5502 |
|
# tests run on this system so they can be shared between configure |
5515 |
|
|
5516 |
|
# The following way of writing the cache mishandles newlines in values, |
5517 |
|
# but we know of no workaround that is simple, portable, and efficient. |
5518 |
< |
# So, don't put newlines in cache variables' values. |
5518 |
> |
# So, we kill variables containing newlines. |
5519 |
|
# Ultrix sh set writes to stderr and can't be redirected directly, |
5520 |
|
# and sets the high bit in the cache file unless we assign to the vars. |
5521 |
< |
{ |
5521 |
> |
( |
5522 |
> |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
5523 |
> |
eval ac_val=\$$ac_var |
5524 |
> |
case $ac_val in #( |
5525 |
> |
*${as_nl}*) |
5526 |
> |
case $ac_var in #( |
5527 |
> |
*_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
5528 |
> |
$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
5529 |
> |
esac |
5530 |
> |
case $ac_var in #( |
5531 |
> |
_ | IFS | as_nl) ;; #( |
5532 |
> |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
5533 |
> |
*) $as_unset $ac_var ;; |
5534 |
> |
esac ;; |
5535 |
> |
esac |
5536 |
> |
done |
5537 |
> |
|
5538 |
|
(set) 2>&1 | |
5539 |
< |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
5540 |
< |
*ac_space=\ *) |
5539 |
> |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
5540 |
> |
*${as_nl}ac_space=\ *) |
5541 |
|
# `set' does not quote correctly, so add quotes (double-quote |
5542 |
|
# substitution turns \\\\ into \\, and sed turns \\ into \). |
5543 |
|
sed -n \ |
5544 |
|
"s/'/'\\\\''/g; |
5545 |
|
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
5546 |
< |
;; |
5546 |
> |
;; #( |
5547 |
|
*) |
5548 |
|
# `set' quotes correctly as required by POSIX, so do not add quotes. |
5549 |
< |
sed -n \ |
3518 |
< |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
5549 |
> |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
5550 |
|
;; |
5551 |
< |
esac; |
5552 |
< |
} | |
5551 |
> |
esac | |
5552 |
> |
sort |
5553 |
> |
) | |
5554 |
|
sed ' |
5555 |
+ |
/^ac_cv_env_/b end |
5556 |
|
t clear |
5557 |
< |
: clear |
5557 |
> |
:clear |
5558 |
|
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
5559 |
|
t end |
5560 |
< |
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
5561 |
< |
: end' >>confcache |
5562 |
< |
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
5563 |
< |
if test -w $cache_file; then |
5564 |
< |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
5560 |
> |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
5561 |
> |
:end' >>confcache |
5562 |
> |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
5563 |
> |
if test -w "$cache_file"; then |
5564 |
> |
test "x$cache_file" != "x/dev/null" && |
5565 |
> |
{ $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
5566 |
> |
$as_echo "$as_me: updating cache $cache_file" >&6;} |
5567 |
|
cat confcache >$cache_file |
5568 |
|
else |
5569 |
< |
echo "not updating unwritable cache $cache_file" |
5569 |
> |
{ $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
5570 |
> |
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
5571 |
|
fi |
5572 |
|
fi |
5573 |
|
rm -f confcache |
5575 |
|
fi |
5576 |
|
# Extract the first word of "ps", so it can be a program name with args. |
5577 |
|
set dummy ps; ac_word=$2 |
5578 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5579 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5578 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5579 |
> |
$as_echo_n "checking for $ac_word... " >&6; } |
5580 |
|
if test "${ac_cv_path_PS+set}" = set; then |
5581 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5581 |
> |
$as_echo_n "(cached) " >&6 |
5582 |
|
else |
5583 |
|
case $PS in |
5584 |
|
[\\/]* | ?:[\\/]*) |
5591 |
|
IFS=$as_save_IFS |
5592 |
|
test -z "$as_dir" && as_dir=. |
5593 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
5594 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5594 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5595 |
|
ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext" |
5596 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5596 |
> |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5597 |
|
break 2 |
5598 |
|
fi |
5599 |
|
done |
5600 |
|
done |
5601 |
+ |
IFS=$as_save_IFS |
5602 |
|
|
5603 |
|
;; |
5604 |
|
esac |
5605 |
|
fi |
5606 |
|
PS=$ac_cv_path_PS |
3570 |
– |
|
5607 |
|
if test -n "$PS"; then |
5608 |
< |
echo "$as_me:$LINENO: result: $PS" >&5 |
5609 |
< |
echo "${ECHO_T}$PS" >&6 |
5608 |
> |
{ $as_echo "$as_me:$LINENO: result: $PS" >&5 |
5609 |
> |
$as_echo "$PS" >&6; } |
5610 |
|
else |
5611 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
5612 |
< |
echo "${ECHO_T}no" >&6 |
5611 |
> |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
5612 |
> |
$as_echo "no" >&6; } |
5613 |
|
fi |
5614 |
|
|
5615 |
< |
echo "$as_me:$LINENO: checking for POSIX or BSD ps syntax" >&5 |
5616 |
< |
echo $ECHO_N "checking for POSIX or BSD ps syntax... $ECHO_C" >&6 |
5615 |
> |
|
5616 |
> |
{ $as_echo "$as_me:$LINENO: checking for POSIX or BSD ps syntax" >&5 |
5617 |
> |
$as_echo_n "checking for POSIX or BSD ps syntax... " >&6; } |
5618 |
|
if test "${ac_cv_prog_ps_syntax+set}" = set; then |
5619 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5619 |
> |
$as_echo_n "(cached) " >&6 |
5620 |
|
else |
5621 |
|
|
5622 |
|
if $PS ax -o rss > /dev/null 2>&1; then |
5635 |
|
if test "$ac_cv_prog_ps_ef" = yes; then |
5636 |
|
ac_cv_prog_ps_syntax=POSIX |
5637 |
|
else |
5638 |
< |
{ { echo "$as_me:$LINENO: error: Could not determine ps syntax" >&5 |
5639 |
< |
echo "$as_me: error: Could not determine ps syntax" >&2;} |
5638 |
> |
{ { $as_echo "$as_me:$LINENO: error: Could not determine ps syntax" >&5 |
5639 |
> |
$as_echo "$as_me: error: Could not determine ps syntax" >&2;} |
5640 |
|
{ (exit 1); exit 1; }; } |
5641 |
|
fi |
5642 |
|
fi |
5643 |
|
|
5644 |
|
fi |
5645 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_ps_syntax" >&5 |
5646 |
< |
echo "${ECHO_T}$ac_cv_prog_ps_syntax" >&6 |
5645 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_ps_syntax" >&5 |
5646 |
> |
$as_echo "$ac_cv_prog_ps_syntax" >&6; } |
5647 |
|
|
5648 |
|
cat >>confdefs.h <<_ACEOF |
5649 |
|
#define PSCOMMAND $PS |
5663 |
|
_ACEOF |
5664 |
|
|
5665 |
|
else |
5666 |
< |
{ { echo "$as_me:$LINENO: error: Unknown ps syntax type!" >&5 |
5667 |
< |
echo "$as_me: error: Unknown ps syntax type!" >&2;} |
5666 |
> |
{ { $as_echo "$as_me:$LINENO: error: Unknown ps syntax type!" >&5 |
5667 |
> |
$as_echo "$as_me: error: Unknown ps syntax type!" >&2;} |
5668 |
|
{ (exit 1); exit 1; }; } |
5669 |
|
fi |
5670 |
|
fi |
5671 |
|
|
5672 |
< |
ac_ext=${FC_SRCEXT-f} |
5673 |
< |
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' |
5674 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' |
5672 |
> |
ac_ext=${ac_fc_srcext-f} |
5673 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5674 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5675 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5676 |
|
|
5677 |
|
|
5678 |
< |
echo "$as_me:$LINENO: checking for Fortran flag to compile .F90 files" >&5 |
5679 |
< |
echo $ECHO_N "checking for Fortran flag to compile .F90 files... $ECHO_C" >&6 |
5678 |
> |
ac_ext=${ac_fc_srcext-f} |
5679 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5680 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5681 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5682 |
> |
{ $as_echo "$as_me:$LINENO: checking for Fortran flag to compile .F90 files" >&5 |
5683 |
> |
$as_echo_n "checking for Fortran flag to compile .F90 files... " >&6; } |
5684 |
|
if test "${ac_cv_fc_srcext_F90+set}" = set; then |
5685 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5685 |
> |
$as_echo_n "(cached) " >&6 |
5686 |
|
else |
5687 |
|
ac_ext=F90 |
5688 |
< |
ac_fc_srcext_FCFLAGS_SRCEXT_save=$FCFLAGS_SRCEXT |
5689 |
< |
FCFLAGS_SRCEXT="" |
5688 |
> |
ac_fcflags_srcext_save=$ac_fcflags_srcext |
5689 |
> |
ac_fcflags_srcext= |
5690 |
|
ac_cv_fc_srcext_F90=unknown |
5691 |
|
for ac_flag in none -qsuffix=f=F90 -Tf; do |
5692 |
< |
test "x$ac_flag" != xnone && FCFLAGS_SRCEXT="$ac_flag" |
5692 |
> |
test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag" |
5693 |
|
cat >conftest.$ac_ext <<_ACEOF |
5694 |
|
program main |
5695 |
|
|
5696 |
|
end |
5697 |
|
_ACEOF |
5698 |
|
rm -f conftest.$ac_objext |
5699 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5700 |
< |
(eval $ac_compile) 2>conftest.er1 |
5699 |
> |
if { (ac_try="$ac_compile" |
5700 |
> |
case "(($ac_try" in |
5701 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5702 |
> |
*) ac_try_echo=$ac_try;; |
5703 |
> |
esac |
5704 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5705 |
> |
$as_echo "$ac_try_echo") >&5 |
5706 |
> |
(eval "$ac_compile") 2>conftest.er1 |
5707 |
|
ac_status=$? |
5708 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
5709 |
|
rm -f conftest.er1 |
5710 |
|
cat conftest.err >&5 |
5711 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5712 |
< |
(exit $ac_status); } && |
5713 |
< |
{ ac_try='test -z "$ac_fc_werror_flag" |
5714 |
< |
|| test ! -s conftest.err' |
5715 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3669 |
< |
(eval $ac_try) 2>&5 |
3670 |
< |
ac_status=$? |
3671 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3672 |
< |
(exit $ac_status); }; } && |
3673 |
< |
{ ac_try='test -s conftest.$ac_objext' |
3674 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3675 |
< |
(eval $ac_try) 2>&5 |
3676 |
< |
ac_status=$? |
3677 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3678 |
< |
(exit $ac_status); }; }; then |
5711 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5712 |
> |
(exit $ac_status); } && { |
5713 |
> |
test -z "$ac_fc_werror_flag" || |
5714 |
> |
test ! -s conftest.err |
5715 |
> |
} && test -s conftest.$ac_objext; then |
5716 |
|
ac_cv_fc_srcext_F90=$ac_flag; break |
5717 |
|
else |
5718 |
< |
echo "$as_me: failed program was:" >&5 |
5718 |
> |
$as_echo "$as_me: failed program was:" >&5 |
5719 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5720 |
|
|
5721 |
+ |
|
5722 |
|
fi |
5723 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5723 |
> |
|
5724 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5725 |
|
done |
5726 |
|
rm -f conftest.$ac_objext conftest.F90 |
5727 |
< |
FCFLAGS_SRCEXT=$ac_fc_srcext_FCFLAGS_SRCEXT_save |
5727 |
> |
ac_fcflags_srcext=$ac_fcflags_srcext_save |
5728 |
|
|
5729 |
|
fi |
5730 |
< |
echo "$as_me:$LINENO: result: $ac_cv_fc_srcext_F90" >&5 |
5731 |
< |
echo "${ECHO_T}$ac_cv_fc_srcext_F90" >&6 |
5730 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_fc_srcext_F90" >&5 |
5731 |
> |
$as_echo "$ac_cv_fc_srcext_F90" >&6; } |
5732 |
|
if test "x$ac_cv_fc_srcext_F90" = xunknown; then |
5733 |
< |
{ { echo "$as_me:$LINENO: error: Fortran could not compile .F90 files" >&5 |
5734 |
< |
echo "$as_me: error: Fortran could not compile .F90 files" >&2;} |
5733 |
> |
{ { $as_echo "$as_me:$LINENO: error: Fortran could not compile .F90 files" >&5 |
5734 |
> |
$as_echo "$as_me: error: Fortran could not compile .F90 files" >&2;} |
5735 |
|
{ (exit 1); exit 1; }; } |
5736 |
|
else |
5737 |
< |
FC_SRCEXT=F90 |
5737 |
> |
ac_fc_srcext=F90 |
5738 |
|
if test "x$ac_cv_fc_srcext_F90" = xnone; then |
5739 |
< |
FCFLAGS_SRCEXT="" |
5739 |
> |
ac_fcflags_srcext="" |
5740 |
|
FCFLAGS_F90="" |
5741 |
|
else |
5742 |
< |
FCFLAGS_SRCEXT=$ac_cv_fc_srcext_F90 |
5742 |
> |
ac_fcflags_srcext=$ac_cv_fc_srcext_F90 |
5743 |
|
FCFLAGS_F90=$ac_cv_fc_srcext_F90 |
5744 |
|
fi |
5745 |
|
|
5746 |
|
|
5747 |
|
fi |
5748 |
+ |
ac_ext=${ac_fc_srcext-f} |
5749 |
+ |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5750 |
+ |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5751 |
+ |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5752 |
|
|
5753 |
|
|
5754 |
|
|
5774 |
|
esac |
5775 |
|
|
5776 |
|
if test -z "$PREPFLAG"; then |
5777 |
< |
{ echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5 |
5778 |
< |
echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;} |
5777 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5 |
5778 |
> |
$as_echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;} |
5779 |
|
PREPFLAG="" |
5780 |
|
fi |
5781 |
|
|
5782 |
< |
echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5 |
5783 |
< |
echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6 |
5782 |
> |
{ $as_echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5 |
5783 |
> |
$as_echo_n "checking to make sure F90 preprocessor flag works... " >&6; } |
5784 |
|
|
5785 |
< |
|
5786 |
< |
ac_ext=${FC_SRCEXT-f} |
5787 |
< |
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' |
3745 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' |
5785 |
> |
ac_ext=${ac_fc_srcext-f} |
5786 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5787 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5788 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5789 |
|
|
5790 |
|
ac_save_ext=$ac_ext |
5805 |
|
|
5806 |
|
_ACEOF |
5807 |
|
rm -f conftest.$ac_objext |
5808 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5809 |
< |
(eval $ac_compile) 2>conftest.er1 |
5808 |
> |
if { (ac_try="$ac_compile" |
5809 |
> |
case "(($ac_try" in |
5810 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5811 |
> |
*) ac_try_echo=$ac_try;; |
5812 |
> |
esac |
5813 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5814 |
> |
$as_echo "$ac_try_echo") >&5 |
5815 |
> |
(eval "$ac_compile") 2>conftest.er1 |
5816 |
|
ac_status=$? |
5817 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
5818 |
|
rm -f conftest.er1 |
5819 |
|
cat conftest.err >&5 |
5820 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5821 |
< |
(exit $ac_status); } && |
5822 |
< |
{ ac_try='test -z "$ac_fc_werror_flag" |
5823 |
< |
|| test ! -s conftest.err' |
5824 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3777 |
< |
(eval $ac_try) 2>&5 |
3778 |
< |
ac_status=$? |
3779 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3780 |
< |
(exit $ac_status); }; } && |
3781 |
< |
{ ac_try='test -s conftest.$ac_objext' |
3782 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3783 |
< |
(eval $ac_try) 2>&5 |
3784 |
< |
ac_status=$? |
3785 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3786 |
< |
(exit $ac_status); }; }; then |
5820 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5821 |
> |
(exit $ac_status); } && { |
5822 |
> |
test -z "$ac_fc_werror_flag" || |
5823 |
> |
test ! -s conftest.err |
5824 |
> |
} && test -s conftest.$ac_objext; then |
5825 |
|
prepflagworks=1 |
5826 |
|
else |
5827 |
< |
echo "$as_me: failed program was:" >&5 |
5827 |
> |
$as_echo "$as_me: failed program was:" >&5 |
5828 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5829 |
|
|
5830 |
< |
prepflagworks=0 |
5830 |
> |
prepflagworks=0 |
5831 |
|
fi |
3794 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5832 |
|
|
5833 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5834 |
+ |
|
5835 |
|
FCFLAGS_SRCEXT=$ac_save_FCFLAGS_SRCEXT |
5836 |
|
ac_ext=$ac_save_ext |
5837 |
< |
ac_ext=${FC_SRCEXT-f} |
5838 |
< |
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' |
5839 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' |
5837 |
> |
ac_ext=${ac_fc_srcext-f} |
5838 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5839 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5840 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5841 |
|
|
5842 |
|
|
5843 |
|
if test "$prepflagworks" = 1; then |
5844 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
5845 |
< |
echo "${ECHO_T}yes" >&6 |
5844 |
> |
{ $as_echo "$as_me:$LINENO: result: yes" >&5 |
5845 |
> |
$as_echo "yes" >&6; } |
5846 |
|
FCFLAGS_SRCEXT="${PREPFLAG}" |
5847 |
|
|
5848 |
|
else |
5849 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
5850 |
< |
echo "${ECHO_T}no" >&6 |
5851 |
< |
{ { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5 |
5852 |
< |
echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;} |
5849 |
> |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
5850 |
> |
$as_echo "no" >&6; } |
5851 |
> |
{ { $as_echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5 |
5852 |
> |
$as_echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;} |
5853 |
|
{ (exit 1); exit 1; }; } |
5854 |
|
fi |
5855 |
|
fi |
5878 |
|
esac |
5879 |
|
|
5880 |
|
if test -z "$PREPDEFFLAG"; then |
5881 |
< |
{ echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5 |
5882 |
< |
echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;} |
5881 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5 |
5882 |
> |
$as_echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;} |
5883 |
|
PREPDEFFLAG=" " |
5884 |
|
fi |
5885 |
|
|
5886 |
< |
echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5 |
5887 |
< |
echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6 |
5886 |
> |
{ $as_echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5 |
5887 |
> |
$as_echo_n "checking to make sure F90 preprocessor define flag works... " >&6; } |
5888 |
|
|
5889 |
< |
|
5890 |
< |
ac_ext=${FC_SRCEXT-f} |
5891 |
< |
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' |
3853 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' |
5889 |
> |
ac_ext=${ac_fc_srcext-f} |
5890 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5891 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5892 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5893 |
|
|
5894 |
|
ac_save_ext=$ac_ext |
5913 |
|
|
5914 |
|
_ACEOF |
5915 |
|
rm -f conftest.$ac_objext |
5916 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5917 |
< |
(eval $ac_compile) 2>conftest.er1 |
5916 |
> |
if { (ac_try="$ac_compile" |
5917 |
> |
case "(($ac_try" in |
5918 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5919 |
> |
*) ac_try_echo=$ac_try;; |
5920 |
> |
esac |
5921 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5922 |
> |
$as_echo "$ac_try_echo") >&5 |
5923 |
> |
(eval "$ac_compile") 2>conftest.er1 |
5924 |
|
ac_status=$? |
5925 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
5926 |
|
rm -f conftest.er1 |
5927 |
|
cat conftest.err >&5 |
5928 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5929 |
< |
(exit $ac_status); } && |
5930 |
< |
{ ac_try='test -z "$ac_fc_werror_flag" |
5931 |
< |
|| test ! -s conftest.err' |
5932 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3889 |
< |
(eval $ac_try) 2>&5 |
3890 |
< |
ac_status=$? |
3891 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3892 |
< |
(exit $ac_status); }; } && |
3893 |
< |
{ ac_try='test -s conftest.$ac_objext' |
3894 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3895 |
< |
(eval $ac_try) 2>&5 |
3896 |
< |
ac_status=$? |
3897 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3898 |
< |
(exit $ac_status); }; }; then |
5928 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5929 |
> |
(exit $ac_status); } && { |
5930 |
> |
test -z "$ac_fc_werror_flag" || |
5931 |
> |
test ! -s conftest.err |
5932 |
> |
} && test -s conftest.$ac_objext; then |
5933 |
|
prepdefflagworks=1 |
5934 |
|
else |
5935 |
< |
echo "$as_me: failed program was:" >&5 |
5935 |
> |
$as_echo "$as_me: failed program was:" >&5 |
5936 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5937 |
|
|
5938 |
< |
prepdefflagworks=0 |
5938 |
> |
prepdefflagworks=0 |
5939 |
|
fi |
3906 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5940 |
|
|
5941 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5942 |
+ |
|
5943 |
|
FCFLAGS=$ac_save_FCFLAGS |
5944 |
|
ac_ext=$ac_save_ext |
5945 |
< |
ac_ext=${FC_SRCEXT-f} |
5946 |
< |
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' |
5947 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' |
5945 |
> |
ac_ext=${ac_fc_srcext-f} |
5946 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5947 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5948 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5949 |
|
|
5950 |
|
|
5951 |
|
if test "$prepdefflagworks" = 1; then |
5952 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
5953 |
< |
echo "${ECHO_T}yes" >&6 |
5952 |
> |
{ $as_echo "$as_me:$LINENO: result: yes" >&5 |
5953 |
> |
$as_echo "yes" >&6; } |
5954 |
|
|
5955 |
|
else |
5956 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
5957 |
< |
echo "${ECHO_T}no" >&6 |
5958 |
< |
{ { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5 |
5959 |
< |
echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;} |
5956 |
> |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
5957 |
> |
$as_echo "no" >&6; } |
5958 |
> |
{ { $as_echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5 |
5959 |
> |
$as_echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;} |
5960 |
|
{ (exit 1); exit 1; }; } |
5961 |
|
fi |
5962 |
|
fi |
5963 |
|
|
5964 |
< |
ac_ext=${FC_SRCEXT-f} |
5965 |
< |
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' |
5966 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' |
5964 |
> |
ac_ext=${ac_fc_srcext-f} |
5965 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5966 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5967 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5968 |
< |
echo "$as_me:$LINENO: checking how to get verbose linking output from $FC" >&5 |
5969 |
< |
echo $ECHO_N "checking how to get verbose linking output from $FC... $ECHO_C" >&6 |
5968 |
> |
{ $as_echo "$as_me:$LINENO: checking how to get verbose linking output from $FC" >&5 |
5969 |
> |
$as_echo_n "checking how to get verbose linking output from $FC... " >&6; } |
5970 |
|
if test "${ac_cv_prog_fc_v+set}" = set; then |
5971 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5971 |
> |
$as_echo_n "(cached) " >&6 |
5972 |
|
else |
5973 |
|
cat >conftest.$ac_ext <<_ACEOF |
5974 |
|
program main |
5976 |
|
end |
5977 |
|
_ACEOF |
5978 |
|
rm -f conftest.$ac_objext |
5979 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5980 |
< |
(eval $ac_compile) 2>conftest.er1 |
5979 |
> |
if { (ac_try="$ac_compile" |
5980 |
> |
case "(($ac_try" in |
5981 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5982 |
> |
*) ac_try_echo=$ac_try;; |
5983 |
> |
esac |
5984 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5985 |
> |
$as_echo "$ac_try_echo") >&5 |
5986 |
> |
(eval "$ac_compile") 2>conftest.er1 |
5987 |
|
ac_status=$? |
5988 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
5989 |
|
rm -f conftest.er1 |
5990 |
|
cat conftest.err >&5 |
5991 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5992 |
< |
(exit $ac_status); } && |
5993 |
< |
{ ac_try='test -z "$ac_fc_werror_flag" |
5994 |
< |
|| test ! -s conftest.err' |
5995 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3955 |
< |
(eval $ac_try) 2>&5 |
3956 |
< |
ac_status=$? |
3957 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3958 |
< |
(exit $ac_status); }; } && |
3959 |
< |
{ ac_try='test -s conftest.$ac_objext' |
3960 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3961 |
< |
(eval $ac_try) 2>&5 |
3962 |
< |
ac_status=$? |
3963 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3964 |
< |
(exit $ac_status); }; }; then |
5991 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5992 |
> |
(exit $ac_status); } && { |
5993 |
> |
test -z "$ac_fc_werror_flag" || |
5994 |
> |
test ! -s conftest.err |
5995 |
> |
} && test -s conftest.$ac_objext; then |
5996 |
|
ac_cv_prog_fc_v= |
5997 |
|
# Try some options frequently used verbose output |
5998 |
|
for ac_verb in -v -verbose --verbose -V -\#\#\#; do |
6008 |
|
# flags. |
6009 |
|
ac_save_FFLAGS=$FCFLAGS |
6010 |
|
FCFLAGS="$FCFLAGS $ac_verb" |
6011 |
< |
(eval echo $as_me:3980: \"$ac_link\") >&5 |
6012 |
< |
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
6013 |
< |
echo "$ac_fc_v_output" >&5 |
6011 |
> |
eval "set x $ac_link" |
6012 |
> |
shift |
6013 |
> |
$as_echo "$as_me:$LINENO: $*" >&5 |
6014 |
> |
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, |
6015 |
> |
# LIBRARY_PATH; skip all such settings. |
6016 |
> |
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | |
6017 |
> |
grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="` |
6018 |
> |
$as_echo "$ac_fc_v_output" >&5 |
6019 |
|
FCFLAGS=$ac_save_FFLAGS |
6020 |
|
|
6021 |
< |
rm -f conftest* |
6021 |
> |
rm -rf conftest* |
6022 |
|
|
6023 |
|
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
6024 |
|
# /foo, /bar, and /baz are search directories for the Fortran linker. |
6025 |
|
# Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
6026 |
|
ac_fc_v_output="`echo $ac_fc_v_output | |
6027 |
|
grep 'LPATH is:' | |
6028 |
< |
sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output" |
6028 |
> |
sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output" |
6029 |
|
|
6030 |
+ |
# FIXME: we keep getting bitten by quoted arguments; a more general fix |
6031 |
+ |
# that detects unbalanced quotes in FLIBS should be implemented |
6032 |
+ |
# and (ugh) tested at some point. |
6033 |
|
case $ac_fc_v_output in |
6034 |
|
# If we are using xlf then replace all the commas with spaces. |
6035 |
|
*xlfentry*) |
6038 |
|
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
6039 |
|
# $LIBS confuse us, and the libraries appear later in the output anyway). |
6040 |
|
*mGLOB_options_string*) |
6041 |
< |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; |
6041 |
> |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; |
6042 |
|
|
6043 |
+ |
# Portland Group compiler has singly- or doubly-quoted -cmdline argument |
6044 |
+ |
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. |
6045 |
+ |
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". |
6046 |
+ |
*-cmdline\ * | *-ignore\ * | *-def\ *) |
6047 |
+ |
ac_fc_v_output=`echo $ac_fc_v_output | sed "\ |
6048 |
+ |
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g |
6049 |
+ |
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g |
6050 |
+ |
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; |
6051 |
+ |
|
6052 |
|
# If we are using Cray Fortran then delete quotes. |
4005 |
– |
# Use "\"" instead of '"' for font-lock-mode. |
4006 |
– |
# FIXME: a more general fix for quoted arguments with spaces? |
6053 |
|
*cft90*) |
6054 |
< |
ac_fc_v_output=`echo $ac_fc_v_output | sed "s/\"//g"` ;; |
6054 |
> |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; |
6055 |
|
esac |
6056 |
|
|
6057 |
|
|
6065 |
|
done |
6066 |
|
done |
6067 |
|
if test -z "$ac_cv_prog_fc_v"; then |
6068 |
< |
{ echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $FC" >&5 |
6069 |
< |
echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;} |
6068 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $FC" >&5 |
6069 |
> |
$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;} |
6070 |
|
fi |
6071 |
|
else |
6072 |
< |
echo "$as_me: failed program was:" >&5 |
6072 |
> |
$as_echo "$as_me: failed program was:" >&5 |
6073 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6074 |
|
|
6075 |
< |
{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5 |
6076 |
< |
echo "$as_me: WARNING: compilation failed" >&2;} |
6075 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: compilation failed" >&5 |
6076 |
> |
$as_echo "$as_me: WARNING: compilation failed" >&2;} |
6077 |
|
fi |
4032 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6078 |
|
|
6079 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6080 |
+ |
|
6081 |
|
fi |
6082 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_fc_v" >&5 |
6083 |
< |
echo "${ECHO_T}$ac_cv_prog_fc_v" >&6 |
6084 |
< |
echo "$as_me:$LINENO: checking for Fortran libraries of $FC" >&5 |
6085 |
< |
echo $ECHO_N "checking for Fortran libraries of $FC... $ECHO_C" >&6 |
6082 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_fc_v" >&5 |
6083 |
> |
$as_echo "$ac_cv_prog_fc_v" >&6; } |
6084 |
> |
{ $as_echo "$as_me:$LINENO: checking for Fortran libraries of $FC" >&5 |
6085 |
> |
$as_echo_n "checking for Fortran libraries of $FC... " >&6; } |
6086 |
|
if test "${ac_cv_fc_libs+set}" = set; then |
6087 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6087 |
> |
$as_echo_n "(cached) " >&6 |
6088 |
|
else |
6089 |
|
if test "x$FCLIBS" != "x"; then |
6090 |
|
ac_cv_fc_libs="$FCLIBS" # Let the user override the test. |
6102 |
|
# flags. |
6103 |
|
ac_save_FFLAGS=$FCFLAGS |
6104 |
|
FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v" |
6105 |
< |
(eval echo $as_me:4058: \"$ac_link\") >&5 |
6106 |
< |
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
6107 |
< |
echo "$ac_fc_v_output" >&5 |
6105 |
> |
eval "set x $ac_link" |
6106 |
> |
shift |
6107 |
> |
$as_echo "$as_me:$LINENO: $*" >&5 |
6108 |
> |
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, |
6109 |
> |
# LIBRARY_PATH; skip all such settings. |
6110 |
> |
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | |
6111 |
> |
grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="` |
6112 |
> |
$as_echo "$ac_fc_v_output" >&5 |
6113 |
|
FCFLAGS=$ac_save_FFLAGS |
6114 |
|
|
6115 |
< |
rm -f conftest* |
6115 |
> |
rm -rf conftest* |
6116 |
|
|
6117 |
|
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
6118 |
|
# /foo, /bar, and /baz are search directories for the Fortran linker. |
6119 |
|
# Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
6120 |
|
ac_fc_v_output="`echo $ac_fc_v_output | |
6121 |
|
grep 'LPATH is:' | |
6122 |
< |
sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output" |
6122 |
> |
sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output" |
6123 |
|
|
6124 |
+ |
# FIXME: we keep getting bitten by quoted arguments; a more general fix |
6125 |
+ |
# that detects unbalanced quotes in FLIBS should be implemented |
6126 |
+ |
# and (ugh) tested at some point. |
6127 |
|
case $ac_fc_v_output in |
6128 |
|
# If we are using xlf then replace all the commas with spaces. |
6129 |
|
*xlfentry*) |
6132 |
|
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
6133 |
|
# $LIBS confuse us, and the libraries appear later in the output anyway). |
6134 |
|
*mGLOB_options_string*) |
6135 |
< |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; |
6135 |
> |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; |
6136 |
|
|
6137 |
+ |
# Portland Group compiler has singly- or doubly-quoted -cmdline argument |
6138 |
+ |
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. |
6139 |
+ |
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". |
6140 |
+ |
*-cmdline\ * | *-ignore\ * | *-def\ *) |
6141 |
+ |
ac_fc_v_output=`echo $ac_fc_v_output | sed "\ |
6142 |
+ |
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g |
6143 |
+ |
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g |
6144 |
+ |
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; |
6145 |
+ |
|
6146 |
|
# If we are using Cray Fortran then delete quotes. |
4083 |
– |
# Use "\"" instead of '"' for font-lock-mode. |
4084 |
– |
# FIXME: a more general fix for quoted arguments with spaces? |
6147 |
|
*cft90*) |
6148 |
< |
ac_fc_v_output=`echo $ac_fc_v_output | sed "s/\"//g"` ;; |
6148 |
> |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; |
6149 |
|
esac |
6150 |
|
|
6151 |
|
|
6199 |
|
|
6200 |
|
;; |
6201 |
|
# Ignore these flags. |
6202 |
< |
-lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*) |
6202 |
> |
-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*) |
6203 |
|
;; |
6204 |
|
-lkernel32) |
6205 |
|
test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
6206 |
|
;; |
6207 |
< |
-[LRuY]) |
6207 |
> |
-[LRuYz]) |
6208 |
|
# These flags, when seen by themselves, take an argument. |
6209 |
|
# We remove the space between option and argument and re-iterate |
6210 |
|
# unless we find an empty arg or a new option (starting with -) |
6218 |
|
esac |
6219 |
|
;; |
6220 |
|
-YP,*) |
6221 |
< |
for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
6221 |
> |
for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
6222 |
|
ac_exists=false |
6223 |
|
for ac_i in $ac_cv_fc_libs; do |
6224 |
|
if test x"$ac_j" = x"$ac_i"; then |
6252 |
|
fi |
6253 |
|
|
6254 |
|
;; |
6255 |
+ |
-zallextract*| -zdefaultextract) |
6256 |
+ |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
6257 |
+ |
;; |
6258 |
|
# Ignore everything else. |
6259 |
|
esac |
6260 |
|
done |
6266 |
|
# must begin with a "/"). |
6267 |
|
case `(uname -sr) 2>/dev/null` in |
6268 |
|
"SunOS 5"*) |
6269 |
< |
ac_ld_run_path=`echo $ac_fc_v_output | |
6269 |
> |
ac_ld_run_path=`$as_echo "$ac_fc_v_output" | |
6270 |
|
sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` |
6271 |
|
test "x$ac_ld_run_path" != x && |
6272 |
|
if test "$ac_compiler_gnu" = yes; then |
6281 |
|
fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" |
6282 |
|
|
6283 |
|
fi |
6284 |
< |
echo "$as_me:$LINENO: result: $ac_cv_fc_libs" >&5 |
6285 |
< |
echo "${ECHO_T}$ac_cv_fc_libs" >&6 |
6284 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_fc_libs" >&5 |
6285 |
> |
$as_echo "$ac_cv_fc_libs" >&6; } |
6286 |
|
FCLIBS="$ac_cv_fc_libs" |
6287 |
|
|
6288 |
|
|
6289 |
< |
ac_ext=${FC_SRCEXT-f} |
6290 |
< |
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' |
6291 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' |
6289 |
> |
ac_ext=${ac_fc_srcext-f} |
6290 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6291 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6292 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6293 |
|
|
6294 |
|
|
6295 |
< |
ac_ext=${FC_SRCEXT-f} |
6296 |
< |
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' |
6297 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' |
6295 |
> |
ac_ext=${ac_fc_srcext-f} |
6296 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6297 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6298 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6299 |
|
|
6300 |
< |
echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5 |
6301 |
< |
echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6 |
6300 |
> |
{ $as_echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5 |
6301 |
> |
$as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; } |
6302 |
|
if test "${ac_cv_fc_dummy_main+set}" = set; then |
6303 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6303 |
> |
$as_echo_n "(cached) " >&6 |
6304 |
|
else |
6305 |
|
ac_fc_dm_save_LIBS=$LIBS |
6306 |
|
LIBS="$LIBS $FCLIBS" |
6336 |
|
} |
6337 |
|
_ACEOF |
6338 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
6339 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6340 |
< |
(eval $ac_link) 2>conftest.er1 |
6339 |
> |
if { (ac_try="$ac_link" |
6340 |
> |
case "(($ac_try" in |
6341 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6342 |
> |
*) ac_try_echo=$ac_try;; |
6343 |
> |
esac |
6344 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6345 |
> |
$as_echo "$ac_try_echo") >&5 |
6346 |
> |
(eval "$ac_link") 2>conftest.er1 |
6347 |
|
ac_status=$? |
6348 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
6349 |
|
rm -f conftest.er1 |
6350 |
|
cat conftest.err >&5 |
6351 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6352 |
< |
(exit $ac_status); } && |
6353 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
6354 |
< |
|| test ! -s conftest.err' |
6355 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6356 |
< |
(eval $ac_try) 2>&5 |
6357 |
< |
ac_status=$? |
6358 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4288 |
< |
(exit $ac_status); }; } && |
4289 |
< |
{ ac_try='test -s conftest$ac_exeext' |
4290 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4291 |
< |
(eval $ac_try) 2>&5 |
4292 |
< |
ac_status=$? |
4293 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4294 |
< |
(exit $ac_status); }; }; then |
6351 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6352 |
> |
(exit $ac_status); } && { |
6353 |
> |
test -z "$ac_c_werror_flag" || |
6354 |
> |
test ! -s conftest.err |
6355 |
> |
} && test -s conftest$ac_exeext && { |
6356 |
> |
test "$cross_compiling" = yes || |
6357 |
> |
$as_test_x conftest$ac_exeext |
6358 |
> |
}; then |
6359 |
|
ac_cv_fortran_dummy_main=none |
6360 |
|
else |
6361 |
< |
echo "$as_me: failed program was:" >&5 |
6361 |
> |
$as_echo "$as_me: failed program was:" >&5 |
6362 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6363 |
|
|
6364 |
< |
ac_cv_fortran_dummy_main=unknown |
6364 |
> |
ac_cv_fortran_dummy_main=unknown |
6365 |
|
fi |
6366 |
< |
rm -f conftest.err conftest.$ac_objext \ |
6366 |
> |
|
6367 |
> |
rm -rf conftest.dSYM |
6368 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6369 |
|
conftest$ac_exeext conftest.$ac_ext |
6370 |
|
|
6371 |
|
if test $ac_cv_fortran_dummy_main = unknown; then |
6394 |
|
} |
6395 |
|
_ACEOF |
6396 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
6397 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6398 |
< |
(eval $ac_link) 2>conftest.er1 |
6397 |
> |
if { (ac_try="$ac_link" |
6398 |
> |
case "(($ac_try" in |
6399 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6400 |
> |
*) ac_try_echo=$ac_try;; |
6401 |
> |
esac |
6402 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6403 |
> |
$as_echo "$ac_try_echo") >&5 |
6404 |
> |
(eval "$ac_link") 2>conftest.er1 |
6405 |
|
ac_status=$? |
6406 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
6407 |
|
rm -f conftest.er1 |
6408 |
|
cat conftest.err >&5 |
6409 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6410 |
< |
(exit $ac_status); } && |
6411 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
6412 |
< |
|| test ! -s conftest.err' |
6413 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6414 |
< |
(eval $ac_try) 2>&5 |
6415 |
< |
ac_status=$? |
6416 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4345 |
< |
(exit $ac_status); }; } && |
4346 |
< |
{ ac_try='test -s conftest$ac_exeext' |
4347 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4348 |
< |
(eval $ac_try) 2>&5 |
4349 |
< |
ac_status=$? |
4350 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4351 |
< |
(exit $ac_status); }; }; then |
6409 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6410 |
> |
(exit $ac_status); } && { |
6411 |
> |
test -z "$ac_c_werror_flag" || |
6412 |
> |
test ! -s conftest.err |
6413 |
> |
} && test -s conftest$ac_exeext && { |
6414 |
> |
test "$cross_compiling" = yes || |
6415 |
> |
$as_test_x conftest$ac_exeext |
6416 |
> |
}; then |
6417 |
|
ac_cv_fortran_dummy_main=$ac_func; break |
6418 |
|
else |
6419 |
< |
echo "$as_me: failed program was:" >&5 |
6419 |
> |
$as_echo "$as_me: failed program was:" >&5 |
6420 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6421 |
|
|
6422 |
+ |
|
6423 |
|
fi |
6424 |
< |
rm -f conftest.err conftest.$ac_objext \ |
6424 |
> |
|
6425 |
> |
rm -rf conftest.dSYM |
6426 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6427 |
|
conftest$ac_exeext conftest.$ac_ext |
6428 |
|
done |
6429 |
|
fi |
6430 |
< |
ac_ext=${FC_SRCEXT-f} |
6431 |
< |
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' |
6432 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' |
6430 |
> |
ac_ext=${ac_fc_srcext-f} |
6431 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6432 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6433 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6434 |
|
ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main |
6435 |
< |
rm -f conftest* |
6435 |
> |
rm -rf conftest* |
6436 |
|
LIBS=$ac_fc_dm_save_LIBS |
6437 |
|
|
6438 |
|
fi |
6439 |
< |
echo "$as_me:$LINENO: result: $ac_cv_fc_dummy_main" >&5 |
6440 |
< |
echo "${ECHO_T}$ac_cv_fc_dummy_main" >&6 |
6439 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_fc_dummy_main" >&5 |
6440 |
> |
$as_echo "$ac_cv_fc_dummy_main" >&6; } |
6441 |
|
FC_DUMMY_MAIN=$ac_cv_fc_dummy_main |
6442 |
|
if test "$FC_DUMMY_MAIN" != unknown; then |
6443 |
|
if test $FC_DUMMY_MAIN != none; then |
6455 |
|
fi |
6456 |
|
fi |
6457 |
|
else |
6458 |
< |
{ { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails |
6458 |
> |
{ { $as_echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails |
6459 |
|
See \`config.log' for more details." >&5 |
6460 |
< |
echo "$as_me: error: linking to Fortran libraries from C fails |
6460 |
> |
$as_echo "$as_me: error: linking to Fortran libraries from C fails |
6461 |
|
See \`config.log' for more details." >&2;} |
6462 |
|
{ (exit 1); exit 1; }; } |
6463 |
|
fi |
6464 |
|
|
6465 |
|
|
6466 |
< |
ac_ext=${FC_SRCEXT-f} |
6467 |
< |
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' |
6468 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' |
6466 |
> |
ac_ext=${ac_fc_srcext-f} |
6467 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6468 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6469 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6470 |
|
|
6471 |
< |
ac_ext=${FC_SRCEXT-f} |
6472 |
< |
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' |
6473 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' |
6471 |
> |
ac_ext=${ac_fc_srcext-f} |
6472 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6473 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6474 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6475 |
< |
echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5 |
6476 |
< |
echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6 |
6475 |
> |
{ $as_echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5 |
6476 |
> |
$as_echo_n "checking for Fortran name-mangling scheme... " >&6; } |
6477 |
|
if test "${ac_cv_fc_mangling+set}" = set; then |
6478 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6478 |
> |
$as_echo_n "(cached) " >&6 |
6479 |
|
else |
6480 |
|
cat >conftest.$ac_ext <<_ACEOF |
6481 |
|
subroutine foobar() |
6486 |
|
end |
6487 |
|
_ACEOF |
6488 |
|
rm -f conftest.$ac_objext |
6489 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6490 |
< |
(eval $ac_compile) 2>conftest.er1 |
6489 |
> |
if { (ac_try="$ac_compile" |
6490 |
> |
case "(($ac_try" in |
6491 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6492 |
> |
*) ac_try_echo=$ac_try;; |
6493 |
> |
esac |
6494 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6495 |
> |
$as_echo "$ac_try_echo") >&5 |
6496 |
> |
(eval "$ac_compile") 2>conftest.er1 |
6497 |
|
ac_status=$? |
6498 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
6499 |
|
rm -f conftest.er1 |
6500 |
|
cat conftest.err >&5 |
6501 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6502 |
< |
(exit $ac_status); } && |
6503 |
< |
{ ac_try='test -z "$ac_fc_werror_flag" |
6504 |
< |
|| test ! -s conftest.err' |
6505 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4432 |
< |
(eval $ac_try) 2>&5 |
4433 |
< |
ac_status=$? |
4434 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4435 |
< |
(exit $ac_status); }; } && |
4436 |
< |
{ ac_try='test -s conftest.$ac_objext' |
4437 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4438 |
< |
(eval $ac_try) 2>&5 |
4439 |
< |
ac_status=$? |
4440 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4441 |
< |
(exit $ac_status); }; }; then |
6501 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6502 |
> |
(exit $ac_status); } && { |
6503 |
> |
test -z "$ac_fc_werror_flag" || |
6504 |
> |
test ! -s conftest.err |
6505 |
> |
} && test -s conftest.$ac_objext; then |
6506 |
|
mv conftest.$ac_objext cfortran_test.$ac_objext |
6507 |
|
|
6508 |
|
ac_save_LIBS=$LIBS |
6524 |
|
cat >>conftest.$ac_ext <<_ACEOF |
6525 |
|
/* end confdefs.h. */ |
6526 |
|
|
6527 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
6527 |
> |
/* Override any GCC internal prototype to avoid an error. |
6528 |
> |
Use char because int might match the return type of a GCC |
6529 |
> |
builtin and then its argument prototype would still apply. */ |
6530 |
|
#ifdef __cplusplus |
6531 |
|
extern "C" |
6532 |
|
#endif |
4467 |
– |
/* We use char because int might match the return type of a gcc2 |
4468 |
– |
builtin and then its argument prototype would still apply. */ |
6533 |
|
char $ac_func (); |
6534 |
|
#ifdef FC_DUMMY_MAIN |
6535 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
6542 |
|
int |
6543 |
|
main () |
6544 |
|
{ |
6545 |
< |
$ac_func (); |
6545 |
> |
return $ac_func (); |
6546 |
|
; |
6547 |
|
return 0; |
6548 |
|
} |
6549 |
|
_ACEOF |
6550 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
6551 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6552 |
< |
(eval $ac_link) 2>conftest.er1 |
6551 |
> |
if { (ac_try="$ac_link" |
6552 |
> |
case "(($ac_try" in |
6553 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6554 |
> |
*) ac_try_echo=$ac_try;; |
6555 |
> |
esac |
6556 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6557 |
> |
$as_echo "$ac_try_echo") >&5 |
6558 |
> |
(eval "$ac_link") 2>conftest.er1 |
6559 |
|
ac_status=$? |
6560 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
6561 |
|
rm -f conftest.er1 |
6562 |
|
cat conftest.err >&5 |
6563 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6564 |
< |
(exit $ac_status); } && |
6565 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
6566 |
< |
|| test ! -s conftest.err' |
6567 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6568 |
< |
(eval $ac_try) 2>&5 |
6569 |
< |
ac_status=$? |
6570 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4501 |
< |
(exit $ac_status); }; } && |
4502 |
< |
{ ac_try='test -s conftest$ac_exeext' |
4503 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4504 |
< |
(eval $ac_try) 2>&5 |
4505 |
< |
ac_status=$? |
4506 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4507 |
< |
(exit $ac_status); }; }; then |
6563 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6564 |
> |
(exit $ac_status); } && { |
6565 |
> |
test -z "$ac_c_werror_flag" || |
6566 |
> |
test ! -s conftest.err |
6567 |
> |
} && test -s conftest$ac_exeext && { |
6568 |
> |
test "$cross_compiling" = yes || |
6569 |
> |
$as_test_x conftest$ac_exeext |
6570 |
> |
}; then |
6571 |
|
ac_success=yes; break 2 |
6572 |
|
else |
6573 |
< |
echo "$as_me: failed program was:" >&5 |
6573 |
> |
$as_echo "$as_me: failed program was:" >&5 |
6574 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6575 |
|
|
6576 |
+ |
|
6577 |
|
fi |
6578 |
< |
rm -f conftest.err conftest.$ac_objext \ |
6578 |
> |
|
6579 |
> |
rm -rf conftest.dSYM |
6580 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6581 |
|
conftest$ac_exeext conftest.$ac_ext |
6582 |
|
done |
6583 |
|
done |
6584 |
< |
ac_ext=${FC_SRCEXT-f} |
6585 |
< |
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' |
6586 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' |
6584 |
> |
ac_ext=${ac_fc_srcext-f} |
6585 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6586 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6587 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6588 |
|
|
6589 |
|
if test "$ac_success" = "yes"; then |
6613 |
|
cat >>conftest.$ac_ext <<_ACEOF |
6614 |
|
/* end confdefs.h. */ |
6615 |
|
|
6616 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
6616 |
> |
/* Override any GCC internal prototype to avoid an error. |
6617 |
> |
Use char because int might match the return type of a GCC |
6618 |
> |
builtin and then its argument prototype would still apply. */ |
6619 |
|
#ifdef __cplusplus |
6620 |
|
extern "C" |
6621 |
|
#endif |
4554 |
– |
/* We use char because int might match the return type of a gcc2 |
4555 |
– |
builtin and then its argument prototype would still apply. */ |
6622 |
|
char $ac_func (); |
6623 |
|
#ifdef FC_DUMMY_MAIN |
6624 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
6631 |
|
int |
6632 |
|
main () |
6633 |
|
{ |
6634 |
< |
$ac_func (); |
6634 |
> |
return $ac_func (); |
6635 |
|
; |
6636 |
|
return 0; |
6637 |
|
} |
6638 |
|
_ACEOF |
6639 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
6640 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6641 |
< |
(eval $ac_link) 2>conftest.er1 |
6640 |
> |
if { (ac_try="$ac_link" |
6641 |
> |
case "(($ac_try" in |
6642 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6643 |
> |
*) ac_try_echo=$ac_try;; |
6644 |
> |
esac |
6645 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6646 |
> |
$as_echo "$ac_try_echo") >&5 |
6647 |
> |
(eval "$ac_link") 2>conftest.er1 |
6648 |
|
ac_status=$? |
6649 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
6650 |
|
rm -f conftest.er1 |
6651 |
|
cat conftest.err >&5 |
6652 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6653 |
< |
(exit $ac_status); } && |
6654 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
6655 |
< |
|| test ! -s conftest.err' |
6656 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6657 |
< |
(eval $ac_try) 2>&5 |
6658 |
< |
ac_status=$? |
6659 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4588 |
< |
(exit $ac_status); }; } && |
4589 |
< |
{ ac_try='test -s conftest$ac_exeext' |
4590 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4591 |
< |
(eval $ac_try) 2>&5 |
4592 |
< |
ac_status=$? |
4593 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4594 |
< |
(exit $ac_status); }; }; then |
6652 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6653 |
> |
(exit $ac_status); } && { |
6654 |
> |
test -z "$ac_c_werror_flag" || |
6655 |
> |
test ! -s conftest.err |
6656 |
> |
} && test -s conftest$ac_exeext && { |
6657 |
> |
test "$cross_compiling" = yes || |
6658 |
> |
$as_test_x conftest$ac_exeext |
6659 |
> |
}; then |
6660 |
|
ac_success_extra=yes; break |
6661 |
|
else |
6662 |
< |
echo "$as_me: failed program was:" >&5 |
6662 |
> |
$as_echo "$as_me: failed program was:" >&5 |
6663 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6664 |
|
|
6665 |
+ |
|
6666 |
|
fi |
6667 |
< |
rm -f conftest.err conftest.$ac_objext \ |
6667 |
> |
|
6668 |
> |
rm -rf conftest.dSYM |
6669 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6670 |
|
conftest$ac_exeext conftest.$ac_ext |
6671 |
|
done |
6672 |
< |
ac_ext=${FC_SRCEXT-f} |
6673 |
< |
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' |
6674 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' |
6672 |
> |
ac_ext=${ac_fc_srcext-f} |
6673 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6674 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6675 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6676 |
|
|
6677 |
|
if test "$ac_success_extra" = "yes"; then |
6694 |
|
fi |
6695 |
|
|
6696 |
|
LIBS=$ac_save_LIBS |
6697 |
< |
rm -f cfortran_test* conftest* |
6697 |
> |
rm -rf conftest* |
6698 |
> |
rm -f cfortran_test* |
6699 |
|
else |
6700 |
< |
echo "$as_me: failed program was:" >&5 |
6700 |
> |
$as_echo "$as_me: failed program was:" >&5 |
6701 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6702 |
|
|
6703 |
< |
{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program |
6703 |
> |
{ { $as_echo "$as_me:$LINENO: error: cannot compile a simple Fortran program |
6704 |
|
See \`config.log' for more details." >&5 |
6705 |
< |
echo "$as_me: error: cannot compile a simple Fortran program |
6705 |
> |
$as_echo "$as_me: error: cannot compile a simple Fortran program |
6706 |
|
See \`config.log' for more details." >&2;} |
6707 |
|
{ (exit 1); exit 1; }; } |
6708 |
|
fi |
4640 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6709 |
|
|
6710 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6711 |
+ |
|
6712 |
|
fi |
6713 |
< |
echo "$as_me:$LINENO: result: $ac_cv_fc_mangling" >&5 |
6714 |
< |
echo "${ECHO_T}$ac_cv_fc_mangling" >&6 |
6713 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_fc_mangling" >&5 |
6714 |
> |
$as_echo "$ac_cv_fc_mangling" >&6; } |
6715 |
|
|
6716 |
< |
ac_ext=${FC_SRCEXT-f} |
6717 |
< |
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' |
6718 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' |
6716 |
> |
ac_ext=${ac_fc_srcext-f} |
6717 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6718 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6719 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6720 |
|
|
6721 |
< |
ac_ext=${FC_SRCEXT-f} |
6722 |
< |
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' |
6723 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' |
6721 |
> |
ac_ext=${ac_fc_srcext-f} |
6722 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6723 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6724 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6725 |
|
|
6726 |
|
|
6798 |
|
_ACEOF |
6799 |
|
;; |
6800 |
|
*) |
6801 |
< |
{ echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5 |
6802 |
< |
echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} |
6801 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5 |
6802 |
> |
$as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} |
6803 |
|
;; |
6804 |
|
esac |
6805 |
|
|
6806 |
< |
ac_ext=${FC_SRCEXT-f} |
6807 |
< |
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' |
6808 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' |
6806 |
> |
ac_ext=${ac_fc_srcext-f} |
6807 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6808 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6809 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6810 |
|
|
6811 |
|
|
6812 |
|
|
6813 |
< |
ac_ext=${FC_SRCEXT-f} |
6814 |
< |
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' |
6815 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' |
6813 |
> |
ac_ext=${ac_fc_srcext-f} |
6814 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6815 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6816 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6817 |
< |
echo "$as_me:$LINENO: checking how to get verbose linking output from $FC" >&5 |
6818 |
< |
echo $ECHO_N "checking how to get verbose linking output from $FC... $ECHO_C" >&6 |
6817 |
> |
{ $as_echo "$as_me:$LINENO: checking how to get verbose linking output from $FC" >&5 |
6818 |
> |
$as_echo_n "checking how to get verbose linking output from $FC... " >&6; } |
6819 |
|
if test "${ac_cv_prog_fc_v+set}" = set; then |
6820 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6820 |
> |
$as_echo_n "(cached) " >&6 |
6821 |
|
else |
6822 |
|
cat >conftest.$ac_ext <<_ACEOF |
6823 |
|
program main |
6825 |
|
end |
6826 |
|
_ACEOF |
6827 |
|
rm -f conftest.$ac_objext |
6828 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6829 |
< |
(eval $ac_compile) 2>conftest.er1 |
6828 |
> |
if { (ac_try="$ac_compile" |
6829 |
> |
case "(($ac_try" in |
6830 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6831 |
> |
*) ac_try_echo=$ac_try;; |
6832 |
> |
esac |
6833 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6834 |
> |
$as_echo "$ac_try_echo") >&5 |
6835 |
> |
(eval "$ac_compile") 2>conftest.er1 |
6836 |
|
ac_status=$? |
6837 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
6838 |
|
rm -f conftest.er1 |
6839 |
|
cat conftest.err >&5 |
6840 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6841 |
< |
(exit $ac_status); } && |
6842 |
< |
{ ac_try='test -z "$ac_fc_werror_flag" |
6843 |
< |
|| test ! -s conftest.err' |
6844 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4769 |
< |
(eval $ac_try) 2>&5 |
4770 |
< |
ac_status=$? |
4771 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4772 |
< |
(exit $ac_status); }; } && |
4773 |
< |
{ ac_try='test -s conftest.$ac_objext' |
4774 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4775 |
< |
(eval $ac_try) 2>&5 |
4776 |
< |
ac_status=$? |
4777 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4778 |
< |
(exit $ac_status); }; }; then |
6840 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6841 |
> |
(exit $ac_status); } && { |
6842 |
> |
test -z "$ac_fc_werror_flag" || |
6843 |
> |
test ! -s conftest.err |
6844 |
> |
} && test -s conftest.$ac_objext; then |
6845 |
|
ac_cv_prog_fc_v= |
6846 |
|
# Try some options frequently used verbose output |
6847 |
|
for ac_verb in -v -verbose --verbose -V -\#\#\#; do |
6857 |
|
# flags. |
6858 |
|
ac_save_FFLAGS=$FCFLAGS |
6859 |
|
FCFLAGS="$FCFLAGS $ac_verb" |
6860 |
< |
(eval echo $as_me:4794: \"$ac_link\") >&5 |
6861 |
< |
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
6862 |
< |
echo "$ac_fc_v_output" >&5 |
6860 |
> |
eval "set x $ac_link" |
6861 |
> |
shift |
6862 |
> |
$as_echo "$as_me:$LINENO: $*" >&5 |
6863 |
> |
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, |
6864 |
> |
# LIBRARY_PATH; skip all such settings. |
6865 |
> |
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | |
6866 |
> |
grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="` |
6867 |
> |
$as_echo "$ac_fc_v_output" >&5 |
6868 |
|
FCFLAGS=$ac_save_FFLAGS |
6869 |
|
|
6870 |
< |
rm -f conftest* |
6870 |
> |
rm -rf conftest* |
6871 |
|
|
6872 |
|
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
6873 |
|
# /foo, /bar, and /baz are search directories for the Fortran linker. |
6874 |
|
# Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
6875 |
|
ac_fc_v_output="`echo $ac_fc_v_output | |
6876 |
|
grep 'LPATH is:' | |
6877 |
< |
sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output" |
6877 |
> |
sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output" |
6878 |
|
|
6879 |
+ |
# FIXME: we keep getting bitten by quoted arguments; a more general fix |
6880 |
+ |
# that detects unbalanced quotes in FLIBS should be implemented |
6881 |
+ |
# and (ugh) tested at some point. |
6882 |
|
case $ac_fc_v_output in |
6883 |
|
# If we are using xlf then replace all the commas with spaces. |
6884 |
|
*xlfentry*) |
6887 |
|
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
6888 |
|
# $LIBS confuse us, and the libraries appear later in the output anyway). |
6889 |
|
*mGLOB_options_string*) |
6890 |
< |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; |
6890 |
> |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; |
6891 |
|
|
6892 |
+ |
# Portland Group compiler has singly- or doubly-quoted -cmdline argument |
6893 |
+ |
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. |
6894 |
+ |
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". |
6895 |
+ |
*-cmdline\ * | *-ignore\ * | *-def\ *) |
6896 |
+ |
ac_fc_v_output=`echo $ac_fc_v_output | sed "\ |
6897 |
+ |
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g |
6898 |
+ |
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g |
6899 |
+ |
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; |
6900 |
+ |
|
6901 |
|
# If we are using Cray Fortran then delete quotes. |
4819 |
– |
# Use "\"" instead of '"' for font-lock-mode. |
4820 |
– |
# FIXME: a more general fix for quoted arguments with spaces? |
6902 |
|
*cft90*) |
6903 |
< |
ac_fc_v_output=`echo $ac_fc_v_output | sed "s/\"//g"` ;; |
6903 |
> |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; |
6904 |
|
esac |
6905 |
|
|
6906 |
|
|
6914 |
|
done |
6915 |
|
done |
6916 |
|
if test -z "$ac_cv_prog_fc_v"; then |
6917 |
< |
{ echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $FC" >&5 |
6918 |
< |
echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;} |
6917 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $FC" >&5 |
6918 |
> |
$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;} |
6919 |
|
fi |
6920 |
|
else |
6921 |
< |
echo "$as_me: failed program was:" >&5 |
6921 |
> |
$as_echo "$as_me: failed program was:" >&5 |
6922 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6923 |
|
|
6924 |
< |
{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5 |
6925 |
< |
echo "$as_me: WARNING: compilation failed" >&2;} |
6924 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: compilation failed" >&5 |
6925 |
> |
$as_echo "$as_me: WARNING: compilation failed" >&2;} |
6926 |
|
fi |
4846 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6927 |
|
|
6928 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6929 |
+ |
|
6930 |
|
fi |
6931 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_fc_v" >&5 |
6932 |
< |
echo "${ECHO_T}$ac_cv_prog_fc_v" >&6 |
6933 |
< |
echo "$as_me:$LINENO: checking for Fortran libraries of $FC" >&5 |
6934 |
< |
echo $ECHO_N "checking for Fortran libraries of $FC... $ECHO_C" >&6 |
6931 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_fc_v" >&5 |
6932 |
> |
$as_echo "$ac_cv_prog_fc_v" >&6; } |
6933 |
> |
{ $as_echo "$as_me:$LINENO: checking for Fortran libraries of $FC" >&5 |
6934 |
> |
$as_echo_n "checking for Fortran libraries of $FC... " >&6; } |
6935 |
|
if test "${ac_cv_fc_libs+set}" = set; then |
6936 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6936 |
> |
$as_echo_n "(cached) " >&6 |
6937 |
|
else |
6938 |
|
if test "x$FCLIBS" != "x"; then |
6939 |
|
ac_cv_fc_libs="$FCLIBS" # Let the user override the test. |
6951 |
|
# flags. |
6952 |
|
ac_save_FFLAGS=$FCFLAGS |
6953 |
|
FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v" |
6954 |
< |
(eval echo $as_me:4872: \"$ac_link\") >&5 |
6955 |
< |
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
6956 |
< |
echo "$ac_fc_v_output" >&5 |
6957 |
< |
FCFLAGS=$ac_save_FFLAGS |
6958 |
< |
|
6959 |
< |
rm -f conftest* |
6960 |
< |
|
6961 |
< |
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
6962 |
< |
# /foo, /bar, and /baz are search directories for the Fortran linker. |
6963 |
< |
# Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
6954 |
> |
eval "set x $ac_link" |
6955 |
> |
shift |
6956 |
> |
$as_echo "$as_me:$LINENO: $*" >&5 |
6957 |
> |
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, |
6958 |
> |
# LIBRARY_PATH; skip all such settings. |
6959 |
> |
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | |
6960 |
> |
grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="` |
6961 |
> |
$as_echo "$ac_fc_v_output" >&5 |
6962 |
> |
FCFLAGS=$ac_save_FFLAGS |
6963 |
> |
|
6964 |
> |
rm -rf conftest* |
6965 |
> |
|
6966 |
> |
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
6967 |
> |
# /foo, /bar, and /baz are search directories for the Fortran linker. |
6968 |
> |
# Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
6969 |
|
ac_fc_v_output="`echo $ac_fc_v_output | |
6970 |
|
grep 'LPATH is:' | |
6971 |
< |
sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output" |
6971 |
> |
sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output" |
6972 |
|
|
6973 |
+ |
# FIXME: we keep getting bitten by quoted arguments; a more general fix |
6974 |
+ |
# that detects unbalanced quotes in FLIBS should be implemented |
6975 |
+ |
# and (ugh) tested at some point. |
6976 |
|
case $ac_fc_v_output in |
6977 |
|
# If we are using xlf then replace all the commas with spaces. |
6978 |
|
*xlfentry*) |
6981 |
|
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
6982 |
|
# $LIBS confuse us, and the libraries appear later in the output anyway). |
6983 |
|
*mGLOB_options_string*) |
6984 |
< |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; |
6984 |
> |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; |
6985 |
|
|
6986 |
+ |
# Portland Group compiler has singly- or doubly-quoted -cmdline argument |
6987 |
+ |
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. |
6988 |
+ |
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". |
6989 |
+ |
*-cmdline\ * | *-ignore\ * | *-def\ *) |
6990 |
+ |
ac_fc_v_output=`echo $ac_fc_v_output | sed "\ |
6991 |
+ |
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g |
6992 |
+ |
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g |
6993 |
+ |
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; |
6994 |
+ |
|
6995 |
|
# If we are using Cray Fortran then delete quotes. |
4897 |
– |
# Use "\"" instead of '"' for font-lock-mode. |
4898 |
– |
# FIXME: a more general fix for quoted arguments with spaces? |
6996 |
|
*cft90*) |
6997 |
< |
ac_fc_v_output=`echo $ac_fc_v_output | sed "s/\"//g"` ;; |
6997 |
> |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; |
6998 |
|
esac |
6999 |
|
|
7000 |
|
|
7048 |
|
|
7049 |
|
;; |
7050 |
|
# Ignore these flags. |
7051 |
< |
-lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*) |
7051 |
> |
-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*) |
7052 |
|
;; |
7053 |
|
-lkernel32) |
7054 |
|
test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
7055 |
|
;; |
7056 |
< |
-[LRuY]) |
7056 |
> |
-[LRuYz]) |
7057 |
|
# These flags, when seen by themselves, take an argument. |
7058 |
|
# We remove the space between option and argument and re-iterate |
7059 |
|
# unless we find an empty arg or a new option (starting with -) |
7067 |
|
esac |
7068 |
|
;; |
7069 |
|
-YP,*) |
7070 |
< |
for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
7070 |
> |
for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
7071 |
|
ac_exists=false |
7072 |
|
for ac_i in $ac_cv_fc_libs; do |
7073 |
|
if test x"$ac_j" = x"$ac_i"; then |
7101 |
|
fi |
7102 |
|
|
7103 |
|
;; |
7104 |
+ |
-zallextract*| -zdefaultextract) |
7105 |
+ |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
7106 |
+ |
;; |
7107 |
|
# Ignore everything else. |
7108 |
|
esac |
7109 |
|
done |
7115 |
|
# must begin with a "/"). |
7116 |
|
case `(uname -sr) 2>/dev/null` in |
7117 |
|
"SunOS 5"*) |
7118 |
< |
ac_ld_run_path=`echo $ac_fc_v_output | |
7118 |
> |
ac_ld_run_path=`$as_echo "$ac_fc_v_output" | |
7119 |
|
sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` |
7120 |
|
test "x$ac_ld_run_path" != x && |
7121 |
|
if test "$ac_compiler_gnu" = yes; then |
7130 |
|
fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" |
7131 |
|
|
7132 |
|
fi |
7133 |
< |
echo "$as_me:$LINENO: result: $ac_cv_fc_libs" >&5 |
7134 |
< |
echo "${ECHO_T}$ac_cv_fc_libs" >&6 |
7133 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_fc_libs" >&5 |
7134 |
> |
$as_echo "$ac_cv_fc_libs" >&6; } |
7135 |
|
FCLIBS="$ac_cv_fc_libs" |
7136 |
|
|
7137 |
|
|
7138 |
< |
ac_ext=${FC_SRCEXT-f} |
7139 |
< |
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' |
7140 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' |
7138 |
> |
ac_ext=${ac_fc_srcext-f} |
7139 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
7140 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
7141 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
7142 |
|
|
7143 |
|
|
7144 |
|
|
7145 |
< |
echo "$as_me:$LINENO: checking for module suffix" >&5 |
7146 |
< |
echo $ECHO_N "checking for module suffix... $ECHO_C" >&6 |
7145 |
> |
{ $as_echo "$as_me:$LINENO: checking for module suffix" >&5 |
7146 |
> |
$as_echo_n "checking for module suffix... " >&6; } |
7147 |
|
rm -f conftest* |
7148 |
|
# Intel ifc compiler generates files by the name of work.pc and work.pcl (!) |
7149 |
|
rm -f work* |
7169 |
|
fi |
7170 |
|
fi |
7171 |
|
if test -z "$MOD" ; then |
7172 |
< |
echo "$as_me:$LINENO: result: unknown" >&5 |
7173 |
< |
echo "${ECHO_T}unknown" >&6 |
7172 |
> |
{ $as_echo "$as_me:$LINENO: result: unknown" >&5 |
7173 |
> |
$as_echo "unknown" >&6; } |
7174 |
|
# Use mod if we can't figure it out |
7175 |
|
MOD="mod" |
7176 |
|
else |
7177 |
< |
echo "$as_me:$LINENO: result: $MOD" >&5 |
7178 |
< |
echo "${ECHO_T}$MOD" >&6 |
7177 |
> |
{ $as_echo "$as_me:$LINENO: result: $MOD" >&5 |
7178 |
> |
$as_echo "$MOD" >&6; } |
7179 |
|
fi |
7180 |
|
if test -s work.pcl ; then |
7181 |
< |
{ echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5 |
7182 |
< |
echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;} |
7181 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5 |
7182 |
> |
$as_echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;} |
7183 |
|
fi |
7184 |
|
else |
7185 |
< |
echo "$as_me:$LINENO: result: unknown" >&5 |
7186 |
< |
echo "${ECHO_T}unknown" >&6 |
7185 |
> |
{ $as_echo "$as_me:$LINENO: result: unknown" >&5 |
7186 |
> |
$as_echo "unknown" >&6; } |
7187 |
|
fi |
7188 |
|
|
7189 |
|
|
7196 |
|
# specified, work.pcl and work.pc are created. However, if you specify |
7197 |
|
# a file, it must contain a the name of a file ending in .pc . Ugh! |
7198 |
|
# Use the module made above |
7199 |
< |
echo "$as_me:$LINENO: checking for module directory path flag" >&5 |
7200 |
< |
echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6 |
7199 |
> |
{ $as_echo "$as_me:$LINENO: checking for module directory path flag" >&5 |
7200 |
> |
$as_echo_n "checking for module directory path flag... " >&6; } |
7201 |
|
rm -f conftest* |
7202 |
|
# Intel ifc compiler generates files by the name of work.pc and work.pcl (!) |
7203 |
|
rm -f work* |
7230 |
|
if $FC -c -Iconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext > conftest.out 2>&1 ; then |
7231 |
|
MODDIRFLAG="-I" |
7232 |
|
F90MODINCSPEC="-I<dir>" |
7233 |
< |
echo "$as_me:$LINENO: result: -I" >&5 |
7234 |
< |
echo "${ECHO_T}-I" >&6 |
7233 |
> |
{ $as_echo "$as_me:$LINENO: result: -I" >&5 |
7234 |
> |
$as_echo "-I" >&6; } |
7235 |
|
elif $FC -c -Mconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then |
7236 |
|
MODDIRFLAG="-M" |
7237 |
|
F90MODINCSPEC="-M<dir>" |
7238 |
< |
echo "$as_me:$LINENO: result: -M" >&5 |
7239 |
< |
echo "${ECHO_T}-M" >&6 |
7238 |
> |
{ $as_echo "$as_me:$LINENO: result: -M" >&5 |
7239 |
> |
$as_echo "-M" >&6; } |
7240 |
|
elif $FC -c -pconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then |
7241 |
|
MODDIRFLAG="-p" |
7242 |
|
F90MODINCSPEC="-p<dir>" |
7243 |
< |
echo "$as_me:$LINENO: result: -p" >&5 |
7244 |
< |
echo "${ECHO_T}-p" >&6 |
7243 |
> |
{ $as_echo "$as_me:$LINENO: result: -p" >&5 |
7244 |
> |
$as_echo "-p" >&6; } |
7245 |
|
elif test -s work.pc ; then |
7246 |
|
cp work.pc conf/mpimod.pc |
7247 |
|
echo "mpimod.pc" > conf/mpimod.pcl |
7248 |
|
echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl |
7249 |
|
if $FC -c -cl,conf/mpimod.pcl $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >>conftest.out 2>&1 ; then |
7250 |
|
MODDIRFLAG='-cl,mpimod.pcl' |
7251 |
< |
echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5 |
7252 |
< |
echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6 |
7251 |
> |
{ $as_echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5 |
7252 |
> |
$as_echo "-cl,filename where filename contains a list of files and directories" >&6; } |
7253 |
|
F90_WORK_FILES_ARG="-cl,mpimod.pcl" |
7254 |
|
F90MODINCSPEC="-cl,<dir>/<file>mod.pcl" |
7255 |
|
|
7261 |
|
fi |
7262 |
|
fi |
7263 |
|
if test -z "MODDIRFLAG" ; then |
7264 |
< |
echo "$as_me:$LINENO: result: unknown" >&5 |
7265 |
< |
echo "${ECHO_T}unknown" >&6 |
7264 |
> |
{ $as_echo "$as_me:$LINENO: result: unknown" >&5 |
7265 |
> |
$as_echo "unknown" >&6; } |
7266 |
|
fi |
7267 |
|
|
7268 |
|
|
7271 |
|
fi |
7272 |
|
|
7273 |
|
|
7274 |
< |
echo "$as_me:$LINENO: checking for Fortran 90 module file names" >&5 |
7275 |
< |
echo $ECHO_N "checking for Fortran 90 module file names... $ECHO_C" >&6 |
7274 |
> |
{ $as_echo "$as_me:$LINENO: checking for Fortran 90 module file names" >&5 |
7275 |
> |
$as_echo_n "checking for Fortran 90 module file names... " >&6; } |
7276 |
|
if test "${ac_cv_f90_module_names+set}" = set; then |
7277 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7277 |
> |
$as_echo_n "(cached) " >&6 |
7278 |
|
else |
7279 |
< |
ac_ext=${FC_SRCEXT-f} |
7280 |
< |
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' |
7281 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' |
7279 |
> |
ac_ext=${ac_fc_srcext-f} |
7280 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
7281 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
7282 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
7283 |
|
|
7284 |
|
# carry out the test in a new directory, so that we don't miss anything |
7289 |
|
END MODULE Bar |
7290 |
|
_ACEOF |
7291 |
|
rm -f conftest.$ac_objext |
7292 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7293 |
< |
(eval $ac_compile) 2>conftest.er1 |
7292 |
> |
if { (ac_try="$ac_compile" |
7293 |
> |
case "(($ac_try" in |
7294 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7295 |
> |
*) ac_try_echo=$ac_try;; |
7296 |
> |
esac |
7297 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7298 |
> |
$as_echo "$ac_try_echo") >&5 |
7299 |
> |
(eval "$ac_compile") 2>conftest.er1 |
7300 |
|
ac_status=$? |
7301 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
7302 |
|
rm -f conftest.er1 |
7303 |
|
cat conftest.err >&5 |
7304 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7305 |
< |
(exit $ac_status); } && |
7306 |
< |
{ ac_try='test -z "$ac_fc_werror_flag" |
7307 |
< |
|| test ! -s conftest.err' |
7308 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5203 |
< |
(eval $ac_try) 2>&5 |
5204 |
< |
ac_status=$? |
5205 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5206 |
< |
(exit $ac_status); }; } && |
5207 |
< |
{ ac_try='test -s conftest.$ac_objext' |
5208 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5209 |
< |
(eval $ac_try) 2>&5 |
5210 |
< |
ac_status=$? |
5211 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5212 |
< |
(exit $ac_status); }; }; then |
7304 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7305 |
> |
(exit $ac_status); } && { |
7306 |
> |
test -z "$ac_fc_werror_flag" || |
7307 |
> |
test ! -s conftest.err |
7308 |
> |
} && test -s conftest.$ac_objext; then |
7309 |
|
ac_cv_f90_module_names= |
7310 |
|
ac_file_list=* |
7311 |
|
for ac_file in $ac_file_list; do |
7387 |
|
;; |
7388 |
|
# Other files - we have no idea how they are generated |
7389 |
|
*) |
7390 |
< |
{ echo "$as_me:$LINENO: WARNING: Bogus file found: $ac_file" >&5 |
7391 |
< |
echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;} |
7390 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: Bogus file found: $ac_file" >&5 |
7391 |
> |
$as_echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;} |
7392 |
|
;; |
7393 |
|
esac |
7394 |
|
done |
7395 |
|
if test "x$ac_cv_f90_module_names" = "x"; then |
7396 |
< |
{ echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5 |
7397 |
< |
echo "$as_me: WARNING: Couldn't determine module file names" >&2;} |
7396 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5 |
7397 |
> |
$as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;} |
7398 |
|
fi |
7399 |
|
|
7400 |
|
else |
7401 |
< |
echo "$as_me: failed program was:" >&5 |
7401 |
> |
$as_echo "$as_me: failed program was:" >&5 |
7402 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7403 |
|
|
7404 |
< |
ac_cv_f90_module_names= |
7405 |
< |
{ echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5 |
7406 |
< |
echo "$as_me: WARNING: Couldn't determine module file names" >&2;} |
7404 |
> |
ac_cv_f90_module_names= |
7405 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5 |
7406 |
> |
$as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;} |
7407 |
|
fi |
7408 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7408 |
> |
|
7409 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7410 |
|
cd .. |
7411 |
|
# cleanup |
7412 |
|
rm -rf conftest |
7413 |
< |
ac_ext=${FC_SRCEXT-f} |
7414 |
< |
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' |
7415 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' |
7413 |
> |
ac_ext=${ac_fc_srcext-f} |
7414 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
7415 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
7416 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
7417 |
|
|
7418 |
|
fi |
7419 |
< |
echo "$as_me:$LINENO: result: $ac_cv_f90_module_names" >&5 |
7420 |
< |
echo "${ECHO_T}$ac_cv_f90_module_names" >&6 # AC_CACHE_CHECK |
7419 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f90_module_names" >&5 |
7420 |
> |
$as_echo "$ac_cv_f90_module_names" >&6; } # AC_CACHE_CHECK |
7421 |
|
|
7422 |
|
# We now generate a shell script that will help us to figure out the correct |
7423 |
|
# module file names, using the value of ac_cv_f90_module_names |
7510 |
|
|
7511 |
|
|
7512 |
|
|
7513 |
< |
echo "$as_me:$LINENO: checking for asin in -lm" >&5 |
7514 |
< |
echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6 |
7513 |
> |
{ $as_echo "$as_me:$LINENO: checking for asin in -lm" >&5 |
7514 |
> |
$as_echo_n "checking for asin in -lm... " >&6; } |
7515 |
|
if test "${ac_cv_lib_m_asin+set}" = set; then |
7516 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7516 |
> |
$as_echo_n "(cached) " >&6 |
7517 |
|
else |
7518 |
|
ac_check_lib_save_LIBS=$LIBS |
7519 |
|
LIBS="-lm $LIBS" |
7524 |
|
cat >>conftest.$ac_ext <<_ACEOF |
7525 |
|
/* end confdefs.h. */ |
7526 |
|
|
7527 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
7527 |
> |
/* Override any GCC internal prototype to avoid an error. |
7528 |
> |
Use char because int might match the return type of a GCC |
7529 |
> |
builtin and then its argument prototype would still apply. */ |
7530 |
|
#ifdef __cplusplus |
7531 |
|
extern "C" |
7532 |
|
#endif |
5434 |
– |
/* We use char because int might match the return type of a gcc2 |
5435 |
– |
builtin and then its argument prototype would still apply. */ |
7533 |
|
char asin (); |
7534 |
|
#ifdef FC_DUMMY_MAIN |
7535 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7542 |
|
int |
7543 |
|
main () |
7544 |
|
{ |
7545 |
< |
asin (); |
7545 |
> |
return asin (); |
7546 |
|
; |
7547 |
|
return 0; |
7548 |
|
} |
7549 |
|
_ACEOF |
7550 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
7551 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7552 |
< |
(eval $ac_link) 2>conftest.er1 |
7551 |
> |
if { (ac_try="$ac_link" |
7552 |
> |
case "(($ac_try" in |
7553 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7554 |
> |
*) ac_try_echo=$ac_try;; |
7555 |
> |
esac |
7556 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7557 |
> |
$as_echo "$ac_try_echo") >&5 |
7558 |
> |
(eval "$ac_link") 2>conftest.er1 |
7559 |
|
ac_status=$? |
7560 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
7561 |
|
rm -f conftest.er1 |
7562 |
|
cat conftest.err >&5 |
7563 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7564 |
< |
(exit $ac_status); } && |
7565 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
7566 |
< |
|| test ! -s conftest.err' |
7567 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7568 |
< |
(eval $ac_try) 2>&5 |
7569 |
< |
ac_status=$? |
7570 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5468 |
< |
(exit $ac_status); }; } && |
5469 |
< |
{ ac_try='test -s conftest$ac_exeext' |
5470 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5471 |
< |
(eval $ac_try) 2>&5 |
5472 |
< |
ac_status=$? |
5473 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5474 |
< |
(exit $ac_status); }; }; then |
7563 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7564 |
> |
(exit $ac_status); } && { |
7565 |
> |
test -z "$ac_c_werror_flag" || |
7566 |
> |
test ! -s conftest.err |
7567 |
> |
} && test -s conftest$ac_exeext && { |
7568 |
> |
test "$cross_compiling" = yes || |
7569 |
> |
$as_test_x conftest$ac_exeext |
7570 |
> |
}; then |
7571 |
|
ac_cv_lib_m_asin=yes |
7572 |
|
else |
7573 |
< |
echo "$as_me: failed program was:" >&5 |
7573 |
> |
$as_echo "$as_me: failed program was:" >&5 |
7574 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7575 |
|
|
7576 |
< |
ac_cv_lib_m_asin=no |
7576 |
> |
ac_cv_lib_m_asin=no |
7577 |
|
fi |
7578 |
< |
rm -f conftest.err conftest.$ac_objext \ |
7578 |
> |
|
7579 |
> |
rm -rf conftest.dSYM |
7580 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7581 |
|
conftest$ac_exeext conftest.$ac_ext |
7582 |
|
LIBS=$ac_check_lib_save_LIBS |
7583 |
|
fi |
7584 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5 |
7585 |
< |
echo "${ECHO_T}$ac_cv_lib_m_asin" >&6 |
7584 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5 |
7585 |
> |
$as_echo "$ac_cv_lib_m_asin" >&6; } |
7586 |
|
if test $ac_cv_lib_m_asin = yes; then |
7587 |
|
cat >>confdefs.h <<_ACEOF |
7588 |
|
#define HAVE_LIBM 1 |
7595 |
|
fi |
7596 |
|
|
7597 |
|
|
7598 |
< |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
7599 |
< |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
7598 |
> |
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
7599 |
> |
$as_echo_n "checking for ANSI C header files... " >&6; } |
7600 |
|
if test "${ac_cv_header_stdc+set}" = set; then |
7601 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7601 |
> |
$as_echo_n "(cached) " >&6 |
7602 |
|
else |
7603 |
|
cat >conftest.$ac_ext <<_ACEOF |
7604 |
|
/* confdefs.h. */ |
7628 |
|
} |
7629 |
|
_ACEOF |
7630 |
|
rm -f conftest.$ac_objext |
7631 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7632 |
< |
(eval $ac_compile) 2>conftest.er1 |
7631 |
> |
if { (ac_try="$ac_compile" |
7632 |
> |
case "(($ac_try" in |
7633 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7634 |
> |
*) ac_try_echo=$ac_try;; |
7635 |
> |
esac |
7636 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7637 |
> |
$as_echo "$ac_try_echo") >&5 |
7638 |
> |
(eval "$ac_compile") 2>conftest.er1 |
7639 |
|
ac_status=$? |
7640 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
7641 |
|
rm -f conftest.er1 |
7642 |
|
cat conftest.err >&5 |
7643 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7644 |
< |
(exit $ac_status); } && |
7645 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
7646 |
< |
|| test ! -s conftest.err' |
7647 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5544 |
< |
(eval $ac_try) 2>&5 |
5545 |
< |
ac_status=$? |
5546 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5547 |
< |
(exit $ac_status); }; } && |
5548 |
< |
{ ac_try='test -s conftest.$ac_objext' |
5549 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5550 |
< |
(eval $ac_try) 2>&5 |
5551 |
< |
ac_status=$? |
5552 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5553 |
< |
(exit $ac_status); }; }; then |
7643 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7644 |
> |
(exit $ac_status); } && { |
7645 |
> |
test -z "$ac_c_werror_flag" || |
7646 |
> |
test ! -s conftest.err |
7647 |
> |
} && test -s conftest.$ac_objext; then |
7648 |
|
ac_cv_header_stdc=yes |
7649 |
|
else |
7650 |
< |
echo "$as_me: failed program was:" >&5 |
7650 |
> |
$as_echo "$as_me: failed program was:" >&5 |
7651 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7652 |
|
|
7653 |
< |
ac_cv_header_stdc=no |
7653 |
> |
ac_cv_header_stdc=no |
7654 |
|
fi |
5561 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7655 |
|
|
7656 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7657 |
+ |
|
7658 |
|
if test $ac_cv_header_stdc = yes; then |
7659 |
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
7660 |
|
cat >conftest.$ac_ext <<_ACEOF |
7709 |
|
cat >>conftest.$ac_ext <<_ACEOF |
7710 |
|
/* end confdefs.h. */ |
7711 |
|
#include <ctype.h> |
7712 |
+ |
#include <stdlib.h> |
7713 |
|
#if ((' ' & 0x0FF) == 0x020) |
7714 |
|
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
7715 |
|
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
7729 |
|
for (i = 0; i < 256; i++) |
7730 |
|
if (XOR (islower (i), ISLOWER (i)) |
7731 |
|
|| toupper (i) != TOUPPER (i)) |
7732 |
< |
exit(2); |
7733 |
< |
exit (0); |
7732 |
> |
return 2; |
7733 |
> |
return 0; |
7734 |
|
} |
7735 |
|
_ACEOF |
7736 |
|
rm -f conftest$ac_exeext |
7737 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7738 |
< |
(eval $ac_link) 2>&5 |
7739 |
< |
ac_status=$? |
7740 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7741 |
< |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7742 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7743 |
< |
(eval $ac_try) 2>&5 |
7737 |
> |
if { (ac_try="$ac_link" |
7738 |
> |
case "(($ac_try" in |
7739 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7740 |
> |
*) ac_try_echo=$ac_try;; |
7741 |
> |
esac |
7742 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7743 |
> |
$as_echo "$ac_try_echo") >&5 |
7744 |
> |
(eval "$ac_link") 2>&5 |
7745 |
|
ac_status=$? |
7746 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7746 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7747 |
> |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7748 |
> |
{ (case "(($ac_try" in |
7749 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7750 |
> |
*) ac_try_echo=$ac_try;; |
7751 |
> |
esac |
7752 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7753 |
> |
$as_echo "$ac_try_echo") >&5 |
7754 |
> |
(eval "$ac_try") 2>&5 |
7755 |
> |
ac_status=$? |
7756 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7757 |
|
(exit $ac_status); }; }; then |
7758 |
|
: |
7759 |
|
else |
7760 |
< |
echo "$as_me: program exited with status $ac_status" >&5 |
7761 |
< |
echo "$as_me: failed program was:" >&5 |
7760 |
> |
$as_echo "$as_me: program exited with status $ac_status" >&5 |
7761 |
> |
$as_echo "$as_me: failed program was:" >&5 |
7762 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7763 |
|
|
7764 |
|
( exit $ac_status ) |
7765 |
|
ac_cv_header_stdc=no |
7766 |
|
fi |
7767 |
< |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
7767 |
> |
rm -rf conftest.dSYM |
7768 |
> |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
7769 |
|
fi |
7770 |
+ |
|
7771 |
+ |
|
7772 |
|
fi |
7773 |
|
fi |
7774 |
< |
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
7775 |
< |
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
7774 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
7775 |
> |
$as_echo "$ac_cv_header_stdc" >&6; } |
7776 |
|
if test $ac_cv_header_stdc = yes; then |
7777 |
|
|
7778 |
|
cat >>confdefs.h <<\_ACEOF |
7794 |
|
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7795 |
|
inttypes.h stdint.h unistd.h |
7796 |
|
do |
7797 |
< |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7798 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7799 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
7800 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7801 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7797 |
> |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7798 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7799 |
> |
$as_echo_n "checking for $ac_header... " >&6; } |
7800 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7801 |
> |
$as_echo_n "(cached) " >&6 |
7802 |
|
else |
7803 |
|
cat >conftest.$ac_ext <<_ACEOF |
7804 |
|
/* confdefs.h. */ |
7811 |
|
#include <$ac_header> |
7812 |
|
_ACEOF |
7813 |
|
rm -f conftest.$ac_objext |
7814 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7815 |
< |
(eval $ac_compile) 2>conftest.er1 |
7814 |
> |
if { (ac_try="$ac_compile" |
7815 |
> |
case "(($ac_try" in |
7816 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7817 |
> |
*) ac_try_echo=$ac_try;; |
7818 |
> |
esac |
7819 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7820 |
> |
$as_echo "$ac_try_echo") >&5 |
7821 |
> |
(eval "$ac_compile") 2>conftest.er1 |
7822 |
|
ac_status=$? |
7823 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
7824 |
|
rm -f conftest.er1 |
7825 |
|
cat conftest.err >&5 |
7826 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7827 |
< |
(exit $ac_status); } && |
7828 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
7829 |
< |
|| test ! -s conftest.err' |
7830 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5715 |
< |
(eval $ac_try) 2>&5 |
5716 |
< |
ac_status=$? |
5717 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5718 |
< |
(exit $ac_status); }; } && |
5719 |
< |
{ ac_try='test -s conftest.$ac_objext' |
5720 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5721 |
< |
(eval $ac_try) 2>&5 |
5722 |
< |
ac_status=$? |
5723 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5724 |
< |
(exit $ac_status); }; }; then |
7826 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7827 |
> |
(exit $ac_status); } && { |
7828 |
> |
test -z "$ac_c_werror_flag" || |
7829 |
> |
test ! -s conftest.err |
7830 |
> |
} && test -s conftest.$ac_objext; then |
7831 |
|
eval "$as_ac_Header=yes" |
7832 |
|
else |
7833 |
< |
echo "$as_me: failed program was:" >&5 |
7833 |
> |
$as_echo "$as_me: failed program was:" >&5 |
7834 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7835 |
|
|
7836 |
< |
eval "$as_ac_Header=no" |
7836 |
> |
eval "$as_ac_Header=no" |
7837 |
|
fi |
7838 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7838 |
> |
|
7839 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7840 |
|
fi |
7841 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7842 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
7843 |
< |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7841 |
> |
ac_res=`eval 'as_val=${'$as_ac_Header'} |
7842 |
> |
$as_echo "$as_val"'` |
7843 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
7844 |
> |
$as_echo "$ac_res" >&6; } |
7845 |
> |
if test `eval 'as_val=${'$as_ac_Header'} |
7846 |
> |
$as_echo "$as_val"'` = yes; then |
7847 |
|
cat >>confdefs.h <<_ACEOF |
7848 |
< |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7848 |
> |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7849 |
|
_ACEOF |
7850 |
|
|
7851 |
|
fi |
7856 |
|
# |
7857 |
|
# Handle user hints |
7858 |
|
# |
5749 |
– |
echo "$as_me:$LINENO: checking if zlib is wanted" >&5 |
5750 |
– |
echo $ECHO_N "checking if zlib is wanted... $ECHO_C" >&6 |
7859 |
|
|
7860 |
< |
# Check whether --with-zlib or --without-zlib was given. |
7860 |
> |
# Check whether --with-zlib was given. |
7861 |
|
if test "${with_zlib+set}" = set; then |
7862 |
< |
withval="$with_zlib" |
5755 |
< |
if test "$withval" != no ; then |
5756 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
5757 |
< |
echo "${ECHO_T}yes" >&6 |
5758 |
< |
if test -d "$withval" |
5759 |
< |
then |
5760 |
< |
ZLIB_HOME="$withval" |
5761 |
< |
else |
5762 |
< |
{ echo "$as_me:$LINENO: WARNING: Sorry, $withval does not exist, checking usual places" >&5 |
5763 |
< |
echo "$as_me: WARNING: Sorry, $withval does not exist, checking usual places" >&2;} |
5764 |
< |
fi |
7862 |
> |
withval=$with_zlib; zlib_dir="$withval" |
7863 |
|
else |
7864 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
5767 |
< |
echo "${ECHO_T}no" >&6 |
7864 |
> |
zlib_dir="not_set" |
7865 |
|
fi |
5769 |
– |
fi; |
7866 |
|
|
7867 |
< |
ZLIB_HOME=/usr/local |
5772 |
< |
if test ! -f "${ZLIB_HOME}/include/zlib.h" |
5773 |
< |
then |
5774 |
< |
ZLIB_HOME=/usr |
5775 |
< |
fi |
7867 |
> |
if test "$zlib_dir" != "no"; then |
7868 |
|
|
7869 |
+ |
if test "$zlib_dir" != "not_set" ; then |
7870 |
+ |
if test -d "$zlib_dir" |
7871 |
+ |
then |
7872 |
+ |
ZLIB_HOME="$zlib_dir" |
7873 |
+ |
else |
7874 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&5 |
7875 |
+ |
$as_echo "$as_me: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&2;} |
7876 |
+ |
ZLIB_HOME=/usr/local |
7877 |
+ |
if test ! -f "${ZLIB_HOME}/include/zlib.h" |
7878 |
+ |
then |
7879 |
+ |
ZLIB_HOME=/usr |
7880 |
+ |
fi |
7881 |
+ |
fi |
7882 |
+ |
fi |
7883 |
|
# |
7884 |
|
# Locate zlib, if wanted |
7885 |
|
# |
7886 |
|
if test -n "${ZLIB_HOME}" |
7887 |
|
then |
7888 |
|
ZLIB_OLD_LDFLAGS=$LDFLAGS |
7889 |
< |
ZLIB_OLD_CPPFLAGS=$LDFLAGS |
7889 |
> |
ZLIB_OLD_CFLAGS=$CFLAGS |
7890 |
|
LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib" |
7891 |
< |
CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include" |
7891 |
> |
CFLAGS="$CFLAGS -I${ZLIB_HOME}/include" |
7892 |
|
|
5787 |
– |
|
7893 |
|
ac_ext=c |
7894 |
|
ac_cpp='$CPP $CPPFLAGS' |
7895 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7896 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7897 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7898 |
|
|
7899 |
< |
echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 |
7900 |
< |
echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6 |
7899 |
> |
{ $as_echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 |
7900 |
> |
$as_echo_n "checking for inflateEnd in -lz... " >&6; } |
7901 |
|
if test "${ac_cv_lib_z_inflateEnd+set}" = set; then |
7902 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7902 |
> |
$as_echo_n "(cached) " >&6 |
7903 |
|
else |
7904 |
|
ac_check_lib_save_LIBS=$LIBS |
7905 |
|
LIBS="-lz $LIBS" |
7910 |
|
cat >>conftest.$ac_ext <<_ACEOF |
7911 |
|
/* end confdefs.h. */ |
7912 |
|
|
7913 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
7913 |
> |
/* Override any GCC internal prototype to avoid an error. |
7914 |
> |
Use char because int might match the return type of a GCC |
7915 |
> |
builtin and then its argument prototype would still apply. */ |
7916 |
|
#ifdef __cplusplus |
7917 |
|
extern "C" |
7918 |
|
#endif |
5812 |
– |
/* We use char because int might match the return type of a gcc2 |
5813 |
– |
builtin and then its argument prototype would still apply. */ |
7919 |
|
char inflateEnd (); |
7920 |
|
#ifdef FC_DUMMY_MAIN |
7921 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7928 |
|
int |
7929 |
|
main () |
7930 |
|
{ |
7931 |
< |
inflateEnd (); |
7931 |
> |
return inflateEnd (); |
7932 |
|
; |
7933 |
|
return 0; |
7934 |
|
} |
7935 |
|
_ACEOF |
7936 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
7937 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7938 |
< |
(eval $ac_link) 2>conftest.er1 |
7937 |
> |
if { (ac_try="$ac_link" |
7938 |
> |
case "(($ac_try" in |
7939 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7940 |
> |
*) ac_try_echo=$ac_try;; |
7941 |
> |
esac |
7942 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7943 |
> |
$as_echo "$ac_try_echo") >&5 |
7944 |
> |
(eval "$ac_link") 2>conftest.er1 |
7945 |
|
ac_status=$? |
7946 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
7947 |
|
rm -f conftest.er1 |
7948 |
|
cat conftest.err >&5 |
7949 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7950 |
< |
(exit $ac_status); } && |
7951 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
7952 |
< |
|| test ! -s conftest.err' |
7953 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7954 |
< |
(eval $ac_try) 2>&5 |
7955 |
< |
ac_status=$? |
7956 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5846 |
< |
(exit $ac_status); }; } && |
5847 |
< |
{ ac_try='test -s conftest$ac_exeext' |
5848 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5849 |
< |
(eval $ac_try) 2>&5 |
5850 |
< |
ac_status=$? |
5851 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5852 |
< |
(exit $ac_status); }; }; then |
7949 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7950 |
> |
(exit $ac_status); } && { |
7951 |
> |
test -z "$ac_c_werror_flag" || |
7952 |
> |
test ! -s conftest.err |
7953 |
> |
} && test -s conftest$ac_exeext && { |
7954 |
> |
test "$cross_compiling" = yes || |
7955 |
> |
$as_test_x conftest$ac_exeext |
7956 |
> |
}; then |
7957 |
|
ac_cv_lib_z_inflateEnd=yes |
7958 |
|
else |
7959 |
< |
echo "$as_me: failed program was:" >&5 |
7959 |
> |
$as_echo "$as_me: failed program was:" >&5 |
7960 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7961 |
|
|
7962 |
< |
ac_cv_lib_z_inflateEnd=no |
7962 |
> |
ac_cv_lib_z_inflateEnd=no |
7963 |
|
fi |
7964 |
< |
rm -f conftest.err conftest.$ac_objext \ |
7964 |
> |
|
7965 |
> |
rm -rf conftest.dSYM |
7966 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7967 |
|
conftest$ac_exeext conftest.$ac_ext |
7968 |
|
LIBS=$ac_check_lib_save_LIBS |
7969 |
|
fi |
7970 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 |
7971 |
< |
echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6 |
7970 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 |
7971 |
> |
$as_echo "$ac_cv_lib_z_inflateEnd" >&6; } |
7972 |
|
if test $ac_cv_lib_z_inflateEnd = yes; then |
7973 |
|
zlib_cv_libz=yes |
7974 |
|
else |
7976 |
|
fi |
7977 |
|
|
7978 |
|
if test "${ac_cv_header_zlib_h+set}" = set; then |
7979 |
< |
echo "$as_me:$LINENO: checking for zlib.h" >&5 |
7980 |
< |
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 |
7979 |
> |
{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5 |
7980 |
> |
$as_echo_n "checking for zlib.h... " >&6; } |
7981 |
|
if test "${ac_cv_header_zlib_h+set}" = set; then |
7982 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7982 |
> |
$as_echo_n "(cached) " >&6 |
7983 |
|
fi |
7984 |
< |
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
7985 |
< |
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 |
7984 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
7985 |
> |
$as_echo "$ac_cv_header_zlib_h" >&6; } |
7986 |
|
else |
7987 |
|
# Is the header compilable? |
7988 |
< |
echo "$as_me:$LINENO: checking zlib.h usability" >&5 |
7989 |
< |
echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 |
7988 |
> |
{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5 |
7989 |
> |
$as_echo_n "checking zlib.h usability... " >&6; } |
7990 |
|
cat >conftest.$ac_ext <<_ACEOF |
7991 |
|
/* confdefs.h. */ |
7992 |
|
_ACEOF |
7997 |
|
#include <zlib.h> |
7998 |
|
_ACEOF |
7999 |
|
rm -f conftest.$ac_objext |
8000 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8001 |
< |
(eval $ac_compile) 2>conftest.er1 |
8000 |
> |
if { (ac_try="$ac_compile" |
8001 |
> |
case "(($ac_try" in |
8002 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8003 |
> |
*) ac_try_echo=$ac_try;; |
8004 |
> |
esac |
8005 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8006 |
> |
$as_echo "$ac_try_echo") >&5 |
8007 |
> |
(eval "$ac_compile") 2>conftest.er1 |
8008 |
|
ac_status=$? |
8009 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8010 |
|
rm -f conftest.er1 |
8011 |
|
cat conftest.err >&5 |
8012 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8013 |
< |
(exit $ac_status); } && |
8014 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
8015 |
< |
|| test ! -s conftest.err' |
8016 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5905 |
< |
(eval $ac_try) 2>&5 |
5906 |
< |
ac_status=$? |
5907 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5908 |
< |
(exit $ac_status); }; } && |
5909 |
< |
{ ac_try='test -s conftest.$ac_objext' |
5910 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5911 |
< |
(eval $ac_try) 2>&5 |
5912 |
< |
ac_status=$? |
5913 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5914 |
< |
(exit $ac_status); }; }; then |
8012 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8013 |
> |
(exit $ac_status); } && { |
8014 |
> |
test -z "$ac_c_werror_flag" || |
8015 |
> |
test ! -s conftest.err |
8016 |
> |
} && test -s conftest.$ac_objext; then |
8017 |
|
ac_header_compiler=yes |
8018 |
|
else |
8019 |
< |
echo "$as_me: failed program was:" >&5 |
8019 |
> |
$as_echo "$as_me: failed program was:" >&5 |
8020 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8021 |
|
|
8022 |
< |
ac_header_compiler=no |
8022 |
> |
ac_header_compiler=no |
8023 |
|
fi |
5922 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5923 |
– |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5924 |
– |
echo "${ECHO_T}$ac_header_compiler" >&6 |
8024 |
|
|
8025 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8026 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8027 |
+ |
$as_echo "$ac_header_compiler" >&6; } |
8028 |
+ |
|
8029 |
|
# Is the header present? |
8030 |
< |
echo "$as_me:$LINENO: checking zlib.h presence" >&5 |
8031 |
< |
echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 |
8030 |
> |
{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5 |
8031 |
> |
$as_echo_n "checking zlib.h presence... " >&6; } |
8032 |
|
cat >conftest.$ac_ext <<_ACEOF |
8033 |
|
/* confdefs.h. */ |
8034 |
|
_ACEOF |
8037 |
|
/* end confdefs.h. */ |
8038 |
|
#include <zlib.h> |
8039 |
|
_ACEOF |
8040 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
8041 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8040 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
8041 |
> |
case "(($ac_try" in |
8042 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8043 |
> |
*) ac_try_echo=$ac_try;; |
8044 |
> |
esac |
8045 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8046 |
> |
$as_echo "$ac_try_echo") >&5 |
8047 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
8048 |
|
ac_status=$? |
8049 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8050 |
|
rm -f conftest.er1 |
8051 |
|
cat conftest.err >&5 |
8052 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8053 |
< |
(exit $ac_status); } >/dev/null; then |
8054 |
< |
if test -s conftest.err; then |
8055 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
8056 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
5948 |
< |
else |
5949 |
< |
ac_cpp_err= |
5950 |
< |
fi |
5951 |
< |
else |
5952 |
< |
ac_cpp_err=yes |
5953 |
< |
fi |
5954 |
< |
if test -z "$ac_cpp_err"; then |
8052 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8053 |
> |
(exit $ac_status); } >/dev/null && { |
8054 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
8055 |
> |
test ! -s conftest.err |
8056 |
> |
}; then |
8057 |
|
ac_header_preproc=yes |
8058 |
|
else |
8059 |
< |
echo "$as_me: failed program was:" >&5 |
8059 |
> |
$as_echo "$as_me: failed program was:" >&5 |
8060 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8061 |
|
|
8062 |
|
ac_header_preproc=no |
8063 |
|
fi |
8064 |
+ |
|
8065 |
|
rm -f conftest.err conftest.$ac_ext |
8066 |
< |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8067 |
< |
echo "${ECHO_T}$ac_header_preproc" >&6 |
8066 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8067 |
> |
$as_echo "$ac_header_preproc" >&6; } |
8068 |
|
|
8069 |
|
# So? What about this header? |
8070 |
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8071 |
|
yes:no: ) |
8072 |
< |
{ echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8073 |
< |
echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8074 |
< |
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
8075 |
< |
echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} |
8072 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8073 |
> |
$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8074 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
8075 |
> |
$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} |
8076 |
|
ac_header_preproc=yes |
8077 |
|
;; |
8078 |
|
no:yes:* ) |
8079 |
< |
{ echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
8080 |
< |
echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} |
8081 |
< |
{ echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
8082 |
< |
echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} |
8083 |
< |
{ echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 |
8084 |
< |
echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} |
8085 |
< |
{ echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
8086 |
< |
echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
8087 |
< |
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
8088 |
< |
echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} |
8089 |
< |
{ echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
8090 |
< |
echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} |
8091 |
< |
( |
5989 |
< |
cat <<\_ASBOX |
8079 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
8080 |
> |
$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} |
8081 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
8082 |
> |
$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} |
8083 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 |
8084 |
> |
$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} |
8085 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
8086 |
> |
$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
8087 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
8088 |
> |
$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} |
8089 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
8090 |
> |
$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} |
8091 |
> |
( cat <<\_ASBOX |
8092 |
|
## ------------------------------ ## |
8093 |
|
## Report this to gezelter@nd.edu ## |
8094 |
|
## ------------------------------ ## |
8095 |
|
_ASBOX |
8096 |
< |
) | |
5995 |
< |
sed "s/^/$as_me: WARNING: /" >&2 |
8096 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
8097 |
|
;; |
8098 |
|
esac |
8099 |
< |
echo "$as_me:$LINENO: checking for zlib.h" >&5 |
8100 |
< |
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 |
8099 |
> |
{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5 |
8100 |
> |
$as_echo_n "checking for zlib.h... " >&6; } |
8101 |
|
if test "${ac_cv_header_zlib_h+set}" = set; then |
8102 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8102 |
> |
$as_echo_n "(cached) " >&6 |
8103 |
|
else |
8104 |
|
ac_cv_header_zlib_h=$ac_header_preproc |
8105 |
|
fi |
8106 |
< |
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
8107 |
< |
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 |
8106 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
8107 |
> |
$as_echo "$ac_cv_header_zlib_h" >&6; } |
8108 |
|
|
8109 |
|
fi |
8110 |
|
if test $ac_cv_header_zlib_h = yes; then |
8120 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
8121 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
8122 |
|
|
6022 |
– |
if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes" |
6023 |
– |
then |
6024 |
– |
# |
6025 |
– |
# If both library and header were found, use them |
6026 |
– |
# |
8123 |
|
|
8124 |
< |
echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 |
8125 |
< |
echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6 |
8126 |
< |
if test "${ac_cv_lib_z_inflateEnd+set}" = set; then |
8127 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8124 |
> |
if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"; then |
8125 |
> |
|
8126 |
> |
cat >>confdefs.h <<\_ACEOF |
8127 |
> |
#define HAVE_ZLIB_H 1 |
8128 |
> |
_ACEOF |
8129 |
> |
|
8130 |
> |
|
8131 |
> |
cat >>confdefs.h <<\_ACEOF |
8132 |
> |
#define HAVE_LIBZ 1 |
8133 |
> |
_ACEOF |
8134 |
> |
|
8135 |
> |
ZLIB_INC_DIR="${ZLIB_HOME}/include" |
8136 |
> |
ZLIB_LIB_DIR="${ZLIB_HOME}/lib" |
8137 |
> |
ZLIB="-lz" |
8138 |
> |
else |
8139 |
> |
{ $as_echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5 |
8140 |
> |
$as_echo_n "checking zlib in ${ZLIB_HOME}... " >&6; } |
8141 |
> |
ZLIB_INC_DIR= |
8142 |
> |
ZLIB_LIB_DIR= |
8143 |
> |
ZLIB= |
8144 |
> |
LDFLAGS="$ZLIB_OLD_LDFLAGS" |
8145 |
> |
CFLAGS="$ZLIB_OLD_CFLAGS" |
8146 |
> |
{ $as_echo "$as_me:$LINENO: result: failed" >&5 |
8147 |
> |
$as_echo "failed" >&6; } |
8148 |
> |
echo "" |
8149 |
> |
echo "*********************************************************" |
8150 |
> |
echo "* WARNING: Could not find a working zlib installation *" |
8151 |
> |
echo "* If you need OOPSE to be able to deal with compressed *" |
8152 |
> |
echo "* trajectory dump files be sure to specify a valid zlib *" |
8153 |
> |
echo "* installation with --with-zlib=DIR *" |
8154 |
> |
echo "* *" |
8155 |
> |
echo "* OOPSE will still work without zlib installed. *" |
8156 |
> |
echo "*********************************************************" |
8157 |
> |
echo "" |
8158 |
> |
fi |
8159 |
> |
|
8160 |
> |
|
8161 |
> |
|
8162 |
> |
fi |
8163 |
> |
fi |
8164 |
> |
|
8165 |
> |
# |
8166 |
> |
# Handle user hints |
8167 |
> |
# |
8168 |
> |
|
8169 |
> |
# Check whether --with-fftw was given. |
8170 |
> |
if test "${with_fftw+set}" = set; then |
8171 |
> |
withval=$with_fftw; fftw_dir="$withval" |
8172 |
|
else |
8173 |
+ |
fftw_dir="not_set" |
8174 |
+ |
fi |
8175 |
+ |
|
8176 |
+ |
if test "$fftw_dir" != "no"; then |
8177 |
+ |
if test "$fftw_dir" != "not_set" ; then |
8178 |
+ |
if test -d "$fftw_dir"; then |
8179 |
+ |
FFTW_HOME="$fftw_dir" |
8180 |
+ |
else |
8181 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&5 |
8182 |
+ |
$as_echo "$as_me: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&2;} |
8183 |
+ |
FFTW_HOME=/usr/local |
8184 |
+ |
if test ! -f "${FFTW_HOME}/include/fftw3.h" -o -f "${FFTW_HOME}/include/fftw.h" -o -f "${FFTW_HOME}/include/dfftw.h"; then |
8185 |
+ |
FFTW_HOME=/usr |
8186 |
+ |
fi |
8187 |
+ |
fi |
8188 |
+ |
# |
8189 |
+ |
# Locate fftw, if wanted |
8190 |
+ |
# |
8191 |
+ |
if test -n "${FFTW_HOME}"; then |
8192 |
+ |
FFTW_OLD_LDFLAGS=$LDFLAGS |
8193 |
+ |
FFTW_OLD_CFLAGS=$CFLAGS |
8194 |
+ |
LDFLAGS="$LDFLAGS -L${FFTW_HOME}/lib" |
8195 |
+ |
CFLAGS="$CFLAGS -I${FFTW_HOME}/include" |
8196 |
+ |
|
8197 |
+ |
ac_ext=c |
8198 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
8199 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8200 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
8201 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
8202 |
+ |
|
8203 |
+ |
{ $as_echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5 |
8204 |
+ |
$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; } |
8205 |
+ |
if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then |
8206 |
+ |
$as_echo_n "(cached) " >&6 |
8207 |
+ |
else |
8208 |
|
ac_check_lib_save_LIBS=$LIBS |
8209 |
< |
LIBS="-lz $LIBS" |
8209 |
> |
LIBS="-lfftw3 $LIBS" |
8210 |
|
cat >conftest.$ac_ext <<_ACEOF |
8211 |
|
/* confdefs.h. */ |
8212 |
|
_ACEOF |
8214 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8215 |
|
/* end confdefs.h. */ |
8216 |
|
|
8217 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
8217 |
> |
/* Override any GCC internal prototype to avoid an error. |
8218 |
> |
Use char because int might match the return type of a GCC |
8219 |
> |
builtin and then its argument prototype would still apply. */ |
8220 |
|
#ifdef __cplusplus |
8221 |
|
extern "C" |
8222 |
|
#endif |
8223 |
< |
/* We use char because int might match the return type of a gcc2 |
6047 |
< |
builtin and then its argument prototype would still apply. */ |
6048 |
< |
char inflateEnd (); |
8223 |
> |
char fftw_execute (); |
8224 |
|
#ifdef FC_DUMMY_MAIN |
8225 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8226 |
|
# ifdef __cplusplus |
8232 |
|
int |
8233 |
|
main () |
8234 |
|
{ |
8235 |
< |
inflateEnd (); |
8235 |
> |
return fftw_execute (); |
8236 |
|
; |
8237 |
|
return 0; |
8238 |
|
} |
8239 |
|
_ACEOF |
8240 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
8241 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8242 |
< |
(eval $ac_link) 2>conftest.er1 |
8241 |
> |
if { (ac_try="$ac_link" |
8242 |
> |
case "(($ac_try" in |
8243 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8244 |
> |
*) ac_try_echo=$ac_try;; |
8245 |
> |
esac |
8246 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8247 |
> |
$as_echo "$ac_try_echo") >&5 |
8248 |
> |
(eval "$ac_link") 2>conftest.er1 |
8249 |
|
ac_status=$? |
8250 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8251 |
|
rm -f conftest.er1 |
8252 |
|
cat conftest.err >&5 |
8253 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8254 |
< |
(exit $ac_status); } && |
8255 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
8256 |
< |
|| test ! -s conftest.err' |
8257 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8258 |
< |
(eval $ac_try) 2>&5 |
8259 |
< |
ac_status=$? |
8260 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8261 |
< |
(exit $ac_status); }; } && |
6081 |
< |
{ ac_try='test -s conftest$ac_exeext' |
6082 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6083 |
< |
(eval $ac_try) 2>&5 |
6084 |
< |
ac_status=$? |
6085 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6086 |
< |
(exit $ac_status); }; }; then |
6087 |
< |
ac_cv_lib_z_inflateEnd=yes |
8253 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8254 |
> |
(exit $ac_status); } && { |
8255 |
> |
test -z "$ac_c_werror_flag" || |
8256 |
> |
test ! -s conftest.err |
8257 |
> |
} && test -s conftest$ac_exeext && { |
8258 |
> |
test "$cross_compiling" = yes || |
8259 |
> |
$as_test_x conftest$ac_exeext |
8260 |
> |
}; then |
8261 |
> |
ac_cv_lib_fftw3_fftw_execute=yes |
8262 |
|
else |
8263 |
< |
echo "$as_me: failed program was:" >&5 |
8263 |
> |
$as_echo "$as_me: failed program was:" >&5 |
8264 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8265 |
|
|
8266 |
< |
ac_cv_lib_z_inflateEnd=no |
8266 |
> |
ac_cv_lib_fftw3_fftw_execute=no |
8267 |
|
fi |
8268 |
< |
rm -f conftest.err conftest.$ac_objext \ |
8268 |
> |
|
8269 |
> |
rm -rf conftest.dSYM |
8270 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8271 |
|
conftest$ac_exeext conftest.$ac_ext |
8272 |
|
LIBS=$ac_check_lib_save_LIBS |
8273 |
|
fi |
8274 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 |
8275 |
< |
echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6 |
8276 |
< |
if test $ac_cv_lib_z_inflateEnd = yes; then |
8277 |
< |
cat >>confdefs.h <<_ACEOF |
8278 |
< |
#define HAVE_LIBZ 1 |
8279 |
< |
_ACEOF |
6104 |
< |
|
6105 |
< |
LIBS="-lz $LIBS" |
6106 |
< |
|
8274 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5 |
8275 |
> |
$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; } |
8276 |
> |
if test $ac_cv_lib_fftw3_fftw_execute = yes; then |
8277 |
> |
fftw_cv_libfftw3=yes |
8278 |
> |
else |
8279 |
> |
fftw_cv_libfftw3=no |
8280 |
|
fi |
8281 |
|
|
8282 |
< |
echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5 |
8283 |
< |
echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6 |
8284 |
< |
echo "$as_me:$LINENO: result: ok" >&5 |
8285 |
< |
echo "${ECHO_T}ok" >&6 |
8286 |
< |
else |
6114 |
< |
# |
6115 |
< |
# If either header or library was not found, revert and bomb |
6116 |
< |
# |
6117 |
< |
echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5 |
6118 |
< |
echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6 |
6119 |
< |
LDFLAGS="$ZLIB_OLD_LDFLAGS" |
6120 |
< |
CPPFLAGS="$ZLIB_OLD_CPPFLAGS" |
6121 |
< |
echo "$as_me:$LINENO: result: failed" >&5 |
6122 |
< |
echo "${ECHO_T}failed" >&6 |
6123 |
< |
{ { echo "$as_me:$LINENO: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&5 |
6124 |
< |
echo "$as_me: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&2;} |
6125 |
< |
{ (exit 1); exit 1; }; } |
6126 |
< |
fi |
8282 |
> |
if test "${ac_cv_header_fftw3_h+set}" = set; then |
8283 |
> |
{ $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5 |
8284 |
> |
$as_echo_n "checking for fftw3.h... " >&6; } |
8285 |
> |
if test "${ac_cv_header_fftw3_h+set}" = set; then |
8286 |
> |
$as_echo_n "(cached) " >&6 |
8287 |
|
fi |
8288 |
< |
|
8289 |
< |
|
6130 |
< |
|
6131 |
< |
# Checks for header files. |
6132 |
< |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
6133 |
< |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
6134 |
< |
if test "${ac_cv_header_stdc+set}" = set; then |
6135 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8288 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5 |
8289 |
> |
$as_echo "$ac_cv_header_fftw3_h" >&6; } |
8290 |
|
else |
8291 |
< |
cat >conftest.$ac_ext <<_ACEOF |
8291 |
> |
# Is the header compilable? |
8292 |
> |
{ $as_echo "$as_me:$LINENO: checking fftw3.h usability" >&5 |
8293 |
> |
$as_echo_n "checking fftw3.h usability... " >&6; } |
8294 |
> |
cat >conftest.$ac_ext <<_ACEOF |
8295 |
|
/* confdefs.h. */ |
8296 |
|
_ACEOF |
8297 |
|
cat confdefs.h >>conftest.$ac_ext |
8298 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8299 |
|
/* end confdefs.h. */ |
8300 |
< |
#include <stdlib.h> |
8301 |
< |
#include <stdarg.h> |
6145 |
< |
#include <string.h> |
6146 |
< |
#include <float.h> |
6147 |
< |
|
6148 |
< |
#ifdef FC_DUMMY_MAIN |
6149 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
6150 |
< |
# ifdef __cplusplus |
6151 |
< |
extern "C" |
6152 |
< |
# endif |
6153 |
< |
int FC_DUMMY_MAIN() { return 1; } |
6154 |
< |
#endif |
6155 |
< |
#endif |
6156 |
< |
int |
6157 |
< |
main () |
6158 |
< |
{ |
6159 |
< |
|
6160 |
< |
; |
6161 |
< |
return 0; |
6162 |
< |
} |
8300 |
> |
$ac_includes_default |
8301 |
> |
#include <fftw3.h> |
8302 |
|
_ACEOF |
8303 |
|
rm -f conftest.$ac_objext |
8304 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8305 |
< |
(eval $ac_compile) 2>conftest.er1 |
8304 |
> |
if { (ac_try="$ac_compile" |
8305 |
> |
case "(($ac_try" in |
8306 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8307 |
> |
*) ac_try_echo=$ac_try;; |
8308 |
> |
esac |
8309 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8310 |
> |
$as_echo "$ac_try_echo") >&5 |
8311 |
> |
(eval "$ac_compile") 2>conftest.er1 |
8312 |
|
ac_status=$? |
8313 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8314 |
|
rm -f conftest.er1 |
8315 |
|
cat conftest.err >&5 |
8316 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8317 |
< |
(exit $ac_status); } && |
8318 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
8319 |
< |
|| test ! -s conftest.err' |
8320 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8321 |
< |
(eval $ac_try) 2>&5 |
6177 |
< |
ac_status=$? |
6178 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6179 |
< |
(exit $ac_status); }; } && |
6180 |
< |
{ ac_try='test -s conftest.$ac_objext' |
6181 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6182 |
< |
(eval $ac_try) 2>&5 |
6183 |
< |
ac_status=$? |
6184 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6185 |
< |
(exit $ac_status); }; }; then |
6186 |
< |
ac_cv_header_stdc=yes |
8316 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8317 |
> |
(exit $ac_status); } && { |
8318 |
> |
test -z "$ac_c_werror_flag" || |
8319 |
> |
test ! -s conftest.err |
8320 |
> |
} && test -s conftest.$ac_objext; then |
8321 |
> |
ac_header_compiler=yes |
8322 |
|
else |
8323 |
< |
echo "$as_me: failed program was:" >&5 |
8323 |
> |
$as_echo "$as_me: failed program was:" >&5 |
8324 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8325 |
|
|
8326 |
< |
ac_cv_header_stdc=no |
8326 |
> |
ac_header_compiler=no |
8327 |
|
fi |
6193 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8328 |
|
|
8329 |
< |
if test $ac_cv_header_stdc = yes; then |
8330 |
< |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
8331 |
< |
cat >conftest.$ac_ext <<_ACEOF |
8329 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8330 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8331 |
> |
$as_echo "$ac_header_compiler" >&6; } |
8332 |
> |
|
8333 |
> |
# Is the header present? |
8334 |
> |
{ $as_echo "$as_me:$LINENO: checking fftw3.h presence" >&5 |
8335 |
> |
$as_echo_n "checking fftw3.h presence... " >&6; } |
8336 |
> |
cat >conftest.$ac_ext <<_ACEOF |
8337 |
|
/* confdefs.h. */ |
8338 |
|
_ACEOF |
8339 |
|
cat confdefs.h >>conftest.$ac_ext |
8340 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8341 |
|
/* end confdefs.h. */ |
8342 |
< |
#include <string.h> |
6204 |
< |
|
8342 |
> |
#include <fftw3.h> |
8343 |
|
_ACEOF |
8344 |
< |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8345 |
< |
$EGREP "memchr" >/dev/null 2>&1; then |
8346 |
< |
: |
8344 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
8345 |
> |
case "(($ac_try" in |
8346 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8347 |
> |
*) ac_try_echo=$ac_try;; |
8348 |
> |
esac |
8349 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8350 |
> |
$as_echo "$ac_try_echo") >&5 |
8351 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
8352 |
> |
ac_status=$? |
8353 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
8354 |
> |
rm -f conftest.er1 |
8355 |
> |
cat conftest.err >&5 |
8356 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8357 |
> |
(exit $ac_status); } >/dev/null && { |
8358 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
8359 |
> |
test ! -s conftest.err |
8360 |
> |
}; then |
8361 |
> |
ac_header_preproc=yes |
8362 |
|
else |
8363 |
< |
ac_cv_header_stdc=no |
8364 |
< |
fi |
6212 |
< |
rm -f conftest* |
8363 |
> |
$as_echo "$as_me: failed program was:" >&5 |
8364 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
8365 |
|
|
8366 |
+ |
ac_header_preproc=no |
8367 |
|
fi |
8368 |
|
|
8369 |
< |
if test $ac_cv_header_stdc = yes; then |
8370 |
< |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
8371 |
< |
cat >conftest.$ac_ext <<_ACEOF |
6219 |
< |
/* confdefs.h. */ |
6220 |
< |
_ACEOF |
6221 |
< |
cat confdefs.h >>conftest.$ac_ext |
6222 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
6223 |
< |
/* end confdefs.h. */ |
6224 |
< |
#include <stdlib.h> |
8369 |
> |
rm -f conftest.err conftest.$ac_ext |
8370 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8371 |
> |
$as_echo "$ac_header_preproc" >&6; } |
8372 |
|
|
8373 |
< |
_ACEOF |
8374 |
< |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8375 |
< |
$EGREP "free" >/dev/null 2>&1; then |
8376 |
< |
: |
8373 |
> |
# So? What about this header? |
8374 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8375 |
> |
yes:no: ) |
8376 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8377 |
> |
$as_echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8378 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5 |
8379 |
> |
$as_echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;} |
8380 |
> |
ac_header_preproc=yes |
8381 |
> |
;; |
8382 |
> |
no:yes:* ) |
8383 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5 |
8384 |
> |
$as_echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;} |
8385 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: fftw3.h: check for missing prerequisite headers?" >&5 |
8386 |
> |
$as_echo "$as_me: WARNING: fftw3.h: check for missing prerequisite headers?" >&2;} |
8387 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5 |
8388 |
> |
$as_echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;} |
8389 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&5 |
8390 |
> |
$as_echo "$as_me: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&2;} |
8391 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5 |
8392 |
> |
$as_echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;} |
8393 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5 |
8394 |
> |
$as_echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;} |
8395 |
> |
( cat <<\_ASBOX |
8396 |
> |
## ------------------------------ ## |
8397 |
> |
## Report this to gezelter@nd.edu ## |
8398 |
> |
## ------------------------------ ## |
8399 |
> |
_ASBOX |
8400 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
8401 |
> |
;; |
8402 |
> |
esac |
8403 |
> |
{ $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5 |
8404 |
> |
$as_echo_n "checking for fftw3.h... " >&6; } |
8405 |
> |
if test "${ac_cv_header_fftw3_h+set}" = set; then |
8406 |
> |
$as_echo_n "(cached) " >&6 |
8407 |
|
else |
8408 |
< |
ac_cv_header_stdc=no |
8408 |
> |
ac_cv_header_fftw3_h=$ac_header_preproc |
8409 |
|
fi |
8410 |
< |
rm -f conftest* |
8410 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5 |
8411 |
> |
$as_echo "$ac_cv_header_fftw3_h" >&6; } |
8412 |
|
|
8413 |
|
fi |
8414 |
+ |
if test $ac_cv_header_fftw3_h = yes; then |
8415 |
+ |
fftw_cv_fftw3_h=yes |
8416 |
+ |
else |
8417 |
+ |
fftw_cv_fftw3_h=no |
8418 |
+ |
fi |
8419 |
|
|
8420 |
< |
if test $ac_cv_header_stdc = yes; then |
8421 |
< |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
8422 |
< |
if test "$cross_compiling" = yes; then |
8423 |
< |
: |
8420 |
> |
|
8421 |
> |
if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then |
8422 |
> |
{ $as_echo "$as_me:$LINENO: checking for fftwnd_one in -lfftw" >&5 |
8423 |
> |
$as_echo_n "checking for fftwnd_one in -lfftw... " >&6; } |
8424 |
> |
if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then |
8425 |
> |
$as_echo_n "(cached) " >&6 |
8426 |
|
else |
8427 |
< |
cat >conftest.$ac_ext <<_ACEOF |
8427 |
> |
ac_check_lib_save_LIBS=$LIBS |
8428 |
> |
LIBS="-lfftw $LIBS" |
8429 |
> |
cat >conftest.$ac_ext <<_ACEOF |
8430 |
|
/* confdefs.h. */ |
8431 |
|
_ACEOF |
8432 |
|
cat confdefs.h >>conftest.$ac_ext |
8433 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8434 |
|
/* end confdefs.h. */ |
6248 |
– |
#include <ctype.h> |
6249 |
– |
#if ((' ' & 0x0FF) == 0x020) |
6250 |
– |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
6251 |
– |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
6252 |
– |
#else |
6253 |
– |
# define ISLOWER(c) \ |
6254 |
– |
(('a' <= (c) && (c) <= 'i') \ |
6255 |
– |
|| ('j' <= (c) && (c) <= 'r') \ |
6256 |
– |
|| ('s' <= (c) && (c) <= 'z')) |
6257 |
– |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
6258 |
– |
#endif |
8435 |
|
|
8436 |
< |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
8436 |
> |
/* Override any GCC internal prototype to avoid an error. |
8437 |
> |
Use char because int might match the return type of a GCC |
8438 |
> |
builtin and then its argument prototype would still apply. */ |
8439 |
> |
#ifdef __cplusplus |
8440 |
> |
extern "C" |
8441 |
> |
#endif |
8442 |
> |
char fftwnd_one (); |
8443 |
> |
#ifdef FC_DUMMY_MAIN |
8444 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8445 |
> |
# ifdef __cplusplus |
8446 |
> |
extern "C" |
8447 |
> |
# endif |
8448 |
> |
int FC_DUMMY_MAIN() { return 1; } |
8449 |
> |
#endif |
8450 |
> |
#endif |
8451 |
|
int |
8452 |
|
main () |
8453 |
|
{ |
8454 |
< |
int i; |
8455 |
< |
for (i = 0; i < 256; i++) |
8456 |
< |
if (XOR (islower (i), ISLOWER (i)) |
8457 |
< |
|| toupper (i) != TOUPPER (i)) |
6268 |
< |
exit(2); |
6269 |
< |
exit (0); |
6270 |
< |
} |
8454 |
> |
return fftwnd_one (); |
8455 |
> |
; |
8456 |
> |
return 0; |
8457 |
> |
} |
8458 |
|
_ACEOF |
8459 |
< |
rm -f conftest$ac_exeext |
8460 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8461 |
< |
(eval $ac_link) 2>&5 |
8459 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
8460 |
> |
if { (ac_try="$ac_link" |
8461 |
> |
case "(($ac_try" in |
8462 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8463 |
> |
*) ac_try_echo=$ac_try;; |
8464 |
> |
esac |
8465 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8466 |
> |
$as_echo "$ac_try_echo") >&5 |
8467 |
> |
(eval "$ac_link") 2>conftest.er1 |
8468 |
|
ac_status=$? |
8469 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8470 |
< |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
8471 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8472 |
< |
(eval $ac_try) 2>&5 |
8473 |
< |
ac_status=$? |
8474 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8475 |
< |
(exit $ac_status); }; }; then |
8476 |
< |
: |
8469 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
8470 |
> |
rm -f conftest.er1 |
8471 |
> |
cat conftest.err >&5 |
8472 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8473 |
> |
(exit $ac_status); } && { |
8474 |
> |
test -z "$ac_c_werror_flag" || |
8475 |
> |
test ! -s conftest.err |
8476 |
> |
} && test -s conftest$ac_exeext && { |
8477 |
> |
test "$cross_compiling" = yes || |
8478 |
> |
$as_test_x conftest$ac_exeext |
8479 |
> |
}; then |
8480 |
> |
ac_cv_lib_fftw_fftwnd_one=yes |
8481 |
|
else |
8482 |
< |
echo "$as_me: program exited with status $ac_status" >&5 |
6286 |
< |
echo "$as_me: failed program was:" >&5 |
8482 |
> |
$as_echo "$as_me: failed program was:" >&5 |
8483 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8484 |
|
|
8485 |
< |
( exit $ac_status ) |
6290 |
< |
ac_cv_header_stdc=no |
8485 |
> |
ac_cv_lib_fftw_fftwnd_one=no |
8486 |
|
fi |
8487 |
< |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
8487 |
> |
|
8488 |
> |
rm -rf conftest.dSYM |
8489 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8490 |
> |
conftest$ac_exeext conftest.$ac_ext |
8491 |
> |
LIBS=$ac_check_lib_save_LIBS |
8492 |
|
fi |
8493 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftwnd_one" >&5 |
8494 |
+ |
$as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; } |
8495 |
+ |
if test $ac_cv_lib_fftw_fftwnd_one = yes; then |
8496 |
+ |
fftw_cv_libfftw=yes |
8497 |
+ |
else |
8498 |
+ |
fftw_cv_libfftw=no |
8499 |
|
fi |
6295 |
– |
fi |
6296 |
– |
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
6297 |
– |
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
6298 |
– |
if test $ac_cv_header_stdc = yes; then |
8500 |
|
|
8501 |
< |
cat >>confdefs.h <<\_ACEOF |
8502 |
< |
#define STDC_HEADERS 1 |
8503 |
< |
_ACEOF |
8504 |
< |
|
8501 |
> |
if test "${ac_cv_header_fftw_h+set}" = set; then |
8502 |
> |
{ $as_echo "$as_me:$LINENO: checking for fftw.h" >&5 |
8503 |
> |
$as_echo_n "checking for fftw.h... " >&6; } |
8504 |
> |
if test "${ac_cv_header_fftw_h+set}" = set; then |
8505 |
> |
$as_echo_n "(cached) " >&6 |
8506 |
|
fi |
8507 |
< |
|
8508 |
< |
|
6307 |
< |
|
6308 |
< |
|
6309 |
< |
|
6310 |
< |
|
6311 |
< |
|
6312 |
< |
|
6313 |
< |
|
6314 |
< |
|
6315 |
< |
for ac_header in libintl.h limits.h stddef.h stdlib.h string.h strings.h sys/param.h sys/time.h unistd.h |
6316 |
< |
do |
6317 |
< |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6318 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6319 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6320 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6321 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6322 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6323 |
< |
fi |
6324 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6325 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
8507 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5 |
8508 |
> |
$as_echo "$ac_cv_header_fftw_h" >&6; } |
8509 |
|
else |
8510 |
|
# Is the header compilable? |
8511 |
< |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8512 |
< |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
8511 |
> |
{ $as_echo "$as_me:$LINENO: checking fftw.h usability" >&5 |
8512 |
> |
$as_echo_n "checking fftw.h usability... " >&6; } |
8513 |
|
cat >conftest.$ac_ext <<_ACEOF |
8514 |
|
/* confdefs.h. */ |
8515 |
|
_ACEOF |
8517 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8518 |
|
/* end confdefs.h. */ |
8519 |
|
$ac_includes_default |
8520 |
< |
#include <$ac_header> |
8520 |
> |
#include <fftw.h> |
8521 |
|
_ACEOF |
8522 |
|
rm -f conftest.$ac_objext |
8523 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8524 |
< |
(eval $ac_compile) 2>conftest.er1 |
8523 |
> |
if { (ac_try="$ac_compile" |
8524 |
> |
case "(($ac_try" in |
8525 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8526 |
> |
*) ac_try_echo=$ac_try;; |
8527 |
> |
esac |
8528 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8529 |
> |
$as_echo "$ac_try_echo") >&5 |
8530 |
> |
(eval "$ac_compile") 2>conftest.er1 |
8531 |
|
ac_status=$? |
8532 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8533 |
|
rm -f conftest.er1 |
8534 |
|
cat conftest.err >&5 |
8535 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8536 |
< |
(exit $ac_status); } && |
8537 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
8538 |
< |
|| test ! -s conftest.err' |
8539 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6351 |
< |
(eval $ac_try) 2>&5 |
6352 |
< |
ac_status=$? |
6353 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6354 |
< |
(exit $ac_status); }; } && |
6355 |
< |
{ ac_try='test -s conftest.$ac_objext' |
6356 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6357 |
< |
(eval $ac_try) 2>&5 |
6358 |
< |
ac_status=$? |
6359 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6360 |
< |
(exit $ac_status); }; }; then |
8535 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8536 |
> |
(exit $ac_status); } && { |
8537 |
> |
test -z "$ac_c_werror_flag" || |
8538 |
> |
test ! -s conftest.err |
8539 |
> |
} && test -s conftest.$ac_objext; then |
8540 |
|
ac_header_compiler=yes |
8541 |
|
else |
8542 |
< |
echo "$as_me: failed program was:" >&5 |
8542 |
> |
$as_echo "$as_me: failed program was:" >&5 |
8543 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8544 |
|
|
8545 |
< |
ac_header_compiler=no |
8545 |
> |
ac_header_compiler=no |
8546 |
|
fi |
6368 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6369 |
– |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6370 |
– |
echo "${ECHO_T}$ac_header_compiler" >&6 |
8547 |
|
|
8548 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8549 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8550 |
+ |
$as_echo "$ac_header_compiler" >&6; } |
8551 |
+ |
|
8552 |
|
# Is the header present? |
8553 |
< |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8554 |
< |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
8553 |
> |
{ $as_echo "$as_me:$LINENO: checking fftw.h presence" >&5 |
8554 |
> |
$as_echo_n "checking fftw.h presence... " >&6; } |
8555 |
|
cat >conftest.$ac_ext <<_ACEOF |
8556 |
|
/* confdefs.h. */ |
8557 |
|
_ACEOF |
8558 |
|
cat confdefs.h >>conftest.$ac_ext |
8559 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8560 |
|
/* end confdefs.h. */ |
8561 |
< |
#include <$ac_header> |
8561 |
> |
#include <fftw.h> |
8562 |
|
_ACEOF |
8563 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
8564 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8563 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
8564 |
> |
case "(($ac_try" in |
8565 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8566 |
> |
*) ac_try_echo=$ac_try;; |
8567 |
> |
esac |
8568 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8569 |
> |
$as_echo "$ac_try_echo") >&5 |
8570 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
8571 |
|
ac_status=$? |
8572 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8573 |
|
rm -f conftest.er1 |
8574 |
|
cat conftest.err >&5 |
8575 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8576 |
< |
(exit $ac_status); } >/dev/null; then |
8577 |
< |
if test -s conftest.err; then |
8578 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
8579 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
6394 |
< |
else |
6395 |
< |
ac_cpp_err= |
6396 |
< |
fi |
6397 |
< |
else |
6398 |
< |
ac_cpp_err=yes |
6399 |
< |
fi |
6400 |
< |
if test -z "$ac_cpp_err"; then |
8575 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8576 |
> |
(exit $ac_status); } >/dev/null && { |
8577 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
8578 |
> |
test ! -s conftest.err |
8579 |
> |
}; then |
8580 |
|
ac_header_preproc=yes |
8581 |
|
else |
8582 |
< |
echo "$as_me: failed program was:" >&5 |
8582 |
> |
$as_echo "$as_me: failed program was:" >&5 |
8583 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8584 |
|
|
8585 |
|
ac_header_preproc=no |
8586 |
|
fi |
8587 |
+ |
|
8588 |
|
rm -f conftest.err conftest.$ac_ext |
8589 |
< |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8590 |
< |
echo "${ECHO_T}$ac_header_preproc" >&6 |
8589 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8590 |
> |
$as_echo "$ac_header_preproc" >&6; } |
8591 |
|
|
8592 |
|
# So? What about this header? |
8593 |
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8594 |
|
yes:no: ) |
8595 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8596 |
< |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8597 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8598 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
8595 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8596 |
> |
$as_echo "$as_me: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8597 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the compiler's result" >&5 |
8598 |
> |
$as_echo "$as_me: WARNING: fftw.h: proceeding with the compiler's result" >&2;} |
8599 |
|
ac_header_preproc=yes |
8600 |
|
;; |
8601 |
|
no:yes:* ) |
8602 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8603 |
< |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
8604 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8605 |
< |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
8606 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
8607 |
< |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
8608 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
8609 |
< |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
8610 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8611 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
8612 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8613 |
< |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
8614 |
< |
( |
6435 |
< |
cat <<\_ASBOX |
8602 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: fftw.h: present but cannot be compiled" >&5 |
8603 |
> |
$as_echo "$as_me: WARNING: fftw.h: present but cannot be compiled" >&2;} |
8604 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: fftw.h: check for missing prerequisite headers?" >&5 |
8605 |
> |
$as_echo "$as_me: WARNING: fftw.h: check for missing prerequisite headers?" >&2;} |
8606 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: fftw.h: see the Autoconf documentation" >&5 |
8607 |
> |
$as_echo "$as_me: WARNING: fftw.h: see the Autoconf documentation" >&2;} |
8608 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: fftw.h: section \"Present But Cannot Be Compiled\"" >&5 |
8609 |
> |
$as_echo "$as_me: WARNING: fftw.h: section \"Present But Cannot Be Compiled\"" >&2;} |
8610 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the preprocessor's result" >&5 |
8611 |
> |
$as_echo "$as_me: WARNING: fftw.h: proceeding with the preprocessor's result" >&2;} |
8612 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: fftw.h: in the future, the compiler will take precedence" >&5 |
8613 |
> |
$as_echo "$as_me: WARNING: fftw.h: in the future, the compiler will take precedence" >&2;} |
8614 |
> |
( cat <<\_ASBOX |
8615 |
|
## ------------------------------ ## |
8616 |
|
## Report this to gezelter@nd.edu ## |
8617 |
|
## ------------------------------ ## |
8618 |
|
_ASBOX |
8619 |
< |
) | |
6441 |
< |
sed "s/^/$as_me: WARNING: /" >&2 |
8619 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
8620 |
|
;; |
8621 |
|
esac |
8622 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8623 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8624 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8625 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8622 |
> |
{ $as_echo "$as_me:$LINENO: checking for fftw.h" >&5 |
8623 |
> |
$as_echo_n "checking for fftw.h... " >&6; } |
8624 |
> |
if test "${ac_cv_header_fftw_h+set}" = set; then |
8625 |
> |
$as_echo_n "(cached) " >&6 |
8626 |
|
else |
8627 |
< |
eval "$as_ac_Header=\$ac_header_preproc" |
8627 |
> |
ac_cv_header_fftw_h=$ac_header_preproc |
8628 |
|
fi |
8629 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8630 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
8629 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5 |
8630 |
> |
$as_echo "$ac_cv_header_fftw_h" >&6; } |
8631 |
|
|
8632 |
|
fi |
8633 |
< |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8634 |
< |
cat >>confdefs.h <<_ACEOF |
8635 |
< |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
8636 |
< |
_ACEOF |
6459 |
< |
|
8633 |
> |
if test $ac_cv_header_fftw_h = yes; then |
8634 |
> |
fftw_cv_fftw_h=yes |
8635 |
> |
else |
8636 |
> |
fftw_cv_fftw_h=no |
8637 |
|
fi |
8638 |
|
|
8639 |
< |
done |
8639 |
> |
|
8640 |
> |
if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then |
8641 |
> |
{ $as_echo "$as_me:$LINENO: checking for fftwnd_one in -ldfftw" >&5 |
8642 |
> |
$as_echo_n "checking for fftwnd_one in -ldfftw... " >&6; } |
8643 |
> |
if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then |
8644 |
> |
$as_echo_n "(cached) " >&6 |
8645 |
> |
else |
8646 |
> |
ac_check_lib_save_LIBS=$LIBS |
8647 |
> |
LIBS="-ldfftw $LIBS" |
8648 |
> |
cat >conftest.$ac_ext <<_ACEOF |
8649 |
> |
/* confdefs.h. */ |
8650 |
> |
_ACEOF |
8651 |
> |
cat confdefs.h >>conftest.$ac_ext |
8652 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
8653 |
> |
/* end confdefs.h. */ |
8654 |
> |
|
8655 |
> |
/* Override any GCC internal prototype to avoid an error. |
8656 |
> |
Use char because int might match the return type of a GCC |
8657 |
> |
builtin and then its argument prototype would still apply. */ |
8658 |
> |
#ifdef __cplusplus |
8659 |
> |
extern "C" |
8660 |
> |
#endif |
8661 |
> |
char fftwnd_one (); |
8662 |
> |
#ifdef FC_DUMMY_MAIN |
8663 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8664 |
> |
# ifdef __cplusplus |
8665 |
> |
extern "C" |
8666 |
> |
# endif |
8667 |
> |
int FC_DUMMY_MAIN() { return 1; } |
8668 |
> |
#endif |
8669 |
> |
#endif |
8670 |
> |
int |
8671 |
> |
main () |
8672 |
> |
{ |
8673 |
> |
return fftwnd_one (); |
8674 |
> |
; |
8675 |
> |
return 0; |
8676 |
> |
} |
8677 |
> |
_ACEOF |
8678 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
8679 |
> |
if { (ac_try="$ac_link" |
8680 |
> |
case "(($ac_try" in |
8681 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8682 |
> |
*) ac_try_echo=$ac_try;; |
8683 |
> |
esac |
8684 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8685 |
> |
$as_echo "$ac_try_echo") >&5 |
8686 |
> |
(eval "$ac_link") 2>conftest.er1 |
8687 |
> |
ac_status=$? |
8688 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
8689 |
> |
rm -f conftest.er1 |
8690 |
> |
cat conftest.err >&5 |
8691 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8692 |
> |
(exit $ac_status); } && { |
8693 |
> |
test -z "$ac_c_werror_flag" || |
8694 |
> |
test ! -s conftest.err |
8695 |
> |
} && test -s conftest$ac_exeext && { |
8696 |
> |
test "$cross_compiling" = yes || |
8697 |
> |
$as_test_x conftest$ac_exeext |
8698 |
> |
}; then |
8699 |
> |
ac_cv_lib_dfftw_fftwnd_one=yes |
8700 |
> |
else |
8701 |
> |
$as_echo "$as_me: failed program was:" >&5 |
8702 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
8703 |
|
|
8704 |
+ |
ac_cv_lib_dfftw_fftwnd_one=no |
8705 |
+ |
fi |
8706 |
|
|
8707 |
+ |
rm -rf conftest.dSYM |
8708 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8709 |
+ |
conftest$ac_exeext conftest.$ac_ext |
8710 |
+ |
LIBS=$ac_check_lib_save_LIBS |
8711 |
+ |
fi |
8712 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dfftw_fftwnd_one" >&5 |
8713 |
+ |
$as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; } |
8714 |
+ |
if test $ac_cv_lib_dfftw_fftwnd_one = yes; then |
8715 |
+ |
fftw_cv_libdfftw=yes |
8716 |
+ |
else |
8717 |
+ |
fftw_cv_libdfftw=no |
8718 |
+ |
fi |
8719 |
|
|
8720 |
+ |
if test "${ac_cv_header_dfftw_h+set}" = set; then |
8721 |
+ |
{ $as_echo "$as_me:$LINENO: checking for dfftw.h" >&5 |
8722 |
+ |
$as_echo_n "checking for dfftw.h... " >&6; } |
8723 |
+ |
if test "${ac_cv_header_dfftw_h+set}" = set; then |
8724 |
+ |
$as_echo_n "(cached) " >&6 |
8725 |
+ |
fi |
8726 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5 |
8727 |
+ |
$as_echo "$ac_cv_header_dfftw_h" >&6; } |
8728 |
+ |
else |
8729 |
+ |
# Is the header compilable? |
8730 |
+ |
{ $as_echo "$as_me:$LINENO: checking dfftw.h usability" >&5 |
8731 |
+ |
$as_echo_n "checking dfftw.h usability... " >&6; } |
8732 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
8733 |
+ |
/* confdefs.h. */ |
8734 |
+ |
_ACEOF |
8735 |
+ |
cat confdefs.h >>conftest.$ac_ext |
8736 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
8737 |
+ |
/* end confdefs.h. */ |
8738 |
+ |
$ac_includes_default |
8739 |
+ |
#include <dfftw.h> |
8740 |
+ |
_ACEOF |
8741 |
+ |
rm -f conftest.$ac_objext |
8742 |
+ |
if { (ac_try="$ac_compile" |
8743 |
+ |
case "(($ac_try" in |
8744 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8745 |
+ |
*) ac_try_echo=$ac_try;; |
8746 |
+ |
esac |
8747 |
+ |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8748 |
+ |
$as_echo "$ac_try_echo") >&5 |
8749 |
+ |
(eval "$ac_compile") 2>conftest.er1 |
8750 |
+ |
ac_status=$? |
8751 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
8752 |
+ |
rm -f conftest.er1 |
8753 |
+ |
cat conftest.err >&5 |
8754 |
+ |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8755 |
+ |
(exit $ac_status); } && { |
8756 |
+ |
test -z "$ac_c_werror_flag" || |
8757 |
+ |
test ! -s conftest.err |
8758 |
+ |
} && test -s conftest.$ac_objext; then |
8759 |
+ |
ac_header_compiler=yes |
8760 |
+ |
else |
8761 |
+ |
$as_echo "$as_me: failed program was:" >&5 |
8762 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
8763 |
|
|
8764 |
+ |
ac_header_compiler=no |
8765 |
+ |
fi |
8766 |
|
|
8767 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8768 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8769 |
+ |
$as_echo "$ac_header_compiler" >&6; } |
8770 |
|
|
8771 |
+ |
# Is the header present? |
8772 |
+ |
{ $as_echo "$as_me:$LINENO: checking dfftw.h presence" >&5 |
8773 |
+ |
$as_echo_n "checking dfftw.h presence... " >&6; } |
8774 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
8775 |
+ |
/* confdefs.h. */ |
8776 |
+ |
_ACEOF |
8777 |
+ |
cat confdefs.h >>conftest.$ac_ext |
8778 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
8779 |
+ |
/* end confdefs.h. */ |
8780 |
+ |
#include <dfftw.h> |
8781 |
+ |
_ACEOF |
8782 |
+ |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
8783 |
+ |
case "(($ac_try" in |
8784 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8785 |
+ |
*) ac_try_echo=$ac_try;; |
8786 |
+ |
esac |
8787 |
+ |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8788 |
+ |
$as_echo "$ac_try_echo") >&5 |
8789 |
+ |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
8790 |
+ |
ac_status=$? |
8791 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
8792 |
+ |
rm -f conftest.er1 |
8793 |
+ |
cat conftest.err >&5 |
8794 |
+ |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8795 |
+ |
(exit $ac_status); } >/dev/null && { |
8796 |
+ |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
8797 |
+ |
test ! -s conftest.err |
8798 |
+ |
}; then |
8799 |
+ |
ac_header_preproc=yes |
8800 |
+ |
else |
8801 |
+ |
$as_echo "$as_me: failed program was:" >&5 |
8802 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
8803 |
|
|
8804 |
+ |
ac_header_preproc=no |
8805 |
+ |
fi |
8806 |
|
|
8807 |
+ |
rm -f conftest.err conftest.$ac_ext |
8808 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8809 |
+ |
$as_echo "$ac_header_preproc" >&6; } |
8810 |
|
|
8811 |
+ |
# So? What about this header? |
8812 |
+ |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8813 |
+ |
yes:no: ) |
8814 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8815 |
+ |
$as_echo "$as_me: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8816 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the compiler's result" >&5 |
8817 |
+ |
$as_echo "$as_me: WARNING: dfftw.h: proceeding with the compiler's result" >&2;} |
8818 |
+ |
ac_header_preproc=yes |
8819 |
+ |
;; |
8820 |
+ |
no:yes:* ) |
8821 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: dfftw.h: present but cannot be compiled" >&5 |
8822 |
+ |
$as_echo "$as_me: WARNING: dfftw.h: present but cannot be compiled" >&2;} |
8823 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: dfftw.h: check for missing prerequisite headers?" >&5 |
8824 |
+ |
$as_echo "$as_me: WARNING: dfftw.h: check for missing prerequisite headers?" >&2;} |
8825 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: dfftw.h: see the Autoconf documentation" >&5 |
8826 |
+ |
$as_echo "$as_me: WARNING: dfftw.h: see the Autoconf documentation" >&2;} |
8827 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: dfftw.h: section \"Present But Cannot Be Compiled\"" >&5 |
8828 |
+ |
$as_echo "$as_me: WARNING: dfftw.h: section \"Present But Cannot Be Compiled\"" >&2;} |
8829 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the preprocessor's result" >&5 |
8830 |
+ |
$as_echo "$as_me: WARNING: dfftw.h: proceeding with the preprocessor's result" >&2;} |
8831 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: dfftw.h: in the future, the compiler will take precedence" >&5 |
8832 |
+ |
$as_echo "$as_me: WARNING: dfftw.h: in the future, the compiler will take precedence" >&2;} |
8833 |
+ |
( cat <<\_ASBOX |
8834 |
+ |
## ------------------------------ ## |
8835 |
+ |
## Report this to gezelter@nd.edu ## |
8836 |
+ |
## ------------------------------ ## |
8837 |
+ |
_ASBOX |
8838 |
+ |
) | sed "s/^/$as_me: WARNING: /" >&2 |
8839 |
+ |
;; |
8840 |
+ |
esac |
8841 |
+ |
{ $as_echo "$as_me:$LINENO: checking for dfftw.h" >&5 |
8842 |
+ |
$as_echo_n "checking for dfftw.h... " >&6; } |
8843 |
+ |
if test "${ac_cv_header_dfftw_h+set}" = set; then |
8844 |
+ |
$as_echo_n "(cached) " >&6 |
8845 |
+ |
else |
8846 |
+ |
ac_cv_header_dfftw_h=$ac_header_preproc |
8847 |
+ |
fi |
8848 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5 |
8849 |
+ |
$as_echo "$ac_cv_header_dfftw_h" >&6; } |
8850 |
|
|
8851 |
+ |
fi |
8852 |
+ |
if test $ac_cv_header_dfftw_h = yes; then |
8853 |
+ |
fftw_cv_dfftw_h=yes |
8854 |
+ |
else |
8855 |
+ |
fftw_cv_dfftw_h=no |
8856 |
+ |
fi |
8857 |
|
|
8858 |
|
|
8859 |
+ |
fi |
8860 |
+ |
fi |
8861 |
+ |
ac_ext=c |
8862 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
8863 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8864 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
8865 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
8866 |
|
|
8867 |
+ |
if test "$fftw_cv_libfftw3" = "yes" -a "$fftw_cv_fftw3_h" = "yes"; then |
8868 |
|
|
8869 |
+ |
cat >>confdefs.h <<\_ACEOF |
8870 |
+ |
#define HAVE_FFTW3_H 1 |
8871 |
+ |
_ACEOF |
8872 |
|
|
8873 |
< |
for ac_header in stdio.h conio.h strstream.h iostream.h fstream.h math.h time.h sys/pstat.h sys/sysmp.h sys/sysinfo.h sys/table.h sys/sysctl.h sys/sytemcfg.h machine/hal_sysinfo.h |
8874 |
< |
do |
8875 |
< |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8876 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8877 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8878 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8879 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8880 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8873 |
> |
FFTW_INC_DIR="${FFTW_HOME}/include" |
8874 |
> |
FFTW_LIB_DIR="${FFTW_HOME}/lib" |
8875 |
> |
FFTW_LIBS="-lfftw3" |
8876 |
> |
else |
8877 |
> |
if test "$fftw_cv_libfftw" = "yes" -a "$fftw_cv_fftw_h" = "yes"; then |
8878 |
> |
|
8879 |
> |
cat >>confdefs.h <<\_ACEOF |
8880 |
> |
#define HAVE_FFTW_H 1 |
8881 |
> |
_ACEOF |
8882 |
> |
|
8883 |
> |
FFTW_INC_DIR="${FFTW_HOME}/include" |
8884 |
> |
FFTW_LIB_DIR="${FFTW_HOME}/lib" |
8885 |
> |
FFTW_LIBS="-lfftw" |
8886 |
> |
else |
8887 |
> |
if test "$fftw_cv_libdfftw" = "yes" -a "$fftw_cv_dfftw_h" = "yes"; then |
8888 |
> |
|
8889 |
> |
cat >>confdefs.h <<\_ACEOF |
8890 |
> |
#define HAVE_DFFTW_H 1 |
8891 |
> |
_ACEOF |
8892 |
> |
|
8893 |
> |
FFTW_INC_DIR="${FFTW_HOME}/include" |
8894 |
> |
FFTW_LIB_DIR="${FFTW_HOME}/lib" |
8895 |
> |
FFTW_LIBS="-ldfftw" |
8896 |
> |
else |
8897 |
> |
{ $as_echo "$as_me:$LINENO: checking fftw in ${FFTW_HOME}" >&5 |
8898 |
> |
$as_echo_n "checking fftw in ${FFTW_HOME}... " >&6; } |
8899 |
> |
FFTW_INC_DIR= |
8900 |
> |
FFTW_LIB_DIR= |
8901 |
> |
FFTW_LIBS= |
8902 |
> |
LDFLAGS="$FFTW_OLD_LDFLAGS" |
8903 |
> |
CFLAGS="$FFTW_OLD_CFLAGS" |
8904 |
> |
{ $as_echo "$as_me:$LINENO: result: failed" >&5 |
8905 |
> |
$as_echo "failed" >&6; } |
8906 |
> |
echo "" |
8907 |
> |
echo "*********************************************************" |
8908 |
> |
echo "* WARNING: Could not find a working FFTW installation *" |
8909 |
> |
echo "* If you need the staticProps program to be able to *" |
8910 |
> |
echo "* compute undulation spectra, be sure to specify a *" |
8911 |
> |
echo "* valid fftw installation with --with-fftw=DIR *" |
8912 |
> |
echo "* *" |
8913 |
> |
echo "* OOPSE will still work without fftw installed. *" |
8914 |
> |
echo "*********************************************************" |
8915 |
> |
echo "" |
8916 |
> |
fi |
8917 |
> |
fi |
8918 |
> |
fi |
8919 |
> |
|
8920 |
> |
|
8921 |
> |
|
8922 |
> |
fi |
8923 |
> |
fi |
8924 |
> |
fi |
8925 |
> |
|
8926 |
> |
# |
8927 |
> |
# Handle user hints |
8928 |
> |
# |
8929 |
> |
|
8930 |
> |
# Check whether --with-qhull was given. |
8931 |
> |
if test "${with_qhull+set}" = set; then |
8932 |
> |
withval=$with_qhull; qhull_dir="$withval" |
8933 |
> |
else |
8934 |
> |
qhull_dir="not_set" |
8935 |
> |
fi |
8936 |
> |
|
8937 |
> |
QHULL_INC_DIR= |
8938 |
> |
QHULL_LIB_DIR= |
8939 |
> |
QHULL= |
8940 |
> |
USE_QHULL=no |
8941 |
> |
|
8942 |
> |
if test "$qhull_dir" != "no"; then |
8943 |
> |
if test "$qhull_dir" != "not_set" ; then |
8944 |
> |
if test -d "$qhull_dir"; then |
8945 |
> |
QHULL_HOME="$qhull_dir" |
8946 |
> |
else |
8947 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&5 |
8948 |
> |
$as_echo "$as_me: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&2;} |
8949 |
> |
QHULL_HOME=/usr/local |
8950 |
> |
if test ! -f "${QHULL_HOME}/include/qhull/qhull.h"; then |
8951 |
> |
QHULL_HOME=/usr |
8952 |
> |
fi |
8953 |
> |
fi |
8954 |
> |
fi |
8955 |
> |
# |
8956 |
> |
# Locate qhull, if wanted |
8957 |
> |
# |
8958 |
> |
if test -n "${QHULL_HOME}"; then |
8959 |
> |
{ $as_echo "$as_me:$LINENO: Checking for qhull in ${QHULL_HOME}" >&5 |
8960 |
> |
$as_echo "$as_me: Checking for qhull in ${QHULL_HOME}" >&6;} |
8961 |
> |
|
8962 |
> |
ac_ext=c |
8963 |
> |
ac_cpp='$CPP $CPPFLAGS' |
8964 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8965 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
8966 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
8967 |
> |
|
8968 |
> |
QHULL_OLD_LDFLAGS=$LDFLAGS |
8969 |
> |
QHULL_OLD_CFLAGS=$CFLAGS |
8970 |
> |
QHULL_OLD_CPPFLAGS=$CPPFLAGS |
8971 |
> |
LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib" |
8972 |
> |
CFLAGS="$CFLAGS -I${QHULL_HOME}/include" |
8973 |
> |
CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include" |
8974 |
> |
if test "${ac_cv_header_qhull_qhull_h+set}" = set; then |
8975 |
> |
{ $as_echo "$as_me:$LINENO: checking for qhull/qhull.h" >&5 |
8976 |
> |
$as_echo_n "checking for qhull/qhull.h... " >&6; } |
8977 |
> |
if test "${ac_cv_header_qhull_qhull_h+set}" = set; then |
8978 |
> |
$as_echo_n "(cached) " >&6 |
8979 |
|
fi |
8980 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8981 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
8980 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_qhull_qhull_h" >&5 |
8981 |
> |
$as_echo "$ac_cv_header_qhull_qhull_h" >&6; } |
8982 |
|
else |
8983 |
|
# Is the header compilable? |
8984 |
< |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8985 |
< |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
8984 |
> |
{ $as_echo "$as_me:$LINENO: checking qhull/qhull.h usability" >&5 |
8985 |
> |
$as_echo_n "checking qhull/qhull.h usability... " >&6; } |
8986 |
|
cat >conftest.$ac_ext <<_ACEOF |
8987 |
|
/* confdefs.h. */ |
8988 |
|
_ACEOF |
8990 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8991 |
|
/* end confdefs.h. */ |
8992 |
|
$ac_includes_default |
8993 |
< |
#include <$ac_header> |
8993 |
> |
#include <qhull/qhull.h> |
8994 |
|
_ACEOF |
8995 |
|
rm -f conftest.$ac_objext |
8996 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8997 |
< |
(eval $ac_compile) 2>conftest.er1 |
8996 |
> |
if { (ac_try="$ac_compile" |
8997 |
> |
case "(($ac_try" in |
8998 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8999 |
> |
*) ac_try_echo=$ac_try;; |
9000 |
> |
esac |
9001 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9002 |
> |
$as_echo "$ac_try_echo") >&5 |
9003 |
> |
(eval "$ac_compile") 2>conftest.er1 |
9004 |
|
ac_status=$? |
9005 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
9006 |
|
rm -f conftest.er1 |
9007 |
|
cat conftest.err >&5 |
9008 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9009 |
< |
(exit $ac_status); } && |
9010 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
9011 |
< |
|| test ! -s conftest.err' |
9012 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6514 |
< |
(eval $ac_try) 2>&5 |
6515 |
< |
ac_status=$? |
6516 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6517 |
< |
(exit $ac_status); }; } && |
6518 |
< |
{ ac_try='test -s conftest.$ac_objext' |
6519 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6520 |
< |
(eval $ac_try) 2>&5 |
6521 |
< |
ac_status=$? |
6522 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6523 |
< |
(exit $ac_status); }; }; then |
9008 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9009 |
> |
(exit $ac_status); } && { |
9010 |
> |
test -z "$ac_c_werror_flag" || |
9011 |
> |
test ! -s conftest.err |
9012 |
> |
} && test -s conftest.$ac_objext; then |
9013 |
|
ac_header_compiler=yes |
9014 |
|
else |
9015 |
< |
echo "$as_me: failed program was:" >&5 |
9015 |
> |
$as_echo "$as_me: failed program was:" >&5 |
9016 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9017 |
|
|
9018 |
< |
ac_header_compiler=no |
9018 |
> |
ac_header_compiler=no |
9019 |
|
fi |
6531 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6532 |
– |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6533 |
– |
echo "${ECHO_T}$ac_header_compiler" >&6 |
9020 |
|
|
9021 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9022 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9023 |
+ |
$as_echo "$ac_header_compiler" >&6; } |
9024 |
+ |
|
9025 |
|
# Is the header present? |
9026 |
< |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9027 |
< |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
9026 |
> |
{ $as_echo "$as_me:$LINENO: checking qhull/qhull.h presence" >&5 |
9027 |
> |
$as_echo_n "checking qhull/qhull.h presence... " >&6; } |
9028 |
|
cat >conftest.$ac_ext <<_ACEOF |
9029 |
|
/* confdefs.h. */ |
9030 |
|
_ACEOF |
9031 |
|
cat confdefs.h >>conftest.$ac_ext |
9032 |
|
cat >>conftest.$ac_ext <<_ACEOF |
9033 |
|
/* end confdefs.h. */ |
9034 |
< |
#include <$ac_header> |
9034 |
> |
#include <qhull/qhull.h> |
9035 |
|
_ACEOF |
9036 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9037 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9036 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
9037 |
> |
case "(($ac_try" in |
9038 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9039 |
> |
*) ac_try_echo=$ac_try;; |
9040 |
> |
esac |
9041 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9042 |
> |
$as_echo "$ac_try_echo") >&5 |
9043 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
9044 |
|
ac_status=$? |
9045 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
9046 |
|
rm -f conftest.er1 |
9047 |
|
cat conftest.err >&5 |
9048 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9049 |
< |
(exit $ac_status); } >/dev/null; then |
9050 |
< |
if test -s conftest.err; then |
9051 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
9052 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
6557 |
< |
else |
6558 |
< |
ac_cpp_err= |
6559 |
< |
fi |
6560 |
< |
else |
6561 |
< |
ac_cpp_err=yes |
6562 |
< |
fi |
6563 |
< |
if test -z "$ac_cpp_err"; then |
9048 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9049 |
> |
(exit $ac_status); } >/dev/null && { |
9050 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
9051 |
> |
test ! -s conftest.err |
9052 |
> |
}; then |
9053 |
|
ac_header_preproc=yes |
9054 |
|
else |
9055 |
< |
echo "$as_me: failed program was:" >&5 |
9055 |
> |
$as_echo "$as_me: failed program was:" >&5 |
9056 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9057 |
|
|
9058 |
|
ac_header_preproc=no |
9059 |
|
fi |
9060 |
+ |
|
9061 |
|
rm -f conftest.err conftest.$ac_ext |
9062 |
< |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9063 |
< |
echo "${ECHO_T}$ac_header_preproc" >&6 |
9062 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9063 |
> |
$as_echo "$ac_header_preproc" >&6; } |
9064 |
|
|
9065 |
|
# So? What about this header? |
9066 |
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9067 |
|
yes:no: ) |
9068 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9069 |
< |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9070 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9071 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
9068 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: qhull/qhull.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9069 |
> |
$as_echo "$as_me: WARNING: qhull/qhull.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9070 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: qhull/qhull.h: proceeding with the compiler's result" >&5 |
9071 |
> |
$as_echo "$as_me: WARNING: qhull/qhull.h: proceeding with the compiler's result" >&2;} |
9072 |
|
ac_header_preproc=yes |
9073 |
|
;; |
9074 |
|
no:yes:* ) |
9075 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9076 |
< |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
9077 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9078 |
< |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
9079 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
9080 |
< |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
9081 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
9082 |
< |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
9083 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9084 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
9085 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9086 |
< |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
9087 |
< |
( |
6598 |
< |
cat <<\_ASBOX |
9075 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: qhull/qhull.h: present but cannot be compiled" >&5 |
9076 |
> |
$as_echo "$as_me: WARNING: qhull/qhull.h: present but cannot be compiled" >&2;} |
9077 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: qhull/qhull.h: check for missing prerequisite headers?" >&5 |
9078 |
> |
$as_echo "$as_me: WARNING: qhull/qhull.h: check for missing prerequisite headers?" >&2;} |
9079 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: qhull/qhull.h: see the Autoconf documentation" >&5 |
9080 |
> |
$as_echo "$as_me: WARNING: qhull/qhull.h: see the Autoconf documentation" >&2;} |
9081 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: qhull/qhull.h: section \"Present But Cannot Be Compiled\"" >&5 |
9082 |
> |
$as_echo "$as_me: WARNING: qhull/qhull.h: section \"Present But Cannot Be Compiled\"" >&2;} |
9083 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: qhull/qhull.h: proceeding with the preprocessor's result" >&5 |
9084 |
> |
$as_echo "$as_me: WARNING: qhull/qhull.h: proceeding with the preprocessor's result" >&2;} |
9085 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: qhull/qhull.h: in the future, the compiler will take precedence" >&5 |
9086 |
> |
$as_echo "$as_me: WARNING: qhull/qhull.h: in the future, the compiler will take precedence" >&2;} |
9087 |
> |
( cat <<\_ASBOX |
9088 |
|
## ------------------------------ ## |
9089 |
|
## Report this to gezelter@nd.edu ## |
9090 |
|
## ------------------------------ ## |
9091 |
|
_ASBOX |
9092 |
< |
) | |
6604 |
< |
sed "s/^/$as_me: WARNING: /" >&2 |
9092 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
9093 |
|
;; |
9094 |
|
esac |
9095 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9096 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
9097 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9098 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9095 |
> |
{ $as_echo "$as_me:$LINENO: checking for qhull/qhull.h" >&5 |
9096 |
> |
$as_echo_n "checking for qhull/qhull.h... " >&6; } |
9097 |
> |
if test "${ac_cv_header_qhull_qhull_h+set}" = set; then |
9098 |
> |
$as_echo_n "(cached) " >&6 |
9099 |
|
else |
9100 |
< |
eval "$as_ac_Header=\$ac_header_preproc" |
9100 |
> |
ac_cv_header_qhull_qhull_h=$ac_header_preproc |
9101 |
|
fi |
9102 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9103 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
9102 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_qhull_qhull_h" >&5 |
9103 |
> |
$as_echo "$ac_cv_header_qhull_qhull_h" >&6; } |
9104 |
|
|
9105 |
|
fi |
9106 |
< |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9107 |
< |
cat >>confdefs.h <<_ACEOF |
9108 |
< |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
9109 |
< |
_ACEOF |
6622 |
< |
|
9106 |
> |
if test $ac_cv_header_qhull_qhull_h = yes; then |
9107 |
> |
qhull_cv_qhull_h=yes |
9108 |
> |
else |
9109 |
> |
qhull_cv_qhull_h=no |
9110 |
|
fi |
9111 |
|
|
6625 |
– |
done |
9112 |
|
|
9113 |
< |
|
9114 |
< |
# Checks for typedefs, structures, and compiler characteristics. |
9115 |
< |
echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
9116 |
< |
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
6631 |
< |
if test "${ac_cv_header_stdbool_h+set}" = set; then |
6632 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9113 |
> |
{ $as_echo "$as_me:$LINENO: checking for qh_qhull in -lqhull" >&5 |
9114 |
> |
$as_echo_n "checking for qh_qhull in -lqhull... " >&6; } |
9115 |
> |
if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then |
9116 |
> |
$as_echo_n "(cached) " >&6 |
9117 |
|
else |
9118 |
< |
cat >conftest.$ac_ext <<_ACEOF |
9118 |
> |
ac_check_lib_save_LIBS=$LIBS |
9119 |
> |
LIBS="-lqhull $LIBS" |
9120 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9121 |
|
/* confdefs.h. */ |
9122 |
|
_ACEOF |
9123 |
|
cat confdefs.h >>conftest.$ac_ext |
9124 |
|
cat >>conftest.$ac_ext <<_ACEOF |
9125 |
|
/* end confdefs.h. */ |
9126 |
|
|
9127 |
< |
#include <stdbool.h> |
9128 |
< |
#ifndef bool |
9129 |
< |
# error bool is not defined |
9127 |
> |
/* Override any GCC internal prototype to avoid an error. |
9128 |
> |
Use char because int might match the return type of a GCC |
9129 |
> |
builtin and then its argument prototype would still apply. */ |
9130 |
> |
#ifdef __cplusplus |
9131 |
> |
extern "C" |
9132 |
|
#endif |
9133 |
< |
#ifndef false |
6646 |
< |
# error false is not defined |
6647 |
< |
#endif |
6648 |
< |
#if false |
6649 |
< |
# error false is not 0 |
6650 |
< |
#endif |
6651 |
< |
#ifndef true |
6652 |
< |
# error true is not defined |
6653 |
< |
#endif |
6654 |
< |
#if true != 1 |
6655 |
< |
# error true is not 1 |
6656 |
< |
#endif |
6657 |
< |
#ifndef __bool_true_false_are_defined |
6658 |
< |
# error __bool_true_false_are_defined is not defined |
6659 |
< |
#endif |
6660 |
< |
|
6661 |
< |
struct s { _Bool s: 1; _Bool t; } s; |
6662 |
< |
|
6663 |
< |
char a[true == 1 ? 1 : -1]; |
6664 |
< |
char b[false == 0 ? 1 : -1]; |
6665 |
< |
char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
6666 |
< |
char d[(bool) -0.5 == true ? 1 : -1]; |
6667 |
< |
bool e = &s; |
6668 |
< |
char f[(_Bool) -0.0 == false ? 1 : -1]; |
6669 |
< |
char g[true]; |
6670 |
< |
char h[sizeof (_Bool)]; |
6671 |
< |
char i[sizeof s.t]; |
6672 |
< |
|
9133 |
> |
char qh_qhull (); |
9134 |
|
#ifdef FC_DUMMY_MAIN |
9135 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
9136 |
|
# ifdef __cplusplus |
9142 |
|
int |
9143 |
|
main () |
9144 |
|
{ |
9145 |
< |
return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
9145 |
> |
return qh_qhull (); |
9146 |
|
; |
9147 |
|
return 0; |
9148 |
|
} |
9149 |
|
_ACEOF |
9150 |
< |
rm -f conftest.$ac_objext |
9151 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9152 |
< |
(eval $ac_compile) 2>conftest.er1 |
9150 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
9151 |
> |
if { (ac_try="$ac_link" |
9152 |
> |
case "(($ac_try" in |
9153 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9154 |
> |
*) ac_try_echo=$ac_try;; |
9155 |
> |
esac |
9156 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9157 |
> |
$as_echo "$ac_try_echo") >&5 |
9158 |
> |
(eval "$ac_link") 2>conftest.er1 |
9159 |
|
ac_status=$? |
9160 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
9161 |
|
rm -f conftest.er1 |
9162 |
|
cat conftest.err >&5 |
9163 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9164 |
< |
(exit $ac_status); } && |
9165 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
9166 |
< |
|| test ! -s conftest.err' |
9167 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9168 |
< |
(eval $ac_try) 2>&5 |
9169 |
< |
ac_status=$? |
9170 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9171 |
< |
(exit $ac_status); }; } && |
6705 |
< |
{ ac_try='test -s conftest.$ac_objext' |
6706 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6707 |
< |
(eval $ac_try) 2>&5 |
6708 |
< |
ac_status=$? |
6709 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6710 |
< |
(exit $ac_status); }; }; then |
6711 |
< |
ac_cv_header_stdbool_h=yes |
9163 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9164 |
> |
(exit $ac_status); } && { |
9165 |
> |
test -z "$ac_c_werror_flag" || |
9166 |
> |
test ! -s conftest.err |
9167 |
> |
} && test -s conftest$ac_exeext && { |
9168 |
> |
test "$cross_compiling" = yes || |
9169 |
> |
$as_test_x conftest$ac_exeext |
9170 |
> |
}; then |
9171 |
> |
ac_cv_lib_qhull_qh_qhull=yes |
9172 |
|
else |
9173 |
< |
echo "$as_me: failed program was:" >&5 |
9173 |
> |
$as_echo "$as_me: failed program was:" >&5 |
9174 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9175 |
|
|
9176 |
< |
ac_cv_header_stdbool_h=no |
9176 |
> |
ac_cv_lib_qhull_qh_qhull=no |
9177 |
|
fi |
9178 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9178 |
> |
|
9179 |
> |
rm -rf conftest.dSYM |
9180 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9181 |
> |
conftest$ac_exeext conftest.$ac_ext |
9182 |
> |
LIBS=$ac_check_lib_save_LIBS |
9183 |
|
fi |
9184 |
< |
echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
9185 |
< |
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
9186 |
< |
echo "$as_me:$LINENO: checking for _Bool" >&5 |
9187 |
< |
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
6724 |
< |
if test "${ac_cv_type__Bool+set}" = set; then |
6725 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9184 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_qhull_qh_qhull" >&5 |
9185 |
> |
$as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; } |
9186 |
> |
if test $ac_cv_lib_qhull_qh_qhull = yes; then |
9187 |
> |
qhull_cv_libqhull=yes |
9188 |
|
else |
9189 |
+ |
qhull_cv_libqhull=no |
9190 |
+ |
fi |
9191 |
+ |
|
9192 |
+ |
LDFLAGS="$QHULL_OLD_LDFLAGS" |
9193 |
+ |
CFLAGS="$QHULL_OLD_CFLAGS" |
9194 |
+ |
CPPFLAGS="$QHULL_OLD_CPPFLAGS" |
9195 |
+ |
ac_ext=c |
9196 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
9197 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9198 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9199 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
9200 |
+ |
|
9201 |
+ |
|
9202 |
+ |
if test "$qhull_cv_libqhull" = "yes" -a "$qhull_cv_qhull_h" = "yes"; then |
9203 |
+ |
|
9204 |
+ |
cat >>confdefs.h <<\_ACEOF |
9205 |
+ |
#define HAVE_QHULL_H 1 |
9206 |
+ |
_ACEOF |
9207 |
+ |
|
9208 |
+ |
|
9209 |
+ |
cat >>confdefs.h <<\_ACEOF |
9210 |
+ |
#define HAVE_QHULL 1 |
9211 |
+ |
_ACEOF |
9212 |
+ |
|
9213 |
+ |
USE_QHULL=yes |
9214 |
+ |
QHULL_INC_DIR="${QHULL_HOME}/include" |
9215 |
+ |
QHULL_LIB_DIR="${QHULL_HOME}/lib" |
9216 |
+ |
QHULL="-lqhull" |
9217 |
+ |
{ $as_echo "$as_me:$LINENO: result: Working qhull found, will proceed." >&5 |
9218 |
+ |
$as_echo "Working qhull found, will proceed." >&6; } |
9219 |
+ |
else |
9220 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: " >&5 |
9221 |
+ |
$as_echo "$as_me: WARNING: " >&2;} |
9222 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: Could not find a working qhull installation" >&5 |
9223 |
+ |
$as_echo "$as_me: WARNING: Could not find a working qhull installation" >&2;} |
9224 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: If you need OOPSE to be able to deal with convex " >&5 |
9225 |
+ |
$as_echo "$as_me: WARNING: If you need OOPSE to be able to deal with convex " >&2;} |
9226 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: hulls be sure to specify a valid qhull installation " >&5 |
9227 |
+ |
$as_echo "$as_me: WARNING: hulls be sure to specify a valid qhull installation " >&2;} |
9228 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: with --with-qhull=DIR " >&5 |
9229 |
+ |
$as_echo "$as_me: WARNING: with --with-qhull=DIR " >&2;} |
9230 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: " >&5 |
9231 |
+ |
$as_echo "$as_me: WARNING: " >&2;} |
9232 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: OOPSE will still work without qhull installed. " >&5 |
9233 |
+ |
$as_echo "$as_me: WARNING: OOPSE will still work without qhull installed. " >&2;} |
9234 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: " >&5 |
9235 |
+ |
$as_echo "$as_me: WARNING: " >&2;} |
9236 |
+ |
fi |
9237 |
+ |
fi |
9238 |
+ |
fi |
9239 |
+ |
|
9240 |
+ |
|
9241 |
+ |
|
9242 |
+ |
|
9243 |
+ |
|
9244 |
+ |
|
9245 |
+ |
ac_ext=cpp |
9246 |
+ |
ac_cpp='$CXXCPP $CPPFLAGS' |
9247 |
+ |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9248 |
+ |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9249 |
+ |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
9250 |
+ |
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
9251 |
+ |
$as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
9252 |
+ |
if test -z "$CXXCPP"; then |
9253 |
+ |
if test "${ac_cv_prog_CXXCPP+set}" = set; then |
9254 |
+ |
$as_echo_n "(cached) " >&6 |
9255 |
+ |
else |
9256 |
+ |
# Double quotes because CXXCPP needs to be expanded |
9257 |
+ |
for CXXCPP in "$CXX -E" "/lib/cpp" |
9258 |
+ |
do |
9259 |
+ |
ac_preproc_ok=false |
9260 |
+ |
for ac_cxx_preproc_warn_flag in '' yes |
9261 |
+ |
do |
9262 |
+ |
# Use a header file that comes with gcc, so configuring glibc |
9263 |
+ |
# with a fresh cross-compiler works. |
9264 |
+ |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9265 |
+ |
# <limits.h> exists even on freestanding compilers. |
9266 |
+ |
# On the NeXT, cc -E runs the code through the compiler's parser, |
9267 |
+ |
# not just through cpp. "Syntax error" is here to catch this case. |
9268 |
|
cat >conftest.$ac_ext <<_ACEOF |
9269 |
|
/* confdefs.h. */ |
9270 |
|
_ACEOF |
9271 |
|
cat confdefs.h >>conftest.$ac_ext |
9272 |
|
cat >>conftest.$ac_ext <<_ACEOF |
9273 |
|
/* end confdefs.h. */ |
9274 |
< |
$ac_includes_default |
9275 |
< |
#ifdef FC_DUMMY_MAIN |
9276 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
9277 |
< |
# ifdef __cplusplus |
6737 |
< |
extern "C" |
6738 |
< |
# endif |
6739 |
< |
int FC_DUMMY_MAIN() { return 1; } |
9274 |
> |
#ifdef __STDC__ |
9275 |
> |
# include <limits.h> |
9276 |
> |
#else |
9277 |
> |
# include <assert.h> |
9278 |
|
#endif |
9279 |
< |
#endif |
6742 |
< |
int |
6743 |
< |
main () |
6744 |
< |
{ |
6745 |
< |
if ((_Bool *) 0) |
6746 |
< |
return 0; |
6747 |
< |
if (sizeof (_Bool)) |
6748 |
< |
return 0; |
6749 |
< |
; |
6750 |
< |
return 0; |
6751 |
< |
} |
9279 |
> |
Syntax error |
9280 |
|
_ACEOF |
9281 |
< |
rm -f conftest.$ac_objext |
9282 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9283 |
< |
(eval $ac_compile) 2>conftest.er1 |
9281 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
9282 |
> |
case "(($ac_try" in |
9283 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9284 |
> |
*) ac_try_echo=$ac_try;; |
9285 |
> |
esac |
9286 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9287 |
> |
$as_echo "$ac_try_echo") >&5 |
9288 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
9289 |
|
ac_status=$? |
9290 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
9291 |
|
rm -f conftest.er1 |
9292 |
|
cat conftest.err >&5 |
9293 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9294 |
< |
(exit $ac_status); } && |
9295 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
9296 |
< |
|| test ! -s conftest.err' |
9297 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9298 |
< |
(eval $ac_try) 2>&5 |
6766 |
< |
ac_status=$? |
6767 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6768 |
< |
(exit $ac_status); }; } && |
6769 |
< |
{ ac_try='test -s conftest.$ac_objext' |
6770 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6771 |
< |
(eval $ac_try) 2>&5 |
6772 |
< |
ac_status=$? |
6773 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6774 |
< |
(exit $ac_status); }; }; then |
6775 |
< |
ac_cv_type__Bool=yes |
9293 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9294 |
> |
(exit $ac_status); } >/dev/null && { |
9295 |
> |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
9296 |
> |
test ! -s conftest.err |
9297 |
> |
}; then |
9298 |
> |
: |
9299 |
|
else |
9300 |
< |
echo "$as_me: failed program was:" >&5 |
9300 |
> |
$as_echo "$as_me: failed program was:" >&5 |
9301 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9302 |
|
|
9303 |
< |
ac_cv_type__Bool=no |
9303 |
> |
# Broken: fails on valid input. |
9304 |
> |
continue |
9305 |
|
fi |
6782 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6783 |
– |
fi |
6784 |
– |
echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
6785 |
– |
echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
6786 |
– |
if test $ac_cv_type__Bool = yes; then |
9306 |
|
|
9307 |
< |
cat >>confdefs.h <<_ACEOF |
6789 |
< |
#define HAVE__BOOL 1 |
6790 |
< |
_ACEOF |
9307 |
> |
rm -f conftest.err conftest.$ac_ext |
9308 |
|
|
9309 |
< |
|
9310 |
< |
fi |
6794 |
< |
|
6795 |
< |
if test $ac_cv_header_stdbool_h = yes; then |
6796 |
< |
|
6797 |
< |
cat >>confdefs.h <<\_ACEOF |
6798 |
< |
#define HAVE_STDBOOL_H 1 |
6799 |
< |
_ACEOF |
6800 |
< |
|
6801 |
< |
fi |
6802 |
< |
|
6803 |
< |
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
6804 |
< |
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
6805 |
< |
if test "${ac_cv_c_const+set}" = set; then |
6806 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6807 |
< |
else |
9309 |
> |
# OK, works on sane cases. Now check whether nonexistent headers |
9310 |
> |
# can be detected and how. |
9311 |
|
cat >conftest.$ac_ext <<_ACEOF |
9312 |
|
/* confdefs.h. */ |
9313 |
|
_ACEOF |
9314 |
|
cat confdefs.h >>conftest.$ac_ext |
9315 |
|
cat >>conftest.$ac_ext <<_ACEOF |
9316 |
|
/* end confdefs.h. */ |
9317 |
+ |
#include <ac_nonexistent.h> |
9318 |
+ |
_ACEOF |
9319 |
+ |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
9320 |
+ |
case "(($ac_try" in |
9321 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9322 |
+ |
*) ac_try_echo=$ac_try;; |
9323 |
+ |
esac |
9324 |
+ |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9325 |
+ |
$as_echo "$ac_try_echo") >&5 |
9326 |
+ |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
9327 |
+ |
ac_status=$? |
9328 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
9329 |
+ |
rm -f conftest.er1 |
9330 |
+ |
cat conftest.err >&5 |
9331 |
+ |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9332 |
+ |
(exit $ac_status); } >/dev/null && { |
9333 |
+ |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
9334 |
+ |
test ! -s conftest.err |
9335 |
+ |
}; then |
9336 |
+ |
# Broken: success on invalid input. |
9337 |
+ |
continue |
9338 |
+ |
else |
9339 |
+ |
$as_echo "$as_me: failed program was:" >&5 |
9340 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
9341 |
|
|
9342 |
< |
#ifdef FC_DUMMY_MAIN |
9343 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
9344 |
< |
# ifdef __cplusplus |
9345 |
< |
extern "C" |
6819 |
< |
# endif |
6820 |
< |
int FC_DUMMY_MAIN() { return 1; } |
6821 |
< |
#endif |
6822 |
< |
#endif |
6823 |
< |
int |
6824 |
< |
main () |
6825 |
< |
{ |
6826 |
< |
/* FIXME: Include the comments suggested by Paul. */ |
6827 |
< |
#ifndef __cplusplus |
6828 |
< |
/* Ultrix mips cc rejects this. */ |
6829 |
< |
typedef int charset[2]; |
6830 |
< |
const charset x; |
6831 |
< |
/* SunOS 4.1.1 cc rejects this. */ |
6832 |
< |
char const *const *ccp; |
6833 |
< |
char **p; |
6834 |
< |
/* NEC SVR4.0.2 mips cc rejects this. */ |
6835 |
< |
struct point {int x, y;}; |
6836 |
< |
static struct point const zero = {0,0}; |
6837 |
< |
/* AIX XL C 1.02.0.0 rejects this. |
6838 |
< |
It does not let you subtract one const X* pointer from another in |
6839 |
< |
an arm of an if-expression whose if-part is not a constant |
6840 |
< |
expression */ |
6841 |
< |
const char *g = "string"; |
6842 |
< |
ccp = &g + (g ? g-g : 0); |
6843 |
< |
/* HPUX 7.0 cc rejects these. */ |
6844 |
< |
++ccp; |
6845 |
< |
p = (char**) ccp; |
6846 |
< |
ccp = (char const *const *) p; |
6847 |
< |
{ /* SCO 3.2v4 cc rejects this. */ |
6848 |
< |
char *t; |
6849 |
< |
char const *s = 0 ? (char *) 0 : (char const *) 0; |
9342 |
> |
# Passes both tests. |
9343 |
> |
ac_preproc_ok=: |
9344 |
> |
break |
9345 |
> |
fi |
9346 |
|
|
9347 |
< |
*t++ = 0; |
6852 |
< |
} |
6853 |
< |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
6854 |
< |
int x[] = {25, 17}; |
6855 |
< |
const int *foo = &x[0]; |
6856 |
< |
++foo; |
6857 |
< |
} |
6858 |
< |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
6859 |
< |
typedef const int *iptr; |
6860 |
< |
iptr p = 0; |
6861 |
< |
++p; |
6862 |
< |
} |
6863 |
< |
{ /* AIX XL C 1.02.0.0 rejects this saying |
6864 |
< |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
6865 |
< |
struct s { int j; const int *ap[3]; }; |
6866 |
< |
struct s *b; b->j = 5; |
6867 |
< |
} |
6868 |
< |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
6869 |
< |
const int foo = 10; |
6870 |
< |
} |
6871 |
< |
#endif |
9347 |
> |
rm -f conftest.err conftest.$ac_ext |
9348 |
|
|
9349 |
< |
; |
9350 |
< |
return 0; |
9351 |
< |
} |
9349 |
> |
done |
9350 |
> |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
9351 |
> |
rm -f conftest.err conftest.$ac_ext |
9352 |
> |
if $ac_preproc_ok; then |
9353 |
> |
break |
9354 |
> |
fi |
9355 |
> |
|
9356 |
> |
done |
9357 |
> |
ac_cv_prog_CXXCPP=$CXXCPP |
9358 |
> |
|
9359 |
> |
fi |
9360 |
> |
CXXCPP=$ac_cv_prog_CXXCPP |
9361 |
> |
else |
9362 |
> |
ac_cv_prog_CXXCPP=$CXXCPP |
9363 |
> |
fi |
9364 |
> |
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
9365 |
> |
$as_echo "$CXXCPP" >&6; } |
9366 |
> |
ac_preproc_ok=false |
9367 |
> |
for ac_cxx_preproc_warn_flag in '' yes |
9368 |
> |
do |
9369 |
> |
# Use a header file that comes with gcc, so configuring glibc |
9370 |
> |
# with a fresh cross-compiler works. |
9371 |
> |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9372 |
> |
# <limits.h> exists even on freestanding compilers. |
9373 |
> |
# On the NeXT, cc -E runs the code through the compiler's parser, |
9374 |
> |
# not just through cpp. "Syntax error" is here to catch this case. |
9375 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9376 |
> |
/* confdefs.h. */ |
9377 |
|
_ACEOF |
9378 |
< |
rm -f conftest.$ac_objext |
9379 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9380 |
< |
(eval $ac_compile) 2>conftest.er1 |
9378 |
> |
cat confdefs.h >>conftest.$ac_ext |
9379 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
9380 |
> |
/* end confdefs.h. */ |
9381 |
> |
#ifdef __STDC__ |
9382 |
> |
# include <limits.h> |
9383 |
> |
#else |
9384 |
> |
# include <assert.h> |
9385 |
> |
#endif |
9386 |
> |
Syntax error |
9387 |
> |
_ACEOF |
9388 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
9389 |
> |
case "(($ac_try" in |
9390 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9391 |
> |
*) ac_try_echo=$ac_try;; |
9392 |
> |
esac |
9393 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9394 |
> |
$as_echo "$ac_try_echo") >&5 |
9395 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
9396 |
|
ac_status=$? |
9397 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
9398 |
|
rm -f conftest.er1 |
9399 |
|
cat conftest.err >&5 |
9400 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9401 |
< |
(exit $ac_status); } && |
9402 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
9403 |
< |
|| test ! -s conftest.err' |
9404 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9405 |
< |
(eval $ac_try) 2>&5 |
6890 |
< |
ac_status=$? |
6891 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6892 |
< |
(exit $ac_status); }; } && |
6893 |
< |
{ ac_try='test -s conftest.$ac_objext' |
6894 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6895 |
< |
(eval $ac_try) 2>&5 |
6896 |
< |
ac_status=$? |
6897 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6898 |
< |
(exit $ac_status); }; }; then |
6899 |
< |
ac_cv_c_const=yes |
9400 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9401 |
> |
(exit $ac_status); } >/dev/null && { |
9402 |
> |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
9403 |
> |
test ! -s conftest.err |
9404 |
> |
}; then |
9405 |
> |
: |
9406 |
|
else |
9407 |
< |
echo "$as_me: failed program was:" >&5 |
9407 |
> |
$as_echo "$as_me: failed program was:" >&5 |
9408 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9409 |
|
|
9410 |
< |
ac_cv_c_const=no |
9410 |
> |
# Broken: fails on valid input. |
9411 |
> |
continue |
9412 |
|
fi |
6906 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6907 |
– |
fi |
6908 |
– |
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
6909 |
– |
echo "${ECHO_T}$ac_cv_c_const" >&6 |
6910 |
– |
if test $ac_cv_c_const = no; then |
9413 |
|
|
9414 |
< |
cat >>confdefs.h <<\_ACEOF |
6913 |
< |
#define const |
6914 |
< |
_ACEOF |
9414 |
> |
rm -f conftest.err conftest.$ac_ext |
9415 |
|
|
9416 |
< |
fi |
9417 |
< |
|
6918 |
< |
echo "$as_me:$LINENO: checking for inline" >&5 |
6919 |
< |
echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
6920 |
< |
if test "${ac_cv_c_inline+set}" = set; then |
6921 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6922 |
< |
else |
6923 |
< |
ac_cv_c_inline=no |
6924 |
< |
for ac_kw in inline __inline__ __inline; do |
9416 |
> |
# OK, works on sane cases. Now check whether nonexistent headers |
9417 |
> |
# can be detected and how. |
9418 |
|
cat >conftest.$ac_ext <<_ACEOF |
9419 |
|
/* confdefs.h. */ |
9420 |
|
_ACEOF |
9421 |
|
cat confdefs.h >>conftest.$ac_ext |
9422 |
|
cat >>conftest.$ac_ext <<_ACEOF |
9423 |
|
/* end confdefs.h. */ |
9424 |
< |
#ifndef __cplusplus |
6932 |
< |
typedef int foo_t; |
6933 |
< |
static $ac_kw foo_t static_foo () {return 0; } |
6934 |
< |
$ac_kw foo_t foo () {return 0; } |
6935 |
< |
#endif |
6936 |
< |
|
9424 |
> |
#include <ac_nonexistent.h> |
9425 |
|
_ACEOF |
9426 |
< |
rm -f conftest.$ac_objext |
9427 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9428 |
< |
(eval $ac_compile) 2>conftest.er1 |
9426 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
9427 |
> |
case "(($ac_try" in |
9428 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9429 |
> |
*) ac_try_echo=$ac_try;; |
9430 |
> |
esac |
9431 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9432 |
> |
$as_echo "$ac_try_echo") >&5 |
9433 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
9434 |
|
ac_status=$? |
9435 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
9436 |
|
rm -f conftest.er1 |
9437 |
|
cat conftest.err >&5 |
9438 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9439 |
< |
(exit $ac_status); } && |
9440 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
9441 |
< |
|| test ! -s conftest.err' |
9442 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9443 |
< |
(eval $ac_try) 2>&5 |
9444 |
< |
ac_status=$? |
6952 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6953 |
< |
(exit $ac_status); }; } && |
6954 |
< |
{ ac_try='test -s conftest.$ac_objext' |
6955 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6956 |
< |
(eval $ac_try) 2>&5 |
6957 |
< |
ac_status=$? |
6958 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6959 |
< |
(exit $ac_status); }; }; then |
6960 |
< |
ac_cv_c_inline=$ac_kw; break |
9438 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9439 |
> |
(exit $ac_status); } >/dev/null && { |
9440 |
> |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
9441 |
> |
test ! -s conftest.err |
9442 |
> |
}; then |
9443 |
> |
# Broken: success on invalid input. |
9444 |
> |
continue |
9445 |
|
else |
9446 |
< |
echo "$as_me: failed program was:" >&5 |
9446 |
> |
$as_echo "$as_me: failed program was:" >&5 |
9447 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9448 |
|
|
9449 |
+ |
# Passes both tests. |
9450 |
+ |
ac_preproc_ok=: |
9451 |
+ |
break |
9452 |
|
fi |
9453 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9453 |
> |
|
9454 |
> |
rm -f conftest.err conftest.$ac_ext |
9455 |
> |
|
9456 |
|
done |
9457 |
+ |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
9458 |
+ |
rm -f conftest.err conftest.$ac_ext |
9459 |
+ |
if $ac_preproc_ok; then |
9460 |
+ |
: |
9461 |
+ |
else |
9462 |
+ |
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
9463 |
+ |
See \`config.log' for more details." >&5 |
9464 |
+ |
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
9465 |
+ |
See \`config.log' for more details." >&2;} |
9466 |
+ |
{ (exit 1); exit 1; }; } |
9467 |
+ |
fi |
9468 |
|
|
9469 |
+ |
ac_ext=cpp |
9470 |
+ |
ac_cpp='$CXXCPP $CPPFLAGS' |
9471 |
+ |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9472 |
+ |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9473 |
+ |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
9474 |
+ |
|
9475 |
+ |
|
9476 |
+ |
# |
9477 |
+ |
# Handle user hints |
9478 |
+ |
# |
9479 |
+ |
|
9480 |
+ |
# Check whether --with-openbabel was given. |
9481 |
+ |
if test "${with_openbabel+set}" = set; then |
9482 |
+ |
withval=$with_openbabel; openbabel_dir="$withval" |
9483 |
+ |
else |
9484 |
+ |
openbabel_dir="not_set" |
9485 |
|
fi |
6970 |
– |
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
6971 |
– |
echo "${ECHO_T}$ac_cv_c_inline" >&6 |
9486 |
|
|
9487 |
+ |
if test "$openbabel_dir" != "no"; then |
9488 |
|
|
9489 |
< |
case $ac_cv_c_inline in |
9490 |
< |
inline | yes) ;; |
9491 |
< |
*) |
9492 |
< |
case $ac_cv_c_inline in |
9493 |
< |
no) ac_val=;; |
9494 |
< |
*) ac_val=$ac_cv_c_inline;; |
9495 |
< |
esac |
9496 |
< |
cat >>confdefs.h <<_ACEOF |
9497 |
< |
#ifndef __cplusplus |
9498 |
< |
#define inline $ac_val |
9499 |
< |
#endif |
9500 |
< |
_ACEOF |
9501 |
< |
;; |
9502 |
< |
esac |
9489 |
> |
if test "$openbabel_dir" != "not_set" ; then |
9490 |
> |
if test -d "$openbabel_dir" |
9491 |
> |
then |
9492 |
> |
OPENBABEL_HOME="$openbabel_dir" |
9493 |
> |
else |
9494 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: Sorry, $openbabel_dir does not exist, checking usual places" >&5 |
9495 |
> |
$as_echo "$as_me: WARNING: Sorry, $openbabel_dir does not exist, checking usual places" >&2;} |
9496 |
> |
OPENBABEL_HOME=/usr/local |
9497 |
> |
if test ! -f "${OPENBABEL_HOME}/include/openbabel-2.0/openbabel/babelconfig.h" -a -f "${OPENBABEL_HOME}/include/openbabel-2.0/openbabel/obconversion.h" |
9498 |
> |
then |
9499 |
> |
OPENBABEL_HOME=/usr |
9500 |
> |
fi |
9501 |
> |
fi |
9502 |
> |
fi |
9503 |
> |
# |
9504 |
> |
# Locate openbabel, if wanted |
9505 |
> |
# |
9506 |
> |
if test -n "${OPENBABEL_HOME}" |
9507 |
> |
then |
9508 |
|
|
9509 |
< |
echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 |
9510 |
< |
echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6 |
9511 |
< |
if test "${ac_cv_c_restrict+set}" = set; then |
9512 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9509 |
> |
ac_ext=cpp |
9510 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
9511 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9512 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9513 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
9514 |
> |
|
9515 |
> |
OPENBABEL_OLD_LDFLAGS=$LDFLAGS |
9516 |
> |
OPENBABEL_OLD_CPPFLAGS=$CPPFLAGS |
9517 |
> |
LDFLAGS="$LDFLAGS -L${OPENBABEL_HOME}/lib -lopenbabel" |
9518 |
> |
CPPFLAGS="$CPPFLAGS -I${OPENBABEL_HOME}/include/openbabel-2.0" |
9519 |
> |
if test "${ac_cv_header_openbabel_babelconfig_h+set}" = set; then |
9520 |
> |
{ $as_echo "$as_me:$LINENO: checking for openbabel/babelconfig.h" >&5 |
9521 |
> |
$as_echo_n "checking for openbabel/babelconfig.h... " >&6; } |
9522 |
> |
if test "${ac_cv_header_openbabel_babelconfig_h+set}" = set; then |
9523 |
> |
$as_echo_n "(cached) " >&6 |
9524 |
> |
fi |
9525 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_babelconfig_h" >&5 |
9526 |
> |
$as_echo "$ac_cv_header_openbabel_babelconfig_h" >&6; } |
9527 |
|
else |
9528 |
< |
ac_cv_c_restrict=no |
9529 |
< |
# Try the official restrict keyword, then gcc's __restrict, and |
9530 |
< |
# the less common variants. |
9531 |
< |
for ac_kw in restrict __restrict __restrict__ _Restrict; do |
6998 |
< |
cat >conftest.$ac_ext <<_ACEOF |
9528 |
> |
# Is the header compilable? |
9529 |
> |
{ $as_echo "$as_me:$LINENO: checking openbabel/babelconfig.h usability" >&5 |
9530 |
> |
$as_echo_n "checking openbabel/babelconfig.h usability... " >&6; } |
9531 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9532 |
|
/* confdefs.h. */ |
9533 |
|
_ACEOF |
9534 |
|
cat confdefs.h >>conftest.$ac_ext |
9535 |
|
cat >>conftest.$ac_ext <<_ACEOF |
9536 |
|
/* end confdefs.h. */ |
9537 |
< |
float * $ac_kw x; |
9537 |
> |
$ac_includes_default |
9538 |
> |
#include <openbabel/babelconfig.h> |
9539 |
|
_ACEOF |
9540 |
|
rm -f conftest.$ac_objext |
9541 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9542 |
< |
(eval $ac_compile) 2>conftest.er1 |
9541 |
> |
if { (ac_try="$ac_compile" |
9542 |
> |
case "(($ac_try" in |
9543 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9544 |
> |
*) ac_try_echo=$ac_try;; |
9545 |
> |
esac |
9546 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9547 |
> |
$as_echo "$ac_try_echo") >&5 |
9548 |
> |
(eval "$ac_compile") 2>conftest.er1 |
9549 |
|
ac_status=$? |
9550 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
9551 |
|
rm -f conftest.er1 |
9552 |
|
cat conftest.err >&5 |
9553 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9554 |
< |
(exit $ac_status); } && |
9555 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
9556 |
< |
|| test ! -s conftest.err' |
9557 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9558 |
< |
(eval $ac_try) 2>&5 |
7019 |
< |
ac_status=$? |
7020 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7021 |
< |
(exit $ac_status); }; } && |
7022 |
< |
{ ac_try='test -s conftest.$ac_objext' |
7023 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7024 |
< |
(eval $ac_try) 2>&5 |
7025 |
< |
ac_status=$? |
7026 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7027 |
< |
(exit $ac_status); }; }; then |
7028 |
< |
ac_cv_c_restrict=$ac_kw; break |
9553 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9554 |
> |
(exit $ac_status); } && { |
9555 |
> |
test -z "$ac_cxx_werror_flag" || |
9556 |
> |
test ! -s conftest.err |
9557 |
> |
} && test -s conftest.$ac_objext; then |
9558 |
> |
ac_header_compiler=yes |
9559 |
|
else |
9560 |
< |
echo "$as_me: failed program was:" >&5 |
9560 |
> |
$as_echo "$as_me: failed program was:" >&5 |
9561 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9562 |
|
|
9563 |
+ |
ac_header_compiler=no |
9564 |
|
fi |
7034 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7035 |
– |
done |
9565 |
|
|
9566 |
< |
fi |
9567 |
< |
echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 |
9568 |
< |
echo "${ECHO_T}$ac_cv_c_restrict" >&6 |
7040 |
< |
case $ac_cv_c_restrict in |
7041 |
< |
restrict) ;; |
7042 |
< |
no) |
7043 |
< |
cat >>confdefs.h <<\_ACEOF |
7044 |
< |
#define restrict |
7045 |
< |
_ACEOF |
7046 |
< |
;; |
7047 |
< |
*) cat >>confdefs.h <<_ACEOF |
7048 |
< |
#define restrict $ac_cv_c_restrict |
7049 |
< |
_ACEOF |
7050 |
< |
;; |
7051 |
< |
esac |
9566 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9567 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9568 |
> |
$as_echo "$ac_header_compiler" >&6; } |
9569 |
|
|
9570 |
< |
echo "$as_me:$LINENO: checking for size_t" >&5 |
9571 |
< |
echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
9572 |
< |
if test "${ac_cv_type_size_t+set}" = set; then |
9573 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7057 |
< |
else |
7058 |
< |
cat >conftest.$ac_ext <<_ACEOF |
9570 |
> |
# Is the header present? |
9571 |
> |
{ $as_echo "$as_me:$LINENO: checking openbabel/babelconfig.h presence" >&5 |
9572 |
> |
$as_echo_n "checking openbabel/babelconfig.h presence... " >&6; } |
9573 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9574 |
|
/* confdefs.h. */ |
9575 |
|
_ACEOF |
9576 |
|
cat confdefs.h >>conftest.$ac_ext |
9577 |
|
cat >>conftest.$ac_ext <<_ACEOF |
9578 |
|
/* end confdefs.h. */ |
9579 |
< |
$ac_includes_default |
7065 |
< |
#ifdef FC_DUMMY_MAIN |
7066 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7067 |
< |
# ifdef __cplusplus |
7068 |
< |
extern "C" |
7069 |
< |
# endif |
7070 |
< |
int FC_DUMMY_MAIN() { return 1; } |
7071 |
< |
#endif |
7072 |
< |
#endif |
7073 |
< |
int |
7074 |
< |
main () |
7075 |
< |
{ |
7076 |
< |
if ((size_t *) 0) |
7077 |
< |
return 0; |
7078 |
< |
if (sizeof (size_t)) |
7079 |
< |
return 0; |
7080 |
< |
; |
7081 |
< |
return 0; |
7082 |
< |
} |
9579 |
> |
#include <openbabel/babelconfig.h> |
9580 |
|
_ACEOF |
9581 |
< |
rm -f conftest.$ac_objext |
9582 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9583 |
< |
(eval $ac_compile) 2>conftest.er1 |
9581 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
9582 |
> |
case "(($ac_try" in |
9583 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9584 |
> |
*) ac_try_echo=$ac_try;; |
9585 |
> |
esac |
9586 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9587 |
> |
$as_echo "$ac_try_echo") >&5 |
9588 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
9589 |
|
ac_status=$? |
9590 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
9591 |
|
rm -f conftest.er1 |
9592 |
|
cat conftest.err >&5 |
9593 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9594 |
< |
(exit $ac_status); } && |
9595 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
9596 |
< |
|| test ! -s conftest.err' |
9597 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9598 |
< |
(eval $ac_try) 2>&5 |
7097 |
< |
ac_status=$? |
7098 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7099 |
< |
(exit $ac_status); }; } && |
7100 |
< |
{ ac_try='test -s conftest.$ac_objext' |
7101 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7102 |
< |
(eval $ac_try) 2>&5 |
7103 |
< |
ac_status=$? |
7104 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7105 |
< |
(exit $ac_status); }; }; then |
7106 |
< |
ac_cv_type_size_t=yes |
9593 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9594 |
> |
(exit $ac_status); } >/dev/null && { |
9595 |
> |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
9596 |
> |
test ! -s conftest.err |
9597 |
> |
}; then |
9598 |
> |
ac_header_preproc=yes |
9599 |
|
else |
9600 |
< |
echo "$as_me: failed program was:" >&5 |
9600 |
> |
$as_echo "$as_me: failed program was:" >&5 |
9601 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9602 |
|
|
9603 |
< |
ac_cv_type_size_t=no |
9603 |
> |
ac_header_preproc=no |
9604 |
|
fi |
9605 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9605 |
> |
|
9606 |
> |
rm -f conftest.err conftest.$ac_ext |
9607 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9608 |
> |
$as_echo "$ac_header_preproc" >&6; } |
9609 |
> |
|
9610 |
> |
# So? What about this header? |
9611 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9612 |
> |
yes:no: ) |
9613 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9614 |
> |
$as_echo "$as_me: WARNING: openbabel/babelconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9615 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: proceeding with the compiler's result" >&5 |
9616 |
> |
$as_echo "$as_me: WARNING: openbabel/babelconfig.h: proceeding with the compiler's result" >&2;} |
9617 |
> |
ac_header_preproc=yes |
9618 |
> |
;; |
9619 |
> |
no:yes:* ) |
9620 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: present but cannot be compiled" >&5 |
9621 |
> |
$as_echo "$as_me: WARNING: openbabel/babelconfig.h: present but cannot be compiled" >&2;} |
9622 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: check for missing prerequisite headers?" >&5 |
9623 |
> |
$as_echo "$as_me: WARNING: openbabel/babelconfig.h: check for missing prerequisite headers?" >&2;} |
9624 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: see the Autoconf documentation" >&5 |
9625 |
> |
$as_echo "$as_me: WARNING: openbabel/babelconfig.h: see the Autoconf documentation" >&2;} |
9626 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: section \"Present But Cannot Be Compiled\"" >&5 |
9627 |
> |
$as_echo "$as_me: WARNING: openbabel/babelconfig.h: section \"Present But Cannot Be Compiled\"" >&2;} |
9628 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: proceeding with the preprocessor's result" >&5 |
9629 |
> |
$as_echo "$as_me: WARNING: openbabel/babelconfig.h: proceeding with the preprocessor's result" >&2;} |
9630 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: in the future, the compiler will take precedence" >&5 |
9631 |
> |
$as_echo "$as_me: WARNING: openbabel/babelconfig.h: in the future, the compiler will take precedence" >&2;} |
9632 |
> |
( cat <<\_ASBOX |
9633 |
> |
## ------------------------------ ## |
9634 |
> |
## Report this to gezelter@nd.edu ## |
9635 |
> |
## ------------------------------ ## |
9636 |
> |
_ASBOX |
9637 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
9638 |
> |
;; |
9639 |
> |
esac |
9640 |
> |
{ $as_echo "$as_me:$LINENO: checking for openbabel/babelconfig.h" >&5 |
9641 |
> |
$as_echo_n "checking for openbabel/babelconfig.h... " >&6; } |
9642 |
> |
if test "${ac_cv_header_openbabel_babelconfig_h+set}" = set; then |
9643 |
> |
$as_echo_n "(cached) " >&6 |
9644 |
> |
else |
9645 |
> |
ac_cv_header_openbabel_babelconfig_h=$ac_header_preproc |
9646 |
|
fi |
9647 |
< |
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
9648 |
< |
echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
9649 |
< |
if test $ac_cv_type_size_t = yes; then |
9650 |
< |
: |
9647 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_babelconfig_h" >&5 |
9648 |
> |
$as_echo "$ac_cv_header_openbabel_babelconfig_h" >&6; } |
9649 |
> |
|
9650 |
> |
fi |
9651 |
> |
if test $ac_cv_header_openbabel_babelconfig_h = yes; then |
9652 |
> |
openbabel_cv_openbabel_h=yes |
9653 |
|
else |
9654 |
+ |
openbabel_cv_openbabel_h=no |
9655 |
+ |
fi |
9656 |
|
|
7121 |
– |
cat >>confdefs.h <<_ACEOF |
7122 |
– |
#define size_t unsigned |
7123 |
– |
_ACEOF |
9657 |
|
|
9658 |
+ |
if test "${ac_cv_header_openbabel_obconversion_h+set}" = set; then |
9659 |
+ |
{ $as_echo "$as_me:$LINENO: checking for openbabel/obconversion.h" >&5 |
9660 |
+ |
$as_echo_n "checking for openbabel/obconversion.h... " >&6; } |
9661 |
+ |
if test "${ac_cv_header_openbabel_obconversion_h+set}" = set; then |
9662 |
+ |
$as_echo_n "(cached) " >&6 |
9663 |
|
fi |
9664 |
< |
|
9665 |
< |
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
7128 |
< |
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
7129 |
< |
if test "${ac_cv_header_time+set}" = set; then |
7130 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9664 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_obconversion_h" >&5 |
9665 |
> |
$as_echo "$ac_cv_header_openbabel_obconversion_h" >&6; } |
9666 |
|
else |
9667 |
< |
cat >conftest.$ac_ext <<_ACEOF |
9667 |
> |
# Is the header compilable? |
9668 |
> |
{ $as_echo "$as_me:$LINENO: checking openbabel/obconversion.h usability" >&5 |
9669 |
> |
$as_echo_n "checking openbabel/obconversion.h usability... " >&6; } |
9670 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9671 |
|
/* confdefs.h. */ |
9672 |
|
_ACEOF |
9673 |
|
cat confdefs.h >>conftest.$ac_ext |
9674 |
|
cat >>conftest.$ac_ext <<_ACEOF |
9675 |
|
/* end confdefs.h. */ |
9676 |
< |
#include <sys/types.h> |
9677 |
< |
#include <sys/time.h> |
7140 |
< |
#include <time.h> |
7141 |
< |
|
7142 |
< |
#ifdef FC_DUMMY_MAIN |
7143 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7144 |
< |
# ifdef __cplusplus |
7145 |
< |
extern "C" |
7146 |
< |
# endif |
7147 |
< |
int FC_DUMMY_MAIN() { return 1; } |
7148 |
< |
#endif |
7149 |
< |
#endif |
7150 |
< |
int |
7151 |
< |
main () |
7152 |
< |
{ |
7153 |
< |
if ((struct tm *) 0) |
7154 |
< |
return 0; |
7155 |
< |
; |
7156 |
< |
return 0; |
7157 |
< |
} |
9676 |
> |
$ac_includes_default |
9677 |
> |
#include <openbabel/obconversion.h> |
9678 |
|
_ACEOF |
9679 |
|
rm -f conftest.$ac_objext |
9680 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9681 |
< |
(eval $ac_compile) 2>conftest.er1 |
9680 |
> |
if { (ac_try="$ac_compile" |
9681 |
> |
case "(($ac_try" in |
9682 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9683 |
> |
*) ac_try_echo=$ac_try;; |
9684 |
> |
esac |
9685 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9686 |
> |
$as_echo "$ac_try_echo") >&5 |
9687 |
> |
(eval "$ac_compile") 2>conftest.er1 |
9688 |
|
ac_status=$? |
9689 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
9690 |
|
rm -f conftest.er1 |
9691 |
|
cat conftest.err >&5 |
9692 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9693 |
< |
(exit $ac_status); } && |
9694 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
9695 |
< |
|| test ! -s conftest.err' |
9696 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9697 |
< |
(eval $ac_try) 2>&5 |
7172 |
< |
ac_status=$? |
7173 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7174 |
< |
(exit $ac_status); }; } && |
7175 |
< |
{ ac_try='test -s conftest.$ac_objext' |
7176 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7177 |
< |
(eval $ac_try) 2>&5 |
7178 |
< |
ac_status=$? |
7179 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7180 |
< |
(exit $ac_status); }; }; then |
7181 |
< |
ac_cv_header_time=yes |
9692 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9693 |
> |
(exit $ac_status); } && { |
9694 |
> |
test -z "$ac_cxx_werror_flag" || |
9695 |
> |
test ! -s conftest.err |
9696 |
> |
} && test -s conftest.$ac_objext; then |
9697 |
> |
ac_header_compiler=yes |
9698 |
|
else |
9699 |
< |
echo "$as_me: failed program was:" >&5 |
9699 |
> |
$as_echo "$as_me: failed program was:" >&5 |
9700 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9701 |
|
|
9702 |
< |
ac_cv_header_time=no |
9702 |
> |
ac_header_compiler=no |
9703 |
|
fi |
7188 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7189 |
– |
fi |
7190 |
– |
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
7191 |
– |
echo "${ECHO_T}$ac_cv_header_time" >&6 |
7192 |
– |
if test $ac_cv_header_time = yes; then |
9704 |
|
|
9705 |
< |
cat >>confdefs.h <<\_ACEOF |
9706 |
< |
#define TIME_WITH_SYS_TIME 1 |
9707 |
< |
_ACEOF |
9705 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9706 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9707 |
> |
$as_echo "$ac_header_compiler" >&6; } |
9708 |
|
|
9709 |
< |
fi |
9710 |
< |
|
9711 |
< |
echo "$as_me:$LINENO: checking for clock_t" >&5 |
9712 |
< |
echo $ECHO_N "checking for clock_t... $ECHO_C" >&6 |
7202 |
< |
if test "${ac_cv_type_clock_t+set}" = set; then |
7203 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7204 |
< |
else |
7205 |
< |
cat >conftest.$ac_ext <<_ACEOF |
9709 |
> |
# Is the header present? |
9710 |
> |
{ $as_echo "$as_me:$LINENO: checking openbabel/obconversion.h presence" >&5 |
9711 |
> |
$as_echo_n "checking openbabel/obconversion.h presence... " >&6; } |
9712 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9713 |
|
/* confdefs.h. */ |
9714 |
|
_ACEOF |
9715 |
|
cat confdefs.h >>conftest.$ac_ext |
9716 |
|
cat >>conftest.$ac_ext <<_ACEOF |
9717 |
|
/* end confdefs.h. */ |
9718 |
< |
$ac_includes_default |
7212 |
< |
#ifdef FC_DUMMY_MAIN |
7213 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7214 |
< |
# ifdef __cplusplus |
7215 |
< |
extern "C" |
7216 |
< |
# endif |
7217 |
< |
int FC_DUMMY_MAIN() { return 1; } |
7218 |
< |
#endif |
7219 |
< |
#endif |
7220 |
< |
int |
7221 |
< |
main () |
7222 |
< |
{ |
7223 |
< |
if ((clock_t *) 0) |
7224 |
< |
return 0; |
7225 |
< |
if (sizeof (clock_t)) |
7226 |
< |
return 0; |
7227 |
< |
; |
7228 |
< |
return 0; |
7229 |
< |
} |
9718 |
> |
#include <openbabel/obconversion.h> |
9719 |
|
_ACEOF |
9720 |
< |
rm -f conftest.$ac_objext |
9721 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9722 |
< |
(eval $ac_compile) 2>conftest.er1 |
9720 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
9721 |
> |
case "(($ac_try" in |
9722 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9723 |
> |
*) ac_try_echo=$ac_try;; |
9724 |
> |
esac |
9725 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9726 |
> |
$as_echo "$ac_try_echo") >&5 |
9727 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
9728 |
|
ac_status=$? |
9729 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
9730 |
|
rm -f conftest.er1 |
9731 |
|
cat conftest.err >&5 |
9732 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9733 |
< |
(exit $ac_status); } && |
9734 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
9735 |
< |
|| test ! -s conftest.err' |
9736 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9737 |
< |
(eval $ac_try) 2>&5 |
7244 |
< |
ac_status=$? |
7245 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7246 |
< |
(exit $ac_status); }; } && |
7247 |
< |
{ ac_try='test -s conftest.$ac_objext' |
7248 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7249 |
< |
(eval $ac_try) 2>&5 |
7250 |
< |
ac_status=$? |
7251 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7252 |
< |
(exit $ac_status); }; }; then |
7253 |
< |
ac_cv_type_clock_t=yes |
9732 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9733 |
> |
(exit $ac_status); } >/dev/null && { |
9734 |
> |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
9735 |
> |
test ! -s conftest.err |
9736 |
> |
}; then |
9737 |
> |
ac_header_preproc=yes |
9738 |
|
else |
9739 |
< |
echo "$as_me: failed program was:" >&5 |
9739 |
> |
$as_echo "$as_me: failed program was:" >&5 |
9740 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9741 |
|
|
9742 |
< |
ac_cv_type_clock_t=no |
9742 |
> |
ac_header_preproc=no |
9743 |
|
fi |
7260 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7261 |
– |
fi |
7262 |
– |
echo "$as_me:$LINENO: result: $ac_cv_type_clock_t" >&5 |
7263 |
– |
echo "${ECHO_T}$ac_cv_type_clock_t" >&6 |
7264 |
– |
if test $ac_cv_type_clock_t = yes; then |
9744 |
|
|
9745 |
< |
cat >>confdefs.h <<_ACEOF |
9746 |
< |
#define HAVE_CLOCK_T 1 |
9747 |
< |
_ACEOF |
9745 |
> |
rm -f conftest.err conftest.$ac_ext |
9746 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9747 |
> |
$as_echo "$ac_header_preproc" >&6; } |
9748 |
|
|
9749 |
< |
|
9749 |
> |
# So? What about this header? |
9750 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9751 |
> |
yes:no: ) |
9752 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9753 |
> |
$as_echo "$as_me: WARNING: openbabel/obconversion.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9754 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: proceeding with the compiler's result" >&5 |
9755 |
> |
$as_echo "$as_me: WARNING: openbabel/obconversion.h: proceeding with the compiler's result" >&2;} |
9756 |
> |
ac_header_preproc=yes |
9757 |
> |
;; |
9758 |
> |
no:yes:* ) |
9759 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: present but cannot be compiled" >&5 |
9760 |
> |
$as_echo "$as_me: WARNING: openbabel/obconversion.h: present but cannot be compiled" >&2;} |
9761 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: check for missing prerequisite headers?" >&5 |
9762 |
> |
$as_echo "$as_me: WARNING: openbabel/obconversion.h: check for missing prerequisite headers?" >&2;} |
9763 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: see the Autoconf documentation" >&5 |
9764 |
> |
$as_echo "$as_me: WARNING: openbabel/obconversion.h: see the Autoconf documentation" >&2;} |
9765 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: section \"Present But Cannot Be Compiled\"" >&5 |
9766 |
> |
$as_echo "$as_me: WARNING: openbabel/obconversion.h: section \"Present But Cannot Be Compiled\"" >&2;} |
9767 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: proceeding with the preprocessor's result" >&5 |
9768 |
> |
$as_echo "$as_me: WARNING: openbabel/obconversion.h: proceeding with the preprocessor's result" >&2;} |
9769 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: in the future, the compiler will take precedence" >&5 |
9770 |
> |
$as_echo "$as_me: WARNING: openbabel/obconversion.h: in the future, the compiler will take precedence" >&2;} |
9771 |
> |
( cat <<\_ASBOX |
9772 |
> |
## ------------------------------ ## |
9773 |
> |
## Report this to gezelter@nd.edu ## |
9774 |
> |
## ------------------------------ ## |
9775 |
> |
_ASBOX |
9776 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
9777 |
> |
;; |
9778 |
> |
esac |
9779 |
> |
{ $as_echo "$as_me:$LINENO: checking for openbabel/obconversion.h" >&5 |
9780 |
> |
$as_echo_n "checking for openbabel/obconversion.h... " >&6; } |
9781 |
> |
if test "${ac_cv_header_openbabel_obconversion_h+set}" = set; then |
9782 |
> |
$as_echo_n "(cached) " >&6 |
9783 |
> |
else |
9784 |
> |
ac_cv_header_openbabel_obconversion_h=$ac_header_preproc |
9785 |
|
fi |
9786 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_obconversion_h" >&5 |
9787 |
+ |
$as_echo "$ac_cv_header_openbabel_obconversion_h" >&6; } |
9788 |
|
|
9789 |
< |
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
9790 |
< |
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
9791 |
< |
if test "${ac_cv_c_const+set}" = set; then |
7276 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9789 |
> |
fi |
9790 |
> |
if test $ac_cv_header_openbabel_obconversion_h = yes; then |
9791 |
> |
openbabel_cv_obconversion_h=yes |
9792 |
|
else |
9793 |
< |
cat >conftest.$ac_ext <<_ACEOF |
9794 |
< |
/* confdefs.h. */ |
9793 |
> |
openbabel_cv_obconversion_h=no |
9794 |
> |
fi |
9795 |
> |
|
9796 |
> |
|
9797 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9798 |
> |
|
9799 |
> |
/* confdefs.h. */ |
9800 |
|
_ACEOF |
9801 |
|
cat confdefs.h >>conftest.$ac_ext |
9802 |
|
cat >>conftest.$ac_ext <<_ACEOF |
9803 |
|
/* end confdefs.h. */ |
9804 |
|
|
9805 |
+ |
#include <openbabel/babelconfig.h> |
9806 |
+ |
#include <openbabel/obconversion.h> |
9807 |
+ |
using namespace std; |
9808 |
+ |
using namespace OpenBabel; |
9809 |
+ |
|
9810 |
|
#ifdef FC_DUMMY_MAIN |
9811 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
9812 |
|
# ifdef __cplusplus |
9818 |
|
int |
9819 |
|
main () |
9820 |
|
{ |
7296 |
– |
/* FIXME: Include the comments suggested by Paul. */ |
7297 |
– |
#ifndef __cplusplus |
7298 |
– |
/* Ultrix mips cc rejects this. */ |
7299 |
– |
typedef int charset[2]; |
7300 |
– |
const charset x; |
7301 |
– |
/* SunOS 4.1.1 cc rejects this. */ |
7302 |
– |
char const *const *ccp; |
7303 |
– |
char **p; |
7304 |
– |
/* NEC SVR4.0.2 mips cc rejects this. */ |
7305 |
– |
struct point {int x, y;}; |
7306 |
– |
static struct point const zero = {0,0}; |
7307 |
– |
/* AIX XL C 1.02.0.0 rejects this. |
7308 |
– |
It does not let you subtract one const X* pointer from another in |
7309 |
– |
an arm of an if-expression whose if-part is not a constant |
7310 |
– |
expression */ |
7311 |
– |
const char *g = "string"; |
7312 |
– |
ccp = &g + (g ? g-g : 0); |
7313 |
– |
/* HPUX 7.0 cc rejects these. */ |
7314 |
– |
++ccp; |
7315 |
– |
p = (char**) ccp; |
7316 |
– |
ccp = (char const *const *) p; |
7317 |
– |
{ /* SCO 3.2v4 cc rejects this. */ |
7318 |
– |
char *t; |
7319 |
– |
char const *s = 0 ? (char *) 0 : (char const *) 0; |
9821 |
|
|
9822 |
< |
*t++ = 0; |
7322 |
< |
} |
7323 |
< |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
7324 |
< |
int x[] = {25, 17}; |
7325 |
< |
const int *foo = &x[0]; |
7326 |
< |
++foo; |
7327 |
< |
} |
7328 |
< |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
7329 |
< |
typedef const int *iptr; |
7330 |
< |
iptr p = 0; |
7331 |
< |
++p; |
7332 |
< |
} |
7333 |
< |
{ /* AIX XL C 1.02.0.0 rejects this saying |
7334 |
< |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
7335 |
< |
struct s { int j; const int *ap[3]; }; |
7336 |
< |
struct s *b; b->j = 5; |
7337 |
< |
} |
7338 |
< |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
7339 |
< |
const int foo = 10; |
7340 |
< |
} |
7341 |
< |
#endif |
9822 |
> |
OBConversion Conv(&cin, &cout); |
9823 |
|
|
9824 |
+ |
|
9825 |
|
; |
9826 |
|
return 0; |
9827 |
|
} |
9828 |
|
_ACEOF |
9829 |
< |
rm -f conftest.$ac_objext |
9830 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9831 |
< |
(eval $ac_compile) 2>conftest.er1 |
9829 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
9830 |
> |
if { (ac_try="$ac_link" |
9831 |
> |
case "(($ac_try" in |
9832 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9833 |
> |
*) ac_try_echo=$ac_try;; |
9834 |
> |
esac |
9835 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9836 |
> |
$as_echo "$ac_try_echo") >&5 |
9837 |
> |
(eval "$ac_link") 2>conftest.er1 |
9838 |
|
ac_status=$? |
9839 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
9840 |
|
rm -f conftest.er1 |
9841 |
|
cat conftest.err >&5 |
9842 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9843 |
< |
(exit $ac_status); } && |
9844 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
9845 |
< |
|| test ! -s conftest.err' |
9846 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9847 |
< |
(eval $ac_try) 2>&5 |
9848 |
< |
ac_status=$? |
9849 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9850 |
< |
(exit $ac_status); }; } && |
9851 |
< |
{ ac_try='test -s conftest.$ac_objext' |
9852 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9853 |
< |
(eval $ac_try) 2>&5 |
9854 |
< |
ac_status=$? |
7367 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7368 |
< |
(exit $ac_status); }; }; then |
7369 |
< |
ac_cv_c_const=yes |
9842 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9843 |
> |
(exit $ac_status); } && { |
9844 |
> |
test -z "$ac_cxx_werror_flag" || |
9845 |
> |
test ! -s conftest.err |
9846 |
> |
} && test -s conftest$ac_exeext && { |
9847 |
> |
test "$cross_compiling" = yes || |
9848 |
> |
$as_test_x conftest$ac_exeext |
9849 |
> |
}; then |
9850 |
> |
|
9851 |
> |
openbabel_lib_found="yes" |
9852 |
> |
{ $as_echo "$as_me:$LINENO: result: found" >&5 |
9853 |
> |
$as_echo "found" >&6; } |
9854 |
> |
|
9855 |
|
else |
9856 |
< |
echo "$as_me: failed program was:" >&5 |
9856 |
> |
$as_echo "$as_me: failed program was:" >&5 |
9857 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9858 |
|
|
9859 |
< |
ac_cv_c_const=no |
9859 |
> |
|
9860 |
> |
openbabel_lib_found="no" |
9861 |
> |
{ $as_echo "$as_me:$LINENO: result: not found" >&5 |
9862 |
> |
$as_echo "not found" >&6; } |
9863 |
> |
|
9864 |
> |
|
9865 |
|
fi |
7376 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7377 |
– |
fi |
7378 |
– |
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
7379 |
– |
echo "${ECHO_T}$ac_cv_c_const" >&6 |
7380 |
– |
if test $ac_cv_c_const = no; then |
9866 |
|
|
9867 |
< |
cat >>confdefs.h <<\_ACEOF |
9868 |
< |
#define const |
9869 |
< |
_ACEOF |
9867 |
> |
rm -rf conftest.dSYM |
9868 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9869 |
> |
conftest$ac_exeext conftest.$ac_ext |
9870 |
> |
ac_ext=c |
9871 |
> |
ac_cpp='$CPP $CPPFLAGS' |
9872 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9873 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9874 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
9875 |
> |
|
9876 |
> |
LDFLAGS="$OPENBABEL_OLD_LDFLAGS" |
9877 |
> |
CPPFLAGS="$OPENBABEL_OLD_CPPFLAGS" |
9878 |
|
|
9879 |
+ |
if test "$openbabel_lib_found" = "yes" -a "$openbabel_cv_openbabel_h" = "yes" -a "$openbabel_cv_obconversion_h" = "yes"; then |
9880 |
+ |
USE_OPENBABEL=yes |
9881 |
+ |
OPENBABEL_INC_DIR="${OPENBABEL_HOME}/include/openbabel-2.0" |
9882 |
+ |
OPENBABEL_LIB_DIR="${OPENBABEL_HOME}/lib" |
9883 |
+ |
OPENBABEL_LIB="-lopenbabel" |
9884 |
+ |
else |
9885 |
+ |
{ $as_echo "$as_me:$LINENO: checking openbabel in ${OPENBABEL_HOME}" >&5 |
9886 |
+ |
$as_echo_n "checking openbabel in ${OPENBABEL_HOME}... " >&6; } |
9887 |
+ |
OPENBABEL_INC_DIR= |
9888 |
+ |
OPENBABEL_LIB_DIR= |
9889 |
+ |
OPENBABEL_LIB= |
9890 |
+ |
USE_OPENBABEL=no |
9891 |
+ |
{ $as_echo "$as_me:$LINENO: result: failed" >&5 |
9892 |
+ |
$as_echo "failed" >&6; } |
9893 |
+ |
echo "" |
9894 |
+ |
echo "*********************************************************" |
9895 |
+ |
echo "* WARNING: Could not find a working openbabel-2.x *" |
9896 |
+ |
echo "* installation If you need OOPSE to be able to convert *" |
9897 |
+ |
echo "* xyz or pdb files you need to specify a valid *" |
9898 |
+ |
echo "* openbabel-2.x installation with --with-openbabel=DIR *" |
9899 |
+ |
echo "* *" |
9900 |
+ |
echo "* OOPSE will still work without openbabel installed. *" |
9901 |
+ |
echo "*********************************************************" |
9902 |
+ |
echo "" |
9903 |
+ |
fi |
9904 |
+ |
|
9905 |
+ |
|
9906 |
+ |
|
9907 |
+ |
|
9908 |
|
fi |
9909 |
+ |
fi |
9910 |
|
|
9911 |
< |
echo "$as_me:$LINENO: checking for inline" >&5 |
9912 |
< |
echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
9913 |
< |
if test "${ac_cv_c_inline+set}" = set; then |
9914 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9911 |
> |
|
9912 |
> |
# Checks for header files. |
9913 |
> |
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
9914 |
> |
$as_echo_n "checking for ANSI C header files... " >&6; } |
9915 |
> |
if test "${ac_cv_header_stdc+set}" = set; then |
9916 |
> |
$as_echo_n "(cached) " >&6 |
9917 |
|
else |
7393 |
– |
ac_cv_c_inline=no |
7394 |
– |
for ac_kw in inline __inline__ __inline; do |
9918 |
|
cat >conftest.$ac_ext <<_ACEOF |
9919 |
|
/* confdefs.h. */ |
9920 |
|
_ACEOF |
9921 |
|
cat confdefs.h >>conftest.$ac_ext |
9922 |
|
cat >>conftest.$ac_ext <<_ACEOF |
9923 |
|
/* end confdefs.h. */ |
9924 |
< |
#ifndef __cplusplus |
9925 |
< |
typedef int foo_t; |
9926 |
< |
static $ac_kw foo_t static_foo () {return 0; } |
9927 |
< |
$ac_kw foo_t foo () {return 0; } |
9924 |
> |
#include <stdlib.h> |
9925 |
> |
#include <stdarg.h> |
9926 |
> |
#include <string.h> |
9927 |
> |
#include <float.h> |
9928 |
> |
|
9929 |
> |
#ifdef FC_DUMMY_MAIN |
9930 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
9931 |
> |
# ifdef __cplusplus |
9932 |
> |
extern "C" |
9933 |
> |
# endif |
9934 |
> |
int FC_DUMMY_MAIN() { return 1; } |
9935 |
|
#endif |
9936 |
+ |
#endif |
9937 |
+ |
int |
9938 |
+ |
main () |
9939 |
+ |
{ |
9940 |
|
|
9941 |
+ |
; |
9942 |
+ |
return 0; |
9943 |
+ |
} |
9944 |
|
_ACEOF |
9945 |
|
rm -f conftest.$ac_objext |
9946 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9947 |
< |
(eval $ac_compile) 2>conftest.er1 |
9946 |
> |
if { (ac_try="$ac_compile" |
9947 |
> |
case "(($ac_try" in |
9948 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9949 |
> |
*) ac_try_echo=$ac_try;; |
9950 |
> |
esac |
9951 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9952 |
> |
$as_echo "$ac_try_echo") >&5 |
9953 |
> |
(eval "$ac_compile") 2>conftest.er1 |
9954 |
|
ac_status=$? |
9955 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
9956 |
|
rm -f conftest.er1 |
9957 |
|
cat conftest.err >&5 |
9958 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9959 |
< |
(exit $ac_status); } && |
9960 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
9961 |
< |
|| test ! -s conftest.err' |
9962 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9963 |
< |
(eval $ac_try) 2>&5 |
7421 |
< |
ac_status=$? |
7422 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7423 |
< |
(exit $ac_status); }; } && |
7424 |
< |
{ ac_try='test -s conftest.$ac_objext' |
7425 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7426 |
< |
(eval $ac_try) 2>&5 |
7427 |
< |
ac_status=$? |
7428 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7429 |
< |
(exit $ac_status); }; }; then |
7430 |
< |
ac_cv_c_inline=$ac_kw; break |
9958 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9959 |
> |
(exit $ac_status); } && { |
9960 |
> |
test -z "$ac_c_werror_flag" || |
9961 |
> |
test ! -s conftest.err |
9962 |
> |
} && test -s conftest.$ac_objext; then |
9963 |
> |
ac_cv_header_stdc=yes |
9964 |
|
else |
9965 |
< |
echo "$as_me: failed program was:" >&5 |
9965 |
> |
$as_echo "$as_me: failed program was:" >&5 |
9966 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9967 |
|
|
9968 |
+ |
ac_cv_header_stdc=no |
9969 |
|
fi |
7436 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7437 |
– |
done |
9970 |
|
|
9971 |
< |
fi |
7440 |
< |
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
7441 |
< |
echo "${ECHO_T}$ac_cv_c_inline" >&6 |
9971 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9972 |
|
|
9973 |
+ |
if test $ac_cv_header_stdc = yes; then |
9974 |
+ |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
9975 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
9976 |
+ |
/* confdefs.h. */ |
9977 |
+ |
_ACEOF |
9978 |
+ |
cat confdefs.h >>conftest.$ac_ext |
9979 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
9980 |
+ |
/* end confdefs.h. */ |
9981 |
+ |
#include <string.h> |
9982 |
|
|
7444 |
– |
case $ac_cv_c_inline in |
7445 |
– |
inline | yes) ;; |
7446 |
– |
*) |
7447 |
– |
case $ac_cv_c_inline in |
7448 |
– |
no) ac_val=;; |
7449 |
– |
*) ac_val=$ac_cv_c_inline;; |
7450 |
– |
esac |
7451 |
– |
cat >>confdefs.h <<_ACEOF |
7452 |
– |
#ifndef __cplusplus |
7453 |
– |
#define inline $ac_val |
7454 |
– |
#endif |
9983 |
|
_ACEOF |
9984 |
< |
;; |
9985 |
< |
esac |
9984 |
> |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9985 |
> |
$EGREP "memchr" >/dev/null 2>&1; then |
9986 |
> |
: |
9987 |
> |
else |
9988 |
> |
ac_cv_header_stdc=no |
9989 |
> |
fi |
9990 |
> |
rm -f conftest* |
9991 |
|
|
7459 |
– |
|
7460 |
– |
# Checks for library functions. |
7461 |
– |
|
7462 |
– |
for ac_header in stdlib.h |
7463 |
– |
do |
7464 |
– |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7465 |
– |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7466 |
– |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7467 |
– |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
7468 |
– |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7469 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9992 |
|
fi |
9993 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9994 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
9995 |
< |
else |
9996 |
< |
# Is the header compilable? |
7475 |
< |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7476 |
< |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
7477 |
< |
cat >conftest.$ac_ext <<_ACEOF |
9993 |
> |
|
9994 |
> |
if test $ac_cv_header_stdc = yes; then |
9995 |
> |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
9996 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9997 |
|
/* confdefs.h. */ |
9998 |
|
_ACEOF |
9999 |
|
cat confdefs.h >>conftest.$ac_ext |
10000 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10001 |
|
/* end confdefs.h. */ |
10002 |
< |
$ac_includes_default |
10003 |
< |
#include <$ac_header> |
10002 |
> |
#include <stdlib.h> |
10003 |
> |
|
10004 |
|
_ACEOF |
10005 |
< |
rm -f conftest.$ac_objext |
10006 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
10007 |
< |
(eval $ac_compile) 2>conftest.er1 |
7489 |
< |
ac_status=$? |
7490 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
7491 |
< |
rm -f conftest.er1 |
7492 |
< |
cat conftest.err >&5 |
7493 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7494 |
< |
(exit $ac_status); } && |
7495 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
7496 |
< |
|| test ! -s conftest.err' |
7497 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7498 |
< |
(eval $ac_try) 2>&5 |
7499 |
< |
ac_status=$? |
7500 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7501 |
< |
(exit $ac_status); }; } && |
7502 |
< |
{ ac_try='test -s conftest.$ac_objext' |
7503 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7504 |
< |
(eval $ac_try) 2>&5 |
7505 |
< |
ac_status=$? |
7506 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7507 |
< |
(exit $ac_status); }; }; then |
7508 |
< |
ac_header_compiler=yes |
10005 |
> |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
10006 |
> |
$EGREP "free" >/dev/null 2>&1; then |
10007 |
> |
: |
10008 |
|
else |
10009 |
< |
echo "$as_me: failed program was:" >&5 |
10010 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
10009 |
> |
ac_cv_header_stdc=no |
10010 |
> |
fi |
10011 |
> |
rm -f conftest* |
10012 |
|
|
7513 |
– |
ac_header_compiler=no |
10013 |
|
fi |
7515 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7516 |
– |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7517 |
– |
echo "${ECHO_T}$ac_header_compiler" >&6 |
10014 |
|
|
10015 |
< |
# Is the header present? |
10016 |
< |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10017 |
< |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
10018 |
< |
cat >conftest.$ac_ext <<_ACEOF |
10015 |
> |
if test $ac_cv_header_stdc = yes; then |
10016 |
> |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
10017 |
> |
if test "$cross_compiling" = yes; then |
10018 |
> |
: |
10019 |
> |
else |
10020 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10021 |
|
/* confdefs.h. */ |
10022 |
|
_ACEOF |
10023 |
|
cat confdefs.h >>conftest.$ac_ext |
10024 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10025 |
|
/* end confdefs.h. */ |
10026 |
< |
#include <$ac_header> |
10026 |
> |
#include <ctype.h> |
10027 |
> |
#include <stdlib.h> |
10028 |
> |
#if ((' ' & 0x0FF) == 0x020) |
10029 |
> |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
10030 |
> |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
10031 |
> |
#else |
10032 |
> |
# define ISLOWER(c) \ |
10033 |
> |
(('a' <= (c) && (c) <= 'i') \ |
10034 |
> |
|| ('j' <= (c) && (c) <= 'r') \ |
10035 |
> |
|| ('s' <= (c) && (c) <= 'z')) |
10036 |
> |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
10037 |
> |
#endif |
10038 |
> |
|
10039 |
> |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
10040 |
> |
int |
10041 |
> |
main () |
10042 |
> |
{ |
10043 |
> |
int i; |
10044 |
> |
for (i = 0; i < 256; i++) |
10045 |
> |
if (XOR (islower (i), ISLOWER (i)) |
10046 |
> |
|| toupper (i) != TOUPPER (i)) |
10047 |
> |
return 2; |
10048 |
> |
return 0; |
10049 |
> |
} |
10050 |
|
_ACEOF |
7530 |
– |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
7531 |
– |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7532 |
– |
ac_status=$? |
7533 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
7534 |
– |
rm -f conftest.er1 |
7535 |
– |
cat conftest.err >&5 |
7536 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7537 |
– |
(exit $ac_status); } >/dev/null; then |
7538 |
– |
if test -s conftest.err; then |
7539 |
– |
ac_cpp_err=$ac_c_preproc_warn_flag |
7540 |
– |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
7541 |
– |
else |
7542 |
– |
ac_cpp_err= |
7543 |
– |
fi |
7544 |
– |
else |
7545 |
– |
ac_cpp_err=yes |
7546 |
– |
fi |
7547 |
– |
if test -z "$ac_cpp_err"; then |
7548 |
– |
ac_header_preproc=yes |
7549 |
– |
else |
7550 |
– |
echo "$as_me: failed program was:" >&5 |
7551 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
7552 |
– |
|
7553 |
– |
ac_header_preproc=no |
7554 |
– |
fi |
7555 |
– |
rm -f conftest.err conftest.$ac_ext |
7556 |
– |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7557 |
– |
echo "${ECHO_T}$ac_header_preproc" >&6 |
7558 |
– |
|
7559 |
– |
# So? What about this header? |
7560 |
– |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7561 |
– |
yes:no: ) |
7562 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7563 |
– |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
7564 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
7565 |
– |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
7566 |
– |
ac_header_preproc=yes |
7567 |
– |
;; |
7568 |
– |
no:yes:* ) |
7569 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7570 |
– |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
7571 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
7572 |
– |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
7573 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
7574 |
– |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
7575 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
7576 |
– |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
7577 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
7578 |
– |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
7579 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
7580 |
– |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
7581 |
– |
( |
7582 |
– |
cat <<\_ASBOX |
7583 |
– |
## ------------------------------ ## |
7584 |
– |
## Report this to gezelter@nd.edu ## |
7585 |
– |
## ------------------------------ ## |
7586 |
– |
_ASBOX |
7587 |
– |
) | |
7588 |
– |
sed "s/^/$as_me: WARNING: /" >&2 |
7589 |
– |
;; |
7590 |
– |
esac |
7591 |
– |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7592 |
– |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
7593 |
– |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7594 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7595 |
– |
else |
7596 |
– |
eval "$as_ac_Header=\$ac_header_preproc" |
7597 |
– |
fi |
7598 |
– |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7599 |
– |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
7600 |
– |
|
7601 |
– |
fi |
7602 |
– |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7603 |
– |
cat >>confdefs.h <<_ACEOF |
7604 |
– |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7605 |
– |
_ACEOF |
7606 |
– |
|
7607 |
– |
fi |
7608 |
– |
|
7609 |
– |
done |
7610 |
– |
|
7611 |
– |
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7612 |
– |
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
7613 |
– |
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
7614 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7615 |
– |
else |
7616 |
– |
if test "$cross_compiling" = yes; then |
7617 |
– |
ac_cv_func_malloc_0_nonnull=no |
7618 |
– |
else |
7619 |
– |
cat >conftest.$ac_ext <<_ACEOF |
7620 |
– |
/* confdefs.h. */ |
7621 |
– |
_ACEOF |
7622 |
– |
cat confdefs.h >>conftest.$ac_ext |
7623 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
7624 |
– |
/* end confdefs.h. */ |
7625 |
– |
#if STDC_HEADERS || HAVE_STDLIB_H |
7626 |
– |
# include <stdlib.h> |
7627 |
– |
#else |
7628 |
– |
char *malloc (); |
7629 |
– |
#endif |
7630 |
– |
|
7631 |
– |
#ifdef FC_DUMMY_MAIN |
7632 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7633 |
– |
# ifdef __cplusplus |
7634 |
– |
extern "C" |
7635 |
– |
# endif |
7636 |
– |
int FC_DUMMY_MAIN() { return 1; } |
7637 |
– |
#endif |
7638 |
– |
#endif |
7639 |
– |
int |
7640 |
– |
main () |
7641 |
– |
{ |
7642 |
– |
exit (malloc (0) ? 0 : 1); |
7643 |
– |
; |
7644 |
– |
return 0; |
7645 |
– |
} |
7646 |
– |
_ACEOF |
10051 |
|
rm -f conftest$ac_exeext |
10052 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10053 |
< |
(eval $ac_link) 2>&5 |
10052 |
> |
if { (ac_try="$ac_link" |
10053 |
> |
case "(($ac_try" in |
10054 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10055 |
> |
*) ac_try_echo=$ac_try;; |
10056 |
> |
esac |
10057 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10058 |
> |
$as_echo "$ac_try_echo") >&5 |
10059 |
> |
(eval "$ac_link") 2>&5 |
10060 |
|
ac_status=$? |
10061 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10061 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10062 |
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
10063 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10064 |
< |
(eval $ac_try) 2>&5 |
10063 |
> |
{ (case "(($ac_try" in |
10064 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10065 |
> |
*) ac_try_echo=$ac_try;; |
10066 |
> |
esac |
10067 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10068 |
> |
$as_echo "$ac_try_echo") >&5 |
10069 |
> |
(eval "$ac_try") 2>&5 |
10070 |
|
ac_status=$? |
10071 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10071 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10072 |
|
(exit $ac_status); }; }; then |
10073 |
< |
ac_cv_func_malloc_0_nonnull=yes |
10073 |
> |
: |
10074 |
|
else |
10075 |
< |
echo "$as_me: program exited with status $ac_status" >&5 |
10076 |
< |
echo "$as_me: failed program was:" >&5 |
10075 |
> |
$as_echo "$as_me: program exited with status $ac_status" >&5 |
10076 |
> |
$as_echo "$as_me: failed program was:" >&5 |
10077 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10078 |
|
|
10079 |
|
( exit $ac_status ) |
10080 |
< |
ac_cv_func_malloc_0_nonnull=no |
10080 |
> |
ac_cv_header_stdc=no |
10081 |
|
fi |
10082 |
< |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
10082 |
> |
rm -rf conftest.dSYM |
10083 |
> |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
10084 |
|
fi |
10085 |
+ |
|
10086 |
+ |
|
10087 |
|
fi |
10088 |
< |
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
10089 |
< |
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
10090 |
< |
if test $ac_cv_func_malloc_0_nonnull = yes; then |
10088 |
> |
fi |
10089 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
10090 |
> |
$as_echo "$ac_cv_header_stdc" >&6; } |
10091 |
> |
if test $ac_cv_header_stdc = yes; then |
10092 |
|
|
10093 |
|
cat >>confdefs.h <<\_ACEOF |
10094 |
< |
#define HAVE_MALLOC 1 |
10094 |
> |
#define STDC_HEADERS 1 |
10095 |
|
_ACEOF |
10096 |
|
|
10097 |
< |
else |
7679 |
< |
cat >>confdefs.h <<\_ACEOF |
7680 |
< |
#define HAVE_MALLOC 0 |
7681 |
< |
_ACEOF |
10097 |
> |
fi |
10098 |
|
|
7683 |
– |
case $LIBOBJS in |
7684 |
– |
"malloc.$ac_objext" | \ |
7685 |
– |
*" malloc.$ac_objext" | \ |
7686 |
– |
"malloc.$ac_objext "* | \ |
7687 |
– |
*" malloc.$ac_objext "* ) ;; |
7688 |
– |
*) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
7689 |
– |
esac |
10099 |
|
|
10100 |
|
|
7692 |
– |
cat >>confdefs.h <<\_ACEOF |
7693 |
– |
#define malloc rpl_malloc |
7694 |
– |
_ACEOF |
10101 |
|
|
7696 |
– |
fi |
10102 |
|
|
10103 |
|
|
10104 |
|
|
7700 |
– |
echo "$as_me:$LINENO: checking for working memcmp" >&5 |
7701 |
– |
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 |
7702 |
– |
if test "${ac_cv_func_memcmp_working+set}" = set; then |
7703 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7704 |
– |
else |
7705 |
– |
if test "$cross_compiling" = yes; then |
7706 |
– |
ac_cv_func_memcmp_working=no |
7707 |
– |
else |
7708 |
– |
cat >conftest.$ac_ext <<_ACEOF |
7709 |
– |
/* confdefs.h. */ |
7710 |
– |
_ACEOF |
7711 |
– |
cat confdefs.h >>conftest.$ac_ext |
7712 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
7713 |
– |
/* end confdefs.h. */ |
7714 |
– |
$ac_includes_default |
7715 |
– |
#ifdef FC_DUMMY_MAIN |
7716 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7717 |
– |
# ifdef __cplusplus |
7718 |
– |
extern "C" |
7719 |
– |
# endif |
7720 |
– |
int FC_DUMMY_MAIN() { return 1; } |
7721 |
– |
#endif |
7722 |
– |
#endif |
7723 |
– |
int |
7724 |
– |
main () |
7725 |
– |
{ |
10105 |
|
|
7727 |
– |
/* Some versions of memcmp are not 8-bit clean. */ |
7728 |
– |
char c0 = 0x40, c1 = 0x80, c2 = 0x81; |
7729 |
– |
if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7730 |
– |
exit (1); |
10106 |
|
|
7732 |
– |
/* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
7733 |
– |
or more and with at least one buffer not starting on a 4-byte boundary. |
7734 |
– |
William Lewis provided this test program. */ |
7735 |
– |
{ |
7736 |
– |
char foo[21]; |
7737 |
– |
char bar[21]; |
7738 |
– |
int i; |
7739 |
– |
for (i = 0; i < 4; i++) |
7740 |
– |
{ |
7741 |
– |
char *a = foo + i; |
7742 |
– |
char *b = bar + i; |
7743 |
– |
strcpy (a, "--------01111111"); |
7744 |
– |
strcpy (b, "--------10000000"); |
7745 |
– |
if (memcmp (a, b, 16) >= 0) |
7746 |
– |
exit (1); |
7747 |
– |
} |
7748 |
– |
exit (0); |
7749 |
– |
} |
10107 |
|
|
7751 |
– |
; |
7752 |
– |
return 0; |
7753 |
– |
} |
7754 |
– |
_ACEOF |
7755 |
– |
rm -f conftest$ac_exeext |
7756 |
– |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7757 |
– |
(eval $ac_link) 2>&5 |
7758 |
– |
ac_status=$? |
7759 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7760 |
– |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7761 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7762 |
– |
(eval $ac_try) 2>&5 |
7763 |
– |
ac_status=$? |
7764 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7765 |
– |
(exit $ac_status); }; }; then |
7766 |
– |
ac_cv_func_memcmp_working=yes |
7767 |
– |
else |
7768 |
– |
echo "$as_me: program exited with status $ac_status" >&5 |
7769 |
– |
echo "$as_me: failed program was:" >&5 |
7770 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
10108 |
|
|
7772 |
– |
( exit $ac_status ) |
7773 |
– |
ac_cv_func_memcmp_working=no |
7774 |
– |
fi |
7775 |
– |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
7776 |
– |
fi |
7777 |
– |
fi |
7778 |
– |
echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
7779 |
– |
echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 |
7780 |
– |
test $ac_cv_func_memcmp_working = no && case $LIBOBJS in |
7781 |
– |
"memcmp.$ac_objext" | \ |
7782 |
– |
*" memcmp.$ac_objext" | \ |
7783 |
– |
"memcmp.$ac_objext "* | \ |
7784 |
– |
*" memcmp.$ac_objext "* ) ;; |
7785 |
– |
*) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; |
7786 |
– |
esac |
10109 |
|
|
10110 |
|
|
10111 |
|
|
10112 |
< |
for ac_header in stdlib.h |
10113 |
< |
do |
10114 |
< |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10115 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10116 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10117 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10118 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10119 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10112 |
> |
|
10113 |
> |
|
10114 |
> |
for ac_header in libintl.h limits.h machine/hal_sysinfo.h stdlib.h string.h strings.h sys/param.h sys/pstat.h sys/sysctl.h sys/sysinfo.h sys/sysmp.h sys/systemcfg.h sys/table.h sys/time.h unistd.h |
10115 |
> |
do |
10116 |
> |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10117 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10118 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10119 |
> |
$as_echo_n "checking for $ac_header... " >&6; } |
10120 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10121 |
> |
$as_echo_n "(cached) " >&6 |
10122 |
|
fi |
10123 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10124 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
10123 |
> |
ac_res=`eval 'as_val=${'$as_ac_Header'} |
10124 |
> |
$as_echo "$as_val"'` |
10125 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
10126 |
> |
$as_echo "$ac_res" >&6; } |
10127 |
|
else |
10128 |
|
# Is the header compilable? |
10129 |
< |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10130 |
< |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
10129 |
> |
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10130 |
> |
$as_echo_n "checking $ac_header usability... " >&6; } |
10131 |
|
cat >conftest.$ac_ext <<_ACEOF |
10132 |
|
/* confdefs.h. */ |
10133 |
|
_ACEOF |
10138 |
|
#include <$ac_header> |
10139 |
|
_ACEOF |
10140 |
|
rm -f conftest.$ac_objext |
10141 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
10142 |
< |
(eval $ac_compile) 2>conftest.er1 |
10141 |
> |
if { (ac_try="$ac_compile" |
10142 |
> |
case "(($ac_try" in |
10143 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10144 |
> |
*) ac_try_echo=$ac_try;; |
10145 |
> |
esac |
10146 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10147 |
> |
$as_echo "$ac_try_echo") >&5 |
10148 |
> |
(eval "$ac_compile") 2>conftest.er1 |
10149 |
|
ac_status=$? |
10150 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
10151 |
|
rm -f conftest.er1 |
10152 |
|
cat conftest.err >&5 |
10153 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10154 |
< |
(exit $ac_status); } && |
10155 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
10156 |
< |
|| test ! -s conftest.err' |
10157 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7826 |
< |
(eval $ac_try) 2>&5 |
7827 |
< |
ac_status=$? |
7828 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7829 |
< |
(exit $ac_status); }; } && |
7830 |
< |
{ ac_try='test -s conftest.$ac_objext' |
7831 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7832 |
< |
(eval $ac_try) 2>&5 |
7833 |
< |
ac_status=$? |
7834 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7835 |
< |
(exit $ac_status); }; }; then |
10153 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10154 |
> |
(exit $ac_status); } && { |
10155 |
> |
test -z "$ac_c_werror_flag" || |
10156 |
> |
test ! -s conftest.err |
10157 |
> |
} && test -s conftest.$ac_objext; then |
10158 |
|
ac_header_compiler=yes |
10159 |
|
else |
10160 |
< |
echo "$as_me: failed program was:" >&5 |
10160 |
> |
$as_echo "$as_me: failed program was:" >&5 |
10161 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10162 |
|
|
10163 |
< |
ac_header_compiler=no |
10163 |
> |
ac_header_compiler=no |
10164 |
|
fi |
7843 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7844 |
– |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7845 |
– |
echo "${ECHO_T}$ac_header_compiler" >&6 |
10165 |
|
|
10166 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10167 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10168 |
+ |
$as_echo "$ac_header_compiler" >&6; } |
10169 |
+ |
|
10170 |
|
# Is the header present? |
10171 |
< |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10172 |
< |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
10171 |
> |
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10172 |
> |
$as_echo_n "checking $ac_header presence... " >&6; } |
10173 |
|
cat >conftest.$ac_ext <<_ACEOF |
10174 |
|
/* confdefs.h. */ |
10175 |
|
_ACEOF |
10178 |
|
/* end confdefs.h. */ |
10179 |
|
#include <$ac_header> |
10180 |
|
_ACEOF |
10181 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
10182 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10181 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
10182 |
> |
case "(($ac_try" in |
10183 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10184 |
> |
*) ac_try_echo=$ac_try;; |
10185 |
> |
esac |
10186 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10187 |
> |
$as_echo "$ac_try_echo") >&5 |
10188 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
10189 |
|
ac_status=$? |
10190 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
10191 |
|
rm -f conftest.er1 |
10192 |
|
cat conftest.err >&5 |
10193 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10194 |
< |
(exit $ac_status); } >/dev/null; then |
10195 |
< |
if test -s conftest.err; then |
10196 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
10197 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
7869 |
< |
else |
7870 |
< |
ac_cpp_err= |
7871 |
< |
fi |
7872 |
< |
else |
7873 |
< |
ac_cpp_err=yes |
7874 |
< |
fi |
7875 |
< |
if test -z "$ac_cpp_err"; then |
10193 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10194 |
> |
(exit $ac_status); } >/dev/null && { |
10195 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
10196 |
> |
test ! -s conftest.err |
10197 |
> |
}; then |
10198 |
|
ac_header_preproc=yes |
10199 |
|
else |
10200 |
< |
echo "$as_me: failed program was:" >&5 |
10200 |
> |
$as_echo "$as_me: failed program was:" >&5 |
10201 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10202 |
|
|
10203 |
|
ac_header_preproc=no |
10204 |
|
fi |
10205 |
+ |
|
10206 |
|
rm -f conftest.err conftest.$ac_ext |
10207 |
< |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10208 |
< |
echo "${ECHO_T}$ac_header_preproc" >&6 |
10207 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10208 |
> |
$as_echo "$ac_header_preproc" >&6; } |
10209 |
|
|
10210 |
|
# So? What about this header? |
10211 |
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10212 |
|
yes:no: ) |
10213 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10214 |
< |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10215 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10216 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10213 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10214 |
> |
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10215 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10216 |
> |
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10217 |
|
ac_header_preproc=yes |
10218 |
|
;; |
10219 |
|
no:yes:* ) |
10220 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10221 |
< |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10222 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10223 |
< |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10224 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10225 |
< |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10226 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10227 |
< |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10228 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10229 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10230 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10231 |
< |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10232 |
< |
( |
7910 |
< |
cat <<\_ASBOX |
10220 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10221 |
> |
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10222 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10223 |
> |
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10224 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10225 |
> |
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10226 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10227 |
> |
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10228 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10229 |
> |
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10230 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10231 |
> |
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10232 |
> |
( cat <<\_ASBOX |
10233 |
|
## ------------------------------ ## |
10234 |
|
## Report this to gezelter@nd.edu ## |
10235 |
|
## ------------------------------ ## |
10236 |
|
_ASBOX |
10237 |
< |
) | |
7916 |
< |
sed "s/^/$as_me: WARNING: /" >&2 |
10237 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
10238 |
|
;; |
10239 |
|
esac |
10240 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10241 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10242 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10243 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10240 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10241 |
> |
$as_echo_n "checking for $ac_header... " >&6; } |
10242 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10243 |
> |
$as_echo_n "(cached) " >&6 |
10244 |
|
else |
10245 |
|
eval "$as_ac_Header=\$ac_header_preproc" |
10246 |
|
fi |
10247 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10248 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
10247 |
> |
ac_res=`eval 'as_val=${'$as_ac_Header'} |
10248 |
> |
$as_echo "$as_val"'` |
10249 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
10250 |
> |
$as_echo "$ac_res" >&6; } |
10251 |
|
|
10252 |
|
fi |
10253 |
< |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10253 |
> |
if test `eval 'as_val=${'$as_ac_Header'} |
10254 |
> |
$as_echo "$as_val"'` = yes; then |
10255 |
|
cat >>confdefs.h <<_ACEOF |
10256 |
< |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
10256 |
> |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
10257 |
|
_ACEOF |
10258 |
|
|
10259 |
|
fi |
10260 |
|
|
10261 |
|
done |
10262 |
|
|
10263 |
< |
echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 |
10264 |
< |
echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6 |
10265 |
< |
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then |
10266 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10263 |
> |
|
10264 |
> |
# Checks for typedefs, structures, and compiler characteristics. |
10265 |
> |
{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
10266 |
> |
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
10267 |
> |
if test "${ac_cv_header_stdbool_h+set}" = set; then |
10268 |
> |
$as_echo_n "(cached) " >&6 |
10269 |
|
else |
7944 |
– |
if test "$cross_compiling" = yes; then |
7945 |
– |
ac_cv_func_realloc_0_nonnull=no |
7946 |
– |
else |
10270 |
|
cat >conftest.$ac_ext <<_ACEOF |
10271 |
|
/* confdefs.h. */ |
10272 |
|
_ACEOF |
10273 |
|
cat confdefs.h >>conftest.$ac_ext |
10274 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10275 |
|
/* end confdefs.h. */ |
10276 |
< |
#if STDC_HEADERS || HAVE_STDLIB_H |
10277 |
< |
# include <stdlib.h> |
10278 |
< |
#else |
10279 |
< |
char *realloc (); |
10276 |
> |
|
10277 |
> |
#include <stdbool.h> |
10278 |
> |
#ifndef bool |
10279 |
> |
"error: bool is not defined" |
10280 |
|
#endif |
10281 |
+ |
#ifndef false |
10282 |
+ |
"error: false is not defined" |
10283 |
+ |
#endif |
10284 |
+ |
#if false |
10285 |
+ |
"error: false is not 0" |
10286 |
+ |
#endif |
10287 |
+ |
#ifndef true |
10288 |
+ |
"error: true is not defined" |
10289 |
+ |
#endif |
10290 |
+ |
#if true != 1 |
10291 |
+ |
"error: true is not 1" |
10292 |
+ |
#endif |
10293 |
+ |
#ifndef __bool_true_false_are_defined |
10294 |
+ |
"error: __bool_true_false_are_defined is not defined" |
10295 |
+ |
#endif |
10296 |
|
|
10297 |
+ |
struct s { _Bool s: 1; _Bool t; } s; |
10298 |
+ |
|
10299 |
+ |
char a[true == 1 ? 1 : -1]; |
10300 |
+ |
char b[false == 0 ? 1 : -1]; |
10301 |
+ |
char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
10302 |
+ |
char d[(bool) 0.5 == true ? 1 : -1]; |
10303 |
+ |
bool e = &s; |
10304 |
+ |
char f[(_Bool) 0.0 == false ? 1 : -1]; |
10305 |
+ |
char g[true]; |
10306 |
+ |
char h[sizeof (_Bool)]; |
10307 |
+ |
char i[sizeof s.t]; |
10308 |
+ |
enum { j = false, k = true, l = false * true, m = true * 256 }; |
10309 |
+ |
/* The following fails for |
10310 |
+ |
HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
10311 |
+ |
_Bool n[m]; |
10312 |
+ |
char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
10313 |
+ |
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
10314 |
+ |
# if defined __xlc__ || defined __GNUC__ |
10315 |
+ |
/* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 |
10316 |
+ |
reported by James Lemley on 2005-10-05; see |
10317 |
+ |
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html |
10318 |
+ |
This test is not quite right, since xlc is allowed to |
10319 |
+ |
reject this program, as the initializer for xlcbug is |
10320 |
+ |
not one of the forms that C requires support for. |
10321 |
+ |
However, doing the test right would require a runtime |
10322 |
+ |
test, and that would make cross-compilation harder. |
10323 |
+ |
Let us hope that IBM fixes the xlc bug, and also adds |
10324 |
+ |
support for this kind of constant expression. In the |
10325 |
+ |
meantime, this test will reject xlc, which is OK, since |
10326 |
+ |
our stdbool.h substitute should suffice. We also test |
10327 |
+ |
this with GCC, where it should work, to detect more |
10328 |
+ |
quickly whether someone messes up the test in the |
10329 |
+ |
future. */ |
10330 |
+ |
char digs[] = "0123456789"; |
10331 |
+ |
int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); |
10332 |
+ |
# endif |
10333 |
+ |
/* Catch a bug in an HP-UX C compiler. See |
10334 |
+ |
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
10335 |
+ |
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
10336 |
+ |
*/ |
10337 |
+ |
_Bool q = true; |
10338 |
+ |
_Bool *pq = &q; |
10339 |
+ |
|
10340 |
|
#ifdef FC_DUMMY_MAIN |
10341 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10342 |
|
# ifdef __cplusplus |
10348 |
|
int |
10349 |
|
main () |
10350 |
|
{ |
10351 |
< |
exit (realloc (0, 0) ? 0 : 1); |
10351 |
> |
|
10352 |
> |
*pq |= q; |
10353 |
> |
*pq |= ! q; |
10354 |
> |
/* Refer to every declared value, to avoid compiler optimizations. */ |
10355 |
> |
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
10356 |
> |
+ !m + !n + !o + !p + !q + !pq); |
10357 |
> |
|
10358 |
|
; |
10359 |
|
return 0; |
10360 |
|
} |
10361 |
|
_ACEOF |
10362 |
< |
rm -f conftest$ac_exeext |
10363 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10364 |
< |
(eval $ac_link) 2>&5 |
10365 |
< |
ac_status=$? |
10366 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7980 |
< |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7981 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7982 |
< |
(eval $ac_try) 2>&5 |
7983 |
< |
ac_status=$? |
7984 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7985 |
< |
(exit $ac_status); }; }; then |
7986 |
< |
ac_cv_func_realloc_0_nonnull=yes |
7987 |
< |
else |
7988 |
< |
echo "$as_me: program exited with status $ac_status" >&5 |
7989 |
< |
echo "$as_me: failed program was:" >&5 |
7990 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
7991 |
< |
|
7992 |
< |
( exit $ac_status ) |
7993 |
< |
ac_cv_func_realloc_0_nonnull=no |
7994 |
< |
fi |
7995 |
< |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
7996 |
< |
fi |
7997 |
< |
fi |
7998 |
< |
echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 |
7999 |
< |
echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6 |
8000 |
< |
if test $ac_cv_func_realloc_0_nonnull = yes; then |
8001 |
< |
|
8002 |
< |
cat >>confdefs.h <<\_ACEOF |
8003 |
< |
#define HAVE_REALLOC 1 |
8004 |
< |
_ACEOF |
8005 |
< |
|
8006 |
< |
else |
8007 |
< |
cat >>confdefs.h <<\_ACEOF |
8008 |
< |
#define HAVE_REALLOC 0 |
8009 |
< |
_ACEOF |
8010 |
< |
|
8011 |
< |
case $LIBOBJS in |
8012 |
< |
"realloc.$ac_objext" | \ |
8013 |
< |
*" realloc.$ac_objext" | \ |
8014 |
< |
"realloc.$ac_objext "* | \ |
8015 |
< |
*" realloc.$ac_objext "* ) ;; |
8016 |
< |
*) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;; |
10362 |
> |
rm -f conftest.$ac_objext |
10363 |
> |
if { (ac_try="$ac_compile" |
10364 |
> |
case "(($ac_try" in |
10365 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10366 |
> |
*) ac_try_echo=$ac_try;; |
10367 |
|
esac |
10368 |
< |
|
10369 |
< |
|
10370 |
< |
cat >>confdefs.h <<\_ACEOF |
8021 |
< |
#define realloc rpl_realloc |
8022 |
< |
_ACEOF |
8023 |
< |
|
8024 |
< |
fi |
8025 |
< |
|
8026 |
< |
|
8027 |
< |
|
8028 |
< |
|
8029 |
< |
|
8030 |
< |
for ac_header in sys/select.h sys/socket.h |
8031 |
< |
do |
8032 |
< |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8033 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8034 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8035 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8036 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8037 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8038 |
< |
fi |
8039 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8040 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
8041 |
< |
else |
8042 |
< |
# Is the header compilable? |
8043 |
< |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8044 |
< |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
8045 |
< |
cat >conftest.$ac_ext <<_ACEOF |
8046 |
< |
/* confdefs.h. */ |
8047 |
< |
_ACEOF |
8048 |
< |
cat confdefs.h >>conftest.$ac_ext |
8049 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
8050 |
< |
/* end confdefs.h. */ |
8051 |
< |
$ac_includes_default |
8052 |
< |
#include <$ac_header> |
8053 |
< |
_ACEOF |
8054 |
< |
rm -f conftest.$ac_objext |
8055 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8056 |
< |
(eval $ac_compile) 2>conftest.er1 |
10368 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10369 |
> |
$as_echo "$ac_try_echo") >&5 |
10370 |
> |
(eval "$ac_compile") 2>conftest.er1 |
10371 |
|
ac_status=$? |
10372 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
10373 |
|
rm -f conftest.er1 |
10374 |
|
cat conftest.err >&5 |
10375 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10376 |
< |
(exit $ac_status); } && |
10377 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
10378 |
< |
|| test ! -s conftest.err' |
10379 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10380 |
< |
(eval $ac_try) 2>&5 |
8067 |
< |
ac_status=$? |
8068 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8069 |
< |
(exit $ac_status); }; } && |
8070 |
< |
{ ac_try='test -s conftest.$ac_objext' |
8071 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8072 |
< |
(eval $ac_try) 2>&5 |
8073 |
< |
ac_status=$? |
8074 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8075 |
< |
(exit $ac_status); }; }; then |
8076 |
< |
ac_header_compiler=yes |
10375 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10376 |
> |
(exit $ac_status); } && { |
10377 |
> |
test -z "$ac_c_werror_flag" || |
10378 |
> |
test ! -s conftest.err |
10379 |
> |
} && test -s conftest.$ac_objext; then |
10380 |
> |
ac_cv_header_stdbool_h=yes |
10381 |
|
else |
10382 |
< |
echo "$as_me: failed program was:" >&5 |
10382 |
> |
$as_echo "$as_me: failed program was:" >&5 |
10383 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10384 |
|
|
10385 |
< |
ac_header_compiler=no |
10385 |
> |
ac_cv_header_stdbool_h=no |
10386 |
|
fi |
8083 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8084 |
– |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8085 |
– |
echo "${ECHO_T}$ac_header_compiler" >&6 |
10387 |
|
|
10388 |
< |
# Is the header present? |
10389 |
< |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10390 |
< |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
10388 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10389 |
> |
fi |
10390 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
10391 |
> |
$as_echo "$ac_cv_header_stdbool_h" >&6; } |
10392 |
> |
{ $as_echo "$as_me:$LINENO: checking for _Bool" >&5 |
10393 |
> |
$as_echo_n "checking for _Bool... " >&6; } |
10394 |
> |
if test "${ac_cv_type__Bool+set}" = set; then |
10395 |
> |
$as_echo_n "(cached) " >&6 |
10396 |
> |
else |
10397 |
> |
ac_cv_type__Bool=no |
10398 |
|
cat >conftest.$ac_ext <<_ACEOF |
10399 |
|
/* confdefs.h. */ |
10400 |
|
_ACEOF |
10401 |
|
cat confdefs.h >>conftest.$ac_ext |
10402 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10403 |
|
/* end confdefs.h. */ |
10404 |
< |
#include <$ac_header> |
10404 |
> |
$ac_includes_default |
10405 |
> |
#ifdef FC_DUMMY_MAIN |
10406 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10407 |
> |
# ifdef __cplusplus |
10408 |
> |
extern "C" |
10409 |
> |
# endif |
10410 |
> |
int FC_DUMMY_MAIN() { return 1; } |
10411 |
> |
#endif |
10412 |
> |
#endif |
10413 |
> |
int |
10414 |
> |
main () |
10415 |
> |
{ |
10416 |
> |
if (sizeof (_Bool)) |
10417 |
> |
return 0; |
10418 |
> |
; |
10419 |
> |
return 0; |
10420 |
> |
} |
10421 |
|
_ACEOF |
10422 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
10423 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10422 |
> |
rm -f conftest.$ac_objext |
10423 |
> |
if { (ac_try="$ac_compile" |
10424 |
> |
case "(($ac_try" in |
10425 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10426 |
> |
*) ac_try_echo=$ac_try;; |
10427 |
> |
esac |
10428 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10429 |
> |
$as_echo "$ac_try_echo") >&5 |
10430 |
> |
(eval "$ac_compile") 2>conftest.er1 |
10431 |
|
ac_status=$? |
10432 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
10433 |
|
rm -f conftest.er1 |
10434 |
|
cat conftest.err >&5 |
10435 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10436 |
< |
(exit $ac_status); } >/dev/null; then |
10437 |
< |
if test -s conftest.err; then |
10438 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
10439 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
10440 |
< |
else |
8110 |
< |
ac_cpp_err= |
8111 |
< |
fi |
8112 |
< |
else |
8113 |
< |
ac_cpp_err=yes |
8114 |
< |
fi |
8115 |
< |
if test -z "$ac_cpp_err"; then |
8116 |
< |
ac_header_preproc=yes |
8117 |
< |
else |
8118 |
< |
echo "$as_me: failed program was:" >&5 |
8119 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
8120 |
< |
|
8121 |
< |
ac_header_preproc=no |
8122 |
< |
fi |
8123 |
< |
rm -f conftest.err conftest.$ac_ext |
8124 |
< |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8125 |
< |
echo "${ECHO_T}$ac_header_preproc" >&6 |
8126 |
< |
|
8127 |
< |
# So? What about this header? |
8128 |
< |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8129 |
< |
yes:no: ) |
8130 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8131 |
< |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8132 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8133 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
8134 |
< |
ac_header_preproc=yes |
8135 |
< |
;; |
8136 |
< |
no:yes:* ) |
8137 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8138 |
< |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
8139 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8140 |
< |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
8141 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
8142 |
< |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
8143 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
8144 |
< |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
8145 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8146 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
8147 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8148 |
< |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
8149 |
< |
( |
8150 |
< |
cat <<\_ASBOX |
8151 |
< |
## ------------------------------ ## |
8152 |
< |
## Report this to gezelter@nd.edu ## |
8153 |
< |
## ------------------------------ ## |
8154 |
< |
_ASBOX |
8155 |
< |
) | |
8156 |
< |
sed "s/^/$as_me: WARNING: /" >&2 |
8157 |
< |
;; |
8158 |
< |
esac |
8159 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8160 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8161 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8162 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8163 |
< |
else |
8164 |
< |
eval "$as_ac_Header=\$ac_header_preproc" |
8165 |
< |
fi |
8166 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8167 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
8168 |
< |
|
8169 |
< |
fi |
8170 |
< |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8171 |
< |
cat >>confdefs.h <<_ACEOF |
8172 |
< |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
8173 |
< |
_ACEOF |
8174 |
< |
|
8175 |
< |
fi |
8176 |
< |
|
8177 |
< |
done |
8178 |
< |
|
8179 |
< |
echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
8180 |
< |
echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6 |
8181 |
< |
if test "${ac_cv_func_select_args+set}" = set; then |
8182 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8183 |
< |
else |
8184 |
< |
for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
8185 |
< |
for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do |
8186 |
< |
for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
8187 |
< |
cat >conftest.$ac_ext <<_ACEOF |
10435 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10436 |
> |
(exit $ac_status); } && { |
10437 |
> |
test -z "$ac_c_werror_flag" || |
10438 |
> |
test ! -s conftest.err |
10439 |
> |
} && test -s conftest.$ac_objext; then |
10440 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10441 |
|
/* confdefs.h. */ |
10442 |
|
_ACEOF |
10443 |
|
cat confdefs.h >>conftest.$ac_ext |
10444 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10445 |
|
/* end confdefs.h. */ |
10446 |
|
$ac_includes_default |
8194 |
– |
#if HAVE_SYS_SELECT_H |
8195 |
– |
# include <sys/select.h> |
8196 |
– |
#endif |
8197 |
– |
#if HAVE_SYS_SOCKET_H |
8198 |
– |
# include <sys/socket.h> |
8199 |
– |
#endif |
8200 |
– |
|
10447 |
|
#ifdef FC_DUMMY_MAIN |
10448 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10449 |
|
# ifdef __cplusplus |
10455 |
|
int |
10456 |
|
main () |
10457 |
|
{ |
10458 |
< |
extern int select ($ac_arg1, |
10459 |
< |
$ac_arg234, $ac_arg234, $ac_arg234, |
8214 |
< |
$ac_arg5); |
10458 |
> |
if (sizeof ((_Bool))) |
10459 |
> |
return 0; |
10460 |
|
; |
10461 |
|
return 0; |
10462 |
|
} |
10463 |
|
_ACEOF |
10464 |
|
rm -f conftest.$ac_objext |
10465 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
10466 |
< |
(eval $ac_compile) 2>conftest.er1 |
10465 |
> |
if { (ac_try="$ac_compile" |
10466 |
> |
case "(($ac_try" in |
10467 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10468 |
> |
*) ac_try_echo=$ac_try;; |
10469 |
> |
esac |
10470 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10471 |
> |
$as_echo "$ac_try_echo") >&5 |
10472 |
> |
(eval "$ac_compile") 2>conftest.er1 |
10473 |
|
ac_status=$? |
10474 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
10475 |
|
rm -f conftest.er1 |
10476 |
|
cat conftest.err >&5 |
10477 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10478 |
< |
(exit $ac_status); } && |
10479 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
10480 |
< |
|| test ! -s conftest.err' |
10481 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10482 |
< |
(eval $ac_try) 2>&5 |
8232 |
< |
ac_status=$? |
8233 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8234 |
< |
(exit $ac_status); }; } && |
8235 |
< |
{ ac_try='test -s conftest.$ac_objext' |
8236 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8237 |
< |
(eval $ac_try) 2>&5 |
8238 |
< |
ac_status=$? |
8239 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8240 |
< |
(exit $ac_status); }; }; then |
8241 |
< |
ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
10477 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10478 |
> |
(exit $ac_status); } && { |
10479 |
> |
test -z "$ac_c_werror_flag" || |
10480 |
> |
test ! -s conftest.err |
10481 |
> |
} && test -s conftest.$ac_objext; then |
10482 |
> |
: |
10483 |
|
else |
10484 |
< |
echo "$as_me: failed program was:" >&5 |
10484 |
> |
$as_echo "$as_me: failed program was:" >&5 |
10485 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10486 |
|
|
10487 |
+ |
ac_cv_type__Bool=yes |
10488 |
|
fi |
8247 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8248 |
– |
done |
8249 |
– |
done |
8250 |
– |
done |
8251 |
– |
# Provide a safe default value. |
8252 |
– |
: ${ac_cv_func_select_args='int,int *,struct timeval *'} |
10489 |
|
|
10490 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10491 |
+ |
else |
10492 |
+ |
$as_echo "$as_me: failed program was:" >&5 |
10493 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
10494 |
+ |
|
10495 |
+ |
|
10496 |
|
fi |
8255 |
– |
echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
8256 |
– |
echo "${ECHO_T}$ac_cv_func_select_args" >&6 |
8257 |
– |
ac_save_IFS=$IFS; IFS=',' |
8258 |
– |
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` |
8259 |
– |
IFS=$ac_save_IFS |
8260 |
– |
shift |
10497 |
|
|
10498 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10499 |
+ |
fi |
10500 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
10501 |
+ |
$as_echo "$ac_cv_type__Bool" >&6; } |
10502 |
+ |
if test $ac_cv_type__Bool = yes; then |
10503 |
+ |
|
10504 |
|
cat >>confdefs.h <<_ACEOF |
10505 |
< |
#define SELECT_TYPE_ARG1 $1 |
10505 |
> |
#define HAVE__BOOL 1 |
10506 |
|
_ACEOF |
10507 |
|
|
10508 |
|
|
10509 |
< |
cat >>confdefs.h <<_ACEOF |
8268 |
< |
#define SELECT_TYPE_ARG234 ($2) |
8269 |
< |
_ACEOF |
10509 |
> |
fi |
10510 |
|
|
10511 |
+ |
if test $ac_cv_header_stdbool_h = yes; then |
10512 |
|
|
10513 |
< |
cat >>confdefs.h <<_ACEOF |
10514 |
< |
#define SELECT_TYPE_ARG5 ($3) |
10513 |
> |
cat >>confdefs.h <<\_ACEOF |
10514 |
> |
#define HAVE_STDBOOL_H 1 |
10515 |
|
_ACEOF |
10516 |
|
|
10517 |
< |
rm -f conftest* |
10517 |
> |
fi |
10518 |
|
|
10519 |
< |
|
10520 |
< |
for ac_func in strftime |
10521 |
< |
do |
10522 |
< |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8282 |
< |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8283 |
< |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8284 |
< |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
8285 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10519 |
> |
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
10520 |
> |
$as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
10521 |
> |
if test "${ac_cv_c_const+set}" = set; then |
10522 |
> |
$as_echo_n "(cached) " >&6 |
10523 |
|
else |
10524 |
|
cat >conftest.$ac_ext <<_ACEOF |
10525 |
|
/* confdefs.h. */ |
10527 |
|
cat confdefs.h >>conftest.$ac_ext |
10528 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10529 |
|
/* end confdefs.h. */ |
8293 |
– |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8294 |
– |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8295 |
– |
#define $ac_func innocuous_$ac_func |
10530 |
|
|
8297 |
– |
/* System header to define __stub macros and hopefully few prototypes, |
8298 |
– |
which can conflict with char $ac_func (); below. |
8299 |
– |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8300 |
– |
<limits.h> exists even on freestanding compilers. */ |
8301 |
– |
|
8302 |
– |
#ifdef __STDC__ |
8303 |
– |
# include <limits.h> |
8304 |
– |
#else |
8305 |
– |
# include <assert.h> |
8306 |
– |
#endif |
8307 |
– |
|
8308 |
– |
#undef $ac_func |
8309 |
– |
|
8310 |
– |
/* Override any gcc2 internal prototype to avoid an error. */ |
8311 |
– |
#ifdef __cplusplus |
8312 |
– |
extern "C" |
8313 |
– |
{ |
8314 |
– |
#endif |
8315 |
– |
/* We use char because int might match the return type of a gcc2 |
8316 |
– |
builtin and then its argument prototype would still apply. */ |
8317 |
– |
char $ac_func (); |
8318 |
– |
/* The GNU C library defines this for functions which it implements |
8319 |
– |
to always fail with ENOSYS. Some functions are actually named |
8320 |
– |
something starting with __ and the normal name is an alias. */ |
8321 |
– |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
8322 |
– |
choke me |
8323 |
– |
#else |
8324 |
– |
char (*f) () = $ac_func; |
8325 |
– |
#endif |
8326 |
– |
#ifdef __cplusplus |
8327 |
– |
} |
8328 |
– |
#endif |
8329 |
– |
|
10531 |
|
#ifdef FC_DUMMY_MAIN |
10532 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10533 |
|
# ifdef __cplusplus |
10539 |
|
int |
10540 |
|
main () |
10541 |
|
{ |
10542 |
< |
return f != $ac_func; |
10542 |
> |
/* FIXME: Include the comments suggested by Paul. */ |
10543 |
> |
#ifndef __cplusplus |
10544 |
> |
/* Ultrix mips cc rejects this. */ |
10545 |
> |
typedef int charset[2]; |
10546 |
> |
const charset cs; |
10547 |
> |
/* SunOS 4.1.1 cc rejects this. */ |
10548 |
> |
char const *const *pcpcc; |
10549 |
> |
char **ppc; |
10550 |
> |
/* NEC SVR4.0.2 mips cc rejects this. */ |
10551 |
> |
struct point {int x, y;}; |
10552 |
> |
static struct point const zero = {0,0}; |
10553 |
> |
/* AIX XL C 1.02.0.0 rejects this. |
10554 |
> |
It does not let you subtract one const X* pointer from another in |
10555 |
> |
an arm of an if-expression whose if-part is not a constant |
10556 |
> |
expression */ |
10557 |
> |
const char *g = "string"; |
10558 |
> |
pcpcc = &g + (g ? g-g : 0); |
10559 |
> |
/* HPUX 7.0 cc rejects these. */ |
10560 |
> |
++pcpcc; |
10561 |
> |
ppc = (char**) pcpcc; |
10562 |
> |
pcpcc = (char const *const *) ppc; |
10563 |
> |
{ /* SCO 3.2v4 cc rejects this. */ |
10564 |
> |
char *t; |
10565 |
> |
char const *s = 0 ? (char *) 0 : (char const *) 0; |
10566 |
> |
|
10567 |
> |
*t++ = 0; |
10568 |
> |
if (s) return 0; |
10569 |
> |
} |
10570 |
> |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
10571 |
> |
int x[] = {25, 17}; |
10572 |
> |
const int *foo = &x[0]; |
10573 |
> |
++foo; |
10574 |
> |
} |
10575 |
> |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
10576 |
> |
typedef const int *iptr; |
10577 |
> |
iptr p = 0; |
10578 |
> |
++p; |
10579 |
> |
} |
10580 |
> |
{ /* AIX XL C 1.02.0.0 rejects this saying |
10581 |
> |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
10582 |
> |
struct s { int j; const int *ap[3]; }; |
10583 |
> |
struct s *b; b->j = 5; |
10584 |
> |
} |
10585 |
> |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
10586 |
> |
const int foo = 10; |
10587 |
> |
if (!foo) return 0; |
10588 |
> |
} |
10589 |
> |
return !cs[0] && !zero.x; |
10590 |
> |
#endif |
10591 |
> |
|
10592 |
|
; |
10593 |
|
return 0; |
10594 |
|
} |
10595 |
|
_ACEOF |
10596 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
10597 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10598 |
< |
(eval $ac_link) 2>conftest.er1 |
10596 |
> |
rm -f conftest.$ac_objext |
10597 |
> |
if { (ac_try="$ac_compile" |
10598 |
> |
case "(($ac_try" in |
10599 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10600 |
> |
*) ac_try_echo=$ac_try;; |
10601 |
> |
esac |
10602 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10603 |
> |
$as_echo "$ac_try_echo") >&5 |
10604 |
> |
(eval "$ac_compile") 2>conftest.er1 |
10605 |
|
ac_status=$? |
10606 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
10607 |
|
rm -f conftest.er1 |
10608 |
|
cat conftest.err >&5 |
10609 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10610 |
< |
(exit $ac_status); } && |
10611 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
10612 |
< |
|| test ! -s conftest.err' |
10613 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10614 |
< |
(eval $ac_try) 2>&5 |
8359 |
< |
ac_status=$? |
8360 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8361 |
< |
(exit $ac_status); }; } && |
8362 |
< |
{ ac_try='test -s conftest$ac_exeext' |
8363 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8364 |
< |
(eval $ac_try) 2>&5 |
8365 |
< |
ac_status=$? |
8366 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8367 |
< |
(exit $ac_status); }; }; then |
8368 |
< |
eval "$as_ac_var=yes" |
10609 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10610 |
> |
(exit $ac_status); } && { |
10611 |
> |
test -z "$ac_c_werror_flag" || |
10612 |
> |
test ! -s conftest.err |
10613 |
> |
} && test -s conftest.$ac_objext; then |
10614 |
> |
ac_cv_c_const=yes |
10615 |
|
else |
10616 |
< |
echo "$as_me: failed program was:" >&5 |
10616 |
> |
$as_echo "$as_me: failed program was:" >&5 |
10617 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10618 |
|
|
10619 |
< |
eval "$as_ac_var=no" |
10619 |
> |
ac_cv_c_const=no |
10620 |
|
fi |
10621 |
< |
rm -f conftest.err conftest.$ac_objext \ |
10622 |
< |
conftest$ac_exeext conftest.$ac_ext |
10621 |
> |
|
10622 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10623 |
|
fi |
10624 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
10625 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10626 |
< |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
10627 |
< |
cat >>confdefs.h <<_ACEOF |
10628 |
< |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
10624 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
10625 |
> |
$as_echo "$ac_cv_c_const" >&6; } |
10626 |
> |
if test $ac_cv_c_const = no; then |
10627 |
> |
|
10628 |
> |
cat >>confdefs.h <<\_ACEOF |
10629 |
> |
#define const /**/ |
10630 |
|
_ACEOF |
10631 |
|
|
10632 |
+ |
fi |
10633 |
+ |
|
10634 |
+ |
{ $as_echo "$as_me:$LINENO: checking for inline" >&5 |
10635 |
+ |
$as_echo_n "checking for inline... " >&6; } |
10636 |
+ |
if test "${ac_cv_c_inline+set}" = set; then |
10637 |
+ |
$as_echo_n "(cached) " >&6 |
10638 |
|
else |
10639 |
< |
# strftime is in -lintl on SCO UNIX. |
10640 |
< |
echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 |
10641 |
< |
echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 |
8389 |
< |
if test "${ac_cv_lib_intl_strftime+set}" = set; then |
8390 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8391 |
< |
else |
8392 |
< |
ac_check_lib_save_LIBS=$LIBS |
8393 |
< |
LIBS="-lintl $LIBS" |
8394 |
< |
cat >conftest.$ac_ext <<_ACEOF |
10639 |
> |
ac_cv_c_inline=no |
10640 |
> |
for ac_kw in inline __inline__ __inline; do |
10641 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10642 |
|
/* confdefs.h. */ |
10643 |
|
_ACEOF |
10644 |
|
cat confdefs.h >>conftest.$ac_ext |
10645 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10646 |
|
/* end confdefs.h. */ |
10647 |
< |
|
10648 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
10649 |
< |
#ifdef __cplusplus |
10650 |
< |
extern "C" |
10647 |
> |
#ifndef __cplusplus |
10648 |
> |
typedef int foo_t; |
10649 |
> |
static $ac_kw foo_t static_foo () {return 0; } |
10650 |
> |
$ac_kw foo_t foo () {return 0; } |
10651 |
|
#endif |
10652 |
< |
/* We use char because int might match the return type of a gcc2 |
8406 |
< |
builtin and then its argument prototype would still apply. */ |
8407 |
< |
char strftime (); |
8408 |
< |
#ifdef FC_DUMMY_MAIN |
8409 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8410 |
< |
# ifdef __cplusplus |
8411 |
< |
extern "C" |
8412 |
< |
# endif |
8413 |
< |
int FC_DUMMY_MAIN() { return 1; } |
8414 |
< |
#endif |
8415 |
< |
#endif |
8416 |
< |
int |
8417 |
< |
main () |
8418 |
< |
{ |
8419 |
< |
strftime (); |
8420 |
< |
; |
8421 |
< |
return 0; |
8422 |
< |
} |
10652 |
> |
|
10653 |
|
_ACEOF |
10654 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
10655 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10656 |
< |
(eval $ac_link) 2>conftest.er1 |
10654 |
> |
rm -f conftest.$ac_objext |
10655 |
> |
if { (ac_try="$ac_compile" |
10656 |
> |
case "(($ac_try" in |
10657 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10658 |
> |
*) ac_try_echo=$ac_try;; |
10659 |
> |
esac |
10660 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10661 |
> |
$as_echo "$ac_try_echo") >&5 |
10662 |
> |
(eval "$ac_compile") 2>conftest.er1 |
10663 |
|
ac_status=$? |
10664 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
10665 |
|
rm -f conftest.er1 |
10666 |
|
cat conftest.err >&5 |
10667 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10668 |
< |
(exit $ac_status); } && |
10669 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
10670 |
< |
|| test ! -s conftest.err' |
10671 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10672 |
< |
(eval $ac_try) 2>&5 |
8437 |
< |
ac_status=$? |
8438 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8439 |
< |
(exit $ac_status); }; } && |
8440 |
< |
{ ac_try='test -s conftest$ac_exeext' |
8441 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8442 |
< |
(eval $ac_try) 2>&5 |
8443 |
< |
ac_status=$? |
8444 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8445 |
< |
(exit $ac_status); }; }; then |
8446 |
< |
ac_cv_lib_intl_strftime=yes |
10667 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10668 |
> |
(exit $ac_status); } && { |
10669 |
> |
test -z "$ac_c_werror_flag" || |
10670 |
> |
test ! -s conftest.err |
10671 |
> |
} && test -s conftest.$ac_objext; then |
10672 |
> |
ac_cv_c_inline=$ac_kw |
10673 |
|
else |
10674 |
< |
echo "$as_me: failed program was:" >&5 |
10674 |
> |
$as_echo "$as_me: failed program was:" >&5 |
10675 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10676 |
|
|
8451 |
– |
ac_cv_lib_intl_strftime=no |
8452 |
– |
fi |
8453 |
– |
rm -f conftest.err conftest.$ac_objext \ |
8454 |
– |
conftest$ac_exeext conftest.$ac_ext |
8455 |
– |
LIBS=$ac_check_lib_save_LIBS |
8456 |
– |
fi |
8457 |
– |
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 |
8458 |
– |
echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 |
8459 |
– |
if test $ac_cv_lib_intl_strftime = yes; then |
8460 |
– |
cat >>confdefs.h <<\_ACEOF |
8461 |
– |
#define HAVE_STRFTIME 1 |
8462 |
– |
_ACEOF |
10677 |
|
|
8464 |
– |
LIBS="-lintl $LIBS" |
10678 |
|
fi |
10679 |
|
|
10680 |
< |
fi |
10680 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10681 |
> |
test "$ac_cv_c_inline" != no && break |
10682 |
|
done |
10683 |
|
|
10684 |
< |
echo "$as_me:$LINENO: checking for working strtod" >&5 |
10685 |
< |
echo $ECHO_N "checking for working strtod... $ECHO_C" >&6 |
10686 |
< |
if test "${ac_cv_func_strtod+set}" = set; then |
8473 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8474 |
< |
else |
8475 |
< |
if test "$cross_compiling" = yes; then |
8476 |
< |
ac_cv_func_strtod=no |
8477 |
< |
else |
8478 |
< |
cat >conftest.$ac_ext <<_ACEOF |
8479 |
< |
/* confdefs.h. */ |
8480 |
< |
_ACEOF |
8481 |
< |
cat confdefs.h >>conftest.$ac_ext |
8482 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
8483 |
< |
/* end confdefs.h. */ |
10684 |
> |
fi |
10685 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
10686 |
> |
$as_echo "$ac_cv_c_inline" >&6; } |
10687 |
|
|
8485 |
– |
double strtod (); |
8486 |
– |
int |
8487 |
– |
main() |
8488 |
– |
{ |
8489 |
– |
{ |
8490 |
– |
/* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
8491 |
– |
char *string = " +69"; |
8492 |
– |
char *term; |
8493 |
– |
double value; |
8494 |
– |
value = strtod (string, &term); |
8495 |
– |
if (value != 69 || term != (string + 4)) |
8496 |
– |
exit (1); |
8497 |
– |
} |
10688 |
|
|
10689 |
< |
{ |
10690 |
< |
/* Under Solaris 2.4, strtod returns the wrong value for the |
10691 |
< |
terminating character under some conditions. */ |
10692 |
< |
char *string = "NaN"; |
10693 |
< |
char *term; |
10694 |
< |
strtod (string, &term); |
10695 |
< |
if (term != string && *(term - 1) == 0) |
10696 |
< |
exit (1); |
10697 |
< |
} |
10698 |
< |
exit (0); |
10699 |
< |
} |
8510 |
< |
|
10689 |
> |
case $ac_cv_c_inline in |
10690 |
> |
inline | yes) ;; |
10691 |
> |
*) |
10692 |
> |
case $ac_cv_c_inline in |
10693 |
> |
no) ac_val=;; |
10694 |
> |
*) ac_val=$ac_cv_c_inline;; |
10695 |
> |
esac |
10696 |
> |
cat >>confdefs.h <<_ACEOF |
10697 |
> |
#ifndef __cplusplus |
10698 |
> |
#define inline $ac_val |
10699 |
> |
#endif |
10700 |
|
_ACEOF |
10701 |
< |
rm -f conftest$ac_exeext |
8513 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8514 |
< |
(eval $ac_link) 2>&5 |
8515 |
< |
ac_status=$? |
8516 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8517 |
< |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
8518 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8519 |
< |
(eval $ac_try) 2>&5 |
8520 |
< |
ac_status=$? |
8521 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8522 |
< |
(exit $ac_status); }; }; then |
8523 |
< |
ac_cv_func_strtod=yes |
8524 |
< |
else |
8525 |
< |
echo "$as_me: program exited with status $ac_status" >&5 |
8526 |
< |
echo "$as_me: failed program was:" >&5 |
8527 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
8528 |
< |
|
8529 |
< |
( exit $ac_status ) |
8530 |
< |
ac_cv_func_strtod=no |
8531 |
< |
fi |
8532 |
< |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
8533 |
< |
fi |
8534 |
< |
fi |
8535 |
< |
echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
8536 |
< |
echo "${ECHO_T}$ac_cv_func_strtod" >&6 |
8537 |
< |
if test $ac_cv_func_strtod = no; then |
8538 |
< |
case $LIBOBJS in |
8539 |
< |
"strtod.$ac_objext" | \ |
8540 |
< |
*" strtod.$ac_objext" | \ |
8541 |
< |
"strtod.$ac_objext "* | \ |
8542 |
< |
*" strtod.$ac_objext "* ) ;; |
8543 |
< |
*) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;; |
10701 |
> |
;; |
10702 |
|
esac |
10703 |
|
|
10704 |
< |
echo "$as_me:$LINENO: checking for pow" >&5 |
10705 |
< |
echo $ECHO_N "checking for pow... $ECHO_C" >&6 |
10706 |
< |
if test "${ac_cv_func_pow+set}" = set; then |
10707 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10704 |
> |
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
10705 |
> |
$as_echo_n "checking for size_t... " >&6; } |
10706 |
> |
if test "${ac_cv_type_size_t+set}" = set; then |
10707 |
> |
$as_echo_n "(cached) " >&6 |
10708 |
|
else |
10709 |
< |
cat >conftest.$ac_ext <<_ACEOF |
10709 |
> |
ac_cv_type_size_t=no |
10710 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10711 |
|
/* confdefs.h. */ |
10712 |
|
_ACEOF |
10713 |
|
cat confdefs.h >>conftest.$ac_ext |
10714 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10715 |
|
/* end confdefs.h. */ |
10716 |
< |
/* Define pow to an innocuous variant, in case <limits.h> declares pow. |
8558 |
< |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8559 |
< |
#define pow innocuous_pow |
8560 |
< |
|
8561 |
< |
/* System header to define __stub macros and hopefully few prototypes, |
8562 |
< |
which can conflict with char pow (); below. |
8563 |
< |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8564 |
< |
<limits.h> exists even on freestanding compilers. */ |
8565 |
< |
|
8566 |
< |
#ifdef __STDC__ |
8567 |
< |
# include <limits.h> |
8568 |
< |
#else |
8569 |
< |
# include <assert.h> |
8570 |
< |
#endif |
8571 |
< |
|
8572 |
< |
#undef pow |
8573 |
< |
|
8574 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
8575 |
< |
#ifdef __cplusplus |
8576 |
< |
extern "C" |
8577 |
< |
{ |
8578 |
< |
#endif |
8579 |
< |
/* We use char because int might match the return type of a gcc2 |
8580 |
< |
builtin and then its argument prototype would still apply. */ |
8581 |
< |
char pow (); |
8582 |
< |
/* The GNU C library defines this for functions which it implements |
8583 |
< |
to always fail with ENOSYS. Some functions are actually named |
8584 |
< |
something starting with __ and the normal name is an alias. */ |
8585 |
< |
#if defined (__stub_pow) || defined (__stub___pow) |
8586 |
< |
choke me |
8587 |
< |
#else |
8588 |
< |
char (*f) () = pow; |
8589 |
< |
#endif |
8590 |
< |
#ifdef __cplusplus |
8591 |
< |
} |
8592 |
< |
#endif |
8593 |
< |
|
10716 |
> |
$ac_includes_default |
10717 |
|
#ifdef FC_DUMMY_MAIN |
10718 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10719 |
|
# ifdef __cplusplus |
10725 |
|
int |
10726 |
|
main () |
10727 |
|
{ |
10728 |
< |
return f != pow; |
10728 |
> |
if (sizeof (size_t)) |
10729 |
> |
return 0; |
10730 |
|
; |
10731 |
|
return 0; |
10732 |
|
} |
10733 |
|
_ACEOF |
10734 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
10735 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10736 |
< |
(eval $ac_link) 2>conftest.er1 |
10734 |
> |
rm -f conftest.$ac_objext |
10735 |
> |
if { (ac_try="$ac_compile" |
10736 |
> |
case "(($ac_try" in |
10737 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10738 |
> |
*) ac_try_echo=$ac_try;; |
10739 |
> |
esac |
10740 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10741 |
> |
$as_echo "$ac_try_echo") >&5 |
10742 |
> |
(eval "$ac_compile") 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); } && |
10749 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
10750 |
< |
|| test ! -s conftest.err' |
10751 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10752 |
< |
(eval $ac_try) 2>&5 |
8623 |
< |
ac_status=$? |
8624 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8625 |
< |
(exit $ac_status); }; } && |
8626 |
< |
{ ac_try='test -s conftest$ac_exeext' |
8627 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8628 |
< |
(eval $ac_try) 2>&5 |
8629 |
< |
ac_status=$? |
8630 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8631 |
< |
(exit $ac_status); }; }; then |
8632 |
< |
ac_cv_func_pow=yes |
8633 |
< |
else |
8634 |
< |
echo "$as_me: failed program was:" >&5 |
8635 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
8636 |
< |
|
8637 |
< |
ac_cv_func_pow=no |
8638 |
< |
fi |
8639 |
< |
rm -f conftest.err conftest.$ac_objext \ |
8640 |
< |
conftest$ac_exeext conftest.$ac_ext |
8641 |
< |
fi |
8642 |
< |
echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8643 |
< |
echo "${ECHO_T}$ac_cv_func_pow" >&6 |
8644 |
< |
|
8645 |
< |
if test $ac_cv_func_pow = no; then |
8646 |
< |
echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8647 |
< |
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6 |
8648 |
< |
if test "${ac_cv_lib_m_pow+set}" = set; then |
8649 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8650 |
< |
else |
8651 |
< |
ac_check_lib_save_LIBS=$LIBS |
8652 |
< |
LIBS="-lm $LIBS" |
8653 |
< |
cat >conftest.$ac_ext <<_ACEOF |
10747 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10748 |
> |
(exit $ac_status); } && { |
10749 |
> |
test -z "$ac_c_werror_flag" || |
10750 |
> |
test ! -s conftest.err |
10751 |
> |
} && test -s conftest.$ac_objext; then |
10752 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10753 |
|
/* confdefs.h. */ |
10754 |
|
_ACEOF |
10755 |
|
cat confdefs.h >>conftest.$ac_ext |
10756 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10757 |
|
/* end confdefs.h. */ |
10758 |
< |
|
8660 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
8661 |
< |
#ifdef __cplusplus |
8662 |
< |
extern "C" |
8663 |
< |
#endif |
8664 |
< |
/* We use char because int might match the return type of a gcc2 |
8665 |
< |
builtin and then its argument prototype would still apply. */ |
8666 |
< |
char pow (); |
10758 |
> |
$ac_includes_default |
10759 |
|
#ifdef FC_DUMMY_MAIN |
10760 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10761 |
|
# ifdef __cplusplus |
10767 |
|
int |
10768 |
|
main () |
10769 |
|
{ |
10770 |
< |
pow (); |
10770 |
> |
if (sizeof ((size_t))) |
10771 |
> |
return 0; |
10772 |
|
; |
10773 |
|
return 0; |
10774 |
|
} |
10775 |
|
_ACEOF |
10776 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
10777 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10778 |
< |
(eval $ac_link) 2>conftest.er1 |
10776 |
> |
rm -f conftest.$ac_objext |
10777 |
> |
if { (ac_try="$ac_compile" |
10778 |
> |
case "(($ac_try" in |
10779 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10780 |
> |
*) ac_try_echo=$ac_try;; |
10781 |
> |
esac |
10782 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10783 |
> |
$as_echo "$ac_try_echo") >&5 |
10784 |
> |
(eval "$ac_compile") 2>conftest.er1 |
10785 |
|
ac_status=$? |
10786 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
10787 |
|
rm -f conftest.er1 |
10788 |
|
cat conftest.err >&5 |
10789 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10790 |
< |
(exit $ac_status); } && |
10791 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
10792 |
< |
|| test ! -s conftest.err' |
10793 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10794 |
< |
(eval $ac_try) 2>&5 |
8696 |
< |
ac_status=$? |
8697 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8698 |
< |
(exit $ac_status); }; } && |
8699 |
< |
{ ac_try='test -s conftest$ac_exeext' |
8700 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8701 |
< |
(eval $ac_try) 2>&5 |
8702 |
< |
ac_status=$? |
8703 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8704 |
< |
(exit $ac_status); }; }; then |
8705 |
< |
ac_cv_lib_m_pow=yes |
10789 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10790 |
> |
(exit $ac_status); } && { |
10791 |
> |
test -z "$ac_c_werror_flag" || |
10792 |
> |
test ! -s conftest.err |
10793 |
> |
} && test -s conftest.$ac_objext; then |
10794 |
> |
: |
10795 |
|
else |
10796 |
< |
echo "$as_me: failed program was:" >&5 |
10796 |
> |
$as_echo "$as_me: failed program was:" >&5 |
10797 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10798 |
|
|
10799 |
< |
ac_cv_lib_m_pow=no |
10799 |
> |
ac_cv_type_size_t=yes |
10800 |
|
fi |
10801 |
< |
rm -f conftest.err conftest.$ac_objext \ |
10802 |
< |
conftest$ac_exeext conftest.$ac_ext |
8714 |
< |
LIBS=$ac_check_lib_save_LIBS |
8715 |
< |
fi |
8716 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8717 |
< |
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6 |
8718 |
< |
if test $ac_cv_lib_m_pow = yes; then |
8719 |
< |
POW_LIB=-lm |
10801 |
> |
|
10802 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10803 |
|
else |
10804 |
< |
{ echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
10805 |
< |
echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
8723 |
< |
fi |
10804 |
> |
$as_echo "$as_me: failed program was:" >&5 |
10805 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
10806 |
|
|
10807 |
+ |
|
10808 |
|
fi |
10809 |
|
|
10810 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10811 |
|
fi |
10812 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
10813 |
+ |
$as_echo "$ac_cv_type_size_t" >&6; } |
10814 |
+ |
if test $ac_cv_type_size_t = yes; then |
10815 |
+ |
: |
10816 |
+ |
else |
10817 |
|
|
10818 |
+ |
cat >>confdefs.h <<_ACEOF |
10819 |
+ |
#define size_t unsigned int |
10820 |
+ |
_ACEOF |
10821 |
|
|
10822 |
+ |
fi |
10823 |
|
|
10824 |
< |
|
10825 |
< |
|
10826 |
< |
|
10827 |
< |
|
8735 |
< |
|
8736 |
< |
|
8737 |
< |
|
8738 |
< |
|
8739 |
< |
|
8740 |
< |
|
8741 |
< |
|
8742 |
< |
|
8743 |
< |
|
8744 |
< |
|
8745 |
< |
|
8746 |
< |
|
8747 |
< |
|
8748 |
< |
|
8749 |
< |
|
8750 |
< |
|
8751 |
< |
|
8752 |
< |
|
8753 |
< |
|
8754 |
< |
|
8755 |
< |
for ac_func in floor getpagesize gettimeofday memchr memmove memset pow pstat_getdynamic rint select snprintf sranddev sqrt strcasecmp strchr strdup stricmp strncasecmp strnicmp strrchr strstr strtol sysmp getsysinfo sysctl table |
8756 |
< |
do |
8757 |
< |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8758 |
< |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8759 |
< |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8760 |
< |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
8761 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10824 |
> |
{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
10825 |
> |
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
10826 |
> |
if test "${ac_cv_header_time+set}" = set; then |
10827 |
> |
$as_echo_n "(cached) " >&6 |
10828 |
|
else |
10829 |
|
cat >conftest.$ac_ext <<_ACEOF |
10830 |
|
/* confdefs.h. */ |
10832 |
|
cat confdefs.h >>conftest.$ac_ext |
10833 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10834 |
|
/* end confdefs.h. */ |
10835 |
< |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10836 |
< |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
10837 |
< |
#define $ac_func innocuous_$ac_func |
10835 |
> |
#include <sys/types.h> |
10836 |
> |
#include <sys/time.h> |
10837 |
> |
#include <time.h> |
10838 |
|
|
8773 |
– |
/* System header to define __stub macros and hopefully few prototypes, |
8774 |
– |
which can conflict with char $ac_func (); below. |
8775 |
– |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8776 |
– |
<limits.h> exists even on freestanding compilers. */ |
8777 |
– |
|
8778 |
– |
#ifdef __STDC__ |
8779 |
– |
# include <limits.h> |
8780 |
– |
#else |
8781 |
– |
# include <assert.h> |
8782 |
– |
#endif |
8783 |
– |
|
8784 |
– |
#undef $ac_func |
8785 |
– |
|
8786 |
– |
/* Override any gcc2 internal prototype to avoid an error. */ |
8787 |
– |
#ifdef __cplusplus |
8788 |
– |
extern "C" |
8789 |
– |
{ |
8790 |
– |
#endif |
8791 |
– |
/* We use char because int might match the return type of a gcc2 |
8792 |
– |
builtin and then its argument prototype would still apply. */ |
8793 |
– |
char $ac_func (); |
8794 |
– |
/* The GNU C library defines this for functions which it implements |
8795 |
– |
to always fail with ENOSYS. Some functions are actually named |
8796 |
– |
something starting with __ and the normal name is an alias. */ |
8797 |
– |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
8798 |
– |
choke me |
8799 |
– |
#else |
8800 |
– |
char (*f) () = $ac_func; |
8801 |
– |
#endif |
8802 |
– |
#ifdef __cplusplus |
8803 |
– |
} |
8804 |
– |
#endif |
8805 |
– |
|
10839 |
|
#ifdef FC_DUMMY_MAIN |
10840 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10841 |
|
# ifdef __cplusplus |
10847 |
|
int |
10848 |
|
main () |
10849 |
|
{ |
10850 |
< |
return f != $ac_func; |
10850 |
> |
if ((struct tm *) 0) |
10851 |
> |
return 0; |
10852 |
|
; |
10853 |
|
return 0; |
10854 |
|
} |
10855 |
|
_ACEOF |
10856 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
10857 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10858 |
< |
(eval $ac_link) 2>conftest.er1 |
10856 |
> |
rm -f conftest.$ac_objext |
10857 |
> |
if { (ac_try="$ac_compile" |
10858 |
> |
case "(($ac_try" in |
10859 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10860 |
> |
*) ac_try_echo=$ac_try;; |
10861 |
> |
esac |
10862 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10863 |
> |
$as_echo "$ac_try_echo") >&5 |
10864 |
> |
(eval "$ac_compile") 2>conftest.er1 |
10865 |
|
ac_status=$? |
10866 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
10867 |
|
rm -f conftest.er1 |
10868 |
|
cat conftest.err >&5 |
10869 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10870 |
< |
(exit $ac_status); } && |
10871 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
10872 |
< |
|| test ! -s conftest.err' |
10873 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10874 |
< |
(eval $ac_try) 2>&5 |
8835 |
< |
ac_status=$? |
8836 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8837 |
< |
(exit $ac_status); }; } && |
8838 |
< |
{ ac_try='test -s conftest$ac_exeext' |
8839 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8840 |
< |
(eval $ac_try) 2>&5 |
8841 |
< |
ac_status=$? |
8842 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8843 |
< |
(exit $ac_status); }; }; then |
8844 |
< |
eval "$as_ac_var=yes" |
10869 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10870 |
> |
(exit $ac_status); } && { |
10871 |
> |
test -z "$ac_c_werror_flag" || |
10872 |
> |
test ! -s conftest.err |
10873 |
> |
} && test -s conftest.$ac_objext; then |
10874 |
> |
ac_cv_header_time=yes |
10875 |
|
else |
10876 |
< |
echo "$as_me: failed program was:" >&5 |
10876 |
> |
$as_echo "$as_me: failed program was:" >&5 |
10877 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10878 |
|
|
10879 |
< |
eval "$as_ac_var=no" |
10879 |
> |
ac_cv_header_time=no |
10880 |
|
fi |
10881 |
< |
rm -f conftest.err conftest.$ac_objext \ |
10882 |
< |
conftest$ac_exeext conftest.$ac_ext |
10881 |
> |
|
10882 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10883 |
|
fi |
10884 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
10885 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10886 |
< |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
10887 |
< |
cat >>confdefs.h <<_ACEOF |
10888 |
< |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
10884 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
10885 |
> |
$as_echo "$ac_cv_header_time" >&6; } |
10886 |
> |
if test $ac_cv_header_time = yes; then |
10887 |
> |
|
10888 |
> |
cat >>confdefs.h <<\_ACEOF |
10889 |
> |
#define TIME_WITH_SYS_TIME 1 |
10890 |
|
_ACEOF |
10891 |
|
|
10892 |
|
fi |
8862 |
– |
done |
10893 |
|
|
10894 |
|
|
10895 |
< |
# special check for _system_configuration because AIX <4.3.2 do not |
10896 |
< |
# contain the `physmem' member. |
10897 |
< |
echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5 |
10898 |
< |
echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6 |
10895 |
> |
# Checks for library functions. |
10896 |
> |
|
10897 |
> |
for ac_header in stdlib.h |
10898 |
> |
do |
10899 |
> |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10900 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10901 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10902 |
> |
$as_echo_n "checking for $ac_header... " >&6; } |
10903 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10904 |
> |
$as_echo_n "(cached) " >&6 |
10905 |
> |
fi |
10906 |
> |
ac_res=`eval 'as_val=${'$as_ac_Header'} |
10907 |
> |
$as_echo "$as_val"'` |
10908 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
10909 |
> |
$as_echo "$ac_res" >&6; } |
10910 |
> |
else |
10911 |
> |
# Is the header compilable? |
10912 |
> |
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10913 |
> |
$as_echo_n "checking $ac_header usability... " >&6; } |
10914 |
|
cat >conftest.$ac_ext <<_ACEOF |
10915 |
|
/* confdefs.h. */ |
10916 |
|
_ACEOF |
10917 |
|
cat confdefs.h >>conftest.$ac_ext |
10918 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10919 |
|
/* end confdefs.h. */ |
10920 |
< |
#include <sys/systemcfg.h> |
10920 |
> |
$ac_includes_default |
10921 |
> |
#include <$ac_header> |
10922 |
> |
_ACEOF |
10923 |
> |
rm -f conftest.$ac_objext |
10924 |
> |
if { (ac_try="$ac_compile" |
10925 |
> |
case "(($ac_try" in |
10926 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10927 |
> |
*) ac_try_echo=$ac_try;; |
10928 |
> |
esac |
10929 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10930 |
> |
$as_echo "$ac_try_echo") >&5 |
10931 |
> |
(eval "$ac_compile") 2>conftest.er1 |
10932 |
> |
ac_status=$? |
10933 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
10934 |
> |
rm -f conftest.er1 |
10935 |
> |
cat conftest.err >&5 |
10936 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10937 |
> |
(exit $ac_status); } && { |
10938 |
> |
test -z "$ac_c_werror_flag" || |
10939 |
> |
test ! -s conftest.err |
10940 |
> |
} && test -s conftest.$ac_objext; then |
10941 |
> |
ac_header_compiler=yes |
10942 |
> |
else |
10943 |
> |
$as_echo "$as_me: failed program was:" >&5 |
10944 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
10945 |
> |
|
10946 |
> |
ac_header_compiler=no |
10947 |
> |
fi |
10948 |
> |
|
10949 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10950 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10951 |
> |
$as_echo "$ac_header_compiler" >&6; } |
10952 |
> |
|
10953 |
> |
# Is the header present? |
10954 |
> |
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10955 |
> |
$as_echo_n "checking $ac_header presence... " >&6; } |
10956 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10957 |
> |
/* confdefs.h. */ |
10958 |
> |
_ACEOF |
10959 |
> |
cat confdefs.h >>conftest.$ac_ext |
10960 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
10961 |
> |
/* end confdefs.h. */ |
10962 |
> |
#include <$ac_header> |
10963 |
> |
_ACEOF |
10964 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
10965 |
> |
case "(($ac_try" in |
10966 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10967 |
> |
*) ac_try_echo=$ac_try;; |
10968 |
> |
esac |
10969 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10970 |
> |
$as_echo "$ac_try_echo") >&5 |
10971 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
10972 |
> |
ac_status=$? |
10973 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
10974 |
> |
rm -f conftest.er1 |
10975 |
> |
cat conftest.err >&5 |
10976 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10977 |
> |
(exit $ac_status); } >/dev/null && { |
10978 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
10979 |
> |
test ! -s conftest.err |
10980 |
> |
}; then |
10981 |
> |
ac_header_preproc=yes |
10982 |
> |
else |
10983 |
> |
$as_echo "$as_me: failed program was:" >&5 |
10984 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
10985 |
> |
|
10986 |
> |
ac_header_preproc=no |
10987 |
> |
fi |
10988 |
> |
|
10989 |
> |
rm -f conftest.err conftest.$ac_ext |
10990 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10991 |
> |
$as_echo "$ac_header_preproc" >&6; } |
10992 |
> |
|
10993 |
> |
# So? What about this header? |
10994 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10995 |
> |
yes:no: ) |
10996 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10997 |
> |
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10998 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10999 |
> |
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
11000 |
> |
ac_header_preproc=yes |
11001 |
> |
;; |
11002 |
> |
no:yes:* ) |
11003 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11004 |
> |
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
11005 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11006 |
> |
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
11007 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
11008 |
> |
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
11009 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
11010 |
> |
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
11011 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11012 |
> |
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
11013 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11014 |
> |
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
11015 |
> |
( cat <<\_ASBOX |
11016 |
> |
## ------------------------------ ## |
11017 |
> |
## Report this to gezelter@nd.edu ## |
11018 |
> |
## ------------------------------ ## |
11019 |
> |
_ASBOX |
11020 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
11021 |
> |
;; |
11022 |
> |
esac |
11023 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11024 |
> |
$as_echo_n "checking for $ac_header... " >&6; } |
11025 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11026 |
> |
$as_echo_n "(cached) " >&6 |
11027 |
> |
else |
11028 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
11029 |
> |
fi |
11030 |
> |
ac_res=`eval 'as_val=${'$as_ac_Header'} |
11031 |
> |
$as_echo "$as_val"'` |
11032 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
11033 |
> |
$as_echo "$ac_res" >&6; } |
11034 |
> |
|
11035 |
> |
fi |
11036 |
> |
if test `eval 'as_val=${'$as_ac_Header'} |
11037 |
> |
$as_echo "$as_val"'` = yes; then |
11038 |
> |
cat >>confdefs.h <<_ACEOF |
11039 |
> |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
11040 |
> |
_ACEOF |
11041 |
> |
|
11042 |
> |
fi |
11043 |
> |
|
11044 |
> |
done |
11045 |
> |
|
11046 |
> |
{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
11047 |
> |
$as_echo_n "checking for GNU libc compatible malloc... " >&6; } |
11048 |
> |
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
11049 |
> |
$as_echo_n "(cached) " >&6 |
11050 |
> |
else |
11051 |
> |
if test "$cross_compiling" = yes; then |
11052 |
> |
ac_cv_func_malloc_0_nonnull=no |
11053 |
> |
else |
11054 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11055 |
> |
/* confdefs.h. */ |
11056 |
> |
_ACEOF |
11057 |
> |
cat confdefs.h >>conftest.$ac_ext |
11058 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
11059 |
> |
/* end confdefs.h. */ |
11060 |
> |
#if defined STDC_HEADERS || defined HAVE_STDLIB_H |
11061 |
> |
# include <stdlib.h> |
11062 |
> |
#else |
11063 |
> |
char *malloc (); |
11064 |
> |
#endif |
11065 |
> |
|
11066 |
|
#ifdef FC_DUMMY_MAIN |
11067 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11068 |
|
# ifdef __cplusplus |
11074 |
|
int |
11075 |
|
main () |
11076 |
|
{ |
11077 |
< |
double x = _system_configuration.physmem; |
11077 |
> |
return ! malloc (0); |
11078 |
|
; |
11079 |
|
return 0; |
11080 |
|
} |
11081 |
|
_ACEOF |
11082 |
< |
rm -f conftest.$ac_objext |
11083 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11084 |
< |
(eval $ac_compile) 2>conftest.er1 |
11082 |
> |
rm -f conftest$ac_exeext |
11083 |
> |
if { (ac_try="$ac_link" |
11084 |
> |
case "(($ac_try" in |
11085 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11086 |
> |
*) ac_try_echo=$ac_try;; |
11087 |
> |
esac |
11088 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11089 |
> |
$as_echo "$ac_try_echo") >&5 |
11090 |
> |
(eval "$ac_link") 2>&5 |
11091 |
|
ac_status=$? |
11092 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
11093 |
< |
rm -f conftest.er1 |
11094 |
< |
cat conftest.err >&5 |
11095 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11096 |
< |
(exit $ac_status); } && |
11097 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
11098 |
< |
|| test ! -s conftest.err' |
11099 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11100 |
< |
(eval $ac_try) 2>&5 |
11092 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11093 |
> |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
11094 |
> |
{ (case "(($ac_try" in |
11095 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11096 |
> |
*) ac_try_echo=$ac_try;; |
11097 |
> |
esac |
11098 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11099 |
> |
$as_echo "$ac_try_echo") >&5 |
11100 |
> |
(eval "$ac_try") 2>&5 |
11101 |
|
ac_status=$? |
11102 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8907 |
< |
(exit $ac_status); }; } && |
8908 |
< |
{ ac_try='test -s conftest.$ac_objext' |
8909 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8910 |
< |
(eval $ac_try) 2>&5 |
8911 |
< |
ac_status=$? |
8912 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11102 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11103 |
|
(exit $ac_status); }; }; then |
11104 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
11105 |
< |
echo "${ECHO_T}yes" >&6 |
11104 |
> |
ac_cv_func_malloc_0_nonnull=yes |
11105 |
> |
else |
11106 |
> |
$as_echo "$as_me: program exited with status $ac_status" >&5 |
11107 |
> |
$as_echo "$as_me: failed program was:" >&5 |
11108 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
11109 |
|
|
11110 |
+ |
( exit $ac_status ) |
11111 |
+ |
ac_cv_func_malloc_0_nonnull=no |
11112 |
+ |
fi |
11113 |
+ |
rm -rf conftest.dSYM |
11114 |
+ |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11115 |
+ |
fi |
11116 |
+ |
|
11117 |
+ |
|
11118 |
+ |
fi |
11119 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
11120 |
+ |
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } |
11121 |
+ |
if test $ac_cv_func_malloc_0_nonnull = yes; then |
11122 |
+ |
|
11123 |
|
cat >>confdefs.h <<\_ACEOF |
11124 |
< |
#define HAVE__SYSTEM_CONFIGURATION 1 |
11124 |
> |
#define HAVE_MALLOC 1 |
11125 |
|
_ACEOF |
11126 |
|
|
11127 |
|
else |
11128 |
< |
echo "$as_me: failed program was:" >&5 |
11129 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
11128 |
> |
cat >>confdefs.h <<\_ACEOF |
11129 |
> |
#define HAVE_MALLOC 0 |
11130 |
> |
_ACEOF |
11131 |
|
|
11132 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
11133 |
< |
echo "${ECHO_T}no" >&6 |
11132 |
> |
case " $LIBOBJS " in |
11133 |
> |
*" malloc.$ac_objext "* ) ;; |
11134 |
> |
*) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
11135 |
> |
;; |
11136 |
> |
esac |
11137 |
> |
|
11138 |
> |
|
11139 |
> |
cat >>confdefs.h <<\_ACEOF |
11140 |
> |
#define malloc rpl_malloc |
11141 |
> |
_ACEOF |
11142 |
> |
|
11143 |
|
fi |
8928 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11144 |
|
|
8930 |
– |
# clean out junk possibly left behind by a previous configuration |
8931 |
– |
rm -f src/getopt.h |
8932 |
– |
# Check for getopt_long support |
11145 |
|
|
11146 |
< |
for ac_header in getopt.h |
11146 |
> |
|
11147 |
> |
|
11148 |
> |
for ac_header in stdlib.h |
11149 |
|
do |
11150 |
< |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11151 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11152 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11153 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11154 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11155 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11150 |
> |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11151 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11152 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11153 |
> |
$as_echo_n "checking for $ac_header... " >&6; } |
11154 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11155 |
> |
$as_echo_n "(cached) " >&6 |
11156 |
|
fi |
11157 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11158 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11157 |
> |
ac_res=`eval 'as_val=${'$as_ac_Header'} |
11158 |
> |
$as_echo "$as_val"'` |
11159 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
11160 |
> |
$as_echo "$ac_res" >&6; } |
11161 |
|
else |
11162 |
|
# Is the header compilable? |
11163 |
< |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11164 |
< |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
11163 |
> |
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11164 |
> |
$as_echo_n "checking $ac_header usability... " >&6; } |
11165 |
|
cat >conftest.$ac_ext <<_ACEOF |
11166 |
|
/* confdefs.h. */ |
11167 |
|
_ACEOF |
11172 |
|
#include <$ac_header> |
11173 |
|
_ACEOF |
11174 |
|
rm -f conftest.$ac_objext |
11175 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11176 |
< |
(eval $ac_compile) 2>conftest.er1 |
11175 |
> |
if { (ac_try="$ac_compile" |
11176 |
> |
case "(($ac_try" in |
11177 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11178 |
> |
*) ac_try_echo=$ac_try;; |
11179 |
> |
esac |
11180 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11181 |
> |
$as_echo "$ac_try_echo") >&5 |
11182 |
> |
(eval "$ac_compile") 2>conftest.er1 |
11183 |
|
ac_status=$? |
11184 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
11185 |
|
rm -f conftest.er1 |
11186 |
|
cat conftest.err >&5 |
11187 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11188 |
< |
(exit $ac_status); } && |
11189 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
11190 |
< |
|| test ! -s conftest.err' |
11191 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8970 |
< |
(eval $ac_try) 2>&5 |
8971 |
< |
ac_status=$? |
8972 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8973 |
< |
(exit $ac_status); }; } && |
8974 |
< |
{ ac_try='test -s conftest.$ac_objext' |
8975 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8976 |
< |
(eval $ac_try) 2>&5 |
8977 |
< |
ac_status=$? |
8978 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8979 |
< |
(exit $ac_status); }; }; then |
11187 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11188 |
> |
(exit $ac_status); } && { |
11189 |
> |
test -z "$ac_c_werror_flag" || |
11190 |
> |
test ! -s conftest.err |
11191 |
> |
} && test -s conftest.$ac_objext; then |
11192 |
|
ac_header_compiler=yes |
11193 |
|
else |
11194 |
< |
echo "$as_me: failed program was:" >&5 |
11194 |
> |
$as_echo "$as_me: failed program was:" >&5 |
11195 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11196 |
|
|
11197 |
< |
ac_header_compiler=no |
11197 |
> |
ac_header_compiler=no |
11198 |
|
fi |
8987 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8988 |
– |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8989 |
– |
echo "${ECHO_T}$ac_header_compiler" >&6 |
11199 |
|
|
11200 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11201 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11202 |
+ |
$as_echo "$ac_header_compiler" >&6; } |
11203 |
+ |
|
11204 |
|
# Is the header present? |
11205 |
< |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11206 |
< |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
11205 |
> |
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11206 |
> |
$as_echo_n "checking $ac_header presence... " >&6; } |
11207 |
|
cat >conftest.$ac_ext <<_ACEOF |
11208 |
|
/* confdefs.h. */ |
11209 |
|
_ACEOF |
11212 |
|
/* end confdefs.h. */ |
11213 |
|
#include <$ac_header> |
11214 |
|
_ACEOF |
11215 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
11216 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11215 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
11216 |
> |
case "(($ac_try" in |
11217 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11218 |
> |
*) ac_try_echo=$ac_try;; |
11219 |
> |
esac |
11220 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11221 |
> |
$as_echo "$ac_try_echo") >&5 |
11222 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
11223 |
|
ac_status=$? |
11224 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
11225 |
|
rm -f conftest.er1 |
11226 |
|
cat conftest.err >&5 |
11227 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11228 |
< |
(exit $ac_status); } >/dev/null; then |
11229 |
< |
if test -s conftest.err; then |
11230 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
11231 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
9013 |
< |
else |
9014 |
< |
ac_cpp_err= |
9015 |
< |
fi |
9016 |
< |
else |
9017 |
< |
ac_cpp_err=yes |
9018 |
< |
fi |
9019 |
< |
if test -z "$ac_cpp_err"; then |
11227 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11228 |
> |
(exit $ac_status); } >/dev/null && { |
11229 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
11230 |
> |
test ! -s conftest.err |
11231 |
> |
}; then |
11232 |
|
ac_header_preproc=yes |
11233 |
|
else |
11234 |
< |
echo "$as_me: failed program was:" >&5 |
11234 |
> |
$as_echo "$as_me: failed program was:" >&5 |
11235 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11236 |
|
|
11237 |
|
ac_header_preproc=no |
11238 |
|
fi |
11239 |
+ |
|
11240 |
|
rm -f conftest.err conftest.$ac_ext |
11241 |
< |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11242 |
< |
echo "${ECHO_T}$ac_header_preproc" >&6 |
11241 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11242 |
> |
$as_echo "$ac_header_preproc" >&6; } |
11243 |
|
|
11244 |
|
# So? What about this header? |
11245 |
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11246 |
|
yes:no: ) |
11247 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11248 |
< |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
11249 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11250 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
11247 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11248 |
> |
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
11249 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11250 |
> |
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
11251 |
|
ac_header_preproc=yes |
11252 |
|
;; |
11253 |
|
no:yes:* ) |
11254 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11255 |
< |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
11256 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11257 |
< |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
11258 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
11259 |
< |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
11260 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
11261 |
< |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
11262 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11263 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
11264 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11265 |
< |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
11266 |
< |
( |
9054 |
< |
cat <<\_ASBOX |
11254 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11255 |
> |
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
11256 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11257 |
> |
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
11258 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
11259 |
> |
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
11260 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
11261 |
> |
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
11262 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11263 |
> |
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
11264 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11265 |
> |
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
11266 |
> |
( cat <<\_ASBOX |
11267 |
|
## ------------------------------ ## |
11268 |
|
## Report this to gezelter@nd.edu ## |
11269 |
|
## ------------------------------ ## |
11270 |
|
_ASBOX |
11271 |
< |
) | |
9060 |
< |
sed "s/^/$as_me: WARNING: /" >&2 |
11271 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
11272 |
|
;; |
11273 |
|
esac |
11274 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11275 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11276 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11277 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11274 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11275 |
> |
$as_echo_n "checking for $ac_header... " >&6; } |
11276 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11277 |
> |
$as_echo_n "(cached) " >&6 |
11278 |
|
else |
11279 |
|
eval "$as_ac_Header=\$ac_header_preproc" |
11280 |
|
fi |
11281 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11282 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11281 |
> |
ac_res=`eval 'as_val=${'$as_ac_Header'} |
11282 |
> |
$as_echo "$as_val"'` |
11283 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
11284 |
> |
$as_echo "$ac_res" >&6; } |
11285 |
|
|
11286 |
|
fi |
11287 |
< |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11287 |
> |
if test `eval 'as_val=${'$as_ac_Header'} |
11288 |
> |
$as_echo "$as_val"'` = yes; then |
11289 |
|
cat >>confdefs.h <<_ACEOF |
11290 |
< |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
11290 |
> |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
11291 |
|
_ACEOF |
11292 |
|
|
11293 |
|
fi |
11294 |
|
|
11295 |
|
done |
11296 |
|
|
11297 |
< |
|
11298 |
< |
for ac_func in getopt_long |
11299 |
< |
do |
11300 |
< |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9087 |
< |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9088 |
< |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9089 |
< |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
9090 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11297 |
> |
{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 |
11298 |
> |
$as_echo_n "checking for GNU libc compatible realloc... " >&6; } |
11299 |
> |
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then |
11300 |
> |
$as_echo_n "(cached) " >&6 |
11301 |
|
else |
11302 |
+ |
if test "$cross_compiling" = yes; then |
11303 |
+ |
ac_cv_func_realloc_0_nonnull=no |
11304 |
+ |
else |
11305 |
|
cat >conftest.$ac_ext <<_ACEOF |
11306 |
|
/* confdefs.h. */ |
11307 |
|
_ACEOF |
11308 |
|
cat confdefs.h >>conftest.$ac_ext |
11309 |
|
cat >>conftest.$ac_ext <<_ACEOF |
11310 |
|
/* end confdefs.h. */ |
11311 |
< |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11312 |
< |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9100 |
< |
#define $ac_func innocuous_$ac_func |
9101 |
< |
|
9102 |
< |
/* System header to define __stub macros and hopefully few prototypes, |
9103 |
< |
which can conflict with char $ac_func (); below. |
9104 |
< |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9105 |
< |
<limits.h> exists even on freestanding compilers. */ |
9106 |
< |
|
9107 |
< |
#ifdef __STDC__ |
9108 |
< |
# include <limits.h> |
11311 |
> |
#if defined STDC_HEADERS || defined HAVE_STDLIB_H |
11312 |
> |
# include <stdlib.h> |
11313 |
|
#else |
11314 |
< |
# include <assert.h> |
11314 |
> |
char *realloc (); |
11315 |
|
#endif |
11316 |
|
|
9113 |
– |
#undef $ac_func |
9114 |
– |
|
9115 |
– |
/* Override any gcc2 internal prototype to avoid an error. */ |
9116 |
– |
#ifdef __cplusplus |
9117 |
– |
extern "C" |
9118 |
– |
{ |
9119 |
– |
#endif |
9120 |
– |
/* We use char because int might match the return type of a gcc2 |
9121 |
– |
builtin and then its argument prototype would still apply. */ |
9122 |
– |
char $ac_func (); |
9123 |
– |
/* The GNU C library defines this for functions which it implements |
9124 |
– |
to always fail with ENOSYS. Some functions are actually named |
9125 |
– |
something starting with __ and the normal name is an alias. */ |
9126 |
– |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
9127 |
– |
choke me |
9128 |
– |
#else |
9129 |
– |
char (*f) () = $ac_func; |
9130 |
– |
#endif |
9131 |
– |
#ifdef __cplusplus |
9132 |
– |
} |
9133 |
– |
#endif |
9134 |
– |
|
11317 |
|
#ifdef FC_DUMMY_MAIN |
11318 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11319 |
|
# ifdef __cplusplus |
11325 |
|
int |
11326 |
|
main () |
11327 |
|
{ |
11328 |
< |
return f != $ac_func; |
11328 |
> |
return ! realloc (0, 0); |
11329 |
|
; |
11330 |
|
return 0; |
11331 |
|
} |
11332 |
|
_ACEOF |
11333 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
11334 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11335 |
< |
(eval $ac_link) 2>conftest.er1 |
11333 |
> |
rm -f conftest$ac_exeext |
11334 |
> |
if { (ac_try="$ac_link" |
11335 |
> |
case "(($ac_try" in |
11336 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11337 |
> |
*) ac_try_echo=$ac_try;; |
11338 |
> |
esac |
11339 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11340 |
> |
$as_echo "$ac_try_echo") >&5 |
11341 |
> |
(eval "$ac_link") 2>&5 |
11342 |
|
ac_status=$? |
11343 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
11344 |
< |
rm -f conftest.er1 |
11345 |
< |
cat conftest.err >&5 |
11346 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11347 |
< |
(exit $ac_status); } && |
11348 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
11349 |
< |
|| test ! -s conftest.err' |
11350 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11351 |
< |
(eval $ac_try) 2>&5 |
11343 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11344 |
> |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
11345 |
> |
{ (case "(($ac_try" in |
11346 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11347 |
> |
*) ac_try_echo=$ac_try;; |
11348 |
> |
esac |
11349 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11350 |
> |
$as_echo "$ac_try_echo") >&5 |
11351 |
> |
(eval "$ac_try") 2>&5 |
11352 |
|
ac_status=$? |
11353 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9166 |
< |
(exit $ac_status); }; } && |
9167 |
< |
{ ac_try='test -s conftest$ac_exeext' |
9168 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9169 |
< |
(eval $ac_try) 2>&5 |
9170 |
< |
ac_status=$? |
9171 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11353 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11354 |
|
(exit $ac_status); }; }; then |
11355 |
< |
eval "$as_ac_var=yes" |
11355 |
> |
ac_cv_func_realloc_0_nonnull=yes |
11356 |
|
else |
11357 |
< |
echo "$as_me: failed program was:" >&5 |
11357 |
> |
$as_echo "$as_me: program exited with status $ac_status" >&5 |
11358 |
> |
$as_echo "$as_me: failed program was:" >&5 |
11359 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11360 |
|
|
11361 |
< |
eval "$as_ac_var=no" |
11361 |
> |
( exit $ac_status ) |
11362 |
> |
ac_cv_func_realloc_0_nonnull=no |
11363 |
|
fi |
11364 |
< |
rm -f conftest.err conftest.$ac_objext \ |
11365 |
< |
conftest$ac_exeext conftest.$ac_ext |
11364 |
> |
rm -rf conftest.dSYM |
11365 |
> |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11366 |
|
fi |
11367 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
11368 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
11369 |
< |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
11370 |
< |
cat >>confdefs.h <<_ACEOF |
11371 |
< |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
11367 |
> |
|
11368 |
> |
|
11369 |
> |
fi |
11370 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 |
11371 |
> |
$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } |
11372 |
> |
if test $ac_cv_func_realloc_0_nonnull = yes; then |
11373 |
> |
|
11374 |
> |
cat >>confdefs.h <<\_ACEOF |
11375 |
> |
#define HAVE_REALLOC 1 |
11376 |
|
_ACEOF |
11377 |
|
|
11378 |
|
else |
11379 |
< |
# FreeBSD has a gnugetopt library for this |
11380 |
< |
echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5 |
9193 |
< |
echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6 |
9194 |
< |
if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then |
9195 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9196 |
< |
else |
9197 |
< |
ac_check_lib_save_LIBS=$LIBS |
9198 |
< |
LIBS="-lgnugetopt $LIBS" |
9199 |
< |
cat >conftest.$ac_ext <<_ACEOF |
9200 |
< |
/* confdefs.h. */ |
11379 |
> |
cat >>confdefs.h <<\_ACEOF |
11380 |
> |
#define HAVE_REALLOC 0 |
11381 |
|
_ACEOF |
9202 |
– |
cat confdefs.h >>conftest.$ac_ext |
9203 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
9204 |
– |
/* end confdefs.h. */ |
11382 |
|
|
11383 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
11384 |
< |
#ifdef __cplusplus |
11385 |
< |
extern "C" |
11386 |
< |
#endif |
11387 |
< |
/* We use char because int might match the return type of a gcc2 |
11388 |
< |
builtin and then its argument prototype would still apply. */ |
11389 |
< |
char getopt_long (); |
11390 |
< |
#ifdef FC_DUMMY_MAIN |
11391 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
9215 |
< |
# ifdef __cplusplus |
9216 |
< |
extern "C" |
9217 |
< |
# endif |
9218 |
< |
int FC_DUMMY_MAIN() { return 1; } |
9219 |
< |
#endif |
9220 |
< |
#endif |
9221 |
< |
int |
9222 |
< |
main () |
9223 |
< |
{ |
9224 |
< |
getopt_long (); |
9225 |
< |
; |
9226 |
< |
return 0; |
9227 |
< |
} |
11383 |
> |
case " $LIBOBJS " in |
11384 |
> |
*" realloc.$ac_objext "* ) ;; |
11385 |
> |
*) LIBOBJS="$LIBOBJS realloc.$ac_objext" |
11386 |
> |
;; |
11387 |
> |
esac |
11388 |
> |
|
11389 |
> |
|
11390 |
> |
cat >>confdefs.h <<\_ACEOF |
11391 |
> |
#define realloc rpl_realloc |
11392 |
|
_ACEOF |
11393 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
11394 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11395 |
< |
(eval $ac_link) 2>conftest.er1 |
11393 |
> |
|
11394 |
> |
fi |
11395 |
> |
|
11396 |
> |
|
11397 |
> |
|
11398 |
> |
|
11399 |
> |
|
11400 |
> |
for ac_header in sys/select.h sys/socket.h |
11401 |
> |
do |
11402 |
> |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11403 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11404 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11405 |
> |
$as_echo_n "checking for $ac_header... " >&6; } |
11406 |
> |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11407 |
> |
$as_echo_n "(cached) " >&6 |
11408 |
> |
fi |
11409 |
> |
ac_res=`eval 'as_val=${'$as_ac_Header'} |
11410 |
> |
$as_echo "$as_val"'` |
11411 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
11412 |
> |
$as_echo "$ac_res" >&6; } |
11413 |
> |
else |
11414 |
> |
# Is the header compilable? |
11415 |
> |
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11416 |
> |
$as_echo_n "checking $ac_header usability... " >&6; } |
11417 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11418 |
> |
/* confdefs.h. */ |
11419 |
> |
_ACEOF |
11420 |
> |
cat confdefs.h >>conftest.$ac_ext |
11421 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
11422 |
> |
/* end confdefs.h. */ |
11423 |
> |
$ac_includes_default |
11424 |
> |
#include <$ac_header> |
11425 |
> |
_ACEOF |
11426 |
> |
rm -f conftest.$ac_objext |
11427 |
> |
if { (ac_try="$ac_compile" |
11428 |
> |
case "(($ac_try" in |
11429 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11430 |
> |
*) ac_try_echo=$ac_try;; |
11431 |
> |
esac |
11432 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11433 |
> |
$as_echo "$ac_try_echo") >&5 |
11434 |
> |
(eval "$ac_compile") 2>conftest.er1 |
11435 |
|
ac_status=$? |
11436 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
11437 |
|
rm -f conftest.er1 |
11438 |
|
cat conftest.err >&5 |
11439 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11440 |
< |
(exit $ac_status); } && |
11441 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
11442 |
< |
|| test ! -s conftest.err' |
11443 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11444 |
< |
(eval $ac_try) 2>&5 |
9242 |
< |
ac_status=$? |
9243 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9244 |
< |
(exit $ac_status); }; } && |
9245 |
< |
{ ac_try='test -s conftest$ac_exeext' |
9246 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9247 |
< |
(eval $ac_try) 2>&5 |
9248 |
< |
ac_status=$? |
9249 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9250 |
< |
(exit $ac_status); }; }; then |
9251 |
< |
ac_cv_lib_gnugetopt_getopt_long=yes |
11439 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11440 |
> |
(exit $ac_status); } && { |
11441 |
> |
test -z "$ac_c_werror_flag" || |
11442 |
> |
test ! -s conftest.err |
11443 |
> |
} && test -s conftest.$ac_objext; then |
11444 |
> |
ac_header_compiler=yes |
11445 |
|
else |
11446 |
< |
echo "$as_me: failed program was:" >&5 |
11446 |
> |
$as_echo "$as_me: failed program was:" >&5 |
11447 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11448 |
|
|
11449 |
< |
ac_cv_lib_gnugetopt_getopt_long=no |
11449 |
> |
ac_header_compiler=no |
11450 |
|
fi |
9258 |
– |
rm -f conftest.err conftest.$ac_objext \ |
9259 |
– |
conftest$ac_exeext conftest.$ac_ext |
9260 |
– |
LIBS=$ac_check_lib_save_LIBS |
9261 |
– |
fi |
9262 |
– |
echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5 |
9263 |
– |
echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6 |
9264 |
– |
if test $ac_cv_lib_gnugetopt_getopt_long = yes; then |
9265 |
– |
cat >>confdefs.h <<\_ACEOF |
9266 |
– |
#define HAVE_GETOPT_LONG 1 |
9267 |
– |
_ACEOF |
11451 |
|
|
11452 |
< |
else |
11453 |
< |
# use the GNU replacement |
11454 |
< |
case $LIBOBJS in |
9272 |
< |
"getopt.$ac_objext" | \ |
9273 |
< |
*" getopt.$ac_objext" | \ |
9274 |
< |
"getopt.$ac_objext "* | \ |
9275 |
< |
*" getopt.$ac_objext "* ) ;; |
9276 |
< |
*) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;; |
9277 |
< |
esac |
11452 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11453 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11454 |
> |
$as_echo "$ac_header_compiler" >&6; } |
11455 |
|
|
11456 |
< |
case $LIBOBJS in |
11457 |
< |
"getopt1.$ac_objext" | \ |
11458 |
< |
*" getopt1.$ac_objext" | \ |
11459 |
< |
"getopt1.$ac_objext "* | \ |
11460 |
< |
*" getopt1.$ac_objext "* ) ;; |
11461 |
< |
*) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;; |
11456 |
> |
# Is the header present? |
11457 |
> |
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11458 |
> |
$as_echo_n "checking $ac_header presence... " >&6; } |
11459 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11460 |
> |
/* confdefs.h. */ |
11461 |
> |
_ACEOF |
11462 |
> |
cat confdefs.h >>conftest.$ac_ext |
11463 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
11464 |
> |
/* end confdefs.h. */ |
11465 |
> |
#include <$ac_header> |
11466 |
> |
_ACEOF |
11467 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
11468 |
> |
case "(($ac_try" in |
11469 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11470 |
> |
*) ac_try_echo=$ac_try;; |
11471 |
|
esac |
11472 |
+ |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11473 |
+ |
$as_echo "$ac_try_echo") >&5 |
11474 |
+ |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
11475 |
+ |
ac_status=$? |
11476 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
11477 |
+ |
rm -f conftest.er1 |
11478 |
+ |
cat conftest.err >&5 |
11479 |
+ |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11480 |
+ |
(exit $ac_status); } >/dev/null && { |
11481 |
+ |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
11482 |
+ |
test ! -s conftest.err |
11483 |
+ |
}; then |
11484 |
+ |
ac_header_preproc=yes |
11485 |
+ |
else |
11486 |
+ |
$as_echo "$as_me: failed program was:" >&5 |
11487 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
11488 |
|
|
11489 |
< |
ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h" |
11489 |
> |
ac_header_preproc=no |
11490 |
> |
fi |
11491 |
|
|
11492 |
+ |
rm -f conftest.err conftest.$ac_ext |
11493 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11494 |
+ |
$as_echo "$ac_header_preproc" >&6; } |
11495 |
+ |
|
11496 |
+ |
# So? What about this header? |
11497 |
+ |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11498 |
+ |
yes:no: ) |
11499 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11500 |
+ |
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
11501 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11502 |
+ |
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
11503 |
+ |
ac_header_preproc=yes |
11504 |
+ |
;; |
11505 |
+ |
no:yes:* ) |
11506 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11507 |
+ |
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
11508 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11509 |
+ |
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
11510 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
11511 |
+ |
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
11512 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
11513 |
+ |
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
11514 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11515 |
+ |
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
11516 |
+ |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11517 |
+ |
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
11518 |
+ |
( cat <<\_ASBOX |
11519 |
+ |
## ------------------------------ ## |
11520 |
+ |
## Report this to gezelter@nd.edu ## |
11521 |
+ |
## ------------------------------ ## |
11522 |
+ |
_ASBOX |
11523 |
+ |
) | sed "s/^/$as_me: WARNING: /" >&2 |
11524 |
+ |
;; |
11525 |
+ |
esac |
11526 |
+ |
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11527 |
+ |
$as_echo_n "checking for $ac_header... " >&6; } |
11528 |
+ |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11529 |
+ |
$as_echo_n "(cached) " >&6 |
11530 |
+ |
else |
11531 |
+ |
eval "$as_ac_Header=\$ac_header_preproc" |
11532 |
|
fi |
11533 |
+ |
ac_res=`eval 'as_val=${'$as_ac_Header'} |
11534 |
+ |
$as_echo "$as_val"'` |
11535 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
11536 |
+ |
$as_echo "$ac_res" >&6; } |
11537 |
|
|
11538 |
|
fi |
11539 |
< |
done |
11539 |
> |
if test `eval 'as_val=${'$as_ac_Header'} |
11540 |
> |
$as_echo "$as_val"'` = yes; then |
11541 |
> |
cat >>confdefs.h <<_ACEOF |
11542 |
> |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
11543 |
> |
_ACEOF |
11544 |
|
|
11545 |
+ |
fi |
11546 |
|
|
11547 |
< |
ac_ext=cc |
9296 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
9297 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9298 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9299 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
11547 |
> |
done |
11548 |
|
|
11549 |
< |
|
11550 |
< |
echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
11551 |
< |
echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 |
11552 |
< |
if test "${ac_cv_cxx_namespaces+set}" = set; then |
9305 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11549 |
> |
{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
11550 |
> |
$as_echo_n "checking types of arguments for select... " >&6; } |
11551 |
> |
if test "${ac_cv_func_select_args+set}" = set; then |
11552 |
> |
$as_echo_n "(cached) " >&6 |
11553 |
|
else |
11554 |
< |
|
11555 |
< |
|
11556 |
< |
ac_ext=cc |
11557 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
9311 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9312 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9313 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
9314 |
< |
|
9315 |
< |
cat >conftest.$ac_ext <<_ACEOF |
11554 |
> |
for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
11555 |
> |
for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
11556 |
> |
for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
11557 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11558 |
|
/* confdefs.h. */ |
11559 |
|
_ACEOF |
11560 |
|
cat confdefs.h >>conftest.$ac_ext |
11561 |
|
cat >>conftest.$ac_ext <<_ACEOF |
11562 |
|
/* end confdefs.h. */ |
11563 |
< |
namespace Outer { namespace Inner { int i = 0; }} |
11563 |
> |
$ac_includes_default |
11564 |
> |
#ifdef HAVE_SYS_SELECT_H |
11565 |
> |
# include <sys/select.h> |
11566 |
> |
#endif |
11567 |
> |
#ifdef HAVE_SYS_SOCKET_H |
11568 |
> |
# include <sys/socket.h> |
11569 |
> |
#endif |
11570 |
> |
|
11571 |
|
#ifdef FC_DUMMY_MAIN |
11572 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11573 |
|
# ifdef __cplusplus |
11579 |
|
int |
11580 |
|
main () |
11581 |
|
{ |
11582 |
< |
using namespace Outer::Inner; return i; |
11582 |
> |
extern int select ($ac_arg1, |
11583 |
> |
$ac_arg234, $ac_arg234, $ac_arg234, |
11584 |
> |
$ac_arg5); |
11585 |
|
; |
11586 |
|
return 0; |
11587 |
|
} |
11588 |
|
_ACEOF |
11589 |
|
rm -f conftest.$ac_objext |
11590 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11591 |
< |
(eval $ac_compile) 2>conftest.er1 |
11590 |
> |
if { (ac_try="$ac_compile" |
11591 |
> |
case "(($ac_try" in |
11592 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11593 |
> |
*) ac_try_echo=$ac_try;; |
11594 |
> |
esac |
11595 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11596 |
> |
$as_echo "$ac_try_echo") >&5 |
11597 |
> |
(eval "$ac_compile") 2>conftest.er1 |
11598 |
|
ac_status=$? |
11599 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
11600 |
|
rm -f conftest.er1 |
11601 |
|
cat conftest.err >&5 |
11602 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11603 |
< |
(exit $ac_status); } && |
11604 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
11605 |
< |
|| test ! -s conftest.err' |
11606 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11607 |
< |
(eval $ac_try) 2>&5 |
9351 |
< |
ac_status=$? |
9352 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9353 |
< |
(exit $ac_status); }; } && |
9354 |
< |
{ ac_try='test -s conftest.$ac_objext' |
9355 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9356 |
< |
(eval $ac_try) 2>&5 |
9357 |
< |
ac_status=$? |
9358 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9359 |
< |
(exit $ac_status); }; }; then |
9360 |
< |
ac_cv_cxx_namespaces=yes |
11602 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11603 |
> |
(exit $ac_status); } && { |
11604 |
> |
test -z "$ac_c_werror_flag" || |
11605 |
> |
test ! -s conftest.err |
11606 |
> |
} && test -s conftest.$ac_objext; then |
11607 |
> |
ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
11608 |
|
else |
11609 |
< |
echo "$as_me: failed program was:" >&5 |
11609 |
> |
$as_echo "$as_me: failed program was:" >&5 |
11610 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11611 |
|
|
9365 |
– |
ac_cv_cxx_namespaces=no |
9366 |
– |
fi |
9367 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9368 |
– |
ac_ext=cc |
9369 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
9370 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9371 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9372 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
11612 |
|
|
11613 |
+ |
fi |
11614 |
|
|
11615 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11616 |
+ |
done |
11617 |
+ |
done |
11618 |
+ |
done |
11619 |
+ |
# Provide a safe default value. |
11620 |
+ |
: ${ac_cv_func_select_args='int,int *,struct timeval *'} |
11621 |
+ |
|
11622 |
|
fi |
11623 |
< |
echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
11624 |
< |
echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 |
11625 |
< |
if test "$ac_cv_cxx_namespaces" = yes; then |
11623 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
11624 |
> |
$as_echo "$ac_cv_func_select_args" >&6; } |
11625 |
> |
ac_save_IFS=$IFS; IFS=',' |
11626 |
> |
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` |
11627 |
> |
IFS=$ac_save_IFS |
11628 |
> |
shift |
11629 |
|
|
11630 |
< |
cat >>confdefs.h <<\_ACEOF |
11631 |
< |
#define HAVE_NAMESPACES |
11630 |
> |
cat >>confdefs.h <<_ACEOF |
11631 |
> |
#define SELECT_TYPE_ARG1 $1 |
11632 |
|
_ACEOF |
11633 |
|
|
9384 |
– |
fi |
11634 |
|
|
11635 |
< |
ac_ext=cc |
11636 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
11637 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11638 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11639 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
11640 |
< |
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
11641 |
< |
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
11642 |
< |
if test -z "$CXXCPP"; then |
11643 |
< |
if test "${ac_cv_prog_CXXCPP+set}" = set; then |
11644 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11635 |
> |
cat >>confdefs.h <<_ACEOF |
11636 |
> |
#define SELECT_TYPE_ARG234 ($2) |
11637 |
> |
_ACEOF |
11638 |
> |
|
11639 |
> |
|
11640 |
> |
cat >>confdefs.h <<_ACEOF |
11641 |
> |
#define SELECT_TYPE_ARG5 ($3) |
11642 |
> |
_ACEOF |
11643 |
> |
|
11644 |
> |
rm -f conftest* |
11645 |
> |
|
11646 |
> |
{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
11647 |
> |
$as_echo_n "checking for working strtod... " >&6; } |
11648 |
> |
if test "${ac_cv_func_strtod+set}" = set; then |
11649 |
> |
$as_echo_n "(cached) " >&6 |
11650 |
|
else |
11651 |
< |
# Double quotes because CXXCPP needs to be expanded |
11652 |
< |
for CXXCPP in "$CXX -E" "/lib/cpp" |
11653 |
< |
do |
9400 |
< |
ac_preproc_ok=false |
9401 |
< |
for ac_cxx_preproc_warn_flag in '' yes |
9402 |
< |
do |
9403 |
< |
# Use a header file that comes with gcc, so configuring glibc |
9404 |
< |
# with a fresh cross-compiler works. |
9405 |
< |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9406 |
< |
# <limits.h> exists even on freestanding compilers. |
9407 |
< |
# On the NeXT, cc -E runs the code through the compiler's parser, |
9408 |
< |
# not just through cpp. "Syntax error" is here to catch this case. |
11651 |
> |
if test "$cross_compiling" = yes; then |
11652 |
> |
ac_cv_func_strtod=no |
11653 |
> |
else |
11654 |
|
cat >conftest.$ac_ext <<_ACEOF |
11655 |
|
/* confdefs.h. */ |
11656 |
|
_ACEOF |
11657 |
|
cat confdefs.h >>conftest.$ac_ext |
11658 |
|
cat >>conftest.$ac_ext <<_ACEOF |
11659 |
|
/* end confdefs.h. */ |
11660 |
< |
#ifdef __STDC__ |
11661 |
< |
# include <limits.h> |
11662 |
< |
#else |
11663 |
< |
# include <assert.h> |
11660 |
> |
|
11661 |
> |
$ac_includes_default |
11662 |
> |
#ifndef strtod |
11663 |
> |
double strtod (); |
11664 |
|
#endif |
11665 |
< |
Syntax error |
11666 |
< |
_ACEOF |
11667 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
11668 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11669 |
< |
ac_status=$? |
11670 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
11671 |
< |
rm -f conftest.er1 |
11672 |
< |
cat conftest.err >&5 |
11673 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11674 |
< |
(exit $ac_status); } >/dev/null; then |
11675 |
< |
if test -s conftest.err; then |
11676 |
< |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
9432 |
< |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
9433 |
< |
else |
9434 |
< |
ac_cpp_err= |
9435 |
< |
fi |
9436 |
< |
else |
9437 |
< |
ac_cpp_err=yes |
9438 |
< |
fi |
9439 |
< |
if test -z "$ac_cpp_err"; then |
9440 |
< |
: |
9441 |
< |
else |
9442 |
< |
echo "$as_me: failed program was:" >&5 |
9443 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
11665 |
> |
int |
11666 |
> |
main() |
11667 |
> |
{ |
11668 |
> |
{ |
11669 |
> |
/* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
11670 |
> |
char *string = " +69"; |
11671 |
> |
char *term; |
11672 |
> |
double value; |
11673 |
> |
value = strtod (string, &term); |
11674 |
> |
if (value != 69 || term != (string + 4)) |
11675 |
> |
return 1; |
11676 |
> |
} |
11677 |
|
|
11678 |
< |
# Broken: fails on valid input. |
11679 |
< |
continue |
11680 |
< |
fi |
11681 |
< |
rm -f conftest.err conftest.$ac_ext |
11678 |
> |
{ |
11679 |
> |
/* Under Solaris 2.4, strtod returns the wrong value for the |
11680 |
> |
terminating character under some conditions. */ |
11681 |
> |
char *string = "NaN"; |
11682 |
> |
char *term; |
11683 |
> |
strtod (string, &term); |
11684 |
> |
if (term != string && *(term - 1) == 0) |
11685 |
> |
return 1; |
11686 |
> |
} |
11687 |
> |
return 0; |
11688 |
> |
} |
11689 |
|
|
9450 |
– |
# OK, works on sane cases. Now check whether non-existent headers |
9451 |
– |
# can be detected and how. |
9452 |
– |
cat >conftest.$ac_ext <<_ACEOF |
9453 |
– |
/* confdefs.h. */ |
11690 |
|
_ACEOF |
11691 |
< |
cat confdefs.h >>conftest.$ac_ext |
11692 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
11693 |
< |
/* end confdefs.h. */ |
11694 |
< |
#include <ac_nonexistent.h> |
11695 |
< |
_ACEOF |
11696 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
11697 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11691 |
> |
rm -f conftest$ac_exeext |
11692 |
> |
if { (ac_try="$ac_link" |
11693 |
> |
case "(($ac_try" in |
11694 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11695 |
> |
*) ac_try_echo=$ac_try;; |
11696 |
> |
esac |
11697 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11698 |
> |
$as_echo "$ac_try_echo") >&5 |
11699 |
> |
(eval "$ac_link") 2>&5 |
11700 |
|
ac_status=$? |
11701 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
11702 |
< |
rm -f conftest.er1 |
11703 |
< |
cat conftest.err >&5 |
11704 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11705 |
< |
(exit $ac_status); } >/dev/null; then |
11706 |
< |
if test -s conftest.err; then |
11707 |
< |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
11708 |
< |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
11709 |
< |
else |
11710 |
< |
ac_cpp_err= |
11711 |
< |
fi |
11701 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11702 |
> |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
11703 |
> |
{ (case "(($ac_try" in |
11704 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11705 |
> |
*) ac_try_echo=$ac_try;; |
11706 |
> |
esac |
11707 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11708 |
> |
$as_echo "$ac_try_echo") >&5 |
11709 |
> |
(eval "$ac_try") 2>&5 |
11710 |
> |
ac_status=$? |
11711 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11712 |
> |
(exit $ac_status); }; }; then |
11713 |
> |
ac_cv_func_strtod=yes |
11714 |
|
else |
11715 |
< |
ac_cpp_err=yes |
11716 |
< |
fi |
9477 |
< |
if test -z "$ac_cpp_err"; then |
9478 |
< |
# Broken: success on invalid input. |
9479 |
< |
continue |
9480 |
< |
else |
9481 |
< |
echo "$as_me: failed program was:" >&5 |
11715 |
> |
$as_echo "$as_me: program exited with status $ac_status" >&5 |
11716 |
> |
$as_echo "$as_me: failed program was:" >&5 |
11717 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11718 |
|
|
11719 |
< |
# Passes both tests. |
11720 |
< |
ac_preproc_ok=: |
9486 |
< |
break |
11719 |
> |
( exit $ac_status ) |
11720 |
> |
ac_cv_func_strtod=no |
11721 |
|
fi |
11722 |
< |
rm -f conftest.err conftest.$ac_ext |
11723 |
< |
|
9490 |
< |
done |
9491 |
< |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
9492 |
< |
rm -f conftest.err conftest.$ac_ext |
9493 |
< |
if $ac_preproc_ok; then |
9494 |
< |
break |
11722 |
> |
rm -rf conftest.dSYM |
11723 |
> |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11724 |
|
fi |
11725 |
|
|
9497 |
– |
done |
9498 |
– |
ac_cv_prog_CXXCPP=$CXXCPP |
11726 |
|
|
11727 |
|
fi |
11728 |
< |
CXXCPP=$ac_cv_prog_CXXCPP |
11728 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
11729 |
> |
$as_echo "$ac_cv_func_strtod" >&6; } |
11730 |
> |
if test $ac_cv_func_strtod = no; then |
11731 |
> |
case " $LIBOBJS " in |
11732 |
> |
*" strtod.$ac_objext "* ) ;; |
11733 |
> |
*) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
11734 |
> |
;; |
11735 |
> |
esac |
11736 |
> |
|
11737 |
> |
{ $as_echo "$as_me:$LINENO: checking for pow" >&5 |
11738 |
> |
$as_echo_n "checking for pow... " >&6; } |
11739 |
> |
if test "${ac_cv_func_pow+set}" = set; then |
11740 |
> |
$as_echo_n "(cached) " >&6 |
11741 |
|
else |
9503 |
– |
ac_cv_prog_CXXCPP=$CXXCPP |
9504 |
– |
fi |
9505 |
– |
echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
9506 |
– |
echo "${ECHO_T}$CXXCPP" >&6 |
9507 |
– |
ac_preproc_ok=false |
9508 |
– |
for ac_cxx_preproc_warn_flag in '' yes |
9509 |
– |
do |
9510 |
– |
# Use a header file that comes with gcc, so configuring glibc |
9511 |
– |
# with a fresh cross-compiler works. |
9512 |
– |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9513 |
– |
# <limits.h> exists even on freestanding compilers. |
9514 |
– |
# On the NeXT, cc -E runs the code through the compiler's parser, |
9515 |
– |
# not just through cpp. "Syntax error" is here to catch this case. |
11742 |
|
cat >conftest.$ac_ext <<_ACEOF |
11743 |
|
/* confdefs.h. */ |
11744 |
|
_ACEOF |
11745 |
|
cat confdefs.h >>conftest.$ac_ext |
11746 |
|
cat >>conftest.$ac_ext <<_ACEOF |
11747 |
|
/* end confdefs.h. */ |
11748 |
+ |
/* Define pow to an innocuous variant, in case <limits.h> declares pow. |
11749 |
+ |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
11750 |
+ |
#define pow innocuous_pow |
11751 |
+ |
|
11752 |
+ |
/* System header to define __stub macros and hopefully few prototypes, |
11753 |
+ |
which can conflict with char pow (); below. |
11754 |
+ |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
11755 |
+ |
<limits.h> exists even on freestanding compilers. */ |
11756 |
+ |
|
11757 |
|
#ifdef __STDC__ |
11758 |
|
# include <limits.h> |
11759 |
|
#else |
11760 |
|
# include <assert.h> |
11761 |
|
#endif |
11762 |
< |
Syntax error |
11762 |
> |
|
11763 |
> |
#undef pow |
11764 |
> |
|
11765 |
> |
/* Override any GCC internal prototype to avoid an error. |
11766 |
> |
Use char because int might match the return type of a GCC |
11767 |
> |
builtin and then its argument prototype would still apply. */ |
11768 |
> |
#ifdef __cplusplus |
11769 |
> |
extern "C" |
11770 |
> |
#endif |
11771 |
> |
char pow (); |
11772 |
> |
/* The GNU C library defines this for functions which it implements |
11773 |
> |
to always fail with ENOSYS. Some functions are actually named |
11774 |
> |
something starting with __ and the normal name is an alias. */ |
11775 |
> |
#if defined __stub_pow || defined __stub___pow |
11776 |
> |
choke me |
11777 |
> |
#endif |
11778 |
> |
|
11779 |
> |
#ifdef FC_DUMMY_MAIN |
11780 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11781 |
> |
# ifdef __cplusplus |
11782 |
> |
extern "C" |
11783 |
> |
# endif |
11784 |
> |
int FC_DUMMY_MAIN() { return 1; } |
11785 |
> |
#endif |
11786 |
> |
#endif |
11787 |
> |
int |
11788 |
> |
main () |
11789 |
> |
{ |
11790 |
> |
return pow (); |
11791 |
> |
; |
11792 |
> |
return 0; |
11793 |
> |
} |
11794 |
|
_ACEOF |
11795 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
11796 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11795 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
11796 |
> |
if { (ac_try="$ac_link" |
11797 |
> |
case "(($ac_try" in |
11798 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11799 |
> |
*) ac_try_echo=$ac_try;; |
11800 |
> |
esac |
11801 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11802 |
> |
$as_echo "$ac_try_echo") >&5 |
11803 |
> |
(eval "$ac_link") 2>conftest.er1 |
11804 |
|
ac_status=$? |
11805 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
11806 |
|
rm -f conftest.er1 |
11807 |
|
cat conftest.err >&5 |
11808 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11809 |
< |
(exit $ac_status); } >/dev/null; then |
11810 |
< |
if test -s conftest.err; then |
11811 |
< |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
11812 |
< |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
11813 |
< |
else |
11814 |
< |
ac_cpp_err= |
11815 |
< |
fi |
11808 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11809 |
> |
(exit $ac_status); } && { |
11810 |
> |
test -z "$ac_c_werror_flag" || |
11811 |
> |
test ! -s conftest.err |
11812 |
> |
} && test -s conftest$ac_exeext && { |
11813 |
> |
test "$cross_compiling" = yes || |
11814 |
> |
$as_test_x conftest$ac_exeext |
11815 |
> |
}; then |
11816 |
> |
ac_cv_func_pow=yes |
11817 |
|
else |
11818 |
< |
ac_cpp_err=yes |
9545 |
< |
fi |
9546 |
< |
if test -z "$ac_cpp_err"; then |
9547 |
< |
: |
9548 |
< |
else |
9549 |
< |
echo "$as_me: failed program was:" >&5 |
11818 |
> |
$as_echo "$as_me: failed program was:" >&5 |
11819 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11820 |
|
|
11821 |
< |
# Broken: fails on valid input. |
9553 |
< |
continue |
11821 |
> |
ac_cv_func_pow=no |
11822 |
|
fi |
9555 |
– |
rm -f conftest.err conftest.$ac_ext |
11823 |
|
|
11824 |
< |
# OK, works on sane cases. Now check whether non-existent headers |
11825 |
< |
# can be detected and how. |
11826 |
< |
cat >conftest.$ac_ext <<_ACEOF |
11824 |
> |
rm -rf conftest.dSYM |
11825 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11826 |
> |
conftest$ac_exeext conftest.$ac_ext |
11827 |
> |
fi |
11828 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
11829 |
> |
$as_echo "$ac_cv_func_pow" >&6; } |
11830 |
> |
|
11831 |
> |
if test $ac_cv_func_pow = no; then |
11832 |
> |
{ $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
11833 |
> |
$as_echo_n "checking for pow in -lm... " >&6; } |
11834 |
> |
if test "${ac_cv_lib_m_pow+set}" = set; then |
11835 |
> |
$as_echo_n "(cached) " >&6 |
11836 |
> |
else |
11837 |
> |
ac_check_lib_save_LIBS=$LIBS |
11838 |
> |
LIBS="-lm $LIBS" |
11839 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11840 |
|
/* confdefs.h. */ |
11841 |
|
_ACEOF |
11842 |
|
cat confdefs.h >>conftest.$ac_ext |
11843 |
|
cat >>conftest.$ac_ext <<_ACEOF |
11844 |
|
/* end confdefs.h. */ |
11845 |
< |
#include <ac_nonexistent.h> |
11845 |
> |
|
11846 |
> |
/* Override any GCC internal prototype to avoid an error. |
11847 |
> |
Use char because int might match the return type of a GCC |
11848 |
> |
builtin and then its argument prototype would still apply. */ |
11849 |
> |
#ifdef __cplusplus |
11850 |
> |
extern "C" |
11851 |
> |
#endif |
11852 |
> |
char pow (); |
11853 |
> |
#ifdef FC_DUMMY_MAIN |
11854 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11855 |
> |
# ifdef __cplusplus |
11856 |
> |
extern "C" |
11857 |
> |
# endif |
11858 |
> |
int FC_DUMMY_MAIN() { return 1; } |
11859 |
> |
#endif |
11860 |
> |
#endif |
11861 |
> |
int |
11862 |
> |
main () |
11863 |
> |
{ |
11864 |
> |
return pow (); |
11865 |
> |
; |
11866 |
> |
return 0; |
11867 |
> |
} |
11868 |
|
_ACEOF |
11869 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
11870 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11869 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
11870 |
> |
if { (ac_try="$ac_link" |
11871 |
> |
case "(($ac_try" in |
11872 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11873 |
> |
*) ac_try_echo=$ac_try;; |
11874 |
> |
esac |
11875 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11876 |
> |
$as_echo "$ac_try_echo") >&5 |
11877 |
> |
(eval "$ac_link") 2>conftest.er1 |
11878 |
|
ac_status=$? |
11879 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
11880 |
|
rm -f conftest.er1 |
11881 |
|
cat conftest.err >&5 |
11882 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11883 |
< |
(exit $ac_status); } >/dev/null; then |
11884 |
< |
if test -s conftest.err; then |
11885 |
< |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
11886 |
< |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
11887 |
< |
else |
11888 |
< |
ac_cpp_err= |
11889 |
< |
fi |
11882 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11883 |
> |
(exit $ac_status); } && { |
11884 |
> |
test -z "$ac_c_werror_flag" || |
11885 |
> |
test ! -s conftest.err |
11886 |
> |
} && test -s conftest$ac_exeext && { |
11887 |
> |
test "$cross_compiling" = yes || |
11888 |
> |
$as_test_x conftest$ac_exeext |
11889 |
> |
}; then |
11890 |
> |
ac_cv_lib_m_pow=yes |
11891 |
|
else |
11892 |
< |
ac_cpp_err=yes |
9583 |
< |
fi |
9584 |
< |
if test -z "$ac_cpp_err"; then |
9585 |
< |
# Broken: success on invalid input. |
9586 |
< |
continue |
9587 |
< |
else |
9588 |
< |
echo "$as_me: failed program was:" >&5 |
11892 |
> |
$as_echo "$as_me: failed program was:" >&5 |
11893 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11894 |
|
|
11895 |
< |
# Passes both tests. |
9592 |
< |
ac_preproc_ok=: |
9593 |
< |
break |
11895 |
> |
ac_cv_lib_m_pow=no |
11896 |
|
fi |
9595 |
– |
rm -f conftest.err conftest.$ac_ext |
11897 |
|
|
11898 |
< |
done |
11899 |
< |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
11900 |
< |
rm -f conftest.err conftest.$ac_ext |
11901 |
< |
if $ac_preproc_ok; then |
11902 |
< |
: |
11898 |
> |
rm -rf conftest.dSYM |
11899 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11900 |
> |
conftest$ac_exeext conftest.$ac_ext |
11901 |
> |
LIBS=$ac_check_lib_save_LIBS |
11902 |
> |
fi |
11903 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
11904 |
> |
$as_echo "$ac_cv_lib_m_pow" >&6; } |
11905 |
> |
if test $ac_cv_lib_m_pow = yes; then |
11906 |
> |
POW_LIB=-lm |
11907 |
|
else |
11908 |
< |
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
11909 |
< |
See \`config.log' for more details." >&5 |
9605 |
< |
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
9606 |
< |
See \`config.log' for more details." >&2;} |
9607 |
< |
{ (exit 1); exit 1; }; } |
11908 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
11909 |
> |
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
11910 |
|
fi |
11911 |
|
|
11912 |
< |
ac_ext=cc |
9611 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
9612 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9613 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9614 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
11912 |
> |
fi |
11913 |
|
|
11914 |
+ |
fi |
11915 |
|
|
9617 |
– |
echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5 |
9618 |
– |
echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6 |
9619 |
– |
if test "${ac_cv_cxx_have_stl+set}" = set; then |
9620 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9621 |
– |
else |
11916 |
|
|
11917 |
|
|
11918 |
|
|
9625 |
– |
ac_ext=cc |
9626 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
9627 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9628 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9629 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
11919 |
|
|
11920 |
< |
cat >conftest.$ac_ext <<_ACEOF |
11920 |
> |
|
11921 |
> |
|
11922 |
> |
|
11923 |
> |
|
11924 |
> |
|
11925 |
> |
|
11926 |
> |
|
11927 |
> |
|
11928 |
> |
|
11929 |
> |
|
11930 |
> |
|
11931 |
> |
|
11932 |
> |
|
11933 |
> |
|
11934 |
> |
|
11935 |
> |
|
11936 |
> |
|
11937 |
> |
for ac_func in floor getpagesize gettimeofday memset pow pstat_getdynamic pstat_getstatic select sqrt strcasecmp strchr strdup stricmp strncasecmp strnicmp strstr strtol sysmp getsysinfo sysctl table |
11938 |
> |
do |
11939 |
> |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11940 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11941 |
> |
$as_echo_n "checking for $ac_func... " >&6; } |
11942 |
> |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
11943 |
> |
$as_echo_n "(cached) " >&6 |
11944 |
> |
else |
11945 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11946 |
|
/* confdefs.h. */ |
11947 |
|
_ACEOF |
11948 |
|
cat confdefs.h >>conftest.$ac_ext |
11949 |
|
cat >>conftest.$ac_ext <<_ACEOF |
11950 |
|
/* end confdefs.h. */ |
11951 |
< |
#include <list> |
11952 |
< |
#include <deque> |
11953 |
< |
#ifdef HAVE_NAMESPACES |
11954 |
< |
using namespace std; |
11951 |
> |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11952 |
> |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
11953 |
> |
#define $ac_func innocuous_$ac_func |
11954 |
> |
|
11955 |
> |
/* System header to define __stub macros and hopefully few prototypes, |
11956 |
> |
which can conflict with char $ac_func (); below. |
11957 |
> |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
11958 |
> |
<limits.h> exists even on freestanding compilers. */ |
11959 |
> |
|
11960 |
> |
#ifdef __STDC__ |
11961 |
> |
# include <limits.h> |
11962 |
> |
#else |
11963 |
> |
# include <assert.h> |
11964 |
|
#endif |
11965 |
+ |
|
11966 |
+ |
#undef $ac_func |
11967 |
+ |
|
11968 |
+ |
/* Override any GCC internal prototype to avoid an error. |
11969 |
+ |
Use char because int might match the return type of a GCC |
11970 |
+ |
builtin and then its argument prototype would still apply. */ |
11971 |
+ |
#ifdef __cplusplus |
11972 |
+ |
extern "C" |
11973 |
+ |
#endif |
11974 |
+ |
char $ac_func (); |
11975 |
+ |
/* The GNU C library defines this for functions which it implements |
11976 |
+ |
to always fail with ENOSYS. Some functions are actually named |
11977 |
+ |
something starting with __ and the normal name is an alias. */ |
11978 |
+ |
#if defined __stub_$ac_func || defined __stub___$ac_func |
11979 |
+ |
choke me |
11980 |
+ |
#endif |
11981 |
+ |
|
11982 |
|
#ifdef FC_DUMMY_MAIN |
11983 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11984 |
|
# ifdef __cplusplus |
11990 |
|
int |
11991 |
|
main () |
11992 |
|
{ |
11993 |
< |
list<int> x; x.push_back(5); |
9654 |
< |
list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0; |
11993 |
> |
return $ac_func (); |
11994 |
|
; |
11995 |
|
return 0; |
11996 |
|
} |
11997 |
|
_ACEOF |
11998 |
< |
rm -f conftest.$ac_objext |
11999 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12000 |
< |
(eval $ac_compile) 2>conftest.er1 |
11998 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
11999 |
> |
if { (ac_try="$ac_link" |
12000 |
> |
case "(($ac_try" in |
12001 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12002 |
> |
*) ac_try_echo=$ac_try;; |
12003 |
> |
esac |
12004 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12005 |
> |
$as_echo "$ac_try_echo") >&5 |
12006 |
> |
(eval "$ac_link") 2>conftest.er1 |
12007 |
|
ac_status=$? |
12008 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12009 |
|
rm -f conftest.er1 |
12010 |
|
cat conftest.err >&5 |
12011 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12012 |
< |
(exit $ac_status); } && |
12013 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
12014 |
< |
|| test ! -s conftest.err' |
12015 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12016 |
< |
(eval $ac_try) 2>&5 |
12017 |
< |
ac_status=$? |
12018 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12019 |
< |
(exit $ac_status); }; } && |
9675 |
< |
{ ac_try='test -s conftest.$ac_objext' |
9676 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9677 |
< |
(eval $ac_try) 2>&5 |
9678 |
< |
ac_status=$? |
9679 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9680 |
< |
(exit $ac_status); }; }; then |
9681 |
< |
ac_cv_cxx_have_stl=yes |
12011 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12012 |
> |
(exit $ac_status); } && { |
12013 |
> |
test -z "$ac_c_werror_flag" || |
12014 |
> |
test ! -s conftest.err |
12015 |
> |
} && test -s conftest$ac_exeext && { |
12016 |
> |
test "$cross_compiling" = yes || |
12017 |
> |
$as_test_x conftest$ac_exeext |
12018 |
> |
}; then |
12019 |
> |
eval "$as_ac_var=yes" |
12020 |
|
else |
12021 |
< |
echo "$as_me: failed program was:" >&5 |
12021 |
> |
$as_echo "$as_me: failed program was:" >&5 |
12022 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12023 |
|
|
12024 |
< |
ac_cv_cxx_have_stl=no |
12024 |
> |
eval "$as_ac_var=no" |
12025 |
|
fi |
9688 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9689 |
– |
ac_ext=cc |
9690 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
9691 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9692 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9693 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
12026 |
|
|
12027 |
< |
|
12027 |
> |
rm -rf conftest.dSYM |
12028 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12029 |
> |
conftest$ac_exeext conftest.$ac_ext |
12030 |
|
fi |
12031 |
< |
echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5 |
12032 |
< |
echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6 |
12033 |
< |
if test "$ac_cv_cxx_have_stl" = yes; then |
12034 |
< |
|
12035 |
< |
cat >>confdefs.h <<\_ACEOF |
12036 |
< |
#define HAVE_STL |
12031 |
> |
ac_res=`eval 'as_val=${'$as_ac_var'} |
12032 |
> |
$as_echo "$as_val"'` |
12033 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
12034 |
> |
$as_echo "$ac_res" >&6; } |
12035 |
> |
if test `eval 'as_val=${'$as_ac_var'} |
12036 |
> |
$as_echo "$as_val"'` = yes; then |
12037 |
> |
cat >>confdefs.h <<_ACEOF |
12038 |
> |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
12039 |
|
_ACEOF |
12040 |
|
|
12041 |
|
fi |
12042 |
+ |
done |
12043 |
|
|
12044 |
|
|
12045 |
< |
|
12046 |
< |
if test "${ac_cv_header_iostream+set}" = set; then |
12047 |
< |
echo "$as_me:$LINENO: checking for iostream" >&5 |
12048 |
< |
echo $ECHO_N "checking for iostream... $ECHO_C" >&6 |
9712 |
< |
if test "${ac_cv_header_iostream+set}" = set; then |
9713 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9714 |
< |
fi |
9715 |
< |
echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5 |
9716 |
< |
echo "${ECHO_T}$ac_cv_header_iostream" >&6 |
9717 |
< |
else |
9718 |
< |
# Is the header compilable? |
9719 |
< |
echo "$as_me:$LINENO: checking iostream usability" >&5 |
9720 |
< |
echo $ECHO_N "checking iostream usability... $ECHO_C" >&6 |
12045 |
> |
# special check for _system_configuration because AIX <4.3.2 do not |
12046 |
> |
# contain the `physmem' member. |
12047 |
> |
{ $as_echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5 |
12048 |
> |
$as_echo_n "checking for external symbol _system_configuration... " >&6; } |
12049 |
|
cat >conftest.$ac_ext <<_ACEOF |
12050 |
|
/* confdefs.h. */ |
12051 |
|
_ACEOF |
12052 |
|
cat confdefs.h >>conftest.$ac_ext |
12053 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12054 |
|
/* end confdefs.h. */ |
12055 |
< |
$ac_includes_default |
12056 |
< |
#include <iostream> |
12055 |
> |
#include <sys/systemcfg.h> |
12056 |
> |
#ifdef FC_DUMMY_MAIN |
12057 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12058 |
> |
# ifdef __cplusplus |
12059 |
> |
extern "C" |
12060 |
> |
# endif |
12061 |
> |
int FC_DUMMY_MAIN() { return 1; } |
12062 |
> |
#endif |
12063 |
> |
#endif |
12064 |
> |
int |
12065 |
> |
main () |
12066 |
> |
{ |
12067 |
> |
double x = _system_configuration.physmem; |
12068 |
> |
; |
12069 |
> |
return 0; |
12070 |
> |
} |
12071 |
|
_ACEOF |
12072 |
|
rm -f conftest.$ac_objext |
12073 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12074 |
< |
(eval $ac_compile) 2>conftest.er1 |
12073 |
> |
if { (ac_try="$ac_compile" |
12074 |
> |
case "(($ac_try" in |
12075 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12076 |
> |
*) ac_try_echo=$ac_try;; |
12077 |
> |
esac |
12078 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12079 |
> |
$as_echo "$ac_try_echo") >&5 |
12080 |
> |
(eval "$ac_compile") 2>conftest.er1 |
12081 |
|
ac_status=$? |
12082 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12083 |
|
rm -f conftest.er1 |
12084 |
|
cat conftest.err >&5 |
12085 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12086 |
< |
(exit $ac_status); } && |
12087 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
12088 |
< |
|| test ! -s conftest.err' |
12089 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12090 |
< |
(eval $ac_try) 2>&5 |
12091 |
< |
ac_status=$? |
9744 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9745 |
< |
(exit $ac_status); }; } && |
9746 |
< |
{ ac_try='test -s conftest.$ac_objext' |
9747 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9748 |
< |
(eval $ac_try) 2>&5 |
9749 |
< |
ac_status=$? |
9750 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9751 |
< |
(exit $ac_status); }; }; then |
9752 |
< |
ac_header_compiler=yes |
9753 |
< |
else |
9754 |
< |
echo "$as_me: failed program was:" >&5 |
9755 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
12085 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12086 |
> |
(exit $ac_status); } && { |
12087 |
> |
test -z "$ac_c_werror_flag" || |
12088 |
> |
test ! -s conftest.err |
12089 |
> |
} && test -s conftest.$ac_objext; then |
12090 |
> |
{ $as_echo "$as_me:$LINENO: result: yes" >&5 |
12091 |
> |
$as_echo "yes" >&6; } |
12092 |
|
|
12093 |
< |
ac_header_compiler=no |
12094 |
< |
fi |
9759 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9760 |
< |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9761 |
< |
echo "${ECHO_T}$ac_header_compiler" >&6 |
9762 |
< |
|
9763 |
< |
# Is the header present? |
9764 |
< |
echo "$as_me:$LINENO: checking iostream presence" >&5 |
9765 |
< |
echo $ECHO_N "checking iostream presence... $ECHO_C" >&6 |
9766 |
< |
cat >conftest.$ac_ext <<_ACEOF |
9767 |
< |
/* confdefs.h. */ |
12093 |
> |
cat >>confdefs.h <<\_ACEOF |
12094 |
> |
#define HAVE__SYSTEM_CONFIGURATION 1 |
12095 |
|
_ACEOF |
12096 |
< |
cat confdefs.h >>conftest.$ac_ext |
9770 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
9771 |
< |
/* end confdefs.h. */ |
9772 |
< |
#include <iostream> |
9773 |
< |
_ACEOF |
9774 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9775 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9776 |
< |
ac_status=$? |
9777 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
9778 |
< |
rm -f conftest.er1 |
9779 |
< |
cat conftest.err >&5 |
9780 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9781 |
< |
(exit $ac_status); } >/dev/null; then |
9782 |
< |
if test -s conftest.err; then |
9783 |
< |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
9784 |
< |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
9785 |
< |
else |
9786 |
< |
ac_cpp_err= |
9787 |
< |
fi |
12096 |
> |
|
12097 |
|
else |
12098 |
< |
ac_cpp_err=yes |
9790 |
< |
fi |
9791 |
< |
if test -z "$ac_cpp_err"; then |
9792 |
< |
ac_header_preproc=yes |
9793 |
< |
else |
9794 |
< |
echo "$as_me: failed program was:" >&5 |
12098 |
> |
$as_echo "$as_me: failed program was:" >&5 |
12099 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12100 |
|
|
12101 |
< |
ac_header_preproc=no |
12101 |
> |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
12102 |
> |
$as_echo "no" >&6; } |
12103 |
|
fi |
9799 |
– |
rm -f conftest.err conftest.$ac_ext |
9800 |
– |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9801 |
– |
echo "${ECHO_T}$ac_header_preproc" >&6 |
12104 |
|
|
12105 |
< |
# So? What about this header? |
9804 |
< |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9805 |
< |
yes:no: ) |
9806 |
< |
{ echo "$as_me:$LINENO: WARNING: iostream: accepted by the compiler, rejected by the preprocessor!" >&5 |
9807 |
< |
echo "$as_me: WARNING: iostream: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9808 |
< |
{ echo "$as_me:$LINENO: WARNING: iostream: proceeding with the compiler's result" >&5 |
9809 |
< |
echo "$as_me: WARNING: iostream: proceeding with the compiler's result" >&2;} |
9810 |
< |
ac_header_preproc=yes |
9811 |
< |
;; |
9812 |
< |
no:yes:* ) |
9813 |
< |
{ echo "$as_me:$LINENO: WARNING: iostream: present but cannot be compiled" >&5 |
9814 |
< |
echo "$as_me: WARNING: iostream: present but cannot be compiled" >&2;} |
9815 |
< |
{ echo "$as_me:$LINENO: WARNING: iostream: check for missing prerequisite headers?" >&5 |
9816 |
< |
echo "$as_me: WARNING: iostream: check for missing prerequisite headers?" >&2;} |
9817 |
< |
{ echo "$as_me:$LINENO: WARNING: iostream: see the Autoconf documentation" >&5 |
9818 |
< |
echo "$as_me: WARNING: iostream: see the Autoconf documentation" >&2;} |
9819 |
< |
{ echo "$as_me:$LINENO: WARNING: iostream: section \"Present But Cannot Be Compiled\"" >&5 |
9820 |
< |
echo "$as_me: WARNING: iostream: section \"Present But Cannot Be Compiled\"" >&2;} |
9821 |
< |
{ echo "$as_me:$LINENO: WARNING: iostream: proceeding with the preprocessor's result" >&5 |
9822 |
< |
echo "$as_me: WARNING: iostream: proceeding with the preprocessor's result" >&2;} |
9823 |
< |
{ echo "$as_me:$LINENO: WARNING: iostream: in the future, the compiler will take precedence" >&5 |
9824 |
< |
echo "$as_me: WARNING: iostream: in the future, the compiler will take precedence" >&2;} |
9825 |
< |
( |
9826 |
< |
cat <<\_ASBOX |
9827 |
< |
## ------------------------------ ## |
9828 |
< |
## Report this to gezelter@nd.edu ## |
9829 |
< |
## ------------------------------ ## |
9830 |
< |
_ASBOX |
9831 |
< |
) | |
9832 |
< |
sed "s/^/$as_me: WARNING: /" >&2 |
9833 |
< |
;; |
9834 |
< |
esac |
9835 |
< |
echo "$as_me:$LINENO: checking for iostream" >&5 |
9836 |
< |
echo $ECHO_N "checking for iostream... $ECHO_C" >&6 |
9837 |
< |
if test "${ac_cv_header_iostream+set}" = set; then |
9838 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9839 |
< |
else |
9840 |
< |
ac_cv_header_iostream=$ac_header_preproc |
9841 |
< |
fi |
9842 |
< |
echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5 |
9843 |
< |
echo "${ECHO_T}$ac_cv_header_iostream" >&6 |
12105 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12106 |
|
|
9845 |
– |
fi |
9846 |
– |
if test $ac_cv_header_iostream = yes; then |
12107 |
|
|
12108 |
+ |
case $debug in |
12109 |
+ |
1) |
12110 |
+ |
;; |
12111 |
+ |
*) |
12112 |
|
|
9849 |
– |
cat >>confdefs.h <<\_ACEOF |
9850 |
– |
#define HAVE_IOSTREAM 1 |
9851 |
– |
_ACEOF |
12113 |
|
|
12114 |
|
|
9854 |
– |
else |
12115 |
|
|
12116 |
|
|
12117 |
< |
for ac_header in iostream.h |
12118 |
< |
do |
12119 |
< |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12120 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
12121 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12122 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
12123 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
12124 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12125 |
< |
fi |
12126 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12127 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
12128 |
< |
else |
12129 |
< |
# Is the header compilable? |
12130 |
< |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12131 |
< |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
12132 |
< |
cat >conftest.$ac_ext <<_ACEOF |
12133 |
< |
/* confdefs.h. */ |
12134 |
< |
_ACEOF |
12135 |
< |
cat confdefs.h >>conftest.$ac_ext |
12136 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
12137 |
< |
/* end confdefs.h. */ |
12138 |
< |
$ac_includes_default |
12139 |
< |
#include <$ac_header> |
12140 |
< |
_ACEOF |
12141 |
< |
rm -f conftest.$ac_objext |
12142 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12143 |
< |
(eval $ac_compile) 2>conftest.er1 |
12144 |
< |
ac_status=$? |
12145 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
12146 |
< |
rm -f conftest.er1 |
12147 |
< |
cat conftest.err >&5 |
12148 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12149 |
< |
(exit $ac_status); } && |
12150 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
12151 |
< |
|| test ! -s conftest.err' |
12152 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12153 |
< |
(eval $ac_try) 2>&5 |
12154 |
< |
ac_status=$? |
12155 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12156 |
< |
(exit $ac_status); }; } && |
12157 |
< |
{ ac_try='test -s conftest.$ac_objext' |
12158 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12159 |
< |
(eval $ac_try) 2>&5 |
12160 |
< |
ac_status=$? |
12161 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12162 |
< |
(exit $ac_status); }; }; then |
12163 |
< |
ac_header_compiler=yes |
12117 |
> |
# Try to determine "good" native compiler flags if none specified on command |
12118 |
> |
# line |
12119 |
> |
|
12120 |
> |
if test "$ac_test_FFLAGS" != "set"; then |
12121 |
> |
FCFLAGS="" |
12122 |
> |
case "${host_cpu}-${host_os}" in |
12123 |
> |
|
12124 |
> |
*linux*) if test "$FC" = ifc -o "$FC" = ifort; then |
12125 |
> |
FCFLAGS="-O2" |
12126 |
> |
fi;; |
12127 |
> |
rs6000*-aix*) if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then |
12128 |
> |
FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" |
12129 |
> |
fi;; |
12130 |
> |
powerpc*-aix*) |
12131 |
> |
if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then |
12132 |
> |
FCFLAGS="-O3 -qarch=ppc -qansialias -w" |
12133 |
> |
echo "*******************************************************" |
12134 |
> |
echo "* You have AIX on an unknown powerpc system. It is *" |
12135 |
> |
echo "* recommended that you use *" |
12136 |
> |
echo "* *" |
12137 |
> |
echo "* FCFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
12138 |
> |
echo "* ^^^ *" |
12139 |
> |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
12140 |
> |
echo "* PowerPC CPU you have. For more info, man xlf. *" |
12141 |
> |
echo "*******************************************************" |
12142 |
> |
fi;; |
12143 |
> |
*darwin*) |
12144 |
> |
if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then |
12145 |
> |
FCFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto" |
12146 |
> |
fi |
12147 |
> |
if test "$FC" = ifort; then |
12148 |
> |
FCFLAGS="-O2" |
12149 |
> |
fi |
12150 |
> |
if test "$FC" = gfortran; then |
12151 |
> |
FCFLAGS="-Os" |
12152 |
> |
fi;; |
12153 |
> |
esac |
12154 |
> |
|
12155 |
> |
if test -z "$FCFLAGS"; then |
12156 |
> |
echo "" |
12157 |
> |
echo "*********************************************************" |
12158 |
> |
echo "* WARNING: Don't know the best FCFLAGS for this system *" |
12159 |
> |
echo "* Use make FCFLAGS=..., or edit the top level Makefile *" |
12160 |
> |
echo "* (otherwise, a default of FCFLAGS=-O will be used) *" |
12161 |
> |
echo "*********************************************************" |
12162 |
> |
echo "" |
12163 |
> |
FCFLAGS="-O" |
12164 |
> |
fi |
12165 |
> |
|
12166 |
> |
|
12167 |
> |
{ $as_echo "$as_me:$LINENO: checking whether ${FC} accepts ${FCFLAGS}" >&5 |
12168 |
> |
$as_echo_n "checking whether ${FC} accepts ${FCFLAGS}... " >&6; } |
12169 |
> |
if test "${ac_guessed_f90flags+set}" = set; then |
12170 |
> |
$as_echo_n "(cached) " >&6 |
12171 |
|
else |
9905 |
– |
echo "$as_me: failed program was:" >&5 |
9906 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
12172 |
|
|
9908 |
– |
ac_header_compiler=no |
9909 |
– |
fi |
9910 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9911 |
– |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9912 |
– |
echo "${ECHO_T}$ac_header_compiler" >&6 |
12173 |
|
|
12174 |
< |
# Is the header present? |
12175 |
< |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12176 |
< |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
12177 |
< |
cat >conftest.$ac_ext <<_ACEOF |
12178 |
< |
/* confdefs.h. */ |
12179 |
< |
_ACEOF |
12180 |
< |
cat confdefs.h >>conftest.$ac_ext |
12181 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
12182 |
< |
/* end confdefs.h. */ |
12183 |
< |
#include <$ac_header> |
9924 |
< |
_ACEOF |
9925 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9926 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
12174 |
> |
ac_ext=${ac_fc_srcext-f} |
12175 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
12176 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
12177 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
12178 |
> |
|
12179 |
> |
echo 'program main' > conftest.$ac_ext |
12180 |
> |
echo 'end program main' >> conftest.$ac_ext |
12181 |
> |
ac_compile='${FC} -c ${FCFLAGS} $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext 1>&5' |
12182 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12183 |
> |
(eval $ac_compile) 2>&5 |
12184 |
|
ac_status=$? |
12185 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
12186 |
< |
rm -f conftest.er1 |
12187 |
< |
cat conftest.err >&5 |
9931 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9932 |
< |
(exit $ac_status); } >/dev/null; then |
9933 |
< |
if test -s conftest.err; then |
9934 |
< |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
9935 |
< |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
9936 |
< |
else |
9937 |
< |
ac_cpp_err= |
9938 |
< |
fi |
12185 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12186 |
> |
(exit $ac_status); }; then |
12187 |
> |
ac_guessed_f90flags=yes |
12188 |
|
else |
12189 |
< |
ac_cpp_err=yes |
12189 |
> |
ac_guessed_f90flags=no |
12190 |
|
fi |
12191 |
< |
if test -z "$ac_cpp_err"; then |
12192 |
< |
ac_header_preproc=yes |
12193 |
< |
else |
12194 |
< |
echo "$as_me: failed program was:" >&5 |
12195 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
12191 |
> |
rm -f conftest* |
12192 |
> |
ac_ext=c |
12193 |
> |
ac_cpp='$CPP $CPPFLAGS' |
12194 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12195 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12196 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
12197 |
|
|
12198 |
< |
ac_header_preproc=no |
12198 |
> |
|
12199 |
|
fi |
12200 |
< |
rm -f conftest.err conftest.$ac_ext |
12201 |
< |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12202 |
< |
echo "${ECHO_T}$ac_header_preproc" >&6 |
12200 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5 |
12201 |
> |
$as_echo "$ac_guessed_f90flags" >&6; } |
12202 |
> |
if test "$ac_guessed_f90flags" = yes; then |
12203 |
> |
: |
12204 |
|
|
9954 |
– |
# So? What about this header? |
9955 |
– |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9956 |
– |
yes:no: ) |
9957 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9958 |
– |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9959 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9960 |
– |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
9961 |
– |
ac_header_preproc=yes |
9962 |
– |
;; |
9963 |
– |
no:yes:* ) |
9964 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9965 |
– |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
9966 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9967 |
– |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
9968 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
9969 |
– |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
9970 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
9971 |
– |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
9972 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9973 |
– |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
9974 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9975 |
– |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
9976 |
– |
( |
9977 |
– |
cat <<\_ASBOX |
9978 |
– |
## ------------------------------ ## |
9979 |
– |
## Report this to gezelter@nd.edu ## |
9980 |
– |
## ------------------------------ ## |
9981 |
– |
_ASBOX |
9982 |
– |
) | |
9983 |
– |
sed "s/^/$as_me: WARNING: /" >&2 |
9984 |
– |
;; |
9985 |
– |
esac |
9986 |
– |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9987 |
– |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
9988 |
– |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9989 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12205 |
|
else |
12206 |
< |
eval "$as_ac_Header=\$ac_header_preproc" |
9992 |
< |
fi |
9993 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9994 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
12206 |
> |
: |
12207 |
|
|
12208 |
+ |
echo "" |
12209 |
+ |
echo "**********************************************************" |
12210 |
+ |
echo "* WARNING: The guessed FCFLAGS don't seem to work with *" |
12211 |
+ |
echo "* your compiler. *" |
12212 |
+ |
echo "* Use make FCFLAGS=..., or edit the top level Makefile *" |
12213 |
+ |
echo "*********************************************************" |
12214 |
+ |
echo "" |
12215 |
+ |
FCFLAGS="" |
12216 |
+ |
|
12217 |
|
fi |
9997 |
– |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9998 |
– |
cat >>confdefs.h <<_ACEOF |
9999 |
– |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
10000 |
– |
_ACEOF |
12218 |
|
|
12219 |
+ |
|
12220 |
|
fi |
12221 |
|
|
10004 |
– |
done |
12222 |
|
|
12223 |
|
|
10007 |
– |
fi |
12224 |
|
|
12225 |
|
|
12226 |
|
|
12227 |
|
|
12228 |
< |
if test "${ac_cv_header_iomanip+set}" = set; then |
12229 |
< |
echo "$as_me:$LINENO: checking for iomanip" >&5 |
12230 |
< |
echo $ECHO_N "checking for iomanip... $ECHO_C" >&6 |
12231 |
< |
if test "${ac_cv_header_iomanip+set}" = set; then |
10016 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10017 |
< |
fi |
10018 |
< |
echo "$as_me:$LINENO: result: $ac_cv_header_iomanip" >&5 |
10019 |
< |
echo "${ECHO_T}$ac_cv_header_iomanip" >&6 |
12228 |
> |
{ $as_echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5 |
12229 |
> |
$as_echo_n "checking whether we are *really* using GNU cc... " >&6; } |
12230 |
> |
if test "${ac_cv_prog_really_gcc+set}" = set; then |
12231 |
> |
$as_echo_n "(cached) " >&6 |
12232 |
|
else |
12233 |
< |
# Is the header compilable? |
12234 |
< |
echo "$as_me:$LINENO: checking iomanip usability" >&5 |
12235 |
< |
echo $ECHO_N "checking iomanip usability... $ECHO_C" >&6 |
12236 |
< |
cat >conftest.$ac_ext <<_ACEOF |
12237 |
< |
/* confdefs.h. */ |
12238 |
< |
_ACEOF |
12239 |
< |
cat confdefs.h >>conftest.$ac_ext |
12240 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
12241 |
< |
/* end confdefs.h. */ |
12242 |
< |
$ac_includes_default |
12243 |
< |
#include <iomanip> |
10032 |
< |
_ACEOF |
10033 |
< |
rm -f conftest.$ac_objext |
10034 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
10035 |
< |
(eval $ac_compile) 2>conftest.er1 |
10036 |
< |
ac_status=$? |
10037 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
10038 |
< |
rm -f conftest.er1 |
10039 |
< |
cat conftest.err >&5 |
10040 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10041 |
< |
(exit $ac_status); } && |
10042 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
10043 |
< |
|| test ! -s conftest.err' |
12233 |
> |
|
12234 |
> |
cat > conftest.c <<EOF |
12235 |
> |
#ifdef __GNUC__ |
12236 |
> |
#if defined(__INTEL_COMPILER) || defined(__PATHCC__) |
12237 |
> |
no; |
12238 |
> |
#else |
12239 |
> |
yes; |
12240 |
> |
#endif |
12241 |
> |
#endif |
12242 |
> |
EOF |
12243 |
> |
if { ac_try='${CC-cc} -E conftest.c' |
12244 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12245 |
|
(eval $ac_try) 2>&5 |
12246 |
|
ac_status=$? |
12247 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12248 |
< |
(exit $ac_status); }; } && |
12249 |
< |
{ ac_try='test -s conftest.$ac_objext' |
10050 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10051 |
< |
(eval $ac_try) 2>&5 |
10052 |
< |
ac_status=$? |
10053 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10054 |
< |
(exit $ac_status); }; }; then |
10055 |
< |
ac_header_compiler=yes |
12247 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12248 |
> |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
12249 |
> |
ac_cv_prog_really_gcc=yes |
12250 |
|
else |
12251 |
< |
echo "$as_me: failed program was:" >&5 |
12252 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
12251 |
> |
ac_cv_prog_really_gcc=no |
12252 |
> |
fi |
12253 |
|
|
10060 |
– |
ac_header_compiler=no |
12254 |
|
fi |
12255 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12256 |
< |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12257 |
< |
echo "${ECHO_T}$ac_header_compiler" >&6 |
12255 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5 |
12256 |
> |
$as_echo "$ac_cv_prog_really_gcc" >&6; } |
12257 |
> |
if test "$ac_cv_prog_really_gcc" = yes; then |
12258 |
> |
: |
12259 |
|
|
12260 |
< |
# Is the header present? |
12261 |
< |
echo "$as_me:$LINENO: checking iomanip presence" >&5 |
12262 |
< |
echo $ECHO_N "checking iomanip presence... $ECHO_C" >&6 |
12263 |
< |
cat >conftest.$ac_ext <<_ACEOF |
12264 |
< |
/* confdefs.h. */ |
12265 |
< |
_ACEOF |
12266 |
< |
cat confdefs.h >>conftest.$ac_ext |
12267 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
12268 |
< |
/* end confdefs.h. */ |
12269 |
< |
#include <iomanip> |
12270 |
< |
_ACEOF |
12271 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
12272 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
12273 |
< |
ac_status=$? |
12274 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
12275 |
< |
rm -f conftest.er1 |
12276 |
< |
cat conftest.err >&5 |
12277 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12278 |
< |
(exit $ac_status); } >/dev/null; then |
12279 |
< |
if test -s conftest.err; then |
12280 |
< |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
12281 |
< |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
12282 |
< |
else |
12283 |
< |
ac_cpp_err= |
12260 |
> |
else |
12261 |
> |
: |
12262 |
> |
|
12263 |
> |
fi |
12264 |
> |
|
12265 |
> |
|
12266 |
> |
# Try to determine "good" native compiler flags if none specified on command |
12267 |
> |
# line |
12268 |
> |
if test "$ac_test_CFLAGS" != "set"; then |
12269 |
> |
CFLAGS="" |
12270 |
> |
case "${host_cpu}-${host_os}" in |
12271 |
> |
|
12272 |
> |
*linux*) if test "$CC" = icc; then |
12273 |
> |
CFLAGS="-O2" |
12274 |
> |
fi;; |
12275 |
> |
sparc-solaris2*) if test "$CC" = cc; then |
12276 |
> |
CFLAGS="-O -dalign" |
12277 |
> |
fi;; |
12278 |
> |
|
12279 |
> |
alpha*-osf*) if test "$CC" = cc; then |
12280 |
> |
CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1" |
12281 |
> |
fi;; |
12282 |
> |
|
12283 |
> |
hppa*-hpux*) if test "$CC" = cc; then |
12284 |
> |
CFLAGS="-Ae +O3 +Oall" |
12285 |
> |
fi;; |
12286 |
> |
|
12287 |
> |
rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then |
12288 |
> |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
12289 |
> |
fi;; |
12290 |
> |
powerpc*-aix*) |
12291 |
> |
if test "$CC" = cc -o "$CC" = xlc; then |
12292 |
> |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
12293 |
> |
echo "*******************************************************" |
12294 |
> |
echo "* You have AIX on an unknown powerpc system. It is *" |
12295 |
> |
echo "* recommended that you use *" |
12296 |
> |
echo "* *" |
12297 |
> |
echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
12298 |
> |
echo "* ^^^ *" |
12299 |
> |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
12300 |
> |
echo "* PowerPC CPU you have. For more info, man cc. *" |
12301 |
> |
echo "*******************************************************" |
12302 |
> |
fi;; |
12303 |
> |
*darwin*) |
12304 |
> |
if test "$CC" = xlc; then |
12305 |
> |
CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
12306 |
> |
fi |
12307 |
> |
if test "$CC" = icc; then |
12308 |
> |
CFLAGS="-O2" |
12309 |
> |
fi |
12310 |
> |
if test $ac_cv_prog_really_gcc = yes; then |
12311 |
> |
CFLAGS="-Os" |
12312 |
> |
fi;; |
12313 |
> |
esac |
12314 |
> |
|
12315 |
> |
# use default flags for gcc on all systems |
12316 |
> |
if test $ac_cv_prog_really_gcc = yes -a -z "$CFLAGS"; then |
12317 |
> |
CFLAGS="-O2" |
12318 |
|
fi |
12319 |
+ |
|
12320 |
+ |
if test -z "$CFLAGS"; then |
12321 |
+ |
echo "" |
12322 |
+ |
echo "********************************************************" |
12323 |
+ |
echo "* WARNING: Don't know the best CFLAGS for this system *" |
12324 |
+ |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
12325 |
+ |
echo "* (otherwise, a default of CFLAGS=-O will be used) *" |
12326 |
+ |
echo "********************************************************" |
12327 |
+ |
echo "" |
12328 |
+ |
CFLAGS="-O" |
12329 |
+ |
fi |
12330 |
+ |
|
12331 |
+ |
|
12332 |
+ |
|
12333 |
+ |
{ $as_echo "$as_me:$LINENO: checking whether ${CC} accepts ${CFLAGS}" >&5 |
12334 |
+ |
$as_echo_n "checking whether ${CC} accepts ${CFLAGS}... " >&6; } |
12335 |
+ |
if test "${ac_guessed_cflags+set}" = set; then |
12336 |
+ |
$as_echo_n "(cached) " >&6 |
12337 |
|
else |
12338 |
< |
ac_cpp_err=yes |
12339 |
< |
fi |
12340 |
< |
if test -z "$ac_cpp_err"; then |
10095 |
< |
ac_header_preproc=yes |
12338 |
> |
echo 'void f(){}' > conftest.c |
12339 |
> |
if test -z "`${CC} ${CFLAGS} -c conftest.c 2>&1`"; then |
12340 |
> |
ac_guessed_cflags=yes |
12341 |
|
else |
12342 |
< |
echo "$as_me: failed program was:" >&5 |
12343 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
12342 |
> |
ac_guessed_cflags=no |
12343 |
> |
fi |
12344 |
> |
rm -f conftest* |
12345 |
|
|
10100 |
– |
ac_header_preproc=no |
12346 |
|
fi |
12347 |
< |
rm -f conftest.err conftest.$ac_ext |
12348 |
< |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12349 |
< |
echo "${ECHO_T}$ac_header_preproc" >&6 |
12347 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5 |
12348 |
> |
$as_echo "$ac_guessed_cflags" >&6; } |
12349 |
> |
if test "$ac_guessed_cflags" = yes; then |
12350 |
> |
: |
12351 |
|
|
10106 |
– |
# So? What about this header? |
10107 |
– |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10108 |
– |
yes:no: ) |
10109 |
– |
{ echo "$as_me:$LINENO: WARNING: iomanip: accepted by the compiler, rejected by the preprocessor!" >&5 |
10110 |
– |
echo "$as_me: WARNING: iomanip: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10111 |
– |
{ echo "$as_me:$LINENO: WARNING: iomanip: proceeding with the compiler's result" >&5 |
10112 |
– |
echo "$as_me: WARNING: iomanip: proceeding with the compiler's result" >&2;} |
10113 |
– |
ac_header_preproc=yes |
10114 |
– |
;; |
10115 |
– |
no:yes:* ) |
10116 |
– |
{ echo "$as_me:$LINENO: WARNING: iomanip: present but cannot be compiled" >&5 |
10117 |
– |
echo "$as_me: WARNING: iomanip: present but cannot be compiled" >&2;} |
10118 |
– |
{ echo "$as_me:$LINENO: WARNING: iomanip: check for missing prerequisite headers?" >&5 |
10119 |
– |
echo "$as_me: WARNING: iomanip: check for missing prerequisite headers?" >&2;} |
10120 |
– |
{ echo "$as_me:$LINENO: WARNING: iomanip: see the Autoconf documentation" >&5 |
10121 |
– |
echo "$as_me: WARNING: iomanip: see the Autoconf documentation" >&2;} |
10122 |
– |
{ echo "$as_me:$LINENO: WARNING: iomanip: section \"Present But Cannot Be Compiled\"" >&5 |
10123 |
– |
echo "$as_me: WARNING: iomanip: section \"Present But Cannot Be Compiled\"" >&2;} |
10124 |
– |
{ echo "$as_me:$LINENO: WARNING: iomanip: proceeding with the preprocessor's result" >&5 |
10125 |
– |
echo "$as_me: WARNING: iomanip: proceeding with the preprocessor's result" >&2;} |
10126 |
– |
{ echo "$as_me:$LINENO: WARNING: iomanip: in the future, the compiler will take precedence" >&5 |
10127 |
– |
echo "$as_me: WARNING: iomanip: in the future, the compiler will take precedence" >&2;} |
10128 |
– |
( |
10129 |
– |
cat <<\_ASBOX |
10130 |
– |
## ------------------------------ ## |
10131 |
– |
## Report this to gezelter@nd.edu ## |
10132 |
– |
## ------------------------------ ## |
10133 |
– |
_ASBOX |
10134 |
– |
) | |
10135 |
– |
sed "s/^/$as_me: WARNING: /" >&2 |
10136 |
– |
;; |
10137 |
– |
esac |
10138 |
– |
echo "$as_me:$LINENO: checking for iomanip" >&5 |
10139 |
– |
echo $ECHO_N "checking for iomanip... $ECHO_C" >&6 |
10140 |
– |
if test "${ac_cv_header_iomanip+set}" = set; then |
10141 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12352 |
|
else |
12353 |
< |
ac_cv_header_iomanip=$ac_header_preproc |
12353 |
> |
: |
12354 |
> |
|
12355 |
> |
echo "" |
12356 |
> |
echo "********************************************************" |
12357 |
> |
echo "* WARNING: The guessed CFLAGS don't seem to work with *" |
12358 |
> |
echo "* your compiler. *" |
12359 |
> |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
12360 |
> |
echo "********************************************************" |
12361 |
> |
echo "" |
12362 |
> |
CFLAGS="" |
12363 |
> |
|
12364 |
|
fi |
10145 |
– |
echo "$as_me:$LINENO: result: $ac_cv_header_iomanip" >&5 |
10146 |
– |
echo "${ECHO_T}$ac_cv_header_iomanip" >&6 |
12365 |
|
|
12366 |
+ |
|
12367 |
|
fi |
10149 |
– |
if test $ac_cv_header_iomanip = yes; then |
12368 |
|
|
12369 |
|
|
10152 |
– |
cat >>confdefs.h <<\_ACEOF |
10153 |
– |
#define HAVE_IOMANIP 1 |
10154 |
– |
_ACEOF |
12370 |
|
|
12371 |
|
|
10157 |
– |
else |
12372 |
|
|
12373 |
|
|
12374 |
< |
for ac_header in iomanip.h |
12375 |
< |
do |
12376 |
< |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12377 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
12378 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10165 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10166 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10167 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10168 |
< |
fi |
10169 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10170 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
12374 |
> |
|
12375 |
> |
{ $as_echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5 |
12376 |
> |
$as_echo_n "checking whether we are *really* using GNU c++... " >&6; } |
12377 |
> |
if test "${ac_cv_prog_really_gxx+set}" = set; then |
12378 |
> |
$as_echo_n "(cached) " >&6 |
12379 |
|
else |
12380 |
< |
# Is the header compilable? |
12381 |
< |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12382 |
< |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
12383 |
< |
cat >conftest.$ac_ext <<_ACEOF |
12384 |
< |
/* confdefs.h. */ |
12385 |
< |
_ACEOF |
12386 |
< |
cat confdefs.h >>conftest.$ac_ext |
12387 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
12388 |
< |
/* end confdefs.h. */ |
12389 |
< |
$ac_includes_default |
12390 |
< |
#include <$ac_header> |
10183 |
< |
_ACEOF |
10184 |
< |
rm -f conftest.$ac_objext |
10185 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
10186 |
< |
(eval $ac_compile) 2>conftest.er1 |
10187 |
< |
ac_status=$? |
10188 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
10189 |
< |
rm -f conftest.er1 |
10190 |
< |
cat conftest.err >&5 |
10191 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10192 |
< |
(exit $ac_status); } && |
10193 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
10194 |
< |
|| test ! -s conftest.err' |
12380 |
> |
|
12381 |
> |
cat > conftest.cpp <<EOF |
12382 |
> |
#ifdef __GNUC__ |
12383 |
> |
#if defined(__INTEL_COMPILER) || defined(__PATHCC__) |
12384 |
> |
no; |
12385 |
> |
#else |
12386 |
> |
yes; |
12387 |
> |
#endif |
12388 |
> |
#endif |
12389 |
> |
EOF |
12390 |
> |
if { ac_try='${CXX-c++} -E conftest.cpp' |
12391 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12392 |
|
(eval $ac_try) 2>&5 |
12393 |
|
ac_status=$? |
12394 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12395 |
< |
(exit $ac_status); }; } && |
12396 |
< |
{ ac_try='test -s conftest.$ac_objext' |
10201 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10202 |
< |
(eval $ac_try) 2>&5 |
10203 |
< |
ac_status=$? |
10204 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10205 |
< |
(exit $ac_status); }; }; then |
10206 |
< |
ac_header_compiler=yes |
12394 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12395 |
> |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
12396 |
> |
ac_cv_prog_really_gxx=yes |
12397 |
|
else |
12398 |
< |
echo "$as_me: failed program was:" >&5 |
12399 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
12398 |
> |
ac_cv_prog_really_gxx=no |
12399 |
> |
fi |
12400 |
|
|
10211 |
– |
ac_header_compiler=no |
12401 |
|
fi |
12402 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12403 |
< |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12404 |
< |
echo "${ECHO_T}$ac_header_compiler" >&6 |
12402 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5 |
12403 |
> |
$as_echo "$ac_cv_prog_really_gxx" >&6; } |
12404 |
> |
if test "$ac_cv_prog_really_gxx" = yes; then |
12405 |
> |
: |
12406 |
|
|
10217 |
– |
# Is the header present? |
10218 |
– |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10219 |
– |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
10220 |
– |
cat >conftest.$ac_ext <<_ACEOF |
10221 |
– |
/* confdefs.h. */ |
10222 |
– |
_ACEOF |
10223 |
– |
cat confdefs.h >>conftest.$ac_ext |
10224 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
10225 |
– |
/* end confdefs.h. */ |
10226 |
– |
#include <$ac_header> |
10227 |
– |
_ACEOF |
10228 |
– |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
10229 |
– |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10230 |
– |
ac_status=$? |
10231 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
10232 |
– |
rm -f conftest.er1 |
10233 |
– |
cat conftest.err >&5 |
10234 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10235 |
– |
(exit $ac_status); } >/dev/null; then |
10236 |
– |
if test -s conftest.err; then |
10237 |
– |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
10238 |
– |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
10239 |
– |
else |
10240 |
– |
ac_cpp_err= |
10241 |
– |
fi |
12407 |
|
else |
12408 |
< |
ac_cpp_err=yes |
12408 |
> |
: |
12409 |
> |
|
12410 |
|
fi |
12411 |
< |
if test -z "$ac_cpp_err"; then |
12412 |
< |
ac_header_preproc=yes |
12411 |
> |
|
12412 |
> |
|
12413 |
> |
# Try to determine "good" native compiler flags if none specified on command |
12414 |
> |
# line |
12415 |
> |
if test "$ac_test_CXXFLAGS" != "set"; then |
12416 |
> |
CXXFLAGS="" |
12417 |
> |
case "${host_cpu}-${host_os}" in |
12418 |
> |
|
12419 |
> |
*linux*) if test "$CXX" = icc -o "$CXX" = icpc; then |
12420 |
> |
CXXFLAGS="-O2" |
12421 |
> |
fi;; |
12422 |
> |
sparc-solaris2*) if test "$CXX" = CC; then |
12423 |
> |
CXXFLAGS="-features=extensions -O -dalign" |
12424 |
> |
fi;; |
12425 |
> |
rs6000*-aix*) if test "$CXX" = xlC; then |
12426 |
> |
CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" |
12427 |
> |
fi;; |
12428 |
> |
powerpc*-aix*) |
12429 |
> |
if test "$CXX" = xlC; then |
12430 |
> |
CXXFLAGS="-O3 -qarch=ppc -qansialias -w" |
12431 |
> |
echo "*******************************************************" |
12432 |
> |
echo "* You have AIX on an unknown powerpc system. It is *" |
12433 |
> |
echo "* recommended that you use *" |
12434 |
> |
echo "* *" |
12435 |
> |
echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
12436 |
> |
echo "* ^^^ *" |
12437 |
> |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
12438 |
> |
echo "* PowerPC CPU you have. For more info, man cc. *" |
12439 |
> |
echo "*******************************************************" |
12440 |
> |
fi;; |
12441 |
> |
*darwin*) |
12442 |
> |
if test "$CXX" = xlc++ -o "$CXX" = xlC ; then |
12443 |
> |
CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
12444 |
> |
fi |
12445 |
> |
if test "$CXX" = icpc; then |
12446 |
> |
CXXFLAGS="-O2" |
12447 |
> |
fi |
12448 |
> |
if test $ac_cv_prog_really_gxx = yes; then |
12449 |
> |
CXXFLAGS="-Os" |
12450 |
> |
fi;; |
12451 |
> |
esac |
12452 |
> |
|
12453 |
> |
# use default flags for gcc on all systems |
12454 |
> |
if test $ac_cv_prog_really_gxx = yes -a -z "$CXXFLAGS"; then |
12455 |
> |
CXXFLAGS="-O2" |
12456 |
> |
fi |
12457 |
> |
|
12458 |
> |
if test -z "$CXXFLAGS"; then |
12459 |
> |
echo "" |
12460 |
> |
echo "**********************************************************" |
12461 |
> |
echo "* WARNING: Don't know the best CXXFLAGS for this system *" |
12462 |
> |
echo "* Use make CXXFLAGS=..., or edit the top level Makefile *" |
12463 |
> |
echo "* (otherwise, a default of CXXFLAGS=-O will be used) *" |
12464 |
> |
echo "**********************************************************" |
12465 |
> |
echo "" |
12466 |
> |
CXXFLAGS="-O" |
12467 |
> |
fi |
12468 |
> |
|
12469 |
> |
|
12470 |
> |
|
12471 |
> |
{ $as_echo "$as_me:$LINENO: checking whether ${CXX} accepts ${CXXFLAGS}" >&5 |
12472 |
> |
$as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS}... " >&6; } |
12473 |
> |
if test "${ac_guessed_cxxflags+set}" = set; then |
12474 |
> |
$as_echo_n "(cached) " >&6 |
12475 |
|
else |
12476 |
< |
echo "$as_me: failed program was:" >&5 |
12477 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
12476 |
> |
echo 'void f(){}' > conftest.cpp |
12477 |
> |
if test -z "`${CXX} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then |
12478 |
> |
ac_guessed_cxxflags=yes |
12479 |
> |
else |
12480 |
> |
ac_guessed_cxxflags=no |
12481 |
> |
fi |
12482 |
> |
rm -f conftest* |
12483 |
|
|
10251 |
– |
ac_header_preproc=no |
12484 |
|
fi |
12485 |
< |
rm -f conftest.err conftest.$ac_ext |
12486 |
< |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12487 |
< |
echo "${ECHO_T}$ac_header_preproc" >&6 |
12485 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5 |
12486 |
> |
$as_echo "$ac_guessed_cxxflags" >&6; } |
12487 |
> |
if test "$ac_guessed_cxxflags" = yes; then |
12488 |
> |
: |
12489 |
|
|
10257 |
– |
# So? What about this header? |
10258 |
– |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10259 |
– |
yes:no: ) |
10260 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10261 |
– |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10262 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10263 |
– |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10264 |
– |
ac_header_preproc=yes |
10265 |
– |
;; |
10266 |
– |
no:yes:* ) |
10267 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10268 |
– |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10269 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10270 |
– |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10271 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10272 |
– |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10273 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10274 |
– |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10275 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10276 |
– |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10277 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10278 |
– |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10279 |
– |
( |
10280 |
– |
cat <<\_ASBOX |
10281 |
– |
## ------------------------------ ## |
10282 |
– |
## Report this to gezelter@nd.edu ## |
10283 |
– |
## ------------------------------ ## |
10284 |
– |
_ASBOX |
10285 |
– |
) | |
10286 |
– |
sed "s/^/$as_me: WARNING: /" >&2 |
10287 |
– |
;; |
10288 |
– |
esac |
10289 |
– |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10290 |
– |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10291 |
– |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10292 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12490 |
|
else |
12491 |
< |
eval "$as_ac_Header=\$ac_header_preproc" |
10295 |
< |
fi |
10296 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10297 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
12491 |
> |
: |
12492 |
|
|
12493 |
+ |
echo "" |
12494 |
+ |
echo "**********************************************************" |
12495 |
+ |
echo "* WARNING: The guessed CXXFLAGS don't seem to work with *" |
12496 |
+ |
echo "* your compiler. *" |
12497 |
+ |
echo "* Use make CXXFLAGS=..., or edit the top level Makefile *" |
12498 |
+ |
echo "**********************************************************" |
12499 |
+ |
echo "" |
12500 |
+ |
CXXFLAGS="" |
12501 |
+ |
|
12502 |
|
fi |
10300 |
– |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10301 |
– |
cat >>confdefs.h <<_ACEOF |
10302 |
– |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
10303 |
– |
_ACEOF |
12503 |
|
|
12504 |
+ |
|
12505 |
|
fi |
12506 |
|
|
12507 |
< |
done |
12507 |
> |
;; |
12508 |
> |
esac |
12509 |
|
|
12510 |
|
|
12511 |
+ |
acx_cgal_found=no |
12512 |
+ |
|
12513 |
+ |
# Check whether --with-cgalmakefile was given. |
12514 |
+ |
if test "${with_cgalmakefile+set}" = set; then |
12515 |
+ |
withval=$with_cgalmakefile; |
12516 |
|
fi |
12517 |
|
|
12518 |
+ |
case $with_cgalmakefile in |
12519 |
+ |
yes | "") ;; |
12520 |
+ |
no) acx_cgal_found=disable ;; |
12521 |
+ |
-* | */* | *.a | *.so | *.so.* | *.o) CGAL_MAKEFILE="$with_cgalmakefile" ;; |
12522 |
+ |
*) CGAL_MAKEFILE="$with_cgalmakefile" ;; |
12523 |
+ |
esac |
12524 |
|
|
12525 |
+ |
if test "$acx_cgal_found" == no; then |
12526 |
+ |
{ $as_echo "$as_me:$LINENO: checking CGAL_MAKEFILE" >&5 |
12527 |
+ |
$as_echo_n "checking CGAL_MAKEFILE... " >&6; } |
12528 |
|
|
12529 |
+ |
if test \! -z "$CGAL_MAKEFILE"; then |
12530 |
|
|
12531 |
< |
for ac_header in cmath |
12532 |
< |
do |
12533 |
< |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12534 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
12535 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12536 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
12537 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
12538 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12531 |
> |
if test -e "$CGAL_MAKEFILE"; then |
12532 |
> |
tname=`mktemp /tmp/cgal_makefile_dsrXXXXXX` |
12533 |
> |
|
12534 |
> |
cat > $tname << _ACEOF |
12535 |
> |
include $CGAL_MAKEFILE |
12536 |
> |
|
12537 |
> |
cppflags: |
12538 |
> |
@echo \$(CGAL_CXXFLAGS) |
12539 |
> |
|
12540 |
> |
cxxflags: |
12541 |
> |
@echo |
12542 |
> |
ldflags: |
12543 |
> |
@echo \$(CGAL_LDFLAGS) |
12544 |
> |
_ACEOF |
12545 |
> |
CGAL_CPPFLAGS="`make -s -f $tname cppflags`" |
12546 |
> |
CGAL_CXXFLAGS="`make -s -f $tname cxxflags`" |
12547 |
> |
CGAL_LDFLAGST="`make -s -f $tname ldflags`" |
12548 |
> |
for i in $CGAL_LDFLAGST; do |
12549 |
> |
if test `echo $i| grep -c ^-l`; then |
12550 |
> |
CGAL_LIBS="$CGAL_LIBS $i" |
12551 |
> |
else |
12552 |
> |
CGAL_LDFLAGS="$CGAL_LDFLAGS $i" |
12553 |
> |
fi |
12554 |
> |
done |
12555 |
> |
rm -f $tname |
12556 |
> |
{ $as_echo "$as_me:$LINENO: result: yes" >&5 |
12557 |
> |
$as_echo "yes" >&6; } |
12558 |
> |
acx_cgal_found=yes |
12559 |
> |
else |
12560 |
> |
{ $as_echo "$as_me:$LINENO: result: invalid" >&5 |
12561 |
> |
$as_echo "invalid" >&6; } |
12562 |
> |
{ { $as_echo "$as_me:$LINENO: error: CGAL_MAKEFILE defined, but the makefile does not exist." >&5 |
12563 |
> |
$as_echo "$as_me: error: CGAL_MAKEFILE defined, but the makefile does not exist." >&2;} |
12564 |
> |
{ (exit 1); exit 1; }; } |
12565 |
> |
fi |
12566 |
> |
else |
12567 |
> |
{ $as_echo "$as_me:$LINENO: result: not defined" >&5 |
12568 |
> |
$as_echo "not defined" >&6; } |
12569 |
> |
fi |
12570 |
|
fi |
12571 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12572 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
12571 |
> |
|
12572 |
> |
if test "$acx_cgal_found" == no; then |
12573 |
> |
if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then |
12574 |
> |
{ $as_echo "$as_me:$LINENO: checking for CGAL/Exact_predicates_inexact_constructions_kernel.h" >&5 |
12575 |
> |
$as_echo_n "checking for CGAL/Exact_predicates_inexact_constructions_kernel.h... " >&6; } |
12576 |
> |
if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then |
12577 |
> |
$as_echo_n "(cached) " >&6 |
12578 |
> |
fi |
12579 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&5 |
12580 |
> |
$as_echo "$ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&6; } |
12581 |
|
else |
12582 |
|
# Is the header compilable? |
12583 |
< |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12584 |
< |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
12583 |
> |
{ $as_echo "$as_me:$LINENO: checking CGAL/Exact_predicates_inexact_constructions_kernel.h usability" >&5 |
12584 |
> |
$as_echo_n "checking CGAL/Exact_predicates_inexact_constructions_kernel.h usability... " >&6; } |
12585 |
|
cat >conftest.$ac_ext <<_ACEOF |
12586 |
|
/* confdefs.h. */ |
12587 |
|
_ACEOF |
12589 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12590 |
|
/* end confdefs.h. */ |
12591 |
|
$ac_includes_default |
12592 |
< |
#include <$ac_header> |
12592 |
> |
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h> |
12593 |
|
_ACEOF |
12594 |
|
rm -f conftest.$ac_objext |
12595 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12596 |
< |
(eval $ac_compile) 2>conftest.er1 |
12595 |
> |
if { (ac_try="$ac_compile" |
12596 |
> |
case "(($ac_try" in |
12597 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12598 |
> |
*) ac_try_echo=$ac_try;; |
12599 |
> |
esac |
12600 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12601 |
> |
$as_echo "$ac_try_echo") >&5 |
12602 |
> |
(eval "$ac_compile") 2>conftest.er1 |
12603 |
|
ac_status=$? |
12604 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12605 |
|
rm -f conftest.er1 |
12606 |
|
cat conftest.err >&5 |
12607 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12608 |
< |
(exit $ac_status); } && |
12609 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
12610 |
< |
|| test ! -s conftest.err' |
12611 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10351 |
< |
(eval $ac_try) 2>&5 |
10352 |
< |
ac_status=$? |
10353 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10354 |
< |
(exit $ac_status); }; } && |
10355 |
< |
{ ac_try='test -s conftest.$ac_objext' |
10356 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10357 |
< |
(eval $ac_try) 2>&5 |
10358 |
< |
ac_status=$? |
10359 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10360 |
< |
(exit $ac_status); }; }; then |
12607 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12608 |
> |
(exit $ac_status); } && { |
12609 |
> |
test -z "$ac_c_werror_flag" || |
12610 |
> |
test ! -s conftest.err |
12611 |
> |
} && test -s conftest.$ac_objext; then |
12612 |
|
ac_header_compiler=yes |
12613 |
|
else |
12614 |
< |
echo "$as_me: failed program was:" >&5 |
12614 |
> |
$as_echo "$as_me: failed program was:" >&5 |
12615 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12616 |
|
|
12617 |
< |
ac_header_compiler=no |
12617 |
> |
ac_header_compiler=no |
12618 |
|
fi |
10368 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10369 |
– |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10370 |
– |
echo "${ECHO_T}$ac_header_compiler" >&6 |
12619 |
|
|
12620 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12621 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12622 |
+ |
$as_echo "$ac_header_compiler" >&6; } |
12623 |
+ |
|
12624 |
|
# Is the header present? |
12625 |
< |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12626 |
< |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
12625 |
> |
{ $as_echo "$as_me:$LINENO: checking CGAL/Exact_predicates_inexact_constructions_kernel.h presence" >&5 |
12626 |
> |
$as_echo_n "checking CGAL/Exact_predicates_inexact_constructions_kernel.h presence... " >&6; } |
12627 |
|
cat >conftest.$ac_ext <<_ACEOF |
12628 |
|
/* confdefs.h. */ |
12629 |
|
_ACEOF |
12630 |
|
cat confdefs.h >>conftest.$ac_ext |
12631 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12632 |
|
/* end confdefs.h. */ |
12633 |
< |
#include <$ac_header> |
12633 |
> |
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h> |
12634 |
|
_ACEOF |
12635 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
12636 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
12635 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
12636 |
> |
case "(($ac_try" in |
12637 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12638 |
> |
*) ac_try_echo=$ac_try;; |
12639 |
> |
esac |
12640 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12641 |
> |
$as_echo "$ac_try_echo") >&5 |
12642 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
12643 |
|
ac_status=$? |
12644 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12645 |
|
rm -f conftest.er1 |
12646 |
|
cat conftest.err >&5 |
12647 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12648 |
< |
(exit $ac_status); } >/dev/null; then |
12649 |
< |
if test -s conftest.err; then |
12650 |
< |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
12651 |
< |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
10394 |
< |
else |
10395 |
< |
ac_cpp_err= |
10396 |
< |
fi |
10397 |
< |
else |
10398 |
< |
ac_cpp_err=yes |
10399 |
< |
fi |
10400 |
< |
if test -z "$ac_cpp_err"; then |
12647 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12648 |
> |
(exit $ac_status); } >/dev/null && { |
12649 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
12650 |
> |
test ! -s conftest.err |
12651 |
> |
}; then |
12652 |
|
ac_header_preproc=yes |
12653 |
|
else |
12654 |
< |
echo "$as_me: failed program was:" >&5 |
12654 |
> |
$as_echo "$as_me: failed program was:" >&5 |
12655 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12656 |
|
|
12657 |
|
ac_header_preproc=no |
12658 |
|
fi |
12659 |
+ |
|
12660 |
|
rm -f conftest.err conftest.$ac_ext |
12661 |
< |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12662 |
< |
echo "${ECHO_T}$ac_header_preproc" >&6 |
12661 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12662 |
> |
$as_echo "$ac_header_preproc" >&6; } |
12663 |
|
|
12664 |
|
# So? What about this header? |
12665 |
< |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
12665 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12666 |
|
yes:no: ) |
12667 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12668 |
< |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
12669 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12670 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
12667 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
12668 |
> |
$as_echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
12669 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the compiler's result" >&5 |
12670 |
> |
$as_echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the compiler's result" >&2;} |
12671 |
|
ac_header_preproc=yes |
12672 |
|
;; |
12673 |
|
no:yes:* ) |
12674 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12675 |
< |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
12676 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12677 |
< |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
12678 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
12679 |
< |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
12680 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
12681 |
< |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
12682 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12683 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
12684 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12685 |
< |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
12686 |
< |
( |
10435 |
< |
cat <<\_ASBOX |
12674 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: present but cannot be compiled" >&5 |
12675 |
> |
$as_echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: present but cannot be compiled" >&2;} |
12676 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: check for missing prerequisite headers?" >&5 |
12677 |
> |
$as_echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: check for missing prerequisite headers?" >&2;} |
12678 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: see the Autoconf documentation" >&5 |
12679 |
> |
$as_echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: see the Autoconf documentation" >&2;} |
12680 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: section \"Present But Cannot Be Compiled\"" >&5 |
12681 |
> |
$as_echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: section \"Present But Cannot Be Compiled\"" >&2;} |
12682 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the preprocessor's result" >&5 |
12683 |
> |
$as_echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the preprocessor's result" >&2;} |
12684 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: in the future, the compiler will take precedence" >&5 |
12685 |
> |
$as_echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: in the future, the compiler will take precedence" >&2;} |
12686 |
> |
( cat <<\_ASBOX |
12687 |
|
## ------------------------------ ## |
12688 |
|
## Report this to gezelter@nd.edu ## |
12689 |
|
## ------------------------------ ## |
12690 |
|
_ASBOX |
12691 |
< |
) | |
10441 |
< |
sed "s/^/$as_me: WARNING: /" >&2 |
12691 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
12692 |
|
;; |
12693 |
|
esac |
12694 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12695 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
12696 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
12697 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12694 |
> |
{ $as_echo "$as_me:$LINENO: checking for CGAL/Exact_predicates_inexact_constructions_kernel.h" >&5 |
12695 |
> |
$as_echo_n "checking for CGAL/Exact_predicates_inexact_constructions_kernel.h... " >&6; } |
12696 |
> |
if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then |
12697 |
> |
$as_echo_n "(cached) " >&6 |
12698 |
|
else |
12699 |
< |
eval "$as_ac_Header=\$ac_header_preproc" |
12699 |
> |
ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h=$ac_header_preproc |
12700 |
|
fi |
12701 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12702 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
12701 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&5 |
12702 |
> |
$as_echo "$ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&6; } |
12703 |
|
|
12704 |
|
fi |
12705 |
< |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12706 |
< |
cat >>confdefs.h <<_ACEOF |
12707 |
< |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
12708 |
< |
_ACEOF |
10459 |
< |
|
12705 |
> |
if test $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h = yes; then |
12706 |
> |
cgal_have_header=yes |
12707 |
> |
else |
12708 |
> |
cgal_have_header=no |
12709 |
|
fi |
12710 |
|
|
10462 |
– |
done |
12711 |
|
|
12712 |
< |
|
12713 |
< |
|
12714 |
< |
|
12715 |
< |
echo "$as_me:$LINENO: checking for C++ iostream in namespace std" >&5 |
12716 |
< |
echo $ECHO_N "checking for C++ iostream in namespace std... $ECHO_C" >&6 |
10469 |
< |
if test "${ac_cv_cxx_have_std_iostream+set}" = set; then |
10470 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12712 |
> |
if test "$cgal_have_header" == yes; then |
12713 |
> |
{ $as_echo "$as_me:$LINENO: checking for main in -lCGAL" >&5 |
12714 |
> |
$as_echo_n "checking for main in -lCGAL... " >&6; } |
12715 |
> |
if test "${ac_cv_lib_CGAL_main+set}" = set; then |
12716 |
> |
$as_echo_n "(cached) " >&6 |
12717 |
|
else |
12718 |
< |
|
12719 |
< |
ac_cv_cxx_have_std_iostream=no |
12720 |
< |
ac_cv_cxx_need_use_std_iostream=no |
10475 |
< |
if test "x$ac_cv_cxx_namespaces" = xyes; then |
10476 |
< |
|
10477 |
< |
|
10478 |
< |
ac_ext=cc |
10479 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
10480 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10481 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10482 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10483 |
< |
|
10484 |
< |
cat >conftest.$ac_ext <<_ACEOF |
12718 |
> |
ac_check_lib_save_LIBS=$LIBS |
12719 |
> |
LIBS="-lCGAL $LIBS" |
12720 |
> |
cat >conftest.$ac_ext <<_ACEOF |
12721 |
|
/* confdefs.h. */ |
12722 |
|
_ACEOF |
12723 |
|
cat confdefs.h >>conftest.$ac_ext |
12724 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12725 |
|
/* end confdefs.h. */ |
12726 |
|
|
10491 |
– |
#ifdef HAVE_IOSTREAM |
10492 |
– |
#include <iostream> |
10493 |
– |
#else |
10494 |
– |
#include <iostream.h> |
10495 |
– |
#endif |
12727 |
|
|
12728 |
|
#ifdef FC_DUMMY_MAIN |
12729 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12736 |
|
int |
12737 |
|
main () |
12738 |
|
{ |
12739 |
< |
std::cout<<"Hello World"<<std::endl;return 0; |
12739 |
> |
return main (); |
12740 |
|
; |
12741 |
|
return 0; |
12742 |
|
} |
12743 |
|
_ACEOF |
12744 |
< |
rm -f conftest.$ac_objext |
12745 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12746 |
< |
(eval $ac_compile) 2>conftest.er1 |
12744 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
12745 |
> |
if { (ac_try="$ac_link" |
12746 |
> |
case "(($ac_try" in |
12747 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12748 |
> |
*) ac_try_echo=$ac_try;; |
12749 |
> |
esac |
12750 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12751 |
> |
$as_echo "$ac_try_echo") >&5 |
12752 |
> |
(eval "$ac_link") 2>conftest.er1 |
12753 |
|
ac_status=$? |
12754 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12755 |
|
rm -f conftest.er1 |
12756 |
|
cat conftest.err >&5 |
12757 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12758 |
< |
(exit $ac_status); } && |
12759 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
12760 |
< |
|| test ! -s conftest.err' |
12761 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12762 |
< |
(eval $ac_try) 2>&5 |
12763 |
< |
ac_status=$? |
12764 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12765 |
< |
(exit $ac_status); }; } && |
10529 |
< |
{ ac_try='test -s conftest.$ac_objext' |
10530 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10531 |
< |
(eval $ac_try) 2>&5 |
10532 |
< |
ac_status=$? |
10533 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10534 |
< |
(exit $ac_status); }; }; then |
10535 |
< |
ac_cv_cxx_have_std_iostream=yes |
12757 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12758 |
> |
(exit $ac_status); } && { |
12759 |
> |
test -z "$ac_c_werror_flag" || |
12760 |
> |
test ! -s conftest.err |
12761 |
> |
} && test -s conftest$ac_exeext && { |
12762 |
> |
test "$cross_compiling" = yes || |
12763 |
> |
$as_test_x conftest$ac_exeext |
12764 |
> |
}; then |
12765 |
> |
ac_cv_lib_CGAL_main=yes |
12766 |
|
else |
12767 |
< |
echo "$as_me: failed program was:" >&5 |
12767 |
> |
$as_echo "$as_me: failed program was:" >&5 |
12768 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12769 |
|
|
12770 |
+ |
ac_cv_lib_CGAL_main=no |
12771 |
|
fi |
12772 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12773 |
< |
cat >conftest.$ac_ext <<_ACEOF |
12772 |
> |
|
12773 |
> |
rm -rf conftest.dSYM |
12774 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12775 |
> |
conftest$ac_exeext conftest.$ac_ext |
12776 |
> |
LIBS=$ac_check_lib_save_LIBS |
12777 |
> |
fi |
12778 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_CGAL_main" >&5 |
12779 |
> |
$as_echo "$ac_cv_lib_CGAL_main" >&6; } |
12780 |
> |
if test $ac_cv_lib_CGAL_main = yes; then |
12781 |
> |
cgal_have_lib=yes |
12782 |
> |
else |
12783 |
> |
cgal_have_lib=no |
12784 |
> |
fi |
12785 |
> |
|
12786 |
> |
if test "$cgal_have_lib" == no; then |
12787 |
> |
save_LIBS="$LIBS"; LIBS="$LIBS -lgmp -lmpfr -lm" |
12788 |
> |
{ $as_echo "$as_me:$LINENO: checking for main in -lCGAL" >&5 |
12789 |
> |
$as_echo_n "checking for main in -lCGAL... " >&6; } |
12790 |
> |
if test "${ac_cv_lib_CGAL_main+set}" = set; then |
12791 |
> |
$as_echo_n "(cached) " >&6 |
12792 |
> |
else |
12793 |
> |
ac_check_lib_save_LIBS=$LIBS |
12794 |
> |
LIBS="-lCGAL $LIBS" |
12795 |
> |
cat >conftest.$ac_ext <<_ACEOF |
12796 |
|
/* confdefs.h. */ |
12797 |
|
_ACEOF |
12798 |
|
cat confdefs.h >>conftest.$ac_ext |
12799 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12800 |
|
/* end confdefs.h. */ |
12801 |
|
|
10549 |
– |
#define __USE_STD_IOSTREAM 1 |
10550 |
– |
#ifdef HAVE_IOSTREAM |
10551 |
– |
#include <iostream> |
10552 |
– |
#else |
10553 |
– |
#include <iostream.h> |
10554 |
– |
#endif |
12802 |
|
|
12803 |
|
#ifdef FC_DUMMY_MAIN |
12804 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12811 |
|
int |
12812 |
|
main () |
12813 |
|
{ |
12814 |
< |
std::cout<<"Hello World"<<std::endl;return 0; |
12814 |
> |
return main (); |
12815 |
|
; |
12816 |
|
return 0; |
12817 |
|
} |
12818 |
|
_ACEOF |
12819 |
< |
rm -f conftest.$ac_objext |
12820 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12821 |
< |
(eval $ac_compile) 2>conftest.er1 |
12822 |
< |
ac_status=$? |
12819 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
12820 |
> |
if { (ac_try="$ac_link" |
12821 |
> |
case "(($ac_try" in |
12822 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12823 |
> |
*) ac_try_echo=$ac_try;; |
12824 |
> |
esac |
12825 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12826 |
> |
$as_echo "$ac_try_echo") >&5 |
12827 |
> |
(eval "$ac_link") 2>conftest.er1 |
12828 |
> |
ac_status=$? |
12829 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12830 |
|
rm -f conftest.er1 |
12831 |
|
cat conftest.err >&5 |
12832 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12833 |
< |
(exit $ac_status); } && |
12834 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
12835 |
< |
|| test ! -s conftest.err' |
12836 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12837 |
< |
(eval $ac_try) 2>&5 |
12838 |
< |
ac_status=$? |
12839 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12840 |
< |
(exit $ac_status); }; } && |
10588 |
< |
{ ac_try='test -s conftest.$ac_objext' |
10589 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10590 |
< |
(eval $ac_try) 2>&5 |
10591 |
< |
ac_status=$? |
10592 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10593 |
< |
(exit $ac_status); }; }; then |
10594 |
< |
ac_cv_cxx_have_std_iostream=yes;ac_cv_cxx_need_use_std_iostream=yes |
12832 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12833 |
> |
(exit $ac_status); } && { |
12834 |
> |
test -z "$ac_c_werror_flag" || |
12835 |
> |
test ! -s conftest.err |
12836 |
> |
} && test -s conftest$ac_exeext && { |
12837 |
> |
test "$cross_compiling" = yes || |
12838 |
> |
$as_test_x conftest$ac_exeext |
12839 |
> |
}; then |
12840 |
> |
ac_cv_lib_CGAL_main=yes |
12841 |
|
else |
12842 |
< |
echo "$as_me: failed program was:" >&5 |
12842 |
> |
$as_echo "$as_me: failed program was:" >&5 |
12843 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12844 |
|
|
12845 |
+ |
ac_cv_lib_CGAL_main=no |
12846 |
|
fi |
10600 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10601 |
– |
ac_ext=cc |
10602 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
10603 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10604 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10605 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
12847 |
|
|
12848 |
< |
fi |
12849 |
< |
|
12848 |
> |
rm -rf conftest.dSYM |
12849 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12850 |
> |
conftest$ac_exeext conftest.$ac_ext |
12851 |
> |
LIBS=$ac_check_lib_save_LIBS |
12852 |
|
fi |
12853 |
< |
echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iostream" >&5 |
12854 |
< |
echo "${ECHO_T}$ac_cv_cxx_have_std_iostream" >&6 |
12855 |
< |
if test "$ac_cv_cxx_have_std_iostream" = yes; then |
12856 |
< |
|
12857 |
< |
cat >>confdefs.h <<\_ACEOF |
10615 |
< |
#define HAVE_STD_IOSTREAM 1 |
10616 |
< |
_ACEOF |
10617 |
< |
|
10618 |
< |
fi |
10619 |
< |
if test "$ac_cv_cxx_need_use_std_iostream" = yes; then |
10620 |
< |
|
10621 |
< |
cat >>confdefs.h <<\_ACEOF |
10622 |
< |
#define __USE_STD_IOSTREAM 1 |
10623 |
< |
_ACEOF |
10624 |
< |
|
10625 |
< |
fi |
10626 |
< |
|
10627 |
< |
|
10628 |
< |
|
10629 |
< |
|
10630 |
< |
echo "$as_me:$LINENO: checking for C++ Standard Template Library in namespace std." >&5 |
10631 |
< |
echo $ECHO_N "checking for C++ Standard Template Library in namespace std.... $ECHO_C" >&6 |
10632 |
< |
if test "${ac_cv_cxx_have_std_stl+set}" = set; then |
10633 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12853 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_CGAL_main" >&5 |
12854 |
> |
$as_echo "$ac_cv_lib_CGAL_main" >&6; } |
12855 |
> |
if test $ac_cv_lib_CGAL_main = yes; then |
12856 |
> |
CGAL_LIBS="-lCGAL -lgmp -lmpfr" |
12857 |
> |
cgal_have_lib=yes |
12858 |
|
else |
12859 |
+ |
cgal_have_lib=no |
12860 |
+ |
fi |
12861 |
|
|
12862 |
< |
ac_cv_cxx_have_std_stl=no |
12863 |
< |
if test "x$ac_cv_cxx_namespaces" = xyes; then |
12864 |
< |
|
12865 |
< |
|
12866 |
< |
ac_ext=cc |
12867 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
12868 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12869 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12870 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
12871 |
< |
|
12872 |
< |
cat >conftest.$ac_ext <<_ACEOF |
12862 |
> |
LIBS="$save_LIBS" |
12863 |
> |
else |
12864 |
> |
CGAL_LIBS="-lCGAL" |
12865 |
> |
{ $as_echo "$as_me:$LINENO: checking for main in -lmpfr" >&5 |
12866 |
> |
$as_echo_n "checking for main in -lmpfr... " >&6; } |
12867 |
> |
if test "${ac_cv_lib_mpfr_main+set}" = set; then |
12868 |
> |
$as_echo_n "(cached) " >&6 |
12869 |
> |
else |
12870 |
> |
ac_check_lib_save_LIBS=$LIBS |
12871 |
> |
LIBS="-lmpfr $LIBS" |
12872 |
> |
cat >conftest.$ac_ext <<_ACEOF |
12873 |
|
/* confdefs.h. */ |
12874 |
|
_ACEOF |
12875 |
|
cat confdefs.h >>conftest.$ac_ext |
12876 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12877 |
|
/* end confdefs.h. */ |
10652 |
– |
#include <list> |
12878 |
|
|
12879 |
+ |
|
12880 |
|
#ifdef FC_DUMMY_MAIN |
12881 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12882 |
|
# ifdef __cplusplus |
12888 |
|
int |
12889 |
|
main () |
12890 |
|
{ |
12891 |
< |
std::list<int> foo;return 0; |
12891 |
> |
return main (); |
12892 |
|
; |
12893 |
|
return 0; |
12894 |
|
} |
12895 |
|
_ACEOF |
12896 |
< |
rm -f conftest.$ac_objext |
12897 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12898 |
< |
(eval $ac_compile) 2>conftest.er1 |
12896 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
12897 |
> |
if { (ac_try="$ac_link" |
12898 |
> |
case "(($ac_try" in |
12899 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12900 |
> |
*) ac_try_echo=$ac_try;; |
12901 |
> |
esac |
12902 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12903 |
> |
$as_echo "$ac_try_echo") >&5 |
12904 |
> |
(eval "$ac_link") 2>conftest.er1 |
12905 |
|
ac_status=$? |
12906 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12907 |
|
rm -f conftest.er1 |
12908 |
|
cat conftest.err >&5 |
12909 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12910 |
< |
(exit $ac_status); } && |
12911 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
12912 |
< |
|| test ! -s conftest.err' |
12913 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12914 |
< |
(eval $ac_try) 2>&5 |
12915 |
< |
ac_status=$? |
12916 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12917 |
< |
(exit $ac_status); }; } && |
10686 |
< |
{ ac_try='test -s conftest.$ac_objext' |
10687 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10688 |
< |
(eval $ac_try) 2>&5 |
10689 |
< |
ac_status=$? |
10690 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10691 |
< |
(exit $ac_status); }; }; then |
10692 |
< |
ac_cv_cxx_have_std_stl=yes |
12909 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12910 |
> |
(exit $ac_status); } && { |
12911 |
> |
test -z "$ac_c_werror_flag" || |
12912 |
> |
test ! -s conftest.err |
12913 |
> |
} && test -s conftest$ac_exeext && { |
12914 |
> |
test "$cross_compiling" = yes || |
12915 |
> |
$as_test_x conftest$ac_exeext |
12916 |
> |
}; then |
12917 |
> |
ac_cv_lib_mpfr_main=yes |
12918 |
|
else |
12919 |
< |
echo "$as_me: failed program was:" >&5 |
12919 |
> |
$as_echo "$as_me: failed program was:" >&5 |
12920 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12921 |
|
|
12922 |
+ |
ac_cv_lib_mpfr_main=no |
12923 |
|
fi |
10698 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10699 |
– |
ac_ext=cc |
10700 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
10701 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10702 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10703 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
12924 |
|
|
12925 |
< |
fi |
12926 |
< |
|
12925 |
> |
rm -rf conftest.dSYM |
12926 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12927 |
> |
conftest$ac_exeext conftest.$ac_ext |
12928 |
> |
LIBS=$ac_check_lib_save_LIBS |
12929 |
|
fi |
12930 |
< |
echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_stl" >&5 |
12931 |
< |
echo "${ECHO_T}$ac_cv_cxx_have_std_stl" >&6 |
12932 |
< |
if test "$ac_cv_cxx_have_std_stl" = yes; then |
12930 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mpfr_main" >&5 |
12931 |
> |
$as_echo "$ac_cv_lib_mpfr_main" >&6; } |
12932 |
> |
if test $ac_cv_lib_mpfr_main = yes; then |
12933 |
> |
CGAL_LIBS="$CGAL_LIBS -lmpfr" |
12934 |
> |
fi |
12935 |
|
|
12936 |
< |
cat >>confdefs.h <<\_ACEOF |
12937 |
< |
#define HAVE_STD_STL 1 |
12938 |
< |
_ACEOF |
12939 |
< |
|
10716 |
< |
fi |
10717 |
< |
|
10718 |
< |
|
10719 |
< |
|
10720 |
< |
echo "$as_me:$LINENO: checking for fstream::attach()" >&5 |
10721 |
< |
echo $ECHO_N "checking for fstream::attach()... $ECHO_C" >&6 |
10722 |
< |
if test "${ac_cv_cxx_have_fstream_attach+set}" = set; then |
10723 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12936 |
> |
{ $as_echo "$as_me:$LINENO: checking for main in -lgmp" >&5 |
12937 |
> |
$as_echo_n "checking for main in -lgmp... " >&6; } |
12938 |
> |
if test "${ac_cv_lib_gmp_main+set}" = set; then |
12939 |
> |
$as_echo_n "(cached) " >&6 |
12940 |
|
else |
12941 |
< |
|
12942 |
< |
ac_cv_cxx_have_fstream_attach=no |
12943 |
< |
|
10728 |
< |
|
10729 |
< |
ac_ext=cc |
10730 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
10731 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10732 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10733 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10734 |
< |
|
10735 |
< |
cat >conftest.$ac_ext <<_ACEOF |
12941 |
> |
ac_check_lib_save_LIBS=$LIBS |
12942 |
> |
LIBS="-lgmp $LIBS" |
12943 |
> |
cat >conftest.$ac_ext <<_ACEOF |
12944 |
|
/* confdefs.h. */ |
12945 |
|
_ACEOF |
12946 |
|
cat confdefs.h >>conftest.$ac_ext |
12947 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12948 |
|
/* end confdefs.h. */ |
12949 |
|
|
10742 |
– |
#ifdef HAVE_IOSTREAM |
10743 |
– |
#include <fstream> |
10744 |
– |
#else |
10745 |
– |
#include <fstream.h> |
10746 |
– |
#endif |
10747 |
– |
#ifdef HAVE_STD_IOSTREAM |
10748 |
– |
using namespace std; |
10749 |
– |
#endif |
12950 |
|
|
12951 |
|
#ifdef FC_DUMMY_MAIN |
12952 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12959 |
|
int |
12960 |
|
main () |
12961 |
|
{ |
12962 |
< |
int fd=0;ofstream s;s.attach(fd); |
12962 |
> |
return main (); |
12963 |
|
; |
12964 |
|
return 0; |
12965 |
|
} |
12966 |
|
_ACEOF |
12967 |
< |
rm -f conftest.$ac_objext |
12968 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12969 |
< |
(eval $ac_compile) 2>conftest.er1 |
12967 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
12968 |
> |
if { (ac_try="$ac_link" |
12969 |
> |
case "(($ac_try" in |
12970 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12971 |
> |
*) ac_try_echo=$ac_try;; |
12972 |
> |
esac |
12973 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12974 |
> |
$as_echo "$ac_try_echo") >&5 |
12975 |
> |
(eval "$ac_link") 2>conftest.er1 |
12976 |
|
ac_status=$? |
12977 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12978 |
|
rm -f conftest.er1 |
12979 |
|
cat conftest.err >&5 |
12980 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12981 |
< |
(exit $ac_status); } && |
12982 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
12983 |
< |
|| test ! -s conftest.err' |
12984 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12985 |
< |
(eval $ac_try) 2>&5 |
12986 |
< |
ac_status=$? |
12987 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12988 |
< |
(exit $ac_status); }; } && |
10783 |
< |
{ ac_try='test -s conftest.$ac_objext' |
10784 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10785 |
< |
(eval $ac_try) 2>&5 |
10786 |
< |
ac_status=$? |
10787 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10788 |
< |
(exit $ac_status); }; }; then |
10789 |
< |
ac_cv_cxx_have_fstream_attach=yes |
12980 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12981 |
> |
(exit $ac_status); } && { |
12982 |
> |
test -z "$ac_c_werror_flag" || |
12983 |
> |
test ! -s conftest.err |
12984 |
> |
} && test -s conftest$ac_exeext && { |
12985 |
> |
test "$cross_compiling" = yes || |
12986 |
> |
$as_test_x conftest$ac_exeext |
12987 |
> |
}; then |
12988 |
> |
ac_cv_lib_gmp_main=yes |
12989 |
|
else |
12990 |
< |
echo "$as_me: failed program was:" >&5 |
12990 |
> |
$as_echo "$as_me: failed program was:" >&5 |
12991 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12992 |
|
|
12993 |
+ |
ac_cv_lib_gmp_main=no |
12994 |
|
fi |
10795 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10796 |
– |
ac_ext=cc |
10797 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
10798 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10799 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10800 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
12995 |
|
|
12996 |
< |
|
12996 |
> |
rm -rf conftest.dSYM |
12997 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12998 |
> |
conftest$ac_exeext conftest.$ac_ext |
12999 |
> |
LIBS=$ac_check_lib_save_LIBS |
13000 |
|
fi |
13001 |
< |
echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fstream_attach" >&5 |
13002 |
< |
echo "${ECHO_T}$ac_cv_cxx_have_fstream_attach" >&6 |
13003 |
< |
if test "$ac_cv_cxx_have_fstream_attach" = yes; then |
13004 |
< |
|
13005 |
< |
cat >>confdefs.h <<\_ACEOF |
10809 |
< |
#define HAVE_FSTREAM_ATTACH 1 |
10810 |
< |
_ACEOF |
10811 |
< |
|
10812 |
< |
fi |
10813 |
< |
|
10814 |
< |
|
10815 |
< |
|
10816 |
< |
echo "$as_me:$LINENO: checking for fstream::open()" >&5 |
10817 |
< |
echo $ECHO_N "checking for fstream::open()... $ECHO_C" >&6 |
10818 |
< |
if test "${ac_cv_cxx_have_fstream_open+set}" = set; then |
10819 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10820 |
< |
else |
13001 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5 |
13002 |
> |
$as_echo "$ac_cv_lib_gmp_main" >&6; } |
13003 |
> |
if test $ac_cv_lib_gmp_main = yes; then |
13004 |
> |
CGAL_LIBS="$CGAL_LIBS -lgmp" |
13005 |
> |
fi |
13006 |
|
|
13007 |
< |
ac_cv_cxx_have_fstream_open=no |
13008 |
< |
ac_cv_cxx_fstream_open_prot=no |
13009 |
< |
|
13010 |
< |
|
13011 |
< |
ac_ext=cc |
13012 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
13013 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13014 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10830 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10831 |
< |
|
10832 |
< |
# Try with 2 parameters |
10833 |
< |
cat >conftest.$ac_ext <<_ACEOF |
13007 |
> |
{ $as_echo "$as_me:$LINENO: checking for main in -lgmpxx" >&5 |
13008 |
> |
$as_echo_n "checking for main in -lgmpxx... " >&6; } |
13009 |
> |
if test "${ac_cv_lib_gmpxx_main+set}" = set; then |
13010 |
> |
$as_echo_n "(cached) " >&6 |
13011 |
> |
else |
13012 |
> |
ac_check_lib_save_LIBS=$LIBS |
13013 |
> |
LIBS="-lgmpxx $LIBS" |
13014 |
> |
cat >conftest.$ac_ext <<_ACEOF |
13015 |
|
/* confdefs.h. */ |
13016 |
|
_ACEOF |
13017 |
|
cat confdefs.h >>conftest.$ac_ext |
13018 |
|
cat >>conftest.$ac_ext <<_ACEOF |
13019 |
|
/* end confdefs.h. */ |
13020 |
|
|
10840 |
– |
#ifdef HAVE_IOSTREAM |
10841 |
– |
#include <fstream> |
10842 |
– |
#else |
10843 |
– |
#include <fstream.h> |
10844 |
– |
#endif |
10845 |
– |
#ifdef HAVE_STD_IOSTREAM |
10846 |
– |
using namespace std; |
10847 |
– |
#endif |
13021 |
|
|
13022 |
|
#ifdef FC_DUMMY_MAIN |
13023 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
13030 |
|
int |
13031 |
|
main () |
13032 |
|
{ |
13033 |
< |
ofstream s;s.open("conftest.txt",ios::out|ios::trunc); |
13033 |
> |
return main (); |
13034 |
|
; |
13035 |
|
return 0; |
13036 |
|
} |
13037 |
|
_ACEOF |
13038 |
< |
rm -f conftest.$ac_objext |
13039 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
13040 |
< |
(eval $ac_compile) 2>conftest.er1 |
13038 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
13039 |
> |
if { (ac_try="$ac_link" |
13040 |
> |
case "(($ac_try" in |
13041 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
13042 |
> |
*) ac_try_echo=$ac_try;; |
13043 |
> |
esac |
13044 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13045 |
> |
$as_echo "$ac_try_echo") >&5 |
13046 |
> |
(eval "$ac_link") 2>conftest.er1 |
13047 |
|
ac_status=$? |
13048 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
13049 |
|
rm -f conftest.er1 |
13050 |
|
cat conftest.err >&5 |
13051 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13052 |
< |
(exit $ac_status); } && |
13053 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
13054 |
< |
|| test ! -s conftest.err' |
13055 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13056 |
< |
(eval $ac_try) 2>&5 |
13057 |
< |
ac_status=$? |
13058 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13059 |
< |
(exit $ac_status); }; } && |
10881 |
< |
{ ac_try='test -s conftest.$ac_objext' |
10882 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10883 |
< |
(eval $ac_try) 2>&5 |
10884 |
< |
ac_status=$? |
10885 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10886 |
< |
(exit $ac_status); }; }; then |
10887 |
< |
ac_cv_cxx_have_fstream_open=yes |
13051 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13052 |
> |
(exit $ac_status); } && { |
13053 |
> |
test -z "$ac_c_werror_flag" || |
13054 |
> |
test ! -s conftest.err |
13055 |
> |
} && test -s conftest$ac_exeext && { |
13056 |
> |
test "$cross_compiling" = yes || |
13057 |
> |
$as_test_x conftest$ac_exeext |
13058 |
> |
}; then |
13059 |
> |
ac_cv_lib_gmpxx_main=yes |
13060 |
|
else |
13061 |
< |
echo "$as_me: failed program was:" >&5 |
13061 |
> |
$as_echo "$as_me: failed program was:" >&5 |
13062 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
13063 |
|
|
13064 |
+ |
ac_cv_lib_gmpxx_main=no |
13065 |
|
fi |
13066 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13067 |
< |
# Try with mode parameter |
13068 |
< |
cat >conftest.$ac_ext <<_ACEOF |
13066 |
> |
|
13067 |
> |
rm -rf conftest.dSYM |
13068 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
13069 |
> |
conftest$ac_exeext conftest.$ac_ext |
13070 |
> |
LIBS=$ac_check_lib_save_LIBS |
13071 |
> |
fi |
13072 |
> |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gmpxx_main" >&5 |
13073 |
> |
$as_echo "$ac_cv_lib_gmpxx_main" >&6; } |
13074 |
> |
if test $ac_cv_lib_gmpxx_main = yes; then |
13075 |
> |
CGAL_LIBS="$CGAL_LIBS -lgmpxx" |
13076 |
> |
fi |
13077 |
> |
|
13078 |
> |
fi |
13079 |
> |
|
13080 |
> |
if test "$cgal_have_lib" == yes; then |
13081 |
> |
acx_cgal_found=yes |
13082 |
> |
fi |
13083 |
> |
fi |
13084 |
> |
if test "$acx_cgal_found" == yes; then |
13085 |
> |
{ $as_echo "$as_me:$LINENO: checking for main in -lCore" >&5 |
13086 |
> |
$as_echo_n "checking for main in -lCore... " >&6; } |
13087 |
> |
if test "${ac_cv_lib_Core_main+set}" = set; then |
13088 |
> |
$as_echo_n "(cached) " >&6 |
13089 |
> |
else |
13090 |
> |
ac_check_lib_save_LIBS=$LIBS |
13091 |
> |
LIBS="-lCore $LIBS" |
13092 |
> |
cat >conftest.$ac_ext <<_ACEOF |
13093 |
|
/* confdefs.h. */ |
13094 |
|
_ACEOF |
13095 |
|
cat confdefs.h >>conftest.$ac_ext |
13096 |
|
cat >>conftest.$ac_ext <<_ACEOF |
13097 |
|
/* end confdefs.h. */ |
13098 |
|
|
10902 |
– |
#ifdef HAVE_IOSTREAM |
10903 |
– |
#include <fstream> |
10904 |
– |
#else |
10905 |
– |
#include <fstream.h> |
10906 |
– |
#endif |
10907 |
– |
#ifdef HAVE_STD_IOSTREAM |
10908 |
– |
using namespace std; |
10909 |
– |
#endif |
13099 |
|
|
13100 |
|
#ifdef FC_DUMMY_MAIN |
13101 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
13108 |
|
int |
13109 |
|
main () |
13110 |
|
{ |
13111 |
< |
ofstream s;s.open("conftest.txt",ios::out|ios::trunc,0666); |
13111 |
> |
return main (); |
13112 |
|
; |
13113 |
|
return 0; |
13114 |
|
} |
13115 |
|
_ACEOF |
13116 |
< |
rm -f conftest.$ac_objext |
13117 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
13118 |
< |
(eval $ac_compile) 2>conftest.er1 |
13116 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
13117 |
> |
if { (ac_try="$ac_link" |
13118 |
> |
case "(($ac_try" in |
13119 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
13120 |
> |
*) ac_try_echo=$ac_try;; |
13121 |
> |
esac |
13122 |
> |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13123 |
> |
$as_echo "$ac_try_echo") >&5 |
13124 |
> |
(eval "$ac_link") 2>conftest.er1 |
13125 |
|
ac_status=$? |
13126 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
13127 |
|
rm -f conftest.er1 |
13128 |
|
cat conftest.err >&5 |
13129 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13130 |
< |
(exit $ac_status); } && |
13131 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
13132 |
< |
|| test ! -s conftest.err' |
13133 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13134 |
< |
(eval $ac_try) 2>&5 |
13135 |
< |
ac_status=$? |
13136 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13137 |
< |
(exit $ac_status); }; } && |
10943 |
< |
{ ac_try='test -s conftest.$ac_objext' |
10944 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10945 |
< |
(eval $ac_try) 2>&5 |
10946 |
< |
ac_status=$? |
10947 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10948 |
< |
(exit $ac_status); }; }; then |
10949 |
< |
ac_cv_cxx_fstream_open_prot=yes |
13129 |
> |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13130 |
> |
(exit $ac_status); } && { |
13131 |
> |
test -z "$ac_c_werror_flag" || |
13132 |
> |
test ! -s conftest.err |
13133 |
> |
} && test -s conftest$ac_exeext && { |
13134 |
> |
test "$cross_compiling" = yes || |
13135 |
> |
$as_test_x conftest$ac_exeext |
13136 |
> |
}; then |
13137 |
> |
ac_cv_lib_Core_main=yes |
13138 |
|
else |
13139 |
< |
echo "$as_me: failed program was:" >&5 |
13139 |
> |
$as_echo "$as_me: failed program was:" >&5 |
13140 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
13141 |
|
|
13142 |
+ |
ac_cv_lib_Core_main=no |
13143 |
|
fi |
10955 |
– |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10956 |
– |
ac_ext=cc |
10957 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
10958 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10959 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10960 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
13144 |
|
|
13145 |
+ |
rm -rf conftest.dSYM |
13146 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
13147 |
+ |
conftest$ac_exeext conftest.$ac_ext |
13148 |
+ |
LIBS=$ac_check_lib_save_LIBS |
13149 |
+ |
fi |
13150 |
+ |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Core_main" >&5 |
13151 |
+ |
$as_echo "$ac_cv_lib_Core_main" >&6; } |
13152 |
+ |
if test $ac_cv_lib_Core_main = yes; then |
13153 |
+ |
CGAL_LIBS="$CGAL_LIBS -lCore" |
13154 |
+ |
fi |
13155 |
|
|
13156 |
+ |
fi |
13157 |
|
fi |
10964 |
– |
echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fstream_open" >&5 |
10965 |
– |
echo "${ECHO_T}$ac_cv_cxx_have_fstream_open" >&6 |
10966 |
– |
if test "$ac_cv_cxx_have_fstream_open" = yes; then |
13158 |
|
|
10968 |
– |
cat >>confdefs.h <<\_ACEOF |
10969 |
– |
#define HAVE_FSTREAM_OPEN 1 |
10970 |
– |
_ACEOF |
13159 |
|
|
10972 |
– |
fi |
10973 |
– |
if test "$ac_cv_cxx_fstream_open_prot" = yes; then |
13160 |
|
|
13161 |
< |
cat >>confdefs.h <<\_ACEOF |
13162 |
< |
#define FSTREAM_OPEN_PROT 1 |
10977 |
< |
_ACEOF |
13161 |
> |
{ $as_echo "$as_me:$LINENO: checking CGAL" >&5 |
13162 |
> |
$as_echo_n "checking CGAL... " >&6; } |
13163 |
|
|
10979 |
– |
fi |
13164 |
|
|
13165 |
|
|
13166 |
|
|
13167 |
|
|
13168 |
+ |
if test "$acx_cgal_found" == yes; then |
13169 |
+ |
{ $as_echo "$as_me:$LINENO: result: yes" >&5 |
13170 |
+ |
$as_echo "yes" >&6; } |
13171 |
|
|
10985 |
– |
|
10986 |
– |
|
10987 |
– |
for ac_header in ctype.h iostream fstream sstream strstream |
10988 |
– |
do |
10989 |
– |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10990 |
– |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10991 |
– |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10992 |
– |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10993 |
– |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10994 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10995 |
– |
fi |
10996 |
– |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10997 |
– |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
13172 |
|
else |
13173 |
< |
# Is the header compilable? |
13174 |
< |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11001 |
< |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
11002 |
< |
cat >conftest.$ac_ext <<_ACEOF |
11003 |
< |
/* confdefs.h. */ |
11004 |
< |
_ACEOF |
11005 |
< |
cat confdefs.h >>conftest.$ac_ext |
11006 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
11007 |
< |
/* end confdefs.h. */ |
11008 |
< |
$ac_includes_default |
11009 |
< |
#include <$ac_header> |
11010 |
< |
_ACEOF |
11011 |
< |
rm -f conftest.$ac_objext |
11012 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11013 |
< |
(eval $ac_compile) 2>conftest.er1 |
11014 |
< |
ac_status=$? |
11015 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
11016 |
< |
rm -f conftest.er1 |
11017 |
< |
cat conftest.err >&5 |
11018 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11019 |
< |
(exit $ac_status); } && |
11020 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
11021 |
< |
|| test ! -s conftest.err' |
11022 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11023 |
< |
(eval $ac_try) 2>&5 |
11024 |
< |
ac_status=$? |
11025 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11026 |
< |
(exit $ac_status); }; } && |
11027 |
< |
{ ac_try='test -s conftest.$ac_objext' |
11028 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11029 |
< |
(eval $ac_try) 2>&5 |
11030 |
< |
ac_status=$? |
11031 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11032 |
< |
(exit $ac_status); }; }; then |
11033 |
< |
ac_header_compiler=yes |
11034 |
< |
else |
11035 |
< |
echo "$as_me: failed program was:" >&5 |
11036 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
11037 |
< |
|
11038 |
< |
ac_header_compiler=no |
11039 |
< |
fi |
11040 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11041 |
< |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11042 |
< |
echo "${ECHO_T}$ac_header_compiler" >&6 |
11043 |
< |
|
11044 |
< |
# Is the header present? |
11045 |
< |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11046 |
< |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
11047 |
< |
cat >conftest.$ac_ext <<_ACEOF |
11048 |
< |
/* confdefs.h. */ |
11049 |
< |
_ACEOF |
11050 |
< |
cat confdefs.h >>conftest.$ac_ext |
11051 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
11052 |
< |
/* end confdefs.h. */ |
11053 |
< |
#include <$ac_header> |
11054 |
< |
_ACEOF |
11055 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
11056 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11057 |
< |
ac_status=$? |
11058 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
11059 |
< |
rm -f conftest.er1 |
11060 |
< |
cat conftest.err >&5 |
11061 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11062 |
< |
(exit $ac_status); } >/dev/null; then |
11063 |
< |
if test -s conftest.err; then |
11064 |
< |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
11065 |
< |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
11066 |
< |
else |
11067 |
< |
ac_cpp_err= |
11068 |
< |
fi |
11069 |
< |
else |
11070 |
< |
ac_cpp_err=yes |
11071 |
< |
fi |
11072 |
< |
if test -z "$ac_cpp_err"; then |
11073 |
< |
ac_header_preproc=yes |
11074 |
< |
else |
11075 |
< |
echo "$as_me: failed program was:" >&5 |
11076 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
13173 |
> |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
13174 |
> |
$as_echo "no" >&6; } |
13175 |
|
|
11078 |
– |
ac_header_preproc=no |
13176 |
|
fi |
13177 |
< |
rm -f conftest.err conftest.$ac_ext |
13178 |
< |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13179 |
< |
echo "${ECHO_T}$ac_header_preproc" >&6 |
13177 |
> |
USE_CGAL=no |
13178 |
> |
if test "$acx_cgal_found" == yes; then |
13179 |
> |
USE_CGAL=yes |
13180 |
|
|
13181 |
< |
# So? What about this header? |
13182 |
< |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
11086 |
< |
yes:no: ) |
11087 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11088 |
< |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
11089 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11090 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
11091 |
< |
ac_header_preproc=yes |
11092 |
< |
;; |
11093 |
< |
no:yes:* ) |
11094 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11095 |
< |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
11096 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11097 |
< |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
11098 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
11099 |
< |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
11100 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
11101 |
< |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
11102 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11103 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
11104 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11105 |
< |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
11106 |
< |
( |
11107 |
< |
cat <<\_ASBOX |
11108 |
< |
## ------------------------------ ## |
11109 |
< |
## Report this to gezelter@nd.edu ## |
11110 |
< |
## ------------------------------ ## |
11111 |
< |
_ASBOX |
11112 |
< |
) | |
11113 |
< |
sed "s/^/$as_me: WARNING: /" >&2 |
11114 |
< |
;; |
11115 |
< |
esac |
11116 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11117 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11118 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11119 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11120 |
< |
else |
11121 |
< |
eval "$as_ac_Header=\$ac_header_preproc" |
11122 |
< |
fi |
11123 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11124 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11125 |
< |
|
11126 |
< |
fi |
11127 |
< |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11128 |
< |
cat >>confdefs.h <<_ACEOF |
11129 |
< |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
13181 |
> |
cat >>confdefs.h <<\_ACEOF |
13182 |
> |
#define HAVE_CGAL 1 |
13183 |
|
_ACEOF |
13184 |
|
|
11132 |
– |
fi |
13185 |
|
|
11134 |
– |
done |
13186 |
|
|
11136 |
– |
# AC_CPP_FUNC |
11137 |
– |
# ------------------ # |
11138 |
– |
# Checks to see if ANSI C99 CPP variable __func__ works. |
11139 |
– |
# If not, perhaps __FUNCTION__ works instead. |
11140 |
– |
# If not, we'll just define __func__ to "". |
11141 |
– |
# AC_CPP_FUNC |
13187 |
|
|
13188 |
|
|
13189 |
< |
echo "$as_me:$LINENO: checking for an ANSI C99-conforming __func__" >&5 |
11145 |
< |
echo $ECHO_N "checking for an ANSI C99-conforming __func__... $ECHO_C" >&6 |
11146 |
< |
if test "${ac_cv_cpp_func+set}" = set; then |
11147 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11148 |
< |
else |
11149 |
< |
cat >conftest.$ac_ext <<_ACEOF |
11150 |
< |
/* confdefs.h. */ |
11151 |
< |
_ACEOF |
11152 |
< |
cat confdefs.h >>conftest.$ac_ext |
11153 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
11154 |
< |
/* end confdefs.h. */ |
13189 |
> |
fi |
13190 |
|
|
11156 |
– |
#ifdef FC_DUMMY_MAIN |
11157 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11158 |
– |
# ifdef __cplusplus |
11159 |
– |
extern "C" |
11160 |
– |
# endif |
11161 |
– |
int FC_DUMMY_MAIN() { return 1; } |
11162 |
– |
#endif |
11163 |
– |
#endif |
11164 |
– |
int |
11165 |
– |
main () |
11166 |
– |
{ |
11167 |
– |
const char *foo = __func__; |
11168 |
– |
; |
11169 |
– |
return 0; |
11170 |
– |
} |
11171 |
– |
_ACEOF |
11172 |
– |
rm -f conftest.$ac_objext |
11173 |
– |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11174 |
– |
(eval $ac_compile) 2>conftest.er1 |
11175 |
– |
ac_status=$? |
11176 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
11177 |
– |
rm -f conftest.er1 |
11178 |
– |
cat conftest.err >&5 |
11179 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11180 |
– |
(exit $ac_status); } && |
11181 |
– |
{ ac_try='test -z "$ac_cxx_werror_flag" |
11182 |
– |
|| test ! -s conftest.err' |
11183 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11184 |
– |
(eval $ac_try) 2>&5 |
11185 |
– |
ac_status=$? |
11186 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11187 |
– |
(exit $ac_status); }; } && |
11188 |
– |
{ ac_try='test -s conftest.$ac_objext' |
11189 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11190 |
– |
(eval $ac_try) 2>&5 |
11191 |
– |
ac_status=$? |
11192 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11193 |
– |
(exit $ac_status); }; }; then |
11194 |
– |
ac_cv_cpp_func=yes |
11195 |
– |
else |
11196 |
– |
echo "$as_me: failed program was:" >&5 |
11197 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
13191 |
|
|
11199 |
– |
cat >conftest.$ac_ext <<_ACEOF |
11200 |
– |
/* confdefs.h. */ |
11201 |
– |
_ACEOF |
11202 |
– |
cat confdefs.h >>conftest.$ac_ext |
11203 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
11204 |
– |
/* end confdefs.h. */ |
13192 |
|
|
11206 |
– |
#ifdef FC_DUMMY_MAIN |
11207 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11208 |
– |
# ifdef __cplusplus |
11209 |
– |
extern "C" |
11210 |
– |
# endif |
11211 |
– |
int FC_DUMMY_MAIN() { return 1; } |
11212 |
– |
#endif |
11213 |
– |
#endif |
11214 |
– |
int |
11215 |
– |
main () |
11216 |
– |
{ |
11217 |
– |
const char *foo = __FUNCTION__; |
11218 |
– |
; |
11219 |
– |
return 0; |
11220 |
– |
} |
11221 |
– |
_ACEOF |
11222 |
– |
rm -f conftest.$ac_objext |
11223 |
– |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11224 |
– |
(eval $ac_compile) 2>conftest.er1 |
11225 |
– |
ac_status=$? |
11226 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
11227 |
– |
rm -f conftest.er1 |
11228 |
– |
cat conftest.err >&5 |
11229 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11230 |
– |
(exit $ac_status); } && |
11231 |
– |
{ ac_try='test -z "$ac_cxx_werror_flag" |
11232 |
– |
|| test ! -s conftest.err' |
11233 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11234 |
– |
(eval $ac_try) 2>&5 |
11235 |
– |
ac_status=$? |
11236 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11237 |
– |
(exit $ac_status); }; } && |
11238 |
– |
{ ac_try='test -s conftest.$ac_objext' |
11239 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11240 |
– |
(eval $ac_try) 2>&5 |
11241 |
– |
ac_status=$? |
11242 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11243 |
– |
(exit $ac_status); }; }; then |
11244 |
– |
ac_cv_cpp_func=__FUNCTION__ |
11245 |
– |
else |
11246 |
– |
echo "$as_me: failed program was:" >&5 |
11247 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
13193 |
|
|
13194 |
< |
ac_cv_cpp_func=no |
13194 |
> |
# Check whether --enable-doxygen was given. |
13195 |
> |
if test "${enable_doxygen+set}" = set; then |
13196 |
> |
enableval=$enable_doxygen; |
13197 |
|
fi |
13198 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13198 |
> |
|
13199 |
> |
# Check whether --enable-dot was given. |
13200 |
> |
if test "${enable_dot+set}" = set; then |
13201 |
> |
enableval=$enable_dot; |
13202 |
|
fi |
13203 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13203 |
> |
|
13204 |
> |
# Check whether --enable-html-docs was given. |
13205 |
> |
if test "${enable_html_docs+set}" = set; then |
13206 |
> |
enableval=$enable_html_docs; |
13207 |
> |
else |
13208 |
> |
enable_html_docs=yes |
13209 |
|
fi |
11255 |
– |
echo "$as_me:$LINENO: result: $ac_cv_cpp_func" >&5 |
11256 |
– |
echo "${ECHO_T}$ac_cv_cpp_func" >&6 |
11257 |
– |
if test $ac_cv_cpp_func = __FUNCTION__; then |
13210 |
|
|
13211 |
< |
cat >>confdefs.h <<\_ACEOF |
13212 |
< |
#define __func__ __FUNCTION__ |
13213 |
< |
_ACEOF |
13214 |
< |
|
13215 |
< |
elif test $ac_cv_cpp_func = no; then |
11264 |
< |
|
11265 |
< |
cat >>confdefs.h <<\_ACEOF |
11266 |
< |
#define __func__ "" |
11267 |
< |
_ACEOF |
11268 |
< |
|
13211 |
> |
# Check whether --enable-latex-docs was given. |
13212 |
> |
if test "${enable_latex_docs+set}" = set; then |
13213 |
> |
enableval=$enable_latex_docs; |
13214 |
> |
else |
13215 |
> |
enable_latex_docs=no |
13216 |
|
fi |
13217 |
|
|
13218 |
< |
|
13219 |
< |
|
13220 |
< |
|
13221 |
< |
|
13222 |
< |
case $debug in |
13223 |
< |
1) |
13224 |
< |
;; |
13218 |
> |
if test "x$enable_doxygen" = xno; then |
13219 |
> |
enable_doc=no |
13220 |
> |
else |
13221 |
> |
# Extract the first word of "doxygen", so it can be a program name with args. |
13222 |
> |
set dummy doxygen; ac_word=$2 |
13223 |
> |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13224 |
> |
$as_echo_n "checking for $ac_word... " >&6; } |
13225 |
> |
if test "${ac_cv_path_DOXYGEN+set}" = set; then |
13226 |
> |
$as_echo_n "(cached) " >&6 |
13227 |
> |
else |
13228 |
> |
case $DOXYGEN in |
13229 |
> |
[\\/]* | ?:[\\/]*) |
13230 |
> |
ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
13231 |
> |
;; |
13232 |
|
*) |
13233 |
+ |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13234 |
+ |
for as_dir in $PATH |
13235 |
+ |
do |
13236 |
+ |
IFS=$as_save_IFS |
13237 |
+ |
test -z "$as_dir" && as_dir=. |
13238 |
+ |
for ac_exec_ext in '' $ac_executable_extensions; do |
13239 |
+ |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
13240 |
+ |
ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
13241 |
+ |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13242 |
+ |
break 2 |
13243 |
+ |
fi |
13244 |
+ |
done |
13245 |
+ |
done |
13246 |
+ |
IFS=$as_save_IFS |
13247 |
|
|
13248 |
+ |
;; |
13249 |
+ |
esac |
13250 |
+ |
fi |
13251 |
+ |
DOXYGEN=$ac_cv_path_DOXYGEN |
13252 |
+ |
if test -n "$DOXYGEN"; then |
13253 |
+ |
{ $as_echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
13254 |
+ |
$as_echo "$DOXYGEN" >&6; } |
13255 |
+ |
else |
13256 |
+ |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
13257 |
+ |
$as_echo "no" >&6; } |
13258 |
+ |
fi |
13259 |
|
|
13260 |
|
|
13261 |
+ |
if test "x$DOXYGEN" = x; then |
13262 |
+ |
if test "x$enable_doxygen" = xyes; then |
13263 |
+ |
{ { $as_echo "$as_me:$LINENO: error: could not find doxygen" >&5 |
13264 |
+ |
$as_echo "$as_me: error: could not find doxygen" >&2;} |
13265 |
+ |
{ (exit 1); exit 1; }; } |
13266 |
+ |
fi |
13267 |
+ |
enable_doc=no |
13268 |
+ |
else |
13269 |
+ |
enable_doc=yes |
13270 |
+ |
# Extract the first word of "dot", so it can be a program name with args. |
13271 |
+ |
set dummy dot; ac_word=$2 |
13272 |
+ |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13273 |
+ |
$as_echo_n "checking for $ac_word... " >&6; } |
13274 |
+ |
if test "${ac_cv_path_DOT+set}" = set; then |
13275 |
+ |
$as_echo_n "(cached) " >&6 |
13276 |
+ |
else |
13277 |
+ |
case $DOT in |
13278 |
+ |
[\\/]* | ?:[\\/]*) |
13279 |
+ |
ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
13280 |
+ |
;; |
13281 |
+ |
*) |
13282 |
+ |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13283 |
+ |
for as_dir in $PATH |
13284 |
+ |
do |
13285 |
+ |
IFS=$as_save_IFS |
13286 |
+ |
test -z "$as_dir" && as_dir=. |
13287 |
+ |
for ac_exec_ext in '' $ac_executable_extensions; do |
13288 |
+ |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
13289 |
+ |
ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
13290 |
+ |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13291 |
+ |
break 2 |
13292 |
+ |
fi |
13293 |
+ |
done |
13294 |
+ |
done |
13295 |
+ |
IFS=$as_save_IFS |
13296 |
|
|
13297 |
< |
# Try to determine "good" native compiler flags if none specified on command |
13298 |
< |
# line |
13297 |
> |
;; |
13298 |
> |
esac |
13299 |
> |
fi |
13300 |
> |
DOT=$ac_cv_path_DOT |
13301 |
> |
if test -n "$DOT"; then |
13302 |
> |
{ $as_echo "$as_me:$LINENO: result: $DOT" >&5 |
13303 |
> |
$as_echo "$DOT" >&6; } |
13304 |
> |
else |
13305 |
> |
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
13306 |
> |
$as_echo "no" >&6; } |
13307 |
> |
fi |
13308 |
|
|
11286 |
– |
if test "$ac_test_FCFLAGS" != "set"; then |
11287 |
– |
FCFLAGS="" |
11288 |
– |
case "${host_cpu}-${host_os}" in |
13309 |
|
|
13310 |
< |
*linux*) if test "$FC" = ifc -o "$FC" = ifort; then |
13311 |
< |
FCFLAGS="-O" |
11292 |
< |
fi;; |
11293 |
< |
rs6000*-aix*) if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then |
11294 |
< |
FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" |
11295 |
< |
fi;; |
11296 |
< |
powerpc*-aix*) |
11297 |
< |
if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then |
11298 |
< |
FCFLAGS="-O3 -qarch=ppc -qansialias -w" |
11299 |
< |
echo "*******************************************************" |
11300 |
< |
echo "* You have AIX on an unknown powerpc system. It is *" |
11301 |
< |
echo "* recommended that you use *" |
11302 |
< |
echo "* *" |
11303 |
< |
echo "* FCFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
11304 |
< |
echo "* ^^^ *" |
11305 |
< |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
11306 |
< |
echo "* PowerPC CPU you have. For more info, man xlf. *" |
11307 |
< |
echo "*******************************************************" |
11308 |
< |
fi;; |
11309 |
< |
*darwin*) |
11310 |
< |
if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then |
11311 |
< |
FCFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto" |
11312 |
< |
fi;; |
11313 |
< |
esac |
13310 |
> |
fi |
13311 |
> |
fi |
13312 |
|
|
13313 |
< |
if test -n "$CPU_FLAGS"; then |
13314 |
< |
FCFLAGS="$FCFLAGS $CPU_FLAGS" |
13315 |
< |
fi |
13313 |
> |
if test "x$enable_doc" = xyes; then |
13314 |
> |
DOC=1 |
13315 |
> |
else |
13316 |
> |
DOC=0 |
13317 |
> |
fi |
13318 |
|
|
11319 |
– |
if test -z "$FCFLAGS"; then |
11320 |
– |
echo "" |
11321 |
– |
echo "*********************************************************" |
11322 |
– |
echo "* WARNING: Don't know the best FCFLAGS for this system *" |
11323 |
– |
echo "* Use make FCFLAGS=..., or edit the top level Makefile *" |
11324 |
– |
echo "* (otherwise, a default of FCFLAGS=-O3 will be used) *" |
11325 |
– |
echo "*********************************************************" |
11326 |
– |
echo "" |
11327 |
– |
FCFLAGS="-O3" |
11328 |
– |
fi |
13319 |
|
|
13320 |
< |
|
13321 |
< |
echo "$as_me:$LINENO: checking whether ${FC} accepts ${FCFLAGS}" >&5 |
13322 |
< |
echo $ECHO_N "checking whether ${FC} accepts ${FCFLAGS}... $ECHO_C" >&6 |
13323 |
< |
if test "${ac_guessed_f90flags+set}" = set; then |
13324 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13320 |
> |
if test x$DOT = x; then |
13321 |
> |
if test "x$enable_dot" = xyes; then |
13322 |
> |
{ { $as_echo "$as_me:$LINENO: error: could not find dot" >&5 |
13323 |
> |
$as_echo "$as_me: error: could not find dot" >&2;} |
13324 |
> |
{ (exit 1); exit 1; }; } |
13325 |
> |
fi |
13326 |
> |
enable_dot=no |
13327 |
|
else |
13328 |
+ |
enable_dot=yes |
13329 |
+ |
fi |
13330 |
|
|
13331 |
|
|
13332 |
|
|
11339 |
– |
ac_ext=${FC_SRCEXT-f} |
11340 |
– |
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' |
11341 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' |
11342 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
13333 |
|
|
11344 |
– |
echo 'program main' > conftest.$ac_ext |
11345 |
– |
echo 'end program main' >> conftest.$ac_ext |
11346 |
– |
ac_compile='${FC} -c ${FCFLAGS} $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext 1>&5' |
11347 |
– |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11348 |
– |
(eval $ac_compile) 2>&5 |
11349 |
– |
ac_status=$? |
11350 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11351 |
– |
(exit $ac_status); }; then |
11352 |
– |
ac_guessed_f90flags=yes |
11353 |
– |
else |
11354 |
– |
ac_guessed_f90flags=no |
11355 |
– |
fi |
11356 |
– |
rm -f conftest* |
11357 |
– |
ac_ext=cc |
11358 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
11359 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11360 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11361 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
13334 |
|
|
13335 |
|
|
11364 |
– |
fi |
11365 |
– |
echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5 |
11366 |
– |
echo "${ECHO_T}$ac_guessed_f90flags" >&6 |
11367 |
– |
if test "$ac_guessed_f90flags" = yes; then |
11368 |
– |
: |
13336 |
|
|
11370 |
– |
else |
11371 |
– |
: |
13337 |
|
|
11373 |
– |
echo "" |
11374 |
– |
echo "**********************************************************" |
11375 |
– |
echo "* WARNING: The guessed FCFLAGS don't seem to work with *" |
11376 |
– |
echo "* your compiler. *" |
11377 |
– |
echo "* Use make FCFLAGS=..., or edit the top level Makefile *" |
11378 |
– |
echo "*********************************************************" |
11379 |
– |
echo "" |
11380 |
– |
FCFLAGS="" |
13338 |
|
|
11382 |
– |
fi |
13339 |
|
|
13340 |
|
|
13341 |
+ |
|
13342 |
+ |
|
13343 |
+ |
|
13344 |
+ |
|
13345 |
+ |
|
13346 |
+ |
|
13347 |
+ |
|
13348 |
+ |
|
13349 |
+ |
ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/math/Makefile src/integrators/Makefile src/applications/atom2md/Makefile scripts/filepp" |
13350 |
+ |
|
13351 |
+ |
|
13352 |
+ |
cat >confcache <<\_ACEOF |
13353 |
+ |
# This file is a shell script that caches the results of configure |
13354 |
+ |
# tests run on this system so they can be shared between configure |
13355 |
+ |
# scripts and configure runs, see configure's option --config-cache. |
13356 |
+ |
# It is not useful on other systems. If it contains results you don't |
13357 |
+ |
# want to keep, you may remove or edit it. |
13358 |
+ |
# |
13359 |
+ |
# config.status only pays attention to the cache file if you give it |
13360 |
+ |
# the --recheck option to rerun configure. |
13361 |
+ |
# |
13362 |
+ |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
13363 |
+ |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
13364 |
+ |
# following values. |
13365 |
+ |
|
13366 |
+ |
_ACEOF |
13367 |
+ |
|
13368 |
+ |
# The following way of writing the cache mishandles newlines in values, |
13369 |
+ |
# but we know of no workaround that is simple, portable, and efficient. |
13370 |
+ |
# So, we kill variables containing newlines. |
13371 |
+ |
# Ultrix sh set writes to stderr and can't be redirected directly, |
13372 |
+ |
# and sets the high bit in the cache file unless we assign to the vars. |
13373 |
+ |
( |
13374 |
+ |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
13375 |
+ |
eval ac_val=\$$ac_var |
13376 |
+ |
case $ac_val in #( |
13377 |
+ |
*${as_nl}*) |
13378 |
+ |
case $ac_var in #( |
13379 |
+ |
*_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
13380 |
+ |
$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
13381 |
+ |
esac |
13382 |
+ |
case $ac_var in #( |
13383 |
+ |
_ | IFS | as_nl) ;; #( |
13384 |
+ |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
13385 |
+ |
*) $as_unset $ac_var ;; |
13386 |
+ |
esac ;; |
13387 |
+ |
esac |
13388 |
+ |
done |
13389 |
+ |
|
13390 |
+ |
(set) 2>&1 | |
13391 |
+ |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
13392 |
+ |
*${as_nl}ac_space=\ *) |
13393 |
+ |
# `set' does not quote correctly, so add quotes (double-quote |
13394 |
+ |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
13395 |
+ |
sed -n \ |
13396 |
+ |
"s/'/'\\\\''/g; |
13397 |
+ |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
13398 |
+ |
;; #( |
13399 |
+ |
*) |
13400 |
+ |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
13401 |
+ |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
13402 |
+ |
;; |
13403 |
+ |
esac | |
13404 |
+ |
sort |
13405 |
+ |
) | |
13406 |
+ |
sed ' |
13407 |
+ |
/^ac_cv_env_/b end |
13408 |
+ |
t clear |
13409 |
+ |
:clear |
13410 |
+ |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
13411 |
+ |
t end |
13412 |
+ |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
13413 |
+ |
:end' >>confcache |
13414 |
+ |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
13415 |
+ |
if test -w "$cache_file"; then |
13416 |
+ |
test "x$cache_file" != "x/dev/null" && |
13417 |
+ |
{ $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
13418 |
+ |
$as_echo "$as_me: updating cache $cache_file" >&6;} |
13419 |
+ |
cat confcache >$cache_file |
13420 |
+ |
else |
13421 |
+ |
{ $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
13422 |
+ |
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
13423 |
+ |
fi |
13424 |
|
fi |
13425 |
+ |
rm -f confcache |
13426 |
|
|
13427 |
+ |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
13428 |
+ |
# Let make expand exec_prefix. |
13429 |
+ |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
13430 |
|
|
13431 |
+ |
DEFS=-DHAVE_CONFIG_H |
13432 |
|
|
13433 |
+ |
ac_libobjs= |
13434 |
+ |
ac_ltlibobjs= |
13435 |
+ |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
13436 |
+ |
# 1. Remove the extension, and $U if already installed. |
13437 |
+ |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
13438 |
+ |
ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
13439 |
+ |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
13440 |
+ |
# will be set to the directory where LIBOBJS objects are built. |
13441 |
+ |
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
13442 |
+ |
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
13443 |
+ |
done |
13444 |
+ |
LIBOBJS=$ac_libobjs |
13445 |
|
|
13446 |
+ |
LTLIBOBJS=$ac_ltlibobjs |
13447 |
|
|
13448 |
|
|
13449 |
|
|
13450 |
< |
echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5 |
13451 |
< |
echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6 |
13452 |
< |
if test "${ac_cv_prog_really_gcc+set}" = set; then |
13453 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13454 |
< |
else |
13450 |
> |
: ${CONFIG_STATUS=./config.status} |
13451 |
> |
ac_write_fail=0 |
13452 |
> |
ac_clean_files_save=$ac_clean_files |
13453 |
> |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
13454 |
> |
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
13455 |
> |
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
13456 |
> |
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13457 |
> |
#! $SHELL |
13458 |
> |
# Generated by $as_me. |
13459 |
> |
# Run this file to recreate the current configuration. |
13460 |
> |
# Compiler output produced by configure, useful for debugging |
13461 |
> |
# configure, is in config.log if it exists. |
13462 |
|
|
13463 |
< |
cat > conftest.c <<EOF |
13464 |
< |
#ifdef __GNUC__ |
13465 |
< |
#if defined(__INTEL_COMPILER) || defined(__PATHCC__) |
13466 |
< |
no; |
13467 |
< |
#else |
11404 |
< |
yes; |
11405 |
< |
#endif |
11406 |
< |
#endif |
11407 |
< |
EOF |
11408 |
< |
if { ac_try='${CC-cc} -E conftest.c' |
11409 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11410 |
< |
(eval $ac_try) 2>&5 |
11411 |
< |
ac_status=$? |
11412 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11413 |
< |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
11414 |
< |
ac_cv_prog_really_gcc=yes |
11415 |
< |
else |
11416 |
< |
ac_cv_prog_really_gcc=no |
11417 |
< |
fi |
13463 |
> |
debug=false |
13464 |
> |
ac_cs_recheck=false |
13465 |
> |
ac_cs_silent=false |
13466 |
> |
SHELL=\${CONFIG_SHELL-$SHELL} |
13467 |
> |
_ACEOF |
13468 |
|
|
13469 |
< |
fi |
13470 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5 |
13471 |
< |
echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6 |
13472 |
< |
if test "$ac_cv_prog_really_gcc" = yes; then |
11423 |
< |
: |
13469 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13470 |
> |
## --------------------- ## |
13471 |
> |
## M4sh Initialization. ## |
13472 |
> |
## --------------------- ## |
13473 |
|
|
13474 |
+ |
# Be more Bourne compatible |
13475 |
+ |
DUALCASE=1; export DUALCASE # for MKS sh |
13476 |
+ |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
13477 |
+ |
emulate sh |
13478 |
+ |
NULLCMD=: |
13479 |
+ |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
13480 |
+ |
# is contrary to our usage. Disable this feature. |
13481 |
+ |
alias -g '${1+"$@"}'='"$@"' |
13482 |
+ |
setopt NO_GLOB_SUBST |
13483 |
|
else |
13484 |
< |
: |
13484 |
> |
case `(set -o) 2>/dev/null` in |
13485 |
> |
*posix*) set -o posix ;; |
13486 |
> |
esac |
13487 |
|
|
13488 |
|
fi |
13489 |
|
|
13490 |
|
|
11431 |
– |
# Try to determine "good" native compiler flags if none specified on command |
11432 |
– |
# line |
11433 |
– |
if test "$ac_test_CFLAGS" != "set"; then |
11434 |
– |
CFLAGS="" |
11435 |
– |
case "${host_cpu}-${host_os}" in |
13491 |
|
|
11437 |
– |
*linux*) if test "$CC" = icc; then |
11438 |
– |
CFLAGS="-O" |
11439 |
– |
fi;; |
11440 |
– |
sparc-solaris2*) if test "$CC" = cc; then |
11441 |
– |
CFLAGS="-O -dalign" |
11442 |
– |
fi;; |
13492 |
|
|
13493 |
< |
alpha*-osf*) if test "$CC" = cc; then |
13494 |
< |
CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1" |
13495 |
< |
fi;; |
13493 |
> |
# PATH needs CR |
13494 |
> |
# Avoid depending upon Character Ranges. |
13495 |
> |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
13496 |
> |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
13497 |
> |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
13498 |
> |
as_cr_digits='0123456789' |
13499 |
> |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
13500 |
|
|
13501 |
< |
hppa*-hpux*) if test "$CC" = cc; then |
13502 |
< |
CFLAGS="-Ae +O3 +Oall" |
13503 |
< |
fi;; |
13504 |
< |
|
13505 |
< |
rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then |
13506 |
< |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
13507 |
< |
fi;; |
13508 |
< |
powerpc*-aix*) |
13509 |
< |
if test "$CC" = cc -o "$CC" = xlc; then |
13510 |
< |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
11458 |
< |
echo "*******************************************************" |
11459 |
< |
echo "* You have AIX on an unknown powerpc system. It is *" |
11460 |
< |
echo "* recommended that you use *" |
11461 |
< |
echo "* *" |
11462 |
< |
echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
11463 |
< |
echo "* ^^^ *" |
11464 |
< |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
11465 |
< |
echo "* PowerPC CPU you have. For more info, man cc. *" |
11466 |
< |
echo "*******************************************************" |
11467 |
< |
fi;; |
11468 |
< |
*darwin*) |
11469 |
< |
if test "$CC" = xlc -o "$CC" = cc; then |
11470 |
< |
CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
11471 |
< |
fi;; |
11472 |
< |
esac |
11473 |
< |
|
11474 |
< |
# use default flags for gcc on all systems |
11475 |
< |
if test $ac_cv_prog_really_gcc = yes; then |
11476 |
< |
CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
11477 |
< |
fi |
11478 |
< |
|
11479 |
< |
# test for gcc-specific flags: |
11480 |
< |
if test $ac_cv_prog_really_gcc = yes; then |
11481 |
< |
# -malign-double for x86 systems |
11482 |
< |
|
11483 |
< |
|
11484 |
< |
echo "$as_me:$LINENO: checking whether ${CC} accepts -malign-double" >&5 |
11485 |
< |
echo $ECHO_N "checking whether ${CC} accepts -malign-double... $ECHO_C" >&6 |
11486 |
< |
if test "${ac_align_double+set}" = set; then |
11487 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13501 |
> |
as_nl=' |
13502 |
> |
' |
13503 |
> |
export as_nl |
13504 |
> |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
13505 |
> |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
13506 |
> |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
13507 |
> |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
13508 |
> |
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
13509 |
> |
as_echo='printf %s\n' |
13510 |
> |
as_echo_n='printf %s' |
13511 |
|
else |
13512 |
< |
echo 'void f(){}' > conftest.c |
13513 |
< |
if test -z "`${CC} -malign-double -c conftest.c 2>&1`"; then |
13514 |
< |
ac_align_double=yes |
13515 |
< |
else |
13516 |
< |
ac_align_double=no |
13512 |
> |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
13513 |
> |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
13514 |
> |
as_echo_n='/usr/ucb/echo -n' |
13515 |
> |
else |
13516 |
> |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
13517 |
> |
as_echo_n_body='eval |
13518 |
> |
arg=$1; |
13519 |
> |
case $arg in |
13520 |
> |
*"$as_nl"*) |
13521 |
> |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
13522 |
> |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
13523 |
> |
esac; |
13524 |
> |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
13525 |
> |
' |
13526 |
> |
export as_echo_n_body |
13527 |
> |
as_echo_n='sh -c $as_echo_n_body as_echo' |
13528 |
> |
fi |
13529 |
> |
export as_echo_body |
13530 |
> |
as_echo='sh -c $as_echo_body as_echo' |
13531 |
|
fi |
11495 |
– |
rm -f conftest* |
13532 |
|
|
13533 |
+ |
# The user is always right. |
13534 |
+ |
if test "${PATH_SEPARATOR+set}" != set; then |
13535 |
+ |
PATH_SEPARATOR=: |
13536 |
+ |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
13537 |
+ |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
13538 |
+ |
PATH_SEPARATOR=';' |
13539 |
+ |
} |
13540 |
|
fi |
11498 |
– |
echo "$as_me:$LINENO: result: $ac_align_double" >&5 |
11499 |
– |
echo "${ECHO_T}$ac_align_double" >&6 |
11500 |
– |
if test "$ac_align_double" = yes; then |
11501 |
– |
: |
11502 |
– |
CFLAGS="$CFLAGS -malign-double" |
11503 |
– |
else |
11504 |
– |
: |
13541 |
|
|
13542 |
+ |
# Support unset when possible. |
13543 |
+ |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
13544 |
+ |
as_unset=unset |
13545 |
+ |
else |
13546 |
+ |
as_unset=false |
13547 |
|
fi |
13548 |
|
|
11508 |
– |
# -fstrict-aliasing for gcc-2.95+ |
13549 |
|
|
13550 |
+ |
# IFS |
13551 |
+ |
# We need space, tab and new line, in precisely that order. Quoting is |
13552 |
+ |
# there to prevent editors from complaining about space-tab. |
13553 |
+ |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
13554 |
+ |
# splitting by setting IFS to empty value.) |
13555 |
+ |
IFS=" "" $as_nl" |
13556 |
|
|
13557 |
< |
echo "$as_me:$LINENO: checking whether ${CC} accepts -fstrict-aliasing" >&5 |
13558 |
< |
echo $ECHO_N "checking whether ${CC} accepts -fstrict-aliasing... $ECHO_C" >&6 |
13559 |
< |
if test "${ac_fstrict_aliasing+set}" = set; then |
13560 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13561 |
< |
else |
13562 |
< |
echo 'void f(){}' > conftest.c |
13563 |
< |
if test -z "`${CC} -fstrict-aliasing -c conftest.c 2>&1`"; then |
13564 |
< |
ac_fstrict_aliasing=yes |
13565 |
< |
else |
13566 |
< |
ac_fstrict_aliasing=no |
13567 |
< |
fi |
11522 |
< |
rm -f conftest* |
13557 |
> |
# Find who we are. Look in the path if we contain no directory separator. |
13558 |
> |
case $0 in |
13559 |
> |
*[\\/]* ) as_myself=$0 ;; |
13560 |
> |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13561 |
> |
for as_dir in $PATH |
13562 |
> |
do |
13563 |
> |
IFS=$as_save_IFS |
13564 |
> |
test -z "$as_dir" && as_dir=. |
13565 |
> |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
13566 |
> |
done |
13567 |
> |
IFS=$as_save_IFS |
13568 |
|
|
13569 |
+ |
;; |
13570 |
+ |
esac |
13571 |
+ |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
13572 |
+ |
# in which case we are not to be found in the path. |
13573 |
+ |
if test "x$as_myself" = x; then |
13574 |
+ |
as_myself=$0 |
13575 |
|
fi |
13576 |
< |
echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5 |
13577 |
< |
echo "${ECHO_T}$ac_fstrict_aliasing" >&6 |
13578 |
< |
if test "$ac_fstrict_aliasing" = yes; then |
11528 |
< |
: |
11529 |
< |
CFLAGS="$CFLAGS -fstrict-aliasing" |
11530 |
< |
else |
11531 |
< |
: |
11532 |
< |
|
13576 |
> |
if test ! -f "$as_myself"; then |
13577 |
> |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
13578 |
> |
{ (exit 1); exit 1; } |
13579 |
|
fi |
13580 |
|
|
13581 |
< |
fi |
13581 |
> |
# Work around bugs in pre-3.0 UWIN ksh. |
13582 |
> |
for as_var in ENV MAIL MAILPATH |
13583 |
> |
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
13584 |
> |
done |
13585 |
> |
PS1='$ ' |
13586 |
> |
PS2='> ' |
13587 |
> |
PS4='+ ' |
13588 |
|
|
13589 |
< |
CPU_FLAGS="" |
13590 |
< |
if test $ac_cv_prog_really_gcc = yes; then |
13591 |
< |
case "${host_cpu}" in |
13592 |
< |
i586*) |
13589 |
> |
# NLS nuisances. |
13590 |
> |
LC_ALL=C |
13591 |
> |
export LC_ALL |
13592 |
> |
LANGUAGE=C |
13593 |
> |
export LANGUAGE |
13594 |
|
|
13595 |
< |
echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=pentium" >&5 |
13596 |
< |
echo $ECHO_N "checking whether ${CC} accepts -mcpu=pentium... $ECHO_C" >&6 |
13597 |
< |
if test "${ac_cpu_pentium+set}" = set; then |
13598 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13595 |
> |
# Required to use basename. |
13596 |
> |
if expr a : '\(a\)' >/dev/null 2>&1 && |
13597 |
> |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
13598 |
> |
as_expr=expr |
13599 |
|
else |
13600 |
< |
echo 'void f(){}' > conftest.c |
11548 |
< |
if test -z "`${CC} -mcpu=pentium -c conftest.c 2>&1`"; then |
11549 |
< |
ac_cpu_pentium=yes |
11550 |
< |
else |
11551 |
< |
ac_cpu_pentium=no |
13600 |
> |
as_expr=false |
13601 |
|
fi |
11553 |
– |
rm -f conftest* |
13602 |
|
|
13603 |
< |
fi |
13604 |
< |
echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5 |
11557 |
< |
echo "${ECHO_T}$ac_cpu_pentium" >&6 |
11558 |
< |
if test "$ac_cpu_pentium" = yes; then |
11559 |
< |
: |
11560 |
< |
CPU_FLAGS=-mcpu=pentium |
13603 |
> |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
13604 |
> |
as_basename=basename |
13605 |
|
else |
13606 |
< |
: |
13606 |
> |
as_basename=false |
13607 |
> |
fi |
13608 |
|
|
13609 |
|
|
13610 |
< |
echo "$as_me:$LINENO: checking whether ${CC} accepts -mpentium" >&5 |
13611 |
< |
echo $ECHO_N "checking whether ${CC} accepts -mpentium... $ECHO_C" >&6 |
13612 |
< |
if test "${ac_pentium+set}" = set; then |
13613 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13614 |
< |
else |
13615 |
< |
echo 'void f(){}' > conftest.c |
13616 |
< |
if test -z "`${CC} -mpentium -c conftest.c 2>&1`"; then |
13617 |
< |
ac_pentium=yes |
13618 |
< |
else |
13619 |
< |
ac_pentium=no |
13620 |
< |
fi |
13621 |
< |
rm -f conftest* |
13610 |
> |
# Name of the executable. |
13611 |
> |
as_me=`$as_basename -- "$0" || |
13612 |
> |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
13613 |
> |
X"$0" : 'X\(//\)$' \| \ |
13614 |
> |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
13615 |
> |
$as_echo X/"$0" | |
13616 |
> |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
13617 |
> |
s//\1/ |
13618 |
> |
q |
13619 |
> |
} |
13620 |
> |
/^X\/\(\/\/\)$/{ |
13621 |
> |
s//\1/ |
13622 |
> |
q |
13623 |
> |
} |
13624 |
> |
/^X\/\(\/\).*/{ |
13625 |
> |
s//\1/ |
13626 |
> |
q |
13627 |
> |
} |
13628 |
> |
s/.*/./; q'` |
13629 |
|
|
13630 |
< |
fi |
13631 |
< |
echo "$as_me:$LINENO: result: $ac_pentium" >&5 |
11580 |
< |
echo "${ECHO_T}$ac_pentium" >&6 |
11581 |
< |
if test "$ac_pentium" = yes; then |
11582 |
< |
: |
11583 |
< |
CPU_FLAGS=-mpentium |
11584 |
< |
else |
11585 |
< |
: |
13630 |
> |
# CDPATH. |
13631 |
> |
$as_unset CDPATH |
13632 |
|
|
11587 |
– |
fi |
13633 |
|
|
11589 |
– |
fi |
13634 |
|
|
13635 |
< |
;; |
13636 |
< |
i686*) |
13635 |
> |
as_lineno_1=$LINENO |
13636 |
> |
as_lineno_2=$LINENO |
13637 |
> |
test "x$as_lineno_1" != "x$as_lineno_2" && |
13638 |
> |
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
13639 |
|
|
13640 |
< |
echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=pentiumpro" >&5 |
13641 |
< |
echo $ECHO_N "checking whether ${CC} accepts -mcpu=pentiumpro... $ECHO_C" >&6 |
13642 |
< |
if test "${ac_cpu_pentiumpro+set}" = set; then |
13643 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13644 |
< |
else |
13645 |
< |
echo 'void f(){}' > conftest.c |
13646 |
< |
if test -z "`${CC} -mcpu=pentiumpro -c conftest.c 2>&1`"; then |
13647 |
< |
ac_cpu_pentiumpro=yes |
13648 |
< |
else |
13649 |
< |
ac_cpu_pentiumpro=no |
13650 |
< |
fi |
13651 |
< |
rm -f conftest* |
13640 |
> |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
13641 |
> |
# uniformly replaced by the line number. The first 'sed' inserts a |
13642 |
> |
# line-number line after each line using $LINENO; the second 'sed' |
13643 |
> |
# does the real work. The second script uses 'N' to pair each |
13644 |
> |
# line-number line with the line containing $LINENO, and appends |
13645 |
> |
# trailing '-' during substitution so that $LINENO is not a special |
13646 |
> |
# case at line end. |
13647 |
> |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
13648 |
> |
# scripts with optimization help from Paolo Bonzini. Blame Lee |
13649 |
> |
# E. McMahon (1931-1989) for sed's syntax. :-) |
13650 |
> |
sed -n ' |
13651 |
> |
p |
13652 |
> |
/[$]LINENO/= |
13653 |
> |
' <$as_myself | |
13654 |
> |
sed ' |
13655 |
> |
s/[$]LINENO.*/&-/ |
13656 |
> |
t lineno |
13657 |
> |
b |
13658 |
> |
:lineno |
13659 |
> |
N |
13660 |
> |
:loop |
13661 |
> |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
13662 |
> |
t loop |
13663 |
> |
s/-\n.*// |
13664 |
> |
' >$as_me.lineno && |
13665 |
> |
chmod +x "$as_me.lineno" || |
13666 |
> |
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
13667 |
> |
{ (exit 1); exit 1; }; } |
13668 |
|
|
13669 |
< |
fi |
13670 |
< |
echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5 |
13671 |
< |
echo "${ECHO_T}$ac_cpu_pentiumpro" >&6 |
13672 |
< |
if test "$ac_cpu_pentiumpro" = yes; then |
13673 |
< |
: |
13674 |
< |
CPU_FLAGS=-mcpu=pentiumpro |
13675 |
< |
else |
11614 |
< |
: |
13669 |
> |
# Don't try to exec as it changes $[0], causing all sort of problems |
13670 |
> |
# (the dirname of $[0] is not the place where we might find the |
13671 |
> |
# original and so on. Autoconf is especially sensitive to this). |
13672 |
> |
. "./$as_me.lineno" |
13673 |
> |
# Exit status is that of the last command. |
13674 |
> |
exit |
13675 |
> |
} |
13676 |
|
|
13677 |
|
|
13678 |
< |
echo "$as_me:$LINENO: checking whether ${CC} accepts -mpentiumpro" >&5 |
13679 |
< |
echo $ECHO_N "checking whether ${CC} accepts -mpentiumpro... $ECHO_C" >&6 |
11619 |
< |
if test "${ac_pentiumpro+set}" = set; then |
11620 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13678 |
> |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
13679 |
> |
as_dirname=dirname |
13680 |
|
else |
13681 |
< |
echo 'void f(){}' > conftest.c |
11623 |
< |
if test -z "`${CC} -mpentiumpro -c conftest.c 2>&1`"; then |
11624 |
< |
ac_pentiumpro=yes |
11625 |
< |
else |
11626 |
< |
ac_pentiumpro=no |
13681 |
> |
as_dirname=false |
13682 |
|
fi |
11628 |
– |
rm -f conftest* |
13683 |
|
|
13684 |
< |
fi |
13685 |
< |
echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5 |
13686 |
< |
echo "${ECHO_T}$ac_pentiumpro" >&6 |
13687 |
< |
if test "$ac_pentiumpro" = yes; then |
13688 |
< |
: |
13689 |
< |
CPU_FLAGS=-mpentiumpro |
13684 |
> |
ECHO_C= ECHO_N= ECHO_T= |
13685 |
> |
case `echo -n x` in |
13686 |
> |
-n*) |
13687 |
> |
case `echo 'x\c'` in |
13688 |
> |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
13689 |
> |
*) ECHO_C='\c';; |
13690 |
> |
esac;; |
13691 |
> |
*) |
13692 |
> |
ECHO_N='-n';; |
13693 |
> |
esac |
13694 |
> |
if expr a : '\(a\)' >/dev/null 2>&1 && |
13695 |
> |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
13696 |
> |
as_expr=expr |
13697 |
|
else |
13698 |
< |
: |
11638 |
< |
|
13698 |
> |
as_expr=false |
13699 |
|
fi |
13700 |
|
|
13701 |
< |
fi |
13702 |
< |
|
13703 |
< |
;; |
11644 |
< |
powerpc*) |
11645 |
< |
cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null` |
11646 |
< |
is60x=`echo $cputype | egrep "^600-9e?$"` |
11647 |
< |
if test -n "$is60x"; then |
11648 |
< |
|
11649 |
< |
|
11650 |
< |
echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=$cputype" >&5 |
11651 |
< |
echo $ECHO_N "checking whether ${CC} accepts -mcpu=$cputype... $ECHO_C" >&6 |
11652 |
< |
if test "${ac_m_cpu_60x+set}" = set; then |
11653 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13701 |
> |
rm -f conf$$ conf$$.exe conf$$.file |
13702 |
> |
if test -d conf$$.dir; then |
13703 |
> |
rm -f conf$$.dir/conf$$.file |
13704 |
|
else |
13705 |
< |
echo 'void f(){}' > conftest.c |
13706 |
< |
if test -z "`${CC} -mcpu=$cputype -c conftest.c 2>&1`"; then |
11657 |
< |
ac_m_cpu_60x=yes |
11658 |
< |
else |
11659 |
< |
ac_m_cpu_60x=no |
13705 |
> |
rm -f conf$$.dir |
13706 |
> |
mkdir conf$$.dir 2>/dev/null |
13707 |
|
fi |
13708 |
< |
rm -f conftest* |
13709 |
< |
|
13710 |
< |
fi |
13711 |
< |
echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5 |
13712 |
< |
echo "${ECHO_T}$ac_m_cpu_60x" >&6 |
13713 |
< |
if test "$ac_m_cpu_60x" = yes; then |
13714 |
< |
: |
13715 |
< |
CPU_FLAGS=-mcpu=$cputype |
13708 |
> |
if (echo >conf$$.file) 2>/dev/null; then |
13709 |
> |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
13710 |
> |
as_ln_s='ln -s' |
13711 |
> |
# ... but there are two gotchas: |
13712 |
> |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
13713 |
> |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
13714 |
> |
# In both cases, we have to default to `cp -p'. |
13715 |
> |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
13716 |
> |
as_ln_s='cp -p' |
13717 |
> |
elif ln conf$$.file conf$$ 2>/dev/null; then |
13718 |
> |
as_ln_s=ln |
13719 |
> |
else |
13720 |
> |
as_ln_s='cp -p' |
13721 |
> |
fi |
13722 |
|
else |
13723 |
< |
: |
11671 |
< |
|
13723 |
> |
as_ln_s='cp -p' |
13724 |
|
fi |
13725 |
+ |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
13726 |
+ |
rmdir conf$$.dir 2>/dev/null |
13727 |
|
|
13728 |
< |
elif test "$cputype" = 750; then |
13729 |
< |
|
11676 |
< |
|
11677 |
< |
echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5 |
11678 |
< |
echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6 |
11679 |
< |
if test "${ac_cv_prog_gcc_2_95+set}" = set; then |
11680 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13728 |
> |
if mkdir -p . 2>/dev/null; then |
13729 |
> |
as_mkdir_p=: |
13730 |
|
else |
13731 |
< |
|
13732 |
< |
cat > conftest.c <<EOF |
11684 |
< |
#ifdef __GNUC__ && !defined (__INTEL_COMPILER) |
11685 |
< |
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
11686 |
< |
yes; |
11687 |
< |
# endif |
11688 |
< |
#endif |
11689 |
< |
EOF |
11690 |
< |
if { ac_try='${CC-cc} -E conftest.c' |
11691 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11692 |
< |
(eval $ac_try) 2>&5 |
11693 |
< |
ac_status=$? |
11694 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11695 |
< |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
11696 |
< |
ac_cv_prog_gcc_2_95=yes |
11697 |
< |
else |
11698 |
< |
ac_cv_prog_gcc_2_95=no |
13731 |
> |
test -d ./-p && rmdir ./-p |
13732 |
> |
as_mkdir_p=false |
13733 |
|
fi |
13734 |
|
|
13735 |
< |
fi |
13736 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5 |
11703 |
< |
echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6 |
11704 |
< |
if test "$ac_cv_prog_gcc_2_95" = yes; then |
11705 |
< |
: |
11706 |
< |
|
11707 |
< |
|
11708 |
< |
echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=750" >&5 |
11709 |
< |
echo $ECHO_N "checking whether ${CC} accepts -mcpu=750... $ECHO_C" >&6 |
11710 |
< |
if test "${ac_m_cpu_750+set}" = set; then |
11711 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13735 |
> |
if test -x / >/dev/null 2>&1; then |
13736 |
> |
as_test_x='test -x' |
13737 |
|
else |
13738 |
< |
echo 'void f(){}' > conftest.c |
13739 |
< |
if test -z "`${CC} -mcpu=750 -c conftest.c 2>&1`"; then |
13740 |
< |
ac_m_cpu_750=yes |
13741 |
< |
else |
13742 |
< |
ac_m_cpu_750=no |
13738 |
> |
if ls -dL / >/dev/null 2>&1; then |
13739 |
> |
as_ls_L_option=L |
13740 |
> |
else |
13741 |
> |
as_ls_L_option= |
13742 |
> |
fi |
13743 |
> |
as_test_x=' |
13744 |
> |
eval sh -c '\'' |
13745 |
> |
if test -d "$1"; then |
13746 |
> |
test -d "$1/."; |
13747 |
> |
else |
13748 |
> |
case $1 in |
13749 |
> |
-*)set "./$1";; |
13750 |
> |
esac; |
13751 |
> |
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
13752 |
> |
???[sx]*):;;*)false;;esac;fi |
13753 |
> |
'\'' sh |
13754 |
> |
' |
13755 |
|
fi |
13756 |
< |
rm -f conftest* |
13756 |
> |
as_executable_p=$as_test_x |
13757 |
|
|
13758 |
< |
fi |
13759 |
< |
echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5 |
11723 |
< |
echo "${ECHO_T}$ac_m_cpu_750" >&6 |
11724 |
< |
if test "$ac_m_cpu_750" = yes; then |
11725 |
< |
: |
11726 |
< |
CPU_FLAGS=-mcpu=750 |
11727 |
< |
else |
11728 |
< |
: |
13758 |
> |
# Sed expression to map a string onto a valid CPP name. |
13759 |
> |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
13760 |
|
|
13761 |
< |
fi |
13761 |
> |
# Sed expression to map a string onto a valid variable name. |
13762 |
> |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
13763 |
|
|
11732 |
– |
else |
11733 |
– |
: |
13764 |
|
|
13765 |
< |
fi |
11736 |
< |
|
11737 |
< |
fi |
11738 |
< |
if test -z "$CPU_FLAGS"; then |
13765 |
> |
exec 6>&1 |
13766 |
|
|
13767 |
+ |
# Save the log message, to keep $[0] and so on meaningful, and to |
13768 |
+ |
# report actual input values of CONFIG_FILES etc. instead of their |
13769 |
+ |
# values after options handling. |
13770 |
+ |
ac_log=" |
13771 |
+ |
This file was extended by OOPSE $as_me 4.0, which was |
13772 |
+ |
generated by GNU Autoconf 2.62. Invocation command line was |
13773 |
|
|
13774 |
< |
echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=powerpc" >&5 |
13775 |
< |
echo $ECHO_N "checking whether ${CC} accepts -mcpu=powerpc... $ECHO_C" >&6 |
13776 |
< |
if test "${ac_m_cpu_powerpc+set}" = set; then |
13777 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13778 |
< |
else |
11746 |
< |
echo 'void f(){}' > conftest.c |
11747 |
< |
if test -z "`${CC} -mcpu=powerpc -c conftest.c 2>&1`"; then |
11748 |
< |
ac_m_cpu_powerpc=yes |
11749 |
< |
else |
11750 |
< |
ac_m_cpu_powerpc=no |
11751 |
< |
fi |
11752 |
< |
rm -f conftest* |
13774 |
> |
CONFIG_FILES = $CONFIG_FILES |
13775 |
> |
CONFIG_HEADERS = $CONFIG_HEADERS |
13776 |
> |
CONFIG_LINKS = $CONFIG_LINKS |
13777 |
> |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
13778 |
> |
$ $0 $@ |
13779 |
|
|
13780 |
< |
fi |
13781 |
< |
echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5 |
11756 |
< |
echo "${ECHO_T}$ac_m_cpu_powerpc" >&6 |
11757 |
< |
if test "$ac_m_cpu_powerpc" = yes; then |
11758 |
< |
: |
11759 |
< |
CPU_FLAGS=-mcpu=powerpc |
11760 |
< |
else |
11761 |
< |
: |
13780 |
> |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
13781 |
> |
" |
13782 |
|
|
13783 |
< |
fi |
13783 |
> |
_ACEOF |
13784 |
|
|
13785 |
< |
fi |
13786 |
< |
if test -z "$CPU_FLAGS"; then |
13785 |
> |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13786 |
> |
# Files that config.status was made for. |
13787 |
> |
config_files="$ac_config_files" |
13788 |
> |
config_headers="$ac_config_headers" |
13789 |
|
|
13790 |
+ |
_ACEOF |
13791 |
|
|
13792 |
< |
echo "$as_me:$LINENO: checking whether ${CC} accepts -mpowerpc" >&5 |
13793 |
< |
echo $ECHO_N "checking whether ${CC} accepts -mpowerpc... $ECHO_C" >&6 |
13794 |
< |
if test "${ac_m_powerpc+set}" = set; then |
13795 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11773 |
< |
else |
11774 |
< |
echo 'void f(){}' > conftest.c |
11775 |
< |
if test -z "`${CC} -mpowerpc -c conftest.c 2>&1`"; then |
11776 |
< |
ac_m_powerpc=yes |
11777 |
< |
else |
11778 |
< |
ac_m_powerpc=no |
11779 |
< |
fi |
11780 |
< |
rm -f conftest* |
13792 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13793 |
> |
ac_cs_usage="\ |
13794 |
> |
\`$as_me' instantiates files from templates according to the |
13795 |
> |
current configuration. |
13796 |
|
|
13797 |
< |
fi |
11783 |
< |
echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5 |
11784 |
< |
echo "${ECHO_T}$ac_m_powerpc" >&6 |
11785 |
< |
if test "$ac_m_powerpc" = yes; then |
11786 |
< |
: |
11787 |
< |
CPU_FLAGS=-mpowerpc |
11788 |
< |
else |
11789 |
< |
: |
13797 |
> |
Usage: $0 [OPTIONS] [FILE]... |
13798 |
|
|
13799 |
< |
fi |
13799 |
> |
-h, --help print this help, then exit |
13800 |
> |
-V, --version print version number and configuration settings, then exit |
13801 |
> |
-q, --quiet do not print progress messages |
13802 |
> |
-d, --debug don't remove temporary files |
13803 |
> |
--recheck update $as_me by reconfiguring in the same conditions |
13804 |
> |
--file=FILE[:TEMPLATE] |
13805 |
> |
instantiate the configuration file FILE |
13806 |
> |
--header=FILE[:TEMPLATE] |
13807 |
> |
instantiate the configuration header FILE |
13808 |
|
|
13809 |
< |
fi |
13810 |
< |
esac |
11795 |
< |
fi |
13809 |
> |
Configuration files: |
13810 |
> |
$config_files |
13811 |
|
|
13812 |
< |
if test -n "$CPU_FLAGS"; then |
13813 |
< |
CFLAGS="$CFLAGS $CPU_FLAGS" |
11799 |
< |
fi |
13812 |
> |
Configuration headers: |
13813 |
> |
$config_headers |
13814 |
|
|
13815 |
< |
if test -z "$CFLAGS"; then |
11802 |
< |
echo "" |
11803 |
< |
echo "********************************************************" |
11804 |
< |
echo "* WARNING: Don't know the best CFLAGS for this system *" |
11805 |
< |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
11806 |
< |
echo "* (otherwise, a default of CFLAGS=-O3 will be used) *" |
11807 |
< |
echo "********************************************************" |
11808 |
< |
echo "" |
11809 |
< |
CFLAGS="-O3" |
11810 |
< |
fi |
13815 |
> |
Report bugs to <bug-autoconf@gnu.org>." |
13816 |
|
|
13817 |
+ |
_ACEOF |
13818 |
+ |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13819 |
+ |
ac_cs_version="\\ |
13820 |
+ |
OOPSE config.status 4.0 |
13821 |
+ |
configured by $0, generated by GNU Autoconf 2.62, |
13822 |
+ |
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
13823 |
|
|
13824 |
+ |
Copyright (C) 2008 Free Software Foundation, Inc. |
13825 |
+ |
This config.status script is free software; the Free Software Foundation |
13826 |
+ |
gives unlimited permission to copy, distribute and modify it." |
13827 |
|
|
13828 |
< |
echo "$as_me:$LINENO: checking whether ${CC} accepts ${CFLAGS}" >&5 |
13829 |
< |
echo $ECHO_N "checking whether ${CC} accepts ${CFLAGS}... $ECHO_C" >&6 |
13830 |
< |
if test "${ac_guessed_cflags+set}" = set; then |
13831 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13832 |
< |
else |
11819 |
< |
echo 'void f(){}' > conftest.c |
11820 |
< |
if test -z "`${CC} ${CFLAGS} -c conftest.c 2>&1`"; then |
11821 |
< |
ac_guessed_cflags=yes |
11822 |
< |
else |
11823 |
< |
ac_guessed_cflags=no |
11824 |
< |
fi |
11825 |
< |
rm -f conftest* |
13828 |
> |
ac_pwd='$ac_pwd' |
13829 |
> |
srcdir='$srcdir' |
13830 |
> |
INSTALL='$INSTALL' |
13831 |
> |
test -n "\$AWK" || AWK=awk |
13832 |
> |
_ACEOF |
13833 |
|
|
13834 |
< |
fi |
13835 |
< |
echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5 |
13836 |
< |
echo "${ECHO_T}$ac_guessed_cflags" >&6 |
13837 |
< |
if test "$ac_guessed_cflags" = yes; then |
13838 |
< |
: |
13834 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13835 |
> |
# The default lists apply if the user does not specify any file. |
13836 |
> |
ac_need_defaults=: |
13837 |
> |
while test $# != 0 |
13838 |
> |
do |
13839 |
> |
case $1 in |
13840 |
> |
--*=*) |
13841 |
> |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13842 |
> |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
13843 |
> |
ac_shift=: |
13844 |
> |
;; |
13845 |
> |
*) |
13846 |
> |
ac_option=$1 |
13847 |
> |
ac_optarg=$2 |
13848 |
> |
ac_shift=shift |
13849 |
> |
;; |
13850 |
> |
esac |
13851 |
|
|
13852 |
< |
else |
13853 |
< |
: |
13852 |
> |
case $ac_option in |
13853 |
> |
# Handling of the options. |
13854 |
> |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
13855 |
> |
ac_cs_recheck=: ;; |
13856 |
> |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
13857 |
> |
$as_echo "$ac_cs_version"; exit ;; |
13858 |
> |
--debug | --debu | --deb | --de | --d | -d ) |
13859 |
> |
debug=: ;; |
13860 |
> |
--file | --fil | --fi | --f ) |
13861 |
> |
$ac_shift |
13862 |
> |
case $ac_optarg in |
13863 |
> |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
13864 |
> |
esac |
13865 |
> |
CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
13866 |
> |
ac_need_defaults=false;; |
13867 |
> |
--header | --heade | --head | --hea ) |
13868 |
> |
$ac_shift |
13869 |
> |
case $ac_optarg in |
13870 |
> |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
13871 |
> |
esac |
13872 |
> |
CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" |
13873 |
> |
ac_need_defaults=false;; |
13874 |
> |
--he | --h) |
13875 |
> |
# Conflict between --help and --header |
13876 |
> |
{ $as_echo "$as_me: error: ambiguous option: $1 |
13877 |
> |
Try \`$0 --help' for more information." >&2 |
13878 |
> |
{ (exit 1); exit 1; }; };; |
13879 |
> |
--help | --hel | -h ) |
13880 |
> |
$as_echo "$ac_cs_usage"; exit ;; |
13881 |
> |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
13882 |
> |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
13883 |
> |
ac_cs_silent=: ;; |
13884 |
|
|
13885 |
< |
echo "" |
13886 |
< |
echo "********************************************************" |
13887 |
< |
echo "* WARNING: The guessed CFLAGS don't seem to work with *" |
13888 |
< |
echo "* your compiler. *" |
11840 |
< |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
11841 |
< |
echo "********************************************************" |
11842 |
< |
echo "" |
11843 |
< |
CFLAGS="" |
13885 |
> |
# This is an error. |
13886 |
> |
-*) { $as_echo "$as_me: error: unrecognized option: $1 |
13887 |
> |
Try \`$0 --help' for more information." >&2 |
13888 |
> |
{ (exit 1); exit 1; }; } ;; |
13889 |
|
|
13890 |
< |
fi |
13890 |
> |
*) ac_config_targets="$ac_config_targets $1" |
13891 |
> |
ac_need_defaults=false ;; |
13892 |
|
|
13893 |
+ |
esac |
13894 |
+ |
shift |
13895 |
+ |
done |
13896 |
|
|
13897 |
+ |
ac_configure_extra_args= |
13898 |
+ |
|
13899 |
+ |
if $ac_cs_silent; then |
13900 |
+ |
exec 6>/dev/null |
13901 |
+ |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
13902 |
|
fi |
13903 |
|
|
13904 |
+ |
_ACEOF |
13905 |
+ |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13906 |
+ |
if \$ac_cs_recheck; then |
13907 |
+ |
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
13908 |
+ |
shift |
13909 |
+ |
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
13910 |
+ |
CONFIG_SHELL='$SHELL' |
13911 |
+ |
export CONFIG_SHELL |
13912 |
+ |
exec "\$@" |
13913 |
+ |
fi |
13914 |
|
|
13915 |
+ |
_ACEOF |
13916 |
+ |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13917 |
+ |
exec 5>>config.log |
13918 |
+ |
{ |
13919 |
+ |
echo |
13920 |
+ |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
13921 |
+ |
## Running $as_me. ## |
13922 |
+ |
_ASBOX |
13923 |
+ |
$as_echo "$ac_log" |
13924 |
+ |
} >&5 |
13925 |
|
|
13926 |
+ |
_ACEOF |
13927 |
+ |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13928 |
+ |
_ACEOF |
13929 |
|
|
13930 |
+ |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13931 |
|
|
13932 |
+ |
# Handling of arguments. |
13933 |
+ |
for ac_config_target in $ac_config_targets |
13934 |
+ |
do |
13935 |
+ |
case $ac_config_target in |
13936 |
+ |
"src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
13937 |
+ |
"make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;; |
13938 |
+ |
"src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;; |
13939 |
+ |
"src/math/Makefile") CONFIG_FILES="$CONFIG_FILES src/math/Makefile" ;; |
13940 |
+ |
"src/integrators/Makefile") CONFIG_FILES="$CONFIG_FILES src/integrators/Makefile" ;; |
13941 |
+ |
"src/applications/atom2md/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/atom2md/Makefile" ;; |
13942 |
+ |
"scripts/filepp") CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;; |
13943 |
|
|
13944 |
+ |
*) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
13945 |
+ |
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
13946 |
+ |
{ (exit 1); exit 1; }; };; |
13947 |
+ |
esac |
13948 |
+ |
done |
13949 |
|
|
11856 |
– |
echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5 |
11857 |
– |
echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6 |
11858 |
– |
if test "${ac_cv_prog_really_gxx+set}" = set; then |
11859 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11860 |
– |
else |
13950 |
|
|
13951 |
< |
cat > conftest.cpp <<EOF |
13952 |
< |
#ifdef __GNUC__ |
13953 |
< |
#if defined(__INTEL_COMPILER) || defined(__PATHCC__) |
13954 |
< |
no; |
13955 |
< |
#else |
13956 |
< |
yes; |
13957 |
< |
#endif |
11869 |
< |
#endif |
11870 |
< |
EOF |
11871 |
< |
if { ac_try='${CXX-c++} -E conftest.cpp' |
11872 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11873 |
< |
(eval $ac_try) 2>&5 |
11874 |
< |
ac_status=$? |
11875 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11876 |
< |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
11877 |
< |
ac_cv_prog_really_gxx=yes |
11878 |
< |
else |
11879 |
< |
ac_cv_prog_really_gxx=no |
13951 |
> |
# If the user did not use the arguments to specify the items to instantiate, |
13952 |
> |
# then the envvar interface is used. Set only those that are not. |
13953 |
> |
# We use the long form for the default assignment because of an extremely |
13954 |
> |
# bizarre bug on SunOS 4.1.3. |
13955 |
> |
if $ac_need_defaults; then |
13956 |
> |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
13957 |
> |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
13958 |
|
fi |
13959 |
|
|
13960 |
< |
fi |
13961 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5 |
13962 |
< |
echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6 |
13963 |
< |
if test "$ac_cv_prog_really_gxx" = yes; then |
13964 |
< |
: |
13960 |
> |
# Have a temporary directory for convenience. Make it in the build tree |
13961 |
> |
# simply because there is no reason against having it here, and in addition, |
13962 |
> |
# creating and moving files from /tmp can sometimes cause problems. |
13963 |
> |
# Hook for its removal unless debugging. |
13964 |
> |
# Note that there is a small window in which the directory will not be cleaned: |
13965 |
> |
# after its creation but before its name has been assigned to `$tmp'. |
13966 |
> |
$debug || |
13967 |
> |
{ |
13968 |
> |
tmp= |
13969 |
> |
trap 'exit_status=$? |
13970 |
> |
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
13971 |
> |
' 0 |
13972 |
> |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
13973 |
> |
} |
13974 |
> |
# Create a (secure) tmp directory for tmp files. |
13975 |
|
|
13976 |
< |
else |
13977 |
< |
: |
13976 |
> |
{ |
13977 |
> |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
13978 |
> |
test -n "$tmp" && test -d "$tmp" |
13979 |
> |
} || |
13980 |
> |
{ |
13981 |
> |
tmp=./conf$$-$RANDOM |
13982 |
> |
(umask 077 && mkdir "$tmp") |
13983 |
> |
} || |
13984 |
> |
{ |
13985 |
> |
$as_echo "$as_me: cannot create a temporary directory in ." >&2 |
13986 |
> |
{ (exit 1); exit 1; } |
13987 |
> |
} |
13988 |
|
|
13989 |
< |
fi |
13989 |
> |
# Set up the scripts for CONFIG_FILES section. |
13990 |
> |
# No need to generate them if there are no CONFIG_FILES. |
13991 |
> |
# This happens for instance with `./config.status config.h'. |
13992 |
> |
if test -n "$CONFIG_FILES"; then |
13993 |
|
|
13994 |
|
|
13995 |
< |
# Try to determine "good" native compiler flags if none specified on command |
13996 |
< |
# line |
13997 |
< |
if test "$ac_test_CXXFLAGS" != "set"; then |
13998 |
< |
CXXFLAGS="" |
13999 |
< |
case "${host_cpu}-${host_os}" in |
11899 |
< |
|
11900 |
< |
*linux*) if test "$CXX" = icc -o "$CXX" = icpc; then |
11901 |
< |
CXXFLAGS="-O" |
11902 |
< |
fi;; |
11903 |
< |
sparc-solaris2*) if test "$CXX" = CC; then |
11904 |
< |
CXXFLAGS="-features=extensions -O -dalign" |
11905 |
< |
fi;; |
11906 |
< |
rs6000*-aix*) if test "$CXX" = xlC; then |
11907 |
< |
CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" |
11908 |
< |
fi;; |
11909 |
< |
powerpc*-aix*) |
11910 |
< |
if test "$CXX" = xlC; then |
11911 |
< |
CXXFLAGS="-O3 -qarch=ppc -qansialias -w" |
11912 |
< |
echo "*******************************************************" |
11913 |
< |
echo "* You have AIX on an unknown powerpc system. It is *" |
11914 |
< |
echo "* recommended that you use *" |
11915 |
< |
echo "* *" |
11916 |
< |
echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
11917 |
< |
echo "* ^^^ *" |
11918 |
< |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
11919 |
< |
echo "* PowerPC CPU you have. For more info, man cc. *" |
11920 |
< |
echo "*******************************************************" |
11921 |
< |
fi;; |
11922 |
< |
*darwin*) |
11923 |
< |
if test "$CXX" = xlc++ -o "$CXX" = xlC ; then |
11924 |
< |
CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
11925 |
< |
fi;; |
11926 |
< |
esac |
11927 |
< |
|
11928 |
< |
# use default flags for gcc on all systems |
11929 |
< |
if test $ac_cv_prog_really_gxx = yes; then |
11930 |
< |
CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
11931 |
< |
fi |
11932 |
< |
|
11933 |
< |
# test for gcc-specific flags: |
11934 |
< |
if test $ac_cv_prog_really_gxx = yes; then |
11935 |
< |
# -malign-double for x86 systems |
11936 |
< |
|
11937 |
< |
|
11938 |
< |
echo "$as_me:$LINENO: checking whether ${CXX} accepts -malign-double" >&5 |
11939 |
< |
echo $ECHO_N "checking whether ${CXX} accepts -malign-double... $ECHO_C" >&6 |
11940 |
< |
if test "${ac_align_double+set}" = set; then |
11941 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13995 |
> |
ac_cr=' |
13996 |
> |
' |
13997 |
> |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
13998 |
> |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
13999 |
> |
ac_cs_awk_cr='\\r' |
14000 |
|
else |
14001 |
< |
echo 'void f(){}' > conftest.cpp |
11944 |
< |
if test -z "`${CXX} -malign-double -c conftest.cpp 2>&1`"; then |
11945 |
< |
ac_align_double=yes |
11946 |
< |
else |
11947 |
< |
ac_align_double=no |
14001 |
> |
ac_cs_awk_cr=$ac_cr |
14002 |
|
fi |
11949 |
– |
rm -f conftest* |
14003 |
|
|
14004 |
< |
fi |
14005 |
< |
echo "$as_me:$LINENO: result: $ac_align_double" >&5 |
11953 |
< |
echo "${ECHO_T}$ac_align_double" >&6 |
11954 |
< |
if test "$ac_align_double" = yes; then |
11955 |
< |
: |
11956 |
< |
CXXFLAGS="$CXXFLAGS -malign-double" |
11957 |
< |
else |
11958 |
< |
: |
14004 |
> |
echo 'BEGIN {' >"$tmp/subs1.awk" && |
14005 |
> |
_ACEOF |
14006 |
|
|
11960 |
– |
fi |
14007 |
|
|
14008 |
< |
# -fstrict-aliasing for gcc-2.95+ |
14008 |
> |
{ |
14009 |
> |
echo "cat >conf$$subs.awk <<_ACEOF" && |
14010 |
> |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
14011 |
> |
echo "_ACEOF" |
14012 |
> |
} >conf$$subs.sh || |
14013 |
> |
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
14014 |
> |
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
14015 |
> |
{ (exit 1); exit 1; }; } |
14016 |
> |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
14017 |
> |
ac_delim='%!_!# ' |
14018 |
> |
for ac_last_try in false false false false false :; do |
14019 |
> |
. ./conf$$subs.sh || |
14020 |
> |
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
14021 |
> |
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
14022 |
> |
{ (exit 1); exit 1; }; } |
14023 |
|
|
14024 |
< |
|
14025 |
< |
echo "$as_me:$LINENO: checking whether ${CXX} accepts -fstrict-aliasing" >&5 |
14026 |
< |
echo $ECHO_N "checking whether ${CXX} accepts -fstrict-aliasing... $ECHO_C" >&6 |
14027 |
< |
if test "${ac_fstrict_aliasing+set}" = set; then |
14028 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14029 |
< |
else |
14030 |
< |
echo 'void f(){}' > conftest.cpp |
14031 |
< |
if test -z "`${CXX} -fstrict-aliasing -c conftest.cpp 2>&1`"; then |
11972 |
< |
ac_fstrict_aliasing=yes |
11973 |
< |
else |
11974 |
< |
ac_fstrict_aliasing=no |
11975 |
< |
fi |
11976 |
< |
rm -f conftest* |
11977 |
< |
|
11978 |
< |
fi |
11979 |
< |
echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5 |
11980 |
< |
echo "${ECHO_T}$ac_fstrict_aliasing" >&6 |
11981 |
< |
if test "$ac_fstrict_aliasing" = yes; then |
11982 |
< |
: |
11983 |
< |
CXXFLAGS="$CXXFLAGS -fstrict-aliasing" |
11984 |
< |
else |
11985 |
< |
: |
11986 |
< |
|
11987 |
< |
fi |
11988 |
< |
|
14024 |
> |
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then |
14025 |
> |
break |
14026 |
> |
elif $ac_last_try; then |
14027 |
> |
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
14028 |
> |
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
14029 |
> |
{ (exit 1); exit 1; }; } |
14030 |
> |
else |
14031 |
> |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
14032 |
|
fi |
14033 |
+ |
done |
14034 |
+ |
rm -f conf$$subs.sh |
14035 |
|
|
14036 |
< |
CPU_FLAGS="" |
14037 |
< |
if test $ac_cv_prog_really_gxx = yes; then |
14038 |
< |
case "${host_cpu}" in |
14039 |
< |
i586*) |
14036 |
> |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14037 |
> |
cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
14038 |
> |
_ACEOF |
14039 |
> |
sed -n ' |
14040 |
> |
h |
14041 |
> |
s/^/S["/; s/!.*/"]=/ |
14042 |
> |
p |
14043 |
> |
g |
14044 |
> |
s/^[^!]*!// |
14045 |
> |
:repl |
14046 |
> |
t repl |
14047 |
> |
s/'"$ac_delim"'$// |
14048 |
> |
t delim |
14049 |
> |
:nl |
14050 |
> |
h |
14051 |
> |
s/\(.\{148\}\).*/\1/ |
14052 |
> |
t more1 |
14053 |
> |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
14054 |
> |
p |
14055 |
> |
n |
14056 |
> |
b repl |
14057 |
> |
:more1 |
14058 |
> |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
14059 |
> |
p |
14060 |
> |
g |
14061 |
> |
s/.\{148\}// |
14062 |
> |
t nl |
14063 |
> |
:delim |
14064 |
> |
h |
14065 |
> |
s/\(.\{148\}\).*/\1/ |
14066 |
> |
t more2 |
14067 |
> |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
14068 |
> |
p |
14069 |
> |
b |
14070 |
> |
:more2 |
14071 |
> |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
14072 |
> |
p |
14073 |
> |
g |
14074 |
> |
s/.\{148\}// |
14075 |
> |
t delim |
14076 |
> |
' <conf$$subs.awk | sed ' |
14077 |
> |
/^[^""]/{ |
14078 |
> |
N |
14079 |
> |
s/\n// |
14080 |
> |
} |
14081 |
> |
' >>$CONFIG_STATUS || ac_write_fail=1 |
14082 |
> |
rm -f conf$$subs.awk |
14083 |
> |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14084 |
> |
_ACAWK |
14085 |
> |
cat >>"\$tmp/subs1.awk" <<_ACAWK && |
14086 |
> |
for (key in S) S_is_set[key] = 1 |
14087 |
> |
FS = "" |
14088 |
|
|
14089 |
< |
echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=pentium" >&5 |
14090 |
< |
echo $ECHO_N "checking whether ${CXX} accepts -mcpu=pentium... $ECHO_C" >&6 |
14091 |
< |
if test "${ac_cpu_pentium+set}" = set; then |
14092 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14093 |
< |
else |
14094 |
< |
echo 'void f(){}' > conftest.cpp |
14095 |
< |
if test -z "`${CXX} -mcpu=pentium -c conftest.cpp 2>&1`"; then |
14096 |
< |
ac_cpu_pentium=yes |
14097 |
< |
else |
14098 |
< |
ac_cpu_pentium=no |
14099 |
< |
fi |
14100 |
< |
rm -f conftest* |
14101 |
< |
|
14102 |
< |
fi |
14103 |
< |
echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5 |
14104 |
< |
echo "${ECHO_T}$ac_cpu_pentium" >&6 |
14105 |
< |
if test "$ac_cpu_pentium" = yes; then |
14106 |
< |
: |
14107 |
< |
CPU_FLAGS=-mcpu=pentium |
14108 |
< |
else |
14109 |
< |
: |
14110 |
< |
|
14111 |
< |
|
14112 |
< |
echo "$as_me:$LINENO: checking whether ${CXX} accepts -mpentium" >&5 |
14113 |
< |
echo $ECHO_N "checking whether ${CXX} accepts -mpentium... $ECHO_C" >&6 |
14114 |
< |
if test "${ac_pentium+set}" = set; then |
14115 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14116 |
< |
else |
14117 |
< |
echo 'void f(){}' > conftest.cpp |
14118 |
< |
if test -z "`${CXX} -mpentium -c conftest.cpp 2>&1`"; then |
14119 |
< |
ac_pentium=yes |
14120 |
< |
else |
14121 |
< |
ac_pentium=no |
14122 |
< |
fi |
14123 |
< |
rm -f conftest* |
14124 |
< |
|
14125 |
< |
fi |
14126 |
< |
echo "$as_me:$LINENO: result: $ac_pentium" >&5 |
14127 |
< |
echo "${ECHO_T}$ac_pentium" >&6 |
14128 |
< |
if test "$ac_pentium" = yes; then |
14129 |
< |
: |
14130 |
< |
CPU_FLAGS=-mpentium |
14131 |
< |
else |
14132 |
< |
: |
14133 |
< |
|
14134 |
< |
fi |
14135 |
< |
|
14136 |
< |
fi |
14137 |
< |
|
14138 |
< |
;; |
14139 |
< |
i686*) |
14140 |
< |
|
14141 |
< |
echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=pentiumpro" >&5 |
14142 |
< |
echo $ECHO_N "checking whether ${CXX} accepts -mcpu=pentiumpro... $ECHO_C" >&6 |
14143 |
< |
if test "${ac_cpu_pentiumpro+set}" = set; then |
14144 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14145 |
< |
else |
14146 |
< |
echo 'void f(){}' > conftest.cpp |
14147 |
< |
if test -z "`${CXX} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then |
14148 |
< |
ac_cpu_pentiumpro=yes |
14149 |
< |
else |
14150 |
< |
ac_cpu_pentiumpro=no |
14151 |
< |
fi |
14152 |
< |
rm -f conftest* |
14153 |
< |
|
14154 |
< |
fi |
14155 |
< |
echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5 |
14156 |
< |
echo "${ECHO_T}$ac_cpu_pentiumpro" >&6 |
14157 |
< |
if test "$ac_cpu_pentiumpro" = yes; then |
14158 |
< |
: |
14159 |
< |
CPU_FLAGS=-mcpu=pentiumpro |
14160 |
< |
else |
14161 |
< |
: |
14162 |
< |
|
14163 |
< |
|
14164 |
< |
echo "$as_me:$LINENO: checking whether ${CXX} accepts -mpentiumpro" >&5 |
14165 |
< |
echo $ECHO_N "checking whether ${CXX} accepts -mpentiumpro... $ECHO_C" >&6 |
14166 |
< |
if test "${ac_pentiumpro+set}" = set; then |
14167 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14168 |
< |
else |
14169 |
< |
echo 'void f(){}' > conftest.cpp |
14170 |
< |
if test -z "`${CXX} -mpentiumpro -c conftest.cpp 2>&1`"; then |
14171 |
< |
ac_pentiumpro=yes |
14172 |
< |
else |
14173 |
< |
ac_pentiumpro=no |
14174 |
< |
fi |
14175 |
< |
rm -f conftest* |
14176 |
< |
|
14177 |
< |
fi |
14178 |
< |
echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5 |
14179 |
< |
echo "${ECHO_T}$ac_pentiumpro" >&6 |
14180 |
< |
if test "$ac_pentiumpro" = yes; then |
14181 |
< |
: |
14182 |
< |
CPU_FLAGS=-mpentiumpro |
14183 |
< |
else |
14184 |
< |
: |
14185 |
< |
|
14186 |
< |
fi |
14187 |
< |
|
14188 |
< |
fi |
14189 |
< |
|
14190 |
< |
;; |
14191 |
< |
powerpc*) |
14192 |
< |
cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null` |
14193 |
< |
is60x=`echo $cputype | egrep "^600-9e?$"` |
14194 |
< |
if test -n "$is60x"; then |
14195 |
< |
|
14196 |
< |
|
14197 |
< |
echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=$cputype" >&5 |
14198 |
< |
echo $ECHO_N "checking whether ${CXX} accepts -mcpu=$cputype... $ECHO_C" >&6 |
14199 |
< |
if test "${ac_m_cpu_60x+set}" = set; then |
14200 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14201 |
< |
else |
14202 |
< |
echo 'void f(){}' > conftest.cpp |
14203 |
< |
if test -z "`${CXX} -mcpu=$cputype -c conftest.cpp 2>&1`"; then |
14204 |
< |
ac_m_cpu_60x=yes |
14205 |
< |
else |
14206 |
< |
ac_m_cpu_60x=no |
14207 |
< |
fi |
14208 |
< |
rm -f conftest* |
14209 |
< |
|
14210 |
< |
fi |
14211 |
< |
echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5 |
14212 |
< |
echo "${ECHO_T}$ac_m_cpu_60x" >&6 |
14213 |
< |
if test "$ac_m_cpu_60x" = yes; then |
14214 |
< |
: |
14215 |
< |
CPU_FLAGS=-mcpu=$cputype |
14216 |
< |
else |
14217 |
< |
: |
14218 |
< |
|
14219 |
< |
fi |
14220 |
< |
|
14221 |
< |
elif test "$cputype" = 750; then |
14222 |
< |
|
14223 |
< |
|
14224 |
< |
echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5 |
14225 |
< |
echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6 |
14226 |
< |
if test "${ac_cv_prog_gxx_2_95+set}" = set; then |
14227 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14228 |
< |
else |
14229 |
< |
|
14230 |
< |
cat > conftest.cpp <<EOF |
14231 |
< |
#ifdef __GNUC__ && !defined (__INTEL_COMPILER) |
14232 |
< |
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
14233 |
< |
yes; |
14234 |
< |
# endif |
14235 |
< |
#endif |
14236 |
< |
EOF |
14237 |
< |
if { ac_try='${CXX-c++} -E conftest.cpp' |
14238 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14239 |
< |
(eval $ac_try) 2>&5 |
14240 |
< |
ac_status=$? |
14241 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14242 |
< |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
14243 |
< |
ac_cv_prog_gxx_2_95=yes |
14244 |
< |
else |
14245 |
< |
ac_cv_prog_gxx_2_95=no |
14246 |
< |
fi |
14247 |
< |
|
14248 |
< |
fi |
14249 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5 |
14250 |
< |
echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6 |
14251 |
< |
if test "$ac_cv_prog_gxx_2_95" = yes; then |
14252 |
< |
: |
14253 |
< |
|
14254 |
< |
|
14255 |
< |
echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=750" >&5 |
14256 |
< |
echo $ECHO_N "checking whether ${CXX} accepts -mcpu=750... $ECHO_C" >&6 |
14257 |
< |
if test "${ac_m_cpu_750+set}" = set; then |
14258 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14259 |
< |
else |
14260 |
< |
echo 'void f(){}' > conftest.cpp |
14261 |
< |
if test -z "`${CXX} -mcpu=750 -c conftest.cpp 2>&1`"; then |
14262 |
< |
ac_m_cpu_750=yes |
14263 |
< |
else |
14264 |
< |
ac_m_cpu_750=no |
14265 |
< |
fi |
14266 |
< |
rm -f conftest* |
14267 |
< |
|
14268 |
< |
fi |
14269 |
< |
echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5 |
14270 |
< |
echo "${ECHO_T}$ac_m_cpu_750" >&6 |
14271 |
< |
if test "$ac_m_cpu_750" = yes; then |
14272 |
< |
: |
14273 |
< |
CPU_FLAGS=-mcpu=750 |
14274 |
< |
else |
14275 |
< |
: |
14276 |
< |
|
14277 |
< |
fi |
14278 |
< |
|
14279 |
< |
else |
14280 |
< |
: |
14281 |
< |
|
14282 |
< |
fi |
14283 |
< |
|
14284 |
< |
fi |
14285 |
< |
if test -z "$CPU_FLAGS"; then |
14286 |
< |
|
14287 |
< |
|
14288 |
< |
echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=powerpc" >&5 |
14289 |
< |
echo $ECHO_N "checking whether ${CXX} accepts -mcpu=powerpc... $ECHO_C" >&6 |
14290 |
< |
if test "${ac_m_cpu_powerpc+set}" = set; then |
14291 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14292 |
< |
else |
14293 |
< |
echo 'void f(){}' > conftest.cpp |
14294 |
< |
if test -z "`${CXX} -mcpu=powerpc -c conftest.cpp 2>&1`"; then |
14295 |
< |
ac_m_cpu_powerpc=yes |
14296 |
< |
else |
14297 |
< |
ac_m_cpu_powerpc=no |
14298 |
< |
fi |
14299 |
< |
rm -f conftest* |
14300 |
< |
|
14301 |
< |
fi |
14302 |
< |
echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5 |
14303 |
< |
echo "${ECHO_T}$ac_m_cpu_powerpc" >&6 |
14304 |
< |
if test "$ac_m_cpu_powerpc" = yes; then |
14305 |
< |
: |
14306 |
< |
CPU_FLAGS=-mcpu=powerpc |
14307 |
< |
else |
14308 |
< |
: |
14309 |
< |
|
14310 |
< |
fi |
14311 |
< |
|
14312 |
< |
fi |
14313 |
< |
if test -z "$CPU_FLAGS"; then |
14314 |
< |
|
14315 |
< |
|
14316 |
< |
echo "$as_me:$LINENO: checking whether ${CXX} accepts -mpowerpc" >&5 |
14317 |
< |
echo $ECHO_N "checking whether ${CXX} accepts -mpowerpc... $ECHO_C" >&6 |
14318 |
< |
if test "${ac_m_powerpc+set}" = set; then |
14319 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14320 |
< |
else |
14321 |
< |
echo 'void f(){}' > conftest.cpp |
14322 |
< |
if test -z "`${CXX} -mpowerpc -c conftest.cpp 2>&1`"; then |
14323 |
< |
ac_m_powerpc=yes |
14324 |
< |
else |
14325 |
< |
ac_m_powerpc=no |
14326 |
< |
fi |
14327 |
< |
rm -f conftest* |
14328 |
< |
|
14329 |
< |
fi |
14330 |
< |
echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5 |
14331 |
< |
echo "${ECHO_T}$ac_m_powerpc" >&6 |
14332 |
< |
if test "$ac_m_powerpc" = yes; then |
14333 |
< |
: |
14334 |
< |
CPU_FLAGS=-mpowerpc |
14335 |
< |
else |
14336 |
< |
: |
14337 |
< |
|
14338 |
< |
fi |
14339 |
< |
|
14340 |
< |
fi |
14341 |
< |
esac |
14342 |
< |
fi |
14343 |
< |
|
14344 |
< |
if test -n "$CPU_FLAGS"; then |
14345 |
< |
CXXFLAGS="$CXXFLAGS $CPU_FLAGS" |
14346 |
< |
fi |
14347 |
< |
|
14348 |
< |
if test -z "$CXXFLAGS"; then |
14349 |
< |
echo "" |
14350 |
< |
echo "**********************************************************" |
14351 |
< |
echo "* WARNING: Don't know the best CXXFLAGS for this system *" |
14352 |
< |
echo "* Use make CXXFLAGS=..., or edit the top level Makefile *" |
14353 |
< |
echo "* (otherwise, a default of CXXFLAGS=-O3 will be used) *" |
14354 |
< |
echo "**********************************************************" |
14355 |
< |
echo "" |
14356 |
< |
CXXFLAGS="-O3" |
14357 |
< |
fi |
14358 |
< |
|
14359 |
< |
|
14360 |
< |
|
14361 |
< |
echo "$as_me:$LINENO: checking whether ${CXX} accepts ${CXXFLAGS}" >&5 |
14362 |
< |
echo $ECHO_N "checking whether ${CXX} accepts ${CXXFLAGS}... $ECHO_C" >&6 |
14363 |
< |
if test "${ac_guessed_cxxflags+set}" = set; then |
14364 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14365 |
< |
else |
14366 |
< |
echo 'void f(){}' > conftest.cpp |
14367 |
< |
if test -z "`${CXX} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then |
14368 |
< |
ac_guessed_cxxflags=yes |
14369 |
< |
else |
14370 |
< |
ac_guessed_cxxflags=no |
14371 |
< |
fi |
14372 |
< |
rm -f conftest* |
14373 |
< |
|
14374 |
< |
fi |
14375 |
< |
echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5 |
14376 |
< |
echo "${ECHO_T}$ac_guessed_cxxflags" >&6 |
14377 |
< |
if test "$ac_guessed_cxxflags" = yes; then |
14378 |
< |
: |
14379 |
< |
|
14380 |
< |
else |
14381 |
< |
: |
14382 |
< |
|
14383 |
< |
echo "" |
14384 |
< |
echo "**********************************************************" |
14385 |
< |
echo "* WARNING: The guessed CXXFLAGS don't seem to work with *" |
14386 |
< |
echo "* your compiler. *" |
14387 |
< |
echo "* Use make CXXFLAGS=..., or edit the top level Makefile *" |
14388 |
< |
echo "**********************************************************" |
14389 |
< |
echo "" |
14390 |
< |
CXXFLAGS="" |
14391 |
< |
|
14392 |
< |
fi |
14393 |
< |
|
14394 |
< |
|
14395 |
< |
fi |
14396 |
< |
|
14397 |
< |
;; |
14398 |
< |
esac |
14399 |
< |
|
14400 |
< |
|
14401 |
< |
cat >>confdefs.h <<\_ACEOF |
14402 |
< |
#define OBAPI |
14403 |
< |
_ACEOF |
14404 |
< |
|
14405 |
< |
|
14406 |
< |
|
14407 |
< |
|
14408 |
< |
# Check whether --with-mpi or --without-mpi was given. |
14409 |
< |
if test "${with_mpi+set}" = set; then |
14410 |
< |
withval="$with_mpi" |
14411 |
< |
with_mpi=$withval |
14412 |
< |
else |
14413 |
< |
with_mpi="no" |
14414 |
< |
fi; |
14415 |
< |
|
14416 |
< |
case "x$with_mpi" in |
14417 |
< |
xyes | "x") USE_MPI=yes;; |
14418 |
< |
xno) USE_MPI=no ;; |
14419 |
< |
*) MPI="$with_mpi"; USE_MPI=yes ;; |
14420 |
< |
esac |
14421 |
< |
if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then |
14422 |
< |
MPI="/usr/local" |
14423 |
< |
fi |
14424 |
< |
if test "$USE_MPI" = "yes"; then |
14425 |
< |
|
14426 |
< |
|
14427 |
< |
# Set variables... |
14428 |
< |
MPI_LIB_DIR="$MPI/lib" |
14429 |
< |
MPI_INC_DIR="$MPI/include" |
14430 |
< |
|
14431 |
< |
|
14432 |
< |
|
14433 |
< |
echo "$as_me:$LINENO: checking for mpi.h" >&5 |
14434 |
< |
echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6 |
14435 |
< |
have_mpi_h=0 |
14436 |
< |
rm -f conftest* |
14437 |
< |
echo '#include <mpi.h>' > conftest.cc |
14438 |
< |
if ${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1 ; then |
14439 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
14440 |
< |
echo "${ECHO_T}yes" >&6 |
14441 |
< |
have_mpi_h=1 |
14442 |
< |
else |
14443 |
< |
if test -s conftest.out ; then |
14444 |
< |
cat conftest.out >> config.log |
14445 |
< |
fi |
14446 |
< |
echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
14447 |
< |
echo "${ECHO_T}no! Check MPI include paths" >&6 |
14448 |
< |
USE_MPI="no" |
14449 |
< |
fi |
14450 |
< |
rm -f conftest* |
14451 |
< |
if test "$have_mpi_h" = 1; then |
14452 |
< |
|
14453 |
< |
cat >>confdefs.h <<\_ACEOF |
14454 |
< |
#define HAVE_MPI_H 1 |
14455 |
< |
_ACEOF |
14456 |
< |
|
14457 |
< |
fi |
14458 |
< |
|
14459 |
< |
echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5 |
14460 |
< |
echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6 |
14461 |
< |
have_mpif_h=0 |
14462 |
< |
rm -f conftest* |
14463 |
< |
cat >conftest.$ac_ext <<EOF |
14464 |
< |
program main |
14465 |
< |
include 'mpif.h' |
14466 |
< |
end |
14467 |
< |
EOF |
14468 |
< |
if $FC -I$MPI_INC_DIR -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext > conftest.out 2>&1 ; then |
14469 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
14470 |
< |
echo "${ECHO_T}yes" >&6 |
14471 |
< |
MPI_F90_INC="$MPI_INC_DIR" |
14472 |
< |
have_mpif_h=1 |
14473 |
< |
else |
14474 |
< |
if test -s conftest.out ; then |
14475 |
< |
cat conftest.out >> config.log |
14476 |
< |
fi |
14477 |
< |
echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
14478 |
< |
echo "${ECHO_T}no! Check MPI include paths" >&6 |
14479 |
< |
USE_MPI="no" |
14480 |
< |
fi |
14481 |
< |
rm -f conftest* |
14482 |
< |
|
14483 |
< |
if test "$have_mpif_h" = 1; then |
14484 |
< |
|
14485 |
< |
cat >>confdefs.h <<\_ACEOF |
14486 |
< |
#define HAVE_MPIF_H 1 |
14487 |
< |
_ACEOF |
14488 |
< |
|
14489 |
< |
fi |
14490 |
< |
|
14491 |
< |
ac_ext=c |
14492 |
< |
ac_cpp='$CPP $CPPFLAGS' |
14493 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
14494 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
14495 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
14496 |
< |
|
14497 |
< |
ac_save_LDFLAGS=$LDFLAGS |
14498 |
< |
LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} " |
14499 |
< |
|
14500 |
< |
if test x = x"$MPI_LIB"; then |
14501 |
< |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 |
14502 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6 |
14503 |
< |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then |
14504 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14505 |
< |
else |
14506 |
< |
ac_check_lib_save_LIBS=$LIBS |
14507 |
< |
LIBS="-lmpich $LIBS" |
14508 |
< |
cat >conftest.$ac_ext <<_ACEOF |
14509 |
< |
/* confdefs.h. */ |
14510 |
< |
_ACEOF |
14511 |
< |
cat confdefs.h >>conftest.$ac_ext |
14512 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
14513 |
< |
/* end confdefs.h. */ |
14514 |
< |
|
14515 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
14516 |
< |
#ifdef __cplusplus |
14517 |
< |
extern "C" |
14518 |
< |
#endif |
14519 |
< |
/* We use char because int might match the return type of a gcc2 |
14520 |
< |
builtin and then its argument prototype would still apply. */ |
14521 |
< |
char MPI_Init (); |
14522 |
< |
#ifdef FC_DUMMY_MAIN |
14523 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
14524 |
< |
# ifdef __cplusplus |
14525 |
< |
extern "C" |
14526 |
< |
# endif |
14527 |
< |
int FC_DUMMY_MAIN() { return 1; } |
14528 |
< |
#endif |
14529 |
< |
#endif |
14530 |
< |
int |
14531 |
< |
main () |
14532 |
< |
{ |
14533 |
< |
MPI_Init (); |
14534 |
< |
; |
14535 |
< |
return 0; |
14536 |
< |
} |
14537 |
< |
_ACEOF |
14538 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
14539 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14540 |
< |
(eval $ac_link) 2>conftest.er1 |
14541 |
< |
ac_status=$? |
14542 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
14543 |
< |
rm -f conftest.er1 |
14544 |
< |
cat conftest.err >&5 |
14545 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14546 |
< |
(exit $ac_status); } && |
14547 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
14548 |
< |
|| test ! -s conftest.err' |
14549 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14550 |
< |
(eval $ac_try) 2>&5 |
14551 |
< |
ac_status=$? |
14552 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14553 |
< |
(exit $ac_status); }; } && |
14554 |
< |
{ ac_try='test -s conftest$ac_exeext' |
14555 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14556 |
< |
(eval $ac_try) 2>&5 |
14557 |
< |
ac_status=$? |
14558 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14559 |
< |
(exit $ac_status); }; }; then |
14560 |
< |
ac_cv_lib_mpich_MPI_Init=yes |
14561 |
< |
else |
14562 |
< |
echo "$as_me: failed program was:" >&5 |
14563 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
14564 |
< |
|
14565 |
< |
ac_cv_lib_mpich_MPI_Init=no |
14566 |
< |
fi |
14567 |
< |
rm -f conftest.err conftest.$ac_objext \ |
14568 |
< |
conftest$ac_exeext conftest.$ac_ext |
14569 |
< |
LIBS=$ac_check_lib_save_LIBS |
14570 |
< |
fi |
14571 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
14572 |
< |
echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6 |
14573 |
< |
if test $ac_cv_lib_mpich_MPI_Init = yes; then |
14574 |
< |
MPI_LIB="-lmpich" |
14575 |
< |
fi |
14576 |
< |
|
14577 |
< |
fi |
14578 |
< |
if test x = x"$MPI_LIB"; then |
14579 |
< |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
14580 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
14581 |
< |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
14582 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14583 |
< |
else |
14584 |
< |
ac_check_lib_save_LIBS=$LIBS |
14585 |
< |
LIBS="-lmpi $LIBS" |
14586 |
< |
cat >conftest.$ac_ext <<_ACEOF |
14587 |
< |
/* confdefs.h. */ |
14588 |
< |
_ACEOF |
14589 |
< |
cat confdefs.h >>conftest.$ac_ext |
14590 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
14591 |
< |
/* end confdefs.h. */ |
14592 |
< |
|
14593 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
14594 |
< |
#ifdef __cplusplus |
14595 |
< |
extern "C" |
14596 |
< |
#endif |
14597 |
< |
/* We use char because int might match the return type of a gcc2 |
14598 |
< |
builtin and then its argument prototype would still apply. */ |
12506 |
< |
char MPI_Init (); |
12507 |
< |
#ifdef FC_DUMMY_MAIN |
12508 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12509 |
< |
# ifdef __cplusplus |
12510 |
< |
extern "C" |
12511 |
< |
# endif |
12512 |
< |
int FC_DUMMY_MAIN() { return 1; } |
12513 |
< |
#endif |
12514 |
< |
#endif |
12515 |
< |
int |
12516 |
< |
main () |
12517 |
< |
{ |
12518 |
< |
MPI_Init (); |
12519 |
< |
; |
12520 |
< |
return 0; |
12521 |
< |
} |
12522 |
< |
_ACEOF |
12523 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
12524 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12525 |
< |
(eval $ac_link) 2>conftest.er1 |
12526 |
< |
ac_status=$? |
12527 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
12528 |
< |
rm -f conftest.er1 |
12529 |
< |
cat conftest.err >&5 |
12530 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12531 |
< |
(exit $ac_status); } && |
12532 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
12533 |
< |
|| test ! -s conftest.err' |
12534 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12535 |
< |
(eval $ac_try) 2>&5 |
12536 |
< |
ac_status=$? |
12537 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12538 |
< |
(exit $ac_status); }; } && |
12539 |
< |
{ ac_try='test -s conftest$ac_exeext' |
12540 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12541 |
< |
(eval $ac_try) 2>&5 |
12542 |
< |
ac_status=$? |
12543 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12544 |
< |
(exit $ac_status); }; }; then |
12545 |
< |
ac_cv_lib_mpi_MPI_Init=yes |
12546 |
< |
else |
12547 |
< |
echo "$as_me: failed program was:" >&5 |
12548 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
12549 |
< |
|
12550 |
< |
ac_cv_lib_mpi_MPI_Init=no |
12551 |
< |
fi |
12552 |
< |
rm -f conftest.err conftest.$ac_objext \ |
12553 |
< |
conftest$ac_exeext conftest.$ac_ext |
12554 |
< |
LIBS=$ac_check_lib_save_LIBS |
12555 |
< |
fi |
12556 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
12557 |
< |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
12558 |
< |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
12559 |
< |
MPI_LIB="-lmpi" |
12560 |
< |
fi |
12561 |
< |
|
12562 |
< |
fi |
12563 |
< |
$as_unset ac_cv_lib_mpi_MPI_Init |
12564 |
< |
if test x = x"$MPI_LIB"; then |
12565 |
< |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
12566 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
12567 |
< |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
12568 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12569 |
< |
else |
12570 |
< |
ac_check_lib_save_LIBS=$LIBS |
12571 |
< |
LIBS="-lmpi "-llam" $LIBS" |
12572 |
< |
cat >conftest.$ac_ext <<_ACEOF |
12573 |
< |
/* confdefs.h. */ |
12574 |
< |
_ACEOF |
12575 |
< |
cat confdefs.h >>conftest.$ac_ext |
12576 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
12577 |
< |
/* end confdefs.h. */ |
12578 |
< |
|
12579 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
12580 |
< |
#ifdef __cplusplus |
12581 |
< |
extern "C" |
12582 |
< |
#endif |
12583 |
< |
/* We use char because int might match the return type of a gcc2 |
12584 |
< |
builtin and then its argument prototype would still apply. */ |
12585 |
< |
char MPI_Init (); |
12586 |
< |
#ifdef FC_DUMMY_MAIN |
12587 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12588 |
< |
# ifdef __cplusplus |
12589 |
< |
extern "C" |
12590 |
< |
# endif |
12591 |
< |
int FC_DUMMY_MAIN() { return 1; } |
12592 |
< |
#endif |
12593 |
< |
#endif |
12594 |
< |
int |
12595 |
< |
main () |
12596 |
< |
{ |
12597 |
< |
MPI_Init (); |
12598 |
< |
; |
12599 |
< |
return 0; |
12600 |
< |
} |
12601 |
< |
_ACEOF |
12602 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
12603 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12604 |
< |
(eval $ac_link) 2>conftest.er1 |
12605 |
< |
ac_status=$? |
12606 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
12607 |
< |
rm -f conftest.er1 |
12608 |
< |
cat conftest.err >&5 |
12609 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12610 |
< |
(exit $ac_status); } && |
12611 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
12612 |
< |
|| test ! -s conftest.err' |
12613 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12614 |
< |
(eval $ac_try) 2>&5 |
12615 |
< |
ac_status=$? |
12616 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12617 |
< |
(exit $ac_status); }; } && |
12618 |
< |
{ ac_try='test -s conftest$ac_exeext' |
12619 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12620 |
< |
(eval $ac_try) 2>&5 |
12621 |
< |
ac_status=$? |
12622 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12623 |
< |
(exit $ac_status); }; }; then |
12624 |
< |
ac_cv_lib_mpi_MPI_Init=yes |
12625 |
< |
else |
12626 |
< |
echo "$as_me: failed program was:" >&5 |
12627 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
12628 |
< |
|
12629 |
< |
ac_cv_lib_mpi_MPI_Init=no |
12630 |
< |
fi |
12631 |
< |
rm -f conftest.err conftest.$ac_objext \ |
12632 |
< |
conftest$ac_exeext conftest.$ac_ext |
12633 |
< |
LIBS=$ac_check_lib_save_LIBS |
12634 |
< |
fi |
12635 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
12636 |
< |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
12637 |
< |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
12638 |
< |
MPI_LIB="-lmpi -llam" |
12639 |
< |
fi |
12640 |
< |
|
12641 |
< |
fi |
12642 |
< |
$as_unset ac_cv_lib_mpich_MPI_Init |
12643 |
< |
if test x = x"$MPI_LIB"; then |
12644 |
< |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 |
12645 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6 |
12646 |
< |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then |
12647 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12648 |
< |
else |
12649 |
< |
ac_check_lib_save_LIBS=$LIBS |
12650 |
< |
LIBS="-lmpich "-lpmpich" $LIBS" |
12651 |
< |
cat >conftest.$ac_ext <<_ACEOF |
12652 |
< |
/* confdefs.h. */ |
12653 |
< |
_ACEOF |
12654 |
< |
cat confdefs.h >>conftest.$ac_ext |
12655 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
12656 |
< |
/* end confdefs.h. */ |
12657 |
< |
|
12658 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
12659 |
< |
#ifdef __cplusplus |
12660 |
< |
extern "C" |
12661 |
< |
#endif |
12662 |
< |
/* We use char because int might match the return type of a gcc2 |
12663 |
< |
builtin and then its argument prototype would still apply. */ |
12664 |
< |
char MPI_Init (); |
12665 |
< |
#ifdef FC_DUMMY_MAIN |
12666 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12667 |
< |
# ifdef __cplusplus |
12668 |
< |
extern "C" |
12669 |
< |
# endif |
12670 |
< |
int FC_DUMMY_MAIN() { return 1; } |
12671 |
< |
#endif |
12672 |
< |
#endif |
12673 |
< |
int |
12674 |
< |
main () |
12675 |
< |
{ |
12676 |
< |
MPI_Init (); |
12677 |
< |
; |
12678 |
< |
return 0; |
12679 |
< |
} |
12680 |
< |
_ACEOF |
12681 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
12682 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12683 |
< |
(eval $ac_link) 2>conftest.er1 |
12684 |
< |
ac_status=$? |
12685 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
12686 |
< |
rm -f conftest.er1 |
12687 |
< |
cat conftest.err >&5 |
12688 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12689 |
< |
(exit $ac_status); } && |
12690 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
12691 |
< |
|| test ! -s conftest.err' |
12692 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12693 |
< |
(eval $ac_try) 2>&5 |
12694 |
< |
ac_status=$? |
12695 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12696 |
< |
(exit $ac_status); }; } && |
12697 |
< |
{ ac_try='test -s conftest$ac_exeext' |
12698 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12699 |
< |
(eval $ac_try) 2>&5 |
12700 |
< |
ac_status=$? |
12701 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12702 |
< |
(exit $ac_status); }; }; then |
12703 |
< |
ac_cv_lib_mpich_MPI_Init=yes |
12704 |
< |
else |
12705 |
< |
echo "$as_me: failed program was:" >&5 |
12706 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
12707 |
< |
|
12708 |
< |
ac_cv_lib_mpich_MPI_Init=no |
12709 |
< |
fi |
12710 |
< |
rm -f conftest.err conftest.$ac_objext \ |
12711 |
< |
conftest$ac_exeext conftest.$ac_ext |
12712 |
< |
LIBS=$ac_check_lib_save_LIBS |
12713 |
< |
fi |
12714 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
12715 |
< |
echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6 |
12716 |
< |
if test $ac_cv_lib_mpich_MPI_Init = yes; then |
12717 |
< |
MPI_LIB="-lmpich -lpmpich" |
12718 |
< |
fi |
12719 |
< |
|
12720 |
< |
fi |
12721 |
< |
|
12722 |
< |
$as_unset ac_cv_lib_mpi_MPI_Init |
12723 |
< |
if test x = x"$MPI_LIB"; then |
12724 |
< |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
12725 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
12726 |
< |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
12727 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12728 |
< |
else |
12729 |
< |
ac_check_lib_save_LIBS=$LIBS |
12730 |
< |
LIBS="-lmpi -llam -lpthread $LIBS" |
12731 |
< |
cat >conftest.$ac_ext <<_ACEOF |
12732 |
< |
/* confdefs.h. */ |
12733 |
< |
_ACEOF |
12734 |
< |
cat confdefs.h >>conftest.$ac_ext |
12735 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
12736 |
< |
/* end confdefs.h. */ |
12737 |
< |
|
12738 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
12739 |
< |
#ifdef __cplusplus |
12740 |
< |
extern "C" |
12741 |
< |
#endif |
12742 |
< |
/* We use char because int might match the return type of a gcc2 |
12743 |
< |
builtin and then its argument prototype would still apply. */ |
12744 |
< |
char MPI_Init (); |
12745 |
< |
#ifdef FC_DUMMY_MAIN |
12746 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12747 |
< |
# ifdef __cplusplus |
12748 |
< |
extern "C" |
12749 |
< |
# endif |
12750 |
< |
int FC_DUMMY_MAIN() { return 1; } |
12751 |
< |
#endif |
12752 |
< |
#endif |
12753 |
< |
int |
12754 |
< |
main () |
12755 |
< |
{ |
12756 |
< |
MPI_Init (); |
12757 |
< |
; |
12758 |
< |
return 0; |
12759 |
< |
} |
12760 |
< |
_ACEOF |
12761 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
12762 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12763 |
< |
(eval $ac_link) 2>conftest.er1 |
12764 |
< |
ac_status=$? |
12765 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
12766 |
< |
rm -f conftest.er1 |
12767 |
< |
cat conftest.err >&5 |
12768 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12769 |
< |
(exit $ac_status); } && |
12770 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
12771 |
< |
|| test ! -s conftest.err' |
12772 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12773 |
< |
(eval $ac_try) 2>&5 |
12774 |
< |
ac_status=$? |
12775 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12776 |
< |
(exit $ac_status); }; } && |
12777 |
< |
{ ac_try='test -s conftest$ac_exeext' |
12778 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12779 |
< |
(eval $ac_try) 2>&5 |
12780 |
< |
ac_status=$? |
12781 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12782 |
< |
(exit $ac_status); }; }; then |
12783 |
< |
ac_cv_lib_mpi_MPI_Init=yes |
12784 |
< |
else |
12785 |
< |
echo "$as_me: failed program was:" >&5 |
12786 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
12787 |
< |
|
12788 |
< |
ac_cv_lib_mpi_MPI_Init=no |
12789 |
< |
fi |
12790 |
< |
rm -f conftest.err conftest.$ac_objext \ |
12791 |
< |
conftest$ac_exeext conftest.$ac_ext |
12792 |
< |
LIBS=$ac_check_lib_save_LIBS |
12793 |
< |
fi |
12794 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
12795 |
< |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
12796 |
< |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
12797 |
< |
MPI_LIB="-lmpi -llam -lpthread" |
12798 |
< |
else |
12799 |
< |
|
12800 |
< |
{ { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5 |
12801 |
< |
echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;} |
12802 |
< |
{ (exit 1); exit 1; }; } |
12803 |
< |
USE_MPI="no" |
12804 |
< |
|
12805 |
< |
fi |
12806 |
< |
|
12807 |
< |
fi |
12808 |
< |
|
12809 |
< |
|
12810 |
< |
|
12811 |
< |
echo "$as_me:$LINENO: checking for MPI Fortran library" >&5 |
12812 |
< |
echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6 |
12813 |
< |
MPI_F90_LIB="" |
12814 |
< |
if test -f "$MPI_LIB_DIR/libfmpich.a" ; then |
12815 |
< |
MPI_F90_LIB="-lfmpich" |
12816 |
< |
elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then |
12817 |
< |
MPI_F90_LIB="-llamf77mpi" |
12818 |
< |
else |
12819 |
< |
MPI_F90_LIB=" " |
12820 |
< |
fi |
12821 |
< |
echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5 |
12822 |
< |
echo "${ECHO_T}found $MPI_F90_LIB" >&6 |
12823 |
< |
|
12824 |
< |
|
12825 |
< |
fi |
12826 |
< |
|
12827 |
< |
|
12828 |
< |
|
12829 |
< |
USE_CGAL=no |
12830 |
< |
cgal_makefile=auto |
12831 |
< |
|
12832 |
< |
# Check whether --with-cgal-makefile or --without-cgal-makefile was given. |
12833 |
< |
if test "${with_cgal_makefile+set}" = set; then |
12834 |
< |
withval="$with_cgal_makefile" |
12835 |
< |
cgal_makefile="$withval" |
12836 |
< |
fi; |
12837 |
< |
|
12838 |
< |
if test "x$cgal_makefile" != xno; then |
12839 |
< |
|
12840 |
< |
if test "x$cgal_makefile" = xauto -a "x$CGAL_MAKEFILE" != x; then |
12841 |
< |
cgal_makefile="$CGAL_MAKEFILE" |
12842 |
< |
fi |
12843 |
< |
|
12844 |
< |
echo "$as_me:$LINENO: checking for cgal_makefile: $cgal_makefile" >&5 |
12845 |
< |
echo $ECHO_N "checking for cgal_makefile: $cgal_makefile... $ECHO_C" >&6 |
12846 |
< |
|
12847 |
< |
if test -f "$cgal_makefile"; then |
12848 |
< |
|
12849 |
< |
cat >config.tmp.Makefile <<EOF |
12850 |
< |
include $cgal_makefile |
12851 |
< |
default: |
12852 |
< |
@echo CGAL_OS_COMPILER=\"\${CGAL_OS_COMPILER}\" >config.tmp.cgalvariables |
12853 |
< |
@echo CGAL_INCLDIR=\"\${CGAL_INCL_DIR}\" >>config.tmp.cgalvariables |
12854 |
< |
@echo CGAL_INCLCONFDIR=\"\${CGAL_INCL_CONF_DIR}\" >>config.tmp.cgalvariables |
12855 |
< |
@echo CGAL_LIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables |
12856 |
< |
@echo CGAL_RLIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables |
12857 |
< |
@echo CGAL_CXXFLAGS=\"\${CGAL_CXXFLAGS}\" >>config.tmp.cgalvariables |
12858 |
< |
@echo GMP_INCLDIR=\"\${GMP_INCL_DIR}\" >>config.tmp.cgalvariables |
12859 |
< |
@echo GMP_LIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables |
12860 |
< |
@echo GMP_RLIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables |
12861 |
< |
@echo LEDA_INCLDIR=\"\${LEDA_INCL_DIR}\" >>config.tmp.cgalvariables |
12862 |
< |
@echo LEDA_LIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables |
12863 |
< |
@echo LEDA_RLIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables |
12864 |
< |
EOF |
12865 |
< |
|
12866 |
< |
make -s -f config.tmp.Makefile |
12867 |
< |
. config.tmp.cgalvariables |
12868 |
< |
|
12869 |
< |
rm -f config.tmp.Makefile config.tmp.cgalvariables |
12870 |
< |
|
12871 |
< |
if test "x$CGAL_INCLDIR" = "x"; then |
12872 |
< |
CGAL_INCLDIR="" |
12873 |
< |
fi |
12874 |
< |
|
12875 |
< |
if test "x$CGAL_LIBDIR" = "x"; then |
12876 |
< |
CGAL_LIBDIR="" |
12877 |
< |
fi |
12878 |
< |
|
12879 |
< |
if test "x$CGAL_RLIBDIR" = "x"; then |
12880 |
< |
CGAL_RLIBDIR="" |
12881 |
< |
fi |
12882 |
< |
|
12883 |
< |
if test "x$LEDA_INCLDIR" = "x"; then |
12884 |
< |
LEDA_INCLDIR="" |
12885 |
< |
fi |
12886 |
< |
|
12887 |
< |
if test "x$LEDA_LIBDIR" = "x"; then |
12888 |
< |
LEDA_LIBDIR="" |
12889 |
< |
fi |
12890 |
< |
|
12891 |
< |
if test "x$LEDA_RLIBDIR" = "x"; then |
12892 |
< |
LEDA_RLIBDIR="" |
12893 |
< |
fi |
12894 |
< |
|
12895 |
< |
if test "x$GMP_INCLDIR" = "x"; then |
12896 |
< |
GMP_INCLDIR="" |
12897 |
< |
fi |
12898 |
< |
|
12899 |
< |
if test "x$GMP_LIBDIR" = "x"; then |
12900 |
< |
GMP_LIBDIR="" |
12901 |
< |
fi |
12902 |
< |
|
12903 |
< |
if test "x$GMP_RLIBDIR" = "x"; then |
12904 |
< |
GMP_RLIBDIR="" |
12905 |
< |
fi |
12906 |
< |
|
12907 |
< |
echo "$as_me:$LINENO: result: CGAL_OS_COMPILER= $CGAL_OS_COMPILER" >&5 |
12908 |
< |
echo "${ECHO_T}CGAL_OS_COMPILER= $CGAL_OS_COMPILER" >&6 |
12909 |
< |
echo "$as_me:$LINENO: result: CGAL_INCLDIR= $CGAL_INCLDIR" >&5 |
12910 |
< |
echo "${ECHO_T}CGAL_INCLDIR= $CGAL_INCLDIR" >&6 |
12911 |
< |
echo "$as_me:$LINENO: result: CGAL_INCLCONFDIR= $CGAL_INCLCONFDIR" >&5 |
12912 |
< |
echo "${ECHO_T}CGAL_INCLCONFDIR= $CGAL_INCLCONFDIR" >&6 |
12913 |
< |
echo "$as_me:$LINENO: result: CGAL_LIBDIR= $CGAL_LIBDIR" >&5 |
12914 |
< |
echo "${ECHO_T}CGAL_LIBDIR= $CGAL_LIBDIR" >&6 |
12915 |
< |
echo "$as_me:$LINENO: result: CGAL_CXXFLAGS= $CGAL_CXXFLAGS" >&5 |
12916 |
< |
echo "${ECHO_T}CGAL_CXXFLAGS= $CGAL_CXXFLAGS" >&6 |
12917 |
< |
echo "$as_me:$LINENO: result: LEDA_INCLDIR= $LEDA_INCLDIR" >&5 |
12918 |
< |
echo "${ECHO_T}LEDA_INCLDIR= $LEDA_INCLDIR" >&6 |
12919 |
< |
echo "$as_me:$LINENO: result: LEDA_LIBDIR= $LEDA_LIBDIR" >&5 |
12920 |
< |
echo "${ECHO_T}LEDA_LIBDIR= $LEDA_LIBDIR" >&6 |
12921 |
< |
echo "$as_me:$LINENO: result: GMP_INCLDIR= $GMP_INCLDIR" >&5 |
12922 |
< |
echo "${ECHO_T}GMP_INCLDIR= $GMP_INCLDIR" >&6 |
12923 |
< |
echo "$as_me:$LINENO: result: GMP_LIBDIR= $GMP_LIBDIR" >&5 |
12924 |
< |
echo "${ECHO_T}GMP_LIBDIR= $GMP_LIBDIR" >&6 |
12925 |
< |
|
12926 |
< |
ac_ext=cc |
12927 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
12928 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12929 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12930 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
12931 |
< |
|
12932 |
< |
save_CXXFLAGS="$CXXFLAGS" |
12933 |
< |
CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR" |
12934 |
< |
if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then |
12935 |
< |
echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5 |
12936 |
< |
echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6 |
12937 |
< |
if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then |
12938 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12939 |
< |
fi |
12940 |
< |
echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5 |
12941 |
< |
echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6 |
12942 |
< |
else |
12943 |
< |
# Is the header compilable? |
12944 |
< |
echo "$as_me:$LINENO: checking CGAL/Cartesian.h usability" >&5 |
12945 |
< |
echo $ECHO_N "checking CGAL/Cartesian.h usability... $ECHO_C" >&6 |
12946 |
< |
cat >conftest.$ac_ext <<_ACEOF |
12947 |
< |
/* confdefs.h. */ |
12948 |
< |
_ACEOF |
12949 |
< |
cat confdefs.h >>conftest.$ac_ext |
12950 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
12951 |
< |
/* end confdefs.h. */ |
12952 |
< |
$ac_includes_default |
12953 |
< |
#include <CGAL/Cartesian.h> |
12954 |
< |
_ACEOF |
12955 |
< |
rm -f conftest.$ac_objext |
12956 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12957 |
< |
(eval $ac_compile) 2>conftest.er1 |
12958 |
< |
ac_status=$? |
12959 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
12960 |
< |
rm -f conftest.er1 |
12961 |
< |
cat conftest.err >&5 |
12962 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12963 |
< |
(exit $ac_status); } && |
12964 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
12965 |
< |
|| test ! -s conftest.err' |
12966 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12967 |
< |
(eval $ac_try) 2>&5 |
12968 |
< |
ac_status=$? |
12969 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12970 |
< |
(exit $ac_status); }; } && |
12971 |
< |
{ ac_try='test -s conftest.$ac_objext' |
12972 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12973 |
< |
(eval $ac_try) 2>&5 |
12974 |
< |
ac_status=$? |
12975 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12976 |
< |
(exit $ac_status); }; }; then |
12977 |
< |
ac_header_compiler=yes |
12978 |
< |
else |
12979 |
< |
echo "$as_me: failed program was:" >&5 |
12980 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
12981 |
< |
|
12982 |
< |
ac_header_compiler=no |
12983 |
< |
fi |
12984 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12985 |
< |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12986 |
< |
echo "${ECHO_T}$ac_header_compiler" >&6 |
12987 |
< |
|
12988 |
< |
# Is the header present? |
12989 |
< |
echo "$as_me:$LINENO: checking CGAL/Cartesian.h presence" >&5 |
12990 |
< |
echo $ECHO_N "checking CGAL/Cartesian.h presence... $ECHO_C" >&6 |
12991 |
< |
cat >conftest.$ac_ext <<_ACEOF |
12992 |
< |
/* confdefs.h. */ |
12993 |
< |
_ACEOF |
12994 |
< |
cat confdefs.h >>conftest.$ac_ext |
12995 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
12996 |
< |
/* end confdefs.h. */ |
12997 |
< |
#include <CGAL/Cartesian.h> |
12998 |
< |
_ACEOF |
12999 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
13000 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13001 |
< |
ac_status=$? |
13002 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
13003 |
< |
rm -f conftest.er1 |
13004 |
< |
cat conftest.err >&5 |
13005 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13006 |
< |
(exit $ac_status); } >/dev/null; then |
13007 |
< |
if test -s conftest.err; then |
13008 |
< |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
13009 |
< |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
13010 |
< |
else |
13011 |
< |
ac_cpp_err= |
13012 |
< |
fi |
13013 |
< |
else |
13014 |
< |
ac_cpp_err=yes |
13015 |
< |
fi |
13016 |
< |
if test -z "$ac_cpp_err"; then |
13017 |
< |
ac_header_preproc=yes |
13018 |
< |
else |
13019 |
< |
echo "$as_me: failed program was:" >&5 |
13020 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
13021 |
< |
|
13022 |
< |
ac_header_preproc=no |
13023 |
< |
fi |
13024 |
< |
rm -f conftest.err conftest.$ac_ext |
13025 |
< |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13026 |
< |
echo "${ECHO_T}$ac_header_preproc" >&6 |
13027 |
< |
|
13028 |
< |
# So? What about this header? |
13029 |
< |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
13030 |
< |
yes:no: ) |
13031 |
< |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
13032 |
< |
echo "$as_me: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
13033 |
< |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&5 |
13034 |
< |
echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&2;} |
13035 |
< |
ac_header_preproc=yes |
13036 |
< |
;; |
13037 |
< |
no:yes:* ) |
13038 |
< |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&5 |
13039 |
< |
echo "$as_me: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&2;} |
13040 |
< |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: check for missing prerequisite headers?" >&5 |
13041 |
< |
echo "$as_me: WARNING: CGAL/Cartesian.h: check for missing prerequisite headers?" >&2;} |
13042 |
< |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&5 |
13043 |
< |
echo "$as_me: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&2;} |
13044 |
< |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: section \"Present But Cannot Be Compiled\"" >&5 |
13045 |
< |
echo "$as_me: WARNING: CGAL/Cartesian.h: section \"Present But Cannot Be Compiled\"" >&2;} |
13046 |
< |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&5 |
13047 |
< |
echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&2;} |
13048 |
< |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&5 |
13049 |
< |
echo "$as_me: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&2;} |
13050 |
< |
( |
13051 |
< |
cat <<\_ASBOX |
13052 |
< |
## ------------------------------ ## |
13053 |
< |
## Report this to gezelter@nd.edu ## |
13054 |
< |
## ------------------------------ ## |
13055 |
< |
_ASBOX |
13056 |
< |
) | |
13057 |
< |
sed "s/^/$as_me: WARNING: /" >&2 |
13058 |
< |
;; |
13059 |
< |
esac |
13060 |
< |
echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5 |
13061 |
< |
echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6 |
13062 |
< |
if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then |
13063 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13064 |
< |
else |
13065 |
< |
ac_cv_header_CGAL_Cartesian_h=$ac_header_preproc |
13066 |
< |
fi |
13067 |
< |
echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5 |
13068 |
< |
echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6 |
13069 |
< |
|
13070 |
< |
fi |
13071 |
< |
if test $ac_cv_header_CGAL_Cartesian_h = yes; then |
13072 |
< |
cgal=yes |
13073 |
< |
else |
13074 |
< |
cgal=no |
13075 |
< |
fi |
13076 |
< |
|
13077 |
< |
|
13078 |
< |
CXXFLAGS="$save_CXXFLAGS" |
13079 |
< |
|
13080 |
< |
if test "x$cgal" = xyes; then |
13081 |
< |
echo "$as_me:$LINENO: checking for CGAL version" >&5 |
13082 |
< |
echo $ECHO_N "checking for CGAL version... $ECHO_C" >&6 |
13083 |
< |
LOCATION=${CGAL_INCLDIR} |
13084 |
< |
LOCATION=${LOCATION:-/usr/include} |
13085 |
< |
if test -f $LOCATION/CGAL/version.h; then |
13086 |
< |
CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/version.h | sed 's/[^0-9\.]*//g'` |
13087 |
< |
else |
13088 |
< |
CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/config.h | sed 's/[^0-9\.]*//g'` |
13089 |
< |
fi |
13090 |
< |
if echo $CGAL_VERSION | grep -q "^[3456789]"; then |
13091 |
< |
echo "$as_me:$LINENO: result: ($CGAL_VERSION) yes" >&5 |
13092 |
< |
echo "${ECHO_T}($CGAL_VERSION) yes" >&6 |
13093 |
< |
else |
13094 |
< |
echo "$as_me:$LINENO: result: ($CGAL_VERSION) no" >&5 |
13095 |
< |
echo "${ECHO_T}($CGAL_VERSION) no" >&6 |
13096 |
< |
cgal=no |
13097 |
< |
fi |
13098 |
< |
fi |
13099 |
< |
|
13100 |
< |
if test "x$cgal" = xyes; then |
13101 |
< |
CGAL_LIBS="-lCGAL" |
13102 |
< |
echo "$as_me:$LINENO: checking whether CGAL uses LEDA" >&5 |
13103 |
< |
echo $ECHO_N "checking whether CGAL uses LEDA... $ECHO_C" >&6 |
13104 |
< |
if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_LEDA; then |
13105 |
< |
CGAL_USES_LEDA=yes |
13106 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
13107 |
< |
echo "${ECHO_T}yes" >&6 |
13108 |
< |
CGAL_DEFINES="-DCGAL_USE_LEDA -DLEDA_PREFIX" |
13109 |
< |
else |
13110 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
13111 |
< |
echo "${ECHO_T}no" >&6 |
13112 |
< |
CGAL_USES_LEDA=no |
13113 |
< |
fi |
13114 |
< |
|
13115 |
< |
echo "$as_me:$LINENO: checking whether CGAL uses GMP" >&5 |
13116 |
< |
echo $ECHO_N "checking whether CGAL uses GMP... $ECHO_C" >&6 |
13117 |
< |
if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_GMP; then |
13118 |
< |
CGAL_USES_GMP=yes |
13119 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
13120 |
< |
echo "${ECHO_T}yes" >&6 |
13121 |
< |
CGAL_DEFINES="-DCGAL_USE_GMP $CGAL_DEFINES" |
13122 |
< |
else |
13123 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
13124 |
< |
echo "${ECHO_T}no" >&6 |
13125 |
< |
CGAL_USES_GMP=no |
13126 |
< |
fi |
13127 |
< |
|
13128 |
< |
CGAL_LIBS="$CGAL_LIBS -lm" |
13129 |
< |
|
13130 |
< |
CGAL_CXXFLAGS="-ftemplate-depth-50" |
13131 |
< |
|
13132 |
< |
echo "$as_me:$LINENO: result: CGAL_USES_LEDA= $CGAL_USES_LEDA" >&5 |
13133 |
< |
echo "${ECHO_T}CGAL_USES_LEDA= $CGAL_USES_LEDA" >&6 |
13134 |
< |
echo "$as_me:$LINENO: result: CGAL_USES_GMP = $CGAL_USES_GMP" >&5 |
13135 |
< |
echo "${ECHO_T}CGAL_USES_GMP = $CGAL_USES_GMP" >&6 |
13136 |
< |
echo "$as_me:$LINENO: result: CGAL_INCLDIR = $CGAL_INCLDIR" >&5 |
13137 |
< |
echo "${ECHO_T}CGAL_INCLDIR = $CGAL_INCLDIR" >&6 |
13138 |
< |
echo "$as_me:$LINENO: result: CGAL_LIBDIR = $CGAL_LIBDIR" >&5 |
13139 |
< |
echo "${ECHO_T}CGAL_LIBDIR = $CGAL_LIBDIR" >&6 |
13140 |
< |
echo "$as_me:$LINENO: result: CGAL_DEFINES = $CGAL_DEFINES" >&5 |
13141 |
< |
echo "${ECHO_T}CGAL_DEFINES = $CGAL_DEFINES" >&6 |
13142 |
< |
echo "$as_me:$LINENO: result: CGAL_CXXFLAGS = $CGAL_CXXFLAGS" >&5 |
13143 |
< |
echo "${ECHO_T}CGAL_CXXFLAGS = $CGAL_CXXFLAGS" >&6 |
13144 |
< |
echo "$as_me:$LINENO: result: CGAL_LIBS = $CGAL_LIBS" >&5 |
13145 |
< |
echo "${ECHO_T}CGAL_LIBS = $CGAL_LIBS" >&6 |
13146 |
< |
fi |
13147 |
< |
|
13148 |
< |
if test "x$cgal" = xyes; then |
13149 |
< |
save_LIBS="$LIBS" |
13150 |
< |
LIBS="$LIBS -L$CGAL_LIBDIR" |
13151 |
< |
if test "x$CGAL_USES_LEDA" = xyes; then |
13152 |
< |
LIBS="-lL $LIBS -L$LEDA_LIBDIR" |
13153 |
< |
fi |
13154 |
< |
# if test "x$CGAL_USES_GMP" = xyes; then |
13155 |
< |
# LIBS="-lgmp $LIBS $GMP_LIBDIR" |
13156 |
< |
# fi |
13157 |
< |
echo "$as_me:$LINENO: checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL" >&5 |
13158 |
< |
echo $ECHO_N "checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL... $ECHO_C" >&6 |
13159 |
< |
save_CXXFLAGS_CHECK_CXX_LIB="$CXXFLAGS" |
13160 |
< |
CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR" |
13161 |
< |
save_LIBS_CHECK_CXX_LIB="$LIBS" |
13162 |
< |
LIBS="-lCGAL $LIBS" |
13163 |
< |
cat >conftest.$ac_ext <<_ACEOF |
13164 |
< |
/* confdefs.h. */ |
13165 |
< |
_ACEOF |
13166 |
< |
cat confdefs.h >>conftest.$ac_ext |
13167 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
13168 |
< |
/* end confdefs.h. */ |
13169 |
< |
#include <CGAL/Cartesian.h> |
13170 |
< |
#ifdef FC_DUMMY_MAIN |
13171 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
13172 |
< |
# ifdef __cplusplus |
13173 |
< |
extern "C" |
13174 |
< |
# endif |
13175 |
< |
int FC_DUMMY_MAIN() { return 1; } |
13176 |
< |
#endif |
13177 |
< |
#endif |
13178 |
< |
int |
13179 |
< |
main () |
13180 |
< |
{ |
13181 |
< |
::CGAL::Cartesian<int>::Point_2 P |
13182 |
< |
; |
13183 |
< |
return 0; |
13184 |
< |
} |
13185 |
< |
_ACEOF |
13186 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
13187 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13188 |
< |
(eval $ac_link) 2>conftest.er1 |
13189 |
< |
ac_status=$? |
13190 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
13191 |
< |
rm -f conftest.er1 |
13192 |
< |
cat conftest.err >&5 |
13193 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13194 |
< |
(exit $ac_status); } && |
13195 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
13196 |
< |
|| test ! -s conftest.err' |
13197 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13198 |
< |
(eval $ac_try) 2>&5 |
13199 |
< |
ac_status=$? |
13200 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13201 |
< |
(exit $ac_status); }; } && |
13202 |
< |
{ ac_try='test -s conftest$ac_exeext' |
13203 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13204 |
< |
(eval $ac_try) 2>&5 |
13205 |
< |
ac_status=$? |
13206 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13207 |
< |
(exit $ac_status); }; }; then |
13208 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
13209 |
< |
echo "${ECHO_T}yes" >&6 |
13210 |
< |
cgal=yes |
13211 |
< |
else |
13212 |
< |
echo "$as_me: failed program was:" >&5 |
13213 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
13214 |
< |
|
13215 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
13216 |
< |
echo "${ECHO_T}no" >&6 |
13217 |
< |
cgal=no |
13218 |
< |
fi |
13219 |
< |
rm -f conftest.err conftest.$ac_objext \ |
13220 |
< |
conftest$ac_exeext conftest.$ac_ext |
13221 |
< |
CXXFLAGS="$save_CXXFLAGS_CHECK_CXX_LIB" |
13222 |
< |
LIBS="$save_LIBS_CHECK_CXX_LIB" |
13223 |
< |
LIBS="$save_LIBS" |
13224 |
< |
fi |
13225 |
< |
|
13226 |
< |
fi |
13227 |
< |
ac_ext=c |
13228 |
< |
ac_cpp='$CPP $CPPFLAGS' |
13229 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13230 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13231 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
13232 |
< |
|
13233 |
< |
|
13234 |
< |
fi |
13235 |
< |
|
13236 |
< |
if test "x$cgal" = xyes; then |
13237 |
< |
USE_CGAL=yes |
13238 |
< |
|
13239 |
< |
cat >>confdefs.h <<\_ACEOF |
13240 |
< |
#define HAVE_CGAL 1 |
13241 |
< |
_ACEOF |
13242 |
< |
|
13243 |
< |
|
13244 |
< |
cat >>confdefs.h <<_ACEOF |
13245 |
< |
#define CGAL_VERSION $CGAL_VERSION |
13246 |
< |
_ACEOF |
13247 |
< |
|
13248 |
< |
if ! echo $CGAL_VERSION | grep -q "^3.0"; then |
13249 |
< |
{ echo "$as_me:$LINENO: WARNING: *****************************************************" >&5 |
13250 |
< |
echo "$as_me: WARNING: *****************************************************" >&2;} |
13251 |
< |
{ echo "$as_me:$LINENO: WARNING: *** Warning: Your CGAL version is newer than the ***" >&5 |
13252 |
< |
echo "$as_me: WARNING: *** Warning: Your CGAL version is newer than the ***" >&2;} |
13253 |
< |
{ echo "$as_me:$LINENO: WARNING: *** supported versions. It may still work though. ***" >&5 |
13254 |
< |
echo "$as_me: WARNING: *** supported versions. It may still work though. ***" >&2;} |
13255 |
< |
{ echo "$as_me:$LINENO: WARNING: *****************************************************" >&5 |
13256 |
< |
echo "$as_me: WARNING: *****************************************************" >&2;} |
13257 |
< |
fi |
13258 |
< |
else |
13259 |
< |
if test "x$cgal_makefile" != xno; then |
13260 |
< |
echo "$as_me:$LINENO: result: No CGAL support. These are not the droids you want." >&5 |
13261 |
< |
echo "${ECHO_T}No CGAL support. These are not the droids you want." >&6 |
13262 |
< |
fi |
13263 |
< |
CGAL_INCLDIR= |
13264 |
< |
CGAL_LIBDIR= |
13265 |
< |
CGAL_RLIBDIR= |
13266 |
< |
CGAL_DEFINES= |
13267 |
< |
CGAL_CXXFLAGS= |
13268 |
< |
CGAL_LIBS= |
13269 |
< |
fi |
13270 |
< |
|
13271 |
< |
|
13272 |
< |
CGAL_INC_DIR="${CGAL_INCLDIR} ${CGAL_INCLCONFDIR}" |
13273 |
< |
|
13274 |
< |
CGAL_LIB_DIR=${CGAL_LIBDIR} |
13275 |
< |
|
13276 |
< |
CGAL_RLIB_DIR=${CGAL_RLIBDIR} |
13277 |
< |
|
13278 |
< |
|
13279 |
< |
|
13280 |
< |
|
13281 |
< |
|
13282 |
< |
|
13283 |
< |
|
13284 |
< |
# Check whether --enable-doxygen or --disable-doxygen was given. |
13285 |
< |
if test "${enable_doxygen+set}" = set; then |
13286 |
< |
enableval="$enable_doxygen" |
13287 |
< |
|
13288 |
< |
fi; |
13289 |
< |
# Check whether --enable-dot or --disable-dot was given. |
13290 |
< |
if test "${enable_dot+set}" = set; then |
13291 |
< |
enableval="$enable_dot" |
13292 |
< |
|
13293 |
< |
fi; |
13294 |
< |
# Check whether --enable-html-docs or --disable-html-docs was given. |
13295 |
< |
if test "${enable_html_docs+set}" = set; then |
13296 |
< |
enableval="$enable_html_docs" |
13297 |
< |
|
13298 |
< |
else |
13299 |
< |
enable_html_docs=yes |
13300 |
< |
fi; |
13301 |
< |
# Check whether --enable-latex-docs or --disable-latex-docs was given. |
13302 |
< |
if test "${enable_latex_docs+set}" = set; then |
13303 |
< |
enableval="$enable_latex_docs" |
13304 |
< |
|
13305 |
< |
else |
13306 |
< |
enable_latex_docs=no |
13307 |
< |
fi; |
13308 |
< |
if test "x$enable_doxygen" = xno; then |
13309 |
< |
enable_doc=no |
13310 |
< |
else |
13311 |
< |
# Extract the first word of "doxygen", so it can be a program name with args. |
13312 |
< |
set dummy doxygen; ac_word=$2 |
13313 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13314 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
13315 |
< |
if test "${ac_cv_path_DOXYGEN+set}" = set; then |
13316 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13317 |
< |
else |
13318 |
< |
case $DOXYGEN in |
13319 |
< |
[\\/]* | ?:[\\/]*) |
13320 |
< |
ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
13321 |
< |
;; |
13322 |
< |
*) |
13323 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13324 |
< |
for as_dir in $PATH |
13325 |
< |
do |
13326 |
< |
IFS=$as_save_IFS |
13327 |
< |
test -z "$as_dir" && as_dir=. |
13328 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
13329 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
13330 |
< |
ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
13331 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13332 |
< |
break 2 |
13333 |
< |
fi |
13334 |
< |
done |
13335 |
< |
done |
13336 |
< |
|
13337 |
< |
;; |
13338 |
< |
esac |
13339 |
< |
fi |
13340 |
< |
DOXYGEN=$ac_cv_path_DOXYGEN |
13341 |
< |
|
13342 |
< |
if test -n "$DOXYGEN"; then |
13343 |
< |
echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
13344 |
< |
echo "${ECHO_T}$DOXYGEN" >&6 |
13345 |
< |
else |
13346 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
13347 |
< |
echo "${ECHO_T}no" >&6 |
13348 |
< |
fi |
13349 |
< |
|
13350 |
< |
if test "x$DOXYGEN" = x; then |
13351 |
< |
if test "x$enable_doxygen" = xyes; then |
13352 |
< |
{ { echo "$as_me:$LINENO: error: could not find doxygen" >&5 |
13353 |
< |
echo "$as_me: error: could not find doxygen" >&2;} |
13354 |
< |
{ (exit 1); exit 1; }; } |
13355 |
< |
fi |
13356 |
< |
enable_doc=no |
13357 |
< |
else |
13358 |
< |
enable_doc=yes |
13359 |
< |
# Extract the first word of "dot", so it can be a program name with args. |
13360 |
< |
set dummy dot; ac_word=$2 |
13361 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13362 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
13363 |
< |
if test "${ac_cv_path_DOT+set}" = set; then |
13364 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13365 |
< |
else |
13366 |
< |
case $DOT in |
13367 |
< |
[\\/]* | ?:[\\/]*) |
13368 |
< |
ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
13369 |
< |
;; |
13370 |
< |
*) |
13371 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13372 |
< |
for as_dir in $PATH |
13373 |
< |
do |
13374 |
< |
IFS=$as_save_IFS |
13375 |
< |
test -z "$as_dir" && as_dir=. |
13376 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
13377 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
13378 |
< |
ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
13379 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13380 |
< |
break 2 |
13381 |
< |
fi |
13382 |
< |
done |
13383 |
< |
done |
13384 |
< |
|
13385 |
< |
;; |
13386 |
< |
esac |
13387 |
< |
fi |
13388 |
< |
DOT=$ac_cv_path_DOT |
13389 |
< |
|
13390 |
< |
if test -n "$DOT"; then |
13391 |
< |
echo "$as_me:$LINENO: result: $DOT" >&5 |
13392 |
< |
echo "${ECHO_T}$DOT" >&6 |
13393 |
< |
else |
13394 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
13395 |
< |
echo "${ECHO_T}no" >&6 |
13396 |
< |
fi |
13397 |
< |
|
13398 |
< |
fi |
13399 |
< |
fi |
13400 |
< |
|
13401 |
< |
if test "x$enable_doc" = xyes; then |
13402 |
< |
DOC=1 |
13403 |
< |
else |
13404 |
< |
DOC=0 |
13405 |
< |
fi |
13406 |
< |
|
13407 |
< |
|
13408 |
< |
if test x$DOT = x; then |
13409 |
< |
if test "x$enable_dot" = xyes; then |
13410 |
< |
{ { echo "$as_me:$LINENO: error: could not find dot" >&5 |
13411 |
< |
echo "$as_me: error: could not find dot" >&2;} |
13412 |
< |
{ (exit 1); exit 1; }; } |
13413 |
< |
fi |
13414 |
< |
enable_dot=no |
13415 |
< |
else |
13416 |
< |
enable_dot=yes |
13417 |
< |
fi |
13418 |
< |
|
13419 |
< |
|
13420 |
< |
|
13421 |
< |
|
13422 |
< |
|
13423 |
< |
|
13424 |
< |
|
13425 |
< |
|
13426 |
< |
|
13427 |
< |
|
13428 |
< |
|
13429 |
< |
|
13430 |
< |
|
13431 |
< |
|
13432 |
< |
|
13433 |
< |
|
13434 |
< |
|
13435 |
< |
|
13436 |
< |
|
13437 |
< |
ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/applications/nanoRodBuilder/Makefile scripts/filepp" |
13438 |
< |
|
13439 |
< |
|
13440 |
< |
cat >confcache <<\_ACEOF |
13441 |
< |
# This file is a shell script that caches the results of configure |
13442 |
< |
# tests run on this system so they can be shared between configure |
13443 |
< |
# scripts and configure runs, see configure's option --config-cache. |
13444 |
< |
# It is not useful on other systems. If it contains results you don't |
13445 |
< |
# want to keep, you may remove or edit it. |
13446 |
< |
# |
13447 |
< |
# config.status only pays attention to the cache file if you give it |
13448 |
< |
# the --recheck option to rerun configure. |
13449 |
< |
# |
13450 |
< |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
13451 |
< |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
13452 |
< |
# following values. |
13453 |
< |
|
13454 |
< |
_ACEOF |
13455 |
< |
|
13456 |
< |
# The following way of writing the cache mishandles newlines in values, |
13457 |
< |
# but we know of no workaround that is simple, portable, and efficient. |
13458 |
< |
# So, don't put newlines in cache variables' values. |
13459 |
< |
# Ultrix sh set writes to stderr and can't be redirected directly, |
13460 |
< |
# and sets the high bit in the cache file unless we assign to the vars. |
13461 |
< |
{ |
13462 |
< |
(set) 2>&1 | |
13463 |
< |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
13464 |
< |
*ac_space=\ *) |
13465 |
< |
# `set' does not quote correctly, so add quotes (double-quote |
13466 |
< |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
13467 |
< |
sed -n \ |
13468 |
< |
"s/'/'\\\\''/g; |
13469 |
< |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
13470 |
< |
;; |
13471 |
< |
*) |
13472 |
< |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
13473 |
< |
sed -n \ |
13474 |
< |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
13475 |
< |
;; |
13476 |
< |
esac; |
13477 |
< |
} | |
13478 |
< |
sed ' |
13479 |
< |
t clear |
13480 |
< |
: clear |
13481 |
< |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
13482 |
< |
t end |
13483 |
< |
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
13484 |
< |
: end' >>confcache |
13485 |
< |
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
13486 |
< |
if test -w $cache_file; then |
13487 |
< |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
13488 |
< |
cat confcache >$cache_file |
13489 |
< |
else |
13490 |
< |
echo "not updating unwritable cache $cache_file" |
13491 |
< |
fi |
13492 |
< |
fi |
13493 |
< |
rm -f confcache |
13494 |
< |
|
13495 |
< |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
13496 |
< |
# Let make expand exec_prefix. |
13497 |
< |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
13498 |
< |
|
13499 |
< |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
13500 |
< |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
13501 |
< |
# trailing colons and then remove the whole line if VPATH becomes empty |
13502 |
< |
# (actually we leave an empty line to preserve line numbers). |
13503 |
< |
if test "x$srcdir" = x.; then |
13504 |
< |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
13505 |
< |
s/:*\$(srcdir):*/:/; |
13506 |
< |
s/:*\${srcdir}:*/:/; |
13507 |
< |
s/:*@srcdir@:*/:/; |
13508 |
< |
s/^\([^=]*=[ ]*\):*/\1/; |
13509 |
< |
s/:*$//; |
13510 |
< |
s/^[^=]*=[ ]*$//; |
13511 |
< |
}' |
13512 |
< |
fi |
13513 |
< |
|
13514 |
< |
DEFS=-DHAVE_CONFIG_H |
13515 |
< |
|
13516 |
< |
ac_libobjs= |
13517 |
< |
ac_ltlibobjs= |
13518 |
< |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
13519 |
< |
# 1. Remove the extension, and $U if already installed. |
13520 |
< |
ac_i=`echo "$ac_i" | |
13521 |
< |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
13522 |
< |
# 2. Add them. |
13523 |
< |
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
13524 |
< |
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
13525 |
< |
done |
13526 |
< |
LIBOBJS=$ac_libobjs |
13527 |
< |
|
13528 |
< |
LTLIBOBJS=$ac_ltlibobjs |
13529 |
< |
|
13530 |
< |
|
13531 |
< |
|
13532 |
< |
: ${CONFIG_STATUS=./config.status} |
13533 |
< |
ac_clean_files_save=$ac_clean_files |
13534 |
< |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
13535 |
< |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
13536 |
< |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
13537 |
< |
cat >$CONFIG_STATUS <<_ACEOF |
13538 |
< |
#! $SHELL |
13539 |
< |
# Generated by $as_me. |
13540 |
< |
# Run this file to recreate the current configuration. |
13541 |
< |
# Compiler output produced by configure, useful for debugging |
13542 |
< |
# configure, is in config.log if it exists. |
13543 |
< |
|
13544 |
< |
debug=false |
13545 |
< |
ac_cs_recheck=false |
13546 |
< |
ac_cs_silent=false |
13547 |
< |
SHELL=\${CONFIG_SHELL-$SHELL} |
13548 |
< |
_ACEOF |
13549 |
< |
|
13550 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
13551 |
< |
## --------------------- ## |
13552 |
< |
## M4sh Initialization. ## |
13553 |
< |
## --------------------- ## |
13554 |
< |
|
13555 |
< |
# Be Bourne compatible |
13556 |
< |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
13557 |
< |
emulate sh |
13558 |
< |
NULLCMD=: |
13559 |
< |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
13560 |
< |
# is contrary to our usage. Disable this feature. |
13561 |
< |
alias -g '${1+"$@"}'='"$@"' |
13562 |
< |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
13563 |
< |
set -o posix |
13564 |
< |
fi |
13565 |
< |
DUALCASE=1; export DUALCASE # for MKS sh |
13566 |
< |
|
13567 |
< |
# Support unset when possible. |
13568 |
< |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
13569 |
< |
as_unset=unset |
13570 |
< |
else |
13571 |
< |
as_unset=false |
13572 |
< |
fi |
13573 |
< |
|
13574 |
< |
|
13575 |
< |
# Work around bugs in pre-3.0 UWIN ksh. |
13576 |
< |
$as_unset ENV MAIL MAILPATH |
13577 |
< |
PS1='$ ' |
13578 |
< |
PS2='> ' |
13579 |
< |
PS4='+ ' |
13580 |
< |
|
13581 |
< |
# NLS nuisances. |
13582 |
< |
for as_var in \ |
13583 |
< |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
13584 |
< |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
13585 |
< |
LC_TELEPHONE LC_TIME |
13586 |
< |
do |
13587 |
< |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
13588 |
< |
eval $as_var=C; export $as_var |
13589 |
< |
else |
13590 |
< |
$as_unset $as_var |
13591 |
< |
fi |
13592 |
< |
done |
13593 |
< |
|
13594 |
< |
# Required to use basename. |
13595 |
< |
if expr a : '\(a\)' >/dev/null 2>&1; then |
13596 |
< |
as_expr=expr |
13597 |
< |
else |
13598 |
< |
as_expr=false |
13599 |
< |
fi |
13600 |
< |
|
13601 |
< |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
13602 |
< |
as_basename=basename |
13603 |
< |
else |
13604 |
< |
as_basename=false |
13605 |
< |
fi |
13606 |
< |
|
13607 |
< |
|
13608 |
< |
# Name of the executable. |
13609 |
< |
as_me=`$as_basename "$0" || |
13610 |
< |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
13611 |
< |
X"$0" : 'X\(//\)$' \| \ |
13612 |
< |
X"$0" : 'X\(/\)$' \| \ |
13613 |
< |
. : '\(.\)' 2>/dev/null || |
13614 |
< |
echo X/"$0" | |
13615 |
< |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
13616 |
< |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
13617 |
< |
/^X\/\(\/\).*/{ s//\1/; q; } |
13618 |
< |
s/.*/./; q'` |
13619 |
< |
|
13620 |
< |
|
13621 |
< |
# PATH needs CR, and LINENO needs CR and PATH. |
13622 |
< |
# Avoid depending upon Character Ranges. |
13623 |
< |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
13624 |
< |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
13625 |
< |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
13626 |
< |
as_cr_digits='0123456789' |
13627 |
< |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
13628 |
< |
|
13629 |
< |
# The user is always right. |
13630 |
< |
if test "${PATH_SEPARATOR+set}" != set; then |
13631 |
< |
echo "#! /bin/sh" >conf$$.sh |
13632 |
< |
echo "exit 0" >>conf$$.sh |
13633 |
< |
chmod +x conf$$.sh |
13634 |
< |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
13635 |
< |
PATH_SEPARATOR=';' |
13636 |
< |
else |
13637 |
< |
PATH_SEPARATOR=: |
13638 |
< |
fi |
13639 |
< |
rm -f conf$$.sh |
13640 |
< |
fi |
13641 |
< |
|
13642 |
< |
|
13643 |
< |
as_lineno_1=$LINENO |
13644 |
< |
as_lineno_2=$LINENO |
13645 |
< |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
13646 |
< |
test "x$as_lineno_1" != "x$as_lineno_2" && |
13647 |
< |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
13648 |
< |
# Find who we are. Look in the path if we contain no path at all |
13649 |
< |
# relative or not. |
13650 |
< |
case $0 in |
13651 |
< |
*[\\/]* ) as_myself=$0 ;; |
13652 |
< |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13653 |
< |
for as_dir in $PATH |
13654 |
< |
do |
13655 |
< |
IFS=$as_save_IFS |
13656 |
< |
test -z "$as_dir" && as_dir=. |
13657 |
< |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
13658 |
< |
done |
13659 |
< |
|
13660 |
< |
;; |
13661 |
< |
esac |
13662 |
< |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
13663 |
< |
# in which case we are not to be found in the path. |
13664 |
< |
if test "x$as_myself" = x; then |
13665 |
< |
as_myself=$0 |
13666 |
< |
fi |
13667 |
< |
if test ! -f "$as_myself"; then |
13668 |
< |
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
13669 |
< |
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
13670 |
< |
{ (exit 1); exit 1; }; } |
13671 |
< |
fi |
13672 |
< |
case $CONFIG_SHELL in |
13673 |
< |
'') |
13674 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13675 |
< |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
13676 |
< |
do |
13677 |
< |
IFS=$as_save_IFS |
13678 |
< |
test -z "$as_dir" && as_dir=. |
13679 |
< |
for as_base in sh bash ksh sh5; do |
13680 |
< |
case $as_dir in |
13681 |
< |
/*) |
13682 |
< |
if ("$as_dir/$as_base" -c ' |
13683 |
< |
as_lineno_1=$LINENO |
13684 |
< |
as_lineno_2=$LINENO |
13685 |
< |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
13686 |
< |
test "x$as_lineno_1" != "x$as_lineno_2" && |
13687 |
< |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
13688 |
< |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
13689 |
< |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
13690 |
< |
CONFIG_SHELL=$as_dir/$as_base |
13691 |
< |
export CONFIG_SHELL |
13692 |
< |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
13693 |
< |
fi;; |
13694 |
< |
esac |
13695 |
< |
done |
13696 |
< |
done |
13697 |
< |
;; |
13698 |
< |
esac |
13699 |
< |
|
13700 |
< |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
13701 |
< |
# uniformly replaced by the line number. The first 'sed' inserts a |
13702 |
< |
# line-number line before each line; the second 'sed' does the real |
13703 |
< |
# work. The second script uses 'N' to pair each line-number line |
13704 |
< |
# with the numbered line, and appends trailing '-' during |
13705 |
< |
# substitution so that $LINENO is not a special case at line end. |
13706 |
< |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
13707 |
< |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
13708 |
< |
sed '=' <$as_myself | |
13709 |
< |
sed ' |
13710 |
< |
N |
13711 |
< |
s,$,-, |
13712 |
< |
: loop |
13713 |
< |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
13714 |
< |
t loop |
13715 |
< |
s,-$,, |
13716 |
< |
s,^['$as_cr_digits']*\n,, |
13717 |
< |
' >$as_me.lineno && |
13718 |
< |
chmod +x $as_me.lineno || |
13719 |
< |
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
13720 |
< |
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
13721 |
< |
{ (exit 1); exit 1; }; } |
13722 |
< |
|
13723 |
< |
# Don't try to exec as it changes $[0], causing all sort of problems |
13724 |
< |
# (the dirname of $[0] is not the place where we might find the |
13725 |
< |
# original and so on. Autoconf is especially sensible to this). |
13726 |
< |
. ./$as_me.lineno |
13727 |
< |
# Exit status is that of the last command. |
13728 |
< |
exit |
13729 |
< |
} |
13730 |
< |
|
13731 |
< |
|
13732 |
< |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
13733 |
< |
*c*,-n*) ECHO_N= ECHO_C=' |
13734 |
< |
' ECHO_T=' ' ;; |
13735 |
< |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
13736 |
< |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
13737 |
< |
esac |
13738 |
< |
|
13739 |
< |
if expr a : '\(a\)' >/dev/null 2>&1; then |
13740 |
< |
as_expr=expr |
13741 |
< |
else |
13742 |
< |
as_expr=false |
13743 |
< |
fi |
13744 |
< |
|
13745 |
< |
rm -f conf$$ conf$$.exe conf$$.file |
13746 |
< |
echo >conf$$.file |
13747 |
< |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
13748 |
< |
# We could just check for DJGPP; but this test a) works b) is more generic |
13749 |
< |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
13750 |
< |
if test -f conf$$.exe; then |
13751 |
< |
# Don't use ln at all; we don't have any links |
13752 |
< |
as_ln_s='cp -p' |
13753 |
< |
else |
13754 |
< |
as_ln_s='ln -s' |
13755 |
< |
fi |
13756 |
< |
elif ln conf$$.file conf$$ 2>/dev/null; then |
13757 |
< |
as_ln_s=ln |
13758 |
< |
else |
13759 |
< |
as_ln_s='cp -p' |
13760 |
< |
fi |
13761 |
< |
rm -f conf$$ conf$$.exe conf$$.file |
13762 |
< |
|
13763 |
< |
if mkdir -p . 2>/dev/null; then |
13764 |
< |
as_mkdir_p=: |
13765 |
< |
else |
13766 |
< |
test -d ./-p && rmdir ./-p |
13767 |
< |
as_mkdir_p=false |
13768 |
< |
fi |
13769 |
< |
|
13770 |
< |
as_executable_p="test -f" |
13771 |
< |
|
13772 |
< |
# Sed expression to map a string onto a valid CPP name. |
13773 |
< |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
13774 |
< |
|
13775 |
< |
# Sed expression to map a string onto a valid variable name. |
13776 |
< |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
13777 |
< |
|
13778 |
< |
|
13779 |
< |
# IFS |
13780 |
< |
# We need space, tab and new line, in precisely that order. |
13781 |
< |
as_nl=' |
13782 |
< |
' |
13783 |
< |
IFS=" $as_nl" |
13784 |
< |
|
13785 |
< |
# CDPATH. |
13786 |
< |
$as_unset CDPATH |
13787 |
< |
|
13788 |
< |
exec 6>&1 |
13789 |
< |
|
13790 |
< |
# Open the log real soon, to keep \$[0] and so on meaningful, and to |
13791 |
< |
# report actual input values of CONFIG_FILES etc. instead of their |
13792 |
< |
# values after options handling. Logging --version etc. is OK. |
13793 |
< |
exec 5>>config.log |
13794 |
< |
{ |
13795 |
< |
echo |
13796 |
< |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
13797 |
< |
## Running $as_me. ## |
13798 |
< |
_ASBOX |
13799 |
< |
} >&5 |
13800 |
< |
cat >&5 <<_CSEOF |
13801 |
< |
|
13802 |
< |
This file was extended by OOPSE $as_me 2.0, which was |
13803 |
< |
generated by GNU Autoconf 2.59. Invocation command line was |
13804 |
< |
|
13805 |
< |
CONFIG_FILES = $CONFIG_FILES |
13806 |
< |
CONFIG_HEADERS = $CONFIG_HEADERS |
13807 |
< |
CONFIG_LINKS = $CONFIG_LINKS |
13808 |
< |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
13809 |
< |
$ $0 $@ |
13810 |
< |
|
13811 |
< |
_CSEOF |
13812 |
< |
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
13813 |
< |
echo >&5 |
13814 |
< |
_ACEOF |
13815 |
< |
|
13816 |
< |
# Files that config.status was made for. |
13817 |
< |
if test -n "$ac_config_files"; then |
13818 |
< |
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
13819 |
< |
fi |
13820 |
< |
|
13821 |
< |
if test -n "$ac_config_headers"; then |
13822 |
< |
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
13823 |
< |
fi |
13824 |
< |
|
13825 |
< |
if test -n "$ac_config_links"; then |
13826 |
< |
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
13827 |
< |
fi |
13828 |
< |
|
13829 |
< |
if test -n "$ac_config_commands"; then |
13830 |
< |
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
13831 |
< |
fi |
13832 |
< |
|
13833 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
13834 |
< |
|
13835 |
< |
ac_cs_usage="\ |
13836 |
< |
\`$as_me' instantiates files from templates according to the |
13837 |
< |
current configuration. |
13838 |
< |
|
13839 |
< |
Usage: $0 [OPTIONS] [FILE]... |
13840 |
< |
|
13841 |
< |
-h, --help print this help, then exit |
13842 |
< |
-V, --version print version number, then exit |
13843 |
< |
-q, --quiet do not print progress messages |
13844 |
< |
-d, --debug don't remove temporary files |
13845 |
< |
--recheck update $as_me by reconfiguring in the same conditions |
13846 |
< |
--file=FILE[:TEMPLATE] |
13847 |
< |
instantiate the configuration file FILE |
13848 |
< |
--header=FILE[:TEMPLATE] |
13849 |
< |
instantiate the configuration header FILE |
13850 |
< |
|
13851 |
< |
Configuration files: |
13852 |
< |
$config_files |
13853 |
< |
|
13854 |
< |
Configuration headers: |
13855 |
< |
$config_headers |
13856 |
< |
|
13857 |
< |
Configuration links: |
13858 |
< |
$config_links |
13859 |
< |
|
13860 |
< |
Report bugs to <bug-autoconf@gnu.org>." |
13861 |
< |
_ACEOF |
13862 |
< |
|
13863 |
< |
cat >>$CONFIG_STATUS <<_ACEOF |
13864 |
< |
ac_cs_version="\\ |
13865 |
< |
OOPSE config.status 2.0 |
13866 |
< |
configured by $0, generated by GNU Autoconf 2.59, |
13867 |
< |
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
13868 |
< |
|
13869 |
< |
Copyright (C) 2003 Free Software Foundation, Inc. |
13870 |
< |
This config.status script is free software; the Free Software Foundation |
13871 |
< |
gives unlimited permission to copy, distribute and modify it." |
13872 |
< |
srcdir=$srcdir |
13873 |
< |
INSTALL="$INSTALL" |
13874 |
< |
_ACEOF |
13875 |
< |
|
13876 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
13877 |
< |
# If no file are specified by the user, then we need to provide default |
13878 |
< |
# value. By we need to know if files were specified by the user. |
13879 |
< |
ac_need_defaults=: |
13880 |
< |
while test $# != 0 |
13881 |
< |
do |
13882 |
< |
case $1 in |
13883 |
< |
--*=*) |
13884 |
< |
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
13885 |
< |
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
13886 |
< |
ac_shift=: |
13887 |
< |
;; |
13888 |
< |
-*) |
13889 |
< |
ac_option=$1 |
13890 |
< |
ac_optarg=$2 |
13891 |
< |
ac_shift=shift |
13892 |
< |
;; |
13893 |
< |
*) # This is not an option, so the user has probably given explicit |
13894 |
< |
# arguments. |
13895 |
< |
ac_option=$1 |
13896 |
< |
ac_need_defaults=false;; |
13897 |
< |
esac |
13898 |
< |
|
13899 |
< |
case $ac_option in |
13900 |
< |
# Handling of the options. |
13901 |
< |
_ACEOF |
13902 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
13903 |
< |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
13904 |
< |
ac_cs_recheck=: ;; |
13905 |
< |
--version | --vers* | -V ) |
13906 |
< |
echo "$ac_cs_version"; exit 0 ;; |
13907 |
< |
--he | --h) |
13908 |
< |
# Conflict between --help and --header |
13909 |
< |
{ { echo "$as_me:$LINENO: error: ambiguous option: $1 |
13910 |
< |
Try \`$0 --help' for more information." >&5 |
13911 |
< |
echo "$as_me: error: ambiguous option: $1 |
13912 |
< |
Try \`$0 --help' for more information." >&2;} |
13913 |
< |
{ (exit 1); exit 1; }; };; |
13914 |
< |
--help | --hel | -h ) |
13915 |
< |
echo "$ac_cs_usage"; exit 0 ;; |
13916 |
< |
--debug | --d* | -d ) |
13917 |
< |
debug=: ;; |
13918 |
< |
--file | --fil | --fi | --f ) |
13919 |
< |
$ac_shift |
13920 |
< |
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
13921 |
< |
ac_need_defaults=false;; |
13922 |
< |
--header | --heade | --head | --hea ) |
13923 |
< |
$ac_shift |
13924 |
< |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
13925 |
< |
ac_need_defaults=false;; |
13926 |
< |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
13927 |
< |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
13928 |
< |
ac_cs_silent=: ;; |
13929 |
< |
|
13930 |
< |
# This is an error. |
13931 |
< |
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
13932 |
< |
Try \`$0 --help' for more information." >&5 |
13933 |
< |
echo "$as_me: error: unrecognized option: $1 |
13934 |
< |
Try \`$0 --help' for more information." >&2;} |
13935 |
< |
{ (exit 1); exit 1; }; } ;; |
13936 |
< |
|
13937 |
< |
*) ac_config_targets="$ac_config_targets $1" ;; |
13938 |
< |
|
13939 |
< |
esac |
13940 |
< |
shift |
13941 |
< |
done |
13942 |
< |
|
13943 |
< |
ac_configure_extra_args= |
13944 |
< |
|
13945 |
< |
if $ac_cs_silent; then |
13946 |
< |
exec 6>/dev/null |
13947 |
< |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
13948 |
< |
fi |
13949 |
< |
|
13950 |
< |
_ACEOF |
13951 |
< |
cat >>$CONFIG_STATUS <<_ACEOF |
13952 |
< |
if \$ac_cs_recheck; then |
13953 |
< |
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
13954 |
< |
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
13955 |
< |
fi |
13956 |
< |
|
13957 |
< |
_ACEOF |
13958 |
< |
|
13959 |
< |
|
13960 |
< |
|
13961 |
< |
|
13962 |
< |
|
13963 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
13964 |
< |
for ac_config_target in $ac_config_targets |
13965 |
< |
do |
13966 |
< |
case "$ac_config_target" in |
13967 |
< |
# Handling of arguments. |
13968 |
< |
"make/Makefile" ) CONFIG_FILES="$CONFIG_FILES make/Makefile" ;; |
13969 |
< |
"src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;; |
13970 |
< |
"src/applications/nanoRodBuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/applications/nanoRodBuilder/Makefile" ;; |
13971 |
< |
"scripts/filepp" ) CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;; |
13972 |
< |
"src/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;; |
13973 |
< |
"src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
13974 |
< |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
13975 |
< |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
13976 |
< |
{ (exit 1); exit 1; }; };; |
13977 |
< |
esac |
13978 |
< |
done |
13979 |
< |
|
13980 |
< |
# If the user did not use the arguments to specify the items to instantiate, |
13981 |
< |
# then the envvar interface is used. Set only those that are not. |
13982 |
< |
# We use the long form for the default assignment because of an extremely |
13983 |
< |
# bizarre bug on SunOS 4.1.3. |
13984 |
< |
if $ac_need_defaults; then |
13985 |
< |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
13986 |
< |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
13987 |
< |
test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
13988 |
< |
fi |
13989 |
< |
|
13990 |
< |
# Have a temporary directory for convenience. Make it in the build tree |
13991 |
< |
# simply because there is no reason to put it here, and in addition, |
13992 |
< |
# creating and moving files from /tmp can sometimes cause problems. |
13993 |
< |
# Create a temporary directory, and hook for its removal unless debugging. |
13994 |
< |
$debug || |
13995 |
< |
{ |
13996 |
< |
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
13997 |
< |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
13998 |
< |
} |
13999 |
< |
|
14000 |
< |
# Create a (secure) tmp directory for tmp files. |
14001 |
< |
|
14002 |
< |
{ |
14003 |
< |
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
14004 |
< |
test -n "$tmp" && test -d "$tmp" |
14005 |
< |
} || |
14006 |
< |
{ |
14007 |
< |
tmp=./confstat$$-$RANDOM |
14008 |
< |
(umask 077 && mkdir $tmp) |
14009 |
< |
} || |
14010 |
< |
{ |
14011 |
< |
echo "$me: cannot create a temporary directory in ." >&2 |
14012 |
< |
{ (exit 1); exit 1; } |
14013 |
< |
} |
14014 |
< |
|
14015 |
< |
_ACEOF |
14016 |
< |
|
14017 |
< |
cat >>$CONFIG_STATUS <<_ACEOF |
14018 |
< |
|
14019 |
< |
# |
14020 |
< |
# CONFIG_FILES section. |
14021 |
< |
# |
14022 |
< |
|
14023 |
< |
# No need to generate the scripts if there are no CONFIG_FILES. |
14024 |
< |
# This happens for instance when ./config.status config.h |
14025 |
< |
if test -n "\$CONFIG_FILES"; then |
14026 |
< |
# Protect against being on the right side of a sed subst in config.status. |
14027 |
< |
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
14028 |
< |
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
14029 |
< |
s,@SHELL@,$SHELL,;t t |
14030 |
< |
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
14031 |
< |
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
14032 |
< |
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
14033 |
< |
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
14034 |
< |
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
14035 |
< |
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
14036 |
< |
s,@exec_prefix@,$exec_prefix,;t t |
14037 |
< |
s,@prefix@,$prefix,;t t |
14038 |
< |
s,@program_transform_name@,$program_transform_name,;t t |
14039 |
< |
s,@bindir@,$bindir,;t t |
14040 |
< |
s,@sbindir@,$sbindir,;t t |
14041 |
< |
s,@libexecdir@,$libexecdir,;t t |
14042 |
< |
s,@datadir@,$datadir,;t t |
14043 |
< |
s,@sysconfdir@,$sysconfdir,;t t |
14044 |
< |
s,@sharedstatedir@,$sharedstatedir,;t t |
14045 |
< |
s,@localstatedir@,$localstatedir,;t t |
14046 |
< |
s,@libdir@,$libdir,;t t |
14047 |
< |
s,@includedir@,$includedir,;t t |
14048 |
< |
s,@oldincludedir@,$oldincludedir,;t t |
14049 |
< |
s,@infodir@,$infodir,;t t |
14050 |
< |
s,@mandir@,$mandir,;t t |
14051 |
< |
s,@build_alias@,$build_alias,;t t |
14052 |
< |
s,@host_alias@,$host_alias,;t t |
14053 |
< |
s,@target_alias@,$target_alias,;t t |
14054 |
< |
s,@DEFS@,$DEFS,;t t |
14055 |
< |
s,@ECHO_C@,$ECHO_C,;t t |
14056 |
< |
s,@ECHO_N@,$ECHO_N,;t t |
14057 |
< |
s,@ECHO_T@,$ECHO_T,;t t |
14058 |
< |
s,@LIBS@,$LIBS,;t t |
14059 |
< |
s,@build@,$build,;t t |
14060 |
< |
s,@build_cpu@,$build_cpu,;t t |
14061 |
< |
s,@build_vendor@,$build_vendor,;t t |
14062 |
< |
s,@build_os@,$build_os,;t t |
14063 |
< |
s,@host@,$host,;t t |
14064 |
< |
s,@host_cpu@,$host_cpu,;t t |
14065 |
< |
s,@host_vendor@,$host_vendor,;t t |
14066 |
< |
s,@host_os@,$host_os,;t t |
14067 |
< |
s,@PROGNAME@,$PROGNAME,;t t |
14068 |
< |
s,@debug@,$debug,;t t |
14069 |
< |
s,@CXX@,$CXX,;t t |
14070 |
< |
s,@CXXFLAGS@,$CXXFLAGS,;t t |
14071 |
< |
s,@LDFLAGS@,$LDFLAGS,;t t |
14072 |
< |
s,@CPPFLAGS@,$CPPFLAGS,;t t |
14073 |
< |
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
14074 |
< |
s,@EXEEXT@,$EXEEXT,;t t |
14075 |
< |
s,@OBJEXT@,$OBJEXT,;t t |
14076 |
< |
s,@CC@,$CC,;t t |
14077 |
< |
s,@CFLAGS@,$CFLAGS,;t t |
14078 |
< |
s,@ac_ct_CC@,$ac_ct_CC,;t t |
14079 |
< |
s,@FC@,$FC,;t t |
14080 |
< |
s,@FCFLAGS@,$FCFLAGS,;t t |
14081 |
< |
s,@ac_ct_FC@,$ac_ct_FC,;t t |
14082 |
< |
s,@CPP@,$CPP,;t t |
14083 |
< |
s,@EGREP@,$EGREP,;t t |
14084 |
< |
s,@LN_S@,$LN_S,;t t |
14085 |
< |
s,@SET_MAKE@,$SET_MAKE,;t t |
14086 |
< |
s,@RANLIB@,$RANLIB,;t t |
14087 |
< |
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
14088 |
< |
s,@PERLINTERP@,$PERLINTERP,;t t |
14089 |
< |
s,@PERL_SHEBANG@,$PERL_SHEBANG,;t t |
14090 |
< |
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
14091 |
< |
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
14092 |
< |
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
14093 |
< |
s,@AR@,$AR,;t t |
14094 |
< |
s,@PS@,$PS,;t t |
14095 |
< |
s,@FCFLAGS_F90@,$FCFLAGS_F90,;t t |
14096 |
< |
s,@FCFLAGS_SRCEXT@,$FCFLAGS_SRCEXT,;t t |
14097 |
< |
s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t |
14098 |
< |
s,@FCLIBS@,$FCLIBS,;t t |
14099 |
< |
s,@FC_FUNC@,$FC_FUNC,;t t |
14100 |
< |
s,@FC_FUNC_@,$FC_FUNC_,;t t |
14101 |
< |
s,@MOD@,$MOD,;t t |
14102 |
< |
s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t |
14103 |
< |
s,@MODDIRFLAG@,$MODDIRFLAG,;t t |
14104 |
< |
s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t |
14105 |
< |
s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t |
14106 |
< |
s,@LIBOBJS@,$LIBOBJS,;t t |
14107 |
< |
s,@POW_LIB@,$POW_LIB,;t t |
14108 |
< |
s,@CXXCPP@,$CXXCPP,;t t |
14109 |
< |
s,@__func__@,$__func__,;t t |
14110 |
< |
s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t |
14111 |
< |
s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t |
14112 |
< |
s,@MPI_F90_INC@,$MPI_F90_INC,;t t |
14113 |
< |
s,@MPI_LIB@,$MPI_LIB,;t t |
14114 |
< |
s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t |
14115 |
< |
s,@USE_MPI@,$USE_MPI,;t t |
14116 |
< |
s,@USE_CGAL@,$USE_CGAL,;t t |
14117 |
< |
s,@CGAL_INC_DIR@,$CGAL_INC_DIR,;t t |
14118 |
< |
s,@CGAL_LIB_DIR@,$CGAL_LIB_DIR,;t t |
14119 |
< |
s,@CGAL_RLIB_DIR@,$CGAL_RLIB_DIR,;t t |
14120 |
< |
s,@CGAL_DEFINES@,$CGAL_DEFINES,;t t |
14121 |
< |
s,@CGAL_CXXFLAGS@,$CGAL_CXXFLAGS,;t t |
14122 |
< |
s,@CGAL_LIBS@,$CGAL_LIBS,;t t |
14123 |
< |
s,@DOXYGEN@,$DOXYGEN,;t t |
14124 |
< |
s,@DOT@,$DOT,;t t |
14125 |
< |
s,@DOC@,$DOC,;t t |
14126 |
< |
s,@enable_dot@,$enable_dot,;t t |
14127 |
< |
s,@enable_html_docs@,$enable_html_docs,;t t |
14128 |
< |
s,@enable_latex_docs@,$enable_latex_docs,;t t |
14129 |
< |
s,@BATEXT@,$BATEXT,;t t |
14130 |
< |
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
14131 |
< |
s,@OOPSE@,$OOPSE,;t t |
14132 |
< |
s,@OOPSE_HOME@,$OOPSE_HOME,;t t |
14133 |
< |
s,@SUBDIRS@,$SUBDIRS,;t t |
14134 |
< |
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
14135 |
< |
CEOF |
14136 |
< |
|
14137 |
< |
_ACEOF |
14138 |
< |
|
14139 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
14140 |
< |
# Split the substitutions into bite-sized pieces for seds with |
14141 |
< |
# small command number limits, like on Digital OSF/1 and HP-UX. |
14142 |
< |
ac_max_sed_lines=48 |
14143 |
< |
ac_sed_frag=1 # Number of current file. |
14144 |
< |
ac_beg=1 # First line for current file. |
14145 |
< |
ac_end=$ac_max_sed_lines # Line after last line for current file. |
14146 |
< |
ac_more_lines=: |
14147 |
< |
ac_sed_cmds= |
14148 |
< |
while $ac_more_lines; do |
14149 |
< |
if test $ac_beg -gt 1; then |
14150 |
< |
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
14151 |
< |
else |
14152 |
< |
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
14153 |
< |
fi |
14154 |
< |
if test ! -s $tmp/subs.frag; then |
14155 |
< |
ac_more_lines=false |
14156 |
< |
else |
14157 |
< |
# The purpose of the label and of the branching condition is to |
14158 |
< |
# speed up the sed processing (if there are no `@' at all, there |
14159 |
< |
# is no need to browse any of the substitutions). |
14160 |
< |
# These are the two extra sed commands mentioned above. |
14161 |
< |
(echo ':t |
14162 |
< |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
14163 |
< |
if test -z "$ac_sed_cmds"; then |
14164 |
< |
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
14165 |
< |
else |
14166 |
< |
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
14167 |
< |
fi |
14168 |
< |
ac_sed_frag=`expr $ac_sed_frag + 1` |
14169 |
< |
ac_beg=$ac_end |
14170 |
< |
ac_end=`expr $ac_end + $ac_max_sed_lines` |
14171 |
< |
fi |
14172 |
< |
done |
14173 |
< |
if test -z "$ac_sed_cmds"; then |
14174 |
< |
ac_sed_cmds=cat |
14175 |
< |
fi |
14176 |
< |
fi # test -n "$CONFIG_FILES" |
14177 |
< |
|
14178 |
< |
_ACEOF |
14179 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
14180 |
< |
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
14181 |
< |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
14182 |
< |
case $ac_file in |
14183 |
< |
- | *:- | *:-:* ) # input from stdin |
14184 |
< |
cat >$tmp/stdin |
14185 |
< |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
14186 |
< |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
14187 |
< |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
14188 |
< |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
14189 |
< |
* ) ac_file_in=$ac_file.in ;; |
14190 |
< |
esac |
14191 |
< |
|
14192 |
< |
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
14193 |
< |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
14194 |
< |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14195 |
< |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
14196 |
< |
X"$ac_file" : 'X\(//\)$' \| \ |
14197 |
< |
X"$ac_file" : 'X\(/\)' \| \ |
14198 |
< |
. : '\(.\)' 2>/dev/null || |
14199 |
< |
echo X"$ac_file" | |
14200 |
< |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
14201 |
< |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
14202 |
< |
/^X\(\/\/\)$/{ s//\1/; q; } |
14203 |
< |
/^X\(\/\).*/{ s//\1/; q; } |
14204 |
< |
s/.*/./; q'` |
14205 |
< |
{ if $as_mkdir_p; then |
14206 |
< |
mkdir -p "$ac_dir" |
14207 |
< |
else |
14208 |
< |
as_dir="$ac_dir" |
14209 |
< |
as_dirs= |
14210 |
< |
while test ! -d "$as_dir"; do |
14211 |
< |
as_dirs="$as_dir $as_dirs" |
14212 |
< |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
14213 |
< |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14214 |
< |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
14215 |
< |
X"$as_dir" : 'X\(//\)$' \| \ |
14216 |
< |
X"$as_dir" : 'X\(/\)' \| \ |
14217 |
< |
. : '\(.\)' 2>/dev/null || |
14218 |
< |
echo X"$as_dir" | |
14219 |
< |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
14220 |
< |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
14221 |
< |
/^X\(\/\/\)$/{ s//\1/; q; } |
14222 |
< |
/^X\(\/\).*/{ s//\1/; q; } |
14223 |
< |
s/.*/./; q'` |
14224 |
< |
done |
14225 |
< |
test ! -n "$as_dirs" || mkdir $as_dirs |
14226 |
< |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
14227 |
< |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
14228 |
< |
{ (exit 1); exit 1; }; }; } |
14229 |
< |
|
14230 |
< |
ac_builddir=. |
14231 |
< |
|
14232 |
< |
if test "$ac_dir" != .; then |
14233 |
< |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
14234 |
< |
# A "../" for each directory in $ac_dir_suffix. |
14235 |
< |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
14236 |
< |
else |
14237 |
< |
ac_dir_suffix= ac_top_builddir= |
14238 |
< |
fi |
14239 |
< |
|
14240 |
< |
case $srcdir in |
14241 |
< |
.) # No --srcdir option. We are building in place. |
14242 |
< |
ac_srcdir=. |
14243 |
< |
if test -z "$ac_top_builddir"; then |
14244 |
< |
ac_top_srcdir=. |
14245 |
< |
else |
14246 |
< |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
14247 |
< |
fi ;; |
14248 |
< |
[\\/]* | ?:[\\/]* ) # Absolute path. |
14249 |
< |
ac_srcdir=$srcdir$ac_dir_suffix; |
14250 |
< |
ac_top_srcdir=$srcdir ;; |
14251 |
< |
*) # Relative path. |
14252 |
< |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
14253 |
< |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
14254 |
< |
esac |
14255 |
< |
|
14256 |
< |
# Do not use `cd foo && pwd` to compute absolute paths, because |
14257 |
< |
# the directories may not exist. |
14258 |
< |
case `pwd` in |
14259 |
< |
.) ac_abs_builddir="$ac_dir";; |
14260 |
< |
*) |
14261 |
< |
case "$ac_dir" in |
14262 |
< |
.) ac_abs_builddir=`pwd`;; |
14263 |
< |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
14264 |
< |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
14265 |
< |
esac;; |
14266 |
< |
esac |
14267 |
< |
case $ac_abs_builddir in |
14268 |
< |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
14269 |
< |
*) |
14270 |
< |
case ${ac_top_builddir}. in |
14271 |
< |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
14272 |
< |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
14273 |
< |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
14274 |
< |
esac;; |
14275 |
< |
esac |
14276 |
< |
case $ac_abs_builddir in |
14277 |
< |
.) ac_abs_srcdir=$ac_srcdir;; |
14278 |
< |
*) |
14279 |
< |
case $ac_srcdir in |
14280 |
< |
.) ac_abs_srcdir=$ac_abs_builddir;; |
14281 |
< |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
14282 |
< |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
14283 |
< |
esac;; |
14284 |
< |
esac |
14285 |
< |
case $ac_abs_builddir in |
14286 |
< |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
14287 |
< |
*) |
14288 |
< |
case $ac_top_srcdir in |
14289 |
< |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
14290 |
< |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
14291 |
< |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
14292 |
< |
esac;; |
14293 |
< |
esac |
14294 |
< |
|
14295 |
< |
|
14296 |
< |
case $INSTALL in |
14297 |
< |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
14298 |
< |
*) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
14299 |
< |
esac |
14300 |
< |
|
14301 |
< |
if test x"$ac_file" != x-; then |
14302 |
< |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
14303 |
< |
echo "$as_me: creating $ac_file" >&6;} |
14304 |
< |
rm -f "$ac_file" |
14305 |
< |
fi |
14306 |
< |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
14307 |
< |
# use $as_me), people would be surprised to read: |
14308 |
< |
# /* config.h. Generated by config.status. */ |
14309 |
< |
if test x"$ac_file" = x-; then |
14310 |
< |
configure_input= |
14311 |
< |
else |
14312 |
< |
configure_input="$ac_file. " |
14313 |
< |
fi |
14314 |
< |
configure_input=$configure_input"Generated from `echo $ac_file_in | |
14315 |
< |
sed 's,.*/,,'` by configure." |
14316 |
< |
|
14317 |
< |
# First look for the input files in the build tree, otherwise in the |
14318 |
< |
# src tree. |
14319 |
< |
ac_file_inputs=`IFS=: |
14320 |
< |
for f in $ac_file_in; do |
14321 |
< |
case $f in |
14322 |
< |
-) echo $tmp/stdin ;; |
14323 |
< |
[\\/$]*) |
14324 |
< |
# Absolute (can't be DOS-style, as IFS=:) |
14325 |
< |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
14326 |
< |
echo "$as_me: error: cannot find input file: $f" >&2;} |
14327 |
< |
{ (exit 1); exit 1; }; } |
14328 |
< |
echo "$f";; |
14329 |
< |
*) # Relative |
14330 |
< |
if test -f "$f"; then |
14331 |
< |
# Build tree |
14332 |
< |
echo "$f" |
14333 |
< |
elif test -f "$srcdir/$f"; then |
14334 |
< |
# Source tree |
14335 |
< |
echo "$srcdir/$f" |
14336 |
< |
else |
14337 |
< |
# /dev/null tree |
14338 |
< |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
14339 |
< |
echo "$as_me: error: cannot find input file: $f" >&2;} |
14340 |
< |
{ (exit 1); exit 1; }; } |
14341 |
< |
fi;; |
14342 |
< |
esac |
14343 |
< |
done` || { (exit 1); exit 1; } |
14344 |
< |
_ACEOF |
14345 |
< |
cat >>$CONFIG_STATUS <<_ACEOF |
14346 |
< |
sed "$ac_vpsub |
14347 |
< |
$extrasub |
14348 |
< |
_ACEOF |
14349 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
14350 |
< |
:t |
14351 |
< |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
14352 |
< |
s,@configure_input@,$configure_input,;t t |
14353 |
< |
s,@srcdir@,$ac_srcdir,;t t |
14354 |
< |
s,@abs_srcdir@,$ac_abs_srcdir,;t t |
14355 |
< |
s,@top_srcdir@,$ac_top_srcdir,;t t |
14356 |
< |
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
14357 |
< |
s,@builddir@,$ac_builddir,;t t |
14358 |
< |
s,@abs_builddir@,$ac_abs_builddir,;t t |
14359 |
< |
s,@top_builddir@,$ac_top_builddir,;t t |
14360 |
< |
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
14361 |
< |
s,@INSTALL@,$ac_INSTALL,;t t |
14362 |
< |
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
14363 |
< |
rm -f $tmp/stdin |
14364 |
< |
if test x"$ac_file" != x-; then |
14365 |
< |
mv $tmp/out $ac_file |
14366 |
< |
else |
14367 |
< |
cat $tmp/out |
14368 |
< |
rm -f $tmp/out |
14369 |
< |
fi |
14370 |
< |
|
14371 |
< |
# Run the commands associated with the file. |
14372 |
< |
case $ac_file in |
14373 |
< |
make/Makefile ) chmod 0755 scripts/* ;; |
14374 |
< |
src/utils/Makefile ) chmod 0755 scripts/* ;; |
14375 |
< |
src/applications/nanoRodBuilder/Makefile ) chmod 0755 scripts/* ;; |
14376 |
< |
scripts/filepp ) chmod 0755 scripts/* ;; |
14377 |
< |
esac |
14378 |
< |
done |
14379 |
< |
_ACEOF |
14380 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
14381 |
< |
|
14382 |
< |
# |
14383 |
< |
# CONFIG_HEADER section. |
14384 |
< |
# |
14385 |
< |
|
14386 |
< |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
14387 |
< |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
14388 |
< |
# |
14389 |
< |
# ac_d sets the value in "#define NAME VALUE" lines. |
14390 |
< |
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
14391 |
< |
ac_dB='[ ].*$,\1#\2' |
14392 |
< |
ac_dC=' ' |
14393 |
< |
ac_dD=',;t' |
14394 |
< |
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
14395 |
< |
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
14396 |
< |
ac_uB='$,\1#\2define\3' |
14397 |
< |
ac_uC=' ' |
14398 |
< |
ac_uD=',;t' |
14399 |
< |
|
14400 |
< |
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
14401 |
< |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
14402 |
< |
case $ac_file in |
14403 |
< |
- | *:- | *:-:* ) # input from stdin |
14404 |
< |
cat >$tmp/stdin |
14405 |
< |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
14406 |
< |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
14407 |
< |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
14408 |
< |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
14409 |
< |
* ) ac_file_in=$ac_file.in ;; |
14410 |
< |
esac |
14411 |
< |
|
14412 |
< |
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
14413 |
< |
echo "$as_me: creating $ac_file" >&6;} |
14414 |
< |
|
14415 |
< |
# First look for the input files in the build tree, otherwise in the |
14416 |
< |
# src tree. |
14417 |
< |
ac_file_inputs=`IFS=: |
14418 |
< |
for f in $ac_file_in; do |
14419 |
< |
case $f in |
14420 |
< |
-) echo $tmp/stdin ;; |
14421 |
< |
[\\/$]*) |
14422 |
< |
# Absolute (can't be DOS-style, as IFS=:) |
14423 |
< |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
14424 |
< |
echo "$as_me: error: cannot find input file: $f" >&2;} |
14425 |
< |
{ (exit 1); exit 1; }; } |
14426 |
< |
# Do quote $f, to prevent DOS paths from being IFS'd. |
14427 |
< |
echo "$f";; |
14428 |
< |
*) # Relative |
14429 |
< |
if test -f "$f"; then |
14430 |
< |
# Build tree |
14431 |
< |
echo "$f" |
14432 |
< |
elif test -f "$srcdir/$f"; then |
14433 |
< |
# Source tree |
14434 |
< |
echo "$srcdir/$f" |
14435 |
< |
else |
14436 |
< |
# /dev/null tree |
14437 |
< |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
14438 |
< |
echo "$as_me: error: cannot find input file: $f" >&2;} |
14439 |
< |
{ (exit 1); exit 1; }; } |
14440 |
< |
fi;; |
14441 |
< |
esac |
14442 |
< |
done` || { (exit 1); exit 1; } |
14443 |
< |
# Remove the trailing spaces. |
14444 |
< |
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
14445 |
< |
|
14446 |
< |
_ACEOF |
14447 |
< |
|
14448 |
< |
# Transform confdefs.h into two sed scripts, `conftest.defines' and |
14449 |
< |
# `conftest.undefs', that substitutes the proper values into |
14450 |
< |
# config.h.in to produce config.h. The first handles `#define' |
14451 |
< |
# templates, and the second `#undef' templates. |
14452 |
< |
# And first: Protect against being on the right side of a sed subst in |
14453 |
< |
# config.status. Protect against being in an unquoted here document |
14454 |
< |
# in config.status. |
14455 |
< |
rm -f conftest.defines conftest.undefs |
14456 |
< |
# Using a here document instead of a string reduces the quoting nightmare. |
14457 |
< |
# Putting comments in sed scripts is not portable. |
14458 |
< |
# |
14459 |
< |
# `end' is used to avoid that the second main sed command (meant for |
14460 |
< |
# 0-ary CPP macros) applies to n-ary macro definitions. |
14461 |
< |
# See the Autoconf documentation for `clear'. |
14462 |
< |
cat >confdef2sed.sed <<\_ACEOF |
14463 |
< |
s/[\\&,]/\\&/g |
14464 |
< |
s,[\\$`],\\&,g |
14465 |
< |
t clear |
14466 |
< |
: clear |
14467 |
< |
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
14468 |
< |
t end |
14469 |
< |
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
14470 |
< |
: end |
14471 |
< |
_ACEOF |
14472 |
< |
# If some macros were called several times there might be several times |
14473 |
< |
# the same #defines, which is useless. Nevertheless, we may not want to |
14474 |
< |
# sort them, since we want the *last* AC-DEFINE to be honored. |
14475 |
< |
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
14476 |
< |
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
14477 |
< |
rm -f confdef2sed.sed |
14478 |
< |
|
14479 |
< |
# This sed command replaces #undef with comments. This is necessary, for |
14480 |
< |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
14481 |
< |
# on some systems where configure will not decide to define it. |
14482 |
< |
cat >>conftest.undefs <<\_ACEOF |
14483 |
< |
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
14484 |
< |
_ACEOF |
14485 |
< |
|
14486 |
< |
# Break up conftest.defines because some shells have a limit on the size |
14487 |
< |
# of here documents, and old seds have small limits too (100 cmds). |
14488 |
< |
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
14489 |
< |
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
14490 |
< |
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
14491 |
< |
echo ' :' >>$CONFIG_STATUS |
14492 |
< |
rm -f conftest.tail |
14493 |
< |
while grep . conftest.defines >/dev/null |
14494 |
< |
do |
14495 |
< |
# Write a limited-size here document to $tmp/defines.sed. |
14496 |
< |
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
14497 |
< |
# Speed up: don't consider the non `#define' lines. |
14498 |
< |
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
14499 |
< |
# Work around the forget-to-reset-the-flag bug. |
14500 |
< |
echo 't clr' >>$CONFIG_STATUS |
14501 |
< |
echo ': clr' >>$CONFIG_STATUS |
14502 |
< |
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
14503 |
< |
echo 'CEOF |
14504 |
< |
sed -f $tmp/defines.sed $tmp/in >$tmp/out |
14505 |
< |
rm -f $tmp/in |
14506 |
< |
mv $tmp/out $tmp/in |
14507 |
< |
' >>$CONFIG_STATUS |
14508 |
< |
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
14509 |
< |
rm -f conftest.defines |
14510 |
< |
mv conftest.tail conftest.defines |
14511 |
< |
done |
14512 |
< |
rm -f conftest.defines |
14513 |
< |
echo ' fi # grep' >>$CONFIG_STATUS |
14514 |
< |
echo >>$CONFIG_STATUS |
14515 |
< |
|
14516 |
< |
# Break up conftest.undefs because some shells have a limit on the size |
14517 |
< |
# of here documents, and old seds have small limits too (100 cmds). |
14518 |
< |
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
14519 |
< |
rm -f conftest.tail |
14520 |
< |
while grep . conftest.undefs >/dev/null |
14521 |
< |
do |
14522 |
< |
# Write a limited-size here document to $tmp/undefs.sed. |
14523 |
< |
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
14524 |
< |
# Speed up: don't consider the non `#undef' |
14525 |
< |
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
14526 |
< |
# Work around the forget-to-reset-the-flag bug. |
14527 |
< |
echo 't clr' >>$CONFIG_STATUS |
14528 |
< |
echo ': clr' >>$CONFIG_STATUS |
14529 |
< |
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
14530 |
< |
echo 'CEOF |
14531 |
< |
sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
14532 |
< |
rm -f $tmp/in |
14533 |
< |
mv $tmp/out $tmp/in |
14534 |
< |
' >>$CONFIG_STATUS |
14535 |
< |
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
14536 |
< |
rm -f conftest.undefs |
14537 |
< |
mv conftest.tail conftest.undefs |
14538 |
< |
done |
14539 |
< |
rm -f conftest.undefs |
14540 |
< |
|
14541 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
14542 |
< |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
14543 |
< |
# use $as_me), people would be surprised to read: |
14544 |
< |
# /* config.h. Generated by config.status. */ |
14545 |
< |
if test x"$ac_file" = x-; then |
14546 |
< |
echo "/* Generated by configure. */" >$tmp/config.h |
14547 |
< |
else |
14548 |
< |
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
14549 |
< |
fi |
14550 |
< |
cat $tmp/in >>$tmp/config.h |
14551 |
< |
rm -f $tmp/in |
14552 |
< |
if test x"$ac_file" != x-; then |
14553 |
< |
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
14554 |
< |
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
14555 |
< |
echo "$as_me: $ac_file is unchanged" >&6;} |
14556 |
< |
else |
14557 |
< |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
14558 |
< |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14559 |
< |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
14560 |
< |
X"$ac_file" : 'X\(//\)$' \| \ |
14561 |
< |
X"$ac_file" : 'X\(/\)' \| \ |
14562 |
< |
. : '\(.\)' 2>/dev/null || |
14563 |
< |
echo X"$ac_file" | |
14564 |
< |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
14565 |
< |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
14566 |
< |
/^X\(\/\/\)$/{ s//\1/; q; } |
14567 |
< |
/^X\(\/\).*/{ s//\1/; q; } |
14568 |
< |
s/.*/./; q'` |
14569 |
< |
{ if $as_mkdir_p; then |
14570 |
< |
mkdir -p "$ac_dir" |
14571 |
< |
else |
14572 |
< |
as_dir="$ac_dir" |
14573 |
< |
as_dirs= |
14574 |
< |
while test ! -d "$as_dir"; do |
14575 |
< |
as_dirs="$as_dir $as_dirs" |
14576 |
< |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
14577 |
< |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14578 |
< |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
14579 |
< |
X"$as_dir" : 'X\(//\)$' \| \ |
14580 |
< |
X"$as_dir" : 'X\(/\)' \| \ |
14581 |
< |
. : '\(.\)' 2>/dev/null || |
14582 |
< |
echo X"$as_dir" | |
14583 |
< |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
14584 |
< |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
14585 |
< |
/^X\(\/\/\)$/{ s//\1/; q; } |
14586 |
< |
/^X\(\/\).*/{ s//\1/; q; } |
14587 |
< |
s/.*/./; q'` |
14588 |
< |
done |
14589 |
< |
test ! -n "$as_dirs" || mkdir $as_dirs |
14590 |
< |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
14591 |
< |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
14592 |
< |
{ (exit 1); exit 1; }; }; } |
14593 |
< |
|
14594 |
< |
rm -f $ac_file |
14595 |
< |
mv $tmp/config.h $ac_file |
14596 |
< |
fi |
14597 |
< |
else |
14598 |
< |
cat $tmp/config.h |
14599 |
< |
rm -f $tmp/config.h |
14600 |
< |
fi |
14601 |
< |
done |
14602 |
< |
_ACEOF |
14603 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
14604 |
< |
|
14605 |
< |
# |
14606 |
< |
# CONFIG_LINKS section. |
14607 |
< |
# |
14608 |
< |
|
14609 |
< |
for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
14610 |
< |
ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
14611 |
< |
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
14612 |
< |
|
14613 |
< |
{ echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
14614 |
< |
echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} |
14615 |
< |
|
14616 |
< |
if test ! -r $srcdir/$ac_source; then |
14617 |
< |
{ { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
14618 |
< |
echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} |
14619 |
< |
{ (exit 1); exit 1; }; } |
14620 |
< |
fi |
14621 |
< |
rm -f $ac_dest |
14622 |
< |
|
14623 |
< |
# Make relative symlinks. |
14624 |
< |
ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || |
14625 |
< |
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14626 |
< |
X"$ac_dest" : 'X\(//\)[^/]' \| \ |
14627 |
< |
X"$ac_dest" : 'X\(//\)$' \| \ |
14628 |
< |
X"$ac_dest" : 'X\(/\)' \| \ |
14629 |
< |
. : '\(.\)' 2>/dev/null || |
14630 |
< |
echo X"$ac_dest" | |
14631 |
< |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
14632 |
< |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
14633 |
< |
/^X\(\/\/\)$/{ s//\1/; q; } |
14634 |
< |
/^X\(\/\).*/{ s//\1/; q; } |
14635 |
< |
s/.*/./; q'` |
14636 |
< |
{ if $as_mkdir_p; then |
14637 |
< |
mkdir -p "$ac_dest_dir" |
14638 |
< |
else |
14639 |
< |
as_dir="$ac_dest_dir" |
14640 |
< |
as_dirs= |
14641 |
< |
while test ! -d "$as_dir"; do |
14642 |
< |
as_dirs="$as_dir $as_dirs" |
14643 |
< |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
14644 |
< |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14645 |
< |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
14646 |
< |
X"$as_dir" : 'X\(//\)$' \| \ |
14647 |
< |
X"$as_dir" : 'X\(/\)' \| \ |
14648 |
< |
. : '\(.\)' 2>/dev/null || |
14649 |
< |
echo X"$as_dir" | |
14650 |
< |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
14651 |
< |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
14652 |
< |
/^X\(\/\/\)$/{ s//\1/; q; } |
14653 |
< |
/^X\(\/\).*/{ s//\1/; q; } |
14654 |
< |
s/.*/./; q'` |
14655 |
< |
done |
14656 |
< |
test ! -n "$as_dirs" || mkdir $as_dirs |
14657 |
< |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 |
14658 |
< |
echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} |
14659 |
< |
{ (exit 1); exit 1; }; }; } |
14660 |
< |
|
14661 |
< |
ac_builddir=. |
14662 |
< |
|
14663 |
< |
if test "$ac_dest_dir" != .; then |
14664 |
< |
ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` |
14665 |
< |
# A "../" for each directory in $ac_dir_suffix. |
14666 |
< |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
14667 |
< |
else |
14668 |
< |
ac_dir_suffix= ac_top_builddir= |
14669 |
< |
fi |
14670 |
< |
|
14671 |
< |
case $srcdir in |
14672 |
< |
.) # No --srcdir option. We are building in place. |
14673 |
< |
ac_srcdir=. |
14674 |
< |
if test -z "$ac_top_builddir"; then |
14675 |
< |
ac_top_srcdir=. |
14676 |
< |
else |
14677 |
< |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
14678 |
< |
fi ;; |
14679 |
< |
[\\/]* | ?:[\\/]* ) # Absolute path. |
14680 |
< |
ac_srcdir=$srcdir$ac_dir_suffix; |
14681 |
< |
ac_top_srcdir=$srcdir ;; |
14682 |
< |
*) # Relative path. |
14683 |
< |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
14684 |
< |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
14685 |
< |
esac |
14686 |
< |
|
14687 |
< |
# Do not use `cd foo && pwd` to compute absolute paths, because |
14688 |
< |
# the directories may not exist. |
14689 |
< |
case `pwd` in |
14690 |
< |
.) ac_abs_builddir="$ac_dest_dir";; |
14691 |
< |
*) |
14692 |
< |
case "$ac_dest_dir" in |
14693 |
< |
.) ac_abs_builddir=`pwd`;; |
14694 |
< |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; |
14695 |
< |
*) ac_abs_builddir=`pwd`/"$ac_dest_dir";; |
14696 |
< |
esac;; |
14697 |
< |
esac |
14698 |
< |
case $ac_abs_builddir in |
14699 |
< |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
14700 |
< |
*) |
14701 |
< |
case ${ac_top_builddir}. in |
14702 |
< |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
14703 |
< |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
14704 |
< |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
14705 |
< |
esac;; |
14706 |
< |
esac |
14707 |
< |
case $ac_abs_builddir in |
14708 |
< |
.) ac_abs_srcdir=$ac_srcdir;; |
14709 |
< |
*) |
14710 |
< |
case $ac_srcdir in |
14711 |
< |
.) ac_abs_srcdir=$ac_abs_builddir;; |
14712 |
< |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
14713 |
< |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
14714 |
< |
esac;; |
14715 |
< |
esac |
14716 |
< |
case $ac_abs_builddir in |
14717 |
< |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
14718 |
< |
*) |
14719 |
< |
case $ac_top_srcdir in |
14720 |
< |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
14721 |
< |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
14722 |
< |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
14723 |
< |
esac;; |
14724 |
< |
esac |
14725 |
< |
|
14726 |
< |
|
14727 |
< |
case $srcdir in |
14728 |
< |
[\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; |
14729 |
< |
*) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
14730 |
< |
esac |
14731 |
< |
|
14732 |
< |
# Try a symlink, then a hard link, then a copy. |
14733 |
< |
ln -s $ac_rel_source $ac_dest 2>/dev/null || |
14734 |
< |
ln $srcdir/$ac_source $ac_dest 2>/dev/null || |
14735 |
< |
cp -p $srcdir/$ac_source $ac_dest || |
14736 |
< |
{ { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 |
14737 |
< |
echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} |
14738 |
< |
{ (exit 1); exit 1; }; } |
14739 |
< |
done |
14740 |
< |
_ACEOF |
14741 |
< |
|
14742 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
14743 |
< |
|
14744 |
< |
{ (exit 0); exit 0; } |
14745 |
< |
_ACEOF |
14746 |
< |
chmod +x $CONFIG_STATUS |
14747 |
< |
ac_clean_files=$ac_clean_files_save |
14748 |
< |
|
14749 |
< |
|
14750 |
< |
# configure is writing to config.log, and then calls config.status. |
14751 |
< |
# config.status does its own redirection, appending to config.log. |
14752 |
< |
# Unfortunately, on DOS this fails, as config.log is still kept open |
14753 |
< |
# by configure, so config.status won't be able to write to it; its |
14754 |
< |
# output is simply discarded. So we exec the FD to /dev/null, |
14755 |
< |
# effectively closing config.log, so it can be properly (re)opened and |
14756 |
< |
# appended to by config.status. When coming back to configure, we |
14757 |
< |
# need to make the FD available again. |
14758 |
< |
if test "$no_create" != yes; then |
14759 |
< |
ac_cs_success=: |
14760 |
< |
ac_config_status_args= |
14761 |
< |
test "$silent" = yes && |
14762 |
< |
ac_config_status_args="$ac_config_status_args --quiet" |
14763 |
< |
exec 5>/dev/null |
14764 |
< |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
14765 |
< |
exec 5>>config.log |
14766 |
< |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
14767 |
< |
# would make configure fail if this is the last instruction. |
14768 |
< |
$ac_cs_success || { (exit 1); exit 1; } |
14089 |
> |
} |
14090 |
> |
{ |
14091 |
> |
line = $ 0 |
14092 |
> |
nfields = split(line, field, "@") |
14093 |
> |
substed = 0 |
14094 |
> |
len = length(field[1]) |
14095 |
> |
for (i = 2; i < nfields; i++) { |
14096 |
> |
key = field[i] |
14097 |
> |
keylen = length(key) |
14098 |
> |
if (S_is_set[key]) { |
14099 |
> |
value = S[key] |
14100 |
> |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
14101 |
> |
len += length(value) + length(field[++i]) |
14102 |
> |
substed = 1 |
14103 |
> |
} else |
14104 |
> |
len += 1 + keylen |
14105 |
> |
} |
14106 |
> |
|
14107 |
> |
print line |
14108 |
> |
} |
14109 |
> |
|
14110 |
> |
_ACAWK |
14111 |
> |
_ACEOF |
14112 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14113 |
> |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
14114 |
> |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
14115 |
> |
else |
14116 |
> |
cat |
14117 |
> |
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
14118 |
> |
|| { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
14119 |
> |
$as_echo "$as_me: error: could not setup config files machinery" >&2;} |
14120 |
> |
{ (exit 1); exit 1; }; } |
14121 |
> |
_ACEOF |
14122 |
> |
|
14123 |
> |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
14124 |
> |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
14125 |
> |
# trailing colons and then remove the whole line if VPATH becomes empty |
14126 |
> |
# (actually we leave an empty line to preserve line numbers). |
14127 |
> |
if test "x$srcdir" = x.; then |
14128 |
> |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
14129 |
> |
s/:*\$(srcdir):*/:/ |
14130 |
> |
s/:*\${srcdir}:*/:/ |
14131 |
> |
s/:*@srcdir@:*/:/ |
14132 |
> |
s/^\([^=]*=[ ]*\):*/\1/ |
14133 |
> |
s/:*$// |
14134 |
> |
s/^[^=]*=[ ]*$// |
14135 |
> |
}' |
14136 |
> |
fi |
14137 |
> |
|
14138 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14139 |
> |
fi # test -n "$CONFIG_FILES" |
14140 |
> |
|
14141 |
> |
# Set up the scripts for CONFIG_HEADERS section. |
14142 |
> |
# No need to generate them if there are no CONFIG_HEADERS. |
14143 |
> |
# This happens for instance with `./config.status Makefile'. |
14144 |
> |
if test -n "$CONFIG_HEADERS"; then |
14145 |
> |
cat >"$tmp/defines.awk" <<\_ACAWK || |
14146 |
> |
BEGIN { |
14147 |
> |
_ACEOF |
14148 |
> |
|
14149 |
> |
# Transform confdefs.h into an awk script `defines.awk', embedded as |
14150 |
> |
# here-document in config.status, that substitutes the proper values into |
14151 |
> |
# config.h.in to produce config.h. |
14152 |
> |
|
14153 |
> |
# Create a delimiter string that does not exist in confdefs.h, to ease |
14154 |
> |
# handling of long lines. |
14155 |
> |
ac_delim='%!_!# ' |
14156 |
> |
for ac_last_try in false false :; do |
14157 |
> |
ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
14158 |
> |
if test -z "$ac_t"; then |
14159 |
> |
break |
14160 |
> |
elif $ac_last_try; then |
14161 |
> |
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 |
14162 |
> |
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} |
14163 |
> |
{ (exit 1); exit 1; }; } |
14164 |
> |
else |
14165 |
> |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
14166 |
> |
fi |
14167 |
> |
done |
14168 |
> |
|
14169 |
> |
# For the awk script, D is an array of macro values keyed by name, |
14170 |
> |
# likewise P contains macro parameters if any. Preserve backslash |
14171 |
> |
# newline sequences. |
14172 |
> |
|
14173 |
> |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
14174 |
> |
sed -n ' |
14175 |
> |
s/.\{148\}/&'"$ac_delim"'/g |
14176 |
> |
t rset |
14177 |
> |
:rset |
14178 |
> |
s/^[ ]*#[ ]*define[ ][ ]*/ / |
14179 |
> |
t def |
14180 |
> |
d |
14181 |
> |
:def |
14182 |
> |
s/\\$// |
14183 |
> |
t bsnl |
14184 |
> |
s/["\\]/\\&/g |
14185 |
> |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
14186 |
> |
D["\1"]=" \3"/p |
14187 |
> |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
14188 |
> |
d |
14189 |
> |
:bsnl |
14190 |
> |
s/["\\]/\\&/g |
14191 |
> |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
14192 |
> |
D["\1"]=" \3\\\\\\n"\\/p |
14193 |
> |
t cont |
14194 |
> |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
14195 |
> |
t cont |
14196 |
> |
d |
14197 |
> |
:cont |
14198 |
> |
n |
14199 |
> |
s/.\{148\}/&'"$ac_delim"'/g |
14200 |
> |
t clear |
14201 |
> |
:clear |
14202 |
> |
s/\\$// |
14203 |
> |
t bsnlc |
14204 |
> |
s/["\\]/\\&/g; s/^/"/; s/$/"/p |
14205 |
> |
d |
14206 |
> |
:bsnlc |
14207 |
> |
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
14208 |
> |
b cont |
14209 |
> |
' <confdefs.h | sed ' |
14210 |
> |
s/'"$ac_delim"'/"\\\ |
14211 |
> |
"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
14212 |
> |
|
14213 |
> |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14214 |
> |
for (key in D) D_is_set[key] = 1 |
14215 |
> |
FS = "" |
14216 |
> |
} |
14217 |
> |
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
14218 |
> |
line = \$ 0 |
14219 |
> |
split(line, arg, " ") |
14220 |
> |
if (arg[1] == "#") { |
14221 |
> |
defundef = arg[2] |
14222 |
> |
mac1 = arg[3] |
14223 |
> |
} else { |
14224 |
> |
defundef = substr(arg[1], 2) |
14225 |
> |
mac1 = arg[2] |
14226 |
> |
} |
14227 |
> |
split(mac1, mac2, "(") #) |
14228 |
> |
macro = mac2[1] |
14229 |
> |
if (D_is_set[macro]) { |
14230 |
> |
# Preserve the white space surrounding the "#". |
14231 |
> |
prefix = substr(line, 1, index(line, defundef) - 1) |
14232 |
> |
print prefix "define", macro P[macro] D[macro] |
14233 |
> |
next |
14234 |
> |
} else { |
14235 |
> |
# Replace #undef with comments. This is necessary, for example, |
14236 |
> |
# in the case of _POSIX_SOURCE, which is predefined and required |
14237 |
> |
# on some systems where configure will not decide to define it. |
14238 |
> |
if (defundef == "undef") { |
14239 |
> |
print "/*", line, "*/" |
14240 |
> |
next |
14241 |
> |
} |
14242 |
> |
} |
14243 |
> |
} |
14244 |
> |
{ print } |
14245 |
> |
_ACAWK |
14246 |
> |
_ACEOF |
14247 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14248 |
> |
{ { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 |
14249 |
> |
$as_echo "$as_me: error: could not setup config headers machinery" >&2;} |
14250 |
> |
{ (exit 1); exit 1; }; } |
14251 |
> |
fi # test -n "$CONFIG_HEADERS" |
14252 |
> |
|
14253 |
> |
|
14254 |
> |
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
14255 |
> |
shift |
14256 |
> |
for ac_tag |
14257 |
> |
do |
14258 |
> |
case $ac_tag in |
14259 |
> |
:[FHLC]) ac_mode=$ac_tag; continue;; |
14260 |
> |
esac |
14261 |
> |
case $ac_mode$ac_tag in |
14262 |
> |
:[FHL]*:*);; |
14263 |
> |
:L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
14264 |
> |
$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
14265 |
> |
{ (exit 1); exit 1; }; };; |
14266 |
> |
:[FH]-) ac_tag=-:-;; |
14267 |
> |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
14268 |
> |
esac |
14269 |
> |
ac_save_IFS=$IFS |
14270 |
> |
IFS=: |
14271 |
> |
set x $ac_tag |
14272 |
> |
IFS=$ac_save_IFS |
14273 |
> |
shift |
14274 |
> |
ac_file=$1 |
14275 |
> |
shift |
14276 |
> |
|
14277 |
> |
case $ac_mode in |
14278 |
> |
:L) ac_source=$1;; |
14279 |
> |
:[FH]) |
14280 |
> |
ac_file_inputs= |
14281 |
> |
for ac_f |
14282 |
> |
do |
14283 |
> |
case $ac_f in |
14284 |
> |
-) ac_f="$tmp/stdin";; |
14285 |
> |
*) # Look for the file first in the build tree, then in the source tree |
14286 |
> |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
14287 |
> |
# because $ac_f cannot contain `:'. |
14288 |
> |
test -f "$ac_f" || |
14289 |
> |
case $ac_f in |
14290 |
> |
[\\/$]*) false;; |
14291 |
> |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
14292 |
> |
esac || |
14293 |
> |
{ { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
14294 |
> |
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
14295 |
> |
{ (exit 1); exit 1; }; };; |
14296 |
> |
esac |
14297 |
> |
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
14298 |
> |
ac_file_inputs="$ac_file_inputs '$ac_f'" |
14299 |
> |
done |
14300 |
> |
|
14301 |
> |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
14302 |
> |
# use $as_me), people would be surprised to read: |
14303 |
> |
# /* config.h. Generated by config.status. */ |
14304 |
> |
configure_input='Generated from '` |
14305 |
> |
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
14306 |
> |
`' by configure.' |
14307 |
> |
if test x"$ac_file" != x-; then |
14308 |
> |
configure_input="$ac_file. $configure_input" |
14309 |
> |
{ $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
14310 |
> |
$as_echo "$as_me: creating $ac_file" >&6;} |
14311 |
> |
fi |
14312 |
> |
# Neutralize special characters interpreted by sed in replacement strings. |
14313 |
> |
case $configure_input in #( |
14314 |
> |
*\&* | *\|* | *\\* ) |
14315 |
> |
ac_sed_conf_input=`$as_echo "$configure_input" | |
14316 |
> |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
14317 |
> |
*) ac_sed_conf_input=$configure_input;; |
14318 |
> |
esac |
14319 |
> |
|
14320 |
> |
case $ac_tag in |
14321 |
> |
*:-:* | *:-) cat >"$tmp/stdin" \ |
14322 |
> |
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
14323 |
> |
$as_echo "$as_me: error: could not create $ac_file" >&2;} |
14324 |
> |
{ (exit 1); exit 1; }; } ;; |
14325 |
> |
esac |
14326 |
> |
;; |
14327 |
> |
esac |
14328 |
> |
|
14329 |
> |
ac_dir=`$as_dirname -- "$ac_file" || |
14330 |
> |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14331 |
> |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
14332 |
> |
X"$ac_file" : 'X\(//\)$' \| \ |
14333 |
> |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
14334 |
> |
$as_echo X"$ac_file" | |
14335 |
> |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14336 |
> |
s//\1/ |
14337 |
> |
q |
14338 |
> |
} |
14339 |
> |
/^X\(\/\/\)[^/].*/{ |
14340 |
> |
s//\1/ |
14341 |
> |
q |
14342 |
> |
} |
14343 |
> |
/^X\(\/\/\)$/{ |
14344 |
> |
s//\1/ |
14345 |
> |
q |
14346 |
> |
} |
14347 |
> |
/^X\(\/\).*/{ |
14348 |
> |
s//\1/ |
14349 |
> |
q |
14350 |
> |
} |
14351 |
> |
s/.*/./; q'` |
14352 |
> |
{ as_dir="$ac_dir" |
14353 |
> |
case $as_dir in #( |
14354 |
> |
-*) as_dir=./$as_dir;; |
14355 |
> |
esac |
14356 |
> |
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
14357 |
> |
as_dirs= |
14358 |
> |
while :; do |
14359 |
> |
case $as_dir in #( |
14360 |
> |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
14361 |
> |
*) as_qdir=$as_dir;; |
14362 |
> |
esac |
14363 |
> |
as_dirs="'$as_qdir' $as_dirs" |
14364 |
> |
as_dir=`$as_dirname -- "$as_dir" || |
14365 |
> |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14366 |
> |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
14367 |
> |
X"$as_dir" : 'X\(//\)$' \| \ |
14368 |
> |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
14369 |
> |
$as_echo X"$as_dir" | |
14370 |
> |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14371 |
> |
s//\1/ |
14372 |
> |
q |
14373 |
> |
} |
14374 |
> |
/^X\(\/\/\)[^/].*/{ |
14375 |
> |
s//\1/ |
14376 |
> |
q |
14377 |
> |
} |
14378 |
> |
/^X\(\/\/\)$/{ |
14379 |
> |
s//\1/ |
14380 |
> |
q |
14381 |
> |
} |
14382 |
> |
/^X\(\/\).*/{ |
14383 |
> |
s//\1/ |
14384 |
> |
q |
14385 |
> |
} |
14386 |
> |
s/.*/./; q'` |
14387 |
> |
test -d "$as_dir" && break |
14388 |
> |
done |
14389 |
> |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
14390 |
> |
} || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
14391 |
> |
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
14392 |
> |
{ (exit 1); exit 1; }; }; } |
14393 |
> |
ac_builddir=. |
14394 |
> |
|
14395 |
> |
case "$ac_dir" in |
14396 |
> |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
14397 |
> |
*) |
14398 |
> |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
14399 |
> |
# A ".." for each directory in $ac_dir_suffix. |
14400 |
> |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
14401 |
> |
case $ac_top_builddir_sub in |
14402 |
> |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
14403 |
> |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
14404 |
> |
esac ;; |
14405 |
> |
esac |
14406 |
> |
ac_abs_top_builddir=$ac_pwd |
14407 |
> |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
14408 |
> |
# for backward compatibility: |
14409 |
> |
ac_top_builddir=$ac_top_build_prefix |
14410 |
> |
|
14411 |
> |
case $srcdir in |
14412 |
> |
.) # We are building in place. |
14413 |
> |
ac_srcdir=. |
14414 |
> |
ac_top_srcdir=$ac_top_builddir_sub |
14415 |
> |
ac_abs_top_srcdir=$ac_pwd ;; |
14416 |
> |
[\\/]* | ?:[\\/]* ) # Absolute name. |
14417 |
> |
ac_srcdir=$srcdir$ac_dir_suffix; |
14418 |
> |
ac_top_srcdir=$srcdir |
14419 |
> |
ac_abs_top_srcdir=$srcdir ;; |
14420 |
> |
*) # Relative name. |
14421 |
> |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
14422 |
> |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
14423 |
> |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
14424 |
> |
esac |
14425 |
> |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
14426 |
> |
|
14427 |
> |
|
14428 |
> |
case $ac_mode in |
14429 |
> |
:F) |
14430 |
> |
# |
14431 |
> |
# CONFIG_FILE |
14432 |
> |
# |
14433 |
> |
|
14434 |
> |
case $INSTALL in |
14435 |
> |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
14436 |
> |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
14437 |
> |
esac |
14438 |
> |
_ACEOF |
14439 |
> |
|
14440 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14441 |
> |
# If the template does not know about datarootdir, expand it. |
14442 |
> |
# FIXME: This hack should be removed a few years after 2.60. |
14443 |
> |
ac_datarootdir_hack=; ac_datarootdir_seen= |
14444 |
> |
|
14445 |
> |
ac_sed_dataroot=' |
14446 |
> |
/datarootdir/ { |
14447 |
> |
p |
14448 |
> |
q |
14449 |
> |
} |
14450 |
> |
/@datadir@/p |
14451 |
> |
/@docdir@/p |
14452 |
> |
/@infodir@/p |
14453 |
> |
/@localedir@/p |
14454 |
> |
/@mandir@/p |
14455 |
> |
' |
14456 |
> |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
14457 |
> |
*datarootdir*) ac_datarootdir_seen=yes;; |
14458 |
> |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
14459 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
14460 |
> |
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
14461 |
> |
_ACEOF |
14462 |
> |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14463 |
> |
ac_datarootdir_hack=' |
14464 |
> |
s&@datadir@&$datadir&g |
14465 |
> |
s&@docdir@&$docdir&g |
14466 |
> |
s&@infodir@&$infodir&g |
14467 |
> |
s&@localedir@&$localedir&g |
14468 |
> |
s&@mandir@&$mandir&g |
14469 |
> |
s&\\\${datarootdir}&$datarootdir&g' ;; |
14470 |
> |
esac |
14471 |
> |
_ACEOF |
14472 |
> |
|
14473 |
> |
# Neutralize VPATH when `$srcdir' = `.'. |
14474 |
> |
# Shell code in configure.ac might set extrasub. |
14475 |
> |
# FIXME: do we really want to maintain this feature? |
14476 |
> |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14477 |
> |
ac_sed_extra="$ac_vpsub |
14478 |
> |
$extrasub |
14479 |
> |
_ACEOF |
14480 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14481 |
> |
:t |
14482 |
> |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
14483 |
> |
s|@configure_input@|$ac_sed_conf_input|;t t |
14484 |
> |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
14485 |
> |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
14486 |
> |
s&@srcdir@&$ac_srcdir&;t t |
14487 |
> |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
14488 |
> |
s&@top_srcdir@&$ac_top_srcdir&;t t |
14489 |
> |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
14490 |
> |
s&@builddir@&$ac_builddir&;t t |
14491 |
> |
s&@abs_builddir@&$ac_abs_builddir&;t t |
14492 |
> |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14493 |
> |
s&@INSTALL@&$ac_INSTALL&;t t |
14494 |
> |
$ac_datarootdir_hack |
14495 |
> |
" |
14496 |
> |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
14497 |
> |
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
14498 |
> |
$as_echo "$as_me: error: could not create $ac_file" >&2;} |
14499 |
> |
{ (exit 1); exit 1; }; } |
14500 |
> |
|
14501 |
> |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14502 |
> |
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
14503 |
> |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
14504 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
14505 |
> |
which seems to be undefined. Please make sure it is defined." >&5 |
14506 |
> |
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
14507 |
> |
which seems to be undefined. Please make sure it is defined." >&2;} |
14508 |
> |
|
14509 |
> |
rm -f "$tmp/stdin" |
14510 |
> |
case $ac_file in |
14511 |
> |
-) cat "$tmp/out" && rm -f "$tmp/out";; |
14512 |
> |
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
14513 |
> |
esac \ |
14514 |
> |
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
14515 |
> |
$as_echo "$as_me: error: could not create $ac_file" >&2;} |
14516 |
> |
{ (exit 1); exit 1; }; } |
14517 |
> |
;; |
14518 |
> |
:H) |
14519 |
> |
# |
14520 |
> |
# CONFIG_HEADER |
14521 |
> |
# |
14522 |
> |
if test x"$ac_file" != x-; then |
14523 |
> |
{ |
14524 |
> |
$as_echo "/* $configure_input */" \ |
14525 |
> |
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
14526 |
> |
} >"$tmp/config.h" \ |
14527 |
> |
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
14528 |
> |
$as_echo "$as_me: error: could not create $ac_file" >&2;} |
14529 |
> |
{ (exit 1); exit 1; }; } |
14530 |
> |
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
14531 |
> |
{ $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
14532 |
> |
$as_echo "$as_me: $ac_file is unchanged" >&6;} |
14533 |
> |
else |
14534 |
> |
rm -f "$ac_file" |
14535 |
> |
mv "$tmp/config.h" "$ac_file" \ |
14536 |
> |
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
14537 |
> |
$as_echo "$as_me: error: could not create $ac_file" >&2;} |
14538 |
> |
{ (exit 1); exit 1; }; } |
14539 |
> |
fi |
14540 |
> |
else |
14541 |
> |
$as_echo "/* $configure_input */" \ |
14542 |
> |
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
14543 |
> |
|| { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 |
14544 |
> |
$as_echo "$as_me: error: could not create -" >&2;} |
14545 |
> |
{ (exit 1); exit 1; }; } |
14546 |
> |
fi |
14547 |
> |
;; |
14548 |
> |
|
14549 |
> |
|
14550 |
> |
esac |
14551 |
> |
|
14552 |
> |
|
14553 |
> |
case $ac_file$ac_mode in |
14554 |
> |
"make/Makefile":F) chmod 0755 scripts/* ;; |
14555 |
> |
"src/utils/Makefile":F) chmod 0755 scripts/* ;; |
14556 |
> |
"src/math/Makefile":F) chmod 0755 scripts/* ;; |
14557 |
> |
"src/integrators/Makefile":F) chmod 0755 scripts/* ;; |
14558 |
> |
"src/applications/atom2md/Makefile":F) chmod 0755 scripts/* ;; |
14559 |
> |
"scripts/filepp":F) chmod 0755 scripts/* ;; |
14560 |
> |
|
14561 |
> |
esac |
14562 |
> |
done # for ac_tag |
14563 |
> |
|
14564 |
> |
|
14565 |
> |
{ (exit 0); exit 0; } |
14566 |
> |
_ACEOF |
14567 |
> |
chmod +x $CONFIG_STATUS |
14568 |
> |
ac_clean_files=$ac_clean_files_save |
14569 |
> |
|
14570 |
> |
test $ac_write_fail = 0 || |
14571 |
> |
{ { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
14572 |
> |
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} |
14573 |
> |
{ (exit 1); exit 1; }; } |
14574 |
> |
|
14575 |
> |
|
14576 |
> |
# configure is writing to config.log, and then calls config.status. |
14577 |
> |
# config.status does its own redirection, appending to config.log. |
14578 |
> |
# Unfortunately, on DOS this fails, as config.log is still kept open |
14579 |
> |
# by configure, so config.status won't be able to write to it; its |
14580 |
> |
# output is simply discarded. So we exec the FD to /dev/null, |
14581 |
> |
# effectively closing config.log, so it can be properly (re)opened and |
14582 |
> |
# appended to by config.status. When coming back to configure, we |
14583 |
> |
# need to make the FD available again. |
14584 |
> |
if test "$no_create" != yes; then |
14585 |
> |
ac_cs_success=: |
14586 |
> |
ac_config_status_args= |
14587 |
> |
test "$silent" = yes && |
14588 |
> |
ac_config_status_args="$ac_config_status_args --quiet" |
14589 |
> |
exec 5>/dev/null |
14590 |
> |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
14591 |
> |
exec 5>>config.log |
14592 |
> |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
14593 |
> |
# would make configure fail if this is the last instruction. |
14594 |
> |
$ac_cs_success || { (exit 1); exit 1; } |
14595 |
> |
fi |
14596 |
> |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
14597 |
> |
{ $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 |
14598 |
> |
$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} |
14599 |
|
fi |
14600 |
|
|