1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.59 for orxonox 0.1-pre-alpha. |
---|
4 | # |
---|
5 | # Report bugs to <orxonox-dev@mail.datacore.ch>. |
---|
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='orxonox' |
---|
271 | PACKAGE_TARNAME='orxonox' |
---|
272 | PACKAGE_VERSION='0.1-pre-alpha' |
---|
273 | PACKAGE_STRING='orxonox 0.1-pre-alpha' |
---|
274 | PACKAGE_BUGREPORT='orxonox-dev@mail.datacore.ch' |
---|
275 | |
---|
276 | ac_unique_file="." |
---|
277 | # Factoring default headers for most tests. |
---|
278 | ac_includes_default="\ |
---|
279 | #include <stdio.h> |
---|
280 | #if HAVE_SYS_TYPES_H |
---|
281 | # include <sys/types.h> |
---|
282 | #endif |
---|
283 | #if HAVE_SYS_STAT_H |
---|
284 | # include <sys/stat.h> |
---|
285 | #endif |
---|
286 | #if STDC_HEADERS |
---|
287 | # include <stdlib.h> |
---|
288 | # include <stddef.h> |
---|
289 | #else |
---|
290 | # if HAVE_STDLIB_H |
---|
291 | # include <stdlib.h> |
---|
292 | # endif |
---|
293 | #endif |
---|
294 | #if HAVE_STRING_H |
---|
295 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
296 | # include <memory.h> |
---|
297 | # endif |
---|
298 | # include <string.h> |
---|
299 | #endif |
---|
300 | #if HAVE_STRINGS_H |
---|
301 | # include <strings.h> |
---|
302 | #endif |
---|
303 | #if HAVE_INTTYPES_H |
---|
304 | # include <inttypes.h> |
---|
305 | #else |
---|
306 | # if HAVE_STDINT_H |
---|
307 | # include <stdint.h> |
---|
308 | # endif |
---|
309 | #endif |
---|
310 | #if HAVE_UNISTD_H |
---|
311 | # include <unistd.h> |
---|
312 | #endif" |
---|
313 | |
---|
314 | 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBOBJS LTLIBOBJS' |
---|
315 | ac_subst_files='' |
---|
316 | |
---|
317 | # Initialize some variables set by options. |
---|
318 | ac_init_help= |
---|
319 | ac_init_version=false |
---|
320 | # The variables have the same names as the options, with |
---|
321 | # dashes changed to underlines. |
---|
322 | cache_file=/dev/null |
---|
323 | exec_prefix=NONE |
---|
324 | no_create= |
---|
325 | no_recursion= |
---|
326 | prefix=NONE |
---|
327 | program_prefix=NONE |
---|
328 | program_suffix=NONE |
---|
329 | program_transform_name=s,x,x, |
---|
330 | silent= |
---|
331 | site= |
---|
332 | srcdir= |
---|
333 | verbose= |
---|
334 | x_includes=NONE |
---|
335 | x_libraries=NONE |
---|
336 | |
---|
337 | # Installation directory options. |
---|
338 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
339 | # and all the variables that are supposed to be based on exec_prefix |
---|
340 | # by default will actually change. |
---|
341 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
342 | bindir='${exec_prefix}/bin' |
---|
343 | sbindir='${exec_prefix}/sbin' |
---|
344 | libexecdir='${exec_prefix}/libexec' |
---|
345 | datadir='${prefix}/share' |
---|
346 | sysconfdir='${prefix}/etc' |
---|
347 | sharedstatedir='${prefix}/com' |
---|
348 | localstatedir='${prefix}/var' |
---|
349 | libdir='${exec_prefix}/lib' |
---|
350 | includedir='${prefix}/include' |
---|
351 | oldincludedir='/usr/include' |
---|
352 | infodir='${prefix}/info' |
---|
353 | mandir='${prefix}/man' |
---|
354 | |
---|
355 | ac_prev= |
---|
356 | for ac_option |
---|
357 | do |
---|
358 | # If the previous option needs an argument, assign it. |
---|
359 | if test -n "$ac_prev"; then |
---|
360 | eval "$ac_prev=\$ac_option" |
---|
361 | ac_prev= |
---|
362 | continue |
---|
363 | fi |
---|
364 | |
---|
365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
366 | |
---|
367 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
368 | |
---|
369 | case $ac_option in |
---|
370 | |
---|
371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
372 | ac_prev=bindir ;; |
---|
373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
374 | bindir=$ac_optarg ;; |
---|
375 | |
---|
376 | -build | --build | --buil | --bui | --bu) |
---|
377 | ac_prev=build_alias ;; |
---|
378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
379 | build_alias=$ac_optarg ;; |
---|
380 | |
---|
381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
383 | ac_prev=cache_file ;; |
---|
384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
386 | cache_file=$ac_optarg ;; |
---|
387 | |
---|
388 | --config-cache | -C) |
---|
389 | cache_file=config.cache ;; |
---|
390 | |
---|
391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
392 | ac_prev=datadir ;; |
---|
393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
394 | | --da=*) |
---|
395 | datadir=$ac_optarg ;; |
---|
396 | |
---|
397 | -disable-* | --disable-*) |
---|
398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
399 | # Reject names that are not valid shell variable names. |
---|
400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
402 | { (exit 1); exit 1; }; } |
---|
403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
404 | eval "enable_$ac_feature=no" ;; |
---|
405 | |
---|
406 | -enable-* | --enable-*) |
---|
407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
408 | # Reject names that are not valid shell variable names. |
---|
409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
411 | { (exit 1); exit 1; }; } |
---|
412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
413 | case $ac_option in |
---|
414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
415 | *) ac_optarg=yes ;; |
---|
416 | esac |
---|
417 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
418 | |
---|
419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
421 | | --exec | --exe | --ex) |
---|
422 | ac_prev=exec_prefix ;; |
---|
423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
425 | | --exec=* | --exe=* | --ex=*) |
---|
426 | exec_prefix=$ac_optarg ;; |
---|
427 | |
---|
428 | -gas | --gas | --ga | --g) |
---|
429 | # Obsolete; use --with-gas. |
---|
430 | with_gas=yes ;; |
---|
431 | |
---|
432 | -help | --help | --hel | --he | -h) |
---|
433 | ac_init_help=long ;; |
---|
434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
435 | ac_init_help=recursive ;; |
---|
436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
437 | ac_init_help=short ;; |
---|
438 | |
---|
439 | -host | --host | --hos | --ho) |
---|
440 | ac_prev=host_alias ;; |
---|
441 | -host=* | --host=* | --hos=* | --ho=*) |
---|
442 | host_alias=$ac_optarg ;; |
---|
443 | |
---|
444 | -includedir | --includedir | --includedi | --included | --include \ |
---|
445 | | --includ | --inclu | --incl | --inc) |
---|
446 | ac_prev=includedir ;; |
---|
447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
448 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
449 | includedir=$ac_optarg ;; |
---|
450 | |
---|
451 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
452 | ac_prev=infodir ;; |
---|
453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
454 | infodir=$ac_optarg ;; |
---|
455 | |
---|
456 | -libdir | --libdir | --libdi | --libd) |
---|
457 | ac_prev=libdir ;; |
---|
458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
459 | libdir=$ac_optarg ;; |
---|
460 | |
---|
461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
462 | | --libexe | --libex | --libe) |
---|
463 | ac_prev=libexecdir ;; |
---|
464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
465 | | --libexe=* | --libex=* | --libe=*) |
---|
466 | libexecdir=$ac_optarg ;; |
---|
467 | |
---|
468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
469 | | --localstate | --localstat | --localsta | --localst \ |
---|
470 | | --locals | --local | --loca | --loc | --lo) |
---|
471 | ac_prev=localstatedir ;; |
---|
472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
475 | localstatedir=$ac_optarg ;; |
---|
476 | |
---|
477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
478 | ac_prev=mandir ;; |
---|
479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
480 | mandir=$ac_optarg ;; |
---|
481 | |
---|
482 | -nfp | --nfp | --nf) |
---|
483 | # Obsolete; use --without-fp. |
---|
484 | with_fp=no ;; |
---|
485 | |
---|
486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
487 | | --no-cr | --no-c | -n) |
---|
488 | no_create=yes ;; |
---|
489 | |
---|
490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
492 | no_recursion=yes ;; |
---|
493 | |
---|
494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
496 | | --oldin | --oldi | --old | --ol | --o) |
---|
497 | ac_prev=oldincludedir ;; |
---|
498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
501 | oldincludedir=$ac_optarg ;; |
---|
502 | |
---|
503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
504 | ac_prev=prefix ;; |
---|
505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
506 | prefix=$ac_optarg ;; |
---|
507 | |
---|
508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
509 | | --program-pre | --program-pr | --program-p) |
---|
510 | ac_prev=program_prefix ;; |
---|
511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
513 | program_prefix=$ac_optarg ;; |
---|
514 | |
---|
515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
516 | | --program-suf | --program-su | --program-s) |
---|
517 | ac_prev=program_suffix ;; |
---|
518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
520 | program_suffix=$ac_optarg ;; |
---|
521 | |
---|
522 | -program-transform-name | --program-transform-name \ |
---|
523 | | --program-transform-nam | --program-transform-na \ |
---|
524 | | --program-transform-n | --program-transform- \ |
---|
525 | | --program-transform | --program-transfor \ |
---|
526 | | --program-transfo | --program-transf \ |
---|
527 | | --program-trans | --program-tran \ |
---|
528 | | --progr-tra | --program-tr | --program-t) |
---|
529 | ac_prev=program_transform_name ;; |
---|
530 | -program-transform-name=* | --program-transform-name=* \ |
---|
531 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
532 | | --program-transform-n=* | --program-transform-=* \ |
---|
533 | | --program-transform=* | --program-transfor=* \ |
---|
534 | | --program-transfo=* | --program-transf=* \ |
---|
535 | | --program-trans=* | --program-tran=* \ |
---|
536 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
537 | program_transform_name=$ac_optarg ;; |
---|
538 | |
---|
539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
540 | | -silent | --silent | --silen | --sile | --sil) |
---|
541 | silent=yes ;; |
---|
542 | |
---|
543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
544 | ac_prev=sbindir ;; |
---|
545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
546 | | --sbi=* | --sb=*) |
---|
547 | sbindir=$ac_optarg ;; |
---|
548 | |
---|
549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
551 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
552 | | --sha | --sh) |
---|
553 | ac_prev=sharedstatedir ;; |
---|
554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
557 | | --sha=* | --sh=*) |
---|
558 | sharedstatedir=$ac_optarg ;; |
---|
559 | |
---|
560 | -site | --site | --sit) |
---|
561 | ac_prev=site ;; |
---|
562 | -site=* | --site=* | --sit=*) |
---|
563 | site=$ac_optarg ;; |
---|
564 | |
---|
565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
566 | ac_prev=srcdir ;; |
---|
567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
568 | srcdir=$ac_optarg ;; |
---|
569 | |
---|
570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
571 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
572 | ac_prev=sysconfdir ;; |
---|
573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
575 | sysconfdir=$ac_optarg ;; |
---|
576 | |
---|
577 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
578 | ac_prev=target_alias ;; |
---|
579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
580 | target_alias=$ac_optarg ;; |
---|
581 | |
---|
582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
583 | verbose=yes ;; |
---|
584 | |
---|
585 | -version | --version | --versio | --versi | --vers | -V) |
---|
586 | ac_init_version=: ;; |
---|
587 | |
---|
588 | -with-* | --with-*) |
---|
589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
590 | # Reject names that are not valid shell variable names. |
---|
591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
593 | { (exit 1); exit 1; }; } |
---|
594 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
595 | case $ac_option in |
---|
596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
597 | *) ac_optarg=yes ;; |
---|
598 | esac |
---|
599 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
600 | |
---|
601 | -without-* | --without-*) |
---|
602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
603 | # Reject names that are not valid shell variable names. |
---|
604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
606 | { (exit 1); exit 1; }; } |
---|
607 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
608 | eval "with_$ac_package=no" ;; |
---|
609 | |
---|
610 | --x) |
---|
611 | # Obsolete; use --with-x. |
---|
612 | with_x=yes ;; |
---|
613 | |
---|
614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
615 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
616 | ac_prev=x_includes ;; |
---|
617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
619 | x_includes=$ac_optarg ;; |
---|
620 | |
---|
621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
623 | ac_prev=x_libraries ;; |
---|
624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
626 | x_libraries=$ac_optarg ;; |
---|
627 | |
---|
628 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
629 | Try \`$0 --help' for more information." >&2 |
---|
630 | { (exit 1); exit 1; }; } |
---|
631 | ;; |
---|
632 | |
---|
633 | *=*) |
---|
634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
635 | # Reject names that are not valid shell variable names. |
---|
636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
638 | { (exit 1); exit 1; }; } |
---|
639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
640 | eval "$ac_envvar='$ac_optarg'" |
---|
641 | export $ac_envvar ;; |
---|
642 | |
---|
643 | *) |
---|
644 | # FIXME: should be removed in autoconf 3.0. |
---|
645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
649 | ;; |
---|
650 | |
---|
651 | esac |
---|
652 | done |
---|
653 | |
---|
654 | if test -n "$ac_prev"; then |
---|
655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
656 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
657 | { (exit 1); exit 1; }; } |
---|
658 | fi |
---|
659 | |
---|
660 | # Be sure to have absolute paths. |
---|
661 | for ac_var in exec_prefix prefix |
---|
662 | do |
---|
663 | eval ac_val=$`echo $ac_var` |
---|
664 | case $ac_val in |
---|
665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
667 | { (exit 1); exit 1; }; };; |
---|
668 | esac |
---|
669 | done |
---|
670 | |
---|
671 | # Be sure to have absolute paths. |
---|
672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
673 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
674 | do |
---|
675 | eval ac_val=$`echo $ac_var` |
---|
676 | case $ac_val in |
---|
677 | [\\/$]* | ?:[\\/]* ) ;; |
---|
678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
679 | { (exit 1); exit 1; }; };; |
---|
680 | esac |
---|
681 | done |
---|
682 | |
---|
683 | # There might be people who depend on the old broken behavior: `$host' |
---|
684 | # used to hold the argument of --host etc. |
---|
685 | # FIXME: To remove some day. |
---|
686 | build=$build_alias |
---|
687 | host=$host_alias |
---|
688 | target=$target_alias |
---|
689 | |
---|
690 | # FIXME: To remove some day. |
---|
691 | if test "x$host_alias" != x; then |
---|
692 | if test "x$build_alias" = x; then |
---|
693 | cross_compiling=maybe |
---|
694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
695 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
696 | elif test "x$build_alias" != "x$host_alias"; then |
---|
697 | cross_compiling=yes |
---|
698 | fi |
---|
699 | fi |
---|
700 | |
---|
701 | ac_tool_prefix= |
---|
702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
703 | |
---|
704 | test "$silent" = yes && exec 6>/dev/null |
---|
705 | |
---|
706 | |
---|
707 | # Find the source files, if location was not specified. |
---|
708 | if test -z "$srcdir"; then |
---|
709 | ac_srcdir_defaulted=yes |
---|
710 | # Try the directory containing this script, then its parent. |
---|
711 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
713 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
714 | X"$0" : 'X\(//\)$' \| \ |
---|
715 | X"$0" : 'X\(/\)' \| \ |
---|
716 | . : '\(.\)' 2>/dev/null || |
---|
717 | echo X"$0" | |
---|
718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
720 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
721 | /^X\(\/\).*/{ s//\1/; q; } |
---|
722 | s/.*/./; q'` |
---|
723 | srcdir=$ac_confdir |
---|
724 | if test ! -r $srcdir/$ac_unique_file; then |
---|
725 | srcdir=.. |
---|
726 | fi |
---|
727 | else |
---|
728 | ac_srcdir_defaulted=no |
---|
729 | fi |
---|
730 | if test ! -r $srcdir/$ac_unique_file; then |
---|
731 | if test "$ac_srcdir_defaulted" = yes; then |
---|
732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
733 | { (exit 1); exit 1; }; } |
---|
734 | else |
---|
735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
736 | { (exit 1); exit 1; }; } |
---|
737 | fi |
---|
738 | fi |
---|
739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
741 | { (exit 1); exit 1; }; } |
---|
742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
743 | ac_env_build_alias_set=${build_alias+set} |
---|
744 | ac_env_build_alias_value=$build_alias |
---|
745 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
746 | ac_cv_env_build_alias_value=$build_alias |
---|
747 | ac_env_host_alias_set=${host_alias+set} |
---|
748 | ac_env_host_alias_value=$host_alias |
---|
749 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
750 | ac_cv_env_host_alias_value=$host_alias |
---|
751 | ac_env_target_alias_set=${target_alias+set} |
---|
752 | ac_env_target_alias_value=$target_alias |
---|
753 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
754 | ac_cv_env_target_alias_value=$target_alias |
---|
755 | ac_env_CXX_set=${CXX+set} |
---|
756 | ac_env_CXX_value=$CXX |
---|
757 | ac_cv_env_CXX_set=${CXX+set} |
---|
758 | ac_cv_env_CXX_value=$CXX |
---|
759 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
760 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
761 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
762 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
763 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
764 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
766 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
768 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
771 | ac_env_CC_set=${CC+set} |
---|
772 | ac_env_CC_value=$CC |
---|
773 | ac_cv_env_CC_set=${CC+set} |
---|
774 | ac_cv_env_CC_value=$CC |
---|
775 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
776 | ac_env_CFLAGS_value=$CFLAGS |
---|
777 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
778 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
779 | ac_env_CPP_set=${CPP+set} |
---|
780 | ac_env_CPP_value=$CPP |
---|
781 | ac_cv_env_CPP_set=${CPP+set} |
---|
782 | ac_cv_env_CPP_value=$CPP |
---|
783 | |
---|
784 | # |
---|
785 | # Report the --help message. |
---|
786 | # |
---|
787 | if test "$ac_init_help" = "long"; then |
---|
788 | # Omit some internal or obsolete options to make the list less imposing. |
---|
789 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
790 | cat <<_ACEOF |
---|
791 | \`configure' configures orxonox 0.1-pre-alpha to adapt to many kinds of systems. |
---|
792 | |
---|
793 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
794 | |
---|
795 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
796 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
797 | |
---|
798 | Defaults for the options are specified in brackets. |
---|
799 | |
---|
800 | Configuration: |
---|
801 | -h, --help display this help and exit |
---|
802 | --help=short display options specific to this package |
---|
803 | --help=recursive display the short help of all the included packages |
---|
804 | -V, --version display version information and exit |
---|
805 | -q, --quiet, --silent do not print \`checking...' messages |
---|
806 | --cache-file=FILE cache test results in FILE [disabled] |
---|
807 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
808 | -n, --no-create do not create output files |
---|
809 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
810 | |
---|
811 | _ACEOF |
---|
812 | |
---|
813 | cat <<_ACEOF |
---|
814 | Installation directories: |
---|
815 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
816 | [$ac_default_prefix] |
---|
817 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
818 | [PREFIX] |
---|
819 | |
---|
820 | By default, \`make install' will install all the files in |
---|
821 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
822 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
823 | for instance \`--prefix=\$HOME'. |
---|
824 | |
---|
825 | For better control, use the options below. |
---|
826 | |
---|
827 | Fine tuning of the installation directories: |
---|
828 | --bindir=DIR user executables [EPREFIX/bin] |
---|
829 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
830 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
831 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
832 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
833 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
834 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
835 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
836 | --includedir=DIR C header files [PREFIX/include] |
---|
837 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
838 | --infodir=DIR info documentation [PREFIX/info] |
---|
839 | --mandir=DIR man documentation [PREFIX/man] |
---|
840 | _ACEOF |
---|
841 | |
---|
842 | cat <<\_ACEOF |
---|
843 | |
---|
844 | Program names: |
---|
845 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
846 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
847 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
848 | _ACEOF |
---|
849 | fi |
---|
850 | |
---|
851 | if test -n "$ac_init_help"; then |
---|
852 | case $ac_init_help in |
---|
853 | short | recursive ) echo "Configuration of orxonox 0.1-pre-alpha:";; |
---|
854 | esac |
---|
855 | cat <<\_ACEOF |
---|
856 | |
---|
857 | Optional Features: |
---|
858 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
859 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
860 | --disable-dependency-tracking Speeds up one-time builds |
---|
861 | --enable-dependency-tracking Do not reject slow dependency extractors |
---|
862 | |
---|
863 | Some influential environment variables: |
---|
864 | CXX C++ compiler command |
---|
865 | CXXFLAGS C++ compiler flags |
---|
866 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
867 | nonstandard directory <lib dir> |
---|
868 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
869 | headers in a nonstandard directory <include dir> |
---|
870 | CC C compiler command |
---|
871 | CFLAGS C compiler flags |
---|
872 | CPP C preprocessor |
---|
873 | |
---|
874 | Use these variables to override the choices made by `configure' or to help |
---|
875 | it to find libraries and programs with nonstandard names/locations. |
---|
876 | |
---|
877 | Report bugs to <orxonox-dev@mail.datacore.ch>. |
---|
878 | _ACEOF |
---|
879 | fi |
---|
880 | |
---|
881 | if test "$ac_init_help" = "recursive"; then |
---|
882 | # If there are subdirs, report their specific --help. |
---|
883 | ac_popdir=`pwd` |
---|
884 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
885 | test -d $ac_dir || continue |
---|
886 | ac_builddir=. |
---|
887 | |
---|
888 | if test "$ac_dir" != .; then |
---|
889 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
890 | # A "../" for each directory in $ac_dir_suffix. |
---|
891 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
892 | else |
---|
893 | ac_dir_suffix= ac_top_builddir= |
---|
894 | fi |
---|
895 | |
---|
896 | case $srcdir in |
---|
897 | .) # No --srcdir option. We are building in place. |
---|
898 | ac_srcdir=. |
---|
899 | if test -z "$ac_top_builddir"; then |
---|
900 | ac_top_srcdir=. |
---|
901 | else |
---|
902 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
903 | fi ;; |
---|
904 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
905 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
906 | ac_top_srcdir=$srcdir ;; |
---|
907 | *) # Relative path. |
---|
908 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
909 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
910 | esac |
---|
911 | |
---|
912 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
913 | # the directories may not exist. |
---|
914 | case `pwd` in |
---|
915 | .) ac_abs_builddir="$ac_dir";; |
---|
916 | *) |
---|
917 | case "$ac_dir" in |
---|
918 | .) ac_abs_builddir=`pwd`;; |
---|
919 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
920 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
921 | esac;; |
---|
922 | esac |
---|
923 | case $ac_abs_builddir in |
---|
924 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
925 | *) |
---|
926 | case ${ac_top_builddir}. in |
---|
927 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
928 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
929 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
930 | esac;; |
---|
931 | esac |
---|
932 | case $ac_abs_builddir in |
---|
933 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
934 | *) |
---|
935 | case $ac_srcdir in |
---|
936 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
937 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
938 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
939 | esac;; |
---|
940 | esac |
---|
941 | case $ac_abs_builddir in |
---|
942 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
943 | *) |
---|
944 | case $ac_top_srcdir in |
---|
945 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
946 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
947 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
948 | esac;; |
---|
949 | esac |
---|
950 | |
---|
951 | cd $ac_dir |
---|
952 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
953 | if test -f $ac_srcdir/configure.gnu; then |
---|
954 | echo |
---|
955 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
956 | elif test -f $ac_srcdir/configure; then |
---|
957 | echo |
---|
958 | $SHELL $ac_srcdir/configure --help=recursive |
---|
959 | elif test -f $ac_srcdir/configure.ac || |
---|
960 | test -f $ac_srcdir/configure.in; then |
---|
961 | echo |
---|
962 | $ac_configure --help |
---|
963 | else |
---|
964 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
965 | fi |
---|
966 | cd $ac_popdir |
---|
967 | done |
---|
968 | fi |
---|
969 | |
---|
970 | test -n "$ac_init_help" && exit 0 |
---|
971 | if $ac_init_version; then |
---|
972 | cat <<\_ACEOF |
---|
973 | orxonox configure 0.1-pre-alpha |
---|
974 | generated by GNU Autoconf 2.59 |
---|
975 | |
---|
976 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
977 | This configure script is free software; the Free Software Foundation |
---|
978 | gives unlimited permission to copy, distribute and modify it. |
---|
979 | _ACEOF |
---|
980 | exit 0 |
---|
981 | fi |
---|
982 | exec 5>config.log |
---|
983 | cat >&5 <<_ACEOF |
---|
984 | This file contains any messages produced by compilers while |
---|
985 | running configure, to aid debugging if configure makes a mistake. |
---|
986 | |
---|
987 | It was created by orxonox $as_me 0.1-pre-alpha, which was |
---|
988 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
989 | |
---|
990 | $ $0 $@ |
---|
991 | |
---|
992 | _ACEOF |
---|
993 | { |
---|
994 | cat <<_ASUNAME |
---|
995 | ## --------- ## |
---|
996 | ## Platform. ## |
---|
997 | ## --------- ## |
---|
998 | |
---|
999 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1000 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1001 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1002 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1003 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1004 | |
---|
1005 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1006 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1007 | |
---|
1008 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1009 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1010 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1011 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1012 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1013 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1014 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1015 | |
---|
1016 | _ASUNAME |
---|
1017 | |
---|
1018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1019 | for as_dir in $PATH |
---|
1020 | do |
---|
1021 | IFS=$as_save_IFS |
---|
1022 | test -z "$as_dir" && as_dir=. |
---|
1023 | echo "PATH: $as_dir" |
---|
1024 | done |
---|
1025 | |
---|
1026 | } >&5 |
---|
1027 | |
---|
1028 | cat >&5 <<_ACEOF |
---|
1029 | |
---|
1030 | |
---|
1031 | ## ----------- ## |
---|
1032 | ## Core tests. ## |
---|
1033 | ## ----------- ## |
---|
1034 | |
---|
1035 | _ACEOF |
---|
1036 | |
---|
1037 | |
---|
1038 | # Keep a trace of the command line. |
---|
1039 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1040 | # Strip out --silent because we don't want to record it for future runs. |
---|
1041 | # Also quote any args containing shell meta-characters. |
---|
1042 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1043 | ac_configure_args= |
---|
1044 | ac_configure_args0= |
---|
1045 | ac_configure_args1= |
---|
1046 | ac_sep= |
---|
1047 | ac_must_keep_next=false |
---|
1048 | for ac_pass in 1 2 |
---|
1049 | do |
---|
1050 | for ac_arg |
---|
1051 | do |
---|
1052 | case $ac_arg in |
---|
1053 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1054 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1055 | | -silent | --silent | --silen | --sile | --sil) |
---|
1056 | continue ;; |
---|
1057 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1058 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1059 | esac |
---|
1060 | case $ac_pass in |
---|
1061 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1062 | 2) |
---|
1063 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1064 | if test $ac_must_keep_next = true; then |
---|
1065 | ac_must_keep_next=false # Got value, back to normal. |
---|
1066 | else |
---|
1067 | case $ac_arg in |
---|
1068 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1069 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1070 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1071 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1072 | case "$ac_configure_args0 " in |
---|
1073 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1074 | esac |
---|
1075 | ;; |
---|
1076 | -* ) ac_must_keep_next=true ;; |
---|
1077 | esac |
---|
1078 | fi |
---|
1079 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1080 | # Get rid of the leading space. |
---|
1081 | ac_sep=" " |
---|
1082 | ;; |
---|
1083 | esac |
---|
1084 | done |
---|
1085 | done |
---|
1086 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1087 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1088 | |
---|
1089 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1090 | # config.log. We remove comments because anyway the quotes in there |
---|
1091 | # would cause problems or look ugly. |
---|
1092 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1093 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1094 | trap 'exit_status=$? |
---|
1095 | # Save into config.log some information that might help in debugging. |
---|
1096 | { |
---|
1097 | echo |
---|
1098 | |
---|
1099 | cat <<\_ASBOX |
---|
1100 | ## ---------------- ## |
---|
1101 | ## Cache variables. ## |
---|
1102 | ## ---------------- ## |
---|
1103 | _ASBOX |
---|
1104 | echo |
---|
1105 | # The following way of writing the cache mishandles newlines in values, |
---|
1106 | { |
---|
1107 | (set) 2>&1 | |
---|
1108 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1109 | *ac_space=\ *) |
---|
1110 | sed -n \ |
---|
1111 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1112 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1113 | ;; |
---|
1114 | *) |
---|
1115 | sed -n \ |
---|
1116 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1117 | ;; |
---|
1118 | esac; |
---|
1119 | } |
---|
1120 | echo |
---|
1121 | |
---|
1122 | cat <<\_ASBOX |
---|
1123 | ## ----------------- ## |
---|
1124 | ## Output variables. ## |
---|
1125 | ## ----------------- ## |
---|
1126 | _ASBOX |
---|
1127 | echo |
---|
1128 | for ac_var in $ac_subst_vars |
---|
1129 | do |
---|
1130 | eval ac_val=$`echo $ac_var` |
---|
1131 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1132 | done | sort |
---|
1133 | echo |
---|
1134 | |
---|
1135 | if test -n "$ac_subst_files"; then |
---|
1136 | cat <<\_ASBOX |
---|
1137 | ## ------------- ## |
---|
1138 | ## Output files. ## |
---|
1139 | ## ------------- ## |
---|
1140 | _ASBOX |
---|
1141 | echo |
---|
1142 | for ac_var in $ac_subst_files |
---|
1143 | do |
---|
1144 | eval ac_val=$`echo $ac_var` |
---|
1145 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1146 | done | sort |
---|
1147 | echo |
---|
1148 | fi |
---|
1149 | |
---|
1150 | if test -s confdefs.h; then |
---|
1151 | cat <<\_ASBOX |
---|
1152 | ## ----------- ## |
---|
1153 | ## confdefs.h. ## |
---|
1154 | ## ----------- ## |
---|
1155 | _ASBOX |
---|
1156 | echo |
---|
1157 | sed "/^$/d" confdefs.h | sort |
---|
1158 | echo |
---|
1159 | fi |
---|
1160 | test "$ac_signal" != 0 && |
---|
1161 | echo "$as_me: caught signal $ac_signal" |
---|
1162 | echo "$as_me: exit $exit_status" |
---|
1163 | } >&5 |
---|
1164 | rm -f core *.core && |
---|
1165 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1166 | exit $exit_status |
---|
1167 | ' 0 |
---|
1168 | for ac_signal in 1 2 13 15; do |
---|
1169 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1170 | done |
---|
1171 | ac_signal=0 |
---|
1172 | |
---|
1173 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1174 | rm -rf conftest* confdefs.h |
---|
1175 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1176 | echo >confdefs.h |
---|
1177 | |
---|
1178 | # Predefined preprocessor variables. |
---|
1179 | |
---|
1180 | cat >>confdefs.h <<_ACEOF |
---|
1181 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1182 | _ACEOF |
---|
1183 | |
---|
1184 | |
---|
1185 | cat >>confdefs.h <<_ACEOF |
---|
1186 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1187 | _ACEOF |
---|
1188 | |
---|
1189 | |
---|
1190 | cat >>confdefs.h <<_ACEOF |
---|
1191 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1192 | _ACEOF |
---|
1193 | |
---|
1194 | |
---|
1195 | cat >>confdefs.h <<_ACEOF |
---|
1196 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1197 | _ACEOF |
---|
1198 | |
---|
1199 | |
---|
1200 | cat >>confdefs.h <<_ACEOF |
---|
1201 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1202 | _ACEOF |
---|
1203 | |
---|
1204 | |
---|
1205 | # Let the site file select an alternate cache file if it wants to. |
---|
1206 | # Prefer explicitly selected file to automatically selected ones. |
---|
1207 | if test -z "$CONFIG_SITE"; then |
---|
1208 | if test "x$prefix" != xNONE; then |
---|
1209 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1210 | else |
---|
1211 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1212 | fi |
---|
1213 | fi |
---|
1214 | for ac_site_file in $CONFIG_SITE; do |
---|
1215 | if test -r "$ac_site_file"; then |
---|
1216 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1217 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1218 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1219 | . "$ac_site_file" |
---|
1220 | fi |
---|
1221 | done |
---|
1222 | |
---|
1223 | if test -r "$cache_file"; then |
---|
1224 | # Some versions of bash will fail to source /dev/null (special |
---|
1225 | # files actually), so we avoid doing that. |
---|
1226 | if test -f "$cache_file"; then |
---|
1227 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1228 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1229 | case $cache_file in |
---|
1230 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1231 | *) . ./$cache_file;; |
---|
1232 | esac |
---|
1233 | fi |
---|
1234 | else |
---|
1235 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1236 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1237 | >$cache_file |
---|
1238 | fi |
---|
1239 | |
---|
1240 | # Check that the precious variables saved in the cache have kept the same |
---|
1241 | # value. |
---|
1242 | ac_cache_corrupted=false |
---|
1243 | for ac_var in `(set) 2>&1 | |
---|
1244 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1245 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1246 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1247 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1248 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1249 | case $ac_old_set,$ac_new_set in |
---|
1250 | set,) |
---|
1251 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1252 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1253 | ac_cache_corrupted=: ;; |
---|
1254 | ,set) |
---|
1255 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1256 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1257 | ac_cache_corrupted=: ;; |
---|
1258 | ,);; |
---|
1259 | *) |
---|
1260 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1261 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1262 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1263 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1264 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1265 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1266 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1267 | ac_cache_corrupted=: |
---|
1268 | fi;; |
---|
1269 | esac |
---|
1270 | # Pass precious variables to config.status. |
---|
1271 | if test "$ac_new_set" = set; then |
---|
1272 | case $ac_new_val in |
---|
1273 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1274 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1275 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1276 | esac |
---|
1277 | case " $ac_configure_args " in |
---|
1278 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1279 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1280 | esac |
---|
1281 | fi |
---|
1282 | done |
---|
1283 | if $ac_cache_corrupted; then |
---|
1284 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1285 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1286 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1287 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1288 | { (exit 1); exit 1; }; } |
---|
1289 | fi |
---|
1290 | |
---|
1291 | ac_ext=c |
---|
1292 | ac_cpp='$CPP $CPPFLAGS' |
---|
1293 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1294 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1295 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1296 | |
---|
1297 | |
---|
1298 | |
---|
1299 | |
---|
1300 | |
---|
1301 | |
---|
1302 | |
---|
1303 | |
---|
1304 | |
---|
1305 | |
---|
1306 | |
---|
1307 | |
---|
1308 | |
---|
1309 | |
---|
1310 | |
---|
1311 | |
---|
1312 | |
---|
1313 | |
---|
1314 | |
---|
1315 | |
---|
1316 | |
---|
1317 | |
---|
1318 | |
---|
1319 | |
---|
1320 | |
---|
1321 | |
---|
1322 | |
---|
1323 | am__api_version="1.7" |
---|
1324 | ac_aux_dir= |
---|
1325 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1326 | if test -f $ac_dir/install-sh; then |
---|
1327 | ac_aux_dir=$ac_dir |
---|
1328 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1329 | break |
---|
1330 | elif test -f $ac_dir/install.sh; then |
---|
1331 | ac_aux_dir=$ac_dir |
---|
1332 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1333 | break |
---|
1334 | elif test -f $ac_dir/shtool; then |
---|
1335 | ac_aux_dir=$ac_dir |
---|
1336 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1337 | break |
---|
1338 | fi |
---|
1339 | done |
---|
1340 | if test -z "$ac_aux_dir"; then |
---|
1341 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1342 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1343 | { (exit 1); exit 1; }; } |
---|
1344 | fi |
---|
1345 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1346 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1347 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1348 | |
---|
1349 | # Find a good install program. We prefer a C program (faster), |
---|
1350 | # so one script is as good as another. But avoid the broken or |
---|
1351 | # incompatible versions: |
---|
1352 | # SysV /etc/install, /usr/sbin/install |
---|
1353 | # SunOS /usr/etc/install |
---|
1354 | # IRIX /sbin/install |
---|
1355 | # AIX /bin/install |
---|
1356 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
1357 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1358 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1359 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1360 | # OS/2's system install, which has a completely different semantic |
---|
1361 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1362 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
1363 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
1364 | if test -z "$INSTALL"; then |
---|
1365 | if test "${ac_cv_path_install+set}" = set; then |
---|
1366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1367 | else |
---|
1368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1369 | for as_dir in $PATH |
---|
1370 | do |
---|
1371 | IFS=$as_save_IFS |
---|
1372 | test -z "$as_dir" && as_dir=. |
---|
1373 | # Account for people who put trailing slashes in PATH elements. |
---|
1374 | case $as_dir/ in |
---|
1375 | ./ | .// | /cC/* | \ |
---|
1376 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
1377 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
1378 | /usr/ucb/* ) ;; |
---|
1379 | *) |
---|
1380 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1381 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1382 | # by default. |
---|
1383 | for ac_prog in ginstall scoinst install; do |
---|
1384 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1385 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
1386 | if test $ac_prog = install && |
---|
1387 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1388 | # AIX install. It has an incompatible calling convention. |
---|
1389 | : |
---|
1390 | elif test $ac_prog = install && |
---|
1391 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1392 | # program-specific install script used by HP pwplus--don't use. |
---|
1393 | : |
---|
1394 | else |
---|
1395 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
1396 | break 3 |
---|
1397 | fi |
---|
1398 | fi |
---|
1399 | done |
---|
1400 | done |
---|
1401 | ;; |
---|
1402 | esac |
---|
1403 | done |
---|
1404 | |
---|
1405 | |
---|
1406 | fi |
---|
1407 | if test "${ac_cv_path_install+set}" = set; then |
---|
1408 | INSTALL=$ac_cv_path_install |
---|
1409 | else |
---|
1410 | # As a last resort, use the slow shell script. We don't cache a |
---|
1411 | # path for INSTALL within a source directory, because that will |
---|
1412 | # break other packages using the cache if that directory is |
---|
1413 | # removed, or if the path is relative. |
---|
1414 | INSTALL=$ac_install_sh |
---|
1415 | fi |
---|
1416 | fi |
---|
1417 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
1418 | echo "${ECHO_T}$INSTALL" >&6 |
---|
1419 | |
---|
1420 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1421 | # It thinks the first close brace ends the variable substitution. |
---|
1422 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1423 | |
---|
1424 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
1425 | |
---|
1426 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1427 | |
---|
1428 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
1429 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
1430 | # Just in case |
---|
1431 | sleep 1 |
---|
1432 | echo timestamp > conftest.file |
---|
1433 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
1434 | # arguments. Must try -L first in case configure is actually a |
---|
1435 | # symlink; some systems play weird games with the mod time of symlinks |
---|
1436 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
1437 | # directory). |
---|
1438 | if ( |
---|
1439 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
1440 | if test "$*" = "X"; then |
---|
1441 | # -L didn't work. |
---|
1442 | set X `ls -t $srcdir/configure conftest.file` |
---|
1443 | fi |
---|
1444 | rm -f conftest.file |
---|
1445 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
1446 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
1447 | |
---|
1448 | # If neither matched, then we have a broken ls. This can happen |
---|
1449 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
1450 | # broken ls alias from the environment. This has actually |
---|
1451 | # happened. Such a system could not be considered "sane". |
---|
1452 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
1453 | alias in your environment" >&5 |
---|
1454 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
1455 | alias in your environment" >&2;} |
---|
1456 | { (exit 1); exit 1; }; } |
---|
1457 | fi |
---|
1458 | |
---|
1459 | test "$2" = conftest.file |
---|
1460 | ) |
---|
1461 | then |
---|
1462 | # Ok. |
---|
1463 | : |
---|
1464 | else |
---|
1465 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
1466 | Check your system clock" >&5 |
---|
1467 | echo "$as_me: error: newly created file is older than distributed files! |
---|
1468 | Check your system clock" >&2;} |
---|
1469 | { (exit 1); exit 1; }; } |
---|
1470 | fi |
---|
1471 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1472 | echo "${ECHO_T}yes" >&6 |
---|
1473 | test "$program_prefix" != NONE && |
---|
1474 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
1475 | # Use a double $ so make ignores it. |
---|
1476 | test "$program_suffix" != NONE && |
---|
1477 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
1478 | # Double any \ or $. echo might interpret backslashes. |
---|
1479 | # By default was `s,x,x', remove it if useless. |
---|
1480 | cat <<\_ACEOF >conftest.sed |
---|
1481 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
1482 | _ACEOF |
---|
1483 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
1484 | rm conftest.sed |
---|
1485 | |
---|
1486 | |
---|
1487 | # expand $ac_aux_dir to an absolute path |
---|
1488 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
1489 | |
---|
1490 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
1491 | # Use eval to expand $SHELL |
---|
1492 | if eval "$MISSING --run true"; then |
---|
1493 | am_missing_run="$MISSING --run " |
---|
1494 | else |
---|
1495 | am_missing_run= |
---|
1496 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
1497 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
1498 | fi |
---|
1499 | |
---|
1500 | for ac_prog in gawk mawk nawk awk |
---|
1501 | do |
---|
1502 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1503 | set dummy $ac_prog; ac_word=$2 |
---|
1504 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1505 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1506 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
1507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1508 | else |
---|
1509 | if test -n "$AWK"; then |
---|
1510 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
1511 | else |
---|
1512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1513 | for as_dir in $PATH |
---|
1514 | do |
---|
1515 | IFS=$as_save_IFS |
---|
1516 | test -z "$as_dir" && as_dir=. |
---|
1517 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1518 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1519 | ac_cv_prog_AWK="$ac_prog" |
---|
1520 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1521 | break 2 |
---|
1522 | fi |
---|
1523 | done |
---|
1524 | done |
---|
1525 | |
---|
1526 | fi |
---|
1527 | fi |
---|
1528 | AWK=$ac_cv_prog_AWK |
---|
1529 | if test -n "$AWK"; then |
---|
1530 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
1531 | echo "${ECHO_T}$AWK" >&6 |
---|
1532 | else |
---|
1533 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1534 | echo "${ECHO_T}no" >&6 |
---|
1535 | fi |
---|
1536 | |
---|
1537 | test -n "$AWK" && break |
---|
1538 | done |
---|
1539 | |
---|
1540 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
1541 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
1542 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
1543 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
1544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1545 | else |
---|
1546 | cat >conftest.make <<\_ACEOF |
---|
1547 | all: |
---|
1548 | @echo 'ac_maketemp="$(MAKE)"' |
---|
1549 | _ACEOF |
---|
1550 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1551 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
1552 | if test -n "$ac_maketemp"; then |
---|
1553 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1554 | else |
---|
1555 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1556 | fi |
---|
1557 | rm -f conftest.make |
---|
1558 | fi |
---|
1559 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1560 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1561 | echo "${ECHO_T}yes" >&6 |
---|
1562 | SET_MAKE= |
---|
1563 | else |
---|
1564 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1565 | echo "${ECHO_T}no" >&6 |
---|
1566 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1567 | fi |
---|
1568 | |
---|
1569 | rm -rf .tst 2>/dev/null |
---|
1570 | mkdir .tst 2>/dev/null |
---|
1571 | if test -d .tst; then |
---|
1572 | am__leading_dot=. |
---|
1573 | else |
---|
1574 | am__leading_dot=_ |
---|
1575 | fi |
---|
1576 | rmdir .tst 2>/dev/null |
---|
1577 | |
---|
1578 | # test to see if srcdir already configured |
---|
1579 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
1580 | test -f $srcdir/config.status; then |
---|
1581 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
1582 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
1583 | { (exit 1); exit 1; }; } |
---|
1584 | fi |
---|
1585 | |
---|
1586 | # test whether we have cygpath |
---|
1587 | if test -z "$CYGPATH_W"; then |
---|
1588 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
1589 | CYGPATH_W='cygpath -w' |
---|
1590 | else |
---|
1591 | CYGPATH_W=echo |
---|
1592 | fi |
---|
1593 | fi |
---|
1594 | |
---|
1595 | |
---|
1596 | # Define the identity of the package. |
---|
1597 | PACKAGE='orxonox' |
---|
1598 | VERSION='0.1-pre-alpha' |
---|
1599 | |
---|
1600 | |
---|
1601 | cat >>confdefs.h <<_ACEOF |
---|
1602 | #define PACKAGE "$PACKAGE" |
---|
1603 | _ACEOF |
---|
1604 | |
---|
1605 | |
---|
1606 | cat >>confdefs.h <<_ACEOF |
---|
1607 | #define VERSION "$VERSION" |
---|
1608 | _ACEOF |
---|
1609 | |
---|
1610 | # Some tools Automake needs. |
---|
1611 | |
---|
1612 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
1613 | |
---|
1614 | |
---|
1615 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
1616 | |
---|
1617 | |
---|
1618 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
1619 | |
---|
1620 | |
---|
1621 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
1622 | |
---|
1623 | |
---|
1624 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
1625 | |
---|
1626 | |
---|
1627 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
1628 | |
---|
1629 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
1630 | |
---|
1631 | # Installed binaries are usually stripped using `strip' when the user |
---|
1632 | # run `make install-strip'. However `strip' might not be the right |
---|
1633 | # tool to use in cross-compilation environments, therefore Automake |
---|
1634 | # will honor the `STRIP' environment variable to overrule this program. |
---|
1635 | if test "$cross_compiling" != no; then |
---|
1636 | if test -n "$ac_tool_prefix"; then |
---|
1637 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
1638 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
1639 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1641 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
1642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1643 | else |
---|
1644 | if test -n "$STRIP"; then |
---|
1645 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
1646 | else |
---|
1647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1648 | for as_dir in $PATH |
---|
1649 | do |
---|
1650 | IFS=$as_save_IFS |
---|
1651 | test -z "$as_dir" && as_dir=. |
---|
1652 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1653 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1654 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
1655 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1656 | break 2 |
---|
1657 | fi |
---|
1658 | done |
---|
1659 | done |
---|
1660 | |
---|
1661 | fi |
---|
1662 | fi |
---|
1663 | STRIP=$ac_cv_prog_STRIP |
---|
1664 | if test -n "$STRIP"; then |
---|
1665 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
1666 | echo "${ECHO_T}$STRIP" >&6 |
---|
1667 | else |
---|
1668 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1669 | echo "${ECHO_T}no" >&6 |
---|
1670 | fi |
---|
1671 | |
---|
1672 | fi |
---|
1673 | if test -z "$ac_cv_prog_STRIP"; then |
---|
1674 | ac_ct_STRIP=$STRIP |
---|
1675 | # Extract the first word of "strip", so it can be a program name with args. |
---|
1676 | set dummy strip; ac_word=$2 |
---|
1677 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1678 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1679 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
1680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1681 | else |
---|
1682 | if test -n "$ac_ct_STRIP"; then |
---|
1683 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
1684 | else |
---|
1685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1686 | for as_dir in $PATH |
---|
1687 | do |
---|
1688 | IFS=$as_save_IFS |
---|
1689 | test -z "$as_dir" && as_dir=. |
---|
1690 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1691 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1692 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
1693 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1694 | break 2 |
---|
1695 | fi |
---|
1696 | done |
---|
1697 | done |
---|
1698 | |
---|
1699 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
1700 | fi |
---|
1701 | fi |
---|
1702 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
1703 | if test -n "$ac_ct_STRIP"; then |
---|
1704 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
1705 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
1706 | else |
---|
1707 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1708 | echo "${ECHO_T}no" >&6 |
---|
1709 | fi |
---|
1710 | |
---|
1711 | STRIP=$ac_ct_STRIP |
---|
1712 | else |
---|
1713 | STRIP="$ac_cv_prog_STRIP" |
---|
1714 | fi |
---|
1715 | |
---|
1716 | fi |
---|
1717 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
1718 | |
---|
1719 | # We need awk for the "check" target. The system "awk" is bad on |
---|
1720 | # some platforms. |
---|
1721 | |
---|
1722 | |
---|
1723 | |
---|
1724 | |
---|
1725 | ac_config_headers="$ac_config_headers config.h" |
---|
1726 | |
---|
1727 | |
---|
1728 | # Checks for programs. |
---|
1729 | ac_ext=cc |
---|
1730 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1731 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1732 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1733 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
1734 | if test -n "$ac_tool_prefix"; then |
---|
1735 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1736 | do |
---|
1737 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1738 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1739 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1740 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1741 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
1742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1743 | else |
---|
1744 | if test -n "$CXX"; then |
---|
1745 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
1746 | else |
---|
1747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1748 | for as_dir in $PATH |
---|
1749 | do |
---|
1750 | IFS=$as_save_IFS |
---|
1751 | test -z "$as_dir" && as_dir=. |
---|
1752 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1753 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1754 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
1755 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1756 | break 2 |
---|
1757 | fi |
---|
1758 | done |
---|
1759 | done |
---|
1760 | |
---|
1761 | fi |
---|
1762 | fi |
---|
1763 | CXX=$ac_cv_prog_CXX |
---|
1764 | if test -n "$CXX"; then |
---|
1765 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
1766 | echo "${ECHO_T}$CXX" >&6 |
---|
1767 | else |
---|
1768 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1769 | echo "${ECHO_T}no" >&6 |
---|
1770 | fi |
---|
1771 | |
---|
1772 | test -n "$CXX" && break |
---|
1773 | done |
---|
1774 | fi |
---|
1775 | if test -z "$CXX"; then |
---|
1776 | ac_ct_CXX=$CXX |
---|
1777 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1778 | do |
---|
1779 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1780 | set dummy $ac_prog; ac_word=$2 |
---|
1781 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1782 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1783 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
1784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1785 | else |
---|
1786 | if test -n "$ac_ct_CXX"; then |
---|
1787 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
1788 | else |
---|
1789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1790 | for as_dir in $PATH |
---|
1791 | do |
---|
1792 | IFS=$as_save_IFS |
---|
1793 | test -z "$as_dir" && as_dir=. |
---|
1794 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1795 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1796 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
1797 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1798 | break 2 |
---|
1799 | fi |
---|
1800 | done |
---|
1801 | done |
---|
1802 | |
---|
1803 | fi |
---|
1804 | fi |
---|
1805 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
1806 | if test -n "$ac_ct_CXX"; then |
---|
1807 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
1808 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
1809 | else |
---|
1810 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1811 | echo "${ECHO_T}no" >&6 |
---|
1812 | fi |
---|
1813 | |
---|
1814 | test -n "$ac_ct_CXX" && break |
---|
1815 | done |
---|
1816 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
1817 | |
---|
1818 | CXX=$ac_ct_CXX |
---|
1819 | fi |
---|
1820 | |
---|
1821 | |
---|
1822 | # Provide some information about the compiler. |
---|
1823 | echo "$as_me:$LINENO:" \ |
---|
1824 | "checking for C++ compiler version" >&5 |
---|
1825 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1826 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1827 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1828 | ac_status=$? |
---|
1829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1830 | (exit $ac_status); } |
---|
1831 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1832 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1833 | ac_status=$? |
---|
1834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1835 | (exit $ac_status); } |
---|
1836 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1837 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1838 | ac_status=$? |
---|
1839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1840 | (exit $ac_status); } |
---|
1841 | |
---|
1842 | cat >conftest.$ac_ext <<_ACEOF |
---|
1843 | /* confdefs.h. */ |
---|
1844 | _ACEOF |
---|
1845 | cat confdefs.h >>conftest.$ac_ext |
---|
1846 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1847 | /* end confdefs.h. */ |
---|
1848 | |
---|
1849 | int |
---|
1850 | main () |
---|
1851 | { |
---|
1852 | |
---|
1853 | ; |
---|
1854 | return 0; |
---|
1855 | } |
---|
1856 | _ACEOF |
---|
1857 | ac_clean_files_save=$ac_clean_files |
---|
1858 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
1859 | # Try to create an executable without -o first, disregard a.out. |
---|
1860 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
1861 | # of exeext. |
---|
1862 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
1863 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
1864 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
1865 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
1866 | (eval $ac_link_default) 2>&5 |
---|
1867 | ac_status=$? |
---|
1868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1869 | (exit $ac_status); }; then |
---|
1870 | # Find the output, starting from the most likely. This scheme is |
---|
1871 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
1872 | # resort. |
---|
1873 | |
---|
1874 | # Be careful to initialize this variable, since it used to be cached. |
---|
1875 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
1876 | ac_cv_exeext= |
---|
1877 | # b.out is created by i960 compilers. |
---|
1878 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
1879 | do |
---|
1880 | test -f "$ac_file" || continue |
---|
1881 | case $ac_file in |
---|
1882 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
1883 | ;; |
---|
1884 | conftest.$ac_ext ) |
---|
1885 | # This is the source file. |
---|
1886 | ;; |
---|
1887 | [ab].out ) |
---|
1888 | # We found the default executable, but exeext='' is most |
---|
1889 | # certainly right. |
---|
1890 | break;; |
---|
1891 | *.* ) |
---|
1892 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
1893 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
1894 | # but it would be cool to find out if it's true. Does anybody |
---|
1895 | # maintain Libtool? --akim. |
---|
1896 | export ac_cv_exeext |
---|
1897 | break;; |
---|
1898 | * ) |
---|
1899 | break;; |
---|
1900 | esac |
---|
1901 | done |
---|
1902 | else |
---|
1903 | echo "$as_me: failed program was:" >&5 |
---|
1904 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1905 | |
---|
1906 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
1907 | See \`config.log' for more details." >&5 |
---|
1908 | echo "$as_me: error: C++ compiler cannot create executables |
---|
1909 | See \`config.log' for more details." >&2;} |
---|
1910 | { (exit 77); exit 77; }; } |
---|
1911 | fi |
---|
1912 | |
---|
1913 | ac_exeext=$ac_cv_exeext |
---|
1914 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
1915 | echo "${ECHO_T}$ac_file" >&6 |
---|
1916 | |
---|
1917 | # Check the compiler produces executables we can run. If not, either |
---|
1918 | # the compiler is broken, or we cross compile. |
---|
1919 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
1920 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
1921 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
1922 | # If not cross compiling, check that we can run a simple program. |
---|
1923 | if test "$cross_compiling" != yes; then |
---|
1924 | if { ac_try='./$ac_file' |
---|
1925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
1926 | (eval $ac_try) 2>&5 |
---|
1927 | ac_status=$? |
---|
1928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1929 | (exit $ac_status); }; }; then |
---|
1930 | cross_compiling=no |
---|
1931 | else |
---|
1932 | if test "$cross_compiling" = maybe; then |
---|
1933 | cross_compiling=yes |
---|
1934 | else |
---|
1935 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
1936 | If you meant to cross compile, use \`--host'. |
---|
1937 | See \`config.log' for more details." >&5 |
---|
1938 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
1939 | If you meant to cross compile, use \`--host'. |
---|
1940 | See \`config.log' for more details." >&2;} |
---|
1941 | { (exit 1); exit 1; }; } |
---|
1942 | fi |
---|
1943 | fi |
---|
1944 | fi |
---|
1945 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1946 | echo "${ECHO_T}yes" >&6 |
---|
1947 | |
---|
1948 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
1949 | ac_clean_files=$ac_clean_files_save |
---|
1950 | # Check the compiler produces executables we can run. If not, either |
---|
1951 | # the compiler is broken, or we cross compile. |
---|
1952 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
1953 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
1954 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
1955 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
1956 | |
---|
1957 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
1958 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
1959 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
1960 | (eval $ac_link) 2>&5 |
---|
1961 | ac_status=$? |
---|
1962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1963 | (exit $ac_status); }; then |
---|
1964 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
1965 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
1966 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
1967 | # `rm'. |
---|
1968 | for ac_file in conftest.exe conftest conftest.*; do |
---|
1969 | test -f "$ac_file" || continue |
---|
1970 | case $ac_file in |
---|
1971 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
1972 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
1973 | export ac_cv_exeext |
---|
1974 | break;; |
---|
1975 | * ) break;; |
---|
1976 | esac |
---|
1977 | done |
---|
1978 | else |
---|
1979 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
1980 | See \`config.log' for more details." >&5 |
---|
1981 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
1982 | See \`config.log' for more details." >&2;} |
---|
1983 | { (exit 1); exit 1; }; } |
---|
1984 | fi |
---|
1985 | |
---|
1986 | rm -f conftest$ac_cv_exeext |
---|
1987 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
1988 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
1989 | |
---|
1990 | rm -f conftest.$ac_ext |
---|
1991 | EXEEXT=$ac_cv_exeext |
---|
1992 | ac_exeext=$EXEEXT |
---|
1993 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
1994 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
1995 | if test "${ac_cv_objext+set}" = set; then |
---|
1996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1997 | else |
---|
1998 | cat >conftest.$ac_ext <<_ACEOF |
---|
1999 | /* confdefs.h. */ |
---|
2000 | _ACEOF |
---|
2001 | cat confdefs.h >>conftest.$ac_ext |
---|
2002 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2003 | /* end confdefs.h. */ |
---|
2004 | |
---|
2005 | int |
---|
2006 | main () |
---|
2007 | { |
---|
2008 | |
---|
2009 | ; |
---|
2010 | return 0; |
---|
2011 | } |
---|
2012 | _ACEOF |
---|
2013 | rm -f conftest.o conftest.obj |
---|
2014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2015 | (eval $ac_compile) 2>&5 |
---|
2016 | ac_status=$? |
---|
2017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2018 | (exit $ac_status); }; then |
---|
2019 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2020 | case $ac_file in |
---|
2021 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2022 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2023 | break;; |
---|
2024 | esac |
---|
2025 | done |
---|
2026 | else |
---|
2027 | echo "$as_me: failed program was:" >&5 |
---|
2028 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2029 | |
---|
2030 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2031 | See \`config.log' for more details." >&5 |
---|
2032 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2033 | See \`config.log' for more details." >&2;} |
---|
2034 | { (exit 1); exit 1; }; } |
---|
2035 | fi |
---|
2036 | |
---|
2037 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2038 | fi |
---|
2039 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2040 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2041 | OBJEXT=$ac_cv_objext |
---|
2042 | ac_objext=$OBJEXT |
---|
2043 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
2044 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
2045 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
2046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2047 | else |
---|
2048 | cat >conftest.$ac_ext <<_ACEOF |
---|
2049 | /* confdefs.h. */ |
---|
2050 | _ACEOF |
---|
2051 | cat confdefs.h >>conftest.$ac_ext |
---|
2052 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2053 | /* end confdefs.h. */ |
---|
2054 | |
---|
2055 | int |
---|
2056 | main () |
---|
2057 | { |
---|
2058 | #ifndef __GNUC__ |
---|
2059 | choke me |
---|
2060 | #endif |
---|
2061 | |
---|
2062 | ; |
---|
2063 | return 0; |
---|
2064 | } |
---|
2065 | _ACEOF |
---|
2066 | rm -f conftest.$ac_objext |
---|
2067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2068 | (eval $ac_compile) 2>conftest.er1 |
---|
2069 | ac_status=$? |
---|
2070 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2071 | rm -f conftest.er1 |
---|
2072 | cat conftest.err >&5 |
---|
2073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2074 | (exit $ac_status); } && |
---|
2075 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2076 | || test ! -s conftest.err' |
---|
2077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2078 | (eval $ac_try) 2>&5 |
---|
2079 | ac_status=$? |
---|
2080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2081 | (exit $ac_status); }; } && |
---|
2082 | { ac_try='test -s conftest.$ac_objext' |
---|
2083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2084 | (eval $ac_try) 2>&5 |
---|
2085 | ac_status=$? |
---|
2086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2087 | (exit $ac_status); }; }; then |
---|
2088 | ac_compiler_gnu=yes |
---|
2089 | else |
---|
2090 | echo "$as_me: failed program was:" >&5 |
---|
2091 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2092 | |
---|
2093 | ac_compiler_gnu=no |
---|
2094 | fi |
---|
2095 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2096 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
2097 | |
---|
2098 | fi |
---|
2099 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
2100 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
2101 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
2102 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
2103 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
2104 | CXXFLAGS="-g" |
---|
2105 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
2106 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
2107 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
2108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2109 | else |
---|
2110 | cat >conftest.$ac_ext <<_ACEOF |
---|
2111 | /* confdefs.h. */ |
---|
2112 | _ACEOF |
---|
2113 | cat confdefs.h >>conftest.$ac_ext |
---|
2114 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2115 | /* end confdefs.h. */ |
---|
2116 | |
---|
2117 | int |
---|
2118 | main () |
---|
2119 | { |
---|
2120 | |
---|
2121 | ; |
---|
2122 | return 0; |
---|
2123 | } |
---|
2124 | _ACEOF |
---|
2125 | rm -f conftest.$ac_objext |
---|
2126 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2127 | (eval $ac_compile) 2>conftest.er1 |
---|
2128 | ac_status=$? |
---|
2129 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2130 | rm -f conftest.er1 |
---|
2131 | cat conftest.err >&5 |
---|
2132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2133 | (exit $ac_status); } && |
---|
2134 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2135 | || test ! -s conftest.err' |
---|
2136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2137 | (eval $ac_try) 2>&5 |
---|
2138 | ac_status=$? |
---|
2139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2140 | (exit $ac_status); }; } && |
---|
2141 | { ac_try='test -s conftest.$ac_objext' |
---|
2142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2143 | (eval $ac_try) 2>&5 |
---|
2144 | ac_status=$? |
---|
2145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2146 | (exit $ac_status); }; }; then |
---|
2147 | ac_cv_prog_cxx_g=yes |
---|
2148 | else |
---|
2149 | echo "$as_me: failed program was:" >&5 |
---|
2150 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2151 | |
---|
2152 | ac_cv_prog_cxx_g=no |
---|
2153 | fi |
---|
2154 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2155 | fi |
---|
2156 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
2157 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
2158 | if test "$ac_test_CXXFLAGS" = set; then |
---|
2159 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
2160 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
2161 | if test "$GXX" = yes; then |
---|
2162 | CXXFLAGS="-g -O2" |
---|
2163 | else |
---|
2164 | CXXFLAGS="-g" |
---|
2165 | fi |
---|
2166 | else |
---|
2167 | if test "$GXX" = yes; then |
---|
2168 | CXXFLAGS="-O2" |
---|
2169 | else |
---|
2170 | CXXFLAGS= |
---|
2171 | fi |
---|
2172 | fi |
---|
2173 | for ac_declaration in \ |
---|
2174 | '' \ |
---|
2175 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2176 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2177 | 'extern "C" void exit (int) throw ();' \ |
---|
2178 | 'extern "C" void exit (int);' \ |
---|
2179 | 'void exit (int);' |
---|
2180 | do |
---|
2181 | cat >conftest.$ac_ext <<_ACEOF |
---|
2182 | /* confdefs.h. */ |
---|
2183 | _ACEOF |
---|
2184 | cat confdefs.h >>conftest.$ac_ext |
---|
2185 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2186 | /* end confdefs.h. */ |
---|
2187 | $ac_declaration |
---|
2188 | #include <stdlib.h> |
---|
2189 | int |
---|
2190 | main () |
---|
2191 | { |
---|
2192 | exit (42); |
---|
2193 | ; |
---|
2194 | return 0; |
---|
2195 | } |
---|
2196 | _ACEOF |
---|
2197 | rm -f conftest.$ac_objext |
---|
2198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2199 | (eval $ac_compile) 2>conftest.er1 |
---|
2200 | ac_status=$? |
---|
2201 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2202 | rm -f conftest.er1 |
---|
2203 | cat conftest.err >&5 |
---|
2204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2205 | (exit $ac_status); } && |
---|
2206 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2207 | || test ! -s conftest.err' |
---|
2208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2209 | (eval $ac_try) 2>&5 |
---|
2210 | ac_status=$? |
---|
2211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2212 | (exit $ac_status); }; } && |
---|
2213 | { ac_try='test -s conftest.$ac_objext' |
---|
2214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2215 | (eval $ac_try) 2>&5 |
---|
2216 | ac_status=$? |
---|
2217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2218 | (exit $ac_status); }; }; then |
---|
2219 | : |
---|
2220 | else |
---|
2221 | echo "$as_me: failed program was:" >&5 |
---|
2222 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2223 | |
---|
2224 | continue |
---|
2225 | fi |
---|
2226 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2227 | cat >conftest.$ac_ext <<_ACEOF |
---|
2228 | /* confdefs.h. */ |
---|
2229 | _ACEOF |
---|
2230 | cat confdefs.h >>conftest.$ac_ext |
---|
2231 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2232 | /* end confdefs.h. */ |
---|
2233 | $ac_declaration |
---|
2234 | int |
---|
2235 | main () |
---|
2236 | { |
---|
2237 | exit (42); |
---|
2238 | ; |
---|
2239 | return 0; |
---|
2240 | } |
---|
2241 | _ACEOF |
---|
2242 | rm -f conftest.$ac_objext |
---|
2243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2244 | (eval $ac_compile) 2>conftest.er1 |
---|
2245 | ac_status=$? |
---|
2246 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2247 | rm -f conftest.er1 |
---|
2248 | cat conftest.err >&5 |
---|
2249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2250 | (exit $ac_status); } && |
---|
2251 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2252 | || test ! -s conftest.err' |
---|
2253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2254 | (eval $ac_try) 2>&5 |
---|
2255 | ac_status=$? |
---|
2256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2257 | (exit $ac_status); }; } && |
---|
2258 | { ac_try='test -s conftest.$ac_objext' |
---|
2259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2260 | (eval $ac_try) 2>&5 |
---|
2261 | ac_status=$? |
---|
2262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2263 | (exit $ac_status); }; }; then |
---|
2264 | break |
---|
2265 | else |
---|
2266 | echo "$as_me: failed program was:" >&5 |
---|
2267 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2268 | |
---|
2269 | fi |
---|
2270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2271 | done |
---|
2272 | rm -f conftest* |
---|
2273 | if test -n "$ac_declaration"; then |
---|
2274 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2275 | echo $ac_declaration >>confdefs.h |
---|
2276 | echo '#endif' >>confdefs.h |
---|
2277 | fi |
---|
2278 | |
---|
2279 | ac_ext=c |
---|
2280 | ac_cpp='$CPP $CPPFLAGS' |
---|
2281 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2282 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2283 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2284 | DEPDIR="${am__leading_dot}deps" |
---|
2285 | |
---|
2286 | ac_config_commands="$ac_config_commands depfiles" |
---|
2287 | |
---|
2288 | |
---|
2289 | am_make=${MAKE-make} |
---|
2290 | cat > confinc << 'END' |
---|
2291 | am__doit: |
---|
2292 | @echo done |
---|
2293 | .PHONY: am__doit |
---|
2294 | END |
---|
2295 | # If we don't find an include directive, just comment out the code. |
---|
2296 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
2297 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
2298 | am__include="#" |
---|
2299 | am__quote= |
---|
2300 | _am_result=none |
---|
2301 | # First try GNU make style include. |
---|
2302 | echo "include confinc" > confmf |
---|
2303 | # We grep out `Entering directory' and `Leaving directory' |
---|
2304 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
2305 | # In particular we don't look at `^make:' because GNU make might |
---|
2306 | # be invoked under some other name (usually "gmake"), in which |
---|
2307 | # case it prints its new name instead of `make'. |
---|
2308 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
2309 | am__include=include |
---|
2310 | am__quote= |
---|
2311 | _am_result=GNU |
---|
2312 | fi |
---|
2313 | # Now try BSD make style include. |
---|
2314 | if test "$am__include" = "#"; then |
---|
2315 | echo '.include "confinc"' > confmf |
---|
2316 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
2317 | am__include=.include |
---|
2318 | am__quote="\"" |
---|
2319 | _am_result=BSD |
---|
2320 | fi |
---|
2321 | fi |
---|
2322 | |
---|
2323 | |
---|
2324 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
2325 | echo "${ECHO_T}$_am_result" >&6 |
---|
2326 | rm -f confinc confmf |
---|
2327 | |
---|
2328 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
2329 | if test "${enable_dependency_tracking+set}" = set; then |
---|
2330 | enableval="$enable_dependency_tracking" |
---|
2331 | |
---|
2332 | fi; |
---|
2333 | if test "x$enable_dependency_tracking" != xno; then |
---|
2334 | am_depcomp="$ac_aux_dir/depcomp" |
---|
2335 | AMDEPBACKSLASH='\' |
---|
2336 | fi |
---|
2337 | |
---|
2338 | |
---|
2339 | if test "x$enable_dependency_tracking" != xno; then |
---|
2340 | AMDEP_TRUE= |
---|
2341 | AMDEP_FALSE='#' |
---|
2342 | else |
---|
2343 | AMDEP_TRUE='#' |
---|
2344 | AMDEP_FALSE= |
---|
2345 | fi |
---|
2346 | |
---|
2347 | |
---|
2348 | |
---|
2349 | |
---|
2350 | depcc="$CXX" am_compiler_list= |
---|
2351 | |
---|
2352 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
2353 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
2354 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
2355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2356 | else |
---|
2357 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
2358 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
2359 | # making bogus files that we don't know about and never remove. For |
---|
2360 | # instance it was reported that on HP-UX the gcc test will end up |
---|
2361 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
2362 | # in D'. |
---|
2363 | mkdir conftest.dir |
---|
2364 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
2365 | # using a relative directory. |
---|
2366 | cp "$am_depcomp" conftest.dir |
---|
2367 | cd conftest.dir |
---|
2368 | # We will build objects and dependencies in a subdirectory because |
---|
2369 | # it helps to detect inapplicable dependency modes. For instance |
---|
2370 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
2371 | # side effect of compilation, but ICC will put the dependencies in |
---|
2372 | # the current directory while Tru64 will put them in the object |
---|
2373 | # directory. |
---|
2374 | mkdir sub |
---|
2375 | |
---|
2376 | am_cv_CXX_dependencies_compiler_type=none |
---|
2377 | if test "$am_compiler_list" = ""; then |
---|
2378 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
2379 | fi |
---|
2380 | for depmode in $am_compiler_list; do |
---|
2381 | # Setup a source with many dependencies, because some compilers |
---|
2382 | # like to wrap large dependency lists on column 80 (with \), and |
---|
2383 | # we should not choose a depcomp mode which is confused by this. |
---|
2384 | # |
---|
2385 | # We need to recreate these files for each test, as the compiler may |
---|
2386 | # overwrite some of them when testing with obscure command lines. |
---|
2387 | # This happens at least with the AIX C compiler. |
---|
2388 | : > sub/conftest.c |
---|
2389 | for i in 1 2 3 4 5 6; do |
---|
2390 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
2391 | : > sub/conftst$i.h |
---|
2392 | done |
---|
2393 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
2394 | |
---|
2395 | case $depmode in |
---|
2396 | nosideeffect) |
---|
2397 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
2398 | # only be used when explicitly requested |
---|
2399 | if test "x$enable_dependency_tracking" = xyes; then |
---|
2400 | continue |
---|
2401 | else |
---|
2402 | break |
---|
2403 | fi |
---|
2404 | ;; |
---|
2405 | none) break ;; |
---|
2406 | esac |
---|
2407 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
2408 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
2409 | # handle `-M -o', and we need to detect this. |
---|
2410 | if depmode=$depmode \ |
---|
2411 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
2412 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
2413 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
2414 | >/dev/null 2>conftest.err && |
---|
2415 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
2416 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
2417 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
2418 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
2419 | # (even with -Werror). So we grep stderr for any message |
---|
2420 | # that says an option was ignored. |
---|
2421 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
2422 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
2423 | break |
---|
2424 | fi |
---|
2425 | fi |
---|
2426 | done |
---|
2427 | |
---|
2428 | cd .. |
---|
2429 | rm -rf conftest.dir |
---|
2430 | else |
---|
2431 | am_cv_CXX_dependencies_compiler_type=none |
---|
2432 | fi |
---|
2433 | |
---|
2434 | fi |
---|
2435 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
2436 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
2437 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
2438 | |
---|
2439 | |
---|
2440 | |
---|
2441 | if |
---|
2442 | test "x$enable_dependency_tracking" != xno \ |
---|
2443 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
2444 | am__fastdepCXX_TRUE= |
---|
2445 | am__fastdepCXX_FALSE='#' |
---|
2446 | else |
---|
2447 | am__fastdepCXX_TRUE='#' |
---|
2448 | am__fastdepCXX_FALSE= |
---|
2449 | fi |
---|
2450 | |
---|
2451 | |
---|
2452 | ac_ext=c |
---|
2453 | ac_cpp='$CPP $CPPFLAGS' |
---|
2454 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2455 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2456 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2457 | if test -n "$ac_tool_prefix"; then |
---|
2458 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2459 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2460 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2461 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2462 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2464 | else |
---|
2465 | if test -n "$CC"; then |
---|
2466 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2467 | else |
---|
2468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2469 | for as_dir in $PATH |
---|
2470 | do |
---|
2471 | IFS=$as_save_IFS |
---|
2472 | test -z "$as_dir" && as_dir=. |
---|
2473 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2474 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2475 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2476 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2477 | break 2 |
---|
2478 | fi |
---|
2479 | done |
---|
2480 | done |
---|
2481 | |
---|
2482 | fi |
---|
2483 | fi |
---|
2484 | CC=$ac_cv_prog_CC |
---|
2485 | if test -n "$CC"; then |
---|
2486 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2487 | echo "${ECHO_T}$CC" >&6 |
---|
2488 | else |
---|
2489 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2490 | echo "${ECHO_T}no" >&6 |
---|
2491 | fi |
---|
2492 | |
---|
2493 | fi |
---|
2494 | if test -z "$ac_cv_prog_CC"; then |
---|
2495 | ac_ct_CC=$CC |
---|
2496 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2497 | set dummy gcc; ac_word=$2 |
---|
2498 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2499 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2500 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2502 | else |
---|
2503 | if test -n "$ac_ct_CC"; then |
---|
2504 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2505 | else |
---|
2506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2507 | for as_dir in $PATH |
---|
2508 | do |
---|
2509 | IFS=$as_save_IFS |
---|
2510 | test -z "$as_dir" && as_dir=. |
---|
2511 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2512 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2513 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2514 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2515 | break 2 |
---|
2516 | fi |
---|
2517 | done |
---|
2518 | done |
---|
2519 | |
---|
2520 | fi |
---|
2521 | fi |
---|
2522 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2523 | if test -n "$ac_ct_CC"; then |
---|
2524 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2525 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2526 | else |
---|
2527 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2528 | echo "${ECHO_T}no" >&6 |
---|
2529 | fi |
---|
2530 | |
---|
2531 | CC=$ac_ct_CC |
---|
2532 | else |
---|
2533 | CC="$ac_cv_prog_CC" |
---|
2534 | fi |
---|
2535 | |
---|
2536 | if test -z "$CC"; then |
---|
2537 | if test -n "$ac_tool_prefix"; then |
---|
2538 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2539 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2540 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2541 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2542 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2544 | else |
---|
2545 | if test -n "$CC"; then |
---|
2546 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2547 | else |
---|
2548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2549 | for as_dir in $PATH |
---|
2550 | do |
---|
2551 | IFS=$as_save_IFS |
---|
2552 | test -z "$as_dir" && as_dir=. |
---|
2553 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2554 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2555 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2556 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2557 | break 2 |
---|
2558 | fi |
---|
2559 | done |
---|
2560 | done |
---|
2561 | |
---|
2562 | fi |
---|
2563 | fi |
---|
2564 | CC=$ac_cv_prog_CC |
---|
2565 | if test -n "$CC"; then |
---|
2566 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2567 | echo "${ECHO_T}$CC" >&6 |
---|
2568 | else |
---|
2569 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2570 | echo "${ECHO_T}no" >&6 |
---|
2571 | fi |
---|
2572 | |
---|
2573 | fi |
---|
2574 | if test -z "$ac_cv_prog_CC"; then |
---|
2575 | ac_ct_CC=$CC |
---|
2576 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2577 | set dummy cc; ac_word=$2 |
---|
2578 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2579 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2580 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2582 | else |
---|
2583 | if test -n "$ac_ct_CC"; then |
---|
2584 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2585 | else |
---|
2586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2587 | for as_dir in $PATH |
---|
2588 | do |
---|
2589 | IFS=$as_save_IFS |
---|
2590 | test -z "$as_dir" && as_dir=. |
---|
2591 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2592 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2593 | ac_cv_prog_ac_ct_CC="cc" |
---|
2594 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2595 | break 2 |
---|
2596 | fi |
---|
2597 | done |
---|
2598 | done |
---|
2599 | |
---|
2600 | fi |
---|
2601 | fi |
---|
2602 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2603 | if test -n "$ac_ct_CC"; then |
---|
2604 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2605 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2606 | else |
---|
2607 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2608 | echo "${ECHO_T}no" >&6 |
---|
2609 | fi |
---|
2610 | |
---|
2611 | CC=$ac_ct_CC |
---|
2612 | else |
---|
2613 | CC="$ac_cv_prog_CC" |
---|
2614 | fi |
---|
2615 | |
---|
2616 | fi |
---|
2617 | if test -z "$CC"; then |
---|
2618 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2619 | set dummy cc; ac_word=$2 |
---|
2620 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2621 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2622 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2624 | else |
---|
2625 | if test -n "$CC"; then |
---|
2626 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2627 | else |
---|
2628 | ac_prog_rejected=no |
---|
2629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2630 | for as_dir in $PATH |
---|
2631 | do |
---|
2632 | IFS=$as_save_IFS |
---|
2633 | test -z "$as_dir" && as_dir=. |
---|
2634 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2635 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2636 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2637 | ac_prog_rejected=yes |
---|
2638 | continue |
---|
2639 | fi |
---|
2640 | ac_cv_prog_CC="cc" |
---|
2641 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2642 | break 2 |
---|
2643 | fi |
---|
2644 | done |
---|
2645 | done |
---|
2646 | |
---|
2647 | if test $ac_prog_rejected = yes; then |
---|
2648 | # We found a bogon in the path, so make sure we never use it. |
---|
2649 | set dummy $ac_cv_prog_CC |
---|
2650 | shift |
---|
2651 | if test $# != 0; then |
---|
2652 | # We chose a different compiler from the bogus one. |
---|
2653 | # However, it has the same basename, so the bogon will be chosen |
---|
2654 | # first if we set CC to just the basename; use the full file name. |
---|
2655 | shift |
---|
2656 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2657 | fi |
---|
2658 | fi |
---|
2659 | fi |
---|
2660 | fi |
---|
2661 | CC=$ac_cv_prog_CC |
---|
2662 | if test -n "$CC"; then |
---|
2663 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2664 | echo "${ECHO_T}$CC" >&6 |
---|
2665 | else |
---|
2666 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2667 | echo "${ECHO_T}no" >&6 |
---|
2668 | fi |
---|
2669 | |
---|
2670 | fi |
---|
2671 | if test -z "$CC"; then |
---|
2672 | if test -n "$ac_tool_prefix"; then |
---|
2673 | for ac_prog in cl |
---|
2674 | do |
---|
2675 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2676 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2677 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2678 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2679 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2681 | else |
---|
2682 | if test -n "$CC"; then |
---|
2683 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2684 | else |
---|
2685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2686 | for as_dir in $PATH |
---|
2687 | do |
---|
2688 | IFS=$as_save_IFS |
---|
2689 | test -z "$as_dir" && as_dir=. |
---|
2690 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2691 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2692 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2693 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2694 | break 2 |
---|
2695 | fi |
---|
2696 | done |
---|
2697 | done |
---|
2698 | |
---|
2699 | fi |
---|
2700 | fi |
---|
2701 | CC=$ac_cv_prog_CC |
---|
2702 | if test -n "$CC"; then |
---|
2703 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2704 | echo "${ECHO_T}$CC" >&6 |
---|
2705 | else |
---|
2706 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2707 | echo "${ECHO_T}no" >&6 |
---|
2708 | fi |
---|
2709 | |
---|
2710 | test -n "$CC" && break |
---|
2711 | done |
---|
2712 | fi |
---|
2713 | if test -z "$CC"; then |
---|
2714 | ac_ct_CC=$CC |
---|
2715 | for ac_prog in cl |
---|
2716 | do |
---|
2717 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2718 | set dummy $ac_prog; ac_word=$2 |
---|
2719 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2720 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2721 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2723 | else |
---|
2724 | if test -n "$ac_ct_CC"; then |
---|
2725 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2726 | else |
---|
2727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2728 | for as_dir in $PATH |
---|
2729 | do |
---|
2730 | IFS=$as_save_IFS |
---|
2731 | test -z "$as_dir" && as_dir=. |
---|
2732 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2733 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2734 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2735 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2736 | break 2 |
---|
2737 | fi |
---|
2738 | done |
---|
2739 | done |
---|
2740 | |
---|
2741 | fi |
---|
2742 | fi |
---|
2743 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2744 | if test -n "$ac_ct_CC"; then |
---|
2745 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2746 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2747 | else |
---|
2748 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2749 | echo "${ECHO_T}no" >&6 |
---|
2750 | fi |
---|
2751 | |
---|
2752 | test -n "$ac_ct_CC" && break |
---|
2753 | done |
---|
2754 | |
---|
2755 | CC=$ac_ct_CC |
---|
2756 | fi |
---|
2757 | |
---|
2758 | fi |
---|
2759 | |
---|
2760 | |
---|
2761 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2762 | See \`config.log' for more details." >&5 |
---|
2763 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2764 | See \`config.log' for more details." >&2;} |
---|
2765 | { (exit 1); exit 1; }; } |
---|
2766 | |
---|
2767 | # Provide some information about the compiler. |
---|
2768 | echo "$as_me:$LINENO:" \ |
---|
2769 | "checking for C compiler version" >&5 |
---|
2770 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2771 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2772 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2773 | ac_status=$? |
---|
2774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2775 | (exit $ac_status); } |
---|
2776 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2777 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2778 | ac_status=$? |
---|
2779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2780 | (exit $ac_status); } |
---|
2781 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2782 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2783 | ac_status=$? |
---|
2784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2785 | (exit $ac_status); } |
---|
2786 | |
---|
2787 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2788 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2789 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2791 | else |
---|
2792 | cat >conftest.$ac_ext <<_ACEOF |
---|
2793 | /* confdefs.h. */ |
---|
2794 | _ACEOF |
---|
2795 | cat confdefs.h >>conftest.$ac_ext |
---|
2796 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2797 | /* end confdefs.h. */ |
---|
2798 | |
---|
2799 | int |
---|
2800 | main () |
---|
2801 | { |
---|
2802 | #ifndef __GNUC__ |
---|
2803 | choke me |
---|
2804 | #endif |
---|
2805 | |
---|
2806 | ; |
---|
2807 | return 0; |
---|
2808 | } |
---|
2809 | _ACEOF |
---|
2810 | rm -f conftest.$ac_objext |
---|
2811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2812 | (eval $ac_compile) 2>conftest.er1 |
---|
2813 | ac_status=$? |
---|
2814 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2815 | rm -f conftest.er1 |
---|
2816 | cat conftest.err >&5 |
---|
2817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2818 | (exit $ac_status); } && |
---|
2819 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2820 | || test ! -s conftest.err' |
---|
2821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2822 | (eval $ac_try) 2>&5 |
---|
2823 | ac_status=$? |
---|
2824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2825 | (exit $ac_status); }; } && |
---|
2826 | { ac_try='test -s conftest.$ac_objext' |
---|
2827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2828 | (eval $ac_try) 2>&5 |
---|
2829 | ac_status=$? |
---|
2830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2831 | (exit $ac_status); }; }; then |
---|
2832 | ac_compiler_gnu=yes |
---|
2833 | else |
---|
2834 | echo "$as_me: failed program was:" >&5 |
---|
2835 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2836 | |
---|
2837 | ac_compiler_gnu=no |
---|
2838 | fi |
---|
2839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2840 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2841 | |
---|
2842 | fi |
---|
2843 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2844 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2845 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2846 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2847 | ac_save_CFLAGS=$CFLAGS |
---|
2848 | CFLAGS="-g" |
---|
2849 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2850 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2851 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2853 | else |
---|
2854 | cat >conftest.$ac_ext <<_ACEOF |
---|
2855 | /* confdefs.h. */ |
---|
2856 | _ACEOF |
---|
2857 | cat confdefs.h >>conftest.$ac_ext |
---|
2858 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2859 | /* end confdefs.h. */ |
---|
2860 | |
---|
2861 | int |
---|
2862 | main () |
---|
2863 | { |
---|
2864 | |
---|
2865 | ; |
---|
2866 | return 0; |
---|
2867 | } |
---|
2868 | _ACEOF |
---|
2869 | rm -f conftest.$ac_objext |
---|
2870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2871 | (eval $ac_compile) 2>conftest.er1 |
---|
2872 | ac_status=$? |
---|
2873 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2874 | rm -f conftest.er1 |
---|
2875 | cat conftest.err >&5 |
---|
2876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2877 | (exit $ac_status); } && |
---|
2878 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2879 | || test ! -s conftest.err' |
---|
2880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2881 | (eval $ac_try) 2>&5 |
---|
2882 | ac_status=$? |
---|
2883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2884 | (exit $ac_status); }; } && |
---|
2885 | { ac_try='test -s conftest.$ac_objext' |
---|
2886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2887 | (eval $ac_try) 2>&5 |
---|
2888 | ac_status=$? |
---|
2889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2890 | (exit $ac_status); }; }; then |
---|
2891 | ac_cv_prog_cc_g=yes |
---|
2892 | else |
---|
2893 | echo "$as_me: failed program was:" >&5 |
---|
2894 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2895 | |
---|
2896 | ac_cv_prog_cc_g=no |
---|
2897 | fi |
---|
2898 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2899 | fi |
---|
2900 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2901 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2902 | if test "$ac_test_CFLAGS" = set; then |
---|
2903 | CFLAGS=$ac_save_CFLAGS |
---|
2904 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2905 | if test "$GCC" = yes; then |
---|
2906 | CFLAGS="-g -O2" |
---|
2907 | else |
---|
2908 | CFLAGS="-g" |
---|
2909 | fi |
---|
2910 | else |
---|
2911 | if test "$GCC" = yes; then |
---|
2912 | CFLAGS="-O2" |
---|
2913 | else |
---|
2914 | CFLAGS= |
---|
2915 | fi |
---|
2916 | fi |
---|
2917 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2918 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2919 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2921 | else |
---|
2922 | ac_cv_prog_cc_stdc=no |
---|
2923 | ac_save_CC=$CC |
---|
2924 | cat >conftest.$ac_ext <<_ACEOF |
---|
2925 | /* confdefs.h. */ |
---|
2926 | _ACEOF |
---|
2927 | cat confdefs.h >>conftest.$ac_ext |
---|
2928 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2929 | /* end confdefs.h. */ |
---|
2930 | #include <stdarg.h> |
---|
2931 | #include <stdio.h> |
---|
2932 | #include <sys/types.h> |
---|
2933 | #include <sys/stat.h> |
---|
2934 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2935 | struct buf { int x; }; |
---|
2936 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2937 | static char *e (p, i) |
---|
2938 | char **p; |
---|
2939 | int i; |
---|
2940 | { |
---|
2941 | return p[i]; |
---|
2942 | } |
---|
2943 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2944 | { |
---|
2945 | char *s; |
---|
2946 | va_list v; |
---|
2947 | va_start (v,p); |
---|
2948 | s = g (p, va_arg (v,int)); |
---|
2949 | va_end (v); |
---|
2950 | return s; |
---|
2951 | } |
---|
2952 | |
---|
2953 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2954 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2955 | These don't provoke an error unfortunately, instead are silently treated |
---|
2956 | as 'x'. The following induces an error, until -std1 is added to get |
---|
2957 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2958 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2959 | that's true only with -std1. */ |
---|
2960 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2961 | |
---|
2962 | int test (int i, double x); |
---|
2963 | struct s1 {int (*f) (int a);}; |
---|
2964 | struct s2 {int (*f) (double a);}; |
---|
2965 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2966 | int argc; |
---|
2967 | char **argv; |
---|
2968 | int |
---|
2969 | main () |
---|
2970 | { |
---|
2971 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2972 | ; |
---|
2973 | return 0; |
---|
2974 | } |
---|
2975 | _ACEOF |
---|
2976 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2977 | # breaks some systems' header files. |
---|
2978 | # AIX -qlanglvl=ansi |
---|
2979 | # Ultrix and OSF/1 -std1 |
---|
2980 | # HP-UX 10.20 and later -Ae |
---|
2981 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2982 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2983 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2984 | do |
---|
2985 | CC="$ac_save_CC $ac_arg" |
---|
2986 | rm -f conftest.$ac_objext |
---|
2987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2988 | (eval $ac_compile) 2>conftest.er1 |
---|
2989 | ac_status=$? |
---|
2990 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2991 | rm -f conftest.er1 |
---|
2992 | cat conftest.err >&5 |
---|
2993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2994 | (exit $ac_status); } && |
---|
2995 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2996 | || test ! -s conftest.err' |
---|
2997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2998 | (eval $ac_try) 2>&5 |
---|
2999 | ac_status=$? |
---|
3000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3001 | (exit $ac_status); }; } && |
---|
3002 | { ac_try='test -s conftest.$ac_objext' |
---|
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); }; }; then |
---|
3008 | ac_cv_prog_cc_stdc=$ac_arg |
---|
3009 | break |
---|
3010 | else |
---|
3011 | echo "$as_me: failed program was:" >&5 |
---|
3012 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3013 | |
---|
3014 | fi |
---|
3015 | rm -f conftest.err conftest.$ac_objext |
---|
3016 | done |
---|
3017 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
3018 | CC=$ac_save_CC |
---|
3019 | |
---|
3020 | fi |
---|
3021 | |
---|
3022 | case "x$ac_cv_prog_cc_stdc" in |
---|
3023 | x|xno) |
---|
3024 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
3025 | echo "${ECHO_T}none needed" >&6 ;; |
---|
3026 | *) |
---|
3027 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
3028 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
3029 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
3030 | esac |
---|
3031 | |
---|
3032 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
3033 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
3034 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
3035 | # the declaration of exit, since it's the most demanding environment. |
---|
3036 | cat >conftest.$ac_ext <<_ACEOF |
---|
3037 | #ifndef __cplusplus |
---|
3038 | choke me |
---|
3039 | #endif |
---|
3040 | _ACEOF |
---|
3041 | rm -f conftest.$ac_objext |
---|
3042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3043 | (eval $ac_compile) 2>conftest.er1 |
---|
3044 | ac_status=$? |
---|
3045 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3046 | rm -f conftest.er1 |
---|
3047 | cat conftest.err >&5 |
---|
3048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3049 | (exit $ac_status); } && |
---|
3050 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3051 | || test ! -s conftest.err' |
---|
3052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3053 | (eval $ac_try) 2>&5 |
---|
3054 | ac_status=$? |
---|
3055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3056 | (exit $ac_status); }; } && |
---|
3057 | { ac_try='test -s conftest.$ac_objext' |
---|
3058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3059 | (eval $ac_try) 2>&5 |
---|
3060 | ac_status=$? |
---|
3061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3062 | (exit $ac_status); }; }; then |
---|
3063 | for ac_declaration in \ |
---|
3064 | '' \ |
---|
3065 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
3066 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
3067 | 'extern "C" void exit (int) throw ();' \ |
---|
3068 | 'extern "C" void exit (int);' \ |
---|
3069 | 'void exit (int);' |
---|
3070 | do |
---|
3071 | cat >conftest.$ac_ext <<_ACEOF |
---|
3072 | /* confdefs.h. */ |
---|
3073 | _ACEOF |
---|
3074 | cat confdefs.h >>conftest.$ac_ext |
---|
3075 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3076 | /* end confdefs.h. */ |
---|
3077 | $ac_declaration |
---|
3078 | #include <stdlib.h> |
---|
3079 | int |
---|
3080 | main () |
---|
3081 | { |
---|
3082 | exit (42); |
---|
3083 | ; |
---|
3084 | return 0; |
---|
3085 | } |
---|
3086 | _ACEOF |
---|
3087 | rm -f conftest.$ac_objext |
---|
3088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3089 | (eval $ac_compile) 2>conftest.er1 |
---|
3090 | ac_status=$? |
---|
3091 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3092 | rm -f conftest.er1 |
---|
3093 | cat conftest.err >&5 |
---|
3094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3095 | (exit $ac_status); } && |
---|
3096 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3097 | || test ! -s conftest.err' |
---|
3098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3099 | (eval $ac_try) 2>&5 |
---|
3100 | ac_status=$? |
---|
3101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3102 | (exit $ac_status); }; } && |
---|
3103 | { ac_try='test -s conftest.$ac_objext' |
---|
3104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3105 | (eval $ac_try) 2>&5 |
---|
3106 | ac_status=$? |
---|
3107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3108 | (exit $ac_status); }; }; then |
---|
3109 | : |
---|
3110 | else |
---|
3111 | echo "$as_me: failed program was:" >&5 |
---|
3112 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3113 | |
---|
3114 | continue |
---|
3115 | fi |
---|
3116 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3117 | cat >conftest.$ac_ext <<_ACEOF |
---|
3118 | /* confdefs.h. */ |
---|
3119 | _ACEOF |
---|
3120 | cat confdefs.h >>conftest.$ac_ext |
---|
3121 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3122 | /* end confdefs.h. */ |
---|
3123 | $ac_declaration |
---|
3124 | int |
---|
3125 | main () |
---|
3126 | { |
---|
3127 | exit (42); |
---|
3128 | ; |
---|
3129 | return 0; |
---|
3130 | } |
---|
3131 | _ACEOF |
---|
3132 | rm -f conftest.$ac_objext |
---|
3133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3134 | (eval $ac_compile) 2>conftest.er1 |
---|
3135 | ac_status=$? |
---|
3136 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3137 | rm -f conftest.er1 |
---|
3138 | cat conftest.err >&5 |
---|
3139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3140 | (exit $ac_status); } && |
---|
3141 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3142 | || test ! -s conftest.err' |
---|
3143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3144 | (eval $ac_try) 2>&5 |
---|
3145 | ac_status=$? |
---|
3146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3147 | (exit $ac_status); }; } && |
---|
3148 | { ac_try='test -s conftest.$ac_objext' |
---|
3149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3150 | (eval $ac_try) 2>&5 |
---|
3151 | ac_status=$? |
---|
3152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3153 | (exit $ac_status); }; }; then |
---|
3154 | break |
---|
3155 | else |
---|
3156 | echo "$as_me: failed program was:" >&5 |
---|
3157 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3158 | |
---|
3159 | fi |
---|
3160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3161 | done |
---|
3162 | rm -f conftest* |
---|
3163 | if test -n "$ac_declaration"; then |
---|
3164 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
3165 | echo $ac_declaration >>confdefs.h |
---|
3166 | echo '#endif' >>confdefs.h |
---|
3167 | fi |
---|
3168 | |
---|
3169 | else |
---|
3170 | echo "$as_me: failed program was:" >&5 |
---|
3171 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3172 | |
---|
3173 | fi |
---|
3174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3175 | ac_ext=c |
---|
3176 | ac_cpp='$CPP $CPPFLAGS' |
---|
3177 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3178 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3179 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3180 | |
---|
3181 | depcc="$CC" am_compiler_list= |
---|
3182 | |
---|
3183 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3184 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
3185 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
3186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3187 | else |
---|
3188 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3189 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3190 | # making bogus files that we don't know about and never remove. For |
---|
3191 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3192 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3193 | # in D'. |
---|
3194 | mkdir conftest.dir |
---|
3195 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3196 | # using a relative directory. |
---|
3197 | cp "$am_depcomp" conftest.dir |
---|
3198 | cd conftest.dir |
---|
3199 | # We will build objects and dependencies in a subdirectory because |
---|
3200 | # it helps to detect inapplicable dependency modes. For instance |
---|
3201 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3202 | # side effect of compilation, but ICC will put the dependencies in |
---|
3203 | # the current directory while Tru64 will put them in the object |
---|
3204 | # directory. |
---|
3205 | mkdir sub |
---|
3206 | |
---|
3207 | am_cv_CC_dependencies_compiler_type=none |
---|
3208 | if test "$am_compiler_list" = ""; then |
---|
3209 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3210 | fi |
---|
3211 | for depmode in $am_compiler_list; do |
---|
3212 | # Setup a source with many dependencies, because some compilers |
---|
3213 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3214 | # we should not choose a depcomp mode which is confused by this. |
---|
3215 | # |
---|
3216 | # We need to recreate these files for each test, as the compiler may |
---|
3217 | # overwrite some of them when testing with obscure command lines. |
---|
3218 | # This happens at least with the AIX C compiler. |
---|
3219 | : > sub/conftest.c |
---|
3220 | for i in 1 2 3 4 5 6; do |
---|
3221 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3222 | : > sub/conftst$i.h |
---|
3223 | done |
---|
3224 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3225 | |
---|
3226 | case $depmode in |
---|
3227 | nosideeffect) |
---|
3228 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3229 | # only be used when explicitly requested |
---|
3230 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3231 | continue |
---|
3232 | else |
---|
3233 | break |
---|
3234 | fi |
---|
3235 | ;; |
---|
3236 | none) break ;; |
---|
3237 | esac |
---|
3238 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3239 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3240 | # handle `-M -o', and we need to detect this. |
---|
3241 | if depmode=$depmode \ |
---|
3242 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3243 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3244 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3245 | >/dev/null 2>conftest.err && |
---|
3246 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3247 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3248 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3249 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3250 | # (even with -Werror). So we grep stderr for any message |
---|
3251 | # that says an option was ignored. |
---|
3252 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
3253 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
3254 | break |
---|
3255 | fi |
---|
3256 | fi |
---|
3257 | done |
---|
3258 | |
---|
3259 | cd .. |
---|
3260 | rm -rf conftest.dir |
---|
3261 | else |
---|
3262 | am_cv_CC_dependencies_compiler_type=none |
---|
3263 | fi |
---|
3264 | |
---|
3265 | fi |
---|
3266 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
3267 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
3268 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
3269 | |
---|
3270 | |
---|
3271 | |
---|
3272 | if |
---|
3273 | test "x$enable_dependency_tracking" != xno \ |
---|
3274 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
3275 | am__fastdepCC_TRUE= |
---|
3276 | am__fastdepCC_FALSE='#' |
---|
3277 | else |
---|
3278 | am__fastdepCC_TRUE='#' |
---|
3279 | am__fastdepCC_FALSE= |
---|
3280 | fi |
---|
3281 | |
---|
3282 | |
---|
3283 | |
---|
3284 | # Checks for libraries. |
---|
3285 | |
---|
3286 | # cheking for libGL |
---|
3287 | # checking for Unix GL |
---|
3288 | |
---|
3289 | echo "$as_me:$LINENO: checking for glPushMatrix in -lGL" >&5 |
---|
3290 | echo $ECHO_N "checking for glPushMatrix in -lGL... $ECHO_C" >&6 |
---|
3291 | if test "${ac_cv_lib_GL_glPushMatrix+set}" = set; then |
---|
3292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3293 | else |
---|
3294 | ac_check_lib_save_LIBS=$LIBS |
---|
3295 | LIBS="-lGL $LIBS" |
---|
3296 | cat >conftest.$ac_ext <<_ACEOF |
---|
3297 | /* confdefs.h. */ |
---|
3298 | _ACEOF |
---|
3299 | cat confdefs.h >>conftest.$ac_ext |
---|
3300 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3301 | /* end confdefs.h. */ |
---|
3302 | |
---|
3303 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3304 | #ifdef __cplusplus |
---|
3305 | extern "C" |
---|
3306 | #endif |
---|
3307 | /* We use char because int might match the return type of a gcc2 |
---|
3308 | builtin and then its argument prototype would still apply. */ |
---|
3309 | char glPushMatrix (); |
---|
3310 | int |
---|
3311 | main () |
---|
3312 | { |
---|
3313 | glPushMatrix (); |
---|
3314 | ; |
---|
3315 | return 0; |
---|
3316 | } |
---|
3317 | _ACEOF |
---|
3318 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3319 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3320 | (eval $ac_link) 2>conftest.er1 |
---|
3321 | ac_status=$? |
---|
3322 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3323 | rm -f conftest.er1 |
---|
3324 | cat conftest.err >&5 |
---|
3325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3326 | (exit $ac_status); } && |
---|
3327 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3328 | || test ! -s conftest.err' |
---|
3329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3330 | (eval $ac_try) 2>&5 |
---|
3331 | ac_status=$? |
---|
3332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3333 | (exit $ac_status); }; } && |
---|
3334 | { ac_try='test -s conftest$ac_exeext' |
---|
3335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3336 | (eval $ac_try) 2>&5 |
---|
3337 | ac_status=$? |
---|
3338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3339 | (exit $ac_status); }; }; then |
---|
3340 | ac_cv_lib_GL_glPushMatrix=yes |
---|
3341 | else |
---|
3342 | echo "$as_me: failed program was:" >&5 |
---|
3343 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3344 | |
---|
3345 | ac_cv_lib_GL_glPushMatrix=no |
---|
3346 | fi |
---|
3347 | rm -f conftest.err conftest.$ac_objext \ |
---|
3348 | conftest$ac_exeext conftest.$ac_ext |
---|
3349 | LIBS=$ac_check_lib_save_LIBS |
---|
3350 | fi |
---|
3351 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glPushMatrix" >&5 |
---|
3352 | echo "${ECHO_T}$ac_cv_lib_GL_glPushMatrix" >&6 |
---|
3353 | if test $ac_cv_lib_GL_glPushMatrix = yes; then |
---|
3354 | FOUND_GL=yes |
---|
3355 | fi |
---|
3356 | |
---|
3357 | if test "$FOUND_GL" = "yes" ; then |
---|
3358 | LIBS="$LIBS -lGL" |
---|
3359 | # checking for Windows openGl library |
---|
3360 | else |
---|
3361 | echo "We did not find the Linux opengl Library. Checking for Windows Library" |
---|
3362 | echo "$as_me:$LINENO: checking for glPushMatrix in -lopengl32" >&5 |
---|
3363 | echo $ECHO_N "checking for glPushMatrix in -lopengl32... $ECHO_C" >&6 |
---|
3364 | if test "${ac_cv_lib_opengl32_glPushMatrix+set}" = set; then |
---|
3365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3366 | else |
---|
3367 | ac_check_lib_save_LIBS=$LIBS |
---|
3368 | LIBS="-lopengl32 $LIBS" |
---|
3369 | cat >conftest.$ac_ext <<_ACEOF |
---|
3370 | /* confdefs.h. */ |
---|
3371 | _ACEOF |
---|
3372 | cat confdefs.h >>conftest.$ac_ext |
---|
3373 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3374 | /* end confdefs.h. */ |
---|
3375 | |
---|
3376 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3377 | #ifdef __cplusplus |
---|
3378 | extern "C" |
---|
3379 | #endif |
---|
3380 | /* We use char because int might match the return type of a gcc2 |
---|
3381 | builtin and then its argument prototype would still apply. */ |
---|
3382 | char glPushMatrix (); |
---|
3383 | int |
---|
3384 | main () |
---|
3385 | { |
---|
3386 | glPushMatrix (); |
---|
3387 | ; |
---|
3388 | return 0; |
---|
3389 | } |
---|
3390 | _ACEOF |
---|
3391 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3392 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3393 | (eval $ac_link) 2>conftest.er1 |
---|
3394 | ac_status=$? |
---|
3395 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3396 | rm -f conftest.er1 |
---|
3397 | cat conftest.err >&5 |
---|
3398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3399 | (exit $ac_status); } && |
---|
3400 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3401 | || test ! -s conftest.err' |
---|
3402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3403 | (eval $ac_try) 2>&5 |
---|
3404 | ac_status=$? |
---|
3405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3406 | (exit $ac_status); }; } && |
---|
3407 | { ac_try='test -s conftest$ac_exeext' |
---|
3408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3409 | (eval $ac_try) 2>&5 |
---|
3410 | ac_status=$? |
---|
3411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3412 | (exit $ac_status); }; }; then |
---|
3413 | ac_cv_lib_opengl32_glPushMatrix=yes |
---|
3414 | else |
---|
3415 | echo "$as_me: failed program was:" >&5 |
---|
3416 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3417 | |
---|
3418 | ac_cv_lib_opengl32_glPushMatrix=no |
---|
3419 | fi |
---|
3420 | rm -f conftest.err conftest.$ac_objext \ |
---|
3421 | conftest$ac_exeext conftest.$ac_ext |
---|
3422 | LIBS=$ac_check_lib_save_LIBS |
---|
3423 | fi |
---|
3424 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_glPushMatrix" >&5 |
---|
3425 | echo "${ECHO_T}$ac_cv_lib_opengl32_glPushMatrix" >&6 |
---|
3426 | if test $ac_cv_lib_opengl32_glPushMatrix = yes; then |
---|
3427 | FOUND_opengl=yes |
---|
3428 | fi |
---|
3429 | |
---|
3430 | if test "$FOUND_opengl" = "yes" ; then |
---|
3431 | LIBS="$LIBS -lopengl32" |
---|
3432 | |
---|
3433 | else |
---|
3434 | echo "------------------" |
---|
3435 | echo "opengl not found." |
---|
3436 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
3437 | echo "------------------" |
---|
3438 | exit -1 |
---|
3439 | fi |
---|
3440 | fi |
---|
3441 | |
---|
3442 | # cheking for libGLU |
---|
3443 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
3444 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
3445 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
3446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3447 | else |
---|
3448 | ac_check_lib_save_LIBS=$LIBS |
---|
3449 | LIBS="-lGLU $LIBS" |
---|
3450 | cat >conftest.$ac_ext <<_ACEOF |
---|
3451 | /* confdefs.h. */ |
---|
3452 | _ACEOF |
---|
3453 | cat confdefs.h >>conftest.$ac_ext |
---|
3454 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3455 | /* end confdefs.h. */ |
---|
3456 | |
---|
3457 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3458 | #ifdef __cplusplus |
---|
3459 | extern "C" |
---|
3460 | #endif |
---|
3461 | /* We use char because int might match the return type of a gcc2 |
---|
3462 | builtin and then its argument prototype would still apply. */ |
---|
3463 | char gluProject (); |
---|
3464 | int |
---|
3465 | main () |
---|
3466 | { |
---|
3467 | gluProject (); |
---|
3468 | ; |
---|
3469 | return 0; |
---|
3470 | } |
---|
3471 | _ACEOF |
---|
3472 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3473 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3474 | (eval $ac_link) 2>conftest.er1 |
---|
3475 | ac_status=$? |
---|
3476 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3477 | rm -f conftest.er1 |
---|
3478 | cat conftest.err >&5 |
---|
3479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3480 | (exit $ac_status); } && |
---|
3481 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3482 | || test ! -s conftest.err' |
---|
3483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3484 | (eval $ac_try) 2>&5 |
---|
3485 | ac_status=$? |
---|
3486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3487 | (exit $ac_status); }; } && |
---|
3488 | { ac_try='test -s conftest$ac_exeext' |
---|
3489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3490 | (eval $ac_try) 2>&5 |
---|
3491 | ac_status=$? |
---|
3492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3493 | (exit $ac_status); }; }; then |
---|
3494 | ac_cv_lib_GLU_gluProject=yes |
---|
3495 | else |
---|
3496 | echo "$as_me: failed program was:" >&5 |
---|
3497 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3498 | |
---|
3499 | ac_cv_lib_GLU_gluProject=no |
---|
3500 | fi |
---|
3501 | rm -f conftest.err conftest.$ac_objext \ |
---|
3502 | conftest$ac_exeext conftest.$ac_ext |
---|
3503 | LIBS=$ac_check_lib_save_LIBS |
---|
3504 | fi |
---|
3505 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
3506 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
3507 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
3508 | FOUND_GLU=yes |
---|
3509 | fi |
---|
3510 | |
---|
3511 | if test "$FOUND_GLU" = "yes" ; then |
---|
3512 | LIBS="$LIBS -lGLU" |
---|
3513 | # checking for Windows GLU32 library |
---|
3514 | else |
---|
3515 | echo "We did not find the Linux GLU Library. Checking for Windows Library" |
---|
3516 | echo "$as_me:$LINENO: checking for glPushMatrix in -lGLU32" >&5 |
---|
3517 | echo $ECHO_N "checking for glPushMatrix in -lGLU32... $ECHO_C" >&6 |
---|
3518 | if test "${ac_cv_lib_GLU32_glPushMatrix+set}" = set; then |
---|
3519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3520 | else |
---|
3521 | ac_check_lib_save_LIBS=$LIBS |
---|
3522 | LIBS="-lGLU32 $LIBS" |
---|
3523 | cat >conftest.$ac_ext <<_ACEOF |
---|
3524 | /* confdefs.h. */ |
---|
3525 | _ACEOF |
---|
3526 | cat confdefs.h >>conftest.$ac_ext |
---|
3527 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3528 | /* end confdefs.h. */ |
---|
3529 | |
---|
3530 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3531 | #ifdef __cplusplus |
---|
3532 | extern "C" |
---|
3533 | #endif |
---|
3534 | /* We use char because int might match the return type of a gcc2 |
---|
3535 | builtin and then its argument prototype would still apply. */ |
---|
3536 | char glPushMatrix (); |
---|
3537 | int |
---|
3538 | main () |
---|
3539 | { |
---|
3540 | glPushMatrix (); |
---|
3541 | ; |
---|
3542 | return 0; |
---|
3543 | } |
---|
3544 | _ACEOF |
---|
3545 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3546 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3547 | (eval $ac_link) 2>conftest.er1 |
---|
3548 | ac_status=$? |
---|
3549 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3550 | rm -f conftest.er1 |
---|
3551 | cat conftest.err >&5 |
---|
3552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3553 | (exit $ac_status); } && |
---|
3554 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3555 | || test ! -s conftest.err' |
---|
3556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3557 | (eval $ac_try) 2>&5 |
---|
3558 | ac_status=$? |
---|
3559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3560 | (exit $ac_status); }; } && |
---|
3561 | { ac_try='test -s conftest$ac_exeext' |
---|
3562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3563 | (eval $ac_try) 2>&5 |
---|
3564 | ac_status=$? |
---|
3565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3566 | (exit $ac_status); }; }; then |
---|
3567 | ac_cv_lib_GLU32_glPushMatrix=yes |
---|
3568 | else |
---|
3569 | echo "$as_me: failed program was:" >&5 |
---|
3570 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3571 | |
---|
3572 | ac_cv_lib_GLU32_glPushMatrix=no |
---|
3573 | fi |
---|
3574 | rm -f conftest.err conftest.$ac_objext \ |
---|
3575 | conftest$ac_exeext conftest.$ac_ext |
---|
3576 | LIBS=$ac_check_lib_save_LIBS |
---|
3577 | fi |
---|
3578 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU32_glPushMatrix" >&5 |
---|
3579 | echo "${ECHO_T}$ac_cv_lib_GLU32_glPushMatrix" >&6 |
---|
3580 | if test $ac_cv_lib_GLU32_glPushMatrix = yes; then |
---|
3581 | FOUND_GLU32=yes |
---|
3582 | fi |
---|
3583 | |
---|
3584 | if test "$FOUND_GLU32" = "yes" ; then |
---|
3585 | LIBS="$LIBS -lGLU32" |
---|
3586 | |
---|
3587 | else |
---|
3588 | echo "------------------" |
---|
3589 | echo "GLU library not found." |
---|
3590 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
3591 | echo "------------------" |
---|
3592 | exit -1 |
---|
3593 | fi |
---|
3594 | fi |
---|
3595 | # FIXME: Replace `main' with a function in `-lOSMesa': |
---|
3596 | |
---|
3597 | echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5 |
---|
3598 | echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6 |
---|
3599 | if test "${ac_cv_lib_OSMesa_main+set}" = set; then |
---|
3600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3601 | else |
---|
3602 | ac_check_lib_save_LIBS=$LIBS |
---|
3603 | LIBS="-lOSMesa $LIBS" |
---|
3604 | cat >conftest.$ac_ext <<_ACEOF |
---|
3605 | /* confdefs.h. */ |
---|
3606 | _ACEOF |
---|
3607 | cat confdefs.h >>conftest.$ac_ext |
---|
3608 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3609 | /* end confdefs.h. */ |
---|
3610 | |
---|
3611 | |
---|
3612 | int |
---|
3613 | main () |
---|
3614 | { |
---|
3615 | main (); |
---|
3616 | ; |
---|
3617 | return 0; |
---|
3618 | } |
---|
3619 | _ACEOF |
---|
3620 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3622 | (eval $ac_link) 2>conftest.er1 |
---|
3623 | ac_status=$? |
---|
3624 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3625 | rm -f conftest.er1 |
---|
3626 | cat conftest.err >&5 |
---|
3627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3628 | (exit $ac_status); } && |
---|
3629 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3630 | || test ! -s conftest.err' |
---|
3631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3632 | (eval $ac_try) 2>&5 |
---|
3633 | ac_status=$? |
---|
3634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3635 | (exit $ac_status); }; } && |
---|
3636 | { ac_try='test -s conftest$ac_exeext' |
---|
3637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3638 | (eval $ac_try) 2>&5 |
---|
3639 | ac_status=$? |
---|
3640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3641 | (exit $ac_status); }; }; then |
---|
3642 | ac_cv_lib_OSMesa_main=yes |
---|
3643 | else |
---|
3644 | echo "$as_me: failed program was:" >&5 |
---|
3645 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3646 | |
---|
3647 | ac_cv_lib_OSMesa_main=no |
---|
3648 | fi |
---|
3649 | rm -f conftest.err conftest.$ac_objext \ |
---|
3650 | conftest$ac_exeext conftest.$ac_ext |
---|
3651 | LIBS=$ac_check_lib_save_LIBS |
---|
3652 | fi |
---|
3653 | echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&5 |
---|
3654 | echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&6 |
---|
3655 | if test $ac_cv_lib_OSMesa_main = yes; then |
---|
3656 | cat >>confdefs.h <<_ACEOF |
---|
3657 | #define HAVE_LIBOSMESA 1 |
---|
3658 | _ACEOF |
---|
3659 | |
---|
3660 | LIBS="-lOSMesa $LIBS" |
---|
3661 | |
---|
3662 | fi |
---|
3663 | |
---|
3664 | # FIXME: Replace `main' with a function in `-lX11': |
---|
3665 | |
---|
3666 | echo "$as_me:$LINENO: checking for main in -lX11" >&5 |
---|
3667 | echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6 |
---|
3668 | if test "${ac_cv_lib_X11_main+set}" = set; then |
---|
3669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3670 | else |
---|
3671 | ac_check_lib_save_LIBS=$LIBS |
---|
3672 | LIBS="-lX11 $LIBS" |
---|
3673 | cat >conftest.$ac_ext <<_ACEOF |
---|
3674 | /* confdefs.h. */ |
---|
3675 | _ACEOF |
---|
3676 | cat confdefs.h >>conftest.$ac_ext |
---|
3677 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3678 | /* end confdefs.h. */ |
---|
3679 | |
---|
3680 | |
---|
3681 | int |
---|
3682 | main () |
---|
3683 | { |
---|
3684 | main (); |
---|
3685 | ; |
---|
3686 | return 0; |
---|
3687 | } |
---|
3688 | _ACEOF |
---|
3689 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3691 | (eval $ac_link) 2>conftest.er1 |
---|
3692 | ac_status=$? |
---|
3693 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3694 | rm -f conftest.er1 |
---|
3695 | cat conftest.err >&5 |
---|
3696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3697 | (exit $ac_status); } && |
---|
3698 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3699 | || test ! -s conftest.err' |
---|
3700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3701 | (eval $ac_try) 2>&5 |
---|
3702 | ac_status=$? |
---|
3703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3704 | (exit $ac_status); }; } && |
---|
3705 | { ac_try='test -s conftest$ac_exeext' |
---|
3706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3707 | (eval $ac_try) 2>&5 |
---|
3708 | ac_status=$? |
---|
3709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3710 | (exit $ac_status); }; }; then |
---|
3711 | ac_cv_lib_X11_main=yes |
---|
3712 | else |
---|
3713 | echo "$as_me: failed program was:" >&5 |
---|
3714 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3715 | |
---|
3716 | ac_cv_lib_X11_main=no |
---|
3717 | fi |
---|
3718 | rm -f conftest.err conftest.$ac_objext \ |
---|
3719 | conftest$ac_exeext conftest.$ac_ext |
---|
3720 | LIBS=$ac_check_lib_save_LIBS |
---|
3721 | fi |
---|
3722 | echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5 |
---|
3723 | echo "${ECHO_T}$ac_cv_lib_X11_main" >&6 |
---|
3724 | if test $ac_cv_lib_X11_main = yes; then |
---|
3725 | cat >>confdefs.h <<_ACEOF |
---|
3726 | #define HAVE_LIBX11 1 |
---|
3727 | _ACEOF |
---|
3728 | |
---|
3729 | LIBS="-lX11 $LIBS" |
---|
3730 | |
---|
3731 | fi |
---|
3732 | |
---|
3733 | # FIXME: Replace `main' with a function in `-lXt': |
---|
3734 | |
---|
3735 | echo "$as_me:$LINENO: checking for main in -lXt" >&5 |
---|
3736 | echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6 |
---|
3737 | if test "${ac_cv_lib_Xt_main+set}" = set; then |
---|
3738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3739 | else |
---|
3740 | ac_check_lib_save_LIBS=$LIBS |
---|
3741 | LIBS="-lXt $LIBS" |
---|
3742 | cat >conftest.$ac_ext <<_ACEOF |
---|
3743 | /* confdefs.h. */ |
---|
3744 | _ACEOF |
---|
3745 | cat confdefs.h >>conftest.$ac_ext |
---|
3746 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3747 | /* end confdefs.h. */ |
---|
3748 | |
---|
3749 | |
---|
3750 | int |
---|
3751 | main () |
---|
3752 | { |
---|
3753 | main (); |
---|
3754 | ; |
---|
3755 | return 0; |
---|
3756 | } |
---|
3757 | _ACEOF |
---|
3758 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3759 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3760 | (eval $ac_link) 2>conftest.er1 |
---|
3761 | ac_status=$? |
---|
3762 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3763 | rm -f conftest.er1 |
---|
3764 | cat conftest.err >&5 |
---|
3765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3766 | (exit $ac_status); } && |
---|
3767 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3768 | || test ! -s conftest.err' |
---|
3769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3770 | (eval $ac_try) 2>&5 |
---|
3771 | ac_status=$? |
---|
3772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3773 | (exit $ac_status); }; } && |
---|
3774 | { ac_try='test -s conftest$ac_exeext' |
---|
3775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3776 | (eval $ac_try) 2>&5 |
---|
3777 | ac_status=$? |
---|
3778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3779 | (exit $ac_status); }; }; then |
---|
3780 | ac_cv_lib_Xt_main=yes |
---|
3781 | else |
---|
3782 | echo "$as_me: failed program was:" >&5 |
---|
3783 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3784 | |
---|
3785 | ac_cv_lib_Xt_main=no |
---|
3786 | fi |
---|
3787 | rm -f conftest.err conftest.$ac_objext \ |
---|
3788 | conftest$ac_exeext conftest.$ac_ext |
---|
3789 | LIBS=$ac_check_lib_save_LIBS |
---|
3790 | fi |
---|
3791 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5 |
---|
3792 | echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6 |
---|
3793 | if test $ac_cv_lib_Xt_main = yes; then |
---|
3794 | cat >>confdefs.h <<_ACEOF |
---|
3795 | #define HAVE_LIBXT 1 |
---|
3796 | _ACEOF |
---|
3797 | |
---|
3798 | LIBS="-lXt $LIBS" |
---|
3799 | |
---|
3800 | fi |
---|
3801 | |
---|
3802 | |
---|
3803 | # cheking for libglut32 |
---|
3804 | echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5 |
---|
3805 | echo $ECHO_N "checking for glutInit in -lglut... $ECHO_C" >&6 |
---|
3806 | if test "${ac_cv_lib_glut_glutInit+set}" = set; then |
---|
3807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3808 | else |
---|
3809 | ac_check_lib_save_LIBS=$LIBS |
---|
3810 | LIBS="-lglut $LIBS" |
---|
3811 | cat >conftest.$ac_ext <<_ACEOF |
---|
3812 | /* confdefs.h. */ |
---|
3813 | _ACEOF |
---|
3814 | cat confdefs.h >>conftest.$ac_ext |
---|
3815 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3816 | /* end confdefs.h. */ |
---|
3817 | |
---|
3818 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3819 | #ifdef __cplusplus |
---|
3820 | extern "C" |
---|
3821 | #endif |
---|
3822 | /* We use char because int might match the return type of a gcc2 |
---|
3823 | builtin and then its argument prototype would still apply. */ |
---|
3824 | char glutInit (); |
---|
3825 | int |
---|
3826 | main () |
---|
3827 | { |
---|
3828 | glutInit (); |
---|
3829 | ; |
---|
3830 | return 0; |
---|
3831 | } |
---|
3832 | _ACEOF |
---|
3833 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3834 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3835 | (eval $ac_link) 2>conftest.er1 |
---|
3836 | ac_status=$? |
---|
3837 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3838 | rm -f conftest.er1 |
---|
3839 | cat conftest.err >&5 |
---|
3840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3841 | (exit $ac_status); } && |
---|
3842 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3843 | || test ! -s conftest.err' |
---|
3844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3845 | (eval $ac_try) 2>&5 |
---|
3846 | ac_status=$? |
---|
3847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3848 | (exit $ac_status); }; } && |
---|
3849 | { ac_try='test -s conftest$ac_exeext' |
---|
3850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3851 | (eval $ac_try) 2>&5 |
---|
3852 | ac_status=$? |
---|
3853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3854 | (exit $ac_status); }; }; then |
---|
3855 | ac_cv_lib_glut_glutInit=yes |
---|
3856 | else |
---|
3857 | echo "$as_me: failed program was:" >&5 |
---|
3858 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3859 | |
---|
3860 | ac_cv_lib_glut_glutInit=no |
---|
3861 | fi |
---|
3862 | rm -f conftest.err conftest.$ac_objext \ |
---|
3863 | conftest$ac_exeext conftest.$ac_ext |
---|
3864 | LIBS=$ac_check_lib_save_LIBS |
---|
3865 | fi |
---|
3866 | echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&5 |
---|
3867 | echo "${ECHO_T}$ac_cv_lib_glut_glutInit" >&6 |
---|
3868 | if test $ac_cv_lib_glut_glutInit = yes; then |
---|
3869 | FOUND_glut=yes |
---|
3870 | fi |
---|
3871 | |
---|
3872 | if test "$FOUND_glut" = "yes" ; then |
---|
3873 | LIBS="$LIBS -lglut" |
---|
3874 | # checking for Windows glut32 library |
---|
3875 | else |
---|
3876 | echo "We did not find the Linux glut Library. Checking for Windows Library" |
---|
3877 | echo "$as_me:$LINENO: checking for glPushMatrix in -lglut32" >&5 |
---|
3878 | echo $ECHO_N "checking for glPushMatrix in -lglut32... $ECHO_C" >&6 |
---|
3879 | if test "${ac_cv_lib_glut32_glPushMatrix+set}" = set; then |
---|
3880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3881 | else |
---|
3882 | ac_check_lib_save_LIBS=$LIBS |
---|
3883 | LIBS="-lglut32 $LIBS" |
---|
3884 | cat >conftest.$ac_ext <<_ACEOF |
---|
3885 | /* confdefs.h. */ |
---|
3886 | _ACEOF |
---|
3887 | cat confdefs.h >>conftest.$ac_ext |
---|
3888 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3889 | /* end confdefs.h. */ |
---|
3890 | |
---|
3891 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3892 | #ifdef __cplusplus |
---|
3893 | extern "C" |
---|
3894 | #endif |
---|
3895 | /* We use char because int might match the return type of a gcc2 |
---|
3896 | builtin and then its argument prototype would still apply. */ |
---|
3897 | char glPushMatrix (); |
---|
3898 | int |
---|
3899 | main () |
---|
3900 | { |
---|
3901 | glPushMatrix (); |
---|
3902 | ; |
---|
3903 | return 0; |
---|
3904 | } |
---|
3905 | _ACEOF |
---|
3906 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3907 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3908 | (eval $ac_link) 2>conftest.er1 |
---|
3909 | ac_status=$? |
---|
3910 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3911 | rm -f conftest.er1 |
---|
3912 | cat conftest.err >&5 |
---|
3913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3914 | (exit $ac_status); } && |
---|
3915 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3916 | || test ! -s conftest.err' |
---|
3917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3918 | (eval $ac_try) 2>&5 |
---|
3919 | ac_status=$? |
---|
3920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3921 | (exit $ac_status); }; } && |
---|
3922 | { ac_try='test -s conftest$ac_exeext' |
---|
3923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3924 | (eval $ac_try) 2>&5 |
---|
3925 | ac_status=$? |
---|
3926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3927 | (exit $ac_status); }; }; then |
---|
3928 | ac_cv_lib_glut32_glPushMatrix=yes |
---|
3929 | else |
---|
3930 | echo "$as_me: failed program was:" >&5 |
---|
3931 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3932 | |
---|
3933 | ac_cv_lib_glut32_glPushMatrix=no |
---|
3934 | fi |
---|
3935 | rm -f conftest.err conftest.$ac_objext \ |
---|
3936 | conftest$ac_exeext conftest.$ac_ext |
---|
3937 | LIBS=$ac_check_lib_save_LIBS |
---|
3938 | fi |
---|
3939 | echo "$as_me:$LINENO: result: $ac_cv_lib_glut32_glPushMatrix" >&5 |
---|
3940 | echo "${ECHO_T}$ac_cv_lib_glut32_glPushMatrix" >&6 |
---|
3941 | if test $ac_cv_lib_glut32_glPushMatrix = yes; then |
---|
3942 | FOUND_glut32=yes |
---|
3943 | fi |
---|
3944 | |
---|
3945 | if test "$FOUND_glut32" = "yes" ; then |
---|
3946 | LIBS="$LIBS -lglut32" |
---|
3947 | else |
---|
3948 | echo "------------------" |
---|
3949 | echo "glut library not found." |
---|
3950 | echo "please install the glut library, which can be found at http://www.xmission.com/~nate/glut.html" |
---|
3951 | echo "------------------" |
---|
3952 | exit -1 |
---|
3953 | fi |
---|
3954 | fi |
---|
3955 | |
---|
3956 | # FIXME: Replace `main' with a function in `-lm': |
---|
3957 | |
---|
3958 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
3959 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
3960 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
3961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3962 | else |
---|
3963 | ac_check_lib_save_LIBS=$LIBS |
---|
3964 | LIBS="-lm $LIBS" |
---|
3965 | cat >conftest.$ac_ext <<_ACEOF |
---|
3966 | /* confdefs.h. */ |
---|
3967 | _ACEOF |
---|
3968 | cat confdefs.h >>conftest.$ac_ext |
---|
3969 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3970 | /* end confdefs.h. */ |
---|
3971 | |
---|
3972 | |
---|
3973 | int |
---|
3974 | main () |
---|
3975 | { |
---|
3976 | main (); |
---|
3977 | ; |
---|
3978 | return 0; |
---|
3979 | } |
---|
3980 | _ACEOF |
---|
3981 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3982 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3983 | (eval $ac_link) 2>conftest.er1 |
---|
3984 | ac_status=$? |
---|
3985 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3986 | rm -f conftest.er1 |
---|
3987 | cat conftest.err >&5 |
---|
3988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3989 | (exit $ac_status); } && |
---|
3990 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3991 | || test ! -s conftest.err' |
---|
3992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3993 | (eval $ac_try) 2>&5 |
---|
3994 | ac_status=$? |
---|
3995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3996 | (exit $ac_status); }; } && |
---|
3997 | { ac_try='test -s conftest$ac_exeext' |
---|
3998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3999 | (eval $ac_try) 2>&5 |
---|
4000 | ac_status=$? |
---|
4001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4002 | (exit $ac_status); }; }; then |
---|
4003 | ac_cv_lib_m_main=yes |
---|
4004 | else |
---|
4005 | echo "$as_me: failed program was:" >&5 |
---|
4006 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4007 | |
---|
4008 | ac_cv_lib_m_main=no |
---|
4009 | fi |
---|
4010 | rm -f conftest.err conftest.$ac_objext \ |
---|
4011 | conftest$ac_exeext conftest.$ac_ext |
---|
4012 | LIBS=$ac_check_lib_save_LIBS |
---|
4013 | fi |
---|
4014 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
4015 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
4016 | if test $ac_cv_lib_m_main = yes; then |
---|
4017 | cat >>confdefs.h <<_ACEOF |
---|
4018 | #define HAVE_LIBM 1 |
---|
4019 | _ACEOF |
---|
4020 | |
---|
4021 | LIBS="-lm $LIBS" |
---|
4022 | |
---|
4023 | fi |
---|
4024 | |
---|
4025 | |
---|
4026 | # Checks for header files. |
---|
4027 | ac_ext=c |
---|
4028 | ac_cpp='$CPP $CPPFLAGS' |
---|
4029 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4030 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4031 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4032 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
4033 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
4034 | # On Suns, sometimes $CPP names a directory. |
---|
4035 | if test -n "$CPP" && test -d "$CPP"; then |
---|
4036 | CPP= |
---|
4037 | fi |
---|
4038 | if test -z "$CPP"; then |
---|
4039 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
4040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4041 | else |
---|
4042 | # Double quotes because CPP needs to be expanded |
---|
4043 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
4044 | do |
---|
4045 | ac_preproc_ok=false |
---|
4046 | for ac_c_preproc_warn_flag in '' yes |
---|
4047 | do |
---|
4048 | # Use a header file that comes with gcc, so configuring glibc |
---|
4049 | # with a fresh cross-compiler works. |
---|
4050 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4051 | # <limits.h> exists even on freestanding compilers. |
---|
4052 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4053 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4054 | cat >conftest.$ac_ext <<_ACEOF |
---|
4055 | /* confdefs.h. */ |
---|
4056 | _ACEOF |
---|
4057 | cat confdefs.h >>conftest.$ac_ext |
---|
4058 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4059 | /* end confdefs.h. */ |
---|
4060 | #ifdef __STDC__ |
---|
4061 | # include <limits.h> |
---|
4062 | #else |
---|
4063 | # include <assert.h> |
---|
4064 | #endif |
---|
4065 | Syntax error |
---|
4066 | _ACEOF |
---|
4067 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4068 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4069 | ac_status=$? |
---|
4070 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4071 | rm -f conftest.er1 |
---|
4072 | cat conftest.err >&5 |
---|
4073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4074 | (exit $ac_status); } >/dev/null; then |
---|
4075 | if test -s conftest.err; then |
---|
4076 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4077 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4078 | else |
---|
4079 | ac_cpp_err= |
---|
4080 | fi |
---|
4081 | else |
---|
4082 | ac_cpp_err=yes |
---|
4083 | fi |
---|
4084 | if test -z "$ac_cpp_err"; then |
---|
4085 | : |
---|
4086 | else |
---|
4087 | echo "$as_me: failed program was:" >&5 |
---|
4088 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4089 | |
---|
4090 | # Broken: fails on valid input. |
---|
4091 | continue |
---|
4092 | fi |
---|
4093 | rm -f conftest.err conftest.$ac_ext |
---|
4094 | |
---|
4095 | # OK, works on sane cases. Now check whether non-existent headers |
---|
4096 | # can be detected and how. |
---|
4097 | cat >conftest.$ac_ext <<_ACEOF |
---|
4098 | /* confdefs.h. */ |
---|
4099 | _ACEOF |
---|
4100 | cat confdefs.h >>conftest.$ac_ext |
---|
4101 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4102 | /* end confdefs.h. */ |
---|
4103 | #include <ac_nonexistent.h> |
---|
4104 | _ACEOF |
---|
4105 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4106 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4107 | ac_status=$? |
---|
4108 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4109 | rm -f conftest.er1 |
---|
4110 | cat conftest.err >&5 |
---|
4111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4112 | (exit $ac_status); } >/dev/null; then |
---|
4113 | if test -s conftest.err; then |
---|
4114 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4115 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4116 | else |
---|
4117 | ac_cpp_err= |
---|
4118 | fi |
---|
4119 | else |
---|
4120 | ac_cpp_err=yes |
---|
4121 | fi |
---|
4122 | if test -z "$ac_cpp_err"; then |
---|
4123 | # Broken: success on invalid input. |
---|
4124 | continue |
---|
4125 | else |
---|
4126 | echo "$as_me: failed program was:" >&5 |
---|
4127 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4128 | |
---|
4129 | # Passes both tests. |
---|
4130 | ac_preproc_ok=: |
---|
4131 | break |
---|
4132 | fi |
---|
4133 | rm -f conftest.err conftest.$ac_ext |
---|
4134 | |
---|
4135 | done |
---|
4136 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4137 | rm -f conftest.err conftest.$ac_ext |
---|
4138 | if $ac_preproc_ok; then |
---|
4139 | break |
---|
4140 | fi |
---|
4141 | |
---|
4142 | done |
---|
4143 | ac_cv_prog_CPP=$CPP |
---|
4144 | |
---|
4145 | fi |
---|
4146 | CPP=$ac_cv_prog_CPP |
---|
4147 | else |
---|
4148 | ac_cv_prog_CPP=$CPP |
---|
4149 | fi |
---|
4150 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
4151 | echo "${ECHO_T}$CPP" >&6 |
---|
4152 | ac_preproc_ok=false |
---|
4153 | for ac_c_preproc_warn_flag in '' yes |
---|
4154 | do |
---|
4155 | # Use a header file that comes with gcc, so configuring glibc |
---|
4156 | # with a fresh cross-compiler works. |
---|
4157 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4158 | # <limits.h> exists even on freestanding compilers. |
---|
4159 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4160 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4161 | cat >conftest.$ac_ext <<_ACEOF |
---|
4162 | /* confdefs.h. */ |
---|
4163 | _ACEOF |
---|
4164 | cat confdefs.h >>conftest.$ac_ext |
---|
4165 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4166 | /* end confdefs.h. */ |
---|
4167 | #ifdef __STDC__ |
---|
4168 | # include <limits.h> |
---|
4169 | #else |
---|
4170 | # include <assert.h> |
---|
4171 | #endif |
---|
4172 | Syntax error |
---|
4173 | _ACEOF |
---|
4174 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4175 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4176 | ac_status=$? |
---|
4177 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4178 | rm -f conftest.er1 |
---|
4179 | cat conftest.err >&5 |
---|
4180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4181 | (exit $ac_status); } >/dev/null; then |
---|
4182 | if test -s conftest.err; then |
---|
4183 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4184 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4185 | else |
---|
4186 | ac_cpp_err= |
---|
4187 | fi |
---|
4188 | else |
---|
4189 | ac_cpp_err=yes |
---|
4190 | fi |
---|
4191 | if test -z "$ac_cpp_err"; then |
---|
4192 | : |
---|
4193 | else |
---|
4194 | echo "$as_me: failed program was:" >&5 |
---|
4195 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4196 | |
---|
4197 | # Broken: fails on valid input. |
---|
4198 | continue |
---|
4199 | fi |
---|
4200 | rm -f conftest.err conftest.$ac_ext |
---|
4201 | |
---|
4202 | # OK, works on sane cases. Now check whether non-existent headers |
---|
4203 | # can be detected and how. |
---|
4204 | cat >conftest.$ac_ext <<_ACEOF |
---|
4205 | /* confdefs.h. */ |
---|
4206 | _ACEOF |
---|
4207 | cat confdefs.h >>conftest.$ac_ext |
---|
4208 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4209 | /* end confdefs.h. */ |
---|
4210 | #include <ac_nonexistent.h> |
---|
4211 | _ACEOF |
---|
4212 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4213 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4214 | ac_status=$? |
---|
4215 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4216 | rm -f conftest.er1 |
---|
4217 | cat conftest.err >&5 |
---|
4218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4219 | (exit $ac_status); } >/dev/null; then |
---|
4220 | if test -s conftest.err; then |
---|
4221 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4222 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4223 | else |
---|
4224 | ac_cpp_err= |
---|
4225 | fi |
---|
4226 | else |
---|
4227 | ac_cpp_err=yes |
---|
4228 | fi |
---|
4229 | if test -z "$ac_cpp_err"; then |
---|
4230 | # Broken: success on invalid input. |
---|
4231 | continue |
---|
4232 | else |
---|
4233 | echo "$as_me: failed program was:" >&5 |
---|
4234 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4235 | |
---|
4236 | # Passes both tests. |
---|
4237 | ac_preproc_ok=: |
---|
4238 | break |
---|
4239 | fi |
---|
4240 | rm -f conftest.err conftest.$ac_ext |
---|
4241 | |
---|
4242 | done |
---|
4243 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4244 | rm -f conftest.err conftest.$ac_ext |
---|
4245 | if $ac_preproc_ok; then |
---|
4246 | : |
---|
4247 | else |
---|
4248 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
4249 | See \`config.log' for more details." >&5 |
---|
4250 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
4251 | See \`config.log' for more details." >&2;} |
---|
4252 | { (exit 1); exit 1; }; } |
---|
4253 | fi |
---|
4254 | |
---|
4255 | ac_ext=c |
---|
4256 | ac_cpp='$CPP $CPPFLAGS' |
---|
4257 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4258 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4259 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4260 | |
---|
4261 | |
---|
4262 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
4263 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
4264 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
4265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4266 | else |
---|
4267 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
4268 | then ac_cv_prog_egrep='grep -E' |
---|
4269 | else ac_cv_prog_egrep='egrep' |
---|
4270 | fi |
---|
4271 | fi |
---|
4272 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
4273 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
4274 | EGREP=$ac_cv_prog_egrep |
---|
4275 | |
---|
4276 | |
---|
4277 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
4278 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
4279 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
4280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4281 | else |
---|
4282 | cat >conftest.$ac_ext <<_ACEOF |
---|
4283 | /* confdefs.h. */ |
---|
4284 | _ACEOF |
---|
4285 | cat confdefs.h >>conftest.$ac_ext |
---|
4286 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4287 | /* end confdefs.h. */ |
---|
4288 | #include <stdlib.h> |
---|
4289 | #include <stdarg.h> |
---|
4290 | #include <string.h> |
---|
4291 | #include <float.h> |
---|
4292 | |
---|
4293 | int |
---|
4294 | main () |
---|
4295 | { |
---|
4296 | |
---|
4297 | ; |
---|
4298 | return 0; |
---|
4299 | } |
---|
4300 | _ACEOF |
---|
4301 | rm -f conftest.$ac_objext |
---|
4302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4303 | (eval $ac_compile) 2>conftest.er1 |
---|
4304 | ac_status=$? |
---|
4305 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4306 | rm -f conftest.er1 |
---|
4307 | cat conftest.err >&5 |
---|
4308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4309 | (exit $ac_status); } && |
---|
4310 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4311 | || test ! -s conftest.err' |
---|
4312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4313 | (eval $ac_try) 2>&5 |
---|
4314 | ac_status=$? |
---|
4315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4316 | (exit $ac_status); }; } && |
---|
4317 | { ac_try='test -s conftest.$ac_objext' |
---|
4318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4319 | (eval $ac_try) 2>&5 |
---|
4320 | ac_status=$? |
---|
4321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4322 | (exit $ac_status); }; }; then |
---|
4323 | ac_cv_header_stdc=yes |
---|
4324 | else |
---|
4325 | echo "$as_me: failed program was:" >&5 |
---|
4326 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4327 | |
---|
4328 | ac_cv_header_stdc=no |
---|
4329 | fi |
---|
4330 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4331 | |
---|
4332 | if test $ac_cv_header_stdc = yes; then |
---|
4333 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
4334 | cat >conftest.$ac_ext <<_ACEOF |
---|
4335 | /* confdefs.h. */ |
---|
4336 | _ACEOF |
---|
4337 | cat confdefs.h >>conftest.$ac_ext |
---|
4338 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4339 | /* end confdefs.h. */ |
---|
4340 | #include <string.h> |
---|
4341 | |
---|
4342 | _ACEOF |
---|
4343 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4344 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
4345 | : |
---|
4346 | else |
---|
4347 | ac_cv_header_stdc=no |
---|
4348 | fi |
---|
4349 | rm -f conftest* |
---|
4350 | |
---|
4351 | fi |
---|
4352 | |
---|
4353 | if test $ac_cv_header_stdc = yes; then |
---|
4354 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
4355 | cat >conftest.$ac_ext <<_ACEOF |
---|
4356 | /* confdefs.h. */ |
---|
4357 | _ACEOF |
---|
4358 | cat confdefs.h >>conftest.$ac_ext |
---|
4359 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4360 | /* end confdefs.h. */ |
---|
4361 | #include <stdlib.h> |
---|
4362 | |
---|
4363 | _ACEOF |
---|
4364 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4365 | $EGREP "free" >/dev/null 2>&1; then |
---|
4366 | : |
---|
4367 | else |
---|
4368 | ac_cv_header_stdc=no |
---|
4369 | fi |
---|
4370 | rm -f conftest* |
---|
4371 | |
---|
4372 | fi |
---|
4373 | |
---|
4374 | if test $ac_cv_header_stdc = yes; then |
---|
4375 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
4376 | if test "$cross_compiling" = yes; then |
---|
4377 | : |
---|
4378 | else |
---|
4379 | cat >conftest.$ac_ext <<_ACEOF |
---|
4380 | /* confdefs.h. */ |
---|
4381 | _ACEOF |
---|
4382 | cat confdefs.h >>conftest.$ac_ext |
---|
4383 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4384 | /* end confdefs.h. */ |
---|
4385 | #include <ctype.h> |
---|
4386 | #if ((' ' & 0x0FF) == 0x020) |
---|
4387 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
4388 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
4389 | #else |
---|
4390 | # define ISLOWER(c) \ |
---|
4391 | (('a' <= (c) && (c) <= 'i') \ |
---|
4392 | || ('j' <= (c) && (c) <= 'r') \ |
---|
4393 | || ('s' <= (c) && (c) <= 'z')) |
---|
4394 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
4395 | #endif |
---|
4396 | |
---|
4397 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
4398 | int |
---|
4399 | main () |
---|
4400 | { |
---|
4401 | int i; |
---|
4402 | for (i = 0; i < 256; i++) |
---|
4403 | if (XOR (islower (i), ISLOWER (i)) |
---|
4404 | || toupper (i) != TOUPPER (i)) |
---|
4405 | exit(2); |
---|
4406 | exit (0); |
---|
4407 | } |
---|
4408 | _ACEOF |
---|
4409 | rm -f conftest$ac_exeext |
---|
4410 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4411 | (eval $ac_link) 2>&5 |
---|
4412 | ac_status=$? |
---|
4413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4414 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
4415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4416 | (eval $ac_try) 2>&5 |
---|
4417 | ac_status=$? |
---|
4418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4419 | (exit $ac_status); }; }; then |
---|
4420 | : |
---|
4421 | else |
---|
4422 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
4423 | echo "$as_me: failed program was:" >&5 |
---|
4424 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4425 | |
---|
4426 | ( exit $ac_status ) |
---|
4427 | ac_cv_header_stdc=no |
---|
4428 | fi |
---|
4429 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
4430 | fi |
---|
4431 | fi |
---|
4432 | fi |
---|
4433 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
4434 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
4435 | if test $ac_cv_header_stdc = yes; then |
---|
4436 | |
---|
4437 | cat >>confdefs.h <<\_ACEOF |
---|
4438 | #define STDC_HEADERS 1 |
---|
4439 | _ACEOF |
---|
4440 | |
---|
4441 | fi |
---|
4442 | |
---|
4443 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
4444 | |
---|
4445 | |
---|
4446 | |
---|
4447 | |
---|
4448 | |
---|
4449 | |
---|
4450 | |
---|
4451 | |
---|
4452 | |
---|
4453 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4454 | inttypes.h stdint.h unistd.h |
---|
4455 | do |
---|
4456 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4457 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4458 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4459 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4461 | else |
---|
4462 | cat >conftest.$ac_ext <<_ACEOF |
---|
4463 | /* confdefs.h. */ |
---|
4464 | _ACEOF |
---|
4465 | cat confdefs.h >>conftest.$ac_ext |
---|
4466 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4467 | /* end confdefs.h. */ |
---|
4468 | $ac_includes_default |
---|
4469 | |
---|
4470 | #include <$ac_header> |
---|
4471 | _ACEOF |
---|
4472 | rm -f conftest.$ac_objext |
---|
4473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4474 | (eval $ac_compile) 2>conftest.er1 |
---|
4475 | ac_status=$? |
---|
4476 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4477 | rm -f conftest.er1 |
---|
4478 | cat conftest.err >&5 |
---|
4479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4480 | (exit $ac_status); } && |
---|
4481 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4482 | || test ! -s conftest.err' |
---|
4483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4484 | (eval $ac_try) 2>&5 |
---|
4485 | ac_status=$? |
---|
4486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4487 | (exit $ac_status); }; } && |
---|
4488 | { ac_try='test -s conftest.$ac_objext' |
---|
4489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4490 | (eval $ac_try) 2>&5 |
---|
4491 | ac_status=$? |
---|
4492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4493 | (exit $ac_status); }; }; then |
---|
4494 | eval "$as_ac_Header=yes" |
---|
4495 | else |
---|
4496 | echo "$as_me: failed program was:" >&5 |
---|
4497 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4498 | |
---|
4499 | eval "$as_ac_Header=no" |
---|
4500 | fi |
---|
4501 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4502 | fi |
---|
4503 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4504 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4505 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4506 | cat >>confdefs.h <<_ACEOF |
---|
4507 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4508 | _ACEOF |
---|
4509 | |
---|
4510 | fi |
---|
4511 | |
---|
4512 | done |
---|
4513 | |
---|
4514 | |
---|
4515 | |
---|
4516 | |
---|
4517 | for ac_header in stdlib.h string.h |
---|
4518 | do |
---|
4519 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4520 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4521 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4522 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4523 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4525 | fi |
---|
4526 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4527 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4528 | else |
---|
4529 | # Is the header compilable? |
---|
4530 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4531 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4532 | cat >conftest.$ac_ext <<_ACEOF |
---|
4533 | /* confdefs.h. */ |
---|
4534 | _ACEOF |
---|
4535 | cat confdefs.h >>conftest.$ac_ext |
---|
4536 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4537 | /* end confdefs.h. */ |
---|
4538 | $ac_includes_default |
---|
4539 | #include <$ac_header> |
---|
4540 | _ACEOF |
---|
4541 | rm -f conftest.$ac_objext |
---|
4542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4543 | (eval $ac_compile) 2>conftest.er1 |
---|
4544 | ac_status=$? |
---|
4545 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4546 | rm -f conftest.er1 |
---|
4547 | cat conftest.err >&5 |
---|
4548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4549 | (exit $ac_status); } && |
---|
4550 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4551 | || test ! -s conftest.err' |
---|
4552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4553 | (eval $ac_try) 2>&5 |
---|
4554 | ac_status=$? |
---|
4555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4556 | (exit $ac_status); }; } && |
---|
4557 | { ac_try='test -s conftest.$ac_objext' |
---|
4558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4559 | (eval $ac_try) 2>&5 |
---|
4560 | ac_status=$? |
---|
4561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4562 | (exit $ac_status); }; }; then |
---|
4563 | ac_header_compiler=yes |
---|
4564 | else |
---|
4565 | echo "$as_me: failed program was:" >&5 |
---|
4566 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4567 | |
---|
4568 | ac_header_compiler=no |
---|
4569 | fi |
---|
4570 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4571 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4572 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4573 | |
---|
4574 | # Is the header present? |
---|
4575 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4576 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4577 | cat >conftest.$ac_ext <<_ACEOF |
---|
4578 | /* confdefs.h. */ |
---|
4579 | _ACEOF |
---|
4580 | cat confdefs.h >>conftest.$ac_ext |
---|
4581 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4582 | /* end confdefs.h. */ |
---|
4583 | #include <$ac_header> |
---|
4584 | _ACEOF |
---|
4585 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4586 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4587 | ac_status=$? |
---|
4588 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4589 | rm -f conftest.er1 |
---|
4590 | cat conftest.err >&5 |
---|
4591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4592 | (exit $ac_status); } >/dev/null; then |
---|
4593 | if test -s conftest.err; then |
---|
4594 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4595 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4596 | else |
---|
4597 | ac_cpp_err= |
---|
4598 | fi |
---|
4599 | else |
---|
4600 | ac_cpp_err=yes |
---|
4601 | fi |
---|
4602 | if test -z "$ac_cpp_err"; then |
---|
4603 | ac_header_preproc=yes |
---|
4604 | else |
---|
4605 | echo "$as_me: failed program was:" >&5 |
---|
4606 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4607 | |
---|
4608 | ac_header_preproc=no |
---|
4609 | fi |
---|
4610 | rm -f conftest.err conftest.$ac_ext |
---|
4611 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4612 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4613 | |
---|
4614 | # So? What about this header? |
---|
4615 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4616 | yes:no: ) |
---|
4617 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4618 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4619 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4620 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4621 | ac_header_preproc=yes |
---|
4622 | ;; |
---|
4623 | no:yes:* ) |
---|
4624 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4625 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4626 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4627 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4628 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4629 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4630 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4631 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4632 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4633 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4634 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4635 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4636 | ( |
---|
4637 | cat <<\_ASBOX |
---|
4638 | ## ------------------------------------------- ## |
---|
4639 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
4640 | ## ------------------------------------------- ## |
---|
4641 | _ASBOX |
---|
4642 | ) | |
---|
4643 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4644 | ;; |
---|
4645 | esac |
---|
4646 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4647 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4648 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4650 | else |
---|
4651 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4652 | fi |
---|
4653 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4654 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4655 | |
---|
4656 | fi |
---|
4657 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4658 | cat >>confdefs.h <<_ACEOF |
---|
4659 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4660 | _ACEOF |
---|
4661 | |
---|
4662 | fi |
---|
4663 | |
---|
4664 | done |
---|
4665 | |
---|
4666 | |
---|
4667 | # Checks for typedefs, structures, and compiler characteristics. |
---|
4668 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
4669 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
4670 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
4671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4672 | else |
---|
4673 | cat >conftest.$ac_ext <<_ACEOF |
---|
4674 | /* confdefs.h. */ |
---|
4675 | _ACEOF |
---|
4676 | cat confdefs.h >>conftest.$ac_ext |
---|
4677 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4678 | /* end confdefs.h. */ |
---|
4679 | |
---|
4680 | #include <stdbool.h> |
---|
4681 | #ifndef bool |
---|
4682 | # error bool is not defined |
---|
4683 | #endif |
---|
4684 | #ifndef false |
---|
4685 | # error false is not defined |
---|
4686 | #endif |
---|
4687 | #if false |
---|
4688 | # error false is not 0 |
---|
4689 | #endif |
---|
4690 | #ifndef true |
---|
4691 | # error true is not defined |
---|
4692 | #endif |
---|
4693 | #if true != 1 |
---|
4694 | # error true is not 1 |
---|
4695 | #endif |
---|
4696 | #ifndef __bool_true_false_are_defined |
---|
4697 | # error __bool_true_false_are_defined is not defined |
---|
4698 | #endif |
---|
4699 | |
---|
4700 | struct s { _Bool s: 1; _Bool t; } s; |
---|
4701 | |
---|
4702 | char a[true == 1 ? 1 : -1]; |
---|
4703 | char b[false == 0 ? 1 : -1]; |
---|
4704 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
4705 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
4706 | bool e = &s; |
---|
4707 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
4708 | char g[true]; |
---|
4709 | char h[sizeof (_Bool)]; |
---|
4710 | char i[sizeof s.t]; |
---|
4711 | |
---|
4712 | int |
---|
4713 | main () |
---|
4714 | { |
---|
4715 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
4716 | ; |
---|
4717 | return 0; |
---|
4718 | } |
---|
4719 | _ACEOF |
---|
4720 | rm -f conftest.$ac_objext |
---|
4721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4722 | (eval $ac_compile) 2>conftest.er1 |
---|
4723 | ac_status=$? |
---|
4724 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4725 | rm -f conftest.er1 |
---|
4726 | cat conftest.err >&5 |
---|
4727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4728 | (exit $ac_status); } && |
---|
4729 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4730 | || test ! -s conftest.err' |
---|
4731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4732 | (eval $ac_try) 2>&5 |
---|
4733 | ac_status=$? |
---|
4734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4735 | (exit $ac_status); }; } && |
---|
4736 | { ac_try='test -s conftest.$ac_objext' |
---|
4737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4738 | (eval $ac_try) 2>&5 |
---|
4739 | ac_status=$? |
---|
4740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4741 | (exit $ac_status); }; }; then |
---|
4742 | ac_cv_header_stdbool_h=yes |
---|
4743 | else |
---|
4744 | echo "$as_me: failed program was:" >&5 |
---|
4745 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4746 | |
---|
4747 | ac_cv_header_stdbool_h=no |
---|
4748 | fi |
---|
4749 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4750 | fi |
---|
4751 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
4752 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
4753 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
4754 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
4755 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
4756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4757 | else |
---|
4758 | cat >conftest.$ac_ext <<_ACEOF |
---|
4759 | /* confdefs.h. */ |
---|
4760 | _ACEOF |
---|
4761 | cat confdefs.h >>conftest.$ac_ext |
---|
4762 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4763 | /* end confdefs.h. */ |
---|
4764 | $ac_includes_default |
---|
4765 | int |
---|
4766 | main () |
---|
4767 | { |
---|
4768 | if ((_Bool *) 0) |
---|
4769 | return 0; |
---|
4770 | if (sizeof (_Bool)) |
---|
4771 | return 0; |
---|
4772 | ; |
---|
4773 | return 0; |
---|
4774 | } |
---|
4775 | _ACEOF |
---|
4776 | rm -f conftest.$ac_objext |
---|
4777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4778 | (eval $ac_compile) 2>conftest.er1 |
---|
4779 | ac_status=$? |
---|
4780 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4781 | rm -f conftest.er1 |
---|
4782 | cat conftest.err >&5 |
---|
4783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4784 | (exit $ac_status); } && |
---|
4785 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4786 | || test ! -s conftest.err' |
---|
4787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4788 | (eval $ac_try) 2>&5 |
---|
4789 | ac_status=$? |
---|
4790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4791 | (exit $ac_status); }; } && |
---|
4792 | { ac_try='test -s conftest.$ac_objext' |
---|
4793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4794 | (eval $ac_try) 2>&5 |
---|
4795 | ac_status=$? |
---|
4796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4797 | (exit $ac_status); }; }; then |
---|
4798 | ac_cv_type__Bool=yes |
---|
4799 | else |
---|
4800 | echo "$as_me: failed program was:" >&5 |
---|
4801 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4802 | |
---|
4803 | ac_cv_type__Bool=no |
---|
4804 | fi |
---|
4805 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4806 | fi |
---|
4807 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
4808 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
4809 | if test $ac_cv_type__Bool = yes; then |
---|
4810 | |
---|
4811 | cat >>confdefs.h <<_ACEOF |
---|
4812 | #define HAVE__BOOL 1 |
---|
4813 | _ACEOF |
---|
4814 | |
---|
4815 | |
---|
4816 | fi |
---|
4817 | |
---|
4818 | if test $ac_cv_header_stdbool_h = yes; then |
---|
4819 | |
---|
4820 | cat >>confdefs.h <<\_ACEOF |
---|
4821 | #define HAVE_STDBOOL_H 1 |
---|
4822 | _ACEOF |
---|
4823 | |
---|
4824 | fi |
---|
4825 | |
---|
4826 | |
---|
4827 | # Checks for library functions. |
---|
4828 | |
---|
4829 | for ac_header in stdlib.h |
---|
4830 | do |
---|
4831 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4832 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4833 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4834 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4835 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4837 | fi |
---|
4838 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4839 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4840 | else |
---|
4841 | # Is the header compilable? |
---|
4842 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4843 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4844 | cat >conftest.$ac_ext <<_ACEOF |
---|
4845 | /* confdefs.h. */ |
---|
4846 | _ACEOF |
---|
4847 | cat confdefs.h >>conftest.$ac_ext |
---|
4848 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4849 | /* end confdefs.h. */ |
---|
4850 | $ac_includes_default |
---|
4851 | #include <$ac_header> |
---|
4852 | _ACEOF |
---|
4853 | rm -f conftest.$ac_objext |
---|
4854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4855 | (eval $ac_compile) 2>conftest.er1 |
---|
4856 | ac_status=$? |
---|
4857 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4858 | rm -f conftest.er1 |
---|
4859 | cat conftest.err >&5 |
---|
4860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4861 | (exit $ac_status); } && |
---|
4862 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4863 | || test ! -s conftest.err' |
---|
4864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4865 | (eval $ac_try) 2>&5 |
---|
4866 | ac_status=$? |
---|
4867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4868 | (exit $ac_status); }; } && |
---|
4869 | { ac_try='test -s conftest.$ac_objext' |
---|
4870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4871 | (eval $ac_try) 2>&5 |
---|
4872 | ac_status=$? |
---|
4873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4874 | (exit $ac_status); }; }; then |
---|
4875 | ac_header_compiler=yes |
---|
4876 | else |
---|
4877 | echo "$as_me: failed program was:" >&5 |
---|
4878 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4879 | |
---|
4880 | ac_header_compiler=no |
---|
4881 | fi |
---|
4882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4883 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4884 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4885 | |
---|
4886 | # Is the header present? |
---|
4887 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4888 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4889 | cat >conftest.$ac_ext <<_ACEOF |
---|
4890 | /* confdefs.h. */ |
---|
4891 | _ACEOF |
---|
4892 | cat confdefs.h >>conftest.$ac_ext |
---|
4893 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4894 | /* end confdefs.h. */ |
---|
4895 | #include <$ac_header> |
---|
4896 | _ACEOF |
---|
4897 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4898 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4899 | ac_status=$? |
---|
4900 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4901 | rm -f conftest.er1 |
---|
4902 | cat conftest.err >&5 |
---|
4903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4904 | (exit $ac_status); } >/dev/null; then |
---|
4905 | if test -s conftest.err; then |
---|
4906 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4907 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4908 | else |
---|
4909 | ac_cpp_err= |
---|
4910 | fi |
---|
4911 | else |
---|
4912 | ac_cpp_err=yes |
---|
4913 | fi |
---|
4914 | if test -z "$ac_cpp_err"; then |
---|
4915 | ac_header_preproc=yes |
---|
4916 | else |
---|
4917 | echo "$as_me: failed program was:" >&5 |
---|
4918 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4919 | |
---|
4920 | ac_header_preproc=no |
---|
4921 | fi |
---|
4922 | rm -f conftest.err conftest.$ac_ext |
---|
4923 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4924 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4925 | |
---|
4926 | # So? What about this header? |
---|
4927 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4928 | yes:no: ) |
---|
4929 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4930 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4931 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4932 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4933 | ac_header_preproc=yes |
---|
4934 | ;; |
---|
4935 | no:yes:* ) |
---|
4936 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4937 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4938 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4939 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4940 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4941 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4942 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4943 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4944 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4945 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4946 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4947 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4948 | ( |
---|
4949 | cat <<\_ASBOX |
---|
4950 | ## ------------------------------------------- ## |
---|
4951 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
4952 | ## ------------------------------------------- ## |
---|
4953 | _ASBOX |
---|
4954 | ) | |
---|
4955 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4956 | ;; |
---|
4957 | esac |
---|
4958 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4959 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4960 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4962 | else |
---|
4963 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4964 | fi |
---|
4965 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4966 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4967 | |
---|
4968 | fi |
---|
4969 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4970 | cat >>confdefs.h <<_ACEOF |
---|
4971 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4972 | _ACEOF |
---|
4973 | |
---|
4974 | fi |
---|
4975 | |
---|
4976 | done |
---|
4977 | |
---|
4978 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
4979 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
4980 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
4981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4982 | else |
---|
4983 | if test "$cross_compiling" = yes; then |
---|
4984 | ac_cv_func_malloc_0_nonnull=no |
---|
4985 | else |
---|
4986 | cat >conftest.$ac_ext <<_ACEOF |
---|
4987 | /* confdefs.h. */ |
---|
4988 | _ACEOF |
---|
4989 | cat confdefs.h >>conftest.$ac_ext |
---|
4990 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4991 | /* end confdefs.h. */ |
---|
4992 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
4993 | # include <stdlib.h> |
---|
4994 | #else |
---|
4995 | char *malloc (); |
---|
4996 | #endif |
---|
4997 | |
---|
4998 | int |
---|
4999 | main () |
---|
5000 | { |
---|
5001 | exit (malloc (0) ? 0 : 1); |
---|
5002 | ; |
---|
5003 | return 0; |
---|
5004 | } |
---|
5005 | _ACEOF |
---|
5006 | rm -f conftest$ac_exeext |
---|
5007 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5008 | (eval $ac_link) 2>&5 |
---|
5009 | ac_status=$? |
---|
5010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5011 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5013 | (eval $ac_try) 2>&5 |
---|
5014 | ac_status=$? |
---|
5015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5016 | (exit $ac_status); }; }; then |
---|
5017 | ac_cv_func_malloc_0_nonnull=yes |
---|
5018 | else |
---|
5019 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
5020 | echo "$as_me: failed program was:" >&5 |
---|
5021 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5022 | |
---|
5023 | ( exit $ac_status ) |
---|
5024 | ac_cv_func_malloc_0_nonnull=no |
---|
5025 | fi |
---|
5026 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5027 | fi |
---|
5028 | fi |
---|
5029 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
5030 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
5031 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
5032 | |
---|
5033 | cat >>confdefs.h <<\_ACEOF |
---|
5034 | #define HAVE_MALLOC 1 |
---|
5035 | _ACEOF |
---|
5036 | |
---|
5037 | else |
---|
5038 | cat >>confdefs.h <<\_ACEOF |
---|
5039 | #define HAVE_MALLOC 0 |
---|
5040 | _ACEOF |
---|
5041 | |
---|
5042 | case $LIBOBJS in |
---|
5043 | "malloc.$ac_objext" | \ |
---|
5044 | *" malloc.$ac_objext" | \ |
---|
5045 | "malloc.$ac_objext "* | \ |
---|
5046 | *" malloc.$ac_objext "* ) ;; |
---|
5047 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
5048 | esac |
---|
5049 | |
---|
5050 | |
---|
5051 | cat >>confdefs.h <<\_ACEOF |
---|
5052 | #define malloc rpl_malloc |
---|
5053 | _ACEOF |
---|
5054 | |
---|
5055 | fi |
---|
5056 | |
---|
5057 | |
---|
5058 | |
---|
5059 | |
---|
5060 | |
---|
5061 | for ac_func in bzero sqrt |
---|
5062 | do |
---|
5063 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
5064 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
5065 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
5066 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
5067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5068 | else |
---|
5069 | cat >conftest.$ac_ext <<_ACEOF |
---|
5070 | /* confdefs.h. */ |
---|
5071 | _ACEOF |
---|
5072 | cat confdefs.h >>conftest.$ac_ext |
---|
5073 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5074 | /* end confdefs.h. */ |
---|
5075 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
5076 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
5077 | #define $ac_func innocuous_$ac_func |
---|
5078 | |
---|
5079 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5080 | which can conflict with char $ac_func (); below. |
---|
5081 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5082 | <limits.h> exists even on freestanding compilers. */ |
---|
5083 | |
---|
5084 | #ifdef __STDC__ |
---|
5085 | # include <limits.h> |
---|
5086 | #else |
---|
5087 | # include <assert.h> |
---|
5088 | #endif |
---|
5089 | |
---|
5090 | #undef $ac_func |
---|
5091 | |
---|
5092 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5093 | #ifdef __cplusplus |
---|
5094 | extern "C" |
---|
5095 | { |
---|
5096 | #endif |
---|
5097 | /* We use char because int might match the return type of a gcc2 |
---|
5098 | builtin and then its argument prototype would still apply. */ |
---|
5099 | char $ac_func (); |
---|
5100 | /* The GNU C library defines this for functions which it implements |
---|
5101 | to always fail with ENOSYS. Some functions are actually named |
---|
5102 | something starting with __ and the normal name is an alias. */ |
---|
5103 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
5104 | choke me |
---|
5105 | #else |
---|
5106 | char (*f) () = $ac_func; |
---|
5107 | #endif |
---|
5108 | #ifdef __cplusplus |
---|
5109 | } |
---|
5110 | #endif |
---|
5111 | |
---|
5112 | int |
---|
5113 | main () |
---|
5114 | { |
---|
5115 | return f != $ac_func; |
---|
5116 | ; |
---|
5117 | return 0; |
---|
5118 | } |
---|
5119 | _ACEOF |
---|
5120 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5121 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5122 | (eval $ac_link) 2>conftest.er1 |
---|
5123 | ac_status=$? |
---|
5124 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5125 | rm -f conftest.er1 |
---|
5126 | cat conftest.err >&5 |
---|
5127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5128 | (exit $ac_status); } && |
---|
5129 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5130 | || test ! -s conftest.err' |
---|
5131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5132 | (eval $ac_try) 2>&5 |
---|
5133 | ac_status=$? |
---|
5134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5135 | (exit $ac_status); }; } && |
---|
5136 | { ac_try='test -s conftest$ac_exeext' |
---|
5137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5138 | (eval $ac_try) 2>&5 |
---|
5139 | ac_status=$? |
---|
5140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5141 | (exit $ac_status); }; }; then |
---|
5142 | eval "$as_ac_var=yes" |
---|
5143 | else |
---|
5144 | echo "$as_me: failed program was:" >&5 |
---|
5145 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5146 | |
---|
5147 | eval "$as_ac_var=no" |
---|
5148 | fi |
---|
5149 | rm -f conftest.err conftest.$ac_objext \ |
---|
5150 | conftest$ac_exeext conftest.$ac_ext |
---|
5151 | fi |
---|
5152 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
5153 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
5154 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
5155 | cat >>confdefs.h <<_ACEOF |
---|
5156 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
5157 | _ACEOF |
---|
5158 | |
---|
5159 | fi |
---|
5160 | done |
---|
5161 | |
---|
5162 | |
---|
5163 | ac_config_files="$ac_config_files Makefile console/Makefile gui/Makefile src/Makefile" |
---|
5164 | |
---|
5165 | cat >confcache <<\_ACEOF |
---|
5166 | # This file is a shell script that caches the results of configure |
---|
5167 | # tests run on this system so they can be shared between configure |
---|
5168 | # scripts and configure runs, see configure's option --config-cache. |
---|
5169 | # It is not useful on other systems. If it contains results you don't |
---|
5170 | # want to keep, you may remove or edit it. |
---|
5171 | # |
---|
5172 | # config.status only pays attention to the cache file if you give it |
---|
5173 | # the --recheck option to rerun configure. |
---|
5174 | # |
---|
5175 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
5176 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
5177 | # following values. |
---|
5178 | |
---|
5179 | _ACEOF |
---|
5180 | |
---|
5181 | # The following way of writing the cache mishandles newlines in values, |
---|
5182 | # but we know of no workaround that is simple, portable, and efficient. |
---|
5183 | # So, don't put newlines in cache variables' values. |
---|
5184 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
5185 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
5186 | { |
---|
5187 | (set) 2>&1 | |
---|
5188 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
5189 | *ac_space=\ *) |
---|
5190 | # `set' does not quote correctly, so add quotes (double-quote |
---|
5191 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
5192 | sed -n \ |
---|
5193 | "s/'/'\\\\''/g; |
---|
5194 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
5195 | ;; |
---|
5196 | *) |
---|
5197 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
5198 | sed -n \ |
---|
5199 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
5200 | ;; |
---|
5201 | esac; |
---|
5202 | } | |
---|
5203 | sed ' |
---|
5204 | t clear |
---|
5205 | : clear |
---|
5206 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
5207 | t end |
---|
5208 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
5209 | : end' >>confcache |
---|
5210 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
5211 | if test -w $cache_file; then |
---|
5212 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
5213 | cat confcache >$cache_file |
---|
5214 | else |
---|
5215 | echo "not updating unwritable cache $cache_file" |
---|
5216 | fi |
---|
5217 | fi |
---|
5218 | rm -f confcache |
---|
5219 | |
---|
5220 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
5221 | # Let make expand exec_prefix. |
---|
5222 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
5223 | |
---|
5224 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
5225 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
5226 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
5227 | # (actually we leave an empty line to preserve line numbers). |
---|
5228 | if test "x$srcdir" = x.; then |
---|
5229 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
5230 | s/:*\$(srcdir):*/:/; |
---|
5231 | s/:*\${srcdir}:*/:/; |
---|
5232 | s/:*@srcdir@:*/:/; |
---|
5233 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
5234 | s/:*$//; |
---|
5235 | s/^[^=]*=[ ]*$//; |
---|
5236 | }' |
---|
5237 | fi |
---|
5238 | |
---|
5239 | DEFS=-DHAVE_CONFIG_H |
---|
5240 | |
---|
5241 | ac_libobjs= |
---|
5242 | ac_ltlibobjs= |
---|
5243 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
5244 | # 1. Remove the extension, and $U if already installed. |
---|
5245 | ac_i=`echo "$ac_i" | |
---|
5246 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
5247 | # 2. Add them. |
---|
5248 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
5249 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
5250 | done |
---|
5251 | LIBOBJS=$ac_libobjs |
---|
5252 | |
---|
5253 | LTLIBOBJS=$ac_ltlibobjs |
---|
5254 | |
---|
5255 | |
---|
5256 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
5257 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
5258 | Usually this means the macro was only invoked conditionally." >&5 |
---|
5259 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
5260 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
5261 | { (exit 1); exit 1; }; } |
---|
5262 | fi |
---|
5263 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
5264 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
5265 | Usually this means the macro was only invoked conditionally." >&5 |
---|
5266 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
5267 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
5268 | { (exit 1); exit 1; }; } |
---|
5269 | fi |
---|
5270 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
5271 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
5272 | Usually this means the macro was only invoked conditionally." >&5 |
---|
5273 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
5274 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
5275 | { (exit 1); exit 1; }; } |
---|
5276 | fi |
---|
5277 | |
---|
5278 | : ${CONFIG_STATUS=./config.status} |
---|
5279 | ac_clean_files_save=$ac_clean_files |
---|
5280 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
5281 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
5282 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
5283 | cat >$CONFIG_STATUS <<_ACEOF |
---|
5284 | #! $SHELL |
---|
5285 | # Generated by $as_me. |
---|
5286 | # Run this file to recreate the current configuration. |
---|
5287 | # Compiler output produced by configure, useful for debugging |
---|
5288 | # configure, is in config.log if it exists. |
---|
5289 | |
---|
5290 | debug=false |
---|
5291 | ac_cs_recheck=false |
---|
5292 | ac_cs_silent=false |
---|
5293 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
5294 | _ACEOF |
---|
5295 | |
---|
5296 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
5297 | ## --------------------- ## |
---|
5298 | ## M4sh Initialization. ## |
---|
5299 | ## --------------------- ## |
---|
5300 | |
---|
5301 | # Be Bourne compatible |
---|
5302 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
5303 | emulate sh |
---|
5304 | NULLCMD=: |
---|
5305 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
5306 | # is contrary to our usage. Disable this feature. |
---|
5307 | alias -g '${1+"$@"}'='"$@"' |
---|
5308 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
5309 | set -o posix |
---|
5310 | fi |
---|
5311 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
5312 | |
---|
5313 | # Support unset when possible. |
---|
5314 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
5315 | as_unset=unset |
---|
5316 | else |
---|
5317 | as_unset=false |
---|
5318 | fi |
---|
5319 | |
---|
5320 | |
---|
5321 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
5322 | $as_unset ENV MAIL MAILPATH |
---|
5323 | PS1='$ ' |
---|
5324 | PS2='> ' |
---|
5325 | PS4='+ ' |
---|
5326 | |
---|
5327 | # NLS nuisances. |
---|
5328 | for as_var in \ |
---|
5329 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
5330 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
5331 | LC_TELEPHONE LC_TIME |
---|
5332 | do |
---|
5333 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
5334 | eval $as_var=C; export $as_var |
---|
5335 | else |
---|
5336 | $as_unset $as_var |
---|
5337 | fi |
---|
5338 | done |
---|
5339 | |
---|
5340 | # Required to use basename. |
---|
5341 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
5342 | as_expr=expr |
---|
5343 | else |
---|
5344 | as_expr=false |
---|
5345 | fi |
---|
5346 | |
---|
5347 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
5348 | as_basename=basename |
---|
5349 | else |
---|
5350 | as_basename=false |
---|
5351 | fi |
---|
5352 | |
---|
5353 | |
---|
5354 | # Name of the executable. |
---|
5355 | as_me=`$as_basename "$0" || |
---|
5356 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
5357 | X"$0" : 'X\(//\)$' \| \ |
---|
5358 | X"$0" : 'X\(/\)$' \| \ |
---|
5359 | . : '\(.\)' 2>/dev/null || |
---|
5360 | echo X/"$0" | |
---|
5361 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
5362 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
5363 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
5364 | s/.*/./; q'` |
---|
5365 | |
---|
5366 | |
---|
5367 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
5368 | # Avoid depending upon Character Ranges. |
---|
5369 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
5370 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
5371 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
5372 | as_cr_digits='0123456789' |
---|
5373 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
5374 | |
---|
5375 | # The user is always right. |
---|
5376 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
5377 | echo "#! /bin/sh" >conf$$.sh |
---|
5378 | echo "exit 0" >>conf$$.sh |
---|
5379 | chmod +x conf$$.sh |
---|
5380 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
5381 | PATH_SEPARATOR=';' |
---|
5382 | else |
---|
5383 | PATH_SEPARATOR=: |
---|
5384 | fi |
---|
5385 | rm -f conf$$.sh |
---|
5386 | fi |
---|
5387 | |
---|
5388 | |
---|
5389 | as_lineno_1=$LINENO |
---|
5390 | as_lineno_2=$LINENO |
---|
5391 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
5392 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
5393 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
5394 | # Find who we are. Look in the path if we contain no path at all |
---|
5395 | # relative or not. |
---|
5396 | case $0 in |
---|
5397 | *[\\/]* ) as_myself=$0 ;; |
---|
5398 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5399 | for as_dir in $PATH |
---|
5400 | do |
---|
5401 | IFS=$as_save_IFS |
---|
5402 | test -z "$as_dir" && as_dir=. |
---|
5403 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
5404 | done |
---|
5405 | |
---|
5406 | ;; |
---|
5407 | esac |
---|
5408 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
5409 | # in which case we are not to be found in the path. |
---|
5410 | if test "x$as_myself" = x; then |
---|
5411 | as_myself=$0 |
---|
5412 | fi |
---|
5413 | if test ! -f "$as_myself"; then |
---|
5414 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
5415 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
5416 | { (exit 1); exit 1; }; } |
---|
5417 | fi |
---|
5418 | case $CONFIG_SHELL in |
---|
5419 | '') |
---|
5420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5421 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
5422 | do |
---|
5423 | IFS=$as_save_IFS |
---|
5424 | test -z "$as_dir" && as_dir=. |
---|
5425 | for as_base in sh bash ksh sh5; do |
---|
5426 | case $as_dir in |
---|
5427 | /*) |
---|
5428 | if ("$as_dir/$as_base" -c ' |
---|
5429 | as_lineno_1=$LINENO |
---|
5430 | as_lineno_2=$LINENO |
---|
5431 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
5432 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
5433 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
5434 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
5435 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
5436 | CONFIG_SHELL=$as_dir/$as_base |
---|
5437 | export CONFIG_SHELL |
---|
5438 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
5439 | fi;; |
---|
5440 | esac |
---|
5441 | done |
---|
5442 | done |
---|
5443 | ;; |
---|
5444 | esac |
---|
5445 | |
---|
5446 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
5447 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
5448 | # line-number line before each line; the second 'sed' does the real |
---|
5449 | # work. The second script uses 'N' to pair each line-number line |
---|
5450 | # with the numbered line, and appends trailing '-' during |
---|
5451 | # substitution so that $LINENO is not a special case at line end. |
---|
5452 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
5453 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
5454 | sed '=' <$as_myself | |
---|
5455 | sed ' |
---|
5456 | N |
---|
5457 | s,$,-, |
---|
5458 | : loop |
---|
5459 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
5460 | t loop |
---|
5461 | s,-$,, |
---|
5462 | s,^['$as_cr_digits']*\n,, |
---|
5463 | ' >$as_me.lineno && |
---|
5464 | chmod +x $as_me.lineno || |
---|
5465 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
5466 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
5467 | { (exit 1); exit 1; }; } |
---|
5468 | |
---|
5469 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
5470 | # (the dirname of $[0] is not the place where we might find the |
---|
5471 | # original and so on. Autoconf is especially sensible to this). |
---|
5472 | . ./$as_me.lineno |
---|
5473 | # Exit status is that of the last command. |
---|
5474 | exit |
---|
5475 | } |
---|
5476 | |
---|
5477 | |
---|
5478 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
5479 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
5480 | ' ECHO_T=' ' ;; |
---|
5481 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
5482 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
5483 | esac |
---|
5484 | |
---|
5485 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
5486 | as_expr=expr |
---|
5487 | else |
---|
5488 | as_expr=false |
---|
5489 | fi |
---|
5490 | |
---|
5491 | rm -f conf$$ conf$$.exe conf$$.file |
---|
5492 | echo >conf$$.file |
---|
5493 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
5494 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
5495 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
5496 | if test -f conf$$.exe; then |
---|
5497 | # Don't use ln at all; we don't have any links |
---|
5498 | as_ln_s='cp -p' |
---|
5499 | else |
---|
5500 | as_ln_s='ln -s' |
---|
5501 | fi |
---|
5502 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
5503 | as_ln_s=ln |
---|
5504 | else |
---|
5505 | as_ln_s='cp -p' |
---|
5506 | fi |
---|
5507 | rm -f conf$$ conf$$.exe conf$$.file |
---|
5508 | |
---|
5509 | if mkdir -p . 2>/dev/null; then |
---|
5510 | as_mkdir_p=: |
---|
5511 | else |
---|
5512 | test -d ./-p && rmdir ./-p |
---|
5513 | as_mkdir_p=false |
---|
5514 | fi |
---|
5515 | |
---|
5516 | as_executable_p="test -f" |
---|
5517 | |
---|
5518 | # Sed expression to map a string onto a valid CPP name. |
---|
5519 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
5520 | |
---|
5521 | # Sed expression to map a string onto a valid variable name. |
---|
5522 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
5523 | |
---|
5524 | |
---|
5525 | # IFS |
---|
5526 | # We need space, tab and new line, in precisely that order. |
---|
5527 | as_nl=' |
---|
5528 | ' |
---|
5529 | IFS=" $as_nl" |
---|
5530 | |
---|
5531 | # CDPATH. |
---|
5532 | $as_unset CDPATH |
---|
5533 | |
---|
5534 | exec 6>&1 |
---|
5535 | |
---|
5536 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
5537 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
5538 | # values after options handling. Logging --version etc. is OK. |
---|
5539 | exec 5>>config.log |
---|
5540 | { |
---|
5541 | echo |
---|
5542 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
5543 | ## Running $as_me. ## |
---|
5544 | _ASBOX |
---|
5545 | } >&5 |
---|
5546 | cat >&5 <<_CSEOF |
---|
5547 | |
---|
5548 | This file was extended by orxonox $as_me 0.1-pre-alpha, which was |
---|
5549 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
5550 | |
---|
5551 | CONFIG_FILES = $CONFIG_FILES |
---|
5552 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
5553 | CONFIG_LINKS = $CONFIG_LINKS |
---|
5554 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
5555 | $ $0 $@ |
---|
5556 | |
---|
5557 | _CSEOF |
---|
5558 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
5559 | echo >&5 |
---|
5560 | _ACEOF |
---|
5561 | |
---|
5562 | # Files that config.status was made for. |
---|
5563 | if test -n "$ac_config_files"; then |
---|
5564 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
5565 | fi |
---|
5566 | |
---|
5567 | if test -n "$ac_config_headers"; then |
---|
5568 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
5569 | fi |
---|
5570 | |
---|
5571 | if test -n "$ac_config_links"; then |
---|
5572 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
5573 | fi |
---|
5574 | |
---|
5575 | if test -n "$ac_config_commands"; then |
---|
5576 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
5577 | fi |
---|
5578 | |
---|
5579 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
5580 | |
---|
5581 | ac_cs_usage="\ |
---|
5582 | \`$as_me' instantiates files from templates according to the |
---|
5583 | current configuration. |
---|
5584 | |
---|
5585 | Usage: $0 [OPTIONS] [FILE]... |
---|
5586 | |
---|
5587 | -h, --help print this help, then exit |
---|
5588 | -V, --version print version number, then exit |
---|
5589 | -q, --quiet do not print progress messages |
---|
5590 | -d, --debug don't remove temporary files |
---|
5591 | --recheck update $as_me by reconfiguring in the same conditions |
---|
5592 | --file=FILE[:TEMPLATE] |
---|
5593 | instantiate the configuration file FILE |
---|
5594 | --header=FILE[:TEMPLATE] |
---|
5595 | instantiate the configuration header FILE |
---|
5596 | |
---|
5597 | Configuration files: |
---|
5598 | $config_files |
---|
5599 | |
---|
5600 | Configuration headers: |
---|
5601 | $config_headers |
---|
5602 | |
---|
5603 | Configuration commands: |
---|
5604 | $config_commands |
---|
5605 | |
---|
5606 | Report bugs to <bug-autoconf@gnu.org>." |
---|
5607 | _ACEOF |
---|
5608 | |
---|
5609 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
5610 | ac_cs_version="\\ |
---|
5611 | orxonox config.status 0.1-pre-alpha |
---|
5612 | configured by $0, generated by GNU Autoconf 2.59, |
---|
5613 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
5614 | |
---|
5615 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
5616 | This config.status script is free software; the Free Software Foundation |
---|
5617 | gives unlimited permission to copy, distribute and modify it." |
---|
5618 | srcdir=$srcdir |
---|
5619 | INSTALL="$INSTALL" |
---|
5620 | _ACEOF |
---|
5621 | |
---|
5622 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
5623 | # If no file are specified by the user, then we need to provide default |
---|
5624 | # value. By we need to know if files were specified by the user. |
---|
5625 | ac_need_defaults=: |
---|
5626 | while test $# != 0 |
---|
5627 | do |
---|
5628 | case $1 in |
---|
5629 | --*=*) |
---|
5630 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
5631 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
5632 | ac_shift=: |
---|
5633 | ;; |
---|
5634 | -*) |
---|
5635 | ac_option=$1 |
---|
5636 | ac_optarg=$2 |
---|
5637 | ac_shift=shift |
---|
5638 | ;; |
---|
5639 | *) # This is not an option, so the user has probably given explicit |
---|
5640 | # arguments. |
---|
5641 | ac_option=$1 |
---|
5642 | ac_need_defaults=false;; |
---|
5643 | esac |
---|
5644 | |
---|
5645 | case $ac_option in |
---|
5646 | # Handling of the options. |
---|
5647 | _ACEOF |
---|
5648 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
5649 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
5650 | ac_cs_recheck=: ;; |
---|
5651 | --version | --vers* | -V ) |
---|
5652 | echo "$ac_cs_version"; exit 0 ;; |
---|
5653 | --he | --h) |
---|
5654 | # Conflict between --help and --header |
---|
5655 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
5656 | Try \`$0 --help' for more information." >&5 |
---|
5657 | echo "$as_me: error: ambiguous option: $1 |
---|
5658 | Try \`$0 --help' for more information." >&2;} |
---|
5659 | { (exit 1); exit 1; }; };; |
---|
5660 | --help | --hel | -h ) |
---|
5661 | echo "$ac_cs_usage"; exit 0 ;; |
---|
5662 | --debug | --d* | -d ) |
---|
5663 | debug=: ;; |
---|
5664 | --file | --fil | --fi | --f ) |
---|
5665 | $ac_shift |
---|
5666 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
5667 | ac_need_defaults=false;; |
---|
5668 | --header | --heade | --head | --hea ) |
---|
5669 | $ac_shift |
---|
5670 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
5671 | ac_need_defaults=false;; |
---|
5672 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
5673 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
5674 | ac_cs_silent=: ;; |
---|
5675 | |
---|
5676 | # This is an error. |
---|
5677 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
5678 | Try \`$0 --help' for more information." >&5 |
---|
5679 | echo "$as_me: error: unrecognized option: $1 |
---|
5680 | Try \`$0 --help' for more information." >&2;} |
---|
5681 | { (exit 1); exit 1; }; } ;; |
---|
5682 | |
---|
5683 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
5684 | |
---|
5685 | esac |
---|
5686 | shift |
---|
5687 | done |
---|
5688 | |
---|
5689 | ac_configure_extra_args= |
---|
5690 | |
---|
5691 | if $ac_cs_silent; then |
---|
5692 | exec 6>/dev/null |
---|
5693 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
5694 | fi |
---|
5695 | |
---|
5696 | _ACEOF |
---|
5697 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
5698 | if \$ac_cs_recheck; then |
---|
5699 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
5700 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
5701 | fi |
---|
5702 | |
---|
5703 | _ACEOF |
---|
5704 | |
---|
5705 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
5706 | # |
---|
5707 | # INIT-COMMANDS section. |
---|
5708 | # |
---|
5709 | |
---|
5710 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
5711 | |
---|
5712 | _ACEOF |
---|
5713 | |
---|
5714 | |
---|
5715 | |
---|
5716 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
5717 | for ac_config_target in $ac_config_targets |
---|
5718 | do |
---|
5719 | case "$ac_config_target" in |
---|
5720 | # Handling of arguments. |
---|
5721 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
5722 | "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;; |
---|
5723 | "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;; |
---|
5724 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
5725 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
5726 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
5727 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
5728 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
5729 | { (exit 1); exit 1; }; };; |
---|
5730 | esac |
---|
5731 | done |
---|
5732 | |
---|
5733 | # If the user did not use the arguments to specify the items to instantiate, |
---|
5734 | # then the envvar interface is used. Set only those that are not. |
---|
5735 | # We use the long form for the default assignment because of an extremely |
---|
5736 | # bizarre bug on SunOS 4.1.3. |
---|
5737 | if $ac_need_defaults; then |
---|
5738 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
5739 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
5740 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
5741 | fi |
---|
5742 | |
---|
5743 | # Have a temporary directory for convenience. Make it in the build tree |
---|
5744 | # simply because there is no reason to put it here, and in addition, |
---|
5745 | # creating and moving files from /tmp can sometimes cause problems. |
---|
5746 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
5747 | $debug || |
---|
5748 | { |
---|
5749 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
5750 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
5751 | } |
---|
5752 | |
---|
5753 | # Create a (secure) tmp directory for tmp files. |
---|
5754 | |
---|
5755 | { |
---|
5756 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
5757 | test -n "$tmp" && test -d "$tmp" |
---|
5758 | } || |
---|
5759 | { |
---|
5760 | tmp=./confstat$$-$RANDOM |
---|
5761 | (umask 077 && mkdir $tmp) |
---|
5762 | } || |
---|
5763 | { |
---|
5764 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
5765 | { (exit 1); exit 1; } |
---|
5766 | } |
---|
5767 | |
---|
5768 | _ACEOF |
---|
5769 | |
---|
5770 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
5771 | |
---|
5772 | # |
---|
5773 | # CONFIG_FILES section. |
---|
5774 | # |
---|
5775 | |
---|
5776 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
5777 | # This happens for instance when ./config.status config.h |
---|
5778 | if test -n "\$CONFIG_FILES"; then |
---|
5779 | # Protect against being on the right side of a sed subst in config.status. |
---|
5780 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
5781 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
5782 | s,@SHELL@,$SHELL,;t t |
---|
5783 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
5784 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
5785 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
5786 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
5787 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
5788 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
5789 | s,@exec_prefix@,$exec_prefix,;t t |
---|
5790 | s,@prefix@,$prefix,;t t |
---|
5791 | s,@program_transform_name@,$program_transform_name,;t t |
---|
5792 | s,@bindir@,$bindir,;t t |
---|
5793 | s,@sbindir@,$sbindir,;t t |
---|
5794 | s,@libexecdir@,$libexecdir,;t t |
---|
5795 | s,@datadir@,$datadir,;t t |
---|
5796 | s,@sysconfdir@,$sysconfdir,;t t |
---|
5797 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
5798 | s,@localstatedir@,$localstatedir,;t t |
---|
5799 | s,@libdir@,$libdir,;t t |
---|
5800 | s,@includedir@,$includedir,;t t |
---|
5801 | s,@oldincludedir@,$oldincludedir,;t t |
---|
5802 | s,@infodir@,$infodir,;t t |
---|
5803 | s,@mandir@,$mandir,;t t |
---|
5804 | s,@build_alias@,$build_alias,;t t |
---|
5805 | s,@host_alias@,$host_alias,;t t |
---|
5806 | s,@target_alias@,$target_alias,;t t |
---|
5807 | s,@DEFS@,$DEFS,;t t |
---|
5808 | s,@ECHO_C@,$ECHO_C,;t t |
---|
5809 | s,@ECHO_N@,$ECHO_N,;t t |
---|
5810 | s,@ECHO_T@,$ECHO_T,;t t |
---|
5811 | s,@LIBS@,$LIBS,;t t |
---|
5812 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
5813 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
5814 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
5815 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
5816 | s,@PACKAGE@,$PACKAGE,;t t |
---|
5817 | s,@VERSION@,$VERSION,;t t |
---|
5818 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
5819 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
5820 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
5821 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
5822 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
5823 | s,@AMTAR@,$AMTAR,;t t |
---|
5824 | s,@install_sh@,$install_sh,;t t |
---|
5825 | s,@STRIP@,$STRIP,;t t |
---|
5826 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
5827 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
5828 | s,@AWK@,$AWK,;t t |
---|
5829 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
5830 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
5831 | s,@CXX@,$CXX,;t t |
---|
5832 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
5833 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
5834 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
5835 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
5836 | s,@EXEEXT@,$EXEEXT,;t t |
---|
5837 | s,@OBJEXT@,$OBJEXT,;t t |
---|
5838 | s,@DEPDIR@,$DEPDIR,;t t |
---|
5839 | s,@am__include@,$am__include,;t t |
---|
5840 | s,@am__quote@,$am__quote,;t t |
---|
5841 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
5842 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
5843 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
5844 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
5845 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
5846 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
5847 | s,@CC@,$CC,;t t |
---|
5848 | s,@CFLAGS@,$CFLAGS,;t t |
---|
5849 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
5850 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
5851 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
5852 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
5853 | s,@CPP@,$CPP,;t t |
---|
5854 | s,@EGREP@,$EGREP,;t t |
---|
5855 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
5856 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
5857 | CEOF |
---|
5858 | |
---|
5859 | _ACEOF |
---|
5860 | |
---|
5861 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
5862 | # Split the substitutions into bite-sized pieces for seds with |
---|
5863 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
5864 | ac_max_sed_lines=48 |
---|
5865 | ac_sed_frag=1 # Number of current file. |
---|
5866 | ac_beg=1 # First line for current file. |
---|
5867 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
5868 | ac_more_lines=: |
---|
5869 | ac_sed_cmds= |
---|
5870 | while $ac_more_lines; do |
---|
5871 | if test $ac_beg -gt 1; then |
---|
5872 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
5873 | else |
---|
5874 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
5875 | fi |
---|
5876 | if test ! -s $tmp/subs.frag; then |
---|
5877 | ac_more_lines=false |
---|
5878 | else |
---|
5879 | # The purpose of the label and of the branching condition is to |
---|
5880 | # speed up the sed processing (if there are no `@' at all, there |
---|
5881 | # is no need to browse any of the substitutions). |
---|
5882 | # These are the two extra sed commands mentioned above. |
---|
5883 | (echo ':t |
---|
5884 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
5885 | if test -z "$ac_sed_cmds"; then |
---|
5886 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
5887 | else |
---|
5888 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
5889 | fi |
---|
5890 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
5891 | ac_beg=$ac_end |
---|
5892 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
5893 | fi |
---|
5894 | done |
---|
5895 | if test -z "$ac_sed_cmds"; then |
---|
5896 | ac_sed_cmds=cat |
---|
5897 | fi |
---|
5898 | fi # test -n "$CONFIG_FILES" |
---|
5899 | |
---|
5900 | _ACEOF |
---|
5901 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
5902 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
5903 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
5904 | case $ac_file in |
---|
5905 | - | *:- | *:-:* ) # input from stdin |
---|
5906 | cat >$tmp/stdin |
---|
5907 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
5908 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
5909 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
5910 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
5911 | * ) ac_file_in=$ac_file.in ;; |
---|
5912 | esac |
---|
5913 | |
---|
5914 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
5915 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
5916 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
5917 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
5918 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
5919 | X"$ac_file" : 'X\(/\)' \| \ |
---|
5920 | . : '\(.\)' 2>/dev/null || |
---|
5921 | echo X"$ac_file" | |
---|
5922 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
5923 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
5924 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
5925 | /^X\(\/\).*/{ s//\1/; q; } |
---|
5926 | s/.*/./; q'` |
---|
5927 | { if $as_mkdir_p; then |
---|
5928 | mkdir -p "$ac_dir" |
---|
5929 | else |
---|
5930 | as_dir="$ac_dir" |
---|
5931 | as_dirs= |
---|
5932 | while test ! -d "$as_dir"; do |
---|
5933 | as_dirs="$as_dir $as_dirs" |
---|
5934 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
5935 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
5936 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
5937 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
5938 | X"$as_dir" : 'X\(/\)' \| \ |
---|
5939 | . : '\(.\)' 2>/dev/null || |
---|
5940 | echo X"$as_dir" | |
---|
5941 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
5942 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
5943 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
5944 | /^X\(\/\).*/{ s//\1/; q; } |
---|
5945 | s/.*/./; q'` |
---|
5946 | done |
---|
5947 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
5948 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
5949 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
5950 | { (exit 1); exit 1; }; }; } |
---|
5951 | |
---|
5952 | ac_builddir=. |
---|
5953 | |
---|
5954 | if test "$ac_dir" != .; then |
---|
5955 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
5956 | # A "../" for each directory in $ac_dir_suffix. |
---|
5957 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
5958 | else |
---|
5959 | ac_dir_suffix= ac_top_builddir= |
---|
5960 | fi |
---|
5961 | |
---|
5962 | case $srcdir in |
---|
5963 | .) # No --srcdir option. We are building in place. |
---|
5964 | ac_srcdir=. |
---|
5965 | if test -z "$ac_top_builddir"; then |
---|
5966 | ac_top_srcdir=. |
---|
5967 | else |
---|
5968 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
5969 | fi ;; |
---|
5970 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
5971 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
5972 | ac_top_srcdir=$srcdir ;; |
---|
5973 | *) # Relative path. |
---|
5974 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
5975 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
5976 | esac |
---|
5977 | |
---|
5978 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
5979 | # the directories may not exist. |
---|
5980 | case `pwd` in |
---|
5981 | .) ac_abs_builddir="$ac_dir";; |
---|
5982 | *) |
---|
5983 | case "$ac_dir" in |
---|
5984 | .) ac_abs_builddir=`pwd`;; |
---|
5985 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
5986 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
5987 | esac;; |
---|
5988 | esac |
---|
5989 | case $ac_abs_builddir in |
---|
5990 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
5991 | *) |
---|
5992 | case ${ac_top_builddir}. in |
---|
5993 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
5994 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
5995 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
5996 | esac;; |
---|
5997 | esac |
---|
5998 | case $ac_abs_builddir in |
---|
5999 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
6000 | *) |
---|
6001 | case $ac_srcdir in |
---|
6002 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
6003 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
6004 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
6005 | esac;; |
---|
6006 | esac |
---|
6007 | case $ac_abs_builddir in |
---|
6008 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
6009 | *) |
---|
6010 | case $ac_top_srcdir in |
---|
6011 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
6012 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
6013 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
6014 | esac;; |
---|
6015 | esac |
---|
6016 | |
---|
6017 | |
---|
6018 | case $INSTALL in |
---|
6019 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
6020 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
6021 | esac |
---|
6022 | |
---|
6023 | if test x"$ac_file" != x-; then |
---|
6024 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
6025 | echo "$as_me: creating $ac_file" >&6;} |
---|
6026 | rm -f "$ac_file" |
---|
6027 | fi |
---|
6028 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
6029 | # use $as_me), people would be surprised to read: |
---|
6030 | # /* config.h. Generated by config.status. */ |
---|
6031 | if test x"$ac_file" = x-; then |
---|
6032 | configure_input= |
---|
6033 | else |
---|
6034 | configure_input="$ac_file. " |
---|
6035 | fi |
---|
6036 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
6037 | sed 's,.*/,,'` by configure." |
---|
6038 | |
---|
6039 | # First look for the input files in the build tree, otherwise in the |
---|
6040 | # src tree. |
---|
6041 | ac_file_inputs=`IFS=: |
---|
6042 | for f in $ac_file_in; do |
---|
6043 | case $f in |
---|
6044 | -) echo $tmp/stdin ;; |
---|
6045 | [\\/$]*) |
---|
6046 | # Absolute (can't be DOS-style, as IFS=:) |
---|
6047 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
6048 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
6049 | { (exit 1); exit 1; }; } |
---|
6050 | echo "$f";; |
---|
6051 | *) # Relative |
---|
6052 | if test -f "$f"; then |
---|
6053 | # Build tree |
---|
6054 | echo "$f" |
---|
6055 | elif test -f "$srcdir/$f"; then |
---|
6056 | # Source tree |
---|
6057 | echo "$srcdir/$f" |
---|
6058 | else |
---|
6059 | # /dev/null tree |
---|
6060 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
6061 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
6062 | { (exit 1); exit 1; }; } |
---|
6063 | fi;; |
---|
6064 | esac |
---|
6065 | done` || { (exit 1); exit 1; } |
---|
6066 | _ACEOF |
---|
6067 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6068 | sed "$ac_vpsub |
---|
6069 | $extrasub |
---|
6070 | _ACEOF |
---|
6071 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6072 | :t |
---|
6073 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
6074 | s,@configure_input@,$configure_input,;t t |
---|
6075 | s,@srcdir@,$ac_srcdir,;t t |
---|
6076 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
6077 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
6078 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
6079 | s,@builddir@,$ac_builddir,;t t |
---|
6080 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
6081 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
6082 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
6083 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
6084 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
6085 | rm -f $tmp/stdin |
---|
6086 | if test x"$ac_file" != x-; then |
---|
6087 | mv $tmp/out $ac_file |
---|
6088 | else |
---|
6089 | cat $tmp/out |
---|
6090 | rm -f $tmp/out |
---|
6091 | fi |
---|
6092 | |
---|
6093 | done |
---|
6094 | _ACEOF |
---|
6095 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6096 | |
---|
6097 | # |
---|
6098 | # CONFIG_HEADER section. |
---|
6099 | # |
---|
6100 | |
---|
6101 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
6102 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
6103 | # |
---|
6104 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
6105 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
6106 | ac_dB='[ ].*$,\1#\2' |
---|
6107 | ac_dC=' ' |
---|
6108 | ac_dD=',;t' |
---|
6109 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
6110 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
6111 | ac_uB='$,\1#\2define\3' |
---|
6112 | ac_uC=' ' |
---|
6113 | ac_uD=',;t' |
---|
6114 | |
---|
6115 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
6116 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
6117 | case $ac_file in |
---|
6118 | - | *:- | *:-:* ) # input from stdin |
---|
6119 | cat >$tmp/stdin |
---|
6120 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6121 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6122 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6123 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6124 | * ) ac_file_in=$ac_file.in ;; |
---|
6125 | esac |
---|
6126 | |
---|
6127 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
6128 | echo "$as_me: creating $ac_file" >&6;} |
---|
6129 | |
---|
6130 | # First look for the input files in the build tree, otherwise in the |
---|
6131 | # src tree. |
---|
6132 | ac_file_inputs=`IFS=: |
---|
6133 | for f in $ac_file_in; do |
---|
6134 | case $f in |
---|
6135 | -) echo $tmp/stdin ;; |
---|
6136 | [\\/$]*) |
---|
6137 | # Absolute (can't be DOS-style, as IFS=:) |
---|
6138 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
6139 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
6140 | { (exit 1); exit 1; }; } |
---|
6141 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
6142 | echo "$f";; |
---|
6143 | *) # Relative |
---|
6144 | if test -f "$f"; then |
---|
6145 | # Build tree |
---|
6146 | echo "$f" |
---|
6147 | elif test -f "$srcdir/$f"; then |
---|
6148 | # Source tree |
---|
6149 | echo "$srcdir/$f" |
---|
6150 | else |
---|
6151 | # /dev/null tree |
---|
6152 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
6153 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
6154 | { (exit 1); exit 1; }; } |
---|
6155 | fi;; |
---|
6156 | esac |
---|
6157 | done` || { (exit 1); exit 1; } |
---|
6158 | # Remove the trailing spaces. |
---|
6159 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
6160 | |
---|
6161 | _ACEOF |
---|
6162 | |
---|
6163 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
6164 | # `conftest.undefs', that substitutes the proper values into |
---|
6165 | # config.h.in to produce config.h. The first handles `#define' |
---|
6166 | # templates, and the second `#undef' templates. |
---|
6167 | # And first: Protect against being on the right side of a sed subst in |
---|
6168 | # config.status. Protect against being in an unquoted here document |
---|
6169 | # in config.status. |
---|
6170 | rm -f conftest.defines conftest.undefs |
---|
6171 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
6172 | # Putting comments in sed scripts is not portable. |
---|
6173 | # |
---|
6174 | # `end' is used to avoid that the second main sed command (meant for |
---|
6175 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
6176 | # See the Autoconf documentation for `clear'. |
---|
6177 | cat >confdef2sed.sed <<\_ACEOF |
---|
6178 | s/[\\&,]/\\&/g |
---|
6179 | s,[\\$`],\\&,g |
---|
6180 | t clear |
---|
6181 | : clear |
---|
6182 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
6183 | t end |
---|
6184 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
6185 | : end |
---|
6186 | _ACEOF |
---|
6187 | # If some macros were called several times there might be several times |
---|
6188 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
6189 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
6190 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
6191 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
6192 | rm -f confdef2sed.sed |
---|
6193 | |
---|
6194 | # This sed command replaces #undef with comments. This is necessary, for |
---|
6195 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
6196 | # on some systems where configure will not decide to define it. |
---|
6197 | cat >>conftest.undefs <<\_ACEOF |
---|
6198 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
6199 | _ACEOF |
---|
6200 | |
---|
6201 | # Break up conftest.defines because some shells have a limit on the size |
---|
6202 | # of here documents, and old seds have small limits too (100 cmds). |
---|
6203 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
6204 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
6205 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
6206 | echo ' :' >>$CONFIG_STATUS |
---|
6207 | rm -f conftest.tail |
---|
6208 | while grep . conftest.defines >/dev/null |
---|
6209 | do |
---|
6210 | # Write a limited-size here document to $tmp/defines.sed. |
---|
6211 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
6212 | # Speed up: don't consider the non `#define' lines. |
---|
6213 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
6214 | # Work around the forget-to-reset-the-flag bug. |
---|
6215 | echo 't clr' >>$CONFIG_STATUS |
---|
6216 | echo ': clr' >>$CONFIG_STATUS |
---|
6217 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
6218 | echo 'CEOF |
---|
6219 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
6220 | rm -f $tmp/in |
---|
6221 | mv $tmp/out $tmp/in |
---|
6222 | ' >>$CONFIG_STATUS |
---|
6223 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
6224 | rm -f conftest.defines |
---|
6225 | mv conftest.tail conftest.defines |
---|
6226 | done |
---|
6227 | rm -f conftest.defines |
---|
6228 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
6229 | echo >>$CONFIG_STATUS |
---|
6230 | |
---|
6231 | # Break up conftest.undefs because some shells have a limit on the size |
---|
6232 | # of here documents, and old seds have small limits too (100 cmds). |
---|
6233 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
6234 | rm -f conftest.tail |
---|
6235 | while grep . conftest.undefs >/dev/null |
---|
6236 | do |
---|
6237 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
6238 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
6239 | # Speed up: don't consider the non `#undef' |
---|
6240 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
6241 | # Work around the forget-to-reset-the-flag bug. |
---|
6242 | echo 't clr' >>$CONFIG_STATUS |
---|
6243 | echo ': clr' >>$CONFIG_STATUS |
---|
6244 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
6245 | echo 'CEOF |
---|
6246 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
6247 | rm -f $tmp/in |
---|
6248 | mv $tmp/out $tmp/in |
---|
6249 | ' >>$CONFIG_STATUS |
---|
6250 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
6251 | rm -f conftest.undefs |
---|
6252 | mv conftest.tail conftest.undefs |
---|
6253 | done |
---|
6254 | rm -f conftest.undefs |
---|
6255 | |
---|
6256 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6257 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
6258 | # use $as_me), people would be surprised to read: |
---|
6259 | # /* config.h. Generated by config.status. */ |
---|
6260 | if test x"$ac_file" = x-; then |
---|
6261 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
6262 | else |
---|
6263 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
6264 | fi |
---|
6265 | cat $tmp/in >>$tmp/config.h |
---|
6266 | rm -f $tmp/in |
---|
6267 | if test x"$ac_file" != x-; then |
---|
6268 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
6269 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
6270 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
6271 | else |
---|
6272 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
6273 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6274 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
6275 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
6276 | X"$ac_file" : 'X\(/\)' \| \ |
---|
6277 | . : '\(.\)' 2>/dev/null || |
---|
6278 | echo X"$ac_file" | |
---|
6279 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6280 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6281 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6282 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6283 | s/.*/./; q'` |
---|
6284 | { if $as_mkdir_p; then |
---|
6285 | mkdir -p "$ac_dir" |
---|
6286 | else |
---|
6287 | as_dir="$ac_dir" |
---|
6288 | as_dirs= |
---|
6289 | while test ! -d "$as_dir"; do |
---|
6290 | as_dirs="$as_dir $as_dirs" |
---|
6291 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
6292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6293 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
6294 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
6295 | X"$as_dir" : 'X\(/\)' \| \ |
---|
6296 | . : '\(.\)' 2>/dev/null || |
---|
6297 | echo X"$as_dir" | |
---|
6298 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6299 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6300 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6301 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6302 | s/.*/./; q'` |
---|
6303 | done |
---|
6304 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
6305 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
6306 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
6307 | { (exit 1); exit 1; }; }; } |
---|
6308 | |
---|
6309 | rm -f $ac_file |
---|
6310 | mv $tmp/config.h $ac_file |
---|
6311 | fi |
---|
6312 | else |
---|
6313 | cat $tmp/config.h |
---|
6314 | rm -f $tmp/config.h |
---|
6315 | fi |
---|
6316 | # Compute $ac_file's index in $config_headers. |
---|
6317 | _am_stamp_count=1 |
---|
6318 | for _am_header in $config_headers :; do |
---|
6319 | case $_am_header in |
---|
6320 | $ac_file | $ac_file:* ) |
---|
6321 | break ;; |
---|
6322 | * ) |
---|
6323 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
6324 | esac |
---|
6325 | done |
---|
6326 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
6327 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6328 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
6329 | X$ac_file : 'X\(//\)$' \| \ |
---|
6330 | X$ac_file : 'X\(/\)' \| \ |
---|
6331 | . : '\(.\)' 2>/dev/null || |
---|
6332 | echo X$ac_file | |
---|
6333 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6334 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6335 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6336 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6337 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
6338 | done |
---|
6339 | _ACEOF |
---|
6340 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6341 | |
---|
6342 | # |
---|
6343 | # CONFIG_COMMANDS section. |
---|
6344 | # |
---|
6345 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
6346 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
6347 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6348 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
6349 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6350 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
6351 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
6352 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
6353 | . : '\(.\)' 2>/dev/null || |
---|
6354 | echo X"$ac_dest" | |
---|
6355 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6356 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6357 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6358 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6359 | s/.*/./; q'` |
---|
6360 | { if $as_mkdir_p; then |
---|
6361 | mkdir -p "$ac_dir" |
---|
6362 | else |
---|
6363 | as_dir="$ac_dir" |
---|
6364 | as_dirs= |
---|
6365 | while test ! -d "$as_dir"; do |
---|
6366 | as_dirs="$as_dir $as_dirs" |
---|
6367 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
6368 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6369 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
6370 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
6371 | X"$as_dir" : 'X\(/\)' \| \ |
---|
6372 | . : '\(.\)' 2>/dev/null || |
---|
6373 | echo X"$as_dir" | |
---|
6374 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6375 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6376 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6377 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6378 | s/.*/./; q'` |
---|
6379 | done |
---|
6380 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
6381 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
6382 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
6383 | { (exit 1); exit 1; }; }; } |
---|
6384 | |
---|
6385 | ac_builddir=. |
---|
6386 | |
---|
6387 | if test "$ac_dir" != .; then |
---|
6388 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
6389 | # A "../" for each directory in $ac_dir_suffix. |
---|
6390 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
6391 | else |
---|
6392 | ac_dir_suffix= ac_top_builddir= |
---|
6393 | fi |
---|
6394 | |
---|
6395 | case $srcdir in |
---|
6396 | .) # No --srcdir option. We are building in place. |
---|
6397 | ac_srcdir=. |
---|
6398 | if test -z "$ac_top_builddir"; then |
---|
6399 | ac_top_srcdir=. |
---|
6400 | else |
---|
6401 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
6402 | fi ;; |
---|
6403 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
6404 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
6405 | ac_top_srcdir=$srcdir ;; |
---|
6406 | *) # Relative path. |
---|
6407 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
6408 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
6409 | esac |
---|
6410 | |
---|
6411 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
6412 | # the directories may not exist. |
---|
6413 | case `pwd` in |
---|
6414 | .) ac_abs_builddir="$ac_dir";; |
---|
6415 | *) |
---|
6416 | case "$ac_dir" in |
---|
6417 | .) ac_abs_builddir=`pwd`;; |
---|
6418 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
6419 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
6420 | esac;; |
---|
6421 | esac |
---|
6422 | case $ac_abs_builddir in |
---|
6423 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
6424 | *) |
---|
6425 | case ${ac_top_builddir}. in |
---|
6426 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
6427 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
6428 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
6429 | esac;; |
---|
6430 | esac |
---|
6431 | case $ac_abs_builddir in |
---|
6432 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
6433 | *) |
---|
6434 | case $ac_srcdir in |
---|
6435 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
6436 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
6437 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
6438 | esac;; |
---|
6439 | esac |
---|
6440 | case $ac_abs_builddir in |
---|
6441 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
6442 | *) |
---|
6443 | case $ac_top_srcdir in |
---|
6444 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
6445 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
6446 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
6447 | esac;; |
---|
6448 | esac |
---|
6449 | |
---|
6450 | |
---|
6451 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
6452 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
6453 | case $ac_dest in |
---|
6454 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
6455 | # Strip MF so we end up with the name of the file. |
---|
6456 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
6457 | # Check whether this is an Automake generated Makefile or not. |
---|
6458 | # We used to match only the files named `Makefile.in', but |
---|
6459 | # some people rename them; so instead we look at the file content. |
---|
6460 | # Grep'ing the first line is not enough: some people post-process |
---|
6461 | # each Makefile.in and add a new line on top of each file to say so. |
---|
6462 | # So let's grep whole file. |
---|
6463 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
6464 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
6465 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6466 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
6467 | X"$mf" : 'X\(//\)$' \| \ |
---|
6468 | X"$mf" : 'X\(/\)' \| \ |
---|
6469 | . : '\(.\)' 2>/dev/null || |
---|
6470 | echo X"$mf" | |
---|
6471 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6472 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6473 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6474 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6475 | s/.*/./; q'` |
---|
6476 | else |
---|
6477 | continue |
---|
6478 | fi |
---|
6479 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
6480 | # Extract the definition of DEP_FILES from the Makefile without |
---|
6481 | # running `make'. |
---|
6482 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
---|
6483 | test -z "$DEPDIR" && continue |
---|
6484 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
6485 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
---|
6486 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
6487 | # We invoke sed twice because it is the simplest approach to |
---|
6488 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
6489 | for file in `sed -n -e ' |
---|
6490 | /^DEP_FILES = .*\\\\$/ { |
---|
6491 | s/^DEP_FILES = // |
---|
6492 | :loop |
---|
6493 | s/\\\\$// |
---|
6494 | p |
---|
6495 | n |
---|
6496 | /\\\\$/ b loop |
---|
6497 | p |
---|
6498 | } |
---|
6499 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
6500 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
6501 | # Make sure the directory exists. |
---|
6502 | test -f "$dirpart/$file" && continue |
---|
6503 | fdir=`(dirname "$file") 2>/dev/null || |
---|
6504 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6505 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
6506 | X"$file" : 'X\(//\)$' \| \ |
---|
6507 | X"$file" : 'X\(/\)' \| \ |
---|
6508 | . : '\(.\)' 2>/dev/null || |
---|
6509 | echo X"$file" | |
---|
6510 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6511 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6512 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6513 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6514 | s/.*/./; q'` |
---|
6515 | { if $as_mkdir_p; then |
---|
6516 | mkdir -p $dirpart/$fdir |
---|
6517 | else |
---|
6518 | as_dir=$dirpart/$fdir |
---|
6519 | as_dirs= |
---|
6520 | while test ! -d "$as_dir"; do |
---|
6521 | as_dirs="$as_dir $as_dirs" |
---|
6522 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
6523 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6524 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
6525 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
6526 | X"$as_dir" : 'X\(/\)' \| \ |
---|
6527 | . : '\(.\)' 2>/dev/null || |
---|
6528 | echo X"$as_dir" | |
---|
6529 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6530 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6531 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6532 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6533 | s/.*/./; q'` |
---|
6534 | done |
---|
6535 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
6536 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
6537 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
6538 | { (exit 1); exit 1; }; }; } |
---|
6539 | |
---|
6540 | # echo "creating $dirpart/$file" |
---|
6541 | echo '# dummy' > "$dirpart/$file" |
---|
6542 | done |
---|
6543 | done |
---|
6544 | ;; |
---|
6545 | esac |
---|
6546 | done |
---|
6547 | _ACEOF |
---|
6548 | |
---|
6549 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6550 | |
---|
6551 | { (exit 0); exit 0; } |
---|
6552 | _ACEOF |
---|
6553 | chmod +x $CONFIG_STATUS |
---|
6554 | ac_clean_files=$ac_clean_files_save |
---|
6555 | |
---|
6556 | |
---|
6557 | # configure is writing to config.log, and then calls config.status. |
---|
6558 | # config.status does its own redirection, appending to config.log. |
---|
6559 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
6560 | # by configure, so config.status won't be able to write to it; its |
---|
6561 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
6562 | # effectively closing config.log, so it can be properly (re)opened and |
---|
6563 | # appended to by config.status. When coming back to configure, we |
---|
6564 | # need to make the FD available again. |
---|
6565 | if test "$no_create" != yes; then |
---|
6566 | ac_cs_success=: |
---|
6567 | ac_config_status_args= |
---|
6568 | test "$silent" = yes && |
---|
6569 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
6570 | exec 5>/dev/null |
---|
6571 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
6572 | exec 5>>config.log |
---|
6573 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
6574 | # would make configure fail if this is the last instruction. |
---|
6575 | $ac_cs_success || { (exit 1); exit 1; } |
---|
6576 | fi |
---|
6577 | |
---|