]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TEvtGen/Photos/configure
TENDER becomes Tender, removing .so
[u/mrichter/AliRoot.git] / TEvtGen / Photos / configure
CommitLineData
f97ec6ec 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Photos C++ Interface 3.3.
4#
5# Report bugs to <tomasz.przedzinski@uj.edu.pl >.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for 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
45do
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
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if 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
99fi
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
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
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
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
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
154done
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
189case `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= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if 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
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_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.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete. It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='Photos C++ Interface'
271PACKAGE_TARNAME='photos-c---interface'
272PACKAGE_VERSION='3.3'
273PACKAGE_STRING='Photos C++ Interface 3.3'
274PACKAGE_BUGREPORT='tomasz.przedzinski@uj.edu.pl '
275
276ac_default_prefix=`pwd`
277ac_unique_file="src/photosCInterfaces/Photos.cxx"
278# Factoring default headers for most tests.
279ac_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
315ac_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 SET_MAKE LN_S CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 CPP DIRECT_CPP CXXCPP EGREP LIBOBJS with_hepmc with_photos pythia8data with_tauola with_pythia8 with_mc_tester LTLIBOBJS'
316ac_subst_files=''
317
318# Initialize some variables set by options.
319ac_init_help=
320ac_init_version=false
321# The variables have the same names as the options, with
322# dashes changed to underlines.
323cache_file=/dev/null
324exec_prefix=NONE
325no_create=
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
334verbose=
335x_includes=NONE
336x_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.
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
356ac_prev=
357for ac_option
358do
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
370 case $ac_option in
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
376
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
397
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
406
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
439
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
588
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
601
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
628
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
632 ;;
633
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
644 *)
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 ;;
651
652 esac
653done
654
655if 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; }; }
659fi
660
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
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
670done
671
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
675do
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682done
683
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
686# FIXME: To remove some day.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if 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
700fi
701
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
706
707
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
738 fi
739fi
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CXX_set=${CXX+set}
773ac_env_CXX_value=$CXX
774ac_cv_env_CXX_set=${CXX+set}
775ac_cv_env_CXX_value=$CXX
776ac_env_CXXFLAGS_set=${CXXFLAGS+set}
777ac_env_CXXFLAGS_value=$CXXFLAGS
778ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
779ac_cv_env_CXXFLAGS_value=$CXXFLAGS
780ac_env_F77_set=${F77+set}
781ac_env_F77_value=$F77
782ac_cv_env_F77_set=${F77+set}
783ac_cv_env_F77_value=$F77
784ac_env_FFLAGS_set=${FFLAGS+set}
785ac_env_FFLAGS_value=$FFLAGS
786ac_cv_env_FFLAGS_set=${FFLAGS+set}
787ac_cv_env_FFLAGS_value=$FFLAGS
788ac_env_CPP_set=${CPP+set}
789ac_env_CPP_value=$CPP
790ac_cv_env_CPP_set=${CPP+set}
791ac_cv_env_CPP_value=$CPP
792ac_env_CXXCPP_set=${CXXCPP+set}
793ac_env_CXXCPP_value=$CXXCPP
794ac_cv_env_CXXCPP_set=${CXXCPP+set}
795ac_cv_env_CXXCPP_value=$CXXCPP
796
797#
798# Report the --help message.
799#
800if test "$ac_init_help" = "long"; then
801 # Omit some internal or obsolete options to make the list less imposing.
802 # This message is too long to be a string in the A/UX 3.1 sh.
803 cat <<_ACEOF
804\`configure' configures Photos C++ Interface 3.3 to adapt to many kinds of systems.
805
806Usage: $0 [OPTION]... [VAR=VALUE]...
807
808To assign environment variables (e.g., CC, CFLAGS...), specify them as
809VAR=VALUE. See below for descriptions of some of the useful variables.
810
811Defaults for the options are specified in brackets.
812
813Configuration:
814 -h, --help display this help and exit
815 --help=short display options specific to this package
816 --help=recursive display the short help of all the included packages
817 -V, --version display version information and exit
818 -q, --quiet, --silent do not print \`checking...' messages
819 --cache-file=FILE cache test results in FILE [disabled]
820 -C, --config-cache alias for \`--cache-file=config.cache'
821 -n, --no-create do not create output files
822 --srcdir=DIR find the sources in DIR [configure dir or \`..']
823
824_ACEOF
825
826 cat <<_ACEOF
827Installation directories:
828 --prefix=PREFIX install architecture-independent files in PREFIX
829 [$ac_default_prefix]
830 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
831 [PREFIX]
832
833By default, \`make install' will install all the files in
834\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
835an installation prefix other than \`$ac_default_prefix' using \`--prefix',
836for instance \`--prefix=\$HOME'.
837
838For better control, use the options below.
839
840Fine tuning of the installation directories:
841 --bindir=DIR user executables [EPREFIX/bin]
842 --sbindir=DIR system admin executables [EPREFIX/sbin]
843 --libexecdir=DIR program executables [EPREFIX/libexec]
844 --datadir=DIR read-only architecture-independent data [PREFIX/share]
845 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
846 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
847 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
848 --libdir=DIR object code libraries [EPREFIX/lib]
849 --includedir=DIR C header files [PREFIX/include]
850 --oldincludedir=DIR C header files for non-gcc [/usr/include]
851 --infodir=DIR info documentation [PREFIX/info]
852 --mandir=DIR man documentation [PREFIX/man]
853_ACEOF
854
855 cat <<\_ACEOF
856_ACEOF
857fi
858
859if test -n "$ac_init_help"; then
860 case $ac_init_help in
861 short | recursive ) echo "Configuration of Photos C++ Interface 3.3:";;
862 esac
863 cat <<\_ACEOF
864
865Optional Features:
866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
868 --enable-debug Enable debug flags
869
870Optional Packages:
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-hepmc Path to HepMC 2.xx (use --without-hepmc to compile
874 without HepMC)
875 --with-mc-tester Path to MC-TESTER 1.23 or later (used by examples
876 only)
877 --with-pythia8 Path to Pythia 8.1 or later (used by examples only)
878 --with-tauola Path to Tauola C++ interface v1.0.5 or later (used
879 by examples only)
880
881Some influential environment variables:
882 CC C compiler command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
885 nonstandard directory <lib dir>
886 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
887 headers in a nonstandard directory <include dir>
888 CXX C++ compiler command
889 CXXFLAGS C++ compiler flags
890 F77 Fortran 77 compiler command
891 FFLAGS Fortran 77 compiler flags
892 CPP C preprocessor
893 CXXCPP C++ preprocessor
894
895Use these variables to override the choices made by `configure' or to help
896it to find libraries and programs with nonstandard names/locations.
897
898Report bugs to <tomasz.przedzinski@uj.edu.pl >.
899_ACEOF
900fi
901
902if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
904 ac_popdir=`pwd`
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
907 ac_builddir=.
908
909if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913else
914 ac_dir_suffix= ac_top_builddir=
915fi
916
917case $srcdir in
918 .) # No --srcdir option. We are building in place.
919 ac_srcdir=.
920 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=.
922 else
923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 fi ;;
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
928 *) # Relative path.
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931esac
932
933# Do not use `cd foo && pwd` to compute absolute paths, because
934# the directories may not exist.
935case `pwd` in
936.) ac_abs_builddir="$ac_dir";;
937*)
938 case "$ac_dir" in
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 esac;;
943esac
944case $ac_abs_builddir in
945.) ac_abs_top_builddir=${ac_top_builddir}.;;
946*)
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 esac;;
952esac
953case $ac_abs_builddir in
954.) ac_abs_srcdir=$ac_srcdir;;
955*)
956 case $ac_srcdir in
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 esac;;
961esac
962case $ac_abs_builddir in
963.) ac_abs_top_srcdir=$ac_top_srcdir;;
964*)
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 esac;;
970esac
971
972 cd $ac_dir
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
975 echo
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
978 echo
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
982 echo
983 $ac_configure --help
984 else
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
986 fi
987 cd $ac_popdir
988 done
989fi
990
991test -n "$ac_init_help" && exit 0
992if $ac_init_version; then
993 cat <<\_ACEOF
994Photos C++ Interface configure 3.3
995generated by GNU Autoconf 2.59
996
997Copyright (C) 2003 Free Software Foundation, Inc.
998This configure script is free software; the Free Software Foundation
999gives unlimited permission to copy, distribute and modify it.
1000_ACEOF
1001 exit 0
1002fi
1003exec 5>config.log
1004cat >&5 <<_ACEOF
1005This file contains any messages produced by compilers while
1006running configure, to aid debugging if configure makes a mistake.
1007
1008It was created by Photos C++ Interface $as_me 3.3, which was
1009generated by GNU Autoconf 2.59. Invocation command line was
1010
1011 $ $0 $@
1012
1013_ACEOF
1014{
1015cat <<_ASUNAME
1016## --------- ##
1017## Platform. ##
1018## --------- ##
1019
1020hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021uname -m = `(uname -m) 2>/dev/null || echo unknown`
1022uname -r = `(uname -r) 2>/dev/null || echo unknown`
1023uname -s = `(uname -s) 2>/dev/null || echo unknown`
1024uname -v = `(uname -v) 2>/dev/null || echo unknown`
1025
1026/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1027/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1028
1029/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1030/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1031/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1032hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1033/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1034/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1035/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1036
1037_ASUNAME
1038
1039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040for as_dir in $PATH
1041do
1042 IFS=$as_save_IFS
1043 test -z "$as_dir" && as_dir=.
1044 echo "PATH: $as_dir"
1045done
1046
1047} >&5
1048
1049cat >&5 <<_ACEOF
1050
1051
1052## ----------- ##
1053## Core tests. ##
1054## ----------- ##
1055
1056_ACEOF
1057
1058
1059# Keep a trace of the command line.
1060# Strip out --no-create and --no-recursion so they do not pile up.
1061# Strip out --silent because we don't want to record it for future runs.
1062# Also quote any args containing shell meta-characters.
1063# Make two passes to allow for proper duplicate-argument suppression.
1064ac_configure_args=
1065ac_configure_args0=
1066ac_configure_args1=
1067ac_sep=
1068ac_must_keep_next=false
1069for ac_pass in 1 2
1070do
1071 for ac_arg
1072 do
1073 case $ac_arg in
1074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 continue ;;
1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1080 esac
1081 case $ac_pass in
1082 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1083 2)
1084 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 if test $ac_must_keep_next = true; then
1086 ac_must_keep_next=false # Got value, back to normal.
1087 else
1088 case $ac_arg in
1089 *=* | --config-cache | -C | -disable-* | --disable-* \
1090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 | -with-* | --with-* | -without-* | --without-* | --x)
1093 case "$ac_configure_args0 " in
1094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 esac
1096 ;;
1097 -* ) ac_must_keep_next=true ;;
1098 esac
1099 fi
1100 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 # Get rid of the leading space.
1102 ac_sep=" "
1103 ;;
1104 esac
1105 done
1106done
1107$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1109
1110# When interrupted or exit'd, cleanup temporary files, and complete
1111# config.log. We remove comments because anyway the quotes in there
1112# would cause problems or look ugly.
1113# WARNING: Be sure not to use single quotes in there, as some shells,
1114# such as our DU 5.0 friend, will then `close' the trap.
1115trap 'exit_status=$?
1116 # Save into config.log some information that might help in debugging.
1117 {
1118 echo
1119
1120 cat <<\_ASBOX
1121## ---------------- ##
1122## Cache variables. ##
1123## ---------------- ##
1124_ASBOX
1125 echo
1126 # The following way of writing the cache mishandles newlines in values,
1127{
1128 (set) 2>&1 |
1129 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130 *ac_space=\ *)
1131 sed -n \
1132 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134 ;;
1135 *)
1136 sed -n \
1137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138 ;;
1139 esac;
1140}
1141 echo
1142
1143 cat <<\_ASBOX
1144## ----------------- ##
1145## Output variables. ##
1146## ----------------- ##
1147_ASBOX
1148 echo
1149 for ac_var in $ac_subst_vars
1150 do
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
1155
1156 if test -n "$ac_subst_files"; then
1157 cat <<\_ASBOX
1158## ------------- ##
1159## Output files. ##
1160## ------------- ##
1161_ASBOX
1162 echo
1163 for ac_var in $ac_subst_files
1164 do
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1167 done | sort
1168 echo
1169 fi
1170
1171 if test -s confdefs.h; then
1172 cat <<\_ASBOX
1173## ----------- ##
1174## confdefs.h. ##
1175## ----------- ##
1176_ASBOX
1177 echo
1178 sed "/^$/d" confdefs.h | sort
1179 echo
1180 fi
1181 test "$ac_signal" != 0 &&
1182 echo "$as_me: caught signal $ac_signal"
1183 echo "$as_me: exit $exit_status"
1184 } >&5
1185 rm -f core *.core &&
1186 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1187 exit $exit_status
1188 ' 0
1189for ac_signal in 1 2 13 15; do
1190 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191done
1192ac_signal=0
1193
1194# confdefs.h avoids OS command line length limits that DEFS can exceed.
1195rm -rf conftest* confdefs.h
1196# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197echo >confdefs.h
1198
1199# Predefined preprocessor variables.
1200
1201cat >>confdefs.h <<_ACEOF
1202#define PACKAGE_NAME "$PACKAGE_NAME"
1203_ACEOF
1204
1205
1206cat >>confdefs.h <<_ACEOF
1207#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208_ACEOF
1209
1210
1211cat >>confdefs.h <<_ACEOF
1212#define PACKAGE_VERSION "$PACKAGE_VERSION"
1213_ACEOF
1214
1215
1216cat >>confdefs.h <<_ACEOF
1217#define PACKAGE_STRING "$PACKAGE_STRING"
1218_ACEOF
1219
1220
1221cat >>confdefs.h <<_ACEOF
1222#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223_ACEOF
1224
1225
1226# Let the site file select an alternate cache file if it wants to.
1227# Prefer explicitly selected file to automatically selected ones.
1228if test -z "$CONFIG_SITE"; then
1229 if test "x$prefix" != xNONE; then
1230 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1231 else
1232 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1233 fi
1234fi
1235for ac_site_file in $CONFIG_SITE; do
1236 if test -r "$ac_site_file"; then
1237 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238echo "$as_me: loading site script $ac_site_file" >&6;}
1239 sed 's/^/| /' "$ac_site_file" >&5
1240 . "$ac_site_file"
1241 fi
1242done
1243
1244if test -r "$cache_file"; then
1245 # Some versions of bash will fail to source /dev/null (special
1246 # files actually), so we avoid doing that.
1247 if test -f "$cache_file"; then
1248 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249echo "$as_me: loading cache $cache_file" >&6;}
1250 case $cache_file in
1251 [\\/]* | ?:[\\/]* ) . $cache_file;;
1252 *) . ./$cache_file;;
1253 esac
1254 fi
1255else
1256 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257echo "$as_me: creating cache $cache_file" >&6;}
1258 >$cache_file
1259fi
1260
1261# Check that the precious variables saved in the cache have kept the same
1262# value.
1263ac_cache_corrupted=false
1264for ac_var in `(set) 2>&1 |
1265 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267 eval ac_new_set=\$ac_env_${ac_var}_set
1268 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269 eval ac_new_val="\$ac_env_${ac_var}_value"
1270 case $ac_old_set,$ac_new_set in
1271 set,)
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1275 ,set)
1276 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1277echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1279 ,);;
1280 *)
1281 if test "x$ac_old_val" != "x$ac_new_val"; then
1282 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1285echo "$as_me: former value: $ac_old_val" >&2;}
1286 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1287echo "$as_me: current value: $ac_new_val" >&2;}
1288 ac_cache_corrupted=:
1289 fi;;
1290 esac
1291 # Pass precious variables to config.status.
1292 if test "$ac_new_set" = set; then
1293 case $ac_new_val in
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1296 *) ac_arg=$ac_var=$ac_new_val ;;
1297 esac
1298 case " $ac_configure_args " in
1299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1300 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301 esac
1302 fi
1303done
1304if $ac_cache_corrupted; then
1305 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1308echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309 { (exit 1); exit 1; }; }
1310fi
1311
1312ac_ext=c
1313ac_cpp='$CPP $CPPFLAGS'
1314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344ac_ext=cc
1345ac_cpp='$CXXCPP $CPPFLAGS'
1346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1349
1350
1351
1352
1353
1354##############################################################################
1355# Process command line options
1356
1357if test "$AFS_PATHS" == "yes"; then
1358 with_hepmc=$HEPMCLOCATION
1359 with_tauola=$TAUOLALOCATION
1360 with_mc_tester=$MCTESTERLOCATION
1361 with_pythia8=$PYTHIALOCATION
1362 pythia8data=$PYTHIA8DATA
1363fi
1364
1365echo ""
1366
1367echo "$as_me:$LINENO: checking if HepMC location defined" >&5
1368echo $ECHO_N "checking if HepMC location defined... $ECHO_C" >&6
1369
1370# Check whether --with-hepmc or --without-hepmc was given.
1371if test "${with_hepmc+set}" = set; then
1372 withval="$with_hepmc"
1373 echo "$as_me:$LINENO: result: $with_hepmc" >&5
1374echo "${ECHO_T}$with_hepmc" >&6
1375else
1376 echo "$as_me:$LINENO: result: no" >&5
1377echo "${ECHO_T}no" >&6
1378
1379fi;
1380
1381echo "$as_me:$LINENO: checking if MC-TESTER location defined" >&5
1382echo $ECHO_N "checking if MC-TESTER location defined... $ECHO_C" >&6
1383
1384# Check whether --with-mc-tester or --without-mc-tester was given.
1385if test "${with_mc_tester+set}" = set; then
1386 withval="$with_mc_tester"
1387 echo "$as_me:$LINENO: result: $with_mc_tester" >&5
1388echo "${ECHO_T}$with_mc_tester" >&6
1389else
1390 echo "$as_me:$LINENO: result: no" >&5
1391echo "${ECHO_T}no" >&6
1392
1393fi;
1394
1395echo "$as_me:$LINENO: checking if Pythia 8 location defined" >&5
1396echo $ECHO_N "checking if Pythia 8 location defined... $ECHO_C" >&6
1397
1398# Check whether --with-pythia8 or --without-pythia8 was given.
1399if test "${with_pythia8+set}" = set; then
1400 withval="$with_pythia8"
1401 echo "$as_me:$LINENO: result: $with_pythia8" >&5
1402echo "${ECHO_T}$with_pythia8" >&6
1403else
1404 echo "$as_me:$LINENO: result: no" >&5
1405echo "${ECHO_T}no" >&6
1406
1407fi;
1408
1409echo "$as_me:$LINENO: checking if Tauola location defined" >&5
1410echo $ECHO_N "checking if Tauola location defined... $ECHO_C" >&6
1411
1412# Check whether --with-tauola or --without-tauola was given.
1413if test "${with_tauola+set}" = set; then
1414 withval="$with_tauola"
1415 echo "$as_me:$LINENO: result: $with_tauola" >&5
1416echo "${ECHO_T}$with_tauola" >&6
1417else
1418 echo "$as_me:$LINENO: result: no" >&5
1419echo "${ECHO_T}no" >&6
1420
1421fi;
1422
1423# Check for debug flags
1424echo "$as_me:$LINENO: checking if debug flags are enabled" >&5
1425echo $ECHO_N "checking if debug flags are enabled... $ECHO_C" >&6
1426# Check whether --enable-debug or --disable-debug was given.
1427if test "${enable_debug+set}" = set; then
1428 enableval="$enable_debug"
1429
1430 echo "$as_me:$LINENO: result: $enable_debug" >&5
1431echo "${ECHO_T}$enable_debug" >&6 ;
1432 FFLAGS="-g3 -O0" ;
1433 CXXFLAGS="-g3 -O0"
1434
1435else
1436
1437 echo "$as_me:$LINENO: result: no" >&5
1438echo "${ECHO_T}no" >&6 ;
1439 FFLAGS="-O2" ;
1440 CXXFLAGS="-O2"
1441
1442
1443fi;
1444
1445echo ""
1446
1447##############################################################################
1448# Check for programs
1449echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1450echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1451set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1452if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1454else
1455 cat >conftest.make <<\_ACEOF
1456all:
1457 @echo 'ac_maketemp="$(MAKE)"'
1458_ACEOF
1459# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1460eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1461if test -n "$ac_maketemp"; then
1462 eval ac_cv_prog_make_${ac_make}_set=yes
1463else
1464 eval ac_cv_prog_make_${ac_make}_set=no
1465fi
1466rm -f conftest.make
1467fi
1468if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1469 echo "$as_me:$LINENO: result: yes" >&5
1470echo "${ECHO_T}yes" >&6
1471 SET_MAKE=
1472else
1473 echo "$as_me:$LINENO: result: no" >&5
1474echo "${ECHO_T}no" >&6
1475 SET_MAKE="MAKE=${MAKE-make}"
1476fi
1477
1478echo "$as_me:$LINENO: checking whether ln -s works" >&5
1479echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1480LN_S=$as_ln_s
1481if test "$LN_S" = "ln -s"; then
1482 echo "$as_me:$LINENO: result: yes" >&5
1483echo "${ECHO_T}yes" >&6
1484else
1485 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1486echo "${ECHO_T}no, using $LN_S" >&6
1487fi
1488
1489ac_ext=c
1490ac_cpp='$CPP $CPPFLAGS'
1491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1493ac_compiler_gnu=$ac_cv_c_compiler_gnu
1494if test -n "$ac_tool_prefix"; then
1495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1496set dummy ${ac_tool_prefix}gcc; ac_word=$2
1497echo "$as_me:$LINENO: checking for $ac_word" >&5
1498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1499if test "${ac_cv_prog_CC+set}" = set; then
1500 echo $ECHO_N "(cached) $ECHO_C" >&6
1501else
1502 if test -n "$CC"; then
1503 ac_cv_prog_CC="$CC" # Let the user override the test.
1504else
1505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1506for as_dir in $PATH
1507do
1508 IFS=$as_save_IFS
1509 test -z "$as_dir" && as_dir=.
1510 for ac_exec_ext in '' $ac_executable_extensions; do
1511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1512 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1514 break 2
1515 fi
1516done
1517done
1518
1519fi
1520fi
1521CC=$ac_cv_prog_CC
1522if test -n "$CC"; then
1523 echo "$as_me:$LINENO: result: $CC" >&5
1524echo "${ECHO_T}$CC" >&6
1525else
1526 echo "$as_me:$LINENO: result: no" >&5
1527echo "${ECHO_T}no" >&6
1528fi
1529
1530fi
1531if test -z "$ac_cv_prog_CC"; then
1532 ac_ct_CC=$CC
1533 # Extract the first word of "gcc", so it can be a program name with args.
1534set dummy gcc; ac_word=$2
1535echo "$as_me:$LINENO: checking for $ac_word" >&5
1536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1537if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
1539else
1540 if test -n "$ac_ct_CC"; then
1541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1542else
1543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544for as_dir in $PATH
1545do
1546 IFS=$as_save_IFS
1547 test -z "$as_dir" && as_dir=.
1548 for ac_exec_ext in '' $ac_executable_extensions; do
1549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1550 ac_cv_prog_ac_ct_CC="gcc"
1551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1552 break 2
1553 fi
1554done
1555done
1556
1557fi
1558fi
1559ac_ct_CC=$ac_cv_prog_ac_ct_CC
1560if test -n "$ac_ct_CC"; then
1561 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1562echo "${ECHO_T}$ac_ct_CC" >&6
1563else
1564 echo "$as_me:$LINENO: result: no" >&5
1565echo "${ECHO_T}no" >&6
1566fi
1567
1568 CC=$ac_ct_CC
1569else
1570 CC="$ac_cv_prog_CC"
1571fi
1572
1573if test -z "$CC"; then
1574 if test -n "$ac_tool_prefix"; then
1575 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1576set dummy ${ac_tool_prefix}cc; ac_word=$2
1577echo "$as_me:$LINENO: checking for $ac_word" >&5
1578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1579if test "${ac_cv_prog_CC+set}" = set; then
1580 echo $ECHO_N "(cached) $ECHO_C" >&6
1581else
1582 if test -n "$CC"; then
1583 ac_cv_prog_CC="$CC" # Let the user override the test.
1584else
1585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586for as_dir in $PATH
1587do
1588 IFS=$as_save_IFS
1589 test -z "$as_dir" && as_dir=.
1590 for ac_exec_ext in '' $ac_executable_extensions; do
1591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1592 ac_cv_prog_CC="${ac_tool_prefix}cc"
1593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1594 break 2
1595 fi
1596done
1597done
1598
1599fi
1600fi
1601CC=$ac_cv_prog_CC
1602if test -n "$CC"; then
1603 echo "$as_me:$LINENO: result: $CC" >&5
1604echo "${ECHO_T}$CC" >&6
1605else
1606 echo "$as_me:$LINENO: result: no" >&5
1607echo "${ECHO_T}no" >&6
1608fi
1609
1610fi
1611if test -z "$ac_cv_prog_CC"; then
1612 ac_ct_CC=$CC
1613 # Extract the first word of "cc", so it can be a program name with args.
1614set dummy cc; ac_word=$2
1615echo "$as_me:$LINENO: checking for $ac_word" >&5
1616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1617if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
1619else
1620 if test -n "$ac_ct_CC"; then
1621 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1622else
1623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1624for as_dir in $PATH
1625do
1626 IFS=$as_save_IFS
1627 test -z "$as_dir" && as_dir=.
1628 for ac_exec_ext in '' $ac_executable_extensions; do
1629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1630 ac_cv_prog_ac_ct_CC="cc"
1631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632 break 2
1633 fi
1634done
1635done
1636
1637fi
1638fi
1639ac_ct_CC=$ac_cv_prog_ac_ct_CC
1640if test -n "$ac_ct_CC"; then
1641 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1642echo "${ECHO_T}$ac_ct_CC" >&6
1643else
1644 echo "$as_me:$LINENO: result: no" >&5
1645echo "${ECHO_T}no" >&6
1646fi
1647
1648 CC=$ac_ct_CC
1649else
1650 CC="$ac_cv_prog_CC"
1651fi
1652
1653fi
1654if test -z "$CC"; then
1655 # Extract the first word of "cc", so it can be a program name with args.
1656set dummy cc; ac_word=$2
1657echo "$as_me:$LINENO: checking for $ac_word" >&5
1658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659if test "${ac_cv_prog_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1661else
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC="$CC" # Let the user override the test.
1664else
1665 ac_prog_rejected=no
1666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667for as_dir in $PATH
1668do
1669 IFS=$as_save_IFS
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1674 ac_prog_rejected=yes
1675 continue
1676 fi
1677 ac_cv_prog_CC="cc"
1678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679 break 2
1680 fi
1681done
1682done
1683
1684if test $ac_prog_rejected = yes; then
1685 # We found a bogon in the path, so make sure we never use it.
1686 set dummy $ac_cv_prog_CC
1687 shift
1688 if test $# != 0; then
1689 # We chose a different compiler from the bogus one.
1690 # However, it has the same basename, so the bogon will be chosen
1691 # first if we set CC to just the basename; use the full file name.
1692 shift
1693 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1694 fi
1695fi
1696fi
1697fi
1698CC=$ac_cv_prog_CC
1699if test -n "$CC"; then
1700 echo "$as_me:$LINENO: result: $CC" >&5
1701echo "${ECHO_T}$CC" >&6
1702else
1703 echo "$as_me:$LINENO: result: no" >&5
1704echo "${ECHO_T}no" >&6
1705fi
1706
1707fi
1708if test -z "$CC"; then
1709 if test -n "$ac_tool_prefix"; then
1710 for ac_prog in cl
1711 do
1712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1713set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1714echo "$as_me:$LINENO: checking for $ac_word" >&5
1715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1716if test "${ac_cv_prog_CC+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1718else
1719 if test -n "$CC"; then
1720 ac_cv_prog_CC="$CC" # Let the user override the test.
1721else
1722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723for as_dir in $PATH
1724do
1725 IFS=$as_save_IFS
1726 test -z "$as_dir" && as_dir=.
1727 for ac_exec_ext in '' $ac_executable_extensions; do
1728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1729 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731 break 2
1732 fi
1733done
1734done
1735
1736fi
1737fi
1738CC=$ac_cv_prog_CC
1739if test -n "$CC"; then
1740 echo "$as_me:$LINENO: result: $CC" >&5
1741echo "${ECHO_T}$CC" >&6
1742else
1743 echo "$as_me:$LINENO: result: no" >&5
1744echo "${ECHO_T}no" >&6
1745fi
1746
1747 test -n "$CC" && break
1748 done
1749fi
1750if test -z "$CC"; then
1751 ac_ct_CC=$CC
1752 for ac_prog in cl
1753do
1754 # Extract the first word of "$ac_prog", so it can be a program name with args.
1755set dummy $ac_prog; ac_word=$2
1756echo "$as_me:$LINENO: checking for $ac_word" >&5
1757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1758if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1760else
1761 if test -n "$ac_ct_CC"; then
1762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1763else
1764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765for as_dir in $PATH
1766do
1767 IFS=$as_save_IFS
1768 test -z "$as_dir" && as_dir=.
1769 for ac_exec_ext in '' $ac_executable_extensions; do
1770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1771 ac_cv_prog_ac_ct_CC="$ac_prog"
1772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 break 2
1774 fi
1775done
1776done
1777
1778fi
1779fi
1780ac_ct_CC=$ac_cv_prog_ac_ct_CC
1781if test -n "$ac_ct_CC"; then
1782 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1783echo "${ECHO_T}$ac_ct_CC" >&6
1784else
1785 echo "$as_me:$LINENO: result: no" >&5
1786echo "${ECHO_T}no" >&6
1787fi
1788
1789 test -n "$ac_ct_CC" && break
1790done
1791
1792 CC=$ac_ct_CC
1793fi
1794
1795fi
1796
1797
1798test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1799See \`config.log' for more details." >&5
1800echo "$as_me: error: no acceptable C compiler found in \$PATH
1801See \`config.log' for more details." >&2;}
1802 { (exit 1); exit 1; }; }
1803
1804# Provide some information about the compiler.
1805echo "$as_me:$LINENO:" \
1806 "checking for C compiler version" >&5
1807ac_compiler=`set X $ac_compile; echo $2`
1808{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1809 (eval $ac_compiler --version </dev/null >&5) 2>&5
1810 ac_status=$?
1811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1812 (exit $ac_status); }
1813{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1814 (eval $ac_compiler -v </dev/null >&5) 2>&5
1815 ac_status=$?
1816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1817 (exit $ac_status); }
1818{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1819 (eval $ac_compiler -V </dev/null >&5) 2>&5
1820 ac_status=$?
1821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1822 (exit $ac_status); }
1823
1824cat >conftest.$ac_ext <<_ACEOF
1825/* confdefs.h. */
1826_ACEOF
1827cat confdefs.h >>conftest.$ac_ext
1828cat >>conftest.$ac_ext <<_ACEOF
1829/* end confdefs.h. */
1830
1831int
1832main ()
1833{
1834
1835 ;
1836 return 0;
1837}
1838_ACEOF
1839ac_clean_files_save=$ac_clean_files
1840ac_clean_files="$ac_clean_files a.out a.exe b.out"
1841# Try to create an executable without -o first, disregard a.out.
1842# It will help us diagnose broken compilers, and finding out an intuition
1843# of exeext.
1844echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1845echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1846ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1847if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1848 (eval $ac_link_default) 2>&5
1849 ac_status=$?
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }; then
1852 # Find the output, starting from the most likely. This scheme is
1853# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1854# resort.
1855
1856# Be careful to initialize this variable, since it used to be cached.
1857# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1858ac_cv_exeext=
1859# b.out is created by i960 compilers.
1860for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1861do
1862 test -f "$ac_file" || continue
1863 case $ac_file in
1864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1865 ;;
1866 conftest.$ac_ext )
1867 # This is the source file.
1868 ;;
1869 [ab].out )
1870 # We found the default executable, but exeext='' is most
1871 # certainly right.
1872 break;;
1873 *.* )
1874 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1875 # FIXME: I believe we export ac_cv_exeext for Libtool,
1876 # but it would be cool to find out if it's true. Does anybody
1877 # maintain Libtool? --akim.
1878 export ac_cv_exeext
1879 break;;
1880 * )
1881 break;;
1882 esac
1883done
1884else
1885 echo "$as_me: failed program was:" >&5
1886sed 's/^/| /' conftest.$ac_ext >&5
1887
1888{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1889See \`config.log' for more details." >&5
1890echo "$as_me: error: C compiler cannot create executables
1891See \`config.log' for more details." >&2;}
1892 { (exit 77); exit 77; }; }
1893fi
1894
1895ac_exeext=$ac_cv_exeext
1896echo "$as_me:$LINENO: result: $ac_file" >&5
1897echo "${ECHO_T}$ac_file" >&6
1898
1899# Check the compiler produces executables we can run. If not, either
1900# the compiler is broken, or we cross compile.
1901echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1902echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1903# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1904# If not cross compiling, check that we can run a simple program.
1905if test "$cross_compiling" != yes; then
1906 if { ac_try='./$ac_file'
1907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1908 (eval $ac_try) 2>&5
1909 ac_status=$?
1910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1911 (exit $ac_status); }; }; then
1912 cross_compiling=no
1913 else
1914 if test "$cross_compiling" = maybe; then
1915 cross_compiling=yes
1916 else
1917 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1918If you meant to cross compile, use \`--host'.
1919See \`config.log' for more details." >&5
1920echo "$as_me: error: cannot run C compiled programs.
1921If you meant to cross compile, use \`--host'.
1922See \`config.log' for more details." >&2;}
1923 { (exit 1); exit 1; }; }
1924 fi
1925 fi
1926fi
1927echo "$as_me:$LINENO: result: yes" >&5
1928echo "${ECHO_T}yes" >&6
1929
1930rm -f a.out a.exe conftest$ac_cv_exeext b.out
1931ac_clean_files=$ac_clean_files_save
1932# Check the compiler produces executables we can run. If not, either
1933# the compiler is broken, or we cross compile.
1934echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1935echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1936echo "$as_me:$LINENO: result: $cross_compiling" >&5
1937echo "${ECHO_T}$cross_compiling" >&6
1938
1939echo "$as_me:$LINENO: checking for suffix of executables" >&5
1940echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1942 (eval $ac_link) 2>&5
1943 ac_status=$?
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; then
1946 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1947# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1948# work properly (i.e., refer to `conftest.exe'), while it won't with
1949# `rm'.
1950for ac_file in conftest.exe conftest conftest.*; do
1951 test -f "$ac_file" || continue
1952 case $ac_file in
1953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1954 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1955 export ac_cv_exeext
1956 break;;
1957 * ) break;;
1958 esac
1959done
1960else
1961 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1962See \`config.log' for more details." >&5
1963echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1964See \`config.log' for more details." >&2;}
1965 { (exit 1); exit 1; }; }
1966fi
1967
1968rm -f conftest$ac_cv_exeext
1969echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1970echo "${ECHO_T}$ac_cv_exeext" >&6
1971
1972rm -f conftest.$ac_ext
1973EXEEXT=$ac_cv_exeext
1974ac_exeext=$EXEEXT
1975echo "$as_me:$LINENO: checking for suffix of object files" >&5
1976echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1977if test "${ac_cv_objext+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1979else
1980 cat >conftest.$ac_ext <<_ACEOF
1981/* confdefs.h. */
1982_ACEOF
1983cat confdefs.h >>conftest.$ac_ext
1984cat >>conftest.$ac_ext <<_ACEOF
1985/* end confdefs.h. */
1986
1987int
1988main ()
1989{
1990
1991 ;
1992 return 0;
1993}
1994_ACEOF
1995rm -f conftest.o conftest.obj
1996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1997 (eval $ac_compile) 2>&5
1998 ac_status=$?
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }; then
2001 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2002 case $ac_file in
2003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2004 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2005 break;;
2006 esac
2007done
2008else
2009 echo "$as_me: failed program was:" >&5
2010sed 's/^/| /' conftest.$ac_ext >&5
2011
2012{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2013See \`config.log' for more details." >&5
2014echo "$as_me: error: cannot compute suffix of object files: cannot compile
2015See \`config.log' for more details." >&2;}
2016 { (exit 1); exit 1; }; }
2017fi
2018
2019rm -f conftest.$ac_cv_objext conftest.$ac_ext
2020fi
2021echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2022echo "${ECHO_T}$ac_cv_objext" >&6
2023OBJEXT=$ac_cv_objext
2024ac_objext=$OBJEXT
2025echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2026echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2027if test "${ac_cv_c_compiler_gnu+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2029else
2030 cat >conftest.$ac_ext <<_ACEOF
2031/* confdefs.h. */
2032_ACEOF
2033cat confdefs.h >>conftest.$ac_ext
2034cat >>conftest.$ac_ext <<_ACEOF
2035/* end confdefs.h. */
2036
2037int
2038main ()
2039{
2040#ifndef __GNUC__
2041 choke me
2042#endif
2043
2044 ;
2045 return 0;
2046}
2047_ACEOF
2048rm -f conftest.$ac_objext
2049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>conftest.er1
2051 ac_status=$?
2052 grep -v '^ *+' conftest.er1 >conftest.err
2053 rm -f conftest.er1
2054 cat conftest.err >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
2057 { ac_try='test -z "$ac_c_werror_flag"
2058 || test ! -s conftest.err'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 (eval $ac_try) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; } &&
2064 { ac_try='test -s conftest.$ac_objext'
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 (eval $ac_try) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; }; then
2070 ac_compiler_gnu=yes
2071else
2072 echo "$as_me: failed program was:" >&5
2073sed 's/^/| /' conftest.$ac_ext >&5
2074
2075ac_compiler_gnu=no
2076fi
2077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2078ac_cv_c_compiler_gnu=$ac_compiler_gnu
2079
2080fi
2081echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2082echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2083GCC=`test $ac_compiler_gnu = yes && echo yes`
2084ac_test_CFLAGS=${CFLAGS+set}
2085ac_save_CFLAGS=$CFLAGS
2086CFLAGS="-g"
2087echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2088echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2089if test "${ac_cv_prog_cc_g+set}" = set; then
2090 echo $ECHO_N "(cached) $ECHO_C" >&6
2091else
2092 cat >conftest.$ac_ext <<_ACEOF
2093/* confdefs.h. */
2094_ACEOF
2095cat confdefs.h >>conftest.$ac_ext
2096cat >>conftest.$ac_ext <<_ACEOF
2097/* end confdefs.h. */
2098
2099int
2100main ()
2101{
2102
2103 ;
2104 return 0;
2105}
2106_ACEOF
2107rm -f conftest.$ac_objext
2108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2109 (eval $ac_compile) 2>conftest.er1
2110 ac_status=$?
2111 grep -v '^ *+' conftest.er1 >conftest.err
2112 rm -f conftest.er1
2113 cat conftest.err >&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); } &&
2116 { ac_try='test -z "$ac_c_werror_flag"
2117 || test ! -s conftest.err'
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 (eval $ac_try) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; } &&
2123 { ac_try='test -s conftest.$ac_objext'
2124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2125 (eval $ac_try) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; }; then
2129 ac_cv_prog_cc_g=yes
2130else
2131 echo "$as_me: failed program was:" >&5
2132sed 's/^/| /' conftest.$ac_ext >&5
2133
2134ac_cv_prog_cc_g=no
2135fi
2136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2137fi
2138echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2139echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2140if test "$ac_test_CFLAGS" = set; then
2141 CFLAGS=$ac_save_CFLAGS
2142elif test $ac_cv_prog_cc_g = yes; then
2143 if test "$GCC" = yes; then
2144 CFLAGS="-g -O2"
2145 else
2146 CFLAGS="-g"
2147 fi
2148else
2149 if test "$GCC" = yes; then
2150 CFLAGS="-O2"
2151 else
2152 CFLAGS=
2153 fi
2154fi
2155echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2156echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2157if test "${ac_cv_prog_cc_stdc+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159else
2160 ac_cv_prog_cc_stdc=no
2161ac_save_CC=$CC
2162cat >conftest.$ac_ext <<_ACEOF
2163/* confdefs.h. */
2164_ACEOF
2165cat confdefs.h >>conftest.$ac_ext
2166cat >>conftest.$ac_ext <<_ACEOF
2167/* end confdefs.h. */
2168#include <stdarg.h>
2169#include <stdio.h>
2170#include <sys/types.h>
2171#include <sys/stat.h>
2172/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2173struct buf { int x; };
2174FILE * (*rcsopen) (struct buf *, struct stat *, int);
2175static char *e (p, i)
2176 char **p;
2177 int i;
2178{
2179 return p[i];
2180}
2181static char *f (char * (*g) (char **, int), char **p, ...)
2182{
2183 char *s;
2184 va_list v;
2185 va_start (v,p);
2186 s = g (p, va_arg (v,int));
2187 va_end (v);
2188 return s;
2189}
2190
2191/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2192 function prototypes and stuff, but not '\xHH' hex character constants.
2193 These don't provoke an error unfortunately, instead are silently treated
2194 as 'x'. The following induces an error, until -std1 is added to get
2195 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2196 array size at least. It's necessary to write '\x00'==0 to get something
2197 that's true only with -std1. */
2198int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2199
2200int test (int i, double x);
2201struct s1 {int (*f) (int a);};
2202struct s2 {int (*f) (double a);};
2203int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2204int argc;
2205char **argv;
2206int
2207main ()
2208{
2209return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2210 ;
2211 return 0;
2212}
2213_ACEOF
2214# Don't try gcc -ansi; that turns off useful extensions and
2215# breaks some systems' header files.
2216# AIX -qlanglvl=ansi
2217# Ultrix and OSF/1 -std1
2218# HP-UX 10.20 and later -Ae
2219# HP-UX older versions -Aa -D_HPUX_SOURCE
2220# SVR4 -Xc -D__EXTENSIONS__
2221for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2222do
2223 CC="$ac_save_CC $ac_arg"
2224 rm -f conftest.$ac_objext
2225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226 (eval $ac_compile) 2>conftest.er1
2227 ac_status=$?
2228 grep -v '^ *+' conftest.er1 >conftest.err
2229 rm -f conftest.er1
2230 cat conftest.err >&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); } &&
2233 { ac_try='test -z "$ac_c_werror_flag"
2234 || test ! -s conftest.err'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 (eval $ac_try) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; } &&
2240 { ac_try='test -s conftest.$ac_objext'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 (eval $ac_try) 2>&5
2243 ac_status=$?
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; }; then
2246 ac_cv_prog_cc_stdc=$ac_arg
2247break
2248else
2249 echo "$as_me: failed program was:" >&5
2250sed 's/^/| /' conftest.$ac_ext >&5
2251
2252fi
2253rm -f conftest.err conftest.$ac_objext
2254done
2255rm -f conftest.$ac_ext conftest.$ac_objext
2256CC=$ac_save_CC
2257
2258fi
2259
2260case "x$ac_cv_prog_cc_stdc" in
2261 x|xno)
2262 echo "$as_me:$LINENO: result: none needed" >&5
2263echo "${ECHO_T}none needed" >&6 ;;
2264 *)
2265 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2266echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2267 CC="$CC $ac_cv_prog_cc_stdc" ;;
2268esac
2269
2270# Some people use a C++ compiler to compile C. Since we use `exit',
2271# in C++ we need to declare it. In case someone uses the same compiler
2272# for both compiling C and C++ we need to have the C++ compiler decide
2273# the declaration of exit, since it's the most demanding environment.
2274cat >conftest.$ac_ext <<_ACEOF
2275#ifndef __cplusplus
2276 choke me
2277#endif
2278_ACEOF
2279rm -f conftest.$ac_objext
2280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2281 (eval $ac_compile) 2>conftest.er1
2282 ac_status=$?
2283 grep -v '^ *+' conftest.er1 >conftest.err
2284 rm -f conftest.er1
2285 cat conftest.err >&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); } &&
2288 { ac_try='test -z "$ac_c_werror_flag"
2289 || test ! -s conftest.err'
2290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291 (eval $ac_try) 2>&5
2292 ac_status=$?
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; } &&
2295 { ac_try='test -s conftest.$ac_objext'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297 (eval $ac_try) 2>&5
2298 ac_status=$?
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; }; then
2301 for ac_declaration in \
2302 '' \
2303 'extern "C" void std::exit (int) throw (); using std::exit;' \
2304 'extern "C" void std::exit (int); using std::exit;' \
2305 'extern "C" void exit (int) throw ();' \
2306 'extern "C" void exit (int);' \
2307 'void exit (int);'
2308do
2309 cat >conftest.$ac_ext <<_ACEOF
2310/* confdefs.h. */
2311_ACEOF
2312cat confdefs.h >>conftest.$ac_ext
2313cat >>conftest.$ac_ext <<_ACEOF
2314/* end confdefs.h. */
2315$ac_declaration
2316#include <stdlib.h>
2317int
2318main ()
2319{
2320exit (42);
2321 ;
2322 return 0;
2323}
2324_ACEOF
2325rm -f conftest.$ac_objext
2326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327 (eval $ac_compile) 2>conftest.er1
2328 ac_status=$?
2329 grep -v '^ *+' conftest.er1 >conftest.err
2330 rm -f conftest.er1
2331 cat conftest.err >&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); } &&
2334 { ac_try='test -z "$ac_c_werror_flag"
2335 || test ! -s conftest.err'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 (eval $ac_try) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; } &&
2341 { ac_try='test -s conftest.$ac_objext'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 (eval $ac_try) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; }; then
2347 :
2348else
2349 echo "$as_me: failed program was:" >&5
2350sed 's/^/| /' conftest.$ac_ext >&5
2351
2352continue
2353fi
2354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2355 cat >conftest.$ac_ext <<_ACEOF
2356/* confdefs.h. */
2357_ACEOF
2358cat confdefs.h >>conftest.$ac_ext
2359cat >>conftest.$ac_ext <<_ACEOF
2360/* end confdefs.h. */
2361$ac_declaration
2362int
2363main ()
2364{
2365exit (42);
2366 ;
2367 return 0;
2368}
2369_ACEOF
2370rm -f conftest.$ac_objext
2371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372 (eval $ac_compile) 2>conftest.er1
2373 ac_status=$?
2374 grep -v '^ *+' conftest.er1 >conftest.err
2375 rm -f conftest.er1
2376 cat conftest.err >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
2379 { ac_try='test -z "$ac_c_werror_flag"
2380 || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 (eval $ac_try) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 (eval $ac_try) 2>&5
2389 ac_status=$?
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2392 break
2393else
2394 echo "$as_me: failed program was:" >&5
2395sed 's/^/| /' conftest.$ac_ext >&5
2396
2397fi
2398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2399done
2400rm -f conftest*
2401if test -n "$ac_declaration"; then
2402 echo '#ifdef __cplusplus' >>confdefs.h
2403 echo $ac_declaration >>confdefs.h
2404 echo '#endif' >>confdefs.h
2405fi
2406
2407else
2408 echo "$as_me: failed program was:" >&5
2409sed 's/^/| /' conftest.$ac_ext >&5
2410
2411fi
2412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2413ac_ext=cc
2414ac_cpp='$CXXCPP $CPPFLAGS'
2415ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2418
2419ac_ext=cc
2420ac_cpp='$CXXCPP $CPPFLAGS'
2421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2424if test -n "$ac_tool_prefix"; then
2425 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2426 do
2427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2428set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2429echo "$as_me:$LINENO: checking for $ac_word" >&5
2430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2431if test "${ac_cv_prog_CXX+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434 if test -n "$CXX"; then
2435 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2436else
2437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438for as_dir in $PATH
2439do
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2446 break 2
2447 fi
2448done
2449done
2450
2451fi
2452fi
2453CXX=$ac_cv_prog_CXX
2454if test -n "$CXX"; then
2455 echo "$as_me:$LINENO: result: $CXX" >&5
2456echo "${ECHO_T}$CXX" >&6
2457else
2458 echo "$as_me:$LINENO: result: no" >&5
2459echo "${ECHO_T}no" >&6
2460fi
2461
2462 test -n "$CXX" && break
2463 done
2464fi
2465if test -z "$CXX"; then
2466 ac_ct_CXX=$CXX
2467 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2468do
2469 # Extract the first word of "$ac_prog", so it can be a program name with args.
2470set dummy $ac_prog; ac_word=$2
2471echo "$as_me:$LINENO: checking for $ac_word" >&5
2472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2473if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2475else
2476 if test -n "$ac_ct_CXX"; then
2477 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2478else
2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480for as_dir in $PATH
2481do
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2486 ac_cv_prog_ac_ct_CXX="$ac_prog"
2487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 break 2
2489 fi
2490done
2491done
2492
2493fi
2494fi
2495ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2496if test -n "$ac_ct_CXX"; then
2497 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2498echo "${ECHO_T}$ac_ct_CXX" >&6
2499else
2500 echo "$as_me:$LINENO: result: no" >&5
2501echo "${ECHO_T}no" >&6
2502fi
2503
2504 test -n "$ac_ct_CXX" && break
2505done
2506test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2507
2508 CXX=$ac_ct_CXX
2509fi
2510
2511
2512# Provide some information about the compiler.
2513echo "$as_me:$LINENO:" \
2514 "checking for C++ compiler version" >&5
2515ac_compiler=`set X $ac_compile; echo $2`
2516{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2517 (eval $ac_compiler --version </dev/null >&5) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }
2521{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2522 (eval $ac_compiler -v </dev/null >&5) 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }
2526{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2527 (eval $ac_compiler -V </dev/null >&5) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }
2531
2532echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2533echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2534if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2536else
2537 cat >conftest.$ac_ext <<_ACEOF
2538/* confdefs.h. */
2539_ACEOF
2540cat confdefs.h >>conftest.$ac_ext
2541cat >>conftest.$ac_ext <<_ACEOF
2542/* end confdefs.h. */
2543
2544int
2545main ()
2546{
2547#ifndef __GNUC__
2548 choke me
2549#endif
2550
2551 ;
2552 return 0;
2553}
2554_ACEOF
2555rm -f conftest.$ac_objext
2556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557 (eval $ac_compile) 2>conftest.er1
2558 ac_status=$?
2559 grep -v '^ *+' conftest.er1 >conftest.err
2560 rm -f conftest.er1
2561 cat conftest.err >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try='test -z "$ac_cxx_werror_flag"
2565 || test ! -s conftest.err'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 (eval $ac_try) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; }; then
2577 ac_compiler_gnu=yes
2578else
2579 echo "$as_me: failed program was:" >&5
2580sed 's/^/| /' conftest.$ac_ext >&5
2581
2582ac_compiler_gnu=no
2583fi
2584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2585ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2586
2587fi
2588echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2589echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2590GXX=`test $ac_compiler_gnu = yes && echo yes`
2591ac_test_CXXFLAGS=${CXXFLAGS+set}
2592ac_save_CXXFLAGS=$CXXFLAGS
2593CXXFLAGS="-g"
2594echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2595echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2596if test "${ac_cv_prog_cxx_g+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2598else
2599 cat >conftest.$ac_ext <<_ACEOF
2600/* confdefs.h. */
2601_ACEOF
2602cat confdefs.h >>conftest.$ac_ext
2603cat >>conftest.$ac_ext <<_ACEOF
2604/* end confdefs.h. */
2605
2606int
2607main ()
2608{
2609
2610 ;
2611 return 0;
2612}
2613_ACEOF
2614rm -f conftest.$ac_objext
2615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616 (eval $ac_compile) 2>conftest.er1
2617 ac_status=$?
2618 grep -v '^ *+' conftest.er1 >conftest.err
2619 rm -f conftest.er1
2620 cat conftest.err >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); } &&
2623 { ac_try='test -z "$ac_cxx_werror_flag"
2624 || test ! -s conftest.err'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 (eval $ac_try) 2>&5
2627 ac_status=$?
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; } &&
2630 { ac_try='test -s conftest.$ac_objext'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 (eval $ac_try) 2>&5
2633 ac_status=$?
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; }; then
2636 ac_cv_prog_cxx_g=yes
2637else
2638 echo "$as_me: failed program was:" >&5
2639sed 's/^/| /' conftest.$ac_ext >&5
2640
2641ac_cv_prog_cxx_g=no
2642fi
2643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2644fi
2645echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2646echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2647if test "$ac_test_CXXFLAGS" = set; then
2648 CXXFLAGS=$ac_save_CXXFLAGS
2649elif test $ac_cv_prog_cxx_g = yes; then
2650 if test "$GXX" = yes; then
2651 CXXFLAGS="-g -O2"
2652 else
2653 CXXFLAGS="-g"
2654 fi
2655else
2656 if test "$GXX" = yes; then
2657 CXXFLAGS="-O2"
2658 else
2659 CXXFLAGS=
2660 fi
2661fi
2662for ac_declaration in \
2663 '' \
2664 'extern "C" void std::exit (int) throw (); using std::exit;' \
2665 'extern "C" void std::exit (int); using std::exit;' \
2666 'extern "C" void exit (int) throw ();' \
2667 'extern "C" void exit (int);' \
2668 'void exit (int);'
2669do
2670 cat >conftest.$ac_ext <<_ACEOF
2671/* confdefs.h. */
2672_ACEOF
2673cat confdefs.h >>conftest.$ac_ext
2674cat >>conftest.$ac_ext <<_ACEOF
2675/* end confdefs.h. */
2676$ac_declaration
2677#include <stdlib.h>
2678int
2679main ()
2680{
2681exit (42);
2682 ;
2683 return 0;
2684}
2685_ACEOF
2686rm -f conftest.$ac_objext
2687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2688 (eval $ac_compile) 2>conftest.er1
2689 ac_status=$?
2690 grep -v '^ *+' conftest.er1 >conftest.err
2691 rm -f conftest.er1
2692 cat conftest.err >&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); } &&
2695 { ac_try='test -z "$ac_cxx_werror_flag"
2696 || test ! -s conftest.err'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 (eval $ac_try) 2>&5
2699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; } &&
2702 { ac_try='test -s conftest.$ac_objext'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 (eval $ac_try) 2>&5
2705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; }; then
2708 :
2709else
2710 echo "$as_me: failed program was:" >&5
2711sed 's/^/| /' conftest.$ac_ext >&5
2712
2713continue
2714fi
2715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2716 cat >conftest.$ac_ext <<_ACEOF
2717/* confdefs.h. */
2718_ACEOF
2719cat confdefs.h >>conftest.$ac_ext
2720cat >>conftest.$ac_ext <<_ACEOF
2721/* end confdefs.h. */
2722$ac_declaration
2723int
2724main ()
2725{
2726exit (42);
2727 ;
2728 return 0;
2729}
2730_ACEOF
2731rm -f conftest.$ac_objext
2732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733 (eval $ac_compile) 2>conftest.er1
2734 ac_status=$?
2735 grep -v '^ *+' conftest.er1 >conftest.err
2736 rm -f conftest.er1
2737 cat conftest.err >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
2740 { ac_try='test -z "$ac_cxx_werror_flag"
2741 || test ! -s conftest.err'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 (eval $ac_try) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; } &&
2747 { ac_try='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 (eval $ac_try) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2753 break
2754else
2755 echo "$as_me: failed program was:" >&5
2756sed 's/^/| /' conftest.$ac_ext >&5
2757
2758fi
2759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2760done
2761rm -f conftest*
2762if test -n "$ac_declaration"; then
2763 echo '#ifdef __cplusplus' >>confdefs.h
2764 echo $ac_declaration >>confdefs.h
2765 echo '#endif' >>confdefs.h
2766fi
2767
2768ac_ext=cc
2769ac_cpp='$CXXCPP $CPPFLAGS'
2770ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2773
2774if test -n "$ac_tool_prefix"; then
2775 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2776set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2777echo "$as_me:$LINENO: checking for $ac_word" >&5
2778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2779if test "${ac_cv_prog_RANLIB+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2781else
2782 if test -n "$RANLIB"; then
2783 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2784else
2785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786for as_dir in $PATH
2787do
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 break 2
2795 fi
2796done
2797done
2798
2799fi
2800fi
2801RANLIB=$ac_cv_prog_RANLIB
2802if test -n "$RANLIB"; then
2803 echo "$as_me:$LINENO: result: $RANLIB" >&5
2804echo "${ECHO_T}$RANLIB" >&6
2805else
2806 echo "$as_me:$LINENO: result: no" >&5
2807echo "${ECHO_T}no" >&6
2808fi
2809
2810fi
2811if test -z "$ac_cv_prog_RANLIB"; then
2812 ac_ct_RANLIB=$RANLIB
2813 # Extract the first word of "ranlib", so it can be a program name with args.
2814set dummy ranlib; ac_word=$2
2815echo "$as_me:$LINENO: checking for $ac_word" >&5
2816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2817if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2819else
2820 if test -n "$ac_ct_RANLIB"; then
2821 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2822else
2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824for as_dir in $PATH
2825do
2826 IFS=$as_save_IFS
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830 ac_cv_prog_ac_ct_RANLIB="ranlib"
2831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 break 2
2833 fi
2834done
2835done
2836
2837 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2838fi
2839fi
2840ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2841if test -n "$ac_ct_RANLIB"; then
2842 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2843echo "${ECHO_T}$ac_ct_RANLIB" >&6
2844else
2845 echo "$as_me:$LINENO: result: no" >&5
2846echo "${ECHO_T}no" >&6
2847fi
2848
2849 RANLIB=$ac_ct_RANLIB
2850else
2851 RANLIB="$ac_cv_prog_RANLIB"
2852fi
2853
2854
2855# here is a trick to preffer
2856# gfortran for gcc4 and higher
2857# and g77 for gcc3 and lower
2858flist="gfortran g77 f77"
2859if [[ "$(gcc -dumpversion | cut -d . -f 1)" < "4" ]] ; then
2860 flist="g77 f77 gfortran"
2861fi
2862
2863ac_ext=f
2864ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2865ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2867if test -n "$ac_tool_prefix"; then
2868 for ac_prog in $flist
2869 do
2870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2871set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2872echo "$as_me:$LINENO: checking for $ac_word" >&5
2873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2874if test "${ac_cv_prog_F77+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876else
2877 if test -n "$F77"; then
2878 ac_cv_prog_F77="$F77" # Let the user override the test.
2879else
2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881for as_dir in $PATH
2882do
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891done
2892done
2893
2894fi
2895fi
2896F77=$ac_cv_prog_F77
2897if test -n "$F77"; then
2898 echo "$as_me:$LINENO: result: $F77" >&5
2899echo "${ECHO_T}$F77" >&6
2900else
2901 echo "$as_me:$LINENO: result: no" >&5
2902echo "${ECHO_T}no" >&6
2903fi
2904
2905 test -n "$F77" && break
2906 done
2907fi
2908if test -z "$F77"; then
2909 ac_ct_F77=$F77
2910 for ac_prog in $flist
2911do
2912 # Extract the first word of "$ac_prog", so it can be a program name with args.
2913set dummy $ac_prog; ac_word=$2
2914echo "$as_me:$LINENO: checking for $ac_word" >&5
2915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2916if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918else
2919 if test -n "$ac_ct_F77"; then
2920 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
2921else
2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923for as_dir in $PATH
2924do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_ac_ct_F77="$ac_prog"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933done
2934done
2935
2936fi
2937fi
2938ac_ct_F77=$ac_cv_prog_ac_ct_F77
2939if test -n "$ac_ct_F77"; then
2940 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
2941echo "${ECHO_T}$ac_ct_F77" >&6
2942else
2943 echo "$as_me:$LINENO: result: no" >&5
2944echo "${ECHO_T}no" >&6
2945fi
2946
2947 test -n "$ac_ct_F77" && break
2948done
2949
2950 F77=$ac_ct_F77
2951fi
2952
2953
2954# Provide some information about the compiler.
2955echo "$as_me:2955:" \
2956 "checking for Fortran 77 compiler version" >&5
2957ac_compiler=`set X $ac_compile; echo $2`
2958{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2959 (eval $ac_compiler --version </dev/null >&5) 2>&5
2960 ac_status=$?
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }
2963{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2964 (eval $ac_compiler -v </dev/null >&5) 2>&5
2965 ac_status=$?
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }
2968{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2969 (eval $ac_compiler -V </dev/null >&5) 2>&5
2970 ac_status=$?
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }
2973rm -f a.out
2974
2975# If we don't use `.F' as extension, the preprocessor is not run on the
2976# input file. (Note that this only needs to work for GNU compilers.)
2977ac_save_ext=$ac_ext
2978ac_ext=F
2979echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
2980echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
2981if test "${ac_cv_f77_compiler_gnu+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2983else
2984 cat >conftest.$ac_ext <<_ACEOF
2985 program main
2986#ifndef __GNUC__
2987 choke me
2988#endif
2989
2990 end
2991_ACEOF
2992rm -f conftest.$ac_objext
2993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2994 (eval $ac_compile) 2>conftest.er1
2995 ac_status=$?
2996 grep -v '^ *+' conftest.er1 >conftest.err
2997 rm -f conftest.er1
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } &&
3001 { ac_try='test -z "$ac_f77_werror_flag"
3002 || test ! -s conftest.err'
3003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004 (eval $ac_try) 2>&5
3005 ac_status=$?
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); }; } &&
3008 { ac_try='test -s conftest.$ac_objext'
3009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010 (eval $ac_try) 2>&5
3011 ac_status=$?
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }; }; then
3014 ac_compiler_gnu=yes
3015else
3016 echo "$as_me: failed program was:" >&5
3017sed 's/^/| /' conftest.$ac_ext >&5
3018
3019ac_compiler_gnu=no
3020fi
3021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3022ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3023
3024fi
3025echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3026echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3027ac_ext=$ac_save_ext
3028ac_test_FFLAGS=${FFLAGS+set}
3029ac_save_FFLAGS=$FFLAGS
3030FFLAGS=
3031echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3032echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3033if test "${ac_cv_prog_f77_g+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3035else
3036 FFLAGS=-g
3037cat >conftest.$ac_ext <<_ACEOF
3038 program main
3039
3040 end
3041_ACEOF
3042rm -f conftest.$ac_objext
3043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3044 (eval $ac_compile) 2>conftest.er1
3045 ac_status=$?
3046 grep -v '^ *+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -z "$ac_f77_werror_flag"
3052 || test ! -s conftest.err'
3053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054 (eval $ac_try) 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; } &&
3058 { ac_try='test -s conftest.$ac_objext'
3059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060 (eval $ac_try) 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3064 ac_cv_prog_f77_g=yes
3065else
3066 echo "$as_me: failed program was:" >&5
3067sed 's/^/| /' conftest.$ac_ext >&5
3068
3069ac_cv_prog_f77_g=no
3070fi
3071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3072
3073fi
3074echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3075echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3076if test "$ac_test_FFLAGS" = set; then
3077 FFLAGS=$ac_save_FFLAGS
3078elif test $ac_cv_prog_f77_g = yes; then
3079 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3080 FFLAGS="-g -O2"
3081 else
3082 FFLAGS="-g"
3083 fi
3084else
3085 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3086 FFLAGS="-O2"
3087 else
3088 FFLAGS=
3089 fi
3090fi
3091
3092G77=`test $ac_compiler_gnu = yes && echo yes`
3093ac_ext=cc
3094ac_cpp='$CXXCPP $CPPFLAGS'
3095ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3098
3099ac_ext=c
3100ac_cpp='$CPP $CPPFLAGS'
3101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3105echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3106# On Suns, sometimes $CPP names a directory.
3107if test -n "$CPP" && test -d "$CPP"; then
3108 CPP=
3109fi
3110if test -z "$CPP"; then
3111 if test "${ac_cv_prog_CPP+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3113else
3114 # Double quotes because CPP needs to be expanded
3115 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3116 do
3117 ac_preproc_ok=false
3118for ac_c_preproc_warn_flag in '' yes
3119do
3120 # Use a header file that comes with gcc, so configuring glibc
3121 # with a fresh cross-compiler works.
3122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3123 # <limits.h> exists even on freestanding compilers.
3124 # On the NeXT, cc -E runs the code through the compiler's parser,
3125 # not just through cpp. "Syntax error" is here to catch this case.
3126 cat >conftest.$ac_ext <<_ACEOF
3127/* confdefs.h. */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
3131/* end confdefs.h. */
3132#ifdef __STDC__
3133# include <limits.h>
3134#else
3135# include <assert.h>
3136#endif
3137 Syntax error
3138_ACEOF
3139if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3141 ac_status=$?
3142 grep -v '^ *+' conftest.er1 >conftest.err
3143 rm -f conftest.er1
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } >/dev/null; then
3147 if test -s conftest.err; then
3148 ac_cpp_err=$ac_c_preproc_warn_flag
3149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3150 else
3151 ac_cpp_err=
3152 fi
3153else
3154 ac_cpp_err=yes
3155fi
3156if test -z "$ac_cpp_err"; then
3157 :
3158else
3159 echo "$as_me: failed program was:" >&5
3160sed 's/^/| /' conftest.$ac_ext >&5
3161
3162 # Broken: fails on valid input.
3163continue
3164fi
3165rm -f conftest.err conftest.$ac_ext
3166
3167 # OK, works on sane cases. Now check whether non-existent headers
3168 # can be detected and how.
3169 cat >conftest.$ac_ext <<_ACEOF
3170/* confdefs.h. */
3171_ACEOF
3172cat confdefs.h >>conftest.$ac_ext
3173cat >>conftest.$ac_ext <<_ACEOF
3174/* end confdefs.h. */
3175#include <ac_nonexistent.h>
3176_ACEOF
3177if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3179 ac_status=$?
3180 grep -v '^ *+' conftest.er1 >conftest.err
3181 rm -f conftest.er1
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } >/dev/null; then
3185 if test -s conftest.err; then
3186 ac_cpp_err=$ac_c_preproc_warn_flag
3187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3188 else
3189 ac_cpp_err=
3190 fi
3191else
3192 ac_cpp_err=yes
3193fi
3194if test -z "$ac_cpp_err"; then
3195 # Broken: success on invalid input.
3196continue
3197else
3198 echo "$as_me: failed program was:" >&5
3199sed 's/^/| /' conftest.$ac_ext >&5
3200
3201 # Passes both tests.
3202ac_preproc_ok=:
3203break
3204fi
3205rm -f conftest.err conftest.$ac_ext
3206
3207done
3208# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3209rm -f conftest.err conftest.$ac_ext
3210if $ac_preproc_ok; then
3211 break
3212fi
3213
3214 done
3215 ac_cv_prog_CPP=$CPP
3216
3217fi
3218 CPP=$ac_cv_prog_CPP
3219else
3220 ac_cv_prog_CPP=$CPP
3221fi
3222echo "$as_me:$LINENO: result: $CPP" >&5
3223echo "${ECHO_T}$CPP" >&6
3224ac_preproc_ok=false
3225for ac_c_preproc_warn_flag in '' yes
3226do
3227 # Use a header file that comes with gcc, so configuring glibc
3228 # with a fresh cross-compiler works.
3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230 # <limits.h> exists even on freestanding compilers.
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
3233 cat >conftest.$ac_ext <<_ACEOF
3234/* confdefs.h. */
3235_ACEOF
3236cat confdefs.h >>conftest.$ac_ext
3237cat >>conftest.$ac_ext <<_ACEOF
3238/* end confdefs.h. */
3239#ifdef __STDC__
3240# include <limits.h>
3241#else
3242# include <assert.h>
3243#endif
3244 Syntax error
3245_ACEOF
3246if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3248 ac_status=$?
3249 grep -v '^ *+' conftest.er1 >conftest.err
3250 rm -f conftest.er1
3251 cat conftest.err >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } >/dev/null; then
3254 if test -s conftest.err; then
3255 ac_cpp_err=$ac_c_preproc_warn_flag
3256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3257 else
3258 ac_cpp_err=
3259 fi
3260else
3261 ac_cpp_err=yes
3262fi
3263if test -z "$ac_cpp_err"; then
3264 :
3265else
3266 echo "$as_me: failed program was:" >&5
3267sed 's/^/| /' conftest.$ac_ext >&5
3268
3269 # Broken: fails on valid input.
3270continue
3271fi
3272rm -f conftest.err conftest.$ac_ext
3273
3274 # OK, works on sane cases. Now check whether non-existent headers
3275 # can be detected and how.
3276 cat >conftest.$ac_ext <<_ACEOF
3277/* confdefs.h. */
3278_ACEOF
3279cat confdefs.h >>conftest.$ac_ext
3280cat >>conftest.$ac_ext <<_ACEOF
3281/* end confdefs.h. */
3282#include <ac_nonexistent.h>
3283_ACEOF
3284if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3286 ac_status=$?
3287 grep -v '^ *+' conftest.er1 >conftest.err
3288 rm -f conftest.er1
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } >/dev/null; then
3292 if test -s conftest.err; then
3293 ac_cpp_err=$ac_c_preproc_warn_flag
3294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3295 else
3296 ac_cpp_err=
3297 fi
3298else
3299 ac_cpp_err=yes
3300fi
3301if test -z "$ac_cpp_err"; then
3302 # Broken: success on invalid input.
3303continue
3304else
3305 echo "$as_me: failed program was:" >&5
3306sed 's/^/| /' conftest.$ac_ext >&5
3307
3308 # Passes both tests.
3309ac_preproc_ok=:
3310break
3311fi
3312rm -f conftest.err conftest.$ac_ext
3313
3314done
3315# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3316rm -f conftest.err conftest.$ac_ext
3317if $ac_preproc_ok; then
3318 :
3319else
3320 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3321See \`config.log' for more details." >&5
3322echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3323See \`config.log' for more details." >&2;}
3324 { (exit 1); exit 1; }; }
3325fi
3326
3327ac_ext=cc
3328ac_cpp='$CXXCPP $CPPFLAGS'
3329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3332
3333# Extract the first word of "cpp", so it can be a program name with args.
3334set dummy cpp; ac_word=$2
3335echo "$as_me:$LINENO: checking for $ac_word" >&5
3336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3337if test "${ac_cv_prog_DIRECT_CPP+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3339else
3340 if test -n "$DIRECT_CPP"; then
3341 ac_cv_prog_DIRECT_CPP="$DIRECT_CPP" # Let the user override the test.
3342else
3343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344for as_dir in $PATH
3345do
3346 IFS=$as_save_IFS
3347 test -z "$as_dir" && as_dir=.
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3350 ac_cv_prog_DIRECT_CPP="cpp"
3351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 break 2
3353 fi
3354done
3355done
3356
3357 test -z "$ac_cv_prog_DIRECT_CPP" && ac_cv_prog_DIRECT_CPP="$CPP"
3358fi
3359fi
3360DIRECT_CPP=$ac_cv_prog_DIRECT_CPP
3361if test -n "$DIRECT_CPP"; then
3362 echo "$as_me:$LINENO: result: $DIRECT_CPP" >&5
3363echo "${ECHO_T}$DIRECT_CPP" >&6
3364else
3365 echo "$as_me:$LINENO: result: no" >&5
3366echo "${ECHO_T}no" >&6
3367fi
3368
3369
3370# Checks for typedefs, structures, and compiler characteristics.
3371
3372echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3373echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3374if test "${ac_cv_c_const+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376else
3377 cat >conftest.$ac_ext <<_ACEOF
3378/* confdefs.h. */
3379_ACEOF
3380cat confdefs.h >>conftest.$ac_ext
3381cat >>conftest.$ac_ext <<_ACEOF
3382/* end confdefs.h. */
3383
3384int
3385main ()
3386{
3387/* FIXME: Include the comments suggested by Paul. */
3388#ifndef __cplusplus
3389 /* Ultrix mips cc rejects this. */
3390 typedef int charset[2];
3391 const charset x;
3392 /* SunOS 4.1.1 cc rejects this. */
3393 char const *const *ccp;
3394 char **p;
3395 /* NEC SVR4.0.2 mips cc rejects this. */
3396 struct point {int x, y;};
3397 static struct point const zero = {0,0};
3398 /* AIX XL C 1.02.0.0 rejects this.
3399 It does not let you subtract one const X* pointer from another in
3400 an arm of an if-expression whose if-part is not a constant
3401 expression */
3402 const char *g = "string";
3403 ccp = &g + (g ? g-g : 0);
3404 /* HPUX 7.0 cc rejects these. */
3405 ++ccp;
3406 p = (char**) ccp;
3407 ccp = (char const *const *) p;
3408 { /* SCO 3.2v4 cc rejects this. */
3409 char *t;
3410 char const *s = 0 ? (char *) 0 : (char const *) 0;
3411
3412 *t++ = 0;
3413 }
3414 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3415 int x[] = {25, 17};
3416 const int *foo = &x[0];
3417 ++foo;
3418 }
3419 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3420 typedef const int *iptr;
3421 iptr p = 0;
3422 ++p;
3423 }
3424 { /* AIX XL C 1.02.0.0 rejects this saying
3425 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3426 struct s { int j; const int *ap[3]; };
3427 struct s *b; b->j = 5;
3428 }
3429 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3430 const int foo = 10;
3431 }
3432#endif
3433
3434 ;
3435 return 0;
3436}
3437_ACEOF
3438rm -f conftest.$ac_objext
3439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3440 (eval $ac_compile) 2>conftest.er1
3441 ac_status=$?
3442 grep -v '^ *+' conftest.er1 >conftest.err
3443 rm -f conftest.er1
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } &&
3447 { ac_try='test -z "$ac_cxx_werror_flag"
3448 || test ! -s conftest.err'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 (eval $ac_try) 2>&5
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; } &&
3454 { ac_try='test -s conftest.$ac_objext'
3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 (eval $ac_try) 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3460 ac_cv_c_const=yes
3461else
3462 echo "$as_me: failed program was:" >&5
3463sed 's/^/| /' conftest.$ac_ext >&5
3464
3465ac_cv_c_const=no
3466fi
3467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3468fi
3469echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3470echo "${ECHO_T}$ac_cv_c_const" >&6
3471if test $ac_cv_c_const = no; then
3472
3473cat >>confdefs.h <<\_ACEOF
3474#define const
3475_ACEOF
3476
3477fi
3478
3479echo "$as_me:$LINENO: checking for inline" >&5
3480echo $ECHO_N "checking for inline... $ECHO_C" >&6
3481if test "${ac_cv_c_inline+set}" = set; then
3482 echo $ECHO_N "(cached) $ECHO_C" >&6
3483else
3484 ac_cv_c_inline=no
3485for ac_kw in inline __inline__ __inline; do
3486 cat >conftest.$ac_ext <<_ACEOF
3487/* confdefs.h. */
3488_ACEOF
3489cat confdefs.h >>conftest.$ac_ext
3490cat >>conftest.$ac_ext <<_ACEOF
3491/* end confdefs.h. */
3492#ifndef __cplusplus
3493typedef int foo_t;
3494static $ac_kw foo_t static_foo () {return 0; }
3495$ac_kw foo_t foo () {return 0; }
3496#endif
3497
3498_ACEOF
3499rm -f conftest.$ac_objext
3500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3501 (eval $ac_compile) 2>conftest.er1
3502 ac_status=$?
3503 grep -v '^ *+' conftest.er1 >conftest.err
3504 rm -f conftest.er1
3505 cat conftest.err >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } &&
3508 { ac_try='test -z "$ac_cxx_werror_flag"
3509 || test ! -s conftest.err'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 (eval $ac_try) 2>&5
3512 ac_status=$?
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; } &&
3515 { ac_try='test -s conftest.$ac_objext'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; }; then
3521 ac_cv_c_inline=$ac_kw; break
3522else
3523 echo "$as_me: failed program was:" >&5
3524sed 's/^/| /' conftest.$ac_ext >&5
3525
3526fi
3527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3528done
3529
3530fi
3531echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3532echo "${ECHO_T}$ac_cv_c_inline" >&6
3533
3534
3535case $ac_cv_c_inline in
3536 inline | yes) ;;
3537 *)
3538 case $ac_cv_c_inline in
3539 no) ac_val=;;
3540 *) ac_val=$ac_cv_c_inline;;
3541 esac
3542 cat >>confdefs.h <<_ACEOF
3543#ifndef __cplusplus
3544#define inline $ac_val
3545#endif
3546_ACEOF
3547 ;;
3548esac
3549
3550ac_ext=cc
3551ac_cpp='$CXXCPP $CPPFLAGS'
3552ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3555echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3556echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3557if test -z "$CXXCPP"; then
3558 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3560else
3561 # Double quotes because CXXCPP needs to be expanded
3562 for CXXCPP in "$CXX -E" "/lib/cpp"
3563 do
3564 ac_preproc_ok=false
3565for ac_cxx_preproc_warn_flag in '' yes
3566do
3567 # Use a header file that comes with gcc, so configuring glibc
3568 # with a fresh cross-compiler works.
3569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3570 # <limits.h> exists even on freestanding compilers.
3571 # On the NeXT, cc -E runs the code through the compiler's parser,
3572 # not just through cpp. "Syntax error" is here to catch this case.
3573 cat >conftest.$ac_ext <<_ACEOF
3574/* confdefs.h. */
3575_ACEOF
3576cat confdefs.h >>conftest.$ac_ext
3577cat >>conftest.$ac_ext <<_ACEOF
3578/* end confdefs.h. */
3579#ifdef __STDC__
3580# include <limits.h>
3581#else
3582# include <assert.h>
3583#endif
3584 Syntax error
3585_ACEOF
3586if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3588 ac_status=$?
3589 grep -v '^ *+' conftest.er1 >conftest.err
3590 rm -f conftest.er1
3591 cat conftest.err >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } >/dev/null; then
3594 if test -s conftest.err; then
3595 ac_cpp_err=$ac_cxx_preproc_warn_flag
3596 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3597 else
3598 ac_cpp_err=
3599 fi
3600else
3601 ac_cpp_err=yes
3602fi
3603if test -z "$ac_cpp_err"; then
3604 :
3605else
3606 echo "$as_me: failed program was:" >&5
3607sed 's/^/| /' conftest.$ac_ext >&5
3608
3609 # Broken: fails on valid input.
3610continue
3611fi
3612rm -f conftest.err conftest.$ac_ext
3613
3614 # OK, works on sane cases. Now check whether non-existent headers
3615 # can be detected and how.
3616 cat >conftest.$ac_ext <<_ACEOF
3617/* confdefs.h. */
3618_ACEOF
3619cat confdefs.h >>conftest.$ac_ext
3620cat >>conftest.$ac_ext <<_ACEOF
3621/* end confdefs.h. */
3622#include <ac_nonexistent.h>
3623_ACEOF
3624if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3626 ac_status=$?
3627 grep -v '^ *+' conftest.er1 >conftest.err
3628 rm -f conftest.er1
3629 cat conftest.err >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } >/dev/null; then
3632 if test -s conftest.err; then
3633 ac_cpp_err=$ac_cxx_preproc_warn_flag
3634 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3635 else
3636 ac_cpp_err=
3637 fi
3638else
3639 ac_cpp_err=yes
3640fi
3641if test -z "$ac_cpp_err"; then
3642 # Broken: success on invalid input.
3643continue
3644else
3645 echo "$as_me: failed program was:" >&5
3646sed 's/^/| /' conftest.$ac_ext >&5
3647
3648 # Passes both tests.
3649ac_preproc_ok=:
3650break
3651fi
3652rm -f conftest.err conftest.$ac_ext
3653
3654done
3655# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3656rm -f conftest.err conftest.$ac_ext
3657if $ac_preproc_ok; then
3658 break
3659fi
3660
3661 done
3662 ac_cv_prog_CXXCPP=$CXXCPP
3663
3664fi
3665 CXXCPP=$ac_cv_prog_CXXCPP
3666else
3667 ac_cv_prog_CXXCPP=$CXXCPP
3668fi
3669echo "$as_me:$LINENO: result: $CXXCPP" >&5
3670echo "${ECHO_T}$CXXCPP" >&6
3671ac_preproc_ok=false
3672for ac_cxx_preproc_warn_flag in '' yes
3673do
3674 # Use a header file that comes with gcc, so configuring glibc
3675 # with a fresh cross-compiler works.
3676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3677 # <limits.h> exists even on freestanding compilers.
3678 # On the NeXT, cc -E runs the code through the compiler's parser,
3679 # not just through cpp. "Syntax error" is here to catch this case.
3680 cat >conftest.$ac_ext <<_ACEOF
3681/* confdefs.h. */
3682_ACEOF
3683cat confdefs.h >>conftest.$ac_ext
3684cat >>conftest.$ac_ext <<_ACEOF
3685/* end confdefs.h. */
3686#ifdef __STDC__
3687# include <limits.h>
3688#else
3689# include <assert.h>
3690#endif
3691 Syntax error
3692_ACEOF
3693if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3695 ac_status=$?
3696 grep -v '^ *+' conftest.er1 >conftest.err
3697 rm -f conftest.er1
3698 cat conftest.err >&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } >/dev/null; then
3701 if test -s conftest.err; then
3702 ac_cpp_err=$ac_cxx_preproc_warn_flag
3703 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3704 else
3705 ac_cpp_err=
3706 fi
3707else
3708 ac_cpp_err=yes
3709fi
3710if test -z "$ac_cpp_err"; then
3711 :
3712else
3713 echo "$as_me: failed program was:" >&5
3714sed 's/^/| /' conftest.$ac_ext >&5
3715
3716 # Broken: fails on valid input.
3717continue
3718fi
3719rm -f conftest.err conftest.$ac_ext
3720
3721 # OK, works on sane cases. Now check whether non-existent headers
3722 # can be detected and how.
3723 cat >conftest.$ac_ext <<_ACEOF
3724/* confdefs.h. */
3725_ACEOF
3726cat confdefs.h >>conftest.$ac_ext
3727cat >>conftest.$ac_ext <<_ACEOF
3728/* end confdefs.h. */
3729#include <ac_nonexistent.h>
3730_ACEOF
3731if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3733 ac_status=$?
3734 grep -v '^ *+' conftest.er1 >conftest.err
3735 rm -f conftest.er1
3736 cat conftest.err >&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } >/dev/null; then
3739 if test -s conftest.err; then
3740 ac_cpp_err=$ac_cxx_preproc_warn_flag
3741 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3742 else
3743 ac_cpp_err=
3744 fi
3745else
3746 ac_cpp_err=yes
3747fi
3748if test -z "$ac_cpp_err"; then
3749 # Broken: success on invalid input.
3750continue
3751else
3752 echo "$as_me: failed program was:" >&5
3753sed 's/^/| /' conftest.$ac_ext >&5
3754
3755 # Passes both tests.
3756ac_preproc_ok=:
3757break
3758fi
3759rm -f conftest.err conftest.$ac_ext
3760
3761done
3762# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3763rm -f conftest.err conftest.$ac_ext
3764if $ac_preproc_ok; then
3765 :
3766else
3767 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3768See \`config.log' for more details." >&5
3769echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3770See \`config.log' for more details." >&2;}
3771 { (exit 1); exit 1; }; }
3772fi
3773
3774ac_ext=cc
3775ac_cpp='$CXXCPP $CPPFLAGS'
3776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3779
3780
3781echo "$as_me:$LINENO: checking for egrep" >&5
3782echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3783if test "${ac_cv_prog_egrep+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3785else
3786 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3787 then ac_cv_prog_egrep='grep -E'
3788 else ac_cv_prog_egrep='egrep'
3789 fi
3790fi
3791echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3792echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3793 EGREP=$ac_cv_prog_egrep
3794
3795
3796echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3797echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3798if test "${ac_cv_header_stdc+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800else
3801 cat >conftest.$ac_ext <<_ACEOF
3802/* confdefs.h. */
3803_ACEOF
3804cat confdefs.h >>conftest.$ac_ext
3805cat >>conftest.$ac_ext <<_ACEOF
3806/* end confdefs.h. */
3807#include <stdlib.h>
3808#include <stdarg.h>
3809#include <string.h>
3810#include <float.h>
3811
3812int
3813main ()
3814{
3815
3816 ;
3817 return 0;
3818}
3819_ACEOF
3820rm -f conftest.$ac_objext
3821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3822 (eval $ac_compile) 2>conftest.er1
3823 ac_status=$?
3824 grep -v '^ *+' conftest.er1 >conftest.err
3825 rm -f conftest.er1
3826 cat conftest.err >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } &&
3829 { ac_try='test -z "$ac_cxx_werror_flag"
3830 || test ! -s conftest.err'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 (eval $ac_try) 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; } &&
3836 { ac_try='test -s conftest.$ac_objext'
3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 (eval $ac_try) 2>&5
3839 ac_status=$?
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3842 ac_cv_header_stdc=yes
3843else
3844 echo "$as_me: failed program was:" >&5
3845sed 's/^/| /' conftest.$ac_ext >&5
3846
3847ac_cv_header_stdc=no
3848fi
3849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3850
3851if test $ac_cv_header_stdc = yes; then
3852 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3853 cat >conftest.$ac_ext <<_ACEOF
3854/* confdefs.h. */
3855_ACEOF
3856cat confdefs.h >>conftest.$ac_ext
3857cat >>conftest.$ac_ext <<_ACEOF
3858/* end confdefs.h. */
3859#include <string.h>
3860
3861_ACEOF
3862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3863 $EGREP "memchr" >/dev/null 2>&1; then
3864 :
3865else
3866 ac_cv_header_stdc=no
3867fi
3868rm -f conftest*
3869
3870fi
3871
3872if test $ac_cv_header_stdc = yes; then
3873 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3874 cat >conftest.$ac_ext <<_ACEOF
3875/* confdefs.h. */
3876_ACEOF
3877cat confdefs.h >>conftest.$ac_ext
3878cat >>conftest.$ac_ext <<_ACEOF
3879/* end confdefs.h. */
3880#include <stdlib.h>
3881
3882_ACEOF
3883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3884 $EGREP "free" >/dev/null 2>&1; then
3885 :
3886else
3887 ac_cv_header_stdc=no
3888fi
3889rm -f conftest*
3890
3891fi
3892
3893if test $ac_cv_header_stdc = yes; then
3894 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3895 if test "$cross_compiling" = yes; then
3896 :
3897else
3898 cat >conftest.$ac_ext <<_ACEOF
3899/* confdefs.h. */
3900_ACEOF
3901cat confdefs.h >>conftest.$ac_ext
3902cat >>conftest.$ac_ext <<_ACEOF
3903/* end confdefs.h. */
3904#include <ctype.h>
3905#if ((' ' & 0x0FF) == 0x020)
3906# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3907# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3908#else
3909# define ISLOWER(c) \
3910 (('a' <= (c) && (c) <= 'i') \
3911 || ('j' <= (c) && (c) <= 'r') \
3912 || ('s' <= (c) && (c) <= 'z'))
3913# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3914#endif
3915
3916#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3917int
3918main ()
3919{
3920 int i;
3921 for (i = 0; i < 256; i++)
3922 if (XOR (islower (i), ISLOWER (i))
3923 || toupper (i) != TOUPPER (i))
3924 exit(2);
3925 exit (0);
3926}
3927_ACEOF
3928rm -f conftest$ac_exeext
3929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3930 (eval $ac_link) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 (eval $ac_try) 2>&5
3936 ac_status=$?
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; }; then
3939 :
3940else
3941 echo "$as_me: program exited with status $ac_status" >&5
3942echo "$as_me: failed program was:" >&5
3943sed 's/^/| /' conftest.$ac_ext >&5
3944
3945( exit $ac_status )
3946ac_cv_header_stdc=no
3947fi
3948rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3949fi
3950fi
3951fi
3952echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3953echo "${ECHO_T}$ac_cv_header_stdc" >&6
3954if test $ac_cv_header_stdc = yes; then
3955
3956cat >>confdefs.h <<\_ACEOF
3957#define STDC_HEADERS 1
3958_ACEOF
3959
3960fi
3961
3962# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3973 inttypes.h stdint.h unistd.h
3974do
3975as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3976echo "$as_me:$LINENO: checking for $ac_header" >&5
3977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3978if eval "test \"\${$as_ac_Header+set}\" = set"; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3980else
3981 cat >conftest.$ac_ext <<_ACEOF
3982/* confdefs.h. */
3983_ACEOF
3984cat confdefs.h >>conftest.$ac_ext
3985cat >>conftest.$ac_ext <<_ACEOF
3986/* end confdefs.h. */
3987$ac_includes_default
3988
3989#include <$ac_header>
3990_ACEOF
3991rm -f conftest.$ac_objext
3992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993 (eval $ac_compile) 2>conftest.er1
3994 ac_status=$?
3995 grep -v '^ *+' conftest.er1 >conftest.err
3996 rm -f conftest.er1
3997 cat conftest.err >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } &&
4000 { ac_try='test -z "$ac_cxx_werror_flag"
4001 || test ! -s conftest.err'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 (eval $ac_try) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; } &&
4007 { ac_try='test -s conftest.$ac_objext'
4008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 (eval $ac_try) 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
4013 eval "$as_ac_Header=yes"
4014else
4015 echo "$as_me: failed program was:" >&5
4016sed 's/^/| /' conftest.$ac_ext >&5
4017
4018eval "$as_ac_Header=no"
4019fi
4020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4021fi
4022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4023echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4024if test `eval echo '${'$as_ac_Header'}'` = yes; then
4025 cat >>confdefs.h <<_ACEOF
4026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4027_ACEOF
4028
4029fi
4030
4031done
4032
4033
4034echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
4035echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
4036if test "${ac_cv_type_ptrdiff_t+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4038else
4039 cat >conftest.$ac_ext <<_ACEOF
4040/* confdefs.h. */
4041_ACEOF
4042cat confdefs.h >>conftest.$ac_ext
4043cat >>conftest.$ac_ext <<_ACEOF
4044/* end confdefs.h. */
4045$ac_includes_default
4046int
4047main ()
4048{
4049if ((ptrdiff_t *) 0)
4050 return 0;
4051if (sizeof (ptrdiff_t))
4052 return 0;
4053 ;
4054 return 0;
4055}
4056_ACEOF
4057rm -f conftest.$ac_objext
4058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4059 (eval $ac_compile) 2>conftest.er1
4060 ac_status=$?
4061 grep -v '^ *+' conftest.er1 >conftest.err
4062 rm -f conftest.er1
4063 cat conftest.err >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
4066 { ac_try='test -z "$ac_cxx_werror_flag"
4067 || test ! -s conftest.err'
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 (eval $ac_try) 2>&5
4070 ac_status=$?
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; } &&
4073 { ac_try='test -s conftest.$ac_objext'
4074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 (eval $ac_try) 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
4079 ac_cv_type_ptrdiff_t=yes
4080else
4081 echo "$as_me: failed program was:" >&5
4082sed 's/^/| /' conftest.$ac_ext >&5
4083
4084ac_cv_type_ptrdiff_t=no
4085fi
4086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4087fi
4088echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
4089echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
4090if test $ac_cv_type_ptrdiff_t = yes; then
4091
4092cat >>confdefs.h <<_ACEOF
4093#define HAVE_PTRDIFF_T 1
4094_ACEOF
4095
4096
4097fi
4098
4099
4100# Checks for library functions.
4101
4102for ac_header in stdlib.h
4103do
4104as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4105if eval "test \"\${$as_ac_Header+set}\" = set"; then
4106 echo "$as_me:$LINENO: checking for $ac_header" >&5
4107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4108if eval "test \"\${$as_ac_Header+set}\" = set"; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110fi
4111echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4112echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4113else
4114 # Is the header compilable?
4115echo "$as_me:$LINENO: checking $ac_header usability" >&5
4116echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4117cat >conftest.$ac_ext <<_ACEOF
4118/* confdefs.h. */
4119_ACEOF
4120cat confdefs.h >>conftest.$ac_ext
4121cat >>conftest.$ac_ext <<_ACEOF
4122/* end confdefs.h. */
4123$ac_includes_default
4124#include <$ac_header>
4125_ACEOF
4126rm -f conftest.$ac_objext
4127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4128 (eval $ac_compile) 2>conftest.er1
4129 ac_status=$?
4130 grep -v '^ *+' conftest.er1 >conftest.err
4131 rm -f conftest.er1
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } &&
4135 { ac_try='test -z "$ac_cxx_werror_flag"
4136 || test ! -s conftest.err'
4137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138 (eval $ac_try) 2>&5
4139 ac_status=$?
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; } &&
4142 { ac_try='test -s conftest.$ac_objext'
4143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144 (eval $ac_try) 2>&5
4145 ac_status=$?
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; }; then
4148 ac_header_compiler=yes
4149else
4150 echo "$as_me: failed program was:" >&5
4151sed 's/^/| /' conftest.$ac_ext >&5
4152
4153ac_header_compiler=no
4154fi
4155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4156echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4157echo "${ECHO_T}$ac_header_compiler" >&6
4158
4159# Is the header present?
4160echo "$as_me:$LINENO: checking $ac_header presence" >&5
4161echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4162cat >conftest.$ac_ext <<_ACEOF
4163/* confdefs.h. */
4164_ACEOF
4165cat confdefs.h >>conftest.$ac_ext
4166cat >>conftest.$ac_ext <<_ACEOF
4167/* end confdefs.h. */
4168#include <$ac_header>
4169_ACEOF
4170if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4172 ac_status=$?
4173 grep -v '^ *+' conftest.er1 >conftest.err
4174 rm -f conftest.er1
4175 cat conftest.err >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } >/dev/null; then
4178 if test -s conftest.err; then
4179 ac_cpp_err=$ac_cxx_preproc_warn_flag
4180 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4181 else
4182 ac_cpp_err=
4183 fi
4184else
4185 ac_cpp_err=yes
4186fi
4187if test -z "$ac_cpp_err"; then
4188 ac_header_preproc=yes
4189else
4190 echo "$as_me: failed program was:" >&5
4191sed 's/^/| /' conftest.$ac_ext >&5
4192
4193 ac_header_preproc=no
4194fi
4195rm -f conftest.err conftest.$ac_ext
4196echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4197echo "${ECHO_T}$ac_header_preproc" >&6
4198
4199# So? What about this header?
4200case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4201 yes:no: )
4202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4203echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4205echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4206 ac_header_preproc=yes
4207 ;;
4208 no:yes:* )
4209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4210echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4212echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4214echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4216echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4218echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4220echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4221 (
4222 cat <<\_ASBOX
4223## -------------------------------------------- ##
4224## Report this to tomasz.przedzinski@uj.edu.pl ##
4225## -------------------------------------------- ##
4226_ASBOX
4227 ) |
4228 sed "s/^/$as_me: WARNING: /" >&2
4229 ;;
4230esac
4231echo "$as_me:$LINENO: checking for $ac_header" >&5
4232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4233if eval "test \"\${$as_ac_Header+set}\" = set"; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4235else
4236 eval "$as_ac_Header=\$ac_header_preproc"
4237fi
4238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4239echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4240
4241fi
4242if test `eval echo '${'$as_ac_Header'}'` = yes; then
4243 cat >>confdefs.h <<_ACEOF
4244#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4245_ACEOF
4246
4247fi
4248
4249done
4250
4251echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
4252echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
4253if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4255else
4256 if test "$cross_compiling" = yes; then
4257 ac_cv_func_malloc_0_nonnull=no
4258else
4259 cat >conftest.$ac_ext <<_ACEOF
4260/* confdefs.h. */
4261_ACEOF
4262cat confdefs.h >>conftest.$ac_ext
4263cat >>conftest.$ac_ext <<_ACEOF
4264/* end confdefs.h. */
4265#if STDC_HEADERS || HAVE_STDLIB_H
4266# include <stdlib.h>
4267#else
4268char *malloc ();
4269#endif
4270
4271int
4272main ()
4273{
4274exit (malloc (0) ? 0 : 1);
4275 ;
4276 return 0;
4277}
4278_ACEOF
4279rm -f conftest$ac_exeext
4280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4281 (eval $ac_link) 2>&5
4282 ac_status=$?
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286 (eval $ac_try) 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 ac_cv_func_malloc_0_nonnull=yes
4291else
4292 echo "$as_me: program exited with status $ac_status" >&5
4293echo "$as_me: failed program was:" >&5
4294sed 's/^/| /' conftest.$ac_ext >&5
4295
4296( exit $ac_status )
4297ac_cv_func_malloc_0_nonnull=no
4298fi
4299rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4300fi
4301fi
4302echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
4303echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
4304if test $ac_cv_func_malloc_0_nonnull = yes; then
4305
4306cat >>confdefs.h <<\_ACEOF
4307#define HAVE_MALLOC 1
4308_ACEOF
4309
4310else
4311 cat >>confdefs.h <<\_ACEOF
4312#define HAVE_MALLOC 0
4313_ACEOF
4314
4315 case $LIBOBJS in
4316 "malloc.$ac_objext" | \
4317 *" malloc.$ac_objext" | \
4318 "malloc.$ac_objext "* | \
4319 *" malloc.$ac_objext "* ) ;;
4320 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
4321esac
4322
4323
4324cat >>confdefs.h <<\_ACEOF
4325#define malloc rpl_malloc
4326_ACEOF
4327
4328fi
4329
4330
4331
4332
4333for ac_func in strftime
4334do
4335as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4336echo "$as_me:$LINENO: checking for $ac_func" >&5
4337echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4338if eval "test \"\${$as_ac_var+set}\" = set"; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340else
4341 cat >conftest.$ac_ext <<_ACEOF
4342/* confdefs.h. */
4343_ACEOF
4344cat confdefs.h >>conftest.$ac_ext
4345cat >>conftest.$ac_ext <<_ACEOF
4346/* end confdefs.h. */
4347/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4349#define $ac_func innocuous_$ac_func
4350
4351/* System header to define __stub macros and hopefully few prototypes,
4352 which can conflict with char $ac_func (); below.
4353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4354 <limits.h> exists even on freestanding compilers. */
4355
4356#ifdef __STDC__
4357# include <limits.h>
4358#else
4359# include <assert.h>
4360#endif
4361
4362#undef $ac_func
4363
4364/* Override any gcc2 internal prototype to avoid an error. */
4365#ifdef __cplusplus
4366extern "C"
4367{
4368#endif
4369/* We use char because int might match the return type of a gcc2
4370 builtin and then its argument prototype would still apply. */
4371char $ac_func ();
4372/* The GNU C library defines this for functions which it implements
4373 to always fail with ENOSYS. Some functions are actually named
4374 something starting with __ and the normal name is an alias. */
4375#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4376choke me
4377#else
4378char (*f) () = $ac_func;
4379#endif
4380#ifdef __cplusplus
4381}
4382#endif
4383
4384int
4385main ()
4386{
4387return f != $ac_func;
4388 ;
4389 return 0;
4390}
4391_ACEOF
4392rm -f conftest.$ac_objext conftest$ac_exeext
4393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4394 (eval $ac_link) 2>conftest.er1
4395 ac_status=$?
4396 grep -v '^ *+' conftest.er1 >conftest.err
4397 rm -f conftest.er1
4398 cat conftest.err >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } &&
4401 { ac_try='test -z "$ac_cxx_werror_flag"
4402 || test ! -s conftest.err'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 (eval $ac_try) 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; } &&
4408 { ac_try='test -s conftest$ac_exeext'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410 (eval $ac_try) 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 eval "$as_ac_var=yes"
4415else
4416 echo "$as_me: failed program was:" >&5
4417sed 's/^/| /' conftest.$ac_ext >&5
4418
4419eval "$as_ac_var=no"
4420fi
4421rm -f conftest.err conftest.$ac_objext \
4422 conftest$ac_exeext conftest.$ac_ext
4423fi
4424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4425echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4426if test `eval echo '${'$as_ac_var'}'` = yes; then
4427 cat >>confdefs.h <<_ACEOF
4428#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4429_ACEOF
4430
4431else
4432 # strftime is in -lintl on SCO UNIX.
4433echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
4434echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
4435if test "${ac_cv_lib_intl_strftime+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4437else
4438 ac_check_lib_save_LIBS=$LIBS
4439LIBS="-lintl $LIBS"
4440cat >conftest.$ac_ext <<_ACEOF
4441/* confdefs.h. */
4442_ACEOF
4443cat confdefs.h >>conftest.$ac_ext
4444cat >>conftest.$ac_ext <<_ACEOF
4445/* end confdefs.h. */
4446
4447/* Override any gcc2 internal prototype to avoid an error. */
4448#ifdef __cplusplus
4449extern "C"
4450#endif
4451/* We use char because int might match the return type of a gcc2
4452 builtin and then its argument prototype would still apply. */
4453char strftime ();
4454int
4455main ()
4456{
4457strftime ();
4458 ;
4459 return 0;
4460}
4461_ACEOF
4462rm -f conftest.$ac_objext conftest$ac_exeext
4463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4464 (eval $ac_link) 2>conftest.er1
4465 ac_status=$?
4466 grep -v '^ *+' conftest.er1 >conftest.err
4467 rm -f conftest.er1
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } &&
4471 { ac_try='test -z "$ac_cxx_werror_flag"
4472 || test ! -s conftest.err'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474 (eval $ac_try) 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; } &&
4478 { ac_try='test -s conftest$ac_exeext'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 (eval $ac_try) 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4484 ac_cv_lib_intl_strftime=yes
4485else
4486 echo "$as_me: failed program was:" >&5
4487sed 's/^/| /' conftest.$ac_ext >&5
4488
4489ac_cv_lib_intl_strftime=no
4490fi
4491rm -f conftest.err conftest.$ac_objext \
4492 conftest$ac_exeext conftest.$ac_ext
4493LIBS=$ac_check_lib_save_LIBS
4494fi
4495echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
4496echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
4497if test $ac_cv_lib_intl_strftime = yes; then
4498 cat >>confdefs.h <<\_ACEOF
4499#define HAVE_STRFTIME 1
4500_ACEOF
4501
4502LIBS="-lintl $LIBS"
4503fi
4504
4505fi
4506done
4507
4508
4509
4510
4511
4512for ac_func in atexit getcwd pow sqrt
4513do
4514as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4515echo "$as_me:$LINENO: checking for $ac_func" >&5
4516echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4517if eval "test \"\${$as_ac_var+set}\" = set"; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519else
4520 cat >conftest.$ac_ext <<_ACEOF
4521/* confdefs.h. */
4522_ACEOF
4523cat confdefs.h >>conftest.$ac_ext
4524cat >>conftest.$ac_ext <<_ACEOF
4525/* end confdefs.h. */
4526/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4528#define $ac_func innocuous_$ac_func
4529
4530/* System header to define __stub macros and hopefully few prototypes,
4531 which can conflict with char $ac_func (); below.
4532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4533 <limits.h> exists even on freestanding compilers. */
4534
4535#ifdef __STDC__
4536# include <limits.h>
4537#else
4538# include <assert.h>
4539#endif
4540
4541#undef $ac_func
4542
4543/* Override any gcc2 internal prototype to avoid an error. */
4544#ifdef __cplusplus
4545extern "C"
4546{
4547#endif
4548/* We use char because int might match the return type of a gcc2
4549 builtin and then its argument prototype would still apply. */
4550char $ac_func ();
4551/* The GNU C library defines this for functions which it implements
4552 to always fail with ENOSYS. Some functions are actually named
4553 something starting with __ and the normal name is an alias. */
4554#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4555choke me
4556#else
4557char (*f) () = $ac_func;
4558#endif
4559#ifdef __cplusplus
4560}
4561#endif
4562
4563int
4564main ()
4565{
4566return f != $ac_func;
4567 ;
4568 return 0;
4569}
4570_ACEOF
4571rm -f conftest.$ac_objext conftest$ac_exeext
4572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4573 (eval $ac_link) 2>conftest.er1
4574 ac_status=$?
4575 grep -v '^ *+' conftest.er1 >conftest.err
4576 rm -f conftest.er1
4577 cat conftest.err >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } &&
4580 { ac_try='test -z "$ac_cxx_werror_flag"
4581 || test ! -s conftest.err'
4582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 (eval $ac_try) 2>&5
4584 ac_status=$?
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; } &&
4587 { ac_try='test -s conftest$ac_exeext'
4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589 (eval $ac_try) 2>&5
4590 ac_status=$?
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; }; then
4593 eval "$as_ac_var=yes"
4594else
4595 echo "$as_me: failed program was:" >&5
4596sed 's/^/| /' conftest.$ac_ext >&5
4597
4598eval "$as_ac_var=no"
4599fi
4600rm -f conftest.err conftest.$ac_objext \
4601 conftest$ac_exeext conftest.$ac_ext
4602fi
4603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4604echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4605if test `eval echo '${'$as_ac_var'}'` = yes; then
4606 cat >>confdefs.h <<_ACEOF
4607#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4608_ACEOF
4609
4610else
4611 echo "" &&
4612 echo "ERROR: Basic functions not found. Something's wrong with paths." &&
4613 exit -1
4614
4615fi
4616done
4617
4618
4619##############################################################################
4620# Check for HepMC header files
4621
4622# If user specified --without-hepmc, skip hepmc check
4623if ! test "$with_hepmc" == "no"; then
4624
4625
4626CPPFLAGS="-I$with_hepmc/include $CPPFLAGS"
4627
4628
4629for ac_header in HepMC/Version.h
4630do
4631as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4632if eval "test \"\${$as_ac_Header+set}\" = set"; then
4633 echo "$as_me:$LINENO: checking for $ac_header" >&5
4634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4635if eval "test \"\${$as_ac_Header+set}\" = set"; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4637fi
4638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4640else
4641 # Is the header compilable?
4642echo "$as_me:$LINENO: checking $ac_header usability" >&5
4643echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4644cat >conftest.$ac_ext <<_ACEOF
4645/* confdefs.h. */
4646_ACEOF
4647cat confdefs.h >>conftest.$ac_ext
4648cat >>conftest.$ac_ext <<_ACEOF
4649/* end confdefs.h. */
4650$ac_includes_default
4651#include <$ac_header>
4652_ACEOF
4653rm -f conftest.$ac_objext
4654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4655 (eval $ac_compile) 2>conftest.er1
4656 ac_status=$?
4657 grep -v '^ *+' conftest.er1 >conftest.err
4658 rm -f conftest.er1
4659 cat conftest.err >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } &&
4662 { ac_try='test -z "$ac_cxx_werror_flag"
4663 || test ! -s conftest.err'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 (eval $ac_try) 2>&5
4666 ac_status=$?
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try='test -s conftest.$ac_objext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 (eval $ac_try) 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 ac_header_compiler=yes
4676else
4677 echo "$as_me: failed program was:" >&5
4678sed 's/^/| /' conftest.$ac_ext >&5
4679
4680ac_header_compiler=no
4681fi
4682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4683echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4684echo "${ECHO_T}$ac_header_compiler" >&6
4685
4686# Is the header present?
4687echo "$as_me:$LINENO: checking $ac_header presence" >&5
4688echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4689cat >conftest.$ac_ext <<_ACEOF
4690/* confdefs.h. */
4691_ACEOF
4692cat confdefs.h >>conftest.$ac_ext
4693cat >>conftest.$ac_ext <<_ACEOF
4694/* end confdefs.h. */
4695#include <$ac_header>
4696_ACEOF
4697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4699 ac_status=$?
4700 grep -v '^ *+' conftest.er1 >conftest.err
4701 rm -f conftest.er1
4702 cat conftest.err >&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } >/dev/null; then
4705 if test -s conftest.err; then
4706 ac_cpp_err=$ac_cxx_preproc_warn_flag
4707 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4708 else
4709 ac_cpp_err=
4710 fi
4711else
4712 ac_cpp_err=yes
4713fi
4714if test -z "$ac_cpp_err"; then
4715 ac_header_preproc=yes
4716else
4717 echo "$as_me: failed program was:" >&5
4718sed 's/^/| /' conftest.$ac_ext >&5
4719
4720 ac_header_preproc=no
4721fi
4722rm -f conftest.err conftest.$ac_ext
4723echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4724echo "${ECHO_T}$ac_header_preproc" >&6
4725
4726# So? What about this header?
4727case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4728 yes:no: )
4729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4730echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4732echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4733 ac_header_preproc=yes
4734 ;;
4735 no:yes:* )
4736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4737echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4739echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4741echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4743echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4745echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4747echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4748 (
4749 cat <<\_ASBOX
4750## -------------------------------------------- ##
4751## Report this to tomasz.przedzinski@uj.edu.pl ##
4752## -------------------------------------------- ##
4753_ASBOX
4754 ) |
4755 sed "s/^/$as_me: WARNING: /" >&2
4756 ;;
4757esac
4758echo "$as_me:$LINENO: checking for $ac_header" >&5
4759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4760if eval "test \"\${$as_ac_Header+set}\" = set"; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4762else
4763 eval "$as_ac_Header=\$ac_header_preproc"
4764fi
4765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4767
4768fi
4769if test `eval echo '${'$as_ac_Header'}'` = yes; then
4770 cat >>confdefs.h <<_ACEOF
4771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4772_ACEOF
4773
4774else
4775 echo "" &&
4776 echo "ERROR: HepMC not found. To provide location use:" &&
4777 echo " --with-hepmc=/path/to/HepMC" ;
4778 echo " or use";
4779 echo " --without-hepmc";
4780 echo " (Consider using 'source platform/afs.paths.sh' (or .csh) )"
4781 echo ""
4782 exit -1
4783
4784fi
4785
4786done
4787
4788
4789else
4790 with_hepmc=""
4791
4792fi
4793
4794##############################################################################
4795with_photos=`pwd`
4796
4797if test "$prefix" != "NONE"; then
4798 with_photos=$prefix
4799fi
4800
4801pythia8data=$PYTHIA8DATA
4802
4803if test -z "$pythia8data"; then
4804 pythia8data=$with_pythia8/xmldoc
4805fi
4806
4807ln -sf platform/make.inc make.inc
4808
4809
4810
4811
4812
4813
4814
4815 ac_config_files="$ac_config_files platform/make.inc configure.paths.sh configure.paths.csh"
4816
4817cat >confcache <<\_ACEOF
4818# This file is a shell script that caches the results of configure
4819# tests run on this system so they can be shared between configure
4820# scripts and configure runs, see configure's option --config-cache.
4821# It is not useful on other systems. If it contains results you don't
4822# want to keep, you may remove or edit it.
4823#
4824# config.status only pays attention to the cache file if you give it
4825# the --recheck option to rerun configure.
4826#
4827# `ac_cv_env_foo' variables (set or unset) will be overridden when
4828# loading this file, other *unset* `ac_cv_foo' will be assigned the
4829# following values.
4830
4831_ACEOF
4832
4833# The following way of writing the cache mishandles newlines in values,
4834# but we know of no workaround that is simple, portable, and efficient.
4835# So, don't put newlines in cache variables' values.
4836# Ultrix sh set writes to stderr and can't be redirected directly,
4837# and sets the high bit in the cache file unless we assign to the vars.
4838{
4839 (set) 2>&1 |
4840 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4841 *ac_space=\ *)
4842 # `set' does not quote correctly, so add quotes (double-quote
4843 # substitution turns \\\\ into \\, and sed turns \\ into \).
4844 sed -n \
4845 "s/'/'\\\\''/g;
4846 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4847 ;;
4848 *)
4849 # `set' quotes correctly as required by POSIX, so do not add quotes.
4850 sed -n \
4851 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4852 ;;
4853 esac;
4854} |
4855 sed '
4856 t clear
4857 : clear
4858 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4859 t end
4860 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4861 : end' >>confcache
4862if diff $cache_file confcache >/dev/null 2>&1; then :; else
4863 if test -w $cache_file; then
4864 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4865 cat confcache >$cache_file
4866 else
4867 echo "not updating unwritable cache $cache_file"
4868 fi
4869fi
4870rm -f confcache
4871
4872test "x$prefix" = xNONE && prefix=$ac_default_prefix
4873# Let make expand exec_prefix.
4874test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4875
4876# VPATH may cause trouble with some makes, so we remove $(srcdir),
4877# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4878# trailing colons and then remove the whole line if VPATH becomes empty
4879# (actually we leave an empty line to preserve line numbers).
4880if test "x$srcdir" = x.; then
4881 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4882s/:*\$(srcdir):*/:/;
4883s/:*\${srcdir}:*/:/;
4884s/:*@srcdir@:*/:/;
4885s/^\([^=]*=[ ]*\):*/\1/;
4886s/:*$//;
4887s/^[^=]*=[ ]*$//;
4888}'
4889fi
4890
4891# Transform confdefs.h into DEFS.
4892# Protect against shell expansion while executing Makefile rules.
4893# Protect against Makefile macro expansion.
4894#
4895# If the first sed substitution is executed (which looks for macros that
4896# take arguments), then we branch to the quote section. Otherwise,
4897# look for a macro that doesn't take arguments.
4898cat >confdef2opt.sed <<\_ACEOF
4899t clear
4900: clear
4901s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4902t quote
4903s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4904t quote
4905d
4906: quote
4907s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
4908s,\[,\\&,g
4909s,\],\\&,g
4910s,\$,$$,g
4911p
4912_ACEOF
4913# We use echo to avoid assuming a particular line-breaking character.
4914# The extra dot is to prevent the shell from consuming trailing
4915# line-breaks from the sub-command output. A line-break within
4916# single-quotes doesn't work because, if this script is created in a
4917# platform that uses two characters for line-breaks (e.g., DOS), tr
4918# would break.
4919ac_LF_and_DOT=`echo; echo .`
4920DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4921rm -f confdef2opt.sed
4922
4923
4924ac_libobjs=
4925ac_ltlibobjs=
4926for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4927 # 1. Remove the extension, and $U if already installed.
4928 ac_i=`echo "$ac_i" |
4929 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4930 # 2. Add them.
4931 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4932 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4933done
4934LIBOBJS=$ac_libobjs
4935
4936LTLIBOBJS=$ac_ltlibobjs
4937
4938
4939
4940: ${CONFIG_STATUS=./config.status}
4941ac_clean_files_save=$ac_clean_files
4942ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4943{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4944echo "$as_me: creating $CONFIG_STATUS" >&6;}
4945cat >$CONFIG_STATUS <<_ACEOF
4946#! $SHELL
4947# Generated by $as_me.
4948# Run this file to recreate the current configuration.
4949# Compiler output produced by configure, useful for debugging
4950# configure, is in config.log if it exists.
4951
4952debug=false
4953ac_cs_recheck=false
4954ac_cs_silent=false
4955SHELL=\${CONFIG_SHELL-$SHELL}
4956_ACEOF
4957
4958cat >>$CONFIG_STATUS <<\_ACEOF
4959## --------------------- ##
4960## M4sh Initialization. ##
4961## --------------------- ##
4962
4963# Be Bourne compatible
4964if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4965 emulate sh
4966 NULLCMD=:
4967 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4968 # is contrary to our usage. Disable this feature.
4969 alias -g '${1+"$@"}'='"$@"'
4970elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4971 set -o posix
4972fi
4973DUALCASE=1; export DUALCASE # for MKS sh
4974
4975# Support unset when possible.
4976if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4977 as_unset=unset
4978else
4979 as_unset=false
4980fi
4981
4982
4983# Work around bugs in pre-3.0 UWIN ksh.
4984$as_unset ENV MAIL MAILPATH
4985PS1='$ '
4986PS2='> '
4987PS4='+ '
4988
4989# NLS nuisances.
4990for as_var in \
4991 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4992 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4993 LC_TELEPHONE LC_TIME
4994do
4995 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4996 eval $as_var=C; export $as_var
4997 else
4998 $as_unset $as_var
4999 fi
5000done
5001
5002# Required to use basename.
5003if expr a : '\(a\)' >/dev/null 2>&1; then
5004 as_expr=expr
5005else
5006 as_expr=false
5007fi
5008
5009if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5010 as_basename=basename
5011else
5012 as_basename=false
5013fi
5014
5015
5016# Name of the executable.
5017as_me=`$as_basename "$0" ||
5018$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5019 X"$0" : 'X\(//\)$' \| \
5020 X"$0" : 'X\(/\)$' \| \
5021 . : '\(.\)' 2>/dev/null ||
5022echo X/"$0" |
5023 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5024 /^X\/\(\/\/\)$/{ s//\1/; q; }
5025 /^X\/\(\/\).*/{ s//\1/; q; }
5026 s/.*/./; q'`
5027
5028
5029# PATH needs CR, and LINENO needs CR and PATH.
5030# Avoid depending upon Character Ranges.
5031as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5032as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5033as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5034as_cr_digits='0123456789'
5035as_cr_alnum=$as_cr_Letters$as_cr_digits
5036
5037# The user is always right.
5038if test "${PATH_SEPARATOR+set}" != set; then
5039 echo "#! /bin/sh" >conf$$.sh
5040 echo "exit 0" >>conf$$.sh
5041 chmod +x conf$$.sh
5042 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5043 PATH_SEPARATOR=';'
5044 else
5045 PATH_SEPARATOR=:
5046 fi
5047 rm -f conf$$.sh
5048fi
5049
5050
5051 as_lineno_1=$LINENO
5052 as_lineno_2=$LINENO
5053 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5054 test "x$as_lineno_1" != "x$as_lineno_2" &&
5055 test "x$as_lineno_3" = "x$as_lineno_2" || {
5056 # Find who we are. Look in the path if we contain no path at all
5057 # relative or not.
5058 case $0 in
5059 *[\\/]* ) as_myself=$0 ;;
5060 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061for as_dir in $PATH
5062do
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5066done
5067
5068 ;;
5069 esac
5070 # We did not find ourselves, most probably we were run as `sh COMMAND'
5071 # in which case we are not to be found in the path.
5072 if test "x$as_myself" = x; then
5073 as_myself=$0
5074 fi
5075 if test ! -f "$as_myself"; then
5076 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5077echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5078 { (exit 1); exit 1; }; }
5079 fi
5080 case $CONFIG_SHELL in
5081 '')
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5084do
5085 IFS=$as_save_IFS
5086 test -z "$as_dir" && as_dir=.
5087 for as_base in sh bash ksh sh5; do
5088 case $as_dir in
5089 /*)
5090 if ("$as_dir/$as_base" -c '
5091 as_lineno_1=$LINENO
5092 as_lineno_2=$LINENO
5093 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5094 test "x$as_lineno_1" != "x$as_lineno_2" &&
5095 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5096 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5097 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5098 CONFIG_SHELL=$as_dir/$as_base
5099 export CONFIG_SHELL
5100 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5101 fi;;
5102 esac
5103 done
5104done
5105;;
5106 esac
5107
5108 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5109 # uniformly replaced by the line number. The first 'sed' inserts a
5110 # line-number line before each line; the second 'sed' does the real
5111 # work. The second script uses 'N' to pair each line-number line
5112 # with the numbered line, and appends trailing '-' during
5113 # substitution so that $LINENO is not a special case at line end.
5114 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5115 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5116 sed '=' <$as_myself |
5117 sed '
5118 N
5119 s,$,-,
5120 : loop
5121 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5122 t loop
5123 s,-$,,
5124 s,^['$as_cr_digits']*\n,,
5125 ' >$as_me.lineno &&
5126 chmod +x $as_me.lineno ||
5127 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5128echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5129 { (exit 1); exit 1; }; }
5130
5131 # Don't try to exec as it changes $[0], causing all sort of problems
5132 # (the dirname of $[0] is not the place where we might find the
5133 # original and so on. Autoconf is especially sensible to this).
5134 . ./$as_me.lineno
5135 # Exit status is that of the last command.
5136 exit
5137}
5138
5139
5140case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5141 *c*,-n*) ECHO_N= ECHO_C='
5142' ECHO_T=' ' ;;
5143 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5144 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5145esac
5146
5147if expr a : '\(a\)' >/dev/null 2>&1; then
5148 as_expr=expr
5149else
5150 as_expr=false
5151fi
5152
5153rm -f conf$$ conf$$.exe conf$$.file
5154echo >conf$$.file
5155if ln -s conf$$.file conf$$ 2>/dev/null; then
5156 # We could just check for DJGPP; but this test a) works b) is more generic
5157 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5158 if test -f conf$$.exe; then
5159 # Don't use ln at all; we don't have any links
5160 as_ln_s='cp -p'
5161 else
5162 as_ln_s='ln -s'
5163 fi
5164elif ln conf$$.file conf$$ 2>/dev/null; then
5165 as_ln_s=ln
5166else
5167 as_ln_s='cp -p'
5168fi
5169rm -f conf$$ conf$$.exe conf$$.file
5170
5171if mkdir -p . 2>/dev/null; then
5172 as_mkdir_p=:
5173else
5174 test -d ./-p && rmdir ./-p
5175 as_mkdir_p=false
5176fi
5177
5178as_executable_p="test -f"
5179
5180# Sed expression to map a string onto a valid CPP name.
5181as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5182
5183# Sed expression to map a string onto a valid variable name.
5184as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5185
5186
5187# IFS
5188# We need space, tab and new line, in precisely that order.
5189as_nl='
5190'
5191IFS=" $as_nl"
5192
5193# CDPATH.
5194$as_unset CDPATH
5195
5196exec 6>&1
5197
5198# Open the log real soon, to keep \$[0] and so on meaningful, and to
5199# report actual input values of CONFIG_FILES etc. instead of their
5200# values after options handling. Logging --version etc. is OK.
5201exec 5>>config.log
5202{
5203 echo
5204 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5205## Running $as_me. ##
5206_ASBOX
5207} >&5
5208cat >&5 <<_CSEOF
5209
5210This file was extended by Photos C++ Interface $as_me 3.3, which was
5211generated by GNU Autoconf 2.59. Invocation command line was
5212
5213 CONFIG_FILES = $CONFIG_FILES
5214 CONFIG_HEADERS = $CONFIG_HEADERS
5215 CONFIG_LINKS = $CONFIG_LINKS
5216 CONFIG_COMMANDS = $CONFIG_COMMANDS
5217 $ $0 $@
5218
5219_CSEOF
5220echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5221echo >&5
5222_ACEOF
5223
5224# Files that config.status was made for.
5225if test -n "$ac_config_files"; then
5226 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5227fi
5228
5229if test -n "$ac_config_headers"; then
5230 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5231fi
5232
5233if test -n "$ac_config_links"; then
5234 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5235fi
5236
5237if test -n "$ac_config_commands"; then
5238 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5239fi
5240
5241cat >>$CONFIG_STATUS <<\_ACEOF
5242
5243ac_cs_usage="\
5244\`$as_me' instantiates files from templates according to the
5245current configuration.
5246
5247Usage: $0 [OPTIONS] [FILE]...
5248
5249 -h, --help print this help, then exit
5250 -V, --version print version number, then exit
5251 -q, --quiet do not print progress messages
5252 -d, --debug don't remove temporary files
5253 --recheck update $as_me by reconfiguring in the same conditions
5254 --file=FILE[:TEMPLATE]
5255 instantiate the configuration file FILE
5256
5257Configuration files:
5258$config_files
5259
5260Report bugs to <bug-autoconf@gnu.org>."
5261_ACEOF
5262
5263cat >>$CONFIG_STATUS <<_ACEOF
5264ac_cs_version="\\
5265Photos C++ Interface config.status 3.3
5266configured by $0, generated by GNU Autoconf 2.59,
5267 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5268
5269Copyright (C) 2003 Free Software Foundation, Inc.
5270This config.status script is free software; the Free Software Foundation
5271gives unlimited permission to copy, distribute and modify it."
5272srcdir=$srcdir
5273_ACEOF
5274
5275cat >>$CONFIG_STATUS <<\_ACEOF
5276# If no file are specified by the user, then we need to provide default
5277# value. By we need to know if files were specified by the user.
5278ac_need_defaults=:
5279while test $# != 0
5280do
5281 case $1 in
5282 --*=*)
5283 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5284 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5285 ac_shift=:
5286 ;;
5287 -*)
5288 ac_option=$1
5289 ac_optarg=$2
5290 ac_shift=shift
5291 ;;
5292 *) # This is not an option, so the user has probably given explicit
5293 # arguments.
5294 ac_option=$1
5295 ac_need_defaults=false;;
5296 esac
5297
5298 case $ac_option in
5299 # Handling of the options.
5300_ACEOF
5301cat >>$CONFIG_STATUS <<\_ACEOF
5302 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5303 ac_cs_recheck=: ;;
5304 --version | --vers* | -V )
5305 echo "$ac_cs_version"; exit 0 ;;
5306 --he | --h)
5307 # Conflict between --help and --header
5308 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5309Try \`$0 --help' for more information." >&5
5310echo "$as_me: error: ambiguous option: $1
5311Try \`$0 --help' for more information." >&2;}
5312 { (exit 1); exit 1; }; };;
5313 --help | --hel | -h )
5314 echo "$ac_cs_usage"; exit 0 ;;
5315 --debug | --d* | -d )
5316 debug=: ;;
5317 --file | --fil | --fi | --f )
5318 $ac_shift
5319 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5320 ac_need_defaults=false;;
5321 --header | --heade | --head | --hea )
5322 $ac_shift
5323 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5324 ac_need_defaults=false;;
5325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5326 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5327 ac_cs_silent=: ;;
5328
5329 # This is an error.
5330 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5331Try \`$0 --help' for more information." >&5
5332echo "$as_me: error: unrecognized option: $1
5333Try \`$0 --help' for more information." >&2;}
5334 { (exit 1); exit 1; }; } ;;
5335
5336 *) ac_config_targets="$ac_config_targets $1" ;;
5337
5338 esac
5339 shift
5340done
5341
5342ac_configure_extra_args=
5343
5344if $ac_cs_silent; then
5345 exec 6>/dev/null
5346 ac_configure_extra_args="$ac_configure_extra_args --silent"
5347fi
5348
5349_ACEOF
5350cat >>$CONFIG_STATUS <<_ACEOF
5351if \$ac_cs_recheck; then
5352 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5353 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5354fi
5355
5356_ACEOF
5357
5358
5359
5360
5361
5362cat >>$CONFIG_STATUS <<\_ACEOF
5363for ac_config_target in $ac_config_targets
5364do
5365 case "$ac_config_target" in
5366 # Handling of arguments.
5367 "platform/make.inc" ) CONFIG_FILES="$CONFIG_FILES platform/make.inc" ;;
5368 "configure.paths.sh" ) CONFIG_FILES="$CONFIG_FILES configure.paths.sh" ;;
5369 "configure.paths.csh" ) CONFIG_FILES="$CONFIG_FILES configure.paths.csh" ;;
5370 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5371echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5372 { (exit 1); exit 1; }; };;
5373 esac
5374done
5375
5376# If the user did not use the arguments to specify the items to instantiate,
5377# then the envvar interface is used. Set only those that are not.
5378# We use the long form for the default assignment because of an extremely
5379# bizarre bug on SunOS 4.1.3.
5380if $ac_need_defaults; then
5381 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5382fi
5383
5384# Have a temporary directory for convenience. Make it in the build tree
5385# simply because there is no reason to put it here, and in addition,
5386# creating and moving files from /tmp can sometimes cause problems.
5387# Create a temporary directory, and hook for its removal unless debugging.
5388$debug ||
5389{
5390 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5391 trap '{ (exit 1); exit 1; }' 1 2 13 15
5392}
5393
5394# Create a (secure) tmp directory for tmp files.
5395
5396{
5397 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5398 test -n "$tmp" && test -d "$tmp"
5399} ||
5400{
5401 tmp=./confstat$$-$RANDOM
5402 (umask 077 && mkdir $tmp)
5403} ||
5404{
5405 echo "$me: cannot create a temporary directory in ." >&2
5406 { (exit 1); exit 1; }
5407}
5408
5409_ACEOF
5410
5411cat >>$CONFIG_STATUS <<_ACEOF
5412
5413#
5414# CONFIG_FILES section.
5415#
5416
5417# No need to generate the scripts if there are no CONFIG_FILES.
5418# This happens for instance when ./config.status config.h
5419if test -n "\$CONFIG_FILES"; then
5420 # Protect against being on the right side of a sed subst in config.status.
5421 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5422 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5423s,@SHELL@,$SHELL,;t t
5424s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5425s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5426s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5427s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5428s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5429s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5430s,@exec_prefix@,$exec_prefix,;t t
5431s,@prefix@,$prefix,;t t
5432s,@program_transform_name@,$program_transform_name,;t t
5433s,@bindir@,$bindir,;t t
5434s,@sbindir@,$sbindir,;t t
5435s,@libexecdir@,$libexecdir,;t t
5436s,@datadir@,$datadir,;t t
5437s,@sysconfdir@,$sysconfdir,;t t
5438s,@sharedstatedir@,$sharedstatedir,;t t
5439s,@localstatedir@,$localstatedir,;t t
5440s,@libdir@,$libdir,;t t
5441s,@includedir@,$includedir,;t t
5442s,@oldincludedir@,$oldincludedir,;t t
5443s,@infodir@,$infodir,;t t
5444s,@mandir@,$mandir,;t t
5445s,@build_alias@,$build_alias,;t t
5446s,@host_alias@,$host_alias,;t t
5447s,@target_alias@,$target_alias,;t t
5448s,@DEFS@,$DEFS,;t t
5449s,@ECHO_C@,$ECHO_C,;t t
5450s,@ECHO_N@,$ECHO_N,;t t
5451s,@ECHO_T@,$ECHO_T,;t t
5452s,@LIBS@,$LIBS,;t t
5453s,@SET_MAKE@,$SET_MAKE,;t t
5454s,@LN_S@,$LN_S,;t t
5455s,@CC@,$CC,;t t
5456s,@CFLAGS@,$CFLAGS,;t t
5457s,@LDFLAGS@,$LDFLAGS,;t t
5458s,@CPPFLAGS@,$CPPFLAGS,;t t
5459s,@ac_ct_CC@,$ac_ct_CC,;t t
5460s,@EXEEXT@,$EXEEXT,;t t
5461s,@OBJEXT@,$OBJEXT,;t t
5462s,@CXX@,$CXX,;t t
5463s,@CXXFLAGS@,$CXXFLAGS,;t t
5464s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5465s,@RANLIB@,$RANLIB,;t t
5466s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5467s,@F77@,$F77,;t t
5468s,@FFLAGS@,$FFLAGS,;t t
5469s,@ac_ct_F77@,$ac_ct_F77,;t t
5470s,@CPP@,$CPP,;t t
5471s,@DIRECT_CPP@,$DIRECT_CPP,;t t
5472s,@CXXCPP@,$CXXCPP,;t t
5473s,@EGREP@,$EGREP,;t t
5474s,@LIBOBJS@,$LIBOBJS,;t t
5475s,@with_hepmc@,$with_hepmc,;t t
5476s,@with_photos@,$with_photos,;t t
5477s,@pythia8data@,$pythia8data,;t t
5478s,@with_tauola@,$with_tauola,;t t
5479s,@with_pythia8@,$with_pythia8,;t t
5480s,@with_mc_tester@,$with_mc_tester,;t t
5481s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5482CEOF
5483
5484_ACEOF
5485
5486 cat >>$CONFIG_STATUS <<\_ACEOF
5487 # Split the substitutions into bite-sized pieces for seds with
5488 # small command number limits, like on Digital OSF/1 and HP-UX.
5489 ac_max_sed_lines=48
5490 ac_sed_frag=1 # Number of current file.
5491 ac_beg=1 # First line for current file.
5492 ac_end=$ac_max_sed_lines # Line after last line for current file.
5493 ac_more_lines=:
5494 ac_sed_cmds=
5495 while $ac_more_lines; do
5496 if test $ac_beg -gt 1; then
5497 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5498 else
5499 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5500 fi
5501 if test ! -s $tmp/subs.frag; then
5502 ac_more_lines=false
5503 else
5504 # The purpose of the label and of the branching condition is to
5505 # speed up the sed processing (if there are no `@' at all, there
5506 # is no need to browse any of the substitutions).
5507 # These are the two extra sed commands mentioned above.
5508 (echo ':t
5509 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5510 if test -z "$ac_sed_cmds"; then
5511 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5512 else
5513 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5514 fi
5515 ac_sed_frag=`expr $ac_sed_frag + 1`
5516 ac_beg=$ac_end
5517 ac_end=`expr $ac_end + $ac_max_sed_lines`
5518 fi
5519 done
5520 if test -z "$ac_sed_cmds"; then
5521 ac_sed_cmds=cat
5522 fi
5523fi # test -n "$CONFIG_FILES"
5524
5525_ACEOF
5526cat >>$CONFIG_STATUS <<\_ACEOF
5527for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5528 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5529 case $ac_file in
5530 - | *:- | *:-:* ) # input from stdin
5531 cat >$tmp/stdin
5532 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5533 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5534 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5535 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5536 * ) ac_file_in=$ac_file.in ;;
5537 esac
5538
5539 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5540 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5541$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5542 X"$ac_file" : 'X\(//\)[^/]' \| \
5543 X"$ac_file" : 'X\(//\)$' \| \
5544 X"$ac_file" : 'X\(/\)' \| \
5545 . : '\(.\)' 2>/dev/null ||
5546echo X"$ac_file" |
5547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5548 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5549 /^X\(\/\/\)$/{ s//\1/; q; }
5550 /^X\(\/\).*/{ s//\1/; q; }
5551 s/.*/./; q'`
5552 { if $as_mkdir_p; then
5553 mkdir -p "$ac_dir"
5554 else
5555 as_dir="$ac_dir"
5556 as_dirs=
5557 while test ! -d "$as_dir"; do
5558 as_dirs="$as_dir $as_dirs"
5559 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5560$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5561 X"$as_dir" : 'X\(//\)[^/]' \| \
5562 X"$as_dir" : 'X\(//\)$' \| \
5563 X"$as_dir" : 'X\(/\)' \| \
5564 . : '\(.\)' 2>/dev/null ||
5565echo X"$as_dir" |
5566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5567 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5568 /^X\(\/\/\)$/{ s//\1/; q; }
5569 /^X\(\/\).*/{ s//\1/; q; }
5570 s/.*/./; q'`
5571 done
5572 test ! -n "$as_dirs" || mkdir $as_dirs
5573 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5574echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5575 { (exit 1); exit 1; }; }; }
5576
5577 ac_builddir=.
5578
5579if test "$ac_dir" != .; then
5580 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5581 # A "../" for each directory in $ac_dir_suffix.
5582 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5583else
5584 ac_dir_suffix= ac_top_builddir=
5585fi
5586
5587case $srcdir in
5588 .) # No --srcdir option. We are building in place.
5589 ac_srcdir=.
5590 if test -z "$ac_top_builddir"; then
5591 ac_top_srcdir=.
5592 else
5593 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5594 fi ;;
5595 [\\/]* | ?:[\\/]* ) # Absolute path.
5596 ac_srcdir=$srcdir$ac_dir_suffix;
5597 ac_top_srcdir=$srcdir ;;
5598 *) # Relative path.
5599 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5600 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5601esac
5602
5603# Do not use `cd foo && pwd` to compute absolute paths, because
5604# the directories may not exist.
5605case `pwd` in
5606.) ac_abs_builddir="$ac_dir";;
5607*)
5608 case "$ac_dir" in
5609 .) ac_abs_builddir=`pwd`;;
5610 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5611 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5612 esac;;
5613esac
5614case $ac_abs_builddir in
5615.) ac_abs_top_builddir=${ac_top_builddir}.;;
5616*)
5617 case ${ac_top_builddir}. in
5618 .) ac_abs_top_builddir=$ac_abs_builddir;;
5619 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5620 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5621 esac;;
5622esac
5623case $ac_abs_builddir in
5624.) ac_abs_srcdir=$ac_srcdir;;
5625*)
5626 case $ac_srcdir in
5627 .) ac_abs_srcdir=$ac_abs_builddir;;
5628 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5629 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5630 esac;;
5631esac
5632case $ac_abs_builddir in
5633.) ac_abs_top_srcdir=$ac_top_srcdir;;
5634*)
5635 case $ac_top_srcdir in
5636 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5637 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5638 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5639 esac;;
5640esac
5641
5642
5643
5644 if test x"$ac_file" != x-; then
5645 { echo "$as_me:$LINENO: creating $ac_file" >&5
5646echo "$as_me: creating $ac_file" >&6;}
5647 rm -f "$ac_file"
5648 fi
5649 # Let's still pretend it is `configure' which instantiates (i.e., don't
5650 # use $as_me), people would be surprised to read:
5651 # /* config.h. Generated by config.status. */
5652 if test x"$ac_file" = x-; then
5653 configure_input=
5654 else
5655 configure_input="$ac_file. "
5656 fi
5657 configure_input=$configure_input"Generated from `echo $ac_file_in |
5658 sed 's,.*/,,'` by configure."
5659
5660 # First look for the input files in the build tree, otherwise in the
5661 # src tree.
5662 ac_file_inputs=`IFS=:
5663 for f in $ac_file_in; do
5664 case $f in
5665 -) echo $tmp/stdin ;;
5666 [\\/$]*)
5667 # Absolute (can't be DOS-style, as IFS=:)
5668 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5669echo "$as_me: error: cannot find input file: $f" >&2;}
5670 { (exit 1); exit 1; }; }
5671 echo "$f";;
5672 *) # Relative
5673 if test -f "$f"; then
5674 # Build tree
5675 echo "$f"
5676 elif test -f "$srcdir/$f"; then
5677 # Source tree
5678 echo "$srcdir/$f"
5679 else
5680 # /dev/null tree
5681 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5682echo "$as_me: error: cannot find input file: $f" >&2;}
5683 { (exit 1); exit 1; }; }
5684 fi;;
5685 esac
5686 done` || { (exit 1); exit 1; }
5687_ACEOF
5688cat >>$CONFIG_STATUS <<_ACEOF
5689 sed "$ac_vpsub
5690$extrasub
5691_ACEOF
5692cat >>$CONFIG_STATUS <<\_ACEOF
5693:t
5694/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5695s,@configure_input@,$configure_input,;t t
5696s,@srcdir@,$ac_srcdir,;t t
5697s,@abs_srcdir@,$ac_abs_srcdir,;t t
5698s,@top_srcdir@,$ac_top_srcdir,;t t
5699s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5700s,@builddir@,$ac_builddir,;t t
5701s,@abs_builddir@,$ac_abs_builddir,;t t
5702s,@top_builddir@,$ac_top_builddir,;t t
5703s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5704" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5705 rm -f $tmp/stdin
5706 if test x"$ac_file" != x-; then
5707 mv $tmp/out $ac_file
5708 else
5709 cat $tmp/out
5710 rm -f $tmp/out
5711 fi
5712
5713done
5714_ACEOF
5715
5716cat >>$CONFIG_STATUS <<\_ACEOF
5717
5718{ (exit 0); exit 0; }
5719_ACEOF
5720chmod +x $CONFIG_STATUS
5721ac_clean_files=$ac_clean_files_save
5722
5723
5724# configure is writing to config.log, and then calls config.status.
5725# config.status does its own redirection, appending to config.log.
5726# Unfortunately, on DOS this fails, as config.log is still kept open
5727# by configure, so config.status won't be able to write to it; its
5728# output is simply discarded. So we exec the FD to /dev/null,
5729# effectively closing config.log, so it can be properly (re)opened and
5730# appended to by config.status. When coming back to configure, we
5731# need to make the FD available again.
5732if test "$no_create" != yes; then
5733 ac_cs_success=:
5734 ac_config_status_args=
5735 test "$silent" = yes &&
5736 ac_config_status_args="$ac_config_status_args --quiet"
5737 exec 5>/dev/null
5738 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5739 exec 5>>config.log
5740 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5741 # would make configure fail if this is the last instruction.
5742 $ac_cs_success || { (exit 1); exit 1; }
5743fi
5744
5745