1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.65 for MCT 2.8. |
---|
4 | # |
---|
5 | # |
---|
6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
---|
8 | # Inc. |
---|
9 | # |
---|
10 | # |
---|
11 | # This configure script is free software; the Free Software Foundation |
---|
12 | # gives unlimited permission to copy, distribute and modify it. |
---|
13 | ## -------------------- ## |
---|
14 | ## M4sh Initialization. ## |
---|
15 | ## -------------------- ## |
---|
16 | |
---|
17 | # Be more Bourne compatible |
---|
18 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
20 | emulate sh |
---|
21 | NULLCMD=: |
---|
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
23 | # is contrary to our usage. Disable this feature. |
---|
24 | alias -g '${1+"$@"}'='"$@"' |
---|
25 | setopt NO_GLOB_SUBST |
---|
26 | else |
---|
27 | case `(set -o) 2>/dev/null` in #( |
---|
28 | *posix*) : |
---|
29 | set -o posix ;; #( |
---|
30 | *) : |
---|
31 | ;; |
---|
32 | esac |
---|
33 | fi |
---|
34 | |
---|
35 | |
---|
36 | as_nl=' |
---|
37 | ' |
---|
38 | export as_nl |
---|
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
44 | # but without wasting forks for bash or zsh. |
---|
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
47 | as_echo='print -r --' |
---|
48 | as_echo_n='print -rn --' |
---|
49 | elif (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 | |
---|
84 | # IFS |
---|
85 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
86 | # there to prevent editors from complaining about space-tab. |
---|
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
88 | # splitting by setting IFS to empty value.) |
---|
89 | IFS=" "" $as_nl" |
---|
90 | |
---|
91 | # Find who we are. Look in the path if we contain no directory separator. |
---|
92 | case $0 in #(( |
---|
93 | *[\\/]* ) as_myself=$0 ;; |
---|
94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
95 | for as_dir in $PATH |
---|
96 | do |
---|
97 | IFS=$as_save_IFS |
---|
98 | test -z "$as_dir" && as_dir=. |
---|
99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
100 | done |
---|
101 | IFS=$as_save_IFS |
---|
102 | |
---|
103 | ;; |
---|
104 | esac |
---|
105 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
106 | # in which case we are not to be found in the path. |
---|
107 | if test "x$as_myself" = x; then |
---|
108 | as_myself=$0 |
---|
109 | fi |
---|
110 | if test ! -f "$as_myself"; then |
---|
111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
112 | exit 1 |
---|
113 | fi |
---|
114 | |
---|
115 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
117 | # suppresses any "Segmentation fault" message there. '((' could |
---|
118 | # trigger a bug in pdksh 5.2.14. |
---|
119 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
120 | do eval test x\${$as_var+set} = xset \ |
---|
121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
122 | done |
---|
123 | PS1='$ ' |
---|
124 | PS2='> ' |
---|
125 | PS4='+ ' |
---|
126 | |
---|
127 | # NLS nuisances. |
---|
128 | LC_ALL=C |
---|
129 | export LC_ALL |
---|
130 | LANGUAGE=C |
---|
131 | export LANGUAGE |
---|
132 | |
---|
133 | # CDPATH. |
---|
134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
135 | |
---|
136 | if test "x$CONFIG_SHELL" = x; then |
---|
137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
---|
138 | emulate sh |
---|
139 | NULLCMD=: |
---|
140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
---|
141 | # is contrary to our usage. Disable this feature. |
---|
142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
---|
143 | setopt NO_GLOB_SUBST |
---|
144 | else |
---|
145 | case \`(set -o) 2>/dev/null\` in #( |
---|
146 | *posix*) : |
---|
147 | set -o posix ;; #( |
---|
148 | *) : |
---|
149 | ;; |
---|
150 | esac |
---|
151 | fi |
---|
152 | " |
---|
153 | as_required="as_fn_return () { (exit \$1); } |
---|
154 | as_fn_success () { as_fn_return 0; } |
---|
155 | as_fn_failure () { as_fn_return 1; } |
---|
156 | as_fn_ret_success () { return 0; } |
---|
157 | as_fn_ret_failure () { return 1; } |
---|
158 | |
---|
159 | exitcode=0 |
---|
160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
---|
161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
---|
162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
---|
163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
---|
164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
---|
165 | |
---|
166 | else |
---|
167 | exitcode=1; echo positional parameters were not saved. |
---|
168 | fi |
---|
169 | test x\$exitcode = x0 || exit 1" |
---|
170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
---|
171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
---|
172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
---|
173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
---|
174 | test \$(( 1 + 1 )) = 2 || exit 1" |
---|
175 | if (eval "$as_required") 2>/dev/null; then : |
---|
176 | as_have_required=yes |
---|
177 | else |
---|
178 | as_have_required=no |
---|
179 | fi |
---|
180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
---|
181 | |
---|
182 | else |
---|
183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
184 | as_found=false |
---|
185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
186 | do |
---|
187 | IFS=$as_save_IFS |
---|
188 | test -z "$as_dir" && as_dir=. |
---|
189 | as_found=: |
---|
190 | case $as_dir in #( |
---|
191 | /*) |
---|
192 | for as_base in sh bash ksh sh5; do |
---|
193 | # Try only shells that exist, to save several forks. |
---|
194 | as_shell=$as_dir/$as_base |
---|
195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
197 | CONFIG_SHELL=$as_shell as_have_required=yes |
---|
198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
199 | break 2 |
---|
200 | fi |
---|
201 | fi |
---|
202 | done;; |
---|
203 | esac |
---|
204 | as_found=false |
---|
205 | done |
---|
206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
---|
207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
---|
208 | CONFIG_SHELL=$SHELL as_have_required=yes |
---|
209 | fi; } |
---|
210 | IFS=$as_save_IFS |
---|
211 | |
---|
212 | |
---|
213 | if test "x$CONFIG_SHELL" != x; then : |
---|
214 | # We cannot yet assume a decent shell, so we have to provide a |
---|
215 | # neutralization value for shells without unset; and this also |
---|
216 | # works around shells that cannot unset nonexistent variables. |
---|
217 | BASH_ENV=/dev/null |
---|
218 | ENV=/dev/null |
---|
219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
220 | export CONFIG_SHELL |
---|
221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
---|
222 | fi |
---|
223 | |
---|
224 | if test x$as_have_required = xno; then : |
---|
225 | $as_echo "$0: This script requires a shell more modern than all" |
---|
226 | $as_echo "$0: the shells that I found on your system." |
---|
227 | if test x${ZSH_VERSION+set} = xset ; then |
---|
228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
---|
229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
---|
230 | else |
---|
231 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
---|
232 | $0: including any error possibly output before this |
---|
233 | $0: message. Then install a modern shell, or manually run |
---|
234 | $0: the script under such a shell if you do have one." |
---|
235 | fi |
---|
236 | exit 1 |
---|
237 | fi |
---|
238 | fi |
---|
239 | fi |
---|
240 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
241 | export SHELL |
---|
242 | # Unset more variables known to interfere with behavior of common tools. |
---|
243 | CLICOLOR_FORCE= GREP_OPTIONS= |
---|
244 | unset CLICOLOR_FORCE GREP_OPTIONS |
---|
245 | |
---|
246 | ## --------------------- ## |
---|
247 | ## M4sh Shell Functions. ## |
---|
248 | ## --------------------- ## |
---|
249 | # as_fn_unset VAR |
---|
250 | # --------------- |
---|
251 | # Portably unset VAR. |
---|
252 | as_fn_unset () |
---|
253 | { |
---|
254 | { eval $1=; unset $1;} |
---|
255 | } |
---|
256 | as_unset=as_fn_unset |
---|
257 | |
---|
258 | # as_fn_set_status STATUS |
---|
259 | # ----------------------- |
---|
260 | # Set $? to STATUS, without forking. |
---|
261 | as_fn_set_status () |
---|
262 | { |
---|
263 | return $1 |
---|
264 | } # as_fn_set_status |
---|
265 | |
---|
266 | # as_fn_exit STATUS |
---|
267 | # ----------------- |
---|
268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
269 | as_fn_exit () |
---|
270 | { |
---|
271 | set +e |
---|
272 | as_fn_set_status $1 |
---|
273 | exit $1 |
---|
274 | } # as_fn_exit |
---|
275 | |
---|
276 | # as_fn_mkdir_p |
---|
277 | # ------------- |
---|
278 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
279 | as_fn_mkdir_p () |
---|
280 | { |
---|
281 | |
---|
282 | case $as_dir in #( |
---|
283 | -*) as_dir=./$as_dir;; |
---|
284 | esac |
---|
285 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
286 | as_dirs= |
---|
287 | while :; do |
---|
288 | case $as_dir in #( |
---|
289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
290 | *) as_qdir=$as_dir;; |
---|
291 | esac |
---|
292 | as_dirs="'$as_qdir' $as_dirs" |
---|
293 | as_dir=`$as_dirname -- "$as_dir" || |
---|
294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
295 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
296 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
298 | $as_echo X"$as_dir" | |
---|
299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
300 | s//\1/ |
---|
301 | q |
---|
302 | } |
---|
303 | /^X\(\/\/\)[^/].*/{ |
---|
304 | s//\1/ |
---|
305 | q |
---|
306 | } |
---|
307 | /^X\(\/\/\)$/{ |
---|
308 | s//\1/ |
---|
309 | q |
---|
310 | } |
---|
311 | /^X\(\/\).*/{ |
---|
312 | s//\1/ |
---|
313 | q |
---|
314 | } |
---|
315 | s/.*/./; q'` |
---|
316 | test -d "$as_dir" && break |
---|
317 | done |
---|
318 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
319 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
---|
320 | |
---|
321 | |
---|
322 | } # as_fn_mkdir_p |
---|
323 | # as_fn_append VAR VALUE |
---|
324 | # ---------------------- |
---|
325 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
326 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
327 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
328 | # implementations. |
---|
329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
330 | eval 'as_fn_append () |
---|
331 | { |
---|
332 | eval $1+=\$2 |
---|
333 | }' |
---|
334 | else |
---|
335 | as_fn_append () |
---|
336 | { |
---|
337 | eval $1=\$$1\$2 |
---|
338 | } |
---|
339 | fi # as_fn_append |
---|
340 | |
---|
341 | # as_fn_arith ARG... |
---|
342 | # ------------------ |
---|
343 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
345 | # must be portable across $(()) and expr. |
---|
346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
347 | eval 'as_fn_arith () |
---|
348 | { |
---|
349 | as_val=$(( $* )) |
---|
350 | }' |
---|
351 | else |
---|
352 | as_fn_arith () |
---|
353 | { |
---|
354 | as_val=`expr "$@" || test $? -eq 1` |
---|
355 | } |
---|
356 | fi # as_fn_arith |
---|
357 | |
---|
358 | |
---|
359 | # as_fn_error ERROR [LINENO LOG_FD] |
---|
360 | # --------------------------------- |
---|
361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
363 | # script with status $?, using 1 if that was 0. |
---|
364 | as_fn_error () |
---|
365 | { |
---|
366 | as_status=$?; test $as_status -eq 0 && as_status=1 |
---|
367 | if test "$3"; then |
---|
368 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
---|
370 | fi |
---|
371 | $as_echo "$as_me: error: $1" >&2 |
---|
372 | as_fn_exit $as_status |
---|
373 | } # as_fn_error |
---|
374 | |
---|
375 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
377 | as_expr=expr |
---|
378 | else |
---|
379 | as_expr=false |
---|
380 | fi |
---|
381 | |
---|
382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
383 | as_basename=basename |
---|
384 | else |
---|
385 | as_basename=false |
---|
386 | fi |
---|
387 | |
---|
388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
389 | as_dirname=dirname |
---|
390 | else |
---|
391 | as_dirname=false |
---|
392 | fi |
---|
393 | |
---|
394 | as_me=`$as_basename -- "$0" || |
---|
395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
396 | X"$0" : 'X\(//\)$' \| \ |
---|
397 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
398 | $as_echo X/"$0" | |
---|
399 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
400 | s//\1/ |
---|
401 | q |
---|
402 | } |
---|
403 | /^X\/\(\/\/\)$/{ |
---|
404 | s//\1/ |
---|
405 | q |
---|
406 | } |
---|
407 | /^X\/\(\/\).*/{ |
---|
408 | s//\1/ |
---|
409 | q |
---|
410 | } |
---|
411 | s/.*/./; q'` |
---|
412 | |
---|
413 | # Avoid depending upon Character Ranges. |
---|
414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
417 | as_cr_digits='0123456789' |
---|
418 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
419 | |
---|
420 | |
---|
421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
---|
422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
---|
423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
---|
424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
---|
425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
---|
426 | sed -n ' |
---|
427 | p |
---|
428 | /[$]LINENO/= |
---|
429 | ' <$as_myself | |
---|
430 | sed ' |
---|
431 | s/[$]LINENO.*/&-/ |
---|
432 | t lineno |
---|
433 | b |
---|
434 | :lineno |
---|
435 | N |
---|
436 | :loop |
---|
437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
438 | t loop |
---|
439 | s/-\n.*// |
---|
440 | ' >$as_me.lineno && |
---|
441 | chmod +x "$as_me.lineno" || |
---|
442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
---|
443 | |
---|
444 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
445 | # (the dirname of $[0] is not the place where we might find the |
---|
446 | # original and so on. Autoconf is especially sensitive to this). |
---|
447 | . "./$as_me.lineno" |
---|
448 | # Exit status is that of the last command. |
---|
449 | exit |
---|
450 | } |
---|
451 | |
---|
452 | ECHO_C= ECHO_N= ECHO_T= |
---|
453 | case `echo -n x` in #((((( |
---|
454 | -n*) |
---|
455 | case `echo 'xy\c'` in |
---|
456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
457 | xy) ECHO_C='\c';; |
---|
458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
459 | ECHO_T=' ';; |
---|
460 | esac;; |
---|
461 | *) |
---|
462 | ECHO_N='-n';; |
---|
463 | esac |
---|
464 | |
---|
465 | rm -f conf$$ conf$$.exe conf$$.file |
---|
466 | if test -d conf$$.dir; then |
---|
467 | rm -f conf$$.dir/conf$$.file |
---|
468 | else |
---|
469 | rm -f conf$$.dir |
---|
470 | mkdir conf$$.dir 2>/dev/null |
---|
471 | fi |
---|
472 | if (echo >conf$$.file) 2>/dev/null; then |
---|
473 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
474 | as_ln_s='ln -s' |
---|
475 | # ... but there are two gotchas: |
---|
476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
478 | # In both cases, we have to default to `cp -p'. |
---|
479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
480 | as_ln_s='cp -p' |
---|
481 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
482 | as_ln_s=ln |
---|
483 | else |
---|
484 | as_ln_s='cp -p' |
---|
485 | fi |
---|
486 | else |
---|
487 | as_ln_s='cp -p' |
---|
488 | fi |
---|
489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
490 | rmdir conf$$.dir 2>/dev/null |
---|
491 | |
---|
492 | if mkdir -p . 2>/dev/null; then |
---|
493 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
494 | else |
---|
495 | test -d ./-p && rmdir ./-p |
---|
496 | as_mkdir_p=false |
---|
497 | fi |
---|
498 | |
---|
499 | if test -x / >/dev/null 2>&1; then |
---|
500 | as_test_x='test -x' |
---|
501 | else |
---|
502 | if ls -dL / >/dev/null 2>&1; then |
---|
503 | as_ls_L_option=L |
---|
504 | else |
---|
505 | as_ls_L_option= |
---|
506 | fi |
---|
507 | as_test_x=' |
---|
508 | eval sh -c '\'' |
---|
509 | if test -d "$1"; then |
---|
510 | test -d "$1/."; |
---|
511 | else |
---|
512 | case $1 in #( |
---|
513 | -*)set "./$1";; |
---|
514 | esac; |
---|
515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
---|
516 | ???[sx]*):;;*)false;;esac;fi |
---|
517 | '\'' sh |
---|
518 | ' |
---|
519 | fi |
---|
520 | as_executable_p=$as_test_x |
---|
521 | |
---|
522 | # Sed expression to map a string onto a valid CPP name. |
---|
523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
524 | |
---|
525 | # Sed expression to map a string onto a valid variable name. |
---|
526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
527 | |
---|
528 | |
---|
529 | test -n "$DJDIR" || exec 7<&0 </dev/null |
---|
530 | exec 6>&1 |
---|
531 | |
---|
532 | # Name of the host. |
---|
533 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
534 | # so uname gets run too. |
---|
535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
536 | |
---|
537 | # |
---|
538 | # Initializations. |
---|
539 | # |
---|
540 | ac_default_prefix=/usr/local |
---|
541 | ac_clean_files= |
---|
542 | ac_config_libobj_dir=. |
---|
543 | LIBOBJS= |
---|
544 | cross_compiling=no |
---|
545 | subdirs= |
---|
546 | MFLAGS= |
---|
547 | MAKEFLAGS= |
---|
548 | |
---|
549 | # Identity of this package. |
---|
550 | PACKAGE_NAME='MCT' |
---|
551 | PACKAGE_TARNAME='mct' |
---|
552 | PACKAGE_VERSION='2.8' |
---|
553 | PACKAGE_STRING='MCT 2.8' |
---|
554 | PACKAGE_BUGREPORT='' |
---|
555 | PACKAGE_URL='' |
---|
556 | |
---|
557 | # Factoring default headers for most tests. |
---|
558 | ac_includes_default="\ |
---|
559 | #include <stdio.h> |
---|
560 | #ifdef HAVE_SYS_TYPES_H |
---|
561 | # include <sys/types.h> |
---|
562 | #endif |
---|
563 | #ifdef HAVE_SYS_STAT_H |
---|
564 | # include <sys/stat.h> |
---|
565 | #endif |
---|
566 | #ifdef STDC_HEADERS |
---|
567 | # include <stdlib.h> |
---|
568 | # include <stddef.h> |
---|
569 | #else |
---|
570 | # ifdef HAVE_STDLIB_H |
---|
571 | # include <stdlib.h> |
---|
572 | # endif |
---|
573 | #endif |
---|
574 | #ifdef HAVE_STRING_H |
---|
575 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
576 | # include <memory.h> |
---|
577 | # endif |
---|
578 | # include <string.h> |
---|
579 | #endif |
---|
580 | #ifdef HAVE_STRINGS_H |
---|
581 | # include <strings.h> |
---|
582 | #endif |
---|
583 | #ifdef HAVE_INTTYPES_H |
---|
584 | # include <inttypes.h> |
---|
585 | #endif |
---|
586 | #ifdef HAVE_STDINT_H |
---|
587 | # include <stdint.h> |
---|
588 | #endif |
---|
589 | #ifdef HAVE_UNISTD_H |
---|
590 | # include <unistd.h> |
---|
591 | #endif" |
---|
592 | |
---|
593 | ac_subst_vars='LTLIBOBJS |
---|
594 | LIBOBJS |
---|
595 | CPPDEFS |
---|
596 | CRULE |
---|
597 | FCLIBS |
---|
598 | FC_DEFINE |
---|
599 | FCFLAGS_F |
---|
600 | MPISERPATH |
---|
601 | MPIFC |
---|
602 | FCFLAGS_F90 |
---|
603 | ac_ct_FC |
---|
604 | EGREP |
---|
605 | GREP |
---|
606 | CPP |
---|
607 | OBJEXT |
---|
608 | EXEEXT |
---|
609 | ac_ct_CC |
---|
610 | CPPFLAGS |
---|
611 | LDFLAGS |
---|
612 | CC |
---|
613 | PYTHONOPTS |
---|
614 | PYTHON |
---|
615 | FORT_SIZE |
---|
616 | COMPILER_ROOT |
---|
617 | BABELROOT |
---|
618 | AR |
---|
619 | INCLUDEPATH |
---|
620 | INCLUDEFLAG |
---|
621 | ENDIAN |
---|
622 | BIT64 |
---|
623 | REAL8 |
---|
624 | OPT |
---|
625 | DEBUG |
---|
626 | CFLAGS |
---|
627 | PROGFCFLAGS |
---|
628 | FCFLAGS |
---|
629 | FC |
---|
630 | FPPFLAGS |
---|
631 | FPP |
---|
632 | MPIHEADER |
---|
633 | MPILIBS |
---|
634 | target_alias |
---|
635 | host_alias |
---|
636 | build_alias |
---|
637 | LIBS |
---|
638 | ECHO_T |
---|
639 | ECHO_N |
---|
640 | ECHO_C |
---|
641 | DEFS |
---|
642 | mandir |
---|
643 | localedir |
---|
644 | libdir |
---|
645 | psdir |
---|
646 | pdfdir |
---|
647 | dvidir |
---|
648 | htmldir |
---|
649 | infodir |
---|
650 | docdir |
---|
651 | oldincludedir |
---|
652 | includedir |
---|
653 | localstatedir |
---|
654 | sharedstatedir |
---|
655 | sysconfdir |
---|
656 | datadir |
---|
657 | datarootdir |
---|
658 | libexecdir |
---|
659 | sbindir |
---|
660 | bindir |
---|
661 | program_transform_name |
---|
662 | prefix |
---|
663 | exec_prefix |
---|
664 | PACKAGE_URL |
---|
665 | PACKAGE_BUGREPORT |
---|
666 | PACKAGE_STRING |
---|
667 | PACKAGE_VERSION |
---|
668 | PACKAGE_TARNAME |
---|
669 | PACKAGE_NAME |
---|
670 | PATH_SEPARATOR |
---|
671 | SHELL' |
---|
672 | ac_subst_files='' |
---|
673 | ac_user_opts=' |
---|
674 | enable_option_checking |
---|
675 | enable_mpiserial |
---|
676 | enable_debugging |
---|
677 | enable_selectedrealkind |
---|
678 | enable_sequence |
---|
679 | enable_babel |
---|
680 | ' |
---|
681 | ac_precious_vars='build_alias |
---|
682 | host_alias |
---|
683 | target_alias |
---|
684 | MPILIBS |
---|
685 | MPIHEADER |
---|
686 | FPP |
---|
687 | FPPFLAGS |
---|
688 | FC |
---|
689 | FCFLAGS |
---|
690 | PROGFCFLAGS |
---|
691 | CFLAGS |
---|
692 | DEBUG |
---|
693 | OPT |
---|
694 | REAL8 |
---|
695 | BIT64 |
---|
696 | ENDIAN |
---|
697 | INCLUDEFLAG |
---|
698 | INCLUDEPATH |
---|
699 | AR |
---|
700 | BABELROOT |
---|
701 | COMPILER_ROOT |
---|
702 | FORT_SIZE |
---|
703 | CC |
---|
704 | LDFLAGS |
---|
705 | LIBS |
---|
706 | CPPFLAGS |
---|
707 | CPP |
---|
708 | MPIFC' |
---|
709 | |
---|
710 | |
---|
711 | # Initialize some variables set by options. |
---|
712 | ac_init_help= |
---|
713 | ac_init_version=false |
---|
714 | ac_unrecognized_opts= |
---|
715 | ac_unrecognized_sep= |
---|
716 | # The variables have the same names as the options, with |
---|
717 | # dashes changed to underlines. |
---|
718 | cache_file=/dev/null |
---|
719 | exec_prefix=NONE |
---|
720 | no_create= |
---|
721 | no_recursion= |
---|
722 | prefix=NONE |
---|
723 | program_prefix=NONE |
---|
724 | program_suffix=NONE |
---|
725 | program_transform_name=s,x,x, |
---|
726 | silent= |
---|
727 | site= |
---|
728 | srcdir= |
---|
729 | verbose= |
---|
730 | x_includes=NONE |
---|
731 | x_libraries=NONE |
---|
732 | |
---|
733 | # Installation directory options. |
---|
734 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
735 | # and all the variables that are supposed to be based on exec_prefix |
---|
736 | # by default will actually change. |
---|
737 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
738 | # (The list follows the same order as the GNU Coding Standards.) |
---|
739 | bindir='${exec_prefix}/bin' |
---|
740 | sbindir='${exec_prefix}/sbin' |
---|
741 | libexecdir='${exec_prefix}/libexec' |
---|
742 | datarootdir='${prefix}/share' |
---|
743 | datadir='${datarootdir}' |
---|
744 | sysconfdir='${prefix}/etc' |
---|
745 | sharedstatedir='${prefix}/com' |
---|
746 | localstatedir='${prefix}/var' |
---|
747 | includedir='${prefix}/include' |
---|
748 | oldincludedir='/usr/include' |
---|
749 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
750 | infodir='${datarootdir}/info' |
---|
751 | htmldir='${docdir}' |
---|
752 | dvidir='${docdir}' |
---|
753 | pdfdir='${docdir}' |
---|
754 | psdir='${docdir}' |
---|
755 | libdir='${exec_prefix}/lib' |
---|
756 | localedir='${datarootdir}/locale' |
---|
757 | mandir='${datarootdir}/man' |
---|
758 | |
---|
759 | ac_prev= |
---|
760 | ac_dashdash= |
---|
761 | for ac_option |
---|
762 | do |
---|
763 | # If the previous option needs an argument, assign it. |
---|
764 | if test -n "$ac_prev"; then |
---|
765 | eval $ac_prev=\$ac_option |
---|
766 | ac_prev= |
---|
767 | continue |
---|
768 | fi |
---|
769 | |
---|
770 | case $ac_option in |
---|
771 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
772 | *) ac_optarg=yes ;; |
---|
773 | esac |
---|
774 | |
---|
775 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
776 | |
---|
777 | case $ac_dashdash$ac_option in |
---|
778 | --) |
---|
779 | ac_dashdash=yes ;; |
---|
780 | |
---|
781 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
782 | ac_prev=bindir ;; |
---|
783 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
784 | bindir=$ac_optarg ;; |
---|
785 | |
---|
786 | -build | --build | --buil | --bui | --bu) |
---|
787 | ac_prev=build_alias ;; |
---|
788 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
789 | build_alias=$ac_optarg ;; |
---|
790 | |
---|
791 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
792 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
793 | ac_prev=cache_file ;; |
---|
794 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
795 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
796 | cache_file=$ac_optarg ;; |
---|
797 | |
---|
798 | --config-cache | -C) |
---|
799 | cache_file=config.cache ;; |
---|
800 | |
---|
801 | -datadir | --datadir | --datadi | --datad) |
---|
802 | ac_prev=datadir ;; |
---|
803 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
804 | datadir=$ac_optarg ;; |
---|
805 | |
---|
806 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
807 | | --dataroo | --dataro | --datar) |
---|
808 | ac_prev=datarootdir ;; |
---|
809 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
810 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
811 | datarootdir=$ac_optarg ;; |
---|
812 | |
---|
813 | -disable-* | --disable-*) |
---|
814 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
815 | # Reject names that are not valid shell variable names. |
---|
816 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
817 | as_fn_error "invalid feature name: $ac_useropt" |
---|
818 | ac_useropt_orig=$ac_useropt |
---|
819 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
820 | case $ac_user_opts in |
---|
821 | *" |
---|
822 | "enable_$ac_useropt" |
---|
823 | "*) ;; |
---|
824 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
825 | ac_unrecognized_sep=', ';; |
---|
826 | esac |
---|
827 | eval enable_$ac_useropt=no ;; |
---|
828 | |
---|
829 | -docdir | --docdir | --docdi | --doc | --do) |
---|
830 | ac_prev=docdir ;; |
---|
831 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
832 | docdir=$ac_optarg ;; |
---|
833 | |
---|
834 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
835 | ac_prev=dvidir ;; |
---|
836 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
837 | dvidir=$ac_optarg ;; |
---|
838 | |
---|
839 | -enable-* | --enable-*) |
---|
840 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
841 | # Reject names that are not valid shell variable names. |
---|
842 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
843 | as_fn_error "invalid feature name: $ac_useropt" |
---|
844 | ac_useropt_orig=$ac_useropt |
---|
845 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
846 | case $ac_user_opts in |
---|
847 | *" |
---|
848 | "enable_$ac_useropt" |
---|
849 | "*) ;; |
---|
850 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
851 | ac_unrecognized_sep=', ';; |
---|
852 | esac |
---|
853 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
854 | |
---|
855 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
856 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
857 | | --exec | --exe | --ex) |
---|
858 | ac_prev=exec_prefix ;; |
---|
859 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
860 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
861 | | --exec=* | --exe=* | --ex=*) |
---|
862 | exec_prefix=$ac_optarg ;; |
---|
863 | |
---|
864 | -gas | --gas | --ga | --g) |
---|
865 | # Obsolete; use --with-gas. |
---|
866 | with_gas=yes ;; |
---|
867 | |
---|
868 | -help | --help | --hel | --he | -h) |
---|
869 | ac_init_help=long ;; |
---|
870 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
871 | ac_init_help=recursive ;; |
---|
872 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
873 | ac_init_help=short ;; |
---|
874 | |
---|
875 | -host | --host | --hos | --ho) |
---|
876 | ac_prev=host_alias ;; |
---|
877 | -host=* | --host=* | --hos=* | --ho=*) |
---|
878 | host_alias=$ac_optarg ;; |
---|
879 | |
---|
880 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
881 | ac_prev=htmldir ;; |
---|
882 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
883 | | --ht=*) |
---|
884 | htmldir=$ac_optarg ;; |
---|
885 | |
---|
886 | -includedir | --includedir | --includedi | --included | --include \ |
---|
887 | | --includ | --inclu | --incl | --inc) |
---|
888 | ac_prev=includedir ;; |
---|
889 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
890 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
891 | includedir=$ac_optarg ;; |
---|
892 | |
---|
893 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
894 | ac_prev=infodir ;; |
---|
895 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
896 | infodir=$ac_optarg ;; |
---|
897 | |
---|
898 | -libdir | --libdir | --libdi | --libd) |
---|
899 | ac_prev=libdir ;; |
---|
900 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
901 | libdir=$ac_optarg ;; |
---|
902 | |
---|
903 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
904 | | --libexe | --libex | --libe) |
---|
905 | ac_prev=libexecdir ;; |
---|
906 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
907 | | --libexe=* | --libex=* | --libe=*) |
---|
908 | libexecdir=$ac_optarg ;; |
---|
909 | |
---|
910 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
911 | ac_prev=localedir ;; |
---|
912 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
913 | localedir=$ac_optarg ;; |
---|
914 | |
---|
915 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
916 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
917 | ac_prev=localstatedir ;; |
---|
918 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
919 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
920 | localstatedir=$ac_optarg ;; |
---|
921 | |
---|
922 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
923 | ac_prev=mandir ;; |
---|
924 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
925 | mandir=$ac_optarg ;; |
---|
926 | |
---|
927 | -nfp | --nfp | --nf) |
---|
928 | # Obsolete; use --without-fp. |
---|
929 | with_fp=no ;; |
---|
930 | |
---|
931 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
932 | | --no-cr | --no-c | -n) |
---|
933 | no_create=yes ;; |
---|
934 | |
---|
935 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
936 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
937 | no_recursion=yes ;; |
---|
938 | |
---|
939 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
940 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
941 | | --oldin | --oldi | --old | --ol | --o) |
---|
942 | ac_prev=oldincludedir ;; |
---|
943 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
944 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
945 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
946 | oldincludedir=$ac_optarg ;; |
---|
947 | |
---|
948 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
949 | ac_prev=prefix ;; |
---|
950 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
951 | prefix=$ac_optarg ;; |
---|
952 | |
---|
953 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
954 | | --program-pre | --program-pr | --program-p) |
---|
955 | ac_prev=program_prefix ;; |
---|
956 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
957 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
958 | program_prefix=$ac_optarg ;; |
---|
959 | |
---|
960 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
961 | | --program-suf | --program-su | --program-s) |
---|
962 | ac_prev=program_suffix ;; |
---|
963 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
964 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
965 | program_suffix=$ac_optarg ;; |
---|
966 | |
---|
967 | -program-transform-name | --program-transform-name \ |
---|
968 | | --program-transform-nam | --program-transform-na \ |
---|
969 | | --program-transform-n | --program-transform- \ |
---|
970 | | --program-transform | --program-transfor \ |
---|
971 | | --program-transfo | --program-transf \ |
---|
972 | | --program-trans | --program-tran \ |
---|
973 | | --progr-tra | --program-tr | --program-t) |
---|
974 | ac_prev=program_transform_name ;; |
---|
975 | -program-transform-name=* | --program-transform-name=* \ |
---|
976 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
977 | | --program-transform-n=* | --program-transform-=* \ |
---|
978 | | --program-transform=* | --program-transfor=* \ |
---|
979 | | --program-transfo=* | --program-transf=* \ |
---|
980 | | --program-trans=* | --program-tran=* \ |
---|
981 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
982 | program_transform_name=$ac_optarg ;; |
---|
983 | |
---|
984 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
985 | ac_prev=pdfdir ;; |
---|
986 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
987 | pdfdir=$ac_optarg ;; |
---|
988 | |
---|
989 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
990 | ac_prev=psdir ;; |
---|
991 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
992 | psdir=$ac_optarg ;; |
---|
993 | |
---|
994 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
995 | | -silent | --silent | --silen | --sile | --sil) |
---|
996 | silent=yes ;; |
---|
997 | |
---|
998 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
999 | ac_prev=sbindir ;; |
---|
1000 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1001 | | --sbi=* | --sb=*) |
---|
1002 | sbindir=$ac_optarg ;; |
---|
1003 | |
---|
1004 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1005 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1006 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1007 | | --sha | --sh) |
---|
1008 | ac_prev=sharedstatedir ;; |
---|
1009 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1010 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1011 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1012 | | --sha=* | --sh=*) |
---|
1013 | sharedstatedir=$ac_optarg ;; |
---|
1014 | |
---|
1015 | -site | --site | --sit) |
---|
1016 | ac_prev=site ;; |
---|
1017 | -site=* | --site=* | --sit=*) |
---|
1018 | site=$ac_optarg ;; |
---|
1019 | |
---|
1020 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1021 | ac_prev=srcdir ;; |
---|
1022 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1023 | srcdir=$ac_optarg ;; |
---|
1024 | |
---|
1025 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1026 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1027 | ac_prev=sysconfdir ;; |
---|
1028 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1029 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1030 | sysconfdir=$ac_optarg ;; |
---|
1031 | |
---|
1032 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1033 | ac_prev=target_alias ;; |
---|
1034 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1035 | target_alias=$ac_optarg ;; |
---|
1036 | |
---|
1037 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1038 | verbose=yes ;; |
---|
1039 | |
---|
1040 | -version | --version | --versio | --versi | --vers | -V) |
---|
1041 | ac_init_version=: ;; |
---|
1042 | |
---|
1043 | -with-* | --with-*) |
---|
1044 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1045 | # Reject names that are not valid shell variable names. |
---|
1046 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1047 | as_fn_error "invalid package name: $ac_useropt" |
---|
1048 | ac_useropt_orig=$ac_useropt |
---|
1049 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1050 | case $ac_user_opts in |
---|
1051 | *" |
---|
1052 | "with_$ac_useropt" |
---|
1053 | "*) ;; |
---|
1054 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1055 | ac_unrecognized_sep=', ';; |
---|
1056 | esac |
---|
1057 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1058 | |
---|
1059 | -without-* | --without-*) |
---|
1060 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1061 | # Reject names that are not valid shell variable names. |
---|
1062 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1063 | as_fn_error "invalid package name: $ac_useropt" |
---|
1064 | ac_useropt_orig=$ac_useropt |
---|
1065 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1066 | case $ac_user_opts in |
---|
1067 | *" |
---|
1068 | "with_$ac_useropt" |
---|
1069 | "*) ;; |
---|
1070 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1071 | ac_unrecognized_sep=', ';; |
---|
1072 | esac |
---|
1073 | eval with_$ac_useropt=no ;; |
---|
1074 | |
---|
1075 | --x) |
---|
1076 | # Obsolete; use --with-x. |
---|
1077 | with_x=yes ;; |
---|
1078 | |
---|
1079 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1080 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1081 | ac_prev=x_includes ;; |
---|
1082 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1083 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1084 | x_includes=$ac_optarg ;; |
---|
1085 | |
---|
1086 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1087 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1088 | ac_prev=x_libraries ;; |
---|
1089 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1090 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1091 | x_libraries=$ac_optarg ;; |
---|
1092 | |
---|
1093 | -*) as_fn_error "unrecognized option: \`$ac_option' |
---|
1094 | Try \`$0 --help' for more information." |
---|
1095 | ;; |
---|
1096 | |
---|
1097 | *=*) |
---|
1098 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1099 | # Reject names that are not valid shell variable names. |
---|
1100 | case $ac_envvar in #( |
---|
1101 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1102 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
---|
1103 | esac |
---|
1104 | eval $ac_envvar=\$ac_optarg |
---|
1105 | export $ac_envvar ;; |
---|
1106 | |
---|
1107 | *) |
---|
1108 | # FIXME: should be removed in autoconf 3.0. |
---|
1109 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1110 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1111 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1112 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
1113 | ;; |
---|
1114 | |
---|
1115 | esac |
---|
1116 | done |
---|
1117 | |
---|
1118 | if test -n "$ac_prev"; then |
---|
1119 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1120 | as_fn_error "missing argument to $ac_option" |
---|
1121 | fi |
---|
1122 | |
---|
1123 | if test -n "$ac_unrecognized_opts"; then |
---|
1124 | case $enable_option_checking in |
---|
1125 | no) ;; |
---|
1126 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1127 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1128 | esac |
---|
1129 | fi |
---|
1130 | |
---|
1131 | # Check all directory arguments for consistency. |
---|
1132 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1133 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1134 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1135 | libdir localedir mandir |
---|
1136 | do |
---|
1137 | eval ac_val=\$$ac_var |
---|
1138 | # Remove trailing slashes. |
---|
1139 | case $ac_val in |
---|
1140 | */ ) |
---|
1141 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1142 | eval $ac_var=\$ac_val;; |
---|
1143 | esac |
---|
1144 | # Be sure to have absolute directory names. |
---|
1145 | case $ac_val in |
---|
1146 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1147 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1148 | esac |
---|
1149 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1150 | done |
---|
1151 | |
---|
1152 | # There might be people who depend on the old broken behavior: `$host' |
---|
1153 | # used to hold the argument of --host etc. |
---|
1154 | # FIXME: To remove some day. |
---|
1155 | build=$build_alias |
---|
1156 | host=$host_alias |
---|
1157 | target=$target_alias |
---|
1158 | |
---|
1159 | # FIXME: To remove some day. |
---|
1160 | if test "x$host_alias" != x; then |
---|
1161 | if test "x$build_alias" = x; then |
---|
1162 | cross_compiling=maybe |
---|
1163 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
1164 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
1165 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1166 | cross_compiling=yes |
---|
1167 | fi |
---|
1168 | fi |
---|
1169 | |
---|
1170 | ac_tool_prefix= |
---|
1171 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1172 | |
---|
1173 | test "$silent" = yes && exec 6>/dev/null |
---|
1174 | |
---|
1175 | |
---|
1176 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1177 | ac_ls_di=`ls -di .` && |
---|
1178 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1179 | as_fn_error "working directory cannot be determined" |
---|
1180 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1181 | as_fn_error "pwd does not report name of working directory" |
---|
1182 | |
---|
1183 | |
---|
1184 | # Find the source files, if location was not specified. |
---|
1185 | if test -z "$srcdir"; then |
---|
1186 | ac_srcdir_defaulted=yes |
---|
1187 | # Try the directory containing this script, then the parent directory. |
---|
1188 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1189 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1190 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1191 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1192 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1193 | $as_echo X"$as_myself" | |
---|
1194 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1195 | s//\1/ |
---|
1196 | q |
---|
1197 | } |
---|
1198 | /^X\(\/\/\)[^/].*/{ |
---|
1199 | s//\1/ |
---|
1200 | q |
---|
1201 | } |
---|
1202 | /^X\(\/\/\)$/{ |
---|
1203 | s//\1/ |
---|
1204 | q |
---|
1205 | } |
---|
1206 | /^X\(\/\).*/{ |
---|
1207 | s//\1/ |
---|
1208 | q |
---|
1209 | } |
---|
1210 | s/.*/./; q'` |
---|
1211 | srcdir=$ac_confdir |
---|
1212 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1213 | srcdir=.. |
---|
1214 | fi |
---|
1215 | else |
---|
1216 | ac_srcdir_defaulted=no |
---|
1217 | fi |
---|
1218 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1219 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1220 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1221 | fi |
---|
1222 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1223 | ac_abs_confdir=`( |
---|
1224 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
---|
1225 | pwd)` |
---|
1226 | # When building in place, set srcdir=. |
---|
1227 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1228 | srcdir=. |
---|
1229 | fi |
---|
1230 | # Remove unnecessary trailing slashes from srcdir. |
---|
1231 | # Double slashes in file names in object file debugging info |
---|
1232 | # mess up M-x gdb in Emacs. |
---|
1233 | case $srcdir in |
---|
1234 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1235 | esac |
---|
1236 | for ac_var in $ac_precious_vars; do |
---|
1237 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1238 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1239 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1240 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1241 | done |
---|
1242 | |
---|
1243 | # |
---|
1244 | # Report the --help message. |
---|
1245 | # |
---|
1246 | if test "$ac_init_help" = "long"; then |
---|
1247 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1248 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1249 | cat <<_ACEOF |
---|
1250 | \`configure' configures MCT 2.8 to adapt to many kinds of systems. |
---|
1251 | |
---|
1252 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1253 | |
---|
1254 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1255 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1256 | |
---|
1257 | Defaults for the options are specified in brackets. |
---|
1258 | |
---|
1259 | Configuration: |
---|
1260 | -h, --help display this help and exit |
---|
1261 | --help=short display options specific to this package |
---|
1262 | --help=recursive display the short help of all the included packages |
---|
1263 | -V, --version display version information and exit |
---|
1264 | -q, --quiet, --silent do not print \`checking...' messages |
---|
1265 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1266 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1267 | -n, --no-create do not create output files |
---|
1268 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1269 | |
---|
1270 | Installation directories: |
---|
1271 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1272 | [$ac_default_prefix] |
---|
1273 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1274 | [PREFIX] |
---|
1275 | |
---|
1276 | By default, \`make install' will install all the files in |
---|
1277 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1278 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1279 | for instance \`--prefix=\$HOME'. |
---|
1280 | |
---|
1281 | For better control, use the options below. |
---|
1282 | |
---|
1283 | Fine tuning of the installation directories: |
---|
1284 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1285 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1286 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1287 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1288 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1289 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1290 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1291 | --includedir=DIR C header files [PREFIX/include] |
---|
1292 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1293 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1294 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1295 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1296 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1297 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1298 | --docdir=DIR documentation root [DATAROOTDIR/doc/mct] |
---|
1299 | --htmldir=DIR html documentation [DOCDIR] |
---|
1300 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1301 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1302 | --psdir=DIR ps documentation [DOCDIR] |
---|
1303 | _ACEOF |
---|
1304 | |
---|
1305 | cat <<\_ACEOF |
---|
1306 | _ACEOF |
---|
1307 | fi |
---|
1308 | |
---|
1309 | if test -n "$ac_init_help"; then |
---|
1310 | case $ac_init_help in |
---|
1311 | short | recursive ) echo "Configuration of MCT 2.8:";; |
---|
1312 | esac |
---|
1313 | cat <<\_ACEOF |
---|
1314 | |
---|
1315 | Optional Features: |
---|
1316 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1317 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1318 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1319 | --enable-mpiserial Use the included MPI replacement library for single |
---|
1320 | processor |
---|
1321 | --enable-debugging Use the debugging flag and disable the optimization |
---|
1322 | flag |
---|
1323 | --enable-selectedrealkind |
---|
1324 | define single precision and double precision numbers |
---|
1325 | using the selected_real_kind function. Default uses |
---|
1326 | the kind inquiry function. |
---|
1327 | --enable-sequence Modify MCT types to make them contiguous in memory. |
---|
1328 | --enable-babel Supply this option if you plan on building the Babel |
---|
1329 | bindings to MCT |
---|
1330 | |
---|
1331 | Some influential environment variables: |
---|
1332 | MPILIBS MPI library command line invocation |
---|
1333 | MPIHEADER MPI header include path with INCLUDEFLAG |
---|
1334 | FPP C-preprocessor for Fortran source code |
---|
1335 | FPPFLAGS C-preprocessing flags for Fortran source code |
---|
1336 | FC The Fortran compiler |
---|
1337 | FCFLAGS User-defined Fortran compiler flags |
---|
1338 | PROGFCFLAGS User-defined Fortran compiler flags for example programs |
---|
1339 | CFLAGS Customized C source compilation flags |
---|
1340 | DEBUG Fortran compiler flag for generating symbolic debugging |
---|
1341 | information |
---|
1342 | OPT Fortran compiler flag for optimization level |
---|
1343 | REAL8 Fortran compiler flag for setting the default REAL size to |
---|
1344 | REAL(KIND=8) |
---|
1345 | BIT64 Fortran compiler flag for generating 64-bit objects |
---|
1346 | ENDIAN Fortran compiler flag for converting big-endian to little-endian |
---|
1347 | INCLUDEFLAG Fortran compiler flag for specifying module search path |
---|
1348 | INCLUDEPATH Additional library and module paths with INCLUDEFLAG |
---|
1349 | AR Archive command |
---|
1350 | BABELROOT Root directory of your Babel installation. i.e.: |
---|
1351 | $BABELROOT/bin/babel $BABELROOT/lib/libsidl.so |
---|
1352 | COMPILER_ROOT |
---|
1353 | Root directory of your FORTRAN compiler |
---|
1354 | FORT_SIZE Number of bits in Fortran real and double kind |
---|
1355 | CC C compiler command |
---|
1356 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1357 | nonstandard directory <lib dir> |
---|
1358 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1359 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1360 | you have headers in a nonstandard directory <include dir> |
---|
1361 | CPP C preprocessor |
---|
1362 | MPIFC MPI Fortran compiler command |
---|
1363 | |
---|
1364 | Use these variables to override the choices made by `configure' or to help |
---|
1365 | it to find libraries and programs with nonstandard names/locations. |
---|
1366 | |
---|
1367 | Report bugs to the package provider. |
---|
1368 | _ACEOF |
---|
1369 | ac_status=$? |
---|
1370 | fi |
---|
1371 | |
---|
1372 | if test "$ac_init_help" = "recursive"; then |
---|
1373 | # If there are subdirs, report their specific --help. |
---|
1374 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1375 | test -d "$ac_dir" || |
---|
1376 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1377 | continue |
---|
1378 | ac_builddir=. |
---|
1379 | |
---|
1380 | case "$ac_dir" in |
---|
1381 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1382 | *) |
---|
1383 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1384 | # A ".." for each directory in $ac_dir_suffix. |
---|
1385 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1386 | case $ac_top_builddir_sub in |
---|
1387 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1388 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1389 | esac ;; |
---|
1390 | esac |
---|
1391 | ac_abs_top_builddir=$ac_pwd |
---|
1392 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1393 | # for backward compatibility: |
---|
1394 | ac_top_builddir=$ac_top_build_prefix |
---|
1395 | |
---|
1396 | case $srcdir in |
---|
1397 | .) # We are building in place. |
---|
1398 | ac_srcdir=. |
---|
1399 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1400 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1401 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1402 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1403 | ac_top_srcdir=$srcdir |
---|
1404 | ac_abs_top_srcdir=$srcdir ;; |
---|
1405 | *) # Relative name. |
---|
1406 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1407 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1408 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1409 | esac |
---|
1410 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1411 | |
---|
1412 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1413 | # Check for guested configure. |
---|
1414 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1415 | echo && |
---|
1416 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1417 | elif test -f "$ac_srcdir/configure"; then |
---|
1418 | echo && |
---|
1419 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1420 | else |
---|
1421 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1422 | fi || ac_status=$? |
---|
1423 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1424 | done |
---|
1425 | fi |
---|
1426 | |
---|
1427 | test -n "$ac_init_help" && exit $ac_status |
---|
1428 | if $ac_init_version; then |
---|
1429 | cat <<\_ACEOF |
---|
1430 | MCT configure 2.8 |
---|
1431 | generated by GNU Autoconf 2.65 |
---|
1432 | |
---|
1433 | Copyright (C) 2009 Free Software Foundation, Inc. |
---|
1434 | This configure script is free software; the Free Software Foundation |
---|
1435 | gives unlimited permission to copy, distribute and modify it. |
---|
1436 | _ACEOF |
---|
1437 | exit |
---|
1438 | fi |
---|
1439 | |
---|
1440 | ## ------------------------ ## |
---|
1441 | ## Autoconf initialization. ## |
---|
1442 | ## ------------------------ ## |
---|
1443 | |
---|
1444 | # ac_fn_c_try_compile LINENO |
---|
1445 | # -------------------------- |
---|
1446 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1447 | ac_fn_c_try_compile () |
---|
1448 | { |
---|
1449 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1450 | rm -f conftest.$ac_objext |
---|
1451 | if { { ac_try="$ac_compile" |
---|
1452 | case "(($ac_try" in |
---|
1453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1454 | *) ac_try_echo=$ac_try;; |
---|
1455 | esac |
---|
1456 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1457 | $as_echo "$ac_try_echo"; } >&5 |
---|
1458 | (eval "$ac_compile") 2>conftest.err |
---|
1459 | ac_status=$? |
---|
1460 | if test -s conftest.err; then |
---|
1461 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1462 | cat conftest.er1 >&5 |
---|
1463 | mv -f conftest.er1 conftest.err |
---|
1464 | fi |
---|
1465 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1466 | test $ac_status = 0; } && { |
---|
1467 | test -z "$ac_c_werror_flag" || |
---|
1468 | test ! -s conftest.err |
---|
1469 | } && test -s conftest.$ac_objext; then : |
---|
1470 | ac_retval=0 |
---|
1471 | else |
---|
1472 | $as_echo "$as_me: failed program was:" >&5 |
---|
1473 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1474 | |
---|
1475 | ac_retval=1 |
---|
1476 | fi |
---|
1477 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
---|
1478 | as_fn_set_status $ac_retval |
---|
1479 | |
---|
1480 | } # ac_fn_c_try_compile |
---|
1481 | |
---|
1482 | # ac_fn_c_try_run LINENO |
---|
1483 | # ---------------------- |
---|
1484 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1485 | # that executables *can* be run. |
---|
1486 | ac_fn_c_try_run () |
---|
1487 | { |
---|
1488 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1489 | if { { ac_try="$ac_link" |
---|
1490 | case "(($ac_try" in |
---|
1491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1492 | *) ac_try_echo=$ac_try;; |
---|
1493 | esac |
---|
1494 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1495 | $as_echo "$ac_try_echo"; } >&5 |
---|
1496 | (eval "$ac_link") 2>&5 |
---|
1497 | ac_status=$? |
---|
1498 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1499 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1500 | { { case "(($ac_try" in |
---|
1501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1502 | *) ac_try_echo=$ac_try;; |
---|
1503 | esac |
---|
1504 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1505 | $as_echo "$ac_try_echo"; } >&5 |
---|
1506 | (eval "$ac_try") 2>&5 |
---|
1507 | ac_status=$? |
---|
1508 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1509 | test $ac_status = 0; }; }; then : |
---|
1510 | ac_retval=0 |
---|
1511 | else |
---|
1512 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1513 | $as_echo "$as_me: failed program was:" >&5 |
---|
1514 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1515 | |
---|
1516 | ac_retval=$ac_status |
---|
1517 | fi |
---|
1518 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1519 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
---|
1520 | as_fn_set_status $ac_retval |
---|
1521 | |
---|
1522 | } # ac_fn_c_try_run |
---|
1523 | |
---|
1524 | # ac_fn_c_try_cpp LINENO |
---|
1525 | # ---------------------- |
---|
1526 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1527 | ac_fn_c_try_cpp () |
---|
1528 | { |
---|
1529 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1530 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1531 | case "(($ac_try" in |
---|
1532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1533 | *) ac_try_echo=$ac_try;; |
---|
1534 | esac |
---|
1535 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1536 | $as_echo "$ac_try_echo"; } >&5 |
---|
1537 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1538 | ac_status=$? |
---|
1539 | if test -s conftest.err; then |
---|
1540 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1541 | cat conftest.er1 >&5 |
---|
1542 | mv -f conftest.er1 conftest.err |
---|
1543 | fi |
---|
1544 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1545 | test $ac_status = 0; } >/dev/null && { |
---|
1546 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1547 | test ! -s conftest.err |
---|
1548 | }; then : |
---|
1549 | ac_retval=0 |
---|
1550 | else |
---|
1551 | $as_echo "$as_me: failed program was:" >&5 |
---|
1552 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1553 | |
---|
1554 | ac_retval=1 |
---|
1555 | fi |
---|
1556 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
---|
1557 | as_fn_set_status $ac_retval |
---|
1558 | |
---|
1559 | } # ac_fn_c_try_cpp |
---|
1560 | |
---|
1561 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
1562 | # ------------------------------------------------------- |
---|
1563 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
1564 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
1565 | ac_fn_c_check_header_compile () |
---|
1566 | { |
---|
1567 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1569 | $as_echo_n "checking for $2... " >&6; } |
---|
1570 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
---|
1571 | $as_echo_n "(cached) " >&6 |
---|
1572 | else |
---|
1573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1574 | /* end confdefs.h. */ |
---|
1575 | $4 |
---|
1576 | #include <$2> |
---|
1577 | _ACEOF |
---|
1578 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1579 | eval "$3=yes" |
---|
1580 | else |
---|
1581 | eval "$3=no" |
---|
1582 | fi |
---|
1583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1584 | fi |
---|
1585 | eval ac_res=\$$3 |
---|
1586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1587 | $as_echo "$ac_res" >&6; } |
---|
1588 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
---|
1589 | |
---|
1590 | } # ac_fn_c_check_header_compile |
---|
1591 | |
---|
1592 | # ac_fn_fc_try_compile LINENO |
---|
1593 | # --------------------------- |
---|
1594 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1595 | ac_fn_fc_try_compile () |
---|
1596 | { |
---|
1597 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1598 | rm -f conftest.$ac_objext |
---|
1599 | if { { ac_try="$ac_compile" |
---|
1600 | case "(($ac_try" in |
---|
1601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1602 | *) ac_try_echo=$ac_try;; |
---|
1603 | esac |
---|
1604 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1605 | $as_echo "$ac_try_echo"; } >&5 |
---|
1606 | (eval "$ac_compile") 2>conftest.err |
---|
1607 | ac_status=$? |
---|
1608 | if test -s conftest.err; then |
---|
1609 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1610 | cat conftest.er1 >&5 |
---|
1611 | mv -f conftest.er1 conftest.err |
---|
1612 | fi |
---|
1613 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1614 | test $ac_status = 0; } && { |
---|
1615 | test -z "$ac_fc_werror_flag" || |
---|
1616 | test ! -s conftest.err |
---|
1617 | } && test -s conftest.$ac_objext; then : |
---|
1618 | ac_retval=0 |
---|
1619 | else |
---|
1620 | $as_echo "$as_me: failed program was:" >&5 |
---|
1621 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1622 | |
---|
1623 | ac_retval=1 |
---|
1624 | fi |
---|
1625 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
---|
1626 | as_fn_set_status $ac_retval |
---|
1627 | |
---|
1628 | } # ac_fn_fc_try_compile |
---|
1629 | |
---|
1630 | # ac_fn_fc_try_link LINENO |
---|
1631 | # ------------------------ |
---|
1632 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1633 | ac_fn_fc_try_link () |
---|
1634 | { |
---|
1635 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1636 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1637 | if { { ac_try="$ac_link" |
---|
1638 | case "(($ac_try" in |
---|
1639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1640 | *) ac_try_echo=$ac_try;; |
---|
1641 | esac |
---|
1642 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1643 | $as_echo "$ac_try_echo"; } >&5 |
---|
1644 | (eval "$ac_link") 2>conftest.err |
---|
1645 | ac_status=$? |
---|
1646 | if test -s conftest.err; then |
---|
1647 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1648 | cat conftest.er1 >&5 |
---|
1649 | mv -f conftest.er1 conftest.err |
---|
1650 | fi |
---|
1651 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1652 | test $ac_status = 0; } && { |
---|
1653 | test -z "$ac_fc_werror_flag" || |
---|
1654 | test ! -s conftest.err |
---|
1655 | } && test -s conftest$ac_exeext && { |
---|
1656 | test "$cross_compiling" = yes || |
---|
1657 | $as_test_x conftest$ac_exeext |
---|
1658 | }; then : |
---|
1659 | ac_retval=0 |
---|
1660 | else |
---|
1661 | $as_echo "$as_me: failed program was:" >&5 |
---|
1662 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1663 | |
---|
1664 | ac_retval=1 |
---|
1665 | fi |
---|
1666 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1667 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1668 | # interfere with the next link command; also delete a directory that is |
---|
1669 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1670 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1671 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
---|
1672 | as_fn_set_status $ac_retval |
---|
1673 | |
---|
1674 | } # ac_fn_fc_try_link |
---|
1675 | |
---|
1676 | # ac_fn_c_try_link LINENO |
---|
1677 | # ----------------------- |
---|
1678 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1679 | ac_fn_c_try_link () |
---|
1680 | { |
---|
1681 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1682 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1683 | if { { ac_try="$ac_link" |
---|
1684 | case "(($ac_try" in |
---|
1685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1686 | *) ac_try_echo=$ac_try;; |
---|
1687 | esac |
---|
1688 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1689 | $as_echo "$ac_try_echo"; } >&5 |
---|
1690 | (eval "$ac_link") 2>conftest.err |
---|
1691 | ac_status=$? |
---|
1692 | if test -s conftest.err; then |
---|
1693 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1694 | cat conftest.er1 >&5 |
---|
1695 | mv -f conftest.er1 conftest.err |
---|
1696 | fi |
---|
1697 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1698 | test $ac_status = 0; } && { |
---|
1699 | test -z "$ac_c_werror_flag" || |
---|
1700 | test ! -s conftest.err |
---|
1701 | } && test -s conftest$ac_exeext && { |
---|
1702 | test "$cross_compiling" = yes || |
---|
1703 | $as_test_x conftest$ac_exeext |
---|
1704 | }; then : |
---|
1705 | ac_retval=0 |
---|
1706 | else |
---|
1707 | $as_echo "$as_me: failed program was:" >&5 |
---|
1708 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1709 | |
---|
1710 | ac_retval=1 |
---|
1711 | fi |
---|
1712 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1713 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1714 | # interfere with the next link command; also delete a directory that is |
---|
1715 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1716 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1717 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
---|
1718 | as_fn_set_status $ac_retval |
---|
1719 | |
---|
1720 | } # ac_fn_c_try_link |
---|
1721 | cat >config.log <<_ACEOF |
---|
1722 | This file contains any messages produced by compilers while |
---|
1723 | running configure, to aid debugging if configure makes a mistake. |
---|
1724 | |
---|
1725 | It was created by MCT $as_me 2.8, which was |
---|
1726 | generated by GNU Autoconf 2.65. Invocation command line was |
---|
1727 | |
---|
1728 | $ $0 $@ |
---|
1729 | |
---|
1730 | _ACEOF |
---|
1731 | exec 5>>config.log |
---|
1732 | { |
---|
1733 | cat <<_ASUNAME |
---|
1734 | ## --------- ## |
---|
1735 | ## Platform. ## |
---|
1736 | ## --------- ## |
---|
1737 | |
---|
1738 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1739 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1740 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1741 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1742 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1743 | |
---|
1744 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1745 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1746 | |
---|
1747 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1748 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1749 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1750 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
1751 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1752 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1753 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1754 | |
---|
1755 | _ASUNAME |
---|
1756 | |
---|
1757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1758 | for as_dir in $PATH |
---|
1759 | do |
---|
1760 | IFS=$as_save_IFS |
---|
1761 | test -z "$as_dir" && as_dir=. |
---|
1762 | $as_echo "PATH: $as_dir" |
---|
1763 | done |
---|
1764 | IFS=$as_save_IFS |
---|
1765 | |
---|
1766 | } >&5 |
---|
1767 | |
---|
1768 | cat >&5 <<_ACEOF |
---|
1769 | |
---|
1770 | |
---|
1771 | ## ----------- ## |
---|
1772 | ## Core tests. ## |
---|
1773 | ## ----------- ## |
---|
1774 | |
---|
1775 | _ACEOF |
---|
1776 | |
---|
1777 | |
---|
1778 | # Keep a trace of the command line. |
---|
1779 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1780 | # Strip out --silent because we don't want to record it for future runs. |
---|
1781 | # Also quote any args containing shell meta-characters. |
---|
1782 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1783 | ac_configure_args= |
---|
1784 | ac_configure_args0= |
---|
1785 | ac_configure_args1= |
---|
1786 | ac_must_keep_next=false |
---|
1787 | for ac_pass in 1 2 |
---|
1788 | do |
---|
1789 | for ac_arg |
---|
1790 | do |
---|
1791 | case $ac_arg in |
---|
1792 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1793 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1794 | | -silent | --silent | --silen | --sile | --sil) |
---|
1795 | continue ;; |
---|
1796 | *\'*) |
---|
1797 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1798 | esac |
---|
1799 | case $ac_pass in |
---|
1800 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
1801 | 2) |
---|
1802 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
1803 | if test $ac_must_keep_next = true; then |
---|
1804 | ac_must_keep_next=false # Got value, back to normal. |
---|
1805 | else |
---|
1806 | case $ac_arg in |
---|
1807 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1808 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1809 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1810 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1811 | case "$ac_configure_args0 " in |
---|
1812 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1813 | esac |
---|
1814 | ;; |
---|
1815 | -* ) ac_must_keep_next=true ;; |
---|
1816 | esac |
---|
1817 | fi |
---|
1818 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
1819 | ;; |
---|
1820 | esac |
---|
1821 | done |
---|
1822 | done |
---|
1823 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
1824 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
1825 | |
---|
1826 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1827 | # config.log. We remove comments because anyway the quotes in there |
---|
1828 | # would cause problems or look ugly. |
---|
1829 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
1830 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
1831 | trap 'exit_status=$? |
---|
1832 | # Save into config.log some information that might help in debugging. |
---|
1833 | { |
---|
1834 | echo |
---|
1835 | |
---|
1836 | cat <<\_ASBOX |
---|
1837 | ## ---------------- ## |
---|
1838 | ## Cache variables. ## |
---|
1839 | ## ---------------- ## |
---|
1840 | _ASBOX |
---|
1841 | echo |
---|
1842 | # The following way of writing the cache mishandles newlines in values, |
---|
1843 | ( |
---|
1844 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
1845 | eval ac_val=\$$ac_var |
---|
1846 | case $ac_val in #( |
---|
1847 | *${as_nl}*) |
---|
1848 | case $ac_var in #( |
---|
1849 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
1850 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
1851 | esac |
---|
1852 | case $ac_var in #( |
---|
1853 | _ | IFS | as_nl) ;; #( |
---|
1854 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
1855 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
1856 | esac ;; |
---|
1857 | esac |
---|
1858 | done |
---|
1859 | (set) 2>&1 | |
---|
1860 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
1861 | *${as_nl}ac_space=\ *) |
---|
1862 | sed -n \ |
---|
1863 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
1864 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
1865 | ;; #( |
---|
1866 | *) |
---|
1867 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
1868 | ;; |
---|
1869 | esac | |
---|
1870 | sort |
---|
1871 | ) |
---|
1872 | echo |
---|
1873 | |
---|
1874 | cat <<\_ASBOX |
---|
1875 | ## ----------------- ## |
---|
1876 | ## Output variables. ## |
---|
1877 | ## ----------------- ## |
---|
1878 | _ASBOX |
---|
1879 | echo |
---|
1880 | for ac_var in $ac_subst_vars |
---|
1881 | do |
---|
1882 | eval ac_val=\$$ac_var |
---|
1883 | case $ac_val in |
---|
1884 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
1885 | esac |
---|
1886 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
1887 | done | sort |
---|
1888 | echo |
---|
1889 | |
---|
1890 | if test -n "$ac_subst_files"; then |
---|
1891 | cat <<\_ASBOX |
---|
1892 | ## ------------------- ## |
---|
1893 | ## File substitutions. ## |
---|
1894 | ## ------------------- ## |
---|
1895 | _ASBOX |
---|
1896 | echo |
---|
1897 | for ac_var in $ac_subst_files |
---|
1898 | do |
---|
1899 | eval ac_val=\$$ac_var |
---|
1900 | case $ac_val in |
---|
1901 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
1902 | esac |
---|
1903 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
1904 | done | sort |
---|
1905 | echo |
---|
1906 | fi |
---|
1907 | |
---|
1908 | if test -s confdefs.h; then |
---|
1909 | cat <<\_ASBOX |
---|
1910 | ## ----------- ## |
---|
1911 | ## confdefs.h. ## |
---|
1912 | ## ----------- ## |
---|
1913 | _ASBOX |
---|
1914 | echo |
---|
1915 | cat confdefs.h |
---|
1916 | echo |
---|
1917 | fi |
---|
1918 | test "$ac_signal" != 0 && |
---|
1919 | $as_echo "$as_me: caught signal $ac_signal" |
---|
1920 | $as_echo "$as_me: exit $exit_status" |
---|
1921 | } >&5 |
---|
1922 | rm -f core *.core core.conftest.* && |
---|
1923 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
1924 | exit $exit_status |
---|
1925 | ' 0 |
---|
1926 | for ac_signal in 1 2 13 15; do |
---|
1927 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
1928 | done |
---|
1929 | ac_signal=0 |
---|
1930 | |
---|
1931 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1932 | rm -f -r conftest* confdefs.h |
---|
1933 | |
---|
1934 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
1935 | |
---|
1936 | # Predefined preprocessor variables. |
---|
1937 | |
---|
1938 | cat >>confdefs.h <<_ACEOF |
---|
1939 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1940 | _ACEOF |
---|
1941 | |
---|
1942 | cat >>confdefs.h <<_ACEOF |
---|
1943 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1944 | _ACEOF |
---|
1945 | |
---|
1946 | cat >>confdefs.h <<_ACEOF |
---|
1947 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1948 | _ACEOF |
---|
1949 | |
---|
1950 | cat >>confdefs.h <<_ACEOF |
---|
1951 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1952 | _ACEOF |
---|
1953 | |
---|
1954 | cat >>confdefs.h <<_ACEOF |
---|
1955 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1956 | _ACEOF |
---|
1957 | |
---|
1958 | cat >>confdefs.h <<_ACEOF |
---|
1959 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
1960 | _ACEOF |
---|
1961 | |
---|
1962 | |
---|
1963 | # Let the site file select an alternate cache file if it wants to. |
---|
1964 | # Prefer an explicitly selected file to automatically selected ones. |
---|
1965 | ac_site_file1=NONE |
---|
1966 | ac_site_file2=NONE |
---|
1967 | if test -n "$CONFIG_SITE"; then |
---|
1968 | ac_site_file1=$CONFIG_SITE |
---|
1969 | elif test "x$prefix" != xNONE; then |
---|
1970 | ac_site_file1=$prefix/share/config.site |
---|
1971 | ac_site_file2=$prefix/etc/config.site |
---|
1972 | else |
---|
1973 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
1974 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
1975 | fi |
---|
1976 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
1977 | do |
---|
1978 | test "x$ac_site_file" = xNONE && continue |
---|
1979 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
1980 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
1981 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1982 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1983 | . "$ac_site_file" |
---|
1984 | fi |
---|
1985 | done |
---|
1986 | |
---|
1987 | if test -r "$cache_file"; then |
---|
1988 | # Some versions of bash will fail to source /dev/null (special files |
---|
1989 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
1990 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
1991 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
1992 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
1993 | case $cache_file in |
---|
1994 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
1995 | *) . "./$cache_file";; |
---|
1996 | esac |
---|
1997 | fi |
---|
1998 | else |
---|
1999 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2000 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
2001 | >$cache_file |
---|
2002 | fi |
---|
2003 | |
---|
2004 | # Check that the precious variables saved in the cache have kept the same |
---|
2005 | # value. |
---|
2006 | ac_cache_corrupted=false |
---|
2007 | for ac_var in $ac_precious_vars; do |
---|
2008 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2009 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2010 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2011 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2012 | case $ac_old_set,$ac_new_set in |
---|
2013 | set,) |
---|
2014 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2015 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2016 | ac_cache_corrupted=: ;; |
---|
2017 | ,set) |
---|
2018 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2019 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2020 | ac_cache_corrupted=: ;; |
---|
2021 | ,);; |
---|
2022 | *) |
---|
2023 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2024 | # differences in whitespace do not lead to failure. |
---|
2025 | ac_old_val_w=`echo x $ac_old_val` |
---|
2026 | ac_new_val_w=`echo x $ac_new_val` |
---|
2027 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2028 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2029 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2030 | ac_cache_corrupted=: |
---|
2031 | else |
---|
2032 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2033 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2034 | eval $ac_var=\$ac_old_val |
---|
2035 | fi |
---|
2036 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2037 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2038 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2039 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2040 | fi;; |
---|
2041 | esac |
---|
2042 | # Pass precious variables to config.status. |
---|
2043 | if test "$ac_new_set" = set; then |
---|
2044 | case $ac_new_val in |
---|
2045 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2046 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2047 | esac |
---|
2048 | case " $ac_configure_args " in |
---|
2049 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2050 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2051 | esac |
---|
2052 | fi |
---|
2053 | done |
---|
2054 | if $ac_cache_corrupted; then |
---|
2055 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2056 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2057 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2058 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2059 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2060 | fi |
---|
2061 | ## -------------------- ## |
---|
2062 | ## Main body of script. ## |
---|
2063 | ## -------------------- ## |
---|
2064 | |
---|
2065 | ac_ext=c |
---|
2066 | ac_cpp='$CPP $CPPFLAGS' |
---|
2067 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2068 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2069 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2070 | |
---|
2071 | |
---|
2072 | |
---|
2073 | # PROCESS THE FOLLOWING MAKEFILES |
---|
2074 | |
---|
2075 | ac_config_files="$ac_config_files Makefile.conf" |
---|
2076 | |
---|
2077 | ac_config_headers="$ac_config_headers config.h" |
---|
2078 | |
---|
2079 | |
---|
2080 | # DECLARE PACKAGE OPTIONS |
---|
2081 | |
---|
2082 | # Check whether --enable-mpiserial was given. |
---|
2083 | if test "${enable_mpiserial+set}" = set; then : |
---|
2084 | enableval=$enable_mpiserial; DONOTCHECKMPI="DONOTCHECKMPI" |
---|
2085 | |
---|
2086 | fi |
---|
2087 | |
---|
2088 | |
---|
2089 | # Check whether --enable-debugging was given. |
---|
2090 | if test "${enable_debugging+set}" = set; then : |
---|
2091 | enableval=$enable_debugging; DEBUGGING="ENABLED" |
---|
2092 | |
---|
2093 | fi |
---|
2094 | |
---|
2095 | |
---|
2096 | # Check whether --enable-selectedrealkind was given. |
---|
2097 | if test "${enable_selectedrealkind+set}" = set; then : |
---|
2098 | enableval=$enable_selectedrealkind; SRKDEF="SELECTEDREALKIND" |
---|
2099 | |
---|
2100 | fi |
---|
2101 | |
---|
2102 | |
---|
2103 | # Check whether --enable-sequence was given. |
---|
2104 | if test "${enable_sequence+set}" = set; then : |
---|
2105 | enableval=$enable_sequence; SRKDEF="SEQUENCE" |
---|
2106 | fi |
---|
2107 | |
---|
2108 | |
---|
2109 | # Check whether --enable-babel was given. |
---|
2110 | if test "${enable_babel+set}" = set; then : |
---|
2111 | enableval=$enable_babel; SRKDEF="SEQUENCE" |
---|
2112 | fi |
---|
2113 | |
---|
2114 | |
---|
2115 | |
---|
2116 | |
---|
2117 | # DECLARE THE FOLLOWING PRECIOUS VARIABLES |
---|
2118 | |
---|
2119 | |
---|
2120 | |
---|
2121 | |
---|
2122 | |
---|
2123 | |
---|
2124 | |
---|
2125 | |
---|
2126 | |
---|
2127 | |
---|
2128 | |
---|
2129 | |
---|
2130 | |
---|
2131 | |
---|
2132 | |
---|
2133 | |
---|
2134 | |
---|
2135 | |
---|
2136 | |
---|
2137 | |
---|
2138 | |
---|
2139 | # INCLUDE BABELROOT and COMPILER_ROOT in Makefile.conf(autoconf output) |
---|
2140 | |
---|
2141 | |
---|
2142 | |
---|
2143 | |
---|
2144 | |
---|
2145 | # SET TEMPORARY VARIABLES |
---|
2146 | |
---|
2147 | # OS AND PLATFORM NAME |
---|
2148 | test "$osname"=NONE && osname=`uname -s` |
---|
2149 | test "$machinename"=NONE && machinename=`uname -m` |
---|
2150 | fullhostname=`hostname -f` |
---|
2151 | |
---|
2152 | |
---|
2153 | # HARDCODE SPECIFIC MACHINES FOR EXTRAORDINARY CIRCUMSTANCES |
---|
2154 | |
---|
2155 | # CHECK IF WE ARE ON THE EARTH SIMULATOR |
---|
2156 | ES="NO" |
---|
2157 | if echo $osname | grep -i esos >/dev/null 2>&1; then |
---|
2158 | ES="YES" |
---|
2159 | fi |
---|
2160 | if echo $osname | grep -i hp-ux >/dev/null 2>&1; then |
---|
2161 | if test "$ac_hostname" = "moon"; then |
---|
2162 | ES="YES" |
---|
2163 | # TELLS CONFIGURE NOT TO RUN ANY TESTS THAT REQUIRE EXECUTION |
---|
2164 | cross_compiling="yes" |
---|
2165 | fi |
---|
2166 | fi |
---|
2167 | if test "$ES" = "YES"; then |
---|
2168 | echo "Using preset configuration values for the Earth Simulator" |
---|
2169 | if test -z "$CC"; then |
---|
2170 | CC="escc" |
---|
2171 | fi |
---|
2172 | if test -z "$FC"; then |
---|
2173 | FC="esf90" |
---|
2174 | fi |
---|
2175 | if test -z "$MPIFC"; then |
---|
2176 | MPIFC="esmpif90" |
---|
2177 | fi |
---|
2178 | if test -z "$AR"; then |
---|
2179 | AR="esar cqs" |
---|
2180 | fi |
---|
2181 | if test -z "FPP"; then |
---|
2182 | FPPFLAGS=" " |
---|
2183 | fi |
---|
2184 | if test -z "$FCFLAGS"; then |
---|
2185 | FCFLAGS="-EP -Wf'-pvctl fullmsg -L fmtlist transform map'" |
---|
2186 | fi |
---|
2187 | if test -z "$OPT"; then |
---|
2188 | OPT="-C vopt" |
---|
2189 | fi |
---|
2190 | if test -z "$CPPDEFS"; then |
---|
2191 | CPPDEFS="-DESVEC" |
---|
2192 | fi |
---|
2193 | fi |
---|
2194 | |
---|
2195 | # Check if we are on the ANL BG/P |
---|
2196 | |
---|
2197 | if echo $fullhostname | egrep -q '.\.(challenger|intrepid)\.alcf\.anl\.gov' |
---|
2198 | then if test -z "$FC"; then |
---|
2199 | FC=bgxlf90_r |
---|
2200 | fi |
---|
2201 | if test -z "$MPIFC"; then |
---|
2202 | MPIFC=mpixlf90_r |
---|
2203 | fi |
---|
2204 | if test -z "$CC"; then |
---|
2205 | CC=mpixlc_r |
---|
2206 | fi |
---|
2207 | fi |
---|
2208 | |
---|
2209 | |
---|
2210 | |
---|
2211 | # START TESTS |
---|
2212 | |
---|
2213 | # CHECK FOR THE C COMPILER |
---|
2214 | ac_ext=c |
---|
2215 | ac_cpp='$CPP $CPPFLAGS' |
---|
2216 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2217 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2218 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2219 | if test -n "$ac_tool_prefix"; then |
---|
2220 | for ac_prog in cc |
---|
2221 | do |
---|
2222 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2223 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2225 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2226 | if test "${ac_cv_prog_CC+set}" = set; then : |
---|
2227 | $as_echo_n "(cached) " >&6 |
---|
2228 | else |
---|
2229 | if test -n "$CC"; then |
---|
2230 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2231 | else |
---|
2232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2233 | for as_dir in $PATH |
---|
2234 | do |
---|
2235 | IFS=$as_save_IFS |
---|
2236 | test -z "$as_dir" && as_dir=. |
---|
2237 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2238 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2239 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2240 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2241 | break 2 |
---|
2242 | fi |
---|
2243 | done |
---|
2244 | done |
---|
2245 | IFS=$as_save_IFS |
---|
2246 | |
---|
2247 | fi |
---|
2248 | fi |
---|
2249 | CC=$ac_cv_prog_CC |
---|
2250 | if test -n "$CC"; then |
---|
2251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2252 | $as_echo "$CC" >&6; } |
---|
2253 | else |
---|
2254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2255 | $as_echo "no" >&6; } |
---|
2256 | fi |
---|
2257 | |
---|
2258 | |
---|
2259 | test -n "$CC" && break |
---|
2260 | done |
---|
2261 | fi |
---|
2262 | if test -z "$CC"; then |
---|
2263 | ac_ct_CC=$CC |
---|
2264 | for ac_prog in cc |
---|
2265 | do |
---|
2266 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2267 | set dummy $ac_prog; ac_word=$2 |
---|
2268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2269 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2270 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
---|
2271 | $as_echo_n "(cached) " >&6 |
---|
2272 | else |
---|
2273 | if test -n "$ac_ct_CC"; then |
---|
2274 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2275 | else |
---|
2276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2277 | for as_dir in $PATH |
---|
2278 | do |
---|
2279 | IFS=$as_save_IFS |
---|
2280 | test -z "$as_dir" && as_dir=. |
---|
2281 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2282 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2283 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2284 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2285 | break 2 |
---|
2286 | fi |
---|
2287 | done |
---|
2288 | done |
---|
2289 | IFS=$as_save_IFS |
---|
2290 | |
---|
2291 | fi |
---|
2292 | fi |
---|
2293 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2294 | if test -n "$ac_ct_CC"; then |
---|
2295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
2296 | $as_echo "$ac_ct_CC" >&6; } |
---|
2297 | else |
---|
2298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2299 | $as_echo "no" >&6; } |
---|
2300 | fi |
---|
2301 | |
---|
2302 | |
---|
2303 | test -n "$ac_ct_CC" && break |
---|
2304 | done |
---|
2305 | |
---|
2306 | if test "x$ac_ct_CC" = x; then |
---|
2307 | CC="" |
---|
2308 | else |
---|
2309 | case $cross_compiling:$ac_tool_warned in |
---|
2310 | yes:) |
---|
2311 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2312 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2313 | ac_tool_warned=yes ;; |
---|
2314 | esac |
---|
2315 | CC=$ac_ct_CC |
---|
2316 | fi |
---|
2317 | fi |
---|
2318 | |
---|
2319 | |
---|
2320 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2321 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2322 | as_fn_error "no acceptable C compiler found in \$PATH |
---|
2323 | See \`config.log' for more details." "$LINENO" 5; } |
---|
2324 | |
---|
2325 | # Provide some information about the compiler. |
---|
2326 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
2327 | set X $ac_compile |
---|
2328 | ac_compiler=$2 |
---|
2329 | for ac_option in --version -v -V -qversion; do |
---|
2330 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
2331 | case "(($ac_try" in |
---|
2332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2333 | *) ac_try_echo=$ac_try;; |
---|
2334 | esac |
---|
2335 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2336 | $as_echo "$ac_try_echo"; } >&5 |
---|
2337 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
2338 | ac_status=$? |
---|
2339 | if test -s conftest.err; then |
---|
2340 | sed '10a\ |
---|
2341 | ... rest of stderr output deleted ... |
---|
2342 | 10q' conftest.err >conftest.er1 |
---|
2343 | cat conftest.er1 >&5 |
---|
2344 | fi |
---|
2345 | rm -f conftest.er1 conftest.err |
---|
2346 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2347 | test $ac_status = 0; } |
---|
2348 | done |
---|
2349 | |
---|
2350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2351 | /* end confdefs.h. */ |
---|
2352 | |
---|
2353 | int |
---|
2354 | main () |
---|
2355 | { |
---|
2356 | |
---|
2357 | ; |
---|
2358 | return 0; |
---|
2359 | } |
---|
2360 | _ACEOF |
---|
2361 | ac_clean_files_save=$ac_clean_files |
---|
2362 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
2363 | # Try to create an executable without -o first, disregard a.out. |
---|
2364 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2365 | # of exeext. |
---|
2366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
---|
2367 | $as_echo_n "checking whether the C compiler works... " >&6; } |
---|
2368 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2369 | |
---|
2370 | # The possible output files: |
---|
2371 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
2372 | |
---|
2373 | ac_rmfiles= |
---|
2374 | for ac_file in $ac_files |
---|
2375 | do |
---|
2376 | case $ac_file in |
---|
2377 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
2378 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
2379 | esac |
---|
2380 | done |
---|
2381 | rm -f $ac_rmfiles |
---|
2382 | |
---|
2383 | if { { ac_try="$ac_link_default" |
---|
2384 | case "(($ac_try" in |
---|
2385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2386 | *) ac_try_echo=$ac_try;; |
---|
2387 | esac |
---|
2388 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2389 | $as_echo "$ac_try_echo"; } >&5 |
---|
2390 | (eval "$ac_link_default") 2>&5 |
---|
2391 | ac_status=$? |
---|
2392 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2393 | test $ac_status = 0; }; then : |
---|
2394 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
2395 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
2396 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
2397 | # so that the user can short-circuit this test for compilers unknown to |
---|
2398 | # Autoconf. |
---|
2399 | for ac_file in $ac_files '' |
---|
2400 | do |
---|
2401 | test -f "$ac_file" || continue |
---|
2402 | case $ac_file in |
---|
2403 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
2404 | ;; |
---|
2405 | [ab].out ) |
---|
2406 | # We found the default executable, but exeext='' is most |
---|
2407 | # certainly right. |
---|
2408 | break;; |
---|
2409 | *.* ) |
---|
2410 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
2411 | then :; else |
---|
2412 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2413 | fi |
---|
2414 | # We set ac_cv_exeext here because the later test for it is not |
---|
2415 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
2416 | # argument, so we may need to know it at that point already. |
---|
2417 | # Even if this section looks crufty: it has the advantage of |
---|
2418 | # actually working. |
---|
2419 | break;; |
---|
2420 | * ) |
---|
2421 | break;; |
---|
2422 | esac |
---|
2423 | done |
---|
2424 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
2425 | |
---|
2426 | else |
---|
2427 | ac_file='' |
---|
2428 | fi |
---|
2429 | if test -z "$ac_file"; then : |
---|
2430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2431 | $as_echo "no" >&6; } |
---|
2432 | $as_echo "$as_me: failed program was:" >&5 |
---|
2433 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2434 | |
---|
2435 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2436 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2437 | { as_fn_set_status 77 |
---|
2438 | as_fn_error "C compiler cannot create executables |
---|
2439 | See \`config.log' for more details." "$LINENO" 5; }; } |
---|
2440 | else |
---|
2441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2442 | $as_echo "yes" >&6; } |
---|
2443 | fi |
---|
2444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
---|
2445 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
---|
2446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
2447 | $as_echo "$ac_file" >&6; } |
---|
2448 | ac_exeext=$ac_cv_exeext |
---|
2449 | |
---|
2450 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
2451 | ac_clean_files=$ac_clean_files_save |
---|
2452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
2453 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
2454 | if { { ac_try="$ac_link" |
---|
2455 | case "(($ac_try" in |
---|
2456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2457 | *) ac_try_echo=$ac_try;; |
---|
2458 | esac |
---|
2459 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2460 | $as_echo "$ac_try_echo"; } >&5 |
---|
2461 | (eval "$ac_link") 2>&5 |
---|
2462 | ac_status=$? |
---|
2463 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2464 | test $ac_status = 0; }; then : |
---|
2465 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2466 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2467 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2468 | # `rm'. |
---|
2469 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2470 | test -f "$ac_file" || continue |
---|
2471 | case $ac_file in |
---|
2472 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
2473 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2474 | break;; |
---|
2475 | * ) break;; |
---|
2476 | esac |
---|
2477 | done |
---|
2478 | else |
---|
2479 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2480 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2481 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
---|
2482 | See \`config.log' for more details." "$LINENO" 5; } |
---|
2483 | fi |
---|
2484 | rm -f conftest conftest$ac_cv_exeext |
---|
2485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
2486 | $as_echo "$ac_cv_exeext" >&6; } |
---|
2487 | |
---|
2488 | rm -f conftest.$ac_ext |
---|
2489 | EXEEXT=$ac_cv_exeext |
---|
2490 | ac_exeext=$EXEEXT |
---|
2491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2492 | /* end confdefs.h. */ |
---|
2493 | #include <stdio.h> |
---|
2494 | int |
---|
2495 | main () |
---|
2496 | { |
---|
2497 | FILE *f = fopen ("conftest.out", "w"); |
---|
2498 | return ferror (f) || fclose (f) != 0; |
---|
2499 | |
---|
2500 | ; |
---|
2501 | return 0; |
---|
2502 | } |
---|
2503 | _ACEOF |
---|
2504 | ac_clean_files="$ac_clean_files conftest.out" |
---|
2505 | # Check that the compiler produces executables we can run. If not, either |
---|
2506 | # the compiler is broken, or we cross compile. |
---|
2507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
2508 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
2509 | if test "$cross_compiling" != yes; then |
---|
2510 | { { ac_try="$ac_link" |
---|
2511 | case "(($ac_try" in |
---|
2512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2513 | *) ac_try_echo=$ac_try;; |
---|
2514 | esac |
---|
2515 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2516 | $as_echo "$ac_try_echo"; } >&5 |
---|
2517 | (eval "$ac_link") 2>&5 |
---|
2518 | ac_status=$? |
---|
2519 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2520 | test $ac_status = 0; } |
---|
2521 | if { ac_try='./conftest$ac_cv_exeext' |
---|
2522 | { { case "(($ac_try" in |
---|
2523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2524 | *) ac_try_echo=$ac_try;; |
---|
2525 | esac |
---|
2526 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2527 | $as_echo "$ac_try_echo"; } >&5 |
---|
2528 | (eval "$ac_try") 2>&5 |
---|
2529 | ac_status=$? |
---|
2530 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2531 | test $ac_status = 0; }; }; then |
---|
2532 | cross_compiling=no |
---|
2533 | else |
---|
2534 | if test "$cross_compiling" = maybe; then |
---|
2535 | cross_compiling=yes |
---|
2536 | else |
---|
2537 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2538 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2539 | as_fn_error "cannot run C compiled programs. |
---|
2540 | If you meant to cross compile, use \`--host'. |
---|
2541 | See \`config.log' for more details." "$LINENO" 5; } |
---|
2542 | fi |
---|
2543 | fi |
---|
2544 | fi |
---|
2545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
2546 | $as_echo "$cross_compiling" >&6; } |
---|
2547 | |
---|
2548 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
2549 | ac_clean_files=$ac_clean_files_save |
---|
2550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
2551 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
2552 | if test "${ac_cv_objext+set}" = set; then : |
---|
2553 | $as_echo_n "(cached) " >&6 |
---|
2554 | else |
---|
2555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2556 | /* end confdefs.h. */ |
---|
2557 | |
---|
2558 | int |
---|
2559 | main () |
---|
2560 | { |
---|
2561 | |
---|
2562 | ; |
---|
2563 | return 0; |
---|
2564 | } |
---|
2565 | _ACEOF |
---|
2566 | rm -f conftest.o conftest.obj |
---|
2567 | if { { ac_try="$ac_compile" |
---|
2568 | case "(($ac_try" in |
---|
2569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2570 | *) ac_try_echo=$ac_try;; |
---|
2571 | esac |
---|
2572 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2573 | $as_echo "$ac_try_echo"; } >&5 |
---|
2574 | (eval "$ac_compile") 2>&5 |
---|
2575 | ac_status=$? |
---|
2576 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2577 | test $ac_status = 0; }; then : |
---|
2578 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
2579 | test -f "$ac_file" || continue; |
---|
2580 | case $ac_file in |
---|
2581 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
2582 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2583 | break;; |
---|
2584 | esac |
---|
2585 | done |
---|
2586 | else |
---|
2587 | $as_echo "$as_me: failed program was:" >&5 |
---|
2588 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2589 | |
---|
2590 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2591 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2592 | as_fn_error "cannot compute suffix of object files: cannot compile |
---|
2593 | See \`config.log' for more details." "$LINENO" 5; } |
---|
2594 | fi |
---|
2595 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2596 | fi |
---|
2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
2598 | $as_echo "$ac_cv_objext" >&6; } |
---|
2599 | OBJEXT=$ac_cv_objext |
---|
2600 | ac_objext=$OBJEXT |
---|
2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
2602 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
2603 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
---|
2604 | $as_echo_n "(cached) " >&6 |
---|
2605 | else |
---|
2606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2607 | /* end confdefs.h. */ |
---|
2608 | |
---|
2609 | int |
---|
2610 | main () |
---|
2611 | { |
---|
2612 | #ifndef __GNUC__ |
---|
2613 | choke me |
---|
2614 | #endif |
---|
2615 | |
---|
2616 | ; |
---|
2617 | return 0; |
---|
2618 | } |
---|
2619 | _ACEOF |
---|
2620 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2621 | ac_compiler_gnu=yes |
---|
2622 | else |
---|
2623 | ac_compiler_gnu=no |
---|
2624 | fi |
---|
2625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2626 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2627 | |
---|
2628 | fi |
---|
2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2630 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
2631 | if test $ac_compiler_gnu = yes; then |
---|
2632 | GCC=yes |
---|
2633 | else |
---|
2634 | GCC= |
---|
2635 | fi |
---|
2636 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2637 | ac_save_CFLAGS=$CFLAGS |
---|
2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
2639 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
2640 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
---|
2641 | $as_echo_n "(cached) " >&6 |
---|
2642 | else |
---|
2643 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
2644 | ac_c_werror_flag=yes |
---|
2645 | ac_cv_prog_cc_g=no |
---|
2646 | CFLAGS="-g" |
---|
2647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2648 | /* end confdefs.h. */ |
---|
2649 | |
---|
2650 | int |
---|
2651 | main () |
---|
2652 | { |
---|
2653 | |
---|
2654 | ; |
---|
2655 | return 0; |
---|
2656 | } |
---|
2657 | _ACEOF |
---|
2658 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2659 | ac_cv_prog_cc_g=yes |
---|
2660 | else |
---|
2661 | CFLAGS="" |
---|
2662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2663 | /* end confdefs.h. */ |
---|
2664 | |
---|
2665 | int |
---|
2666 | main () |
---|
2667 | { |
---|
2668 | |
---|
2669 | ; |
---|
2670 | return 0; |
---|
2671 | } |
---|
2672 | _ACEOF |
---|
2673 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2674 | |
---|
2675 | else |
---|
2676 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
2677 | CFLAGS="-g" |
---|
2678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2679 | /* end confdefs.h. */ |
---|
2680 | |
---|
2681 | int |
---|
2682 | main () |
---|
2683 | { |
---|
2684 | |
---|
2685 | ; |
---|
2686 | return 0; |
---|
2687 | } |
---|
2688 | _ACEOF |
---|
2689 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2690 | ac_cv_prog_cc_g=yes |
---|
2691 | fi |
---|
2692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2693 | fi |
---|
2694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2695 | fi |
---|
2696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2697 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
2698 | fi |
---|
2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
2700 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
2701 | if test "$ac_test_CFLAGS" = set; then |
---|
2702 | CFLAGS=$ac_save_CFLAGS |
---|
2703 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2704 | if test "$GCC" = yes; then |
---|
2705 | CFLAGS="-g -O2" |
---|
2706 | else |
---|
2707 | CFLAGS="-g" |
---|
2708 | fi |
---|
2709 | else |
---|
2710 | if test "$GCC" = yes; then |
---|
2711 | CFLAGS="-O2" |
---|
2712 | else |
---|
2713 | CFLAGS= |
---|
2714 | fi |
---|
2715 | fi |
---|
2716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
2717 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
2718 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
---|
2719 | $as_echo_n "(cached) " >&6 |
---|
2720 | else |
---|
2721 | ac_cv_prog_cc_c89=no |
---|
2722 | ac_save_CC=$CC |
---|
2723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2724 | /* end confdefs.h. */ |
---|
2725 | #include <stdarg.h> |
---|
2726 | #include <stdio.h> |
---|
2727 | #include <sys/types.h> |
---|
2728 | #include <sys/stat.h> |
---|
2729 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2730 | struct buf { int x; }; |
---|
2731 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2732 | static char *e (p, i) |
---|
2733 | char **p; |
---|
2734 | int i; |
---|
2735 | { |
---|
2736 | return p[i]; |
---|
2737 | } |
---|
2738 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2739 | { |
---|
2740 | char *s; |
---|
2741 | va_list v; |
---|
2742 | va_start (v,p); |
---|
2743 | s = g (p, va_arg (v,int)); |
---|
2744 | va_end (v); |
---|
2745 | return s; |
---|
2746 | } |
---|
2747 | |
---|
2748 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2749 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2750 | These don't provoke an error unfortunately, instead are silently treated |
---|
2751 | as 'x'. The following induces an error, until -std is added to get |
---|
2752 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2753 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2754 | that's true only with -std. */ |
---|
2755 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2756 | |
---|
2757 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
2758 | inside strings and character constants. */ |
---|
2759 | #define FOO(x) 'x' |
---|
2760 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
2761 | |
---|
2762 | int test (int i, double x); |
---|
2763 | struct s1 {int (*f) (int a);}; |
---|
2764 | struct s2 {int (*f) (double a);}; |
---|
2765 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2766 | int argc; |
---|
2767 | char **argv; |
---|
2768 | int |
---|
2769 | main () |
---|
2770 | { |
---|
2771 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2772 | ; |
---|
2773 | return 0; |
---|
2774 | } |
---|
2775 | _ACEOF |
---|
2776 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
2777 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2778 | do |
---|
2779 | CC="$ac_save_CC $ac_arg" |
---|
2780 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2781 | ac_cv_prog_cc_c89=$ac_arg |
---|
2782 | fi |
---|
2783 | rm -f core conftest.err conftest.$ac_objext |
---|
2784 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
2785 | done |
---|
2786 | rm -f conftest.$ac_ext |
---|
2787 | CC=$ac_save_CC |
---|
2788 | |
---|
2789 | fi |
---|
2790 | # AC_CACHE_VAL |
---|
2791 | case "x$ac_cv_prog_cc_c89" in |
---|
2792 | x) |
---|
2793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
2794 | $as_echo "none needed" >&6; } ;; |
---|
2795 | xno) |
---|
2796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
2797 | $as_echo "unsupported" >&6; } ;; |
---|
2798 | *) |
---|
2799 | CC="$CC $ac_cv_prog_cc_c89" |
---|
2800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
2801 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
2802 | esac |
---|
2803 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
2804 | |
---|
2805 | fi |
---|
2806 | |
---|
2807 | ac_ext=c |
---|
2808 | ac_cpp='$CPP $CPPFLAGS' |
---|
2809 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2810 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2811 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2812 | |
---|
2813 | |
---|
2814 | # CHECK FOR BYTE ORDERING |
---|
2815 | |
---|
2816 | ac_ext=c |
---|
2817 | ac_cpp='$CPP $CPPFLAGS' |
---|
2818 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2819 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2820 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
2822 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
2823 | # On Suns, sometimes $CPP names a directory. |
---|
2824 | if test -n "$CPP" && test -d "$CPP"; then |
---|
2825 | CPP= |
---|
2826 | fi |
---|
2827 | if test -z "$CPP"; then |
---|
2828 | if test "${ac_cv_prog_CPP+set}" = set; then : |
---|
2829 | $as_echo_n "(cached) " >&6 |
---|
2830 | else |
---|
2831 | # Double quotes because CPP needs to be expanded |
---|
2832 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
2833 | do |
---|
2834 | ac_preproc_ok=false |
---|
2835 | for ac_c_preproc_warn_flag in '' yes |
---|
2836 | do |
---|
2837 | # Use a header file that comes with gcc, so configuring glibc |
---|
2838 | # with a fresh cross-compiler works. |
---|
2839 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
2840 | # <limits.h> exists even on freestanding compilers. |
---|
2841 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
2842 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
2843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2844 | /* end confdefs.h. */ |
---|
2845 | #ifdef __STDC__ |
---|
2846 | # include <limits.h> |
---|
2847 | #else |
---|
2848 | # include <assert.h> |
---|
2849 | #endif |
---|
2850 | Syntax error |
---|
2851 | _ACEOF |
---|
2852 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
2853 | |
---|
2854 | else |
---|
2855 | # Broken: fails on valid input. |
---|
2856 | continue |
---|
2857 | fi |
---|
2858 | rm -f conftest.err conftest.$ac_ext |
---|
2859 | |
---|
2860 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
2861 | # can be detected and how. |
---|
2862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2863 | /* end confdefs.h. */ |
---|
2864 | #include <ac_nonexistent.h> |
---|
2865 | _ACEOF |
---|
2866 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
2867 | # Broken: success on invalid input. |
---|
2868 | continue |
---|
2869 | else |
---|
2870 | # Passes both tests. |
---|
2871 | ac_preproc_ok=: |
---|
2872 | break |
---|
2873 | fi |
---|
2874 | rm -f conftest.err conftest.$ac_ext |
---|
2875 | |
---|
2876 | done |
---|
2877 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
2878 | rm -f conftest.err conftest.$ac_ext |
---|
2879 | if $ac_preproc_ok; then : |
---|
2880 | break |
---|
2881 | fi |
---|
2882 | |
---|
2883 | done |
---|
2884 | ac_cv_prog_CPP=$CPP |
---|
2885 | |
---|
2886 | fi |
---|
2887 | CPP=$ac_cv_prog_CPP |
---|
2888 | else |
---|
2889 | ac_cv_prog_CPP=$CPP |
---|
2890 | fi |
---|
2891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
2892 | $as_echo "$CPP" >&6; } |
---|
2893 | ac_preproc_ok=false |
---|
2894 | for ac_c_preproc_warn_flag in '' yes |
---|
2895 | do |
---|
2896 | # Use a header file that comes with gcc, so configuring glibc |
---|
2897 | # with a fresh cross-compiler works. |
---|
2898 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
2899 | # <limits.h> exists even on freestanding compilers. |
---|
2900 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
2901 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
2902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2903 | /* end confdefs.h. */ |
---|
2904 | #ifdef __STDC__ |
---|
2905 | # include <limits.h> |
---|
2906 | #else |
---|
2907 | # include <assert.h> |
---|
2908 | #endif |
---|
2909 | Syntax error |
---|
2910 | _ACEOF |
---|
2911 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
2912 | |
---|
2913 | else |
---|
2914 | # Broken: fails on valid input. |
---|
2915 | continue |
---|
2916 | fi |
---|
2917 | rm -f conftest.err conftest.$ac_ext |
---|
2918 | |
---|
2919 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
2920 | # can be detected and how. |
---|
2921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2922 | /* end confdefs.h. */ |
---|
2923 | #include <ac_nonexistent.h> |
---|
2924 | _ACEOF |
---|
2925 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
2926 | # Broken: success on invalid input. |
---|
2927 | continue |
---|
2928 | else |
---|
2929 | # Passes both tests. |
---|
2930 | ac_preproc_ok=: |
---|
2931 | break |
---|
2932 | fi |
---|
2933 | rm -f conftest.err conftest.$ac_ext |
---|
2934 | |
---|
2935 | done |
---|
2936 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
2937 | rm -f conftest.err conftest.$ac_ext |
---|
2938 | if $ac_preproc_ok; then : |
---|
2939 | |
---|
2940 | else |
---|
2941 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2942 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2943 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
---|
2944 | See \`config.log' for more details." "$LINENO" 5; } |
---|
2945 | fi |
---|
2946 | |
---|
2947 | ac_ext=c |
---|
2948 | ac_cpp='$CPP $CPPFLAGS' |
---|
2949 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2950 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2951 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2952 | |
---|
2953 | |
---|
2954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
2955 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
2956 | if test "${ac_cv_path_GREP+set}" = set; then : |
---|
2957 | $as_echo_n "(cached) " >&6 |
---|
2958 | else |
---|
2959 | if test -z "$GREP"; then |
---|
2960 | ac_path_GREP_found=false |
---|
2961 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
2962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2963 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
2964 | do |
---|
2965 | IFS=$as_save_IFS |
---|
2966 | test -z "$as_dir" && as_dir=. |
---|
2967 | for ac_prog in grep ggrep; do |
---|
2968 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2969 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
2970 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
---|
2971 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
2972 | # Check for GNU $ac_path_GREP |
---|
2973 | case `"$ac_path_GREP" --version 2>&1` in |
---|
2974 | *GNU*) |
---|
2975 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
2976 | *) |
---|
2977 | ac_count=0 |
---|
2978 | $as_echo_n 0123456789 >"conftest.in" |
---|
2979 | while : |
---|
2980 | do |
---|
2981 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
2982 | mv "conftest.tmp" "conftest.in" |
---|
2983 | cp "conftest.in" "conftest.nl" |
---|
2984 | $as_echo 'GREP' >> "conftest.nl" |
---|
2985 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
2986 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
2987 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
2988 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
2989 | # Best one so far, save it but keep looking for a better one |
---|
2990 | ac_cv_path_GREP="$ac_path_GREP" |
---|
2991 | ac_path_GREP_max=$ac_count |
---|
2992 | fi |
---|
2993 | # 10*(2^10) chars as input seems more than enough |
---|
2994 | test $ac_count -gt 10 && break |
---|
2995 | done |
---|
2996 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
2997 | esac |
---|
2998 | |
---|
2999 | $ac_path_GREP_found && break 3 |
---|
3000 | done |
---|
3001 | done |
---|
3002 | done |
---|
3003 | IFS=$as_save_IFS |
---|
3004 | if test -z "$ac_cv_path_GREP"; then |
---|
3005 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
3006 | fi |
---|
3007 | else |
---|
3008 | ac_cv_path_GREP=$GREP |
---|
3009 | fi |
---|
3010 | |
---|
3011 | fi |
---|
3012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
3013 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
3014 | GREP="$ac_cv_path_GREP" |
---|
3015 | |
---|
3016 | |
---|
3017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
3018 | $as_echo_n "checking for egrep... " >&6; } |
---|
3019 | if test "${ac_cv_path_EGREP+set}" = set; then : |
---|
3020 | $as_echo_n "(cached) " >&6 |
---|
3021 | else |
---|
3022 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
3023 | then ac_cv_path_EGREP="$GREP -E" |
---|
3024 | else |
---|
3025 | if test -z "$EGREP"; then |
---|
3026 | ac_path_EGREP_found=false |
---|
3027 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
3028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3029 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
3030 | do |
---|
3031 | IFS=$as_save_IFS |
---|
3032 | test -z "$as_dir" && as_dir=. |
---|
3033 | for ac_prog in egrep; do |
---|
3034 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3035 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
3036 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
---|
3037 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
3038 | # Check for GNU $ac_path_EGREP |
---|
3039 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
3040 | *GNU*) |
---|
3041 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
3042 | *) |
---|
3043 | ac_count=0 |
---|
3044 | $as_echo_n 0123456789 >"conftest.in" |
---|
3045 | while : |
---|
3046 | do |
---|
3047 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
3048 | mv "conftest.tmp" "conftest.in" |
---|
3049 | cp "conftest.in" "conftest.nl" |
---|
3050 | $as_echo 'EGREP' >> "conftest.nl" |
---|
3051 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
3052 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
3053 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
3054 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
3055 | # Best one so far, save it but keep looking for a better one |
---|
3056 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
3057 | ac_path_EGREP_max=$ac_count |
---|
3058 | fi |
---|
3059 | # 10*(2^10) chars as input seems more than enough |
---|
3060 | test $ac_count -gt 10 && break |
---|
3061 | done |
---|
3062 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
3063 | esac |
---|
3064 | |
---|
3065 | $ac_path_EGREP_found && break 3 |
---|
3066 | done |
---|
3067 | done |
---|
3068 | done |
---|
3069 | IFS=$as_save_IFS |
---|
3070 | if test -z "$ac_cv_path_EGREP"; then |
---|
3071 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
3072 | fi |
---|
3073 | else |
---|
3074 | ac_cv_path_EGREP=$EGREP |
---|
3075 | fi |
---|
3076 | |
---|
3077 | fi |
---|
3078 | fi |
---|
3079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
3080 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
3081 | EGREP="$ac_cv_path_EGREP" |
---|
3082 | |
---|
3083 | |
---|
3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
3085 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
3086 | if test "${ac_cv_header_stdc+set}" = set; then : |
---|
3087 | $as_echo_n "(cached) " >&6 |
---|
3088 | else |
---|
3089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3090 | /* end confdefs.h. */ |
---|
3091 | #include <stdlib.h> |
---|
3092 | #include <stdarg.h> |
---|
3093 | #include <string.h> |
---|
3094 | #include <float.h> |
---|
3095 | |
---|
3096 | int |
---|
3097 | main () |
---|
3098 | { |
---|
3099 | |
---|
3100 | ; |
---|
3101 | return 0; |
---|
3102 | } |
---|
3103 | _ACEOF |
---|
3104 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3105 | ac_cv_header_stdc=yes |
---|
3106 | else |
---|
3107 | ac_cv_header_stdc=no |
---|
3108 | fi |
---|
3109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3110 | |
---|
3111 | if test $ac_cv_header_stdc = yes; then |
---|
3112 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3114 | /* end confdefs.h. */ |
---|
3115 | #include <string.h> |
---|
3116 | |
---|
3117 | _ACEOF |
---|
3118 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3119 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
3120 | |
---|
3121 | else |
---|
3122 | ac_cv_header_stdc=no |
---|
3123 | fi |
---|
3124 | rm -f conftest* |
---|
3125 | |
---|
3126 | fi |
---|
3127 | |
---|
3128 | if test $ac_cv_header_stdc = yes; then |
---|
3129 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3131 | /* end confdefs.h. */ |
---|
3132 | #include <stdlib.h> |
---|
3133 | |
---|
3134 | _ACEOF |
---|
3135 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3136 | $EGREP "free" >/dev/null 2>&1; then : |
---|
3137 | |
---|
3138 | else |
---|
3139 | ac_cv_header_stdc=no |
---|
3140 | fi |
---|
3141 | rm -f conftest* |
---|
3142 | |
---|
3143 | fi |
---|
3144 | |
---|
3145 | if test $ac_cv_header_stdc = yes; then |
---|
3146 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3147 | if test "$cross_compiling" = yes; then : |
---|
3148 | : |
---|
3149 | else |
---|
3150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3151 | /* end confdefs.h. */ |
---|
3152 | #include <ctype.h> |
---|
3153 | #include <stdlib.h> |
---|
3154 | #if ((' ' & 0x0FF) == 0x020) |
---|
3155 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3156 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3157 | #else |
---|
3158 | # define ISLOWER(c) \ |
---|
3159 | (('a' <= (c) && (c) <= 'i') \ |
---|
3160 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3161 | || ('s' <= (c) && (c) <= 'z')) |
---|
3162 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3163 | #endif |
---|
3164 | |
---|
3165 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3166 | int |
---|
3167 | main () |
---|
3168 | { |
---|
3169 | int i; |
---|
3170 | for (i = 0; i < 256; i++) |
---|
3171 | if (XOR (islower (i), ISLOWER (i)) |
---|
3172 | || toupper (i) != TOUPPER (i)) |
---|
3173 | return 2; |
---|
3174 | return 0; |
---|
3175 | } |
---|
3176 | _ACEOF |
---|
3177 | if ac_fn_c_try_run "$LINENO"; then : |
---|
3178 | |
---|
3179 | else |
---|
3180 | ac_cv_header_stdc=no |
---|
3181 | fi |
---|
3182 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
3183 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
3184 | fi |
---|
3185 | |
---|
3186 | fi |
---|
3187 | fi |
---|
3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
3189 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
3190 | if test $ac_cv_header_stdc = yes; then |
---|
3191 | |
---|
3192 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
3193 | |
---|
3194 | fi |
---|
3195 | |
---|
3196 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
3197 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
3198 | inttypes.h stdint.h unistd.h |
---|
3199 | do : |
---|
3200 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3201 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
3202 | " |
---|
3203 | eval as_val=\$$as_ac_Header |
---|
3204 | if test "x$as_val" = x""yes; then : |
---|
3205 | cat >>confdefs.h <<_ACEOF |
---|
3206 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3207 | _ACEOF |
---|
3208 | |
---|
3209 | fi |
---|
3210 | |
---|
3211 | done |
---|
3212 | |
---|
3213 | |
---|
3214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
---|
3215 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
---|
3216 | if test "${ac_cv_c_bigendian+set}" = set; then : |
---|
3217 | $as_echo_n "(cached) " >&6 |
---|
3218 | else |
---|
3219 | ac_cv_c_bigendian=unknown |
---|
3220 | # See if we're dealing with a universal compiler. |
---|
3221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3222 | /* end confdefs.h. */ |
---|
3223 | #ifndef __APPLE_CC__ |
---|
3224 | not a universal capable compiler |
---|
3225 | #endif |
---|
3226 | typedef int dummy; |
---|
3227 | |
---|
3228 | _ACEOF |
---|
3229 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3230 | |
---|
3231 | # Check for potential -arch flags. It is not universal unless |
---|
3232 | # there are at least two -arch flags with different values. |
---|
3233 | ac_arch= |
---|
3234 | ac_prev= |
---|
3235 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
---|
3236 | if test -n "$ac_prev"; then |
---|
3237 | case $ac_word in |
---|
3238 | i?86 | x86_64 | ppc | ppc64) |
---|
3239 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
---|
3240 | ac_arch=$ac_word |
---|
3241 | else |
---|
3242 | ac_cv_c_bigendian=universal |
---|
3243 | break |
---|
3244 | fi |
---|
3245 | ;; |
---|
3246 | esac |
---|
3247 | ac_prev= |
---|
3248 | elif test "x$ac_word" = "x-arch"; then |
---|
3249 | ac_prev=arch |
---|
3250 | fi |
---|
3251 | done |
---|
3252 | fi |
---|
3253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3254 | if test $ac_cv_c_bigendian = unknown; then |
---|
3255 | # See if sys/param.h defines the BYTE_ORDER macro. |
---|
3256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3257 | /* end confdefs.h. */ |
---|
3258 | #include <sys/types.h> |
---|
3259 | #include <sys/param.h> |
---|
3260 | |
---|
3261 | int |
---|
3262 | main () |
---|
3263 | { |
---|
3264 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
---|
3265 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
---|
3266 | && LITTLE_ENDIAN) |
---|
3267 | bogus endian macros |
---|
3268 | #endif |
---|
3269 | |
---|
3270 | ; |
---|
3271 | return 0; |
---|
3272 | } |
---|
3273 | _ACEOF |
---|
3274 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3275 | # It does; now see whether it defined to BIG_ENDIAN or not. |
---|
3276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3277 | /* end confdefs.h. */ |
---|
3278 | #include <sys/types.h> |
---|
3279 | #include <sys/param.h> |
---|
3280 | |
---|
3281 | int |
---|
3282 | main () |
---|
3283 | { |
---|
3284 | #if BYTE_ORDER != BIG_ENDIAN |
---|
3285 | not big endian |
---|
3286 | #endif |
---|
3287 | |
---|
3288 | ; |
---|
3289 | return 0; |
---|
3290 | } |
---|
3291 | _ACEOF |
---|
3292 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3293 | ac_cv_c_bigendian=yes |
---|
3294 | else |
---|
3295 | ac_cv_c_bigendian=no |
---|
3296 | fi |
---|
3297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3298 | fi |
---|
3299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3300 | fi |
---|
3301 | if test $ac_cv_c_bigendian = unknown; then |
---|
3302 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
---|
3303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3304 | /* end confdefs.h. */ |
---|
3305 | #include <limits.h> |
---|
3306 | |
---|
3307 | int |
---|
3308 | main () |
---|
3309 | { |
---|
3310 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
---|
3311 | bogus endian macros |
---|
3312 | #endif |
---|
3313 | |
---|
3314 | ; |
---|
3315 | return 0; |
---|
3316 | } |
---|
3317 | _ACEOF |
---|
3318 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3319 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
---|
3320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3321 | /* end confdefs.h. */ |
---|
3322 | #include <limits.h> |
---|
3323 | |
---|
3324 | int |
---|
3325 | main () |
---|
3326 | { |
---|
3327 | #ifndef _BIG_ENDIAN |
---|
3328 | not big endian |
---|
3329 | #endif |
---|
3330 | |
---|
3331 | ; |
---|
3332 | return 0; |
---|
3333 | } |
---|
3334 | _ACEOF |
---|
3335 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3336 | ac_cv_c_bigendian=yes |
---|
3337 | else |
---|
3338 | ac_cv_c_bigendian=no |
---|
3339 | fi |
---|
3340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3341 | fi |
---|
3342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3343 | fi |
---|
3344 | if test $ac_cv_c_bigendian = unknown; then |
---|
3345 | # Compile a test program. |
---|
3346 | if test "$cross_compiling" = yes; then : |
---|
3347 | # Try to guess by grepping values from an object file. |
---|
3348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3349 | /* end confdefs.h. */ |
---|
3350 | short int ascii_mm[] = |
---|
3351 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
---|
3352 | short int ascii_ii[] = |
---|
3353 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
---|
3354 | int use_ascii (int i) { |
---|
3355 | return ascii_mm[i] + ascii_ii[i]; |
---|
3356 | } |
---|
3357 | short int ebcdic_ii[] = |
---|
3358 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
---|
3359 | short int ebcdic_mm[] = |
---|
3360 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
---|
3361 | int use_ebcdic (int i) { |
---|
3362 | return ebcdic_mm[i] + ebcdic_ii[i]; |
---|
3363 | } |
---|
3364 | extern int foo; |
---|
3365 | |
---|
3366 | int |
---|
3367 | main () |
---|
3368 | { |
---|
3369 | return use_ascii (foo) == use_ebcdic (foo); |
---|
3370 | ; |
---|
3371 | return 0; |
---|
3372 | } |
---|
3373 | _ACEOF |
---|
3374 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3375 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
---|
3376 | ac_cv_c_bigendian=yes |
---|
3377 | fi |
---|
3378 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
---|
3379 | if test "$ac_cv_c_bigendian" = unknown; then |
---|
3380 | ac_cv_c_bigendian=no |
---|
3381 | else |
---|
3382 | # finding both strings is unlikely to happen, but who knows? |
---|
3383 | ac_cv_c_bigendian=unknown |
---|
3384 | fi |
---|
3385 | fi |
---|
3386 | fi |
---|
3387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3388 | else |
---|
3389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3390 | /* end confdefs.h. */ |
---|
3391 | $ac_includes_default |
---|
3392 | int |
---|
3393 | main () |
---|
3394 | { |
---|
3395 | |
---|
3396 | /* Are we little or big endian? From Harbison&Steele. */ |
---|
3397 | union |
---|
3398 | { |
---|
3399 | long int l; |
---|
3400 | char c[sizeof (long int)]; |
---|
3401 | } u; |
---|
3402 | u.l = 1; |
---|
3403 | return u.c[sizeof (long int) - 1] == 1; |
---|
3404 | |
---|
3405 | ; |
---|
3406 | return 0; |
---|
3407 | } |
---|
3408 | _ACEOF |
---|
3409 | if ac_fn_c_try_run "$LINENO"; then : |
---|
3410 | ac_cv_c_bigendian=no |
---|
3411 | else |
---|
3412 | ac_cv_c_bigendian=yes |
---|
3413 | fi |
---|
3414 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
3415 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
3416 | fi |
---|
3417 | |
---|
3418 | fi |
---|
3419 | fi |
---|
3420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
---|
3421 | $as_echo "$ac_cv_c_bigendian" >&6; } |
---|
3422 | case $ac_cv_c_bigendian in #( |
---|
3423 | yes) |
---|
3424 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
---|
3425 | ;; #( |
---|
3426 | no) |
---|
3427 | ;; #( |
---|
3428 | universal) |
---|
3429 | |
---|
3430 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
---|
3431 | |
---|
3432 | ;; #( |
---|
3433 | *) |
---|
3434 | as_fn_error "unknown endianness |
---|
3435 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
---|
3436 | esac |
---|
3437 | |
---|
3438 | |
---|
3439 | # CHECK FOR THE FORTRAN COMPILER |
---|
3440 | # RLJ- specify the order, include PathScale and do not search for F77 |
---|
3441 | ac_ext=${ac_fc_srcext-f} |
---|
3442 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
3443 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
3444 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
3445 | if test -n "$ac_tool_prefix"; then |
---|
3446 | for ac_prog in xlf95 pgf95 ifort gfortran pathf95 ftn lf95 f95 fort ifc efc g95 xlf90 pgf90 pathf90 epcf90 pghpf |
---|
3447 | do |
---|
3448 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3449 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3451 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3452 | if test "${ac_cv_prog_FC+set}" = set; then : |
---|
3453 | $as_echo_n "(cached) " >&6 |
---|
3454 | else |
---|
3455 | if test -n "$FC"; then |
---|
3456 | ac_cv_prog_FC="$FC" # Let the user override the test. |
---|
3457 | else |
---|
3458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3459 | for as_dir in $PATH |
---|
3460 | do |
---|
3461 | IFS=$as_save_IFS |
---|
3462 | test -z "$as_dir" && as_dir=. |
---|
3463 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3464 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3465 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
---|
3466 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3467 | break 2 |
---|
3468 | fi |
---|
3469 | done |
---|
3470 | done |
---|
3471 | IFS=$as_save_IFS |
---|
3472 | |
---|
3473 | fi |
---|
3474 | fi |
---|
3475 | FC=$ac_cv_prog_FC |
---|
3476 | if test -n "$FC"; then |
---|
3477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 |
---|
3478 | $as_echo "$FC" >&6; } |
---|
3479 | else |
---|
3480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3481 | $as_echo "no" >&6; } |
---|
3482 | fi |
---|
3483 | |
---|
3484 | |
---|
3485 | test -n "$FC" && break |
---|
3486 | done |
---|
3487 | fi |
---|
3488 | if test -z "$FC"; then |
---|
3489 | ac_ct_FC=$FC |
---|
3490 | for ac_prog in xlf95 pgf95 ifort gfortran pathf95 ftn lf95 f95 fort ifc efc g95 xlf90 pgf90 pathf90 epcf90 pghpf |
---|
3491 | do |
---|
3492 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3493 | set dummy $ac_prog; ac_word=$2 |
---|
3494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3495 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3496 | if test "${ac_cv_prog_ac_ct_FC+set}" = set; then : |
---|
3497 | $as_echo_n "(cached) " >&6 |
---|
3498 | else |
---|
3499 | if test -n "$ac_ct_FC"; then |
---|
3500 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. |
---|
3501 | else |
---|
3502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3503 | for as_dir in $PATH |
---|
3504 | do |
---|
3505 | IFS=$as_save_IFS |
---|
3506 | test -z "$as_dir" && as_dir=. |
---|
3507 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3508 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3509 | ac_cv_prog_ac_ct_FC="$ac_prog" |
---|
3510 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3511 | break 2 |
---|
3512 | fi |
---|
3513 | done |
---|
3514 | done |
---|
3515 | IFS=$as_save_IFS |
---|
3516 | |
---|
3517 | fi |
---|
3518 | fi |
---|
3519 | ac_ct_FC=$ac_cv_prog_ac_ct_FC |
---|
3520 | if test -n "$ac_ct_FC"; then |
---|
3521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 |
---|
3522 | $as_echo "$ac_ct_FC" >&6; } |
---|
3523 | else |
---|
3524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3525 | $as_echo "no" >&6; } |
---|
3526 | fi |
---|
3527 | |
---|
3528 | |
---|
3529 | test -n "$ac_ct_FC" && break |
---|
3530 | done |
---|
3531 | |
---|
3532 | if test "x$ac_ct_FC" = x; then |
---|
3533 | FC="" |
---|
3534 | else |
---|
3535 | case $cross_compiling:$ac_tool_warned in |
---|
3536 | yes:) |
---|
3537 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3538 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3539 | ac_tool_warned=yes ;; |
---|
3540 | esac |
---|
3541 | FC=$ac_ct_FC |
---|
3542 | fi |
---|
3543 | fi |
---|
3544 | |
---|
3545 | |
---|
3546 | # Provide some information about the compiler. |
---|
3547 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 |
---|
3548 | set X $ac_compile |
---|
3549 | ac_compiler=$2 |
---|
3550 | for ac_option in --version -v -V -qversion; do |
---|
3551 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
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:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3557 | $as_echo "$ac_try_echo"; } >&5 |
---|
3558 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3559 | ac_status=$? |
---|
3560 | if test -s conftest.err; then |
---|
3561 | sed '10a\ |
---|
3562 | ... rest of stderr output deleted ... |
---|
3563 | 10q' conftest.err >conftest.er1 |
---|
3564 | cat conftest.er1 >&5 |
---|
3565 | fi |
---|
3566 | rm -f conftest.er1 conftest.err |
---|
3567 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3568 | test $ac_status = 0; } |
---|
3569 | done |
---|
3570 | rm -f a.out |
---|
3571 | |
---|
3572 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
3573 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
3574 | ac_save_ext=$ac_ext |
---|
3575 | ac_ext=F |
---|
3576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 |
---|
3577 | $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } |
---|
3578 | if test "${ac_cv_fc_compiler_gnu+set}" = set; then : |
---|
3579 | $as_echo_n "(cached) " >&6 |
---|
3580 | else |
---|
3581 | cat > conftest.$ac_ext <<_ACEOF |
---|
3582 | program main |
---|
3583 | #ifndef __GNUC__ |
---|
3584 | choke me |
---|
3585 | #endif |
---|
3586 | |
---|
3587 | end |
---|
3588 | _ACEOF |
---|
3589 | if ac_fn_fc_try_compile "$LINENO"; then : |
---|
3590 | ac_compiler_gnu=yes |
---|
3591 | else |
---|
3592 | ac_compiler_gnu=no |
---|
3593 | fi |
---|
3594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3595 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
---|
3596 | |
---|
3597 | fi |
---|
3598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 |
---|
3599 | $as_echo "$ac_cv_fc_compiler_gnu" >&6; } |
---|
3600 | ac_ext=$ac_save_ext |
---|
3601 | ac_test_FCFLAGS=${FCFLAGS+set} |
---|
3602 | ac_save_FCFLAGS=$FCFLAGS |
---|
3603 | FCFLAGS= |
---|
3604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
---|
3605 | $as_echo_n "checking whether $FC accepts -g... " >&6; } |
---|
3606 | if test "${ac_cv_prog_fc_g+set}" = set; then : |
---|
3607 | $as_echo_n "(cached) " >&6 |
---|
3608 | else |
---|
3609 | FCFLAGS=-g |
---|
3610 | cat > conftest.$ac_ext <<_ACEOF |
---|
3611 | program main |
---|
3612 | |
---|
3613 | end |
---|
3614 | _ACEOF |
---|
3615 | if ac_fn_fc_try_compile "$LINENO"; then : |
---|
3616 | ac_cv_prog_fc_g=yes |
---|
3617 | else |
---|
3618 | ac_cv_prog_fc_g=no |
---|
3619 | fi |
---|
3620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3621 | |
---|
3622 | fi |
---|
3623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 |
---|
3624 | $as_echo "$ac_cv_prog_fc_g" >&6; } |
---|
3625 | if test "$ac_test_FCFLAGS" = set; then |
---|
3626 | FCFLAGS=$ac_save_FCFLAGS |
---|
3627 | elif test $ac_cv_prog_fc_g = yes; then |
---|
3628 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
---|
3629 | FCFLAGS="-g -O2" |
---|
3630 | else |
---|
3631 | FCFLAGS="-g" |
---|
3632 | fi |
---|
3633 | else |
---|
3634 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
---|
3635 | FCFLAGS="-O2" |
---|
3636 | else |
---|
3637 | FCFLAGS= |
---|
3638 | fi |
---|
3639 | fi |
---|
3640 | |
---|
3641 | ac_ext=c |
---|
3642 | ac_cpp='$CPP $CPPFLAGS' |
---|
3643 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3644 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3645 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3646 | |
---|
3647 | |
---|
3648 | # CHECK FOR MPI LIBRARIES |
---|
3649 | ac_ext=${ac_fc_srcext-f} |
---|
3650 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
3651 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
3652 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
3653 | |
---|
3654 | |
---|
3655 | |
---|
3656 | ac_ext=${ac_fc_srcext-f} |
---|
3657 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
3658 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
3659 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
3660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .F90 files" >&5 |
---|
3661 | $as_echo_n "checking for Fortran flag to compile .F90 files... " >&6; } |
---|
3662 | if test "${ac_cv_fc_srcext_F90+set}" = set; then : |
---|
3663 | $as_echo_n "(cached) " >&6 |
---|
3664 | else |
---|
3665 | ac_ext=F90 |
---|
3666 | ac_fcflags_srcext_save=$ac_fcflags_srcext |
---|
3667 | ac_fcflags_srcext= |
---|
3668 | ac_cv_fc_srcext_F90=unknown |
---|
3669 | for ac_flag in none -qsuffix=f=F90 -Tf; do |
---|
3670 | test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag" |
---|
3671 | cat > conftest.$ac_ext <<_ACEOF |
---|
3672 | program main |
---|
3673 | |
---|
3674 | end |
---|
3675 | _ACEOF |
---|
3676 | if ac_fn_fc_try_compile "$LINENO"; then : |
---|
3677 | ac_cv_fc_srcext_F90=$ac_flag; break |
---|
3678 | fi |
---|
3679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3680 | done |
---|
3681 | rm -f conftest.$ac_objext conftest.F90 |
---|
3682 | ac_fcflags_srcext=$ac_fcflags_srcext_save |
---|
3683 | |
---|
3684 | fi |
---|
3685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_F90" >&5 |
---|
3686 | $as_echo "$ac_cv_fc_srcext_F90" >&6; } |
---|
3687 | if test "x$ac_cv_fc_srcext_F90" = xunknown; then |
---|
3688 | as_fn_error "Fortran could not compile .F90 files" "$LINENO" 5 |
---|
3689 | else |
---|
3690 | ac_fc_srcext=F90 |
---|
3691 | if test "x$ac_cv_fc_srcext_F90" = xnone; then |
---|
3692 | ac_fcflags_srcext="" |
---|
3693 | FCFLAGS_F90="" |
---|
3694 | else |
---|
3695 | ac_fcflags_srcext=$ac_cv_fc_srcext_F90 |
---|
3696 | FCFLAGS_F90=$ac_cv_fc_srcext_F90 |
---|
3697 | fi |
---|
3698 | |
---|
3699 | |
---|
3700 | fi |
---|
3701 | ac_ext=${ac_fc_srcext-f} |
---|
3702 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
3703 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
3704 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
3705 | |
---|
3706 | |
---|
3707 | OLDFCFLAGS="$FCFLAGS" |
---|
3708 | |
---|
3709 | if test -n "$MPIHEADER"; then |
---|
3710 | FCFLAGS="$FCFLAGS $MPIHEADER" |
---|
3711 | fi |
---|
3712 | |
---|
3713 | # CHECK MPI BY DEFAULT |
---|
3714 | if test -z "$DONOTCHECKMPI"; then |
---|
3715 | |
---|
3716 | |
---|
3717 | |
---|
3718 | |
---|
3719 | |
---|
3720 | for ac_prog in mpif90 hf90 mpxlf90 mpxlf95 mpf90 cmpifc cmpif90c |
---|
3721 | do |
---|
3722 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3723 | set dummy $ac_prog; ac_word=$2 |
---|
3724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3725 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3726 | if test "${ac_cv_prog_MPIFC+set}" = set; then : |
---|
3727 | $as_echo_n "(cached) " >&6 |
---|
3728 | else |
---|
3729 | if test -n "$MPIFC"; then |
---|
3730 | ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test. |
---|
3731 | else |
---|
3732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3733 | for as_dir in $PATH |
---|
3734 | do |
---|
3735 | IFS=$as_save_IFS |
---|
3736 | test -z "$as_dir" && as_dir=. |
---|
3737 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3738 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3739 | ac_cv_prog_MPIFC="$ac_prog" |
---|
3740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3741 | break 2 |
---|
3742 | fi |
---|
3743 | done |
---|
3744 | done |
---|
3745 | IFS=$as_save_IFS |
---|
3746 | |
---|
3747 | fi |
---|
3748 | fi |
---|
3749 | MPIFC=$ac_cv_prog_MPIFC |
---|
3750 | if test -n "$MPIFC"; then |
---|
3751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5 |
---|
3752 | $as_echo "$MPIFC" >&6; } |
---|
3753 | else |
---|
3754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3755 | $as_echo "no" >&6; } |
---|
3756 | fi |
---|
3757 | |
---|
3758 | |
---|
3759 | test -n "$MPIFC" && break |
---|
3760 | done |
---|
3761 | test -n "$MPIFC" || MPIFC="$FC" |
---|
3762 | |
---|
3763 | acx_mpi_save_FC="$FC" |
---|
3764 | FC="$MPIFC" |
---|
3765 | |
---|
3766 | |
---|
3767 | |
---|
3768 | if test x = x"$MPILIBS"; then |
---|
3769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5 |
---|
3770 | $as_echo_n "checking for MPI_Init... " >&6; } |
---|
3771 | cat > conftest.$ac_ext <<_ACEOF |
---|
3772 | program main |
---|
3773 | call MPI_Init |
---|
3774 | end |
---|
3775 | _ACEOF |
---|
3776 | if ac_fn_fc_try_link "$LINENO"; then : |
---|
3777 | MPILIBS=" " |
---|
3778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3779 | $as_echo "yes" >&6; } |
---|
3780 | else |
---|
3781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3782 | $as_echo "no" >&6; } |
---|
3783 | fi |
---|
3784 | rm -f core conftest.err conftest.$ac_objext \ |
---|
3785 | conftest$ac_exeext conftest.$ac_ext |
---|
3786 | fi |
---|
3787 | |
---|
3788 | if test x = x"$MPILIBS"; then |
---|
3789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5 |
---|
3790 | $as_echo_n "checking for MPI_Init in -lfmpi... " >&6; } |
---|
3791 | if test "${ac_cv_lib_fmpi_MPI_Init+set}" = set; then : |
---|
3792 | $as_echo_n "(cached) " >&6 |
---|
3793 | else |
---|
3794 | ac_check_lib_save_LIBS=$LIBS |
---|
3795 | LIBS="-lfmpi $LIBS" |
---|
3796 | cat > conftest.$ac_ext <<_ACEOF |
---|
3797 | program main |
---|
3798 | call MPI_Init |
---|
3799 | end |
---|
3800 | _ACEOF |
---|
3801 | if ac_fn_fc_try_link "$LINENO"; then : |
---|
3802 | ac_cv_lib_fmpi_MPI_Init=yes |
---|
3803 | else |
---|
3804 | ac_cv_lib_fmpi_MPI_Init=no |
---|
3805 | fi |
---|
3806 | rm -f core conftest.err conftest.$ac_objext \ |
---|
3807 | conftest$ac_exeext conftest.$ac_ext |
---|
3808 | LIBS=$ac_check_lib_save_LIBS |
---|
3809 | fi |
---|
3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5 |
---|
3811 | $as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; } |
---|
3812 | if test "x$ac_cv_lib_fmpi_MPI_Init" = x""yes; then : |
---|
3813 | MPILIBS="-lfmpi" |
---|
3814 | fi |
---|
3815 | |
---|
3816 | fi |
---|
3817 | if test x = x"$MPILIBS"; then |
---|
3818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5 |
---|
3819 | $as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; } |
---|
3820 | if test "${ac_cv_lib_mpichf90_MPI_Init+set}" = set; then : |
---|
3821 | $as_echo_n "(cached) " >&6 |
---|
3822 | else |
---|
3823 | ac_check_lib_save_LIBS=$LIBS |
---|
3824 | LIBS="-lmpichf90 $LIBS" |
---|
3825 | cat > conftest.$ac_ext <<_ACEOF |
---|
3826 | program main |
---|
3827 | call MPI_Init |
---|
3828 | end |
---|
3829 | _ACEOF |
---|
3830 | if ac_fn_fc_try_link "$LINENO"; then : |
---|
3831 | ac_cv_lib_mpichf90_MPI_Init=yes |
---|
3832 | else |
---|
3833 | ac_cv_lib_mpichf90_MPI_Init=no |
---|
3834 | fi |
---|
3835 | rm -f core conftest.err conftest.$ac_objext \ |
---|
3836 | conftest$ac_exeext conftest.$ac_ext |
---|
3837 | LIBS=$ac_check_lib_save_LIBS |
---|
3838 | fi |
---|
3839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5 |
---|
3840 | $as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; } |
---|
3841 | if test "x$ac_cv_lib_mpichf90_MPI_Init" = x""yes; then : |
---|
3842 | MPILIBS="-lmpichf90" |
---|
3843 | fi |
---|
3844 | |
---|
3845 | fi |
---|
3846 | |
---|
3847 | if test x = x"$MPILIBS"; then |
---|
3848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 |
---|
3849 | $as_echo_n "checking for MPI_Init in -lmpi... " >&6; } |
---|
3850 | if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then : |
---|
3851 | $as_echo_n "(cached) " >&6 |
---|
3852 | else |
---|
3853 | ac_check_lib_save_LIBS=$LIBS |
---|
3854 | LIBS="-lmpi $LIBS" |
---|
3855 | cat > conftest.$ac_ext <<_ACEOF |
---|
3856 | program main |
---|
3857 | call MPI_Init |
---|
3858 | end |
---|
3859 | _ACEOF |
---|
3860 | if ac_fn_fc_try_link "$LINENO"; then : |
---|
3861 | ac_cv_lib_mpi_MPI_Init=yes |
---|
3862 | else |
---|
3863 | ac_cv_lib_mpi_MPI_Init=no |
---|
3864 | fi |
---|
3865 | rm -f core conftest.err conftest.$ac_objext \ |
---|
3866 | conftest$ac_exeext conftest.$ac_ext |
---|
3867 | LIBS=$ac_check_lib_save_LIBS |
---|
3868 | fi |
---|
3869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
---|
3870 | $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } |
---|
3871 | if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then : |
---|
3872 | MPILIBS="-lmpi" |
---|
3873 | fi |
---|
3874 | |
---|
3875 | fi |
---|
3876 | if test x = x"$MPILIBS"; then |
---|
3877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 |
---|
3878 | $as_echo_n "checking for MPI_Init in -lmpich... " >&6; } |
---|
3879 | if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then : |
---|
3880 | $as_echo_n "(cached) " >&6 |
---|
3881 | else |
---|
3882 | ac_check_lib_save_LIBS=$LIBS |
---|
3883 | LIBS="-lmpich $LIBS" |
---|
3884 | cat > conftest.$ac_ext <<_ACEOF |
---|
3885 | program main |
---|
3886 | call MPI_Init |
---|
3887 | end |
---|
3888 | _ACEOF |
---|
3889 | if ac_fn_fc_try_link "$LINENO"; then : |
---|
3890 | ac_cv_lib_mpich_MPI_Init=yes |
---|
3891 | else |
---|
3892 | ac_cv_lib_mpich_MPI_Init=no |
---|
3893 | fi |
---|
3894 | rm -f core conftest.err conftest.$ac_objext \ |
---|
3895 | conftest$ac_exeext conftest.$ac_ext |
---|
3896 | LIBS=$ac_check_lib_save_LIBS |
---|
3897 | fi |
---|
3898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
---|
3899 | $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } |
---|
3900 | if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then : |
---|
3901 | MPILIBS="-lmpich" |
---|
3902 | fi |
---|
3903 | |
---|
3904 | fi |
---|
3905 | |
---|
3906 | if test x != x"$MPILIBS"; then |
---|
3907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5 |
---|
3908 | $as_echo_n "checking for mpif.h... " >&6; } |
---|
3909 | cat > conftest.$ac_ext <<_ACEOF |
---|
3910 | program main |
---|
3911 | include 'mpif.h' |
---|
3912 | end |
---|
3913 | _ACEOF |
---|
3914 | if ac_fn_fc_try_compile "$LINENO"; then : |
---|
3915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3916 | $as_echo "yes" >&6; } |
---|
3917 | else |
---|
3918 | MPILIBS="" |
---|
3919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3920 | $as_echo "no" >&6; } |
---|
3921 | fi |
---|
3922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3923 | fi |
---|
3924 | |
---|
3925 | FC="$acx_mpi_save_FC" |
---|
3926 | |
---|
3927 | |
---|
3928 | |
---|
3929 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
---|
3930 | if test x = x"$MPILIBS"; then |
---|
3931 | |
---|
3932 | : |
---|
3933 | else |
---|
3934 | |
---|
3935 | $as_echo "#define HAVE_MPI 1" >>confdefs.h |
---|
3936 | |
---|
3937 | : |
---|
3938 | fi |
---|
3939 | |
---|
3940 | fi |
---|
3941 | |
---|
3942 | # DONT CHECK MPI IF SERIALMPI OPTION IS ENABLED |
---|
3943 | if test -n "$DONOTCHECKMPI"; then |
---|
3944 | echo "MPISERIAL ENABLED: BYPASSING MPI CHECK" |
---|
3945 | if test -z "$MPIFC"; then |
---|
3946 | MPIFC=$FC |
---|
3947 | fi |
---|
3948 | if test -z "$FORT_SIZE"; then |
---|
3949 | FORT_SIZE="real4double8" |
---|
3950 | echo "FORT_SIZE IS PRESET TO $FORT_SIZE" |
---|
3951 | fi |
---|
3952 | abs_top_builddir=`pwd` |
---|
3953 | MPISERPATH=$abs_top_builddir/mpi-serial |
---|
3954 | |
---|
3955 | MPIHEADER=-I$MPISERPATH |
---|
3956 | MPILIBS="-L$MPISERPATH -lmpi-serial" |
---|
3957 | fi |
---|
3958 | |
---|
3959 | FCFLAGS="$OLDFCFLAGS" |
---|
3960 | |
---|
3961 | # A HACK TO FIX ACX_MPI TO GET MPILIBS TO BE AN EMPTY STRING |
---|
3962 | if test "$MPILIBS" = " "; then |
---|
3963 | MPILIBS="" |
---|
3964 | fi |
---|
3965 | |
---|
3966 | # SET FC TO MPIFC. IF MPILIBS IS PRESENT, SET FC TO FC. |
---|
3967 | if test -z "$FC"; then |
---|
3968 | FC=$MPIFC |
---|
3969 | if test "$FC" != "$MPIFC"; then |
---|
3970 | if test -n "$MPILIBS"; then |
---|
3971 | FC=$FC |
---|
3972 | fi |
---|
3973 | fi |
---|
3974 | fi |
---|
3975 | |
---|
3976 | # FOR SANITY, CHECK THAT FILENAME EXTENSION FOR FC IS CONSISTENT WITH FC |
---|
3977 | OLDFC="$FC" |
---|
3978 | FC="$FC" |
---|
3979 | |
---|
3980 | cat > conftest.$ac_ext <<_ACEOF |
---|
3981 | subroutine oof() |
---|
3982 | return |
---|
3983 | end |
---|
3984 | _ACEOF |
---|
3985 | if ac_fn_fc_try_compile "$LINENO"; then : |
---|
3986 | |
---|
3987 | else |
---|
3988 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FC FAILED TO COMPILE FILENAME EXTENSION $ac_ext" >&5 |
---|
3989 | $as_echo "$as_me: WARNING: $FC FAILED TO COMPILE FILENAME EXTENSION $ac_ext" >&2;} |
---|
3990 | |
---|
3991 | fi |
---|
3992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3993 | |
---|
3994 | |
---|
3995 | |
---|
3996 | FC="$OLDFC" |
---|
3997 | |
---|
3998 | # CHECK HOW TO GET THE COMPILER VERSION. |
---|
3999 | echo "Checking Compiler Version" |
---|
4000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the version output from $FC" >&5 |
---|
4001 | $as_echo_n "checking how to get the version output from $FC... " >&6; } |
---|
4002 | if test "${ac_cv_prog_fc_version+set}" = set; then : |
---|
4003 | $as_echo_n "(cached) " >&6 |
---|
4004 | else |
---|
4005 | |
---|
4006 | cat > conftest.$ac_ext <<_ACEOF |
---|
4007 | program main |
---|
4008 | |
---|
4009 | end |
---|
4010 | _ACEOF |
---|
4011 | if ac_fn_fc_try_compile "$LINENO"; then : |
---|
4012 | ac_cv_prog_fc_version= |
---|
4013 | # Try some options frequently used verbose output |
---|
4014 | for ac_version in -V -version --version +version -qversion; do |
---|
4015 | ac_ext=${ac_fc_srcext-f} |
---|
4016 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
4017 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
4018 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
4019 | |
---|
4020 | cat > conftest.$ac_ext <<_ACEOF |
---|
4021 | program main |
---|
4022 | |
---|
4023 | end |
---|
4024 | _ACEOF |
---|
4025 | |
---|
4026 | # Compile and link our simple test program by passing a flag (argument |
---|
4027 | # 1 to this macro) to the Fortran 90 compiler in order to get "version" output |
---|
4028 | ac_save_FCFLAGS=$FCFLAGS |
---|
4029 | FCFLAGS="$FCFLAGS $ac_version" |
---|
4030 | (eval echo $as_me:4030: \"$ac_link\") >&5 |
---|
4031 | ac_fc_version_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
---|
4032 | echo "$ac_fc_version_output" >&5 |
---|
4033 | FCFLAGS=$ac_save_FCFLAGS |
---|
4034 | |
---|
4035 | rm -f conftest.* |
---|
4036 | ac_ext=${ac_fc_srcext-f} |
---|
4037 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
4038 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
4039 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
4040 | |
---|
4041 | |
---|
4042 | # look for "copyright" constructs in the output |
---|
4043 | for ac_arg in $ac_fc_version_output; do |
---|
4044 | case $ac_arg in |
---|
4045 | COPYRIGHT | copyright | Copyright | '(c)' | '(C)' | Compiler | Compilers | Version | Version:) |
---|
4046 | ac_cv_prog_fc_version=$ac_version |
---|
4047 | break 2 ;; |
---|
4048 | esac |
---|
4049 | done |
---|
4050 | done |
---|
4051 | if test -z "$ac_cv_prog_fc_version"; then |
---|
4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain version information from $FC" >&5 |
---|
4053 | $as_echo "$as_me: WARNING: cannot determine how to obtain version information from $FC" >&2;} |
---|
4054 | fi |
---|
4055 | else |
---|
4056 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 |
---|
4057 | $as_echo "$as_me: WARNING: compilation failed" >&2;} |
---|
4058 | fi |
---|
4059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4060 | |
---|
4061 | fi |
---|
4062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_version" >&5 |
---|
4063 | $as_echo "$ac_cv_prog_fc_version" >&6; } |
---|
4064 | |
---|
4065 | ac_ext=c |
---|
4066 | ac_cpp='$CPP $CPPFLAGS' |
---|
4067 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4068 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4069 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4070 | |
---|
4071 | |
---|
4072 | # Check how to use the cpp with fortran |
---|
4073 | |
---|
4074 | ac_ext=${ac_fc_srcext-f} |
---|
4075 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
4076 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
4077 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
4078 | ac_fc_pp_define_srcext_save=$ac_fc_srcext |
---|
4079 | ac_ext=${ac_fc_srcext-f} |
---|
4080 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
4081 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
4082 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
4083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile preprocessed .F files" >&5 |
---|
4084 | $as_echo_n "checking for Fortran flag to compile preprocessed .F files... " >&6; } |
---|
4085 | if test "${ac_cv_fc_pp_srcext_F+set}" = set; then : |
---|
4086 | $as_echo_n "(cached) " >&6 |
---|
4087 | else |
---|
4088 | ac_ext=F |
---|
4089 | ac_fcflags_pp_srcext_save=$ac_fcflags_srcext |
---|
4090 | ac_fcflags_srcext= |
---|
4091 | ac_cv_fc_pp_srcext_F=unknown |
---|
4092 | case $ac_ext in #( |
---|
4093 | [fF]77) ac_try=f77-cpp-input;; #( |
---|
4094 | *) ac_try=f95-cpp-input;; |
---|
4095 | esac |
---|
4096 | for ac_flag in none -ftpp -fpp -Tf "-fpp -Tf" -xpp=fpp -Mpreprocess "-e Z" \ |
---|
4097 | -cpp -xpp=cpp -qsuffix=cpp=F "-x $ac_try" +cpp -Cpp; do |
---|
4098 | test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag" |
---|
4099 | cat > conftest.$ac_ext <<_ACEOF |
---|
4100 | program main |
---|
4101 | |
---|
4102 | #if 0 |
---|
4103 | #include <ac_nonexistent.h> |
---|
4104 | choke me |
---|
4105 | #endif |
---|
4106 | end |
---|
4107 | _ACEOF |
---|
4108 | if ac_fn_fc_try_compile "$LINENO"; then : |
---|
4109 | cat > conftest.$ac_ext <<_ACEOF |
---|
4110 | program main |
---|
4111 | |
---|
4112 | #if 1 |
---|
4113 | #include <ac_nonexistent.h> |
---|
4114 | choke me |
---|
4115 | #endif |
---|
4116 | end |
---|
4117 | _ACEOF |
---|
4118 | if ac_fn_fc_try_compile "$LINENO"; then : |
---|
4119 | |
---|
4120 | else |
---|
4121 | ac_cv_fc_pp_srcext_F=$ac_flag; break |
---|
4122 | fi |
---|
4123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4124 | fi |
---|
4125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4126 | done |
---|
4127 | rm -f conftest.$ac_objext conftest.F |
---|
4128 | ac_fcflags_srcext=$ac_fcflags_pp_srcext_save |
---|
4129 | |
---|
4130 | fi |
---|
4131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_pp_srcext_F" >&5 |
---|
4132 | $as_echo "$ac_cv_fc_pp_srcext_F" >&6; } |
---|
4133 | if test "x$ac_cv_fc_pp_srcext_F" = xunknown; then |
---|
4134 | as_fn_error "Fortran could not compile preprocessed .F files" "$LINENO" 5 |
---|
4135 | else |
---|
4136 | ac_fc_srcext=F |
---|
4137 | if test "x$ac_cv_fc_pp_srcext_F" = xnone; then |
---|
4138 | ac_fcflags_srcext="" |
---|
4139 | FCFLAGS_F="" |
---|
4140 | else |
---|
4141 | ac_fcflags_srcext=$ac_cv_fc_pp_srcext_F |
---|
4142 | FCFLAGS_F=$ac_cv_fc_pp_srcext_F |
---|
4143 | fi |
---|
4144 | |
---|
4145 | |
---|
4146 | fi |
---|
4147 | ac_ext=${ac_fc_srcext-f} |
---|
4148 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
4149 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
4150 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
4151 | |
---|
4152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define symbols for preprocessed Fortran" >&5 |
---|
4153 | $as_echo_n "checking how to define symbols for preprocessed Fortran... " >&6; } |
---|
4154 | if test "${ac_cv_fc_pp_define+set}" = set; then : |
---|
4155 | $as_echo_n "(cached) " >&6 |
---|
4156 | else |
---|
4157 | ac_fc_pp_define_srcext_save=$ac_fc_srcext |
---|
4158 | ac_cv_fc_pp_define=unknown |
---|
4159 | ac_fc_pp_define_FCFLAGS_save=$FCFLAGS |
---|
4160 | for ac_flag in -D -WF,-D -Wp,-D -Wc,-D |
---|
4161 | do |
---|
4162 | FCFLAGS="$ac_fc_pp_define_FCFLAGS_save ${ac_flag}FOOBAR ${ac_flag}ZORK=42" |
---|
4163 | cat > conftest.$ac_ext <<_ACEOF |
---|
4164 | program main |
---|
4165 | |
---|
4166 | #ifndef FOOBAR |
---|
4167 | choke me |
---|
4168 | #endif |
---|
4169 | #if ZORK != 42 |
---|
4170 | choke me |
---|
4171 | #endif |
---|
4172 | end |
---|
4173 | _ACEOF |
---|
4174 | if ac_fn_fc_try_compile "$LINENO"; then : |
---|
4175 | ac_cv_fc_pp_define=$ac_flag |
---|
4176 | fi |
---|
4177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4178 | test x"$ac_cv_fc_pp_define" != xunknown && break |
---|
4179 | done |
---|
4180 | FCFLAGS=$ac_fc_pp_define_FCFLAGS_save |
---|
4181 | |
---|
4182 | fi |
---|
4183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_pp_define" >&5 |
---|
4184 | $as_echo "$ac_cv_fc_pp_define" >&6; } |
---|
4185 | ac_fc_srcext=$ac_fc_pp_define_srcext_save |
---|
4186 | if test "x$ac_cv_fc_pp_define" = xunknown; then |
---|
4187 | FC_DEFINE= |
---|
4188 | { as_fn_set_status 77 |
---|
4189 | as_fn_error "Fortran does not allow to define preprocessor symbols" "$LINENO" 5; } |
---|
4190 | else |
---|
4191 | FC_DEFINE=$ac_cv_fc_pp_define |
---|
4192 | |
---|
4193 | fi |
---|
4194 | ac_ext=c |
---|
4195 | ac_cpp='$CPP $CPPFLAGS' |
---|
4196 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4197 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4198 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4199 | |
---|
4200 | |
---|
4201 | |
---|
4202 | # CHECK HOW TO NAME MANGLE C FUNCTIONS SO THAT IT CAN BE CALLED FROM FORTRAN |
---|
4203 | OLDFC="$FC" |
---|
4204 | |
---|
4205 | ac_ext=${ac_fc_srcext-f} |
---|
4206 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
4207 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
4208 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5 |
---|
4210 | $as_echo_n "checking how to get verbose linking output from $FC... " >&6; } |
---|
4211 | if test "${ac_cv_prog_fc_v+set}" = set; then : |
---|
4212 | $as_echo_n "(cached) " >&6 |
---|
4213 | else |
---|
4214 | cat > conftest.$ac_ext <<_ACEOF |
---|
4215 | program main |
---|
4216 | |
---|
4217 | end |
---|
4218 | _ACEOF |
---|
4219 | if ac_fn_fc_try_compile "$LINENO"; then : |
---|
4220 | ac_cv_prog_fc_v= |
---|
4221 | # Try some options frequently used verbose output |
---|
4222 | for ac_verb in -v -verbose --verbose -V -\#\#\#; do |
---|
4223 | cat > conftest.$ac_ext <<_ACEOF |
---|
4224 | program main |
---|
4225 | |
---|
4226 | end |
---|
4227 | _ACEOF |
---|
4228 | |
---|
4229 | # Compile and link our simple test program by passing a flag (argument |
---|
4230 | # 1 to this macro) to the Fortran compiler in order to get |
---|
4231 | # "verbose" output that we can then parse for the Fortran linker |
---|
4232 | # flags. |
---|
4233 | ac_save_FCFLAGS=$FCFLAGS |
---|
4234 | FCFLAGS="$FCFLAGS $ac_verb" |
---|
4235 | eval "set x $ac_link" |
---|
4236 | shift |
---|
4237 | $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 |
---|
4238 | # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, |
---|
4239 | # LIBRARY_PATH; skip all such settings. |
---|
4240 | ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | |
---|
4241 | grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="` |
---|
4242 | $as_echo "$ac_fc_v_output" >&5 |
---|
4243 | FCFLAGS=$ac_save_FCFLAGS |
---|
4244 | |
---|
4245 | rm -rf conftest* |
---|
4246 | |
---|
4247 | # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
---|
4248 | # /foo, /bar, and /baz are search directories for the Fortran linker. |
---|
4249 | # Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
---|
4250 | ac_fc_v_output="`echo $ac_fc_v_output | |
---|
4251 | grep 'LPATH is:' | |
---|
4252 | sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output" |
---|
4253 | |
---|
4254 | # FIXME: we keep getting bitten by quoted arguments; a more general fix |
---|
4255 | # that detects unbalanced quotes in FLIBS should be implemented |
---|
4256 | # and (ugh) tested at some point. |
---|
4257 | case $ac_fc_v_output in |
---|
4258 | # If we are using xlf then replace all the commas with spaces. |
---|
4259 | *xlfentry*) |
---|
4260 | ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;; |
---|
4261 | |
---|
4262 | # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
---|
4263 | # $LIBS confuse us, and the libraries appear later in the output anyway). |
---|
4264 | *mGLOB_options_string*) |
---|
4265 | ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; |
---|
4266 | |
---|
4267 | # Portland Group compiler has singly- or doubly-quoted -cmdline argument |
---|
4268 | # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. |
---|
4269 | # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". |
---|
4270 | *-cmdline\ * | *-ignore\ * | *-def\ *) |
---|
4271 | ac_fc_v_output=`echo $ac_fc_v_output | sed "\ |
---|
4272 | s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g |
---|
4273 | s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g |
---|
4274 | s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; |
---|
4275 | |
---|
4276 | # If we are using Cray Fortran then delete quotes. |
---|
4277 | *cft90*) |
---|
4278 | ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; |
---|
4279 | esac |
---|
4280 | |
---|
4281 | |
---|
4282 | # look for -l* and *.a constructs in the output |
---|
4283 | for ac_arg in $ac_fc_v_output; do |
---|
4284 | case $ac_arg in |
---|
4285 | [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) |
---|
4286 | ac_cv_prog_fc_v=$ac_verb |
---|
4287 | break 2 ;; |
---|
4288 | esac |
---|
4289 | done |
---|
4290 | done |
---|
4291 | if test -z "$ac_cv_prog_fc_v"; then |
---|
4292 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5 |
---|
4293 | $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;} |
---|
4294 | fi |
---|
4295 | else |
---|
4296 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 |
---|
4297 | $as_echo "$as_me: WARNING: compilation failed" >&2;} |
---|
4298 | fi |
---|
4299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4300 | |
---|
4301 | fi |
---|
4302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5 |
---|
4303 | $as_echo "$ac_cv_prog_fc_v" >&6; } |
---|
4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5 |
---|
4305 | $as_echo_n "checking for Fortran libraries of $FC... " >&6; } |
---|
4306 | if test "${ac_cv_fc_libs+set}" = set; then : |
---|
4307 | $as_echo_n "(cached) " >&6 |
---|
4308 | else |
---|
4309 | if test "x$FCLIBS" != "x"; then |
---|
4310 | ac_cv_fc_libs="$FCLIBS" # Let the user override the test. |
---|
4311 | else |
---|
4312 | |
---|
4313 | cat > conftest.$ac_ext <<_ACEOF |
---|
4314 | program main |
---|
4315 | |
---|
4316 | end |
---|
4317 | _ACEOF |
---|
4318 | |
---|
4319 | # Compile and link our simple test program by passing a flag (argument |
---|
4320 | # 1 to this macro) to the Fortran compiler in order to get |
---|
4321 | # "verbose" output that we can then parse for the Fortran linker |
---|
4322 | # flags. |
---|
4323 | ac_save_FCFLAGS=$FCFLAGS |
---|
4324 | FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v" |
---|
4325 | eval "set x $ac_link" |
---|
4326 | shift |
---|
4327 | $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 |
---|
4328 | # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, |
---|
4329 | # LIBRARY_PATH; skip all such settings. |
---|
4330 | ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | |
---|
4331 | grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="` |
---|
4332 | $as_echo "$ac_fc_v_output" >&5 |
---|
4333 | FCFLAGS=$ac_save_FCFLAGS |
---|
4334 | |
---|
4335 | rm -rf conftest* |
---|
4336 | |
---|
4337 | # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
---|
4338 | # /foo, /bar, and /baz are search directories for the Fortran linker. |
---|
4339 | # Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
---|
4340 | ac_fc_v_output="`echo $ac_fc_v_output | |
---|
4341 | grep 'LPATH is:' | |
---|
4342 | sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output" |
---|
4343 | |
---|
4344 | # FIXME: we keep getting bitten by quoted arguments; a more general fix |
---|
4345 | # that detects unbalanced quotes in FLIBS should be implemented |
---|
4346 | # and (ugh) tested at some point. |
---|
4347 | case $ac_fc_v_output in |
---|
4348 | # If we are using xlf then replace all the commas with spaces. |
---|
4349 | *xlfentry*) |
---|
4350 | ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;; |
---|
4351 | |
---|
4352 | # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
---|
4353 | # $LIBS confuse us, and the libraries appear later in the output anyway). |
---|
4354 | *mGLOB_options_string*) |
---|
4355 | ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; |
---|
4356 | |
---|
4357 | # Portland Group compiler has singly- or doubly-quoted -cmdline argument |
---|
4358 | # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. |
---|
4359 | # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". |
---|
4360 | *-cmdline\ * | *-ignore\ * | *-def\ *) |
---|
4361 | ac_fc_v_output=`echo $ac_fc_v_output | sed "\ |
---|
4362 | s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g |
---|
4363 | s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g |
---|
4364 | s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; |
---|
4365 | |
---|
4366 | # If we are using Cray Fortran then delete quotes. |
---|
4367 | *cft90*) |
---|
4368 | ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; |
---|
4369 | esac |
---|
4370 | |
---|
4371 | |
---|
4372 | |
---|
4373 | ac_cv_fc_libs= |
---|
4374 | |
---|
4375 | # Save positional arguments (if any) |
---|
4376 | ac_save_positional="$@" |
---|
4377 | |
---|
4378 | set X $ac_fc_v_output |
---|
4379 | while test $# != 1; do |
---|
4380 | shift |
---|
4381 | ac_arg=$1 |
---|
4382 | case $ac_arg in |
---|
4383 | [\\/]*.a | ?:[\\/]*.a) |
---|
4384 | ac_exists=false |
---|
4385 | for ac_i in $ac_cv_fc_libs; do |
---|
4386 | if test x"$ac_arg" = x"$ac_i"; then |
---|
4387 | ac_exists=true |
---|
4388 | break |
---|
4389 | fi |
---|
4390 | done |
---|
4391 | |
---|
4392 | if test x"$ac_exists" = xtrue; then : |
---|
4393 | |
---|
4394 | else |
---|
4395 | ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
---|
4396 | fi |
---|
4397 | ;; |
---|
4398 | -bI:*) |
---|
4399 | ac_exists=false |
---|
4400 | for ac_i in $ac_cv_fc_libs; do |
---|
4401 | if test x"$ac_arg" = x"$ac_i"; then |
---|
4402 | ac_exists=true |
---|
4403 | break |
---|
4404 | fi |
---|
4405 | done |
---|
4406 | |
---|
4407 | if test x"$ac_exists" = xtrue; then : |
---|
4408 | |
---|
4409 | else |
---|
4410 | if test "$ac_compiler_gnu" = yes; then |
---|
4411 | for ac_link_opt in $ac_arg; do |
---|
4412 | ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" |
---|
4413 | done |
---|
4414 | else |
---|
4415 | ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
---|
4416 | fi |
---|
4417 | fi |
---|
4418 | ;; |
---|
4419 | # Ignore these flags. |
---|
4420 | -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ |
---|
4421 | |-LANG:=* | -LIST:* | -LNO:* | -link | -list | -lnuma ) |
---|
4422 | ;; |
---|
4423 | -lkernel32) |
---|
4424 | test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
---|
4425 | ;; |
---|
4426 | -[LRuYz]) |
---|
4427 | # These flags, when seen by themselves, take an argument. |
---|
4428 | # We remove the space between option and argument and re-iterate |
---|
4429 | # unless we find an empty arg or a new option (starting with -) |
---|
4430 | case $2 in |
---|
4431 | "" | -*);; |
---|
4432 | *) |
---|
4433 | ac_arg="$ac_arg$2" |
---|
4434 | shift; shift |
---|
4435 | set X $ac_arg "$@" |
---|
4436 | ;; |
---|
4437 | esac |
---|
4438 | ;; |
---|
4439 | -YP,*) |
---|
4440 | for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
---|
4441 | ac_exists=false |
---|
4442 | for ac_i in $ac_cv_fc_libs; do |
---|
4443 | if test x"$ac_j" = x"$ac_i"; then |
---|
4444 | ac_exists=true |
---|
4445 | break |
---|
4446 | fi |
---|
4447 | done |
---|
4448 | |
---|
4449 | if test x"$ac_exists" = xtrue; then : |
---|
4450 | |
---|
4451 | else |
---|
4452 | ac_arg="$ac_arg $ac_j" |
---|
4453 | ac_cv_fc_libs="$ac_cv_fc_libs $ac_j" |
---|
4454 | fi |
---|
4455 | done |
---|
4456 | ;; |
---|
4457 | -[lLR]*) |
---|
4458 | ac_exists=false |
---|
4459 | for ac_i in $ac_cv_fc_libs; do |
---|
4460 | if test x"$ac_arg" = x"$ac_i"; then |
---|
4461 | ac_exists=true |
---|
4462 | break |
---|
4463 | fi |
---|
4464 | done |
---|
4465 | |
---|
4466 | if test x"$ac_exists" = xtrue; then : |
---|
4467 | |
---|
4468 | else |
---|
4469 | ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
---|
4470 | fi |
---|
4471 | ;; |
---|
4472 | -zallextract*| -zdefaultextract) |
---|
4473 | ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
---|
4474 | ;; |
---|
4475 | # Ignore everything else. |
---|
4476 | esac |
---|
4477 | done |
---|
4478 | # restore positional arguments |
---|
4479 | set X $ac_save_positional; shift |
---|
4480 | |
---|
4481 | # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, |
---|
4482 | # then we insist that the "run path" must be an absolute path (i.e. it |
---|
4483 | # must begin with a "/"). |
---|
4484 | case `(uname -sr) 2>/dev/null` in |
---|
4485 | "SunOS 5"*) |
---|
4486 | ac_ld_run_path=`$as_echo "$ac_fc_v_output" | |
---|
4487 | sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` |
---|
4488 | test "x$ac_ld_run_path" != x && |
---|
4489 | if test "$ac_compiler_gnu" = yes; then |
---|
4490 | for ac_link_opt in $ac_ld_run_path; do |
---|
4491 | ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" |
---|
4492 | done |
---|
4493 | else |
---|
4494 | ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path" |
---|
4495 | fi |
---|
4496 | ;; |
---|
4497 | esac |
---|
4498 | fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" |
---|
4499 | |
---|
4500 | fi |
---|
4501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5 |
---|
4502 | $as_echo "$ac_cv_fc_libs" >&6; } |
---|
4503 | FCLIBS="$ac_cv_fc_libs" |
---|
4504 | |
---|
4505 | |
---|
4506 | ac_ext=c |
---|
4507 | ac_cpp='$CPP $CPPFLAGS' |
---|
4508 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4509 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4510 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4511 | |
---|
4512 | ac_ext=${ac_fc_srcext-f} |
---|
4513 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
4514 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
4515 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
4516 | |
---|
4517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5 |
---|
4518 | $as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; } |
---|
4519 | if test "${ac_cv_fc_dummy_main+set}" = set; then : |
---|
4520 | $as_echo_n "(cached) " >&6 |
---|
4521 | else |
---|
4522 | ac_fc_dm_save_LIBS=$LIBS |
---|
4523 | LIBS="$LIBS $FCLIBS" |
---|
4524 | ac_fortran_dm_var=FC_DUMMY_MAIN |
---|
4525 | ac_ext=c |
---|
4526 | ac_cpp='$CPP $CPPFLAGS' |
---|
4527 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4528 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4529 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4530 | |
---|
4531 | # First, try linking without a dummy main: |
---|
4532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4533 | /* end confdefs.h. */ |
---|
4534 | |
---|
4535 | #ifdef FC_DUMMY_MAIN |
---|
4536 | #ifndef FC_DUMMY_MAIN_EQ_F77 |
---|
4537 | # ifdef __cplusplus |
---|
4538 | extern "C" |
---|
4539 | # endif |
---|
4540 | int FC_DUMMY_MAIN() { return 1; } |
---|
4541 | #endif |
---|
4542 | #endif |
---|
4543 | int |
---|
4544 | main () |
---|
4545 | { |
---|
4546 | |
---|
4547 | ; |
---|
4548 | return 0; |
---|
4549 | } |
---|
4550 | _ACEOF |
---|
4551 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4552 | ac_cv_fortran_dummy_main=none |
---|
4553 | else |
---|
4554 | ac_cv_fortran_dummy_main=unknown |
---|
4555 | fi |
---|
4556 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4557 | conftest$ac_exeext conftest.$ac_ext |
---|
4558 | |
---|
4559 | if test $ac_cv_fortran_dummy_main = unknown; then |
---|
4560 | for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do |
---|
4561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4562 | /* end confdefs.h. */ |
---|
4563 | #define $ac_fortran_dm_var $ac_func |
---|
4564 | #ifdef FC_DUMMY_MAIN |
---|
4565 | #ifndef FC_DUMMY_MAIN_EQ_F77 |
---|
4566 | # ifdef __cplusplus |
---|
4567 | extern "C" |
---|
4568 | # endif |
---|
4569 | int FC_DUMMY_MAIN() { return 1; } |
---|
4570 | #endif |
---|
4571 | #endif |
---|
4572 | int |
---|
4573 | main () |
---|
4574 | { |
---|
4575 | |
---|
4576 | ; |
---|
4577 | return 0; |
---|
4578 | } |
---|
4579 | _ACEOF |
---|
4580 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4581 | ac_cv_fortran_dummy_main=$ac_func; break |
---|
4582 | fi |
---|
4583 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4584 | conftest$ac_exeext conftest.$ac_ext |
---|
4585 | done |
---|
4586 | fi |
---|
4587 | ac_ext=${ac_fc_srcext-f} |
---|
4588 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
4589 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
4590 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
4591 | ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main |
---|
4592 | rm -rf conftest* |
---|
4593 | LIBS=$ac_fc_dm_save_LIBS |
---|
4594 | |
---|
4595 | fi |
---|
4596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5 |
---|
4597 | $as_echo "$ac_cv_fc_dummy_main" >&6; } |
---|
4598 | FC_DUMMY_MAIN=$ac_cv_fc_dummy_main |
---|
4599 | if test "$FC_DUMMY_MAIN" != unknown; then : |
---|
4600 | if test $FC_DUMMY_MAIN != none; then |
---|
4601 | |
---|
4602 | cat >>confdefs.h <<_ACEOF |
---|
4603 | #define FC_DUMMY_MAIN $FC_DUMMY_MAIN |
---|
4604 | _ACEOF |
---|
4605 | |
---|
4606 | if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then |
---|
4607 | |
---|
4608 | $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h |
---|
4609 | |
---|
4610 | fi |
---|
4611 | fi |
---|
4612 | else |
---|
4613 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4614 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4615 | as_fn_error "linking to Fortran libraries from C fails |
---|
4616 | See \`config.log' for more details." "$LINENO" 5; } |
---|
4617 | fi |
---|
4618 | |
---|
4619 | ac_ext=c |
---|
4620 | ac_cpp='$CPP $CPPFLAGS' |
---|
4621 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4622 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4623 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4624 | |
---|
4625 | ac_ext=${ac_fc_srcext-f} |
---|
4626 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
4627 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
4628 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
4629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5 |
---|
4630 | $as_echo_n "checking for Fortran name-mangling scheme... " >&6; } |
---|
4631 | if test "${ac_cv_fc_mangling+set}" = set; then : |
---|
4632 | $as_echo_n "(cached) " >&6 |
---|
4633 | else |
---|
4634 | cat > conftest.$ac_ext <<_ACEOF |
---|
4635 | subroutine foobar() |
---|
4636 | return |
---|
4637 | end |
---|
4638 | subroutine foo_bar() |
---|
4639 | return |
---|
4640 | end |
---|
4641 | _ACEOF |
---|
4642 | if ac_fn_fc_try_compile "$LINENO"; then : |
---|
4643 | mv conftest.$ac_objext cfortran_test.$ac_objext |
---|
4644 | |
---|
4645 | ac_save_LIBS=$LIBS |
---|
4646 | LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS" |
---|
4647 | |
---|
4648 | ac_ext=c |
---|
4649 | ac_cpp='$CPP $CPPFLAGS' |
---|
4650 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4651 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4652 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4653 | ac_success=no |
---|
4654 | for ac_foobar in foobar FOOBAR; do |
---|
4655 | for ac_underscore in "" "_"; do |
---|
4656 | ac_func="$ac_foobar$ac_underscore" |
---|
4657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4658 | /* end confdefs.h. */ |
---|
4659 | |
---|
4660 | /* Override any GCC internal prototype to avoid an error. |
---|
4661 | Use char because int might match the return type of a GCC |
---|
4662 | builtin and then its argument prototype would still apply. */ |
---|
4663 | #ifdef __cplusplus |
---|
4664 | extern "C" |
---|
4665 | #endif |
---|
4666 | char $ac_func (); |
---|
4667 | #ifdef FC_DUMMY_MAIN |
---|
4668 | #ifndef FC_DUMMY_MAIN_EQ_F77 |
---|
4669 | # ifdef __cplusplus |
---|
4670 | extern "C" |
---|
4671 | # endif |
---|
4672 | int FC_DUMMY_MAIN() { return 1; } |
---|
4673 | #endif |
---|
4674 | #endif |
---|
4675 | int |
---|
4676 | main () |
---|
4677 | { |
---|
4678 | return $ac_func (); |
---|
4679 | ; |
---|
4680 | return 0; |
---|
4681 | } |
---|
4682 | _ACEOF |
---|
4683 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4684 | ac_success=yes; break 2 |
---|
4685 | fi |
---|
4686 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4687 | conftest$ac_exeext conftest.$ac_ext |
---|
4688 | done |
---|
4689 | done |
---|
4690 | ac_ext=${ac_fc_srcext-f} |
---|
4691 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
4692 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
4693 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
4694 | |
---|
4695 | if test "$ac_success" = "yes"; then |
---|
4696 | case $ac_foobar in |
---|
4697 | foobar) |
---|
4698 | ac_case=lower |
---|
4699 | ac_foo_bar=foo_bar |
---|
4700 | ;; |
---|
4701 | FOOBAR) |
---|
4702 | ac_case=upper |
---|
4703 | ac_foo_bar=FOO_BAR |
---|
4704 | ;; |
---|
4705 | esac |
---|
4706 | |
---|
4707 | ac_ext=c |
---|
4708 | ac_cpp='$CPP $CPPFLAGS' |
---|
4709 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4710 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4711 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4712 | ac_success_extra=no |
---|
4713 | for ac_extra in "" "_"; do |
---|
4714 | ac_func="$ac_foo_bar$ac_underscore$ac_extra" |
---|
4715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4716 | /* end confdefs.h. */ |
---|
4717 | |
---|
4718 | /* Override any GCC internal prototype to avoid an error. |
---|
4719 | Use char because int might match the return type of a GCC |
---|
4720 | builtin and then its argument prototype would still apply. */ |
---|
4721 | #ifdef __cplusplus |
---|
4722 | extern "C" |
---|
4723 | #endif |
---|
4724 | char $ac_func (); |
---|
4725 | #ifdef FC_DUMMY_MAIN |
---|
4726 | #ifndef FC_DUMMY_MAIN_EQ_F77 |
---|
4727 | # ifdef __cplusplus |
---|
4728 | extern "C" |
---|
4729 | # endif |
---|
4730 | int FC_DUMMY_MAIN() { return 1; } |
---|
4731 | #endif |
---|
4732 | #endif |
---|
4733 | int |
---|
4734 | main () |
---|
4735 | { |
---|
4736 | return $ac_func (); |
---|
4737 | ; |
---|
4738 | return 0; |
---|
4739 | } |
---|
4740 | _ACEOF |
---|
4741 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4742 | ac_success_extra=yes; break |
---|
4743 | fi |
---|
4744 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4745 | conftest$ac_exeext conftest.$ac_ext |
---|
4746 | done |
---|
4747 | ac_ext=${ac_fc_srcext-f} |
---|
4748 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
4749 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
4750 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
4751 | |
---|
4752 | if test "$ac_success_extra" = "yes"; then |
---|
4753 | ac_cv_fc_mangling="$ac_case case" |
---|
4754 | if test -z "$ac_underscore"; then |
---|
4755 | ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore" |
---|
4756 | else |
---|
4757 | ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore" |
---|
4758 | fi |
---|
4759 | if test -z "$ac_extra"; then |
---|
4760 | ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore" |
---|
4761 | else |
---|
4762 | ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore" |
---|
4763 | fi |
---|
4764 | else |
---|
4765 | ac_cv_fc_mangling="unknown" |
---|
4766 | fi |
---|
4767 | else |
---|
4768 | ac_cv_fc_mangling="unknown" |
---|
4769 | fi |
---|
4770 | |
---|
4771 | LIBS=$ac_save_LIBS |
---|
4772 | rm -rf conftest* |
---|
4773 | rm -f cfortran_test* |
---|
4774 | else |
---|
4775 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4776 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4777 | as_fn_error "cannot compile a simple Fortran program |
---|
4778 | See \`config.log' for more details." "$LINENO" 5; } |
---|
4779 | fi |
---|
4780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4781 | |
---|
4782 | fi |
---|
4783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5 |
---|
4784 | $as_echo "$ac_cv_fc_mangling" >&6; } |
---|
4785 | |
---|
4786 | ac_ext=c |
---|
4787 | ac_cpp='$CPP $CPPFLAGS' |
---|
4788 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4789 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4790 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4791 | |
---|
4792 | ac_ext=${ac_fc_srcext-f} |
---|
4793 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
4794 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
4795 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
4796 | case $ac_cv_fc_mangling in |
---|
4797 | "lower case, no underscore, no extra underscore") |
---|
4798 | $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h |
---|
4799 | |
---|
4800 | $as_echo "#define FC_FUNC_(name,NAME) name" >>confdefs.h |
---|
4801 | ;; |
---|
4802 | "lower case, no underscore, extra underscore") |
---|
4803 | $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h |
---|
4804 | |
---|
4805 | $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h |
---|
4806 | ;; |
---|
4807 | "lower case, underscore, no extra underscore") |
---|
4808 | $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h |
---|
4809 | |
---|
4810 | $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h |
---|
4811 | ;; |
---|
4812 | "lower case, underscore, extra underscore") |
---|
4813 | $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h |
---|
4814 | |
---|
4815 | $as_echo "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h |
---|
4816 | ;; |
---|
4817 | "upper case, no underscore, no extra underscore") |
---|
4818 | $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h |
---|
4819 | |
---|
4820 | $as_echo "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h |
---|
4821 | ;; |
---|
4822 | "upper case, no underscore, extra underscore") |
---|
4823 | $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h |
---|
4824 | |
---|
4825 | $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h |
---|
4826 | ;; |
---|
4827 | "upper case, underscore, no extra underscore") |
---|
4828 | $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h |
---|
4829 | |
---|
4830 | $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h |
---|
4831 | ;; |
---|
4832 | "upper case, underscore, extra underscore") |
---|
4833 | $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h |
---|
4834 | |
---|
4835 | $as_echo "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h |
---|
4836 | ;; |
---|
4837 | *) |
---|
4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5 |
---|
4839 | $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} |
---|
4840 | ;; |
---|
4841 | esac |
---|
4842 | |
---|
4843 | ac_ext=c |
---|
4844 | ac_cpp='$CPP $CPPFLAGS' |
---|
4845 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4846 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4847 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4848 | |
---|
4849 | |
---|
4850 | FC="$OLDFC" |
---|
4851 | |
---|
4852 | # CHECK THAT THE FORTRAN COMPILER CAN CORRECTLY PROCESS THESE DIRECTIVES |
---|
4853 | # IF NOT, USE THE EXTERNAL C PREPROCESSOR |
---|
4854 | OLDFC="$FC" |
---|
4855 | |
---|
4856 | defineflag="-Daardvark" |
---|
4857 | if test "$OLDFC" = "xlf90"; then |
---|
4858 | defineflag="-WF,-Daardvark" |
---|
4859 | fi |
---|
4860 | if test "$OLDFC" = "frt"; then |
---|
4861 | defineflag="-Wp,-Daardvark" |
---|
4862 | fi |
---|
4863 | |
---|
4864 | FC="$OLDFC" |
---|
4865 | |
---|
4866 | # DEFINE VARIABLES ACCORDING TO OS AND COMPILER |
---|
4867 | |
---|
4868 | echo "Hostname=$ac_hostname" |
---|
4869 | echo "Machine=$machinename" |
---|
4870 | echo "OS=$osname" |
---|
4871 | |
---|
4872 | # CHECK OS NAME |
---|
4873 | if echo $osname | grep -i aix >/dev/null 2>&1; then |
---|
4874 | SYSDEF="AIX" |
---|
4875 | fi |
---|
4876 | if echo $osname | grep -i darwin >/dev/null 2>&1; then |
---|
4877 | SYSDEF="DARWIN" |
---|
4878 | fi |
---|
4879 | if echo $osname | grep -i unix_system_v >/dev/null 2>&1; then |
---|
4880 | SYSDEF="UNIXSYSTEMV" |
---|
4881 | fi |
---|
4882 | if echo $osname | grep -i irix >/dev/null 2>&1; then |
---|
4883 | SYSDEF="IRIX" |
---|
4884 | fi |
---|
4885 | if echo $osname | grep -i irix64 >/dev/null 2>&1; then |
---|
4886 | SYSDEF="IRIX64" |
---|
4887 | fi |
---|
4888 | if echo $osname | grep -i linux >/dev/null 2>&1; then |
---|
4889 | SYSDEF="LINUX" |
---|
4890 | fi |
---|
4891 | if echo $osname | grep -i osf1 >/dev/null 2>&1; then |
---|
4892 | SYSDEF="OSF1" |
---|
4893 | fi |
---|
4894 | if echo $osname | grep -i super >/dev/null 2>&1; then |
---|
4895 | SYSDEF="SUPERUX" |
---|
4896 | fi |
---|
4897 | if echo $osname | grep -i sun >/dev/null 2>&1; then |
---|
4898 | SYSDEF="SUNOS" |
---|
4899 | fi |
---|
4900 | if echo $osname | grep -i t3e >/dev/null 2>&1; then |
---|
4901 | SYSDEF="T3E" |
---|
4902 | fi |
---|
4903 | if echo $osname | grep -i unicos >/dev/null 2>&1; then |
---|
4904 | SYSDEF="UNICOS" |
---|
4905 | fi |
---|
4906 | if test -z "$SYSDEF"; then |
---|
4907 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPERATING SYSTEM UNKNOWN" >&5 |
---|
4908 | $as_echo "$as_me: WARNING: OPERATING SYSTEM UNKNOWN" >&2;} |
---|
4909 | SYSDEF="UNKNOWNOS" |
---|
4910 | fi |
---|
4911 | |
---|
4912 | # Set the default FCFLAGS for non-gfortran compilers. |
---|
4913 | # NOTE: This may change with a new version of autoconf. |
---|
4914 | DEFFCFLAGS="-g" |
---|
4915 | |
---|
4916 | ##################################################### |
---|
4917 | # CHECK COMPILER NAME and add specific flags |
---|
4918 | if echo $FC | grep xlf >/dev/null 2>&1; then |
---|
4919 | echo "Fortran Compiler is XLF" |
---|
4920 | CPRDEF="XLF" |
---|
4921 | if test -z "$REAL8"; then |
---|
4922 | REAL8="-qrealsize=8" |
---|
4923 | fi |
---|
4924 | if test -z "$OPT"; then |
---|
4925 | OPT="-O2 -qarch=auto" |
---|
4926 | fi |
---|
4927 | if test -z "$DEBUG"; then |
---|
4928 | DEBUG="-qdbg" |
---|
4929 | fi |
---|
4930 | if test "$FCFLAGS" = "$DEFFCFLAGS"; then |
---|
4931 | FCFLAGS="" |
---|
4932 | fi |
---|
4933 | elif echo $FC | grep pgf >/dev/null 2>&1; then |
---|
4934 | echo "Fortran Compiler is Portland Group" |
---|
4935 | CPRDEF="PGI" |
---|
4936 | if test -z "$REAL8"; then |
---|
4937 | REAL8="-r8" |
---|
4938 | fi |
---|
4939 | if test -z "$BIT64"; then |
---|
4940 | BIT64="-pc 64" |
---|
4941 | fi |
---|
4942 | if test "$FCFLAGS" = "$DEFFCFLAGS"; then |
---|
4943 | FCFLAGS="" |
---|
4944 | fi |
---|
4945 | if test -z "$ENDIAN"; then |
---|
4946 | ENDIAN="-byteswapio" |
---|
4947 | fi |
---|
4948 | if test -z "$OPT"; then |
---|
4949 | OPT="-O2" |
---|
4950 | fi |
---|
4951 | if test -z "$DEBUG"; then |
---|
4952 | DEBUG="-g" |
---|
4953 | fi |
---|
4954 | elif echo $FC | grep ftn >/dev/null 2>&1; then |
---|
4955 | if echo $ac_fc_version_output | grep -i Portland >/dev/null 2>&1; then |
---|
4956 | echo "Fortran Compiler is Portland Group, Cray" |
---|
4957 | CPRDEF="PGI" |
---|
4958 | SYSDEF="CNLINUX" |
---|
4959 | if test -z "$REAL8"; then |
---|
4960 | REAL8="-r8" |
---|
4961 | fi |
---|
4962 | if test -z "$BIT64"; then |
---|
4963 | BIT64="-pc 64" |
---|
4964 | fi |
---|
4965 | if test "$FCFLAGS" = "$DEFFCFLAGS"; then |
---|
4966 | FCFLAGS="" |
---|
4967 | fi |
---|
4968 | if test -z "$ENDIAN"; then |
---|
4969 | ENDIAN="-byteswapio" |
---|
4970 | fi |
---|
4971 | if test -z "$OPT"; then |
---|
4972 | OPT="-O2" |
---|
4973 | fi |
---|
4974 | if test -z "$DEBUG"; then |
---|
4975 | DEBUG="-g" |
---|
4976 | fi |
---|
4977 | fi |
---|
4978 | elif echo $FC | grep ifort >/dev/null 2>&1; then |
---|
4979 | echo "Fortran Compiler is Intel ifort" |
---|
4980 | CPRDEF="INTEL" |
---|
4981 | if test -z "$REAL8"; then |
---|
4982 | REAL8="-r8" |
---|
4983 | fi |
---|
4984 | if test "$FCFLAGS" = "$DEFFCFLAGS"; then |
---|
4985 | FCFLAGS="-w -ftz" |
---|
4986 | fi |
---|
4987 | if test -z "$PROGFCFLAGS"; then |
---|
4988 | PROGFCFLAGS="-assume byterecl" |
---|
4989 | fi |
---|
4990 | if test -z "$ENDIAN"; then |
---|
4991 | ENDIAN="-convert big_endian" |
---|
4992 | fi |
---|
4993 | if test -z "$OPT"; then |
---|
4994 | OPT="-O2" |
---|
4995 | fi |
---|
4996 | if test -z "$DEBUG"; then |
---|
4997 | DEBUG="-g" |
---|
4998 | fi |
---|
4999 | elif echo $FC | grep g95 >/dev/null 2>&1; then |
---|
5000 | echo "Fortran Compiler is GNU" |
---|
5001 | CPRDEF="GNU" |
---|
5002 | elif echo $FC | grep gfortran >/dev/null 2>&1; then |
---|
5003 | echo "Fortran Compiler is GNU" |
---|
5004 | CPRDEF="GNU" |
---|
5005 | # For gfortran, default flags are different |
---|
5006 | if test "$FCFLAGS" = "-g -O2"; then |
---|
5007 | FCFLAGS="" |
---|
5008 | fi |
---|
5009 | if test -z "$DEBUG"; then |
---|
5010 | DEBUG="-g" |
---|
5011 | fi |
---|
5012 | if test -z "$OPT"; then |
---|
5013 | OPT="-O2" |
---|
5014 | fi |
---|
5015 | ########################################################### |
---|
5016 | # the compiler flags below have not been verified recently |
---|
5017 | ########################################################### |
---|
5018 | elif echo $FC | grep frt >/dev/null 2>&1; then |
---|
5019 | echo "Fortran Compiler is UXP/V" |
---|
5020 | echo "Suggested additional vectorization flags: -Wv,-s5,-t3,-noalias,-ilfunc,-md" |
---|
5021 | CPRDEF="FUJITSU" |
---|
5022 | if test -z "$F90FLAGS"; then |
---|
5023 | F90FLAGS="-Am -X9" |
---|
5024 | fi |
---|
5025 | if test -z "$BIT64"; then |
---|
5026 | BIT64="-KA64" |
---|
5027 | fi |
---|
5028 | if test -z "$REAL8"; then |
---|
5029 | REAL8="-Ad" |
---|
5030 | fi |
---|
5031 | elif echo $ac_fc_version_output | grep Lahey >/dev/null 2>&1; then |
---|
5032 | echo "Fortran Compiler is Lahey" |
---|
5033 | CPRDEF="LAHEY" |
---|
5034 | elif echo $FC | grep ifc >/dev/null 2>&1; then |
---|
5035 | echo "Fortran Compiler is Intel 7.x or earlier" |
---|
5036 | echo "Intel ifc compiler must set the environment variable F_UFMTENDIAN=big to do endian conversion" |
---|
5037 | CPRDEF="INTEL" |
---|
5038 | if test -z "$REAL8"; then |
---|
5039 | REAL8="-r8" |
---|
5040 | fi |
---|
5041 | if test -z "$F90FLAGS"; then |
---|
5042 | F90FLAGS="-w" |
---|
5043 | fi |
---|
5044 | if test -z "$OPT"; then |
---|
5045 | OPT="-O2" |
---|
5046 | fi |
---|
5047 | elif echo $FC | grep efc >/dev/null 2>&1; then |
---|
5048 | echo "Fortran Compiler is Intel 7.x or earlier for IA-64" |
---|
5049 | echo "Intel efc compiler must set the environment variable F_UFMTENDIAN=big to do endian conversion" |
---|
5050 | CPRDEF="INTEL" |
---|
5051 | if test -z "$REAL8"; then |
---|
5052 | REAL8="-r8" |
---|
5053 | fi |
---|
5054 | if test -z "$F90FLAGS"; then |
---|
5055 | F90FLAGS="-w -ftz" |
---|
5056 | fi |
---|
5057 | if test -z "$OPT"; then |
---|
5058 | OPT="-O2" |
---|
5059 | fi |
---|
5060 | elif echo $FC | grep pathf90 >/dev/null 2>&1; then |
---|
5061 | echo "Fortran Compiler is PathScale" |
---|
5062 | CPRDEF="PATHSC" |
---|
5063 | if test -z "$REAL8"; then |
---|
5064 | REAL8="-r8" |
---|
5065 | fi |
---|
5066 | if test -z "$BIT64"; then |
---|
5067 | BIT64="-m64" |
---|
5068 | fi |
---|
5069 | if test -z "$OPT"; then |
---|
5070 | OPT="-O2" |
---|
5071 | fi |
---|
5072 | elif echo $ac_fc_version_output | grep -i nag >/dev/null 2>&1; then |
---|
5073 | echo "Fortran Compiler is NAG" |
---|
5074 | CPRDEF="NAG" |
---|
5075 | if test -z "$F90FLAGS"; then |
---|
5076 | F90FLAGS="-dusty -kind=byte" |
---|
5077 | fi |
---|
5078 | if test -z "$OPT"; then |
---|
5079 | OPT="-O2" |
---|
5080 | fi |
---|
5081 | elif echo $ac_fc_version_output | grep -i absoft >/dev/null 2>&1; then |
---|
5082 | echo "Fortran Compiler is Absoft" |
---|
5083 | CPRDEF="ABSOFT" |
---|
5084 | if test -z "$REAL8"; then |
---|
5085 | REAL8="-N113" |
---|
5086 | fi |
---|
5087 | if test -z "$INCLUDEFLAG"; then |
---|
5088 | INCLUDEFLAG="-p" |
---|
5089 | fi |
---|
5090 | if test -z "$OPT"; then |
---|
5091 | OPT="-O2" |
---|
5092 | fi |
---|
5093 | elif echo $ac_fc_version_output | grep -i workshop >/dev/null 2>&1; then |
---|
5094 | echo "Fortran Compiler is Workshop" |
---|
5095 | CPRDEF="WORKSHOP" |
---|
5096 | if test -z "$INCLUDEFLAG"; then |
---|
5097 | INCLUDEFLAG="-M" |
---|
5098 | fi |
---|
5099 | elif echo $ac_fc_version_output | grep -i mipspro >/dev/null 2>&1; then |
---|
5100 | echo "Fortran Compiler is MIPSPro" |
---|
5101 | CPRDEF="MIPSPRO" |
---|
5102 | EXTRACFLAGS="-64" |
---|
5103 | if test -z "$OPT"; then |
---|
5104 | OPT="-O3" |
---|
5105 | fi |
---|
5106 | if test -z "$REAL8"; then |
---|
5107 | REAL8="-r8" |
---|
5108 | fi |
---|
5109 | if test -z "$BIT64"; then |
---|
5110 | BIT64="-64" |
---|
5111 | fi |
---|
5112 | elif echo $ac_fc_version_output | grep -i compaq >/dev/null 2>&1; then |
---|
5113 | echo "Fortran Compiler is Compaq" |
---|
5114 | CPRDEF="COMPAQ" |
---|
5115 | MPILIBS="$MPILIBS -lelan" |
---|
5116 | if test -z "$OPT"; then |
---|
5117 | OPT="-fast" |
---|
5118 | fi |
---|
5119 | if test -z "$REAL8"; then |
---|
5120 | REAL8="-real_size 64" |
---|
5121 | fi |
---|
5122 | if test -z "$ENDIAN"; then |
---|
5123 | ENDIAN="-convert big_endian" |
---|
5124 | fi |
---|
5125 | |
---|
5126 | # Compaq Fortran changed its name to HP Fortran. |
---|
5127 | # Lets support both versions for now. |
---|
5128 | elif echo $ac_fc_version_output | grep HP >/dev/null 2>&1; then |
---|
5129 | echo "Fortran Compiler is HP" |
---|
5130 | CPRDEF="COMPAQ" |
---|
5131 | MPILIBS="$MPILIBS -lelan" |
---|
5132 | if test -z "$OPT"; then |
---|
5133 | OPT="-fast" |
---|
5134 | fi |
---|
5135 | if test -z "$REAL8"; then |
---|
5136 | REAL8="-real_size 64" |
---|
5137 | fi |
---|
5138 | if test -z "$ENDIAN"; then |
---|
5139 | ENDIAN="-convert big_endian" |
---|
5140 | fi |
---|
5141 | |
---|
5142 | elif echo $ac_fc_version_output | grep -i sx >/dev/null 2>&1; then |
---|
5143 | echo "Fortran Compiler is SX" |
---|
5144 | CPRDEF="SX" |
---|
5145 | if test -z "$F90FLAGS"; then |
---|
5146 | F90FLAGS="-EP -Wf'-pvctl noassoc'" |
---|
5147 | fi |
---|
5148 | if test -z "$OPT"; then |
---|
5149 | OPT="-Chopt" |
---|
5150 | fi |
---|
5151 | fi |
---|
5152 | |
---|
5153 | ########################################################### |
---|
5154 | # END of compiler-specific flag setting |
---|
5155 | ########################################################### |
---|
5156 | |
---|
5157 | CPPDEFS="$CPPDEFS -DSYS$SYSDEF -DCPR$CPRDEF" |
---|
5158 | if test -n "$SRKDEF"; then |
---|
5159 | CPPDEFS="$CPPDEFS -D$SRKDEF" |
---|
5160 | fi |
---|
5161 | |
---|
5162 | # IF DEBUGGING ENABLED, DISABLE OPTIMIZATION FLAG |
---|
5163 | if test "$DEBUGGING" = "ENABLED"; then |
---|
5164 | OPT="" |
---|
5165 | else |
---|
5166 | DEBUG="" |
---|
5167 | fi |
---|
5168 | |
---|
5169 | # SET HARDCODED VARIABLES AS A LAST RESORT |
---|
5170 | |
---|
5171 | # ALWAYS ENABLE CRULE IN MAKEFILE |
---|
5172 | CRULE=.c.o |
---|
5173 | |
---|
5174 | |
---|
5175 | |
---|
5176 | |
---|
5177 | # INCLUDE FLAG IF NOT ALREADY SET IS MOST LIKELY -I |
---|
5178 | if test -z "$INCLUDEFLAG"; then |
---|
5179 | INCLUDEFLAG="-I" |
---|
5180 | fi |
---|
5181 | |
---|
5182 | # ARCHIVE COMMAND SIMILAR ACROSS ALL PLATFORMS |
---|
5183 | if test -z "$AR"; then |
---|
5184 | AR="ar cq" |
---|
5185 | fi |
---|
5186 | |
---|
5187 | echo |
---|
5188 | echo Output Variables: {CC=$CC} {CFLAGS=$CFLAGS} \ |
---|
5189 | {FC=$FC} {FCFLAGS=$FCFLAGS} {PROGFCFLAGS=$PROGFCFLAGS}\ |
---|
5190 | {CPPDEFS=$CPPDEFS} {OPT=$OPT} {DEBUG=$DEBUG} {REAL8=$REAL8} \ |
---|
5191 | {BIT64=$BIT64} {ENDIAN=$ENDIAN} {MPIFC=$MPIFC} \ |
---|
5192 | {MPILIBS=$MPILIBS} {MPIHEADER=$MPIHEADER} \ |
---|
5193 | {INCLUDEFLAG=$INCLUDEFLAG} {INCLUDEPATH=$INCLUDEPATH} \ |
---|
5194 | {AR=$AR} {BABELROOT=$BABELROOT} {COMPILER_ROOT=$COMPILER_ROOT} \ |
---|
5195 | {PYTHON=$PYTHON} {PYTHONOPTS=$PYTHONOPTS} {FORT_SIZE=$FORT_SIZE} {prefix=$prefix} \ |
---|
5196 | {SRCDIR=$SRCDIR} {FC_DEFINE=$FC_DEFINE} |
---|
5197 | echo |
---|
5198 | |
---|
5199 | cat >confcache <<\_ACEOF |
---|
5200 | # This file is a shell script that caches the results of configure |
---|
5201 | # tests run on this system so they can be shared between configure |
---|
5202 | # scripts and configure runs, see configure's option --config-cache. |
---|
5203 | # It is not useful on other systems. If it contains results you don't |
---|
5204 | # want to keep, you may remove or edit it. |
---|
5205 | # |
---|
5206 | # config.status only pays attention to the cache file if you give it |
---|
5207 | # the --recheck option to rerun configure. |
---|
5208 | # |
---|
5209 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
5210 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
5211 | # following values. |
---|
5212 | |
---|
5213 | _ACEOF |
---|
5214 | |
---|
5215 | # The following way of writing the cache mishandles newlines in values, |
---|
5216 | # but we know of no workaround that is simple, portable, and efficient. |
---|
5217 | # So, we kill variables containing newlines. |
---|
5218 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
5219 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
5220 | ( |
---|
5221 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
5222 | eval ac_val=\$$ac_var |
---|
5223 | case $ac_val in #( |
---|
5224 | *${as_nl}*) |
---|
5225 | case $ac_var in #( |
---|
5226 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
5227 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
5228 | esac |
---|
5229 | case $ac_var in #( |
---|
5230 | _ | IFS | as_nl) ;; #( |
---|
5231 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
5232 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
5233 | esac ;; |
---|
5234 | esac |
---|
5235 | done |
---|
5236 | |
---|
5237 | (set) 2>&1 | |
---|
5238 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
5239 | *${as_nl}ac_space=\ *) |
---|
5240 | # `set' does not quote correctly, so add quotes: double-quote |
---|
5241 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
5242 | sed -n \ |
---|
5243 | "s/'/'\\\\''/g; |
---|
5244 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
5245 | ;; #( |
---|
5246 | *) |
---|
5247 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
5248 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
5249 | ;; |
---|
5250 | esac | |
---|
5251 | sort |
---|
5252 | ) | |
---|
5253 | sed ' |
---|
5254 | /^ac_cv_env_/b end |
---|
5255 | t clear |
---|
5256 | :clear |
---|
5257 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
5258 | t end |
---|
5259 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
5260 | :end' >>confcache |
---|
5261 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
5262 | if test -w "$cache_file"; then |
---|
5263 | test "x$cache_file" != "x/dev/null" && |
---|
5264 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
5265 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
5266 | cat confcache >$cache_file |
---|
5267 | else |
---|
5268 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
5269 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
5270 | fi |
---|
5271 | fi |
---|
5272 | rm -f confcache |
---|
5273 | |
---|
5274 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
5275 | # Let make expand exec_prefix. |
---|
5276 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
5277 | |
---|
5278 | DEFS=-DHAVE_CONFIG_H |
---|
5279 | |
---|
5280 | ac_libobjs= |
---|
5281 | ac_ltlibobjs= |
---|
5282 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
5283 | # 1. Remove the extension, and $U if already installed. |
---|
5284 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
5285 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
5286 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
5287 | # will be set to the directory where LIBOBJS objects are built. |
---|
5288 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
5289 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
5290 | done |
---|
5291 | LIBOBJS=$ac_libobjs |
---|
5292 | |
---|
5293 | LTLIBOBJS=$ac_ltlibobjs |
---|
5294 | |
---|
5295 | |
---|
5296 | |
---|
5297 | |
---|
5298 | : ${CONFIG_STATUS=./config.status} |
---|
5299 | ac_write_fail=0 |
---|
5300 | ac_clean_files_save=$ac_clean_files |
---|
5301 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
5302 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
5303 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
5304 | as_write_fail=0 |
---|
5305 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
5306 | #! $SHELL |
---|
5307 | # Generated by $as_me. |
---|
5308 | # Run this file to recreate the current configuration. |
---|
5309 | # Compiler output produced by configure, useful for debugging |
---|
5310 | # configure, is in config.log if it exists. |
---|
5311 | |
---|
5312 | debug=false |
---|
5313 | ac_cs_recheck=false |
---|
5314 | ac_cs_silent=false |
---|
5315 | |
---|
5316 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
5317 | export SHELL |
---|
5318 | _ASEOF |
---|
5319 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
5320 | ## -------------------- ## |
---|
5321 | ## M4sh Initialization. ## |
---|
5322 | ## -------------------- ## |
---|
5323 | |
---|
5324 | # Be more Bourne compatible |
---|
5325 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
5326 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
5327 | emulate sh |
---|
5328 | NULLCMD=: |
---|
5329 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
5330 | # is contrary to our usage. Disable this feature. |
---|
5331 | alias -g '${1+"$@"}'='"$@"' |
---|
5332 | setopt NO_GLOB_SUBST |
---|
5333 | else |
---|
5334 | case `(set -o) 2>/dev/null` in #( |
---|
5335 | *posix*) : |
---|
5336 | set -o posix ;; #( |
---|
5337 | *) : |
---|
5338 | ;; |
---|
5339 | esac |
---|
5340 | fi |
---|
5341 | |
---|
5342 | |
---|
5343 | as_nl=' |
---|
5344 | ' |
---|
5345 | export as_nl |
---|
5346 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
5347 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
5348 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
5349 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
5350 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
5351 | # but without wasting forks for bash or zsh. |
---|
5352 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
5353 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
5354 | as_echo='print -r --' |
---|
5355 | as_echo_n='print -rn --' |
---|
5356 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
5357 | as_echo='printf %s\n' |
---|
5358 | as_echo_n='printf %s' |
---|
5359 | else |
---|
5360 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
5361 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
5362 | as_echo_n='/usr/ucb/echo -n' |
---|
5363 | else |
---|
5364 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
5365 | as_echo_n_body='eval |
---|
5366 | arg=$1; |
---|
5367 | case $arg in #( |
---|
5368 | *"$as_nl"*) |
---|
5369 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
5370 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
5371 | esac; |
---|
5372 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
5373 | ' |
---|
5374 | export as_echo_n_body |
---|
5375 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
5376 | fi |
---|
5377 | export as_echo_body |
---|
5378 | as_echo='sh -c $as_echo_body as_echo' |
---|
5379 | fi |
---|
5380 | |
---|
5381 | # The user is always right. |
---|
5382 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
5383 | PATH_SEPARATOR=: |
---|
5384 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
5385 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
5386 | PATH_SEPARATOR=';' |
---|
5387 | } |
---|
5388 | fi |
---|
5389 | |
---|
5390 | |
---|
5391 | # IFS |
---|
5392 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
5393 | # there to prevent editors from complaining about space-tab. |
---|
5394 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
5395 | # splitting by setting IFS to empty value.) |
---|
5396 | IFS=" "" $as_nl" |
---|
5397 | |
---|
5398 | # Find who we are. Look in the path if we contain no directory separator. |
---|
5399 | case $0 in #(( |
---|
5400 | *[\\/]* ) as_myself=$0 ;; |
---|
5401 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5402 | for as_dir in $PATH |
---|
5403 | do |
---|
5404 | IFS=$as_save_IFS |
---|
5405 | test -z "$as_dir" && as_dir=. |
---|
5406 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
5407 | done |
---|
5408 | IFS=$as_save_IFS |
---|
5409 | |
---|
5410 | ;; |
---|
5411 | esac |
---|
5412 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
5413 | # in which case we are not to be found in the path. |
---|
5414 | if test "x$as_myself" = x; then |
---|
5415 | as_myself=$0 |
---|
5416 | fi |
---|
5417 | if test ! -f "$as_myself"; then |
---|
5418 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
5419 | exit 1 |
---|
5420 | fi |
---|
5421 | |
---|
5422 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
5423 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
5424 | # suppresses any "Segmentation fault" message there. '((' could |
---|
5425 | # trigger a bug in pdksh 5.2.14. |
---|
5426 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
5427 | do eval test x\${$as_var+set} = xset \ |
---|
5428 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
5429 | done |
---|
5430 | PS1='$ ' |
---|
5431 | PS2='> ' |
---|
5432 | PS4='+ ' |
---|
5433 | |
---|
5434 | # NLS nuisances. |
---|
5435 | LC_ALL=C |
---|
5436 | export LC_ALL |
---|
5437 | LANGUAGE=C |
---|
5438 | export LANGUAGE |
---|
5439 | |
---|
5440 | # CDPATH. |
---|
5441 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
5442 | |
---|
5443 | |
---|
5444 | # as_fn_error ERROR [LINENO LOG_FD] |
---|
5445 | # --------------------------------- |
---|
5446 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
5447 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
5448 | # script with status $?, using 1 if that was 0. |
---|
5449 | as_fn_error () |
---|
5450 | { |
---|
5451 | as_status=$?; test $as_status -eq 0 && as_status=1 |
---|
5452 | if test "$3"; then |
---|
5453 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
5454 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
---|
5455 | fi |
---|
5456 | $as_echo "$as_me: error: $1" >&2 |
---|
5457 | as_fn_exit $as_status |
---|
5458 | } # as_fn_error |
---|
5459 | |
---|
5460 | |
---|
5461 | # as_fn_set_status STATUS |
---|
5462 | # ----------------------- |
---|
5463 | # Set $? to STATUS, without forking. |
---|
5464 | as_fn_set_status () |
---|
5465 | { |
---|
5466 | return $1 |
---|
5467 | } # as_fn_set_status |
---|
5468 | |
---|
5469 | # as_fn_exit STATUS |
---|
5470 | # ----------------- |
---|
5471 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
5472 | as_fn_exit () |
---|
5473 | { |
---|
5474 | set +e |
---|
5475 | as_fn_set_status $1 |
---|
5476 | exit $1 |
---|
5477 | } # as_fn_exit |
---|
5478 | |
---|
5479 | # as_fn_unset VAR |
---|
5480 | # --------------- |
---|
5481 | # Portably unset VAR. |
---|
5482 | as_fn_unset () |
---|
5483 | { |
---|
5484 | { eval $1=; unset $1;} |
---|
5485 | } |
---|
5486 | as_unset=as_fn_unset |
---|
5487 | # as_fn_append VAR VALUE |
---|
5488 | # ---------------------- |
---|
5489 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
5490 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
5491 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
5492 | # implementations. |
---|
5493 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
5494 | eval 'as_fn_append () |
---|
5495 | { |
---|
5496 | eval $1+=\$2 |
---|
5497 | }' |
---|
5498 | else |
---|
5499 | as_fn_append () |
---|
5500 | { |
---|
5501 | eval $1=\$$1\$2 |
---|
5502 | } |
---|
5503 | fi # as_fn_append |
---|
5504 | |
---|
5505 | # as_fn_arith ARG... |
---|
5506 | # ------------------ |
---|
5507 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
5508 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
5509 | # must be portable across $(()) and expr. |
---|
5510 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
5511 | eval 'as_fn_arith () |
---|
5512 | { |
---|
5513 | as_val=$(( $* )) |
---|
5514 | }' |
---|
5515 | else |
---|
5516 | as_fn_arith () |
---|
5517 | { |
---|
5518 | as_val=`expr "$@" || test $? -eq 1` |
---|
5519 | } |
---|
5520 | fi # as_fn_arith |
---|
5521 | |
---|
5522 | |
---|
5523 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
5524 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
5525 | as_expr=expr |
---|
5526 | else |
---|
5527 | as_expr=false |
---|
5528 | fi |
---|
5529 | |
---|
5530 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
5531 | as_basename=basename |
---|
5532 | else |
---|
5533 | as_basename=false |
---|
5534 | fi |
---|
5535 | |
---|
5536 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
5537 | as_dirname=dirname |
---|
5538 | else |
---|
5539 | as_dirname=false |
---|
5540 | fi |
---|
5541 | |
---|
5542 | as_me=`$as_basename -- "$0" || |
---|
5543 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
5544 | X"$0" : 'X\(//\)$' \| \ |
---|
5545 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
5546 | $as_echo X/"$0" | |
---|
5547 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
5548 | s//\1/ |
---|
5549 | q |
---|
5550 | } |
---|
5551 | /^X\/\(\/\/\)$/{ |
---|
5552 | s//\1/ |
---|
5553 | q |
---|
5554 | } |
---|
5555 | /^X\/\(\/\).*/{ |
---|
5556 | s//\1/ |
---|
5557 | q |
---|
5558 | } |
---|
5559 | s/.*/./; q'` |
---|
5560 | |
---|
5561 | # Avoid depending upon Character Ranges. |
---|
5562 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
5563 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
5564 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
5565 | as_cr_digits='0123456789' |
---|
5566 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
5567 | |
---|
5568 | ECHO_C= ECHO_N= ECHO_T= |
---|
5569 | case `echo -n x` in #((((( |
---|
5570 | -n*) |
---|
5571 | case `echo 'xy\c'` in |
---|
5572 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
5573 | xy) ECHO_C='\c';; |
---|
5574 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
5575 | ECHO_T=' ';; |
---|
5576 | esac;; |
---|
5577 | *) |
---|
5578 | ECHO_N='-n';; |
---|
5579 | esac |
---|
5580 | |
---|
5581 | rm -f conf$$ conf$$.exe conf$$.file |
---|
5582 | if test -d conf$$.dir; then |
---|
5583 | rm -f conf$$.dir/conf$$.file |
---|
5584 | else |
---|
5585 | rm -f conf$$.dir |
---|
5586 | mkdir conf$$.dir 2>/dev/null |
---|
5587 | fi |
---|
5588 | if (echo >conf$$.file) 2>/dev/null; then |
---|
5589 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
5590 | as_ln_s='ln -s' |
---|
5591 | # ... but there are two gotchas: |
---|
5592 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
5593 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
5594 | # In both cases, we have to default to `cp -p'. |
---|
5595 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
5596 | as_ln_s='cp -p' |
---|
5597 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
5598 | as_ln_s=ln |
---|
5599 | else |
---|
5600 | as_ln_s='cp -p' |
---|
5601 | fi |
---|
5602 | else |
---|
5603 | as_ln_s='cp -p' |
---|
5604 | fi |
---|
5605 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
5606 | rmdir conf$$.dir 2>/dev/null |
---|
5607 | |
---|
5608 | |
---|
5609 | # as_fn_mkdir_p |
---|
5610 | # ------------- |
---|
5611 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
5612 | as_fn_mkdir_p () |
---|
5613 | { |
---|
5614 | |
---|
5615 | case $as_dir in #( |
---|
5616 | -*) as_dir=./$as_dir;; |
---|
5617 | esac |
---|
5618 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
5619 | as_dirs= |
---|
5620 | while :; do |
---|
5621 | case $as_dir in #( |
---|
5622 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
5623 | *) as_qdir=$as_dir;; |
---|
5624 | esac |
---|
5625 | as_dirs="'$as_qdir' $as_dirs" |
---|
5626 | as_dir=`$as_dirname -- "$as_dir" || |
---|
5627 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
5628 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
5629 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
5630 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
5631 | $as_echo X"$as_dir" | |
---|
5632 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
5633 | s//\1/ |
---|
5634 | q |
---|
5635 | } |
---|
5636 | /^X\(\/\/\)[^/].*/{ |
---|
5637 | s//\1/ |
---|
5638 | q |
---|
5639 | } |
---|
5640 | /^X\(\/\/\)$/{ |
---|
5641 | s//\1/ |
---|
5642 | q |
---|
5643 | } |
---|
5644 | /^X\(\/\).*/{ |
---|
5645 | s//\1/ |
---|
5646 | q |
---|
5647 | } |
---|
5648 | s/.*/./; q'` |
---|
5649 | test -d "$as_dir" && break |
---|
5650 | done |
---|
5651 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
5652 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
---|
5653 | |
---|
5654 | |
---|
5655 | } # as_fn_mkdir_p |
---|
5656 | if mkdir -p . 2>/dev/null; then |
---|
5657 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
5658 | else |
---|
5659 | test -d ./-p && rmdir ./-p |
---|
5660 | as_mkdir_p=false |
---|
5661 | fi |
---|
5662 | |
---|
5663 | if test -x / >/dev/null 2>&1; then |
---|
5664 | as_test_x='test -x' |
---|
5665 | else |
---|
5666 | if ls -dL / >/dev/null 2>&1; then |
---|
5667 | as_ls_L_option=L |
---|
5668 | else |
---|
5669 | as_ls_L_option= |
---|
5670 | fi |
---|
5671 | as_test_x=' |
---|
5672 | eval sh -c '\'' |
---|
5673 | if test -d "$1"; then |
---|
5674 | test -d "$1/."; |
---|
5675 | else |
---|
5676 | case $1 in #( |
---|
5677 | -*)set "./$1";; |
---|
5678 | esac; |
---|
5679 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
---|
5680 | ???[sx]*):;;*)false;;esac;fi |
---|
5681 | '\'' sh |
---|
5682 | ' |
---|
5683 | fi |
---|
5684 | as_executable_p=$as_test_x |
---|
5685 | |
---|
5686 | # Sed expression to map a string onto a valid CPP name. |
---|
5687 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
5688 | |
---|
5689 | # Sed expression to map a string onto a valid variable name. |
---|
5690 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
5691 | |
---|
5692 | |
---|
5693 | exec 6>&1 |
---|
5694 | ## ----------------------------------- ## |
---|
5695 | ## Main body of $CONFIG_STATUS script. ## |
---|
5696 | ## ----------------------------------- ## |
---|
5697 | _ASEOF |
---|
5698 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
5699 | |
---|
5700 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5701 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
5702 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
5703 | # values after options handling. |
---|
5704 | ac_log=" |
---|
5705 | This file was extended by MCT $as_me 2.8, which was |
---|
5706 | generated by GNU Autoconf 2.65. Invocation command line was |
---|
5707 | |
---|
5708 | CONFIG_FILES = $CONFIG_FILES |
---|
5709 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
5710 | CONFIG_LINKS = $CONFIG_LINKS |
---|
5711 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
5712 | $ $0 $@ |
---|
5713 | |
---|
5714 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
5715 | " |
---|
5716 | |
---|
5717 | _ACEOF |
---|
5718 | |
---|
5719 | case $ac_config_files in *" |
---|
5720 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
5721 | esac |
---|
5722 | |
---|
5723 | case $ac_config_headers in *" |
---|
5724 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
---|
5725 | esac |
---|
5726 | |
---|
5727 | |
---|
5728 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5729 | # Files that config.status was made for. |
---|
5730 | config_files="$ac_config_files" |
---|
5731 | config_headers="$ac_config_headers" |
---|
5732 | |
---|
5733 | _ACEOF |
---|
5734 | |
---|
5735 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5736 | ac_cs_usage="\ |
---|
5737 | \`$as_me' instantiates files and other configuration actions |
---|
5738 | from templates according to the current configuration. Unless the files |
---|
5739 | and actions are specified as TAGs, all are instantiated by default. |
---|
5740 | |
---|
5741 | Usage: $0 [OPTION]... [TAG]... |
---|
5742 | |
---|
5743 | -h, --help print this help, then exit |
---|
5744 | -V, --version print version number and configuration settings, then exit |
---|
5745 | --config print configuration, then exit |
---|
5746 | -q, --quiet, --silent |
---|
5747 | do not print progress messages |
---|
5748 | -d, --debug don't remove temporary files |
---|
5749 | --recheck update $as_me by reconfiguring in the same conditions |
---|
5750 | --file=FILE[:TEMPLATE] |
---|
5751 | instantiate the configuration file FILE |
---|
5752 | --header=FILE[:TEMPLATE] |
---|
5753 | instantiate the configuration header FILE |
---|
5754 | |
---|
5755 | Configuration files: |
---|
5756 | $config_files |
---|
5757 | |
---|
5758 | Configuration headers: |
---|
5759 | $config_headers |
---|
5760 | |
---|
5761 | Report bugs to the package provider." |
---|
5762 | |
---|
5763 | _ACEOF |
---|
5764 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5765 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
5766 | ac_cs_version="\\ |
---|
5767 | MCT config.status 2.8 |
---|
5768 | configured by $0, generated by GNU Autoconf 2.65, |
---|
5769 | with options \\"\$ac_cs_config\\" |
---|
5770 | |
---|
5771 | Copyright (C) 2009 Free Software Foundation, Inc. |
---|
5772 | This config.status script is free software; the Free Software Foundation |
---|
5773 | gives unlimited permission to copy, distribute and modify it." |
---|
5774 | |
---|
5775 | ac_pwd='$ac_pwd' |
---|
5776 | srcdir='$srcdir' |
---|
5777 | test -n "\$AWK" || AWK=awk |
---|
5778 | _ACEOF |
---|
5779 | |
---|
5780 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5781 | # The default lists apply if the user does not specify any file. |
---|
5782 | ac_need_defaults=: |
---|
5783 | while test $# != 0 |
---|
5784 | do |
---|
5785 | case $1 in |
---|
5786 | --*=*) |
---|
5787 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
5788 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
5789 | ac_shift=: |
---|
5790 | ;; |
---|
5791 | *) |
---|
5792 | ac_option=$1 |
---|
5793 | ac_optarg=$2 |
---|
5794 | ac_shift=shift |
---|
5795 | ;; |
---|
5796 | esac |
---|
5797 | |
---|
5798 | case $ac_option in |
---|
5799 | # Handling of the options. |
---|
5800 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
5801 | ac_cs_recheck=: ;; |
---|
5802 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
5803 | $as_echo "$ac_cs_version"; exit ;; |
---|
5804 | --config | --confi | --conf | --con | --co | --c ) |
---|
5805 | $as_echo "$ac_cs_config"; exit ;; |
---|
5806 | --debug | --debu | --deb | --de | --d | -d ) |
---|
5807 | debug=: ;; |
---|
5808 | --file | --fil | --fi | --f ) |
---|
5809 | $ac_shift |
---|
5810 | case $ac_optarg in |
---|
5811 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
5812 | esac |
---|
5813 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
5814 | ac_need_defaults=false;; |
---|
5815 | --header | --heade | --head | --hea ) |
---|
5816 | $ac_shift |
---|
5817 | case $ac_optarg in |
---|
5818 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
5819 | esac |
---|
5820 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
---|
5821 | ac_need_defaults=false;; |
---|
5822 | --he | --h) |
---|
5823 | # Conflict between --help and --header |
---|
5824 | as_fn_error "ambiguous option: \`$1' |
---|
5825 | Try \`$0 --help' for more information.";; |
---|
5826 | --help | --hel | -h ) |
---|
5827 | $as_echo "$ac_cs_usage"; exit ;; |
---|
5828 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
5829 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
5830 | ac_cs_silent=: ;; |
---|
5831 | |
---|
5832 | # This is an error. |
---|
5833 | -*) as_fn_error "unrecognized option: \`$1' |
---|
5834 | Try \`$0 --help' for more information." ;; |
---|
5835 | |
---|
5836 | *) as_fn_append ac_config_targets " $1" |
---|
5837 | ac_need_defaults=false ;; |
---|
5838 | |
---|
5839 | esac |
---|
5840 | shift |
---|
5841 | done |
---|
5842 | |
---|
5843 | ac_configure_extra_args= |
---|
5844 | |
---|
5845 | if $ac_cs_silent; then |
---|
5846 | exec 6>/dev/null |
---|
5847 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
5848 | fi |
---|
5849 | |
---|
5850 | _ACEOF |
---|
5851 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5852 | if \$ac_cs_recheck; then |
---|
5853 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
5854 | shift |
---|
5855 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
5856 | CONFIG_SHELL='$SHELL' |
---|
5857 | export CONFIG_SHELL |
---|
5858 | exec "\$@" |
---|
5859 | fi |
---|
5860 | |
---|
5861 | _ACEOF |
---|
5862 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5863 | exec 5>>config.log |
---|
5864 | { |
---|
5865 | echo |
---|
5866 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
5867 | ## Running $as_me. ## |
---|
5868 | _ASBOX |
---|
5869 | $as_echo "$ac_log" |
---|
5870 | } >&5 |
---|
5871 | |
---|
5872 | _ACEOF |
---|
5873 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5874 | _ACEOF |
---|
5875 | |
---|
5876 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5877 | |
---|
5878 | # Handling of arguments. |
---|
5879 | for ac_config_target in $ac_config_targets |
---|
5880 | do |
---|
5881 | case $ac_config_target in |
---|
5882 | "Makefile.conf") CONFIG_FILES="$CONFIG_FILES Makefile.conf" ;; |
---|
5883 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
5884 | |
---|
5885 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
5886 | esac |
---|
5887 | done |
---|
5888 | |
---|
5889 | |
---|
5890 | # If the user did not use the arguments to specify the items to instantiate, |
---|
5891 | # then the envvar interface is used. Set only those that are not. |
---|
5892 | # We use the long form for the default assignment because of an extremely |
---|
5893 | # bizarre bug on SunOS 4.1.3. |
---|
5894 | if $ac_need_defaults; then |
---|
5895 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
5896 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
5897 | fi |
---|
5898 | |
---|
5899 | # Have a temporary directory for convenience. Make it in the build tree |
---|
5900 | # simply because there is no reason against having it here, and in addition, |
---|
5901 | # creating and moving files from /tmp can sometimes cause problems. |
---|
5902 | # Hook for its removal unless debugging. |
---|
5903 | # Note that there is a small window in which the directory will not be cleaned: |
---|
5904 | # after its creation but before its name has been assigned to `$tmp'. |
---|
5905 | $debug || |
---|
5906 | { |
---|
5907 | tmp= |
---|
5908 | trap 'exit_status=$? |
---|
5909 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
---|
5910 | ' 0 |
---|
5911 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
5912 | } |
---|
5913 | # Create a (secure) tmp directory for tmp files. |
---|
5914 | |
---|
5915 | { |
---|
5916 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
5917 | test -n "$tmp" && test -d "$tmp" |
---|
5918 | } || |
---|
5919 | { |
---|
5920 | tmp=./conf$$-$RANDOM |
---|
5921 | (umask 077 && mkdir "$tmp") |
---|
5922 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
---|
5923 | |
---|
5924 | # Set up the scripts for CONFIG_FILES section. |
---|
5925 | # No need to generate them if there are no CONFIG_FILES. |
---|
5926 | # This happens for instance with `./config.status config.h'. |
---|
5927 | if test -n "$CONFIG_FILES"; then |
---|
5928 | |
---|
5929 | |
---|
5930 | ac_cr=`echo X | tr X '\015'` |
---|
5931 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
5932 | # But we know of no other shell where ac_cr would be empty at this |
---|
5933 | # point, so we can use a bashism as a fallback. |
---|
5934 | if test "x$ac_cr" = x; then |
---|
5935 | eval ac_cr=\$\'\\r\' |
---|
5936 | fi |
---|
5937 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
5938 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
5939 | ac_cs_awk_cr='\r' |
---|
5940 | else |
---|
5941 | ac_cs_awk_cr=$ac_cr |
---|
5942 | fi |
---|
5943 | |
---|
5944 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
---|
5945 | _ACEOF |
---|
5946 | |
---|
5947 | |
---|
5948 | { |
---|
5949 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
5950 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
5951 | echo "_ACEOF" |
---|
5952 | } >conf$$subs.sh || |
---|
5953 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
5954 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
---|
5955 | ac_delim='%!_!# ' |
---|
5956 | for ac_last_try in false false false false false :; do |
---|
5957 | . ./conf$$subs.sh || |
---|
5958 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
5959 | |
---|
5960 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
5961 | if test $ac_delim_n = $ac_delim_num; then |
---|
5962 | break |
---|
5963 | elif $ac_last_try; then |
---|
5964 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
5965 | else |
---|
5966 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
5967 | fi |
---|
5968 | done |
---|
5969 | rm -f conf$$subs.sh |
---|
5970 | |
---|
5971 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5972 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
---|
5973 | _ACEOF |
---|
5974 | sed -n ' |
---|
5975 | h |
---|
5976 | s/^/S["/; s/!.*/"]=/ |
---|
5977 | p |
---|
5978 | g |
---|
5979 | s/^[^!]*!// |
---|
5980 | :repl |
---|
5981 | t repl |
---|
5982 | s/'"$ac_delim"'$// |
---|
5983 | t delim |
---|
5984 | :nl |
---|
5985 | h |
---|
5986 | s/\(.\{148\}\)..*/\1/ |
---|
5987 | t more1 |
---|
5988 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
5989 | p |
---|
5990 | n |
---|
5991 | b repl |
---|
5992 | :more1 |
---|
5993 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
5994 | p |
---|
5995 | g |
---|
5996 | s/.\{148\}// |
---|
5997 | t nl |
---|
5998 | :delim |
---|
5999 | h |
---|
6000 | s/\(.\{148\}\)..*/\1/ |
---|
6001 | t more2 |
---|
6002 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
6003 | p |
---|
6004 | b |
---|
6005 | :more2 |
---|
6006 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
6007 | p |
---|
6008 | g |
---|
6009 | s/.\{148\}// |
---|
6010 | t delim |
---|
6011 | ' <conf$$subs.awk | sed ' |
---|
6012 | /^[^""]/{ |
---|
6013 | N |
---|
6014 | s/\n// |
---|
6015 | } |
---|
6016 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
6017 | rm -f conf$$subs.awk |
---|
6018 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6019 | _ACAWK |
---|
6020 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
---|
6021 | for (key in S) S_is_set[key] = 1 |
---|
6022 | FS = "" |
---|
6023 | |
---|
6024 | } |
---|
6025 | { |
---|
6026 | line = $ 0 |
---|
6027 | nfields = split(line, field, "@") |
---|
6028 | substed = 0 |
---|
6029 | len = length(field[1]) |
---|
6030 | for (i = 2; i < nfields; i++) { |
---|
6031 | key = field[i] |
---|
6032 | keylen = length(key) |
---|
6033 | if (S_is_set[key]) { |
---|
6034 | value = S[key] |
---|
6035 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
6036 | len += length(value) + length(field[++i]) |
---|
6037 | substed = 1 |
---|
6038 | } else |
---|
6039 | len += 1 + keylen |
---|
6040 | } |
---|
6041 | |
---|
6042 | print line |
---|
6043 | } |
---|
6044 | |
---|
6045 | _ACAWK |
---|
6046 | _ACEOF |
---|
6047 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6048 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
6049 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
6050 | else |
---|
6051 | cat |
---|
6052 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
---|
6053 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
---|
6054 | _ACEOF |
---|
6055 | |
---|
6056 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
6057 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
6058 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
6059 | # (actually we leave an empty line to preserve line numbers). |
---|
6060 | if test "x$srcdir" = x.; then |
---|
6061 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
6062 | s/:*\$(srcdir):*/:/ |
---|
6063 | s/:*\${srcdir}:*/:/ |
---|
6064 | s/:*@srcdir@:*/:/ |
---|
6065 | s/^\([^=]*=[ ]*\):*/\1/ |
---|
6066 | s/:*$// |
---|
6067 | s/^[^=]*=[ ]*$// |
---|
6068 | }' |
---|
6069 | fi |
---|
6070 | |
---|
6071 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6072 | fi # test -n "$CONFIG_FILES" |
---|
6073 | |
---|
6074 | # Set up the scripts for CONFIG_HEADERS section. |
---|
6075 | # No need to generate them if there are no CONFIG_HEADERS. |
---|
6076 | # This happens for instance with `./config.status Makefile'. |
---|
6077 | if test -n "$CONFIG_HEADERS"; then |
---|
6078 | cat >"$tmp/defines.awk" <<\_ACAWK || |
---|
6079 | BEGIN { |
---|
6080 | _ACEOF |
---|
6081 | |
---|
6082 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
---|
6083 | # here-document in config.status, that substitutes the proper values into |
---|
6084 | # config.h.in to produce config.h. |
---|
6085 | |
---|
6086 | # Create a delimiter string that does not exist in confdefs.h, to ease |
---|
6087 | # handling of long lines. |
---|
6088 | ac_delim='%!_!# ' |
---|
6089 | for ac_last_try in false false :; do |
---|
6090 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
---|
6091 | if test -z "$ac_t"; then |
---|
6092 | break |
---|
6093 | elif $ac_last_try; then |
---|
6094 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
---|
6095 | else |
---|
6096 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
6097 | fi |
---|
6098 | done |
---|
6099 | |
---|
6100 | # For the awk script, D is an array of macro values keyed by name, |
---|
6101 | # likewise P contains macro parameters if any. Preserve backslash |
---|
6102 | # newline sequences. |
---|
6103 | |
---|
6104 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
6105 | sed -n ' |
---|
6106 | s/.\{148\}/&'"$ac_delim"'/g |
---|
6107 | t rset |
---|
6108 | :rset |
---|
6109 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
---|
6110 | t def |
---|
6111 | d |
---|
6112 | :def |
---|
6113 | s/\\$// |
---|
6114 | t bsnl |
---|
6115 | s/["\\]/\\&/g |
---|
6116 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
6117 | D["\1"]=" \3"/p |
---|
6118 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
---|
6119 | d |
---|
6120 | :bsnl |
---|
6121 | s/["\\]/\\&/g |
---|
6122 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
6123 | D["\1"]=" \3\\\\\\n"\\/p |
---|
6124 | t cont |
---|
6125 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
---|
6126 | t cont |
---|
6127 | d |
---|
6128 | :cont |
---|
6129 | n |
---|
6130 | s/.\{148\}/&'"$ac_delim"'/g |
---|
6131 | t clear |
---|
6132 | :clear |
---|
6133 | s/\\$// |
---|
6134 | t bsnlc |
---|
6135 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
---|
6136 | d |
---|
6137 | :bsnlc |
---|
6138 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
---|
6139 | b cont |
---|
6140 | ' <confdefs.h | sed ' |
---|
6141 | s/'"$ac_delim"'/"\\\ |
---|
6142 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
6143 | |
---|
6144 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6145 | for (key in D) D_is_set[key] = 1 |
---|
6146 | FS = "" |
---|
6147 | } |
---|
6148 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
---|
6149 | line = \$ 0 |
---|
6150 | split(line, arg, " ") |
---|
6151 | if (arg[1] == "#") { |
---|
6152 | defundef = arg[2] |
---|
6153 | mac1 = arg[3] |
---|
6154 | } else { |
---|
6155 | defundef = substr(arg[1], 2) |
---|
6156 | mac1 = arg[2] |
---|
6157 | } |
---|
6158 | split(mac1, mac2, "(") #) |
---|
6159 | macro = mac2[1] |
---|
6160 | prefix = substr(line, 1, index(line, defundef) - 1) |
---|
6161 | if (D_is_set[macro]) { |
---|
6162 | # Preserve the white space surrounding the "#". |
---|
6163 | print prefix "define", macro P[macro] D[macro] |
---|
6164 | next |
---|
6165 | } else { |
---|
6166 | # Replace #undef with comments. This is necessary, for example, |
---|
6167 | # in the case of _POSIX_SOURCE, which is predefined and required |
---|
6168 | # on some systems where configure will not decide to define it. |
---|
6169 | if (defundef == "undef") { |
---|
6170 | print "/*", prefix defundef, macro, "*/" |
---|
6171 | next |
---|
6172 | } |
---|
6173 | } |
---|
6174 | } |
---|
6175 | { print } |
---|
6176 | _ACAWK |
---|
6177 | _ACEOF |
---|
6178 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6179 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
---|
6180 | fi # test -n "$CONFIG_HEADERS" |
---|
6181 | |
---|
6182 | |
---|
6183 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
---|
6184 | shift |
---|
6185 | for ac_tag |
---|
6186 | do |
---|
6187 | case $ac_tag in |
---|
6188 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
6189 | esac |
---|
6190 | case $ac_mode$ac_tag in |
---|
6191 | :[FHL]*:*);; |
---|
6192 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
6193 | :[FH]-) ac_tag=-:-;; |
---|
6194 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
6195 | esac |
---|
6196 | ac_save_IFS=$IFS |
---|
6197 | IFS=: |
---|
6198 | set x $ac_tag |
---|
6199 | IFS=$ac_save_IFS |
---|
6200 | shift |
---|
6201 | ac_file=$1 |
---|
6202 | shift |
---|
6203 | |
---|
6204 | case $ac_mode in |
---|
6205 | :L) ac_source=$1;; |
---|
6206 | :[FH]) |
---|
6207 | ac_file_inputs= |
---|
6208 | for ac_f |
---|
6209 | do |
---|
6210 | case $ac_f in |
---|
6211 | -) ac_f="$tmp/stdin";; |
---|
6212 | *) # Look for the file first in the build tree, then in the source tree |
---|
6213 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
6214 | # because $ac_f cannot contain `:'. |
---|
6215 | test -f "$ac_f" || |
---|
6216 | case $ac_f in |
---|
6217 | [\\/$]*) false;; |
---|
6218 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
6219 | esac || |
---|
6220 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
6221 | esac |
---|
6222 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
6223 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
6224 | done |
---|
6225 | |
---|
6226 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
6227 | # use $as_me), people would be surprised to read: |
---|
6228 | # /* config.h. Generated by config.status. */ |
---|
6229 | configure_input='Generated from '` |
---|
6230 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
6231 | `' by configure.' |
---|
6232 | if test x"$ac_file" != x-; then |
---|
6233 | configure_input="$ac_file. $configure_input" |
---|
6234 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
6235 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
6236 | fi |
---|
6237 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
6238 | case $configure_input in #( |
---|
6239 | *\&* | *\|* | *\\* ) |
---|
6240 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
6241 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
6242 | *) ac_sed_conf_input=$configure_input;; |
---|
6243 | esac |
---|
6244 | |
---|
6245 | case $ac_tag in |
---|
6246 | *:-:* | *:-) cat >"$tmp/stdin" \ |
---|
6247 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
---|
6248 | esac |
---|
6249 | ;; |
---|
6250 | esac |
---|
6251 | |
---|
6252 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
6253 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6254 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
6255 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
6256 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
6257 | $as_echo X"$ac_file" | |
---|
6258 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6259 | s//\1/ |
---|
6260 | q |
---|
6261 | } |
---|
6262 | /^X\(\/\/\)[^/].*/{ |
---|
6263 | s//\1/ |
---|
6264 | q |
---|
6265 | } |
---|
6266 | /^X\(\/\/\)$/{ |
---|
6267 | s//\1/ |
---|
6268 | q |
---|
6269 | } |
---|
6270 | /^X\(\/\).*/{ |
---|
6271 | s//\1/ |
---|
6272 | q |
---|
6273 | } |
---|
6274 | s/.*/./; q'` |
---|
6275 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
6276 | ac_builddir=. |
---|
6277 | |
---|
6278 | case "$ac_dir" in |
---|
6279 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
6280 | *) |
---|
6281 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
6282 | # A ".." for each directory in $ac_dir_suffix. |
---|
6283 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
6284 | case $ac_top_builddir_sub in |
---|
6285 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
6286 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
6287 | esac ;; |
---|
6288 | esac |
---|
6289 | ac_abs_top_builddir=$ac_pwd |
---|
6290 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
6291 | # for backward compatibility: |
---|
6292 | ac_top_builddir=$ac_top_build_prefix |
---|
6293 | |
---|
6294 | case $srcdir in |
---|
6295 | .) # We are building in place. |
---|
6296 | ac_srcdir=. |
---|
6297 | ac_top_srcdir=$ac_top_builddir_sub |
---|
6298 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
6299 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
6300 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
6301 | ac_top_srcdir=$srcdir |
---|
6302 | ac_abs_top_srcdir=$srcdir ;; |
---|
6303 | *) # Relative name. |
---|
6304 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
6305 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
6306 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
6307 | esac |
---|
6308 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
6309 | |
---|
6310 | |
---|
6311 | case $ac_mode in |
---|
6312 | :F) |
---|
6313 | # |
---|
6314 | # CONFIG_FILE |
---|
6315 | # |
---|
6316 | |
---|
6317 | _ACEOF |
---|
6318 | |
---|
6319 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6320 | # If the template does not know about datarootdir, expand it. |
---|
6321 | # FIXME: This hack should be removed a few years after 2.60. |
---|
6322 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
6323 | ac_sed_dataroot=' |
---|
6324 | /datarootdir/ { |
---|
6325 | p |
---|
6326 | q |
---|
6327 | } |
---|
6328 | /@datadir@/p |
---|
6329 | /@docdir@/p |
---|
6330 | /@infodir@/p |
---|
6331 | /@localedir@/p |
---|
6332 | /@mandir@/p' |
---|
6333 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
6334 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
6335 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
6336 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
6337 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
6338 | _ACEOF |
---|
6339 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6340 | ac_datarootdir_hack=' |
---|
6341 | s&@datadir@&$datadir&g |
---|
6342 | s&@docdir@&$docdir&g |
---|
6343 | s&@infodir@&$infodir&g |
---|
6344 | s&@localedir@&$localedir&g |
---|
6345 | s&@mandir@&$mandir&g |
---|
6346 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
6347 | esac |
---|
6348 | _ACEOF |
---|
6349 | |
---|
6350 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
6351 | # Shell code in configure.ac might set extrasub. |
---|
6352 | # FIXME: do we really want to maintain this feature? |
---|
6353 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6354 | ac_sed_extra="$ac_vpsub |
---|
6355 | $extrasub |
---|
6356 | _ACEOF |
---|
6357 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6358 | :t |
---|
6359 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
6360 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
6361 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
6362 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
6363 | s&@srcdir@&$ac_srcdir&;t t |
---|
6364 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
6365 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
6366 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
6367 | s&@builddir@&$ac_builddir&;t t |
---|
6368 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
6369 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
6370 | $ac_datarootdir_hack |
---|
6371 | " |
---|
6372 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
---|
6373 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
---|
6374 | |
---|
6375 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
6376 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
---|
6377 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
---|
6378 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
6379 | which seems to be undefined. Please make sure it is defined." >&5 |
---|
6380 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
6381 | which seems to be undefined. Please make sure it is defined." >&2;} |
---|
6382 | |
---|
6383 | rm -f "$tmp/stdin" |
---|
6384 | case $ac_file in |
---|
6385 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
---|
6386 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
---|
6387 | esac \ |
---|
6388 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
---|
6389 | ;; |
---|
6390 | :H) |
---|
6391 | # |
---|
6392 | # CONFIG_HEADER |
---|
6393 | # |
---|
6394 | if test x"$ac_file" != x-; then |
---|
6395 | { |
---|
6396 | $as_echo "/* $configure_input */" \ |
---|
6397 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
---|
6398 | } >"$tmp/config.h" \ |
---|
6399 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
---|
6400 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
---|
6401 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
---|
6402 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
---|
6403 | else |
---|
6404 | rm -f "$ac_file" |
---|
6405 | mv "$tmp/config.h" "$ac_file" \ |
---|
6406 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
---|
6407 | fi |
---|
6408 | else |
---|
6409 | $as_echo "/* $configure_input */" \ |
---|
6410 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
---|
6411 | || as_fn_error "could not create -" "$LINENO" 5 |
---|
6412 | fi |
---|
6413 | ;; |
---|
6414 | |
---|
6415 | |
---|
6416 | esac |
---|
6417 | |
---|
6418 | done # for ac_tag |
---|
6419 | |
---|
6420 | |
---|
6421 | as_fn_exit 0 |
---|
6422 | _ACEOF |
---|
6423 | ac_clean_files=$ac_clean_files_save |
---|
6424 | |
---|
6425 | test $ac_write_fail = 0 || |
---|
6426 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
6427 | |
---|
6428 | |
---|
6429 | # configure is writing to config.log, and then calls config.status. |
---|
6430 | # config.status does its own redirection, appending to config.log. |
---|
6431 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
6432 | # by configure, so config.status won't be able to write to it; its |
---|
6433 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
6434 | # effectively closing config.log, so it can be properly (re)opened and |
---|
6435 | # appended to by config.status. When coming back to configure, we |
---|
6436 | # need to make the FD available again. |
---|
6437 | if test "$no_create" != yes; then |
---|
6438 | ac_cs_success=: |
---|
6439 | ac_config_status_args= |
---|
6440 | test "$silent" = yes && |
---|
6441 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
6442 | exec 5>/dev/null |
---|
6443 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
6444 | exec 5>>config.log |
---|
6445 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
6446 | # would make configure fail if this is the last instruction. |
---|
6447 | $ac_cs_success || as_fn_exit $? |
---|
6448 | fi |
---|
6449 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
6450 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
6451 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
6452 | fi |
---|
6453 | |
---|
6454 | |
---|
6455 | echo Please check the Makefile.conf |
---|
6456 | echo Have a nice day! |
---|
6457 | |
---|
6458 | # test -z is true for empty strings |
---|
6459 | # test -n is true for non-empty strings |
---|
6460 | |
---|
6461 | |
---|
6462 | |
---|
6463 | |
---|