ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/configure
Revision: 2453
Committed: Thu Nov 17 20:39:59 2005 UTC (18 years, 7 months ago) by gezelter
File size: 346998 byte(s)
Log Message:
Adding some config checks for OpenBabel codes we are using

File Contents

# User Rev Content
1 gezelter 1490 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 gezelter 2081 # Generated by GNU Autoconf 2.59 for OOPSE 2.0.
4 gezelter 1490 #
5     # Report bugs to <gezelter@nd.edu>.
6     #
7 gezelter 2081 # Copyright (C) 2003 Free Software Foundation, Inc.
8 gezelter 1490 # This configure script is free software; the Free Software Foundation
9     # gives unlimited permission to copy, distribute and modify it.
10 gezelter 2081 ## --------------------- ##
11     ## M4sh Initialization. ##
12     ## --------------------- ##
13 gezelter 1490
14     # Be Bourne compatible
15     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16     emulate sh
17     NULLCMD=:
18 gezelter 2081 # 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 gezelter 1490 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22     set -o posix
23     fi
24 gezelter 2081 DUALCASE=1; export DUALCASE # for MKS sh
25 gezelter 1490
26 gezelter 2081 # 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 gezelter 1490 # Name of the executable.
68 gezelter 2081 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 gezelter 1490
79 gezelter 2081
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 gezelter 1490 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 gezelter 2081 if mkdir -p . 2>/dev/null; then
221     as_mkdir_p=:
222 gezelter 1490 else
223 gezelter 2081 test -d ./-p && rmdir ./-p
224     as_mkdir_p=false
225 gezelter 1490 fi
226    
227 gezelter 2081 as_executable_p="test -f"
228 gezelter 1490
229 gezelter 2081 # 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 gezelter 1490 # 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 gezelter 2081 $as_unset CDPATH
244 gezelter 1490
245 gezelter 2081
246 gezelter 1490 # 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 gezelter 2081 ac_config_libobj_dir=.
258 gezelter 1490 cross_compiling=no
259     subdirs=
260 gezelter 2081 MFLAGS=
261     MAKEFLAGS=
262 gezelter 1490 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 gezelter 2081 # 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 gezelter 1490
276 gezelter 1509 ac_unique_file="src/applications/oopse/oopse.cpp"
277 gezelter 1490 ac_default_prefix="/usr/local"
278 gezelter 2081 # 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 gezelter 1490
315 gezelter 2453 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 CXXCPP LIBOBJS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT PERLINTERP PERL_SHEBANG AR PS MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI USE_CGAL CGAL_INC_DIR CGAL_LIB_DIR CGAL_RLIB_DIR CGAL_DEFINES CGAL_CXXFLAGS CGAL_LIBS DOXYGEN DOT DOC enable_dot enable_html_docs enable_latex_docs BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LTLIBOBJS'
316 gezelter 2081 ac_subst_files=''
317    
318 gezelter 1490 # 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 gezelter 2081 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 gezelter 1490 { 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 gezelter 2081 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 gezelter 1490 { 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 gezelter 2081 | --no-cr | --no-c | -n)
489 gezelter 1490 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 gezelter 2081 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 gezelter 1490 { 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 gezelter 2081 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 gezelter 1490 { 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 gezelter 2081 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 gezelter 1490 { 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 gezelter 2081 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 gezelter 1490 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 gezelter 2081 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 gezelter 1490 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 gezelter 2081 localstatedir libdir includedir oldincludedir infodir mandir
675 gezelter 1490 do
676     eval ac_val=$`echo $ac_var`
677     case $ac_val in
678     [\\/$]* | ?:[\\/]* ) ;;
679 gezelter 2081 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 gezelter 1490 { (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 gezelter 2081 # FIXME: To remove some day.
687 gezelter 1490 build=$build_alias
688     host=$host_alias
689     target=$target_alias
690    
691 gezelter 2081 # FIXME: To remove some day.
692 gezelter 1490 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 gezelter 2081
708 gezelter 1490 # 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 gezelter 2081 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 gezelter 1490 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 gezelter 2081 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 gezelter 1490 { (exit 1); exit 1; }; }
735     else
736 gezelter 2081 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 gezelter 1490 { (exit 1); exit 1; }; }
738     fi
739     fi
740 gezelter 2081 (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 gezelter 1490 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 gezelter 2190 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 gezelter 1490
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 gezelter 2081 cat <<_ACEOF
804 gezelter 1499 \`configure' configures OOPSE 2.0 to adapt to many kinds of systems.
805 gezelter 1490
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 gezelter 2081 _ACEOF
825 gezelter 1490
826 gezelter 2081 cat <<_ACEOF
827 gezelter 1490 Installation directories:
828     --prefix=PREFIX install architecture-independent files in PREFIX
829 gezelter 2081 [$ac_default_prefix]
830 gezelter 1490 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
831 gezelter 2081 [PREFIX]
832 gezelter 1490
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 gezelter 2081 _ACEOF
854 gezelter 1490
855 gezelter 2081 cat <<\_ACEOF
856 gezelter 1490
857     System types:
858     --build=BUILD configure for building on BUILD [guessed]
859 gezelter 2081 --host=HOST cross-compile to build programs to run on HOST [BUILD]
860     _ACEOF
861 gezelter 1490 fi
862    
863     if test -n "$ac_init_help"; then
864     case $ac_init_help in
865 gezelter 1499 short | recursive ) echo "Configuration of OOPSE 2.0:";;
866 gezelter 1490 esac
867 gezelter 2081 cat <<\_ACEOF
868 gezelter 1490
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 gezelter 1540 --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 gezelter 1490 --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 gezelter 2315 --with-zlib=DIR root directory path of zlib installation defaults to
883     /usr/local or /usr if not found in /usr/local
884     --without-zlib to disable zlib usage completely
885 gezelter 2199 --with-perl-shebang override what perl thinks is the way for the kernel
886     to start it (seldom needed)
887 gezelter 1490 --with-mpi=<prefix> compile with MPI installed in <prefix> [default=no]
888 gezelter 2190 --with-cgal-makefile=FILE CGAL makefile that should be used
889 gezelter 1490
890     Some influential environment variables:
891     CC C compiler command
892     CFLAGS C compiler flags
893     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
894     nonstandard directory <lib dir>
895     CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
896     headers in a nonstandard directory <include dir>
897     CXX C++ compiler command
898     CXXFLAGS C++ compiler flags
899     F90 Fortran 90 compiler command
900     F90FLAGS Fortran 90 compiler flags
901     CPP C preprocessor
902 gezelter 2190 CXXCPP C++ preprocessor
903 gezelter 1490
904     Use these variables to override the choices made by `configure' or to help
905     it to find libraries and programs with nonstandard names/locations.
906    
907     Report bugs to <gezelter@nd.edu>.
908 gezelter 2081 _ACEOF
909 gezelter 1490 fi
910    
911     if test "$ac_init_help" = "recursive"; then
912     # If there are subdirs, report their specific --help.
913     ac_popdir=`pwd`
914 gezelter 2081 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
915     test -d $ac_dir || continue
916     ac_builddir=.
917 gezelter 1490
918 gezelter 2081 if test "$ac_dir" != .; then
919     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
920     # A "../" for each directory in $ac_dir_suffix.
921     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
922     else
923     ac_dir_suffix= ac_top_builddir=
924     fi
925 gezelter 1490
926 gezelter 2081 case $srcdir in
927     .) # No --srcdir option. We are building in place.
928     ac_srcdir=.
929     if test -z "$ac_top_builddir"; then
930     ac_top_srcdir=.
931     else
932     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
933     fi ;;
934     [\\/]* | ?:[\\/]* ) # Absolute path.
935     ac_srcdir=$srcdir$ac_dir_suffix;
936     ac_top_srcdir=$srcdir ;;
937     *) # Relative path.
938     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
939     ac_top_srcdir=$ac_top_builddir$srcdir ;;
940     esac
941    
942     # Do not use `cd foo && pwd` to compute absolute paths, because
943     # the directories may not exist.
944     case `pwd` in
945     .) ac_abs_builddir="$ac_dir";;
946     *)
947     case "$ac_dir" in
948     .) ac_abs_builddir=`pwd`;;
949     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
950     *) ac_abs_builddir=`pwd`/"$ac_dir";;
951     esac;;
952     esac
953     case $ac_abs_builddir in
954     .) ac_abs_top_builddir=${ac_top_builddir}.;;
955     *)
956     case ${ac_top_builddir}. in
957     .) ac_abs_top_builddir=$ac_abs_builddir;;
958     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
959     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
960     esac;;
961     esac
962     case $ac_abs_builddir in
963     .) ac_abs_srcdir=$ac_srcdir;;
964     *)
965     case $ac_srcdir in
966     .) ac_abs_srcdir=$ac_abs_builddir;;
967     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
968     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
969     esac;;
970     esac
971     case $ac_abs_builddir in
972     .) ac_abs_top_srcdir=$ac_top_srcdir;;
973     *)
974     case $ac_top_srcdir in
975     .) ac_abs_top_srcdir=$ac_abs_builddir;;
976     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
977     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
978     esac;;
979     esac
980    
981     cd $ac_dir
982 gezelter 1490 # Check for guested configure; otherwise get Cygnus style configure.
983 gezelter 2081 if test -f $ac_srcdir/configure.gnu; then
984 gezelter 1490 echo
985 gezelter 2081 $SHELL $ac_srcdir/configure.gnu --help=recursive
986     elif test -f $ac_srcdir/configure; then
987 gezelter 1490 echo
988 gezelter 2081 $SHELL $ac_srcdir/configure --help=recursive
989     elif test -f $ac_srcdir/configure.ac ||
990     test -f $ac_srcdir/configure.in; then
991 gezelter 1490 echo
992     $ac_configure --help
993     else
994 gezelter 2081 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
995 gezelter 1490 fi
996     cd $ac_popdir
997     done
998     fi
999    
1000     test -n "$ac_init_help" && exit 0
1001     if $ac_init_version; then
1002 gezelter 2081 cat <<\_ACEOF
1003 gezelter 1499 OOPSE configure 2.0
1004 gezelter 2081 generated by GNU Autoconf 2.59
1005 gezelter 1490
1006 gezelter 2081 Copyright (C) 2003 Free Software Foundation, Inc.
1007 gezelter 1490 This configure script is free software; the Free Software Foundation
1008     gives unlimited permission to copy, distribute and modify it.
1009 gezelter 2081 _ACEOF
1010 gezelter 1490 exit 0
1011     fi
1012     exec 5>config.log
1013 gezelter 2081 cat >&5 <<_ACEOF
1014 gezelter 1490 This file contains any messages produced by compilers while
1015     running configure, to aid debugging if configure makes a mistake.
1016    
1017 gezelter 1499 It was created by OOPSE $as_me 2.0, which was
1018 gezelter 2081 generated by GNU Autoconf 2.59. Invocation command line was
1019 gezelter 1490
1020     $ $0 $@
1021    
1022 gezelter 2081 _ACEOF
1023 gezelter 1490 {
1024     cat <<_ASUNAME
1025 gezelter 2081 ## --------- ##
1026     ## Platform. ##
1027     ## --------- ##
1028 gezelter 1490
1029     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1030     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1031     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1032     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1033     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1034    
1035     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1036     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1037    
1038     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1039     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1040     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1041     hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1042     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1043     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1044     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1045    
1046 gezelter 2081 _ASUNAME
1047 gezelter 2029
1048 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1049     for as_dir in $PATH
1050     do
1051     IFS=$as_save_IFS
1052     test -z "$as_dir" && as_dir=.
1053     echo "PATH: $as_dir"
1054     done
1055    
1056 gezelter 1490 } >&5
1057    
1058 gezelter 2081 cat >&5 <<_ACEOF
1059 gezelter 1490
1060    
1061 gezelter 2081 ## ----------- ##
1062     ## Core tests. ##
1063     ## ----------- ##
1064    
1065     _ACEOF
1066    
1067    
1068 gezelter 1490 # Keep a trace of the command line.
1069     # Strip out --no-create and --no-recursion so they do not pile up.
1070 gezelter 2081 # Strip out --silent because we don't want to record it for future runs.
1071 gezelter 1490 # Also quote any args containing shell meta-characters.
1072 gezelter 2081 # Make two passes to allow for proper duplicate-argument suppression.
1073 gezelter 1490 ac_configure_args=
1074 gezelter 2081 ac_configure_args0=
1075     ac_configure_args1=
1076 gezelter 1490 ac_sep=
1077 gezelter 2081 ac_must_keep_next=false
1078     for ac_pass in 1 2
1079 gezelter 1490 do
1080 gezelter 2081 for ac_arg
1081     do
1082     case $ac_arg in
1083     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1084     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085     | -silent | --silent | --silen | --sile | --sil)
1086     continue ;;
1087     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1088     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1089     esac
1090     case $ac_pass in
1091     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1092     2)
1093     ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1094     if test $ac_must_keep_next = true; then
1095     ac_must_keep_next=false # Got value, back to normal.
1096     else
1097     case $ac_arg in
1098     *=* | --config-cache | -C | -disable-* | --disable-* \
1099     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1100     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1101     | -with-* | --with-* | -without-* | --without-* | --x)
1102     case "$ac_configure_args0 " in
1103     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1104     esac
1105     ;;
1106     -* ) ac_must_keep_next=true ;;
1107     esac
1108     fi
1109     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1110     # Get rid of the leading space.
1111     ac_sep=" "
1112     ;;
1113     esac
1114     done
1115 gezelter 1490 done
1116 gezelter 2081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1117     $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1118 gezelter 1490
1119     # When interrupted or exit'd, cleanup temporary files, and complete
1120     # config.log. We remove comments because anyway the quotes in there
1121     # would cause problems or look ugly.
1122 gezelter 2081 # WARNING: Be sure not to use single quotes in there, as some shells,
1123     # such as our DU 5.0 friend, will then `close' the trap.
1124 gezelter 1490 trap 'exit_status=$?
1125     # Save into config.log some information that might help in debugging.
1126 gezelter 2081 {
1127     echo
1128    
1129     cat <<\_ASBOX
1130     ## ---------------- ##
1131     ## Cache variables. ##
1132     ## ---------------- ##
1133     _ASBOX
1134     echo
1135     # The following way of writing the cache mishandles newlines in values,
1136 gezelter 1490 {
1137     (set) 2>&1 |
1138     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1139     *ac_space=\ *)
1140     sed -n \
1141 gezelter 2081 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1142     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1143 gezelter 1490 ;;
1144     *)
1145     sed -n \
1146 gezelter 2081 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1147 gezelter 1490 ;;
1148     esac;
1149 gezelter 2081 }
1150     echo
1151    
1152     cat <<\_ASBOX
1153     ## ----------------- ##
1154     ## Output variables. ##
1155     ## ----------------- ##
1156     _ASBOX
1157     echo
1158     for ac_var in $ac_subst_vars
1159     do
1160     eval ac_val=$`echo $ac_var`
1161     echo "$ac_var='"'"'$ac_val'"'"'"
1162     done | sort
1163     echo
1164    
1165     if test -n "$ac_subst_files"; then
1166     cat <<\_ASBOX
1167     ## ------------- ##
1168     ## Output files. ##
1169     ## ------------- ##
1170     _ASBOX
1171     echo
1172     for ac_var in $ac_subst_files
1173     do
1174     eval ac_val=$`echo $ac_var`
1175     echo "$ac_var='"'"'$ac_val'"'"'"
1176     done | sort
1177     echo
1178     fi
1179    
1180     if test -s confdefs.h; then
1181     cat <<\_ASBOX
1182     ## ----------- ##
1183     ## confdefs.h. ##
1184     ## ----------- ##
1185     _ASBOX
1186     echo
1187     sed "/^$/d" confdefs.h | sort
1188     echo
1189     fi
1190     test "$ac_signal" != 0 &&
1191     echo "$as_me: caught signal $ac_signal"
1192     echo "$as_me: exit $exit_status"
1193     } >&5
1194     rm -f core *.core &&
1195     rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1196 gezelter 1490 exit $exit_status
1197     ' 0
1198     for ac_signal in 1 2 13 15; do
1199 gezelter 2081 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1200 gezelter 1490 done
1201     ac_signal=0
1202    
1203     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1204     rm -rf conftest* confdefs.h
1205     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1206     echo >confdefs.h
1207    
1208 gezelter 2081 # Predefined preprocessor variables.
1209    
1210     cat >>confdefs.h <<_ACEOF
1211     #define PACKAGE_NAME "$PACKAGE_NAME"
1212     _ACEOF
1213    
1214    
1215     cat >>confdefs.h <<_ACEOF
1216     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1217     _ACEOF
1218    
1219    
1220     cat >>confdefs.h <<_ACEOF
1221     #define PACKAGE_VERSION "$PACKAGE_VERSION"
1222     _ACEOF
1223    
1224    
1225     cat >>confdefs.h <<_ACEOF
1226     #define PACKAGE_STRING "$PACKAGE_STRING"
1227     _ACEOF
1228    
1229    
1230     cat >>confdefs.h <<_ACEOF
1231     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1232     _ACEOF
1233    
1234    
1235 gezelter 1490 # Let the site file select an alternate cache file if it wants to.
1236     # Prefer explicitly selected file to automatically selected ones.
1237     if test -z "$CONFIG_SITE"; then
1238     if test "x$prefix" != xNONE; then
1239     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1240     else
1241     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1242     fi
1243     fi
1244     for ac_site_file in $CONFIG_SITE; do
1245     if test -r "$ac_site_file"; then
1246 gezelter 2081 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1247 gezelter 1490 echo "$as_me: loading site script $ac_site_file" >&6;}
1248 gezelter 2081 sed 's/^/| /' "$ac_site_file" >&5
1249 gezelter 1490 . "$ac_site_file"
1250     fi
1251     done
1252    
1253     if test -r "$cache_file"; then
1254     # Some versions of bash will fail to source /dev/null (special
1255     # files actually), so we avoid doing that.
1256     if test -f "$cache_file"; then
1257 gezelter 2081 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1258 gezelter 1490 echo "$as_me: loading cache $cache_file" >&6;}
1259     case $cache_file in
1260     [\\/]* | ?:[\\/]* ) . $cache_file;;
1261     *) . ./$cache_file;;
1262     esac
1263     fi
1264     else
1265 gezelter 2081 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1266 gezelter 1490 echo "$as_me: creating cache $cache_file" >&6;}
1267     >$cache_file
1268     fi
1269    
1270     # Check that the precious variables saved in the cache have kept the same
1271     # value.
1272 gezelter 2081 ac_cache_corrupted=false
1273 gezelter 1490 for ac_var in `(set) 2>&1 |
1274 gezelter 2081 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1275 gezelter 1490 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1276     eval ac_new_set=\$ac_env_${ac_var}_set
1277     eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1278     eval ac_new_val="\$ac_env_${ac_var}_value"
1279     case $ac_old_set,$ac_new_set in
1280     set,)
1281 gezelter 2081 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1282     echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1283     ac_cache_corrupted=: ;;
1284 gezelter 1490 ,set)
1285 gezelter 2081 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1286     echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1287     ac_cache_corrupted=: ;;
1288 gezelter 1490 ,);;
1289     *)
1290     if test "x$ac_old_val" != "x$ac_new_val"; then
1291 gezelter 2081 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1292     echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1293     { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1294     echo "$as_me: former value: $ac_old_val" >&2;}
1295     { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1296     echo "$as_me: current value: $ac_new_val" >&2;}
1297     ac_cache_corrupted=:
1298 gezelter 1490 fi;;
1299     esac
1300 gezelter 2081 # Pass precious variables to config.status.
1301     if test "$ac_new_set" = set; then
1302     case $ac_new_val in
1303     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1304     ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1305     *) ac_arg=$ac_var=$ac_new_val ;;
1306     esac
1307     case " $ac_configure_args " in
1308     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1309     *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1310     esac
1311     fi
1312 gezelter 1490 done
1313 gezelter 2081 if $ac_cache_corrupted; then
1314     { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1315     echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1316     { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1317     echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1318     { (exit 1); exit 1; }; }
1319 gezelter 1490 fi
1320    
1321     ac_ext=c
1322     ac_cpp='$CPP $CPPFLAGS'
1323     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1324     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1325     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1326    
1327    
1328 gezelter 2081
1329    
1330    
1331    
1332    
1333    
1334    
1335    
1336    
1337    
1338    
1339    
1340    
1341    
1342    
1343    
1344    
1345    
1346    
1347    
1348    
1349    
1350    
1351    
1352    
1353 gezelter 1490 ac_aux_dir=
1354     for ac_dir in ac-tools $srcdir/ac-tools; do
1355     if test -f $ac_dir/install-sh; then
1356     ac_aux_dir=$ac_dir
1357     ac_install_sh="$ac_aux_dir/install-sh -c"
1358     break
1359     elif test -f $ac_dir/install.sh; then
1360     ac_aux_dir=$ac_dir
1361     ac_install_sh="$ac_aux_dir/install.sh -c"
1362     break
1363     elif test -f $ac_dir/shtool; then
1364     ac_aux_dir=$ac_dir
1365     ac_install_sh="$ac_aux_dir/shtool install -c"
1366     break
1367     fi
1368     done
1369     if test -z "$ac_aux_dir"; then
1370 gezelter 2081 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1371 gezelter 1490 echo "$as_me: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&2;}
1372     { (exit 1); exit 1; }; }
1373     fi
1374     ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1375     ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1376     ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1377    
1378 gezelter 2081
1379 gezelter 1490 # This file is part of Autoconf. -*- Autoconf -*-
1380     # Programming languages support.
1381     # Copyright 2000, 2001
1382     # Free Software Foundation, Inc.
1383     #
1384     # This program is free software; you can redistribute it and/or modify
1385     # it under the terms of the GNU General Public License as published by
1386     # the Free Software Foundation; either version 2, or (at your option)
1387     # any later version.
1388     #
1389     # This program is distributed in the hope that it will be useful,
1390     # but WITHOUT ANY WARRANTY; without even the implied warranty of
1391     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1392     # GNU General Public License for more details.
1393     #
1394     # You should have received a copy of the GNU General Public License
1395     # along with this program; if not, write to the Free Software
1396     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1397     # 02111-1307, USA.
1398     #
1399     # As a special exception, the Free Software Foundation gives unlimited
1400     # permission to copy, distribute and modify the configure scripts that
1401     # are the output of Autoconf. You need not follow the terms of the GNU
1402     # General Public License when using or distributing such scripts, even
1403     # though portions of the text of Autoconf appear in them. The GNU
1404     # General Public License (GPL) does govern all other use of the material
1405     # that constitutes the Autoconf program.
1406     #
1407     # Certain portions of the Autoconf source text are designed to be copied
1408     # (in certain cases, depending on the input) into the output of
1409     # Autoconf. We call these the "data" portions. The rest of the Autoconf
1410     # source text consists of comments plus executable code that decides which
1411     # of the data portions to output in any given case. We call these
1412     # comments and executable code the "non-data" portions. Autoconf never
1413     # copies any of the non-data portions into its output.
1414     #
1415     # This special exception to the GPL applies to versions of Autoconf
1416     # released by the Free Software Foundation. When you make and
1417     # distribute a modified version of Autoconf, you may extend this special
1418     # exception to the GPL to apply to your modified version as well, *unless*
1419     # your modified version has the potential to copy into its output some
1420     # of the text that was the non-data portion of the version that you started
1421     # with. (In other words, unless your change moves or copies text from
1422     # the non-data portions to the data portions.) If your modification has
1423     # such potential, you must delete any notice of this special exception
1424     # to the GPL from your modified version.
1425     #
1426     # Written by Akim Demaille, Christian Marquardt, Martin Wilks (and probably
1427     # many others).
1428    
1429 gezelter 2081
1430 gezelter 1490 # Table of Contents:
1431     #
1432     # 1. Language selection
1433     # and routines to produce 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     # 2. Producing programs in a given language.
1439     # a. Fortran 77 (to be moved from aclang.m4)
1440     # b. Fortran 90
1441     # c. Fortran 95
1442     #
1443     # 3. Looking for a compiler
1444     # And possibly the associated preprocessor.
1445     # a. Fortran 77 (to be moved from aclang.m4)
1446     # b. Fortran 90
1447     # c. Fortran 95
1448     #
1449     # 4. Compilers' characteristics.
1450     # a. Fortran 77 (to be moved from aclang.m4)
1451     # b. Fortran 90
1452     # c. Fortran 95
1453    
1454     # _AC_LIST_MEMBER_IF(ELEMENT, LIST, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1455     # ---------------------------------------------------------------------------
1456     #
1457     # Processing the elements of a list is tedious in shell programming,
1458     # as lists tend to be implemented as space delimited strings.
1459     #
1460     # This macro searches LIST for ELEMENT, and executes ACTION-IF-FOUND
1461     # if ELEMENT is a member of LIST, otherwise it executes
1462     # ACTION-IF-NOT-FOUND.
1463     # _AC_LIST_MEMBER_IF
1464    
1465 gezelter 2081
1466    
1467 gezelter 1490 # _AC_LINKER_OPTION(LINKER-OPTIONS, SHELL-VARIABLE)
1468     # -------------------------------------------------
1469     #
1470     # Specifying options to the compiler (whether it be the C, C++ or
1471     # Fortran 77 compiler) that are meant for the linker is compiler
1472     # dependent. This macro lets you give options to the compiler that
1473     # are meant for the linker in a portable, compiler-independent way.
1474     #
1475     # This macro take two arguments, a list of linker options that the
1476     # compiler should pass to the linker (LINKER-OPTIONS) and the name of
1477     # a shell variable (SHELL-VARIABLE). The list of linker options are
1478     # appended to the shell variable in a compiler-dependent way.
1479     #
1480     # For example, if the selected language is C, then this:
1481     #
1482     # _AC_LINKER_OPTION([-R /usr/local/lib/foo], foo_LDFLAGS)
1483     #
1484     # will expand into this if the selected C compiler is gcc:
1485     #
1486     # foo_LDFLAGS="-Xlinker -R -Xlinker /usr/local/lib/foo"
1487     #
1488     # otherwise, it will expand into this:
1489     #
1490     # foo_LDFLAGS"-R /usr/local/lib/foo"
1491     #
1492     # You are encouraged to add support for compilers that this macro
1493     # doesn't currently support.
1494     # FIXME: Get rid of this macro.
1495     # _AC_LINKER_OPTION
1496    
1497 gezelter 2081
1498    
1499 gezelter 1490 ## ----------------------- ##
1500     ## 1. Language selection. ##
1501     ## ----------------------- ##
1502    
1503     # ----------------------------- #
1504     # 1b. The Fortran 90 language. #
1505     # ----------------------------- #
1506    
1507     # AC_LANG(Fortran 90)
1508     # -------------------
1509    
1510 gezelter 2081
1511    
1512 gezelter 1490 # _AC_LANG_ABBREV(Fortran 90)
1513     # ---------------------------
1514    
1515 gezelter 2081
1516    
1517 gezelter 1490 # ----------------------------- #
1518     # 1c. The Fortran 95 language. #
1519     # ----------------------------- #
1520    
1521     # AC_LANG(Fortran 95)
1522     # -------------------
1523    
1524 gezelter 2081
1525    
1526 gezelter 1490 # _AC_LANG_ABBREV(Fortran 95)
1527     # ---------------------------
1528    
1529 gezelter 2081
1530    
1531 gezelter 1490 ## ---------------------- ##
1532     ## 2.Producing programs. ##
1533     ## ---------------------- ##
1534    
1535     # ------------------------ #
1536     # 2b. Fortran 90 sources. #
1537     # ------------------------ #
1538    
1539     # AC_LANG_SOURCE(Fortran 90)(BODY)
1540     # --------------------------------
1541    
1542 gezelter 2081
1543    
1544 gezelter 1490 # AC_LANG_PROGRAM(Fortran 90)([PROLOGUE], [BODY])
1545     # -----------------------------------------------
1546    
1547 gezelter 2081
1548 gezelter 1490 # AC_LANG_CALL(Fortran 90)(PROLOGUE, FUNCTION)
1549     # --------------------------------------------
1550    
1551 gezelter 2081
1552    
1553 gezelter 1490 # ------------------------ #
1554     # 2c. Fortran 95 sources. #
1555     # ------------------------ #
1556    
1557     # AC_LANG_SOURCE(Fortran 95)(BODY)
1558     # --------------------------------
1559    
1560 gezelter 2081
1561 gezelter 1490 # AC_LANG_PROGRAM(Fortran 95)([PROLOGUE], [BODY])
1562     # -----------------------------------------------
1563    
1564 gezelter 2081
1565 gezelter 1490 # AC_LANG_CALL(Fortran 95)(PROLOGUE, FUNCTION)
1566     # --------------------------------------------
1567    
1568 gezelter 2081
1569    
1570 gezelter 1490 ## -------------------------------------------- ##
1571     ## 3. Looking for Compilers and Preprocessors. ##
1572     ## -------------------------------------------- ##
1573    
1574     # ----------------------------- #
1575     # 3b. The Fortran 90 compiler. #
1576     # ----------------------------- #
1577    
1578 gezelter 2081
1579 gezelter 1490 # AC_LANG_PREPROC(Fortran 90)
1580     # ---------------------------
1581     # Find the Fortran 90 preprocessor. Must be AC_DEFUN'd to be AC_REQUIRE'able.
1582    
1583 gezelter 2081
1584    
1585 gezelter 1490 # AC_LANG_COMPILER(Fortran 90)
1586     # ----------------------------
1587     # Find the Fortran 90 compiler. Must be AC_DEFUN'd to be
1588     # AC_REQUIRE'able.
1589    
1590 gezelter 2081
1591    
1592 gezelter 1490 # AC_PROG_F90([COMPILERS...])
1593     # ---------------------------
1594     # COMPILERS is a space separated list of Fortran 90 compilers to search
1595     # for.
1596     #
1597     # Compilers are ordered by
1598     # 1. F90, F95
1599     # 2. Good/tested native compilers, bad/untested native compilers
1600     #
1601     # pgf90 is the Portland Group F90 compilers.
1602     # xlf90/xlf95 are IBM (AIX) F90/F95 compilers.
1603     # lf95 is the Lahey-Fujitsu compiler.
1604     # epcf90 is the "Edinburgh Portable Compiler" F90.
1605     # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1606     # AC_PROG_F90
1607    
1608 gezelter 2081
1609 gezelter 1490 # ----------------------------- #
1610     # 3c. The Fortran 95 compiler. #
1611     # ----------------------------- #
1612    
1613 gezelter 2081
1614 gezelter 1490 # AC_LANG_PREPROC(Fortran 95)
1615     # ---------------------------
1616     # Find the Fortran 95 preprocessor. Must be AC_DEFUN'd to be AC_REQUIRE'able.
1617    
1618 gezelter 2081
1619    
1620 gezelter 1490 # AC_LANG_COMPILER(Fortran 95)
1621     # ----------------------------
1622     # Find the Fortran 95 compiler. Must be AC_DEFUN'd to be
1623     # AC_REQUIRE'able.
1624    
1625 gezelter 2081
1626    
1627 gezelter 1490 # AC_PROG_F95([COMPILERS...])
1628     # ---------------------------
1629     # COMPILERS is a space separated list of Fortran 95 compilers to search
1630     # for.
1631     #
1632     # Compilers are ordered by
1633     # 1. Good/tested native compilers, bad/untested native compilers
1634     #
1635     # xlf95 is the IBM (AIX) F95 compiler.
1636     # lf95 is the Lahey-Fujitsu compiler.
1637     # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1638     # AC_PROG_F95
1639    
1640 gezelter 2081
1641 gezelter 1490 ## ------------------------------- ##
1642     ## 4. Compilers' characteristics. ##
1643     ## ------------------------------- ##
1644    
1645 gezelter 2081
1646 gezelter 1490 # ---------------------------------------- #
1647     # 4b. Fortan 90 compiler characteristics. #
1648     # ---------------------------------------- #
1649    
1650 gezelter 2081
1651 gezelter 1490 # _AC_PROG_F90_V_OUTPUT([FLAG = $ac_cv_prog_f90_v])
1652     # -------------------------------------------------
1653     # Link a trivial Fortran program, compiling with a verbose output FLAG
1654     # (which default value, $ac_cv_prog_f90_v, is computed by
1655     # _AC_PROG_F90_V), and return the output in $ac_f90_v_output. This
1656     # output is processed in the way expected by AC_F90_LIBRARY_LDFLAGS,
1657     # so that any link flags that are echoed by the compiler appear as
1658     # space-separated items.
1659     # _AC_PROG_F90_V_OUTPUT
1660    
1661 gezelter 2081
1662 gezelter 1490 # _AC_PROG_F90_V
1663     # --------------
1664     #
1665     # Determine the flag that causes the Fortran 90 compiler to print
1666     # information of library and object files (normally -v)
1667     # Needed for AC_F90_LIBRARY_FLAGS
1668     # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1669     # _AC_PROG_F90_V
1670    
1671 gezelter 2081
1672 gezelter 1490 # AC_F90_LIBRARY_LDFLAGS
1673     # ----------------------
1674     #
1675     # Determine the linker flags (e.g. "-L" and "-l") for the Fortran 90
1676     # intrinsic and run-time libraries that are required to successfully
1677     # link a Fortran 90 program or shared library. The output variable
1678     # F90LIBS is set to these flags.
1679     #
1680     # This macro is intended to be used in those situations when it is
1681     # necessary to mix, e.g. C++ and Fortran 90, source code into a single
1682     # program or shared library.
1683     #
1684     # For example, if object files from a C++ and Fortran 90 compiler must
1685     # be linked together, then the C++ compiler/linker must be used for
1686     # linking (since special C++-ish things need to happen at link time
1687     # like calling global constructors, instantiating templates, enabling
1688     # exception support, etc.).
1689     #
1690     # However, the Fortran 90 intrinsic and run-time libraries must be
1691     # linked in as well, but the C++ compiler/linker doesn't know how to
1692     # add these Fortran 90 libraries. Hence, the macro
1693     # "AC_F90_LIBRARY_LDFLAGS" was created to determine these Fortran 90
1694     # libraries.
1695     #
1696     # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1697     # AC_F90_LIBRARY_LDFLAGS
1698    
1699 gezelter 2081
1700 gezelter 1490 # _AC_F90_NAME_MANGLING
1701     # ---------------------
1702     # Test for the name mangling scheme used by the Fortran 90 compiler.
1703     #
1704     # Sets ac_cv_f90_mangling. The value contains three fields, separated
1705     # by commas:
1706     #
1707     # lower case / upper case:
1708     # case translation of the Fortan 90 symbols
1709     # underscore / no underscore:
1710     # whether the compiler appends "_" to symbol names
1711     # extra underscore / no extra underscore:
1712     # whether the compiler appends an extra "_" to symbol names already
1713     # containing at least one underscore
1714     #
1715     # _AC_F90_NAME_MANGLING
1716    
1717     # The replacement is empty.
1718    
1719 gezelter 2081
1720    
1721 gezelter 1490 # AC_F90_WRAPPERS
1722     # ---------------
1723     # Defines C macros F90_FUNC(name,NAME) and F90_FUNC_(name,NAME) to
1724     # properly mangle the names of C identifiers, and C identifiers with
1725     # underscores, respectively, so that they match the name mangling
1726     # scheme used by the Fortran 90 compiler.
1727     # AC_F90_WRAPPERS
1728    
1729 gezelter 2081
1730 gezelter 1490 # AC_F90_FUNC(NAME, [SHELLVAR = NAME])
1731     # ------------------------------------
1732     # For a Fortran subroutine of given NAME, define a shell variable
1733     # $SHELLVAR to the Fortran 90 mangled name. If the SHELLVAR
1734     # argument is not supplied, it defaults to NAME.
1735     # AC_F90_FUNC
1736    
1737 gezelter 2081
1738 gezelter 1490 # ---------------------------------------- #
1739     # 4c. Fortan 95 compiler characteristics. #
1740     # ---------------------------------------- #
1741    
1742 gezelter 2081
1743 gezelter 1490 # _AC_PROG_F95_V_OUTPUT([FLAG = $ac_cv_prog_f95_v])
1744     # -------------------------------------------------
1745     # Link a trivial Fortran program, compiling with a verbose output FLAG
1746     # (which default value, $ac_cv_prog_f95_v, is computed by
1747     # _AC_PROG_F95_V), and return the output in $ac_f95_v_output. This
1748     # output is processed in the way expected by AC_F95_LIBRARY_LDFLAGS,
1749     # so that any link flags that are echoed by the compiler appear as
1750     # space-separated items.
1751     # _AC_PROG_F95_V_OUTPUT
1752    
1753 gezelter 2081
1754 gezelter 1490 # _AC_PROG_F95_V
1755     # --------------
1756     #
1757     # Determine the flag that causes the Fortran 95 compiler to print
1758     # information of library and object files (normally -v)
1759     # Needed for AC_F95_LIBRARY_FLAGS
1760     # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1761     # _AC_PROG_F95_V
1762    
1763 gezelter 2081
1764 gezelter 1490 # AC_F95_LIBRARY_LDFLAGS
1765     # ----------------------
1766     #
1767     # Determine the linker flags (e.g. "-L" and "-l") for the Fortran 95
1768     # intrinsic and run-time libraries that are required to successfully
1769     # link a Fortran 95 program or shared library. The output variable
1770     # F95LIBS is set to these flags.
1771     #
1772     # This macro is intended to be used in those situations when it is
1773     # necessary to mix, e.g. C++ and Fortran 95, source code into a single
1774     # program or shared library.
1775     #
1776     # For example, if object files from a C++ and Fortran 95 compiler must
1777     # be linked together, then the C++ compiler/linker must be used for
1778     # linking (since special C++-ish things need to happen at link time
1779     # like calling global constructors, instantiating templates, enabling
1780     # exception support, etc.).
1781     #
1782     # However, the Fortran 95 intrinsic and run-time libraries must be
1783     # linked in as well, but the C++ compiler/linker doesn't know how to
1784     # add these Fortran 95 libraries. Hence, the macro
1785     # "AC_F95_LIBRARY_LDFLAGS" was created to determine these Fortran 95
1786     # libraries.
1787     #
1788     # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1789     # AC_F95_LIBRARY_LDFLAGS
1790    
1791 gezelter 2081
1792 gezelter 1490 # _AC_F95_NAME_MANGLING
1793     # ---------------------
1794     # Test for the name mangling scheme used by the Fortran 95 compiler.
1795     #
1796     # Sets ac_cv_f95_mangling. The value contains three fields, separated
1797     # by commas:
1798     #
1799     # lower case / upper case:
1800     # case translation of the Fortan 95 symbols
1801     # underscore / no underscore:
1802     # whether the compiler appends "_" to symbol names
1803     # extra underscore / no extra underscore:
1804     # whether the compiler appends an extra "_" to symbol names already
1805     # containing at least one underscore
1806     #
1807     # _AC_F95_NAME_MANGLING
1808    
1809     # The replacement is empty.
1810    
1811 gezelter 2081
1812    
1813 gezelter 1490 # AC_F95_WRAPPERS
1814     # ---------------
1815     # Defines C macros F95_FUNC(name,NAME) and F95_FUNC_(name,NAME) to
1816     # properly mangle the names of C identifiers, and C identifiers with
1817     # underscores, respectively, so that they match the name mangling
1818     # scheme used by the Fortran 95 compiler.
1819     # AC_F95_WRAPPERS
1820    
1821 gezelter 2081
1822 gezelter 1490 # AC_F95_FUNC(NAME, [SHELLVAR = NAME])
1823     # ------------------------------------
1824     # For a Fortran subroutine of given NAME, define a shell variable
1825     # $SHELLVAR to the Fortran 95 mangled name. If the SHELLVAR
1826     # argument is not supplied, it defaults to NAME.
1827     # AC_F95_FUNC
1828    
1829 gezelter 1535 # AC_F90_MODULE_NAMES
1830     # -------------------
1831     #
1832     # Figure out how the Fortran 90 compiler constructs module file names
1833     #
1834     # AC_F90_MODULE_NAMES
1835 gezelter 1490
1836 gezelter 2081
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 gezelter 2199 #
1889     #
1890     #
1891 gezelter 2081
1892    
1893    
1894    
1895    
1896    
1897 gezelter 2315
1898    
1899 gezelter 1490 # set program name
1900     PROGNAME="oopse"
1901    
1902 gezelter 2081
1903 gezelter 1490 # there are two ways to do debugging. One with the --enable-debug flag
1904     # and one using the DEBUG environment variable
1905    
1906     debug=0
1907     # Check whether --enable-debug or --disable-debug was given.
1908     if test "${enable_debug+set}" = set; then
1909     enableval="$enable_debug"
1910     debug=1
1911     fi;
1912     if test "${DEBUG}"; then
1913    
1914 gezelter 2081 cat >>confdefs.h <<\_ACEOF
1915 gezelter 1490 #define debug 1
1916 gezelter 2081 _ACEOF
1917 gezelter 1490
1918     msg="$msg, debug mode"
1919     fi
1920    
1921 gezelter 2081
1922 gezelter 1490 # who am i
1923     # Make sure we can run config.sub.
1924     $ac_config_sub sun4 >/dev/null 2>&1 ||
1925 gezelter 2081 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1926 gezelter 1490 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1927     { (exit 1); exit 1; }; }
1928    
1929 gezelter 2081 echo "$as_me:$LINENO: checking build system type" >&5
1930 gezelter 1490 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1931     if test "${ac_cv_build+set}" = set; then
1932     echo $ECHO_N "(cached) $ECHO_C" >&6
1933     else
1934     ac_cv_build_alias=$build_alias
1935     test -z "$ac_cv_build_alias" &&
1936     ac_cv_build_alias=`$ac_config_guess`
1937     test -z "$ac_cv_build_alias" &&
1938 gezelter 2081 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1939 gezelter 1490 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1940     { (exit 1); exit 1; }; }
1941     ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1942 gezelter 2081 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1943     echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1944 gezelter 1490 { (exit 1); exit 1; }; }
1945    
1946     fi
1947 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1948 gezelter 1490 echo "${ECHO_T}$ac_cv_build" >&6
1949     build=$ac_cv_build
1950     build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1951     build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1952     build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1953    
1954 gezelter 2081
1955     echo "$as_me:$LINENO: checking host system type" >&5
1956 gezelter 1490 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1957     if test "${ac_cv_host+set}" = set; then
1958     echo $ECHO_N "(cached) $ECHO_C" >&6
1959     else
1960     ac_cv_host_alias=$host_alias
1961     test -z "$ac_cv_host_alias" &&
1962     ac_cv_host_alias=$ac_cv_build_alias
1963     ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1964 gezelter 2081 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1965 gezelter 1490 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1966     { (exit 1); exit 1; }; }
1967    
1968     fi
1969 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1970 gezelter 1490 echo "${ECHO_T}$ac_cv_host" >&6
1971     host=$ac_cv_host
1972     host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1973     host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1974     host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1975    
1976 gezelter 2081
1977    
1978    
1979    
1980 gezelter 1490 ac_ext=c
1981     ac_cpp='$CPP $CPPFLAGS'
1982     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1983     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1984     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1985     if test -n "$ac_tool_prefix"; then
1986     for ac_prog in icc xlc gcc cc
1987     do
1988     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1989     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1990 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
1991 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992     if test "${ac_cv_prog_CC+set}" = set; then
1993     echo $ECHO_N "(cached) $ECHO_C" >&6
1994     else
1995     if test -n "$CC"; then
1996     ac_cv_prog_CC="$CC" # Let the user override the test.
1997     else
1998 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999     for as_dir in $PATH
2000     do
2001     IFS=$as_save_IFS
2002     test -z "$as_dir" && as_dir=.
2003     for ac_exec_ext in '' $ac_executable_extensions; do
2004     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2005     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007     break 2
2008     fi
2009 gezelter 1490 done
2010 gezelter 2081 done
2011 gezelter 1490
2012     fi
2013     fi
2014     CC=$ac_cv_prog_CC
2015     if test -n "$CC"; then
2016 gezelter 2081 echo "$as_me:$LINENO: result: $CC" >&5
2017 gezelter 1490 echo "${ECHO_T}$CC" >&6
2018     else
2019 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
2020 gezelter 1490 echo "${ECHO_T}no" >&6
2021     fi
2022    
2023     test -n "$CC" && break
2024     done
2025     fi
2026     if test -z "$CC"; then
2027     ac_ct_CC=$CC
2028     for ac_prog in icc xlc gcc cc
2029     do
2030     # Extract the first word of "$ac_prog", so it can be a program name with args.
2031     set dummy $ac_prog; ac_word=$2
2032 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2035     echo $ECHO_N "(cached) $ECHO_C" >&6
2036     else
2037     if test -n "$ac_ct_CC"; then
2038     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2039     else
2040 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041     for as_dir in $PATH
2042     do
2043     IFS=$as_save_IFS
2044     test -z "$as_dir" && as_dir=.
2045     for ac_exec_ext in '' $ac_executable_extensions; do
2046     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047     ac_cv_prog_ac_ct_CC="$ac_prog"
2048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049     break 2
2050     fi
2051 gezelter 1490 done
2052 gezelter 2081 done
2053 gezelter 1490
2054     fi
2055     fi
2056     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2057     if test -n "$ac_ct_CC"; then
2058 gezelter 2081 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2059 gezelter 1490 echo "${ECHO_T}$ac_ct_CC" >&6
2060     else
2061 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
2062 gezelter 1490 echo "${ECHO_T}no" >&6
2063     fi
2064    
2065     test -n "$ac_ct_CC" && break
2066     done
2067    
2068     CC=$ac_ct_CC
2069     fi
2070    
2071 gezelter 2081
2072     test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073     See \`config.log' for more details." >&5
2074     echo "$as_me: error: no acceptable C compiler found in \$PATH
2075     See \`config.log' for more details." >&2;}
2076 gezelter 1490 { (exit 1); exit 1; }; }
2077    
2078 gezelter 2081 # Provide some information about the compiler.
2079     echo "$as_me:$LINENO:" \
2080     "checking for C compiler version" >&5
2081     ac_compiler=`set X $ac_compile; echo $2`
2082     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2083     (eval $ac_compiler --version </dev/null >&5) 2>&5
2084     ac_status=$?
2085     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086     (exit $ac_status); }
2087     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2088     (eval $ac_compiler -v </dev/null >&5) 2>&5
2089     ac_status=$?
2090     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091     (exit $ac_status); }
2092     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2093     (eval $ac_compiler -V </dev/null >&5) 2>&5
2094     ac_status=$?
2095     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096     (exit $ac_status); }
2097    
2098 gezelter 1490 cat >conftest.$ac_ext <<_ACEOF
2099 gezelter 2081 /* confdefs.h. */
2100     _ACEOF
2101     cat confdefs.h >>conftest.$ac_ext
2102     cat >>conftest.$ac_ext <<_ACEOF
2103     /* end confdefs.h. */
2104 gezelter 1490
2105     int
2106     main ()
2107     {
2108    
2109     ;
2110     return 0;
2111     }
2112     _ACEOF
2113     ac_clean_files_save=$ac_clean_files
2114 gezelter 2081 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2115 gezelter 1490 # Try to create an executable without -o first, disregard a.out.
2116 gezelter 2081 # It will help us diagnose broken compilers, and finding out an intuition
2117 gezelter 1490 # of exeext.
2118 gezelter 2081 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2119     echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2120 gezelter 1490 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2121 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2122 gezelter 1490 (eval $ac_link_default) 2>&5
2123     ac_status=$?
2124 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 gezelter 1490 (exit $ac_status); }; then
2126 gezelter 2081 # Find the output, starting from the most likely. This scheme is
2127     # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2128     # resort.
2129    
2130     # Be careful to initialize this variable, since it used to be cached.
2131     # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2132     ac_cv_exeext=
2133     # b.out is created by i960 compilers.
2134     for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2135     do
2136     test -f "$ac_file" || continue
2137 gezelter 1490 case $ac_file in
2138 gezelter 2081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2139     ;;
2140     conftest.$ac_ext )
2141     # This is the source file.
2142     ;;
2143     [ab].out )
2144     # We found the default executable, but exeext='' is most
2145     # certainly right.
2146     break;;
2147     *.* )
2148     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2149     # FIXME: I believe we export ac_cv_exeext for Libtool,
2150     # but it would be cool to find out if it's true. Does anybody
2151     # maintain Libtool? --akim.
2152     export ac_cv_exeext
2153     break;;
2154     * )
2155     break;;
2156 gezelter 1490 esac
2157     done
2158     else
2159     echo "$as_me: failed program was:" >&5
2160 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2161    
2162     { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2163     See \`config.log' for more details." >&5
2164     echo "$as_me: error: C compiler cannot create executables
2165     See \`config.log' for more details." >&2;}
2166 gezelter 1490 { (exit 77); exit 77; }; }
2167     fi
2168    
2169     ac_exeext=$ac_cv_exeext
2170 gezelter 2081 echo "$as_me:$LINENO: result: $ac_file" >&5
2171 gezelter 1490 echo "${ECHO_T}$ac_file" >&6
2172    
2173     # Check the compiler produces executables we can run. If not, either
2174     # the compiler is broken, or we cross compile.
2175 gezelter 2081 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2176 gezelter 1490 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2177     # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2178     # If not cross compiling, check that we can run a simple program.
2179     if test "$cross_compiling" != yes; then
2180     if { ac_try='./$ac_file'
2181 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 gezelter 1490 (eval $ac_try) 2>&5
2183     ac_status=$?
2184 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 gezelter 1490 (exit $ac_status); }; }; then
2186     cross_compiling=no
2187     else
2188     if test "$cross_compiling" = maybe; then
2189     cross_compiling=yes
2190     else
2191 gezelter 2081 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2192     If you meant to cross compile, use \`--host'.
2193     See \`config.log' for more details." >&5
2194 gezelter 1490 echo "$as_me: error: cannot run C compiled programs.
2195 gezelter 2081 If you meant to cross compile, use \`--host'.
2196     See \`config.log' for more details." >&2;}
2197 gezelter 1490 { (exit 1); exit 1; }; }
2198     fi
2199     fi
2200     fi
2201 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
2202 gezelter 1490 echo "${ECHO_T}yes" >&6
2203    
2204 gezelter 2081 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2205 gezelter 1490 ac_clean_files=$ac_clean_files_save
2206     # Check the compiler produces executables we can run. If not, either
2207     # the compiler is broken, or we cross compile.
2208 gezelter 2081 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2209 gezelter 1490 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2210 gezelter 2081 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2211 gezelter 1490 echo "${ECHO_T}$cross_compiling" >&6
2212    
2213 gezelter 2081 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2214     echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2215     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2216 gezelter 1490 (eval $ac_link) 2>&5
2217     ac_status=$?
2218 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 gezelter 1490 (exit $ac_status); }; then
2220     # If both `conftest.exe' and `conftest' are `present' (well, observable)
2221     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2222     # work properly (i.e., refer to `conftest.exe'), while it won't with
2223     # `rm'.
2224 gezelter 2081 for ac_file in conftest.exe conftest conftest.*; do
2225     test -f "$ac_file" || continue
2226 gezelter 1490 case $ac_file in
2227 gezelter 2081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2228 gezelter 1490 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2229 gezelter 2081 export ac_cv_exeext
2230     break;;
2231 gezelter 1490 * ) break;;
2232     esac
2233     done
2234     else
2235 gezelter 2081 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2236     See \`config.log' for more details." >&5
2237     echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2238     See \`config.log' for more details." >&2;}
2239 gezelter 1490 { (exit 1); exit 1; }; }
2240     fi
2241    
2242     rm -f conftest$ac_cv_exeext
2243 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2244 gezelter 1490 echo "${ECHO_T}$ac_cv_exeext" >&6
2245    
2246     rm -f conftest.$ac_ext
2247     EXEEXT=$ac_cv_exeext
2248     ac_exeext=$EXEEXT
2249 gezelter 2081 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2250     echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2251 gezelter 1490 if test "${ac_cv_objext+set}" = set; then
2252     echo $ECHO_N "(cached) $ECHO_C" >&6
2253     else
2254     cat >conftest.$ac_ext <<_ACEOF
2255 gezelter 2081 /* confdefs.h. */
2256     _ACEOF
2257     cat confdefs.h >>conftest.$ac_ext
2258     cat >>conftest.$ac_ext <<_ACEOF
2259     /* end confdefs.h. */
2260 gezelter 1490
2261     int
2262     main ()
2263     {
2264    
2265     ;
2266     return 0;
2267     }
2268     _ACEOF
2269     rm -f conftest.o conftest.obj
2270 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 gezelter 1490 (eval $ac_compile) 2>&5
2272     ac_status=$?
2273 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 gezelter 1490 (exit $ac_status); }; then
2275     for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2276     case $ac_file in
2277 gezelter 2081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2278 gezelter 1490 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2279     break;;
2280     esac
2281     done
2282     else
2283     echo "$as_me: failed program was:" >&5
2284 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2285    
2286     { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2287     See \`config.log' for more details." >&5
2288     echo "$as_me: error: cannot compute suffix of object files: cannot compile
2289     See \`config.log' for more details." >&2;}
2290 gezelter 1490 { (exit 1); exit 1; }; }
2291     fi
2292    
2293     rm -f conftest.$ac_cv_objext conftest.$ac_ext
2294     fi
2295 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2296 gezelter 1490 echo "${ECHO_T}$ac_cv_objext" >&6
2297     OBJEXT=$ac_cv_objext
2298     ac_objext=$OBJEXT
2299 gezelter 2081 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2300 gezelter 1490 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2301     if test "${ac_cv_c_compiler_gnu+set}" = set; then
2302     echo $ECHO_N "(cached) $ECHO_C" >&6
2303     else
2304     cat >conftest.$ac_ext <<_ACEOF
2305 gezelter 2081 /* confdefs.h. */
2306     _ACEOF
2307     cat confdefs.h >>conftest.$ac_ext
2308     cat >>conftest.$ac_ext <<_ACEOF
2309     /* end confdefs.h. */
2310 gezelter 1490
2311     int
2312     main ()
2313     {
2314     #ifndef __GNUC__
2315     choke me
2316     #endif
2317    
2318     ;
2319     return 0;
2320     }
2321     _ACEOF
2322     rm -f conftest.$ac_objext
2323 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324     (eval $ac_compile) 2>conftest.er1
2325 gezelter 1490 ac_status=$?
2326 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2327     rm -f conftest.er1
2328     cat conftest.err >&5
2329     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 gezelter 1490 (exit $ac_status); } &&
2331 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
2332     || test ! -s conftest.err'
2333     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 gezelter 1490 (eval $ac_try) 2>&5
2335     ac_status=$?
2336 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337     (exit $ac_status); }; } &&
2338     { ac_try='test -s conftest.$ac_objext'
2339     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340     (eval $ac_try) 2>&5
2341     ac_status=$?
2342     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 gezelter 1490 (exit $ac_status); }; }; then
2344     ac_compiler_gnu=yes
2345     else
2346     echo "$as_me: failed program was:" >&5
2347 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2348    
2349 gezelter 1490 ac_compiler_gnu=no
2350     fi
2351 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352 gezelter 1490 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2353    
2354     fi
2355 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2356 gezelter 1490 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2357     GCC=`test $ac_compiler_gnu = yes && echo yes`
2358     ac_test_CFLAGS=${CFLAGS+set}
2359     ac_save_CFLAGS=$CFLAGS
2360     CFLAGS="-g"
2361 gezelter 2081 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2362 gezelter 1490 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2363     if test "${ac_cv_prog_cc_g+set}" = set; then
2364     echo $ECHO_N "(cached) $ECHO_C" >&6
2365     else
2366     cat >conftest.$ac_ext <<_ACEOF
2367 gezelter 2081 /* confdefs.h. */
2368     _ACEOF
2369     cat confdefs.h >>conftest.$ac_ext
2370     cat >>conftest.$ac_ext <<_ACEOF
2371     /* end confdefs.h. */
2372 gezelter 1490
2373     int
2374     main ()
2375     {
2376    
2377     ;
2378     return 0;
2379     }
2380     _ACEOF
2381     rm -f conftest.$ac_objext
2382 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383     (eval $ac_compile) 2>conftest.er1
2384 gezelter 1490 ac_status=$?
2385 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2386     rm -f conftest.er1
2387     cat conftest.err >&5
2388     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 gezelter 1490 (exit $ac_status); } &&
2390 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
2391     || test ! -s conftest.err'
2392     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 gezelter 1490 (eval $ac_try) 2>&5
2394     ac_status=$?
2395 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396     (exit $ac_status); }; } &&
2397     { ac_try='test -s conftest.$ac_objext'
2398     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399     (eval $ac_try) 2>&5
2400     ac_status=$?
2401     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 gezelter 1490 (exit $ac_status); }; }; then
2403     ac_cv_prog_cc_g=yes
2404     else
2405     echo "$as_me: failed program was:" >&5
2406 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2407    
2408 gezelter 1490 ac_cv_prog_cc_g=no
2409     fi
2410 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2411 gezelter 1490 fi
2412 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2413 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2414     if test "$ac_test_CFLAGS" = set; then
2415     CFLAGS=$ac_save_CFLAGS
2416     elif test $ac_cv_prog_cc_g = yes; then
2417     if test "$GCC" = yes; then
2418     CFLAGS="-g -O2"
2419     else
2420     CFLAGS="-g"
2421     fi
2422     else
2423     if test "$GCC" = yes; then
2424     CFLAGS="-O2"
2425     else
2426     CFLAGS=
2427     fi
2428     fi
2429 gezelter 2081 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2430     echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2431     if test "${ac_cv_prog_cc_stdc+set}" = set; then
2432     echo $ECHO_N "(cached) $ECHO_C" >&6
2433     else
2434     ac_cv_prog_cc_stdc=no
2435     ac_save_CC=$CC
2436     cat >conftest.$ac_ext <<_ACEOF
2437     /* confdefs.h. */
2438     _ACEOF
2439     cat confdefs.h >>conftest.$ac_ext
2440     cat >>conftest.$ac_ext <<_ACEOF
2441     /* end confdefs.h. */
2442     #include <stdarg.h>
2443     #include <stdio.h>
2444     #include <sys/types.h>
2445     #include <sys/stat.h>
2446     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2447     struct buf { int x; };
2448     FILE * (*rcsopen) (struct buf *, struct stat *, int);
2449     static char *e (p, i)
2450     char **p;
2451     int i;
2452     {
2453     return p[i];
2454     }
2455     static char *f (char * (*g) (char **, int), char **p, ...)
2456     {
2457     char *s;
2458     va_list v;
2459     va_start (v,p);
2460     s = g (p, va_arg (v,int));
2461     va_end (v);
2462     return s;
2463     }
2464    
2465     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2466     function prototypes and stuff, but not '\xHH' hex character constants.
2467     These don't provoke an error unfortunately, instead are silently treated
2468     as 'x'. The following induces an error, until -std1 is added to get
2469     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2470     array size at least. It's necessary to write '\x00'==0 to get something
2471     that's true only with -std1. */
2472     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2473    
2474     int test (int i, double x);
2475     struct s1 {int (*f) (int a);};
2476     struct s2 {int (*f) (double a);};
2477     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2478     int argc;
2479     char **argv;
2480     int
2481     main ()
2482     {
2483     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2484     ;
2485     return 0;
2486     }
2487     _ACEOF
2488     # Don't try gcc -ansi; that turns off useful extensions and
2489     # breaks some systems' header files.
2490     # AIX -qlanglvl=ansi
2491     # Ultrix and OSF/1 -std1
2492     # HP-UX 10.20 and later -Ae
2493     # HP-UX older versions -Aa -D_HPUX_SOURCE
2494     # SVR4 -Xc -D__EXTENSIONS__
2495     for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2496     do
2497     CC="$ac_save_CC $ac_arg"
2498     rm -f conftest.$ac_objext
2499     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500     (eval $ac_compile) 2>conftest.er1
2501     ac_status=$?
2502     grep -v '^ *+' conftest.er1 >conftest.err
2503     rm -f conftest.er1
2504     cat conftest.err >&5
2505     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506     (exit $ac_status); } &&
2507     { ac_try='test -z "$ac_c_werror_flag"
2508     || test ! -s conftest.err'
2509     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510     (eval $ac_try) 2>&5
2511     ac_status=$?
2512     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513     (exit $ac_status); }; } &&
2514     { ac_try='test -s conftest.$ac_objext'
2515     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516     (eval $ac_try) 2>&5
2517     ac_status=$?
2518     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519     (exit $ac_status); }; }; then
2520     ac_cv_prog_cc_stdc=$ac_arg
2521     break
2522     else
2523     echo "$as_me: failed program was:" >&5
2524     sed 's/^/| /' conftest.$ac_ext >&5
2525    
2526     fi
2527     rm -f conftest.err conftest.$ac_objext
2528     done
2529     rm -f conftest.$ac_ext conftest.$ac_objext
2530     CC=$ac_save_CC
2531    
2532     fi
2533    
2534     case "x$ac_cv_prog_cc_stdc" in
2535     x|xno)
2536     echo "$as_me:$LINENO: result: none needed" >&5
2537     echo "${ECHO_T}none needed" >&6 ;;
2538     *)
2539     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2540     echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2541     CC="$CC $ac_cv_prog_cc_stdc" ;;
2542     esac
2543    
2544 gezelter 1490 # Some people use a C++ compiler to compile C. Since we use `exit',
2545     # in C++ we need to declare it. In case someone uses the same compiler
2546     # for both compiling C and C++ we need to have the C++ compiler decide
2547     # the declaration of exit, since it's the most demanding environment.
2548     cat >conftest.$ac_ext <<_ACEOF
2549     #ifndef __cplusplus
2550     choke me
2551     #endif
2552     _ACEOF
2553     rm -f conftest.$ac_objext
2554 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555     (eval $ac_compile) 2>conftest.er1
2556 gezelter 1490 ac_status=$?
2557 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2558     rm -f conftest.er1
2559     cat conftest.err >&5
2560     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 gezelter 1490 (exit $ac_status); } &&
2562 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
2563     || test ! -s conftest.err'
2564     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 gezelter 1490 (eval $ac_try) 2>&5
2566     ac_status=$?
2567 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568     (exit $ac_status); }; } &&
2569     { ac_try='test -s conftest.$ac_objext'
2570     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571     (eval $ac_try) 2>&5
2572     ac_status=$?
2573     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 gezelter 1490 (exit $ac_status); }; }; then
2575     for ac_declaration in \
2576 gezelter 2081 '' \
2577 gezelter 1490 'extern "C" void std::exit (int) throw (); using std::exit;' \
2578     'extern "C" void std::exit (int); using std::exit;' \
2579     'extern "C" void exit (int) throw ();' \
2580     'extern "C" void exit (int);' \
2581     'void exit (int);'
2582     do
2583     cat >conftest.$ac_ext <<_ACEOF
2584 gezelter 2081 /* confdefs.h. */
2585     _ACEOF
2586     cat confdefs.h >>conftest.$ac_ext
2587     cat >>conftest.$ac_ext <<_ACEOF
2588     /* end confdefs.h. */
2589     $ac_declaration
2590 gezelter 2029 #include <stdlib.h>
2591 gezelter 1490 int
2592     main ()
2593     {
2594     exit (42);
2595     ;
2596     return 0;
2597     }
2598     _ACEOF
2599     rm -f conftest.$ac_objext
2600 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601     (eval $ac_compile) 2>conftest.er1
2602 gezelter 1490 ac_status=$?
2603 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2604     rm -f conftest.er1
2605     cat conftest.err >&5
2606     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 gezelter 1490 (exit $ac_status); } &&
2608 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
2609     || test ! -s conftest.err'
2610     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 gezelter 1490 (eval $ac_try) 2>&5
2612     ac_status=$?
2613 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614     (exit $ac_status); }; } &&
2615     { ac_try='test -s conftest.$ac_objext'
2616     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617     (eval $ac_try) 2>&5
2618     ac_status=$?
2619     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 gezelter 1490 (exit $ac_status); }; }; then
2621     :
2622     else
2623     echo "$as_me: failed program was:" >&5
2624 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2625    
2626 gezelter 1490 continue
2627     fi
2628 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2629 gezelter 1490 cat >conftest.$ac_ext <<_ACEOF
2630 gezelter 2081 /* confdefs.h. */
2631     _ACEOF
2632     cat confdefs.h >>conftest.$ac_ext
2633     cat >>conftest.$ac_ext <<_ACEOF
2634     /* end confdefs.h. */
2635 gezelter 1490 $ac_declaration
2636     int
2637     main ()
2638     {
2639     exit (42);
2640     ;
2641     return 0;
2642     }
2643     _ACEOF
2644     rm -f conftest.$ac_objext
2645 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646     (eval $ac_compile) 2>conftest.er1
2647 gezelter 1490 ac_status=$?
2648 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2649     rm -f conftest.er1
2650     cat conftest.err >&5
2651     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 gezelter 1490 (exit $ac_status); } &&
2653 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
2654     || test ! -s conftest.err'
2655     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 gezelter 1490 (eval $ac_try) 2>&5
2657     ac_status=$?
2658 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659     (exit $ac_status); }; } &&
2660     { ac_try='test -s conftest.$ac_objext'
2661     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662     (eval $ac_try) 2>&5
2663     ac_status=$?
2664     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 gezelter 1490 (exit $ac_status); }; }; then
2666     break
2667     else
2668     echo "$as_me: failed program was:" >&5
2669 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2670    
2671 gezelter 1490 fi
2672 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2673 gezelter 1490 done
2674 gezelter 2081 rm -f conftest*
2675     if test -n "$ac_declaration"; then
2676     echo '#ifdef __cplusplus' >>confdefs.h
2677     echo $ac_declaration >>confdefs.h
2678     echo '#endif' >>confdefs.h
2679     fi
2680 gezelter 1490
2681     else
2682     echo "$as_me: failed program was:" >&5
2683 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2684    
2685 gezelter 1490 fi
2686 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687 gezelter 1490 ac_ext=c
2688     ac_cpp='$CPP $CPPFLAGS'
2689     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692    
2693 gezelter 2081
2694 gezelter 1490 ac_ext=cc
2695     ac_cpp='$CXXCPP $CPPFLAGS'
2696     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2699     if test -n "$ac_tool_prefix"; then
2700     for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2701     do
2702     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2703     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2704 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2705 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2706     if test "${ac_cv_prog_CXX+set}" = set; then
2707     echo $ECHO_N "(cached) $ECHO_C" >&6
2708     else
2709     if test -n "$CXX"; then
2710     ac_cv_prog_CXX="$CXX" # Let the user override the test.
2711     else
2712 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713     for as_dir in $PATH
2714     do
2715     IFS=$as_save_IFS
2716     test -z "$as_dir" && as_dir=.
2717     for ac_exec_ext in '' $ac_executable_extensions; do
2718     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2719     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721     break 2
2722     fi
2723 gezelter 1490 done
2724 gezelter 2081 done
2725 gezelter 1490
2726     fi
2727     fi
2728     CXX=$ac_cv_prog_CXX
2729     if test -n "$CXX"; then
2730 gezelter 2081 echo "$as_me:$LINENO: result: $CXX" >&5
2731 gezelter 1490 echo "${ECHO_T}$CXX" >&6
2732     else
2733 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
2734 gezelter 1490 echo "${ECHO_T}no" >&6
2735     fi
2736    
2737     test -n "$CXX" && break
2738     done
2739     fi
2740     if test -z "$CXX"; then
2741     ac_ct_CXX=$CXX
2742     for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2743     do
2744     # Extract the first word of "$ac_prog", so it can be a program name with args.
2745     set dummy $ac_prog; ac_word=$2
2746 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2747 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2748     if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2749     echo $ECHO_N "(cached) $ECHO_C" >&6
2750     else
2751     if test -n "$ac_ct_CXX"; then
2752     ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2753     else
2754 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755     for as_dir in $PATH
2756     do
2757     IFS=$as_save_IFS
2758     test -z "$as_dir" && as_dir=.
2759     for ac_exec_ext in '' $ac_executable_extensions; do
2760     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2761     ac_cv_prog_ac_ct_CXX="$ac_prog"
2762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2763     break 2
2764     fi
2765 gezelter 1490 done
2766 gezelter 2081 done
2767 gezelter 1490
2768     fi
2769     fi
2770     ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2771     if test -n "$ac_ct_CXX"; then
2772 gezelter 2081 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2773 gezelter 1490 echo "${ECHO_T}$ac_ct_CXX" >&6
2774     else
2775 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
2776 gezelter 1490 echo "${ECHO_T}no" >&6
2777     fi
2778    
2779     test -n "$ac_ct_CXX" && break
2780     done
2781     test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2782    
2783     CXX=$ac_ct_CXX
2784     fi
2785    
2786 gezelter 2081
2787     # Provide some information about the compiler.
2788     echo "$as_me:$LINENO:" \
2789     "checking for C++ compiler version" >&5
2790     ac_compiler=`set X $ac_compile; echo $2`
2791     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2792     (eval $ac_compiler --version </dev/null >&5) 2>&5
2793     ac_status=$?
2794     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795     (exit $ac_status); }
2796     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2797     (eval $ac_compiler -v </dev/null >&5) 2>&5
2798     ac_status=$?
2799     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800     (exit $ac_status); }
2801     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2802     (eval $ac_compiler -V </dev/null >&5) 2>&5
2803     ac_status=$?
2804     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805     (exit $ac_status); }
2806    
2807     echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2808 gezelter 1490 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2809     if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2810     echo $ECHO_N "(cached) $ECHO_C" >&6
2811     else
2812     cat >conftest.$ac_ext <<_ACEOF
2813 gezelter 2081 /* confdefs.h. */
2814     _ACEOF
2815     cat confdefs.h >>conftest.$ac_ext
2816     cat >>conftest.$ac_ext <<_ACEOF
2817     /* end confdefs.h. */
2818 gezelter 1490
2819     int
2820     main ()
2821     {
2822     #ifndef __GNUC__
2823     choke me
2824     #endif
2825    
2826     ;
2827     return 0;
2828     }
2829     _ACEOF
2830     rm -f conftest.$ac_objext
2831 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2832     (eval $ac_compile) 2>conftest.er1
2833 gezelter 1490 ac_status=$?
2834 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2835     rm -f conftest.er1
2836     cat conftest.err >&5
2837     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 gezelter 1490 (exit $ac_status); } &&
2839 gezelter 2081 { ac_try='test -z "$ac_cxx_werror_flag"
2840     || test ! -s conftest.err'
2841     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 gezelter 1490 (eval $ac_try) 2>&5
2843     ac_status=$?
2844 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845     (exit $ac_status); }; } &&
2846     { ac_try='test -s conftest.$ac_objext'
2847     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848     (eval $ac_try) 2>&5
2849     ac_status=$?
2850     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 gezelter 1490 (exit $ac_status); }; }; then
2852     ac_compiler_gnu=yes
2853     else
2854     echo "$as_me: failed program was:" >&5
2855 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2856    
2857 gezelter 1490 ac_compiler_gnu=no
2858     fi
2859 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2860 gezelter 1490 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2861    
2862     fi
2863 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2864 gezelter 1490 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2865     GXX=`test $ac_compiler_gnu = yes && echo yes`
2866     ac_test_CXXFLAGS=${CXXFLAGS+set}
2867     ac_save_CXXFLAGS=$CXXFLAGS
2868     CXXFLAGS="-g"
2869 gezelter 2081 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2870 gezelter 1490 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2871     if test "${ac_cv_prog_cxx_g+set}" = set; then
2872     echo $ECHO_N "(cached) $ECHO_C" >&6
2873     else
2874     cat >conftest.$ac_ext <<_ACEOF
2875 gezelter 2081 /* confdefs.h. */
2876     _ACEOF
2877     cat confdefs.h >>conftest.$ac_ext
2878     cat >>conftest.$ac_ext <<_ACEOF
2879     /* end confdefs.h. */
2880 gezelter 1490
2881     int
2882     main ()
2883     {
2884    
2885     ;
2886     return 0;
2887     }
2888     _ACEOF
2889     rm -f conftest.$ac_objext
2890 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2891     (eval $ac_compile) 2>conftest.er1
2892 gezelter 1490 ac_status=$?
2893 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2894     rm -f conftest.er1
2895     cat conftest.err >&5
2896     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 gezelter 1490 (exit $ac_status); } &&
2898 gezelter 2081 { ac_try='test -z "$ac_cxx_werror_flag"
2899     || test ! -s conftest.err'
2900     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901 gezelter 1490 (eval $ac_try) 2>&5
2902     ac_status=$?
2903 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904     (exit $ac_status); }; } &&
2905     { ac_try='test -s conftest.$ac_objext'
2906     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907     (eval $ac_try) 2>&5
2908     ac_status=$?
2909     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 gezelter 1490 (exit $ac_status); }; }; then
2911     ac_cv_prog_cxx_g=yes
2912     else
2913     echo "$as_me: failed program was:" >&5
2914 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2915    
2916 gezelter 1490 ac_cv_prog_cxx_g=no
2917     fi
2918 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2919 gezelter 1490 fi
2920 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2921 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2922     if test "$ac_test_CXXFLAGS" = set; then
2923     CXXFLAGS=$ac_save_CXXFLAGS
2924     elif test $ac_cv_prog_cxx_g = yes; then
2925     if test "$GXX" = yes; then
2926     CXXFLAGS="-g -O2"
2927     else
2928     CXXFLAGS="-g"
2929     fi
2930     else
2931     if test "$GXX" = yes; then
2932     CXXFLAGS="-O2"
2933     else
2934     CXXFLAGS=
2935     fi
2936     fi
2937     for ac_declaration in \
2938 gezelter 2081 '' \
2939 gezelter 1490 'extern "C" void std::exit (int) throw (); using std::exit;' \
2940     'extern "C" void std::exit (int); using std::exit;' \
2941     'extern "C" void exit (int) throw ();' \
2942     'extern "C" void exit (int);' \
2943     'void exit (int);'
2944     do
2945     cat >conftest.$ac_ext <<_ACEOF
2946 gezelter 2081 /* confdefs.h. */
2947     _ACEOF
2948     cat confdefs.h >>conftest.$ac_ext
2949     cat >>conftest.$ac_ext <<_ACEOF
2950     /* end confdefs.h. */
2951     $ac_declaration
2952 gezelter 2029 #include <stdlib.h>
2953 gezelter 1490 int
2954     main ()
2955     {
2956     exit (42);
2957     ;
2958     return 0;
2959     }
2960     _ACEOF
2961     rm -f conftest.$ac_objext
2962 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2963     (eval $ac_compile) 2>conftest.er1
2964 gezelter 1490 ac_status=$?
2965 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2966     rm -f conftest.er1
2967     cat conftest.err >&5
2968     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 gezelter 1490 (exit $ac_status); } &&
2970 gezelter 2081 { ac_try='test -z "$ac_cxx_werror_flag"
2971     || test ! -s conftest.err'
2972     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 gezelter 1490 (eval $ac_try) 2>&5
2974     ac_status=$?
2975 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976     (exit $ac_status); }; } &&
2977     { ac_try='test -s conftest.$ac_objext'
2978     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979     (eval $ac_try) 2>&5
2980     ac_status=$?
2981     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 gezelter 1490 (exit $ac_status); }; }; then
2983     :
2984     else
2985     echo "$as_me: failed program was:" >&5
2986 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2987    
2988 gezelter 1490 continue
2989     fi
2990 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2991 gezelter 1490 cat >conftest.$ac_ext <<_ACEOF
2992 gezelter 2081 /* confdefs.h. */
2993     _ACEOF
2994     cat confdefs.h >>conftest.$ac_ext
2995     cat >>conftest.$ac_ext <<_ACEOF
2996     /* end confdefs.h. */
2997 gezelter 1490 $ac_declaration
2998     int
2999     main ()
3000     {
3001     exit (42);
3002     ;
3003     return 0;
3004     }
3005     _ACEOF
3006     rm -f conftest.$ac_objext
3007 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3008     (eval $ac_compile) 2>conftest.er1
3009 gezelter 1490 ac_status=$?
3010 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3011     rm -f conftest.er1
3012     cat conftest.err >&5
3013     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 gezelter 1490 (exit $ac_status); } &&
3015 gezelter 2081 { ac_try='test -z "$ac_cxx_werror_flag"
3016     || test ! -s conftest.err'
3017     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018 gezelter 1490 (eval $ac_try) 2>&5
3019     ac_status=$?
3020 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021     (exit $ac_status); }; } &&
3022     { ac_try='test -s conftest.$ac_objext'
3023     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024     (eval $ac_try) 2>&5
3025     ac_status=$?
3026     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 gezelter 1490 (exit $ac_status); }; }; then
3028     break
3029     else
3030     echo "$as_me: failed program was:" >&5
3031 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3032    
3033 gezelter 1490 fi
3034 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3035 gezelter 1490 done
3036 gezelter 2081 rm -f conftest*
3037     if test -n "$ac_declaration"; then
3038     echo '#ifdef __cplusplus' >>confdefs.h
3039     echo $ac_declaration >>confdefs.h
3040     echo '#endif' >>confdefs.h
3041     fi
3042 gezelter 1490
3043     ac_ext=c
3044     ac_cpp='$CPP $CPPFLAGS'
3045     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3048    
3049 gezelter 2081
3050 gezelter 1490 OOPSE_TEMPLATE_FLAGS=""
3051     if test $ac_cv_cxx_compiler_gnu = no; then
3052 gezelter 2081 echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5
3053 gezelter 1490 echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6
3054     echo 'void f(){}' > conftest.cc
3055     if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
3056 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3057 gezelter 1490 echo "${ECHO_T}yes" >&6
3058     OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink"
3059     else
3060 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3061 gezelter 1490 echo "${ECHO_T}no" >&6
3062     fi
3063     rm -f conftest*
3064 gezelter 2081 echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -instances=static" >&5
3065 gezelter 1490 echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6
3066     echo 'void f(){}' > conftest.cc
3067     if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
3068 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3069 gezelter 1490 echo "${ECHO_T}yes" >&6
3070     OOPSE_TEMPLATE_FLAGS="-instances=static"
3071     else
3072 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3073 gezelter 1490 echo "${ECHO_T}no" >&6
3074     fi
3075     rm -f conftest*
3076 gezelter 2081 echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -pto" >&5
3077 gezelter 1490 echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6
3078     echo 'void f(){}' > conftest.cc
3079     if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then
3080 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3081 gezelter 1490 echo "${ECHO_T}yes" >&6
3082     OOPSE_TEMPLATE_FLAGS="-pto"
3083     else
3084 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3085 gezelter 1490 echo "${ECHO_T}no" >&6
3086     fi
3087     rm -f conftest*
3088 gezelter 2081 echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -LANG:std" >&5
3089 gezelter 1490 echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6
3090     echo 'void f(){}' > conftest.cc
3091     if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then
3092 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3093 gezelter 1490 echo "${ECHO_T}yes" >&6
3094    
3095 gezelter 2081
3096 gezelter 1490 EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std"
3097     else
3098 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3099 gezelter 1490 echo "${ECHO_T}no" >&6
3100     fi
3101     fi
3102    
3103 gezelter 2081
3104    
3105    
3106 gezelter 1490 ac_ext=f90
3107     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3108     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3110     if test -n "$ac_tool_prefix"; then
3111     for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3112     do
3113     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3114     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3115 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
3116 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3117     if test "${ac_cv_prog_F90+set}" = set; then
3118     echo $ECHO_N "(cached) $ECHO_C" >&6
3119     else
3120     if test -n "$F90"; then
3121     ac_cv_prog_F90="$F90" # Let the user override the test.
3122     else
3123 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124     for as_dir in $PATH
3125     do
3126     IFS=$as_save_IFS
3127     test -z "$as_dir" && as_dir=.
3128     for ac_exec_ext in '' $ac_executable_extensions; do
3129     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3130     ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
3131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3132     break 2
3133     fi
3134 gezelter 1490 done
3135 gezelter 2081 done
3136 gezelter 1490
3137     fi
3138     fi
3139     F90=$ac_cv_prog_F90
3140     if test -n "$F90"; then
3141 gezelter 2081 echo "$as_me:$LINENO: result: $F90" >&5
3142 gezelter 1490 echo "${ECHO_T}$F90" >&6
3143     else
3144 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3145 gezelter 1490 echo "${ECHO_T}no" >&6
3146     fi
3147    
3148     test -n "$F90" && break
3149     done
3150     fi
3151     if test -z "$F90"; then
3152     ac_ct_F90=$F90
3153     for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3154     do
3155     # Extract the first word of "$ac_prog", so it can be a program name with args.
3156     set dummy $ac_prog; ac_word=$2
3157 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
3158 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3159     if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
3160     echo $ECHO_N "(cached) $ECHO_C" >&6
3161     else
3162     if test -n "$ac_ct_F90"; then
3163     ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
3164     else
3165 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166     for as_dir in $PATH
3167     do
3168     IFS=$as_save_IFS
3169     test -z "$as_dir" && as_dir=.
3170     for ac_exec_ext in '' $ac_executable_extensions; do
3171     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172     ac_cv_prog_ac_ct_F90="$ac_prog"
3173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3174     break 2
3175     fi
3176 gezelter 1490 done
3177 gezelter 2081 done
3178 gezelter 1490
3179     fi
3180     fi
3181     ac_ct_F90=$ac_cv_prog_ac_ct_F90
3182     if test -n "$ac_ct_F90"; then
3183 gezelter 2081 echo "$as_me:$LINENO: result: $ac_ct_F90" >&5
3184 gezelter 1490 echo "${ECHO_T}$ac_ct_F90" >&6
3185     else
3186 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3187 gezelter 1490 echo "${ECHO_T}no" >&6
3188     fi
3189    
3190     test -n "$ac_ct_F90" && break
3191     done
3192    
3193     F90=$ac_ct_F90
3194     fi
3195    
3196 gezelter 2081
3197 gezelter 1490 # If we don't use `.F90' as extension, the preprocessor is not run on the
3198     # input file.
3199     ac_save_ext=$ac_ext
3200     ac_ext=F90
3201 gezelter 2081 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5
3202 gezelter 1490 echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
3203     if test "${ac_cv_f90_compiler_gnu+set}" = set; then
3204     echo $ECHO_N "(cached) $ECHO_C" >&6
3205     else
3206     cat >conftest.$ac_ext <<_ACEOF
3207    
3208     program main
3209    
3210     #ifndef __GNUC__
3211     choke me
3212     #endif
3213    
3214     end program main
3215    
3216     _ACEOF
3217     rm -f conftest.$ac_objext
3218 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219     (eval $ac_compile) 2>conftest.er1
3220 gezelter 1490 ac_status=$?
3221 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3222     rm -f conftest.er1
3223     cat conftest.err >&5
3224     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 gezelter 1490 (exit $ac_status); } &&
3226 gezelter 2081 { ac_try='test -z "$ac_f90_werror_flag"
3227     || test ! -s conftest.err'
3228     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229 gezelter 1490 (eval $ac_try) 2>&5
3230     ac_status=$?
3231 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232     (exit $ac_status); }; } &&
3233     { ac_try='test -s conftest.$ac_objext'
3234     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235     (eval $ac_try) 2>&5
3236     ac_status=$?
3237     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 gezelter 1490 (exit $ac_status); }; }; then
3239     ac_compiler_gnu=yes
3240     else
3241     echo "$as_me: failed program was:" >&5
3242 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3243    
3244 gezelter 1490 ac_compiler_gnu=no
3245     fi
3246 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3247 gezelter 1490 ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3248    
3249     fi
3250 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5
3251 gezelter 1490 echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
3252     ac_ext=$ac_save_ext
3253     G95=`test $ac_compiler_gnu = yes && echo yes`
3254     ac_ext=c
3255     ac_cpp='$CPP $CPPFLAGS'
3256     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3259    
3260 gezelter 2081
3261    
3262    
3263    
3264 gezelter 1490 # Try to determine native compiler flags that allow us to use F90 suffix
3265     # for preprocessed f90 source.
3266    
3267     if test "$ac_test_PREPFLAG" != "set"; then
3268     PREPFLAG=""
3269     case "${host_cpu}-${host_os}" in
3270    
3271     *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3272     PREPFLAG="-fpp1 "
3273     fi;;
3274     *aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
3275     PREPFLAG="-qsuffix=cpp=F90 "
3276     fi;;
3277     *darwin*)
3278     if test "$F90" = f90 -o "$F90" = xlf90; then
3279     PREPFLAG="-qsuffix=cpp=F90 "
3280     fi;;
3281     esac
3282    
3283     if test -z "$PREPFLAG"; then
3284 gezelter 2081 { echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5
3285 gezelter 1490 echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
3286     PREPFLAG=""
3287     fi
3288    
3289 gezelter 2081 echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
3290 gezelter 1490 echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3291    
3292 gezelter 2081
3293 gezelter 1490 ac_ext=f90
3294     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3295     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3297    
3298     ac_save_ext=$ac_ext
3299     ac_ext=F90
3300     ac_save_F90FLAGS=$F90FLAGS
3301    
3302     if test "$PREPFLAG"; then
3303     F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
3304     fi
3305    
3306     cat >conftest.$ac_ext <<_ACEOF
3307    
3308 gezelter 2081
3309 gezelter 1490 program main
3310    
3311     integer :: i
3312     i = 1
3313    
3314 gezelter 2081
3315 gezelter 1490 end program main
3316    
3317     _ACEOF
3318     rm -f conftest.$ac_objext
3319 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3320     (eval $ac_compile) 2>conftest.er1
3321 gezelter 1490 ac_status=$?
3322 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3323     rm -f conftest.er1
3324     cat conftest.err >&5
3325     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 gezelter 1490 (exit $ac_status); } &&
3327 gezelter 2081 { ac_try='test -z "$ac_f90_werror_flag"
3328     || test ! -s conftest.err'
3329     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 gezelter 1490 (eval $ac_try) 2>&5
3331     ac_status=$?
3332 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333     (exit $ac_status); }; } &&
3334     { ac_try='test -s conftest.$ac_objext'
3335     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336     (eval $ac_try) 2>&5
3337     ac_status=$?
3338     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 gezelter 1490 (exit $ac_status); }; }; then
3340     prepflagworks=1
3341     else
3342     echo "$as_me: failed program was:" >&5
3343 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3344    
3345 gezelter 1490 prepflagworks=0
3346     fi
3347 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3348 gezelter 1490
3349     F90FLAGS=$ac_save_F90FLAGS
3350     ac_ext=$ac_save_ext
3351     ac_ext=c
3352     ac_cpp='$CPP $CPPFLAGS'
3353     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356    
3357 gezelter 2081
3358 gezelter 1490 if test "$prepflagworks" = 1; then
3359 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3360 gezelter 1490 echo "${ECHO_T}yes" >&6
3361    
3362     else
3363 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3364 gezelter 1490 echo "${ECHO_T}no" >&6
3365 gezelter 2081 { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3366 gezelter 1490 echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3367     { (exit 1); exit 1; }; }
3368     fi
3369     fi
3370    
3371 gezelter 2081
3372    
3373    
3374    
3375 gezelter 1490 # Try to determine native compiler flags that allow us to use F90 suffix
3376     # for preprocessed f90 source with -D type defines
3377    
3378     if test "$ac_test_PREPDEFFLAG" != "set"; then
3379     PREPDEFFLAG=""
3380     case "${host_cpu}-${host_os}" in
3381    
3382     *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3383     PREPDEFFLAG=" "
3384     fi;;
3385     *aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
3386     PREPDEFFLAG="-WF,"
3387     fi;;
3388     *darwin*)
3389     if test "$F90" = f90 -o "$F90" = xlf90; then
3390     PREPDEFFLAG="-WF,"
3391     fi;;
3392     esac
3393    
3394     if test -z "$PREPDEFFLAG"; then
3395 gezelter 2081 { echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5
3396 gezelter 1490 echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
3397     PREPDEFFLAG=" "
3398     fi
3399    
3400 gezelter 2081 echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
3401 gezelter 1490 echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3402    
3403 gezelter 2081
3404 gezelter 1490 ac_ext=f90
3405     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3406     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3408    
3409     ac_save_ext=$ac_ext
3410     ac_ext=F90
3411     ac_save_F90FLAGS=$F90FLAGS
3412    
3413     if test "$PREPDEFFLAG"; then
3414     F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
3415     fi
3416    
3417     cat >conftest.$ac_ext <<_ACEOF
3418    
3419 gezelter 2081
3420 gezelter 1490 program main
3421    
3422     integer :: i
3423     #ifdef TEST
3424     i = 1
3425     #else
3426     choke me
3427     #endif
3428    
3429 gezelter 2081
3430 gezelter 1490 end program main
3431    
3432     _ACEOF
3433     rm -f conftest.$ac_objext
3434 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3435     (eval $ac_compile) 2>conftest.er1
3436 gezelter 1490 ac_status=$?
3437 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3438     rm -f conftest.er1
3439     cat conftest.err >&5
3440     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 gezelter 1490 (exit $ac_status); } &&
3442 gezelter 2081 { ac_try='test -z "$ac_f90_werror_flag"
3443     || test ! -s conftest.err'
3444     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 gezelter 1490 (eval $ac_try) 2>&5
3446     ac_status=$?
3447 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448     (exit $ac_status); }; } &&
3449     { ac_try='test -s conftest.$ac_objext'
3450     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451     (eval $ac_try) 2>&5
3452     ac_status=$?
3453     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 gezelter 1490 (exit $ac_status); }; }; then
3455     prepdefflagworks=1
3456     else
3457     echo "$as_me: failed program was:" >&5
3458 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3459    
3460 gezelter 1490 prepdefflagworks=0
3461     fi
3462 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3463 gezelter 1490
3464     F90FLAGS=$ac_save_F90FLAGS
3465     ac_ext=$ac_save_ext
3466     ac_ext=c
3467     ac_cpp='$CPP $CPPFLAGS'
3468     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471    
3472 gezelter 2081
3473    
3474 gezelter 1490 if test "$prepdefflagworks" = 1; then
3475 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3476 gezelter 1490 echo "${ECHO_T}yes" >&6
3477    
3478     else
3479 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3480 gezelter 1490 echo "${ECHO_T}no" >&6
3481 gezelter 2081 { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3482 gezelter 1490 echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
3483     { (exit 1); exit 1; }; }
3484     fi
3485     fi
3486    
3487     ac_ext=f90
3488     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3489     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3491    
3492 gezelter 2081
3493    
3494 gezelter 1490 ac_ext=f90
3495     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3496     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3498 gezelter 2081 echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
3499 gezelter 1490 echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
3500     if test "${ac_cv_prog_f90_v+set}" = set; then
3501     echo $ECHO_N "(cached) $ECHO_C" >&6
3502     else
3503    
3504     cat >conftest.$ac_ext <<_ACEOF
3505    
3506     program main
3507    
3508 gezelter 2081
3509 gezelter 1490 end program main
3510    
3511     _ACEOF
3512     rm -f conftest.$ac_objext
3513 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514     (eval $ac_compile) 2>conftest.er1
3515 gezelter 1490 ac_status=$?
3516 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3517     rm -f conftest.er1
3518     cat conftest.err >&5
3519     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 gezelter 1490 (exit $ac_status); } &&
3521 gezelter 2081 { ac_try='test -z "$ac_f90_werror_flag"
3522     || test ! -s conftest.err'
3523     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 gezelter 1490 (eval $ac_try) 2>&5
3525     ac_status=$?
3526 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527     (exit $ac_status); }; } &&
3528     { ac_try='test -s conftest.$ac_objext'
3529     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530     (eval $ac_try) 2>&5
3531     ac_status=$?
3532     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 gezelter 1490 (exit $ac_status); }; }; then
3534     ac_cv_prog_f90_v=
3535     # Try some options frequently used verbose output
3536     for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3537     ac_ext=f90
3538     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3539     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3541    
3542     cat >conftest.$ac_ext <<_ACEOF
3543    
3544     program main
3545    
3546 gezelter 2081
3547 gezelter 1490 end program main
3548    
3549     _ACEOF
3550    
3551     # Compile and link our simple test program by passing a flag (argument
3552     # 1 to this macro) to the Fortran 90 compiler in order to get
3553     # "verbose" output that we can then parse for the Fortran 90 linker
3554     # flags.
3555     ac_save_F90FLAGS=$F90FLAGS
3556     F90FLAGS="$F90FLAGS $ac_verb"
3557    
3558 gezelter 2315 (eval echo $as_me:3558: \"$ac_link\") >&5
3559 gezelter 1490 ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3560     echo "$ac_f90_v_output" >&5
3561     F90FLAGS=$ac_save_F90FLAGS
3562    
3563     rm -f conftest.*
3564     ac_ext=f90
3565     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3566     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3568    
3569     # If we are using xlf then replace all the commas with spaces.
3570     if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3571     ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3572     fi
3573    
3574     # If we are using Cray Fortran then delete quotes.
3575     # Use "\"" instead of '"' for font-lock-mode.
3576     # FIXME: a more general fix for quoted arguments with spaces?
3577     if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3578     ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3579     fi
3580     # look for -l* and *.a constructs in the output
3581     for ac_arg in $ac_f90_v_output; do
3582     case $ac_arg in
3583     [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3584     ac_cv_prog_f90_v=$ac_verb
3585     break 2 ;;
3586     esac
3587     done
3588     done
3589     if test -z "$ac_cv_prog_f90_v"; then
3590 gezelter 2081 { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
3591 gezelter 1490 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
3592     fi
3593     else
3594     echo "$as_me: failed program was:" >&5
3595 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3596    
3597     { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3598 gezelter 1490 echo "$as_me: WARNING: compilation failed" >&2;}
3599     fi
3600 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3601 gezelter 1490
3602     fi
3603 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
3604 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
3605 gezelter 2081 echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
3606 gezelter 1490 echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
3607     if test "${ac_cv_flibs+set}" = set; then
3608     echo $ECHO_N "(cached) $ECHO_C" >&6
3609     else
3610     if test "x$F90LIBS" != "x"; then
3611     ac_cv_f90libs="$F90LIBS" # Let the user override the test.
3612     else
3613    
3614     ac_ext=f90
3615     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3616     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3618    
3619     cat >conftest.$ac_ext <<_ACEOF
3620    
3621     program main
3622    
3623 gezelter 2081
3624 gezelter 1490 end program main
3625    
3626     _ACEOF
3627    
3628     # Compile and link our simple test program by passing a flag (argument
3629     # 1 to this macro) to the Fortran 90 compiler in order to get
3630     # "verbose" output that we can then parse for the Fortran 90 linker
3631     # flags.
3632     ac_save_F90FLAGS=$F90FLAGS
3633     F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3634    
3635 gezelter 2315 (eval echo $as_me:3635: \"$ac_link\") >&5
3636 gezelter 1490 ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3637     echo "$ac_f90_v_output" >&5
3638     F90FLAGS=$ac_save_F90FLAGS
3639    
3640     rm -f conftest.*
3641     ac_ext=f90
3642     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3643     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3645    
3646     # If we are using xlf then replace all the commas with spaces.
3647     if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3648     ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3649     fi
3650    
3651     # If we are using Cray Fortran then delete quotes.
3652     # Use "\"" instead of '"' for font-lock-mode.
3653     # FIXME: a more general fix for quoted arguments with spaces?
3654     if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3655     ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3656     fi
3657    
3658     ac_cv_f90libs=
3659    
3660     # Save positional arguments (if any)
3661     ac_save_positional="$@"
3662    
3663     set X $ac_f90_v_output
3664     while test $# != 1; do
3665     shift
3666     ac_arg=$1
3667     case $ac_arg in
3668     [\\/]*.a | ?:[\\/]*.a)
3669     ac_exists=false
3670     for ac_i in $ac_cv_f90libs; do
3671     if test x"$ac_arg" = x"$ac_i"; then
3672     ac_exists=true
3673     break
3674     fi
3675     done
3676    
3677     if test x"$ac_exists" = xtrue; then
3678     :
3679     else
3680     ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3681     fi
3682    
3683     ;;
3684     -bI:*)
3685     ac_exists=false
3686     for ac_i in $ac_cv_f90libs; do
3687     if test x"$ac_arg" = x"$ac_i"; then
3688     ac_exists=true
3689     break
3690     fi
3691     done
3692    
3693     if test x"$ac_exists" = xtrue; then
3694     :
3695     else
3696     if test "$ac_compiler_gnu" = yes; then
3697     for ac_link_opt in $ac_arg; do
3698     ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3699     done
3700     else
3701     ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3702     fi
3703     fi
3704    
3705     ;;
3706     # Ignore these flags.
3707     -lang* | -lcrt[012].o | -lc | -lgcc | -LANG:=*)
3708     ;;
3709     -lkernel32)
3710     test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3711     ;;
3712     -[LRuY])
3713     # These flags, when seen by themselves, take an argument.
3714     # We remove the space between option and argument and re-iterate
3715     # unless we find an empty arg or a new option (starting with -)
3716     case $2 in
3717     "" | -*);;
3718     *)
3719     ac_arg="$ac_arg$2"
3720    
3721     shift; shift
3722     set X $ac_arg "$@"
3723     ;;
3724     esac
3725     ;;
3726     -YP,*)
3727     for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3728     ac_exists=false
3729     for ac_i in $ac_cv_f90libs; do
3730     if test x"$ac_j" = x"$ac_i"; then
3731     ac_exists=true
3732     break
3733     fi
3734     done
3735    
3736     if test x"$ac_exists" = xtrue; then
3737     :
3738     else
3739     ac_arg="$ac_arg $ac_j"
3740     ac_cv_f90libs="$ac_cv_f90libs $ac_j"
3741     fi
3742    
3743     done
3744     ;;
3745     -[lLR]*)
3746     ac_exists=false
3747     for ac_i in $ac_cv_f90libs; do
3748     if test x"$ac_arg" = x"$ac_i"; then
3749     ac_exists=true
3750     break
3751     fi
3752     done
3753    
3754     if test x"$ac_exists" = xtrue; then
3755     :
3756     else
3757     ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3758     fi
3759    
3760     ;;
3761     # Ignore everything else.
3762     esac
3763     done
3764     # restore positional arguments
3765     set X $ac_save_positional; shift
3766    
3767     # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
3768     # then we insist that the "run path" must be an absolute path (i.e. it
3769     # must begin with a "/").
3770     case `(uname -sr) 2>/dev/null` in
3771     "SunOS 5"*)
3772     ac_ld_run_path=`echo $ac_f90_v_output |
3773     sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
3774     test "x$ac_ld_run_path" != x &&
3775    
3776     if test "$ac_compiler_gnu" = yes; then
3777     for ac_link_opt in $ac_ld_run_path; do
3778     ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3779     done
3780     else
3781     ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
3782     fi
3783     ;;
3784     esac
3785     fi # test "x$F90LIBS" = "x"
3786    
3787     fi
3788 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
3789 gezelter 1490 echo "${ECHO_T}$ac_cv_flibs" >&6
3790     F90LIBS="$ac_cv_f90libs"
3791    
3792     ac_ext=f90
3793     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3794     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3796    
3797 gezelter 2081
3798     echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
3799 gezelter 1490 echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
3800     if test "${ac_cv_f90_mangling+set}" = set; then
3801     echo $ECHO_N "(cached) $ECHO_C" >&6
3802     else
3803     ac_ext=f90
3804     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3805     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3807     cat >conftest.$ac_ext <<_ACEOF
3808     subroutine foobar()
3809     return
3810     end
3811     subroutine foo_bar()
3812     return
3813     end
3814     _ACEOF
3815     rm -f conftest.$ac_objext
3816 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3817     (eval $ac_compile) 2>conftest.er1
3818 gezelter 1490 ac_status=$?
3819 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3820     rm -f conftest.er1
3821     cat conftest.err >&5
3822     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 gezelter 1490 (exit $ac_status); } &&
3824 gezelter 2081 { ac_try='test -z "$ac_f90_werror_flag"
3825     || test ! -s conftest.err'
3826     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827 gezelter 1490 (eval $ac_try) 2>&5
3828     ac_status=$?
3829 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830     (exit $ac_status); }; } &&
3831     { ac_try='test -s conftest.$ac_objext'
3832     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833     (eval $ac_try) 2>&5
3834     ac_status=$?
3835     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 gezelter 1490 (exit $ac_status); }; }; then
3837     mv conftest.$ac_objext cf90_test.$ac_objext
3838    
3839     ac_ext=c
3840     ac_cpp='$CPP $CPPFLAGS'
3841     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3842     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3843     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3844    
3845     ac_save_LIBS=$LIBS
3846     LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
3847    
3848     ac_success=no
3849     for ac_foobar in foobar FOOBAR; do
3850     for ac_underscore in "" "_"; do
3851     ac_func="$ac_foobar$ac_underscore"
3852     cat >conftest.$ac_ext <<_ACEOF
3853 gezelter 2081 /* confdefs.h. */
3854     _ACEOF
3855     cat confdefs.h >>conftest.$ac_ext
3856     cat >>conftest.$ac_ext <<_ACEOF
3857     /* end confdefs.h. */
3858 gezelter 1490
3859     /* Override any gcc2 internal prototype to avoid an error. */
3860     #ifdef __cplusplus
3861     extern "C"
3862     #endif
3863     /* We use char because int might match the return type of a gcc2
3864     builtin and then its argument prototype would still apply. */
3865     char $ac_func ();
3866     int
3867     main ()
3868     {
3869     $ac_func ();
3870     ;
3871     return 0;
3872     }
3873     _ACEOF
3874     rm -f conftest.$ac_objext conftest$ac_exeext
3875 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3876     (eval $ac_link) 2>conftest.er1
3877 gezelter 1490 ac_status=$?
3878 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3879     rm -f conftest.er1
3880     cat conftest.err >&5
3881     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 gezelter 1490 (exit $ac_status); } &&
3883 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
3884     || test ! -s conftest.err'
3885     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3886 gezelter 1490 (eval $ac_try) 2>&5
3887     ac_status=$?
3888 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889     (exit $ac_status); }; } &&
3890     { ac_try='test -s conftest$ac_exeext'
3891     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892     (eval $ac_try) 2>&5
3893     ac_status=$?
3894     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 gezelter 1490 (exit $ac_status); }; }; then
3896     ac_success=yes; break 2
3897     else
3898     echo "$as_me: failed program was:" >&5
3899 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3900    
3901 gezelter 1490 fi
3902 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
3903     conftest$ac_exeext conftest.$ac_ext
3904 gezelter 1490 done
3905     done
3906    
3907     if test "$ac_success" = "yes"; then
3908     case $ac_foobar in
3909     foobar)
3910     ac_case=lower
3911     ac_foo_bar=foo_bar
3912     ;;
3913     FOOBAR)
3914     ac_case=upper
3915     ac_foo_bar=FOO_BAR
3916     ;;
3917     esac
3918    
3919     ac_success_extra=no
3920     for ac_extra in "" "_"; do
3921     ac_func="$ac_foo_bar$ac_underscore$ac_extra"
3922    
3923     cat >conftest.$ac_ext <<_ACEOF
3924 gezelter 2081 /* confdefs.h. */
3925     _ACEOF
3926     cat confdefs.h >>conftest.$ac_ext
3927     cat >>conftest.$ac_ext <<_ACEOF
3928     /* end confdefs.h. */
3929 gezelter 1490
3930     /* Override any gcc2 internal prototype to avoid an error. */
3931     #ifdef __cplusplus
3932     extern "C"
3933     #endif
3934     /* We use char because int might match the return type of a gcc2
3935     builtin and then its argument prototype would still apply. */
3936     char $ac_func ();
3937     int
3938     main ()
3939     {
3940     $ac_func ();
3941     ;
3942     return 0;
3943     }
3944     _ACEOF
3945     rm -f conftest.$ac_objext conftest$ac_exeext
3946 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3947     (eval $ac_link) 2>conftest.er1
3948 gezelter 1490 ac_status=$?
3949 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3950     rm -f conftest.er1
3951     cat conftest.err >&5
3952     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 gezelter 1490 (exit $ac_status); } &&
3954 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
3955     || test ! -s conftest.err'
3956     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957 gezelter 1490 (eval $ac_try) 2>&5
3958     ac_status=$?
3959 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960     (exit $ac_status); }; } &&
3961     { ac_try='test -s conftest$ac_exeext'
3962     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963     (eval $ac_try) 2>&5
3964     ac_status=$?
3965     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 gezelter 1490 (exit $ac_status); }; }; then
3967     ac_success_extra=yes; break
3968     else
3969     echo "$as_me: failed program was:" >&5
3970 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3971    
3972 gezelter 1490 fi
3973 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
3974     conftest$ac_exeext conftest.$ac_ext
3975 gezelter 1490 done
3976    
3977     if test "$ac_success_extra" = "yes"; then
3978     ac_cv_f90_mangling="$ac_case case"
3979     if test -z "$ac_underscore"; then
3980     ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
3981     else
3982     ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
3983    
3984     fi
3985     if test -z "$ac_extra"; then
3986     ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
3987     else
3988     ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
3989     fi
3990     else
3991     ac_cv_f90_mangling="unknown"
3992     fi
3993     else
3994     ac_cv_f90_mangling="unknown"
3995    
3996     fi
3997    
3998     LIBS=$ac_save_LIBS
3999     ac_ext=f90
4000     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4001     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4002     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4003     rm -f cf90_test* conftest*
4004     else
4005     echo "$as_me: failed program was:" >&5
4006 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
4007    
4008 gezelter 1490 fi
4009 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4010 gezelter 1490 ac_ext=f90
4011     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4012     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4013     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4014    
4015     fi
4016 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
4017 gezelter 1490 echo "${ECHO_T}$ac_cv_f90_mangling" >&6
4018    
4019 gezelter 2081
4020    
4021 gezelter 1490 case $ac_cv_f90_mangling in
4022     "lower case, no underscore, no extra underscore")
4023 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4024 gezelter 1490 #define F90_FUNC(name,NAME) name
4025 gezelter 2081 _ACEOF
4026 gezelter 1490
4027 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4028 gezelter 1490 #define F90_FUNC_(name,NAME) name
4029 gezelter 2081 _ACEOF
4030 gezelter 1490 ;;
4031     "lower case, no underscore, extra underscore")
4032 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4033 gezelter 1490 #define F90_FUNC(name,NAME) name
4034 gezelter 2081 _ACEOF
4035 gezelter 1490
4036 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4037 gezelter 1490 #define F90_FUNC_(name,NAME) name ## _
4038 gezelter 2081 _ACEOF
4039 gezelter 1490 ;;
4040     "lower case, underscore, no extra underscore")
4041 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4042 gezelter 1490 #define F90_FUNC(name,NAME) name ## _
4043 gezelter 2081 _ACEOF
4044 gezelter 1490
4045 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4046 gezelter 1490 #define F90_FUNC_(name,NAME) name ## _
4047 gezelter 2081 _ACEOF
4048 gezelter 1490 ;;
4049     "lower case, underscore, extra underscore")
4050 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4051 gezelter 1490 #define F90_FUNC(name,NAME) name ## _
4052 gezelter 2081 _ACEOF
4053 gezelter 1490
4054 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4055 gezelter 1490 #define F90_FUNC_(name,NAME) name ## __
4056 gezelter 2081 _ACEOF
4057 gezelter 1490 ;;
4058     "upper case, no underscore, no extra underscore")
4059 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4060 gezelter 1490 #define F90_FUNC(name,NAME) NAME
4061 gezelter 2081 _ACEOF
4062 gezelter 1490
4063 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4064 gezelter 1490 #define F90_FUNC_(name,NAME) NAME
4065 gezelter 2081 _ACEOF
4066 gezelter 1490 ;;
4067     "upper case, no underscore, extra underscore")
4068 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4069 gezelter 1490 #define F90_FUNC(name,NAME) NAME
4070 gezelter 2081 _ACEOF
4071 gezelter 1490
4072 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4073 gezelter 1490 #define F90_FUNC_(name,NAME) NAME ## _
4074 gezelter 2081 _ACEOF
4075 gezelter 1490 ;;
4076     "upper case, underscore, no extra underscore")
4077 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4078 gezelter 1490 #define F90_FUNC(name,NAME) NAME ## _
4079 gezelter 2081 _ACEOF
4080 gezelter 1490
4081 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4082 gezelter 1490 #define F90_FUNC_(name,NAME) NAME ## _
4083 gezelter 2081 _ACEOF
4084 gezelter 1490 ;;
4085     "upper case, underscore, extra underscore")
4086 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4087 gezelter 1490 #define F90_FUNC(name,NAME) NAME ## _
4088 gezelter 2081 _ACEOF
4089 gezelter 1490
4090 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4091 gezelter 1490 #define F90_FUNC_(name,NAME) NAME ## __
4092 gezelter 2081 _ACEOF
4093 gezelter 1490 ;;
4094     *)
4095 gezelter 2081 { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
4096 gezelter 1490 echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
4097     ;;
4098     esac
4099    
4100 gezelter 2081
4101    
4102    
4103    
4104     echo "$as_me:$LINENO: checking for module suffix" >&5
4105 gezelter 1490 echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
4106     rm -f conftest*
4107     # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4108     rm -f work*
4109     cat >conftest.f90 <<EOF
4110     module conftest
4111     integer n
4112     parameter (n=1)
4113     end module conftest
4114     EOF
4115     # SGI and absoft compilers generates module name in upper case!
4116     testname="conftest"
4117     modcase="lower"
4118     if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4119     MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
4120     MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
4121     if test -z "$MOD" ; then
4122     MOD=`ls CONFTEST* 2>/dev/null \
4123     | grep -v CONFTEST.f | grep -v CONFTEST.o`
4124     MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
4125     if test -n "$MOD" ; then
4126     testname="CONFTEST"
4127     modcase="upper"
4128     fi
4129     fi
4130     if test -z "$MOD" ; then
4131 gezelter 2081 echo "$as_me:$LINENO: result: unknown" >&5
4132 gezelter 1490 echo "${ECHO_T}unknown" >&6
4133     # Use mod if we can't figure it out
4134     MOD="mod"
4135     else
4136 gezelter 2081 echo "$as_me:$LINENO: result: $MOD" >&5
4137 gezelter 1490 echo "${ECHO_T}$MOD" >&6
4138     fi
4139     if test -s work.pcl ; then
4140 gezelter 2081 { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
4141 gezelter 1490 echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
4142     fi
4143     else
4144 gezelter 2081 echo "$as_me:$LINENO: result: unknown" >&5
4145 gezelter 1490 echo "${ECHO_T}unknown" >&6
4146     fi
4147    
4148 gezelter 2081
4149    
4150    
4151    
4152 gezelter 1490 # Check for module include path (some use -I, some (Solaris) use -M, some
4153     # (absoft) use -p).
4154     # Intel compilers use a wierd system: -cl,filename.pcl . If no file is
4155     # specified, work.pcl and work.pc are created. However, if you specify
4156     # a file, it must contain a the name of a file ending in .pc . Ugh!
4157     # Use the module made above
4158 gezelter 2081 echo "$as_me:$LINENO: checking for module directory path flag" >&5
4159 gezelter 1490 echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
4160     rm -f conftest*
4161     # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4162     rm -f work*
4163     cat >conftest.f90 <<EOF
4164     module conftest
4165     integer n
4166     parameter (n=1)
4167     end module conftest
4168     EOF
4169     # SGI and absoft compilers generates module name in upper case!
4170     testname="conftest"
4171     if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4172     mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o`
4173     mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
4174     if test -n "$mod" ; then
4175     testname="CONFTEST"
4176     fi
4177     madedir=0
4178     if test ! -d conf ; then mkdir conf ; madedir=1; fi
4179     cp $testname.$MOD conf
4180     rm -f conftest* CONFTEST*
4181     cat >conftest1.f90 <<EOF
4182     program main
4183     use conftest
4184     print *, n
4185     end
4186     EOF
4187     F90_WORK_FILES_ARG=""
4188     F90MODINCSPEC=""
4189     if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then
4190     MODDIRFLAG="-I"
4191     F90MODINCSPEC="-I<dir>"
4192 gezelter 2081 echo "$as_me:$LINENO: result: -I" >&5
4193 gezelter 1490 echo "${ECHO_T}-I" >&6
4194     elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then
4195     MODDIRFLAG="-M"
4196     F90MODINCSPEC="-M<dir>"
4197 gezelter 2081 echo "$as_me:$LINENO: result: -M" >&5
4198 gezelter 1490 echo "${ECHO_T}-M" >&6
4199     elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then
4200     MODDIRFLAG="-p"
4201     F90MODINCSPEC="-p<dir>"
4202 gezelter 2081 echo "$as_me:$LINENO: result: -p" >&5
4203 gezelter 1490 echo "${ECHO_T}-p" >&6
4204     elif test -s work.pc ; then
4205     cp work.pc conf/mpimod.pc
4206     echo "mpimod.pc" > conf/mpimod.pcl
4207     echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
4208     if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
4209     MODDIRFLAG='-cl,mpimod.pcl'
4210 gezelter 2081 echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
4211 gezelter 1490 echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6
4212     F90_WORK_FILES_ARG="-cl,mpimod.pcl"
4213     F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
4214    
4215     else
4216     # The version of the Intel compiler that I have refuses to let
4217     # you put the "work catalog" list anywhere but the current
4218     # directory. For example, you cannot in
4219     :
4220     fi
4221     fi
4222     if test -z "MODDIRFLAG" ; then
4223 gezelter 2081 echo "$as_me:$LINENO: result: unknown" >&5
4224 gezelter 1490 echo "${ECHO_T}unknown" >&6
4225     fi
4226    
4227 gezelter 2081
4228 gezelter 1490 rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
4229     if test $madedir = 1 ; then rmdir conf ; fi
4230     fi
4231    
4232 gezelter 2081
4233     echo "$as_me:$LINENO: checking for Fortran 90 module file names" >&5
4234 gezelter 1535 echo $ECHO_N "checking for Fortran 90 module file names... $ECHO_C" >&6
4235     if test "${ac_cv_f90_module_names+set}" = set; then
4236     echo $ECHO_N "(cached) $ECHO_C" >&6
4237     else
4238     ac_ext=f90
4239     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4240     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4242    
4243     # carry out the test in a new directory, so that we don't miss anything
4244     mkdir conftest
4245     cd conftest
4246     cat >conftest.$ac_ext <<_ACEOF
4247     MODULE Bar
4248     END MODULE Bar
4249     _ACEOF
4250     rm -f conftest.$ac_objext
4251 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4252     (eval $ac_compile) 2>conftest.er1
4253 gezelter 1535 ac_status=$?
4254 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
4255     rm -f conftest.er1
4256     cat conftest.err >&5
4257     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 gezelter 1535 (exit $ac_status); } &&
4259 gezelter 2081 { ac_try='test -z "$ac_f90_werror_flag"
4260     || test ! -s conftest.err'
4261     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 gezelter 1535 (eval $ac_try) 2>&5
4263     ac_status=$?
4264 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265     (exit $ac_status); }; } &&
4266     { ac_try='test -s conftest.$ac_objext'
4267     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268     (eval $ac_try) 2>&5
4269     ac_status=$?
4270     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 gezelter 1535 (exit $ac_status); }; }; then
4272     ac_cv_f90_module_names=
4273     ac_file_list=*
4274     for ac_file in $ac_file_list; do
4275     case $ac_file in
4276     # don't care for original source and object files
4277     conftest.$ac_ext | conftest.$ac_objext | conftest.err )
4278     :
4279     ;;
4280     # look for new files derived from the file name
4281     *conftest*)
4282     ac_pat=`echo $ac_file | sed s/conftest/%FILE%/`
4283     ac_exists=false
4284     for ac_i in $ac_cv_f90_module_names; do
4285     if test x"$ac_pat" = x"$ac_i"; then
4286     ac_exists=true
4287     break
4288     fi
4289     done
4290    
4291     if test x"$ac_exists" = xtrue; then
4292     :
4293     else
4294     ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4295     fi
4296    
4297     ;;
4298     # look for new files derived from the module name,
4299     # with different case translation schemes
4300     *Bar*)
4301     ac_pat=`echo $ac_file | sed s/Bar/%Module%/`
4302     ac_exists=false
4303     for ac_i in $ac_cv_f90_module_names; do
4304     if test x"$ac_pat" = x"$ac_i"; then
4305     ac_exists=true
4306     break
4307     fi
4308     done
4309    
4310     if test x"$ac_exists" = xtrue; then
4311     :
4312     else
4313     ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4314     fi
4315    
4316     ;;
4317     *bar*)
4318     ac_pat=`echo $ac_file | sed s/bar/%module%/`
4319     ac_exists=false
4320     for ac_i in $ac_cv_f90_module_names; do
4321     if test x"$ac_pat" = x"$ac_i"; then
4322     ac_exists=true
4323     break
4324     fi
4325     done
4326    
4327     if test x"$ac_exists" = xtrue; then
4328     :
4329     else
4330     ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4331     fi
4332    
4333     ;;
4334     *BAR*)
4335     ac_pat=`echo $ac_file | sed s/BAR/%MODULE%/`
4336     ac_exists=false
4337     for ac_i in $ac_cv_f90_module_names; do
4338     if test x"$ac_pat" = x"$ac_i"; then
4339     ac_exists=true
4340     break
4341     fi
4342     done
4343    
4344     if test x"$ac_exists" = xtrue; then
4345     :
4346     else
4347     ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4348     fi
4349    
4350     ;;
4351     # Other files - we have no idea how they are generated
4352     *)
4353 gezelter 2081 { echo "$as_me:$LINENO: WARNING: Bogus file found: $ac_file" >&5
4354 gezelter 1535 echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;}
4355     ;;
4356     esac
4357     done
4358     if test "x$ac_cv_f90_module_names" = "x"; then
4359 gezelter 2081 { echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
4360 gezelter 1535 echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
4361     fi
4362    
4363     else
4364     echo "$as_me: failed program was:" >&5
4365 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
4366    
4367 gezelter 1535 ac_cv_f90_module_names=
4368 gezelter 2081 { echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
4369 gezelter 1535 echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
4370     fi
4371 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4372 gezelter 1535 cd ..
4373     # cleanup
4374     rm -rf conftest
4375     ac_ext=f90
4376     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4377     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4379    
4380     fi
4381 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_f90_module_names" >&5
4382 gezelter 1535 echo "${ECHO_T}$ac_cv_f90_module_names" >&6 # AC_CACHE_CHECK
4383    
4384     # We now generate a shell script that will help us to figure out the correct
4385     # module file names, using the value of ac_cv_f90_module_names
4386    
4387     echo "Generating shell script modnam"
4388    
4389     cat > scripts/modnam << EOF
4390     #! /bin/sh
4391     # This script is auto-generated by configure
4392     #
4393     usage="\\
4394     Usage: \$0 [FILES]
4395    
4396     [FILES] are Fortran 90 source files.
4397     The output is a list of module file names that the Fortran 90 compiler
4398     generates when compiling [FILES]."
4399    
4400     list=
4401     empty=
4402    
4403     if test \$# -eq 0; then
4404     echo "\$usage"; exit 0
4405     fi
4406    
4407     while test \$# != 0; do
4408    
4409     file=\$1
4410     shift
4411    
4412     # strip suffix
4413     base=\`echo \$file | sed 's/[.][^.]*$//'\`
4414    
4415     test ! -f \$file && continue
4416    
4417     # Look for module definitions and transform them to upper / lower case
4418     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/'\`
4419     upper=\`echo \$mods | tr a-z A-Z\`
4420     lower=\`echo \$mods | tr A-Z a-z\`
4421    
4422     # Here, the patterns for generating module file names were inserted by configure
4423     for trans in $ac_cv_f90_module_names; do
4424    
4425     pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\`
4426     var=empty
4427     case \$pat in
4428     %MODULE%)
4429     var=upper ;;
4430     %Module%)
4431     var=mods ;;
4432     %module%)
4433     var=lower ;;
4434     %FILE%)
4435     test -n "\$mods" && var=base ;;
4436     esac
4437     new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\`
4438     list="\$list \$new"
4439     done
4440     done
4441    
4442     echo \$list
4443     # end of configure-generated script
4444     EOF
4445     chmod 755 scripts/modnam
4446    
4447     pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'`
4448     F90_MODULE_NAMES=empty
4449     case $pat in
4450     %MODULE%)
4451     F90_MODULE_NAMES=UPPER ;;
4452     %Module%)
4453     F90_MODULE_NAMES=Mixed ;;
4454     %module%)
4455     F90_MODULE_NAMES=lower ;;
4456     *)
4457     F90_MODULE_NAMES=unknown ;;
4458     esac
4459    
4460 gezelter 1490 ac_ext=c
4461     ac_cpp='$CPP $CPPFLAGS'
4462     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4465    
4466 gezelter 2081
4467 gezelter 2453 ac_ext=cc
4468     ac_cpp='$CXXCPP $CPPFLAGS'
4469     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4470     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4471     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4472    
4473    
4474    
4475     echo "$as_me:$LINENO: checking for asin in -lm" >&5
4476     echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6
4477     if test "${ac_cv_lib_m_asin+set}" = set; then
4478     echo $ECHO_N "(cached) $ECHO_C" >&6
4479     else
4480     ac_check_lib_save_LIBS=$LIBS
4481     LIBS="-lm $LIBS"
4482     cat >conftest.$ac_ext <<_ACEOF
4483     /* confdefs.h. */
4484     _ACEOF
4485     cat confdefs.h >>conftest.$ac_ext
4486     cat >>conftest.$ac_ext <<_ACEOF
4487     /* end confdefs.h. */
4488    
4489     /* Override any gcc2 internal prototype to avoid an error. */
4490     #ifdef __cplusplus
4491     extern "C"
4492     #endif
4493     /* We use char because int might match the return type of a gcc2
4494     builtin and then its argument prototype would still apply. */
4495     char asin ();
4496     int
4497     main ()
4498     {
4499     asin ();
4500     ;
4501     return 0;
4502     }
4503     _ACEOF
4504     rm -f conftest.$ac_objext conftest$ac_exeext
4505     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4506     (eval $ac_link) 2>conftest.er1
4507     ac_status=$?
4508     grep -v '^ *+' conftest.er1 >conftest.err
4509     rm -f conftest.er1
4510     cat conftest.err >&5
4511     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512     (exit $ac_status); } &&
4513     { ac_try='test -z "$ac_cxx_werror_flag"
4514     || test ! -s conftest.err'
4515     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516     (eval $ac_try) 2>&5
4517     ac_status=$?
4518     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519     (exit $ac_status); }; } &&
4520     { ac_try='test -s conftest$ac_exeext'
4521     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522     (eval $ac_try) 2>&5
4523     ac_status=$?
4524     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525     (exit $ac_status); }; }; then
4526     ac_cv_lib_m_asin=yes
4527     else
4528     echo "$as_me: failed program was:" >&5
4529     sed 's/^/| /' conftest.$ac_ext >&5
4530    
4531     ac_cv_lib_m_asin=no
4532     fi
4533     rm -f conftest.err conftest.$ac_objext \
4534     conftest$ac_exeext conftest.$ac_ext
4535     LIBS=$ac_check_lib_save_LIBS
4536     fi
4537     echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5
4538     echo "${ECHO_T}$ac_cv_lib_m_asin" >&6
4539     if test $ac_cv_lib_m_asin = yes; then
4540     cat >>confdefs.h <<_ACEOF
4541     #define HAVE_LIBM 1
4542     _ACEOF
4543    
4544     LIBS="-lm $LIBS"
4545    
4546     else
4547     exit
4548     fi
4549    
4550    
4551 gezelter 1490 ac_ext=c
4552     ac_cpp='$CPP $CPPFLAGS'
4553     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4556    
4557     ac_ext=c
4558     ac_cpp='$CPP $CPPFLAGS'
4559     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4562 gezelter 2081 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4563 gezelter 1490 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4564     # On Suns, sometimes $CPP names a directory.
4565     if test -n "$CPP" && test -d "$CPP"; then
4566     CPP=
4567     fi
4568     if test -z "$CPP"; then
4569     if test "${ac_cv_prog_CPP+set}" = set; then
4570     echo $ECHO_N "(cached) $ECHO_C" >&6
4571     else
4572     # Double quotes because CPP needs to be expanded
4573     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4574     do
4575     ac_preproc_ok=false
4576     for ac_c_preproc_warn_flag in '' yes
4577     do
4578     # Use a header file that comes with gcc, so configuring glibc
4579     # with a fresh cross-compiler works.
4580 gezelter 2081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4581     # <limits.h> exists even on freestanding compilers.
4582 gezelter 1490 # On the NeXT, cc -E runs the code through the compiler's parser,
4583     # not just through cpp. "Syntax error" is here to catch this case.
4584     cat >conftest.$ac_ext <<_ACEOF
4585 gezelter 2081 /* confdefs.h. */
4586 gezelter 1490 _ACEOF
4587 gezelter 2081 cat confdefs.h >>conftest.$ac_ext
4588     cat >>conftest.$ac_ext <<_ACEOF
4589     /* end confdefs.h. */
4590     #ifdef __STDC__
4591     # include <limits.h>
4592     #else
4593     # include <assert.h>
4594     #endif
4595     Syntax error
4596     _ACEOF
4597     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4598 gezelter 1490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4599     ac_status=$?
4600 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
4601 gezelter 1490 rm -f conftest.er1
4602     cat conftest.err >&5
4603 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 gezelter 1490 (exit $ac_status); } >/dev/null; then
4605     if test -s conftest.err; then
4606     ac_cpp_err=$ac_c_preproc_warn_flag
4607 gezelter 2081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4608 gezelter 1490 else
4609     ac_cpp_err=
4610     fi
4611     else
4612     ac_cpp_err=yes
4613     fi
4614     if test -z "$ac_cpp_err"; then
4615     :
4616     else
4617     echo "$as_me: failed program was:" >&5
4618 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
4619    
4620 gezelter 1490 # Broken: fails on valid input.
4621     continue
4622     fi
4623     rm -f conftest.err conftest.$ac_ext
4624    
4625     # OK, works on sane cases. Now check whether non-existent headers
4626     # can be detected and how.
4627     cat >conftest.$ac_ext <<_ACEOF
4628 gezelter 2081 /* confdefs.h. */
4629     _ACEOF
4630     cat confdefs.h >>conftest.$ac_ext
4631     cat >>conftest.$ac_ext <<_ACEOF
4632     /* end confdefs.h. */
4633 gezelter 1490 #include <ac_nonexistent.h>
4634     _ACEOF
4635 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4636 gezelter 1490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4637     ac_status=$?
4638 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
4639 gezelter 1490 rm -f conftest.er1
4640     cat conftest.err >&5
4641 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 gezelter 1490 (exit $ac_status); } >/dev/null; then
4643     if test -s conftest.err; then
4644     ac_cpp_err=$ac_c_preproc_warn_flag
4645 gezelter 2081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4646 gezelter 1490 else
4647     ac_cpp_err=
4648     fi
4649     else
4650     ac_cpp_err=yes
4651     fi
4652     if test -z "$ac_cpp_err"; then
4653     # Broken: success on invalid input.
4654     continue
4655     else
4656     echo "$as_me: failed program was:" >&5
4657 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
4658    
4659 gezelter 1490 # Passes both tests.
4660     ac_preproc_ok=:
4661     break
4662     fi
4663     rm -f conftest.err conftest.$ac_ext
4664    
4665     done
4666     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4667     rm -f conftest.err conftest.$ac_ext
4668     if $ac_preproc_ok; then
4669 gezelter 2081 break
4670 gezelter 1490 fi
4671    
4672     done
4673     ac_cv_prog_CPP=$CPP
4674    
4675     fi
4676     CPP=$ac_cv_prog_CPP
4677     else
4678     ac_cv_prog_CPP=$CPP
4679     fi
4680 gezelter 2081 echo "$as_me:$LINENO: result: $CPP" >&5
4681 gezelter 1490 echo "${ECHO_T}$CPP" >&6
4682     ac_preproc_ok=false
4683     for ac_c_preproc_warn_flag in '' yes
4684     do
4685     # Use a header file that comes with gcc, so configuring glibc
4686     # with a fresh cross-compiler works.
4687 gezelter 2081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4688     # <limits.h> exists even on freestanding compilers.
4689 gezelter 1490 # On the NeXT, cc -E runs the code through the compiler's parser,
4690     # not just through cpp. "Syntax error" is here to catch this case.
4691     cat >conftest.$ac_ext <<_ACEOF
4692 gezelter 2081 /* confdefs.h. */
4693 gezelter 1490 _ACEOF
4694 gezelter 2081 cat confdefs.h >>conftest.$ac_ext
4695     cat >>conftest.$ac_ext <<_ACEOF
4696     /* end confdefs.h. */
4697     #ifdef __STDC__
4698     # include <limits.h>
4699     #else
4700     # include <assert.h>
4701     #endif
4702     Syntax error
4703     _ACEOF
4704     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4705 gezelter 1490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4706     ac_status=$?
4707 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
4708 gezelter 1490 rm -f conftest.er1
4709     cat conftest.err >&5
4710 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 gezelter 1490 (exit $ac_status); } >/dev/null; then
4712     if test -s conftest.err; then
4713     ac_cpp_err=$ac_c_preproc_warn_flag
4714 gezelter 2081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4715 gezelter 1490 else
4716     ac_cpp_err=
4717     fi
4718     else
4719     ac_cpp_err=yes
4720     fi
4721     if test -z "$ac_cpp_err"; then
4722     :
4723     else
4724     echo "$as_me: failed program was:" >&5
4725 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
4726    
4727 gezelter 1490 # Broken: fails on valid input.
4728     continue
4729     fi
4730     rm -f conftest.err conftest.$ac_ext
4731    
4732     # OK, works on sane cases. Now check whether non-existent headers
4733     # can be detected and how.
4734     cat >conftest.$ac_ext <<_ACEOF
4735 gezelter 2081 /* confdefs.h. */
4736     _ACEOF
4737     cat confdefs.h >>conftest.$ac_ext
4738     cat >>conftest.$ac_ext <<_ACEOF
4739     /* end confdefs.h. */
4740 gezelter 1490 #include <ac_nonexistent.h>
4741     _ACEOF
4742 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4743 gezelter 1490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4744     ac_status=$?
4745 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
4746 gezelter 1490 rm -f conftest.er1
4747     cat conftest.err >&5
4748 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 gezelter 1490 (exit $ac_status); } >/dev/null; then
4750     if test -s conftest.err; then
4751     ac_cpp_err=$ac_c_preproc_warn_flag
4752 gezelter 2081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4753 gezelter 1490 else
4754     ac_cpp_err=
4755     fi
4756     else
4757     ac_cpp_err=yes
4758     fi
4759     if test -z "$ac_cpp_err"; then
4760     # Broken: success on invalid input.
4761     continue
4762     else
4763     echo "$as_me: failed program was:" >&5
4764 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
4765    
4766 gezelter 1490 # Passes both tests.
4767     ac_preproc_ok=:
4768     break
4769     fi
4770     rm -f conftest.err conftest.$ac_ext
4771    
4772     done
4773     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4774     rm -f conftest.err conftest.$ac_ext
4775     if $ac_preproc_ok; then
4776     :
4777     else
4778 gezelter 2081 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4779     See \`config.log' for more details." >&5
4780     echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4781     See \`config.log' for more details." >&2;}
4782 gezelter 1490 { (exit 1); exit 1; }; }
4783     fi
4784    
4785     ac_ext=c
4786     ac_cpp='$CPP $CPPFLAGS'
4787     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4790    
4791 gezelter 2081
4792     echo "$as_me:$LINENO: checking for egrep" >&5
4793     echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4794     if test "${ac_cv_prog_egrep+set}" = set; then
4795     echo $ECHO_N "(cached) $ECHO_C" >&6
4796     else
4797     if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4798     then ac_cv_prog_egrep='grep -E'
4799     else ac_cv_prog_egrep='egrep'
4800     fi
4801     fi
4802     echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4803     echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4804     EGREP=$ac_cv_prog_egrep
4805    
4806    
4807     echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4808     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4809     if test "${ac_cv_header_stdc+set}" = set; then
4810     echo $ECHO_N "(cached) $ECHO_C" >&6
4811     else
4812     cat >conftest.$ac_ext <<_ACEOF
4813     /* confdefs.h. */
4814     _ACEOF
4815     cat confdefs.h >>conftest.$ac_ext
4816     cat >>conftest.$ac_ext <<_ACEOF
4817     /* end confdefs.h. */
4818     #include <stdlib.h>
4819     #include <stdarg.h>
4820     #include <string.h>
4821     #include <float.h>
4822    
4823     int
4824     main ()
4825     {
4826    
4827     ;
4828     return 0;
4829     }
4830     _ACEOF
4831     rm -f conftest.$ac_objext
4832     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833     (eval $ac_compile) 2>conftest.er1
4834     ac_status=$?
4835     grep -v '^ *+' conftest.er1 >conftest.err
4836     rm -f conftest.er1
4837     cat conftest.err >&5
4838     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839     (exit $ac_status); } &&
4840     { ac_try='test -z "$ac_c_werror_flag"
4841     || test ! -s conftest.err'
4842     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843     (eval $ac_try) 2>&5
4844     ac_status=$?
4845     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846     (exit $ac_status); }; } &&
4847     { ac_try='test -s conftest.$ac_objext'
4848     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849     (eval $ac_try) 2>&5
4850     ac_status=$?
4851     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852     (exit $ac_status); }; }; then
4853     ac_cv_header_stdc=yes
4854     else
4855     echo "$as_me: failed program was:" >&5
4856     sed 's/^/| /' conftest.$ac_ext >&5
4857    
4858     ac_cv_header_stdc=no
4859     fi
4860     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4861    
4862     if test $ac_cv_header_stdc = yes; then
4863     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4864     cat >conftest.$ac_ext <<_ACEOF
4865     /* confdefs.h. */
4866     _ACEOF
4867     cat confdefs.h >>conftest.$ac_ext
4868     cat >>conftest.$ac_ext <<_ACEOF
4869     /* end confdefs.h. */
4870     #include <string.h>
4871    
4872     _ACEOF
4873     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4874     $EGREP "memchr" >/dev/null 2>&1; then
4875     :
4876     else
4877     ac_cv_header_stdc=no
4878     fi
4879     rm -f conftest*
4880    
4881     fi
4882    
4883     if test $ac_cv_header_stdc = yes; then
4884     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4885     cat >conftest.$ac_ext <<_ACEOF
4886     /* confdefs.h. */
4887     _ACEOF
4888     cat confdefs.h >>conftest.$ac_ext
4889     cat >>conftest.$ac_ext <<_ACEOF
4890     /* end confdefs.h. */
4891     #include <stdlib.h>
4892    
4893     _ACEOF
4894     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4895     $EGREP "free" >/dev/null 2>&1; then
4896     :
4897     else
4898     ac_cv_header_stdc=no
4899     fi
4900     rm -f conftest*
4901    
4902     fi
4903    
4904     if test $ac_cv_header_stdc = yes; then
4905     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4906     if test "$cross_compiling" = yes; then
4907     :
4908     else
4909     cat >conftest.$ac_ext <<_ACEOF
4910     /* confdefs.h. */
4911     _ACEOF
4912     cat confdefs.h >>conftest.$ac_ext
4913     cat >>conftest.$ac_ext <<_ACEOF
4914     /* end confdefs.h. */
4915     #include <ctype.h>
4916     #if ((' ' & 0x0FF) == 0x020)
4917     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4918     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4919     #else
4920     # define ISLOWER(c) \
4921     (('a' <= (c) && (c) <= 'i') \
4922     || ('j' <= (c) && (c) <= 'r') \
4923     || ('s' <= (c) && (c) <= 'z'))
4924     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4925     #endif
4926    
4927     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4928     int
4929     main ()
4930     {
4931     int i;
4932     for (i = 0; i < 256; i++)
4933     if (XOR (islower (i), ISLOWER (i))
4934     || toupper (i) != TOUPPER (i))
4935     exit(2);
4936     exit (0);
4937     }
4938     _ACEOF
4939     rm -f conftest$ac_exeext
4940     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4941     (eval $ac_link) 2>&5
4942     ac_status=$?
4943     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4945     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946     (eval $ac_try) 2>&5
4947     ac_status=$?
4948     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949     (exit $ac_status); }; }; then
4950     :
4951     else
4952     echo "$as_me: program exited with status $ac_status" >&5
4953     echo "$as_me: failed program was:" >&5
4954     sed 's/^/| /' conftest.$ac_ext >&5
4955    
4956     ( exit $ac_status )
4957     ac_cv_header_stdc=no
4958     fi
4959     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4960     fi
4961     fi
4962     fi
4963     echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4964     echo "${ECHO_T}$ac_cv_header_stdc" >&6
4965     if test $ac_cv_header_stdc = yes; then
4966    
4967     cat >>confdefs.h <<\_ACEOF
4968     #define STDC_HEADERS 1
4969     _ACEOF
4970    
4971     fi
4972    
4973     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4974    
4975    
4976    
4977    
4978    
4979    
4980    
4981    
4982    
4983     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4984     inttypes.h stdint.h unistd.h
4985 gezelter 1490 do
4986 gezelter 2081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4987     echo "$as_me:$LINENO: checking for $ac_header" >&5
4988 gezelter 1490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4989 gezelter 2081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4990 gezelter 1490 echo $ECHO_N "(cached) $ECHO_C" >&6
4991     else
4992     cat >conftest.$ac_ext <<_ACEOF
4993 gezelter 2081 /* confdefs.h. */
4994     _ACEOF
4995     cat confdefs.h >>conftest.$ac_ext
4996     cat >>conftest.$ac_ext <<_ACEOF
4997     /* end confdefs.h. */
4998     $ac_includes_default
4999    
5000 gezelter 1490 #include <$ac_header>
5001     _ACEOF
5002 gezelter 2081 rm -f conftest.$ac_objext
5003     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004     (eval $ac_compile) 2>conftest.er1
5005     ac_status=$?
5006     grep -v '^ *+' conftest.er1 >conftest.err
5007     rm -f conftest.er1
5008     cat conftest.err >&5
5009     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010     (exit $ac_status); } &&
5011     { ac_try='test -z "$ac_c_werror_flag"
5012     || test ! -s conftest.err'
5013     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014     (eval $ac_try) 2>&5
5015     ac_status=$?
5016     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017     (exit $ac_status); }; } &&
5018     { ac_try='test -s conftest.$ac_objext'
5019     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020     (eval $ac_try) 2>&5
5021     ac_status=$?
5022     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023     (exit $ac_status); }; }; then
5024     eval "$as_ac_Header=yes"
5025     else
5026     echo "$as_me: failed program was:" >&5
5027     sed 's/^/| /' conftest.$ac_ext >&5
5028    
5029     eval "$as_ac_Header=no"
5030     fi
5031     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5032     fi
5033     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5034     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5035     if test `eval echo '${'$as_ac_Header'}'` = yes; then
5036     cat >>confdefs.h <<_ACEOF
5037     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5038     _ACEOF
5039    
5040     fi
5041    
5042     done
5043    
5044    
5045 gezelter 2315 #
5046     # Handle user hints
5047     #
5048     echo "$as_me:$LINENO: checking if zlib is wanted" >&5
5049     echo $ECHO_N "checking if zlib is wanted... $ECHO_C" >&6
5050 gezelter 2081
5051 gezelter 2315 # Check whether --with-zlib or --without-zlib was given.
5052     if test "${with_zlib+set}" = set; then
5053     withval="$with_zlib"
5054     if test "$withval" != no ; then
5055     echo "$as_me:$LINENO: result: yes" >&5
5056     echo "${ECHO_T}yes" >&6
5057     if test -d "$withval"
5058     then
5059     ZLIB_HOME="$withval"
5060     else
5061     { echo "$as_me:$LINENO: WARNING: Sorry, $withval does not exist, checking usual places" >&5
5062     echo "$as_me: WARNING: Sorry, $withval does not exist, checking usual places" >&2;}
5063     fi
5064     else
5065     echo "$as_me:$LINENO: result: no" >&5
5066     echo "${ECHO_T}no" >&6
5067     fi
5068     fi;
5069 gezelter 2081
5070 gezelter 2315 ZLIB_HOME=/usr/local
5071     if test ! -f "${ZLIB_HOME}/include/zlib.h"
5072     then
5073     ZLIB_HOME=/usr
5074     fi
5075 gezelter 2081
5076 gezelter 2315 #
5077     # Locate zlib, if wanted
5078     #
5079     if test -n "${ZLIB_HOME}"
5080     then
5081     ZLIB_OLD_LDFLAGS=$LDFLAGS
5082     ZLIB_OLD_CPPFLAGS=$LDFLAGS
5083     LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
5084     CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
5085 gezelter 2081
5086    
5087 gezelter 2315 ac_ext=c
5088     ac_cpp='$CPP $CPPFLAGS'
5089     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091     ac_compiler_gnu=$ac_cv_c_compiler_gnu
5092 gezelter 2081
5093 gezelter 2315 echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
5094     echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
5095     if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
5096     echo $ECHO_N "(cached) $ECHO_C" >&6
5097     else
5098     ac_check_lib_save_LIBS=$LIBS
5099     LIBS="-lz $LIBS"
5100     cat >conftest.$ac_ext <<_ACEOF
5101     /* confdefs.h. */
5102     _ACEOF
5103     cat confdefs.h >>conftest.$ac_ext
5104     cat >>conftest.$ac_ext <<_ACEOF
5105     /* end confdefs.h. */
5106 gezelter 2081
5107 gezelter 2315 /* Override any gcc2 internal prototype to avoid an error. */
5108     #ifdef __cplusplus
5109     extern "C"
5110     #endif
5111     /* We use char because int might match the return type of a gcc2
5112     builtin and then its argument prototype would still apply. */
5113     char inflateEnd ();
5114     int
5115     main ()
5116     {
5117     inflateEnd ();
5118     ;
5119     return 0;
5120     }
5121     _ACEOF
5122     rm -f conftest.$ac_objext conftest$ac_exeext
5123     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5124     (eval $ac_link) 2>conftest.er1
5125     ac_status=$?
5126     grep -v '^ *+' conftest.er1 >conftest.err
5127     rm -f conftest.er1
5128     cat conftest.err >&5
5129     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130     (exit $ac_status); } &&
5131     { ac_try='test -z "$ac_c_werror_flag"
5132     || test ! -s conftest.err'
5133     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134     (eval $ac_try) 2>&5
5135     ac_status=$?
5136     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137     (exit $ac_status); }; } &&
5138     { ac_try='test -s conftest$ac_exeext'
5139     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140     (eval $ac_try) 2>&5
5141     ac_status=$?
5142     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143     (exit $ac_status); }; }; then
5144     ac_cv_lib_z_inflateEnd=yes
5145     else
5146     echo "$as_me: failed program was:" >&5
5147     sed 's/^/| /' conftest.$ac_ext >&5
5148 gezelter 2081
5149 gezelter 2315 ac_cv_lib_z_inflateEnd=no
5150     fi
5151     rm -f conftest.err conftest.$ac_objext \
5152     conftest$ac_exeext conftest.$ac_ext
5153     LIBS=$ac_check_lib_save_LIBS
5154     fi
5155     echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
5156     echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
5157     if test $ac_cv_lib_z_inflateEnd = yes; then
5158     zlib_cv_libz=yes
5159     else
5160     zlib_cv_libz=no
5161     fi
5162 gezelter 2081
5163 gezelter 2315 if test "${ac_cv_header_zlib_h+set}" = set; then
5164     echo "$as_me:$LINENO: checking for zlib.h" >&5
5165     echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
5166     if test "${ac_cv_header_zlib_h+set}" = set; then
5167     echo $ECHO_N "(cached) $ECHO_C" >&6
5168     fi
5169     echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
5170     echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
5171     else
5172     # Is the header compilable?
5173     echo "$as_me:$LINENO: checking zlib.h usability" >&5
5174     echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
5175     cat >conftest.$ac_ext <<_ACEOF
5176     /* confdefs.h. */
5177     _ACEOF
5178     cat confdefs.h >>conftest.$ac_ext
5179     cat >>conftest.$ac_ext <<_ACEOF
5180     /* end confdefs.h. */
5181     $ac_includes_default
5182     #include <zlib.h>
5183     _ACEOF
5184     rm -f conftest.$ac_objext
5185     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5186     (eval $ac_compile) 2>conftest.er1
5187     ac_status=$?
5188     grep -v '^ *+' conftest.er1 >conftest.err
5189     rm -f conftest.er1
5190     cat conftest.err >&5
5191     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192     (exit $ac_status); } &&
5193     { ac_try='test -z "$ac_c_werror_flag"
5194     || test ! -s conftest.err'
5195     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196     (eval $ac_try) 2>&5
5197     ac_status=$?
5198     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199     (exit $ac_status); }; } &&
5200     { ac_try='test -s conftest.$ac_objext'
5201     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202     (eval $ac_try) 2>&5
5203     ac_status=$?
5204     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205     (exit $ac_status); }; }; then
5206     ac_header_compiler=yes
5207     else
5208     echo "$as_me: failed program was:" >&5
5209     sed 's/^/| /' conftest.$ac_ext >&5
5210    
5211     ac_header_compiler=no
5212     fi
5213     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5214     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5215     echo "${ECHO_T}$ac_header_compiler" >&6
5216    
5217     # Is the header present?
5218     echo "$as_me:$LINENO: checking zlib.h presence" >&5
5219     echo $ECHO_N "checking zlib.h presence... $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 <zlib.h>
5227     _ACEOF
5228     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5229     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5230     ac_status=$?
5231     grep -v '^ *+' conftest.er1 >conftest.err
5232     rm -f conftest.er1
5233     cat conftest.err >&5
5234     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235     (exit $ac_status); } >/dev/null; then
5236     if test -s conftest.err; then
5237     ac_cpp_err=$ac_c_preproc_warn_flag
5238     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5239     else
5240     ac_cpp_err=
5241     fi
5242     else
5243     ac_cpp_err=yes
5244     fi
5245     if test -z "$ac_cpp_err"; then
5246     ac_header_preproc=yes
5247     else
5248     echo "$as_me: failed program was:" >&5
5249     sed 's/^/| /' conftest.$ac_ext >&5
5250    
5251     ac_header_preproc=no
5252     fi
5253     rm -f conftest.err conftest.$ac_ext
5254     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5255     echo "${ECHO_T}$ac_header_preproc" >&6
5256    
5257     # So? What about this header?
5258     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5259     yes:no: )
5260     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
5261     echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5262     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
5263     echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
5264     ac_header_preproc=yes
5265     ;;
5266     no:yes:* )
5267     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
5268     echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
5269     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
5270     echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
5271     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
5272     echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
5273     { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
5274     echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
5275     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
5276     echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
5277     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
5278     echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
5279     (
5280     cat <<\_ASBOX
5281     ## ------------------------------ ##
5282     ## Report this to gezelter@nd.edu ##
5283     ## ------------------------------ ##
5284     _ASBOX
5285     ) |
5286     sed "s/^/$as_me: WARNING: /" >&2
5287     ;;
5288     esac
5289     echo "$as_me:$LINENO: checking for zlib.h" >&5
5290     echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
5291     if test "${ac_cv_header_zlib_h+set}" = set; then
5292     echo $ECHO_N "(cached) $ECHO_C" >&6
5293     else
5294     ac_cv_header_zlib_h=$ac_header_preproc
5295     fi
5296     echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
5297     echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
5298    
5299     fi
5300     if test $ac_cv_header_zlib_h = yes; then
5301     zlib_cv_zlib_h=yes
5302     else
5303     zlib_cv_zlib_h=no
5304     fi
5305    
5306    
5307     ac_ext=c
5308     ac_cpp='$CPP $CPPFLAGS'
5309     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5310     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5311     ac_compiler_gnu=$ac_cv_c_compiler_gnu
5312    
5313     if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"
5314     then
5315     #
5316     # If both library and header were found, use them
5317     #
5318    
5319     echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
5320     echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
5321     if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
5322     echo $ECHO_N "(cached) $ECHO_C" >&6
5323     else
5324     ac_check_lib_save_LIBS=$LIBS
5325     LIBS="-lz $LIBS"
5326     cat >conftest.$ac_ext <<_ACEOF
5327     /* confdefs.h. */
5328     _ACEOF
5329     cat confdefs.h >>conftest.$ac_ext
5330     cat >>conftest.$ac_ext <<_ACEOF
5331     /* end confdefs.h. */
5332    
5333     /* Override any gcc2 internal prototype to avoid an error. */
5334     #ifdef __cplusplus
5335     extern "C"
5336     #endif
5337     /* We use char because int might match the return type of a gcc2
5338     builtin and then its argument prototype would still apply. */
5339     char inflateEnd ();
5340     int
5341     main ()
5342     {
5343     inflateEnd ();
5344     ;
5345     return 0;
5346     }
5347     _ACEOF
5348     rm -f conftest.$ac_objext conftest$ac_exeext
5349     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5350     (eval $ac_link) 2>conftest.er1
5351     ac_status=$?
5352     grep -v '^ *+' conftest.er1 >conftest.err
5353     rm -f conftest.er1
5354     cat conftest.err >&5
5355     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356     (exit $ac_status); } &&
5357     { ac_try='test -z "$ac_c_werror_flag"
5358     || test ! -s conftest.err'
5359     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360     (eval $ac_try) 2>&5
5361     ac_status=$?
5362     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363     (exit $ac_status); }; } &&
5364     { ac_try='test -s conftest$ac_exeext'
5365     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366     (eval $ac_try) 2>&5
5367     ac_status=$?
5368     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369     (exit $ac_status); }; }; then
5370     ac_cv_lib_z_inflateEnd=yes
5371     else
5372     echo "$as_me: failed program was:" >&5
5373     sed 's/^/| /' conftest.$ac_ext >&5
5374    
5375     ac_cv_lib_z_inflateEnd=no
5376     fi
5377     rm -f conftest.err conftest.$ac_objext \
5378     conftest$ac_exeext conftest.$ac_ext
5379     LIBS=$ac_check_lib_save_LIBS
5380     fi
5381     echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
5382     echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
5383     if test $ac_cv_lib_z_inflateEnd = yes; then
5384     cat >>confdefs.h <<_ACEOF
5385     #define HAVE_LIBZ 1
5386     _ACEOF
5387    
5388     LIBS="-lz $LIBS"
5389    
5390     fi
5391    
5392     echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
5393     echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
5394     echo "$as_me:$LINENO: result: ok" >&5
5395     echo "${ECHO_T}ok" >&6
5396     else
5397     #
5398     # If either header or library was not found, revert and bomb
5399     #
5400     echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
5401     echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
5402     LDFLAGS="$ZLIB_OLD_LDFLAGS"
5403     CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
5404     echo "$as_me:$LINENO: result: failed" >&5
5405     echo "${ECHO_T}failed" >&6
5406     { { echo "$as_me:$LINENO: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&5
5407     echo "$as_me: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&2;}
5408     { (exit 1); exit 1; }; }
5409     fi
5410     fi
5411    
5412    
5413    
5414    
5415    
5416    
5417    
5418    
5419 gezelter 2453 for ac_header in sys/time.h unistd.h stdlib.h stdio.h conio.h string.h
5420     do
5421     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5422     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5423     echo "$as_me:$LINENO: checking for $ac_header" >&5
5424     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5425     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5426     echo $ECHO_N "(cached) $ECHO_C" >&6
5427     fi
5428     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5429     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5430     else
5431     # Is the header compilable?
5432     echo "$as_me:$LINENO: checking $ac_header usability" >&5
5433     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5434     cat >conftest.$ac_ext <<_ACEOF
5435     /* confdefs.h. */
5436     _ACEOF
5437     cat confdefs.h >>conftest.$ac_ext
5438     cat >>conftest.$ac_ext <<_ACEOF
5439     /* end confdefs.h. */
5440     $ac_includes_default
5441     #include <$ac_header>
5442     _ACEOF
5443     rm -f conftest.$ac_objext
5444     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5445     (eval $ac_compile) 2>conftest.er1
5446     ac_status=$?
5447     grep -v '^ *+' conftest.er1 >conftest.err
5448     rm -f conftest.er1
5449     cat conftest.err >&5
5450     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451     (exit $ac_status); } &&
5452     { ac_try='test -z "$ac_c_werror_flag"
5453     || test ! -s conftest.err'
5454     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455     (eval $ac_try) 2>&5
5456     ac_status=$?
5457     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458     (exit $ac_status); }; } &&
5459     { ac_try='test -s conftest.$ac_objext'
5460     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461     (eval $ac_try) 2>&5
5462     ac_status=$?
5463     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464     (exit $ac_status); }; }; then
5465     ac_header_compiler=yes
5466     else
5467     echo "$as_me: failed program was:" >&5
5468     sed 's/^/| /' conftest.$ac_ext >&5
5469 gezelter 2315
5470 gezelter 2453 ac_header_compiler=no
5471     fi
5472     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5473     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5474     echo "${ECHO_T}$ac_header_compiler" >&6
5475 gezelter 2315
5476 gezelter 2453 # Is the header present?
5477     echo "$as_me:$LINENO: checking $ac_header presence" >&5
5478     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5479     cat >conftest.$ac_ext <<_ACEOF
5480     /* confdefs.h. */
5481     _ACEOF
5482     cat confdefs.h >>conftest.$ac_ext
5483     cat >>conftest.$ac_ext <<_ACEOF
5484     /* end confdefs.h. */
5485     #include <$ac_header>
5486     _ACEOF
5487     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5488     (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
5495     if test -s conftest.err; then
5496     ac_cpp_err=$ac_c_preproc_warn_flag
5497     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5498     else
5499     ac_cpp_err=
5500     fi
5501     else
5502     ac_cpp_err=yes
5503     fi
5504     if test -z "$ac_cpp_err"; then
5505     ac_header_preproc=yes
5506     else
5507     echo "$as_me: failed program was:" >&5
5508     sed 's/^/| /' conftest.$ac_ext >&5
5509 gezelter 2315
5510 gezelter 2453 ac_header_preproc=no
5511     fi
5512     rm -f conftest.err conftest.$ac_ext
5513     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5514     echo "${ECHO_T}$ac_header_preproc" >&6
5515    
5516     # So? What about this header?
5517     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5518     yes:no: )
5519     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5520     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5522     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5523     ac_header_preproc=yes
5524     ;;
5525     no:yes:* )
5526     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5527     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5528     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5529     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5530     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5531     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5532     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5533     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5535     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5536     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5537     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5538     (
5539     cat <<\_ASBOX
5540     ## ------------------------------ ##
5541     ## Report this to gezelter@nd.edu ##
5542     ## ------------------------------ ##
5543     _ASBOX
5544     ) |
5545     sed "s/^/$as_me: WARNING: /" >&2
5546     ;;
5547     esac
5548     echo "$as_me:$LINENO: checking for $ac_header" >&5
5549     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5550     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5551     echo $ECHO_N "(cached) $ECHO_C" >&6
5552     else
5553     eval "$as_ac_Header=\$ac_header_preproc"
5554     fi
5555     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5556     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5557    
5558     fi
5559     if test `eval echo '${'$as_ac_Header'}'` = yes; then
5560     cat >>confdefs.h <<_ACEOF
5561     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5562     _ACEOF
5563    
5564     fi
5565    
5566     done
5567    
5568    
5569    
5570    
5571    
5572    
5573     for ac_header in strstream.h iostream.h fstream.h math.h time.h
5574 gezelter 2081 do
5575     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5576     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5577     echo "$as_me:$LINENO: checking for $ac_header" >&5
5578     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5579     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5580     echo $ECHO_N "(cached) $ECHO_C" >&6
5581     fi
5582     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5583     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5584     else
5585     # Is the header compilable?
5586     echo "$as_me:$LINENO: checking $ac_header usability" >&5
5587     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5588     cat >conftest.$ac_ext <<_ACEOF
5589     /* confdefs.h. */
5590     _ACEOF
5591     cat confdefs.h >>conftest.$ac_ext
5592     cat >>conftest.$ac_ext <<_ACEOF
5593     /* end confdefs.h. */
5594     $ac_includes_default
5595     #include <$ac_header>
5596     _ACEOF
5597     rm -f conftest.$ac_objext
5598     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5599     (eval $ac_compile) 2>conftest.er1
5600     ac_status=$?
5601     grep -v '^ *+' conftest.er1 >conftest.err
5602     rm -f conftest.er1
5603     cat conftest.err >&5
5604     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605     (exit $ac_status); } &&
5606     { ac_try='test -z "$ac_c_werror_flag"
5607     || test ! -s conftest.err'
5608     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609     (eval $ac_try) 2>&5
5610     ac_status=$?
5611     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612     (exit $ac_status); }; } &&
5613     { ac_try='test -s conftest.$ac_objext'
5614     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615     (eval $ac_try) 2>&5
5616     ac_status=$?
5617     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618     (exit $ac_status); }; }; then
5619     ac_header_compiler=yes
5620     else
5621     echo "$as_me: failed program was:" >&5
5622     sed 's/^/| /' conftest.$ac_ext >&5
5623    
5624     ac_header_compiler=no
5625     fi
5626     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5627     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5628     echo "${ECHO_T}$ac_header_compiler" >&6
5629    
5630     # Is the header present?
5631     echo "$as_me:$LINENO: checking $ac_header presence" >&5
5632     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5633     cat >conftest.$ac_ext <<_ACEOF
5634     /* confdefs.h. */
5635     _ACEOF
5636     cat confdefs.h >>conftest.$ac_ext
5637     cat >>conftest.$ac_ext <<_ACEOF
5638     /* end confdefs.h. */
5639     #include <$ac_header>
5640     _ACEOF
5641     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5642 tim 1998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5643     ac_status=$?
5644 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
5645 tim 1998 rm -f conftest.er1
5646     cat conftest.err >&5
5647 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 tim 1998 (exit $ac_status); } >/dev/null; then
5649     if test -s conftest.err; then
5650     ac_cpp_err=$ac_c_preproc_warn_flag
5651 gezelter 2081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5652 tim 1998 else
5653     ac_cpp_err=
5654     fi
5655     else
5656     ac_cpp_err=yes
5657     fi
5658     if test -z "$ac_cpp_err"; then
5659 gezelter 2081 ac_header_preproc=yes
5660 tim 1998 else
5661     echo "$as_me: failed program was:" >&5
5662 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
5663    
5664     ac_header_preproc=no
5665 tim 1998 fi
5666     rm -f conftest.err conftest.$ac_ext
5667 gezelter 2081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5668     echo "${ECHO_T}$ac_header_preproc" >&6
5669    
5670     # So? What about this header?
5671     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5672     yes:no: )
5673     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5674     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5675     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5676     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5677     ac_header_preproc=yes
5678     ;;
5679     no:yes:* )
5680     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5681     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5682     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5683     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5684     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5685     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5686     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5687     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5688     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5689     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5690     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5691     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5692     (
5693     cat <<\_ASBOX
5694     ## ------------------------------ ##
5695     ## Report this to gezelter@nd.edu ##
5696     ## ------------------------------ ##
5697     _ASBOX
5698     ) |
5699     sed "s/^/$as_me: WARNING: /" >&2
5700     ;;
5701     esac
5702     echo "$as_me:$LINENO: checking for $ac_header" >&5
5703     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5704     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5705     echo $ECHO_N "(cached) $ECHO_C" >&6
5706     else
5707     eval "$as_ac_Header=\$ac_header_preproc"
5708 tim 1998 fi
5709 gezelter 2081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5710     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5711 tim 1998
5712     fi
5713 gezelter 2081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5714     cat >>confdefs.h <<_ACEOF
5715     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5716     _ACEOF
5717    
5718     fi
5719    
5720 tim 1998 done
5721    
5722 gezelter 2453 ac_ext=cc
5723     ac_cpp='$CXXCPP $CPPFLAGS'
5724     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5727 gezelter 2081
5728 gezelter 2453 ac_ext=cc
5729     ac_cpp='$CXXCPP $CPPFLAGS'
5730     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5731     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5733     echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5734     echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5735     if test -z "$CXXCPP"; then
5736     if test "${ac_cv_prog_CXXCPP+set}" = set; then
5737     echo $ECHO_N "(cached) $ECHO_C" >&6
5738     else
5739     # Double quotes because CXXCPP needs to be expanded
5740     for CXXCPP in "$CXX -E" "/lib/cpp"
5741     do
5742     ac_preproc_ok=false
5743     for ac_cxx_preproc_warn_flag in '' yes
5744     do
5745     # Use a header file that comes with gcc, so configuring glibc
5746     # with a fresh cross-compiler works.
5747     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5748     # <limits.h> exists even on freestanding compilers.
5749     # On the NeXT, cc -E runs the code through the compiler's parser,
5750     # not just through cpp. "Syntax error" is here to catch this case.
5751     cat >conftest.$ac_ext <<_ACEOF
5752     /* confdefs.h. */
5753     _ACEOF
5754     cat confdefs.h >>conftest.$ac_ext
5755     cat >>conftest.$ac_ext <<_ACEOF
5756     /* end confdefs.h. */
5757     #ifdef __STDC__
5758     # include <limits.h>
5759     #else
5760     # include <assert.h>
5761     #endif
5762     Syntax error
5763     _ACEOF
5764     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5765     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5766     ac_status=$?
5767     grep -v '^ *+' conftest.er1 >conftest.err
5768     rm -f conftest.er1
5769     cat conftest.err >&5
5770     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771     (exit $ac_status); } >/dev/null; then
5772     if test -s conftest.err; then
5773     ac_cpp_err=$ac_cxx_preproc_warn_flag
5774     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5775     else
5776     ac_cpp_err=
5777     fi
5778     else
5779     ac_cpp_err=yes
5780     fi
5781     if test -z "$ac_cpp_err"; then
5782     :
5783     else
5784     echo "$as_me: failed program was:" >&5
5785     sed 's/^/| /' conftest.$ac_ext >&5
5786 gezelter 2081
5787 gezelter 2453 # Broken: fails on valid input.
5788     continue
5789     fi
5790     rm -f conftest.err conftest.$ac_ext
5791 gezelter 2081
5792 gezelter 2453 # OK, works on sane cases. Now check whether non-existent headers
5793     # can be detected and how.
5794     cat >conftest.$ac_ext <<_ACEOF
5795     /* confdefs.h. */
5796     _ACEOF
5797     cat confdefs.h >>conftest.$ac_ext
5798     cat >>conftest.$ac_ext <<_ACEOF
5799     /* end confdefs.h. */
5800     #include <ac_nonexistent.h>
5801     _ACEOF
5802     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5803     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5804     ac_status=$?
5805     grep -v '^ *+' conftest.er1 >conftest.err
5806     rm -f conftest.er1
5807     cat conftest.err >&5
5808     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809     (exit $ac_status); } >/dev/null; then
5810     if test -s conftest.err; then
5811     ac_cpp_err=$ac_cxx_preproc_warn_flag
5812     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5813     else
5814     ac_cpp_err=
5815     fi
5816     else
5817     ac_cpp_err=yes
5818     fi
5819     if test -z "$ac_cpp_err"; then
5820     # Broken: success on invalid input.
5821     continue
5822     else
5823     echo "$as_me: failed program was:" >&5
5824     sed 's/^/| /' conftest.$ac_ext >&5
5825 gezelter 2081
5826 gezelter 2453 # Passes both tests.
5827     ac_preproc_ok=:
5828     break
5829     fi
5830     rm -f conftest.err conftest.$ac_ext
5831 gezelter 2081
5832 gezelter 2453 done
5833     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5834     rm -f conftest.err conftest.$ac_ext
5835     if $ac_preproc_ok; then
5836     break
5837     fi
5838    
5839     done
5840     ac_cv_prog_CXXCPP=$CXXCPP
5841    
5842     fi
5843     CXXCPP=$ac_cv_prog_CXXCPP
5844     else
5845     ac_cv_prog_CXXCPP=$CXXCPP
5846     fi
5847     echo "$as_me:$LINENO: result: $CXXCPP" >&5
5848     echo "${ECHO_T}$CXXCPP" >&6
5849     ac_preproc_ok=false
5850     for ac_cxx_preproc_warn_flag in '' yes
5851     do
5852     # Use a header file that comes with gcc, so configuring glibc
5853     # with a fresh cross-compiler works.
5854     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5855     # <limits.h> exists even on freestanding compilers.
5856     # On the NeXT, cc -E runs the code through the compiler's parser,
5857     # not just through cpp. "Syntax error" is here to catch this case.
5858     cat >conftest.$ac_ext <<_ACEOF
5859     /* confdefs.h. */
5860     _ACEOF
5861     cat confdefs.h >>conftest.$ac_ext
5862     cat >>conftest.$ac_ext <<_ACEOF
5863     /* end confdefs.h. */
5864     #ifdef __STDC__
5865     # include <limits.h>
5866     #else
5867     # include <assert.h>
5868     #endif
5869     Syntax error
5870     _ACEOF
5871     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5872     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5873     ac_status=$?
5874     grep -v '^ *+' conftest.er1 >conftest.err
5875     rm -f conftest.er1
5876     cat conftest.err >&5
5877     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878     (exit $ac_status); } >/dev/null; then
5879     if test -s conftest.err; then
5880     ac_cpp_err=$ac_cxx_preproc_warn_flag
5881     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5882     else
5883     ac_cpp_err=
5884     fi
5885     else
5886     ac_cpp_err=yes
5887     fi
5888     if test -z "$ac_cpp_err"; then
5889     :
5890     else
5891     echo "$as_me: failed program was:" >&5
5892     sed 's/^/| /' conftest.$ac_ext >&5
5893    
5894     # Broken: fails on valid input.
5895     continue
5896     fi
5897     rm -f conftest.err conftest.$ac_ext
5898    
5899     # OK, works on sane cases. Now check whether non-existent headers
5900     # can be detected and how.
5901     cat >conftest.$ac_ext <<_ACEOF
5902     /* confdefs.h. */
5903     _ACEOF
5904     cat confdefs.h >>conftest.$ac_ext
5905     cat >>conftest.$ac_ext <<_ACEOF
5906     /* end confdefs.h. */
5907     #include <ac_nonexistent.h>
5908     _ACEOF
5909     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5910     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5911     ac_status=$?
5912     grep -v '^ *+' conftest.er1 >conftest.err
5913     rm -f conftest.er1
5914     cat conftest.err >&5
5915     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916     (exit $ac_status); } >/dev/null; then
5917     if test -s conftest.err; then
5918     ac_cpp_err=$ac_cxx_preproc_warn_flag
5919     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5920     else
5921     ac_cpp_err=
5922     fi
5923     else
5924     ac_cpp_err=yes
5925     fi
5926     if test -z "$ac_cpp_err"; then
5927     # Broken: success on invalid input.
5928     continue
5929     else
5930     echo "$as_me: failed program was:" >&5
5931     sed 's/^/| /' conftest.$ac_ext >&5
5932    
5933     # Passes both tests.
5934     ac_preproc_ok=:
5935     break
5936     fi
5937     rm -f conftest.err conftest.$ac_ext
5938    
5939     done
5940     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5941     rm -f conftest.err conftest.$ac_ext
5942     if $ac_preproc_ok; then
5943     :
5944     else
5945     { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5946     See \`config.log' for more details." >&5
5947     echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5948     See \`config.log' for more details." >&2;}
5949     { (exit 1); exit 1; }; }
5950     fi
5951    
5952     ac_ext=cc
5953     ac_cpp='$CXXCPP $CPPFLAGS'
5954     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5955     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5956     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5957    
5958    
5959    
5960    
5961    
5962    
5963    
5964     for ac_header in ctype.h iostream fstream sstream strstream
5965     do
5966     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5967     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5968     echo "$as_me:$LINENO: checking for $ac_header" >&5
5969     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5970     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5971     echo $ECHO_N "(cached) $ECHO_C" >&6
5972     fi
5973     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5974     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5975     else
5976     # Is the header compilable?
5977     echo "$as_me:$LINENO: checking $ac_header usability" >&5
5978     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5979     cat >conftest.$ac_ext <<_ACEOF
5980     /* confdefs.h. */
5981     _ACEOF
5982     cat confdefs.h >>conftest.$ac_ext
5983     cat >>conftest.$ac_ext <<_ACEOF
5984     /* end confdefs.h. */
5985     $ac_includes_default
5986     #include <$ac_header>
5987     _ACEOF
5988     rm -f conftest.$ac_objext
5989     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5990     (eval $ac_compile) 2>conftest.er1
5991     ac_status=$?
5992     grep -v '^ *+' conftest.er1 >conftest.err
5993     rm -f conftest.er1
5994     cat conftest.err >&5
5995     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996     (exit $ac_status); } &&
5997     { ac_try='test -z "$ac_cxx_werror_flag"
5998     || test ! -s conftest.err'
5999     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000     (eval $ac_try) 2>&5
6001     ac_status=$?
6002     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003     (exit $ac_status); }; } &&
6004     { ac_try='test -s conftest.$ac_objext'
6005     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006     (eval $ac_try) 2>&5
6007     ac_status=$?
6008     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009     (exit $ac_status); }; }; then
6010     ac_header_compiler=yes
6011     else
6012     echo "$as_me: failed program was:" >&5
6013     sed 's/^/| /' conftest.$ac_ext >&5
6014    
6015     ac_header_compiler=no
6016     fi
6017     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6018     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6019     echo "${ECHO_T}$ac_header_compiler" >&6
6020    
6021     # Is the header present?
6022     echo "$as_me:$LINENO: checking $ac_header presence" >&5
6023     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6024     cat >conftest.$ac_ext <<_ACEOF
6025     /* confdefs.h. */
6026     _ACEOF
6027     cat confdefs.h >>conftest.$ac_ext
6028     cat >>conftest.$ac_ext <<_ACEOF
6029     /* end confdefs.h. */
6030     #include <$ac_header>
6031     _ACEOF
6032     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6033     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6034     ac_status=$?
6035     grep -v '^ *+' conftest.er1 >conftest.err
6036     rm -f conftest.er1
6037     cat conftest.err >&5
6038     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039     (exit $ac_status); } >/dev/null; then
6040     if test -s conftest.err; then
6041     ac_cpp_err=$ac_cxx_preproc_warn_flag
6042     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6043     else
6044     ac_cpp_err=
6045     fi
6046     else
6047     ac_cpp_err=yes
6048     fi
6049     if test -z "$ac_cpp_err"; then
6050     ac_header_preproc=yes
6051     else
6052     echo "$as_me: failed program was:" >&5
6053     sed 's/^/| /' conftest.$ac_ext >&5
6054    
6055     ac_header_preproc=no
6056     fi
6057     rm -f conftest.err conftest.$ac_ext
6058     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6059     echo "${ECHO_T}$ac_header_preproc" >&6
6060    
6061     # So? What about this header?
6062     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6063     yes:no: )
6064     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6065     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6067     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6068     ac_header_preproc=yes
6069     ;;
6070     no:yes:* )
6071     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6072     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6073     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6074     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6075     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6076     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6077     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6078     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6079     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6080     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6081     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6082     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6083     (
6084     cat <<\_ASBOX
6085     ## ------------------------------ ##
6086     ## Report this to gezelter@nd.edu ##
6087     ## ------------------------------ ##
6088     _ASBOX
6089     ) |
6090     sed "s/^/$as_me: WARNING: /" >&2
6091     ;;
6092     esac
6093     echo "$as_me:$LINENO: checking for $ac_header" >&5
6094     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6095     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6096     echo $ECHO_N "(cached) $ECHO_C" >&6
6097     else
6098     eval "$as_ac_Header=\$ac_header_preproc"
6099     fi
6100     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6101     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6102    
6103     fi
6104     if test `eval echo '${'$as_ac_Header'}'` = yes; then
6105     cat >>confdefs.h <<_ACEOF
6106     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6107     _ACEOF
6108    
6109     fi
6110    
6111     done
6112    
6113     ac_ext=c
6114     ac_cpp='$CPP $CPPFLAGS'
6115     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6116     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6117     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6118    
6119    
6120    
6121    
6122     for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h
6123     do
6124     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6125     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6126     echo "$as_me:$LINENO: checking for $ac_header" >&5
6127     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6128     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6129     echo $ECHO_N "(cached) $ECHO_C" >&6
6130     fi
6131     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6132     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6133     else
6134     # Is the header compilable?
6135     echo "$as_me:$LINENO: checking $ac_header usability" >&5
6136     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6137     cat >conftest.$ac_ext <<_ACEOF
6138     /* confdefs.h. */
6139     _ACEOF
6140     cat confdefs.h >>conftest.$ac_ext
6141     cat >>conftest.$ac_ext <<_ACEOF
6142     /* end confdefs.h. */
6143     $ac_includes_default
6144     #include <$ac_header>
6145     _ACEOF
6146     rm -f conftest.$ac_objext
6147     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6148     (eval $ac_compile) 2>conftest.er1
6149     ac_status=$?
6150     grep -v '^ *+' conftest.er1 >conftest.err
6151     rm -f conftest.er1
6152     cat conftest.err >&5
6153     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154     (exit $ac_status); } &&
6155     { ac_try='test -z "$ac_c_werror_flag"
6156     || test ! -s conftest.err'
6157     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158     (eval $ac_try) 2>&5
6159     ac_status=$?
6160     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161     (exit $ac_status); }; } &&
6162     { ac_try='test -s conftest.$ac_objext'
6163     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164     (eval $ac_try) 2>&5
6165     ac_status=$?
6166     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167     (exit $ac_status); }; }; then
6168     ac_header_compiler=yes
6169     else
6170     echo "$as_me: failed program was:" >&5
6171     sed 's/^/| /' conftest.$ac_ext >&5
6172    
6173     ac_header_compiler=no
6174     fi
6175     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6176     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6177     echo "${ECHO_T}$ac_header_compiler" >&6
6178    
6179     # Is the header present?
6180     echo "$as_me:$LINENO: checking $ac_header presence" >&5
6181     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6182     cat >conftest.$ac_ext <<_ACEOF
6183     /* confdefs.h. */
6184     _ACEOF
6185     cat confdefs.h >>conftest.$ac_ext
6186     cat >>conftest.$ac_ext <<_ACEOF
6187     /* end confdefs.h. */
6188     #include <$ac_header>
6189     _ACEOF
6190     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6191     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6192     ac_status=$?
6193     grep -v '^ *+' conftest.er1 >conftest.err
6194     rm -f conftest.er1
6195     cat conftest.err >&5
6196     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197     (exit $ac_status); } >/dev/null; then
6198     if test -s conftest.err; then
6199     ac_cpp_err=$ac_c_preproc_warn_flag
6200     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6201     else
6202     ac_cpp_err=
6203     fi
6204     else
6205     ac_cpp_err=yes
6206     fi
6207     if test -z "$ac_cpp_err"; then
6208     ac_header_preproc=yes
6209     else
6210     echo "$as_me: failed program was:" >&5
6211     sed 's/^/| /' conftest.$ac_ext >&5
6212    
6213     ac_header_preproc=no
6214     fi
6215     rm -f conftest.err conftest.$ac_ext
6216     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6217     echo "${ECHO_T}$ac_header_preproc" >&6
6218    
6219     # So? What about this header?
6220     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6221     yes:no: )
6222     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6223     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6224     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6225     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6226     ac_header_preproc=yes
6227     ;;
6228     no:yes:* )
6229     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6230     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6231     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6232     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6233     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6234     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6235     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6236     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6237     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6238     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6239     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6240     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6241     (
6242     cat <<\_ASBOX
6243     ## ------------------------------ ##
6244     ## Report this to gezelter@nd.edu ##
6245     ## ------------------------------ ##
6246     _ASBOX
6247     ) |
6248     sed "s/^/$as_me: WARNING: /" >&2
6249     ;;
6250     esac
6251     echo "$as_me:$LINENO: checking for $ac_header" >&5
6252     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6253     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6254     echo $ECHO_N "(cached) $ECHO_C" >&6
6255     else
6256     eval "$as_ac_Header=\$ac_header_preproc"
6257     fi
6258     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6259     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6260    
6261     fi
6262     if test `eval echo '${'$as_ac_Header'}'` = yes; then
6263     cat >>confdefs.h <<_ACEOF
6264     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6265     _ACEOF
6266    
6267     fi
6268    
6269     done
6270    
6271    
6272    
6273    
6274    
6275     for ac_header in sys/table.h sys/param.h sys/sysctl.h sys/sytemcfg.h
6276     do
6277     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6278     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6279     echo "$as_me:$LINENO: checking for $ac_header" >&5
6280     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6281     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6282     echo $ECHO_N "(cached) $ECHO_C" >&6
6283     fi
6284     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6285     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6286     else
6287     # Is the header compilable?
6288     echo "$as_me:$LINENO: checking $ac_header usability" >&5
6289     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6290     cat >conftest.$ac_ext <<_ACEOF
6291     /* confdefs.h. */
6292     _ACEOF
6293     cat confdefs.h >>conftest.$ac_ext
6294     cat >>conftest.$ac_ext <<_ACEOF
6295     /* end confdefs.h. */
6296     $ac_includes_default
6297     #include <$ac_header>
6298     _ACEOF
6299     rm -f conftest.$ac_objext
6300     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6301     (eval $ac_compile) 2>conftest.er1
6302     ac_status=$?
6303     grep -v '^ *+' conftest.er1 >conftest.err
6304     rm -f conftest.er1
6305     cat conftest.err >&5
6306     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307     (exit $ac_status); } &&
6308     { ac_try='test -z "$ac_c_werror_flag"
6309     || test ! -s conftest.err'
6310     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311     (eval $ac_try) 2>&5
6312     ac_status=$?
6313     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314     (exit $ac_status); }; } &&
6315     { ac_try='test -s conftest.$ac_objext'
6316     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317     (eval $ac_try) 2>&5
6318     ac_status=$?
6319     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320     (exit $ac_status); }; }; then
6321     ac_header_compiler=yes
6322     else
6323     echo "$as_me: failed program was:" >&5
6324     sed 's/^/| /' conftest.$ac_ext >&5
6325    
6326     ac_header_compiler=no
6327     fi
6328     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6329     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6330     echo "${ECHO_T}$ac_header_compiler" >&6
6331    
6332     # Is the header present?
6333     echo "$as_me:$LINENO: checking $ac_header presence" >&5
6334     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6335     cat >conftest.$ac_ext <<_ACEOF
6336     /* confdefs.h. */
6337     _ACEOF
6338     cat confdefs.h >>conftest.$ac_ext
6339     cat >>conftest.$ac_ext <<_ACEOF
6340     /* end confdefs.h. */
6341     #include <$ac_header>
6342     _ACEOF
6343     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6344     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6345     ac_status=$?
6346     grep -v '^ *+' conftest.er1 >conftest.err
6347     rm -f conftest.er1
6348     cat conftest.err >&5
6349     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350     (exit $ac_status); } >/dev/null; then
6351     if test -s conftest.err; then
6352     ac_cpp_err=$ac_c_preproc_warn_flag
6353     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6354     else
6355     ac_cpp_err=
6356     fi
6357     else
6358     ac_cpp_err=yes
6359     fi
6360     if test -z "$ac_cpp_err"; then
6361     ac_header_preproc=yes
6362     else
6363     echo "$as_me: failed program was:" >&5
6364     sed 's/^/| /' conftest.$ac_ext >&5
6365    
6366     ac_header_preproc=no
6367     fi
6368     rm -f conftest.err conftest.$ac_ext
6369     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6370     echo "${ECHO_T}$ac_header_preproc" >&6
6371    
6372     # So? What about this header?
6373     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6374     yes:no: )
6375     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6376     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6377     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6378     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6379     ac_header_preproc=yes
6380     ;;
6381     no:yes:* )
6382     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6383     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6384     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6385     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6386     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6387     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6388     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6389     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6390     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6391     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6392     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6393     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6394     (
6395     cat <<\_ASBOX
6396     ## ------------------------------ ##
6397     ## Report this to gezelter@nd.edu ##
6398     ## ------------------------------ ##
6399     _ASBOX
6400     ) |
6401     sed "s/^/$as_me: WARNING: /" >&2
6402     ;;
6403     esac
6404     echo "$as_me:$LINENO: checking for $ac_header" >&5
6405     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6406     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6407     echo $ECHO_N "(cached) $ECHO_C" >&6
6408     else
6409     eval "$as_ac_Header=\$ac_header_preproc"
6410     fi
6411     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6412     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6413    
6414     fi
6415     if test `eval echo '${'$as_ac_Header'}'` = yes; then
6416     cat >>confdefs.h <<_ACEOF
6417     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6418     _ACEOF
6419    
6420     fi
6421    
6422     done
6423    
6424    
6425     for ac_header in machine/hal_sysinfo.h
6426     do
6427     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6428     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6429     echo "$as_me:$LINENO: checking for $ac_header" >&5
6430     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6431     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6432     echo $ECHO_N "(cached) $ECHO_C" >&6
6433     fi
6434     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6435     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6436     else
6437     # Is the header compilable?
6438     echo "$as_me:$LINENO: checking $ac_header usability" >&5
6439     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6440     cat >conftest.$ac_ext <<_ACEOF
6441     /* confdefs.h. */
6442     _ACEOF
6443     cat confdefs.h >>conftest.$ac_ext
6444     cat >>conftest.$ac_ext <<_ACEOF
6445     /* end confdefs.h. */
6446     $ac_includes_default
6447     #include <$ac_header>
6448     _ACEOF
6449     rm -f conftest.$ac_objext
6450     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6451     (eval $ac_compile) 2>conftest.er1
6452     ac_status=$?
6453     grep -v '^ *+' conftest.er1 >conftest.err
6454     rm -f conftest.er1
6455     cat conftest.err >&5
6456     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457     (exit $ac_status); } &&
6458     { ac_try='test -z "$ac_c_werror_flag"
6459     || test ! -s conftest.err'
6460     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461     (eval $ac_try) 2>&5
6462     ac_status=$?
6463     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464     (exit $ac_status); }; } &&
6465     { ac_try='test -s conftest.$ac_objext'
6466     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467     (eval $ac_try) 2>&5
6468     ac_status=$?
6469     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470     (exit $ac_status); }; }; then
6471     ac_header_compiler=yes
6472     else
6473     echo "$as_me: failed program was:" >&5
6474     sed 's/^/| /' conftest.$ac_ext >&5
6475    
6476     ac_header_compiler=no
6477     fi
6478     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6479     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6480     echo "${ECHO_T}$ac_header_compiler" >&6
6481    
6482     # Is the header present?
6483     echo "$as_me:$LINENO: checking $ac_header presence" >&5
6484     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6485     cat >conftest.$ac_ext <<_ACEOF
6486     /* confdefs.h. */
6487     _ACEOF
6488     cat confdefs.h >>conftest.$ac_ext
6489     cat >>conftest.$ac_ext <<_ACEOF
6490     /* end confdefs.h. */
6491     #include <$ac_header>
6492     _ACEOF
6493     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6494     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6495     ac_status=$?
6496     grep -v '^ *+' conftest.er1 >conftest.err
6497     rm -f conftest.er1
6498     cat conftest.err >&5
6499     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500     (exit $ac_status); } >/dev/null; then
6501     if test -s conftest.err; then
6502     ac_cpp_err=$ac_c_preproc_warn_flag
6503     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6504     else
6505     ac_cpp_err=
6506     fi
6507     else
6508     ac_cpp_err=yes
6509     fi
6510     if test -z "$ac_cpp_err"; then
6511     ac_header_preproc=yes
6512     else
6513     echo "$as_me: failed program was:" >&5
6514     sed 's/^/| /' conftest.$ac_ext >&5
6515    
6516     ac_header_preproc=no
6517     fi
6518     rm -f conftest.err conftest.$ac_ext
6519     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6520     echo "${ECHO_T}$ac_header_preproc" >&6
6521    
6522     # So? What about this header?
6523     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6524     yes:no: )
6525     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6526     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6528     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6529     ac_header_preproc=yes
6530     ;;
6531     no:yes:* )
6532     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6533     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6534     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6535     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6536     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6537     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6538     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6539     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6541     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6542     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6543     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6544     (
6545     cat <<\_ASBOX
6546     ## ------------------------------ ##
6547     ## Report this to gezelter@nd.edu ##
6548     ## ------------------------------ ##
6549     _ASBOX
6550     ) |
6551     sed "s/^/$as_me: WARNING: /" >&2
6552     ;;
6553     esac
6554     echo "$as_me:$LINENO: checking for $ac_header" >&5
6555     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6556     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6557     echo $ECHO_N "(cached) $ECHO_C" >&6
6558     else
6559     eval "$as_ac_Header=\$ac_header_preproc"
6560     fi
6561     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6562     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6563    
6564     fi
6565     if test `eval echo '${'$as_ac_Header'}'` = yes; then
6566     cat >>confdefs.h <<_ACEOF
6567     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6568     _ACEOF
6569    
6570     fi
6571    
6572     done
6573    
6574    
6575    
6576    
6577    
6578    
6579 tim 1998 for ac_func in pstat_getstatic sysmp getsysinfo sysctl table
6580     do
6581 gezelter 2081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6582     echo "$as_me:$LINENO: checking for $ac_func" >&5
6583 tim 1998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6584 gezelter 2081 if eval "test \"\${$as_ac_var+set}\" = set"; then
6585 tim 1998 echo $ECHO_N "(cached) $ECHO_C" >&6
6586     else
6587     cat >conftest.$ac_ext <<_ACEOF
6588 gezelter 2081 /* confdefs.h. */
6589     _ACEOF
6590     cat confdefs.h >>conftest.$ac_ext
6591     cat >>conftest.$ac_ext <<_ACEOF
6592     /* end confdefs.h. */
6593     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6594     For example, HP-UX 11i <limits.h> declares gettimeofday. */
6595     #define $ac_func innocuous_$ac_func
6596    
6597 tim 1998 /* System header to define __stub macros and hopefully few prototypes,
6598 gezelter 2081 which can conflict with char $ac_func (); below.
6599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6600     <limits.h> exists even on freestanding compilers. */
6601    
6602     #ifdef __STDC__
6603     # include <limits.h>
6604     #else
6605     # include <assert.h>
6606     #endif
6607    
6608     #undef $ac_func
6609    
6610 tim 1998 /* Override any gcc2 internal prototype to avoid an error. */
6611     #ifdef __cplusplus
6612     extern "C"
6613 gezelter 2081 {
6614 tim 1998 #endif
6615     /* We use char because int might match the return type of a gcc2
6616     builtin and then its argument prototype would still apply. */
6617     char $ac_func ();
6618     /* The GNU C library defines this for functions which it implements
6619     to always fail with ENOSYS. Some functions are actually named
6620     something starting with __ and the normal name is an alias. */
6621     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6622     choke me
6623     #else
6624 gezelter 2081 char (*f) () = $ac_func;
6625 tim 1998 #endif
6626 gezelter 2081 #ifdef __cplusplus
6627     }
6628     #endif
6629 tim 1998
6630 gezelter 2081 int
6631     main ()
6632     {
6633     return f != $ac_func;
6634 tim 1998 ;
6635     return 0;
6636     }
6637     _ACEOF
6638     rm -f conftest.$ac_objext conftest$ac_exeext
6639 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6640     (eval $ac_link) 2>conftest.er1
6641 tim 1998 ac_status=$?
6642 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
6643     rm -f conftest.er1
6644     cat conftest.err >&5
6645     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 tim 1998 (exit $ac_status); } &&
6647 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
6648     || test ! -s conftest.err'
6649     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650 tim 1998 (eval $ac_try) 2>&5
6651     ac_status=$?
6652 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653     (exit $ac_status); }; } &&
6654     { ac_try='test -s conftest$ac_exeext'
6655     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656     (eval $ac_try) 2>&5
6657     ac_status=$?
6658     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 tim 1998 (exit $ac_status); }; }; then
6660 gezelter 2081 eval "$as_ac_var=yes"
6661 tim 1998 else
6662     echo "$as_me: failed program was:" >&5
6663 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
6664    
6665     eval "$as_ac_var=no"
6666 tim 1998 fi
6667 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
6668     conftest$ac_exeext conftest.$ac_ext
6669 tim 1998 fi
6670 gezelter 2081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6671     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6672     if test `eval echo '${'$as_ac_var'}'` = yes; then
6673     cat >>confdefs.h <<_ACEOF
6674     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6675     _ACEOF
6676 tim 1998
6677     fi
6678     done
6679    
6680     # special check for _system_configuration because AIX <4.3.2 do not
6681     # contain the `physmem' member.
6682 gezelter 2081 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
6683 tim 1998 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
6684     cat >conftest.$ac_ext <<_ACEOF
6685 gezelter 2081 /* confdefs.h. */
6686     _ACEOF
6687     cat confdefs.h >>conftest.$ac_ext
6688     cat >>conftest.$ac_ext <<_ACEOF
6689     /* end confdefs.h. */
6690 tim 1998 #include <sys/systemcfg.h>
6691     int
6692     main ()
6693     {
6694     double x = _system_configuration.physmem;
6695     ;
6696     return 0;
6697     }
6698     _ACEOF
6699     rm -f conftest.$ac_objext
6700 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6701     (eval $ac_compile) 2>conftest.er1
6702 tim 1998 ac_status=$?
6703 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
6704     rm -f conftest.er1
6705     cat conftest.err >&5
6706     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 tim 1998 (exit $ac_status); } &&
6708 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
6709     || test ! -s conftest.err'
6710     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 tim 1998 (eval $ac_try) 2>&5
6712     ac_status=$?
6713 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714     (exit $ac_status); }; } &&
6715     { ac_try='test -s conftest.$ac_objext'
6716     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717     (eval $ac_try) 2>&5
6718     ac_status=$?
6719     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 tim 1998 (exit $ac_status); }; }; then
6721 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
6722 tim 1998 echo "${ECHO_T}yes" >&6
6723    
6724 gezelter 2081 cat >>confdefs.h <<\_ACEOF
6725 tim 1998 #define HAVE__SYSTEM_CONFIGURATION 1
6726 gezelter 2081 _ACEOF
6727 tim 1998
6728     else
6729     echo "$as_me: failed program was:" >&5
6730 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
6731    
6732     echo "$as_me:$LINENO: result: no" >&5
6733 tim 1998 echo "${ECHO_T}no" >&6
6734     fi
6735 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6736 gezelter 2453 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6737     echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6738     if test "${ac_cv_header_time+set}" = set; then
6739     echo $ECHO_N "(cached) $ECHO_C" >&6
6740     else
6741     cat >conftest.$ac_ext <<_ACEOF
6742     /* confdefs.h. */
6743     _ACEOF
6744     cat confdefs.h >>conftest.$ac_ext
6745     cat >>conftest.$ac_ext <<_ACEOF
6746     /* end confdefs.h. */
6747     #include <sys/types.h>
6748     #include <sys/time.h>
6749     #include <time.h>
6750 tim 1998
6751 gezelter 2453 int
6752     main ()
6753     {
6754     if ((struct tm *) 0)
6755     return 0;
6756     ;
6757     return 0;
6758     }
6759     _ACEOF
6760     rm -f conftest.$ac_objext
6761     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6762     (eval $ac_compile) 2>conftest.er1
6763     ac_status=$?
6764     grep -v '^ *+' conftest.er1 >conftest.err
6765     rm -f conftest.er1
6766     cat conftest.err >&5
6767     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768     (exit $ac_status); } &&
6769     { ac_try='test -z "$ac_c_werror_flag"
6770     || test ! -s conftest.err'
6771     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772     (eval $ac_try) 2>&5
6773     ac_status=$?
6774     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775     (exit $ac_status); }; } &&
6776     { ac_try='test -s conftest.$ac_objext'
6777     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778     (eval $ac_try) 2>&5
6779     ac_status=$?
6780     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781     (exit $ac_status); }; }; then
6782     ac_cv_header_time=yes
6783     else
6784     echo "$as_me: failed program was:" >&5
6785     sed 's/^/| /' conftest.$ac_ext >&5
6786    
6787     ac_cv_header_time=no
6788     fi
6789     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6790     fi
6791     echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6792     echo "${ECHO_T}$ac_cv_header_time" >&6
6793     if test $ac_cv_header_time = yes; then
6794    
6795     cat >>confdefs.h <<\_ACEOF
6796     #define TIME_WITH_SYS_TIME 1
6797     _ACEOF
6798    
6799     fi
6800    
6801    
6802     echo "$as_me:$LINENO: checking for clock_t" >&5
6803     echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
6804     if test "${ac_cv_type_clock_t+set}" = set; then
6805     echo $ECHO_N "(cached) $ECHO_C" >&6
6806     else
6807     cat >conftest.$ac_ext <<_ACEOF
6808     /* confdefs.h. */
6809     _ACEOF
6810     cat confdefs.h >>conftest.$ac_ext
6811     cat >>conftest.$ac_ext <<_ACEOF
6812     /* end confdefs.h. */
6813     $ac_includes_default
6814     int
6815     main ()
6816     {
6817     if ((clock_t *) 0)
6818     return 0;
6819     if (sizeof (clock_t))
6820     return 0;
6821     ;
6822     return 0;
6823     }
6824     _ACEOF
6825     rm -f conftest.$ac_objext
6826     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6827     (eval $ac_compile) 2>conftest.er1
6828     ac_status=$?
6829     grep -v '^ *+' conftest.er1 >conftest.err
6830     rm -f conftest.er1
6831     cat conftest.err >&5
6832     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833     (exit $ac_status); } &&
6834     { ac_try='test -z "$ac_c_werror_flag"
6835     || test ! -s conftest.err'
6836     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837     (eval $ac_try) 2>&5
6838     ac_status=$?
6839     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840     (exit $ac_status); }; } &&
6841     { ac_try='test -s conftest.$ac_objext'
6842     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843     (eval $ac_try) 2>&5
6844     ac_status=$?
6845     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846     (exit $ac_status); }; }; then
6847     ac_cv_type_clock_t=yes
6848     else
6849     echo "$as_me: failed program was:" >&5
6850     sed 's/^/| /' conftest.$ac_ext >&5
6851    
6852     ac_cv_type_clock_t=no
6853     fi
6854     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6855     fi
6856     echo "$as_me:$LINENO: result: $ac_cv_type_clock_t" >&5
6857     echo "${ECHO_T}$ac_cv_type_clock_t" >&6
6858     if test $ac_cv_type_clock_t = yes; then
6859    
6860     cat >>confdefs.h <<_ACEOF
6861     #define HAVE_CLOCK_T 1
6862     _ACEOF
6863    
6864    
6865     fi
6866    
6867     echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6868     echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6869     if test "${ac_cv_c_const+set}" = set; then
6870     echo $ECHO_N "(cached) $ECHO_C" >&6
6871     else
6872     cat >conftest.$ac_ext <<_ACEOF
6873     /* confdefs.h. */
6874     _ACEOF
6875     cat confdefs.h >>conftest.$ac_ext
6876     cat >>conftest.$ac_ext <<_ACEOF
6877     /* end confdefs.h. */
6878    
6879     int
6880     main ()
6881     {
6882     /* FIXME: Include the comments suggested by Paul. */
6883     #ifndef __cplusplus
6884     /* Ultrix mips cc rejects this. */
6885     typedef int charset[2];
6886     const charset x;
6887     /* SunOS 4.1.1 cc rejects this. */
6888     char const *const *ccp;
6889     char **p;
6890     /* NEC SVR4.0.2 mips cc rejects this. */
6891     struct point {int x, y;};
6892     static struct point const zero = {0,0};
6893     /* AIX XL C 1.02.0.0 rejects this.
6894     It does not let you subtract one const X* pointer from another in
6895     an arm of an if-expression whose if-part is not a constant
6896     expression */
6897     const char *g = "string";
6898     ccp = &g + (g ? g-g : 0);
6899     /* HPUX 7.0 cc rejects these. */
6900     ++ccp;
6901     p = (char**) ccp;
6902     ccp = (char const *const *) p;
6903     { /* SCO 3.2v4 cc rejects this. */
6904     char *t;
6905     char const *s = 0 ? (char *) 0 : (char const *) 0;
6906    
6907     *t++ = 0;
6908     }
6909     { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6910     int x[] = {25, 17};
6911     const int *foo = &x[0];
6912     ++foo;
6913     }
6914     { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6915     typedef const int *iptr;
6916     iptr p = 0;
6917     ++p;
6918     }
6919     { /* AIX XL C 1.02.0.0 rejects this saying
6920     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6921     struct s { int j; const int *ap[3]; };
6922     struct s *b; b->j = 5;
6923     }
6924     { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6925     const int foo = 10;
6926     }
6927     #endif
6928    
6929     ;
6930     return 0;
6931     }
6932     _ACEOF
6933     rm -f conftest.$ac_objext
6934     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6935     (eval $ac_compile) 2>conftest.er1
6936     ac_status=$?
6937     grep -v '^ *+' conftest.er1 >conftest.err
6938     rm -f conftest.er1
6939     cat conftest.err >&5
6940     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941     (exit $ac_status); } &&
6942     { ac_try='test -z "$ac_c_werror_flag"
6943     || test ! -s conftest.err'
6944     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945     (eval $ac_try) 2>&5
6946     ac_status=$?
6947     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948     (exit $ac_status); }; } &&
6949     { ac_try='test -s conftest.$ac_objext'
6950     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951     (eval $ac_try) 2>&5
6952     ac_status=$?
6953     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954     (exit $ac_status); }; }; then
6955     ac_cv_c_const=yes
6956     else
6957     echo "$as_me: failed program was:" >&5
6958     sed 's/^/| /' conftest.$ac_ext >&5
6959    
6960     ac_cv_c_const=no
6961     fi
6962     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6963     fi
6964     echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6965     echo "${ECHO_T}$ac_cv_c_const" >&6
6966     if test $ac_cv_c_const = no; then
6967    
6968     cat >>confdefs.h <<\_ACEOF
6969     #define const
6970     _ACEOF
6971    
6972     fi
6973    
6974     echo "$as_me:$LINENO: checking for inline" >&5
6975     echo $ECHO_N "checking for inline... $ECHO_C" >&6
6976     if test "${ac_cv_c_inline+set}" = set; then
6977     echo $ECHO_N "(cached) $ECHO_C" >&6
6978     else
6979     ac_cv_c_inline=no
6980     for ac_kw in inline __inline__ __inline; do
6981     cat >conftest.$ac_ext <<_ACEOF
6982     /* confdefs.h. */
6983     _ACEOF
6984     cat confdefs.h >>conftest.$ac_ext
6985     cat >>conftest.$ac_ext <<_ACEOF
6986     /* end confdefs.h. */
6987     #ifndef __cplusplus
6988     typedef int foo_t;
6989     static $ac_kw foo_t static_foo () {return 0; }
6990     $ac_kw foo_t foo () {return 0; }
6991     #endif
6992    
6993     _ACEOF
6994     rm -f conftest.$ac_objext
6995     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6996     (eval $ac_compile) 2>conftest.er1
6997     ac_status=$?
6998     grep -v '^ *+' conftest.er1 >conftest.err
6999     rm -f conftest.er1
7000     cat conftest.err >&5
7001     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002     (exit $ac_status); } &&
7003     { ac_try='test -z "$ac_c_werror_flag"
7004     || test ! -s conftest.err'
7005     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006     (eval $ac_try) 2>&5
7007     ac_status=$?
7008     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009     (exit $ac_status); }; } &&
7010     { ac_try='test -s conftest.$ac_objext'
7011     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012     (eval $ac_try) 2>&5
7013     ac_status=$?
7014     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015     (exit $ac_status); }; }; then
7016     ac_cv_c_inline=$ac_kw; break
7017     else
7018     echo "$as_me: failed program was:" >&5
7019     sed 's/^/| /' conftest.$ac_ext >&5
7020    
7021     fi
7022     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7023     done
7024    
7025     fi
7026     echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7027     echo "${ECHO_T}$ac_cv_c_inline" >&6
7028    
7029    
7030     case $ac_cv_c_inline in
7031     inline | yes) ;;
7032     *)
7033     case $ac_cv_c_inline in
7034     no) ac_val=;;
7035     *) ac_val=$ac_cv_c_inline;;
7036     esac
7037     cat >>confdefs.h <<_ACEOF
7038     #ifndef __cplusplus
7039     #define inline $ac_val
7040     #endif
7041     _ACEOF
7042     ;;
7043     esac
7044    
7045    
7046    
7047    
7048     for ac_func in rint sranddev
7049     do
7050     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7051     echo "$as_me:$LINENO: checking for $ac_func" >&5
7052     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7053     if eval "test \"\${$as_ac_var+set}\" = set"; then
7054     echo $ECHO_N "(cached) $ECHO_C" >&6
7055     else
7056     cat >conftest.$ac_ext <<_ACEOF
7057     /* confdefs.h. */
7058     _ACEOF
7059     cat confdefs.h >>conftest.$ac_ext
7060     cat >>conftest.$ac_ext <<_ACEOF
7061     /* end confdefs.h. */
7062     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7063     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7064     #define $ac_func innocuous_$ac_func
7065    
7066     /* System header to define __stub macros and hopefully few prototypes,
7067     which can conflict with char $ac_func (); below.
7068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7069     <limits.h> exists even on freestanding compilers. */
7070    
7071     #ifdef __STDC__
7072     # include <limits.h>
7073     #else
7074     # include <assert.h>
7075     #endif
7076    
7077     #undef $ac_func
7078    
7079     /* Override any gcc2 internal prototype to avoid an error. */
7080     #ifdef __cplusplus
7081     extern "C"
7082     {
7083     #endif
7084     /* We use char because int might match the return type of a gcc2
7085     builtin and then its argument prototype would still apply. */
7086     char $ac_func ();
7087     /* The GNU C library defines this for functions which it implements
7088     to always fail with ENOSYS. Some functions are actually named
7089     something starting with __ and the normal name is an alias. */
7090     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7091     choke me
7092     #else
7093     char (*f) () = $ac_func;
7094     #endif
7095     #ifdef __cplusplus
7096     }
7097     #endif
7098    
7099     int
7100     main ()
7101     {
7102     return f != $ac_func;
7103     ;
7104     return 0;
7105     }
7106     _ACEOF
7107     rm -f conftest.$ac_objext conftest$ac_exeext
7108     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7109     (eval $ac_link) 2>conftest.er1
7110     ac_status=$?
7111     grep -v '^ *+' conftest.er1 >conftest.err
7112     rm -f conftest.er1
7113     cat conftest.err >&5
7114     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115     (exit $ac_status); } &&
7116     { ac_try='test -z "$ac_c_werror_flag"
7117     || test ! -s conftest.err'
7118     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119     (eval $ac_try) 2>&5
7120     ac_status=$?
7121     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122     (exit $ac_status); }; } &&
7123     { ac_try='test -s conftest$ac_exeext'
7124     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125     (eval $ac_try) 2>&5
7126     ac_status=$?
7127     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128     (exit $ac_status); }; }; then
7129     eval "$as_ac_var=yes"
7130     else
7131     echo "$as_me: failed program was:" >&5
7132     sed 's/^/| /' conftest.$ac_ext >&5
7133    
7134     eval "$as_ac_var=no"
7135     fi
7136     rm -f conftest.err conftest.$ac_objext \
7137     conftest$ac_exeext conftest.$ac_ext
7138     fi
7139     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7140     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7141     if test `eval echo '${'$as_ac_var'}'` = yes; then
7142     cat >>confdefs.h <<_ACEOF
7143     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7144     _ACEOF
7145    
7146     fi
7147     done
7148    
7149    
7150 gezelter 1490 # clean out junk possibly left behind by a previous configuration
7151 gezelter 1947 rm -f src/getopt.h
7152 gezelter 1490 # Check for getopt_long support
7153    
7154     for ac_header in getopt.h
7155     do
7156 gezelter 2081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7157     if eval "test \"\${$as_ac_Header+set}\" = set"; then
7158     echo "$as_me:$LINENO: checking for $ac_header" >&5
7159 gezelter 1490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7160 gezelter 2081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7161 gezelter 1490 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 gezelter 2081 fi
7163     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7164     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7165 gezelter 1490 else
7166 gezelter 2081 # Is the header compilable?
7167     echo "$as_me:$LINENO: checking $ac_header usability" >&5
7168     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7169     cat >conftest.$ac_ext <<_ACEOF
7170     /* confdefs.h. */
7171     _ACEOF
7172     cat confdefs.h >>conftest.$ac_ext
7173     cat >>conftest.$ac_ext <<_ACEOF
7174     /* end confdefs.h. */
7175     $ac_includes_default
7176 gezelter 1490 #include <$ac_header>
7177     _ACEOF
7178 gezelter 2081 rm -f conftest.$ac_objext
7179     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7180     (eval $ac_compile) 2>conftest.er1
7181     ac_status=$?
7182     grep -v '^ *+' conftest.er1 >conftest.err
7183     rm -f conftest.er1
7184     cat conftest.err >&5
7185     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186     (exit $ac_status); } &&
7187     { ac_try='test -z "$ac_c_werror_flag"
7188     || test ! -s conftest.err'
7189     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190     (eval $ac_try) 2>&5
7191     ac_status=$?
7192     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193     (exit $ac_status); }; } &&
7194     { ac_try='test -s conftest.$ac_objext'
7195     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196     (eval $ac_try) 2>&5
7197     ac_status=$?
7198     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199     (exit $ac_status); }; }; then
7200     ac_header_compiler=yes
7201     else
7202     echo "$as_me: failed program was:" >&5
7203     sed 's/^/| /' conftest.$ac_ext >&5
7204    
7205     ac_header_compiler=no
7206     fi
7207     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7208     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7209     echo "${ECHO_T}$ac_header_compiler" >&6
7210    
7211     # Is the header present?
7212     echo "$as_me:$LINENO: checking $ac_header presence" >&5
7213     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7214     cat >conftest.$ac_ext <<_ACEOF
7215     /* confdefs.h. */
7216     _ACEOF
7217     cat confdefs.h >>conftest.$ac_ext
7218     cat >>conftest.$ac_ext <<_ACEOF
7219     /* end confdefs.h. */
7220     #include <$ac_header>
7221     _ACEOF
7222     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7223 gezelter 1490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7224     ac_status=$?
7225 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
7226 gezelter 1490 rm -f conftest.er1
7227     cat conftest.err >&5
7228 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 gezelter 1490 (exit $ac_status); } >/dev/null; then
7230     if test -s conftest.err; then
7231     ac_cpp_err=$ac_c_preproc_warn_flag
7232 gezelter 2081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7233 gezelter 1490 else
7234     ac_cpp_err=
7235     fi
7236     else
7237     ac_cpp_err=yes
7238     fi
7239     if test -z "$ac_cpp_err"; then
7240 gezelter 2081 ac_header_preproc=yes
7241 gezelter 1490 else
7242     echo "$as_me: failed program was:" >&5
7243 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
7244    
7245     ac_header_preproc=no
7246 gezelter 1490 fi
7247     rm -f conftest.err conftest.$ac_ext
7248 gezelter 2081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7249     echo "${ECHO_T}$ac_header_preproc" >&6
7250    
7251     # So? What about this header?
7252     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7253     yes:no: )
7254     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7255     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7256     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7257     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7258     ac_header_preproc=yes
7259     ;;
7260     no:yes:* )
7261     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7262     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7263     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7264     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7265     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7266     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7267     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7268     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7269     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7270     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7271     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7272     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7273     (
7274     cat <<\_ASBOX
7275     ## ------------------------------ ##
7276     ## Report this to gezelter@nd.edu ##
7277     ## ------------------------------ ##
7278     _ASBOX
7279     ) |
7280     sed "s/^/$as_me: WARNING: /" >&2
7281     ;;
7282     esac
7283     echo "$as_me:$LINENO: checking for $ac_header" >&5
7284     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7285     if eval "test \"\${$as_ac_Header+set}\" = set"; then
7286     echo $ECHO_N "(cached) $ECHO_C" >&6
7287     else
7288     eval "$as_ac_Header=\$ac_header_preproc"
7289 gezelter 1490 fi
7290 gezelter 2081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7291     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7292 gezelter 1490
7293     fi
7294 gezelter 2081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7295     cat >>confdefs.h <<_ACEOF
7296     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7297     _ACEOF
7298    
7299     fi
7300    
7301 gezelter 1490 done
7302    
7303 gezelter 2081
7304 gezelter 1490 for ac_func in getopt_long
7305     do
7306 gezelter 2081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7307     echo "$as_me:$LINENO: checking for $ac_func" >&5
7308 gezelter 1490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7309 gezelter 2081 if eval "test \"\${$as_ac_var+set}\" = set"; then
7310 gezelter 1490 echo $ECHO_N "(cached) $ECHO_C" >&6
7311     else
7312     cat >conftest.$ac_ext <<_ACEOF
7313 gezelter 2081 /* confdefs.h. */
7314     _ACEOF
7315     cat confdefs.h >>conftest.$ac_ext
7316     cat >>conftest.$ac_ext <<_ACEOF
7317     /* end confdefs.h. */
7318     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7319     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7320     #define $ac_func innocuous_$ac_func
7321    
7322 gezelter 1490 /* System header to define __stub macros and hopefully few prototypes,
7323 gezelter 2081 which can conflict with char $ac_func (); below.
7324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7325     <limits.h> exists even on freestanding compilers. */
7326    
7327     #ifdef __STDC__
7328     # include <limits.h>
7329     #else
7330     # include <assert.h>
7331     #endif
7332    
7333     #undef $ac_func
7334    
7335 gezelter 1490 /* Override any gcc2 internal prototype to avoid an error. */
7336     #ifdef __cplusplus
7337     extern "C"
7338 gezelter 2081 {
7339 gezelter 1490 #endif
7340     /* We use char because int might match the return type of a gcc2
7341     builtin and then its argument prototype would still apply. */
7342     char $ac_func ();
7343     /* The GNU C library defines this for functions which it implements
7344     to always fail with ENOSYS. Some functions are actually named
7345     something starting with __ and the normal name is an alias. */
7346     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7347     choke me
7348     #else
7349 gezelter 2081 char (*f) () = $ac_func;
7350 gezelter 1490 #endif
7351 gezelter 2081 #ifdef __cplusplus
7352     }
7353     #endif
7354 gezelter 1490
7355 gezelter 2081 int
7356     main ()
7357     {
7358     return f != $ac_func;
7359 gezelter 1490 ;
7360     return 0;
7361     }
7362     _ACEOF
7363     rm -f conftest.$ac_objext conftest$ac_exeext
7364 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7365     (eval $ac_link) 2>conftest.er1
7366 gezelter 1490 ac_status=$?
7367 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
7368     rm -f conftest.er1
7369     cat conftest.err >&5
7370     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 gezelter 1490 (exit $ac_status); } &&
7372 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
7373     || test ! -s conftest.err'
7374     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375 gezelter 1490 (eval $ac_try) 2>&5
7376     ac_status=$?
7377 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378     (exit $ac_status); }; } &&
7379     { ac_try='test -s conftest$ac_exeext'
7380     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381     (eval $ac_try) 2>&5
7382     ac_status=$?
7383     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 gezelter 1490 (exit $ac_status); }; }; then
7385 gezelter 2081 eval "$as_ac_var=yes"
7386 gezelter 1490 else
7387     echo "$as_me: failed program was:" >&5
7388 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
7389    
7390     eval "$as_ac_var=no"
7391 gezelter 1490 fi
7392 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
7393     conftest$ac_exeext conftest.$ac_ext
7394 gezelter 1490 fi
7395 gezelter 2081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7396     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7397     if test `eval echo '${'$as_ac_var'}'` = yes; then
7398     cat >>confdefs.h <<_ACEOF
7399     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7400     _ACEOF
7401 gezelter 1490
7402     else
7403     # FreeBSD has a gnugetopt library for this
7404 gezelter 2081 echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
7405 gezelter 1490 echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
7406     if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
7407     echo $ECHO_N "(cached) $ECHO_C" >&6
7408     else
7409     ac_check_lib_save_LIBS=$LIBS
7410     LIBS="-lgnugetopt $LIBS"
7411     cat >conftest.$ac_ext <<_ACEOF
7412 gezelter 2081 /* confdefs.h. */
7413     _ACEOF
7414     cat confdefs.h >>conftest.$ac_ext
7415     cat >>conftest.$ac_ext <<_ACEOF
7416     /* end confdefs.h. */
7417 gezelter 1490
7418     /* Override any gcc2 internal prototype to avoid an error. */
7419     #ifdef __cplusplus
7420     extern "C"
7421     #endif
7422     /* We use char because int might match the return type of a gcc2
7423     builtin and then its argument prototype would still apply. */
7424     char getopt_long ();
7425     int
7426     main ()
7427     {
7428     getopt_long ();
7429     ;
7430     return 0;
7431     }
7432     _ACEOF
7433     rm -f conftest.$ac_objext conftest$ac_exeext
7434 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7435     (eval $ac_link) 2>conftest.er1
7436 gezelter 1490 ac_status=$?
7437 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
7438     rm -f conftest.er1
7439     cat conftest.err >&5
7440     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 gezelter 1490 (exit $ac_status); } &&
7442 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
7443     || test ! -s conftest.err'
7444     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 gezelter 1490 (eval $ac_try) 2>&5
7446     ac_status=$?
7447 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448     (exit $ac_status); }; } &&
7449     { ac_try='test -s conftest$ac_exeext'
7450     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451     (eval $ac_try) 2>&5
7452     ac_status=$?
7453     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 gezelter 1490 (exit $ac_status); }; }; then
7455     ac_cv_lib_gnugetopt_getopt_long=yes
7456     else
7457     echo "$as_me: failed program was:" >&5
7458 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
7459    
7460 gezelter 1490 ac_cv_lib_gnugetopt_getopt_long=no
7461     fi
7462 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
7463     conftest$ac_exeext conftest.$ac_ext
7464 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
7465     fi
7466 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
7467 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
7468     if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
7469 gezelter 2081 cat >>confdefs.h <<\_ACEOF
7470 gezelter 1490 #define HAVE_GETOPT_LONG 1
7471 gezelter 2081 _ACEOF
7472 gezelter 1490
7473     else
7474     # use the GNU replacement
7475 gezelter 2081 case $LIBOBJS in
7476     "getopt.$ac_objext" | \
7477     *" getopt.$ac_objext" | \
7478     "getopt.$ac_objext "* | \
7479     *" getopt.$ac_objext "* ) ;;
7480     *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
7481     esac
7482 gezelter 2026
7483 gezelter 2081 case $LIBOBJS in
7484     "getopt1.$ac_objext" | \
7485     *" getopt1.$ac_objext" | \
7486     "getopt1.$ac_objext "* | \
7487     *" getopt1.$ac_objext "* ) ;;
7488     *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
7489     esac
7490    
7491     ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h"
7492    
7493 gezelter 1490 fi
7494    
7495     fi
7496     done
7497    
7498 gezelter 2081
7499    
7500 gezelter 1490 case $debug in
7501     1)
7502     ;;
7503     *)
7504    
7505 gezelter 2081
7506    
7507    
7508    
7509    
7510     echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
7511 gezelter 1490 echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6
7512     if test "${ac_cv_prog_really_gcc+set}" = set; then
7513     echo $ECHO_N "(cached) $ECHO_C" >&6
7514     else
7515    
7516     cat > conftest.c <<EOF
7517     #ifdef __GNUC__
7518     #ifndef __INTEL_COMPILER
7519     yes;
7520     #endif
7521     #endif
7522     EOF
7523     if { ac_try='${CC-cc} -E conftest.c'
7524 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 gezelter 1490 (eval $ac_try) 2>&5
7526     ac_status=$?
7527 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 gezelter 1490 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
7529     ac_cv_prog_really_gcc=yes
7530     else
7531     ac_cv_prog_really_gcc=no
7532     fi
7533    
7534     fi
7535 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
7536 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
7537     if test "$ac_cv_prog_really_gcc" = yes; then
7538     :
7539    
7540     else
7541     :
7542    
7543     fi
7544    
7545 gezelter 2081
7546 gezelter 1490 # Try to determine "good" native compiler flags if none specified on command
7547     # line
7548     if test "$ac_test_CFLAGS" != "set"; then
7549     CFLAGS=""
7550     case "${host_cpu}-${host_os}" in
7551    
7552     *linux*) if test "$CC" = icc; then
7553     CFLAGS="-O"
7554     fi;;
7555     sparc-solaris2*) if test "$CC" = cc; then
7556     CFLAGS="-native -fast -xO5 -dalign"
7557     fi;;
7558    
7559     alpha*-osf*) if test "$CC" = cc; then
7560     CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
7561     fi;;
7562    
7563     hppa*-hpux*) if test "$CC" = cc; then
7564     CFLAGS="-Ae +O3 +Oall"
7565     fi;;
7566    
7567     rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then
7568     CFLAGS="-O3 -qtune=auto -qansialias -w"
7569     fi;;
7570     powerpc*-aix*)
7571     if test "$CC" = cc -o "$CC" = xlc; then
7572     CFLAGS="-O3 -qtune=auto -qansialias -w"
7573     echo "*******************************************************"
7574     echo "* You have AIX on an unknown powerpc system. It is *"
7575     echo "* recommended that you use *"
7576     echo "* *"
7577     echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
7578     echo "* ^^^ *"
7579     echo "* where xxx is 601, 603, 604, or whatever kind of *"
7580     echo "* PowerPC CPU you have. For more info, man cc. *"
7581     echo "*******************************************************"
7582     fi;;
7583     *darwin*)
7584     if test "$CC" = xlc -o "$CC" = cc; then
7585 chuckv 1579 CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
7586 gezelter 1490 fi;;
7587     esac
7588    
7589     # use default flags for gcc on all systems
7590     if test $ac_cv_prog_really_gcc = yes; then
7591     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
7592     fi
7593    
7594     # test for gcc-specific flags:
7595     if test $ac_cv_prog_really_gcc = yes; then
7596     # -malign-double for x86 systems
7597    
7598 gezelter 2081
7599     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
7600 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
7601     if test "${ac_align_double+set}" = set; then
7602     echo $ECHO_N "(cached) $ECHO_C" >&6
7603     else
7604     echo 'void f(){}' > conftest.c
7605     if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
7606     ac_align_double=yes
7607     else
7608     ac_align_double=no
7609     fi
7610     rm -f conftest*
7611    
7612     fi
7613 gezelter 2081 echo "$as_me:$LINENO: result: $ac_align_double" >&5
7614 gezelter 1490 echo "${ECHO_T}$ac_align_double" >&6
7615     if test "$ac_align_double" = yes; then
7616     :
7617     CFLAGS="$CFLAGS -malign-double"
7618     else
7619     :
7620    
7621     fi
7622    
7623     # -fstrict-aliasing for gcc-2.95+
7624    
7625 gezelter 2081
7626     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
7627 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
7628     if test "${ac_fstrict_aliasing+set}" = set; then
7629     echo $ECHO_N "(cached) $ECHO_C" >&6
7630     else
7631     echo 'void f(){}' > conftest.c
7632     if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
7633     ac_fstrict_aliasing=yes
7634     else
7635     ac_fstrict_aliasing=no
7636     fi
7637     rm -f conftest*
7638    
7639     fi
7640 gezelter 2081 echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
7641 gezelter 1490 echo "${ECHO_T}$ac_fstrict_aliasing" >&6
7642     if test "$ac_fstrict_aliasing" = yes; then
7643     :
7644     CFLAGS="$CFLAGS -fstrict-aliasing"
7645     else
7646     :
7647    
7648     fi
7649    
7650     fi
7651    
7652     CPU_FLAGS=""
7653     if test $ac_cv_prog_really_gcc = yes; then
7654     case "${host_cpu}" in
7655     i586*)
7656    
7657 gezelter 2081 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
7658 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
7659     if test "${ac_cpu_pentium+set}" = set; then
7660     echo $ECHO_N "(cached) $ECHO_C" >&6
7661     else
7662     echo 'void f(){}' > conftest.c
7663     if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
7664     ac_cpu_pentium=yes
7665     else
7666     ac_cpu_pentium=no
7667     fi
7668     rm -f conftest*
7669    
7670     fi
7671 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
7672 gezelter 1490 echo "${ECHO_T}$ac_cpu_pentium" >&6
7673     if test "$ac_cpu_pentium" = yes; then
7674     :
7675     CPU_FLAGS=-mcpu=pentium
7676     else
7677     :
7678    
7679 gezelter 2081
7680     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
7681 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
7682     if test "${ac_pentium+set}" = set; then
7683     echo $ECHO_N "(cached) $ECHO_C" >&6
7684     else
7685     echo 'void f(){}' > conftest.c
7686     if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
7687     ac_pentium=yes
7688     else
7689     ac_pentium=no
7690     fi
7691     rm -f conftest*
7692    
7693     fi
7694 gezelter 2081 echo "$as_me:$LINENO: result: $ac_pentium" >&5
7695 gezelter 1490 echo "${ECHO_T}$ac_pentium" >&6
7696     if test "$ac_pentium" = yes; then
7697     :
7698     CPU_FLAGS=-mpentium
7699     else
7700     :
7701    
7702     fi
7703    
7704     fi
7705    
7706     ;;
7707     i686*)
7708    
7709 gezelter 2081 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
7710 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
7711     if test "${ac_cpu_pentiumpro+set}" = set; then
7712     echo $ECHO_N "(cached) $ECHO_C" >&6
7713     else
7714     echo 'void f(){}' > conftest.c
7715     if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
7716     ac_cpu_pentiumpro=yes
7717     else
7718     ac_cpu_pentiumpro=no
7719     fi
7720     rm -f conftest*
7721    
7722     fi
7723 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
7724 gezelter 1490 echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
7725     if test "$ac_cpu_pentiumpro" = yes; then
7726     :
7727     CPU_FLAGS=-mcpu=pentiumpro
7728     else
7729     :
7730    
7731 gezelter 2081
7732     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
7733 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
7734     if test "${ac_pentiumpro+set}" = set; then
7735     echo $ECHO_N "(cached) $ECHO_C" >&6
7736     else
7737     echo 'void f(){}' > conftest.c
7738     if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
7739     ac_pentiumpro=yes
7740     else
7741     ac_pentiumpro=no
7742     fi
7743     rm -f conftest*
7744    
7745     fi
7746 gezelter 2081 echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
7747 gezelter 1490 echo "${ECHO_T}$ac_pentiumpro" >&6
7748     if test "$ac_pentiumpro" = yes; then
7749     :
7750     CPU_FLAGS=-mpentiumpro
7751     else
7752     :
7753    
7754     fi
7755    
7756     fi
7757    
7758     ;;
7759     powerpc*)
7760     cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
7761     is60x=`echo $cputype | egrep "^600-9e?$"`
7762     if test -n "$is60x"; then
7763    
7764 gezelter 2081
7765     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
7766 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
7767     if test "${ac_m_cpu_60x+set}" = set; then
7768     echo $ECHO_N "(cached) $ECHO_C" >&6
7769     else
7770     echo 'void f(){}' > conftest.c
7771     if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
7772     ac_m_cpu_60x=yes
7773     else
7774     ac_m_cpu_60x=no
7775     fi
7776     rm -f conftest*
7777    
7778     fi
7779 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
7780 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_60x" >&6
7781     if test "$ac_m_cpu_60x" = yes; then
7782     :
7783     CPU_FLAGS=-mcpu=$cputype
7784     else
7785     :
7786    
7787     fi
7788    
7789     elif test "$cputype" = 750; then
7790    
7791 gezelter 2081
7792     echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
7793 gezelter 1490 echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
7794     if test "${ac_cv_prog_gcc_2_95+set}" = set; then
7795     echo $ECHO_N "(cached) $ECHO_C" >&6
7796     else
7797    
7798     cat > conftest.c <<EOF
7799     #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
7800     # if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
7801     yes;
7802     # endif
7803     #endif
7804     EOF
7805     if { ac_try='${CC-cc} -E conftest.c'
7806 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 gezelter 1490 (eval $ac_try) 2>&5
7808     ac_status=$?
7809 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 gezelter 1490 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
7811     ac_cv_prog_gcc_2_95=yes
7812     else
7813     ac_cv_prog_gcc_2_95=no
7814     fi
7815    
7816     fi
7817 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
7818 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
7819     if test "$ac_cv_prog_gcc_2_95" = yes; then
7820     :
7821    
7822 gezelter 2081
7823     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
7824 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
7825     if test "${ac_m_cpu_750+set}" = set; then
7826     echo $ECHO_N "(cached) $ECHO_C" >&6
7827     else
7828     echo 'void f(){}' > conftest.c
7829     if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
7830     ac_m_cpu_750=yes
7831     else
7832     ac_m_cpu_750=no
7833     fi
7834     rm -f conftest*
7835    
7836     fi
7837 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
7838 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_750" >&6
7839     if test "$ac_m_cpu_750" = yes; then
7840     :
7841     CPU_FLAGS=-mcpu=750
7842     else
7843     :
7844    
7845     fi
7846    
7847     else
7848     :
7849    
7850     fi
7851    
7852     fi
7853     if test -z "$CPU_FLAGS"; then
7854    
7855 gezelter 2081
7856     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
7857 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
7858     if test "${ac_m_cpu_powerpc+set}" = set; then
7859     echo $ECHO_N "(cached) $ECHO_C" >&6
7860     else
7861     echo 'void f(){}' > conftest.c
7862     if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
7863     ac_m_cpu_powerpc=yes
7864     else
7865     ac_m_cpu_powerpc=no
7866     fi
7867     rm -f conftest*
7868    
7869     fi
7870 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
7871 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
7872     if test "$ac_m_cpu_powerpc" = yes; then
7873     :
7874     CPU_FLAGS=-mcpu=powerpc
7875     else
7876     :
7877    
7878     fi
7879    
7880     fi
7881     if test -z "$CPU_FLAGS"; then
7882    
7883 gezelter 2081
7884     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
7885 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
7886     if test "${ac_m_powerpc+set}" = set; then
7887     echo $ECHO_N "(cached) $ECHO_C" >&6
7888     else
7889     echo 'void f(){}' > conftest.c
7890     if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
7891     ac_m_powerpc=yes
7892     else
7893     ac_m_powerpc=no
7894     fi
7895     rm -f conftest*
7896    
7897     fi
7898 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
7899 gezelter 1490 echo "${ECHO_T}$ac_m_powerpc" >&6
7900     if test "$ac_m_powerpc" = yes; then
7901     :
7902     CPU_FLAGS=-mpowerpc
7903     else
7904     :
7905    
7906     fi
7907    
7908     fi
7909     esac
7910     fi
7911    
7912     if test -n "$CPU_FLAGS"; then
7913     CFLAGS="$CFLAGS $CPU_FLAGS"
7914     fi
7915    
7916     if test -z "$CFLAGS"; then
7917     echo ""
7918     echo "********************************************************"
7919     echo "* WARNING: Don't know the best CFLAGS for this system *"
7920     echo "* Use make CFLAGS=..., or edit the top level Makefile *"
7921     echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
7922     echo "********************************************************"
7923     echo ""
7924     CFLAGS="-O3"
7925     fi
7926    
7927 gezelter 2081
7928    
7929     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
7930 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
7931     if test "${ac_guessed_cflags+set}" = set; then
7932     echo $ECHO_N "(cached) $ECHO_C" >&6
7933     else
7934     echo 'void f(){}' > conftest.c
7935     if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
7936     ac_guessed_cflags=yes
7937     else
7938     ac_guessed_cflags=no
7939     fi
7940     rm -f conftest*
7941    
7942     fi
7943 gezelter 2081 echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
7944 gezelter 1490 echo "${ECHO_T}$ac_guessed_cflags" >&6
7945     if test "$ac_guessed_cflags" = yes; then
7946     :
7947    
7948     else
7949     :
7950    
7951     echo ""
7952     echo "********************************************************"
7953     echo "* WARNING: The guessed CFLAGS don't seem to work with *"
7954     echo "* your compiler. *"
7955     echo "* Use make CFLAGS=..., or edit the top level Makefile *"
7956     echo "********************************************************"
7957     echo ""
7958     CFLAGS=""
7959    
7960     fi
7961    
7962 gezelter 2081
7963 gezelter 1490 fi
7964    
7965 gezelter 2081
7966    
7967    
7968    
7969    
7970    
7971     echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5
7972 gezelter 1490 echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6
7973     if test "${ac_cv_prog_really_gxx+set}" = set; then
7974     echo $ECHO_N "(cached) $ECHO_C" >&6
7975     else
7976    
7977     cat > conftest.cpp <<EOF
7978     #ifdef __GNUC__
7979     #ifndef __INTEL_COMPILER
7980     yes;
7981     #endif
7982     #endif
7983     EOF
7984     if { ac_try='${CXX-c++} -E conftest.cpp'
7985 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986 gezelter 1490 (eval $ac_try) 2>&5
7987     ac_status=$?
7988 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 gezelter 1490 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
7990     ac_cv_prog_really_gxx=yes
7991     else
7992     ac_cv_prog_really_gxx=no
7993     fi
7994    
7995     fi
7996 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
7997 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6
7998     if test "$ac_cv_prog_really_gxx" = yes; then
7999     :
8000    
8001     else
8002     :
8003    
8004     fi
8005    
8006 gezelter 2081
8007 gezelter 1490 # Try to determine "good" native compiler flags if none specified on command
8008     # line
8009     if test "$ac_test_CXXFLAGS" != "set"; then
8010     CXXFLAGS=""
8011     case "${host_cpu}-${host_os}" in
8012    
8013     *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
8014     CXXFLAGS="-O"
8015     fi;;
8016     sparc-solaris2*) if test "$CXX" = CC; then
8017     CXXFLAGS="-native -fast -xO5 -dalign"
8018     fi;;
8019     rs6000*-aix*) if test "$CXX" = xlC; then
8020     CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
8021     fi;;
8022     powerpc*-aix*)
8023     if test "$CXX" = xlC; then
8024     CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
8025     echo "*******************************************************"
8026     echo "* You have AIX on an unknown powerpc system. It is *"
8027     echo "* recommended that you use *"
8028     echo "* *"
8029     echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
8030     echo "* ^^^ *"
8031     echo "* where xxx is 601, 603, 604, or whatever kind of *"
8032     echo "* PowerPC CPU you have. For more info, man cc. *"
8033     echo "*******************************************************"
8034     fi;;
8035     *darwin*)
8036 gezelter 2022 if test "$CXX" = xlc++ -o "$CXX" = xlC ; then
8037 chuckv 1579 CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
8038 gezelter 1490 fi;;
8039     esac
8040    
8041     # use default flags for gcc on all systems
8042     if test $ac_cv_prog_really_gxx = yes; then
8043     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
8044     fi
8045    
8046     # test for gcc-specific flags:
8047     if test $ac_cv_prog_really_gxx = yes; then
8048     # -malign-double for x86 systems
8049    
8050 gezelter 2081
8051     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
8052 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
8053     if test "${ac_align_double+set}" = set; then
8054     echo $ECHO_N "(cached) $ECHO_C" >&6
8055     else
8056     echo 'void f(){}' > conftest.cpp
8057     if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
8058     ac_align_double=yes
8059     else
8060     ac_align_double=no
8061     fi
8062     rm -f conftest*
8063    
8064     fi
8065 gezelter 2081 echo "$as_me:$LINENO: result: $ac_align_double" >&5
8066 gezelter 1490 echo "${ECHO_T}$ac_align_double" >&6
8067     if test "$ac_align_double" = yes; then
8068     :
8069     CXXFLAGS="$CXXFLAGS -malign-double"
8070     else
8071     :
8072    
8073     fi
8074    
8075     # -fstrict-aliasing for gcc-2.95+
8076    
8077 gezelter 2081
8078     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
8079 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
8080     if test "${ac_fstrict_aliasing+set}" = set; then
8081     echo $ECHO_N "(cached) $ECHO_C" >&6
8082     else
8083     echo 'void f(){}' > conftest.cpp
8084     if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
8085     ac_fstrict_aliasing=yes
8086     else
8087     ac_fstrict_aliasing=no
8088     fi
8089     rm -f conftest*
8090    
8091     fi
8092 gezelter 2081 echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
8093 gezelter 1490 echo "${ECHO_T}$ac_fstrict_aliasing" >&6
8094     if test "$ac_fstrict_aliasing" = yes; then
8095     :
8096     CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
8097     else
8098     :
8099    
8100     fi
8101    
8102     fi
8103    
8104     CPU_FLAGS=""
8105     if test $ac_cv_prog_really_gxx = yes; then
8106     case "${host_cpu}" in
8107     i586*)
8108    
8109 gezelter 2081 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5
8110 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6
8111     if test "${ac_cpu_pentium+set}" = set; then
8112     echo $ECHO_N "(cached) $ECHO_C" >&6
8113     else
8114     echo 'void f(){}' > conftest.cpp
8115     if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then
8116     ac_cpu_pentium=yes
8117     else
8118     ac_cpu_pentium=no
8119     fi
8120     rm -f conftest*
8121    
8122     fi
8123 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
8124 gezelter 1490 echo "${ECHO_T}$ac_cpu_pentium" >&6
8125     if test "$ac_cpu_pentium" = yes; then
8126     :
8127     CPU_FLAGS=-mcpu=pentium
8128     else
8129     :
8130    
8131 gezelter 2081
8132     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
8133 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
8134     if test "${ac_pentium+set}" = set; then
8135     echo $ECHO_N "(cached) $ECHO_C" >&6
8136     else
8137     echo 'void f(){}' > conftest.cpp
8138     if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
8139     ac_pentium=yes
8140     else
8141     ac_pentium=no
8142     fi
8143     rm -f conftest*
8144    
8145     fi
8146 gezelter 2081 echo "$as_me:$LINENO: result: $ac_pentium" >&5
8147 gezelter 1490 echo "${ECHO_T}$ac_pentium" >&6
8148     if test "$ac_pentium" = yes; then
8149     :
8150     CPU_FLAGS=-mpentium
8151     else
8152     :
8153    
8154     fi
8155    
8156     fi
8157    
8158     ;;
8159     i686*)
8160    
8161 gezelter 2081 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
8162 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
8163     if test "${ac_cpu_pentiumpro+set}" = set; then
8164     echo $ECHO_N "(cached) $ECHO_C" >&6
8165     else
8166     echo 'void f(){}' > conftest.cpp
8167     if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
8168     ac_cpu_pentiumpro=yes
8169     else
8170     ac_cpu_pentiumpro=no
8171     fi
8172     rm -f conftest*
8173    
8174     fi
8175 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
8176 gezelter 1490 echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
8177     if test "$ac_cpu_pentiumpro" = yes; then
8178     :
8179     CPU_FLAGS=-mcpu=pentiumpro
8180     else
8181     :
8182    
8183 gezelter 2081
8184     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
8185 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
8186     if test "${ac_pentiumpro+set}" = set; then
8187     echo $ECHO_N "(cached) $ECHO_C" >&6
8188     else
8189     echo 'void f(){}' > conftest.cpp
8190     if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
8191     ac_pentiumpro=yes
8192     else
8193     ac_pentiumpro=no
8194     fi
8195     rm -f conftest*
8196    
8197     fi
8198 gezelter 2081 echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
8199 gezelter 1490 echo "${ECHO_T}$ac_pentiumpro" >&6
8200     if test "$ac_pentiumpro" = yes; then
8201     :
8202     CPU_FLAGS=-mpentiumpro
8203     else
8204     :
8205    
8206     fi
8207    
8208     fi
8209    
8210     ;;
8211     powerpc*)
8212     cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
8213     is60x=`echo $cputype | egrep "^600-9e?$"`
8214     if test -n "$is60x"; then
8215    
8216 gezelter 2081
8217     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
8218 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
8219     if test "${ac_m_cpu_60x+set}" = set; then
8220     echo $ECHO_N "(cached) $ECHO_C" >&6
8221     else
8222     echo 'void f(){}' > conftest.cpp
8223     if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
8224     ac_m_cpu_60x=yes
8225     else
8226     ac_m_cpu_60x=no
8227     fi
8228     rm -f conftest*
8229    
8230     fi
8231 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
8232 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_60x" >&6
8233     if test "$ac_m_cpu_60x" = yes; then
8234     :
8235     CPU_FLAGS=-mcpu=$cputype
8236     else
8237     :
8238    
8239     fi
8240    
8241     elif test "$cputype" = 750; then
8242    
8243 gezelter 2081
8244     echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
8245 gezelter 1490 echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6
8246     if test "${ac_cv_prog_gxx_2_95+set}" = set; then
8247     echo $ECHO_N "(cached) $ECHO_C" >&6
8248     else
8249    
8250     cat > conftest.cpp <<EOF
8251     #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
8252     # if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
8253     yes;
8254     # endif
8255     #endif
8256     EOF
8257     if { ac_try='${CXX-c++} -E conftest.cpp'
8258 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 gezelter 1490 (eval $ac_try) 2>&5
8260     ac_status=$?
8261 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 gezelter 1490 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
8263     ac_cv_prog_gxx_2_95=yes
8264     else
8265     ac_cv_prog_gxx_2_95=no
8266     fi
8267    
8268     fi
8269 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
8270 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6
8271     if test "$ac_cv_prog_gxx_2_95" = yes; then
8272     :
8273    
8274 gezelter 2081
8275     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
8276 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
8277     if test "${ac_m_cpu_750+set}" = set; then
8278     echo $ECHO_N "(cached) $ECHO_C" >&6
8279     else
8280     echo 'void f(){}' > conftest.cpp
8281     if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
8282     ac_m_cpu_750=yes
8283     else
8284     ac_m_cpu_750=no
8285     fi
8286     rm -f conftest*
8287    
8288     fi
8289 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
8290 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_750" >&6
8291     if test "$ac_m_cpu_750" = yes; then
8292     :
8293     CPU_FLAGS=-mcpu=750
8294     else
8295     :
8296    
8297     fi
8298    
8299     else
8300     :
8301    
8302     fi
8303    
8304     fi
8305     if test -z "$CPU_FLAGS"; then
8306    
8307 gezelter 2081
8308     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
8309 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
8310     if test "${ac_m_cpu_powerpc+set}" = set; then
8311     echo $ECHO_N "(cached) $ECHO_C" >&6
8312     else
8313     echo 'void f(){}' > conftest.cpp
8314     if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
8315     ac_m_cpu_powerpc=yes
8316     else
8317     ac_m_cpu_powerpc=no
8318     fi
8319     rm -f conftest*
8320    
8321     fi
8322 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
8323 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
8324     if test "$ac_m_cpu_powerpc" = yes; then
8325     :
8326     CPU_FLAGS=-mcpu=powerpc
8327     else
8328     :
8329    
8330     fi
8331    
8332     fi
8333     if test -z "$CPU_FLAGS"; then
8334    
8335 gezelter 2081
8336     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
8337 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
8338     if test "${ac_m_powerpc+set}" = set; then
8339     echo $ECHO_N "(cached) $ECHO_C" >&6
8340     else
8341     echo 'void f(){}' > conftest.cpp
8342     if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
8343     ac_m_powerpc=yes
8344     else
8345     ac_m_powerpc=no
8346     fi
8347     rm -f conftest*
8348    
8349     fi
8350 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
8351 gezelter 1490 echo "${ECHO_T}$ac_m_powerpc" >&6
8352     if test "$ac_m_powerpc" = yes; then
8353     :
8354     CPU_FLAGS=-mpowerpc
8355     else
8356     :
8357    
8358     fi
8359    
8360     fi
8361     esac
8362     fi
8363    
8364     if test -n "$CPU_FLAGS"; then
8365     CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
8366     fi
8367    
8368     if test -z "$CXXFLAGS"; then
8369     echo ""
8370     echo "**********************************************************"
8371     echo "* WARNING: Don't know the best CXXFLAGS for this system *"
8372     echo "* Use make CXXFLAGS=..., or edit the top level Makefile *"
8373     echo "* (otherwise, a default of CXXFLAGS=-O3 will be used) *"
8374     echo "**********************************************************"
8375     echo ""
8376     CXXFLAGS="-O3"
8377     fi
8378    
8379 gezelter 2081
8380    
8381     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
8382 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
8383     if test "${ac_guessed_cxxflags+set}" = set; then
8384     echo $ECHO_N "(cached) $ECHO_C" >&6
8385     else
8386     echo 'void f(){}' > conftest.cpp
8387     if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
8388     ac_guessed_cxxflags=yes
8389     else
8390     ac_guessed_cxxflags=no
8391     fi
8392     rm -f conftest*
8393    
8394     fi
8395 gezelter 2081 echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
8396 gezelter 1490 echo "${ECHO_T}$ac_guessed_cxxflags" >&6
8397     if test "$ac_guessed_cxxflags" = yes; then
8398     :
8399    
8400     else
8401     :
8402    
8403     echo ""
8404     echo "**********************************************************"
8405     echo "* WARNING: The guessed CXXFLAGS don't seem to work with *"
8406     echo "* your compiler. *"
8407     echo "* Use make CXXFLAGS=..., or edit the top level Makefile *"
8408     echo "**********************************************************"
8409     echo ""
8410     CXXFLAGS=""
8411    
8412     fi
8413    
8414 gezelter 2081
8415 gezelter 1490 fi
8416    
8417 gezelter 2081
8418    
8419    
8420    
8421 gezelter 1490 # Try to determine "good" native compiler flags if none specified on command
8422     # line
8423    
8424     if test x"$F90FLAGS" = x ; then
8425     F90FLAGS=""
8426     case "${host_cpu}-${host_os}" in
8427    
8428     *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
8429     F90FLAGS="-O"
8430     fi;;
8431     rs6000*-aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
8432     F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
8433     fi;;
8434     powerpc*-aix*)
8435     if test "$F90" = f90 -o "$F90" = xlf90; then
8436     F90FLAGS="-O3 -qarch=ppc -qansialias -w"
8437     echo "*******************************************************"
8438     echo "* You have AIX on an unknown powerpc system. It is *"
8439     echo "* recommended that you use *"
8440     echo "* *"
8441     echo "* F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
8442     echo "* ^^^ *"
8443     echo "* where xxx is 601, 603, 604, or whatever kind of *"
8444     echo "* PowerPC CPU you have. For more info, man xlf. *"
8445     echo "*******************************************************"
8446     fi;;
8447     *darwin*)
8448     if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then
8449 chuckv 1579 F90FLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
8450 gezelter 1490 fi;;
8451     esac
8452    
8453     if test -n "$CPU_FLAGS"; then
8454     F90FLAGS="$F90FLAGS $CPU_FLAGS"
8455     fi
8456    
8457     if test -z "$F90FLAGS"; then
8458     echo ""
8459     echo "**********************************************************"
8460     echo "* WARNING: Don't know the best F90FLAGS for this system *"
8461     echo "* Use make F90FLAGS=..., or edit the top level Makefile *"
8462     echo "* (otherwise, a default of F90FLAGS=-O3 will be used) *"
8463     echo "**********************************************************"
8464     echo ""
8465     F90FLAGS="-O3"
8466     fi
8467    
8468 gezelter 2081
8469     echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
8470 gezelter 1490 echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
8471     if test "${ac_guessed_f90flags+set}" = set; then
8472     echo $ECHO_N "(cached) $ECHO_C" >&6
8473     else
8474    
8475 gezelter 2081
8476    
8477 gezelter 1490 ac_ext=f90
8478     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
8479     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8480     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
8481    
8482     echo 'program main' > conftest.$ac_ext
8483     echo 'end program main' >> conftest.$ac_ext
8484     ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
8485 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8486 gezelter 1490 (eval $ac_compile) 2>&5
8487     ac_status=$?
8488 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 gezelter 1490 (exit $ac_status); }; then
8490     ac_guessed_f90flags=yes
8491     else
8492     ac_guessed_f90flags=no
8493     fi
8494     rm -f conftest*
8495     ac_ext=c
8496     ac_cpp='$CPP $CPPFLAGS'
8497     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8498     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8499     ac_compiler_gnu=$ac_cv_c_compiler_gnu
8500    
8501 gezelter 2081
8502 gezelter 1490 fi
8503 gezelter 2081 echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
8504 gezelter 1490 echo "${ECHO_T}$ac_guessed_f90flags" >&6
8505     if test "$ac_guessed_f90flags" = yes; then
8506     :
8507    
8508     else
8509     :
8510    
8511     echo ""
8512     echo "**********************************************************"
8513     echo "* WARNING: The guessed F90FLAGS don't seem to work with *"
8514     echo "* your compiler. *"
8515     echo "* Use make F90FLAGS=..., or edit the top level Makefile *"
8516     echo "**********************************************************"
8517     echo ""
8518     F90FLAGS=""
8519    
8520     fi
8521    
8522 gezelter 2081
8523 gezelter 1490 fi
8524    
8525     ;;
8526     esac
8527    
8528     # Find a good install program. We prefer a C program (faster),
8529     # so one script is as good as another. But avoid the broken or
8530     # incompatible versions:
8531     # SysV /etc/install, /usr/sbin/install
8532     # SunOS /usr/etc/install
8533     # IRIX /sbin/install
8534     # AIX /bin/install
8535     # AmigaOS /C/install, which installs bootblocks on floppy discs
8536     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8537     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8538     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8539 gezelter 2081 # OS/2's system install, which has a completely different semantic
8540 gezelter 1490 # ./install, which can be erroneously created by make from ./install.sh.
8541 gezelter 2081 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8542     echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8543 gezelter 1490 if test -z "$INSTALL"; then
8544     if test "${ac_cv_path_install+set}" = set; then
8545     echo $ECHO_N "(cached) $ECHO_C" >&6
8546     else
8547 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548     for as_dir in $PATH
8549     do
8550     IFS=$as_save_IFS
8551     test -z "$as_dir" && as_dir=.
8552     # Account for people who put trailing slashes in PATH elements.
8553     case $as_dir/ in
8554     ./ | .// | /cC/* | \
8555     /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8556     ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8557     /usr/ucb/* ) ;;
8558     *)
8559     # OSF1 and SCO ODT 3.0 have their own names for install.
8560     # Don't use installbsd from OSF since it installs stuff as root
8561     # by default.
8562     for ac_prog in ginstall scoinst install; do
8563     for ac_exec_ext in '' $ac_executable_extensions; do
8564     if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8565 gezelter 2026 if test $ac_prog = install &&
8566 gezelter 2081 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8567 gezelter 2026 # AIX install. It has an incompatible calling convention.
8568     :
8569     elif test $ac_prog = install &&
8570 gezelter 2081 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8571 gezelter 2026 # program-specific install script used by HP pwplus--don't use.
8572     :
8573     else
8574 gezelter 2081 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8575     break 3
8576 gezelter 2026 fi
8577     fi
8578 gezelter 1490 done
8579 gezelter 2081 done
8580     ;;
8581     esac
8582     done
8583 gezelter 1490
8584 gezelter 2081
8585 gezelter 1490 fi
8586     if test "${ac_cv_path_install+set}" = set; then
8587     INSTALL=$ac_cv_path_install
8588     else
8589     # As a last resort, use the slow shell script. We don't cache a
8590     # path for INSTALL within a source directory, because that will
8591     # break other packages using the cache if that directory is
8592     # removed, or if the path is relative.
8593     INSTALL=$ac_install_sh
8594     fi
8595     fi
8596 gezelter 2081 echo "$as_me:$LINENO: result: $INSTALL" >&5
8597 gezelter 1490 echo "${ECHO_T}$INSTALL" >&6
8598    
8599     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8600     # It thinks the first close brace ends the variable substitution.
8601     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8602    
8603     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8604    
8605     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8606    
8607 gezelter 2081 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8608 gezelter 1490 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8609     LN_S=$as_ln_s
8610     if test "$LN_S" = "ln -s"; then
8611 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
8612 gezelter 1490 echo "${ECHO_T}yes" >&6
8613     else
8614 gezelter 2081 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8615 gezelter 1490 echo "${ECHO_T}no, using $LN_S" >&6
8616     fi
8617    
8618 gezelter 2081 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8619     echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8620     set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8621 gezelter 1490 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8622     echo $ECHO_N "(cached) $ECHO_C" >&6
8623     else
8624 gezelter 2081 cat >conftest.make <<\_ACEOF
8625 gezelter 1490 all:
8626 gezelter 2081 @echo 'ac_maketemp="$(MAKE)"'
8627     _ACEOF
8628 gezelter 1490 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8629     eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8630     if test -n "$ac_maketemp"; then
8631     eval ac_cv_prog_make_${ac_make}_set=yes
8632     else
8633     eval ac_cv_prog_make_${ac_make}_set=no
8634     fi
8635     rm -f conftest.make
8636     fi
8637     if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8638 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
8639 gezelter 1490 echo "${ECHO_T}yes" >&6
8640     SET_MAKE=
8641     else
8642 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
8643 gezelter 1490 echo "${ECHO_T}no" >&6
8644     SET_MAKE="MAKE=${MAKE-make}"
8645     fi
8646    
8647     if test -n "$ac_tool_prefix"; then
8648     # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8649     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8650 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
8651 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8652     if test "${ac_cv_prog_RANLIB+set}" = set; then
8653     echo $ECHO_N "(cached) $ECHO_C" >&6
8654     else
8655     if test -n "$RANLIB"; then
8656     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8657     else
8658 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659     for as_dir in $PATH
8660     do
8661     IFS=$as_save_IFS
8662     test -z "$as_dir" && as_dir=.
8663     for ac_exec_ext in '' $ac_executable_extensions; do
8664     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8665     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8667     break 2
8668     fi
8669 gezelter 1490 done
8670 gezelter 2081 done
8671 gezelter 1490
8672     fi
8673     fi
8674     RANLIB=$ac_cv_prog_RANLIB
8675     if test -n "$RANLIB"; then
8676 gezelter 2081 echo "$as_me:$LINENO: result: $RANLIB" >&5
8677 gezelter 1490 echo "${ECHO_T}$RANLIB" >&6
8678     else
8679 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
8680 gezelter 1490 echo "${ECHO_T}no" >&6
8681     fi
8682    
8683     fi
8684     if test -z "$ac_cv_prog_RANLIB"; then
8685     ac_ct_RANLIB=$RANLIB
8686     # Extract the first word of "ranlib", so it can be a program name with args.
8687     set dummy ranlib; ac_word=$2
8688 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
8689 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8690     if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8691     echo $ECHO_N "(cached) $ECHO_C" >&6
8692     else
8693     if test -n "$ac_ct_RANLIB"; then
8694     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8695     else
8696 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697     for as_dir in $PATH
8698     do
8699     IFS=$as_save_IFS
8700     test -z "$as_dir" && as_dir=.
8701     for ac_exec_ext in '' $ac_executable_extensions; do
8702     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8703     ac_cv_prog_ac_ct_RANLIB="ranlib"
8704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8705     break 2
8706     fi
8707 gezelter 1490 done
8708 gezelter 2081 done
8709 gezelter 1490
8710     test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8711     fi
8712     fi
8713     ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8714     if test -n "$ac_ct_RANLIB"; then
8715 gezelter 2081 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8716 gezelter 1490 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8717     else
8718 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
8719 gezelter 1490 echo "${ECHO_T}no" >&6
8720     fi
8721    
8722     RANLIB=$ac_ct_RANLIB
8723     else
8724     RANLIB="$ac_cv_prog_RANLIB"
8725     fi
8726    
8727     for ac_prog in 'bison -y' byacc
8728     do
8729     # Extract the first word of "$ac_prog", so it can be a program name with args.
8730     set dummy $ac_prog; ac_word=$2
8731 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
8732 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8733     if test "${ac_cv_prog_YACC+set}" = set; then
8734     echo $ECHO_N "(cached) $ECHO_C" >&6
8735     else
8736     if test -n "$YACC"; then
8737     ac_cv_prog_YACC="$YACC" # Let the user override the test.
8738     else
8739 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740     for as_dir in $PATH
8741     do
8742     IFS=$as_save_IFS
8743     test -z "$as_dir" && as_dir=.
8744     for ac_exec_ext in '' $ac_executable_extensions; do
8745     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8746     ac_cv_prog_YACC="$ac_prog"
8747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8748     break 2
8749     fi
8750 gezelter 1490 done
8751 gezelter 2081 done
8752 gezelter 1490
8753     fi
8754     fi
8755     YACC=$ac_cv_prog_YACC
8756     if test -n "$YACC"; then
8757 gezelter 2081 echo "$as_me:$LINENO: result: $YACC" >&5
8758 gezelter 1490 echo "${ECHO_T}$YACC" >&6
8759     else
8760 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
8761 gezelter 1490 echo "${ECHO_T}no" >&6
8762     fi
8763    
8764     test -n "$YACC" && break
8765     done
8766     test -n "$YACC" || YACC="yacc"
8767    
8768     for ac_prog in flex lex
8769     do
8770     # Extract the first word of "$ac_prog", so it can be a program name with args.
8771     set dummy $ac_prog; ac_word=$2
8772 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
8773 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8774     if test "${ac_cv_prog_LEX+set}" = set; then
8775     echo $ECHO_N "(cached) $ECHO_C" >&6
8776     else
8777     if test -n "$LEX"; then
8778     ac_cv_prog_LEX="$LEX" # Let the user override the test.
8779     else
8780 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781     for as_dir in $PATH
8782     do
8783     IFS=$as_save_IFS
8784     test -z "$as_dir" && as_dir=.
8785     for ac_exec_ext in '' $ac_executable_extensions; do
8786     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8787     ac_cv_prog_LEX="$ac_prog"
8788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8789     break 2
8790     fi
8791 gezelter 1490 done
8792 gezelter 2081 done
8793 gezelter 1490
8794     fi
8795     fi
8796     LEX=$ac_cv_prog_LEX
8797     if test -n "$LEX"; then
8798 gezelter 2081 echo "$as_me:$LINENO: result: $LEX" >&5
8799 gezelter 1490 echo "${ECHO_T}$LEX" >&6
8800     else
8801 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
8802 gezelter 1490 echo "${ECHO_T}no" >&6
8803     fi
8804    
8805     test -n "$LEX" && break
8806     done
8807     test -n "$LEX" || LEX=":"
8808    
8809     if test -z "$LEXLIB"
8810     then
8811 gezelter 2081 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
8812 gezelter 1490 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
8813     if test "${ac_cv_lib_fl_yywrap+set}" = set; then
8814     echo $ECHO_N "(cached) $ECHO_C" >&6
8815     else
8816     ac_check_lib_save_LIBS=$LIBS
8817     LIBS="-lfl $LIBS"
8818     cat >conftest.$ac_ext <<_ACEOF
8819 gezelter 2081 /* confdefs.h. */
8820     _ACEOF
8821     cat confdefs.h >>conftest.$ac_ext
8822     cat >>conftest.$ac_ext <<_ACEOF
8823     /* end confdefs.h. */
8824 gezelter 1490
8825     /* Override any gcc2 internal prototype to avoid an error. */
8826     #ifdef __cplusplus
8827     extern "C"
8828     #endif
8829     /* We use char because int might match the return type of a gcc2
8830     builtin and then its argument prototype would still apply. */
8831     char yywrap ();
8832     int
8833     main ()
8834     {
8835     yywrap ();
8836     ;
8837     return 0;
8838     }
8839     _ACEOF
8840     rm -f conftest.$ac_objext conftest$ac_exeext
8841 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842     (eval $ac_link) 2>conftest.er1
8843 gezelter 1490 ac_status=$?
8844 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
8845     rm -f conftest.er1
8846     cat conftest.err >&5
8847     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 gezelter 1490 (exit $ac_status); } &&
8849 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
8850     || test ! -s conftest.err'
8851     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852 gezelter 1490 (eval $ac_try) 2>&5
8853     ac_status=$?
8854 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855     (exit $ac_status); }; } &&
8856     { ac_try='test -s conftest$ac_exeext'
8857     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858     (eval $ac_try) 2>&5
8859     ac_status=$?
8860     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 gezelter 1490 (exit $ac_status); }; }; then
8862     ac_cv_lib_fl_yywrap=yes
8863     else
8864     echo "$as_me: failed program was:" >&5
8865 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
8866    
8867 gezelter 1490 ac_cv_lib_fl_yywrap=no
8868     fi
8869 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
8870     conftest$ac_exeext conftest.$ac_ext
8871 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
8872     fi
8873 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
8874 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
8875     if test $ac_cv_lib_fl_yywrap = yes; then
8876     LEXLIB="-lfl"
8877     else
8878 gezelter 2081 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
8879 gezelter 1490 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
8880     if test "${ac_cv_lib_l_yywrap+set}" = set; then
8881     echo $ECHO_N "(cached) $ECHO_C" >&6
8882     else
8883     ac_check_lib_save_LIBS=$LIBS
8884     LIBS="-ll $LIBS"
8885     cat >conftest.$ac_ext <<_ACEOF
8886 gezelter 2081 /* confdefs.h. */
8887     _ACEOF
8888     cat confdefs.h >>conftest.$ac_ext
8889     cat >>conftest.$ac_ext <<_ACEOF
8890     /* end confdefs.h. */
8891 gezelter 1490
8892     /* Override any gcc2 internal prototype to avoid an error. */
8893     #ifdef __cplusplus
8894     extern "C"
8895     #endif
8896     /* We use char because int might match the return type of a gcc2
8897     builtin and then its argument prototype would still apply. */
8898     char yywrap ();
8899     int
8900     main ()
8901     {
8902     yywrap ();
8903     ;
8904     return 0;
8905     }
8906     _ACEOF
8907     rm -f conftest.$ac_objext conftest$ac_exeext
8908 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8909     (eval $ac_link) 2>conftest.er1
8910 gezelter 1490 ac_status=$?
8911 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
8912     rm -f conftest.er1
8913     cat conftest.err >&5
8914     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 gezelter 1490 (exit $ac_status); } &&
8916 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
8917     || test ! -s conftest.err'
8918     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919 gezelter 1490 (eval $ac_try) 2>&5
8920     ac_status=$?
8921 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922     (exit $ac_status); }; } &&
8923     { ac_try='test -s conftest$ac_exeext'
8924     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925     (eval $ac_try) 2>&5
8926     ac_status=$?
8927     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 gezelter 1490 (exit $ac_status); }; }; then
8929     ac_cv_lib_l_yywrap=yes
8930     else
8931     echo "$as_me: failed program was:" >&5
8932 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
8933    
8934 gezelter 1490 ac_cv_lib_l_yywrap=no
8935     fi
8936 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
8937     conftest$ac_exeext conftest.$ac_ext
8938 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
8939     fi
8940 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
8941 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
8942     if test $ac_cv_lib_l_yywrap = yes; then
8943     LEXLIB="-ll"
8944     fi
8945    
8946     fi
8947    
8948     fi
8949    
8950     if test "x$LEX" != "x:"; then
8951 gezelter 2081 echo "$as_me:$LINENO: checking lex output file root" >&5
8952 gezelter 1490 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
8953     if test "${ac_cv_prog_lex_root+set}" = set; then
8954     echo $ECHO_N "(cached) $ECHO_C" >&6
8955     else
8956     # The minimal lex program is just a single line: %%. But some broken lexes
8957     # (Solaris, I think it was) want two %% lines, so accommodate them.
8958 gezelter 2081 cat >conftest.l <<_ACEOF
8959     %%
8960     %%
8961     _ACEOF
8962     { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
8963     (eval $LEX conftest.l) 2>&5
8964     ac_status=$?
8965     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966     (exit $ac_status); }
8967 gezelter 1490 if test -f lex.yy.c; then
8968     ac_cv_prog_lex_root=lex.yy
8969     elif test -f lexyy.c; then
8970     ac_cv_prog_lex_root=lexyy
8971     else
8972 gezelter 2081 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
8973 gezelter 1490 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
8974     { (exit 1); exit 1; }; }
8975     fi
8976     fi
8977 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
8978 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
8979 gezelter 2081 rm -f conftest.l
8980 gezelter 1490 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8981    
8982 gezelter 2081 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
8983 gezelter 1490 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
8984     if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
8985     echo $ECHO_N "(cached) $ECHO_C" >&6
8986     else
8987     # POSIX says lex can declare yytext either as a pointer or an array; the
8988     # default is implementation-dependent. Figure out which it is, since
8989     # not all implementations provide the %pointer and %array declarations.
8990     ac_cv_prog_lex_yytext_pointer=no
8991     echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
8992     ac_save_LIBS=$LIBS
8993     LIBS="$LIBS $LEXLIB"
8994     cat >conftest.$ac_ext <<_ACEOF
8995     `cat $LEX_OUTPUT_ROOT.c`
8996     _ACEOF
8997     rm -f conftest.$ac_objext conftest$ac_exeext
8998 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8999     (eval $ac_link) 2>conftest.er1
9000 gezelter 1490 ac_status=$?
9001 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
9002     rm -f conftest.er1
9003     cat conftest.err >&5
9004     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 gezelter 1490 (exit $ac_status); } &&
9006 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
9007     || test ! -s conftest.err'
9008     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 gezelter 1490 (eval $ac_try) 2>&5
9010     ac_status=$?
9011 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012     (exit $ac_status); }; } &&
9013     { ac_try='test -s conftest$ac_exeext'
9014     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015     (eval $ac_try) 2>&5
9016     ac_status=$?
9017     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 gezelter 1490 (exit $ac_status); }; }; then
9019     ac_cv_prog_lex_yytext_pointer=yes
9020     else
9021     echo "$as_me: failed program was:" >&5
9022 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
9023    
9024 gezelter 1490 fi
9025 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
9026     conftest$ac_exeext conftest.$ac_ext
9027 gezelter 1490 LIBS=$ac_save_LIBS
9028     rm -f "${LEX_OUTPUT_ROOT}.c"
9029    
9030     fi
9031 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9032 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
9033     if test $ac_cv_prog_lex_yytext_pointer = yes; then
9034    
9035 gezelter 2081 cat >>confdefs.h <<\_ACEOF
9036 gezelter 1490 #define YYTEXT_POINTER 1
9037 gezelter 2081 _ACEOF
9038 gezelter 1490
9039     fi
9040    
9041     fi
9042 gezelter 2199
9043     # Extract the first word of "perl", so it can be a program name with args.
9044     set dummy perl; ac_word=$2
9045     echo "$as_me:$LINENO: checking for $ac_word" >&5
9046     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9047     if test "${ac_cv_path_PERLINTERP+set}" = set; then
9048     echo $ECHO_N "(cached) $ECHO_C" >&6
9049     else
9050     case $PERLINTERP in
9051     [\\/]* | ?:[\\/]*)
9052     ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path.
9053     ;;
9054     *)
9055     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056     for as_dir in $PATH
9057     do
9058     IFS=$as_save_IFS
9059     test -z "$as_dir" && as_dir=.
9060     for ac_exec_ext in '' $ac_executable_extensions; do
9061     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9062     ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext"
9063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9064     break 2
9065     fi
9066     done
9067     done
9068    
9069     test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl"
9070     ;;
9071     esac
9072     fi
9073     PERLINTERP=$ac_cv_path_PERLINTERP
9074    
9075     if test -n "$PERLINTERP"; then
9076     echo "$as_me:$LINENO: result: $PERLINTERP" >&5
9077     echo "${ECHO_T}$PERLINTERP" >&6
9078     else
9079     echo "$as_me:$LINENO: result: no" >&5
9080     echo "${ECHO_T}no" >&6
9081     fi
9082    
9083     ac_cv_path_perlinterp="$PERLINTERP"
9084     _sHpB='#!'
9085    
9086    
9087     # Check whether --with-perl-shebang or --without-perl-shebang was given.
9088     if test "${with_perl_shebang+set}" = set; then
9089     withval="$with_perl_shebang"
9090     opt_perl_shebang="$withval"
9091     else
9092     opt_perl_shebang="not_set"
9093     fi;
9094     echo "$as_me:$LINENO: checking whether explicit instead of detected sharpbang is to be used" >&5
9095     echo $ECHO_N "checking whether explicit instead of detected sharpbang is to be used... $ECHO_C" >&6
9096     if test "${ax_cv_opt_perl_shebang+set}" = set; then
9097     echo $ECHO_N "(cached) $ECHO_C" >&6
9098     else
9099     case "$opt_perl_shebang" in
9100     not_set ) ax_cv_opt_perl_shebang=''
9101     ;;
9102     * )
9103     ax_cv_opt_perl_shebang=`echo "$opt_perl_shebang" | sed -e's|^#!\s*\(.*\)$|\1|'`
9104     esac
9105    
9106     fi
9107     echo "$as_me:$LINENO: result: $ax_cv_opt_perl_shebang" >&5
9108     echo "${ECHO_T}$ax_cv_opt_perl_shebang" >&6
9109     if test "A$ax_cv_opt_perl_shebang" != "A"
9110     then
9111     ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang"
9112     PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
9113     { echo "$as_me:$LINENO: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5
9114     echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;}
9115    
9116     # Automatic detection of sharpbang formula starts here
9117     else
9118     _somian_shbangperl=`$PERLINTERP -V:startperl`
9119     negclass="[^']"; # must leave this comment: m4 will remove the outer brackets for us, heheh
9120     echo "$as_me:$LINENO: checking for kernel sharpbang invocation to start perl" >&5
9121     echo $ECHO_N "checking for kernel sharpbang invocation to start perl... $ECHO_C" >&6
9122     if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then
9123     echo $ECHO_N "(cached) $ECHO_C" >&6
9124     else
9125     _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
9126     if test "x$_somian_kspb_perl" == x
9127     then _somian_ksbp_warn_empty='durnit'
9128     else
9129     case "A$_somian_kspb_perl" in
9130     A#!*perl* )
9131     ac_cv_sys_kernshrpbang_perl=`echo "$_somian_kspb_perl" | sed -e's|#!\(.*\)$|\1|'`
9132     ;;
9133     A* ) _somian_ksbp_warn_defau='trouble'
9134     ac_cv_sys_kernshrpbang_perl="$PERLINTERP"
9135     esac
9136     fi
9137    
9138     fi
9139     echo "$as_me:$LINENO: result: $ac_cv_sys_kernshrpbang_perl" >&5
9140     echo "${ECHO_T}$ac_cv_sys_kernshrpbang_perl" >&6
9141     # The above prints Checking ... result message to user.
9142     PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
9143    
9144     if test A${_somian_ksbp_warn_empty+set} == Aset
9145     then { echo "$as_me:$LINENO: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5
9146     echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;}
9147     fi
9148     # Inform user after printing result value
9149     if test A${_somian_ksbp_warn_defau+set} == Aset
9150     then { echo "$as_me:$LINENO: Maybe Not good -" >&5
9151     echo "$as_me: Maybe Not good -" >&6;}
9152     { echo "$as_me:$LINENO: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5
9153     echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;}
9154     else { echo "$as_me:$LINENO: OK Good result - " >&5
9155     echo "$as_me: OK Good result - " >&6;}
9156     { echo "$as_me:$LINENO: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5
9157     echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;}
9158     fi
9159     fi
9160    
9161 gezelter 1490 # Extract the first word of "ar", so it can be a program name with args.
9162     set dummy ar; ac_word=$2
9163 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
9164 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9165     if test "${ac_cv_prog_AR+set}" = set; then
9166     echo $ECHO_N "(cached) $ECHO_C" >&6
9167     else
9168     if test -n "$AR"; then
9169     ac_cv_prog_AR="$AR" # Let the user override the test.
9170     else
9171 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9172     for as_dir in $PATH
9173     do
9174     IFS=$as_save_IFS
9175     test -z "$as_dir" && as_dir=.
9176     for ac_exec_ext in '' $ac_executable_extensions; do
9177     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9178     ac_cv_prog_AR="ar"
9179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9180     break 2
9181     fi
9182 gezelter 1490 done
9183 gezelter 2081 done
9184 gezelter 1490
9185     test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
9186     fi
9187     fi
9188     AR=$ac_cv_prog_AR
9189     if test -n "$AR"; then
9190 gezelter 2081 echo "$as_me:$LINENO: result: $AR" >&5
9191 gezelter 1490 echo "${ECHO_T}$AR" >&6
9192     else
9193 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
9194 gezelter 1490 echo "${ECHO_T}no" >&6
9195     fi
9196    
9197     if test "$AR" = "NONE"; then
9198 gezelter 2081 { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
9199 gezelter 1490 echo "$as_me: error: --> Can't find \`ar'!" >&2;}
9200     { (exit 1); exit 1; }; }
9201     cat >confcache <<\_ACEOF
9202     # This file is a shell script that caches the results of configure
9203     # tests run on this system so they can be shared between configure
9204     # scripts and configure runs, see configure's option --config-cache.
9205     # It is not useful on other systems. If it contains results you don't
9206     # want to keep, you may remove or edit it.
9207     #
9208     # config.status only pays attention to the cache file if you give it
9209     # the --recheck option to rerun configure.
9210     #
9211 gezelter 2081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9212 gezelter 1490 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9213     # following values.
9214    
9215     _ACEOF
9216    
9217     # The following way of writing the cache mishandles newlines in values,
9218     # but we know of no workaround that is simple, portable, and efficient.
9219     # So, don't put newlines in cache variables' values.
9220     # Ultrix sh set writes to stderr and can't be redirected directly,
9221     # and sets the high bit in the cache file unless we assign to the vars.
9222     {
9223     (set) 2>&1 |
9224     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9225     *ac_space=\ *)
9226     # `set' does not quote correctly, so add quotes (double-quote
9227     # substitution turns \\\\ into \\, and sed turns \\ into \).
9228     sed -n \
9229 gezelter 2081 "s/'/'\\\\''/g;
9230     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9231 gezelter 1490 ;;
9232     *)
9233     # `set' quotes correctly as required by POSIX, so do not add quotes.
9234     sed -n \
9235 gezelter 2081 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9236 gezelter 1490 ;;
9237     esac;
9238     } |
9239     sed '
9240     t clear
9241     : clear
9242     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9243     t end
9244     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9245     : end' >>confcache
9246 gezelter 2081 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9247 gezelter 1490 if test -w $cache_file; then
9248     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9249     cat confcache >$cache_file
9250     else
9251     echo "not updating unwritable cache $cache_file"
9252     fi
9253     fi
9254     rm -f confcache
9255     exit 1
9256     fi
9257    
9258 gezelter 2022 # Extract the first word of "ps", so it can be a program name with args.
9259     set dummy ps; ac_word=$2
9260 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
9261 gezelter 2022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9262 gezelter 2023 if test "${ac_cv_path_PS+set}" = set; then
9263 gezelter 2022 echo $ECHO_N "(cached) $ECHO_C" >&6
9264     else
9265 gezelter 2023 case $PS in
9266 gezelter 2022 [\\/]* | ?:[\\/]*)
9267 gezelter 2023 ac_cv_path_PS="$PS" # Let the user override the test with a path.
9268 gezelter 2022 ;;
9269     *)
9270 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9271     for as_dir in $PATH
9272     do
9273     IFS=$as_save_IFS
9274     test -z "$as_dir" && as_dir=.
9275     for ac_exec_ext in '' $ac_executable_extensions; do
9276     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9277     ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
9278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9279     break 2
9280     fi
9281 gezelter 2022 done
9282 gezelter 2081 done
9283 gezelter 1490
9284 gezelter 2022 ;;
9285     esac
9286     fi
9287 gezelter 2023 PS=$ac_cv_path_PS
9288 gezelter 1490
9289 gezelter 2023 if test -n "$PS"; then
9290 gezelter 2081 echo "$as_me:$LINENO: result: $PS" >&5
9291 gezelter 2023 echo "${ECHO_T}$PS" >&6
9292 gezelter 2022 else
9293 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
9294 gezelter 2022 echo "${ECHO_T}no" >&6
9295     fi
9296    
9297 gezelter 2081 echo "$as_me:$LINENO: checking for POSIX or BSD ps syntax" >&5
9298 gezelter 2024 echo $ECHO_N "checking for POSIX or BSD ps syntax... $ECHO_C" >&6
9299     if test "${ac_cv_prog_ps_syntax+set}" = set; then
9300 gezelter 2022 echo $ECHO_N "(cached) $ECHO_C" >&6
9301     else
9302    
9303 gezelter 2026 if $PS ax -o rss > /dev/null 2>&1; then
9304     ac_cv_prog_ps_ax=yes
9305     else
9306     ac_cv_prog_ps_ax=no
9307     fi
9308 gezelter 2024 if $PS -ef -o rss > /dev/null 2>&1; then
9309     ac_cv_prog_ps_ef=yes
9310 gezelter 2022 else
9311 gezelter 2024 ac_cv_prog_ps_ef=no
9312 gezelter 2022 fi
9313 gezelter 2026 if test "$ac_cv_prog_ps_ax" = yes; then
9314     ac_cv_prog_ps_syntax=BSD
9315 gezelter 2024 else
9316 gezelter 2029 if test "$ac_cv_prog_ps_ef" = yes; then
9317 gezelter 2026 ac_cv_prog_ps_syntax=POSIX
9318 gezelter 2024 else
9319 gezelter 2081 { { echo "$as_me:$LINENO: error: Could not determine ps syntax" >&5
9320 gezelter 2024 echo "$as_me: error: Could not determine ps syntax" >&2;}
9321     { (exit 1); exit 1; }; }
9322     fi
9323     fi
9324 gezelter 2022
9325     fi
9326 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_ps_syntax" >&5
9327 gezelter 2024 echo "${ECHO_T}$ac_cv_prog_ps_syntax" >&6
9328 gezelter 2022
9329 gezelter 2081
9330     cat >>confdefs.h <<_ACEOF
9331 gezelter 2027 #define PSCOMMAND $PS
9332 gezelter 2081 _ACEOF
9333 gezelter 2022
9334 gezelter 2081
9335 gezelter 2453 cat >>confdefs.h <<\_ACEOF
9336     #define OBAPI
9337     _ACEOF
9338    
9339    
9340    
9341 gezelter 2029 if test "$ac_cv_prog_ps_syntax" = BSD; then
9342 gezelter 2081 cat >>confdefs.h <<\_ACEOF
9343 gezelter 2029 #define PSTYPE_IS_BSD 1
9344 gezelter 2081 _ACEOF
9345 gezelter 2022
9346 gezelter 2029 else
9347     if test "$ac_cv_prog_ps_syntax" = POSIX; then
9348 gezelter 2081 cat >>confdefs.h <<\_ACEOF
9349 gezelter 2029 #define PSTYPE_IS_POSIX 1
9350 gezelter 2081 _ACEOF
9351 gezelter 2022
9352 gezelter 2029 else
9353 gezelter 2081 { { echo "$as_me:$LINENO: error: Unknown ps syntax type!" >&5
9354 gezelter 2029 echo "$as_me: error: Unknown ps syntax type!" >&2;}
9355     { (exit 1); exit 1; }; }
9356     fi
9357     fi
9358 gezelter 2022
9359 gezelter 2081
9360 gezelter 1490 # Check whether --with-mpi or --without-mpi was given.
9361     if test "${with_mpi+set}" = set; then
9362     withval="$with_mpi"
9363     with_mpi=$withval
9364     else
9365     with_mpi="no"
9366     fi;
9367    
9368     case "x$with_mpi" in
9369     xyes | "x") USE_MPI=yes;;
9370     xno) USE_MPI=no ;;
9371     *) MPI="$with_mpi"; USE_MPI=yes ;;
9372     esac
9373     if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then
9374     MPI="/usr/local"
9375     fi
9376     if test "$USE_MPI" = "yes"; then
9377    
9378 gezelter 2081
9379 gezelter 1490 # Set variables...
9380     MPI_LIB_DIR="$MPI/lib"
9381     MPI_INC_DIR="$MPI/include"
9382    
9383 gezelter 2081
9384    
9385     echo "$as_me:$LINENO: checking for mpi.h" >&5
9386 gezelter 1490 echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
9387     have_mpi_h=0
9388 gezelter 2265 rm -f conftest*
9389 gezelter 1490 echo '#include <mpi.h>' > conftest.cc
9390 gezelter 2265 if ${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1 ; then
9391 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
9392 gezelter 1490 echo "${ECHO_T}yes" >&6
9393     have_mpi_h=1
9394     else
9395 gezelter 2265 if test -s conftest.out ; then
9396     cat conftest.out >> config.log
9397     fi
9398 gezelter 2081 echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
9399 gezelter 1490 echo "${ECHO_T}no! Check MPI include paths" >&6
9400     USE_MPI="no"
9401     fi
9402     rm -f conftest*
9403     if test "$have_mpi_h" = 1; then
9404    
9405 gezelter 2081 cat >>confdefs.h <<\_ACEOF
9406 gezelter 1490 #define HAVE_MPI_H 1
9407 gezelter 2081 _ACEOF
9408 gezelter 1490
9409     fi
9410    
9411 gezelter 2081 echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
9412 gezelter 1490 echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
9413     have_mpif_h=0
9414     rm -f conftest*
9415     cat >conftest.f90 <<EOF
9416     program main
9417     include 'mpif.h'
9418     end
9419     EOF
9420     if $F90 -I$MPI_INC_DIR -c conftest.f90 > conftest.out 2>&1 ; then
9421 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
9422 gezelter 1490 echo "${ECHO_T}yes" >&6
9423     MPI_F90_INC="$MPI_INC_DIR"
9424     have_mpif_h=1
9425     else
9426     if test -s conftest.out ; then
9427     cat conftest.out >> config.log
9428     fi
9429 gezelter 2081 echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
9430 gezelter 1490 echo "${ECHO_T}no! Check MPI include paths" >&6
9431     USE_MPI="no"
9432     fi
9433     rm -f conftest*
9434    
9435     if test "$have_mpif_h" = 1; then
9436    
9437 gezelter 2081 cat >>confdefs.h <<\_ACEOF
9438 gezelter 1490 #define HAVE_MPIF_H 1
9439 gezelter 2081 _ACEOF
9440 gezelter 1490
9441     fi
9442    
9443     ac_ext=c
9444     ac_cpp='$CPP $CPPFLAGS'
9445     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9446     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9447     ac_compiler_gnu=$ac_cv_c_compiler_gnu
9448    
9449     ac_save_LDFLAGS=$LDFLAGS
9450     LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} "
9451    
9452     if test x = x"$MPI_LIB"; then
9453 gezelter 2081 echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
9454 gezelter 1490 echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
9455     if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
9456     echo $ECHO_N "(cached) $ECHO_C" >&6
9457     else
9458     ac_check_lib_save_LIBS=$LIBS
9459     LIBS="-lmpich $LIBS"
9460     cat >conftest.$ac_ext <<_ACEOF
9461 gezelter 2081 /* confdefs.h. */
9462     _ACEOF
9463     cat confdefs.h >>conftest.$ac_ext
9464     cat >>conftest.$ac_ext <<_ACEOF
9465     /* end confdefs.h. */
9466 gezelter 1490
9467     /* Override any gcc2 internal prototype to avoid an error. */
9468     #ifdef __cplusplus
9469     extern "C"
9470     #endif
9471     /* We use char because int might match the return type of a gcc2
9472     builtin and then its argument prototype would still apply. */
9473     char MPI_Init ();
9474     int
9475     main ()
9476     {
9477     MPI_Init ();
9478     ;
9479     return 0;
9480     }
9481     _ACEOF
9482     rm -f conftest.$ac_objext conftest$ac_exeext
9483 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9484     (eval $ac_link) 2>conftest.er1
9485 gezelter 1490 ac_status=$?
9486 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
9487     rm -f conftest.er1
9488     cat conftest.err >&5
9489     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 gezelter 1490 (exit $ac_status); } &&
9491 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
9492     || test ! -s conftest.err'
9493     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494 gezelter 1490 (eval $ac_try) 2>&5
9495     ac_status=$?
9496 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497     (exit $ac_status); }; } &&
9498     { ac_try='test -s conftest$ac_exeext'
9499     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500     (eval $ac_try) 2>&5
9501     ac_status=$?
9502     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 gezelter 1490 (exit $ac_status); }; }; then
9504     ac_cv_lib_mpich_MPI_Init=yes
9505     else
9506     echo "$as_me: failed program was:" >&5
9507 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
9508    
9509 gezelter 1490 ac_cv_lib_mpich_MPI_Init=no
9510     fi
9511 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
9512     conftest$ac_exeext conftest.$ac_ext
9513 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
9514     fi
9515 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
9516 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
9517     if test $ac_cv_lib_mpich_MPI_Init = yes; then
9518     MPI_LIB="-lmpich"
9519     fi
9520    
9521     fi
9522     if test x = x"$MPI_LIB"; then
9523 gezelter 2081 echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
9524 gezelter 1490 echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
9525     if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
9526     echo $ECHO_N "(cached) $ECHO_C" >&6
9527     else
9528     ac_check_lib_save_LIBS=$LIBS
9529     LIBS="-lmpi $LIBS"
9530     cat >conftest.$ac_ext <<_ACEOF
9531 gezelter 2081 /* confdefs.h. */
9532     _ACEOF
9533     cat confdefs.h >>conftest.$ac_ext
9534     cat >>conftest.$ac_ext <<_ACEOF
9535     /* end confdefs.h. */
9536 gezelter 1490
9537     /* Override any gcc2 internal prototype to avoid an error. */
9538     #ifdef __cplusplus
9539     extern "C"
9540     #endif
9541     /* We use char because int might match the return type of a gcc2
9542     builtin and then its argument prototype would still apply. */
9543     char MPI_Init ();
9544     int
9545     main ()
9546     {
9547     MPI_Init ();
9548     ;
9549     return 0;
9550     }
9551     _ACEOF
9552     rm -f conftest.$ac_objext conftest$ac_exeext
9553 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9554     (eval $ac_link) 2>conftest.er1
9555 gezelter 1490 ac_status=$?
9556 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
9557     rm -f conftest.er1
9558     cat conftest.err >&5
9559     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 gezelter 1490 (exit $ac_status); } &&
9561 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
9562     || test ! -s conftest.err'
9563     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564 gezelter 1490 (eval $ac_try) 2>&5
9565     ac_status=$?
9566 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567     (exit $ac_status); }; } &&
9568     { ac_try='test -s conftest$ac_exeext'
9569     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570     (eval $ac_try) 2>&5
9571     ac_status=$?
9572     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 gezelter 1490 (exit $ac_status); }; }; then
9574     ac_cv_lib_mpi_MPI_Init=yes
9575     else
9576     echo "$as_me: failed program was:" >&5
9577 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
9578    
9579 gezelter 1490 ac_cv_lib_mpi_MPI_Init=no
9580     fi
9581 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
9582     conftest$ac_exeext conftest.$ac_ext
9583 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
9584     fi
9585 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
9586 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
9587     if test $ac_cv_lib_mpi_MPI_Init = yes; then
9588     MPI_LIB="-lmpi"
9589     fi
9590    
9591     fi
9592     $as_unset ac_cv_lib_mpi_MPI_Init
9593     if test x = x"$MPI_LIB"; then
9594 gezelter 2081 echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
9595 gezelter 1490 echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
9596     if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
9597     echo $ECHO_N "(cached) $ECHO_C" >&6
9598     else
9599     ac_check_lib_save_LIBS=$LIBS
9600     LIBS="-lmpi "-llam" $LIBS"
9601     cat >conftest.$ac_ext <<_ACEOF
9602 gezelter 2081 /* confdefs.h. */
9603     _ACEOF
9604     cat confdefs.h >>conftest.$ac_ext
9605     cat >>conftest.$ac_ext <<_ACEOF
9606     /* end confdefs.h. */
9607 gezelter 1490
9608     /* Override any gcc2 internal prototype to avoid an error. */
9609     #ifdef __cplusplus
9610     extern "C"
9611     #endif
9612     /* We use char because int might match the return type of a gcc2
9613     builtin and then its argument prototype would still apply. */
9614     char MPI_Init ();
9615     int
9616     main ()
9617     {
9618     MPI_Init ();
9619     ;
9620     return 0;
9621     }
9622     _ACEOF
9623     rm -f conftest.$ac_objext conftest$ac_exeext
9624 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9625     (eval $ac_link) 2>conftest.er1
9626 gezelter 1490 ac_status=$?
9627 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
9628     rm -f conftest.er1
9629     cat conftest.err >&5
9630     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 gezelter 1490 (exit $ac_status); } &&
9632 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
9633     || test ! -s conftest.err'
9634     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635 gezelter 1490 (eval $ac_try) 2>&5
9636     ac_status=$?
9637 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638     (exit $ac_status); }; } &&
9639     { ac_try='test -s conftest$ac_exeext'
9640     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641     (eval $ac_try) 2>&5
9642     ac_status=$?
9643     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 gezelter 1490 (exit $ac_status); }; }; then
9645     ac_cv_lib_mpi_MPI_Init=yes
9646     else
9647     echo "$as_me: failed program was:" >&5
9648 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
9649    
9650 gezelter 1490 ac_cv_lib_mpi_MPI_Init=no
9651     fi
9652 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
9653     conftest$ac_exeext conftest.$ac_ext
9654 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
9655     fi
9656 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
9657 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
9658     if test $ac_cv_lib_mpi_MPI_Init = yes; then
9659     MPI_LIB="-lmpi -llam"
9660     fi
9661    
9662     fi
9663 chuckv 1619 $as_unset ac_cv_lib_mpich_MPI_Init
9664     if test x = x"$MPI_LIB"; then
9665 gezelter 2081 echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
9666 chuckv 1619 echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
9667     if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
9668     echo $ECHO_N "(cached) $ECHO_C" >&6
9669     else
9670     ac_check_lib_save_LIBS=$LIBS
9671     LIBS="-lmpich "-lpmpich" $LIBS"
9672     cat >conftest.$ac_ext <<_ACEOF
9673 gezelter 2081 /* confdefs.h. */
9674     _ACEOF
9675     cat confdefs.h >>conftest.$ac_ext
9676     cat >>conftest.$ac_ext <<_ACEOF
9677     /* end confdefs.h. */
9678 gezelter 1490
9679 chuckv 1619 /* Override any gcc2 internal prototype to avoid an error. */
9680     #ifdef __cplusplus
9681     extern "C"
9682     #endif
9683     /* We use char because int might match the return type of a gcc2
9684     builtin and then its argument prototype would still apply. */
9685     char MPI_Init ();
9686     int
9687     main ()
9688     {
9689     MPI_Init ();
9690     ;
9691     return 0;
9692     }
9693     _ACEOF
9694     rm -f conftest.$ac_objext conftest$ac_exeext
9695 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9696     (eval $ac_link) 2>conftest.er1
9697 chuckv 1619 ac_status=$?
9698 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
9699     rm -f conftest.er1
9700     cat conftest.err >&5
9701     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 chuckv 1619 (exit $ac_status); } &&
9703 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
9704     || test ! -s conftest.err'
9705     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706 chuckv 1619 (eval $ac_try) 2>&5
9707     ac_status=$?
9708 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709     (exit $ac_status); }; } &&
9710     { ac_try='test -s conftest$ac_exeext'
9711     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712     (eval $ac_try) 2>&5
9713     ac_status=$?
9714     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 chuckv 1619 (exit $ac_status); }; }; then
9716     ac_cv_lib_mpich_MPI_Init=yes
9717     else
9718     echo "$as_me: failed program was:" >&5
9719 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
9720    
9721 chuckv 1619 ac_cv_lib_mpich_MPI_Init=no
9722     fi
9723 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
9724     conftest$ac_exeext conftest.$ac_ext
9725 chuckv 1619 LIBS=$ac_check_lib_save_LIBS
9726     fi
9727 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
9728 chuckv 1619 echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
9729     if test $ac_cv_lib_mpich_MPI_Init = yes; then
9730     MPI_LIB="-lmpich -lpmpich"
9731     fi
9732    
9733     fi
9734    
9735 gezelter 1490 $as_unset ac_cv_lib_mpi_MPI_Init
9736     if test x = x"$MPI_LIB"; then
9737 gezelter 2081 echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
9738 gezelter 1490 echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
9739     if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
9740     echo $ECHO_N "(cached) $ECHO_C" >&6
9741     else
9742     ac_check_lib_save_LIBS=$LIBS
9743     LIBS="-lmpi -llam -lpthread $LIBS"
9744     cat >conftest.$ac_ext <<_ACEOF
9745 gezelter 2081 /* confdefs.h. */
9746     _ACEOF
9747     cat confdefs.h >>conftest.$ac_ext
9748     cat >>conftest.$ac_ext <<_ACEOF
9749     /* end confdefs.h. */
9750 gezelter 1490
9751     /* Override any gcc2 internal prototype to avoid an error. */
9752     #ifdef __cplusplus
9753     extern "C"
9754     #endif
9755     /* We use char because int might match the return type of a gcc2
9756     builtin and then its argument prototype would still apply. */
9757     char MPI_Init ();
9758     int
9759     main ()
9760     {
9761     MPI_Init ();
9762     ;
9763     return 0;
9764     }
9765     _ACEOF
9766     rm -f conftest.$ac_objext conftest$ac_exeext
9767 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9768     (eval $ac_link) 2>conftest.er1
9769 gezelter 1490 ac_status=$?
9770 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
9771     rm -f conftest.er1
9772     cat conftest.err >&5
9773     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 gezelter 1490 (exit $ac_status); } &&
9775 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
9776     || test ! -s conftest.err'
9777     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778 gezelter 1490 (eval $ac_try) 2>&5
9779     ac_status=$?
9780 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781     (exit $ac_status); }; } &&
9782     { ac_try='test -s conftest$ac_exeext'
9783     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784     (eval $ac_try) 2>&5
9785     ac_status=$?
9786     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 gezelter 1490 (exit $ac_status); }; }; then
9788     ac_cv_lib_mpi_MPI_Init=yes
9789     else
9790     echo "$as_me: failed program was:" >&5
9791 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
9792    
9793 gezelter 1490 ac_cv_lib_mpi_MPI_Init=no
9794     fi
9795 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
9796     conftest$ac_exeext conftest.$ac_ext
9797 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
9798     fi
9799 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
9800 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
9801     if test $ac_cv_lib_mpi_MPI_Init = yes; then
9802     MPI_LIB="-lmpi -llam -lpthread"
9803     else
9804    
9805 gezelter 2081 { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
9806 gezelter 1490 echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
9807     { (exit 1); exit 1; }; }
9808     USE_MPI="no"
9809    
9810     fi
9811    
9812     fi
9813    
9814 gezelter 2081
9815    
9816     echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
9817 gezelter 1490 echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6
9818     MPI_F90_LIB=""
9819     if test -f "$MPI_LIB_DIR/libfmpich.a" ; then
9820     MPI_F90_LIB="-lfmpich"
9821     elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then
9822     MPI_F90_LIB="-llamf77mpi"
9823     else
9824     MPI_F90_LIB=" "
9825     fi
9826 gezelter 2081 echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5
9827 gezelter 1490 echo "${ECHO_T}found $MPI_F90_LIB" >&6
9828    
9829    
9830     fi
9831    
9832    
9833    
9834    
9835 gezelter 2190 USE_CGAL=no
9836     cgal_makefile=auto
9837 gezelter 1490
9838 gezelter 2190 # Check whether --with-cgal-makefile or --without-cgal-makefile was given.
9839     if test "${with_cgal_makefile+set}" = set; then
9840     withval="$with_cgal_makefile"
9841     cgal_makefile="$withval"
9842     fi;
9843    
9844     if test "x$cgal_makefile" != xno; then
9845    
9846     if test "x$cgal_makefile" = xauto -a "x$CGAL_MAKEFILE" != x; then
9847     cgal_makefile="$CGAL_MAKEFILE"
9848     fi
9849    
9850 gezelter 2203 echo "$as_me:$LINENO: checking for cgal_makefile: $cgal_makefile" >&5
9851     echo $ECHO_N "checking for cgal_makefile: $cgal_makefile... $ECHO_C" >&6
9852 gezelter 2190
9853     if test -f "$cgal_makefile"; then
9854    
9855     cat >config.tmp.Makefile <<EOF
9856     include $cgal_makefile
9857     default:
9858     @echo CGAL_OS_COMPILER=\"\${CGAL_OS_COMPILER}\" >config.tmp.cgalvariables
9859     @echo CGAL_INCLDIR=\"\${CGAL_INCL_DIR}\" >>config.tmp.cgalvariables
9860     @echo CGAL_INCLCONFDIR=\"\${CGAL_INCL_CONF_DIR}\" >>config.tmp.cgalvariables
9861     @echo CGAL_LIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables
9862     @echo CGAL_RLIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables
9863     @echo CGAL_CXXFLAGS=\"\${CGAL_CXXFLAGS}\" >>config.tmp.cgalvariables
9864     @echo GMP_INCLDIR=\"\${GMP_INCL_DIR}\" >>config.tmp.cgalvariables
9865     @echo GMP_LIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables
9866     @echo GMP_RLIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables
9867     @echo LEDA_INCLDIR=\"\${LEDA_INCL_DIR}\" >>config.tmp.cgalvariables
9868     @echo LEDA_LIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables
9869     @echo LEDA_RLIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables
9870     EOF
9871    
9872     make -s -f config.tmp.Makefile
9873     . config.tmp.cgalvariables
9874    
9875     rm -f config.tmp.Makefile config.tmp.cgalvariables
9876    
9877     if test "x$CGAL_INCLDIR" = "x"; then
9878     CGAL_INCLDIR=""
9879     fi
9880    
9881     if test "x$CGAL_LIBDIR" = "x"; then
9882     CGAL_LIBDIR=""
9883     fi
9884    
9885     if test "x$CGAL_RLIBDIR" = "x"; then
9886     CGAL_RLIBDIR=""
9887     fi
9888    
9889     if test "x$LEDA_INCLDIR" = "x"; then
9890     LEDA_INCLDIR=""
9891     fi
9892    
9893     if test "x$LEDA_LIBDIR" = "x"; then
9894     LEDA_LIBDIR=""
9895     fi
9896    
9897     if test "x$LEDA_RLIBDIR" = "x"; then
9898     LEDA_RLIBDIR=""
9899     fi
9900    
9901     if test "x$GMP_INCLDIR" = "x"; then
9902     GMP_INCLDIR=""
9903     fi
9904    
9905     if test "x$GMP_LIBDIR" = "x"; then
9906     GMP_LIBDIR=""
9907     fi
9908    
9909     if test "x$GMP_RLIBDIR" = "x"; then
9910     GMP_RLIBDIR=""
9911     fi
9912    
9913 gezelter 2203 echo "$as_me:$LINENO: result: CGAL_OS_COMPILER= $CGAL_OS_COMPILER" >&5
9914     echo "${ECHO_T}CGAL_OS_COMPILER= $CGAL_OS_COMPILER" >&6
9915     echo "$as_me:$LINENO: result: CGAL_INCLDIR= $CGAL_INCLDIR" >&5
9916     echo "${ECHO_T}CGAL_INCLDIR= $CGAL_INCLDIR" >&6
9917     echo "$as_me:$LINENO: result: CGAL_INCLCONFDIR= $CGAL_INCLCONFDIR" >&5
9918     echo "${ECHO_T}CGAL_INCLCONFDIR= $CGAL_INCLCONFDIR" >&6
9919     echo "$as_me:$LINENO: result: CGAL_LIBDIR= $CGAL_LIBDIR" >&5
9920     echo "${ECHO_T}CGAL_LIBDIR= $CGAL_LIBDIR" >&6
9921     echo "$as_me:$LINENO: result: CGAL_CXXFLAGS= $CGAL_CXXFLAGS" >&5
9922     echo "${ECHO_T}CGAL_CXXFLAGS= $CGAL_CXXFLAGS" >&6
9923     echo "$as_me:$LINENO: result: LEDA_INCLDIR= $LEDA_INCLDIR" >&5
9924     echo "${ECHO_T}LEDA_INCLDIR= $LEDA_INCLDIR" >&6
9925     echo "$as_me:$LINENO: result: LEDA_LIBDIR= $LEDA_LIBDIR" >&5
9926     echo "${ECHO_T}LEDA_LIBDIR= $LEDA_LIBDIR" >&6
9927     echo "$as_me:$LINENO: result: GMP_INCLDIR= $GMP_INCLDIR" >&5
9928     echo "${ECHO_T}GMP_INCLDIR= $GMP_INCLDIR" >&6
9929     echo "$as_me:$LINENO: result: GMP_LIBDIR= $GMP_LIBDIR" >&5
9930     echo "${ECHO_T}GMP_LIBDIR= $GMP_LIBDIR" >&6
9931 gezelter 2190
9932     ac_ext=cc
9933     ac_cpp='$CXXCPP $CPPFLAGS'
9934     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9935     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9936     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9937    
9938     save_CXXFLAGS="$CXXFLAGS"
9939     CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR"
9940 gezelter 2453 if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
9941 gezelter 2190 echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5
9942     echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6
9943     if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
9944     echo $ECHO_N "(cached) $ECHO_C" >&6
9945     fi
9946     echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5
9947     echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6
9948     else
9949     # Is the header compilable?
9950     echo "$as_me:$LINENO: checking CGAL/Cartesian.h usability" >&5
9951     echo $ECHO_N "checking CGAL/Cartesian.h usability... $ECHO_C" >&6
9952     cat >conftest.$ac_ext <<_ACEOF
9953     /* confdefs.h. */
9954     _ACEOF
9955     cat confdefs.h >>conftest.$ac_ext
9956     cat >>conftest.$ac_ext <<_ACEOF
9957     /* end confdefs.h. */
9958     $ac_includes_default
9959     #include <CGAL/Cartesian.h>
9960     _ACEOF
9961     rm -f conftest.$ac_objext
9962     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9963     (eval $ac_compile) 2>conftest.er1
9964     ac_status=$?
9965     grep -v '^ *+' conftest.er1 >conftest.err
9966     rm -f conftest.er1
9967     cat conftest.err >&5
9968     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969     (exit $ac_status); } &&
9970     { ac_try='test -z "$ac_cxx_werror_flag"
9971     || test ! -s conftest.err'
9972     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973     (eval $ac_try) 2>&5
9974     ac_status=$?
9975     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976     (exit $ac_status); }; } &&
9977     { ac_try='test -s conftest.$ac_objext'
9978     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979     (eval $ac_try) 2>&5
9980     ac_status=$?
9981     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982     (exit $ac_status); }; }; then
9983     ac_header_compiler=yes
9984     else
9985     echo "$as_me: failed program was:" >&5
9986     sed 's/^/| /' conftest.$ac_ext >&5
9987    
9988     ac_header_compiler=no
9989     fi
9990     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9991     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9992     echo "${ECHO_T}$ac_header_compiler" >&6
9993    
9994     # Is the header present?
9995     echo "$as_me:$LINENO: checking CGAL/Cartesian.h presence" >&5
9996     echo $ECHO_N "checking CGAL/Cartesian.h presence... $ECHO_C" >&6
9997     cat >conftest.$ac_ext <<_ACEOF
9998     /* confdefs.h. */
9999     _ACEOF
10000     cat confdefs.h >>conftest.$ac_ext
10001     cat >>conftest.$ac_ext <<_ACEOF
10002     /* end confdefs.h. */
10003     #include <CGAL/Cartesian.h>
10004     _ACEOF
10005     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10006     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10007     ac_status=$?
10008     grep -v '^ *+' conftest.er1 >conftest.err
10009     rm -f conftest.er1
10010     cat conftest.err >&5
10011     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012     (exit $ac_status); } >/dev/null; then
10013     if test -s conftest.err; then
10014     ac_cpp_err=$ac_cxx_preproc_warn_flag
10015     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10016     else
10017     ac_cpp_err=
10018     fi
10019     else
10020     ac_cpp_err=yes
10021     fi
10022     if test -z "$ac_cpp_err"; then
10023     ac_header_preproc=yes
10024     else
10025     echo "$as_me: failed program was:" >&5
10026     sed 's/^/| /' conftest.$ac_ext >&5
10027    
10028     ac_header_preproc=no
10029     fi
10030     rm -f conftest.err conftest.$ac_ext
10031     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10032     echo "${ECHO_T}$ac_header_preproc" >&6
10033    
10034     # So? What about this header?
10035     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10036     yes:no: )
10037     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&5
10038     echo "$as_me: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10039     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&5
10040     echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&2;}
10041     ac_header_preproc=yes
10042     ;;
10043     no:yes:* )
10044     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&5
10045     echo "$as_me: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&2;}
10046     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: check for missing prerequisite headers?" >&5
10047     echo "$as_me: WARNING: CGAL/Cartesian.h: check for missing prerequisite headers?" >&2;}
10048     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&5
10049     echo "$as_me: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&2;}
10050     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: section \"Present But Cannot Be Compiled\"" >&5
10051     echo "$as_me: WARNING: CGAL/Cartesian.h: section \"Present But Cannot Be Compiled\"" >&2;}
10052     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&5
10053     echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&2;}
10054     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&5
10055     echo "$as_me: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&2;}
10056     (
10057     cat <<\_ASBOX
10058     ## ------------------------------ ##
10059     ## Report this to gezelter@nd.edu ##
10060     ## ------------------------------ ##
10061     _ASBOX
10062     ) |
10063     sed "s/^/$as_me: WARNING: /" >&2
10064     ;;
10065     esac
10066     echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5
10067     echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6
10068     if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
10069     echo $ECHO_N "(cached) $ECHO_C" >&6
10070     else
10071     ac_cv_header_CGAL_Cartesian_h=$ac_header_preproc
10072     fi
10073     echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5
10074     echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6
10075    
10076     fi
10077     if test $ac_cv_header_CGAL_Cartesian_h = yes; then
10078     cgal=yes
10079     else
10080     cgal=no
10081     fi
10082    
10083    
10084     CXXFLAGS="$save_CXXFLAGS"
10085    
10086     if test "x$cgal" = xyes; then
10087     echo "$as_me:$LINENO: checking for CGAL version" >&5
10088     echo $ECHO_N "checking for CGAL version... $ECHO_C" >&6
10089     LOCATION=${CGAL_INCLDIR}
10090     LOCATION=${LOCATION:-/usr/include}
10091     if test -f $LOCATION/CGAL/version.h; then
10092     CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/version.h | sed 's/[^0-9\.]*//g'`
10093     else
10094     CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/config.h | sed 's/[^0-9\.]*//g'`
10095     fi
10096     if echo $CGAL_VERSION | grep -q "^[3456789]"; then
10097     echo "$as_me:$LINENO: result: ($CGAL_VERSION) yes" >&5
10098     echo "${ECHO_T}($CGAL_VERSION) yes" >&6
10099     else
10100     echo "$as_me:$LINENO: result: ($CGAL_VERSION) no" >&5
10101     echo "${ECHO_T}($CGAL_VERSION) no" >&6
10102     cgal=no
10103     fi
10104     fi
10105    
10106     if test "x$cgal" = xyes; then
10107     CGAL_LIBS="-lCGAL"
10108     echo "$as_me:$LINENO: checking whether CGAL uses LEDA" >&5
10109     echo $ECHO_N "checking whether CGAL uses LEDA... $ECHO_C" >&6
10110     if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_LEDA; then
10111     CGAL_USES_LEDA=yes
10112     echo "$as_me:$LINENO: result: yes" >&5
10113     echo "${ECHO_T}yes" >&6
10114     CGAL_DEFINES="-DCGAL_USE_LEDA -DLEDA_PREFIX"
10115     else
10116     echo "$as_me:$LINENO: result: no" >&5
10117     echo "${ECHO_T}no" >&6
10118     CGAL_USES_LEDA=no
10119     fi
10120    
10121     echo "$as_me:$LINENO: checking whether CGAL uses GMP" >&5
10122     echo $ECHO_N "checking whether CGAL uses GMP... $ECHO_C" >&6
10123     if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_GMP; then
10124     CGAL_USES_GMP=yes
10125     echo "$as_me:$LINENO: result: yes" >&5
10126     echo "${ECHO_T}yes" >&6
10127     CGAL_DEFINES="-DCGAL_USE_GMP $CGAL_DEFINES"
10128     else
10129     echo "$as_me:$LINENO: result: no" >&5
10130     echo "${ECHO_T}no" >&6
10131     CGAL_USES_GMP=no
10132     fi
10133    
10134     CGAL_LIBS="$CGAL_LIBS -lm"
10135    
10136     CGAL_CXXFLAGS="-ftemplate-depth-50"
10137    
10138 gezelter 2203 echo "$as_me:$LINENO: result: CGAL_USES_LEDA= $CGAL_USES_LEDA" >&5
10139     echo "${ECHO_T}CGAL_USES_LEDA= $CGAL_USES_LEDA" >&6
10140     echo "$as_me:$LINENO: result: CGAL_USES_GMP = $CGAL_USES_GMP" >&5
10141     echo "${ECHO_T}CGAL_USES_GMP = $CGAL_USES_GMP" >&6
10142     echo "$as_me:$LINENO: result: CGAL_INCLDIR = $CGAL_INCLDIR" >&5
10143     echo "${ECHO_T}CGAL_INCLDIR = $CGAL_INCLDIR" >&6
10144     echo "$as_me:$LINENO: result: CGAL_LIBDIR = $CGAL_LIBDIR" >&5
10145     echo "${ECHO_T}CGAL_LIBDIR = $CGAL_LIBDIR" >&6
10146     echo "$as_me:$LINENO: result: CGAL_DEFINES = $CGAL_DEFINES" >&5
10147     echo "${ECHO_T}CGAL_DEFINES = $CGAL_DEFINES" >&6
10148     echo "$as_me:$LINENO: result: CGAL_CXXFLAGS = $CGAL_CXXFLAGS" >&5
10149     echo "${ECHO_T}CGAL_CXXFLAGS = $CGAL_CXXFLAGS" >&6
10150     echo "$as_me:$LINENO: result: CGAL_LIBS = $CGAL_LIBS" >&5
10151     echo "${ECHO_T}CGAL_LIBS = $CGAL_LIBS" >&6
10152 gezelter 2190 fi
10153    
10154     if test "x$cgal" = xyes; then
10155     save_LIBS="$LIBS"
10156     LIBS="$LIBS -L$CGAL_LIBDIR"
10157     if test "x$CGAL_USES_LEDA" = xyes; then
10158     LIBS="-lL $LIBS -L$LEDA_LIBDIR"
10159     fi
10160     # if test "x$CGAL_USES_GMP" = xyes; then
10161     # LIBS="-lgmp $LIBS $GMP_LIBDIR"
10162     # fi
10163     echo "$as_me:$LINENO: checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL" >&5
10164     echo $ECHO_N "checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL... $ECHO_C" >&6
10165     save_CXXFLAGS_CHECK_CXX_LIB="$CXXFLAGS"
10166     CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR"
10167     save_LIBS_CHECK_CXX_LIB="$LIBS"
10168     LIBS="-lCGAL $LIBS"
10169     cat >conftest.$ac_ext <<_ACEOF
10170     /* confdefs.h. */
10171     _ACEOF
10172     cat confdefs.h >>conftest.$ac_ext
10173     cat >>conftest.$ac_ext <<_ACEOF
10174     /* end confdefs.h. */
10175     #include <CGAL/Cartesian.h>
10176     int
10177     main ()
10178     {
10179     ::CGAL::Cartesian<int>::Point_2 P
10180     ;
10181     return 0;
10182     }
10183     _ACEOF
10184     rm -f conftest.$ac_objext conftest$ac_exeext
10185     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10186     (eval $ac_link) 2>conftest.er1
10187     ac_status=$?
10188     grep -v '^ *+' conftest.er1 >conftest.err
10189     rm -f conftest.er1
10190     cat conftest.err >&5
10191     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192     (exit $ac_status); } &&
10193     { ac_try='test -z "$ac_cxx_werror_flag"
10194     || test ! -s conftest.err'
10195     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196     (eval $ac_try) 2>&5
10197     ac_status=$?
10198     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199     (exit $ac_status); }; } &&
10200     { ac_try='test -s conftest$ac_exeext'
10201     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202     (eval $ac_try) 2>&5
10203     ac_status=$?
10204     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205     (exit $ac_status); }; }; then
10206     echo "$as_me:$LINENO: result: yes" >&5
10207     echo "${ECHO_T}yes" >&6
10208     cgal=yes
10209     else
10210     echo "$as_me: failed program was:" >&5
10211     sed 's/^/| /' conftest.$ac_ext >&5
10212    
10213     echo "$as_me:$LINENO: result: no" >&5
10214     echo "${ECHO_T}no" >&6
10215     cgal=no
10216     fi
10217     rm -f conftest.err conftest.$ac_objext \
10218     conftest$ac_exeext conftest.$ac_ext
10219     CXXFLAGS="$save_CXXFLAGS_CHECK_CXX_LIB"
10220     LIBS="$save_LIBS_CHECK_CXX_LIB"
10221     LIBS="$save_LIBS"
10222     fi
10223    
10224     fi
10225     ac_ext=c
10226     ac_cpp='$CPP $CPPFLAGS'
10227     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10228     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10229     ac_compiler_gnu=$ac_cv_c_compiler_gnu
10230    
10231    
10232     fi
10233    
10234     if test "x$cgal" = xyes; then
10235     USE_CGAL=yes
10236    
10237     cat >>confdefs.h <<\_ACEOF
10238     #define HAVE_CGAL 1
10239     _ACEOF
10240    
10241    
10242     cat >>confdefs.h <<_ACEOF
10243     #define CGAL_VERSION $CGAL_VERSION
10244     _ACEOF
10245    
10246     if ! echo $CGAL_VERSION | grep -q "^3.0"; then
10247     { echo "$as_me:$LINENO: WARNING: *****************************************************" >&5
10248     echo "$as_me: WARNING: *****************************************************" >&2;}
10249     { echo "$as_me:$LINENO: WARNING: *** Warning: Your CGAL version is newer than the ***" >&5
10250     echo "$as_me: WARNING: *** Warning: Your CGAL version is newer than the ***" >&2;}
10251     { echo "$as_me:$LINENO: WARNING: *** supported versions. It may still work though. ***" >&5
10252     echo "$as_me: WARNING: *** supported versions. It may still work though. ***" >&2;}
10253     { echo "$as_me:$LINENO: WARNING: *****************************************************" >&5
10254     echo "$as_me: WARNING: *****************************************************" >&2;}
10255     fi
10256     else
10257     if test "x$cgal_makefile" != xno; then
10258 gezelter 2203 echo "$as_me:$LINENO: result: No CGAL support. These are not the droids you want." >&5
10259     echo "${ECHO_T}No CGAL support. These are not the droids you want." >&6
10260 gezelter 2190 fi
10261     CGAL_INCLDIR=
10262     CGAL_LIBDIR=
10263     CGAL_RLIBDIR=
10264     CGAL_DEFINES=
10265     CGAL_CXXFLAGS=
10266     CGAL_LIBS=
10267     fi
10268    
10269    
10270     CGAL_INC_DIR="${CGAL_INCLDIR} ${CGAL_INCLCONFDIR}"
10271    
10272     CGAL_LIB_DIR=${CGAL_LIBDIR}
10273    
10274     CGAL_RLIB_DIR=${CGAL_RLIBDIR}
10275    
10276    
10277    
10278    
10279    
10280    
10281    
10282 gezelter 1540 # Check whether --enable-doxygen or --disable-doxygen was given.
10283     if test "${enable_doxygen+set}" = set; then
10284     enableval="$enable_doxygen"
10285 gezelter 1490
10286 gezelter 1540 fi;
10287     # Check whether --enable-dot or --disable-dot was given.
10288     if test "${enable_dot+set}" = set; then
10289     enableval="$enable_dot"
10290 gezelter 1490
10291 gezelter 1540 fi;
10292     # Check whether --enable-html-docs or --disable-html-docs was given.
10293     if test "${enable_html_docs+set}" = set; then
10294     enableval="$enable_html_docs"
10295    
10296     else
10297     enable_html_docs=yes
10298     fi;
10299     # Check whether --enable-latex-docs or --disable-latex-docs was given.
10300     if test "${enable_latex_docs+set}" = set; then
10301     enableval="$enable_latex_docs"
10302    
10303     else
10304     enable_latex_docs=no
10305     fi;
10306     if test "x$enable_doxygen" = xno; then
10307     enable_doc=no
10308     else
10309     # Extract the first word of "doxygen", so it can be a program name with args.
10310     set dummy doxygen; ac_word=$2
10311 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
10312 gezelter 1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10313     if test "${ac_cv_path_DOXYGEN+set}" = set; then
10314     echo $ECHO_N "(cached) $ECHO_C" >&6
10315     else
10316     case $DOXYGEN in
10317     [\\/]* | ?:[\\/]*)
10318     ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
10319     ;;
10320     *)
10321 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322     for as_dir in $PATH
10323     do
10324     IFS=$as_save_IFS
10325     test -z "$as_dir" && as_dir=.
10326     for ac_exec_ext in '' $ac_executable_extensions; do
10327     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10328     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
10329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10330     break 2
10331     fi
10332 gezelter 1540 done
10333 gezelter 2081 done
10334 gezelter 1540
10335     ;;
10336     esac
10337     fi
10338     DOXYGEN=$ac_cv_path_DOXYGEN
10339    
10340     if test -n "$DOXYGEN"; then
10341 gezelter 2081 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
10342 gezelter 1540 echo "${ECHO_T}$DOXYGEN" >&6
10343     else
10344 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
10345 gezelter 1540 echo "${ECHO_T}no" >&6
10346     fi
10347    
10348     if test "x$DOXYGEN" = x; then
10349     if test "x$enable_doxygen" = xyes; then
10350 gezelter 2081 { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
10351 gezelter 1540 echo "$as_me: error: could not find doxygen" >&2;}
10352     { (exit 1); exit 1; }; }
10353     fi
10354     enable_doc=no
10355     else
10356     enable_doc=yes
10357     # Extract the first word of "dot", so it can be a program name with args.
10358     set dummy dot; ac_word=$2
10359 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
10360 gezelter 1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10361     if test "${ac_cv_path_DOT+set}" = set; then
10362     echo $ECHO_N "(cached) $ECHO_C" >&6
10363     else
10364     case $DOT in
10365     [\\/]* | ?:[\\/]*)
10366     ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
10367     ;;
10368     *)
10369 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10370     for as_dir in $PATH
10371     do
10372     IFS=$as_save_IFS
10373     test -z "$as_dir" && as_dir=.
10374     for ac_exec_ext in '' $ac_executable_extensions; do
10375     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10376     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
10377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10378     break 2
10379     fi
10380 gezelter 1540 done
10381 gezelter 2081 done
10382 gezelter 1540
10383     ;;
10384     esac
10385     fi
10386     DOT=$ac_cv_path_DOT
10387    
10388     if test -n "$DOT"; then
10389 gezelter 2081 echo "$as_me:$LINENO: result: $DOT" >&5
10390 gezelter 1540 echo "${ECHO_T}$DOT" >&6
10391     else
10392 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
10393 gezelter 1540 echo "${ECHO_T}no" >&6
10394     fi
10395    
10396     fi
10397     fi
10398    
10399     if test "x$enable_doc" = xyes; then
10400     DOC=1
10401     else
10402     DOC=0
10403     fi
10404    
10405 gezelter 2081
10406 gezelter 1540 if test x$DOT = x; then
10407     if test "x$enable_dot" = xyes; then
10408 gezelter 2081 { { echo "$as_me:$LINENO: error: could not find dot" >&5
10409 gezelter 1540 echo "$as_me: error: could not find dot" >&2;}
10410     { (exit 1); exit 1; }; }
10411     fi
10412     enable_dot=no
10413     else
10414     enable_dot=yes
10415     fi
10416    
10417 gezelter 2081
10418    
10419    
10420    
10421    
10422    
10423 gezelter 1490 OBJEXT=".$OBJEXT"
10424    
10425     OOPSE=oopse
10426    
10427     if test "x${prefix}" = "xNONE"
10428     then
10429     OOPSE_HOME=${ac_default_prefix}/oopse
10430     else
10431     OOPSE_HOME=${prefix}/oopse
10432     fi
10433     # Check whether --enable-oopse-home or --disable-oopse-home was given.
10434     if test "${enable_oopse_home+set}" = set; then
10435     enableval="$enable_oopse_home"
10436     OOPSE_HOME="${enableval}"
10437     fi;
10438    
10439     case "x$INSTALL" in
10440     x/*) ;;
10441     *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
10442     esac
10443    
10444     MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
10445    
10446     CFLAGS=${CFLAGS-""}
10447     CXXFLAGS=${CXXFLAGS-""}
10448     CPPFLAGS=${CPPFLAGS-""}
10449     FFLAGS=${FFLAGS-""}
10450     F90FLAGS=${F90FLAGS-""}
10451     LDFLAGS=${LDFLAGS-""}
10452     DEBUG=${DEBUG-"-g"}
10453    
10454     case $debug in
10455     1)
10456     FFLAGS="$DEBUG $FFLAGS"
10457     F90FLAGS="$DEBUG $F90FLAGS"
10458     ;;
10459     *)
10460     ;;
10461     esac
10462    
10463    
10464    
10465 gezelter 2081
10466    
10467    
10468    
10469    
10470    
10471    
10472    
10473    
10474    
10475    
10476    
10477    
10478    
10479    
10480     ac_config_headers="$ac_config_headers src/config.h"
10481    
10482 gezelter 2199 ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/applications/nanoRodBuilder/Makefile scripts/filepp"
10483 gezelter 2081
10484    
10485 gezelter 1490 cat >confcache <<\_ACEOF
10486     # This file is a shell script that caches the results of configure
10487     # tests run on this system so they can be shared between configure
10488     # scripts and configure runs, see configure's option --config-cache.
10489     # It is not useful on other systems. If it contains results you don't
10490     # want to keep, you may remove or edit it.
10491     #
10492     # config.status only pays attention to the cache file if you give it
10493     # the --recheck option to rerun configure.
10494     #
10495 gezelter 2081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10496 gezelter 1490 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10497     # following values.
10498    
10499     _ACEOF
10500    
10501     # The following way of writing the cache mishandles newlines in values,
10502     # but we know of no workaround that is simple, portable, and efficient.
10503     # So, don't put newlines in cache variables' values.
10504     # Ultrix sh set writes to stderr and can't be redirected directly,
10505     # and sets the high bit in the cache file unless we assign to the vars.
10506     {
10507     (set) 2>&1 |
10508     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10509     *ac_space=\ *)
10510     # `set' does not quote correctly, so add quotes (double-quote
10511     # substitution turns \\\\ into \\, and sed turns \\ into \).
10512     sed -n \
10513 gezelter 2081 "s/'/'\\\\''/g;
10514     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10515 gezelter 1490 ;;
10516     *)
10517     # `set' quotes correctly as required by POSIX, so do not add quotes.
10518     sed -n \
10519 gezelter 2081 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10520 gezelter 1490 ;;
10521     esac;
10522     } |
10523     sed '
10524     t clear
10525     : clear
10526     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10527     t end
10528     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10529     : end' >>confcache
10530 gezelter 2081 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10531 gezelter 1490 if test -w $cache_file; then
10532     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10533     cat confcache >$cache_file
10534     else
10535     echo "not updating unwritable cache $cache_file"
10536     fi
10537     fi
10538     rm -f confcache
10539    
10540     test "x$prefix" = xNONE && prefix=$ac_default_prefix
10541     # Let make expand exec_prefix.
10542     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10543    
10544     # VPATH may cause trouble with some makes, so we remove $(srcdir),
10545     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10546     # trailing colons and then remove the whole line if VPATH becomes empty
10547     # (actually we leave an empty line to preserve line numbers).
10548     if test "x$srcdir" = x.; then
10549 gezelter 2081 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10550 gezelter 1490 s/:*\$(srcdir):*/:/;
10551     s/:*\${srcdir}:*/:/;
10552     s/:*@srcdir@:*/:/;
10553 gezelter 2081 s/^\([^=]*=[ ]*\):*/\1/;
10554 gezelter 1490 s/:*$//;
10555 gezelter 2081 s/^[^=]*=[ ]*$//;
10556 gezelter 1490 }'
10557     fi
10558    
10559     DEFS=-DHAVE_CONFIG_H
10560    
10561 gezelter 2081 ac_libobjs=
10562     ac_ltlibobjs=
10563     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10564     # 1. Remove the extension, and $U if already installed.
10565     ac_i=`echo "$ac_i" |
10566     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10567     # 2. Add them.
10568     ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10569     ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10570     done
10571     LIBOBJS=$ac_libobjs
10572    
10573     LTLIBOBJS=$ac_ltlibobjs
10574    
10575    
10576    
10577 gezelter 1490 : ${CONFIG_STATUS=./config.status}
10578     ac_clean_files_save=$ac_clean_files
10579     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10580 gezelter 2081 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10581 gezelter 1490 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10582     cat >$CONFIG_STATUS <<_ACEOF
10583     #! $SHELL
10584 gezelter 2081 # Generated by $as_me.
10585 gezelter 1490 # Run this file to recreate the current configuration.
10586     # Compiler output produced by configure, useful for debugging
10587     # configure, is in config.log if it exists.
10588    
10589     debug=false
10590 gezelter 2081 ac_cs_recheck=false
10591     ac_cs_silent=false
10592 gezelter 1490 SHELL=\${CONFIG_SHELL-$SHELL}
10593     _ACEOF
10594    
10595     cat >>$CONFIG_STATUS <<\_ACEOF
10596 gezelter 2081 ## --------------------- ##
10597     ## M4sh Initialization. ##
10598     ## --------------------- ##
10599    
10600 gezelter 1490 # Be Bourne compatible
10601     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10602     emulate sh
10603     NULLCMD=:
10604 gezelter 2081 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10605     # is contrary to our usage. Disable this feature.
10606     alias -g '${1+"$@"}'='"$@"'
10607 gezelter 1490 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10608     set -o posix
10609     fi
10610 gezelter 2081 DUALCASE=1; export DUALCASE # for MKS sh
10611 gezelter 1490
10612 gezelter 2081 # Support unset when possible.
10613     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10614     as_unset=unset
10615     else
10616     as_unset=false
10617     fi
10618    
10619    
10620     # Work around bugs in pre-3.0 UWIN ksh.
10621     $as_unset ENV MAIL MAILPATH
10622     PS1='$ '
10623     PS2='> '
10624     PS4='+ '
10625    
10626     # NLS nuisances.
10627     for as_var in \
10628     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10629     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10630     LC_TELEPHONE LC_TIME
10631     do
10632     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10633     eval $as_var=C; export $as_var
10634     else
10635     $as_unset $as_var
10636     fi
10637     done
10638    
10639     # Required to use basename.
10640     if expr a : '\(a\)' >/dev/null 2>&1; then
10641     as_expr=expr
10642     else
10643     as_expr=false
10644     fi
10645    
10646     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10647     as_basename=basename
10648     else
10649     as_basename=false
10650     fi
10651    
10652    
10653 gezelter 1490 # Name of the executable.
10654 gezelter 2081 as_me=`$as_basename "$0" ||
10655     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10656     X"$0" : 'X\(//\)$' \| \
10657     X"$0" : 'X\(/\)$' \| \
10658     . : '\(.\)' 2>/dev/null ||
10659     echo X/"$0" |
10660     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10661     /^X\/\(\/\/\)$/{ s//\1/; q; }
10662     /^X\/\(\/\).*/{ s//\1/; q; }
10663     s/.*/./; q'`
10664 gezelter 1490
10665 gezelter 2081
10666     # PATH needs CR, and LINENO needs CR and PATH.
10667     # Avoid depending upon Character Ranges.
10668     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10669     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10670     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10671     as_cr_digits='0123456789'
10672     as_cr_alnum=$as_cr_Letters$as_cr_digits
10673    
10674     # The user is always right.
10675     if test "${PATH_SEPARATOR+set}" != set; then
10676     echo "#! /bin/sh" >conf$$.sh
10677     echo "exit 0" >>conf$$.sh
10678     chmod +x conf$$.sh
10679     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10680     PATH_SEPARATOR=';'
10681     else
10682     PATH_SEPARATOR=:
10683     fi
10684     rm -f conf$$.sh
10685     fi
10686    
10687    
10688     as_lineno_1=$LINENO
10689     as_lineno_2=$LINENO
10690     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10691     test "x$as_lineno_1" != "x$as_lineno_2" &&
10692     test "x$as_lineno_3" = "x$as_lineno_2" || {
10693     # Find who we are. Look in the path if we contain no path at all
10694     # relative or not.
10695     case $0 in
10696     *[\\/]* ) as_myself=$0 ;;
10697     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10698     for as_dir in $PATH
10699     do
10700     IFS=$as_save_IFS
10701     test -z "$as_dir" && as_dir=.
10702     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10703     done
10704    
10705     ;;
10706     esac
10707     # We did not find ourselves, most probably we were run as `sh COMMAND'
10708     # in which case we are not to be found in the path.
10709     if test "x$as_myself" = x; then
10710     as_myself=$0
10711     fi
10712     if test ! -f "$as_myself"; then
10713     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10714     echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10715     { (exit 1); exit 1; }; }
10716     fi
10717     case $CONFIG_SHELL in
10718     '')
10719     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10720     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10721     do
10722     IFS=$as_save_IFS
10723     test -z "$as_dir" && as_dir=.
10724     for as_base in sh bash ksh sh5; do
10725     case $as_dir in
10726     /*)
10727     if ("$as_dir/$as_base" -c '
10728     as_lineno_1=$LINENO
10729     as_lineno_2=$LINENO
10730     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10731     test "x$as_lineno_1" != "x$as_lineno_2" &&
10732     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10733     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10734     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10735     CONFIG_SHELL=$as_dir/$as_base
10736     export CONFIG_SHELL
10737     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10738     fi;;
10739     esac
10740     done
10741     done
10742     ;;
10743     esac
10744    
10745     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10746     # uniformly replaced by the line number. The first 'sed' inserts a
10747     # line-number line before each line; the second 'sed' does the real
10748     # work. The second script uses 'N' to pair each line-number line
10749     # with the numbered line, and appends trailing '-' during
10750     # substitution so that $LINENO is not a special case at line end.
10751     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10752     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10753     sed '=' <$as_myself |
10754     sed '
10755     N
10756     s,$,-,
10757     : loop
10758     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10759     t loop
10760     s,-$,,
10761     s,^['$as_cr_digits']*\n,,
10762     ' >$as_me.lineno &&
10763     chmod +x $as_me.lineno ||
10764     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10765     echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10766     { (exit 1); exit 1; }; }
10767    
10768     # Don't try to exec as it changes $[0], causing all sort of problems
10769     # (the dirname of $[0] is not the place where we might find the
10770     # original and so on. Autoconf is especially sensible to this).
10771     . ./$as_me.lineno
10772     # Exit status is that of the last command.
10773     exit
10774     }
10775    
10776    
10777     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10778     *c*,-n*) ECHO_N= ECHO_C='
10779     ' ECHO_T=' ' ;;
10780     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10781     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10782     esac
10783    
10784 gezelter 1490 if expr a : '\(a\)' >/dev/null 2>&1; then
10785     as_expr=expr
10786     else
10787     as_expr=false
10788     fi
10789    
10790     rm -f conf$$ conf$$.exe conf$$.file
10791     echo >conf$$.file
10792     if ln -s conf$$.file conf$$ 2>/dev/null; then
10793     # We could just check for DJGPP; but this test a) works b) is more generic
10794     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10795     if test -f conf$$.exe; then
10796     # Don't use ln at all; we don't have any links
10797     as_ln_s='cp -p'
10798     else
10799     as_ln_s='ln -s'
10800     fi
10801     elif ln conf$$.file conf$$ 2>/dev/null; then
10802     as_ln_s=ln
10803     else
10804     as_ln_s='cp -p'
10805     fi
10806     rm -f conf$$ conf$$.exe conf$$.file
10807    
10808 gezelter 2081 if mkdir -p . 2>/dev/null; then
10809     as_mkdir_p=:
10810 gezelter 1490 else
10811 gezelter 2081 test -d ./-p && rmdir ./-p
10812     as_mkdir_p=false
10813 gezelter 1490 fi
10814    
10815 gezelter 2081 as_executable_p="test -f"
10816 gezelter 1490
10817 gezelter 2081 # Sed expression to map a string onto a valid CPP name.
10818     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10819    
10820     # Sed expression to map a string onto a valid variable name.
10821     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10822    
10823    
10824 gezelter 1490 # IFS
10825     # We need space, tab and new line, in precisely that order.
10826     as_nl='
10827     '
10828     IFS=" $as_nl"
10829    
10830     # CDPATH.
10831 gezelter 2081 $as_unset CDPATH
10832 gezelter 1490
10833     exec 6>&1
10834    
10835 gezelter 2081 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10836     # report actual input values of CONFIG_FILES etc. instead of their
10837     # values after options handling. Logging --version etc. is OK.
10838     exec 5>>config.log
10839     {
10840     echo
10841     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10842     ## Running $as_me. ##
10843     _ASBOX
10844     } >&5
10845     cat >&5 <<_CSEOF
10846    
10847     This file was extended by OOPSE $as_me 2.0, which was
10848     generated by GNU Autoconf 2.59. Invocation command line was
10849    
10850     CONFIG_FILES = $CONFIG_FILES
10851     CONFIG_HEADERS = $CONFIG_HEADERS
10852     CONFIG_LINKS = $CONFIG_LINKS
10853     CONFIG_COMMANDS = $CONFIG_COMMANDS
10854     $ $0 $@
10855    
10856     _CSEOF
10857     echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10858     echo >&5
10859 gezelter 1490 _ACEOF
10860    
10861     # Files that config.status was made for.
10862     if test -n "$ac_config_files"; then
10863     echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10864     fi
10865    
10866     if test -n "$ac_config_headers"; then
10867     echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10868     fi
10869    
10870     if test -n "$ac_config_links"; then
10871     echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10872     fi
10873    
10874     if test -n "$ac_config_commands"; then
10875     echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10876     fi
10877    
10878 gezelter 2081 cat >>$CONFIG_STATUS <<\_ACEOF
10879 gezelter 1490
10880     ac_cs_usage="\
10881     \`$as_me' instantiates files from templates according to the
10882     current configuration.
10883    
10884     Usage: $0 [OPTIONS] [FILE]...
10885    
10886     -h, --help print this help, then exit
10887     -V, --version print version number, then exit
10888 gezelter 2081 -q, --quiet do not print progress messages
10889 gezelter 1490 -d, --debug don't remove temporary files
10890     --recheck update $as_me by reconfiguring in the same conditions
10891     --file=FILE[:TEMPLATE]
10892 gezelter 2081 instantiate the configuration file FILE
10893 gezelter 1490 --header=FILE[:TEMPLATE]
10894 gezelter 2081 instantiate the configuration header FILE
10895 gezelter 1490
10896     Configuration files:
10897     $config_files
10898    
10899     Configuration headers:
10900     $config_headers
10901    
10902     Configuration links:
10903     $config_links
10904    
10905     Report bugs to <bug-autoconf@gnu.org>."
10906 gezelter 2081 _ACEOF
10907 gezelter 1490
10908 gezelter 2081 cat >>$CONFIG_STATUS <<_ACEOF
10909 gezelter 1490 ac_cs_version="\\
10910 gezelter 1499 OOPSE config.status 2.0
10911 gezelter 2081 configured by $0, generated by GNU Autoconf 2.59,
10912 gezelter 1490 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10913    
10914 gezelter 2081 Copyright (C) 2003 Free Software Foundation, Inc.
10915 gezelter 1490 This config.status script is free software; the Free Software Foundation
10916     gives unlimited permission to copy, distribute and modify it."
10917     srcdir=$srcdir
10918     INSTALL="$INSTALL"
10919 gezelter 2081 _ACEOF
10920 gezelter 1490
10921 gezelter 2081 cat >>$CONFIG_STATUS <<\_ACEOF
10922 gezelter 1490 # If no file are specified by the user, then we need to provide default
10923     # value. By we need to know if files were specified by the user.
10924     ac_need_defaults=:
10925     while test $# != 0
10926     do
10927     case $1 in
10928     --*=*)
10929     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10930     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10931 gezelter 2081 ac_shift=:
10932 gezelter 1490 ;;
10933 gezelter 2081 -*)
10934     ac_option=$1
10935     ac_optarg=$2
10936     ac_shift=shift
10937     ;;
10938 gezelter 1490 *) # This is not an option, so the user has probably given explicit
10939     # arguments.
10940 gezelter 2081 ac_option=$1
10941 gezelter 1490 ac_need_defaults=false;;
10942     esac
10943    
10944 gezelter 2081 case $ac_option in
10945 gezelter 1490 # Handling of the options.
10946 gezelter 2081 _ACEOF
10947     cat >>$CONFIG_STATUS <<\_ACEOF
10948 gezelter 1490 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10949 gezelter 2081 ac_cs_recheck=: ;;
10950 gezelter 1490 --version | --vers* | -V )
10951     echo "$ac_cs_version"; exit 0 ;;
10952     --he | --h)
10953     # Conflict between --help and --header
10954 gezelter 2081 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10955 gezelter 1490 Try \`$0 --help' for more information." >&5
10956     echo "$as_me: error: ambiguous option: $1
10957     Try \`$0 --help' for more information." >&2;}
10958     { (exit 1); exit 1; }; };;
10959     --help | --hel | -h )
10960     echo "$ac_cs_usage"; exit 0 ;;
10961     --debug | --d* | -d )
10962     debug=: ;;
10963     --file | --fil | --fi | --f )
10964 gezelter 2081 $ac_shift
10965     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10966 gezelter 1490 ac_need_defaults=false;;
10967     --header | --heade | --head | --hea )
10968 gezelter 2081 $ac_shift
10969     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10970 gezelter 1490 ac_need_defaults=false;;
10971 gezelter 2081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10972     | -silent | --silent | --silen | --sile | --sil | --si | --s)
10973     ac_cs_silent=: ;;
10974 gezelter 1490
10975     # This is an error.
10976 gezelter 2081 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10977 gezelter 1490 Try \`$0 --help' for more information." >&5
10978     echo "$as_me: error: unrecognized option: $1
10979     Try \`$0 --help' for more information." >&2;}
10980     { (exit 1); exit 1; }; } ;;
10981 gezelter 2081
10982     *) ac_config_targets="$ac_config_targets $1" ;;
10983    
10984 gezelter 1490 esac
10985     shift
10986     done
10987    
10988 gezelter 2081 ac_configure_extra_args=
10989 gezelter 1490
10990 gezelter 2081 if $ac_cs_silent; then
10991     exec 6>/dev/null
10992     ac_configure_extra_args="$ac_configure_extra_args --silent"
10993     fi
10994 gezelter 1490
10995 gezelter 2081 _ACEOF
10996     cat >>$CONFIG_STATUS <<_ACEOF
10997     if \$ac_cs_recheck; then
10998     echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10999     exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11000     fi
11001 gezelter 1490
11002     _ACEOF
11003    
11004 gezelter 2081
11005    
11006    
11007    
11008     cat >>$CONFIG_STATUS <<\_ACEOF
11009     for ac_config_target in $ac_config_targets
11010     do
11011     case "$ac_config_target" in
11012     # Handling of arguments.
11013     "make/Makefile" ) CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
11014     "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
11015 gezelter 2190 "src/applications/nanoRodBuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/applications/nanoRodBuilder/Makefile" ;;
11016 gezelter 2199 "scripts/filepp" ) CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
11017 gezelter 2081 "src/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;;
11018     "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
11019     *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11020     echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11021     { (exit 1); exit 1; }; };;
11022     esac
11023     done
11024    
11025 gezelter 1490 # If the user did not use the arguments to specify the items to instantiate,
11026     # then the envvar interface is used. Set only those that are not.
11027     # We use the long form for the default assignment because of an extremely
11028     # bizarre bug on SunOS 4.1.3.
11029     if $ac_need_defaults; then
11030     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11031     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11032     test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
11033     fi
11034    
11035 gezelter 2081 # Have a temporary directory for convenience. Make it in the build tree
11036     # simply because there is no reason to put it here, and in addition,
11037     # creating and moving files from /tmp can sometimes cause problems.
11038 gezelter 1490 # Create a temporary directory, and hook for its removal unless debugging.
11039     $debug ||
11040     {
11041     trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11042 gezelter 2081 trap '{ (exit 1); exit 1; }' 1 2 13 15
11043 gezelter 1490 }
11044    
11045     # Create a (secure) tmp directory for tmp files.
11046 gezelter 2081
11047 gezelter 1490 {
11048 gezelter 2081 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11049 gezelter 1490 test -n "$tmp" && test -d "$tmp"
11050     } ||
11051     {
11052 gezelter 2081 tmp=./confstat$$-$RANDOM
11053 gezelter 1490 (umask 077 && mkdir $tmp)
11054     } ||
11055     {
11056 gezelter 2081 echo "$me: cannot create a temporary directory in ." >&2
11057 gezelter 1490 { (exit 1); exit 1; }
11058     }
11059    
11060 gezelter 2081 _ACEOF
11061 gezelter 1490
11062 gezelter 2081 cat >>$CONFIG_STATUS <<_ACEOF
11063 gezelter 1490
11064     #
11065     # CONFIG_FILES section.
11066     #
11067    
11068     # No need to generate the scripts if there are no CONFIG_FILES.
11069     # This happens for instance when ./config.status config.h
11070     if test -n "\$CONFIG_FILES"; then
11071     # Protect against being on the right side of a sed subst in config.status.
11072     sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11073     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11074     s,@SHELL@,$SHELL,;t t
11075 gezelter 2081 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11076     s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11077     s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11078     s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11079     s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11080     s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11081 gezelter 1490 s,@exec_prefix@,$exec_prefix,;t t
11082     s,@prefix@,$prefix,;t t
11083     s,@program_transform_name@,$program_transform_name,;t t
11084     s,@bindir@,$bindir,;t t
11085     s,@sbindir@,$sbindir,;t t
11086     s,@libexecdir@,$libexecdir,;t t
11087     s,@datadir@,$datadir,;t t
11088     s,@sysconfdir@,$sysconfdir,;t t
11089     s,@sharedstatedir@,$sharedstatedir,;t t
11090     s,@localstatedir@,$localstatedir,;t t
11091     s,@libdir@,$libdir,;t t
11092     s,@includedir@,$includedir,;t t
11093     s,@oldincludedir@,$oldincludedir,;t t
11094     s,@infodir@,$infodir,;t t
11095     s,@mandir@,$mandir,;t t
11096 gezelter 2081 s,@build_alias@,$build_alias,;t t
11097     s,@host_alias@,$host_alias,;t t
11098     s,@target_alias@,$target_alias,;t t
11099     s,@DEFS@,$DEFS,;t t
11100 gezelter 1490 s,@ECHO_C@,$ECHO_C,;t t
11101     s,@ECHO_N@,$ECHO_N,;t t
11102     s,@ECHO_T@,$ECHO_T,;t t
11103     s,@LIBS@,$LIBS,;t t
11104     s,@PROGNAME@,$PROGNAME,;t t
11105     s,@debug@,$debug,;t t
11106     s,@build@,$build,;t t
11107     s,@build_cpu@,$build_cpu,;t t
11108     s,@build_vendor@,$build_vendor,;t t
11109     s,@build_os@,$build_os,;t t
11110     s,@host@,$host,;t t
11111     s,@host_cpu@,$host_cpu,;t t
11112     s,@host_vendor@,$host_vendor,;t t
11113     s,@host_os@,$host_os,;t t
11114     s,@CC@,$CC,;t t
11115     s,@CFLAGS@,$CFLAGS,;t t
11116     s,@LDFLAGS@,$LDFLAGS,;t t
11117     s,@CPPFLAGS@,$CPPFLAGS,;t t
11118     s,@ac_ct_CC@,$ac_ct_CC,;t t
11119     s,@EXEEXT@,$EXEEXT,;t t
11120     s,@OBJEXT@,$OBJEXT,;t t
11121     s,@CXX@,$CXX,;t t
11122     s,@CXXFLAGS@,$CXXFLAGS,;t t
11123     s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11124     s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t
11125     s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t
11126     s,@F90@,$F90,;t t
11127     s,@F90FLAGS@,$F90FLAGS,;t t
11128     s,@ac_ct_F90@,$ac_ct_F90,;t t
11129     s,@PREPFLAG@,$PREPFLAG,;t t
11130     s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
11131     s,@F90LIBS@,$F90LIBS,;t t
11132     s,@F90_FUNC@,$F90_FUNC,;t t
11133     s,@F90_FUNC_@,$F90_FUNC_,;t t
11134     s,@MOD@,$MOD,;t t
11135     s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
11136     s,@MODDIRFLAG@,$MODDIRFLAG,;t t
11137     s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
11138 gezelter 1535 s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t
11139 gezelter 1490 s,@CPP@,$CPP,;t t
11140 gezelter 2081 s,@EGREP@,$EGREP,;t t
11141 gezelter 2453 s,@CXXCPP@,$CXXCPP,;t t
11142 gezelter 1490 s,@LIBOBJS@,$LIBOBJS,;t t
11143     s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11144     s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11145     s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11146     s,@LN_S@,$LN_S,;t t
11147     s,@SET_MAKE@,$SET_MAKE,;t t
11148     s,@RANLIB@,$RANLIB,;t t
11149     s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11150     s,@YACC@,$YACC,;t t
11151     s,@LEX@,$LEX,;t t
11152     s,@LEXLIB@,$LEXLIB,;t t
11153     s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11154 gezelter 2199 s,@PERLINTERP@,$PERLINTERP,;t t
11155     s,@PERL_SHEBANG@,$PERL_SHEBANG,;t t
11156 gezelter 1490 s,@AR@,$AR,;t t
11157 gezelter 2023 s,@PS@,$PS,;t t
11158 gezelter 1490 s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t
11159     s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t
11160     s,@MPI_F90_INC@,$MPI_F90_INC,;t t
11161     s,@MPI_LIB@,$MPI_LIB,;t t
11162     s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t
11163     s,@USE_MPI@,$USE_MPI,;t t
11164 gezelter 2190 s,@USE_CGAL@,$USE_CGAL,;t t
11165     s,@CGAL_INC_DIR@,$CGAL_INC_DIR,;t t
11166     s,@CGAL_LIB_DIR@,$CGAL_LIB_DIR,;t t
11167     s,@CGAL_RLIB_DIR@,$CGAL_RLIB_DIR,;t t
11168     s,@CGAL_DEFINES@,$CGAL_DEFINES,;t t
11169     s,@CGAL_CXXFLAGS@,$CGAL_CXXFLAGS,;t t
11170     s,@CGAL_LIBS@,$CGAL_LIBS,;t t
11171 gezelter 1540 s,@DOXYGEN@,$DOXYGEN,;t t
11172     s,@DOT@,$DOT,;t t
11173     s,@DOC@,$DOC,;t t
11174     s,@enable_dot@,$enable_dot,;t t
11175     s,@enable_html_docs@,$enable_html_docs,;t t
11176     s,@enable_latex_docs@,$enable_latex_docs,;t t
11177 gezelter 1490 s,@BATEXT@,$BATEXT,;t t
11178     s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11179     s,@OOPSE@,$OOPSE,;t t
11180     s,@OOPSE_HOME@,$OOPSE_HOME,;t t
11181     s,@SUBDIRS@,$SUBDIRS,;t t
11182     s,@FFLAGS@,$FFLAGS,;t t
11183 gezelter 2081 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11184 gezelter 1490 CEOF
11185    
11186 gezelter 2081 _ACEOF
11187 gezelter 1490
11188 gezelter 2081 cat >>$CONFIG_STATUS <<\_ACEOF
11189 gezelter 1490 # Split the substitutions into bite-sized pieces for seds with
11190     # small command number limits, like on Digital OSF/1 and HP-UX.
11191     ac_max_sed_lines=48
11192     ac_sed_frag=1 # Number of current file.
11193     ac_beg=1 # First line for current file.
11194     ac_end=$ac_max_sed_lines # Line after last line for current file.
11195     ac_more_lines=:
11196     ac_sed_cmds=
11197     while $ac_more_lines; do
11198     if test $ac_beg -gt 1; then
11199     sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11200     else
11201     sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11202     fi
11203     if test ! -s $tmp/subs.frag; then
11204     ac_more_lines=false
11205     else
11206     # The purpose of the label and of the branching condition is to
11207     # speed up the sed processing (if there are no `@' at all, there
11208     # is no need to browse any of the substitutions).
11209     # These are the two extra sed commands mentioned above.
11210     (echo ':t
11211     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11212     if test -z "$ac_sed_cmds"; then
11213 gezelter 2081 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11214 gezelter 1490 else
11215 gezelter 2081 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11216 gezelter 1490 fi
11217     ac_sed_frag=`expr $ac_sed_frag + 1`
11218     ac_beg=$ac_end
11219     ac_end=`expr $ac_end + $ac_max_sed_lines`
11220     fi
11221     done
11222     if test -z "$ac_sed_cmds"; then
11223     ac_sed_cmds=cat
11224     fi
11225     fi # test -n "$CONFIG_FILES"
11226    
11227 gezelter 2081 _ACEOF
11228     cat >>$CONFIG_STATUS <<\_ACEOF
11229 gezelter 1490 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11230     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11231     case $ac_file in
11232     - | *:- | *:-:* ) # input from stdin
11233 gezelter 2081 cat >$tmp/stdin
11234     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11235     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11236 gezelter 1490 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11237 gezelter 2081 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11238 gezelter 1490 * ) ac_file_in=$ac_file.in ;;
11239     esac
11240    
11241     # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11242 gezelter 2081 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11243     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11244     X"$ac_file" : 'X\(//\)[^/]' \| \
11245     X"$ac_file" : 'X\(//\)$' \| \
11246     X"$ac_file" : 'X\(/\)' \| \
11247     . : '\(.\)' 2>/dev/null ||
11248 gezelter 1490 echo X"$ac_file" |
11249     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11250     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11251     /^X\(\/\/\)$/{ s//\1/; q; }
11252     /^X\(\/\).*/{ s//\1/; q; }
11253     s/.*/./; q'`
11254 gezelter 2081 { if $as_mkdir_p; then
11255     mkdir -p "$ac_dir"
11256 gezelter 1490 else
11257 gezelter 2081 as_dir="$ac_dir"
11258     as_dirs=
11259     while test ! -d "$as_dir"; do
11260     as_dirs="$as_dir $as_dirs"
11261     as_dir=`(dirname "$as_dir") 2>/dev/null ||
11262     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11263     X"$as_dir" : 'X\(//\)[^/]' \| \
11264     X"$as_dir" : 'X\(//\)$' \| \
11265     X"$as_dir" : 'X\(/\)' \| \
11266     . : '\(.\)' 2>/dev/null ||
11267     echo X"$as_dir" |
11268     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11269     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11270     /^X\(\/\/\)$/{ s//\1/; q; }
11271     /^X\(\/\).*/{ s//\1/; q; }
11272     s/.*/./; q'`
11273     done
11274     test ! -n "$as_dirs" || mkdir $as_dirs
11275     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11276     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11277     { (exit 1); exit 1; }; }; }
11278 gezelter 1490
11279 gezelter 2081 ac_builddir=.
11280    
11281     if test "$ac_dir" != .; then
11282     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11283     # A "../" for each directory in $ac_dir_suffix.
11284     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11285     else
11286     ac_dir_suffix= ac_top_builddir=
11287     fi
11288    
11289     case $srcdir in
11290     .) # No --srcdir option. We are building in place.
11291     ac_srcdir=.
11292     if test -z "$ac_top_builddir"; then
11293     ac_top_srcdir=.
11294     else
11295     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11296     fi ;;
11297     [\\/]* | ?:[\\/]* ) # Absolute path.
11298     ac_srcdir=$srcdir$ac_dir_suffix;
11299     ac_top_srcdir=$srcdir ;;
11300 gezelter 1490 *) # Relative path.
11301 gezelter 2081 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11302     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11303     esac
11304 gezelter 1490
11305 gezelter 2081 # Do not use `cd foo && pwd` to compute absolute paths, because
11306     # the directories may not exist.
11307     case `pwd` in
11308     .) ac_abs_builddir="$ac_dir";;
11309     *)
11310     case "$ac_dir" in
11311     .) ac_abs_builddir=`pwd`;;
11312     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11313     *) ac_abs_builddir=`pwd`/"$ac_dir";;
11314     esac;;
11315     esac
11316     case $ac_abs_builddir in
11317     .) ac_abs_top_builddir=${ac_top_builddir}.;;
11318     *)
11319     case ${ac_top_builddir}. in
11320     .) ac_abs_top_builddir=$ac_abs_builddir;;
11321     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11322     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11323     esac;;
11324     esac
11325     case $ac_abs_builddir in
11326     .) ac_abs_srcdir=$ac_srcdir;;
11327     *)
11328     case $ac_srcdir in
11329     .) ac_abs_srcdir=$ac_abs_builddir;;
11330     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11331     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11332     esac;;
11333     esac
11334     case $ac_abs_builddir in
11335     .) ac_abs_top_srcdir=$ac_top_srcdir;;
11336     *)
11337     case $ac_top_srcdir in
11338     .) ac_abs_top_srcdir=$ac_abs_builddir;;
11339     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11340     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11341     esac;;
11342     esac
11343    
11344    
11345 gezelter 1490 case $INSTALL in
11346     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11347 gezelter 2081 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11348 gezelter 1490 esac
11349    
11350     if test x"$ac_file" != x-; then
11351 gezelter 2081 { echo "$as_me:$LINENO: creating $ac_file" >&5
11352 gezelter 1490 echo "$as_me: creating $ac_file" >&6;}
11353     rm -f "$ac_file"
11354     fi
11355     # Let's still pretend it is `configure' which instantiates (i.e., don't
11356     # use $as_me), people would be surprised to read:
11357 gezelter 2081 # /* config.h. Generated by config.status. */
11358     if test x"$ac_file" = x-; then
11359     configure_input=
11360     else
11361     configure_input="$ac_file. "
11362     fi
11363     configure_input=$configure_input"Generated from `echo $ac_file_in |
11364     sed 's,.*/,,'` by configure."
11365 gezelter 1490
11366     # First look for the input files in the build tree, otherwise in the
11367     # src tree.
11368     ac_file_inputs=`IFS=:
11369     for f in $ac_file_in; do
11370     case $f in
11371     -) echo $tmp/stdin ;;
11372     [\\/$]*)
11373 gezelter 2081 # Absolute (can't be DOS-style, as IFS=:)
11374     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11375 gezelter 1490 echo "$as_me: error: cannot find input file: $f" >&2;}
11376     { (exit 1); exit 1; }; }
11377 gezelter 2081 echo "$f";;
11378 gezelter 1490 *) # Relative
11379 gezelter 2081 if test -f "$f"; then
11380     # Build tree
11381     echo "$f"
11382     elif test -f "$srcdir/$f"; then
11383     # Source tree
11384     echo "$srcdir/$f"
11385     else
11386     # /dev/null tree
11387     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11388 gezelter 1490 echo "$as_me: error: cannot find input file: $f" >&2;}
11389     { (exit 1); exit 1; }; }
11390 gezelter 2081 fi;;
11391 gezelter 1490 esac
11392     done` || { (exit 1); exit 1; }
11393 gezelter 2081 _ACEOF
11394     cat >>$CONFIG_STATUS <<_ACEOF
11395 gezelter 1490 sed "$ac_vpsub
11396     $extrasub
11397 gezelter 2081 _ACEOF
11398     cat >>$CONFIG_STATUS <<\_ACEOF
11399 gezelter 1490 :t
11400     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11401     s,@configure_input@,$configure_input,;t t
11402     s,@srcdir@,$ac_srcdir,;t t
11403 gezelter 2081 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11404 gezelter 1490 s,@top_srcdir@,$ac_top_srcdir,;t t
11405 gezelter 2081 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11406     s,@builddir@,$ac_builddir,;t t
11407     s,@abs_builddir@,$ac_abs_builddir,;t t
11408     s,@top_builddir@,$ac_top_builddir,;t t
11409     s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11410 gezelter 1490 s,@INSTALL@,$ac_INSTALL,;t t
11411     " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11412     rm -f $tmp/stdin
11413     if test x"$ac_file" != x-; then
11414     mv $tmp/out $ac_file
11415     else
11416     cat $tmp/out
11417     rm -f $tmp/out
11418     fi
11419    
11420 gezelter 2199 # Run the commands associated with the file.
11421     case $ac_file in
11422     make/Makefile ) chmod 0755 scripts/* ;;
11423     src/utils/Makefile ) chmod 0755 scripts/* ;;
11424     src/applications/nanoRodBuilder/Makefile ) chmod 0755 scripts/* ;;
11425     scripts/filepp ) chmod 0755 scripts/* ;;
11426     esac
11427 gezelter 1490 done
11428 gezelter 2081 _ACEOF
11429     cat >>$CONFIG_STATUS <<\_ACEOF
11430 gezelter 1490
11431     #
11432     # CONFIG_HEADER section.
11433     #
11434    
11435     # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11436     # NAME is the cpp macro being defined and VALUE is the value it is being given.
11437     #
11438     # ac_d sets the value in "#define NAME VALUE" lines.
11439 gezelter 2081 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11440     ac_dB='[ ].*$,\1#\2'
11441 gezelter 1490 ac_dC=' '
11442     ac_dD=',;t'
11443     # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11444 gezelter 2081 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11445 gezelter 1490 ac_uB='$,\1#\2define\3'
11446     ac_uC=' '
11447     ac_uD=',;t'
11448    
11449     for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11450     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11451     case $ac_file in
11452     - | *:- | *:-:* ) # input from stdin
11453 gezelter 2081 cat >$tmp/stdin
11454     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11455     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11456 gezelter 1490 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11457 gezelter 2081 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11458 gezelter 1490 * ) ac_file_in=$ac_file.in ;;
11459     esac
11460    
11461 gezelter 2081 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11462 gezelter 1490 echo "$as_me: creating $ac_file" >&6;}
11463    
11464     # First look for the input files in the build tree, otherwise in the
11465     # src tree.
11466     ac_file_inputs=`IFS=:
11467     for f in $ac_file_in; do
11468     case $f in
11469     -) echo $tmp/stdin ;;
11470     [\\/$]*)
11471 gezelter 2081 # Absolute (can't be DOS-style, as IFS=:)
11472     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11473 gezelter 1490 echo "$as_me: error: cannot find input file: $f" >&2;}
11474     { (exit 1); exit 1; }; }
11475 gezelter 2081 # Do quote $f, to prevent DOS paths from being IFS'd.
11476     echo "$f";;
11477 gezelter 1490 *) # Relative
11478 gezelter 2081 if test -f "$f"; then
11479     # Build tree
11480     echo "$f"
11481     elif test -f "$srcdir/$f"; then
11482     # Source tree
11483     echo "$srcdir/$f"
11484     else
11485     # /dev/null tree
11486     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11487 gezelter 1490 echo "$as_me: error: cannot find input file: $f" >&2;}
11488     { (exit 1); exit 1; }; }
11489 gezelter 2081 fi;;
11490 gezelter 1490 esac
11491     done` || { (exit 1); exit 1; }
11492     # Remove the trailing spaces.
11493 gezelter 2081 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11494 gezelter 1490
11495 gezelter 2081 _ACEOF
11496 gezelter 1490
11497     # Transform confdefs.h into two sed scripts, `conftest.defines' and
11498     # `conftest.undefs', that substitutes the proper values into
11499     # config.h.in to produce config.h. The first handles `#define'
11500     # templates, and the second `#undef' templates.
11501     # And first: Protect against being on the right side of a sed subst in
11502     # config.status. Protect against being in an unquoted here document
11503     # in config.status.
11504     rm -f conftest.defines conftest.undefs
11505     # Using a here document instead of a string reduces the quoting nightmare.
11506     # Putting comments in sed scripts is not portable.
11507     #
11508     # `end' is used to avoid that the second main sed command (meant for
11509     # 0-ary CPP macros) applies to n-ary macro definitions.
11510     # See the Autoconf documentation for `clear'.
11511 gezelter 2081 cat >confdef2sed.sed <<\_ACEOF
11512 gezelter 1490 s/[\\&,]/\\&/g
11513     s,[\\$`],\\&,g
11514     t clear
11515     : clear
11516 gezelter 2081 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11517 gezelter 1490 t end
11518 gezelter 2081 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11519 gezelter 1490 : end
11520 gezelter 2081 _ACEOF
11521 gezelter 1490 # If some macros were called several times there might be several times
11522     # the same #defines, which is useless. Nevertheless, we may not want to
11523     # sort them, since we want the *last* AC-DEFINE to be honored.
11524     uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11525     sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11526     rm -f confdef2sed.sed
11527    
11528     # This sed command replaces #undef with comments. This is necessary, for
11529     # example, in the case of _POSIX_SOURCE, which is predefined and required
11530     # on some systems where configure will not decide to define it.
11531 gezelter 2081 cat >>conftest.undefs <<\_ACEOF
11532     s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11533     _ACEOF
11534 gezelter 1490
11535     # Break up conftest.defines because some shells have a limit on the size
11536     # of here documents, and old seds have small limits too (100 cmds).
11537     echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11538 gezelter 2081 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11539 gezelter 1490 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11540     echo ' :' >>$CONFIG_STATUS
11541     rm -f conftest.tail
11542     while grep . conftest.defines >/dev/null
11543     do
11544     # Write a limited-size here document to $tmp/defines.sed.
11545     echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11546     # Speed up: don't consider the non `#define' lines.
11547 gezelter 2081 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11548 gezelter 1490 # Work around the forget-to-reset-the-flag bug.
11549     echo 't clr' >>$CONFIG_STATUS
11550     echo ': clr' >>$CONFIG_STATUS
11551     sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11552     echo 'CEOF
11553     sed -f $tmp/defines.sed $tmp/in >$tmp/out
11554     rm -f $tmp/in
11555     mv $tmp/out $tmp/in
11556     ' >>$CONFIG_STATUS
11557     sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11558     rm -f conftest.defines
11559     mv conftest.tail conftest.defines
11560     done
11561     rm -f conftest.defines
11562 gezelter 2081 echo ' fi # grep' >>$CONFIG_STATUS
11563 gezelter 1490 echo >>$CONFIG_STATUS
11564    
11565     # Break up conftest.undefs because some shells have a limit on the size
11566     # of here documents, and old seds have small limits too (100 cmds).
11567     echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11568     rm -f conftest.tail
11569     while grep . conftest.undefs >/dev/null
11570     do
11571     # Write a limited-size here document to $tmp/undefs.sed.
11572     echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11573     # Speed up: don't consider the non `#undef'
11574 gezelter 2081 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11575 gezelter 1490 # Work around the forget-to-reset-the-flag bug.
11576     echo 't clr' >>$CONFIG_STATUS
11577     echo ': clr' >>$CONFIG_STATUS
11578     sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11579     echo 'CEOF
11580     sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11581     rm -f $tmp/in
11582     mv $tmp/out $tmp/in
11583     ' >>$CONFIG_STATUS
11584     sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11585     rm -f conftest.undefs
11586     mv conftest.tail conftest.undefs
11587     done
11588     rm -f conftest.undefs
11589    
11590 gezelter 2081 cat >>$CONFIG_STATUS <<\_ACEOF
11591 gezelter 1490 # Let's still pretend it is `configure' which instantiates (i.e., don't
11592     # use $as_me), people would be surprised to read:
11593 gezelter 2081 # /* config.h. Generated by config.status. */
11594 gezelter 1490 if test x"$ac_file" = x-; then
11595 gezelter 2081 echo "/* Generated by configure. */" >$tmp/config.h
11596 gezelter 1490 else
11597 gezelter 2081 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11598 gezelter 1490 fi
11599     cat $tmp/in >>$tmp/config.h
11600     rm -f $tmp/in
11601     if test x"$ac_file" != x-; then
11602 gezelter 2081 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11603     { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11604 gezelter 1490 echo "$as_me: $ac_file is unchanged" >&6;}
11605     else
11606 gezelter 2081 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11607     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11608     X"$ac_file" : 'X\(//\)[^/]' \| \
11609     X"$ac_file" : 'X\(//\)$' \| \
11610     X"$ac_file" : 'X\(/\)' \| \
11611     . : '\(.\)' 2>/dev/null ||
11612 gezelter 1490 echo X"$ac_file" |
11613     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11614     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11615     /^X\(\/\/\)$/{ s//\1/; q; }
11616     /^X\(\/\).*/{ s//\1/; q; }
11617     s/.*/./; q'`
11618 gezelter 2081 { if $as_mkdir_p; then
11619     mkdir -p "$ac_dir"
11620     else
11621     as_dir="$ac_dir"
11622     as_dirs=
11623     while test ! -d "$as_dir"; do
11624     as_dirs="$as_dir $as_dirs"
11625     as_dir=`(dirname "$as_dir") 2>/dev/null ||
11626     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11627     X"$as_dir" : 'X\(//\)[^/]' \| \
11628     X"$as_dir" : 'X\(//\)$' \| \
11629     X"$as_dir" : 'X\(/\)' \| \
11630     . : '\(.\)' 2>/dev/null ||
11631     echo X"$as_dir" |
11632     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11633     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11634     /^X\(\/\/\)$/{ s//\1/; q; }
11635     /^X\(\/\).*/{ s//\1/; q; }
11636     s/.*/./; q'`
11637     done
11638     test ! -n "$as_dirs" || mkdir $as_dirs
11639     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11640     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11641     { (exit 1); exit 1; }; }; }
11642 gezelter 1490
11643     rm -f $ac_file
11644     mv $tmp/config.h $ac_file
11645     fi
11646     else
11647     cat $tmp/config.h
11648     rm -f $tmp/config.h
11649     fi
11650     done
11651 gezelter 2081 _ACEOF
11652     cat >>$CONFIG_STATUS <<\_ACEOF
11653 gezelter 1490
11654     #
11655     # CONFIG_LINKS section.
11656     #
11657    
11658     for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
11659     ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11660     ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11661    
11662 gezelter 2081 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
11663 gezelter 1490 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
11664    
11665     if test ! -r $srcdir/$ac_source; then
11666 gezelter 2081 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
11667     echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
11668 gezelter 1490 { (exit 1); exit 1; }; }
11669     fi
11670     rm -f $ac_dest
11671    
11672     # Make relative symlinks.
11673 gezelter 2081 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
11674     $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11675     X"$ac_dest" : 'X\(//\)[^/]' \| \
11676     X"$ac_dest" : 'X\(//\)$' \| \
11677     X"$ac_dest" : 'X\(/\)' \| \
11678     . : '\(.\)' 2>/dev/null ||
11679 gezelter 1490 echo X"$ac_dest" |
11680     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11681     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11682     /^X\(\/\/\)$/{ s//\1/; q; }
11683     /^X\(\/\).*/{ s//\1/; q; }
11684     s/.*/./; q'`
11685 gezelter 2081 { if $as_mkdir_p; then
11686     mkdir -p "$ac_dest_dir"
11687     else
11688     as_dir="$ac_dest_dir"
11689     as_dirs=
11690     while test ! -d "$as_dir"; do
11691     as_dirs="$as_dir $as_dirs"
11692     as_dir=`(dirname "$as_dir") 2>/dev/null ||
11693     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11694     X"$as_dir" : 'X\(//\)[^/]' \| \
11695     X"$as_dir" : 'X\(//\)$' \| \
11696     X"$as_dir" : 'X\(/\)' \| \
11697     . : '\(.\)' 2>/dev/null ||
11698     echo X"$as_dir" |
11699     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11700     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11701     /^X\(\/\/\)$/{ s//\1/; q; }
11702     /^X\(\/\).*/{ s//\1/; q; }
11703     s/.*/./; q'`
11704     done
11705     test ! -n "$as_dirs" || mkdir $as_dirs
11706     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
11707     echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
11708     { (exit 1); exit 1; }; }; }
11709    
11710     ac_builddir=.
11711    
11712     if test "$ac_dest_dir" != .; then
11713     ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
11714     # A "../" for each directory in $ac_dir_suffix.
11715     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11716     else
11717     ac_dir_suffix= ac_top_builddir=
11718     fi
11719    
11720     case $srcdir in
11721     .) # No --srcdir option. We are building in place.
11722     ac_srcdir=.
11723     if test -z "$ac_top_builddir"; then
11724     ac_top_srcdir=.
11725     else
11726     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11727     fi ;;
11728     [\\/]* | ?:[\\/]* ) # Absolute path.
11729     ac_srcdir=$srcdir$ac_dir_suffix;
11730     ac_top_srcdir=$srcdir ;;
11731     *) # Relative path.
11732     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11733     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11734 gezelter 1490 esac
11735    
11736 gezelter 2081 # Do not use `cd foo && pwd` to compute absolute paths, because
11737     # the directories may not exist.
11738     case `pwd` in
11739     .) ac_abs_builddir="$ac_dest_dir";;
11740     *)
11741     case "$ac_dest_dir" in
11742     .) ac_abs_builddir=`pwd`;;
11743     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
11744     *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
11745     esac;;
11746     esac
11747     case $ac_abs_builddir in
11748     .) ac_abs_top_builddir=${ac_top_builddir}.;;
11749     *)
11750     case ${ac_top_builddir}. in
11751     .) ac_abs_top_builddir=$ac_abs_builddir;;
11752     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11753     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11754     esac;;
11755     esac
11756     case $ac_abs_builddir in
11757     .) ac_abs_srcdir=$ac_srcdir;;
11758     *)
11759     case $ac_srcdir in
11760     .) ac_abs_srcdir=$ac_abs_builddir;;
11761     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11762     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11763     esac;;
11764     esac
11765     case $ac_abs_builddir in
11766     .) ac_abs_top_srcdir=$ac_top_srcdir;;
11767     *)
11768     case $ac_top_srcdir in
11769     .) ac_abs_top_srcdir=$ac_abs_builddir;;
11770     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11771     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11772     esac;;
11773     esac
11774 gezelter 1490
11775 gezelter 2081
11776 gezelter 1490 case $srcdir in
11777     [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
11778 gezelter 2081 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
11779 gezelter 1490 esac
11780    
11781 gezelter 2081 # Try a symlink, then a hard link, then a copy.
11782 gezelter 1490 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
11783 gezelter 2081 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
11784     cp -p $srcdir/$ac_source $ac_dest ||
11785     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
11786     echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
11787 gezelter 1490 { (exit 1); exit 1; }; }
11788     done
11789 gezelter 2081 _ACEOF
11790 gezelter 1490
11791 gezelter 2081 cat >>$CONFIG_STATUS <<\_ACEOF
11792 gezelter 1490
11793     { (exit 0); exit 0; }
11794 gezelter 2081 _ACEOF
11795 gezelter 1490 chmod +x $CONFIG_STATUS
11796     ac_clean_files=$ac_clean_files_save
11797    
11798 gezelter 2081
11799 gezelter 1490 # configure is writing to config.log, and then calls config.status.
11800     # config.status does its own redirection, appending to config.log.
11801     # Unfortunately, on DOS this fails, as config.log is still kept open
11802     # by configure, so config.status won't be able to write to it; its
11803     # output is simply discarded. So we exec the FD to /dev/null,
11804     # effectively closing config.log, so it can be properly (re)opened and
11805     # appended to by config.status. When coming back to configure, we
11806     # need to make the FD available again.
11807     if test "$no_create" != yes; then
11808     ac_cs_success=:
11809 gezelter 2081 ac_config_status_args=
11810     test "$silent" = yes &&
11811     ac_config_status_args="$ac_config_status_args --quiet"
11812 gezelter 1490 exec 5>/dev/null
11813 gezelter 2081 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11814 gezelter 1490 exec 5>>config.log
11815     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11816     # would make configure fail if this is the last instruction.
11817     $ac_cs_success || { (exit 1); exit 1; }
11818     fi
11819    

Properties

Name Value
svn:executable *