]>
Commit | Line | Data |
---|---|---|
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 | |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
16 | emulate sh | |
17 | NULLCMD=: | |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
19 | # is contrary to our usage. Disable this feature. | |
20 | alias -g '${1+"$@"}'='"$@"' | |
21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
22 | set -o posix | |
23 | fi | |
24 | DUALCASE=1; export DUALCASE # for MKS sh | |
25 | ||
26 | # Support unset when possible. | |
27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
28 | as_unset=unset | |
29 | else | |
30 | as_unset=false | |
31 | fi | |
32 | ||
33 | ||
34 | # Work around bugs in pre-3.0 UWIN ksh. | |
35 | $as_unset ENV MAIL MAILPATH | |
36 | PS1='$ ' | |
37 | PS2='> ' | |
38 | PS4='+ ' | |
39 | ||
40 | # NLS nuisances. | |
41 | for as_var in \ | |
42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
44 | LC_TELEPHONE LC_TIME | |
45 | do | |
46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
47 | eval $as_var=C; export $as_var | |
48 | else | |
49 | $as_unset $as_var | |
50 | fi | |
51 | done | |
52 | ||
53 | # Required to use basename. | |
54 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
55 | as_expr=expr | |
56 | else | |
57 | as_expr=false | |
58 | fi | |
59 | ||
60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
61 | as_basename=basename | |
62 | else | |
63 | as_basename=false | |
64 | fi | |
65 | ||
66 | ||
67 | # Name of the executable. | |
68 | as_me=`$as_basename "$0" || | |
69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
70 | X"$0" : 'X\(//\)$' \| \ | |
71 | X"$0" : 'X\(/\)$' \| \ | |
72 | . : '\(.\)' 2>/dev/null || | |
73 | echo X/"$0" | | |
74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
75 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
76 | /^X\/\(\/\).*/{ s//\1/; q; } | |
77 | s/.*/./; q'` | |
78 | ||
79 | ||
80 | # PATH needs CR, and LINENO needs CR and PATH. | |
81 | # Avoid depending upon Character Ranges. | |
82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
85 | as_cr_digits='0123456789' | |
86 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
87 | ||
88 | # The user is always right. | |
89 | if test "${PATH_SEPARATOR+set}" != set; then | |
90 | echo "#! /bin/sh" >conf$$.sh | |
91 | echo "exit 0" >>conf$$.sh | |
92 | chmod +x conf$$.sh | |
93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
94 | PATH_SEPARATOR=';' | |
95 | else | |
96 | PATH_SEPARATOR=: | |
97 | fi | |
98 | rm -f conf$$.sh | |
99 | fi | |
100 | ||
101 | ||
102 | as_lineno_1=$LINENO | |
103 | as_lineno_2=$LINENO | |
104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
105 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
106 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
107 | # Find who we are. Look in the path if we contain no path at all | |
108 | # relative or not. | |
109 | case $0 in | |
110 | *[\\/]* ) as_myself=$0 ;; | |
111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
112 | for as_dir in $PATH | |
113 | do | |
114 | IFS=$as_save_IFS | |
115 | test -z "$as_dir" && as_dir=. | |
116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
117 | done | |
118 | ||
119 | ;; | |
120 | esac | |
121 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
122 | # in which case we are not to be found in the path. | |
123 | if test "x$as_myself" = x; then | |
124 | as_myself=$0 | |
125 | fi | |
126 | if test ! -f "$as_myself"; then | |
127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
128 | { (exit 1); exit 1; }; } | |
129 | fi | |
130 | case $CONFIG_SHELL in | |
131 | '') | |
132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
134 | do | |
135 | IFS=$as_save_IFS | |
136 | test -z "$as_dir" && as_dir=. | |
137 | for as_base in sh bash ksh sh5; do | |
138 | case $as_dir in | |
139 | /*) | |
140 | if ("$as_dir/$as_base" -c ' | |
141 | as_lineno_1=$LINENO | |
142 | as_lineno_2=$LINENO | |
143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
144 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
148 | CONFIG_SHELL=$as_dir/$as_base | |
149 | export CONFIG_SHELL | |
150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
151 | fi;; | |
152 | esac | |
153 | done | |
154 | done | |
155 | ;; | |
156 | esac | |
157 | ||
158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
159 | # uniformly replaced by the line number. The first 'sed' inserts a | |
160 | # line-number line before each line; the second 'sed' does the real | |
161 | # work. The second script uses 'N' to pair each line-number line | |
162 | # with the numbered line, and appends trailing '-' during | |
163 | # substitution so that $LINENO is not a special case at line end. | |
164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
166 | sed '=' <$as_myself | | |
167 | sed ' | |
168 | N | |
169 | s,$,-, | |
170 | : loop | |
171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
172 | t loop | |
173 | s,-$,, | |
174 | s,^['$as_cr_digits']*\n,, | |
175 | ' >$as_me.lineno && | |
176 | chmod +x $as_me.lineno || | |
177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
178 | { (exit 1); exit 1; }; } | |
179 | ||
180 | # Don't try to exec as it changes $[0], causing all sort of problems | |
181 | # (the dirname of $[0] is not the place where we might find the | |
182 | # original and so on. Autoconf is especially sensible to this). | |
183 | . ./$as_me.lineno | |
184 | # Exit status is that of the last command. | |
185 | exit | |
186 | } | |
187 | ||
188 | ||
189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
190 | *c*,-n*) ECHO_N= ECHO_C=' | |
191 | ' ECHO_T=' ' ;; | |
192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
194 | esac | |
195 | ||
196 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
197 | as_expr=expr | |
198 | else | |
199 | as_expr=false | |
200 | fi | |
201 | ||
202 | rm -f conf$$ conf$$.exe conf$$.file | |
203 | echo >conf$$.file | |
204 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
205 | # We could just check for DJGPP; but this test a) works b) is more generic | |
206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
207 | if test -f conf$$.exe; then | |
208 | # Don't use ln at all; we don't have any links | |
209 | as_ln_s='cp -p' | |
210 | else | |
211 | as_ln_s='ln -s' | |
212 | fi | |
213 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
214 | as_ln_s=ln | |
215 | else | |
216 | as_ln_s='cp -p' | |
217 | fi | |
218 | rm -f conf$$ conf$$.exe conf$$.file | |
219 | ||
220 | if mkdir -p . 2>/dev/null; then | |
221 | as_mkdir_p=: | |
222 | else | |
223 | test -d ./-p && rmdir ./-p | |
224 | as_mkdir_p=false | |
225 | fi | |
226 | ||
227 | as_executable_p="test -f" | |
228 | ||
229 | # Sed expression to map a string onto a valid CPP name. | |
230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
231 | ||
232 | # Sed expression to map a string onto a valid variable name. | |
233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
234 | ||
235 | ||
236 | # IFS | |
237 | # We need space, tab and new line, in precisely that order. | |
238 | as_nl=' | |
239 | ' | |
240 | IFS=" $as_nl" | |
241 | ||
242 | # CDPATH. | |
243 | $as_unset CDPATH | |
244 | ||
245 | ||
246 | # Name of the host. | |
247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
248 | # so uname gets run too. | |
249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
250 | ||
251 | exec 6>&1 | |
252 | ||
253 | # | |
254 | # Initializations. | |
255 | # | |
256 | ac_default_prefix=/usr/local | |
257 | ac_config_libobj_dir=. | |
258 | cross_compiling=no | |
259 | subdirs= | |
260 | MFLAGS= | |
261 | MAKEFLAGS= | |
262 | SHELL=${CONFIG_SHELL-/bin/sh} | |
263 | ||
264 | # Maximum number of lines to put in a shell here document. | |
265 | # This variable seems obsolete. It should probably be removed, and | |
266 | # only ac_max_sed_lines should be used. | |
267 | : ${ac_max_here_lines=38} | |
268 | ||
269 | # Identity of this package. | |
270 | PACKAGE_NAME='Photos C++ Interface' | |
271 | PACKAGE_TARNAME='photos-c---interface' | |
272 | PACKAGE_VERSION='3.3' | |
273 | PACKAGE_STRING='Photos C++ Interface 3.3' | |
274 | PACKAGE_BUGREPORT='tomasz.przedzinski@uj.edu.pl ' | |
275 | ||
276 | ac_default_prefix=`pwd` | |
277 | ac_unique_file="src/photosCInterfaces/Photos.cxx" | |
278 | # Factoring default headers for most tests. | |
279 | ac_includes_default="\ | |
280 | #include <stdio.h> | |
281 | #if HAVE_SYS_TYPES_H | |
282 | # include <sys/types.h> | |
283 | #endif | |
284 | #if HAVE_SYS_STAT_H | |
285 | # include <sys/stat.h> | |
286 | #endif | |
287 | #if STDC_HEADERS | |
288 | # include <stdlib.h> | |
289 | # include <stddef.h> | |
290 | #else | |
291 | # if HAVE_STDLIB_H | |
292 | # include <stdlib.h> | |
293 | # endif | |
294 | #endif | |
295 | #if HAVE_STRING_H | |
296 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
297 | # include <memory.h> | |
298 | # endif | |
299 | # include <string.h> | |
300 | #endif | |
301 | #if HAVE_STRINGS_H | |
302 | # include <strings.h> | |
303 | #endif | |
304 | #if HAVE_INTTYPES_H | |
305 | # include <inttypes.h> | |
306 | #else | |
307 | # if HAVE_STDINT_H | |
308 | # include <stdint.h> | |
309 | # endif | |
310 | #endif | |
311 | #if HAVE_UNISTD_H | |
312 | # include <unistd.h> | |
313 | #endif" | |
314 | ||
315 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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' | |
316 | ac_subst_files='' | |
317 | ||
318 | # Initialize some variables set by options. | |
319 | ac_init_help= | |
320 | ac_init_version=false | |
321 | # The variables have the same names as the options, with | |
322 | # dashes changed to underlines. | |
323 | cache_file=/dev/null | |
324 | exec_prefix=NONE | |
325 | no_create= | |
326 | no_recursion= | |
327 | prefix=NONE | |
328 | program_prefix=NONE | |
329 | program_suffix=NONE | |
330 | program_transform_name=s,x,x, | |
331 | silent= | |
332 | site= | |
333 | srcdir= | |
334 | verbose= | |
335 | x_includes=NONE | |
336 | x_libraries=NONE | |
337 | ||
338 | # Installation directory options. | |
339 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
340 | # and all the variables that are supposed to be based on exec_prefix | |
341 | # by default will actually change. | |
342 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
343 | bindir='${exec_prefix}/bin' | |
344 | sbindir='${exec_prefix}/sbin' | |
345 | libexecdir='${exec_prefix}/libexec' | |
346 | datadir='${prefix}/share' | |
347 | sysconfdir='${prefix}/etc' | |
348 | sharedstatedir='${prefix}/com' | |
349 | localstatedir='${prefix}/var' | |
350 | libdir='${exec_prefix}/lib' | |
351 | includedir='${prefix}/include' | |
352 | oldincludedir='/usr/include' | |
353 | infodir='${prefix}/info' | |
354 | mandir='${prefix}/man' | |
355 | ||
356 | ac_prev= | |
357 | for ac_option | |
358 | do | |
359 | # If the previous option needs an argument, assign it. | |
360 | if test -n "$ac_prev"; then | |
361 | eval "$ac_prev=\$ac_option" | |
362 | ac_prev= | |
363 | continue | |
364 | fi | |
365 | ||
366 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
367 | ||
368 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
369 | ||
370 | case $ac_option in | |
371 | ||
372 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
373 | ac_prev=bindir ;; | |
374 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
375 | bindir=$ac_optarg ;; | |
376 | ||
377 | -build | --build | --buil | --bui | --bu) | |
378 | ac_prev=build_alias ;; | |
379 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
380 | build_alias=$ac_optarg ;; | |
381 | ||
382 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
383 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
384 | ac_prev=cache_file ;; | |
385 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
386 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
387 | cache_file=$ac_optarg ;; | |
388 | ||
389 | --config-cache | -C) | |
390 | cache_file=config.cache ;; | |
391 | ||
392 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
393 | ac_prev=datadir ;; | |
394 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
395 | | --da=*) | |
396 | datadir=$ac_optarg ;; | |
397 | ||
398 | -disable-* | --disable-*) | |
399 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
400 | # Reject names that are not valid shell variable names. | |
401 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
402 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
403 | { (exit 1); exit 1; }; } | |
404 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
405 | eval "enable_$ac_feature=no" ;; | |
406 | ||
407 | -enable-* | --enable-*) | |
408 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
409 | # Reject names that are not valid shell variable names. | |
410 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
411 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
412 | { (exit 1); exit 1; }; } | |
413 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
414 | case $ac_option in | |
415 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
416 | *) ac_optarg=yes ;; | |
417 | esac | |
418 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
419 | ||
420 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
421 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
422 | | --exec | --exe | --ex) | |
423 | ac_prev=exec_prefix ;; | |
424 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
425 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
426 | | --exec=* | --exe=* | --ex=*) | |
427 | exec_prefix=$ac_optarg ;; | |
428 | ||
429 | -gas | --gas | --ga | --g) | |
430 | # Obsolete; use --with-gas. | |
431 | with_gas=yes ;; | |
432 | ||
433 | -help | --help | --hel | --he | -h) | |
434 | ac_init_help=long ;; | |
435 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
436 | ac_init_help=recursive ;; | |
437 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
438 | ac_init_help=short ;; | |
439 | ||
440 | -host | --host | --hos | --ho) | |
441 | ac_prev=host_alias ;; | |
442 | -host=* | --host=* | --hos=* | --ho=*) | |
443 | host_alias=$ac_optarg ;; | |
444 | ||
445 | -includedir | --includedir | --includedi | --included | --include \ | |
446 | | --includ | --inclu | --incl | --inc) | |
447 | ac_prev=includedir ;; | |
448 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
449 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
450 | includedir=$ac_optarg ;; | |
451 | ||
452 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
453 | ac_prev=infodir ;; | |
454 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
455 | infodir=$ac_optarg ;; | |
456 | ||
457 | -libdir | --libdir | --libdi | --libd) | |
458 | ac_prev=libdir ;; | |
459 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
460 | libdir=$ac_optarg ;; | |
461 | ||
462 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
463 | | --libexe | --libex | --libe) | |
464 | ac_prev=libexecdir ;; | |
465 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
466 | | --libexe=* | --libex=* | --libe=*) | |
467 | libexecdir=$ac_optarg ;; | |
468 | ||
469 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
470 | | --localstate | --localstat | --localsta | --localst \ | |
471 | | --locals | --local | --loca | --loc | --lo) | |
472 | ac_prev=localstatedir ;; | |
473 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
474 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
475 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
476 | localstatedir=$ac_optarg ;; | |
477 | ||
478 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
479 | ac_prev=mandir ;; | |
480 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
481 | mandir=$ac_optarg ;; | |
482 | ||
483 | -nfp | --nfp | --nf) | |
484 | # Obsolete; use --without-fp. | |
485 | with_fp=no ;; | |
486 | ||
487 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
488 | | --no-cr | --no-c | -n) | |
489 | no_create=yes ;; | |
490 | ||
491 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
492 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
493 | no_recursion=yes ;; | |
494 | ||
495 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
496 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
497 | | --oldin | --oldi | --old | --ol | --o) | |
498 | ac_prev=oldincludedir ;; | |
499 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
500 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
501 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
502 | oldincludedir=$ac_optarg ;; | |
503 | ||
504 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
505 | ac_prev=prefix ;; | |
506 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
507 | prefix=$ac_optarg ;; | |
508 | ||
509 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
510 | | --program-pre | --program-pr | --program-p) | |
511 | ac_prev=program_prefix ;; | |
512 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
513 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
514 | program_prefix=$ac_optarg ;; | |
515 | ||
516 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
517 | | --program-suf | --program-su | --program-s) | |
518 | ac_prev=program_suffix ;; | |
519 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
520 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
521 | program_suffix=$ac_optarg ;; | |
522 | ||
523 | -program-transform-name | --program-transform-name \ | |
524 | | --program-transform-nam | --program-transform-na \ | |
525 | | --program-transform-n | --program-transform- \ | |
526 | | --program-transform | --program-transfor \ | |
527 | | --program-transfo | --program-transf \ | |
528 | | --program-trans | --program-tran \ | |
529 | | --progr-tra | --program-tr | --program-t) | |
530 | ac_prev=program_transform_name ;; | |
531 | -program-transform-name=* | --program-transform-name=* \ | |
532 | | --program-transform-nam=* | --program-transform-na=* \ | |
533 | | --program-transform-n=* | --program-transform-=* \ | |
534 | | --program-transform=* | --program-transfor=* \ | |
535 | | --program-transfo=* | --program-transf=* \ | |
536 | | --program-trans=* | --program-tran=* \ | |
537 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
538 | program_transform_name=$ac_optarg ;; | |
539 | ||
540 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
541 | | -silent | --silent | --silen | --sile | --sil) | |
542 | silent=yes ;; | |
543 | ||
544 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
545 | ac_prev=sbindir ;; | |
546 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
547 | | --sbi=* | --sb=*) | |
548 | sbindir=$ac_optarg ;; | |
549 | ||
550 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
551 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
552 | | --sharedst | --shareds | --shared | --share | --shar \ | |
553 | | --sha | --sh) | |
554 | ac_prev=sharedstatedir ;; | |
555 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
556 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
557 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
558 | | --sha=* | --sh=*) | |
559 | sharedstatedir=$ac_optarg ;; | |
560 | ||
561 | -site | --site | --sit) | |
562 | ac_prev=site ;; | |
563 | -site=* | --site=* | --sit=*) | |
564 | site=$ac_optarg ;; | |
565 | ||
566 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
567 | ac_prev=srcdir ;; | |
568 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
569 | srcdir=$ac_optarg ;; | |
570 | ||
571 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
572 | | --syscon | --sysco | --sysc | --sys | --sy) | |
573 | ac_prev=sysconfdir ;; | |
574 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
575 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
576 | sysconfdir=$ac_optarg ;; | |
577 | ||
578 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
579 | ac_prev=target_alias ;; | |
580 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
581 | target_alias=$ac_optarg ;; | |
582 | ||
583 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
584 | verbose=yes ;; | |
585 | ||
586 | -version | --version | --versio | --versi | --vers | -V) | |
587 | ac_init_version=: ;; | |
588 | ||
589 | -with-* | --with-*) | |
590 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
591 | # Reject names that are not valid shell variable names. | |
592 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
593 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
594 | { (exit 1); exit 1; }; } | |
595 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
596 | case $ac_option in | |
597 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
598 | *) ac_optarg=yes ;; | |
599 | esac | |
600 | eval "with_$ac_package='$ac_optarg'" ;; | |
601 | ||
602 | -without-* | --without-*) | |
603 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
604 | # Reject names that are not valid shell variable names. | |
605 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
606 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
607 | { (exit 1); exit 1; }; } | |
608 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
609 | eval "with_$ac_package=no" ;; | |
610 | ||
611 | --x) | |
612 | # Obsolete; use --with-x. | |
613 | with_x=yes ;; | |
614 | ||
615 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
616 | | --x-incl | --x-inc | --x-in | --x-i) | |
617 | ac_prev=x_includes ;; | |
618 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
619 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
620 | x_includes=$ac_optarg ;; | |
621 | ||
622 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
623 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
624 | ac_prev=x_libraries ;; | |
625 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
626 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
627 | x_libraries=$ac_optarg ;; | |
628 | ||
629 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
630 | Try \`$0 --help' for more information." >&2 | |
631 | { (exit 1); exit 1; }; } | |
632 | ;; | |
633 | ||
634 | *=*) | |
635 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
636 | # Reject names that are not valid shell variable names. | |
637 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
638 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
639 | { (exit 1); exit 1; }; } | |
640 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
641 | eval "$ac_envvar='$ac_optarg'" | |
642 | export $ac_envvar ;; | |
643 | ||
644 | *) | |
645 | # FIXME: should be removed in autoconf 3.0. | |
646 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
647 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
648 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
649 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
650 | ;; | |
651 | ||
652 | esac | |
653 | done | |
654 | ||
655 | if test -n "$ac_prev"; then | |
656 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
657 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
658 | { (exit 1); exit 1; }; } | |
659 | fi | |
660 | ||
661 | # Be sure to have absolute paths. | |
662 | for ac_var in exec_prefix prefix | |
663 | do | |
664 | eval ac_val=$`echo $ac_var` | |
665 | case $ac_val in | |
666 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
667 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
668 | { (exit 1); exit 1; }; };; | |
669 | esac | |
670 | done | |
671 | ||
672 | # Be sure to have absolute paths. | |
673 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
674 | localstatedir libdir includedir oldincludedir infodir mandir | |
675 | do | |
676 | eval ac_val=$`echo $ac_var` | |
677 | case $ac_val in | |
678 | [\\/$]* | ?:[\\/]* ) ;; | |
679 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
680 | { (exit 1); exit 1; }; };; | |
681 | esac | |
682 | done | |
683 | ||
684 | # There might be people who depend on the old broken behavior: `$host' | |
685 | # used to hold the argument of --host etc. | |
686 | # FIXME: To remove some day. | |
687 | build=$build_alias | |
688 | host=$host_alias | |
689 | target=$target_alias | |
690 | ||
691 | # FIXME: To remove some day. | |
692 | if test "x$host_alias" != x; then | |
693 | if test "x$build_alias" = x; then | |
694 | cross_compiling=maybe | |
695 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
696 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
697 | elif test "x$build_alias" != "x$host_alias"; then | |
698 | cross_compiling=yes | |
699 | fi | |
700 | fi | |
701 | ||
702 | ac_tool_prefix= | |
703 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
704 | ||
705 | test "$silent" = yes && exec 6>/dev/null | |
706 | ||
707 | ||
708 | # Find the source files, if location was not specified. | |
709 | if test -z "$srcdir"; then | |
710 | ac_srcdir_defaulted=yes | |
711 | # Try the directory containing this script, then its parent. | |
712 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
713 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
714 | X"$0" : 'X\(//\)[^/]' \| \ | |
715 | X"$0" : 'X\(//\)$' \| \ | |
716 | X"$0" : 'X\(/\)' \| \ | |
717 | . : '\(.\)' 2>/dev/null || | |
718 | echo X"$0" | | |
719 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
720 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
721 | /^X\(\/\/\)$/{ s//\1/; q; } | |
722 | /^X\(\/\).*/{ s//\1/; q; } | |
723 | s/.*/./; q'` | |
724 | srcdir=$ac_confdir | |
725 | if test ! -r $srcdir/$ac_unique_file; then | |
726 | srcdir=.. | |
727 | fi | |
728 | else | |
729 | ac_srcdir_defaulted=no | |
730 | fi | |
731 | if test ! -r $srcdir/$ac_unique_file; then | |
732 | if test "$ac_srcdir_defaulted" = yes; then | |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
734 | { (exit 1); exit 1; }; } | |
735 | else | |
736 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
737 | { (exit 1); exit 1; }; } | |
738 | fi | |
739 | fi | |
740 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
741 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
742 | { (exit 1); exit 1; }; } | |
743 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
744 | ac_env_build_alias_set=${build_alias+set} | |
745 | ac_env_build_alias_value=$build_alias | |
746 | ac_cv_env_build_alias_set=${build_alias+set} | |
747 | ac_cv_env_build_alias_value=$build_alias | |
748 | ac_env_host_alias_set=${host_alias+set} | |
749 | ac_env_host_alias_value=$host_alias | |
750 | ac_cv_env_host_alias_set=${host_alias+set} | |
751 | ac_cv_env_host_alias_value=$host_alias | |
752 | ac_env_target_alias_set=${target_alias+set} | |
753 | ac_env_target_alias_value=$target_alias | |
754 | ac_cv_env_target_alias_set=${target_alias+set} | |
755 | ac_cv_env_target_alias_value=$target_alias | |
756 | ac_env_CC_set=${CC+set} | |
757 | ac_env_CC_value=$CC | |
758 | ac_cv_env_CC_set=${CC+set} | |
759 | ac_cv_env_CC_value=$CC | |
760 | ac_env_CFLAGS_set=${CFLAGS+set} | |
761 | ac_env_CFLAGS_value=$CFLAGS | |
762 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
763 | ac_cv_env_CFLAGS_value=$CFLAGS | |
764 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
765 | ac_env_LDFLAGS_value=$LDFLAGS | |
766 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
767 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
768 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
769 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
770 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
771 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
772 | ac_env_CXX_set=${CXX+set} | |
773 | ac_env_CXX_value=$CXX | |
774 | ac_cv_env_CXX_set=${CXX+set} | |
775 | ac_cv_env_CXX_value=$CXX | |
776 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
777 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
778 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
779 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
780 | ac_env_F77_set=${F77+set} | |
781 | ac_env_F77_value=$F77 | |
782 | ac_cv_env_F77_set=${F77+set} | |
783 | ac_cv_env_F77_value=$F77 | |
784 | ac_env_FFLAGS_set=${FFLAGS+set} | |
785 | ac_env_FFLAGS_value=$FFLAGS | |
786 | ac_cv_env_FFLAGS_set=${FFLAGS+set} | |
787 | ac_cv_env_FFLAGS_value=$FFLAGS | |
788 | ac_env_CPP_set=${CPP+set} | |
789 | ac_env_CPP_value=$CPP | |
790 | ac_cv_env_CPP_set=${CPP+set} | |
791 | ac_cv_env_CPP_value=$CPP | |
792 | ac_env_CXXCPP_set=${CXXCPP+set} | |
793 | ac_env_CXXCPP_value=$CXXCPP | |
794 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
795 | ac_cv_env_CXXCPP_value=$CXXCPP | |
796 | ||
797 | # | |
798 | # Report the --help message. | |
799 | # | |
800 | if test "$ac_init_help" = "long"; then | |
801 | # Omit some internal or obsolete options to make the list less imposing. | |
802 | # This message is too long to be a string in the A/UX 3.1 sh. | |
803 | cat <<_ACEOF | |
804 | \`configure' configures Photos C++ Interface 3.3 to adapt to many kinds of systems. | |
805 | ||
806 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
807 | ||
808 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
809 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
810 | ||
811 | Defaults for the options are specified in brackets. | |
812 | ||
813 | Configuration: | |
814 | -h, --help display this help and exit | |
815 | --help=short display options specific to this package | |
816 | --help=recursive display the short help of all the included packages | |
817 | -V, --version display version information and exit | |
818 | -q, --quiet, --silent do not print \`checking...' messages | |
819 | --cache-file=FILE cache test results in FILE [disabled] | |
820 | -C, --config-cache alias for \`--cache-file=config.cache' | |
821 | -n, --no-create do not create output files | |
822 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
823 | ||
824 | _ACEOF | |
825 | ||
826 | cat <<_ACEOF | |
827 | Installation directories: | |
828 | --prefix=PREFIX install architecture-independent files in PREFIX | |
829 | [$ac_default_prefix] | |
830 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
831 | [PREFIX] | |
832 | ||
833 | By default, \`make install' will install all the files in | |
834 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
835 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
836 | for instance \`--prefix=\$HOME'. | |
837 | ||
838 | For better control, use the options below. | |
839 | ||
840 | Fine tuning of the installation directories: | |
841 | --bindir=DIR user executables [EPREFIX/bin] | |
842 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
843 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
844 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
845 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
846 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
847 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
848 | --libdir=DIR object code libraries [EPREFIX/lib] | |
849 | --includedir=DIR C header files [PREFIX/include] | |
850 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
851 | --infodir=DIR info documentation [PREFIX/info] | |
852 | --mandir=DIR man documentation [PREFIX/man] | |
853 | _ACEOF | |
854 | ||
855 | cat <<\_ACEOF | |
856 | _ACEOF | |
857 | fi | |
858 | ||
859 | if 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 | ||
865 | Optional 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 | ||
870 | Optional 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 | ||
881 | Some 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 | ||
895 | Use these variables to override the choices made by `configure' or to help | |
896 | it to find libraries and programs with nonstandard names/locations. | |
897 | ||
898 | Report bugs to <tomasz.przedzinski@uj.edu.pl >. | |
899 | _ACEOF | |
900 | fi | |
901 | ||
902 | if 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 | ||
909 | if 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'` | |
913 | else | |
914 | ac_dir_suffix= ac_top_builddir= | |
915 | fi | |
916 | ||
917 | case $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 ;; | |
931 | esac | |
932 | ||
933 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
934 | # the directories may not exist. | |
935 | case `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;; | |
943 | esac | |
944 | case $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;; | |
952 | esac | |
953 | case $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;; | |
961 | esac | |
962 | case $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;; | |
970 | esac | |
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 | |
989 | fi | |
990 | ||
991 | test -n "$ac_init_help" && exit 0 | |
992 | if $ac_init_version; then | |
993 | cat <<\_ACEOF | |
994 | Photos C++ Interface configure 3.3 | |
995 | generated by GNU Autoconf 2.59 | |
996 | ||
997 | Copyright (C) 2003 Free Software Foundation, Inc. | |
998 | This configure script is free software; the Free Software Foundation | |
999 | gives unlimited permission to copy, distribute and modify it. | |
1000 | _ACEOF | |
1001 | exit 0 | |
1002 | fi | |
1003 | exec 5>config.log | |
1004 | cat >&5 <<_ACEOF | |
1005 | This file contains any messages produced by compilers while | |
1006 | running configure, to aid debugging if configure makes a mistake. | |
1007 | ||
1008 | It was created by Photos C++ Interface $as_me 3.3, which was | |
1009 | generated by GNU Autoconf 2.59. Invocation command line was | |
1010 | ||
1011 | $ $0 $@ | |
1012 | ||
1013 | _ACEOF | |
1014 | { | |
1015 | cat <<_ASUNAME | |
1016 | ## --------- ## | |
1017 | ## Platform. ## | |
1018 | ## --------- ## | |
1019 | ||
1020 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1021 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1022 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1023 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1024 | uname -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` | |
1032 | hostinfo = `(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 | ||
1039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1040 | for as_dir in $PATH | |
1041 | do | |
1042 | IFS=$as_save_IFS | |
1043 | test -z "$as_dir" && as_dir=. | |
1044 | echo "PATH: $as_dir" | |
1045 | done | |
1046 | ||
1047 | } >&5 | |
1048 | ||
1049 | cat >&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. | |
1064 | ac_configure_args= | |
1065 | ac_configure_args0= | |
1066 | ac_configure_args1= | |
1067 | ac_sep= | |
1068 | ac_must_keep_next=false | |
1069 | for ac_pass in 1 2 | |
1070 | do | |
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 | |
1106 | done | |
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. | |
1115 | trap '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 | |
1189 | for ac_signal in 1 2 13 15; do | |
1190 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1191 | done | |
1192 | ac_signal=0 | |
1193 | ||
1194 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1195 | rm -rf conftest* confdefs.h | |
1196 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1197 | echo >confdefs.h | |
1198 | ||
1199 | # Predefined preprocessor variables. | |
1200 | ||
1201 | cat >>confdefs.h <<_ACEOF | |
1202 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1203 | _ACEOF | |
1204 | ||
1205 | ||
1206 | cat >>confdefs.h <<_ACEOF | |
1207 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1208 | _ACEOF | |
1209 | ||
1210 | ||
1211 | cat >>confdefs.h <<_ACEOF | |
1212 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1213 | _ACEOF | |
1214 | ||
1215 | ||
1216 | cat >>confdefs.h <<_ACEOF | |
1217 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1218 | _ACEOF | |
1219 | ||
1220 | ||
1221 | cat >>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. | |
1228 | if 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 | |
1234 | fi | |
1235 | for 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 | |
1238 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1239 | sed 's/^/| /' "$ac_site_file" >&5 | |
1240 | . "$ac_site_file" | |
1241 | fi | |
1242 | done | |
1243 | ||
1244 | if 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 | |
1249 | echo "$as_me: loading cache $cache_file" >&6;} | |
1250 | case $cache_file in | |
1251 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1252 | *) . ./$cache_file;; | |
1253 | esac | |
1254 | fi | |
1255 | else | |
1256 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1257 | echo "$as_me: creating cache $cache_file" >&6;} | |
1258 | >$cache_file | |
1259 | fi | |
1260 | ||
1261 | # Check that the precious variables saved in the cache have kept the same | |
1262 | # value. | |
1263 | ac_cache_corrupted=false | |
1264 | for 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 | |
1273 | echo "$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 | |
1277 | echo "$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 | |
1283 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1284 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1285 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1286 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1287 | echo "$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 | |
1303 | done | |
1304 | if $ac_cache_corrupted; then | |
1305 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1306 | echo "$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 | |
1308 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1309 | { (exit 1); exit 1; }; } | |
1310 | fi | |
1311 | ||
1312 | ac_ext=c | |
1313 | ac_cpp='$CPP $CPPFLAGS' | |
1314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1316 | ac_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 | ||
1344 | ac_ext=cc | |
1345 | ac_cpp='$CXXCPP $CPPFLAGS' | |
1346 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1347 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1348 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1349 | ||
1350 | ||
1351 | ||
1352 | ||
1353 | ||
1354 | ############################################################################## | |
1355 | # Process command line options | |
1356 | ||
1357 | if 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 | |
1363 | fi | |
1364 | ||
1365 | echo "" | |
1366 | ||
1367 | echo "$as_me:$LINENO: checking if HepMC location defined" >&5 | |
1368 | echo $ECHO_N "checking if HepMC location defined... $ECHO_C" >&6 | |
1369 | ||
1370 | # Check whether --with-hepmc or --without-hepmc was given. | |
1371 | if test "${with_hepmc+set}" = set; then | |
1372 | withval="$with_hepmc" | |
1373 | echo "$as_me:$LINENO: result: $with_hepmc" >&5 | |
1374 | echo "${ECHO_T}$with_hepmc" >&6 | |
1375 | else | |
1376 | echo "$as_me:$LINENO: result: no" >&5 | |
1377 | echo "${ECHO_T}no" >&6 | |
1378 | ||
1379 | fi; | |
1380 | ||
1381 | echo "$as_me:$LINENO: checking if MC-TESTER location defined" >&5 | |
1382 | echo $ECHO_N "checking if MC-TESTER location defined... $ECHO_C" >&6 | |
1383 | ||
1384 | # Check whether --with-mc-tester or --without-mc-tester was given. | |
1385 | if test "${with_mc_tester+set}" = set; then | |
1386 | withval="$with_mc_tester" | |
1387 | echo "$as_me:$LINENO: result: $with_mc_tester" >&5 | |
1388 | echo "${ECHO_T}$with_mc_tester" >&6 | |
1389 | else | |
1390 | echo "$as_me:$LINENO: result: no" >&5 | |
1391 | echo "${ECHO_T}no" >&6 | |
1392 | ||
1393 | fi; | |
1394 | ||
1395 | echo "$as_me:$LINENO: checking if Pythia 8 location defined" >&5 | |
1396 | echo $ECHO_N "checking if Pythia 8 location defined... $ECHO_C" >&6 | |
1397 | ||
1398 | # Check whether --with-pythia8 or --without-pythia8 was given. | |
1399 | if test "${with_pythia8+set}" = set; then | |
1400 | withval="$with_pythia8" | |
1401 | echo "$as_me:$LINENO: result: $with_pythia8" >&5 | |
1402 | echo "${ECHO_T}$with_pythia8" >&6 | |
1403 | else | |
1404 | echo "$as_me:$LINENO: result: no" >&5 | |
1405 | echo "${ECHO_T}no" >&6 | |
1406 | ||
1407 | fi; | |
1408 | ||
1409 | echo "$as_me:$LINENO: checking if Tauola location defined" >&5 | |
1410 | echo $ECHO_N "checking if Tauola location defined... $ECHO_C" >&6 | |
1411 | ||
1412 | # Check whether --with-tauola or --without-tauola was given. | |
1413 | if test "${with_tauola+set}" = set; then | |
1414 | withval="$with_tauola" | |
1415 | echo "$as_me:$LINENO: result: $with_tauola" >&5 | |
1416 | echo "${ECHO_T}$with_tauola" >&6 | |
1417 | else | |
1418 | echo "$as_me:$LINENO: result: no" >&5 | |
1419 | echo "${ECHO_T}no" >&6 | |
1420 | ||
1421 | fi; | |
1422 | ||
1423 | # Check for debug flags | |
1424 | echo "$as_me:$LINENO: checking if debug flags are enabled" >&5 | |
1425 | echo $ECHO_N "checking if debug flags are enabled... $ECHO_C" >&6 | |
1426 | # Check whether --enable-debug or --disable-debug was given. | |
1427 | if test "${enable_debug+set}" = set; then | |
1428 | enableval="$enable_debug" | |
1429 | ||
1430 | echo "$as_me:$LINENO: result: $enable_debug" >&5 | |
1431 | echo "${ECHO_T}$enable_debug" >&6 ; | |
1432 | FFLAGS="-g3 -O0" ; | |
1433 | CXXFLAGS="-g3 -O0" | |
1434 | ||
1435 | else | |
1436 | ||
1437 | echo "$as_me:$LINENO: result: no" >&5 | |
1438 | echo "${ECHO_T}no" >&6 ; | |
1439 | FFLAGS="-O2" ; | |
1440 | CXXFLAGS="-O2" | |
1441 | ||
1442 | ||
1443 | fi; | |
1444 | ||
1445 | echo "" | |
1446 | ||
1447 | ############################################################################## | |
1448 | # Check for programs | |
1449 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
1450 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1451 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1452 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1454 | else | |
1455 | cat >conftest.make <<\_ACEOF | |
1456 | all: | |
1457 | @echo 'ac_maketemp="$(MAKE)"' | |
1458 | _ACEOF | |
1459 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1460 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1461 | if test -n "$ac_maketemp"; then | |
1462 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1463 | else | |
1464 | eval ac_cv_prog_make_${ac_make}_set=no | |
1465 | fi | |
1466 | rm -f conftest.make | |
1467 | fi | |
1468 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1469 | echo "$as_me:$LINENO: result: yes" >&5 | |
1470 | echo "${ECHO_T}yes" >&6 | |
1471 | SET_MAKE= | |
1472 | else | |
1473 | echo "$as_me:$LINENO: result: no" >&5 | |
1474 | echo "${ECHO_T}no" >&6 | |
1475 | SET_MAKE="MAKE=${MAKE-make}" | |
1476 | fi | |
1477 | ||
1478 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
1479 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
1480 | LN_S=$as_ln_s | |
1481 | if test "$LN_S" = "ln -s"; then | |
1482 | echo "$as_me:$LINENO: result: yes" >&5 | |
1483 | echo "${ECHO_T}yes" >&6 | |
1484 | else | |
1485 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
1486 | echo "${ECHO_T}no, using $LN_S" >&6 | |
1487 | fi | |
1488 | ||
1489 | ac_ext=c | |
1490 | ac_cpp='$CPP $CPPFLAGS' | |
1491 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1492 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1493 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1494 | if 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. | |
1496 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1497 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1498 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1499 | if test "${ac_cv_prog_CC+set}" = set; then | |
1500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1501 | else | |
1502 | if test -n "$CC"; then | |
1503 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1504 | else | |
1505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1506 | for as_dir in $PATH | |
1507 | do | |
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 | |
1516 | done | |
1517 | done | |
1518 | ||
1519 | fi | |
1520 | fi | |
1521 | CC=$ac_cv_prog_CC | |
1522 | if test -n "$CC"; then | |
1523 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1524 | echo "${ECHO_T}$CC" >&6 | |
1525 | else | |
1526 | echo "$as_me:$LINENO: result: no" >&5 | |
1527 | echo "${ECHO_T}no" >&6 | |
1528 | fi | |
1529 | ||
1530 | fi | |
1531 | if 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. | |
1534 | set dummy gcc; ac_word=$2 | |
1535 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1536 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1537 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1539 | else | |
1540 | if test -n "$ac_ct_CC"; then | |
1541 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1542 | else | |
1543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1544 | for as_dir in $PATH | |
1545 | do | |
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 | |
1554 | done | |
1555 | done | |
1556 | ||
1557 | fi | |
1558 | fi | |
1559 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1560 | if test -n "$ac_ct_CC"; then | |
1561 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1562 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1563 | else | |
1564 | echo "$as_me:$LINENO: result: no" >&5 | |
1565 | echo "${ECHO_T}no" >&6 | |
1566 | fi | |
1567 | ||
1568 | CC=$ac_ct_CC | |
1569 | else | |
1570 | CC="$ac_cv_prog_CC" | |
1571 | fi | |
1572 | ||
1573 | if 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. | |
1576 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1577 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1578 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1579 | if test "${ac_cv_prog_CC+set}" = set; then | |
1580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1581 | else | |
1582 | if test -n "$CC"; then | |
1583 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1584 | else | |
1585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1586 | for as_dir in $PATH | |
1587 | do | |
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 | |
1596 | done | |
1597 | done | |
1598 | ||
1599 | fi | |
1600 | fi | |
1601 | CC=$ac_cv_prog_CC | |
1602 | if test -n "$CC"; then | |
1603 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1604 | echo "${ECHO_T}$CC" >&6 | |
1605 | else | |
1606 | echo "$as_me:$LINENO: result: no" >&5 | |
1607 | echo "${ECHO_T}no" >&6 | |
1608 | fi | |
1609 | ||
1610 | fi | |
1611 | if 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. | |
1614 | set dummy cc; ac_word=$2 | |
1615 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1616 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1617 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1619 | else | |
1620 | if test -n "$ac_ct_CC"; then | |
1621 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1622 | else | |
1623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1624 | for as_dir in $PATH | |
1625 | do | |
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 | |
1634 | done | |
1635 | done | |
1636 | ||
1637 | fi | |
1638 | fi | |
1639 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1640 | if test -n "$ac_ct_CC"; then | |
1641 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1642 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1643 | else | |
1644 | echo "$as_me:$LINENO: result: no" >&5 | |
1645 | echo "${ECHO_T}no" >&6 | |
1646 | fi | |
1647 | ||
1648 | CC=$ac_ct_CC | |
1649 | else | |
1650 | CC="$ac_cv_prog_CC" | |
1651 | fi | |
1652 | ||
1653 | fi | |
1654 | if test -z "$CC"; then | |
1655 | # Extract the first word of "cc", so it can be a program name with args. | |
1656 | set dummy cc; ac_word=$2 | |
1657 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1658 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1659 | if test "${ac_cv_prog_CC+set}" = set; then | |
1660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1661 | else | |
1662 | if test -n "$CC"; then | |
1663 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1664 | else | |
1665 | ac_prog_rejected=no | |
1666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1667 | for as_dir in $PATH | |
1668 | do | |
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 | |
1681 | done | |
1682 | done | |
1683 | ||
1684 | if 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 | |
1695 | fi | |
1696 | fi | |
1697 | fi | |
1698 | CC=$ac_cv_prog_CC | |
1699 | if test -n "$CC"; then | |
1700 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1701 | echo "${ECHO_T}$CC" >&6 | |
1702 | else | |
1703 | echo "$as_me:$LINENO: result: no" >&5 | |
1704 | echo "${ECHO_T}no" >&6 | |
1705 | fi | |
1706 | ||
1707 | fi | |
1708 | if 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. | |
1713 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1714 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1715 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1716 | if test "${ac_cv_prog_CC+set}" = set; then | |
1717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1718 | else | |
1719 | if test -n "$CC"; then | |
1720 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1721 | else | |
1722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1723 | for as_dir in $PATH | |
1724 | do | |
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 | |
1733 | done | |
1734 | done | |
1735 | ||
1736 | fi | |
1737 | fi | |
1738 | CC=$ac_cv_prog_CC | |
1739 | if test -n "$CC"; then | |
1740 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1741 | echo "${ECHO_T}$CC" >&6 | |
1742 | else | |
1743 | echo "$as_me:$LINENO: result: no" >&5 | |
1744 | echo "${ECHO_T}no" >&6 | |
1745 | fi | |
1746 | ||
1747 | test -n "$CC" && break | |
1748 | done | |
1749 | fi | |
1750 | if test -z "$CC"; then | |
1751 | ac_ct_CC=$CC | |
1752 | for ac_prog in cl | |
1753 | do | |
1754 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1755 | set dummy $ac_prog; ac_word=$2 | |
1756 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1758 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1760 | else | |
1761 | if test -n "$ac_ct_CC"; then | |
1762 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1763 | else | |
1764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1765 | for as_dir in $PATH | |
1766 | do | |
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 | |
1775 | done | |
1776 | done | |
1777 | ||
1778 | fi | |
1779 | fi | |
1780 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1781 | if test -n "$ac_ct_CC"; then | |
1782 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1783 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1784 | else | |
1785 | echo "$as_me:$LINENO: result: no" >&5 | |
1786 | echo "${ECHO_T}no" >&6 | |
1787 | fi | |
1788 | ||
1789 | test -n "$ac_ct_CC" && break | |
1790 | done | |
1791 | ||
1792 | CC=$ac_ct_CC | |
1793 | fi | |
1794 | ||
1795 | fi | |
1796 | ||
1797 | ||
1798 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1799 | See \`config.log' for more details." >&5 | |
1800 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1801 | See \`config.log' for more details." >&2;} | |
1802 | { (exit 1); exit 1; }; } | |
1803 | ||
1804 | # Provide some information about the compiler. | |
1805 | echo "$as_me:$LINENO:" \ | |
1806 | "checking for C compiler version" >&5 | |
1807 | ac_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 | ||
1824 | cat >conftest.$ac_ext <<_ACEOF | |
1825 | /* confdefs.h. */ | |
1826 | _ACEOF | |
1827 | cat confdefs.h >>conftest.$ac_ext | |
1828 | cat >>conftest.$ac_ext <<_ACEOF | |
1829 | /* end confdefs.h. */ | |
1830 | ||
1831 | int | |
1832 | main () | |
1833 | { | |
1834 | ||
1835 | ; | |
1836 | return 0; | |
1837 | } | |
1838 | _ACEOF | |
1839 | ac_clean_files_save=$ac_clean_files | |
1840 | ac_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. | |
1844 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1845 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1846 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1847 | if { (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. | |
1858 | ac_cv_exeext= | |
1859 | # b.out is created by i960 compilers. | |
1860 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1861 | do | |
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 | |
1883 | done | |
1884 | else | |
1885 | echo "$as_me: failed program was:" >&5 | |
1886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1887 | ||
1888 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1889 | See \`config.log' for more details." >&5 | |
1890 | echo "$as_me: error: C compiler cannot create executables | |
1891 | See \`config.log' for more details." >&2;} | |
1892 | { (exit 77); exit 77; }; } | |
1893 | fi | |
1894 | ||
1895 | ac_exeext=$ac_cv_exeext | |
1896 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1897 | echo "${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. | |
1901 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1902 | echo $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. | |
1905 | if 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. | |
1918 | If you meant to cross compile, use \`--host'. | |
1919 | See \`config.log' for more details." >&5 | |
1920 | echo "$as_me: error: cannot run C compiled programs. | |
1921 | If you meant to cross compile, use \`--host'. | |
1922 | See \`config.log' for more details." >&2;} | |
1923 | { (exit 1); exit 1; }; } | |
1924 | fi | |
1925 | fi | |
1926 | fi | |
1927 | echo "$as_me:$LINENO: result: yes" >&5 | |
1928 | echo "${ECHO_T}yes" >&6 | |
1929 | ||
1930 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1931 | ac_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. | |
1934 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1935 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1936 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1937 | echo "${ECHO_T}$cross_compiling" >&6 | |
1938 | ||
1939 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1940 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1941 | if { (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'. | |
1950 | for 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 | |
1959 | done | |
1960 | else | |
1961 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
1962 | See \`config.log' for more details." >&5 | |
1963 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1964 | See \`config.log' for more details." >&2;} | |
1965 | { (exit 1); exit 1; }; } | |
1966 | fi | |
1967 | ||
1968 | rm -f conftest$ac_cv_exeext | |
1969 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1970 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1971 | ||
1972 | rm -f conftest.$ac_ext | |
1973 | EXEEXT=$ac_cv_exeext | |
1974 | ac_exeext=$EXEEXT | |
1975 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1976 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1977 | if test "${ac_cv_objext+set}" = set; then | |
1978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1979 | else | |
1980 | cat >conftest.$ac_ext <<_ACEOF | |
1981 | /* confdefs.h. */ | |
1982 | _ACEOF | |
1983 | cat confdefs.h >>conftest.$ac_ext | |
1984 | cat >>conftest.$ac_ext <<_ACEOF | |
1985 | /* end confdefs.h. */ | |
1986 | ||
1987 | int | |
1988 | main () | |
1989 | { | |
1990 | ||
1991 | ; | |
1992 | return 0; | |
1993 | } | |
1994 | _ACEOF | |
1995 | rm -f conftest.o conftest.obj | |
1996 | if { (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 | |
2007 | done | |
2008 | else | |
2009 | echo "$as_me: failed program was:" >&5 | |
2010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2011 | ||
2012 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2013 | See \`config.log' for more details." >&5 | |
2014 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2015 | See \`config.log' for more details." >&2;} | |
2016 | { (exit 1); exit 1; }; } | |
2017 | fi | |
2018 | ||
2019 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2020 | fi | |
2021 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2022 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2023 | OBJEXT=$ac_cv_objext | |
2024 | ac_objext=$OBJEXT | |
2025 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2026 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2027 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2029 | else | |
2030 | cat >conftest.$ac_ext <<_ACEOF | |
2031 | /* confdefs.h. */ | |
2032 | _ACEOF | |
2033 | cat confdefs.h >>conftest.$ac_ext | |
2034 | cat >>conftest.$ac_ext <<_ACEOF | |
2035 | /* end confdefs.h. */ | |
2036 | ||
2037 | int | |
2038 | main () | |
2039 | { | |
2040 | #ifndef __GNUC__ | |
2041 | choke me | |
2042 | #endif | |
2043 | ||
2044 | ; | |
2045 | return 0; | |
2046 | } | |
2047 | _ACEOF | |
2048 | rm -f conftest.$ac_objext | |
2049 | if { (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 | |
2071 | else | |
2072 | echo "$as_me: failed program was:" >&5 | |
2073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2074 | ||
2075 | ac_compiler_gnu=no | |
2076 | fi | |
2077 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2078 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2079 | ||
2080 | fi | |
2081 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2082 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2083 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2084 | ac_test_CFLAGS=${CFLAGS+set} | |
2085 | ac_save_CFLAGS=$CFLAGS | |
2086 | CFLAGS="-g" | |
2087 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2088 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2089 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2091 | else | |
2092 | cat >conftest.$ac_ext <<_ACEOF | |
2093 | /* confdefs.h. */ | |
2094 | _ACEOF | |
2095 | cat confdefs.h >>conftest.$ac_ext | |
2096 | cat >>conftest.$ac_ext <<_ACEOF | |
2097 | /* end confdefs.h. */ | |
2098 | ||
2099 | int | |
2100 | main () | |
2101 | { | |
2102 | ||
2103 | ; | |
2104 | return 0; | |
2105 | } | |
2106 | _ACEOF | |
2107 | rm -f conftest.$ac_objext | |
2108 | if { (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 | |
2130 | else | |
2131 | echo "$as_me: failed program was:" >&5 | |
2132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2133 | ||
2134 | ac_cv_prog_cc_g=no | |
2135 | fi | |
2136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2137 | fi | |
2138 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2139 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2140 | if test "$ac_test_CFLAGS" = set; then | |
2141 | CFLAGS=$ac_save_CFLAGS | |
2142 | elif 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 | |
2148 | else | |
2149 | if test "$GCC" = yes; then | |
2150 | CFLAGS="-O2" | |
2151 | else | |
2152 | CFLAGS= | |
2153 | fi | |
2154 | fi | |
2155 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2156 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2157 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2159 | else | |
2160 | ac_cv_prog_cc_stdc=no | |
2161 | ac_save_CC=$CC | |
2162 | cat >conftest.$ac_ext <<_ACEOF | |
2163 | /* confdefs.h. */ | |
2164 | _ACEOF | |
2165 | cat confdefs.h >>conftest.$ac_ext | |
2166 | cat >>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. */ | |
2173 | struct buf { int x; }; | |
2174 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2175 | static char *e (p, i) | |
2176 | char **p; | |
2177 | int i; | |
2178 | { | |
2179 | return p[i]; | |
2180 | } | |
2181 | static 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. */ | |
2198 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2199 | ||
2200 | int test (int i, double x); | |
2201 | struct s1 {int (*f) (int a);}; | |
2202 | struct s2 {int (*f) (double a);}; | |
2203 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2204 | int argc; | |
2205 | char **argv; | |
2206 | int | |
2207 | main () | |
2208 | { | |
2209 | return 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__ | |
2221 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2222 | do | |
2223 | CC="$ac_save_CC $ac_arg" | |
2224 | rm -f conftest.$ac_objext | |
2225 | if { (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 | |
2247 | break | |
2248 | else | |
2249 | echo "$as_me: failed program was:" >&5 | |
2250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2251 | ||
2252 | fi | |
2253 | rm -f conftest.err conftest.$ac_objext | |
2254 | done | |
2255 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2256 | CC=$ac_save_CC | |
2257 | ||
2258 | fi | |
2259 | ||
2260 | case "x$ac_cv_prog_cc_stdc" in | |
2261 | x|xno) | |
2262 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2263 | echo "${ECHO_T}none needed" >&6 ;; | |
2264 | *) | |
2265 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2266 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2267 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2268 | esac | |
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. | |
2274 | cat >conftest.$ac_ext <<_ACEOF | |
2275 | #ifndef __cplusplus | |
2276 | choke me | |
2277 | #endif | |
2278 | _ACEOF | |
2279 | rm -f conftest.$ac_objext | |
2280 | if { (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);' | |
2308 | do | |
2309 | cat >conftest.$ac_ext <<_ACEOF | |
2310 | /* confdefs.h. */ | |
2311 | _ACEOF | |
2312 | cat confdefs.h >>conftest.$ac_ext | |
2313 | cat >>conftest.$ac_ext <<_ACEOF | |
2314 | /* end confdefs.h. */ | |
2315 | $ac_declaration | |
2316 | #include <stdlib.h> | |
2317 | int | |
2318 | main () | |
2319 | { | |
2320 | exit (42); | |
2321 | ; | |
2322 | return 0; | |
2323 | } | |
2324 | _ACEOF | |
2325 | rm -f conftest.$ac_objext | |
2326 | if { (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 | : | |
2348 | else | |
2349 | echo "$as_me: failed program was:" >&5 | |
2350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2351 | ||
2352 | continue | |
2353 | fi | |
2354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2355 | cat >conftest.$ac_ext <<_ACEOF | |
2356 | /* confdefs.h. */ | |
2357 | _ACEOF | |
2358 | cat confdefs.h >>conftest.$ac_ext | |
2359 | cat >>conftest.$ac_ext <<_ACEOF | |
2360 | /* end confdefs.h. */ | |
2361 | $ac_declaration | |
2362 | int | |
2363 | main () | |
2364 | { | |
2365 | exit (42); | |
2366 | ; | |
2367 | return 0; | |
2368 | } | |
2369 | _ACEOF | |
2370 | rm -f conftest.$ac_objext | |
2371 | if { (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 | |
2393 | else | |
2394 | echo "$as_me: failed program was:" >&5 | |
2395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2396 | ||
2397 | fi | |
2398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2399 | done | |
2400 | rm -f conftest* | |
2401 | if test -n "$ac_declaration"; then | |
2402 | echo '#ifdef __cplusplus' >>confdefs.h | |
2403 | echo $ac_declaration >>confdefs.h | |
2404 | echo '#endif' >>confdefs.h | |
2405 | fi | |
2406 | ||
2407 | else | |
2408 | echo "$as_me: failed program was:" >&5 | |
2409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2410 | ||
2411 | fi | |
2412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2413 | ac_ext=cc | |
2414 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2415 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2416 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2417 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
2418 | ||
2419 | ac_ext=cc | |
2420 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2421 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2422 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2423 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
2424 | if 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. | |
2428 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2429 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2430 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2431 | if test "${ac_cv_prog_CXX+set}" = set; then | |
2432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2433 | else | |
2434 | if test -n "$CXX"; then | |
2435 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
2436 | else | |
2437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2438 | for as_dir in $PATH | |
2439 | do | |
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 | |
2448 | done | |
2449 | done | |
2450 | ||
2451 | fi | |
2452 | fi | |
2453 | CXX=$ac_cv_prog_CXX | |
2454 | if test -n "$CXX"; then | |
2455 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
2456 | echo "${ECHO_T}$CXX" >&6 | |
2457 | else | |
2458 | echo "$as_me:$LINENO: result: no" >&5 | |
2459 | echo "${ECHO_T}no" >&6 | |
2460 | fi | |
2461 | ||
2462 | test -n "$CXX" && break | |
2463 | done | |
2464 | fi | |
2465 | if 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 | |
2468 | do | |
2469 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2470 | set dummy $ac_prog; ac_word=$2 | |
2471 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2472 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2473 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
2474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2475 | else | |
2476 | if test -n "$ac_ct_CXX"; then | |
2477 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
2478 | else | |
2479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2480 | for as_dir in $PATH | |
2481 | do | |
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 | |
2490 | done | |
2491 | done | |
2492 | ||
2493 | fi | |
2494 | fi | |
2495 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
2496 | if test -n "$ac_ct_CXX"; then | |
2497 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
2498 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
2499 | else | |
2500 | echo "$as_me:$LINENO: result: no" >&5 | |
2501 | echo "${ECHO_T}no" >&6 | |
2502 | fi | |
2503 | ||
2504 | test -n "$ac_ct_CXX" && break | |
2505 | done | |
2506 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
2507 | ||
2508 | CXX=$ac_ct_CXX | |
2509 | fi | |
2510 | ||
2511 | ||
2512 | # Provide some information about the compiler. | |
2513 | echo "$as_me:$LINENO:" \ | |
2514 | "checking for C++ compiler version" >&5 | |
2515 | ac_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 | ||
2532 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
2533 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
2534 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
2535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2536 | else | |
2537 | cat >conftest.$ac_ext <<_ACEOF | |
2538 | /* confdefs.h. */ | |
2539 | _ACEOF | |
2540 | cat confdefs.h >>conftest.$ac_ext | |
2541 | cat >>conftest.$ac_ext <<_ACEOF | |
2542 | /* end confdefs.h. */ | |
2543 | ||
2544 | int | |
2545 | main () | |
2546 | { | |
2547 | #ifndef __GNUC__ | |
2548 | choke me | |
2549 | #endif | |
2550 | ||
2551 | ; | |
2552 | return 0; | |
2553 | } | |
2554 | _ACEOF | |
2555 | rm -f conftest.$ac_objext | |
2556 | if { (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 | |
2578 | else | |
2579 | echo "$as_me: failed program was:" >&5 | |
2580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2581 | ||
2582 | ac_compiler_gnu=no | |
2583 | fi | |
2584 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2585 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
2586 | ||
2587 | fi | |
2588 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
2589 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
2590 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
2591 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
2592 | ac_save_CXXFLAGS=$CXXFLAGS | |
2593 | CXXFLAGS="-g" | |
2594 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
2595 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
2596 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
2597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2598 | else | |
2599 | cat >conftest.$ac_ext <<_ACEOF | |
2600 | /* confdefs.h. */ | |
2601 | _ACEOF | |
2602 | cat confdefs.h >>conftest.$ac_ext | |
2603 | cat >>conftest.$ac_ext <<_ACEOF | |
2604 | /* end confdefs.h. */ | |
2605 | ||
2606 | int | |
2607 | main () | |
2608 | { | |
2609 | ||
2610 | ; | |
2611 | return 0; | |
2612 | } | |
2613 | _ACEOF | |
2614 | rm -f conftest.$ac_objext | |
2615 | if { (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 | |
2637 | else | |
2638 | echo "$as_me: failed program was:" >&5 | |
2639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2640 | ||
2641 | ac_cv_prog_cxx_g=no | |
2642 | fi | |
2643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2644 | fi | |
2645 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
2646 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
2647 | if test "$ac_test_CXXFLAGS" = set; then | |
2648 | CXXFLAGS=$ac_save_CXXFLAGS | |
2649 | elif 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 | |
2655 | else | |
2656 | if test "$GXX" = yes; then | |
2657 | CXXFLAGS="-O2" | |
2658 | else | |
2659 | CXXFLAGS= | |
2660 | fi | |
2661 | fi | |
2662 | for 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);' | |
2669 | do | |
2670 | cat >conftest.$ac_ext <<_ACEOF | |
2671 | /* confdefs.h. */ | |
2672 | _ACEOF | |
2673 | cat confdefs.h >>conftest.$ac_ext | |
2674 | cat >>conftest.$ac_ext <<_ACEOF | |
2675 | /* end confdefs.h. */ | |
2676 | $ac_declaration | |
2677 | #include <stdlib.h> | |
2678 | int | |
2679 | main () | |
2680 | { | |
2681 | exit (42); | |
2682 | ; | |
2683 | return 0; | |
2684 | } | |
2685 | _ACEOF | |
2686 | rm -f conftest.$ac_objext | |
2687 | if { (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 | : | |
2709 | else | |
2710 | echo "$as_me: failed program was:" >&5 | |
2711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2712 | ||
2713 | continue | |
2714 | fi | |
2715 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2716 | cat >conftest.$ac_ext <<_ACEOF | |
2717 | /* confdefs.h. */ | |
2718 | _ACEOF | |
2719 | cat confdefs.h >>conftest.$ac_ext | |
2720 | cat >>conftest.$ac_ext <<_ACEOF | |
2721 | /* end confdefs.h. */ | |
2722 | $ac_declaration | |
2723 | int | |
2724 | main () | |
2725 | { | |
2726 | exit (42); | |
2727 | ; | |
2728 | return 0; | |
2729 | } | |
2730 | _ACEOF | |
2731 | rm -f conftest.$ac_objext | |
2732 | if { (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 | |
2754 | else | |
2755 | echo "$as_me: failed program was:" >&5 | |
2756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2757 | ||
2758 | fi | |
2759 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2760 | done | |
2761 | rm -f conftest* | |
2762 | if test -n "$ac_declaration"; then | |
2763 | echo '#ifdef __cplusplus' >>confdefs.h | |
2764 | echo $ac_declaration >>confdefs.h | |
2765 | echo '#endif' >>confdefs.h | |
2766 | fi | |
2767 | ||
2768 | ac_ext=cc | |
2769 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2770 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2771 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2772 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
2773 | ||
2774 | if 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. | |
2776 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2777 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2778 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2779 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
2780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2781 | else | |
2782 | if test -n "$RANLIB"; then | |
2783 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2784 | else | |
2785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2786 | for as_dir in $PATH | |
2787 | do | |
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 | |
2796 | done | |
2797 | done | |
2798 | ||
2799 | fi | |
2800 | fi | |
2801 | RANLIB=$ac_cv_prog_RANLIB | |
2802 | if test -n "$RANLIB"; then | |
2803 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
2804 | echo "${ECHO_T}$RANLIB" >&6 | |
2805 | else | |
2806 | echo "$as_me:$LINENO: result: no" >&5 | |
2807 | echo "${ECHO_T}no" >&6 | |
2808 | fi | |
2809 | ||
2810 | fi | |
2811 | if 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. | |
2814 | set dummy ranlib; ac_word=$2 | |
2815 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2816 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2817 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2819 | else | |
2820 | if test -n "$ac_ct_RANLIB"; then | |
2821 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2822 | else | |
2823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2824 | for as_dir in $PATH | |
2825 | do | |
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 | |
2834 | done | |
2835 | done | |
2836 | ||
2837 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
2838 | fi | |
2839 | fi | |
2840 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
2841 | if test -n "$ac_ct_RANLIB"; then | |
2842 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
2843 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
2844 | else | |
2845 | echo "$as_me:$LINENO: result: no" >&5 | |
2846 | echo "${ECHO_T}no" >&6 | |
2847 | fi | |
2848 | ||
2849 | RANLIB=$ac_ct_RANLIB | |
2850 | else | |
2851 | RANLIB="$ac_cv_prog_RANLIB" | |
2852 | fi | |
2853 | ||
2854 | ||
2855 | # here is a trick to preffer | |
2856 | # gfortran for gcc4 and higher | |
2857 | # and g77 for gcc3 and lower | |
2858 | flist="gfortran g77 f77" | |
2859 | if [[ "$(gcc -dumpversion | cut -d . -f 1)" < "4" ]] ; then | |
2860 | flist="g77 f77 gfortran" | |
2861 | fi | |
2862 | ||
2863 | ac_ext=f | |
2864 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
2865 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2866 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
2867 | if 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. | |
2871 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2872 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2873 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2874 | if test "${ac_cv_prog_F77+set}" = set; then | |
2875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2876 | else | |
2877 | if test -n "$F77"; then | |
2878 | ac_cv_prog_F77="$F77" # Let the user override the test. | |
2879 | else | |
2880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2881 | for as_dir in $PATH | |
2882 | do | |
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 | |
2891 | done | |
2892 | done | |
2893 | ||
2894 | fi | |
2895 | fi | |
2896 | F77=$ac_cv_prog_F77 | |
2897 | if test -n "$F77"; then | |
2898 | echo "$as_me:$LINENO: result: $F77" >&5 | |
2899 | echo "${ECHO_T}$F77" >&6 | |
2900 | else | |
2901 | echo "$as_me:$LINENO: result: no" >&5 | |
2902 | echo "${ECHO_T}no" >&6 | |
2903 | fi | |
2904 | ||
2905 | test -n "$F77" && break | |
2906 | done | |
2907 | fi | |
2908 | if test -z "$F77"; then | |
2909 | ac_ct_F77=$F77 | |
2910 | for ac_prog in $flist | |
2911 | do | |
2912 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2913 | set dummy $ac_prog; ac_word=$2 | |
2914 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2915 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2916 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | |
2917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2918 | else | |
2919 | if test -n "$ac_ct_F77"; then | |
2920 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | |
2921 | else | |
2922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2923 | for as_dir in $PATH | |
2924 | do | |
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 | |
2933 | done | |
2934 | done | |
2935 | ||
2936 | fi | |
2937 | fi | |
2938 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | |
2939 | if test -n "$ac_ct_F77"; then | |
2940 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | |
2941 | echo "${ECHO_T}$ac_ct_F77" >&6 | |
2942 | else | |
2943 | echo "$as_me:$LINENO: result: no" >&5 | |
2944 | echo "${ECHO_T}no" >&6 | |
2945 | fi | |
2946 | ||
2947 | test -n "$ac_ct_F77" && break | |
2948 | done | |
2949 | ||
2950 | F77=$ac_ct_F77 | |
2951 | fi | |
2952 | ||
2953 | ||
2954 | # Provide some information about the compiler. | |
2955 | echo "$as_me:2955:" \ | |
2956 | "checking for Fortran 77 compiler version" >&5 | |
2957 | ac_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); } | |
2973 | rm -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.) | |
2977 | ac_save_ext=$ac_ext | |
2978 | ac_ext=F | |
2979 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | |
2980 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 | |
2981 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then | |
2982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2983 | else | |
2984 | cat >conftest.$ac_ext <<_ACEOF | |
2985 | program main | |
2986 | #ifndef __GNUC__ | |
2987 | choke me | |
2988 | #endif | |
2989 | ||
2990 | end | |
2991 | _ACEOF | |
2992 | rm -f conftest.$ac_objext | |
2993 | if { (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 | |
3015 | else | |
3016 | echo "$as_me: failed program was:" >&5 | |
3017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3018 | ||
3019 | ac_compiler_gnu=no | |
3020 | fi | |
3021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3022 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu | |
3023 | ||
3024 | fi | |
3025 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | |
3026 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 | |
3027 | ac_ext=$ac_save_ext | |
3028 | ac_test_FFLAGS=${FFLAGS+set} | |
3029 | ac_save_FFLAGS=$FFLAGS | |
3030 | FFLAGS= | |
3031 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | |
3032 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 | |
3033 | if test "${ac_cv_prog_f77_g+set}" = set; then | |
3034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3035 | else | |
3036 | FFLAGS=-g | |
3037 | cat >conftest.$ac_ext <<_ACEOF | |
3038 | program main | |
3039 | ||
3040 | end | |
3041 | _ACEOF | |
3042 | rm -f conftest.$ac_objext | |
3043 | if { (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 | |
3065 | else | |
3066 | echo "$as_me: failed program was:" >&5 | |
3067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3068 | ||
3069 | ac_cv_prog_f77_g=no | |
3070 | fi | |
3071 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3072 | ||
3073 | fi | |
3074 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | |
3075 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 | |
3076 | if test "$ac_test_FFLAGS" = set; then | |
3077 | FFLAGS=$ac_save_FFLAGS | |
3078 | elif 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 | |
3084 | else | |
3085 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
3086 | FFLAGS="-O2" | |
3087 | else | |
3088 | FFLAGS= | |
3089 | fi | |
3090 | fi | |
3091 | ||
3092 | G77=`test $ac_compiler_gnu = yes && echo yes` | |
3093 | ac_ext=cc | |
3094 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3095 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3096 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3097 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3098 | ||
3099 | ac_ext=c | |
3100 | ac_cpp='$CPP $CPPFLAGS' | |
3101 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3102 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3103 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3104 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3105 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
3106 | # On Suns, sometimes $CPP names a directory. | |
3107 | if test -n "$CPP" && test -d "$CPP"; then | |
3108 | CPP= | |
3109 | fi | |
3110 | if test -z "$CPP"; then | |
3111 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3113 | else | |
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 | |
3118 | for ac_c_preproc_warn_flag in '' yes | |
3119 | do | |
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 | |
3129 | cat confdefs.h >>conftest.$ac_ext | |
3130 | cat >>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 | |
3139 | if { (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 | |
3153 | else | |
3154 | ac_cpp_err=yes | |
3155 | fi | |
3156 | if test -z "$ac_cpp_err"; then | |
3157 | : | |
3158 | else | |
3159 | echo "$as_me: failed program was:" >&5 | |
3160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3161 | ||
3162 | # Broken: fails on valid input. | |
3163 | continue | |
3164 | fi | |
3165 | rm -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 | |
3172 | cat confdefs.h >>conftest.$ac_ext | |
3173 | cat >>conftest.$ac_ext <<_ACEOF | |
3174 | /* end confdefs.h. */ | |
3175 | #include <ac_nonexistent.h> | |
3176 | _ACEOF | |
3177 | if { (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 | |
3191 | else | |
3192 | ac_cpp_err=yes | |
3193 | fi | |
3194 | if test -z "$ac_cpp_err"; then | |
3195 | # Broken: success on invalid input. | |
3196 | continue | |
3197 | else | |
3198 | echo "$as_me: failed program was:" >&5 | |
3199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3200 | ||
3201 | # Passes both tests. | |
3202 | ac_preproc_ok=: | |
3203 | break | |
3204 | fi | |
3205 | rm -f conftest.err conftest.$ac_ext | |
3206 | ||
3207 | done | |
3208 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3209 | rm -f conftest.err conftest.$ac_ext | |
3210 | if $ac_preproc_ok; then | |
3211 | break | |
3212 | fi | |
3213 | ||
3214 | done | |
3215 | ac_cv_prog_CPP=$CPP | |
3216 | ||
3217 | fi | |
3218 | CPP=$ac_cv_prog_CPP | |
3219 | else | |
3220 | ac_cv_prog_CPP=$CPP | |
3221 | fi | |
3222 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
3223 | echo "${ECHO_T}$CPP" >&6 | |
3224 | ac_preproc_ok=false | |
3225 | for ac_c_preproc_warn_flag in '' yes | |
3226 | do | |
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 | |
3236 | cat confdefs.h >>conftest.$ac_ext | |
3237 | cat >>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 | |
3246 | if { (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 | |
3260 | else | |
3261 | ac_cpp_err=yes | |
3262 | fi | |
3263 | if test -z "$ac_cpp_err"; then | |
3264 | : | |
3265 | else | |
3266 | echo "$as_me: failed program was:" >&5 | |
3267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3268 | ||
3269 | # Broken: fails on valid input. | |
3270 | continue | |
3271 | fi | |
3272 | rm -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 | |
3279 | cat confdefs.h >>conftest.$ac_ext | |
3280 | cat >>conftest.$ac_ext <<_ACEOF | |
3281 | /* end confdefs.h. */ | |
3282 | #include <ac_nonexistent.h> | |
3283 | _ACEOF | |
3284 | if { (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 | |
3298 | else | |
3299 | ac_cpp_err=yes | |
3300 | fi | |
3301 | if test -z "$ac_cpp_err"; then | |
3302 | # Broken: success on invalid input. | |
3303 | continue | |
3304 | else | |
3305 | echo "$as_me: failed program was:" >&5 | |
3306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3307 | ||
3308 | # Passes both tests. | |
3309 | ac_preproc_ok=: | |
3310 | break | |
3311 | fi | |
3312 | rm -f conftest.err conftest.$ac_ext | |
3313 | ||
3314 | done | |
3315 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3316 | rm -f conftest.err conftest.$ac_ext | |
3317 | if $ac_preproc_ok; then | |
3318 | : | |
3319 | else | |
3320 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3321 | See \`config.log' for more details." >&5 | |
3322 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3323 | See \`config.log' for more details." >&2;} | |
3324 | { (exit 1); exit 1; }; } | |
3325 | fi | |
3326 | ||
3327 | ac_ext=cc | |
3328 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3329 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3330 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3331 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3332 | ||
3333 | # Extract the first word of "cpp", so it can be a program name with args. | |
3334 | set dummy cpp; ac_word=$2 | |
3335 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3336 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3337 | if test "${ac_cv_prog_DIRECT_CPP+set}" = set; then | |
3338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3339 | else | |
3340 | if test -n "$DIRECT_CPP"; then | |
3341 | ac_cv_prog_DIRECT_CPP="$DIRECT_CPP" # Let the user override the test. | |
3342 | else | |
3343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3344 | for as_dir in $PATH | |
3345 | do | |
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 | |
3354 | done | |
3355 | done | |
3356 | ||
3357 | test -z "$ac_cv_prog_DIRECT_CPP" && ac_cv_prog_DIRECT_CPP="$CPP" | |
3358 | fi | |
3359 | fi | |
3360 | DIRECT_CPP=$ac_cv_prog_DIRECT_CPP | |
3361 | if test -n "$DIRECT_CPP"; then | |
3362 | echo "$as_me:$LINENO: result: $DIRECT_CPP" >&5 | |
3363 | echo "${ECHO_T}$DIRECT_CPP" >&6 | |
3364 | else | |
3365 | echo "$as_me:$LINENO: result: no" >&5 | |
3366 | echo "${ECHO_T}no" >&6 | |
3367 | fi | |
3368 | ||
3369 | ||
3370 | # Checks for typedefs, structures, and compiler characteristics. | |
3371 | ||
3372 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
3373 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
3374 | if test "${ac_cv_c_const+set}" = set; then | |
3375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3376 | else | |
3377 | cat >conftest.$ac_ext <<_ACEOF | |
3378 | /* confdefs.h. */ | |
3379 | _ACEOF | |
3380 | cat confdefs.h >>conftest.$ac_ext | |
3381 | cat >>conftest.$ac_ext <<_ACEOF | |
3382 | /* end confdefs.h. */ | |
3383 | ||
3384 | int | |
3385 | main () | |
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 | |
3438 | rm -f conftest.$ac_objext | |
3439 | if { (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 | |
3461 | else | |
3462 | echo "$as_me: failed program was:" >&5 | |
3463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3464 | ||
3465 | ac_cv_c_const=no | |
3466 | fi | |
3467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3468 | fi | |
3469 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
3470 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
3471 | if test $ac_cv_c_const = no; then | |
3472 | ||
3473 | cat >>confdefs.h <<\_ACEOF | |
3474 | #define const | |
3475 | _ACEOF | |
3476 | ||
3477 | fi | |
3478 | ||
3479 | echo "$as_me:$LINENO: checking for inline" >&5 | |
3480 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
3481 | if test "${ac_cv_c_inline+set}" = set; then | |
3482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3483 | else | |
3484 | ac_cv_c_inline=no | |
3485 | for ac_kw in inline __inline__ __inline; do | |
3486 | cat >conftest.$ac_ext <<_ACEOF | |
3487 | /* confdefs.h. */ | |
3488 | _ACEOF | |
3489 | cat confdefs.h >>conftest.$ac_ext | |
3490 | cat >>conftest.$ac_ext <<_ACEOF | |
3491 | /* end confdefs.h. */ | |
3492 | #ifndef __cplusplus | |
3493 | typedef int foo_t; | |
3494 | static $ac_kw foo_t static_foo () {return 0; } | |
3495 | $ac_kw foo_t foo () {return 0; } | |
3496 | #endif | |
3497 | ||
3498 | _ACEOF | |
3499 | rm -f conftest.$ac_objext | |
3500 | if { (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 | |
3522 | else | |
3523 | echo "$as_me: failed program was:" >&5 | |
3524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3525 | ||
3526 | fi | |
3527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3528 | done | |
3529 | ||
3530 | fi | |
3531 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
3532 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
3533 | ||
3534 | ||
3535 | case $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 | ;; | |
3548 | esac | |
3549 | ||
3550 | ac_ext=cc | |
3551 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3552 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3553 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3554 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3555 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
3556 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
3557 | if test -z "$CXXCPP"; then | |
3558 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
3559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3560 | else | |
3561 | # Double quotes because CXXCPP needs to be expanded | |
3562 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
3563 | do | |
3564 | ac_preproc_ok=false | |
3565 | for ac_cxx_preproc_warn_flag in '' yes | |
3566 | do | |
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 | |
3576 | cat confdefs.h >>conftest.$ac_ext | |
3577 | cat >>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 | |
3586 | if { (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 | |
3600 | else | |
3601 | ac_cpp_err=yes | |
3602 | fi | |
3603 | if test -z "$ac_cpp_err"; then | |
3604 | : | |
3605 | else | |
3606 | echo "$as_me: failed program was:" >&5 | |
3607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3608 | ||
3609 | # Broken: fails on valid input. | |
3610 | continue | |
3611 | fi | |
3612 | rm -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 | |
3619 | cat confdefs.h >>conftest.$ac_ext | |
3620 | cat >>conftest.$ac_ext <<_ACEOF | |
3621 | /* end confdefs.h. */ | |
3622 | #include <ac_nonexistent.h> | |
3623 | _ACEOF | |
3624 | if { (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 | |
3638 | else | |
3639 | ac_cpp_err=yes | |
3640 | fi | |
3641 | if test -z "$ac_cpp_err"; then | |
3642 | # Broken: success on invalid input. | |
3643 | continue | |
3644 | else | |
3645 | echo "$as_me: failed program was:" >&5 | |
3646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3647 | ||
3648 | # Passes both tests. | |
3649 | ac_preproc_ok=: | |
3650 | break | |
3651 | fi | |
3652 | rm -f conftest.err conftest.$ac_ext | |
3653 | ||
3654 | done | |
3655 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3656 | rm -f conftest.err conftest.$ac_ext | |
3657 | if $ac_preproc_ok; then | |
3658 | break | |
3659 | fi | |
3660 | ||
3661 | done | |
3662 | ac_cv_prog_CXXCPP=$CXXCPP | |
3663 | ||
3664 | fi | |
3665 | CXXCPP=$ac_cv_prog_CXXCPP | |
3666 | else | |
3667 | ac_cv_prog_CXXCPP=$CXXCPP | |
3668 | fi | |
3669 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
3670 | echo "${ECHO_T}$CXXCPP" >&6 | |
3671 | ac_preproc_ok=false | |
3672 | for ac_cxx_preproc_warn_flag in '' yes | |
3673 | do | |
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 | |
3683 | cat confdefs.h >>conftest.$ac_ext | |
3684 | cat >>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 | |
3693 | if { (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 | |
3707 | else | |
3708 | ac_cpp_err=yes | |
3709 | fi | |
3710 | if test -z "$ac_cpp_err"; then | |
3711 | : | |
3712 | else | |
3713 | echo "$as_me: failed program was:" >&5 | |
3714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3715 | ||
3716 | # Broken: fails on valid input. | |
3717 | continue | |
3718 | fi | |
3719 | rm -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 | |
3726 | cat confdefs.h >>conftest.$ac_ext | |
3727 | cat >>conftest.$ac_ext <<_ACEOF | |
3728 | /* end confdefs.h. */ | |
3729 | #include <ac_nonexistent.h> | |
3730 | _ACEOF | |
3731 | if { (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 | |
3745 | else | |
3746 | ac_cpp_err=yes | |
3747 | fi | |
3748 | if test -z "$ac_cpp_err"; then | |
3749 | # Broken: success on invalid input. | |
3750 | continue | |
3751 | else | |
3752 | echo "$as_me: failed program was:" >&5 | |
3753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3754 | ||
3755 | # Passes both tests. | |
3756 | ac_preproc_ok=: | |
3757 | break | |
3758 | fi | |
3759 | rm -f conftest.err conftest.$ac_ext | |
3760 | ||
3761 | done | |
3762 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3763 | rm -f conftest.err conftest.$ac_ext | |
3764 | if $ac_preproc_ok; then | |
3765 | : | |
3766 | else | |
3767 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
3768 | See \`config.log' for more details." >&5 | |
3769 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
3770 | See \`config.log' for more details." >&2;} | |
3771 | { (exit 1); exit 1; }; } | |
3772 | fi | |
3773 | ||
3774 | ac_ext=cc | |
3775 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3776 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3777 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3778 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3779 | ||
3780 | ||
3781 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
3782 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3783 | if test "${ac_cv_prog_egrep+set}" = set; then | |
3784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3785 | else | |
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 | |
3790 | fi | |
3791 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
3792 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3793 | EGREP=$ac_cv_prog_egrep | |
3794 | ||
3795 | ||
3796 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
3797 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3798 | if test "${ac_cv_header_stdc+set}" = set; then | |
3799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3800 | else | |
3801 | cat >conftest.$ac_ext <<_ACEOF | |
3802 | /* confdefs.h. */ | |
3803 | _ACEOF | |
3804 | cat confdefs.h >>conftest.$ac_ext | |
3805 | cat >>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 | ||
3812 | int | |
3813 | main () | |
3814 | { | |
3815 | ||
3816 | ; | |
3817 | return 0; | |
3818 | } | |
3819 | _ACEOF | |
3820 | rm -f conftest.$ac_objext | |
3821 | if { (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 | |
3843 | else | |
3844 | echo "$as_me: failed program was:" >&5 | |
3845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3846 | ||
3847 | ac_cv_header_stdc=no | |
3848 | fi | |
3849 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3850 | ||
3851 | if 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 | |
3856 | cat confdefs.h >>conftest.$ac_ext | |
3857 | cat >>conftest.$ac_ext <<_ACEOF | |
3858 | /* end confdefs.h. */ | |
3859 | #include <string.h> | |
3860 | ||
3861 | _ACEOF | |
3862 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3863 | $EGREP "memchr" >/dev/null 2>&1; then | |
3864 | : | |
3865 | else | |
3866 | ac_cv_header_stdc=no | |
3867 | fi | |
3868 | rm -f conftest* | |
3869 | ||
3870 | fi | |
3871 | ||
3872 | if 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 | |
3877 | cat confdefs.h >>conftest.$ac_ext | |
3878 | cat >>conftest.$ac_ext <<_ACEOF | |
3879 | /* end confdefs.h. */ | |
3880 | #include <stdlib.h> | |
3881 | ||
3882 | _ACEOF | |
3883 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3884 | $EGREP "free" >/dev/null 2>&1; then | |
3885 | : | |
3886 | else | |
3887 | ac_cv_header_stdc=no | |
3888 | fi | |
3889 | rm -f conftest* | |
3890 | ||
3891 | fi | |
3892 | ||
3893 | if 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 | : | |
3897 | else | |
3898 | cat >conftest.$ac_ext <<_ACEOF | |
3899 | /* confdefs.h. */ | |
3900 | _ACEOF | |
3901 | cat confdefs.h >>conftest.$ac_ext | |
3902 | cat >>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))) | |
3917 | int | |
3918 | main () | |
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 | |
3928 | rm -f conftest$ac_exeext | |
3929 | if { (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 | : | |
3940 | else | |
3941 | echo "$as_me: program exited with status $ac_status" >&5 | |
3942 | echo "$as_me: failed program was:" >&5 | |
3943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3944 | ||
3945 | ( exit $ac_status ) | |
3946 | ac_cv_header_stdc=no | |
3947 | fi | |
3948 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3949 | fi | |
3950 | fi | |
3951 | fi | |
3952 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3953 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3954 | if test $ac_cv_header_stdc = yes; then | |
3955 | ||
3956 | cat >>confdefs.h <<\_ACEOF | |
3957 | #define STDC_HEADERS 1 | |
3958 | _ACEOF | |
3959 | ||
3960 | fi | |
3961 | ||
3962 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3963 | ||
3964 | ||
3965 | ||
3966 | ||
3967 | ||
3968 | ||
3969 | ||
3970 | ||
3971 | ||
3972 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3973 | inttypes.h stdint.h unistd.h | |
3974 | do | |
3975 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3976 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3977 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3978 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3980 | else | |
3981 | cat >conftest.$ac_ext <<_ACEOF | |
3982 | /* confdefs.h. */ | |
3983 | _ACEOF | |
3984 | cat confdefs.h >>conftest.$ac_ext | |
3985 | cat >>conftest.$ac_ext <<_ACEOF | |
3986 | /* end confdefs.h. */ | |
3987 | $ac_includes_default | |
3988 | ||
3989 | #include <$ac_header> | |
3990 | _ACEOF | |
3991 | rm -f conftest.$ac_objext | |
3992 | if { (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" | |
4014 | else | |
4015 | echo "$as_me: failed program was:" >&5 | |
4016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4017 | ||
4018 | eval "$as_ac_Header=no" | |
4019 | fi | |
4020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4021 | fi | |
4022 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4023 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4024 | if 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 | ||
4029 | fi | |
4030 | ||
4031 | done | |
4032 | ||
4033 | ||
4034 | echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 | |
4035 | echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6 | |
4036 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then | |
4037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4038 | else | |
4039 | cat >conftest.$ac_ext <<_ACEOF | |
4040 | /* confdefs.h. */ | |
4041 | _ACEOF | |
4042 | cat confdefs.h >>conftest.$ac_ext | |
4043 | cat >>conftest.$ac_ext <<_ACEOF | |
4044 | /* end confdefs.h. */ | |
4045 | $ac_includes_default | |
4046 | int | |
4047 | main () | |
4048 | { | |
4049 | if ((ptrdiff_t *) 0) | |
4050 | return 0; | |
4051 | if (sizeof (ptrdiff_t)) | |
4052 | return 0; | |
4053 | ; | |
4054 | return 0; | |
4055 | } | |
4056 | _ACEOF | |
4057 | rm -f conftest.$ac_objext | |
4058 | if { (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 | |
4080 | else | |
4081 | echo "$as_me: failed program was:" >&5 | |
4082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4083 | ||
4084 | ac_cv_type_ptrdiff_t=no | |
4085 | fi | |
4086 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4087 | fi | |
4088 | echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 | |
4089 | echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6 | |
4090 | if test $ac_cv_type_ptrdiff_t = yes; then | |
4091 | ||
4092 | cat >>confdefs.h <<_ACEOF | |
4093 | #define HAVE_PTRDIFF_T 1 | |
4094 | _ACEOF | |
4095 | ||
4096 | ||
4097 | fi | |
4098 | ||
4099 | ||
4100 | # Checks for library functions. | |
4101 | ||
4102 | for ac_header in stdlib.h | |
4103 | do | |
4104 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4105 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4106 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4107 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4108 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4110 | fi | |
4111 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4112 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4113 | else | |
4114 | # Is the header compilable? | |
4115 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4116 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4117 | cat >conftest.$ac_ext <<_ACEOF | |
4118 | /* confdefs.h. */ | |
4119 | _ACEOF | |
4120 | cat confdefs.h >>conftest.$ac_ext | |
4121 | cat >>conftest.$ac_ext <<_ACEOF | |
4122 | /* end confdefs.h. */ | |
4123 | $ac_includes_default | |
4124 | #include <$ac_header> | |
4125 | _ACEOF | |
4126 | rm -f conftest.$ac_objext | |
4127 | if { (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 | |
4149 | else | |
4150 | echo "$as_me: failed program was:" >&5 | |
4151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4152 | ||
4153 | ac_header_compiler=no | |
4154 | fi | |
4155 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4156 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4157 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4158 | ||
4159 | # Is the header present? | |
4160 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4161 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4162 | cat >conftest.$ac_ext <<_ACEOF | |
4163 | /* confdefs.h. */ | |
4164 | _ACEOF | |
4165 | cat confdefs.h >>conftest.$ac_ext | |
4166 | cat >>conftest.$ac_ext <<_ACEOF | |
4167 | /* end confdefs.h. */ | |
4168 | #include <$ac_header> | |
4169 | _ACEOF | |
4170 | if { (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 | |
4184 | else | |
4185 | ac_cpp_err=yes | |
4186 | fi | |
4187 | if test -z "$ac_cpp_err"; then | |
4188 | ac_header_preproc=yes | |
4189 | else | |
4190 | echo "$as_me: failed program was:" >&5 | |
4191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4192 | ||
4193 | ac_header_preproc=no | |
4194 | fi | |
4195 | rm -f conftest.err conftest.$ac_ext | |
4196 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4197 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4198 | ||
4199 | # So? What about this header? | |
4200 | case $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 | |
4203 | echo "$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 | |
4205 | echo "$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 | |
4210 | echo "$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 | |
4212 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4213 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4214 | echo "$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 | |
4216 | echo "$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 | |
4218 | echo "$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 | |
4220 | echo "$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 | ;; | |
4230 | esac | |
4231 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4232 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4233 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4235 | else | |
4236 | eval "$as_ac_Header=\$ac_header_preproc" | |
4237 | fi | |
4238 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4239 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4240 | ||
4241 | fi | |
4242 | if 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 | ||
4247 | fi | |
4248 | ||
4249 | done | |
4250 | ||
4251 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 | |
4252 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 | |
4253 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then | |
4254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4255 | else | |
4256 | if test "$cross_compiling" = yes; then | |
4257 | ac_cv_func_malloc_0_nonnull=no | |
4258 | else | |
4259 | cat >conftest.$ac_ext <<_ACEOF | |
4260 | /* confdefs.h. */ | |
4261 | _ACEOF | |
4262 | cat confdefs.h >>conftest.$ac_ext | |
4263 | cat >>conftest.$ac_ext <<_ACEOF | |
4264 | /* end confdefs.h. */ | |
4265 | #if STDC_HEADERS || HAVE_STDLIB_H | |
4266 | # include <stdlib.h> | |
4267 | #else | |
4268 | char *malloc (); | |
4269 | #endif | |
4270 | ||
4271 | int | |
4272 | main () | |
4273 | { | |
4274 | exit (malloc (0) ? 0 : 1); | |
4275 | ; | |
4276 | return 0; | |
4277 | } | |
4278 | _ACEOF | |
4279 | rm -f conftest$ac_exeext | |
4280 | if { (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 | |
4291 | else | |
4292 | echo "$as_me: program exited with status $ac_status" >&5 | |
4293 | echo "$as_me: failed program was:" >&5 | |
4294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4295 | ||
4296 | ( exit $ac_status ) | |
4297 | ac_cv_func_malloc_0_nonnull=no | |
4298 | fi | |
4299 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4300 | fi | |
4301 | fi | |
4302 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 | |
4303 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 | |
4304 | if test $ac_cv_func_malloc_0_nonnull = yes; then | |
4305 | ||
4306 | cat >>confdefs.h <<\_ACEOF | |
4307 | #define HAVE_MALLOC 1 | |
4308 | _ACEOF | |
4309 | ||
4310 | else | |
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" ;; | |
4321 | esac | |
4322 | ||
4323 | ||
4324 | cat >>confdefs.h <<\_ACEOF | |
4325 | #define malloc rpl_malloc | |
4326 | _ACEOF | |
4327 | ||
4328 | fi | |
4329 | ||
4330 | ||
4331 | ||
4332 | ||
4333 | for ac_func in strftime | |
4334 | do | |
4335 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4336 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4337 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4338 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4340 | else | |
4341 | cat >conftest.$ac_ext <<_ACEOF | |
4342 | /* confdefs.h. */ | |
4343 | _ACEOF | |
4344 | cat confdefs.h >>conftest.$ac_ext | |
4345 | cat >>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 | |
4366 | extern "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. */ | |
4371 | char $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) | |
4376 | choke me | |
4377 | #else | |
4378 | char (*f) () = $ac_func; | |
4379 | #endif | |
4380 | #ifdef __cplusplus | |
4381 | } | |
4382 | #endif | |
4383 | ||
4384 | int | |
4385 | main () | |
4386 | { | |
4387 | return f != $ac_func; | |
4388 | ; | |
4389 | return 0; | |
4390 | } | |
4391 | _ACEOF | |
4392 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4393 | if { (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" | |
4415 | else | |
4416 | echo "$as_me: failed program was:" >&5 | |
4417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4418 | ||
4419 | eval "$as_ac_var=no" | |
4420 | fi | |
4421 | rm -f conftest.err conftest.$ac_objext \ | |
4422 | conftest$ac_exeext conftest.$ac_ext | |
4423 | fi | |
4424 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4425 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4426 | if 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 | ||
4431 | else | |
4432 | # strftime is in -lintl on SCO UNIX. | |
4433 | echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | |
4434 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 | |
4435 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | |
4436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4437 | else | |
4438 | ac_check_lib_save_LIBS=$LIBS | |
4439 | LIBS="-lintl $LIBS" | |
4440 | cat >conftest.$ac_ext <<_ACEOF | |
4441 | /* confdefs.h. */ | |
4442 | _ACEOF | |
4443 | cat confdefs.h >>conftest.$ac_ext | |
4444 | cat >>conftest.$ac_ext <<_ACEOF | |
4445 | /* end confdefs.h. */ | |
4446 | ||
4447 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4448 | #ifdef __cplusplus | |
4449 | extern "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. */ | |
4453 | char strftime (); | |
4454 | int | |
4455 | main () | |
4456 | { | |
4457 | strftime (); | |
4458 | ; | |
4459 | return 0; | |
4460 | } | |
4461 | _ACEOF | |
4462 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4463 | if { (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 | |
4485 | else | |
4486 | echo "$as_me: failed program was:" >&5 | |
4487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4488 | ||
4489 | ac_cv_lib_intl_strftime=no | |
4490 | fi | |
4491 | rm -f conftest.err conftest.$ac_objext \ | |
4492 | conftest$ac_exeext conftest.$ac_ext | |
4493 | LIBS=$ac_check_lib_save_LIBS | |
4494 | fi | |
4495 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | |
4496 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 | |
4497 | if test $ac_cv_lib_intl_strftime = yes; then | |
4498 | cat >>confdefs.h <<\_ACEOF | |
4499 | #define HAVE_STRFTIME 1 | |
4500 | _ACEOF | |
4501 | ||
4502 | LIBS="-lintl $LIBS" | |
4503 | fi | |
4504 | ||
4505 | fi | |
4506 | done | |
4507 | ||
4508 | ||
4509 | ||
4510 | ||
4511 | ||
4512 | for ac_func in atexit getcwd pow sqrt | |
4513 | do | |
4514 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4515 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4516 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4517 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4519 | else | |
4520 | cat >conftest.$ac_ext <<_ACEOF | |
4521 | /* confdefs.h. */ | |
4522 | _ACEOF | |
4523 | cat confdefs.h >>conftest.$ac_ext | |
4524 | cat >>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 | |
4545 | extern "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. */ | |
4550 | char $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) | |
4555 | choke me | |
4556 | #else | |
4557 | char (*f) () = $ac_func; | |
4558 | #endif | |
4559 | #ifdef __cplusplus | |
4560 | } | |
4561 | #endif | |
4562 | ||
4563 | int | |
4564 | main () | |
4565 | { | |
4566 | return f != $ac_func; | |
4567 | ; | |
4568 | return 0; | |
4569 | } | |
4570 | _ACEOF | |
4571 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4572 | if { (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" | |
4594 | else | |
4595 | echo "$as_me: failed program was:" >&5 | |
4596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4597 | ||
4598 | eval "$as_ac_var=no" | |
4599 | fi | |
4600 | rm -f conftest.err conftest.$ac_objext \ | |
4601 | conftest$ac_exeext conftest.$ac_ext | |
4602 | fi | |
4603 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4604 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4605 | if 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 | ||
4610 | else | |
4611 | echo "" && | |
4612 | echo "ERROR: Basic functions not found. Something's wrong with paths." && | |
4613 | exit -1 | |
4614 | ||
4615 | fi | |
4616 | done | |
4617 | ||
4618 | ||
4619 | ############################################################################## | |
4620 | # Check for HepMC header files | |
4621 | ||
4622 | # If user specified --without-hepmc, skip hepmc check | |
4623 | if ! test "$with_hepmc" == "no"; then | |
4624 | ||
4625 | ||
4626 | CPPFLAGS="-I$with_hepmc/include $CPPFLAGS" | |
4627 | ||
4628 | ||
4629 | for ac_header in HepMC/Version.h | |
4630 | do | |
4631 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4632 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4633 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4634 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4635 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4637 | fi | |
4638 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4639 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4640 | else | |
4641 | # Is the header compilable? | |
4642 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4643 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4644 | cat >conftest.$ac_ext <<_ACEOF | |
4645 | /* confdefs.h. */ | |
4646 | _ACEOF | |
4647 | cat confdefs.h >>conftest.$ac_ext | |
4648 | cat >>conftest.$ac_ext <<_ACEOF | |
4649 | /* end confdefs.h. */ | |
4650 | $ac_includes_default | |
4651 | #include <$ac_header> | |
4652 | _ACEOF | |
4653 | rm -f conftest.$ac_objext | |
4654 | if { (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 | |
4676 | else | |
4677 | echo "$as_me: failed program was:" >&5 | |
4678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4679 | ||
4680 | ac_header_compiler=no | |
4681 | fi | |
4682 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4683 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4684 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4685 | ||
4686 | # Is the header present? | |
4687 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4688 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4689 | cat >conftest.$ac_ext <<_ACEOF | |
4690 | /* confdefs.h. */ | |
4691 | _ACEOF | |
4692 | cat confdefs.h >>conftest.$ac_ext | |
4693 | cat >>conftest.$ac_ext <<_ACEOF | |
4694 | /* end confdefs.h. */ | |
4695 | #include <$ac_header> | |
4696 | _ACEOF | |
4697 | if { (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 | |
4711 | else | |
4712 | ac_cpp_err=yes | |
4713 | fi | |
4714 | if test -z "$ac_cpp_err"; then | |
4715 | ac_header_preproc=yes | |
4716 | else | |
4717 | echo "$as_me: failed program was:" >&5 | |
4718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4719 | ||
4720 | ac_header_preproc=no | |
4721 | fi | |
4722 | rm -f conftest.err conftest.$ac_ext | |
4723 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4724 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4725 | ||
4726 | # So? What about this header? | |
4727 | case $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 | |
4730 | echo "$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 | |
4732 | echo "$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 | |
4737 | echo "$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 | |
4739 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4740 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4741 | echo "$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 | |
4743 | echo "$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 | |
4745 | echo "$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 | |
4747 | echo "$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 | ;; | |
4757 | esac | |
4758 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4759 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4760 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4762 | else | |
4763 | eval "$as_ac_Header=\$ac_header_preproc" | |
4764 | fi | |
4765 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4766 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4767 | ||
4768 | fi | |
4769 | if 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 | ||
4774 | else | |
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 | ||
4784 | fi | |
4785 | ||
4786 | done | |
4787 | ||
4788 | ||
4789 | else | |
4790 | with_hepmc="" | |
4791 | ||
4792 | fi | |
4793 | ||
4794 | ############################################################################## | |
4795 | with_photos=`pwd` | |
4796 | ||
4797 | if test "$prefix" != "NONE"; then | |
4798 | with_photos=$prefix | |
4799 | fi | |
4800 | ||
4801 | pythia8data=$PYTHIA8DATA | |
4802 | ||
4803 | if test -z "$pythia8data"; then | |
4804 | pythia8data=$with_pythia8/xmldoc | |
4805 | fi | |
4806 | ||
4807 | ln -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 | ||
4817 | cat >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 | |
4862 | if 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 | |
4869 | fi | |
4870 | rm -f confcache | |
4871 | ||
4872 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
4873 | # Let make expand exec_prefix. | |
4874 | test "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). | |
4880 | if test "x$srcdir" = x.; then | |
4881 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
4882 | s/:*\$(srcdir):*/:/; | |
4883 | s/:*\${srcdir}:*/:/; | |
4884 | s/:*@srcdir@:*/:/; | |
4885 | s/^\([^=]*=[ ]*\):*/\1/; | |
4886 | s/:*$//; | |
4887 | s/^[^=]*=[ ]*$//; | |
4888 | }' | |
4889 | fi | |
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. | |
4898 | cat >confdef2opt.sed <<\_ACEOF | |
4899 | t clear | |
4900 | : clear | |
4901 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g | |
4902 | t quote | |
4903 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g | |
4904 | t quote | |
4905 | d | |
4906 | : quote | |
4907 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g | |
4908 | s,\[,\\&,g | |
4909 | s,\],\\&,g | |
4910 | s,\$,$$,g | |
4911 | p | |
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. | |
4919 | ac_LF_and_DOT=`echo; echo .` | |
4920 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` | |
4921 | rm -f confdef2opt.sed | |
4922 | ||
4923 | ||
4924 | ac_libobjs= | |
4925 | ac_ltlibobjs= | |
4926 | for 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' | |
4933 | done | |
4934 | LIBOBJS=$ac_libobjs | |
4935 | ||
4936 | LTLIBOBJS=$ac_ltlibobjs | |
4937 | ||
4938 | ||
4939 | ||
4940 | : ${CONFIG_STATUS=./config.status} | |
4941 | ac_clean_files_save=$ac_clean_files | |
4942 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
4943 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
4944 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
4945 | cat >$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 | ||
4952 | debug=false | |
4953 | ac_cs_recheck=false | |
4954 | ac_cs_silent=false | |
4955 | SHELL=\${CONFIG_SHELL-$SHELL} | |
4956 | _ACEOF | |
4957 | ||
4958 | cat >>$CONFIG_STATUS <<\_ACEOF | |
4959 | ## --------------------- ## | |
4960 | ## M4sh Initialization. ## | |
4961 | ## --------------------- ## | |
4962 | ||
4963 | # Be Bourne compatible | |
4964 | if 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+"$@"}'='"$@"' | |
4970 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
4971 | set -o posix | |
4972 | fi | |
4973 | DUALCASE=1; export DUALCASE # for MKS sh | |
4974 | ||
4975 | # Support unset when possible. | |
4976 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4977 | as_unset=unset | |
4978 | else | |
4979 | as_unset=false | |
4980 | fi | |
4981 | ||
4982 | ||
4983 | # Work around bugs in pre-3.0 UWIN ksh. | |
4984 | $as_unset ENV MAIL MAILPATH | |
4985 | PS1='$ ' | |
4986 | PS2='> ' | |
4987 | PS4='+ ' | |
4988 | ||
4989 | # NLS nuisances. | |
4990 | for 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 | |
4994 | do | |
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 | |
5000 | done | |
5001 | ||
5002 | # Required to use basename. | |
5003 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
5004 | as_expr=expr | |
5005 | else | |
5006 | as_expr=false | |
5007 | fi | |
5008 | ||
5009 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
5010 | as_basename=basename | |
5011 | else | |
5012 | as_basename=false | |
5013 | fi | |
5014 | ||
5015 | ||
5016 | # Name of the executable. | |
5017 | as_me=`$as_basename "$0" || | |
5018 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
5019 | X"$0" : 'X\(//\)$' \| \ | |
5020 | X"$0" : 'X\(/\)$' \| \ | |
5021 | . : '\(.\)' 2>/dev/null || | |
5022 | echo 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. | |
5031 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
5032 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
5033 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
5034 | as_cr_digits='0123456789' | |
5035 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
5036 | ||
5037 | # The user is always right. | |
5038 | if 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 | |
5048 | fi | |
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 | |
5061 | for as_dir in $PATH | |
5062 | do | |
5063 | IFS=$as_save_IFS | |
5064 | test -z "$as_dir" && as_dir=. | |
5065 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
5066 | done | |
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 | |
5077 | echo "$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 | |
5083 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
5084 | do | |
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 | |
5104 | done | |
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 | |
5128 | echo "$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 | ||
5140 | case `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= ;; | |
5145 | esac | |
5146 | ||
5147 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
5148 | as_expr=expr | |
5149 | else | |
5150 | as_expr=false | |
5151 | fi | |
5152 | ||
5153 | rm -f conf$$ conf$$.exe conf$$.file | |
5154 | echo >conf$$.file | |
5155 | if 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 | |
5164 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
5165 | as_ln_s=ln | |
5166 | else | |
5167 | as_ln_s='cp -p' | |
5168 | fi | |
5169 | rm -f conf$$ conf$$.exe conf$$.file | |
5170 | ||
5171 | if mkdir -p . 2>/dev/null; then | |
5172 | as_mkdir_p=: | |
5173 | else | |
5174 | test -d ./-p && rmdir ./-p | |
5175 | as_mkdir_p=false | |
5176 | fi | |
5177 | ||
5178 | as_executable_p="test -f" | |
5179 | ||
5180 | # Sed expression to map a string onto a valid CPP name. | |
5181 | as_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. | |
5184 | as_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. | |
5189 | as_nl=' | |
5190 | ' | |
5191 | IFS=" $as_nl" | |
5192 | ||
5193 | # CDPATH. | |
5194 | $as_unset CDPATH | |
5195 | ||
5196 | exec 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. | |
5201 | exec 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 | |
5208 | cat >&5 <<_CSEOF | |
5209 | ||
5210 | This file was extended by Photos C++ Interface $as_me 3.3, which was | |
5211 | generated 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 | |
5220 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
5221 | echo >&5 | |
5222 | _ACEOF | |
5223 | ||
5224 | # Files that config.status was made for. | |
5225 | if test -n "$ac_config_files"; then | |
5226 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
5227 | fi | |
5228 | ||
5229 | if test -n "$ac_config_headers"; then | |
5230 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
5231 | fi | |
5232 | ||
5233 | if test -n "$ac_config_links"; then | |
5234 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
5235 | fi | |
5236 | ||
5237 | if test -n "$ac_config_commands"; then | |
5238 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
5239 | fi | |
5240 | ||
5241 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5242 | ||
5243 | ac_cs_usage="\ | |
5244 | \`$as_me' instantiates files from templates according to the | |
5245 | current configuration. | |
5246 | ||
5247 | Usage: $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 | ||
5257 | Configuration files: | |
5258 | $config_files | |
5259 | ||
5260 | Report bugs to <bug-autoconf@gnu.org>." | |
5261 | _ACEOF | |
5262 | ||
5263 | cat >>$CONFIG_STATUS <<_ACEOF | |
5264 | ac_cs_version="\\ | |
5265 | Photos C++ Interface config.status 3.3 | |
5266 | configured by $0, generated by GNU Autoconf 2.59, | |
5267 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
5268 | ||
5269 | Copyright (C) 2003 Free Software Foundation, Inc. | |
5270 | This config.status script is free software; the Free Software Foundation | |
5271 | gives unlimited permission to copy, distribute and modify it." | |
5272 | srcdir=$srcdir | |
5273 | _ACEOF | |
5274 | ||
5275 | cat >>$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. | |
5278 | ac_need_defaults=: | |
5279 | while test $# != 0 | |
5280 | do | |
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 | |
5301 | cat >>$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 | |
5309 | Try \`$0 --help' for more information." >&5 | |
5310 | echo "$as_me: error: ambiguous option: $1 | |
5311 | Try \`$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 | |
5331 | Try \`$0 --help' for more information." >&5 | |
5332 | echo "$as_me: error: unrecognized option: $1 | |
5333 | Try \`$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 | |
5340 | done | |
5341 | ||
5342 | ac_configure_extra_args= | |
5343 | ||
5344 | if $ac_cs_silent; then | |
5345 | exec 6>/dev/null | |
5346 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
5347 | fi | |
5348 | ||
5349 | _ACEOF | |
5350 | cat >>$CONFIG_STATUS <<_ACEOF | |
5351 | if \$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 | |
5354 | fi | |
5355 | ||
5356 | _ACEOF | |
5357 | ||
5358 | ||
5359 | ||
5360 | ||
5361 | ||
5362 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5363 | for ac_config_target in $ac_config_targets | |
5364 | do | |
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 | |
5371 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
5372 | { (exit 1); exit 1; }; };; | |
5373 | esac | |
5374 | done | |
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. | |
5380 | if $ac_need_defaults; then | |
5381 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
5382 | fi | |
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 | ||
5411 | cat >>$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 | |
5419 | if 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 | |
5423 | s,@SHELL@,$SHELL,;t t | |
5424 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
5425 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
5426 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
5427 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
5428 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
5429 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
5430 | s,@exec_prefix@,$exec_prefix,;t t | |
5431 | s,@prefix@,$prefix,;t t | |
5432 | s,@program_transform_name@,$program_transform_name,;t t | |
5433 | s,@bindir@,$bindir,;t t | |
5434 | s,@sbindir@,$sbindir,;t t | |
5435 | s,@libexecdir@,$libexecdir,;t t | |
5436 | s,@datadir@,$datadir,;t t | |
5437 | s,@sysconfdir@,$sysconfdir,;t t | |
5438 | s,@sharedstatedir@,$sharedstatedir,;t t | |
5439 | s,@localstatedir@,$localstatedir,;t t | |
5440 | s,@libdir@,$libdir,;t t | |
5441 | s,@includedir@,$includedir,;t t | |
5442 | s,@oldincludedir@,$oldincludedir,;t t | |
5443 | s,@infodir@,$infodir,;t t | |
5444 | s,@mandir@,$mandir,;t t | |
5445 | s,@build_alias@,$build_alias,;t t | |
5446 | s,@host_alias@,$host_alias,;t t | |
5447 | s,@target_alias@,$target_alias,;t t | |
5448 | s,@DEFS@,$DEFS,;t t | |
5449 | s,@ECHO_C@,$ECHO_C,;t t | |
5450 | s,@ECHO_N@,$ECHO_N,;t t | |
5451 | s,@ECHO_T@,$ECHO_T,;t t | |
5452 | s,@LIBS@,$LIBS,;t t | |
5453 | s,@SET_MAKE@,$SET_MAKE,;t t | |
5454 | s,@LN_S@,$LN_S,;t t | |
5455 | s,@CC@,$CC,;t t | |
5456 | s,@CFLAGS@,$CFLAGS,;t t | |
5457 | s,@LDFLAGS@,$LDFLAGS,;t t | |
5458 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
5459 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
5460 | s,@EXEEXT@,$EXEEXT,;t t | |
5461 | s,@OBJEXT@,$OBJEXT,;t t | |
5462 | s,@CXX@,$CXX,;t t | |
5463 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
5464 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
5465 | s,@RANLIB@,$RANLIB,;t t | |
5466 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
5467 | s,@F77@,$F77,;t t | |
5468 | s,@FFLAGS@,$FFLAGS,;t t | |
5469 | s,@ac_ct_F77@,$ac_ct_F77,;t t | |
5470 | s,@CPP@,$CPP,;t t | |
5471 | s,@DIRECT_CPP@,$DIRECT_CPP,;t t | |
5472 | s,@CXXCPP@,$CXXCPP,;t t | |
5473 | s,@EGREP@,$EGREP,;t t | |
5474 | s,@LIBOBJS@,$LIBOBJS,;t t | |
5475 | s,@with_hepmc@,$with_hepmc,;t t | |
5476 | s,@with_photos@,$with_photos,;t t | |
5477 | s,@pythia8data@,$pythia8data,;t t | |
5478 | s,@with_tauola@,$with_tauola,;t t | |
5479 | s,@with_pythia8@,$with_pythia8,;t t | |
5480 | s,@with_mc_tester@,$with_mc_tester,;t t | |
5481 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
5482 | CEOF | |
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 | |
5523 | fi # test -n "$CONFIG_FILES" | |
5524 | ||
5525 | _ACEOF | |
5526 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5527 | for 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 || | |
5546 | echo 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 || | |
5565 | echo 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 | |
5574 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
5575 | { (exit 1); exit 1; }; }; } | |
5576 | ||
5577 | ac_builddir=. | |
5578 | ||
5579 | if 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'` | |
5583 | else | |
5584 | ac_dir_suffix= ac_top_builddir= | |
5585 | fi | |
5586 | ||
5587 | case $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 ;; | |
5601 | esac | |
5602 | ||
5603 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
5604 | # the directories may not exist. | |
5605 | case `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;; | |
5613 | esac | |
5614 | case $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;; | |
5622 | esac | |
5623 | case $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;; | |
5631 | esac | |
5632 | case $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;; | |
5640 | esac | |
5641 | ||
5642 | ||
5643 | ||
5644 | if test x"$ac_file" != x-; then | |
5645 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
5646 | echo "$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 | |
5669 | echo "$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 | |
5682 | echo "$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 | |
5688 | cat >>$CONFIG_STATUS <<_ACEOF | |
5689 | sed "$ac_vpsub | |
5690 | $extrasub | |
5691 | _ACEOF | |
5692 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5693 | :t | |
5694 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5695 | s,@configure_input@,$configure_input,;t t | |
5696 | s,@srcdir@,$ac_srcdir,;t t | |
5697 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
5698 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
5699 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
5700 | s,@builddir@,$ac_builddir,;t t | |
5701 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
5702 | s,@top_builddir@,$ac_top_builddir,;t t | |
5703 | s,@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 | ||
5713 | done | |
5714 | _ACEOF | |
5715 | ||
5716 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5717 | ||
5718 | { (exit 0); exit 0; } | |
5719 | _ACEOF | |
5720 | chmod +x $CONFIG_STATUS | |
5721 | ac_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. | |
5732 | if 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; } | |
5743 | fi | |
5744 | ||
5745 |