ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/configure
Revision: 2190
Committed: Wed Apr 13 22:30:22 2005 UTC (19 years, 2 months ago) by gezelter
File size: 289873 byte(s)
Log Message:
added CGAL checks

File Contents

# Content
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for OOPSE 2.0.
4 #
5 # Report bugs to <gezelter@nd.edu>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
155 ;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='OOPSE'
271 PACKAGE_TARNAME='oopse'
272 PACKAGE_VERSION='2.0'
273 PACKAGE_STRING='OOPSE 2.0'
274 PACKAGE_BUGREPORT='gezelter@nd.edu'
275
276 ac_unique_file="src/applications/oopse/oopse.cpp"
277 ac_default_prefix="/usr/local"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC F90_MODULE_NAMES CPP EGREP LIBOBJS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR PS MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI CXXCPP USE_CGAL CGAL_INC_DIR CGAL_LIB_DIR CGAL_RLIB_DIR CGAL_DEFINES CGAL_CXXFLAGS CGAL_LIBS DOXYGEN DOT DOC enable_dot enable_html_docs enable_latex_docs BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LTLIBOBJS'
316 ac_subst_files=''
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
337
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
370 case $ac_option in
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
376
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
397
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
406
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
439
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
588
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
601
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
628
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
632 ;;
633
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
644 *)
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 ;;
651
652 esac
653 done
654
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
675 do
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
683
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728 else
729 ac_srcdir_defaulted=no
730 fi
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
738 fi
739 fi
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CXX_set=${CXX+set}
773 ac_env_CXX_value=$CXX
774 ac_cv_env_CXX_set=${CXX+set}
775 ac_cv_env_CXX_value=$CXX
776 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
777 ac_env_CXXFLAGS_value=$CXXFLAGS
778 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
779 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
780 ac_env_F90_set=${F90+set}
781 ac_env_F90_value=$F90
782 ac_cv_env_F90_set=${F90+set}
783 ac_cv_env_F90_value=$F90
784 ac_env_F90FLAGS_set=${F90FLAGS+set}
785 ac_env_F90FLAGS_value=$F90FLAGS
786 ac_cv_env_F90FLAGS_set=${F90FLAGS+set}
787 ac_cv_env_F90FLAGS_value=$F90FLAGS
788 ac_env_CPP_set=${CPP+set}
789 ac_env_CPP_value=$CPP
790 ac_cv_env_CPP_set=${CPP+set}
791 ac_cv_env_CPP_value=$CPP
792 ac_env_CXXCPP_set=${CXXCPP+set}
793 ac_env_CXXCPP_value=$CXXCPP
794 ac_cv_env_CXXCPP_set=${CXXCPP+set}
795 ac_cv_env_CXXCPP_value=$CXXCPP
796
797 #
798 # Report the --help message.
799 #
800 if test "$ac_init_help" = "long"; then
801 # Omit some internal or obsolete options to make the list less imposing.
802 # This message is too long to be a string in the A/UX 3.1 sh.
803 cat <<_ACEOF
804 \`configure' configures OOPSE 2.0 to adapt to many kinds of systems.
805
806 Usage: $0 [OPTION]... [VAR=VALUE]...
807
808 To assign environment variables (e.g., CC, CFLAGS...), specify them as
809 VAR=VALUE. See below for descriptions of some of the useful variables.
810
811 Defaults for the options are specified in brackets.
812
813 Configuration:
814 -h, --help display this help and exit
815 --help=short display options specific to this package
816 --help=recursive display the short help of all the included packages
817 -V, --version display version information and exit
818 -q, --quiet, --silent do not print \`checking...' messages
819 --cache-file=FILE cache test results in FILE [disabled]
820 -C, --config-cache alias for \`--cache-file=config.cache'
821 -n, --no-create do not create output files
822 --srcdir=DIR find the sources in DIR [configure dir or \`..']
823
824 _ACEOF
825
826 cat <<_ACEOF
827 Installation directories:
828 --prefix=PREFIX install architecture-independent files in PREFIX
829 [$ac_default_prefix]
830 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
831 [PREFIX]
832
833 By default, \`make install' will install all the files in
834 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
835 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
836 for instance \`--prefix=\$HOME'.
837
838 For better control, use the options below.
839
840 Fine tuning of the installation directories:
841 --bindir=DIR user executables [EPREFIX/bin]
842 --sbindir=DIR system admin executables [EPREFIX/sbin]
843 --libexecdir=DIR program executables [EPREFIX/libexec]
844 --datadir=DIR read-only architecture-independent data [PREFIX/share]
845 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
846 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
847 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
848 --libdir=DIR object code libraries [EPREFIX/lib]
849 --includedir=DIR C header files [PREFIX/include]
850 --oldincludedir=DIR C header files for non-gcc [/usr/include]
851 --infodir=DIR info documentation [PREFIX/info]
852 --mandir=DIR man documentation [PREFIX/man]
853 _ACEOF
854
855 cat <<\_ACEOF
856
857 System types:
858 --build=BUILD configure for building on BUILD [guessed]
859 --host=HOST cross-compile to build programs to run on HOST [BUILD]
860 _ACEOF
861 fi
862
863 if test -n "$ac_init_help"; then
864 case $ac_init_help in
865 short | recursive ) echo "Configuration of OOPSE 2.0:";;
866 esac
867 cat <<\_ACEOF
868
869 Optional Features:
870 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
871 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
872 --enable-debug Compile OOPSE in debug mode
873 --enable-doxygen enable documentation generation with doxygen (auto)
874 --enable-dot use 'dot' to generate graphs in doxygen (auto)
875 --enable-html-docs enable HTML generation with doxygen (yes)
876 --enable-latex-docs enable LaTeX documentation generation with doxygen (no)
877 --enable-oopse-home=DIR define oopse home dir PREFIX/oopse
878
879 Optional Packages:
880 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
881 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
882 --with-mpi=<prefix> compile with MPI installed in <prefix> [default=no]
883 --with-cgal-makefile=FILE CGAL makefile that should be used
884
885 Some influential environment variables:
886 CC C compiler command
887 CFLAGS C compiler flags
888 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
889 nonstandard directory <lib dir>
890 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
891 headers in a nonstandard directory <include dir>
892 CXX C++ compiler command
893 CXXFLAGS C++ compiler flags
894 F90 Fortran 90 compiler command
895 F90FLAGS Fortran 90 compiler flags
896 CPP C preprocessor
897 CXXCPP C++ preprocessor
898
899 Use these variables to override the choices made by `configure' or to help
900 it to find libraries and programs with nonstandard names/locations.
901
902 Report bugs to <gezelter@nd.edu>.
903 _ACEOF
904 fi
905
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
908 ac_popdir=`pwd`
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
911 ac_builddir=.
912
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917 else
918 ac_dir_suffix= ac_top_builddir=
919 fi
920
921 case $srcdir in
922 .) # No --srcdir option. We are building in place.
923 ac_srcdir=.
924 if test -z "$ac_top_builddir"; then
925 ac_top_srcdir=.
926 else
927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928 fi ;;
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
932 *) # Relative path.
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 esac
936
937 # Do not use `cd foo && pwd` to compute absolute paths, because
938 # the directories may not exist.
939 case `pwd` in
940 .) ac_abs_builddir="$ac_dir";;
941 *)
942 case "$ac_dir" in
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *)
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
959 *)
960 case $ac_srcdir in
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
964 esac;;
965 esac
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *)
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 esac;;
974 esac
975
976 cd $ac_dir
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
979 echo
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
982 echo
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
986 echo
987 $ac_configure --help
988 else
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
990 fi
991 cd $ac_popdir
992 done
993 fi
994
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
997 cat <<\_ACEOF
998 OOPSE configure 2.0
999 generated by GNU Autoconf 2.59
1000
1001 Copyright (C) 2003 Free Software Foundation, Inc.
1002 This configure script is free software; the Free Software Foundation
1003 gives unlimited permission to copy, distribute and modify it.
1004 _ACEOF
1005 exit 0
1006 fi
1007 exec 5>config.log
1008 cat >&5 <<_ACEOF
1009 This file contains any messages produced by compilers while
1010 running configure, to aid debugging if configure makes a mistake.
1011
1012 It was created by OOPSE $as_me 2.0, which was
1013 generated by GNU Autoconf 2.59. Invocation command line was
1014
1015 $ $0 $@
1016
1017 _ACEOF
1018 {
1019 cat <<_ASUNAME
1020 ## --------- ##
1021 ## Platform. ##
1022 ## --------- ##
1023
1024 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1025 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1026 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1027 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1028 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1029
1030 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1031 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1032
1033 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1034 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1035 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1036 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1037 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1038 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1039 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1040
1041 _ASUNAME
1042
1043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1044 for as_dir in $PATH
1045 do
1046 IFS=$as_save_IFS
1047 test -z "$as_dir" && as_dir=.
1048 echo "PATH: $as_dir"
1049 done
1050
1051 } >&5
1052
1053 cat >&5 <<_ACEOF
1054
1055
1056 ## ----------- ##
1057 ## Core tests. ##
1058 ## ----------- ##
1059
1060 _ACEOF
1061
1062
1063 # Keep a trace of the command line.
1064 # Strip out --no-create and --no-recursion so they do not pile up.
1065 # Strip out --silent because we don't want to record it for future runs.
1066 # Also quote any args containing shell meta-characters.
1067 # Make two passes to allow for proper duplicate-argument suppression.
1068 ac_configure_args=
1069 ac_configure_args0=
1070 ac_configure_args1=
1071 ac_sep=
1072 ac_must_keep_next=false
1073 for ac_pass in 1 2
1074 do
1075 for ac_arg
1076 do
1077 case $ac_arg in
1078 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1081 continue ;;
1082 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1083 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1084 esac
1085 case $ac_pass in
1086 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1087 2)
1088 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1089 if test $ac_must_keep_next = true; then
1090 ac_must_keep_next=false # Got value, back to normal.
1091 else
1092 case $ac_arg in
1093 *=* | --config-cache | -C | -disable-* | --disable-* \
1094 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1095 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1096 | -with-* | --with-* | -without-* | --without-* | --x)
1097 case "$ac_configure_args0 " in
1098 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1099 esac
1100 ;;
1101 -* ) ac_must_keep_next=true ;;
1102 esac
1103 fi
1104 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1105 # Get rid of the leading space.
1106 ac_sep=" "
1107 ;;
1108 esac
1109 done
1110 done
1111 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1112 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1113
1114 # When interrupted or exit'd, cleanup temporary files, and complete
1115 # config.log. We remove comments because anyway the quotes in there
1116 # would cause problems or look ugly.
1117 # WARNING: Be sure not to use single quotes in there, as some shells,
1118 # such as our DU 5.0 friend, will then `close' the trap.
1119 trap 'exit_status=$?
1120 # Save into config.log some information that might help in debugging.
1121 {
1122 echo
1123
1124 cat <<\_ASBOX
1125 ## ---------------- ##
1126 ## Cache variables. ##
1127 ## ---------------- ##
1128 _ASBOX
1129 echo
1130 # The following way of writing the cache mishandles newlines in values,
1131 {
1132 (set) 2>&1 |
1133 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1134 *ac_space=\ *)
1135 sed -n \
1136 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1138 ;;
1139 *)
1140 sed -n \
1141 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1142 ;;
1143 esac;
1144 }
1145 echo
1146
1147 cat <<\_ASBOX
1148 ## ----------------- ##
1149 ## Output variables. ##
1150 ## ----------------- ##
1151 _ASBOX
1152 echo
1153 for ac_var in $ac_subst_vars
1154 do
1155 eval ac_val=$`echo $ac_var`
1156 echo "$ac_var='"'"'$ac_val'"'"'"
1157 done | sort
1158 echo
1159
1160 if test -n "$ac_subst_files"; then
1161 cat <<\_ASBOX
1162 ## ------------- ##
1163 ## Output files. ##
1164 ## ------------- ##
1165 _ASBOX
1166 echo
1167 for ac_var in $ac_subst_files
1168 do
1169 eval ac_val=$`echo $ac_var`
1170 echo "$ac_var='"'"'$ac_val'"'"'"
1171 done | sort
1172 echo
1173 fi
1174
1175 if test -s confdefs.h; then
1176 cat <<\_ASBOX
1177 ## ----------- ##
1178 ## confdefs.h. ##
1179 ## ----------- ##
1180 _ASBOX
1181 echo
1182 sed "/^$/d" confdefs.h | sort
1183 echo
1184 fi
1185 test "$ac_signal" != 0 &&
1186 echo "$as_me: caught signal $ac_signal"
1187 echo "$as_me: exit $exit_status"
1188 } >&5
1189 rm -f core *.core &&
1190 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1191 exit $exit_status
1192 ' 0
1193 for ac_signal in 1 2 13 15; do
1194 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1195 done
1196 ac_signal=0
1197
1198 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1199 rm -rf conftest* confdefs.h
1200 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1201 echo >confdefs.h
1202
1203 # Predefined preprocessor variables.
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_NAME "$PACKAGE_NAME"
1207 _ACEOF
1208
1209
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1212 _ACEOF
1213
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1217 _ACEOF
1218
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_STRING "$PACKAGE_STRING"
1222 _ACEOF
1223
1224
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1227 _ACEOF
1228
1229
1230 # Let the site file select an alternate cache file if it wants to.
1231 # Prefer explicitly selected file to automatically selected ones.
1232 if test -z "$CONFIG_SITE"; then
1233 if test "x$prefix" != xNONE; then
1234 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1235 else
1236 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1237 fi
1238 fi
1239 for ac_site_file in $CONFIG_SITE; do
1240 if test -r "$ac_site_file"; then
1241 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1242 echo "$as_me: loading site script $ac_site_file" >&6;}
1243 sed 's/^/| /' "$ac_site_file" >&5
1244 . "$ac_site_file"
1245 fi
1246 done
1247
1248 if test -r "$cache_file"; then
1249 # Some versions of bash will fail to source /dev/null (special
1250 # files actually), so we avoid doing that.
1251 if test -f "$cache_file"; then
1252 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1253 echo "$as_me: loading cache $cache_file" >&6;}
1254 case $cache_file in
1255 [\\/]* | ?:[\\/]* ) . $cache_file;;
1256 *) . ./$cache_file;;
1257 esac
1258 fi
1259 else
1260 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1261 echo "$as_me: creating cache $cache_file" >&6;}
1262 >$cache_file
1263 fi
1264
1265 # Check that the precious variables saved in the cache have kept the same
1266 # value.
1267 ac_cache_corrupted=false
1268 for ac_var in `(set) 2>&1 |
1269 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1270 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1271 eval ac_new_set=\$ac_env_${ac_var}_set
1272 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1273 eval ac_new_val="\$ac_env_${ac_var}_value"
1274 case $ac_old_set,$ac_new_set in
1275 set,)
1276 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1279 ,set)
1280 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1281 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1282 ac_cache_corrupted=: ;;
1283 ,);;
1284 *)
1285 if test "x$ac_old_val" != "x$ac_new_val"; then
1286 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1287 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1288 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1289 echo "$as_me: former value: $ac_old_val" >&2;}
1290 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1291 echo "$as_me: current value: $ac_new_val" >&2;}
1292 ac_cache_corrupted=:
1293 fi;;
1294 esac
1295 # Pass precious variables to config.status.
1296 if test "$ac_new_set" = set; then
1297 case $ac_new_val in
1298 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1299 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1300 *) ac_arg=$ac_var=$ac_new_val ;;
1301 esac
1302 case " $ac_configure_args " in
1303 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1304 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1305 esac
1306 fi
1307 done
1308 if $ac_cache_corrupted; then
1309 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1310 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1311 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1312 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1313 { (exit 1); exit 1; }; }
1314 fi
1315
1316 ac_ext=c
1317 ac_cpp='$CPP $CPPFLAGS'
1318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348 ac_aux_dir=
1349 for ac_dir in ac-tools $srcdir/ac-tools; do
1350 if test -f $ac_dir/install-sh; then
1351 ac_aux_dir=$ac_dir
1352 ac_install_sh="$ac_aux_dir/install-sh -c"
1353 break
1354 elif test -f $ac_dir/install.sh; then
1355 ac_aux_dir=$ac_dir
1356 ac_install_sh="$ac_aux_dir/install.sh -c"
1357 break
1358 elif test -f $ac_dir/shtool; then
1359 ac_aux_dir=$ac_dir
1360 ac_install_sh="$ac_aux_dir/shtool install -c"
1361 break
1362 fi
1363 done
1364 if test -z "$ac_aux_dir"; then
1365 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1366 echo "$as_me: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&2;}
1367 { (exit 1); exit 1; }; }
1368 fi
1369 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1370 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1371 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1372
1373
1374 # This file is part of Autoconf. -*- Autoconf -*-
1375 # Programming languages support.
1376 # Copyright 2000, 2001
1377 # Free Software Foundation, Inc.
1378 #
1379 # This program is free software; you can redistribute it and/or modify
1380 # it under the terms of the GNU General Public License as published by
1381 # the Free Software Foundation; either version 2, or (at your option)
1382 # any later version.
1383 #
1384 # This program is distributed in the hope that it will be useful,
1385 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1386 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1387 # GNU General Public License for more details.
1388 #
1389 # You should have received a copy of the GNU General Public License
1390 # along with this program; if not, write to the Free Software
1391 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1392 # 02111-1307, USA.
1393 #
1394 # As a special exception, the Free Software Foundation gives unlimited
1395 # permission to copy, distribute and modify the configure scripts that
1396 # are the output of Autoconf. You need not follow the terms of the GNU
1397 # General Public License when using or distributing such scripts, even
1398 # though portions of the text of Autoconf appear in them. The GNU
1399 # General Public License (GPL) does govern all other use of the material
1400 # that constitutes the Autoconf program.
1401 #
1402 # Certain portions of the Autoconf source text are designed to be copied
1403 # (in certain cases, depending on the input) into the output of
1404 # Autoconf. We call these the "data" portions. The rest of the Autoconf
1405 # source text consists of comments plus executable code that decides which
1406 # of the data portions to output in any given case. We call these
1407 # comments and executable code the "non-data" portions. Autoconf never
1408 # copies any of the non-data portions into its output.
1409 #
1410 # This special exception to the GPL applies to versions of Autoconf
1411 # released by the Free Software Foundation. When you make and
1412 # distribute a modified version of Autoconf, you may extend this special
1413 # exception to the GPL to apply to your modified version as well, *unless*
1414 # your modified version has the potential to copy into its output some
1415 # of the text that was the non-data portion of the version that you started
1416 # with. (In other words, unless your change moves or copies text from
1417 # the non-data portions to the data portions.) If your modification has
1418 # such potential, you must delete any notice of this special exception
1419 # to the GPL from your modified version.
1420 #
1421 # Written by Akim Demaille, Christian Marquardt, Martin Wilks (and probably
1422 # many others).
1423
1424
1425 # Table of Contents:
1426 #
1427 # 1. Language selection
1428 # and routines to produce programs in a given language.
1429 # a. Fortran 77 (to be moved from aclang.m4)
1430 # b. Fortran 90
1431 # c. Fortran 95
1432 #
1433 # 2. Producing programs in a given language.
1434 # a. Fortran 77 (to be moved from aclang.m4)
1435 # b. Fortran 90
1436 # c. Fortran 95
1437 #
1438 # 3. Looking for a compiler
1439 # And possibly the associated preprocessor.
1440 # a. Fortran 77 (to be moved from aclang.m4)
1441 # b. Fortran 90
1442 # c. Fortran 95
1443 #
1444 # 4. Compilers' characteristics.
1445 # a. Fortran 77 (to be moved from aclang.m4)
1446 # b. Fortran 90
1447 # c. Fortran 95
1448
1449 # _AC_LIST_MEMBER_IF(ELEMENT, LIST, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1450 # ---------------------------------------------------------------------------
1451 #
1452 # Processing the elements of a list is tedious in shell programming,
1453 # as lists tend to be implemented as space delimited strings.
1454 #
1455 # This macro searches LIST for ELEMENT, and executes ACTION-IF-FOUND
1456 # if ELEMENT is a member of LIST, otherwise it executes
1457 # ACTION-IF-NOT-FOUND.
1458 # _AC_LIST_MEMBER_IF
1459
1460
1461
1462 # _AC_LINKER_OPTION(LINKER-OPTIONS, SHELL-VARIABLE)
1463 # -------------------------------------------------
1464 #
1465 # Specifying options to the compiler (whether it be the C, C++ or
1466 # Fortran 77 compiler) that are meant for the linker is compiler
1467 # dependent. This macro lets you give options to the compiler that
1468 # are meant for the linker in a portable, compiler-independent way.
1469 #
1470 # This macro take two arguments, a list of linker options that the
1471 # compiler should pass to the linker (LINKER-OPTIONS) and the name of
1472 # a shell variable (SHELL-VARIABLE). The list of linker options are
1473 # appended to the shell variable in a compiler-dependent way.
1474 #
1475 # For example, if the selected language is C, then this:
1476 #
1477 # _AC_LINKER_OPTION([-R /usr/local/lib/foo], foo_LDFLAGS)
1478 #
1479 # will expand into this if the selected C compiler is gcc:
1480 #
1481 # foo_LDFLAGS="-Xlinker -R -Xlinker /usr/local/lib/foo"
1482 #
1483 # otherwise, it will expand into this:
1484 #
1485 # foo_LDFLAGS"-R /usr/local/lib/foo"
1486 #
1487 # You are encouraged to add support for compilers that this macro
1488 # doesn't currently support.
1489 # FIXME: Get rid of this macro.
1490 # _AC_LINKER_OPTION
1491
1492
1493
1494 ## ----------------------- ##
1495 ## 1. Language selection. ##
1496 ## ----------------------- ##
1497
1498 # ----------------------------- #
1499 # 1b. The Fortran 90 language. #
1500 # ----------------------------- #
1501
1502 # AC_LANG(Fortran 90)
1503 # -------------------
1504
1505
1506
1507 # _AC_LANG_ABBREV(Fortran 90)
1508 # ---------------------------
1509
1510
1511
1512 # ----------------------------- #
1513 # 1c. The Fortran 95 language. #
1514 # ----------------------------- #
1515
1516 # AC_LANG(Fortran 95)
1517 # -------------------
1518
1519
1520
1521 # _AC_LANG_ABBREV(Fortran 95)
1522 # ---------------------------
1523
1524
1525
1526 ## ---------------------- ##
1527 ## 2.Producing programs. ##
1528 ## ---------------------- ##
1529
1530 # ------------------------ #
1531 # 2b. Fortran 90 sources. #
1532 # ------------------------ #
1533
1534 # AC_LANG_SOURCE(Fortran 90)(BODY)
1535 # --------------------------------
1536
1537
1538
1539 # AC_LANG_PROGRAM(Fortran 90)([PROLOGUE], [BODY])
1540 # -----------------------------------------------
1541
1542
1543 # AC_LANG_CALL(Fortran 90)(PROLOGUE, FUNCTION)
1544 # --------------------------------------------
1545
1546
1547
1548 # ------------------------ #
1549 # 2c. Fortran 95 sources. #
1550 # ------------------------ #
1551
1552 # AC_LANG_SOURCE(Fortran 95)(BODY)
1553 # --------------------------------
1554
1555
1556 # AC_LANG_PROGRAM(Fortran 95)([PROLOGUE], [BODY])
1557 # -----------------------------------------------
1558
1559
1560 # AC_LANG_CALL(Fortran 95)(PROLOGUE, FUNCTION)
1561 # --------------------------------------------
1562
1563
1564
1565 ## -------------------------------------------- ##
1566 ## 3. Looking for Compilers and Preprocessors. ##
1567 ## -------------------------------------------- ##
1568
1569 # ----------------------------- #
1570 # 3b. The Fortran 90 compiler. #
1571 # ----------------------------- #
1572
1573
1574 # AC_LANG_PREPROC(Fortran 90)
1575 # ---------------------------
1576 # Find the Fortran 90 preprocessor. Must be AC_DEFUN'd to be AC_REQUIRE'able.
1577
1578
1579
1580 # AC_LANG_COMPILER(Fortran 90)
1581 # ----------------------------
1582 # Find the Fortran 90 compiler. Must be AC_DEFUN'd to be
1583 # AC_REQUIRE'able.
1584
1585
1586
1587 # AC_PROG_F90([COMPILERS...])
1588 # ---------------------------
1589 # COMPILERS is a space separated list of Fortran 90 compilers to search
1590 # for.
1591 #
1592 # Compilers are ordered by
1593 # 1. F90, F95
1594 # 2. Good/tested native compilers, bad/untested native compilers
1595 #
1596 # pgf90 is the Portland Group F90 compilers.
1597 # xlf90/xlf95 are IBM (AIX) F90/F95 compilers.
1598 # lf95 is the Lahey-Fujitsu compiler.
1599 # epcf90 is the "Edinburgh Portable Compiler" F90.
1600 # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1601 # AC_PROG_F90
1602
1603
1604 # ----------------------------- #
1605 # 3c. The Fortran 95 compiler. #
1606 # ----------------------------- #
1607
1608
1609 # AC_LANG_PREPROC(Fortran 95)
1610 # ---------------------------
1611 # Find the Fortran 95 preprocessor. Must be AC_DEFUN'd to be AC_REQUIRE'able.
1612
1613
1614
1615 # AC_LANG_COMPILER(Fortran 95)
1616 # ----------------------------
1617 # Find the Fortran 95 compiler. Must be AC_DEFUN'd to be
1618 # AC_REQUIRE'able.
1619
1620
1621
1622 # AC_PROG_F95([COMPILERS...])
1623 # ---------------------------
1624 # COMPILERS is a space separated list of Fortran 95 compilers to search
1625 # for.
1626 #
1627 # Compilers are ordered by
1628 # 1. Good/tested native compilers, bad/untested native compilers
1629 #
1630 # xlf95 is the IBM (AIX) F95 compiler.
1631 # lf95 is the Lahey-Fujitsu compiler.
1632 # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1633 # AC_PROG_F95
1634
1635
1636 ## ------------------------------- ##
1637 ## 4. Compilers' characteristics. ##
1638 ## ------------------------------- ##
1639
1640
1641 # ---------------------------------------- #
1642 # 4b. Fortan 90 compiler characteristics. #
1643 # ---------------------------------------- #
1644
1645
1646 # _AC_PROG_F90_V_OUTPUT([FLAG = $ac_cv_prog_f90_v])
1647 # -------------------------------------------------
1648 # Link a trivial Fortran program, compiling with a verbose output FLAG
1649 # (which default value, $ac_cv_prog_f90_v, is computed by
1650 # _AC_PROG_F90_V), and return the output in $ac_f90_v_output. This
1651 # output is processed in the way expected by AC_F90_LIBRARY_LDFLAGS,
1652 # so that any link flags that are echoed by the compiler appear as
1653 # space-separated items.
1654 # _AC_PROG_F90_V_OUTPUT
1655
1656
1657 # _AC_PROG_F90_V
1658 # --------------
1659 #
1660 # Determine the flag that causes the Fortran 90 compiler to print
1661 # information of library and object files (normally -v)
1662 # Needed for AC_F90_LIBRARY_FLAGS
1663 # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1664 # _AC_PROG_F90_V
1665
1666
1667 # AC_F90_LIBRARY_LDFLAGS
1668 # ----------------------
1669 #
1670 # Determine the linker flags (e.g. "-L" and "-l") for the Fortran 90
1671 # intrinsic and run-time libraries that are required to successfully
1672 # link a Fortran 90 program or shared library. The output variable
1673 # F90LIBS is set to these flags.
1674 #
1675 # This macro is intended to be used in those situations when it is
1676 # necessary to mix, e.g. C++ and Fortran 90, source code into a single
1677 # program or shared library.
1678 #
1679 # For example, if object files from a C++ and Fortran 90 compiler must
1680 # be linked together, then the C++ compiler/linker must be used for
1681 # linking (since special C++-ish things need to happen at link time
1682 # like calling global constructors, instantiating templates, enabling
1683 # exception support, etc.).
1684 #
1685 # However, the Fortran 90 intrinsic and run-time libraries must be
1686 # linked in as well, but the C++ compiler/linker doesn't know how to
1687 # add these Fortran 90 libraries. Hence, the macro
1688 # "AC_F90_LIBRARY_LDFLAGS" was created to determine these Fortran 90
1689 # libraries.
1690 #
1691 # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1692 # AC_F90_LIBRARY_LDFLAGS
1693
1694
1695 # _AC_F90_NAME_MANGLING
1696 # ---------------------
1697 # Test for the name mangling scheme used by the Fortran 90 compiler.
1698 #
1699 # Sets ac_cv_f90_mangling. The value contains three fields, separated
1700 # by commas:
1701 #
1702 # lower case / upper case:
1703 # case translation of the Fortan 90 symbols
1704 # underscore / no underscore:
1705 # whether the compiler appends "_" to symbol names
1706 # extra underscore / no extra underscore:
1707 # whether the compiler appends an extra "_" to symbol names already
1708 # containing at least one underscore
1709 #
1710 # _AC_F90_NAME_MANGLING
1711
1712 # The replacement is empty.
1713
1714
1715
1716 # AC_F90_WRAPPERS
1717 # ---------------
1718 # Defines C macros F90_FUNC(name,NAME) and F90_FUNC_(name,NAME) to
1719 # properly mangle the names of C identifiers, and C identifiers with
1720 # underscores, respectively, so that they match the name mangling
1721 # scheme used by the Fortran 90 compiler.
1722 # AC_F90_WRAPPERS
1723
1724
1725 # AC_F90_FUNC(NAME, [SHELLVAR = NAME])
1726 # ------------------------------------
1727 # For a Fortran subroutine of given NAME, define a shell variable
1728 # $SHELLVAR to the Fortran 90 mangled name. If the SHELLVAR
1729 # argument is not supplied, it defaults to NAME.
1730 # AC_F90_FUNC
1731
1732
1733 # ---------------------------------------- #
1734 # 4c. Fortan 95 compiler characteristics. #
1735 # ---------------------------------------- #
1736
1737
1738 # _AC_PROG_F95_V_OUTPUT([FLAG = $ac_cv_prog_f95_v])
1739 # -------------------------------------------------
1740 # Link a trivial Fortran program, compiling with a verbose output FLAG
1741 # (which default value, $ac_cv_prog_f95_v, is computed by
1742 # _AC_PROG_F95_V), and return the output in $ac_f95_v_output. This
1743 # output is processed in the way expected by AC_F95_LIBRARY_LDFLAGS,
1744 # so that any link flags that are echoed by the compiler appear as
1745 # space-separated items.
1746 # _AC_PROG_F95_V_OUTPUT
1747
1748
1749 # _AC_PROG_F95_V
1750 # --------------
1751 #
1752 # Determine the flag that causes the Fortran 95 compiler to print
1753 # information of library and object files (normally -v)
1754 # Needed for AC_F95_LIBRARY_FLAGS
1755 # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1756 # _AC_PROG_F95_V
1757
1758
1759 # AC_F95_LIBRARY_LDFLAGS
1760 # ----------------------
1761 #
1762 # Determine the linker flags (e.g. "-L" and "-l") for the Fortran 95
1763 # intrinsic and run-time libraries that are required to successfully
1764 # link a Fortran 95 program or shared library. The output variable
1765 # F95LIBS is set to these flags.
1766 #
1767 # This macro is intended to be used in those situations when it is
1768 # necessary to mix, e.g. C++ and Fortran 95, source code into a single
1769 # program or shared library.
1770 #
1771 # For example, if object files from a C++ and Fortran 95 compiler must
1772 # be linked together, then the C++ compiler/linker must be used for
1773 # linking (since special C++-ish things need to happen at link time
1774 # like calling global constructors, instantiating templates, enabling
1775 # exception support, etc.).
1776 #
1777 # However, the Fortran 95 intrinsic and run-time libraries must be
1778 # linked in as well, but the C++ compiler/linker doesn't know how to
1779 # add these Fortran 95 libraries. Hence, the macro
1780 # "AC_F95_LIBRARY_LDFLAGS" was created to determine these Fortran 95
1781 # libraries.
1782 #
1783 # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1784 # AC_F95_LIBRARY_LDFLAGS
1785
1786
1787 # _AC_F95_NAME_MANGLING
1788 # ---------------------
1789 # Test for the name mangling scheme used by the Fortran 95 compiler.
1790 #
1791 # Sets ac_cv_f95_mangling. The value contains three fields, separated
1792 # by commas:
1793 #
1794 # lower case / upper case:
1795 # case translation of the Fortan 95 symbols
1796 # underscore / no underscore:
1797 # whether the compiler appends "_" to symbol names
1798 # extra underscore / no extra underscore:
1799 # whether the compiler appends an extra "_" to symbol names already
1800 # containing at least one underscore
1801 #
1802 # _AC_F95_NAME_MANGLING
1803
1804 # The replacement is empty.
1805
1806
1807
1808 # AC_F95_WRAPPERS
1809 # ---------------
1810 # Defines C macros F95_FUNC(name,NAME) and F95_FUNC_(name,NAME) to
1811 # properly mangle the names of C identifiers, and C identifiers with
1812 # underscores, respectively, so that they match the name mangling
1813 # scheme used by the Fortran 95 compiler.
1814 # AC_F95_WRAPPERS
1815
1816
1817 # AC_F95_FUNC(NAME, [SHELLVAR = NAME])
1818 # ------------------------------------
1819 # For a Fortran subroutine of given NAME, define a shell variable
1820 # $SHELLVAR to the Fortran 95 mangled name. If the SHELLVAR
1821 # argument is not supplied, it defaults to NAME.
1822 # AC_F95_FUNC
1823
1824 # AC_F90_MODULE_NAMES
1825 # -------------------
1826 #
1827 # Figure out how the Fortran 90 compiler constructs module file names
1828 #
1829 # AC_F90_MODULE_NAMES
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890 # set program name
1891 PROGNAME="oopse"
1892
1893
1894 # there are two ways to do debugging. One with the --enable-debug flag
1895 # and one using the DEBUG environment variable
1896
1897 debug=0
1898 # Check whether --enable-debug or --disable-debug was given.
1899 if test "${enable_debug+set}" = set; then
1900 enableval="$enable_debug"
1901 debug=1
1902 fi;
1903 if test "${DEBUG}"; then
1904
1905 cat >>confdefs.h <<\_ACEOF
1906 #define debug 1
1907 _ACEOF
1908
1909 msg="$msg, debug mode"
1910 fi
1911
1912
1913 # who am i
1914 # Make sure we can run config.sub.
1915 $ac_config_sub sun4 >/dev/null 2>&1 ||
1916 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1917 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1918 { (exit 1); exit 1; }; }
1919
1920 echo "$as_me:$LINENO: checking build system type" >&5
1921 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1922 if test "${ac_cv_build+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925 ac_cv_build_alias=$build_alias
1926 test -z "$ac_cv_build_alias" &&
1927 ac_cv_build_alias=`$ac_config_guess`
1928 test -z "$ac_cv_build_alias" &&
1929 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1930 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1931 { (exit 1); exit 1; }; }
1932 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1933 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1934 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1935 { (exit 1); exit 1; }; }
1936
1937 fi
1938 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1939 echo "${ECHO_T}$ac_cv_build" >&6
1940 build=$ac_cv_build
1941 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1942 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1943 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1944
1945
1946 echo "$as_me:$LINENO: checking host system type" >&5
1947 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1948 if test "${ac_cv_host+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951 ac_cv_host_alias=$host_alias
1952 test -z "$ac_cv_host_alias" &&
1953 ac_cv_host_alias=$ac_cv_build_alias
1954 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1955 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1956 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1957 { (exit 1); exit 1; }; }
1958
1959 fi
1960 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1961 echo "${ECHO_T}$ac_cv_host" >&6
1962 host=$ac_cv_host
1963 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1964 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1965 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1966
1967
1968
1969
1970
1971 ac_ext=c
1972 ac_cpp='$CPP $CPPFLAGS'
1973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1976 if test -n "$ac_tool_prefix"; then
1977 for ac_prog in icc xlc gcc cc
1978 do
1979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1981 echo "$as_me:$LINENO: checking for $ac_word" >&5
1982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983 if test "${ac_cv_prog_CC+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 else
1986 if test -n "$CC"; then
1987 ac_cv_prog_CC="$CC" # Let the user override the test.
1988 else
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 for as_dir in $PATH
1991 do
1992 IFS=$as_save_IFS
1993 test -z "$as_dir" && as_dir=.
1994 for ac_exec_ext in '' $ac_executable_extensions; do
1995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 break 2
1999 fi
2000 done
2001 done
2002
2003 fi
2004 fi
2005 CC=$ac_cv_prog_CC
2006 if test -n "$CC"; then
2007 echo "$as_me:$LINENO: result: $CC" >&5
2008 echo "${ECHO_T}$CC" >&6
2009 else
2010 echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6
2012 fi
2013
2014 test -n "$CC" && break
2015 done
2016 fi
2017 if test -z "$CC"; then
2018 ac_ct_CC=$CC
2019 for ac_prog in icc xlc gcc cc
2020 do
2021 # Extract the first word of "$ac_prog", so it can be a program name with args.
2022 set dummy $ac_prog; ac_word=$2
2023 echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2025 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 if test -n "$ac_ct_CC"; then
2029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2030 else
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2033 do
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
2036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2038 ac_cv_prog_ac_ct_CC="$ac_prog"
2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 break 2
2041 fi
2042 done
2043 done
2044
2045 fi
2046 fi
2047 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2048 if test -n "$ac_ct_CC"; then
2049 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2050 echo "${ECHO_T}$ac_ct_CC" >&6
2051 else
2052 echo "$as_me:$LINENO: result: no" >&5
2053 echo "${ECHO_T}no" >&6
2054 fi
2055
2056 test -n "$ac_ct_CC" && break
2057 done
2058
2059 CC=$ac_ct_CC
2060 fi
2061
2062
2063 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2064 See \`config.log' for more details." >&5
2065 echo "$as_me: error: no acceptable C compiler found in \$PATH
2066 See \`config.log' for more details." >&2;}
2067 { (exit 1); exit 1; }; }
2068
2069 # Provide some information about the compiler.
2070 echo "$as_me:$LINENO:" \
2071 "checking for C compiler version" >&5
2072 ac_compiler=`set X $ac_compile; echo $2`
2073 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2074 (eval $ac_compiler --version </dev/null >&5) 2>&5
2075 ac_status=$?
2076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077 (exit $ac_status); }
2078 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2079 (eval $ac_compiler -v </dev/null >&5) 2>&5
2080 ac_status=$?
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }
2083 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2084 (eval $ac_compiler -V </dev/null >&5) 2>&5
2085 ac_status=$?
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }
2088
2089 cat >conftest.$ac_ext <<_ACEOF
2090 /* confdefs.h. */
2091 _ACEOF
2092 cat confdefs.h >>conftest.$ac_ext
2093 cat >>conftest.$ac_ext <<_ACEOF
2094 /* end confdefs.h. */
2095
2096 int
2097 main ()
2098 {
2099
2100 ;
2101 return 0;
2102 }
2103 _ACEOF
2104 ac_clean_files_save=$ac_clean_files
2105 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2106 # Try to create an executable without -o first, disregard a.out.
2107 # It will help us diagnose broken compilers, and finding out an intuition
2108 # of exeext.
2109 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2110 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2111 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2112 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2113 (eval $ac_link_default) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; then
2117 # Find the output, starting from the most likely. This scheme is
2118 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2119 # resort.
2120
2121 # Be careful to initialize this variable, since it used to be cached.
2122 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2123 ac_cv_exeext=
2124 # b.out is created by i960 compilers.
2125 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2126 do
2127 test -f "$ac_file" || continue
2128 case $ac_file in
2129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2130 ;;
2131 conftest.$ac_ext )
2132 # This is the source file.
2133 ;;
2134 [ab].out )
2135 # We found the default executable, but exeext='' is most
2136 # certainly right.
2137 break;;
2138 *.* )
2139 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2140 # FIXME: I believe we export ac_cv_exeext for Libtool,
2141 # but it would be cool to find out if it's true. Does anybody
2142 # maintain Libtool? --akim.
2143 export ac_cv_exeext
2144 break;;
2145 * )
2146 break;;
2147 esac
2148 done
2149 else
2150 echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2152
2153 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2154 See \`config.log' for more details." >&5
2155 echo "$as_me: error: C compiler cannot create executables
2156 See \`config.log' for more details." >&2;}
2157 { (exit 77); exit 77; }; }
2158 fi
2159
2160 ac_exeext=$ac_cv_exeext
2161 echo "$as_me:$LINENO: result: $ac_file" >&5
2162 echo "${ECHO_T}$ac_file" >&6
2163
2164 # Check the compiler produces executables we can run. If not, either
2165 # the compiler is broken, or we cross compile.
2166 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2167 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2168 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2169 # If not cross compiling, check that we can run a simple program.
2170 if test "$cross_compiling" != yes; then
2171 if { ac_try='./$ac_file'
2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173 (eval $ac_try) 2>&5
2174 ac_status=$?
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; }; then
2177 cross_compiling=no
2178 else
2179 if test "$cross_compiling" = maybe; then
2180 cross_compiling=yes
2181 else
2182 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2183 If you meant to cross compile, use \`--host'.
2184 See \`config.log' for more details." >&5
2185 echo "$as_me: error: cannot run C compiled programs.
2186 If you meant to cross compile, use \`--host'.
2187 See \`config.log' for more details." >&2;}
2188 { (exit 1); exit 1; }; }
2189 fi
2190 fi
2191 fi
2192 echo "$as_me:$LINENO: result: yes" >&5
2193 echo "${ECHO_T}yes" >&6
2194
2195 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2196 ac_clean_files=$ac_clean_files_save
2197 # Check the compiler produces executables we can run. If not, either
2198 # the compiler is broken, or we cross compile.
2199 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2200 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2201 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2202 echo "${ECHO_T}$cross_compiling" >&6
2203
2204 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2205 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2207 (eval $ac_link) 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; then
2211 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2212 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2213 # work properly (i.e., refer to `conftest.exe'), while it won't with
2214 # `rm'.
2215 for ac_file in conftest.exe conftest conftest.*; do
2216 test -f "$ac_file" || continue
2217 case $ac_file in
2218 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2219 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2220 export ac_cv_exeext
2221 break;;
2222 * ) break;;
2223 esac
2224 done
2225 else
2226 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2227 See \`config.log' for more details." >&5
2228 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2229 See \`config.log' for more details." >&2;}
2230 { (exit 1); exit 1; }; }
2231 fi
2232
2233 rm -f conftest$ac_cv_exeext
2234 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2235 echo "${ECHO_T}$ac_cv_exeext" >&6
2236
2237 rm -f conftest.$ac_ext
2238 EXEEXT=$ac_cv_exeext
2239 ac_exeext=$EXEEXT
2240 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2241 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2242 if test "${ac_cv_objext+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 else
2245 cat >conftest.$ac_ext <<_ACEOF
2246 /* confdefs.h. */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2251
2252 int
2253 main ()
2254 {
2255
2256 ;
2257 return 0;
2258 }
2259 _ACEOF
2260 rm -f conftest.o conftest.obj
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262 (eval $ac_compile) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; then
2266 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2267 case $ac_file in
2268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2269 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2270 break;;
2271 esac
2272 done
2273 else
2274 echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2276
2277 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2278 See \`config.log' for more details." >&5
2279 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2280 See \`config.log' for more details." >&2;}
2281 { (exit 1); exit 1; }; }
2282 fi
2283
2284 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2285 fi
2286 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2287 echo "${ECHO_T}$ac_cv_objext" >&6
2288 OBJEXT=$ac_cv_objext
2289 ac_objext=$OBJEXT
2290 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2291 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2292 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295 cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h. */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2301
2302 int
2303 main ()
2304 {
2305 #ifndef __GNUC__
2306 choke me
2307 #endif
2308
2309 ;
2310 return 0;
2311 }
2312 _ACEOF
2313 rm -f conftest.$ac_objext
2314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315 (eval $ac_compile) 2>conftest.er1
2316 ac_status=$?
2317 grep -v '^ *+' conftest.er1 >conftest.err
2318 rm -f conftest.er1
2319 cat conftest.err >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } &&
2322 { ac_try='test -z "$ac_c_werror_flag"
2323 || test ! -s conftest.err'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 (eval $ac_try) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; } &&
2329 { ac_try='test -s conftest.$ac_objext'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 (eval $ac_try) 2>&5
2332 ac_status=$?
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; }; then
2335 ac_compiler_gnu=yes
2336 else
2337 echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2339
2340 ac_compiler_gnu=no
2341 fi
2342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2343 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2344
2345 fi
2346 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2347 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2348 GCC=`test $ac_compiler_gnu = yes && echo yes`
2349 ac_test_CFLAGS=${CFLAGS+set}
2350 ac_save_CFLAGS=$CFLAGS
2351 CFLAGS="-g"
2352 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2353 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2354 if test "${ac_cv_prog_cc_g+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357 cat >conftest.$ac_ext <<_ACEOF
2358 /* confdefs.h. */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2363
2364 int
2365 main ()
2366 {
2367
2368 ;
2369 return 0;
2370 }
2371 _ACEOF
2372 rm -f conftest.$ac_objext
2373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2374 (eval $ac_compile) 2>conftest.er1
2375 ac_status=$?
2376 grep -v '^ *+' conftest.er1 >conftest.err
2377 rm -f conftest.er1
2378 cat conftest.err >&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); } &&
2381 { ac_try='test -z "$ac_c_werror_flag"
2382 || test ! -s conftest.err'
2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 (eval $ac_try) 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; } &&
2388 { ac_try='test -s conftest.$ac_objext'
2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 (eval $ac_try) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; }; then
2394 ac_cv_prog_cc_g=yes
2395 else
2396 echo "$as_me: failed program was:" >&5
2397 sed 's/^/| /' conftest.$ac_ext >&5
2398
2399 ac_cv_prog_cc_g=no
2400 fi
2401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2402 fi
2403 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2404 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2405 if test "$ac_test_CFLAGS" = set; then
2406 CFLAGS=$ac_save_CFLAGS
2407 elif test $ac_cv_prog_cc_g = yes; then
2408 if test "$GCC" = yes; then
2409 CFLAGS="-g -O2"
2410 else
2411 CFLAGS="-g"
2412 fi
2413 else
2414 if test "$GCC" = yes; then
2415 CFLAGS="-O2"
2416 else
2417 CFLAGS=
2418 fi
2419 fi
2420 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2421 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2422 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 else
2425 ac_cv_prog_cc_stdc=no
2426 ac_save_CC=$CC
2427 cat >conftest.$ac_ext <<_ACEOF
2428 /* confdefs.h. */
2429 _ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h. */
2433 #include <stdarg.h>
2434 #include <stdio.h>
2435 #include <sys/types.h>
2436 #include <sys/stat.h>
2437 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2438 struct buf { int x; };
2439 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2440 static char *e (p, i)
2441 char **p;
2442 int i;
2443 {
2444 return p[i];
2445 }
2446 static char *f (char * (*g) (char **, int), char **p, ...)
2447 {
2448 char *s;
2449 va_list v;
2450 va_start (v,p);
2451 s = g (p, va_arg (v,int));
2452 va_end (v);
2453 return s;
2454 }
2455
2456 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2457 function prototypes and stuff, but not '\xHH' hex character constants.
2458 These don't provoke an error unfortunately, instead are silently treated
2459 as 'x'. The following induces an error, until -std1 is added to get
2460 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2461 array size at least. It's necessary to write '\x00'==0 to get something
2462 that's true only with -std1. */
2463 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2464
2465 int test (int i, double x);
2466 struct s1 {int (*f) (int a);};
2467 struct s2 {int (*f) (double a);};
2468 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2469 int argc;
2470 char **argv;
2471 int
2472 main ()
2473 {
2474 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2475 ;
2476 return 0;
2477 }
2478 _ACEOF
2479 # Don't try gcc -ansi; that turns off useful extensions and
2480 # breaks some systems' header files.
2481 # AIX -qlanglvl=ansi
2482 # Ultrix and OSF/1 -std1
2483 # HP-UX 10.20 and later -Ae
2484 # HP-UX older versions -Aa -D_HPUX_SOURCE
2485 # SVR4 -Xc -D__EXTENSIONS__
2486 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2487 do
2488 CC="$ac_save_CC $ac_arg"
2489 rm -f conftest.$ac_objext
2490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491 (eval $ac_compile) 2>conftest.er1
2492 ac_status=$?
2493 grep -v '^ *+' conftest.er1 >conftest.err
2494 rm -f conftest.er1
2495 cat conftest.err >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } &&
2498 { ac_try='test -z "$ac_c_werror_flag"
2499 || test ! -s conftest.err'
2500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501 (eval $ac_try) 2>&5
2502 ac_status=$?
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; } &&
2505 { ac_try='test -s conftest.$ac_objext'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 (eval $ac_try) 2>&5
2508 ac_status=$?
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; }; then
2511 ac_cv_prog_cc_stdc=$ac_arg
2512 break
2513 else
2514 echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2516
2517 fi
2518 rm -f conftest.err conftest.$ac_objext
2519 done
2520 rm -f conftest.$ac_ext conftest.$ac_objext
2521 CC=$ac_save_CC
2522
2523 fi
2524
2525 case "x$ac_cv_prog_cc_stdc" in
2526 x|xno)
2527 echo "$as_me:$LINENO: result: none needed" >&5
2528 echo "${ECHO_T}none needed" >&6 ;;
2529 *)
2530 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2531 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2532 CC="$CC $ac_cv_prog_cc_stdc" ;;
2533 esac
2534
2535 # Some people use a C++ compiler to compile C. Since we use `exit',
2536 # in C++ we need to declare it. In case someone uses the same compiler
2537 # for both compiling C and C++ we need to have the C++ compiler decide
2538 # the declaration of exit, since it's the most demanding environment.
2539 cat >conftest.$ac_ext <<_ACEOF
2540 #ifndef __cplusplus
2541 choke me
2542 #endif
2543 _ACEOF
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546 (eval $ac_compile) 2>conftest.er1
2547 ac_status=$?
2548 grep -v '^ *+' conftest.er1 >conftest.err
2549 rm -f conftest.er1
2550 cat conftest.err >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -z "$ac_c_werror_flag"
2554 || test ! -s conftest.err'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 (eval $ac_try) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 (eval $ac_try) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2566 for ac_declaration in \
2567 '' \
2568 'extern "C" void std::exit (int) throw (); using std::exit;' \
2569 'extern "C" void std::exit (int); using std::exit;' \
2570 'extern "C" void exit (int) throw ();' \
2571 'extern "C" void exit (int);' \
2572 'void exit (int);'
2573 do
2574 cat >conftest.$ac_ext <<_ACEOF
2575 /* confdefs.h. */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2580 $ac_declaration
2581 #include <stdlib.h>
2582 int
2583 main ()
2584 {
2585 exit (42);
2586 ;
2587 return 0;
2588 }
2589 _ACEOF
2590 rm -f conftest.$ac_objext
2591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592 (eval $ac_compile) 2>conftest.er1
2593 ac_status=$?
2594 grep -v '^ *+' conftest.er1 >conftest.err
2595 rm -f conftest.er1
2596 cat conftest.err >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); } &&
2599 { ac_try='test -z "$ac_c_werror_flag"
2600 || test ! -s conftest.err'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 (eval $ac_try) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; } &&
2606 { ac_try='test -s conftest.$ac_objext'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 (eval $ac_try) 2>&5
2609 ac_status=$?
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; }; then
2612 :
2613 else
2614 echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2616
2617 continue
2618 fi
2619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2620 cat >conftest.$ac_ext <<_ACEOF
2621 /* confdefs.h. */
2622 _ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h. */
2626 $ac_declaration
2627 int
2628 main ()
2629 {
2630 exit (42);
2631 ;
2632 return 0;
2633 }
2634 _ACEOF
2635 rm -f conftest.$ac_objext
2636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2637 (eval $ac_compile) 2>conftest.er1
2638 ac_status=$?
2639 grep -v '^ *+' conftest.er1 >conftest.err
2640 rm -f conftest.er1
2641 cat conftest.err >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } &&
2644 { ac_try='test -z "$ac_c_werror_flag"
2645 || test ! -s conftest.err'
2646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 (eval $ac_try) 2>&5
2648 ac_status=$?
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; } &&
2651 { ac_try='test -s conftest.$ac_objext'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; }; then
2657 break
2658 else
2659 echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2661
2662 fi
2663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2664 done
2665 rm -f conftest*
2666 if test -n "$ac_declaration"; then
2667 echo '#ifdef __cplusplus' >>confdefs.h
2668 echo $ac_declaration >>confdefs.h
2669 echo '#endif' >>confdefs.h
2670 fi
2671
2672 else
2673 echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2675
2676 fi
2677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2678 ac_ext=c
2679 ac_cpp='$CPP $CPPFLAGS'
2680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2683
2684
2685 ac_ext=cc
2686 ac_cpp='$CXXCPP $CPPFLAGS'
2687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2690 if test -n "$ac_tool_prefix"; then
2691 for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2692 do
2693 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2694 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2695 echo "$as_me:$LINENO: checking for $ac_word" >&5
2696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2697 if test "${ac_cv_prog_CXX+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 else
2700 if test -n "$CXX"; then
2701 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2713 fi
2714 done
2715 done
2716
2717 fi
2718 fi
2719 CXX=$ac_cv_prog_CXX
2720 if test -n "$CXX"; then
2721 echo "$as_me:$LINENO: result: $CXX" >&5
2722 echo "${ECHO_T}$CXX" >&6
2723 else
2724 echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6
2726 fi
2727
2728 test -n "$CXX" && break
2729 done
2730 fi
2731 if test -z "$CXX"; then
2732 ac_ct_CXX=$CXX
2733 for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2734 do
2735 # Extract the first word of "$ac_prog", so it can be a program name with args.
2736 set dummy $ac_prog; ac_word=$2
2737 echo "$as_me:$LINENO: checking for $ac_word" >&5
2738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2739 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 else
2742 if test -n "$ac_ct_CXX"; then
2743 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2744 else
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in $PATH
2747 do
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2752 ac_cv_prog_ac_ct_CXX="$ac_prog"
2753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 break 2
2755 fi
2756 done
2757 done
2758
2759 fi
2760 fi
2761 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2762 if test -n "$ac_ct_CXX"; then
2763 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2764 echo "${ECHO_T}$ac_ct_CXX" >&6
2765 else
2766 echo "$as_me:$LINENO: result: no" >&5
2767 echo "${ECHO_T}no" >&6
2768 fi
2769
2770 test -n "$ac_ct_CXX" && break
2771 done
2772 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2773
2774 CXX=$ac_ct_CXX
2775 fi
2776
2777
2778 # Provide some information about the compiler.
2779 echo "$as_me:$LINENO:" \
2780 "checking for C++ compiler version" >&5
2781 ac_compiler=`set X $ac_compile; echo $2`
2782 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2783 (eval $ac_compiler --version </dev/null >&5) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }
2787 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2788 (eval $ac_compiler -v </dev/null >&5) 2>&5
2789 ac_status=$?
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }
2792 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2793 (eval $ac_compiler -V </dev/null >&5) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }
2797
2798 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2799 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2800 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2801 echo $ECHO_N "(cached) $ECHO_C" >&6
2802 else
2803 cat >conftest.$ac_ext <<_ACEOF
2804 /* confdefs.h. */
2805 _ACEOF
2806 cat confdefs.h >>conftest.$ac_ext
2807 cat >>conftest.$ac_ext <<_ACEOF
2808 /* end confdefs.h. */
2809
2810 int
2811 main ()
2812 {
2813 #ifndef __GNUC__
2814 choke me
2815 #endif
2816
2817 ;
2818 return 0;
2819 }
2820 _ACEOF
2821 rm -f conftest.$ac_objext
2822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2823 (eval $ac_compile) 2>conftest.er1
2824 ac_status=$?
2825 grep -v '^ *+' conftest.er1 >conftest.err
2826 rm -f conftest.er1
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } &&
2830 { ac_try='test -z "$ac_cxx_werror_flag"
2831 || test ! -s conftest.err'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; } &&
2837 { ac_try='test -s conftest.$ac_objext'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 (eval $ac_try) 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2843 ac_compiler_gnu=yes
2844 else
2845 echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2847
2848 ac_compiler_gnu=no
2849 fi
2850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2851 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2852
2853 fi
2854 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2855 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2856 GXX=`test $ac_compiler_gnu = yes && echo yes`
2857 ac_test_CXXFLAGS=${CXXFLAGS+set}
2858 ac_save_CXXFLAGS=$CXXFLAGS
2859 CXXFLAGS="-g"
2860 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2861 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2862 if test "${ac_cv_prog_cxx_g+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 else
2865 cat >conftest.$ac_ext <<_ACEOF
2866 /* confdefs.h. */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2871
2872 int
2873 main ()
2874 {
2875
2876 ;
2877 return 0;
2878 }
2879 _ACEOF
2880 rm -f conftest.$ac_objext
2881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2882 (eval $ac_compile) 2>conftest.er1
2883 ac_status=$?
2884 grep -v '^ *+' conftest.er1 >conftest.err
2885 rm -f conftest.er1
2886 cat conftest.err >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); } &&
2889 { ac_try='test -z "$ac_cxx_werror_flag"
2890 || test ! -s conftest.err'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 (eval $ac_try) 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; } &&
2896 { ac_try='test -s conftest.$ac_objext'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 (eval $ac_try) 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; }; then
2902 ac_cv_prog_cxx_g=yes
2903 else
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2906
2907 ac_cv_prog_cxx_g=no
2908 fi
2909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2910 fi
2911 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2912 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2913 if test "$ac_test_CXXFLAGS" = set; then
2914 CXXFLAGS=$ac_save_CXXFLAGS
2915 elif test $ac_cv_prog_cxx_g = yes; then
2916 if test "$GXX" = yes; then
2917 CXXFLAGS="-g -O2"
2918 else
2919 CXXFLAGS="-g"
2920 fi
2921 else
2922 if test "$GXX" = yes; then
2923 CXXFLAGS="-O2"
2924 else
2925 CXXFLAGS=
2926 fi
2927 fi
2928 for ac_declaration in \
2929 '' \
2930 'extern "C" void std::exit (int) throw (); using std::exit;' \
2931 'extern "C" void std::exit (int); using std::exit;' \
2932 'extern "C" void exit (int) throw ();' \
2933 'extern "C" void exit (int);' \
2934 'void exit (int);'
2935 do
2936 cat >conftest.$ac_ext <<_ACEOF
2937 /* confdefs.h. */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h. */
2942 $ac_declaration
2943 #include <stdlib.h>
2944 int
2945 main ()
2946 {
2947 exit (42);
2948 ;
2949 return 0;
2950 }
2951 _ACEOF
2952 rm -f conftest.$ac_objext
2953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2954 (eval $ac_compile) 2>conftest.er1
2955 ac_status=$?
2956 grep -v '^ *+' conftest.er1 >conftest.err
2957 rm -f conftest.er1
2958 cat conftest.err >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } &&
2961 { ac_try='test -z "$ac_cxx_werror_flag"
2962 || test ! -s conftest.err'
2963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964 (eval $ac_try) 2>&5
2965 ac_status=$?
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; } &&
2968 { ac_try='test -s conftest.$ac_objext'
2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970 (eval $ac_try) 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2974 :
2975 else
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2978
2979 continue
2980 fi
2981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2982 cat >conftest.$ac_ext <<_ACEOF
2983 /* confdefs.h. */
2984 _ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2988 $ac_declaration
2989 int
2990 main ()
2991 {
2992 exit (42);
2993 ;
2994 return 0;
2995 }
2996 _ACEOF
2997 rm -f conftest.$ac_objext
2998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2999 (eval $ac_compile) 2>conftest.er1
3000 ac_status=$?
3001 grep -v '^ *+' conftest.er1 >conftest.err
3002 rm -f conftest.er1
3003 cat conftest.err >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
3006 { ac_try='test -z "$ac_cxx_werror_flag"
3007 || test ! -s conftest.err'
3008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009 (eval $ac_try) 2>&5
3010 ac_status=$?
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; } &&
3013 { ac_try='test -s conftest.$ac_objext'
3014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015 (eval $ac_try) 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; }; then
3019 break
3020 else
3021 echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3023
3024 fi
3025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3026 done
3027 rm -f conftest*
3028 if test -n "$ac_declaration"; then
3029 echo '#ifdef __cplusplus' >>confdefs.h
3030 echo $ac_declaration >>confdefs.h
3031 echo '#endif' >>confdefs.h
3032 fi
3033
3034 ac_ext=c
3035 ac_cpp='$CPP $CPPFLAGS'
3036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3039
3040
3041 OOPSE_TEMPLATE_FLAGS=""
3042 if test $ac_cv_cxx_compiler_gnu = no; then
3043 echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5
3044 echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6
3045 echo 'void f(){}' > conftest.cc
3046 if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
3047 echo "$as_me:$LINENO: result: yes" >&5
3048 echo "${ECHO_T}yes" >&6
3049 OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink"
3050 else
3051 echo "$as_me:$LINENO: result: no" >&5
3052 echo "${ECHO_T}no" >&6
3053 fi
3054 rm -f conftest*
3055 echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -instances=static" >&5
3056 echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6
3057 echo 'void f(){}' > conftest.cc
3058 if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
3059 echo "$as_me:$LINENO: result: yes" >&5
3060 echo "${ECHO_T}yes" >&6
3061 OOPSE_TEMPLATE_FLAGS="-instances=static"
3062 else
3063 echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6
3065 fi
3066 rm -f conftest*
3067 echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -pto" >&5
3068 echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6
3069 echo 'void f(){}' > conftest.cc
3070 if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then
3071 echo "$as_me:$LINENO: result: yes" >&5
3072 echo "${ECHO_T}yes" >&6
3073 OOPSE_TEMPLATE_FLAGS="-pto"
3074 else
3075 echo "$as_me:$LINENO: result: no" >&5
3076 echo "${ECHO_T}no" >&6
3077 fi
3078 rm -f conftest*
3079 echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -LANG:std" >&5
3080 echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6
3081 echo 'void f(){}' > conftest.cc
3082 if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then
3083 echo "$as_me:$LINENO: result: yes" >&5
3084 echo "${ECHO_T}yes" >&6
3085
3086
3087 EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std"
3088 else
3089 echo "$as_me:$LINENO: result: no" >&5
3090 echo "${ECHO_T}no" >&6
3091 fi
3092 fi
3093
3094
3095
3096
3097 ac_ext=f90
3098 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3099 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3101 if test -n "$ac_tool_prefix"; then
3102 for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3103 do
3104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3106 echo "$as_me:$LINENO: checking for $ac_word" >&5
3107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3108 if test "${ac_cv_prog_F90+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111 if test -n "$F90"; then
3112 ac_cv_prog_F90="$F90" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121 ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
3122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125 done
3126 done
3127
3128 fi
3129 fi
3130 F90=$ac_cv_prog_F90
3131 if test -n "$F90"; then
3132 echo "$as_me:$LINENO: result: $F90" >&5
3133 echo "${ECHO_T}$F90" >&6
3134 else
3135 echo "$as_me:$LINENO: result: no" >&5
3136 echo "${ECHO_T}no" >&6
3137 fi
3138
3139 test -n "$F90" && break
3140 done
3141 fi
3142 if test -z "$F90"; then
3143 ac_ct_F90=$F90
3144 for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3145 do
3146 # Extract the first word of "$ac_prog", so it can be a program name with args.
3147 set dummy $ac_prog; ac_word=$2
3148 echo "$as_me:$LINENO: checking for $ac_word" >&5
3149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3150 if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153 if test -n "$ac_ct_F90"; then
3154 ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
3155 else
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3158 do
3159 IFS=$as_save_IFS
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3163 ac_cv_prog_ac_ct_F90="$ac_prog"
3164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 break 2
3166 fi
3167 done
3168 done
3169
3170 fi
3171 fi
3172 ac_ct_F90=$ac_cv_prog_ac_ct_F90
3173 if test -n "$ac_ct_F90"; then
3174 echo "$as_me:$LINENO: result: $ac_ct_F90" >&5
3175 echo "${ECHO_T}$ac_ct_F90" >&6
3176 else
3177 echo "$as_me:$LINENO: result: no" >&5
3178 echo "${ECHO_T}no" >&6
3179 fi
3180
3181 test -n "$ac_ct_F90" && break
3182 done
3183
3184 F90=$ac_ct_F90
3185 fi
3186
3187
3188 # If we don't use `.F90' as extension, the preprocessor is not run on the
3189 # input file.
3190 ac_save_ext=$ac_ext
3191 ac_ext=F90
3192 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5
3193 echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
3194 if test "${ac_cv_f90_compiler_gnu+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197 cat >conftest.$ac_ext <<_ACEOF
3198
3199 program main
3200
3201 #ifndef __GNUC__
3202 choke me
3203 #endif
3204
3205 end program main
3206
3207 _ACEOF
3208 rm -f conftest.$ac_objext
3209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3210 (eval $ac_compile) 2>conftest.er1
3211 ac_status=$?
3212 grep -v '^ *+' conftest.er1 >conftest.err
3213 rm -f conftest.er1
3214 cat conftest.err >&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } &&
3217 { ac_try='test -z "$ac_f90_werror_flag"
3218 || test ! -s conftest.err'
3219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220 (eval $ac_try) 2>&5
3221 ac_status=$?
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }; } &&
3224 { ac_try='test -s conftest.$ac_objext'
3225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3226 (eval $ac_try) 2>&5
3227 ac_status=$?
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; }; then
3230 ac_compiler_gnu=yes
3231 else
3232 echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3234
3235 ac_compiler_gnu=no
3236 fi
3237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3238 ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3239
3240 fi
3241 echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5
3242 echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
3243 ac_ext=$ac_save_ext
3244 G95=`test $ac_compiler_gnu = yes && echo yes`
3245 ac_ext=c
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250
3251
3252
3253
3254
3255 # Try to determine native compiler flags that allow us to use F90 suffix
3256 # for preprocessed f90 source.
3257
3258 if test "$ac_test_PREPFLAG" != "set"; then
3259 PREPFLAG=""
3260 case "${host_cpu}-${host_os}" in
3261
3262 *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3263 PREPFLAG="-fpp1 "
3264 fi;;
3265 *aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
3266 PREPFLAG="-qsuffix=cpp=F90 "
3267 fi;;
3268 *darwin*)
3269 if test "$F90" = f90 -o "$F90" = xlf90; then
3270 PREPFLAG="-qsuffix=cpp=F90 "
3271 fi;;
3272 esac
3273
3274 if test -z "$PREPFLAG"; then
3275 { echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5
3276 echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
3277 PREPFLAG=""
3278 fi
3279
3280 echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
3281 echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3282
3283
3284 ac_ext=f90
3285 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3286 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3287 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3288
3289 ac_save_ext=$ac_ext
3290 ac_ext=F90
3291 ac_save_F90FLAGS=$F90FLAGS
3292
3293 if test "$PREPFLAG"; then
3294 F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
3295 fi
3296
3297 cat >conftest.$ac_ext <<_ACEOF
3298
3299
3300 program main
3301
3302 integer :: i
3303 i = 1
3304
3305
3306 end program main
3307
3308 _ACEOF
3309 rm -f conftest.$ac_objext
3310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3311 (eval $ac_compile) 2>conftest.er1
3312 ac_status=$?
3313 grep -v '^ *+' conftest.er1 >conftest.err
3314 rm -f conftest.er1
3315 cat conftest.err >&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } &&
3318 { ac_try='test -z "$ac_f90_werror_flag"
3319 || test ! -s conftest.err'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 (eval $ac_try) 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; } &&
3325 { ac_try='test -s conftest.$ac_objext'
3326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327 (eval $ac_try) 2>&5
3328 ac_status=$?
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; }; then
3331 prepflagworks=1
3332 else
3333 echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3335
3336 prepflagworks=0
3337 fi
3338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3339
3340 F90FLAGS=$ac_save_F90FLAGS
3341 ac_ext=$ac_save_ext
3342 ac_ext=c
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347
3348
3349 if test "$prepflagworks" = 1; then
3350 echo "$as_me:$LINENO: result: yes" >&5
3351 echo "${ECHO_T}yes" >&6
3352
3353 else
3354 echo "$as_me:$LINENO: result: no" >&5
3355 echo "${ECHO_T}no" >&6
3356 { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3357 echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3358 { (exit 1); exit 1; }; }
3359 fi
3360 fi
3361
3362
3363
3364
3365
3366 # Try to determine native compiler flags that allow us to use F90 suffix
3367 # for preprocessed f90 source with -D type defines
3368
3369 if test "$ac_test_PREPDEFFLAG" != "set"; then
3370 PREPDEFFLAG=""
3371 case "${host_cpu}-${host_os}" in
3372
3373 *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3374 PREPDEFFLAG=" "
3375 fi;;
3376 *aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
3377 PREPDEFFLAG="-WF,"
3378 fi;;
3379 *darwin*)
3380 if test "$F90" = f90 -o "$F90" = xlf90; then
3381 PREPDEFFLAG="-WF,"
3382 fi;;
3383 esac
3384
3385 if test -z "$PREPDEFFLAG"; then
3386 { echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5
3387 echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
3388 PREPDEFFLAG=" "
3389 fi
3390
3391 echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
3392 echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3393
3394
3395 ac_ext=f90
3396 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3397 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3399
3400 ac_save_ext=$ac_ext
3401 ac_ext=F90
3402 ac_save_F90FLAGS=$F90FLAGS
3403
3404 if test "$PREPDEFFLAG"; then
3405 F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
3406 fi
3407
3408 cat >conftest.$ac_ext <<_ACEOF
3409
3410
3411 program main
3412
3413 integer :: i
3414 #ifdef TEST
3415 i = 1
3416 #else
3417 choke me
3418 #endif
3419
3420
3421 end program main
3422
3423 _ACEOF
3424 rm -f conftest.$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -z "$ac_f90_werror_flag"
3434 || test ! -s conftest.err'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; } &&
3440 { ac_try='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 prepdefflagworks=1
3447 else
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451 prepdefflagworks=0
3452 fi
3453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3454
3455 F90FLAGS=$ac_save_F90FLAGS
3456 ac_ext=$ac_save_ext
3457 ac_ext=c
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
3463
3464
3465 if test "$prepdefflagworks" = 1; then
3466 echo "$as_me:$LINENO: result: yes" >&5
3467 echo "${ECHO_T}yes" >&6
3468
3469 else
3470 echo "$as_me:$LINENO: result: no" >&5
3471 echo "${ECHO_T}no" >&6
3472 { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3473 echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
3474 { (exit 1); exit 1; }; }
3475 fi
3476 fi
3477
3478 ac_ext=f90
3479 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3480 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3482
3483
3484
3485 ac_ext=f90
3486 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3487 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3489 echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
3490 echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
3491 if test "${ac_cv_prog_f90_v+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 else
3494
3495 cat >conftest.$ac_ext <<_ACEOF
3496
3497 program main
3498
3499
3500 end program main
3501
3502 _ACEOF
3503 rm -f conftest.$ac_objext
3504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3505 (eval $ac_compile) 2>conftest.er1
3506 ac_status=$?
3507 grep -v '^ *+' conftest.er1 >conftest.err
3508 rm -f conftest.er1
3509 cat conftest.err >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } &&
3512 { ac_try='test -z "$ac_f90_werror_flag"
3513 || test ! -s conftest.err'
3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515 (eval $ac_try) 2>&5
3516 ac_status=$?
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; } &&
3519 { ac_try='test -s conftest.$ac_objext'
3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 (eval $ac_try) 2>&5
3522 ac_status=$?
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; }; then
3525 ac_cv_prog_f90_v=
3526 # Try some options frequently used verbose output
3527 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3528 ac_ext=f90
3529 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3530 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3532
3533 cat >conftest.$ac_ext <<_ACEOF
3534
3535 program main
3536
3537
3538 end program main
3539
3540 _ACEOF
3541
3542 # Compile and link our simple test program by passing a flag (argument
3543 # 1 to this macro) to the Fortran 90 compiler in order to get
3544 # "verbose" output that we can then parse for the Fortran 90 linker
3545 # flags.
3546 ac_save_F90FLAGS=$F90FLAGS
3547 F90FLAGS="$F90FLAGS $ac_verb"
3548
3549 (eval echo $as_me:3549: \"$ac_link\") >&5
3550 ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3551 echo "$ac_f90_v_output" >&5
3552 F90FLAGS=$ac_save_F90FLAGS
3553
3554 rm -f conftest.*
3555 ac_ext=f90
3556 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3557 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3559
3560 # If we are using xlf then replace all the commas with spaces.
3561 if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3562 ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3563 fi
3564
3565 # If we are using Cray Fortran then delete quotes.
3566 # Use "\"" instead of '"' for font-lock-mode.
3567 # FIXME: a more general fix for quoted arguments with spaces?
3568 if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3569 ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3570 fi
3571 # look for -l* and *.a constructs in the output
3572 for ac_arg in $ac_f90_v_output; do
3573 case $ac_arg in
3574 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3575 ac_cv_prog_f90_v=$ac_verb
3576 break 2 ;;
3577 esac
3578 done
3579 done
3580 if test -z "$ac_cv_prog_f90_v"; then
3581 { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
3582 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
3583 fi
3584 else
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588 { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3589 echo "$as_me: WARNING: compilation failed" >&2;}
3590 fi
3591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3592
3593 fi
3594 echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
3595 echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
3596 echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
3597 echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
3598 if test "${ac_cv_flibs+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3600 else
3601 if test "x$F90LIBS" != "x"; then
3602 ac_cv_f90libs="$F90LIBS" # Let the user override the test.
3603 else
3604
3605 ac_ext=f90
3606 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3607 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3609
3610 cat >conftest.$ac_ext <<_ACEOF
3611
3612 program main
3613
3614
3615 end program main
3616
3617 _ACEOF
3618
3619 # Compile and link our simple test program by passing a flag (argument
3620 # 1 to this macro) to the Fortran 90 compiler in order to get
3621 # "verbose" output that we can then parse for the Fortran 90 linker
3622 # flags.
3623 ac_save_F90FLAGS=$F90FLAGS
3624 F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3625
3626 (eval echo $as_me:3626: \"$ac_link\") >&5
3627 ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3628 echo "$ac_f90_v_output" >&5
3629 F90FLAGS=$ac_save_F90FLAGS
3630
3631 rm -f conftest.*
3632 ac_ext=f90
3633 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3634 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3636
3637 # If we are using xlf then replace all the commas with spaces.
3638 if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3639 ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3640 fi
3641
3642 # If we are using Cray Fortran then delete quotes.
3643 # Use "\"" instead of '"' for font-lock-mode.
3644 # FIXME: a more general fix for quoted arguments with spaces?
3645 if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3646 ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3647 fi
3648
3649 ac_cv_f90libs=
3650
3651 # Save positional arguments (if any)
3652 ac_save_positional="$@"
3653
3654 set X $ac_f90_v_output
3655 while test $# != 1; do
3656 shift
3657 ac_arg=$1
3658 case $ac_arg in
3659 [\\/]*.a | ?:[\\/]*.a)
3660 ac_exists=false
3661 for ac_i in $ac_cv_f90libs; do
3662 if test x"$ac_arg" = x"$ac_i"; then
3663 ac_exists=true
3664 break
3665 fi
3666 done
3667
3668 if test x"$ac_exists" = xtrue; then
3669 :
3670 else
3671 ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3672 fi
3673
3674 ;;
3675 -bI:*)
3676 ac_exists=false
3677 for ac_i in $ac_cv_f90libs; do
3678 if test x"$ac_arg" = x"$ac_i"; then
3679 ac_exists=true
3680 break
3681 fi
3682 done
3683
3684 if test x"$ac_exists" = xtrue; then
3685 :
3686 else
3687 if test "$ac_compiler_gnu" = yes; then
3688 for ac_link_opt in $ac_arg; do
3689 ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3690 done
3691 else
3692 ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3693 fi
3694 fi
3695
3696 ;;
3697 # Ignore these flags.
3698 -lang* | -lcrt[012].o | -lc | -lgcc | -LANG:=*)
3699 ;;
3700 -lkernel32)
3701 test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3702 ;;
3703 -[LRuY])
3704 # These flags, when seen by themselves, take an argument.
3705 # We remove the space between option and argument and re-iterate
3706 # unless we find an empty arg or a new option (starting with -)
3707 case $2 in
3708 "" | -*);;
3709 *)
3710 ac_arg="$ac_arg$2"
3711
3712 shift; shift
3713 set X $ac_arg "$@"
3714 ;;
3715 esac
3716 ;;
3717 -YP,*)
3718 for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3719 ac_exists=false
3720 for ac_i in $ac_cv_f90libs; do
3721 if test x"$ac_j" = x"$ac_i"; then
3722 ac_exists=true
3723 break
3724 fi
3725 done
3726
3727 if test x"$ac_exists" = xtrue; then
3728 :
3729 else
3730 ac_arg="$ac_arg $ac_j"
3731 ac_cv_f90libs="$ac_cv_f90libs $ac_j"
3732 fi
3733
3734 done
3735 ;;
3736 -[lLR]*)
3737 ac_exists=false
3738 for ac_i in $ac_cv_f90libs; do
3739 if test x"$ac_arg" = x"$ac_i"; then
3740 ac_exists=true
3741 break
3742 fi
3743 done
3744
3745 if test x"$ac_exists" = xtrue; then
3746 :
3747 else
3748 ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3749 fi
3750
3751 ;;
3752 # Ignore everything else.
3753 esac
3754 done
3755 # restore positional arguments
3756 set X $ac_save_positional; shift
3757
3758 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
3759 # then we insist that the "run path" must be an absolute path (i.e. it
3760 # must begin with a "/").
3761 case `(uname -sr) 2>/dev/null` in
3762 "SunOS 5"*)
3763 ac_ld_run_path=`echo $ac_f90_v_output |
3764 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
3765 test "x$ac_ld_run_path" != x &&
3766
3767 if test "$ac_compiler_gnu" = yes; then
3768 for ac_link_opt in $ac_ld_run_path; do
3769 ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3770 done
3771 else
3772 ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
3773 fi
3774 ;;
3775 esac
3776 fi # test "x$F90LIBS" = "x"
3777
3778 fi
3779 echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
3780 echo "${ECHO_T}$ac_cv_flibs" >&6
3781 F90LIBS="$ac_cv_f90libs"
3782
3783 ac_ext=f90
3784 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3785 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3787
3788
3789 echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
3790 echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
3791 if test "${ac_cv_f90_mangling+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794 ac_ext=f90
3795 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3796 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3797 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3798 cat >conftest.$ac_ext <<_ACEOF
3799 subroutine foobar()
3800 return
3801 end
3802 subroutine foo_bar()
3803 return
3804 end
3805 _ACEOF
3806 rm -f conftest.$ac_objext
3807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808 (eval $ac_compile) 2>conftest.er1
3809 ac_status=$?
3810 grep -v '^ *+' conftest.er1 >conftest.err
3811 rm -f conftest.er1
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } &&
3815 { ac_try='test -z "$ac_f90_werror_flag"
3816 || test ! -s conftest.err'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 (eval $ac_try) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; } &&
3822 { ac_try='test -s conftest.$ac_objext'
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 (eval $ac_try) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; }; then
3828 mv conftest.$ac_objext cf90_test.$ac_objext
3829
3830 ac_ext=c
3831 ac_cpp='$CPP $CPPFLAGS'
3832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835
3836 ac_save_LIBS=$LIBS
3837 LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
3838
3839 ac_success=no
3840 for ac_foobar in foobar FOOBAR; do
3841 for ac_underscore in "" "_"; do
3842 ac_func="$ac_foobar$ac_underscore"
3843 cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h. */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849
3850 /* Override any gcc2 internal prototype to avoid an error. */
3851 #ifdef __cplusplus
3852 extern "C"
3853 #endif
3854 /* We use char because int might match the return type of a gcc2
3855 builtin and then its argument prototype would still apply. */
3856 char $ac_func ();
3857 int
3858 main ()
3859 {
3860 $ac_func ();
3861 ;
3862 return 0;
3863 }
3864 _ACEOF
3865 rm -f conftest.$ac_objext conftest$ac_exeext
3866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3867 (eval $ac_link) 2>conftest.er1
3868 ac_status=$?
3869 grep -v '^ *+' conftest.er1 >conftest.err
3870 rm -f conftest.er1
3871 cat conftest.err >&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); } &&
3874 { ac_try='test -z "$ac_c_werror_flag"
3875 || test ! -s conftest.err'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 (eval $ac_try) 2>&5
3878 ac_status=$?
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; } &&
3881 { ac_try='test -s conftest$ac_exeext'
3882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3883 (eval $ac_try) 2>&5
3884 ac_status=$?
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); }; }; then
3887 ac_success=yes; break 2
3888 else
3889 echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3891
3892 fi
3893 rm -f conftest.err conftest.$ac_objext \
3894 conftest$ac_exeext conftest.$ac_ext
3895 done
3896 done
3897
3898 if test "$ac_success" = "yes"; then
3899 case $ac_foobar in
3900 foobar)
3901 ac_case=lower
3902 ac_foo_bar=foo_bar
3903 ;;
3904 FOOBAR)
3905 ac_case=upper
3906 ac_foo_bar=FOO_BAR
3907 ;;
3908 esac
3909
3910 ac_success_extra=no
3911 for ac_extra in "" "_"; do
3912 ac_func="$ac_foo_bar$ac_underscore$ac_extra"
3913
3914 cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h. */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3920
3921 /* Override any gcc2 internal prototype to avoid an error. */
3922 #ifdef __cplusplus
3923 extern "C"
3924 #endif
3925 /* We use char because int might match the return type of a gcc2
3926 builtin and then its argument prototype would still apply. */
3927 char $ac_func ();
3928 int
3929 main ()
3930 {
3931 $ac_func ();
3932 ;
3933 return 0;
3934 }
3935 _ACEOF
3936 rm -f conftest.$ac_objext conftest$ac_exeext
3937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3938 (eval $ac_link) 2>conftest.er1
3939 ac_status=$?
3940 grep -v '^ *+' conftest.er1 >conftest.err
3941 rm -f conftest.er1
3942 cat conftest.err >&5
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); } &&
3945 { ac_try='test -z "$ac_c_werror_flag"
3946 || test ! -s conftest.err'
3947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948 (eval $ac_try) 2>&5
3949 ac_status=$?
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }; } &&
3952 { ac_try='test -s conftest$ac_exeext'
3953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3954 (eval $ac_try) 2>&5
3955 ac_status=$?
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; }; then
3958 ac_success_extra=yes; break
3959 else
3960 echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3962
3963 fi
3964 rm -f conftest.err conftest.$ac_objext \
3965 conftest$ac_exeext conftest.$ac_ext
3966 done
3967
3968 if test "$ac_success_extra" = "yes"; then
3969 ac_cv_f90_mangling="$ac_case case"
3970 if test -z "$ac_underscore"; then
3971 ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
3972 else
3973 ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
3974
3975 fi
3976 if test -z "$ac_extra"; then
3977 ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
3978 else
3979 ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
3980 fi
3981 else
3982 ac_cv_f90_mangling="unknown"
3983 fi
3984 else
3985 ac_cv_f90_mangling="unknown"
3986
3987 fi
3988
3989 LIBS=$ac_save_LIBS
3990 ac_ext=f90
3991 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3992 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3993 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3994 rm -f cf90_test* conftest*
3995 else
3996 echo "$as_me: failed program was:" >&5
3997 sed 's/^/| /' conftest.$ac_ext >&5
3998
3999 fi
4000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4001 ac_ext=f90
4002 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4003 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4004 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4005
4006 fi
4007 echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
4008 echo "${ECHO_T}$ac_cv_f90_mangling" >&6
4009
4010
4011
4012 case $ac_cv_f90_mangling in
4013 "lower case, no underscore, no extra underscore")
4014 cat >>confdefs.h <<\_ACEOF
4015 #define F90_FUNC(name,NAME) name
4016 _ACEOF
4017
4018 cat >>confdefs.h <<\_ACEOF
4019 #define F90_FUNC_(name,NAME) name
4020 _ACEOF
4021 ;;
4022 "lower case, no underscore, extra underscore")
4023 cat >>confdefs.h <<\_ACEOF
4024 #define F90_FUNC(name,NAME) name
4025 _ACEOF
4026
4027 cat >>confdefs.h <<\_ACEOF
4028 #define F90_FUNC_(name,NAME) name ## _
4029 _ACEOF
4030 ;;
4031 "lower case, underscore, no extra underscore")
4032 cat >>confdefs.h <<\_ACEOF
4033 #define F90_FUNC(name,NAME) name ## _
4034 _ACEOF
4035
4036 cat >>confdefs.h <<\_ACEOF
4037 #define F90_FUNC_(name,NAME) name ## _
4038 _ACEOF
4039 ;;
4040 "lower case, underscore, extra underscore")
4041 cat >>confdefs.h <<\_ACEOF
4042 #define F90_FUNC(name,NAME) name ## _
4043 _ACEOF
4044
4045 cat >>confdefs.h <<\_ACEOF
4046 #define F90_FUNC_(name,NAME) name ## __
4047 _ACEOF
4048 ;;
4049 "upper case, no underscore, no extra underscore")
4050 cat >>confdefs.h <<\_ACEOF
4051 #define F90_FUNC(name,NAME) NAME
4052 _ACEOF
4053
4054 cat >>confdefs.h <<\_ACEOF
4055 #define F90_FUNC_(name,NAME) NAME
4056 _ACEOF
4057 ;;
4058 "upper case, no underscore, extra underscore")
4059 cat >>confdefs.h <<\_ACEOF
4060 #define F90_FUNC(name,NAME) NAME
4061 _ACEOF
4062
4063 cat >>confdefs.h <<\_ACEOF
4064 #define F90_FUNC_(name,NAME) NAME ## _
4065 _ACEOF
4066 ;;
4067 "upper case, underscore, no extra underscore")
4068 cat >>confdefs.h <<\_ACEOF
4069 #define F90_FUNC(name,NAME) NAME ## _
4070 _ACEOF
4071
4072 cat >>confdefs.h <<\_ACEOF
4073 #define F90_FUNC_(name,NAME) NAME ## _
4074 _ACEOF
4075 ;;
4076 "upper case, underscore, extra underscore")
4077 cat >>confdefs.h <<\_ACEOF
4078 #define F90_FUNC(name,NAME) NAME ## _
4079 _ACEOF
4080
4081 cat >>confdefs.h <<\_ACEOF
4082 #define F90_FUNC_(name,NAME) NAME ## __
4083 _ACEOF
4084 ;;
4085 *)
4086 { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
4087 echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
4088 ;;
4089 esac
4090
4091
4092
4093
4094
4095 echo "$as_me:$LINENO: checking for module suffix" >&5
4096 echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
4097 rm -f conftest*
4098 # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4099 rm -f work*
4100 cat >conftest.f90 <<EOF
4101 module conftest
4102 integer n
4103 parameter (n=1)
4104 end module conftest
4105 EOF
4106 # SGI and absoft compilers generates module name in upper case!
4107 testname="conftest"
4108 modcase="lower"
4109 if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4110 MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
4111 MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
4112 if test -z "$MOD" ; then
4113 MOD=`ls CONFTEST* 2>/dev/null \
4114 | grep -v CONFTEST.f | grep -v CONFTEST.o`
4115 MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
4116 if test -n "$MOD" ; then
4117 testname="CONFTEST"
4118 modcase="upper"
4119 fi
4120 fi
4121 if test -z "$MOD" ; then
4122 echo "$as_me:$LINENO: result: unknown" >&5
4123 echo "${ECHO_T}unknown" >&6
4124 # Use mod if we can't figure it out
4125 MOD="mod"
4126 else
4127 echo "$as_me:$LINENO: result: $MOD" >&5
4128 echo "${ECHO_T}$MOD" >&6
4129 fi
4130 if test -s work.pcl ; then
4131 { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
4132 echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
4133 fi
4134 else
4135 echo "$as_me:$LINENO: result: unknown" >&5
4136 echo "${ECHO_T}unknown" >&6
4137 fi
4138
4139
4140
4141
4142
4143 # Check for module include path (some use -I, some (Solaris) use -M, some
4144 # (absoft) use -p).
4145 # Intel compilers use a wierd system: -cl,filename.pcl . If no file is
4146 # specified, work.pcl and work.pc are created. However, if you specify
4147 # a file, it must contain a the name of a file ending in .pc . Ugh!
4148 # Use the module made above
4149 echo "$as_me:$LINENO: checking for module directory path flag" >&5
4150 echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
4151 rm -f conftest*
4152 # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4153 rm -f work*
4154 cat >conftest.f90 <<EOF
4155 module conftest
4156 integer n
4157 parameter (n=1)
4158 end module conftest
4159 EOF
4160 # SGI and absoft compilers generates module name in upper case!
4161 testname="conftest"
4162 if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4163 mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o`
4164 mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
4165 if test -n "$mod" ; then
4166 testname="CONFTEST"
4167 fi
4168 madedir=0
4169 if test ! -d conf ; then mkdir conf ; madedir=1; fi
4170 cp $testname.$MOD conf
4171 rm -f conftest* CONFTEST*
4172 cat >conftest1.f90 <<EOF
4173 program main
4174 use conftest
4175 print *, n
4176 end
4177 EOF
4178 F90_WORK_FILES_ARG=""
4179 F90MODINCSPEC=""
4180 if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then
4181 MODDIRFLAG="-I"
4182 F90MODINCSPEC="-I<dir>"
4183 echo "$as_me:$LINENO: result: -I" >&5
4184 echo "${ECHO_T}-I" >&6
4185 elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then
4186 MODDIRFLAG="-M"
4187 F90MODINCSPEC="-M<dir>"
4188 echo "$as_me:$LINENO: result: -M" >&5
4189 echo "${ECHO_T}-M" >&6
4190 elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then
4191 MODDIRFLAG="-p"
4192 F90MODINCSPEC="-p<dir>"
4193 echo "$as_me:$LINENO: result: -p" >&5
4194 echo "${ECHO_T}-p" >&6
4195 elif test -s work.pc ; then
4196 cp work.pc conf/mpimod.pc
4197 echo "mpimod.pc" > conf/mpimod.pcl
4198 echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
4199 if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
4200 MODDIRFLAG='-cl,mpimod.pcl'
4201 echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
4202 echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6
4203 F90_WORK_FILES_ARG="-cl,mpimod.pcl"
4204 F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
4205
4206 else
4207 # The version of the Intel compiler that I have refuses to let
4208 # you put the "work catalog" list anywhere but the current
4209 # directory. For example, you cannot in
4210 :
4211 fi
4212 fi
4213 if test -z "MODDIRFLAG" ; then
4214 echo "$as_me:$LINENO: result: unknown" >&5
4215 echo "${ECHO_T}unknown" >&6
4216 fi
4217
4218
4219 rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
4220 if test $madedir = 1 ; then rmdir conf ; fi
4221 fi
4222
4223
4224 echo "$as_me:$LINENO: checking for Fortran 90 module file names" >&5
4225 echo $ECHO_N "checking for Fortran 90 module file names... $ECHO_C" >&6
4226 if test "${ac_cv_f90_module_names+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229 ac_ext=f90
4230 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4231 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4233
4234 # carry out the test in a new directory, so that we don't miss anything
4235 mkdir conftest
4236 cd conftest
4237 cat >conftest.$ac_ext <<_ACEOF
4238 MODULE Bar
4239 END MODULE Bar
4240 _ACEOF
4241 rm -f conftest.$ac_objext
4242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4243 (eval $ac_compile) 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } &&
4250 { ac_try='test -z "$ac_f90_werror_flag"
4251 || test ! -s conftest.err'
4252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253 (eval $ac_try) 2>&5
4254 ac_status=$?
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); }; } &&
4257 { ac_try='test -s conftest.$ac_objext'
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259 (eval $ac_try) 2>&5
4260 ac_status=$?
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4263 ac_cv_f90_module_names=
4264 ac_file_list=*
4265 for ac_file in $ac_file_list; do
4266 case $ac_file in
4267 # don't care for original source and object files
4268 conftest.$ac_ext | conftest.$ac_objext | conftest.err )
4269 :
4270 ;;
4271 # look for new files derived from the file name
4272 *conftest*)
4273 ac_pat=`echo $ac_file | sed s/conftest/%FILE%/`
4274 ac_exists=false
4275 for ac_i in $ac_cv_f90_module_names; do
4276 if test x"$ac_pat" = x"$ac_i"; then
4277 ac_exists=true
4278 break
4279 fi
4280 done
4281
4282 if test x"$ac_exists" = xtrue; then
4283 :
4284 else
4285 ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4286 fi
4287
4288 ;;
4289 # look for new files derived from the module name,
4290 # with different case translation schemes
4291 *Bar*)
4292 ac_pat=`echo $ac_file | sed s/Bar/%Module%/`
4293 ac_exists=false
4294 for ac_i in $ac_cv_f90_module_names; do
4295 if test x"$ac_pat" = x"$ac_i"; then
4296 ac_exists=true
4297 break
4298 fi
4299 done
4300
4301 if test x"$ac_exists" = xtrue; then
4302 :
4303 else
4304 ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4305 fi
4306
4307 ;;
4308 *bar*)
4309 ac_pat=`echo $ac_file | sed s/bar/%module%/`
4310 ac_exists=false
4311 for ac_i in $ac_cv_f90_module_names; do
4312 if test x"$ac_pat" = x"$ac_i"; then
4313 ac_exists=true
4314 break
4315 fi
4316 done
4317
4318 if test x"$ac_exists" = xtrue; then
4319 :
4320 else
4321 ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4322 fi
4323
4324 ;;
4325 *BAR*)
4326 ac_pat=`echo $ac_file | sed s/BAR/%MODULE%/`
4327 ac_exists=false
4328 for ac_i in $ac_cv_f90_module_names; do
4329 if test x"$ac_pat" = x"$ac_i"; then
4330 ac_exists=true
4331 break
4332 fi
4333 done
4334
4335 if test x"$ac_exists" = xtrue; then
4336 :
4337 else
4338 ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4339 fi
4340
4341 ;;
4342 # Other files - we have no idea how they are generated
4343 *)
4344 { echo "$as_me:$LINENO: WARNING: Bogus file found: $ac_file" >&5
4345 echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;}
4346 ;;
4347 esac
4348 done
4349 if test "x$ac_cv_f90_module_names" = "x"; then
4350 { echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
4351 echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
4352 fi
4353
4354 else
4355 echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4357
4358 ac_cv_f90_module_names=
4359 { echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
4360 echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
4361 fi
4362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4363 cd ..
4364 # cleanup
4365 rm -rf conftest
4366 ac_ext=f90
4367 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4368 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4370
4371 fi
4372 echo "$as_me:$LINENO: result: $ac_cv_f90_module_names" >&5
4373 echo "${ECHO_T}$ac_cv_f90_module_names" >&6 # AC_CACHE_CHECK
4374
4375 # We now generate a shell script that will help us to figure out the correct
4376 # module file names, using the value of ac_cv_f90_module_names
4377
4378 echo "Generating shell script modnam"
4379
4380 cat > scripts/modnam << EOF
4381 #! /bin/sh
4382 # This script is auto-generated by configure
4383 #
4384 usage="\\
4385 Usage: \$0 [FILES]
4386
4387 [FILES] are Fortran 90 source files.
4388 The output is a list of module file names that the Fortran 90 compiler
4389 generates when compiling [FILES]."
4390
4391 list=
4392 empty=
4393
4394 if test \$# -eq 0; then
4395 echo "\$usage"; exit 0
4396 fi
4397
4398 while test \$# != 0; do
4399
4400 file=\$1
4401 shift
4402
4403 # strip suffix
4404 base=\`echo \$file | sed 's/[.][^.]*$//'\`
4405
4406 test ! -f \$file && continue
4407
4408 # Look for module definitions and transform them to upper / lower case
4409 mods=\`cat \$file | sed '/^ *[mM][oO][dD][uU][lL][eE]/!d;s/^ *[mM][oO][dD][uU][lL][eE] *\([A-Za-z_][A-Za-z0-9_]*\).*\$/\1/'\`
4410 upper=\`echo \$mods | tr a-z A-Z\`
4411 lower=\`echo \$mods | tr A-Z a-z\`
4412
4413 # Here, the patterns for generating module file names were inserted by configure
4414 for trans in $ac_cv_f90_module_names; do
4415
4416 pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\`
4417 var=empty
4418 case \$pat in
4419 %MODULE%)
4420 var=upper ;;
4421 %Module%)
4422 var=mods ;;
4423 %module%)
4424 var=lower ;;
4425 %FILE%)
4426 test -n "\$mods" && var=base ;;
4427 esac
4428 new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\`
4429 list="\$list \$new"
4430 done
4431 done
4432
4433 echo \$list
4434 # end of configure-generated script
4435 EOF
4436 chmod 755 scripts/modnam
4437
4438 pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'`
4439 F90_MODULE_NAMES=empty
4440 case $pat in
4441 %MODULE%)
4442 F90_MODULE_NAMES=UPPER ;;
4443 %Module%)
4444 F90_MODULE_NAMES=Mixed ;;
4445 %module%)
4446 F90_MODULE_NAMES=lower ;;
4447 *)
4448 F90_MODULE_NAMES=unknown ;;
4449 esac
4450
4451 ac_ext=c
4452 ac_cpp='$CPP $CPPFLAGS'
4453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456
4457
4458 ac_ext=c
4459 ac_cpp='$CPP $CPPFLAGS'
4460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4463
4464 ac_ext=c
4465 ac_cpp='$CPP $CPPFLAGS'
4466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4469 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4470 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4471 # On Suns, sometimes $CPP names a directory.
4472 if test -n "$CPP" && test -d "$CPP"; then
4473 CPP=
4474 fi
4475 if test -z "$CPP"; then
4476 if test "${ac_cv_prog_CPP+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479 # Double quotes because CPP needs to be expanded
4480 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4481 do
4482 ac_preproc_ok=false
4483 for ac_c_preproc_warn_flag in '' yes
4484 do
4485 # Use a header file that comes with gcc, so configuring glibc
4486 # with a fresh cross-compiler works.
4487 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4488 # <limits.h> exists even on freestanding compilers.
4489 # On the NeXT, cc -E runs the code through the compiler's parser,
4490 # not just through cpp. "Syntax error" is here to catch this case.
4491 cat >conftest.$ac_ext <<_ACEOF
4492 /* confdefs.h. */
4493 _ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h. */
4497 #ifdef __STDC__
4498 # include <limits.h>
4499 #else
4500 # include <assert.h>
4501 #endif
4502 Syntax error
4503 _ACEOF
4504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4506 ac_status=$?
4507 grep -v '^ *+' conftest.er1 >conftest.err
4508 rm -f conftest.er1
4509 cat conftest.err >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } >/dev/null; then
4512 if test -s conftest.err; then
4513 ac_cpp_err=$ac_c_preproc_warn_flag
4514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4515 else
4516 ac_cpp_err=
4517 fi
4518 else
4519 ac_cpp_err=yes
4520 fi
4521 if test -z "$ac_cpp_err"; then
4522 :
4523 else
4524 echo "$as_me: failed program was:" >&5
4525 sed 's/^/| /' conftest.$ac_ext >&5
4526
4527 # Broken: fails on valid input.
4528 continue
4529 fi
4530 rm -f conftest.err conftest.$ac_ext
4531
4532 # OK, works on sane cases. Now check whether non-existent headers
4533 # can be detected and how.
4534 cat >conftest.$ac_ext <<_ACEOF
4535 /* confdefs.h. */
4536 _ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4540 #include <ac_nonexistent.h>
4541 _ACEOF
4542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4544 ac_status=$?
4545 grep -v '^ *+' conftest.er1 >conftest.err
4546 rm -f conftest.er1
4547 cat conftest.err >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } >/dev/null; then
4550 if test -s conftest.err; then
4551 ac_cpp_err=$ac_c_preproc_warn_flag
4552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4553 else
4554 ac_cpp_err=
4555 fi
4556 else
4557 ac_cpp_err=yes
4558 fi
4559 if test -z "$ac_cpp_err"; then
4560 # Broken: success on invalid input.
4561 continue
4562 else
4563 echo "$as_me: failed program was:" >&5
4564 sed 's/^/| /' conftest.$ac_ext >&5
4565
4566 # Passes both tests.
4567 ac_preproc_ok=:
4568 break
4569 fi
4570 rm -f conftest.err conftest.$ac_ext
4571
4572 done
4573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4574 rm -f conftest.err conftest.$ac_ext
4575 if $ac_preproc_ok; then
4576 break
4577 fi
4578
4579 done
4580 ac_cv_prog_CPP=$CPP
4581
4582 fi
4583 CPP=$ac_cv_prog_CPP
4584 else
4585 ac_cv_prog_CPP=$CPP
4586 fi
4587 echo "$as_me:$LINENO: result: $CPP" >&5
4588 echo "${ECHO_T}$CPP" >&6
4589 ac_preproc_ok=false
4590 for ac_c_preproc_warn_flag in '' yes
4591 do
4592 # Use a header file that comes with gcc, so configuring glibc
4593 # with a fresh cross-compiler works.
4594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4595 # <limits.h> exists even on freestanding compilers.
4596 # On the NeXT, cc -E runs the code through the compiler's parser,
4597 # not just through cpp. "Syntax error" is here to catch this case.
4598 cat >conftest.$ac_ext <<_ACEOF
4599 /* confdefs.h. */
4600 _ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h. */
4604 #ifdef __STDC__
4605 # include <limits.h>
4606 #else
4607 # include <assert.h>
4608 #endif
4609 Syntax error
4610 _ACEOF
4611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4613 ac_status=$?
4614 grep -v '^ *+' conftest.er1 >conftest.err
4615 rm -f conftest.er1
4616 cat conftest.err >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } >/dev/null; then
4619 if test -s conftest.err; then
4620 ac_cpp_err=$ac_c_preproc_warn_flag
4621 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4622 else
4623 ac_cpp_err=
4624 fi
4625 else
4626 ac_cpp_err=yes
4627 fi
4628 if test -z "$ac_cpp_err"; then
4629 :
4630 else
4631 echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.$ac_ext >&5
4633
4634 # Broken: fails on valid input.
4635 continue
4636 fi
4637 rm -f conftest.err conftest.$ac_ext
4638
4639 # OK, works on sane cases. Now check whether non-existent headers
4640 # can be detected and how.
4641 cat >conftest.$ac_ext <<_ACEOF
4642 /* confdefs.h. */
4643 _ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h. */
4647 #include <ac_nonexistent.h>
4648 _ACEOF
4649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4651 ac_status=$?
4652 grep -v '^ *+' conftest.er1 >conftest.err
4653 rm -f conftest.er1
4654 cat conftest.err >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } >/dev/null; then
4657 if test -s conftest.err; then
4658 ac_cpp_err=$ac_c_preproc_warn_flag
4659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4660 else
4661 ac_cpp_err=
4662 fi
4663 else
4664 ac_cpp_err=yes
4665 fi
4666 if test -z "$ac_cpp_err"; then
4667 # Broken: success on invalid input.
4668 continue
4669 else
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4672
4673 # Passes both tests.
4674 ac_preproc_ok=:
4675 break
4676 fi
4677 rm -f conftest.err conftest.$ac_ext
4678
4679 done
4680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4681 rm -f conftest.err conftest.$ac_ext
4682 if $ac_preproc_ok; then
4683 :
4684 else
4685 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4686 See \`config.log' for more details." >&5
4687 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4688 See \`config.log' for more details." >&2;}
4689 { (exit 1); exit 1; }; }
4690 fi
4691
4692 ac_ext=c
4693 ac_cpp='$CPP $CPPFLAGS'
4694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4697
4698
4699 echo "$as_me:$LINENO: checking for egrep" >&5
4700 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4701 if test "${ac_cv_prog_egrep+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4705 then ac_cv_prog_egrep='grep -E'
4706 else ac_cv_prog_egrep='egrep'
4707 fi
4708 fi
4709 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4710 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4711 EGREP=$ac_cv_prog_egrep
4712
4713
4714 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4715 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4716 if test "${ac_cv_header_stdc+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 else
4719 cat >conftest.$ac_ext <<_ACEOF
4720 /* confdefs.h. */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4725 #include <stdlib.h>
4726 #include <stdarg.h>
4727 #include <string.h>
4728 #include <float.h>
4729
4730 int
4731 main ()
4732 {
4733
4734 ;
4735 return 0;
4736 }
4737 _ACEOF
4738 rm -f conftest.$ac_objext
4739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4740 (eval $ac_compile) 2>conftest.er1
4741 ac_status=$?
4742 grep -v '^ *+' conftest.er1 >conftest.err
4743 rm -f conftest.er1
4744 cat conftest.err >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } &&
4747 { ac_try='test -z "$ac_c_werror_flag"
4748 || test ! -s conftest.err'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 (eval $ac_try) 2>&5
4751 ac_status=$?
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; } &&
4754 { ac_try='test -s conftest.$ac_objext'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756 (eval $ac_try) 2>&5
4757 ac_status=$?
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; }; then
4760 ac_cv_header_stdc=yes
4761 else
4762 echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4764
4765 ac_cv_header_stdc=no
4766 fi
4767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4768
4769 if test $ac_cv_header_stdc = yes; then
4770 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4771 cat >conftest.$ac_ext <<_ACEOF
4772 /* confdefs.h. */
4773 _ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4777 #include <string.h>
4778
4779 _ACEOF
4780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4781 $EGREP "memchr" >/dev/null 2>&1; then
4782 :
4783 else
4784 ac_cv_header_stdc=no
4785 fi
4786 rm -f conftest*
4787
4788 fi
4789
4790 if test $ac_cv_header_stdc = yes; then
4791 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4792 cat >conftest.$ac_ext <<_ACEOF
4793 /* confdefs.h. */
4794 _ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h. */
4798 #include <stdlib.h>
4799
4800 _ACEOF
4801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4802 $EGREP "free" >/dev/null 2>&1; then
4803 :
4804 else
4805 ac_cv_header_stdc=no
4806 fi
4807 rm -f conftest*
4808
4809 fi
4810
4811 if test $ac_cv_header_stdc = yes; then
4812 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4813 if test "$cross_compiling" = yes; then
4814 :
4815 else
4816 cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h. */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4822 #include <ctype.h>
4823 #if ((' ' & 0x0FF) == 0x020)
4824 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4825 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4826 #else
4827 # define ISLOWER(c) \
4828 (('a' <= (c) && (c) <= 'i') \
4829 || ('j' <= (c) && (c) <= 'r') \
4830 || ('s' <= (c) && (c) <= 'z'))
4831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4832 #endif
4833
4834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4835 int
4836 main ()
4837 {
4838 int i;
4839 for (i = 0; i < 256; i++)
4840 if (XOR (islower (i), ISLOWER (i))
4841 || toupper (i) != TOUPPER (i))
4842 exit(2);
4843 exit (0);
4844 }
4845 _ACEOF
4846 rm -f conftest$ac_exeext
4847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4848 (eval $ac_link) 2>&5
4849 ac_status=$?
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 (eval $ac_try) 2>&5
4854 ac_status=$?
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; }; then
4857 :
4858 else
4859 echo "$as_me: program exited with status $ac_status" >&5
4860 echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4862
4863 ( exit $ac_status )
4864 ac_cv_header_stdc=no
4865 fi
4866 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4867 fi
4868 fi
4869 fi
4870 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4871 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4872 if test $ac_cv_header_stdc = yes; then
4873
4874 cat >>confdefs.h <<\_ACEOF
4875 #define STDC_HEADERS 1
4876 _ACEOF
4877
4878 fi
4879
4880 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4891 inttypes.h stdint.h unistd.h
4892 do
4893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4894 echo "$as_me:$LINENO: checking for $ac_header" >&5
4895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 else
4899 cat >conftest.$ac_ext <<_ACEOF
4900 /* confdefs.h. */
4901 _ACEOF
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h. */
4905 $ac_includes_default
4906
4907 #include <$ac_header>
4908 _ACEOF
4909 rm -f conftest.$ac_objext
4910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4911 (eval $ac_compile) 2>conftest.er1
4912 ac_status=$?
4913 grep -v '^ *+' conftest.er1 >conftest.err
4914 rm -f conftest.er1
4915 cat conftest.err >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } &&
4918 { ac_try='test -z "$ac_c_werror_flag"
4919 || test ! -s conftest.err'
4920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 (eval $ac_try) 2>&5
4922 ac_status=$?
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; } &&
4925 { ac_try='test -s conftest.$ac_objext'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 (eval $ac_try) 2>&5
4928 ac_status=$?
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; }; then
4931 eval "$as_ac_Header=yes"
4932 else
4933 echo "$as_me: failed program was:" >&5
4934 sed 's/^/| /' conftest.$ac_ext >&5
4935
4936 eval "$as_ac_Header=no"
4937 fi
4938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4939 fi
4940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4943 cat >>confdefs.h <<_ACEOF
4944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4945 _ACEOF
4946
4947 fi
4948
4949 done
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961 for ac_header in unistd.h sys/pstat.h sys/sysmp.h sys/sysinfo.h sys/table.h sys/param.h sys/sysctl.h sys/sytemcfg.h machine/hal_sysinfo.h
4962 do
4963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4965 echo "$as_me:$LINENO: checking for $ac_header" >&5
4966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 fi
4970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4972 else
4973 # Is the header compilable?
4974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4976 cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h. */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4982 $ac_includes_default
4983 #include <$ac_header>
4984 _ACEOF
4985 rm -f conftest.$ac_objext
4986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4987 (eval $ac_compile) 2>conftest.er1
4988 ac_status=$?
4989 grep -v '^ *+' conftest.er1 >conftest.err
4990 rm -f conftest.er1
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } &&
4994 { ac_try='test -z "$ac_c_werror_flag"
4995 || test ! -s conftest.err'
4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997 (eval $ac_try) 2>&5
4998 ac_status=$?
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; } &&
5001 { ac_try='test -s conftest.$ac_objext'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 (eval $ac_try) 2>&5
5004 ac_status=$?
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; }; then
5007 ac_header_compiler=yes
5008 else
5009 echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5011
5012 ac_header_compiler=no
5013 fi
5014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5016 echo "${ECHO_T}$ac_header_compiler" >&6
5017
5018 # Is the header present?
5019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5021 cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 #include <$ac_header>
5028 _ACEOF
5029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5031 ac_status=$?
5032 grep -v '^ *+' conftest.er1 >conftest.err
5033 rm -f conftest.er1
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } >/dev/null; then
5037 if test -s conftest.err; then
5038 ac_cpp_err=$ac_c_preproc_warn_flag
5039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5040 else
5041 ac_cpp_err=
5042 fi
5043 else
5044 ac_cpp_err=yes
5045 fi
5046 if test -z "$ac_cpp_err"; then
5047 ac_header_preproc=yes
5048 else
5049 echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5051
5052 ac_header_preproc=no
5053 fi
5054 rm -f conftest.err conftest.$ac_ext
5055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5056 echo "${ECHO_T}$ac_header_preproc" >&6
5057
5058 # So? What about this header?
5059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5060 yes:no: )
5061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5065 ac_header_preproc=yes
5066 ;;
5067 no:yes:* )
5068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5071 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5075 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5080 (
5081 cat <<\_ASBOX
5082 ## ------------------------------ ##
5083 ## Report this to gezelter@nd.edu ##
5084 ## ------------------------------ ##
5085 _ASBOX
5086 ) |
5087 sed "s/^/$as_me: WARNING: /" >&2
5088 ;;
5089 esac
5090 echo "$as_me:$LINENO: checking for $ac_header" >&5
5091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095 eval "$as_ac_Header=\$ac_header_preproc"
5096 fi
5097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5099
5100 fi
5101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5102 cat >>confdefs.h <<_ACEOF
5103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5104 _ACEOF
5105
5106 fi
5107
5108 done
5109
5110
5111
5112
5113
5114
5115 for ac_func in pstat_getstatic sysmp getsysinfo sysctl table
5116 do
5117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5118 echo "$as_me:$LINENO: checking for $ac_func" >&5
5119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5120 if eval "test \"\${$as_ac_var+set}\" = set"; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5122 else
5123 cat >conftest.$ac_ext <<_ACEOF
5124 /* confdefs.h. */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5131 #define $ac_func innocuous_$ac_func
5132
5133 /* System header to define __stub macros and hopefully few prototypes,
5134 which can conflict with char $ac_func (); below.
5135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5136 <limits.h> exists even on freestanding compilers. */
5137
5138 #ifdef __STDC__
5139 # include <limits.h>
5140 #else
5141 # include <assert.h>
5142 #endif
5143
5144 #undef $ac_func
5145
5146 /* Override any gcc2 internal prototype to avoid an error. */
5147 #ifdef __cplusplus
5148 extern "C"
5149 {
5150 #endif
5151 /* We use char because int might match the return type of a gcc2
5152 builtin and then its argument prototype would still apply. */
5153 char $ac_func ();
5154 /* The GNU C library defines this for functions which it implements
5155 to always fail with ENOSYS. Some functions are actually named
5156 something starting with __ and the normal name is an alias. */
5157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5158 choke me
5159 #else
5160 char (*f) () = $ac_func;
5161 #endif
5162 #ifdef __cplusplus
5163 }
5164 #endif
5165
5166 int
5167 main ()
5168 {
5169 return f != $ac_func;
5170 ;
5171 return 0;
5172 }
5173 _ACEOF
5174 rm -f conftest.$ac_objext conftest$ac_exeext
5175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5176 (eval $ac_link) 2>conftest.er1
5177 ac_status=$?
5178 grep -v '^ *+' conftest.er1 >conftest.err
5179 rm -f conftest.er1
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } &&
5183 { ac_try='test -z "$ac_c_werror_flag"
5184 || test ! -s conftest.err'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 (eval $ac_try) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; } &&
5190 { ac_try='test -s conftest$ac_exeext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 (eval $ac_try) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 eval "$as_ac_var=yes"
5197 else
5198 echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5200
5201 eval "$as_ac_var=no"
5202 fi
5203 rm -f conftest.err conftest.$ac_objext \
5204 conftest$ac_exeext conftest.$ac_ext
5205 fi
5206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5208 if test `eval echo '${'$as_ac_var'}'` = yes; then
5209 cat >>confdefs.h <<_ACEOF
5210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5211 _ACEOF
5212
5213 fi
5214 done
5215
5216 # special check for _system_configuration because AIX <4.3.2 do not
5217 # contain the `physmem' member.
5218 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
5219 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
5220 cat >conftest.$ac_ext <<_ACEOF
5221 /* confdefs.h. */
5222 _ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5226 #include <sys/systemcfg.h>
5227 int
5228 main ()
5229 {
5230 double x = _system_configuration.physmem;
5231 ;
5232 return 0;
5233 }
5234 _ACEOF
5235 rm -f conftest.$ac_objext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5237 (eval $ac_compile) 2>conftest.er1
5238 ac_status=$?
5239 grep -v '^ *+' conftest.er1 >conftest.err
5240 rm -f conftest.er1
5241 cat conftest.err >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } &&
5244 { ac_try='test -z "$ac_c_werror_flag"
5245 || test ! -s conftest.err'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247 (eval $ac_try) 2>&5
5248 ac_status=$?
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; } &&
5251 { ac_try='test -s conftest.$ac_objext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253 (eval $ac_try) 2>&5
5254 ac_status=$?
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 echo "$as_me:$LINENO: result: yes" >&5
5258 echo "${ECHO_T}yes" >&6
5259
5260 cat >>confdefs.h <<\_ACEOF
5261 #define HAVE__SYSTEM_CONFIGURATION 1
5262 _ACEOF
5263
5264 else
5265 echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5267
5268 echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6
5270 fi
5271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5272
5273 # clean out junk possibly left behind by a previous configuration
5274 rm -f src/getopt.h
5275 # Check for getopt_long support
5276
5277 for ac_header in getopt.h
5278 do
5279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5281 echo "$as_me:$LINENO: checking for $ac_header" >&5
5282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 fi
5286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5288 else
5289 # Is the header compilable?
5290 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5292 cat >conftest.$ac_ext <<_ACEOF
5293 /* confdefs.h. */
5294 _ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h. */
5298 $ac_includes_default
5299 #include <$ac_header>
5300 _ACEOF
5301 rm -f conftest.$ac_objext
5302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5303 (eval $ac_compile) 2>conftest.er1
5304 ac_status=$?
5305 grep -v '^ *+' conftest.er1 >conftest.err
5306 rm -f conftest.er1
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } &&
5310 { ac_try='test -z "$ac_c_werror_flag"
5311 || test ! -s conftest.err'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 (eval $ac_try) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; } &&
5317 { ac_try='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 (eval $ac_try) 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 ac_header_compiler=yes
5324 else
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5327
5328 ac_header_compiler=no
5329 fi
5330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5332 echo "${ECHO_T}$ac_header_compiler" >&6
5333
5334 # Is the header present?
5335 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5337 cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h. */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5343 #include <$ac_header>
5344 _ACEOF
5345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5347 ac_status=$?
5348 grep -v '^ *+' conftest.er1 >conftest.err
5349 rm -f conftest.er1
5350 cat conftest.err >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } >/dev/null; then
5353 if test -s conftest.err; then
5354 ac_cpp_err=$ac_c_preproc_warn_flag
5355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5356 else
5357 ac_cpp_err=
5358 fi
5359 else
5360 ac_cpp_err=yes
5361 fi
5362 if test -z "$ac_cpp_err"; then
5363 ac_header_preproc=yes
5364 else
5365 echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5367
5368 ac_header_preproc=no
5369 fi
5370 rm -f conftest.err conftest.$ac_ext
5371 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5372 echo "${ECHO_T}$ac_header_preproc" >&6
5373
5374 # So? What about this header?
5375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5376 yes:no: )
5377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5380 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5381 ac_header_preproc=yes
5382 ;;
5383 no:yes:* )
5384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5387 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5389 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5391 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5395 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5396 (
5397 cat <<\_ASBOX
5398 ## ------------------------------ ##
5399 ## Report this to gezelter@nd.edu ##
5400 ## ------------------------------ ##
5401 _ASBOX
5402 ) |
5403 sed "s/^/$as_me: WARNING: /" >&2
5404 ;;
5405 esac
5406 echo "$as_me:$LINENO: checking for $ac_header" >&5
5407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411 eval "$as_ac_Header=\$ac_header_preproc"
5412 fi
5413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5415
5416 fi
5417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5418 cat >>confdefs.h <<_ACEOF
5419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5420 _ACEOF
5421
5422 fi
5423
5424 done
5425
5426
5427 for ac_func in getopt_long
5428 do
5429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5430 echo "$as_me:$LINENO: checking for $ac_func" >&5
5431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5432 if eval "test \"\${$as_ac_var+set}\" = set"; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435 cat >conftest.$ac_ext <<_ACEOF
5436 /* confdefs.h. */
5437 _ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h. */
5441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5443 #define $ac_func innocuous_$ac_func
5444
5445 /* System header to define __stub macros and hopefully few prototypes,
5446 which can conflict with char $ac_func (); below.
5447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5448 <limits.h> exists even on freestanding compilers. */
5449
5450 #ifdef __STDC__
5451 # include <limits.h>
5452 #else
5453 # include <assert.h>
5454 #endif
5455
5456 #undef $ac_func
5457
5458 /* Override any gcc2 internal prototype to avoid an error. */
5459 #ifdef __cplusplus
5460 extern "C"
5461 {
5462 #endif
5463 /* We use char because int might match the return type of a gcc2
5464 builtin and then its argument prototype would still apply. */
5465 char $ac_func ();
5466 /* The GNU C library defines this for functions which it implements
5467 to always fail with ENOSYS. Some functions are actually named
5468 something starting with __ and the normal name is an alias. */
5469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5470 choke me
5471 #else
5472 char (*f) () = $ac_func;
5473 #endif
5474 #ifdef __cplusplus
5475 }
5476 #endif
5477
5478 int
5479 main ()
5480 {
5481 return f != $ac_func;
5482 ;
5483 return 0;
5484 }
5485 _ACEOF
5486 rm -f conftest.$ac_objext conftest$ac_exeext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5488 (eval $ac_link) 2>conftest.er1
5489 ac_status=$?
5490 grep -v '^ *+' conftest.er1 >conftest.err
5491 rm -f conftest.er1
5492 cat conftest.err >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try='test -z "$ac_c_werror_flag"
5496 || test ! -s conftest.err'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498 (eval $ac_try) 2>&5
5499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; } &&
5502 { ac_try='test -s conftest$ac_exeext'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504 (eval $ac_try) 2>&5
5505 ac_status=$?
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; }; then
5508 eval "$as_ac_var=yes"
5509 else
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5512
5513 eval "$as_ac_var=no"
5514 fi
5515 rm -f conftest.err conftest.$ac_objext \
5516 conftest$ac_exeext conftest.$ac_ext
5517 fi
5518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5520 if test `eval echo '${'$as_ac_var'}'` = yes; then
5521 cat >>confdefs.h <<_ACEOF
5522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5523 _ACEOF
5524
5525 else
5526 # FreeBSD has a gnugetopt library for this
5527 echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
5528 echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
5529 if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
5530 echo $ECHO_N "(cached) $ECHO_C" >&6
5531 else
5532 ac_check_lib_save_LIBS=$LIBS
5533 LIBS="-lgnugetopt $LIBS"
5534 cat >conftest.$ac_ext <<_ACEOF
5535 /* confdefs.h. */
5536 _ACEOF
5537 cat confdefs.h >>conftest.$ac_ext
5538 cat >>conftest.$ac_ext <<_ACEOF
5539 /* end confdefs.h. */
5540
5541 /* Override any gcc2 internal prototype to avoid an error. */
5542 #ifdef __cplusplus
5543 extern "C"
5544 #endif
5545 /* We use char because int might match the return type of a gcc2
5546 builtin and then its argument prototype would still apply. */
5547 char getopt_long ();
5548 int
5549 main ()
5550 {
5551 getopt_long ();
5552 ;
5553 return 0;
5554 }
5555 _ACEOF
5556 rm -f conftest.$ac_objext conftest$ac_exeext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5558 (eval $ac_link) 2>conftest.er1
5559 ac_status=$?
5560 grep -v '^ *+' conftest.er1 >conftest.err
5561 rm -f conftest.er1
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -z "$ac_c_werror_flag"
5566 || test ! -s conftest.err'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; } &&
5572 { ac_try='test -s conftest$ac_exeext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 (eval $ac_try) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 ac_cv_lib_gnugetopt_getopt_long=yes
5579 else
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5582
5583 ac_cv_lib_gnugetopt_getopt_long=no
5584 fi
5585 rm -f conftest.err conftest.$ac_objext \
5586 conftest$ac_exeext conftest.$ac_ext
5587 LIBS=$ac_check_lib_save_LIBS
5588 fi
5589 echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
5590 echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
5591 if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
5592 cat >>confdefs.h <<\_ACEOF
5593 #define HAVE_GETOPT_LONG 1
5594 _ACEOF
5595
5596 else
5597 # use the GNU replacement
5598 case $LIBOBJS in
5599 "getopt.$ac_objext" | \
5600 *" getopt.$ac_objext" | \
5601 "getopt.$ac_objext "* | \
5602 *" getopt.$ac_objext "* ) ;;
5603 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
5604 esac
5605
5606 case $LIBOBJS in
5607 "getopt1.$ac_objext" | \
5608 *" getopt1.$ac_objext" | \
5609 "getopt1.$ac_objext "* | \
5610 *" getopt1.$ac_objext "* ) ;;
5611 *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
5612 esac
5613
5614 ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h"
5615
5616 fi
5617
5618 fi
5619 done
5620
5621
5622
5623 case $debug in
5624 1)
5625 ;;
5626 *)
5627
5628
5629
5630
5631
5632
5633 echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
5634 echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6
5635 if test "${ac_cv_prog_really_gcc+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5638
5639 cat > conftest.c <<EOF
5640 #ifdef __GNUC__
5641 #ifndef __INTEL_COMPILER
5642 yes;
5643 #endif
5644 #endif
5645 EOF
5646 if { ac_try='${CC-cc} -E conftest.c'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
5652 ac_cv_prog_really_gcc=yes
5653 else
5654 ac_cv_prog_really_gcc=no
5655 fi
5656
5657 fi
5658 echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
5659 echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
5660 if test "$ac_cv_prog_really_gcc" = yes; then
5661 :
5662
5663 else
5664 :
5665
5666 fi
5667
5668
5669 # Try to determine "good" native compiler flags if none specified on command
5670 # line
5671 if test "$ac_test_CFLAGS" != "set"; then
5672 CFLAGS=""
5673 case "${host_cpu}-${host_os}" in
5674
5675 *linux*) if test "$CC" = icc; then
5676 CFLAGS="-O"
5677 fi;;
5678 sparc-solaris2*) if test "$CC" = cc; then
5679 CFLAGS="-native -fast -xO5 -dalign"
5680 fi;;
5681
5682 alpha*-osf*) if test "$CC" = cc; then
5683 CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
5684 fi;;
5685
5686 hppa*-hpux*) if test "$CC" = cc; then
5687 CFLAGS="-Ae +O3 +Oall"
5688 fi;;
5689
5690 rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then
5691 CFLAGS="-O3 -qtune=auto -qansialias -w"
5692 fi;;
5693 powerpc*-aix*)
5694 if test "$CC" = cc -o "$CC" = xlc; then
5695 CFLAGS="-O3 -qtune=auto -qansialias -w"
5696 echo "*******************************************************"
5697 echo "* You have AIX on an unknown powerpc system. It is *"
5698 echo "* recommended that you use *"
5699 echo "* *"
5700 echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
5701 echo "* ^^^ *"
5702 echo "* where xxx is 601, 603, 604, or whatever kind of *"
5703 echo "* PowerPC CPU you have. For more info, man cc. *"
5704 echo "*******************************************************"
5705 fi;;
5706 *darwin*)
5707 if test "$CC" = xlc -o "$CC" = cc; then
5708 CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
5709 fi;;
5710 esac
5711
5712 # use default flags for gcc on all systems
5713 if test $ac_cv_prog_really_gcc = yes; then
5714 CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
5715 fi
5716
5717 # test for gcc-specific flags:
5718 if test $ac_cv_prog_really_gcc = yes; then
5719 # -malign-double for x86 systems
5720
5721
5722 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
5723 echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
5724 if test "${ac_align_double+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727 echo 'void f(){}' > conftest.c
5728 if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
5729 ac_align_double=yes
5730 else
5731 ac_align_double=no
5732 fi
5733 rm -f conftest*
5734
5735 fi
5736 echo "$as_me:$LINENO: result: $ac_align_double" >&5
5737 echo "${ECHO_T}$ac_align_double" >&6
5738 if test "$ac_align_double" = yes; then
5739 :
5740 CFLAGS="$CFLAGS -malign-double"
5741 else
5742 :
5743
5744 fi
5745
5746 # -fstrict-aliasing for gcc-2.95+
5747
5748
5749 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
5750 echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
5751 if test "${ac_fstrict_aliasing+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754 echo 'void f(){}' > conftest.c
5755 if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
5756 ac_fstrict_aliasing=yes
5757 else
5758 ac_fstrict_aliasing=no
5759 fi
5760 rm -f conftest*
5761
5762 fi
5763 echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
5764 echo "${ECHO_T}$ac_fstrict_aliasing" >&6
5765 if test "$ac_fstrict_aliasing" = yes; then
5766 :
5767 CFLAGS="$CFLAGS -fstrict-aliasing"
5768 else
5769 :
5770
5771 fi
5772
5773 fi
5774
5775 CPU_FLAGS=""
5776 if test $ac_cv_prog_really_gcc = yes; then
5777 case "${host_cpu}" in
5778 i586*)
5779
5780 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
5781 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
5782 if test "${ac_cpu_pentium+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785 echo 'void f(){}' > conftest.c
5786 if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
5787 ac_cpu_pentium=yes
5788 else
5789 ac_cpu_pentium=no
5790 fi
5791 rm -f conftest*
5792
5793 fi
5794 echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
5795 echo "${ECHO_T}$ac_cpu_pentium" >&6
5796 if test "$ac_cpu_pentium" = yes; then
5797 :
5798 CPU_FLAGS=-mcpu=pentium
5799 else
5800 :
5801
5802
5803 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
5804 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
5805 if test "${ac_pentium+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808 echo 'void f(){}' > conftest.c
5809 if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
5810 ac_pentium=yes
5811 else
5812 ac_pentium=no
5813 fi
5814 rm -f conftest*
5815
5816 fi
5817 echo "$as_me:$LINENO: result: $ac_pentium" >&5
5818 echo "${ECHO_T}$ac_pentium" >&6
5819 if test "$ac_pentium" = yes; then
5820 :
5821 CPU_FLAGS=-mpentium
5822 else
5823 :
5824
5825 fi
5826
5827 fi
5828
5829 ;;
5830 i686*)
5831
5832 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
5833 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
5834 if test "${ac_cpu_pentiumpro+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837 echo 'void f(){}' > conftest.c
5838 if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
5839 ac_cpu_pentiumpro=yes
5840 else
5841 ac_cpu_pentiumpro=no
5842 fi
5843 rm -f conftest*
5844
5845 fi
5846 echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
5847 echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
5848 if test "$ac_cpu_pentiumpro" = yes; then
5849 :
5850 CPU_FLAGS=-mcpu=pentiumpro
5851 else
5852 :
5853
5854
5855 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
5856 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
5857 if test "${ac_pentiumpro+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860 echo 'void f(){}' > conftest.c
5861 if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
5862 ac_pentiumpro=yes
5863 else
5864 ac_pentiumpro=no
5865 fi
5866 rm -f conftest*
5867
5868 fi
5869 echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
5870 echo "${ECHO_T}$ac_pentiumpro" >&6
5871 if test "$ac_pentiumpro" = yes; then
5872 :
5873 CPU_FLAGS=-mpentiumpro
5874 else
5875 :
5876
5877 fi
5878
5879 fi
5880
5881 ;;
5882 powerpc*)
5883 cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
5884 is60x=`echo $cputype | egrep "^600-9e?$"`
5885 if test -n "$is60x"; then
5886
5887
5888 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
5889 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
5890 if test "${ac_m_cpu_60x+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893 echo 'void f(){}' > conftest.c
5894 if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
5895 ac_m_cpu_60x=yes
5896 else
5897 ac_m_cpu_60x=no
5898 fi
5899 rm -f conftest*
5900
5901 fi
5902 echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
5903 echo "${ECHO_T}$ac_m_cpu_60x" >&6
5904 if test "$ac_m_cpu_60x" = yes; then
5905 :
5906 CPU_FLAGS=-mcpu=$cputype
5907 else
5908 :
5909
5910 fi
5911
5912 elif test "$cputype" = 750; then
5913
5914
5915 echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
5916 echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
5917 if test "${ac_cv_prog_gcc_2_95+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 else
5920
5921 cat > conftest.c <<EOF
5922 #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
5923 # if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
5924 yes;
5925 # endif
5926 #endif
5927 EOF
5928 if { ac_try='${CC-cc} -E conftest.c'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 (eval $ac_try) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
5934 ac_cv_prog_gcc_2_95=yes
5935 else
5936 ac_cv_prog_gcc_2_95=no
5937 fi
5938
5939 fi
5940 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
5941 echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
5942 if test "$ac_cv_prog_gcc_2_95" = yes; then
5943 :
5944
5945
5946 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
5947 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
5948 if test "${ac_m_cpu_750+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951 echo 'void f(){}' > conftest.c
5952 if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
5953 ac_m_cpu_750=yes
5954 else
5955 ac_m_cpu_750=no
5956 fi
5957 rm -f conftest*
5958
5959 fi
5960 echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
5961 echo "${ECHO_T}$ac_m_cpu_750" >&6
5962 if test "$ac_m_cpu_750" = yes; then
5963 :
5964 CPU_FLAGS=-mcpu=750
5965 else
5966 :
5967
5968 fi
5969
5970 else
5971 :
5972
5973 fi
5974
5975 fi
5976 if test -z "$CPU_FLAGS"; then
5977
5978
5979 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
5980 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
5981 if test "${ac_m_cpu_powerpc+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984 echo 'void f(){}' > conftest.c
5985 if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
5986 ac_m_cpu_powerpc=yes
5987 else
5988 ac_m_cpu_powerpc=no
5989 fi
5990 rm -f conftest*
5991
5992 fi
5993 echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
5994 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
5995 if test "$ac_m_cpu_powerpc" = yes; then
5996 :
5997 CPU_FLAGS=-mcpu=powerpc
5998 else
5999 :
6000
6001 fi
6002
6003 fi
6004 if test -z "$CPU_FLAGS"; then
6005
6006
6007 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
6008 echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
6009 if test "${ac_m_powerpc+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012 echo 'void f(){}' > conftest.c
6013 if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
6014 ac_m_powerpc=yes
6015 else
6016 ac_m_powerpc=no
6017 fi
6018 rm -f conftest*
6019
6020 fi
6021 echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
6022 echo "${ECHO_T}$ac_m_powerpc" >&6
6023 if test "$ac_m_powerpc" = yes; then
6024 :
6025 CPU_FLAGS=-mpowerpc
6026 else
6027 :
6028
6029 fi
6030
6031 fi
6032 esac
6033 fi
6034
6035 if test -n "$CPU_FLAGS"; then
6036 CFLAGS="$CFLAGS $CPU_FLAGS"
6037 fi
6038
6039 if test -z "$CFLAGS"; then
6040 echo ""
6041 echo "********************************************************"
6042 echo "* WARNING: Don't know the best CFLAGS for this system *"
6043 echo "* Use make CFLAGS=..., or edit the top level Makefile *"
6044 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
6045 echo "********************************************************"
6046 echo ""
6047 CFLAGS="-O3"
6048 fi
6049
6050
6051
6052 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
6053 echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
6054 if test "${ac_guessed_cflags+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057 echo 'void f(){}' > conftest.c
6058 if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
6059 ac_guessed_cflags=yes
6060 else
6061 ac_guessed_cflags=no
6062 fi
6063 rm -f conftest*
6064
6065 fi
6066 echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
6067 echo "${ECHO_T}$ac_guessed_cflags" >&6
6068 if test "$ac_guessed_cflags" = yes; then
6069 :
6070
6071 else
6072 :
6073
6074 echo ""
6075 echo "********************************************************"
6076 echo "* WARNING: The guessed CFLAGS don't seem to work with *"
6077 echo "* your compiler. *"
6078 echo "* Use make CFLAGS=..., or edit the top level Makefile *"
6079 echo "********************************************************"
6080 echo ""
6081 CFLAGS=""
6082
6083 fi
6084
6085
6086 fi
6087
6088
6089
6090
6091
6092
6093
6094 echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5
6095 echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6
6096 if test "${ac_cv_prog_really_gxx+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 else
6099
6100 cat > conftest.cpp <<EOF
6101 #ifdef __GNUC__
6102 #ifndef __INTEL_COMPILER
6103 yes;
6104 #endif
6105 #endif
6106 EOF
6107 if { ac_try='${CXX-c++} -E conftest.cpp'
6108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109 (eval $ac_try) 2>&5
6110 ac_status=$?
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
6113 ac_cv_prog_really_gxx=yes
6114 else
6115 ac_cv_prog_really_gxx=no
6116 fi
6117
6118 fi
6119 echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
6120 echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6
6121 if test "$ac_cv_prog_really_gxx" = yes; then
6122 :
6123
6124 else
6125 :
6126
6127 fi
6128
6129
6130 # Try to determine "good" native compiler flags if none specified on command
6131 # line
6132 if test "$ac_test_CXXFLAGS" != "set"; then
6133 CXXFLAGS=""
6134 case "${host_cpu}-${host_os}" in
6135
6136 *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
6137 CXXFLAGS="-O"
6138 fi;;
6139 sparc-solaris2*) if test "$CXX" = CC; then
6140 CXXFLAGS="-native -fast -xO5 -dalign"
6141 fi;;
6142 rs6000*-aix*) if test "$CXX" = xlC; then
6143 CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
6144 fi;;
6145 powerpc*-aix*)
6146 if test "$CXX" = xlC; then
6147 CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
6148 echo "*******************************************************"
6149 echo "* You have AIX on an unknown powerpc system. It is *"
6150 echo "* recommended that you use *"
6151 echo "* *"
6152 echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
6153 echo "* ^^^ *"
6154 echo "* where xxx is 601, 603, 604, or whatever kind of *"
6155 echo "* PowerPC CPU you have. For more info, man cc. *"
6156 echo "*******************************************************"
6157 fi;;
6158 *darwin*)
6159 if test "$CXX" = xlc++ -o "$CXX" = xlC ; then
6160 CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
6161 fi;;
6162 esac
6163
6164 # use default flags for gcc on all systems
6165 if test $ac_cv_prog_really_gxx = yes; then
6166 CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
6167 fi
6168
6169 # test for gcc-specific flags:
6170 if test $ac_cv_prog_really_gxx = yes; then
6171 # -malign-double for x86 systems
6172
6173
6174 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
6175 echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
6176 if test "${ac_align_double+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179 echo 'void f(){}' > conftest.cpp
6180 if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
6181 ac_align_double=yes
6182 else
6183 ac_align_double=no
6184 fi
6185 rm -f conftest*
6186
6187 fi
6188 echo "$as_me:$LINENO: result: $ac_align_double" >&5
6189 echo "${ECHO_T}$ac_align_double" >&6
6190 if test "$ac_align_double" = yes; then
6191 :
6192 CXXFLAGS="$CXXFLAGS -malign-double"
6193 else
6194 :
6195
6196 fi
6197
6198 # -fstrict-aliasing for gcc-2.95+
6199
6200
6201 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
6202 echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
6203 if test "${ac_fstrict_aliasing+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206 echo 'void f(){}' > conftest.cpp
6207 if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
6208 ac_fstrict_aliasing=yes
6209 else
6210 ac_fstrict_aliasing=no
6211 fi
6212 rm -f conftest*
6213
6214 fi
6215 echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
6216 echo "${ECHO_T}$ac_fstrict_aliasing" >&6
6217 if test "$ac_fstrict_aliasing" = yes; then
6218 :
6219 CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
6220 else
6221 :
6222
6223 fi
6224
6225 fi
6226
6227 CPU_FLAGS=""
6228 if test $ac_cv_prog_really_gxx = yes; then
6229 case "${host_cpu}" in
6230 i586*)
6231
6232 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5
6233 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6
6234 if test "${ac_cpu_pentium+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237 echo 'void f(){}' > conftest.cpp
6238 if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then
6239 ac_cpu_pentium=yes
6240 else
6241 ac_cpu_pentium=no
6242 fi
6243 rm -f conftest*
6244
6245 fi
6246 echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
6247 echo "${ECHO_T}$ac_cpu_pentium" >&6
6248 if test "$ac_cpu_pentium" = yes; then
6249 :
6250 CPU_FLAGS=-mcpu=pentium
6251 else
6252 :
6253
6254
6255 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
6256 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
6257 if test "${ac_pentium+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 else
6260 echo 'void f(){}' > conftest.cpp
6261 if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
6262 ac_pentium=yes
6263 else
6264 ac_pentium=no
6265 fi
6266 rm -f conftest*
6267
6268 fi
6269 echo "$as_me:$LINENO: result: $ac_pentium" >&5
6270 echo "${ECHO_T}$ac_pentium" >&6
6271 if test "$ac_pentium" = yes; then
6272 :
6273 CPU_FLAGS=-mpentium
6274 else
6275 :
6276
6277 fi
6278
6279 fi
6280
6281 ;;
6282 i686*)
6283
6284 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
6285 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
6286 if test "${ac_cpu_pentiumpro+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 else
6289 echo 'void f(){}' > conftest.cpp
6290 if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
6291 ac_cpu_pentiumpro=yes
6292 else
6293 ac_cpu_pentiumpro=no
6294 fi
6295 rm -f conftest*
6296
6297 fi
6298 echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
6299 echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
6300 if test "$ac_cpu_pentiumpro" = yes; then
6301 :
6302 CPU_FLAGS=-mcpu=pentiumpro
6303 else
6304 :
6305
6306
6307 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
6308 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
6309 if test "${ac_pentiumpro+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312 echo 'void f(){}' > conftest.cpp
6313 if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
6314 ac_pentiumpro=yes
6315 else
6316 ac_pentiumpro=no
6317 fi
6318 rm -f conftest*
6319
6320 fi
6321 echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
6322 echo "${ECHO_T}$ac_pentiumpro" >&6
6323 if test "$ac_pentiumpro" = yes; then
6324 :
6325 CPU_FLAGS=-mpentiumpro
6326 else
6327 :
6328
6329 fi
6330
6331 fi
6332
6333 ;;
6334 powerpc*)
6335 cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
6336 is60x=`echo $cputype | egrep "^600-9e?$"`
6337 if test -n "$is60x"; then
6338
6339
6340 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
6341 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
6342 if test "${ac_m_cpu_60x+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345 echo 'void f(){}' > conftest.cpp
6346 if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
6347 ac_m_cpu_60x=yes
6348 else
6349 ac_m_cpu_60x=no
6350 fi
6351 rm -f conftest*
6352
6353 fi
6354 echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
6355 echo "${ECHO_T}$ac_m_cpu_60x" >&6
6356 if test "$ac_m_cpu_60x" = yes; then
6357 :
6358 CPU_FLAGS=-mcpu=$cputype
6359 else
6360 :
6361
6362 fi
6363
6364 elif test "$cputype" = 750; then
6365
6366
6367 echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
6368 echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6
6369 if test "${ac_cv_prog_gxx_2_95+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 else
6372
6373 cat > conftest.cpp <<EOF
6374 #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
6375 # if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
6376 yes;
6377 # endif
6378 #endif
6379 EOF
6380 if { ac_try='${CXX-c++} -E conftest.cpp'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382 (eval $ac_try) 2>&5
6383 ac_status=$?
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
6386 ac_cv_prog_gxx_2_95=yes
6387 else
6388 ac_cv_prog_gxx_2_95=no
6389 fi
6390
6391 fi
6392 echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
6393 echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6
6394 if test "$ac_cv_prog_gxx_2_95" = yes; then
6395 :
6396
6397
6398 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
6399 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
6400 if test "${ac_m_cpu_750+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 else
6403 echo 'void f(){}' > conftest.cpp
6404 if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
6405 ac_m_cpu_750=yes
6406 else
6407 ac_m_cpu_750=no
6408 fi
6409 rm -f conftest*
6410
6411 fi
6412 echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
6413 echo "${ECHO_T}$ac_m_cpu_750" >&6
6414 if test "$ac_m_cpu_750" = yes; then
6415 :
6416 CPU_FLAGS=-mcpu=750
6417 else
6418 :
6419
6420 fi
6421
6422 else
6423 :
6424
6425 fi
6426
6427 fi
6428 if test -z "$CPU_FLAGS"; then
6429
6430
6431 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
6432 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
6433 if test "${ac_m_cpu_powerpc+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 else
6436 echo 'void f(){}' > conftest.cpp
6437 if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
6438 ac_m_cpu_powerpc=yes
6439 else
6440 ac_m_cpu_powerpc=no
6441 fi
6442 rm -f conftest*
6443
6444 fi
6445 echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
6446 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
6447 if test "$ac_m_cpu_powerpc" = yes; then
6448 :
6449 CPU_FLAGS=-mcpu=powerpc
6450 else
6451 :
6452
6453 fi
6454
6455 fi
6456 if test -z "$CPU_FLAGS"; then
6457
6458
6459 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
6460 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
6461 if test "${ac_m_powerpc+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464 echo 'void f(){}' > conftest.cpp
6465 if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
6466 ac_m_powerpc=yes
6467 else
6468 ac_m_powerpc=no
6469 fi
6470 rm -f conftest*
6471
6472 fi
6473 echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
6474 echo "${ECHO_T}$ac_m_powerpc" >&6
6475 if test "$ac_m_powerpc" = yes; then
6476 :
6477 CPU_FLAGS=-mpowerpc
6478 else
6479 :
6480
6481 fi
6482
6483 fi
6484 esac
6485 fi
6486
6487 if test -n "$CPU_FLAGS"; then
6488 CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
6489 fi
6490
6491 if test -z "$CXXFLAGS"; then
6492 echo ""
6493 echo "**********************************************************"
6494 echo "* WARNING: Don't know the best CXXFLAGS for this system *"
6495 echo "* Use make CXXFLAGS=..., or edit the top level Makefile *"
6496 echo "* (otherwise, a default of CXXFLAGS=-O3 will be used) *"
6497 echo "**********************************************************"
6498 echo ""
6499 CXXFLAGS="-O3"
6500 fi
6501
6502
6503
6504 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
6505 echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
6506 if test "${ac_guessed_cxxflags+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509 echo 'void f(){}' > conftest.cpp
6510 if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
6511 ac_guessed_cxxflags=yes
6512 else
6513 ac_guessed_cxxflags=no
6514 fi
6515 rm -f conftest*
6516
6517 fi
6518 echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
6519 echo "${ECHO_T}$ac_guessed_cxxflags" >&6
6520 if test "$ac_guessed_cxxflags" = yes; then
6521 :
6522
6523 else
6524 :
6525
6526 echo ""
6527 echo "**********************************************************"
6528 echo "* WARNING: The guessed CXXFLAGS don't seem to work with *"
6529 echo "* your compiler. *"
6530 echo "* Use make CXXFLAGS=..., or edit the top level Makefile *"
6531 echo "**********************************************************"
6532 echo ""
6533 CXXFLAGS=""
6534
6535 fi
6536
6537
6538 fi
6539
6540
6541
6542
6543
6544 # Try to determine "good" native compiler flags if none specified on command
6545 # line
6546
6547 if test x"$F90FLAGS" = x ; then
6548 F90FLAGS=""
6549 case "${host_cpu}-${host_os}" in
6550
6551 *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
6552 F90FLAGS="-O"
6553 fi;;
6554 rs6000*-aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
6555 F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
6556 fi;;
6557 powerpc*-aix*)
6558 if test "$F90" = f90 -o "$F90" = xlf90; then
6559 F90FLAGS="-O3 -qarch=ppc -qansialias -w"
6560 echo "*******************************************************"
6561 echo "* You have AIX on an unknown powerpc system. It is *"
6562 echo "* recommended that you use *"
6563 echo "* *"
6564 echo "* F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
6565 echo "* ^^^ *"
6566 echo "* where xxx is 601, 603, 604, or whatever kind of *"
6567 echo "* PowerPC CPU you have. For more info, man xlf. *"
6568 echo "*******************************************************"
6569 fi;;
6570 *darwin*)
6571 if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then
6572 F90FLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
6573 fi;;
6574 esac
6575
6576 if test -n "$CPU_FLAGS"; then
6577 F90FLAGS="$F90FLAGS $CPU_FLAGS"
6578 fi
6579
6580 if test -z "$F90FLAGS"; then
6581 echo ""
6582 echo "**********************************************************"
6583 echo "* WARNING: Don't know the best F90FLAGS for this system *"
6584 echo "* Use make F90FLAGS=..., or edit the top level Makefile *"
6585 echo "* (otherwise, a default of F90FLAGS=-O3 will be used) *"
6586 echo "**********************************************************"
6587 echo ""
6588 F90FLAGS="-O3"
6589 fi
6590
6591
6592 echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
6593 echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
6594 if test "${ac_guessed_f90flags+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 else
6597
6598
6599
6600 ac_ext=f90
6601 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6602 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6603 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6604
6605 echo 'program main' > conftest.$ac_ext
6606 echo 'end program main' >> conftest.$ac_ext
6607 ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
6608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6609 (eval $ac_compile) 2>&5
6610 ac_status=$?
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; then
6613 ac_guessed_f90flags=yes
6614 else
6615 ac_guessed_f90flags=no
6616 fi
6617 rm -f conftest*
6618 ac_ext=c
6619 ac_cpp='$CPP $CPPFLAGS'
6620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6623
6624
6625 fi
6626 echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
6627 echo "${ECHO_T}$ac_guessed_f90flags" >&6
6628 if test "$ac_guessed_f90flags" = yes; then
6629 :
6630
6631 else
6632 :
6633
6634 echo ""
6635 echo "**********************************************************"
6636 echo "* WARNING: The guessed F90FLAGS don't seem to work with *"
6637 echo "* your compiler. *"
6638 echo "* Use make F90FLAGS=..., or edit the top level Makefile *"
6639 echo "**********************************************************"
6640 echo ""
6641 F90FLAGS=""
6642
6643 fi
6644
6645
6646 fi
6647
6648 ;;
6649 esac
6650
6651 # Find a good install program. We prefer a C program (faster),
6652 # so one script is as good as another. But avoid the broken or
6653 # incompatible versions:
6654 # SysV /etc/install, /usr/sbin/install
6655 # SunOS /usr/etc/install
6656 # IRIX /sbin/install
6657 # AIX /bin/install
6658 # AmigaOS /C/install, which installs bootblocks on floppy discs
6659 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6660 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6661 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6662 # OS/2's system install, which has a completely different semantic
6663 # ./install, which can be erroneously created by make from ./install.sh.
6664 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6665 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6666 if test -z "$INSTALL"; then
6667 if test "${ac_cv_path_install+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6672 do
6673 IFS=$as_save_IFS
6674 test -z "$as_dir" && as_dir=.
6675 # Account for people who put trailing slashes in PATH elements.
6676 case $as_dir/ in
6677 ./ | .// | /cC/* | \
6678 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6679 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6680 /usr/ucb/* ) ;;
6681 *)
6682 # OSF1 and SCO ODT 3.0 have their own names for install.
6683 # Don't use installbsd from OSF since it installs stuff as root
6684 # by default.
6685 for ac_prog in ginstall scoinst install; do
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6688 if test $ac_prog = install &&
6689 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6690 # AIX install. It has an incompatible calling convention.
6691 :
6692 elif test $ac_prog = install &&
6693 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6694 # program-specific install script used by HP pwplus--don't use.
6695 :
6696 else
6697 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6698 break 3
6699 fi
6700 fi
6701 done
6702 done
6703 ;;
6704 esac
6705 done
6706
6707
6708 fi
6709 if test "${ac_cv_path_install+set}" = set; then
6710 INSTALL=$ac_cv_path_install
6711 else
6712 # As a last resort, use the slow shell script. We don't cache a
6713 # path for INSTALL within a source directory, because that will
6714 # break other packages using the cache if that directory is
6715 # removed, or if the path is relative.
6716 INSTALL=$ac_install_sh
6717 fi
6718 fi
6719 echo "$as_me:$LINENO: result: $INSTALL" >&5
6720 echo "${ECHO_T}$INSTALL" >&6
6721
6722 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6723 # It thinks the first close brace ends the variable substitution.
6724 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6725
6726 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6727
6728 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6729
6730 echo "$as_me:$LINENO: checking whether ln -s works" >&5
6731 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6732 LN_S=$as_ln_s
6733 if test "$LN_S" = "ln -s"; then
6734 echo "$as_me:$LINENO: result: yes" >&5
6735 echo "${ECHO_T}yes" >&6
6736 else
6737 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6738 echo "${ECHO_T}no, using $LN_S" >&6
6739 fi
6740
6741 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6742 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6743 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6744 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747 cat >conftest.make <<\_ACEOF
6748 all:
6749 @echo 'ac_maketemp="$(MAKE)"'
6750 _ACEOF
6751 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6752 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6753 if test -n "$ac_maketemp"; then
6754 eval ac_cv_prog_make_${ac_make}_set=yes
6755 else
6756 eval ac_cv_prog_make_${ac_make}_set=no
6757 fi
6758 rm -f conftest.make
6759 fi
6760 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6761 echo "$as_me:$LINENO: result: yes" >&5
6762 echo "${ECHO_T}yes" >&6
6763 SET_MAKE=
6764 else
6765 echo "$as_me:$LINENO: result: no" >&5
6766 echo "${ECHO_T}no" >&6
6767 SET_MAKE="MAKE=${MAKE-make}"
6768 fi
6769
6770 if test -n "$ac_tool_prefix"; then
6771 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6772 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6773 echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6775 if test "${ac_cv_prog_RANLIB+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778 if test -n "$RANLIB"; then
6779 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6780 else
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6783 do
6784 IFS=$as_save_IFS
6785 test -z "$as_dir" && as_dir=.
6786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6788 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 break 2
6791 fi
6792 done
6793 done
6794
6795 fi
6796 fi
6797 RANLIB=$ac_cv_prog_RANLIB
6798 if test -n "$RANLIB"; then
6799 echo "$as_me:$LINENO: result: $RANLIB" >&5
6800 echo "${ECHO_T}$RANLIB" >&6
6801 else
6802 echo "$as_me:$LINENO: result: no" >&5
6803 echo "${ECHO_T}no" >&6
6804 fi
6805
6806 fi
6807 if test -z "$ac_cv_prog_RANLIB"; then
6808 ac_ct_RANLIB=$RANLIB
6809 # Extract the first word of "ranlib", so it can be a program name with args.
6810 set dummy ranlib; ac_word=$2
6811 echo "$as_me:$LINENO: checking for $ac_word" >&5
6812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6813 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816 if test -n "$ac_ct_RANLIB"; then
6817 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6826 ac_cv_prog_ac_ct_RANLIB="ranlib"
6827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6829 fi
6830 done
6831 done
6832
6833 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6834 fi
6835 fi
6836 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6837 if test -n "$ac_ct_RANLIB"; then
6838 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6839 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6840 else
6841 echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6
6843 fi
6844
6845 RANLIB=$ac_ct_RANLIB
6846 else
6847 RANLIB="$ac_cv_prog_RANLIB"
6848 fi
6849
6850 for ac_prog in 'bison -y' byacc
6851 do
6852 # Extract the first word of "$ac_prog", so it can be a program name with args.
6853 set dummy $ac_prog; ac_word=$2
6854 echo "$as_me:$LINENO: checking for $ac_word" >&5
6855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6856 if test "${ac_cv_prog_YACC+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859 if test -n "$YACC"; then
6860 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865 IFS=$as_save_IFS
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869 ac_cv_prog_YACC="$ac_prog"
6870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 break 2
6872 fi
6873 done
6874 done
6875
6876 fi
6877 fi
6878 YACC=$ac_cv_prog_YACC
6879 if test -n "$YACC"; then
6880 echo "$as_me:$LINENO: result: $YACC" >&5
6881 echo "${ECHO_T}$YACC" >&6
6882 else
6883 echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6
6885 fi
6886
6887 test -n "$YACC" && break
6888 done
6889 test -n "$YACC" || YACC="yacc"
6890
6891 for ac_prog in flex lex
6892 do
6893 # Extract the first word of "$ac_prog", so it can be a program name with args.
6894 set dummy $ac_prog; ac_word=$2
6895 echo "$as_me:$LINENO: checking for $ac_word" >&5
6896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6897 if test "${ac_cv_prog_LEX+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 else
6900 if test -n "$LEX"; then
6901 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6902 else
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 for as_dir in $PATH
6905 do
6906 IFS=$as_save_IFS
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6910 ac_cv_prog_LEX="$ac_prog"
6911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 break 2
6913 fi
6914 done
6915 done
6916
6917 fi
6918 fi
6919 LEX=$ac_cv_prog_LEX
6920 if test -n "$LEX"; then
6921 echo "$as_me:$LINENO: result: $LEX" >&5
6922 echo "${ECHO_T}$LEX" >&6
6923 else
6924 echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6
6926 fi
6927
6928 test -n "$LEX" && break
6929 done
6930 test -n "$LEX" || LEX=":"
6931
6932 if test -z "$LEXLIB"
6933 then
6934 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6935 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
6936 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939 ac_check_lib_save_LIBS=$LIBS
6940 LIBS="-lfl $LIBS"
6941 cat >conftest.$ac_ext <<_ACEOF
6942 /* confdefs.h. */
6943 _ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6947
6948 /* Override any gcc2 internal prototype to avoid an error. */
6949 #ifdef __cplusplus
6950 extern "C"
6951 #endif
6952 /* We use char because int might match the return type of a gcc2
6953 builtin and then its argument prototype would still apply. */
6954 char yywrap ();
6955 int
6956 main ()
6957 {
6958 yywrap ();
6959 ;
6960 return 0;
6961 }
6962 _ACEOF
6963 rm -f conftest.$ac_objext conftest$ac_exeext
6964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6965 (eval $ac_link) 2>conftest.er1
6966 ac_status=$?
6967 grep -v '^ *+' conftest.er1 >conftest.err
6968 rm -f conftest.er1
6969 cat conftest.err >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } &&
6972 { ac_try='test -z "$ac_c_werror_flag"
6973 || test ! -s conftest.err'
6974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6975 (eval $ac_try) 2>&5
6976 ac_status=$?
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); }; } &&
6979 { ac_try='test -s conftest$ac_exeext'
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 (eval $ac_try) 2>&5
6982 ac_status=$?
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; }; then
6985 ac_cv_lib_fl_yywrap=yes
6986 else
6987 echo "$as_me: failed program was:" >&5
6988 sed 's/^/| /' conftest.$ac_ext >&5
6989
6990 ac_cv_lib_fl_yywrap=no
6991 fi
6992 rm -f conftest.err conftest.$ac_objext \
6993 conftest$ac_exeext conftest.$ac_ext
6994 LIBS=$ac_check_lib_save_LIBS
6995 fi
6996 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6997 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
6998 if test $ac_cv_lib_fl_yywrap = yes; then
6999 LEXLIB="-lfl"
7000 else
7001 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
7002 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
7003 if test "${ac_cv_lib_l_yywrap+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7005 else
7006 ac_check_lib_save_LIBS=$LIBS
7007 LIBS="-ll $LIBS"
7008 cat >conftest.$ac_ext <<_ACEOF
7009 /* confdefs.h. */
7010 _ACEOF
7011 cat confdefs.h >>conftest.$ac_ext
7012 cat >>conftest.$ac_ext <<_ACEOF
7013 /* end confdefs.h. */
7014
7015 /* Override any gcc2 internal prototype to avoid an error. */
7016 #ifdef __cplusplus
7017 extern "C"
7018 #endif
7019 /* We use char because int might match the return type of a gcc2
7020 builtin and then its argument prototype would still apply. */
7021 char yywrap ();
7022 int
7023 main ()
7024 {
7025 yywrap ();
7026 ;
7027 return 0;
7028 }
7029 _ACEOF
7030 rm -f conftest.$ac_objext conftest$ac_exeext
7031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7032 (eval $ac_link) 2>conftest.er1
7033 ac_status=$?
7034 grep -v '^ *+' conftest.er1 >conftest.err
7035 rm -f conftest.er1
7036 cat conftest.err >&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } &&
7039 { ac_try='test -z "$ac_c_werror_flag"
7040 || test ! -s conftest.err'
7041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042 (eval $ac_try) 2>&5
7043 ac_status=$?
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); }; } &&
7046 { ac_try='test -s conftest$ac_exeext'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 (eval $ac_try) 2>&5
7049 ac_status=$?
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; }; then
7052 ac_cv_lib_l_yywrap=yes
7053 else
7054 echo "$as_me: failed program was:" >&5
7055 sed 's/^/| /' conftest.$ac_ext >&5
7056
7057 ac_cv_lib_l_yywrap=no
7058 fi
7059 rm -f conftest.err conftest.$ac_objext \
7060 conftest$ac_exeext conftest.$ac_ext
7061 LIBS=$ac_check_lib_save_LIBS
7062 fi
7063 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
7064 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
7065 if test $ac_cv_lib_l_yywrap = yes; then
7066 LEXLIB="-ll"
7067 fi
7068
7069 fi
7070
7071 fi
7072
7073 if test "x$LEX" != "x:"; then
7074 echo "$as_me:$LINENO: checking lex output file root" >&5
7075 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
7076 if test "${ac_cv_prog_lex_root+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 else
7079 # The minimal lex program is just a single line: %%. But some broken lexes
7080 # (Solaris, I think it was) want two %% lines, so accommodate them.
7081 cat >conftest.l <<_ACEOF
7082 %%
7083 %%
7084 _ACEOF
7085 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
7086 (eval $LEX conftest.l) 2>&5
7087 ac_status=$?
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }
7090 if test -f lex.yy.c; then
7091 ac_cv_prog_lex_root=lex.yy
7092 elif test -f lexyy.c; then
7093 ac_cv_prog_lex_root=lexyy
7094 else
7095 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
7096 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
7097 { (exit 1); exit 1; }; }
7098 fi
7099 fi
7100 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
7101 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
7102 rm -f conftest.l
7103 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7104
7105 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
7106 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
7107 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110 # POSIX says lex can declare yytext either as a pointer or an array; the
7111 # default is implementation-dependent. Figure out which it is, since
7112 # not all implementations provide the %pointer and %array declarations.
7113 ac_cv_prog_lex_yytext_pointer=no
7114 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
7115 ac_save_LIBS=$LIBS
7116 LIBS="$LIBS $LEXLIB"
7117 cat >conftest.$ac_ext <<_ACEOF
7118 `cat $LEX_OUTPUT_ROOT.c`
7119 _ACEOF
7120 rm -f conftest.$ac_objext conftest$ac_exeext
7121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7122 (eval $ac_link) 2>conftest.er1
7123 ac_status=$?
7124 grep -v '^ *+' conftest.er1 >conftest.err
7125 rm -f conftest.er1
7126 cat conftest.err >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } &&
7129 { ac_try='test -z "$ac_c_werror_flag"
7130 || test ! -s conftest.err'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 (eval $ac_try) 2>&5
7133 ac_status=$?
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; } &&
7136 { ac_try='test -s conftest$ac_exeext'
7137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 (eval $ac_try) 2>&5
7139 ac_status=$?
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); }; }; then
7142 ac_cv_prog_lex_yytext_pointer=yes
7143 else
7144 echo "$as_me: failed program was:" >&5
7145 sed 's/^/| /' conftest.$ac_ext >&5
7146
7147 fi
7148 rm -f conftest.err conftest.$ac_objext \
7149 conftest$ac_exeext conftest.$ac_ext
7150 LIBS=$ac_save_LIBS
7151 rm -f "${LEX_OUTPUT_ROOT}.c"
7152
7153 fi
7154 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
7155 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
7156 if test $ac_cv_prog_lex_yytext_pointer = yes; then
7157
7158 cat >>confdefs.h <<\_ACEOF
7159 #define YYTEXT_POINTER 1
7160 _ACEOF
7161
7162 fi
7163
7164 fi
7165 # Extract the first word of "ar", so it can be a program name with args.
7166 set dummy ar; ac_word=$2
7167 echo "$as_me:$LINENO: checking for $ac_word" >&5
7168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7169 if test "${ac_cv_prog_AR+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172 if test -n "$AR"; then
7173 ac_cv_prog_AR="$AR" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178 IFS=$as_save_IFS
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7182 ac_cv_prog_AR="ar"
7183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 break 2
7185 fi
7186 done
7187 done
7188
7189 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
7190 fi
7191 fi
7192 AR=$ac_cv_prog_AR
7193 if test -n "$AR"; then
7194 echo "$as_me:$LINENO: result: $AR" >&5
7195 echo "${ECHO_T}$AR" >&6
7196 else
7197 echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6
7199 fi
7200
7201 if test "$AR" = "NONE"; then
7202 { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
7203 echo "$as_me: error: --> Can't find \`ar'!" >&2;}
7204 { (exit 1); exit 1; }; }
7205 cat >confcache <<\_ACEOF
7206 # This file is a shell script that caches the results of configure
7207 # tests run on this system so they can be shared between configure
7208 # scripts and configure runs, see configure's option --config-cache.
7209 # It is not useful on other systems. If it contains results you don't
7210 # want to keep, you may remove or edit it.
7211 #
7212 # config.status only pays attention to the cache file if you give it
7213 # the --recheck option to rerun configure.
7214 #
7215 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7216 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7217 # following values.
7218
7219 _ACEOF
7220
7221 # The following way of writing the cache mishandles newlines in values,
7222 # but we know of no workaround that is simple, portable, and efficient.
7223 # So, don't put newlines in cache variables' values.
7224 # Ultrix sh set writes to stderr and can't be redirected directly,
7225 # and sets the high bit in the cache file unless we assign to the vars.
7226 {
7227 (set) 2>&1 |
7228 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7229 *ac_space=\ *)
7230 # `set' does not quote correctly, so add quotes (double-quote
7231 # substitution turns \\\\ into \\, and sed turns \\ into \).
7232 sed -n \
7233 "s/'/'\\\\''/g;
7234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7235 ;;
7236 *)
7237 # `set' quotes correctly as required by POSIX, so do not add quotes.
7238 sed -n \
7239 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7240 ;;
7241 esac;
7242 } |
7243 sed '
7244 t clear
7245 : clear
7246 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7247 t end
7248 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7249 : end' >>confcache
7250 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7251 if test -w $cache_file; then
7252 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7253 cat confcache >$cache_file
7254 else
7255 echo "not updating unwritable cache $cache_file"
7256 fi
7257 fi
7258 rm -f confcache
7259 exit 1
7260 fi
7261
7262 # Extract the first word of "ps", so it can be a program name with args.
7263 set dummy ps; ac_word=$2
7264 echo "$as_me:$LINENO: checking for $ac_word" >&5
7265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7266 if test "${ac_cv_path_PS+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 else
7269 case $PS in
7270 [\\/]* | ?:[\\/]*)
7271 ac_cv_path_PS="$PS" # Let the user override the test with a path.
7272 ;;
7273 *)
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 for as_dir in $PATH
7276 do
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7281 ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
7282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 break 2
7284 fi
7285 done
7286 done
7287
7288 ;;
7289 esac
7290 fi
7291 PS=$ac_cv_path_PS
7292
7293 if test -n "$PS"; then
7294 echo "$as_me:$LINENO: result: $PS" >&5
7295 echo "${ECHO_T}$PS" >&6
7296 else
7297 echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6
7299 fi
7300
7301 echo "$as_me:$LINENO: checking for POSIX or BSD ps syntax" >&5
7302 echo $ECHO_N "checking for POSIX or BSD ps syntax... $ECHO_C" >&6
7303 if test "${ac_cv_prog_ps_syntax+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306
7307 if $PS ax -o rss > /dev/null 2>&1; then
7308 ac_cv_prog_ps_ax=yes
7309 else
7310 ac_cv_prog_ps_ax=no
7311 fi
7312 if $PS -ef -o rss > /dev/null 2>&1; then
7313 ac_cv_prog_ps_ef=yes
7314 else
7315 ac_cv_prog_ps_ef=no
7316 fi
7317 if test "$ac_cv_prog_ps_ax" = yes; then
7318 ac_cv_prog_ps_syntax=BSD
7319 else
7320 if test "$ac_cv_prog_ps_ef" = yes; then
7321 ac_cv_prog_ps_syntax=POSIX
7322 else
7323 { { echo "$as_me:$LINENO: error: Could not determine ps syntax" >&5
7324 echo "$as_me: error: Could not determine ps syntax" >&2;}
7325 { (exit 1); exit 1; }; }
7326 fi
7327 fi
7328
7329 fi
7330 echo "$as_me:$LINENO: result: $ac_cv_prog_ps_syntax" >&5
7331 echo "${ECHO_T}$ac_cv_prog_ps_syntax" >&6
7332
7333
7334 cat >>confdefs.h <<_ACEOF
7335 #define PSCOMMAND $PS
7336 _ACEOF
7337
7338
7339 if test "$ac_cv_prog_ps_syntax" = BSD; then
7340 cat >>confdefs.h <<\_ACEOF
7341 #define PSTYPE_IS_BSD 1
7342 _ACEOF
7343
7344 else
7345 if test "$ac_cv_prog_ps_syntax" = POSIX; then
7346 cat >>confdefs.h <<\_ACEOF
7347 #define PSTYPE_IS_POSIX 1
7348 _ACEOF
7349
7350 else
7351 { { echo "$as_me:$LINENO: error: Unknown ps syntax type!" >&5
7352 echo "$as_me: error: Unknown ps syntax type!" >&2;}
7353 { (exit 1); exit 1; }; }
7354 fi
7355 fi
7356
7357
7358 # Check whether --with-mpi or --without-mpi was given.
7359 if test "${with_mpi+set}" = set; then
7360 withval="$with_mpi"
7361 with_mpi=$withval
7362 else
7363 with_mpi="no"
7364 fi;
7365
7366 case "x$with_mpi" in
7367 xyes | "x") USE_MPI=yes;;
7368 xno) USE_MPI=no ;;
7369 *) MPI="$with_mpi"; USE_MPI=yes ;;
7370 esac
7371 if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then
7372 MPI="/usr/local"
7373 fi
7374 if test "$USE_MPI" = "yes"; then
7375
7376
7377 # Set variables...
7378 MPI_LIB_DIR="$MPI/lib"
7379 MPI_INC_DIR="$MPI/include"
7380
7381
7382
7383 echo "$as_me:$LINENO: checking for mpi.h" >&5
7384 echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
7385 have_mpi_h=0
7386 echo '#include <mpi.h>' > conftest.cc
7387 if test -z "`${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1`"; then
7388 echo "$as_me:$LINENO: result: yes" >&5
7389 echo "${ECHO_T}yes" >&6
7390 have_mpi_h=1
7391 else
7392 echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
7393 echo "${ECHO_T}no! Check MPI include paths" >&6
7394 USE_MPI="no"
7395 fi
7396 rm -f conftest*
7397 if test "$have_mpi_h" = 1; then
7398
7399 cat >>confdefs.h <<\_ACEOF
7400 #define HAVE_MPI_H 1
7401 _ACEOF
7402
7403 fi
7404
7405 echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
7406 echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
7407 have_mpif_h=0
7408 rm -f conftest*
7409 cat >conftest.f90 <<EOF
7410 program main
7411 include 'mpif.h'
7412 end
7413 EOF
7414 if $F90 -I$MPI_INC_DIR -c conftest.f90 > conftest.out 2>&1 ; then
7415 echo "$as_me:$LINENO: result: yes" >&5
7416 echo "${ECHO_T}yes" >&6
7417 MPI_F90_INC="$MPI_INC_DIR"
7418 have_mpif_h=1
7419 else
7420 if test -s conftest.out ; then
7421 cat conftest.out >> config.log
7422 fi
7423 echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
7424 echo "${ECHO_T}no! Check MPI include paths" >&6
7425 USE_MPI="no"
7426 fi
7427 rm -f conftest*
7428
7429 if test "$have_mpif_h" = 1; then
7430
7431 cat >>confdefs.h <<\_ACEOF
7432 #define HAVE_MPIF_H 1
7433 _ACEOF
7434
7435 fi
7436
7437 ac_ext=c
7438 ac_cpp='$CPP $CPPFLAGS'
7439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7442
7443 ac_save_LDFLAGS=$LDFLAGS
7444 LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} "
7445
7446 if test x = x"$MPI_LIB"; then
7447 echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
7448 echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
7449 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 else
7452 ac_check_lib_save_LIBS=$LIBS
7453 LIBS="-lmpich $LIBS"
7454 cat >conftest.$ac_ext <<_ACEOF
7455 /* confdefs.h. */
7456 _ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7460
7461 /* Override any gcc2 internal prototype to avoid an error. */
7462 #ifdef __cplusplus
7463 extern "C"
7464 #endif
7465 /* We use char because int might match the return type of a gcc2
7466 builtin and then its argument prototype would still apply. */
7467 char MPI_Init ();
7468 int
7469 main ()
7470 {
7471 MPI_Init ();
7472 ;
7473 return 0;
7474 }
7475 _ACEOF
7476 rm -f conftest.$ac_objext conftest$ac_exeext
7477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7478 (eval $ac_link) 2>conftest.er1
7479 ac_status=$?
7480 grep -v '^ *+' conftest.er1 >conftest.err
7481 rm -f conftest.er1
7482 cat conftest.err >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } &&
7485 { ac_try='test -z "$ac_c_werror_flag"
7486 || test ! -s conftest.err'
7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 (eval $ac_try) 2>&5
7489 ac_status=$?
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; } &&
7492 { ac_try='test -s conftest$ac_exeext'
7493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 (eval $ac_try) 2>&5
7495 ac_status=$?
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); }; }; then
7498 ac_cv_lib_mpich_MPI_Init=yes
7499 else
7500 echo "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.$ac_ext >&5
7502
7503 ac_cv_lib_mpich_MPI_Init=no
7504 fi
7505 rm -f conftest.err conftest.$ac_objext \
7506 conftest$ac_exeext conftest.$ac_ext
7507 LIBS=$ac_check_lib_save_LIBS
7508 fi
7509 echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
7510 echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
7511 if test $ac_cv_lib_mpich_MPI_Init = yes; then
7512 MPI_LIB="-lmpich"
7513 fi
7514
7515 fi
7516 if test x = x"$MPI_LIB"; then
7517 echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
7518 echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
7519 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 else
7522 ac_check_lib_save_LIBS=$LIBS
7523 LIBS="-lmpi $LIBS"
7524 cat >conftest.$ac_ext <<_ACEOF
7525 /* confdefs.h. */
7526 _ACEOF
7527 cat confdefs.h >>conftest.$ac_ext
7528 cat >>conftest.$ac_ext <<_ACEOF
7529 /* end confdefs.h. */
7530
7531 /* Override any gcc2 internal prototype to avoid an error. */
7532 #ifdef __cplusplus
7533 extern "C"
7534 #endif
7535 /* We use char because int might match the return type of a gcc2
7536 builtin and then its argument prototype would still apply. */
7537 char MPI_Init ();
7538 int
7539 main ()
7540 {
7541 MPI_Init ();
7542 ;
7543 return 0;
7544 }
7545 _ACEOF
7546 rm -f conftest.$ac_objext conftest$ac_exeext
7547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7548 (eval $ac_link) 2>conftest.er1
7549 ac_status=$?
7550 grep -v '^ *+' conftest.er1 >conftest.err
7551 rm -f conftest.er1
7552 cat conftest.err >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } &&
7555 { ac_try='test -z "$ac_c_werror_flag"
7556 || test ! -s conftest.err'
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558 (eval $ac_try) 2>&5
7559 ac_status=$?
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; } &&
7562 { ac_try='test -s conftest$ac_exeext'
7563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564 (eval $ac_try) 2>&5
7565 ac_status=$?
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); }; }; then
7568 ac_cv_lib_mpi_MPI_Init=yes
7569 else
7570 echo "$as_me: failed program was:" >&5
7571 sed 's/^/| /' conftest.$ac_ext >&5
7572
7573 ac_cv_lib_mpi_MPI_Init=no
7574 fi
7575 rm -f conftest.err conftest.$ac_objext \
7576 conftest$ac_exeext conftest.$ac_ext
7577 LIBS=$ac_check_lib_save_LIBS
7578 fi
7579 echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
7580 echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
7581 if test $ac_cv_lib_mpi_MPI_Init = yes; then
7582 MPI_LIB="-lmpi"
7583 fi
7584
7585 fi
7586 $as_unset ac_cv_lib_mpi_MPI_Init
7587 if test x = x"$MPI_LIB"; then
7588 echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
7589 echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
7590 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593 ac_check_lib_save_LIBS=$LIBS
7594 LIBS="-lmpi "-llam" $LIBS"
7595 cat >conftest.$ac_ext <<_ACEOF
7596 /* confdefs.h. */
7597 _ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7601
7602 /* Override any gcc2 internal prototype to avoid an error. */
7603 #ifdef __cplusplus
7604 extern "C"
7605 #endif
7606 /* We use char because int might match the return type of a gcc2
7607 builtin and then its argument prototype would still apply. */
7608 char MPI_Init ();
7609 int
7610 main ()
7611 {
7612 MPI_Init ();
7613 ;
7614 return 0;
7615 }
7616 _ACEOF
7617 rm -f conftest.$ac_objext conftest$ac_exeext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7619 (eval $ac_link) 2>conftest.er1
7620 ac_status=$?
7621 grep -v '^ *+' conftest.er1 >conftest.err
7622 rm -f conftest.er1
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } &&
7626 { ac_try='test -z "$ac_c_werror_flag"
7627 || test ! -s conftest.err'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 (eval $ac_try) 2>&5
7630 ac_status=$?
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; } &&
7633 { ac_try='test -s conftest$ac_exeext'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 (eval $ac_try) 2>&5
7636 ac_status=$?
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; }; then
7639 ac_cv_lib_mpi_MPI_Init=yes
7640 else
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7643
7644 ac_cv_lib_mpi_MPI_Init=no
7645 fi
7646 rm -f conftest.err conftest.$ac_objext \
7647 conftest$ac_exeext conftest.$ac_ext
7648 LIBS=$ac_check_lib_save_LIBS
7649 fi
7650 echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
7651 echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
7652 if test $ac_cv_lib_mpi_MPI_Init = yes; then
7653 MPI_LIB="-lmpi -llam"
7654 fi
7655
7656 fi
7657 $as_unset ac_cv_lib_mpich_MPI_Init
7658 if test x = x"$MPI_LIB"; then
7659 echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
7660 echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
7661 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 else
7664 ac_check_lib_save_LIBS=$LIBS
7665 LIBS="-lmpich "-lpmpich" $LIBS"
7666 cat >conftest.$ac_ext <<_ACEOF
7667 /* confdefs.h. */
7668 _ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h. */
7672
7673 /* Override any gcc2 internal prototype to avoid an error. */
7674 #ifdef __cplusplus
7675 extern "C"
7676 #endif
7677 /* We use char because int might match the return type of a gcc2
7678 builtin and then its argument prototype would still apply. */
7679 char MPI_Init ();
7680 int
7681 main ()
7682 {
7683 MPI_Init ();
7684 ;
7685 return 0;
7686 }
7687 _ACEOF
7688 rm -f conftest.$ac_objext conftest$ac_exeext
7689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7690 (eval $ac_link) 2>conftest.er1
7691 ac_status=$?
7692 grep -v '^ *+' conftest.er1 >conftest.err
7693 rm -f conftest.er1
7694 cat conftest.err >&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); } &&
7697 { ac_try='test -z "$ac_c_werror_flag"
7698 || test ! -s conftest.err'
7699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700 (eval $ac_try) 2>&5
7701 ac_status=$?
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); }; } &&
7704 { ac_try='test -s conftest$ac_exeext'
7705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7706 (eval $ac_try) 2>&5
7707 ac_status=$?
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); }; }; then
7710 ac_cv_lib_mpich_MPI_Init=yes
7711 else
7712 echo "$as_me: failed program was:" >&5
7713 sed 's/^/| /' conftest.$ac_ext >&5
7714
7715 ac_cv_lib_mpich_MPI_Init=no
7716 fi
7717 rm -f conftest.err conftest.$ac_objext \
7718 conftest$ac_exeext conftest.$ac_ext
7719 LIBS=$ac_check_lib_save_LIBS
7720 fi
7721 echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
7722 echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
7723 if test $ac_cv_lib_mpich_MPI_Init = yes; then
7724 MPI_LIB="-lmpich -lpmpich"
7725 fi
7726
7727 fi
7728
7729 $as_unset ac_cv_lib_mpi_MPI_Init
7730 if test x = x"$MPI_LIB"; then
7731 echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
7732 echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
7733 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 else
7736 ac_check_lib_save_LIBS=$LIBS
7737 LIBS="-lmpi -llam -lpthread $LIBS"
7738 cat >conftest.$ac_ext <<_ACEOF
7739 /* confdefs.h. */
7740 _ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7744
7745 /* Override any gcc2 internal prototype to avoid an error. */
7746 #ifdef __cplusplus
7747 extern "C"
7748 #endif
7749 /* We use char because int might match the return type of a gcc2
7750 builtin and then its argument prototype would still apply. */
7751 char MPI_Init ();
7752 int
7753 main ()
7754 {
7755 MPI_Init ();
7756 ;
7757 return 0;
7758 }
7759 _ACEOF
7760 rm -f conftest.$ac_objext conftest$ac_exeext
7761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7762 (eval $ac_link) 2>conftest.er1
7763 ac_status=$?
7764 grep -v '^ *+' conftest.er1 >conftest.err
7765 rm -f conftest.er1
7766 cat conftest.err >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } &&
7769 { ac_try='test -z "$ac_c_werror_flag"
7770 || test ! -s conftest.err'
7771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772 (eval $ac_try) 2>&5
7773 ac_status=$?
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); }; } &&
7776 { ac_try='test -s conftest$ac_exeext'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 (eval $ac_try) 2>&5
7779 ac_status=$?
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; }; then
7782 ac_cv_lib_mpi_MPI_Init=yes
7783 else
7784 echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7786
7787 ac_cv_lib_mpi_MPI_Init=no
7788 fi
7789 rm -f conftest.err conftest.$ac_objext \
7790 conftest$ac_exeext conftest.$ac_ext
7791 LIBS=$ac_check_lib_save_LIBS
7792 fi
7793 echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
7794 echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
7795 if test $ac_cv_lib_mpi_MPI_Init = yes; then
7796 MPI_LIB="-lmpi -llam -lpthread"
7797 else
7798
7799 { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
7800 echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
7801 { (exit 1); exit 1; }; }
7802 USE_MPI="no"
7803
7804 fi
7805
7806 fi
7807
7808
7809
7810 echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
7811 echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6
7812 MPI_F90_LIB=""
7813 if test -f "$MPI_LIB_DIR/libfmpich.a" ; then
7814 MPI_F90_LIB="-lfmpich"
7815 elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then
7816 MPI_F90_LIB="-llamf77mpi"
7817 else
7818 MPI_F90_LIB=" "
7819 fi
7820 echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5
7821 echo "${ECHO_T}found $MPI_F90_LIB" >&6
7822
7823
7824 fi
7825
7826
7827
7828
7829 USE_CGAL=no
7830 cgal_makefile=auto
7831
7832 # Check whether --with-cgal-makefile or --without-cgal-makefile was given.
7833 if test "${with_cgal_makefile+set}" = set; then
7834 withval="$with_cgal_makefile"
7835 cgal_makefile="$withval"
7836 fi;
7837
7838 if test "x$cgal_makefile" != xno; then
7839
7840 if test "x$cgal_makefile" = xauto -a "x$CGAL_MAKEFILE" != x; then
7841 cgal_makefile="$CGAL_MAKEFILE"
7842 fi
7843
7844 echo "cgal_makefile $cgal_makefile"
7845
7846 if test -f "$cgal_makefile"; then
7847
7848 cat >config.tmp.Makefile <<EOF
7849 include $cgal_makefile
7850 default:
7851 @echo CGAL_OS_COMPILER=\"\${CGAL_OS_COMPILER}\" >config.tmp.cgalvariables
7852 @echo CGAL_INCLDIR=\"\${CGAL_INCL_DIR}\" >>config.tmp.cgalvariables
7853 @echo CGAL_INCLCONFDIR=\"\${CGAL_INCL_CONF_DIR}\" >>config.tmp.cgalvariables
7854 @echo CGAL_LIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables
7855 @echo CGAL_RLIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables
7856 @echo CGAL_CXXFLAGS=\"\${CGAL_CXXFLAGS}\" >>config.tmp.cgalvariables
7857 @echo GMP_INCLDIR=\"\${GMP_INCL_DIR}\" >>config.tmp.cgalvariables
7858 @echo GMP_LIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables
7859 @echo GMP_RLIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables
7860 @echo LEDA_INCLDIR=\"\${LEDA_INCL_DIR}\" >>config.tmp.cgalvariables
7861 @echo LEDA_LIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables
7862 @echo LEDA_RLIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables
7863 EOF
7864
7865 make -s -f config.tmp.Makefile
7866 . config.tmp.cgalvariables
7867
7868 rm -f config.tmp.Makefile config.tmp.cgalvariables
7869
7870 if test "x$CGAL_INCLDIR" = "x"; then
7871 CGAL_INCLDIR=""
7872 fi
7873
7874 if test "x$CGAL_LIBDIR" = "x"; then
7875 CGAL_LIBDIR=""
7876 fi
7877
7878 if test "x$CGAL_RLIBDIR" = "x"; then
7879 CGAL_RLIBDIR=""
7880 fi
7881
7882 if test "x$LEDA_INCLDIR" = "x"; then
7883 LEDA_INCLDIR=""
7884 fi
7885
7886 if test "x$LEDA_LIBDIR" = "x"; then
7887 LEDA_LIBDIR=""
7888 fi
7889
7890 if test "x$LEDA_RLIBDIR" = "x"; then
7891 LEDA_RLIBDIR=""
7892 fi
7893
7894 if test "x$GMP_INCLDIR" = "x"; then
7895 GMP_INCLDIR=""
7896 fi
7897
7898 if test "x$GMP_LIBDIR" = "x"; then
7899 GMP_LIBDIR=""
7900 fi
7901
7902 if test "x$GMP_RLIBDIR" = "x"; then
7903 GMP_RLIBDIR=""
7904 fi
7905
7906 echo "CGAL_OS_COMPILER $CGAL_OS_COMPILER"
7907 echo "CGAL_INCLDIR $CGAL_INCLDIR"
7908 echo "CGAL_INCLCONFDIR $CGAL_INCLCONFDIR"
7909 echo "CGAL_LIBDIR $CGAL_LIBDIR"
7910 echo "CGAL_CXXFLAGS $CGAL_CXXFLAGS"
7911 echo "LEDA_INCLDIR $LEDA_INCLDIR"
7912 echo "LEDA_LIBDIR $LEDA_LIBDIR"
7913 echo "GMP_INCLDIR $GMP_INCLDIR"
7914 echo "GMP_LIBDIR $GMP_LIBDIR"
7915
7916 ac_ext=cc
7917 ac_cpp='$CXXCPP $CPPFLAGS'
7918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7921
7922 save_CXXFLAGS="$CXXFLAGS"
7923 CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR"
7924
7925 ac_ext=cc
7926 ac_cpp='$CXXCPP $CPPFLAGS'
7927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7930 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7931 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7932 if test -z "$CXXCPP"; then
7933 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7934 echo $ECHO_N "(cached) $ECHO_C" >&6
7935 else
7936 # Double quotes because CXXCPP needs to be expanded
7937 for CXXCPP in "$CXX -E" "/lib/cpp"
7938 do
7939 ac_preproc_ok=false
7940 for ac_cxx_preproc_warn_flag in '' yes
7941 do
7942 # Use a header file that comes with gcc, so configuring glibc
7943 # with a fresh cross-compiler works.
7944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7945 # <limits.h> exists even on freestanding compilers.
7946 # On the NeXT, cc -E runs the code through the compiler's parser,
7947 # not just through cpp. "Syntax error" is here to catch this case.
7948 cat >conftest.$ac_ext <<_ACEOF
7949 /* confdefs.h. */
7950 _ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h. */
7954 #ifdef __STDC__
7955 # include <limits.h>
7956 #else
7957 # include <assert.h>
7958 #endif
7959 Syntax error
7960 _ACEOF
7961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7963 ac_status=$?
7964 grep -v '^ *+' conftest.er1 >conftest.err
7965 rm -f conftest.er1
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } >/dev/null; then
7969 if test -s conftest.err; then
7970 ac_cpp_err=$ac_cxx_preproc_warn_flag
7971 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7972 else
7973 ac_cpp_err=
7974 fi
7975 else
7976 ac_cpp_err=yes
7977 fi
7978 if test -z "$ac_cpp_err"; then
7979 :
7980 else
7981 echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.$ac_ext >&5
7983
7984 # Broken: fails on valid input.
7985 continue
7986 fi
7987 rm -f conftest.err conftest.$ac_ext
7988
7989 # OK, works on sane cases. Now check whether non-existent headers
7990 # can be detected and how.
7991 cat >conftest.$ac_ext <<_ACEOF
7992 /* confdefs.h. */
7993 _ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7997 #include <ac_nonexistent.h>
7998 _ACEOF
7999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8001 ac_status=$?
8002 grep -v '^ *+' conftest.er1 >conftest.err
8003 rm -f conftest.er1
8004 cat conftest.err >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } >/dev/null; then
8007 if test -s conftest.err; then
8008 ac_cpp_err=$ac_cxx_preproc_warn_flag
8009 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8010 else
8011 ac_cpp_err=
8012 fi
8013 else
8014 ac_cpp_err=yes
8015 fi
8016 if test -z "$ac_cpp_err"; then
8017 # Broken: success on invalid input.
8018 continue
8019 else
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8022
8023 # Passes both tests.
8024 ac_preproc_ok=:
8025 break
8026 fi
8027 rm -f conftest.err conftest.$ac_ext
8028
8029 done
8030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8031 rm -f conftest.err conftest.$ac_ext
8032 if $ac_preproc_ok; then
8033 break
8034 fi
8035
8036 done
8037 ac_cv_prog_CXXCPP=$CXXCPP
8038
8039 fi
8040 CXXCPP=$ac_cv_prog_CXXCPP
8041 else
8042 ac_cv_prog_CXXCPP=$CXXCPP
8043 fi
8044 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8045 echo "${ECHO_T}$CXXCPP" >&6
8046 ac_preproc_ok=false
8047 for ac_cxx_preproc_warn_flag in '' yes
8048 do
8049 # Use a header file that comes with gcc, so configuring glibc
8050 # with a fresh cross-compiler works.
8051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8052 # <limits.h> exists even on freestanding compilers.
8053 # On the NeXT, cc -E runs the code through the compiler's parser,
8054 # not just through cpp. "Syntax error" is here to catch this case.
8055 cat >conftest.$ac_ext <<_ACEOF
8056 /* confdefs.h. */
8057 _ACEOF
8058 cat confdefs.h >>conftest.$ac_ext
8059 cat >>conftest.$ac_ext <<_ACEOF
8060 /* end confdefs.h. */
8061 #ifdef __STDC__
8062 # include <limits.h>
8063 #else
8064 # include <assert.h>
8065 #endif
8066 Syntax error
8067 _ACEOF
8068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8070 ac_status=$?
8071 grep -v '^ *+' conftest.er1 >conftest.err
8072 rm -f conftest.er1
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } >/dev/null; then
8076 if test -s conftest.err; then
8077 ac_cpp_err=$ac_cxx_preproc_warn_flag
8078 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8079 else
8080 ac_cpp_err=
8081 fi
8082 else
8083 ac_cpp_err=yes
8084 fi
8085 if test -z "$ac_cpp_err"; then
8086 :
8087 else
8088 echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8090
8091 # Broken: fails on valid input.
8092 continue
8093 fi
8094 rm -f conftest.err conftest.$ac_ext
8095
8096 # OK, works on sane cases. Now check whether non-existent headers
8097 # can be detected and how.
8098 cat >conftest.$ac_ext <<_ACEOF
8099 /* confdefs.h. */
8100 _ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h. */
8104 #include <ac_nonexistent.h>
8105 _ACEOF
8106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8108 ac_status=$?
8109 grep -v '^ *+' conftest.er1 >conftest.err
8110 rm -f conftest.er1
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } >/dev/null; then
8114 if test -s conftest.err; then
8115 ac_cpp_err=$ac_cxx_preproc_warn_flag
8116 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8117 else
8118 ac_cpp_err=
8119 fi
8120 else
8121 ac_cpp_err=yes
8122 fi
8123 if test -z "$ac_cpp_err"; then
8124 # Broken: success on invalid input.
8125 continue
8126 else
8127 echo "$as_me: failed program was:" >&5
8128 sed 's/^/| /' conftest.$ac_ext >&5
8129
8130 # Passes both tests.
8131 ac_preproc_ok=:
8132 break
8133 fi
8134 rm -f conftest.err conftest.$ac_ext
8135
8136 done
8137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8138 rm -f conftest.err conftest.$ac_ext
8139 if $ac_preproc_ok; then
8140 :
8141 else
8142 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8143 See \`config.log' for more details." >&5
8144 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8145 See \`config.log' for more details." >&2;}
8146 { (exit 1); exit 1; }; }
8147 fi
8148
8149 ac_ext=cc
8150 ac_cpp='$CXXCPP $CPPFLAGS'
8151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8154
8155
8156 if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
8157 echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5
8158 echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6
8159 if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8161 fi
8162 echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5
8163 echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6
8164 else
8165 # Is the header compilable?
8166 echo "$as_me:$LINENO: checking CGAL/Cartesian.h usability" >&5
8167 echo $ECHO_N "checking CGAL/Cartesian.h usability... $ECHO_C" >&6
8168 cat >conftest.$ac_ext <<_ACEOF
8169 /* confdefs.h. */
8170 _ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h. */
8174 $ac_includes_default
8175 #include <CGAL/Cartesian.h>
8176 _ACEOF
8177 rm -f conftest.$ac_objext
8178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8179 (eval $ac_compile) 2>conftest.er1
8180 ac_status=$?
8181 grep -v '^ *+' conftest.er1 >conftest.err
8182 rm -f conftest.er1
8183 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } &&
8186 { ac_try='test -z "$ac_cxx_werror_flag"
8187 || test ! -s conftest.err'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 (eval $ac_try) 2>&5
8190 ac_status=$?
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; } &&
8193 { ac_try='test -s conftest.$ac_objext'
8194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195 (eval $ac_try) 2>&5
8196 ac_status=$?
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; }; then
8199 ac_header_compiler=yes
8200 else
8201 echo "$as_me: failed program was:" >&5
8202 sed 's/^/| /' conftest.$ac_ext >&5
8203
8204 ac_header_compiler=no
8205 fi
8206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8207 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8208 echo "${ECHO_T}$ac_header_compiler" >&6
8209
8210 # Is the header present?
8211 echo "$as_me:$LINENO: checking CGAL/Cartesian.h presence" >&5
8212 echo $ECHO_N "checking CGAL/Cartesian.h presence... $ECHO_C" >&6
8213 cat >conftest.$ac_ext <<_ACEOF
8214 /* confdefs.h. */
8215 _ACEOF
8216 cat confdefs.h >>conftest.$ac_ext
8217 cat >>conftest.$ac_ext <<_ACEOF
8218 /* end confdefs.h. */
8219 #include <CGAL/Cartesian.h>
8220 _ACEOF
8221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8223 ac_status=$?
8224 grep -v '^ *+' conftest.er1 >conftest.err
8225 rm -f conftest.er1
8226 cat conftest.err >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); } >/dev/null; then
8229 if test -s conftest.err; then
8230 ac_cpp_err=$ac_cxx_preproc_warn_flag
8231 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8232 else
8233 ac_cpp_err=
8234 fi
8235 else
8236 ac_cpp_err=yes
8237 fi
8238 if test -z "$ac_cpp_err"; then
8239 ac_header_preproc=yes
8240 else
8241 echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.$ac_ext >&5
8243
8244 ac_header_preproc=no
8245 fi
8246 rm -f conftest.err conftest.$ac_ext
8247 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8248 echo "${ECHO_T}$ac_header_preproc" >&6
8249
8250 # So? What about this header?
8251 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8252 yes:no: )
8253 { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&5
8254 echo "$as_me: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8255 { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&5
8256 echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&2;}
8257 ac_header_preproc=yes
8258 ;;
8259 no:yes:* )
8260 { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&5
8261 echo "$as_me: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&2;}
8262 { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: check for missing prerequisite headers?" >&5
8263 echo "$as_me: WARNING: CGAL/Cartesian.h: check for missing prerequisite headers?" >&2;}
8264 { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&5
8265 echo "$as_me: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&2;}
8266 { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: section \"Present But Cannot Be Compiled\"" >&5
8267 echo "$as_me: WARNING: CGAL/Cartesian.h: section \"Present But Cannot Be Compiled\"" >&2;}
8268 { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&5
8269 echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&2;}
8270 { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&5
8271 echo "$as_me: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&2;}
8272 (
8273 cat <<\_ASBOX
8274 ## ------------------------------ ##
8275 ## Report this to gezelter@nd.edu ##
8276 ## ------------------------------ ##
8277 _ASBOX
8278 ) |
8279 sed "s/^/$as_me: WARNING: /" >&2
8280 ;;
8281 esac
8282 echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5
8283 echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6
8284 if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 else
8287 ac_cv_header_CGAL_Cartesian_h=$ac_header_preproc
8288 fi
8289 echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5
8290 echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6
8291
8292 fi
8293 if test $ac_cv_header_CGAL_Cartesian_h = yes; then
8294 cgal=yes
8295 else
8296 cgal=no
8297 fi
8298
8299
8300 CXXFLAGS="$save_CXXFLAGS"
8301
8302 if test "x$cgal" = xyes; then
8303 echo "$as_me:$LINENO: checking for CGAL version" >&5
8304 echo $ECHO_N "checking for CGAL version... $ECHO_C" >&6
8305 LOCATION=${CGAL_INCLDIR}
8306 LOCATION=${LOCATION:-/usr/include}
8307 if test -f $LOCATION/CGAL/version.h; then
8308 CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/version.h | sed 's/[^0-9\.]*//g'`
8309 else
8310 CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/config.h | sed 's/[^0-9\.]*//g'`
8311 fi
8312 if echo $CGAL_VERSION | grep -q "^[3456789]"; then
8313 echo "$as_me:$LINENO: result: ($CGAL_VERSION) yes" >&5
8314 echo "${ECHO_T}($CGAL_VERSION) yes" >&6
8315 else
8316 echo "$as_me:$LINENO: result: ($CGAL_VERSION) no" >&5
8317 echo "${ECHO_T}($CGAL_VERSION) no" >&6
8318 cgal=no
8319 fi
8320 fi
8321
8322 if test "x$cgal" = xyes; then
8323 CGAL_LIBS="-lCGAL"
8324 echo "$as_me:$LINENO: checking whether CGAL uses LEDA" >&5
8325 echo $ECHO_N "checking whether CGAL uses LEDA... $ECHO_C" >&6
8326 if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_LEDA; then
8327 CGAL_USES_LEDA=yes
8328 echo "$as_me:$LINENO: result: yes" >&5
8329 echo "${ECHO_T}yes" >&6
8330 CGAL_DEFINES="-DCGAL_USE_LEDA -DLEDA_PREFIX"
8331 else
8332 echo "$as_me:$LINENO: result: no" >&5
8333 echo "${ECHO_T}no" >&6
8334 CGAL_USES_LEDA=no
8335 fi
8336
8337 echo "$as_me:$LINENO: checking whether CGAL uses GMP" >&5
8338 echo $ECHO_N "checking whether CGAL uses GMP... $ECHO_C" >&6
8339 if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_GMP; then
8340 CGAL_USES_GMP=yes
8341 echo "$as_me:$LINENO: result: yes" >&5
8342 echo "${ECHO_T}yes" >&6
8343 CGAL_DEFINES="-DCGAL_USE_GMP $CGAL_DEFINES"
8344 else
8345 echo "$as_me:$LINENO: result: no" >&5
8346 echo "${ECHO_T}no" >&6
8347 CGAL_USES_GMP=no
8348 fi
8349
8350 CGAL_LIBS="$CGAL_LIBS -lm"
8351
8352 CGAL_CXXFLAGS="-ftemplate-depth-50"
8353
8354 echo "CGAL_USES_LEDA $CGAL_USES_LEDA"
8355 echo "CGAL_USES_GMP $CGAL_USES_GMP"
8356 echo "CGAL_INCLDIR $CGAL_INCLDIR"
8357 echo "CGAL_LIBDIR $CGAL_LIBDIR"
8358 echo "CGAL_DEFINES $CGAL_DEFINES"
8359 echo "CGAL_CXXFLAGS $CGAL_CXXFLAGS"
8360 echo "CGAL_LIBS $CGAL_LIBS"
8361 fi
8362
8363 if test "x$cgal" = xyes; then
8364 save_LIBS="$LIBS"
8365 LIBS="$LIBS -L$CGAL_LIBDIR"
8366 if test "x$CGAL_USES_LEDA" = xyes; then
8367 LIBS="-lL $LIBS -L$LEDA_LIBDIR"
8368 fi
8369 # if test "x$CGAL_USES_GMP" = xyes; then
8370 # LIBS="-lgmp $LIBS $GMP_LIBDIR"
8371 # fi
8372 echo "$as_me:$LINENO: checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL" >&5
8373 echo $ECHO_N "checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL... $ECHO_C" >&6
8374 save_CXXFLAGS_CHECK_CXX_LIB="$CXXFLAGS"
8375 CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR"
8376 save_LIBS_CHECK_CXX_LIB="$LIBS"
8377 LIBS="-lCGAL $LIBS"
8378 cat >conftest.$ac_ext <<_ACEOF
8379 /* confdefs.h. */
8380 _ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 #include <CGAL/Cartesian.h>
8385 int
8386 main ()
8387 {
8388 ::CGAL::Cartesian<int>::Point_2 P
8389 ;
8390 return 0;
8391 }
8392 _ACEOF
8393 rm -f conftest.$ac_objext conftest$ac_exeext
8394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8395 (eval $ac_link) 2>conftest.er1
8396 ac_status=$?
8397 grep -v '^ *+' conftest.er1 >conftest.err
8398 rm -f conftest.er1
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try='test -z "$ac_cxx_werror_flag"
8403 || test ! -s conftest.err'
8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 (eval $ac_try) 2>&5
8406 ac_status=$?
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; } &&
8409 { ac_try='test -s conftest$ac_exeext'
8410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 (eval $ac_try) 2>&5
8412 ac_status=$?
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; }; then
8415 echo "$as_me:$LINENO: result: yes" >&5
8416 echo "${ECHO_T}yes" >&6
8417 cgal=yes
8418 else
8419 echo "$as_me: failed program was:" >&5
8420 sed 's/^/| /' conftest.$ac_ext >&5
8421
8422 echo "$as_me:$LINENO: result: no" >&5
8423 echo "${ECHO_T}no" >&6
8424 cgal=no
8425 fi
8426 rm -f conftest.err conftest.$ac_objext \
8427 conftest$ac_exeext conftest.$ac_ext
8428 CXXFLAGS="$save_CXXFLAGS_CHECK_CXX_LIB"
8429 LIBS="$save_LIBS_CHECK_CXX_LIB"
8430 LIBS="$save_LIBS"
8431 fi
8432
8433 fi
8434 ac_ext=c
8435 ac_cpp='$CPP $CPPFLAGS'
8436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8439
8440
8441 fi
8442
8443 if test "x$cgal" = xyes; then
8444 USE_CGAL=yes
8445
8446 cat >>confdefs.h <<\_ACEOF
8447 #define HAVE_CGAL 1
8448 _ACEOF
8449
8450
8451 cat >>confdefs.h <<_ACEOF
8452 #define CGAL_VERSION $CGAL_VERSION
8453 _ACEOF
8454
8455 if ! echo $CGAL_VERSION | grep -q "^3.0"; then
8456 { echo "$as_me:$LINENO: WARNING: *****************************************************" >&5
8457 echo "$as_me: WARNING: *****************************************************" >&2;}
8458 { echo "$as_me:$LINENO: WARNING: *** Warning: Your CGAL version is newer than the ***" >&5
8459 echo "$as_me: WARNING: *** Warning: Your CGAL version is newer than the ***" >&2;}
8460 { echo "$as_me:$LINENO: WARNING: *** supported versions. It may still work though. ***" >&5
8461 echo "$as_me: WARNING: *** supported versions. It may still work though. ***" >&2;}
8462 { echo "$as_me:$LINENO: WARNING: *****************************************************" >&5
8463 echo "$as_me: WARNING: *****************************************************" >&2;}
8464 fi
8465 else
8466 if test "x$cgal_makefile" != xno; then
8467 { echo "$as_me:$LINENO: WARNING: *********************************************************" >&5
8468 echo "$as_me: WARNING: *********************************************************" >&2;}
8469 { echo "$as_me:$LINENO: WARNING: *** Warning: CGAL was not found. ***" >&5
8470 echo "$as_me: WARNING: *** Warning: CGAL was not found. ***" >&2;}
8471 { echo "$as_me:$LINENO: WARNING: *** Run \"configure\" with the appropriate options. ***" >&5
8472 echo "$as_me: WARNING: *** Run \"configure\" with the appropriate options. ***" >&2;}
8473 { echo "$as_me:$LINENO: WARNING: *** CGAL support will be disabled. ***" >&5
8474 echo "$as_me: WARNING: *** CGAL support will be disabled. ***" >&2;}
8475 { echo "$as_me:$LINENO: WARNING: *********************************************************" >&5
8476 echo "$as_me: WARNING: *********************************************************" >&2;}
8477 fi
8478 CGAL_INCLDIR=
8479 CGAL_LIBDIR=
8480 CGAL_RLIBDIR=
8481 CGAL_DEFINES=
8482 CGAL_CXXFLAGS=
8483 CGAL_LIBS=
8484 fi
8485
8486
8487 CGAL_INC_DIR="${CGAL_INCLDIR} ${CGAL_INCLCONFDIR}"
8488
8489 CGAL_LIB_DIR=${CGAL_LIBDIR}
8490
8491 CGAL_RLIB_DIR=${CGAL_RLIBDIR}
8492
8493
8494
8495
8496
8497
8498
8499 # Check whether --enable-doxygen or --disable-doxygen was given.
8500 if test "${enable_doxygen+set}" = set; then
8501 enableval="$enable_doxygen"
8502
8503 fi;
8504 # Check whether --enable-dot or --disable-dot was given.
8505 if test "${enable_dot+set}" = set; then
8506 enableval="$enable_dot"
8507
8508 fi;
8509 # Check whether --enable-html-docs or --disable-html-docs was given.
8510 if test "${enable_html_docs+set}" = set; then
8511 enableval="$enable_html_docs"
8512
8513 else
8514 enable_html_docs=yes
8515 fi;
8516 # Check whether --enable-latex-docs or --disable-latex-docs was given.
8517 if test "${enable_latex_docs+set}" = set; then
8518 enableval="$enable_latex_docs"
8519
8520 else
8521 enable_latex_docs=no
8522 fi;
8523 if test "x$enable_doxygen" = xno; then
8524 enable_doc=no
8525 else
8526 # Extract the first word of "doxygen", so it can be a program name with args.
8527 set dummy doxygen; ac_word=$2
8528 echo "$as_me:$LINENO: checking for $ac_word" >&5
8529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8530 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533 case $DOXYGEN in
8534 [\\/]* | ?:[\\/]*)
8535 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8536 ;;
8537 *)
8538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8539 for as_dir in $PATH
8540 do
8541 IFS=$as_save_IFS
8542 test -z "$as_dir" && as_dir=.
8543 for ac_exec_ext in '' $ac_executable_extensions; do
8544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8545 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8547 break 2
8548 fi
8549 done
8550 done
8551
8552 ;;
8553 esac
8554 fi
8555 DOXYGEN=$ac_cv_path_DOXYGEN
8556
8557 if test -n "$DOXYGEN"; then
8558 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8559 echo "${ECHO_T}$DOXYGEN" >&6
8560 else
8561 echo "$as_me:$LINENO: result: no" >&5
8562 echo "${ECHO_T}no" >&6
8563 fi
8564
8565 if test "x$DOXYGEN" = x; then
8566 if test "x$enable_doxygen" = xyes; then
8567 { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
8568 echo "$as_me: error: could not find doxygen" >&2;}
8569 { (exit 1); exit 1; }; }
8570 fi
8571 enable_doc=no
8572 else
8573 enable_doc=yes
8574 # Extract the first word of "dot", so it can be a program name with args.
8575 set dummy dot; ac_word=$2
8576 echo "$as_me:$LINENO: checking for $ac_word" >&5
8577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8578 if test "${ac_cv_path_DOT+set}" = set; then
8579 echo $ECHO_N "(cached) $ECHO_C" >&6
8580 else
8581 case $DOT in
8582 [\\/]* | ?:[\\/]*)
8583 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
8584 ;;
8585 *)
8586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8587 for as_dir in $PATH
8588 do
8589 IFS=$as_save_IFS
8590 test -z "$as_dir" && as_dir=.
8591 for ac_exec_ext in '' $ac_executable_extensions; do
8592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8593 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
8594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8595 break 2
8596 fi
8597 done
8598 done
8599
8600 ;;
8601 esac
8602 fi
8603 DOT=$ac_cv_path_DOT
8604
8605 if test -n "$DOT"; then
8606 echo "$as_me:$LINENO: result: $DOT" >&5
8607 echo "${ECHO_T}$DOT" >&6
8608 else
8609 echo "$as_me:$LINENO: result: no" >&5
8610 echo "${ECHO_T}no" >&6
8611 fi
8612
8613 fi
8614 fi
8615
8616 if test "x$enable_doc" = xyes; then
8617 DOC=1
8618 else
8619 DOC=0
8620 fi
8621
8622
8623 if test x$DOT = x; then
8624 if test "x$enable_dot" = xyes; then
8625 { { echo "$as_me:$LINENO: error: could not find dot" >&5
8626 echo "$as_me: error: could not find dot" >&2;}
8627 { (exit 1); exit 1; }; }
8628 fi
8629 enable_dot=no
8630 else
8631 enable_dot=yes
8632 fi
8633
8634
8635
8636
8637
8638
8639
8640 OBJEXT=".$OBJEXT"
8641
8642 OOPSE=oopse
8643
8644 if test "x${prefix}" = "xNONE"
8645 then
8646 OOPSE_HOME=${ac_default_prefix}/oopse
8647 else
8648 OOPSE_HOME=${prefix}/oopse
8649 fi
8650 # Check whether --enable-oopse-home or --disable-oopse-home was given.
8651 if test "${enable_oopse_home+set}" = set; then
8652 enableval="$enable_oopse_home"
8653 OOPSE_HOME="${enableval}"
8654 fi;
8655
8656 case "x$INSTALL" in
8657 x/*) ;;
8658 *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
8659 esac
8660
8661 MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
8662
8663 CFLAGS=${CFLAGS-""}
8664 CXXFLAGS=${CXXFLAGS-""}
8665 CPPFLAGS=${CPPFLAGS-""}
8666 FFLAGS=${FFLAGS-""}
8667 F90FLAGS=${F90FLAGS-""}
8668 LDFLAGS=${LDFLAGS-""}
8669 DEBUG=${DEBUG-"-g"}
8670
8671 case $debug in
8672 1)
8673 FFLAGS="$DEBUG $FFLAGS"
8674 F90FLAGS="$DEBUG $F90FLAGS"
8675 ;;
8676 *)
8677 ;;
8678 esac
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697 ac_config_headers="$ac_config_headers src/config.h"
8698
8699 ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/applications/nanoRodBuilder/Makefile"
8700
8701
8702 cat >confcache <<\_ACEOF
8703 # This file is a shell script that caches the results of configure
8704 # tests run on this system so they can be shared between configure
8705 # scripts and configure runs, see configure's option --config-cache.
8706 # It is not useful on other systems. If it contains results you don't
8707 # want to keep, you may remove or edit it.
8708 #
8709 # config.status only pays attention to the cache file if you give it
8710 # the --recheck option to rerun configure.
8711 #
8712 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8713 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8714 # following values.
8715
8716 _ACEOF
8717
8718 # The following way of writing the cache mishandles newlines in values,
8719 # but we know of no workaround that is simple, portable, and efficient.
8720 # So, don't put newlines in cache variables' values.
8721 # Ultrix sh set writes to stderr and can't be redirected directly,
8722 # and sets the high bit in the cache file unless we assign to the vars.
8723 {
8724 (set) 2>&1 |
8725 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8726 *ac_space=\ *)
8727 # `set' does not quote correctly, so add quotes (double-quote
8728 # substitution turns \\\\ into \\, and sed turns \\ into \).
8729 sed -n \
8730 "s/'/'\\\\''/g;
8731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8732 ;;
8733 *)
8734 # `set' quotes correctly as required by POSIX, so do not add quotes.
8735 sed -n \
8736 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8737 ;;
8738 esac;
8739 } |
8740 sed '
8741 t clear
8742 : clear
8743 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8744 t end
8745 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8746 : end' >>confcache
8747 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8748 if test -w $cache_file; then
8749 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8750 cat confcache >$cache_file
8751 else
8752 echo "not updating unwritable cache $cache_file"
8753 fi
8754 fi
8755 rm -f confcache
8756
8757 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8758 # Let make expand exec_prefix.
8759 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8760
8761 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8762 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8763 # trailing colons and then remove the whole line if VPATH becomes empty
8764 # (actually we leave an empty line to preserve line numbers).
8765 if test "x$srcdir" = x.; then
8766 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8767 s/:*\$(srcdir):*/:/;
8768 s/:*\${srcdir}:*/:/;
8769 s/:*@srcdir@:*/:/;
8770 s/^\([^=]*=[ ]*\):*/\1/;
8771 s/:*$//;
8772 s/^[^=]*=[ ]*$//;
8773 }'
8774 fi
8775
8776 DEFS=-DHAVE_CONFIG_H
8777
8778 ac_libobjs=
8779 ac_ltlibobjs=
8780 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8781 # 1. Remove the extension, and $U if already installed.
8782 ac_i=`echo "$ac_i" |
8783 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8784 # 2. Add them.
8785 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8786 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8787 done
8788 LIBOBJS=$ac_libobjs
8789
8790 LTLIBOBJS=$ac_ltlibobjs
8791
8792
8793
8794 : ${CONFIG_STATUS=./config.status}
8795 ac_clean_files_save=$ac_clean_files
8796 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8797 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8798 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8799 cat >$CONFIG_STATUS <<_ACEOF
8800 #! $SHELL
8801 # Generated by $as_me.
8802 # Run this file to recreate the current configuration.
8803 # Compiler output produced by configure, useful for debugging
8804 # configure, is in config.log if it exists.
8805
8806 debug=false
8807 ac_cs_recheck=false
8808 ac_cs_silent=false
8809 SHELL=\${CONFIG_SHELL-$SHELL}
8810 _ACEOF
8811
8812 cat >>$CONFIG_STATUS <<\_ACEOF
8813 ## --------------------- ##
8814 ## M4sh Initialization. ##
8815 ## --------------------- ##
8816
8817 # Be Bourne compatible
8818 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8819 emulate sh
8820 NULLCMD=:
8821 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8822 # is contrary to our usage. Disable this feature.
8823 alias -g '${1+"$@"}'='"$@"'
8824 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8825 set -o posix
8826 fi
8827 DUALCASE=1; export DUALCASE # for MKS sh
8828
8829 # Support unset when possible.
8830 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8831 as_unset=unset
8832 else
8833 as_unset=false
8834 fi
8835
8836
8837 # Work around bugs in pre-3.0 UWIN ksh.
8838 $as_unset ENV MAIL MAILPATH
8839 PS1='$ '
8840 PS2='> '
8841 PS4='+ '
8842
8843 # NLS nuisances.
8844 for as_var in \
8845 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8846 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8847 LC_TELEPHONE LC_TIME
8848 do
8849 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8850 eval $as_var=C; export $as_var
8851 else
8852 $as_unset $as_var
8853 fi
8854 done
8855
8856 # Required to use basename.
8857 if expr a : '\(a\)' >/dev/null 2>&1; then
8858 as_expr=expr
8859 else
8860 as_expr=false
8861 fi
8862
8863 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8864 as_basename=basename
8865 else
8866 as_basename=false
8867 fi
8868
8869
8870 # Name of the executable.
8871 as_me=`$as_basename "$0" ||
8872 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8873 X"$0" : 'X\(//\)$' \| \
8874 X"$0" : 'X\(/\)$' \| \
8875 . : '\(.\)' 2>/dev/null ||
8876 echo X/"$0" |
8877 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8878 /^X\/\(\/\/\)$/{ s//\1/; q; }
8879 /^X\/\(\/\).*/{ s//\1/; q; }
8880 s/.*/./; q'`
8881
8882
8883 # PATH needs CR, and LINENO needs CR and PATH.
8884 # Avoid depending upon Character Ranges.
8885 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8886 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8887 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8888 as_cr_digits='0123456789'
8889 as_cr_alnum=$as_cr_Letters$as_cr_digits
8890
8891 # The user is always right.
8892 if test "${PATH_SEPARATOR+set}" != set; then
8893 echo "#! /bin/sh" >conf$$.sh
8894 echo "exit 0" >>conf$$.sh
8895 chmod +x conf$$.sh
8896 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8897 PATH_SEPARATOR=';'
8898 else
8899 PATH_SEPARATOR=:
8900 fi
8901 rm -f conf$$.sh
8902 fi
8903
8904
8905 as_lineno_1=$LINENO
8906 as_lineno_2=$LINENO
8907 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8908 test "x$as_lineno_1" != "x$as_lineno_2" &&
8909 test "x$as_lineno_3" = "x$as_lineno_2" || {
8910 # Find who we are. Look in the path if we contain no path at all
8911 # relative or not.
8912 case $0 in
8913 *[\\/]* ) as_myself=$0 ;;
8914 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8915 for as_dir in $PATH
8916 do
8917 IFS=$as_save_IFS
8918 test -z "$as_dir" && as_dir=.
8919 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8920 done
8921
8922 ;;
8923 esac
8924 # We did not find ourselves, most probably we were run as `sh COMMAND'
8925 # in which case we are not to be found in the path.
8926 if test "x$as_myself" = x; then
8927 as_myself=$0
8928 fi
8929 if test ! -f "$as_myself"; then
8930 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8931 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8932 { (exit 1); exit 1; }; }
8933 fi
8934 case $CONFIG_SHELL in
8935 '')
8936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8938 do
8939 IFS=$as_save_IFS
8940 test -z "$as_dir" && as_dir=.
8941 for as_base in sh bash ksh sh5; do
8942 case $as_dir in
8943 /*)
8944 if ("$as_dir/$as_base" -c '
8945 as_lineno_1=$LINENO
8946 as_lineno_2=$LINENO
8947 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8948 test "x$as_lineno_1" != "x$as_lineno_2" &&
8949 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8950 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8951 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8952 CONFIG_SHELL=$as_dir/$as_base
8953 export CONFIG_SHELL
8954 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8955 fi;;
8956 esac
8957 done
8958 done
8959 ;;
8960 esac
8961
8962 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8963 # uniformly replaced by the line number. The first 'sed' inserts a
8964 # line-number line before each line; the second 'sed' does the real
8965 # work. The second script uses 'N' to pair each line-number line
8966 # with the numbered line, and appends trailing '-' during
8967 # substitution so that $LINENO is not a special case at line end.
8968 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8969 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8970 sed '=' <$as_myself |
8971 sed '
8972 N
8973 s,$,-,
8974 : loop
8975 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8976 t loop
8977 s,-$,,
8978 s,^['$as_cr_digits']*\n,,
8979 ' >$as_me.lineno &&
8980 chmod +x $as_me.lineno ||
8981 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8982 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8983 { (exit 1); exit 1; }; }
8984
8985 # Don't try to exec as it changes $[0], causing all sort of problems
8986 # (the dirname of $[0] is not the place where we might find the
8987 # original and so on. Autoconf is especially sensible to this).
8988 . ./$as_me.lineno
8989 # Exit status is that of the last command.
8990 exit
8991 }
8992
8993
8994 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8995 *c*,-n*) ECHO_N= ECHO_C='
8996 ' ECHO_T=' ' ;;
8997 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8998 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8999 esac
9000
9001 if expr a : '\(a\)' >/dev/null 2>&1; then
9002 as_expr=expr
9003 else
9004 as_expr=false
9005 fi
9006
9007 rm -f conf$$ conf$$.exe conf$$.file
9008 echo >conf$$.file
9009 if ln -s conf$$.file conf$$ 2>/dev/null; then
9010 # We could just check for DJGPP; but this test a) works b) is more generic
9011 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9012 if test -f conf$$.exe; then
9013 # Don't use ln at all; we don't have any links
9014 as_ln_s='cp -p'
9015 else
9016 as_ln_s='ln -s'
9017 fi
9018 elif ln conf$$.file conf$$ 2>/dev/null; then
9019 as_ln_s=ln
9020 else
9021 as_ln_s='cp -p'
9022 fi
9023 rm -f conf$$ conf$$.exe conf$$.file
9024
9025 if mkdir -p . 2>/dev/null; then
9026 as_mkdir_p=:
9027 else
9028 test -d ./-p && rmdir ./-p
9029 as_mkdir_p=false
9030 fi
9031
9032 as_executable_p="test -f"
9033
9034 # Sed expression to map a string onto a valid CPP name.
9035 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9036
9037 # Sed expression to map a string onto a valid variable name.
9038 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9039
9040
9041 # IFS
9042 # We need space, tab and new line, in precisely that order.
9043 as_nl='
9044 '
9045 IFS=" $as_nl"
9046
9047 # CDPATH.
9048 $as_unset CDPATH
9049
9050 exec 6>&1
9051
9052 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9053 # report actual input values of CONFIG_FILES etc. instead of their
9054 # values after options handling. Logging --version etc. is OK.
9055 exec 5>>config.log
9056 {
9057 echo
9058 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9059 ## Running $as_me. ##
9060 _ASBOX
9061 } >&5
9062 cat >&5 <<_CSEOF
9063
9064 This file was extended by OOPSE $as_me 2.0, which was
9065 generated by GNU Autoconf 2.59. Invocation command line was
9066
9067 CONFIG_FILES = $CONFIG_FILES
9068 CONFIG_HEADERS = $CONFIG_HEADERS
9069 CONFIG_LINKS = $CONFIG_LINKS
9070 CONFIG_COMMANDS = $CONFIG_COMMANDS
9071 $ $0 $@
9072
9073 _CSEOF
9074 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9075 echo >&5
9076 _ACEOF
9077
9078 # Files that config.status was made for.
9079 if test -n "$ac_config_files"; then
9080 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9081 fi
9082
9083 if test -n "$ac_config_headers"; then
9084 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9085 fi
9086
9087 if test -n "$ac_config_links"; then
9088 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9089 fi
9090
9091 if test -n "$ac_config_commands"; then
9092 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9093 fi
9094
9095 cat >>$CONFIG_STATUS <<\_ACEOF
9096
9097 ac_cs_usage="\
9098 \`$as_me' instantiates files from templates according to the
9099 current configuration.
9100
9101 Usage: $0 [OPTIONS] [FILE]...
9102
9103 -h, --help print this help, then exit
9104 -V, --version print version number, then exit
9105 -q, --quiet do not print progress messages
9106 -d, --debug don't remove temporary files
9107 --recheck update $as_me by reconfiguring in the same conditions
9108 --file=FILE[:TEMPLATE]
9109 instantiate the configuration file FILE
9110 --header=FILE[:TEMPLATE]
9111 instantiate the configuration header FILE
9112
9113 Configuration files:
9114 $config_files
9115
9116 Configuration headers:
9117 $config_headers
9118
9119 Configuration links:
9120 $config_links
9121
9122 Report bugs to <bug-autoconf@gnu.org>."
9123 _ACEOF
9124
9125 cat >>$CONFIG_STATUS <<_ACEOF
9126 ac_cs_version="\\
9127 OOPSE config.status 2.0
9128 configured by $0, generated by GNU Autoconf 2.59,
9129 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9130
9131 Copyright (C) 2003 Free Software Foundation, Inc.
9132 This config.status script is free software; the Free Software Foundation
9133 gives unlimited permission to copy, distribute and modify it."
9134 srcdir=$srcdir
9135 INSTALL="$INSTALL"
9136 _ACEOF
9137
9138 cat >>$CONFIG_STATUS <<\_ACEOF
9139 # If no file are specified by the user, then we need to provide default
9140 # value. By we need to know if files were specified by the user.
9141 ac_need_defaults=:
9142 while test $# != 0
9143 do
9144 case $1 in
9145 --*=*)
9146 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9147 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9148 ac_shift=:
9149 ;;
9150 -*)
9151 ac_option=$1
9152 ac_optarg=$2
9153 ac_shift=shift
9154 ;;
9155 *) # This is not an option, so the user has probably given explicit
9156 # arguments.
9157 ac_option=$1
9158 ac_need_defaults=false;;
9159 esac
9160
9161 case $ac_option in
9162 # Handling of the options.
9163 _ACEOF
9164 cat >>$CONFIG_STATUS <<\_ACEOF
9165 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9166 ac_cs_recheck=: ;;
9167 --version | --vers* | -V )
9168 echo "$ac_cs_version"; exit 0 ;;
9169 --he | --h)
9170 # Conflict between --help and --header
9171 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9172 Try \`$0 --help' for more information." >&5
9173 echo "$as_me: error: ambiguous option: $1
9174 Try \`$0 --help' for more information." >&2;}
9175 { (exit 1); exit 1; }; };;
9176 --help | --hel | -h )
9177 echo "$ac_cs_usage"; exit 0 ;;
9178 --debug | --d* | -d )
9179 debug=: ;;
9180 --file | --fil | --fi | --f )
9181 $ac_shift
9182 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9183 ac_need_defaults=false;;
9184 --header | --heade | --head | --hea )
9185 $ac_shift
9186 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9187 ac_need_defaults=false;;
9188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9189 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9190 ac_cs_silent=: ;;
9191
9192 # This is an error.
9193 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9194 Try \`$0 --help' for more information." >&5
9195 echo "$as_me: error: unrecognized option: $1
9196 Try \`$0 --help' for more information." >&2;}
9197 { (exit 1); exit 1; }; } ;;
9198
9199 *) ac_config_targets="$ac_config_targets $1" ;;
9200
9201 esac
9202 shift
9203 done
9204
9205 ac_configure_extra_args=
9206
9207 if $ac_cs_silent; then
9208 exec 6>/dev/null
9209 ac_configure_extra_args="$ac_configure_extra_args --silent"
9210 fi
9211
9212 _ACEOF
9213 cat >>$CONFIG_STATUS <<_ACEOF
9214 if \$ac_cs_recheck; then
9215 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9216 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9217 fi
9218
9219 _ACEOF
9220
9221
9222
9223
9224
9225 cat >>$CONFIG_STATUS <<\_ACEOF
9226 for ac_config_target in $ac_config_targets
9227 do
9228 case "$ac_config_target" in
9229 # Handling of arguments.
9230 "make/Makefile" ) CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
9231 "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
9232 "src/applications/nanoRodBuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/applications/nanoRodBuilder/Makefile" ;;
9233 "src/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;;
9234 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
9235 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9236 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9237 { (exit 1); exit 1; }; };;
9238 esac
9239 done
9240
9241 # If the user did not use the arguments to specify the items to instantiate,
9242 # then the envvar interface is used. Set only those that are not.
9243 # We use the long form for the default assignment because of an extremely
9244 # bizarre bug on SunOS 4.1.3.
9245 if $ac_need_defaults; then
9246 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9247 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9248 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
9249 fi
9250
9251 # Have a temporary directory for convenience. Make it in the build tree
9252 # simply because there is no reason to put it here, and in addition,
9253 # creating and moving files from /tmp can sometimes cause problems.
9254 # Create a temporary directory, and hook for its removal unless debugging.
9255 $debug ||
9256 {
9257 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9258 trap '{ (exit 1); exit 1; }' 1 2 13 15
9259 }
9260
9261 # Create a (secure) tmp directory for tmp files.
9262
9263 {
9264 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9265 test -n "$tmp" && test -d "$tmp"
9266 } ||
9267 {
9268 tmp=./confstat$$-$RANDOM
9269 (umask 077 && mkdir $tmp)
9270 } ||
9271 {
9272 echo "$me: cannot create a temporary directory in ." >&2
9273 { (exit 1); exit 1; }
9274 }
9275
9276 _ACEOF
9277
9278 cat >>$CONFIG_STATUS <<_ACEOF
9279
9280 #
9281 # CONFIG_FILES section.
9282 #
9283
9284 # No need to generate the scripts if there are no CONFIG_FILES.
9285 # This happens for instance when ./config.status config.h
9286 if test -n "\$CONFIG_FILES"; then
9287 # Protect against being on the right side of a sed subst in config.status.
9288 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9289 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9290 s,@SHELL@,$SHELL,;t t
9291 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9292 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9293 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9294 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9295 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9296 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9297 s,@exec_prefix@,$exec_prefix,;t t
9298 s,@prefix@,$prefix,;t t
9299 s,@program_transform_name@,$program_transform_name,;t t
9300 s,@bindir@,$bindir,;t t
9301 s,@sbindir@,$sbindir,;t t
9302 s,@libexecdir@,$libexecdir,;t t
9303 s,@datadir@,$datadir,;t t
9304 s,@sysconfdir@,$sysconfdir,;t t
9305 s,@sharedstatedir@,$sharedstatedir,;t t
9306 s,@localstatedir@,$localstatedir,;t t
9307 s,@libdir@,$libdir,;t t
9308 s,@includedir@,$includedir,;t t
9309 s,@oldincludedir@,$oldincludedir,;t t
9310 s,@infodir@,$infodir,;t t
9311 s,@mandir@,$mandir,;t t
9312 s,@build_alias@,$build_alias,;t t
9313 s,@host_alias@,$host_alias,;t t
9314 s,@target_alias@,$target_alias,;t t
9315 s,@DEFS@,$DEFS,;t t
9316 s,@ECHO_C@,$ECHO_C,;t t
9317 s,@ECHO_N@,$ECHO_N,;t t
9318 s,@ECHO_T@,$ECHO_T,;t t
9319 s,@LIBS@,$LIBS,;t t
9320 s,@PROGNAME@,$PROGNAME,;t t
9321 s,@debug@,$debug,;t t
9322 s,@build@,$build,;t t
9323 s,@build_cpu@,$build_cpu,;t t
9324 s,@build_vendor@,$build_vendor,;t t
9325 s,@build_os@,$build_os,;t t
9326 s,@host@,$host,;t t
9327 s,@host_cpu@,$host_cpu,;t t
9328 s,@host_vendor@,$host_vendor,;t t
9329 s,@host_os@,$host_os,;t t
9330 s,@CC@,$CC,;t t
9331 s,@CFLAGS@,$CFLAGS,;t t
9332 s,@LDFLAGS@,$LDFLAGS,;t t
9333 s,@CPPFLAGS@,$CPPFLAGS,;t t
9334 s,@ac_ct_CC@,$ac_ct_CC,;t t
9335 s,@EXEEXT@,$EXEEXT,;t t
9336 s,@OBJEXT@,$OBJEXT,;t t
9337 s,@CXX@,$CXX,;t t
9338 s,@CXXFLAGS@,$CXXFLAGS,;t t
9339 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9340 s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t
9341 s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t
9342 s,@F90@,$F90,;t t
9343 s,@F90FLAGS@,$F90FLAGS,;t t
9344 s,@ac_ct_F90@,$ac_ct_F90,;t t
9345 s,@PREPFLAG@,$PREPFLAG,;t t
9346 s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
9347 s,@F90LIBS@,$F90LIBS,;t t
9348 s,@F90_FUNC@,$F90_FUNC,;t t
9349 s,@F90_FUNC_@,$F90_FUNC_,;t t
9350 s,@MOD@,$MOD,;t t
9351 s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
9352 s,@MODDIRFLAG@,$MODDIRFLAG,;t t
9353 s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
9354 s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t
9355 s,@CPP@,$CPP,;t t
9356 s,@EGREP@,$EGREP,;t t
9357 s,@LIBOBJS@,$LIBOBJS,;t t
9358 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9359 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9360 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9361 s,@LN_S@,$LN_S,;t t
9362 s,@SET_MAKE@,$SET_MAKE,;t t
9363 s,@RANLIB@,$RANLIB,;t t
9364 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9365 s,@YACC@,$YACC,;t t
9366 s,@LEX@,$LEX,;t t
9367 s,@LEXLIB@,$LEXLIB,;t t
9368 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9369 s,@AR@,$AR,;t t
9370 s,@PS@,$PS,;t t
9371 s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t
9372 s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t
9373 s,@MPI_F90_INC@,$MPI_F90_INC,;t t
9374 s,@MPI_LIB@,$MPI_LIB,;t t
9375 s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t
9376 s,@USE_MPI@,$USE_MPI,;t t
9377 s,@CXXCPP@,$CXXCPP,;t t
9378 s,@USE_CGAL@,$USE_CGAL,;t t
9379 s,@CGAL_INC_DIR@,$CGAL_INC_DIR,;t t
9380 s,@CGAL_LIB_DIR@,$CGAL_LIB_DIR,;t t
9381 s,@CGAL_RLIB_DIR@,$CGAL_RLIB_DIR,;t t
9382 s,@CGAL_DEFINES@,$CGAL_DEFINES,;t t
9383 s,@CGAL_CXXFLAGS@,$CGAL_CXXFLAGS,;t t
9384 s,@CGAL_LIBS@,$CGAL_LIBS,;t t
9385 s,@DOXYGEN@,$DOXYGEN,;t t
9386 s,@DOT@,$DOT,;t t
9387 s,@DOC@,$DOC,;t t
9388 s,@enable_dot@,$enable_dot,;t t
9389 s,@enable_html_docs@,$enable_html_docs,;t t
9390 s,@enable_latex_docs@,$enable_latex_docs,;t t
9391 s,@BATEXT@,$BATEXT,;t t
9392 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9393 s,@OOPSE@,$OOPSE,;t t
9394 s,@OOPSE_HOME@,$OOPSE_HOME,;t t
9395 s,@SUBDIRS@,$SUBDIRS,;t t
9396 s,@FFLAGS@,$FFLAGS,;t t
9397 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9398 CEOF
9399
9400 _ACEOF
9401
9402 cat >>$CONFIG_STATUS <<\_ACEOF
9403 # Split the substitutions into bite-sized pieces for seds with
9404 # small command number limits, like on Digital OSF/1 and HP-UX.
9405 ac_max_sed_lines=48
9406 ac_sed_frag=1 # Number of current file.
9407 ac_beg=1 # First line for current file.
9408 ac_end=$ac_max_sed_lines # Line after last line for current file.
9409 ac_more_lines=:
9410 ac_sed_cmds=
9411 while $ac_more_lines; do
9412 if test $ac_beg -gt 1; then
9413 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9414 else
9415 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9416 fi
9417 if test ! -s $tmp/subs.frag; then
9418 ac_more_lines=false
9419 else
9420 # The purpose of the label and of the branching condition is to
9421 # speed up the sed processing (if there are no `@' at all, there
9422 # is no need to browse any of the substitutions).
9423 # These are the two extra sed commands mentioned above.
9424 (echo ':t
9425 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9426 if test -z "$ac_sed_cmds"; then
9427 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9428 else
9429 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9430 fi
9431 ac_sed_frag=`expr $ac_sed_frag + 1`
9432 ac_beg=$ac_end
9433 ac_end=`expr $ac_end + $ac_max_sed_lines`
9434 fi
9435 done
9436 if test -z "$ac_sed_cmds"; then
9437 ac_sed_cmds=cat
9438 fi
9439 fi # test -n "$CONFIG_FILES"
9440
9441 _ACEOF
9442 cat >>$CONFIG_STATUS <<\_ACEOF
9443 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9444 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9445 case $ac_file in
9446 - | *:- | *:-:* ) # input from stdin
9447 cat >$tmp/stdin
9448 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9449 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9450 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9451 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9452 * ) ac_file_in=$ac_file.in ;;
9453 esac
9454
9455 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9456 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9457 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9458 X"$ac_file" : 'X\(//\)[^/]' \| \
9459 X"$ac_file" : 'X\(//\)$' \| \
9460 X"$ac_file" : 'X\(/\)' \| \
9461 . : '\(.\)' 2>/dev/null ||
9462 echo X"$ac_file" |
9463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9464 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9465 /^X\(\/\/\)$/{ s//\1/; q; }
9466 /^X\(\/\).*/{ s//\1/; q; }
9467 s/.*/./; q'`
9468 { if $as_mkdir_p; then
9469 mkdir -p "$ac_dir"
9470 else
9471 as_dir="$ac_dir"
9472 as_dirs=
9473 while test ! -d "$as_dir"; do
9474 as_dirs="$as_dir $as_dirs"
9475 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9476 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9477 X"$as_dir" : 'X\(//\)[^/]' \| \
9478 X"$as_dir" : 'X\(//\)$' \| \
9479 X"$as_dir" : 'X\(/\)' \| \
9480 . : '\(.\)' 2>/dev/null ||
9481 echo X"$as_dir" |
9482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9483 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9484 /^X\(\/\/\)$/{ s//\1/; q; }
9485 /^X\(\/\).*/{ s//\1/; q; }
9486 s/.*/./; q'`
9487 done
9488 test ! -n "$as_dirs" || mkdir $as_dirs
9489 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9490 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9491 { (exit 1); exit 1; }; }; }
9492
9493 ac_builddir=.
9494
9495 if test "$ac_dir" != .; then
9496 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9497 # A "../" for each directory in $ac_dir_suffix.
9498 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9499 else
9500 ac_dir_suffix= ac_top_builddir=
9501 fi
9502
9503 case $srcdir in
9504 .) # No --srcdir option. We are building in place.
9505 ac_srcdir=.
9506 if test -z "$ac_top_builddir"; then
9507 ac_top_srcdir=.
9508 else
9509 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9510 fi ;;
9511 [\\/]* | ?:[\\/]* ) # Absolute path.
9512 ac_srcdir=$srcdir$ac_dir_suffix;
9513 ac_top_srcdir=$srcdir ;;
9514 *) # Relative path.
9515 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9516 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9517 esac
9518
9519 # Do not use `cd foo && pwd` to compute absolute paths, because
9520 # the directories may not exist.
9521 case `pwd` in
9522 .) ac_abs_builddir="$ac_dir";;
9523 *)
9524 case "$ac_dir" in
9525 .) ac_abs_builddir=`pwd`;;
9526 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9527 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9528 esac;;
9529 esac
9530 case $ac_abs_builddir in
9531 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9532 *)
9533 case ${ac_top_builddir}. in
9534 .) ac_abs_top_builddir=$ac_abs_builddir;;
9535 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9536 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9537 esac;;
9538 esac
9539 case $ac_abs_builddir in
9540 .) ac_abs_srcdir=$ac_srcdir;;
9541 *)
9542 case $ac_srcdir in
9543 .) ac_abs_srcdir=$ac_abs_builddir;;
9544 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9545 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9546 esac;;
9547 esac
9548 case $ac_abs_builddir in
9549 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9550 *)
9551 case $ac_top_srcdir in
9552 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9553 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9554 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9555 esac;;
9556 esac
9557
9558
9559 case $INSTALL in
9560 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9561 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9562 esac
9563
9564 if test x"$ac_file" != x-; then
9565 { echo "$as_me:$LINENO: creating $ac_file" >&5
9566 echo "$as_me: creating $ac_file" >&6;}
9567 rm -f "$ac_file"
9568 fi
9569 # Let's still pretend it is `configure' which instantiates (i.e., don't
9570 # use $as_me), people would be surprised to read:
9571 # /* config.h. Generated by config.status. */
9572 if test x"$ac_file" = x-; then
9573 configure_input=
9574 else
9575 configure_input="$ac_file. "
9576 fi
9577 configure_input=$configure_input"Generated from `echo $ac_file_in |
9578 sed 's,.*/,,'` by configure."
9579
9580 # First look for the input files in the build tree, otherwise in the
9581 # src tree.
9582 ac_file_inputs=`IFS=:
9583 for f in $ac_file_in; do
9584 case $f in
9585 -) echo $tmp/stdin ;;
9586 [\\/$]*)
9587 # Absolute (can't be DOS-style, as IFS=:)
9588 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9589 echo "$as_me: error: cannot find input file: $f" >&2;}
9590 { (exit 1); exit 1; }; }
9591 echo "$f";;
9592 *) # Relative
9593 if test -f "$f"; then
9594 # Build tree
9595 echo "$f"
9596 elif test -f "$srcdir/$f"; then
9597 # Source tree
9598 echo "$srcdir/$f"
9599 else
9600 # /dev/null tree
9601 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9602 echo "$as_me: error: cannot find input file: $f" >&2;}
9603 { (exit 1); exit 1; }; }
9604 fi;;
9605 esac
9606 done` || { (exit 1); exit 1; }
9607 _ACEOF
9608 cat >>$CONFIG_STATUS <<_ACEOF
9609 sed "$ac_vpsub
9610 $extrasub
9611 _ACEOF
9612 cat >>$CONFIG_STATUS <<\_ACEOF
9613 :t
9614 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9615 s,@configure_input@,$configure_input,;t t
9616 s,@srcdir@,$ac_srcdir,;t t
9617 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9618 s,@top_srcdir@,$ac_top_srcdir,;t t
9619 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9620 s,@builddir@,$ac_builddir,;t t
9621 s,@abs_builddir@,$ac_abs_builddir,;t t
9622 s,@top_builddir@,$ac_top_builddir,;t t
9623 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9624 s,@INSTALL@,$ac_INSTALL,;t t
9625 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9626 rm -f $tmp/stdin
9627 if test x"$ac_file" != x-; then
9628 mv $tmp/out $ac_file
9629 else
9630 cat $tmp/out
9631 rm -f $tmp/out
9632 fi
9633
9634 done
9635 _ACEOF
9636 cat >>$CONFIG_STATUS <<\_ACEOF
9637
9638 #
9639 # CONFIG_HEADER section.
9640 #
9641
9642 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9643 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9644 #
9645 # ac_d sets the value in "#define NAME VALUE" lines.
9646 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9647 ac_dB='[ ].*$,\1#\2'
9648 ac_dC=' '
9649 ac_dD=',;t'
9650 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9651 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9652 ac_uB='$,\1#\2define\3'
9653 ac_uC=' '
9654 ac_uD=',;t'
9655
9656 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9657 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9658 case $ac_file in
9659 - | *:- | *:-:* ) # input from stdin
9660 cat >$tmp/stdin
9661 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9662 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9663 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9664 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9665 * ) ac_file_in=$ac_file.in ;;
9666 esac
9667
9668 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9669 echo "$as_me: creating $ac_file" >&6;}
9670
9671 # First look for the input files in the build tree, otherwise in the
9672 # src tree.
9673 ac_file_inputs=`IFS=:
9674 for f in $ac_file_in; do
9675 case $f in
9676 -) echo $tmp/stdin ;;
9677 [\\/$]*)
9678 # Absolute (can't be DOS-style, as IFS=:)
9679 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9680 echo "$as_me: error: cannot find input file: $f" >&2;}
9681 { (exit 1); exit 1; }; }
9682 # Do quote $f, to prevent DOS paths from being IFS'd.
9683 echo "$f";;
9684 *) # Relative
9685 if test -f "$f"; then
9686 # Build tree
9687 echo "$f"
9688 elif test -f "$srcdir/$f"; then
9689 # Source tree
9690 echo "$srcdir/$f"
9691 else
9692 # /dev/null tree
9693 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9694 echo "$as_me: error: cannot find input file: $f" >&2;}
9695 { (exit 1); exit 1; }; }
9696 fi;;
9697 esac
9698 done` || { (exit 1); exit 1; }
9699 # Remove the trailing spaces.
9700 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9701
9702 _ACEOF
9703
9704 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9705 # `conftest.undefs', that substitutes the proper values into
9706 # config.h.in to produce config.h. The first handles `#define'
9707 # templates, and the second `#undef' templates.
9708 # And first: Protect against being on the right side of a sed subst in
9709 # config.status. Protect against being in an unquoted here document
9710 # in config.status.
9711 rm -f conftest.defines conftest.undefs
9712 # Using a here document instead of a string reduces the quoting nightmare.
9713 # Putting comments in sed scripts is not portable.
9714 #
9715 # `end' is used to avoid that the second main sed command (meant for
9716 # 0-ary CPP macros) applies to n-ary macro definitions.
9717 # See the Autoconf documentation for `clear'.
9718 cat >confdef2sed.sed <<\_ACEOF
9719 s/[\\&,]/\\&/g
9720 s,[\\$`],\\&,g
9721 t clear
9722 : clear
9723 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9724 t end
9725 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9726 : end
9727 _ACEOF
9728 # If some macros were called several times there might be several times
9729 # the same #defines, which is useless. Nevertheless, we may not want to
9730 # sort them, since we want the *last* AC-DEFINE to be honored.
9731 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9732 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9733 rm -f confdef2sed.sed
9734
9735 # This sed command replaces #undef with comments. This is necessary, for
9736 # example, in the case of _POSIX_SOURCE, which is predefined and required
9737 # on some systems where configure will not decide to define it.
9738 cat >>conftest.undefs <<\_ACEOF
9739 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9740 _ACEOF
9741
9742 # Break up conftest.defines because some shells have a limit on the size
9743 # of here documents, and old seds have small limits too (100 cmds).
9744 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9745 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9746 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9747 echo ' :' >>$CONFIG_STATUS
9748 rm -f conftest.tail
9749 while grep . conftest.defines >/dev/null
9750 do
9751 # Write a limited-size here document to $tmp/defines.sed.
9752 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9753 # Speed up: don't consider the non `#define' lines.
9754 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9755 # Work around the forget-to-reset-the-flag bug.
9756 echo 't clr' >>$CONFIG_STATUS
9757 echo ': clr' >>$CONFIG_STATUS
9758 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9759 echo 'CEOF
9760 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9761 rm -f $tmp/in
9762 mv $tmp/out $tmp/in
9763 ' >>$CONFIG_STATUS
9764 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9765 rm -f conftest.defines
9766 mv conftest.tail conftest.defines
9767 done
9768 rm -f conftest.defines
9769 echo ' fi # grep' >>$CONFIG_STATUS
9770 echo >>$CONFIG_STATUS
9771
9772 # Break up conftest.undefs because some shells have a limit on the size
9773 # of here documents, and old seds have small limits too (100 cmds).
9774 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9775 rm -f conftest.tail
9776 while grep . conftest.undefs >/dev/null
9777 do
9778 # Write a limited-size here document to $tmp/undefs.sed.
9779 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9780 # Speed up: don't consider the non `#undef'
9781 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9782 # Work around the forget-to-reset-the-flag bug.
9783 echo 't clr' >>$CONFIG_STATUS
9784 echo ': clr' >>$CONFIG_STATUS
9785 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9786 echo 'CEOF
9787 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9788 rm -f $tmp/in
9789 mv $tmp/out $tmp/in
9790 ' >>$CONFIG_STATUS
9791 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9792 rm -f conftest.undefs
9793 mv conftest.tail conftest.undefs
9794 done
9795 rm -f conftest.undefs
9796
9797 cat >>$CONFIG_STATUS <<\_ACEOF
9798 # Let's still pretend it is `configure' which instantiates (i.e., don't
9799 # use $as_me), people would be surprised to read:
9800 # /* config.h. Generated by config.status. */
9801 if test x"$ac_file" = x-; then
9802 echo "/* Generated by configure. */" >$tmp/config.h
9803 else
9804 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9805 fi
9806 cat $tmp/in >>$tmp/config.h
9807 rm -f $tmp/in
9808 if test x"$ac_file" != x-; then
9809 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9810 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9811 echo "$as_me: $ac_file is unchanged" >&6;}
9812 else
9813 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9814 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9815 X"$ac_file" : 'X\(//\)[^/]' \| \
9816 X"$ac_file" : 'X\(//\)$' \| \
9817 X"$ac_file" : 'X\(/\)' \| \
9818 . : '\(.\)' 2>/dev/null ||
9819 echo X"$ac_file" |
9820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9821 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9822 /^X\(\/\/\)$/{ s//\1/; q; }
9823 /^X\(\/\).*/{ s//\1/; q; }
9824 s/.*/./; q'`
9825 { if $as_mkdir_p; then
9826 mkdir -p "$ac_dir"
9827 else
9828 as_dir="$ac_dir"
9829 as_dirs=
9830 while test ! -d "$as_dir"; do
9831 as_dirs="$as_dir $as_dirs"
9832 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9833 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9834 X"$as_dir" : 'X\(//\)[^/]' \| \
9835 X"$as_dir" : 'X\(//\)$' \| \
9836 X"$as_dir" : 'X\(/\)' \| \
9837 . : '\(.\)' 2>/dev/null ||
9838 echo X"$as_dir" |
9839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9840 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9841 /^X\(\/\/\)$/{ s//\1/; q; }
9842 /^X\(\/\).*/{ s//\1/; q; }
9843 s/.*/./; q'`
9844 done
9845 test ! -n "$as_dirs" || mkdir $as_dirs
9846 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9847 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9848 { (exit 1); exit 1; }; }; }
9849
9850 rm -f $ac_file
9851 mv $tmp/config.h $ac_file
9852 fi
9853 else
9854 cat $tmp/config.h
9855 rm -f $tmp/config.h
9856 fi
9857 done
9858 _ACEOF
9859 cat >>$CONFIG_STATUS <<\_ACEOF
9860
9861 #
9862 # CONFIG_LINKS section.
9863 #
9864
9865 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
9866 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9867 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9868
9869 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
9870 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
9871
9872 if test ! -r $srcdir/$ac_source; then
9873 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9874 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9875 { (exit 1); exit 1; }; }
9876 fi
9877 rm -f $ac_dest
9878
9879 # Make relative symlinks.
9880 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
9881 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9882 X"$ac_dest" : 'X\(//\)[^/]' \| \
9883 X"$ac_dest" : 'X\(//\)$' \| \
9884 X"$ac_dest" : 'X\(/\)' \| \
9885 . : '\(.\)' 2>/dev/null ||
9886 echo X"$ac_dest" |
9887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9889 /^X\(\/\/\)$/{ s//\1/; q; }
9890 /^X\(\/\).*/{ s//\1/; q; }
9891 s/.*/./; q'`
9892 { if $as_mkdir_p; then
9893 mkdir -p "$ac_dest_dir"
9894 else
9895 as_dir="$ac_dest_dir"
9896 as_dirs=
9897 while test ! -d "$as_dir"; do
9898 as_dirs="$as_dir $as_dirs"
9899 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9900 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9901 X"$as_dir" : 'X\(//\)[^/]' \| \
9902 X"$as_dir" : 'X\(//\)$' \| \
9903 X"$as_dir" : 'X\(/\)' \| \
9904 . : '\(.\)' 2>/dev/null ||
9905 echo X"$as_dir" |
9906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9907 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9908 /^X\(\/\/\)$/{ s//\1/; q; }
9909 /^X\(\/\).*/{ s//\1/; q; }
9910 s/.*/./; q'`
9911 done
9912 test ! -n "$as_dirs" || mkdir $as_dirs
9913 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
9914 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
9915 { (exit 1); exit 1; }; }; }
9916
9917 ac_builddir=.
9918
9919 if test "$ac_dest_dir" != .; then
9920 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
9921 # A "../" for each directory in $ac_dir_suffix.
9922 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9923 else
9924 ac_dir_suffix= ac_top_builddir=
9925 fi
9926
9927 case $srcdir in
9928 .) # No --srcdir option. We are building in place.
9929 ac_srcdir=.
9930 if test -z "$ac_top_builddir"; then
9931 ac_top_srcdir=.
9932 else
9933 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9934 fi ;;
9935 [\\/]* | ?:[\\/]* ) # Absolute path.
9936 ac_srcdir=$srcdir$ac_dir_suffix;
9937 ac_top_srcdir=$srcdir ;;
9938 *) # Relative path.
9939 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9940 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9941 esac
9942
9943 # Do not use `cd foo && pwd` to compute absolute paths, because
9944 # the directories may not exist.
9945 case `pwd` in
9946 .) ac_abs_builddir="$ac_dest_dir";;
9947 *)
9948 case "$ac_dest_dir" in
9949 .) ac_abs_builddir=`pwd`;;
9950 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
9951 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
9952 esac;;
9953 esac
9954 case $ac_abs_builddir in
9955 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9956 *)
9957 case ${ac_top_builddir}. in
9958 .) ac_abs_top_builddir=$ac_abs_builddir;;
9959 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9960 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9961 esac;;
9962 esac
9963 case $ac_abs_builddir in
9964 .) ac_abs_srcdir=$ac_srcdir;;
9965 *)
9966 case $ac_srcdir in
9967 .) ac_abs_srcdir=$ac_abs_builddir;;
9968 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9969 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9970 esac;;
9971 esac
9972 case $ac_abs_builddir in
9973 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9974 *)
9975 case $ac_top_srcdir in
9976 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9977 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9978 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9979 esac;;
9980 esac
9981
9982
9983 case $srcdir in
9984 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
9985 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
9986 esac
9987
9988 # Try a symlink, then a hard link, then a copy.
9989 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9990 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
9991 cp -p $srcdir/$ac_source $ac_dest ||
9992 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
9993 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
9994 { (exit 1); exit 1; }; }
9995 done
9996 _ACEOF
9997
9998 cat >>$CONFIG_STATUS <<\_ACEOF
9999
10000 { (exit 0); exit 0; }
10001 _ACEOF
10002 chmod +x $CONFIG_STATUS
10003 ac_clean_files=$ac_clean_files_save
10004
10005
10006 # configure is writing to config.log, and then calls config.status.
10007 # config.status does its own redirection, appending to config.log.
10008 # Unfortunately, on DOS this fails, as config.log is still kept open
10009 # by configure, so config.status won't be able to write to it; its
10010 # output is simply discarded. So we exec the FD to /dev/null,
10011 # effectively closing config.log, so it can be properly (re)opened and
10012 # appended to by config.status. When coming back to configure, we
10013 # need to make the FD available again.
10014 if test "$no_create" != yes; then
10015 ac_cs_success=:
10016 ac_config_status_args=
10017 test "$silent" = yes &&
10018 ac_config_status_args="$ac_config_status_args --quiet"
10019 exec 5>/dev/null
10020 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10021 exec 5>>config.log
10022 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10023 # would make configure fail if this is the last instruction.
10024 $ac_cs_success || { (exit 1); exit 1; }
10025 fi
10026

Properties

Name Value
svn:executable *