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 MSBITFIELDS 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 | echo "$as_me:$LINENO: checking for mingw" >&5 |
---|
1729 | echo $ECHO_N "checking for mingw... $ECHO_C" >&6 |
---|
1730 | case `uname` in |
---|
1731 | *MINGW*) |
---|
1732 | mingw="yes" |
---|
1733 | MSBITFIELDS="-mms-bitfields" |
---|
1734 | MWINDOWS="-mwindows" |
---|
1735 | ;; |
---|
1736 | *) |
---|
1737 | mingw="no" |
---|
1738 | ;; |
---|
1739 | esac |
---|
1740 | echo "$as_me:$LINENO: result: $mingw" >&5 |
---|
1741 | echo "${ECHO_T}$mingw" >&6 |
---|
1742 | |
---|
1743 | |
---|
1744 | |
---|
1745 | # Checks for programs. |
---|
1746 | ac_ext=cc |
---|
1747 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1748 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1749 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1750 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
1751 | if test -n "$ac_tool_prefix"; then |
---|
1752 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1753 | do |
---|
1754 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1755 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1756 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1758 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
1759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1760 | else |
---|
1761 | if test -n "$CXX"; then |
---|
1762 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
1763 | else |
---|
1764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1765 | for as_dir in $PATH |
---|
1766 | do |
---|
1767 | IFS=$as_save_IFS |
---|
1768 | test -z "$as_dir" && as_dir=. |
---|
1769 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1770 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1771 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
1772 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1773 | break 2 |
---|
1774 | fi |
---|
1775 | done |
---|
1776 | done |
---|
1777 | |
---|
1778 | fi |
---|
1779 | fi |
---|
1780 | CXX=$ac_cv_prog_CXX |
---|
1781 | if test -n "$CXX"; then |
---|
1782 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
1783 | echo "${ECHO_T}$CXX" >&6 |
---|
1784 | else |
---|
1785 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1786 | echo "${ECHO_T}no" >&6 |
---|
1787 | fi |
---|
1788 | |
---|
1789 | test -n "$CXX" && break |
---|
1790 | done |
---|
1791 | fi |
---|
1792 | if test -z "$CXX"; then |
---|
1793 | ac_ct_CXX=$CXX |
---|
1794 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1795 | do |
---|
1796 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1797 | set dummy $ac_prog; ac_word=$2 |
---|
1798 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1799 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1800 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
1801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1802 | else |
---|
1803 | if test -n "$ac_ct_CXX"; then |
---|
1804 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
1805 | else |
---|
1806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1807 | for as_dir in $PATH |
---|
1808 | do |
---|
1809 | IFS=$as_save_IFS |
---|
1810 | test -z "$as_dir" && as_dir=. |
---|
1811 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1812 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1813 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
1814 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1815 | break 2 |
---|
1816 | fi |
---|
1817 | done |
---|
1818 | done |
---|
1819 | |
---|
1820 | fi |
---|
1821 | fi |
---|
1822 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
1823 | if test -n "$ac_ct_CXX"; then |
---|
1824 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
1825 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
1826 | else |
---|
1827 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1828 | echo "${ECHO_T}no" >&6 |
---|
1829 | fi |
---|
1830 | |
---|
1831 | test -n "$ac_ct_CXX" && break |
---|
1832 | done |
---|
1833 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
1834 | |
---|
1835 | CXX=$ac_ct_CXX |
---|
1836 | fi |
---|
1837 | |
---|
1838 | |
---|
1839 | # Provide some information about the compiler. |
---|
1840 | echo "$as_me:$LINENO:" \ |
---|
1841 | "checking for C++ compiler version" >&5 |
---|
1842 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1843 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1844 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1845 | ac_status=$? |
---|
1846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1847 | (exit $ac_status); } |
---|
1848 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1849 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1850 | ac_status=$? |
---|
1851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1852 | (exit $ac_status); } |
---|
1853 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1854 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1855 | ac_status=$? |
---|
1856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1857 | (exit $ac_status); } |
---|
1858 | |
---|
1859 | cat >conftest.$ac_ext <<_ACEOF |
---|
1860 | /* confdefs.h. */ |
---|
1861 | _ACEOF |
---|
1862 | cat confdefs.h >>conftest.$ac_ext |
---|
1863 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1864 | /* end confdefs.h. */ |
---|
1865 | |
---|
1866 | int |
---|
1867 | main () |
---|
1868 | { |
---|
1869 | |
---|
1870 | ; |
---|
1871 | return 0; |
---|
1872 | } |
---|
1873 | _ACEOF |
---|
1874 | ac_clean_files_save=$ac_clean_files |
---|
1875 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
1876 | # Try to create an executable without -o first, disregard a.out. |
---|
1877 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
1878 | # of exeext. |
---|
1879 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
1880 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
1881 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
1882 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
1883 | (eval $ac_link_default) 2>&5 |
---|
1884 | ac_status=$? |
---|
1885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1886 | (exit $ac_status); }; then |
---|
1887 | # Find the output, starting from the most likely. This scheme is |
---|
1888 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
1889 | # resort. |
---|
1890 | |
---|
1891 | # Be careful to initialize this variable, since it used to be cached. |
---|
1892 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
1893 | ac_cv_exeext= |
---|
1894 | # b.out is created by i960 compilers. |
---|
1895 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
1896 | do |
---|
1897 | test -f "$ac_file" || continue |
---|
1898 | case $ac_file in |
---|
1899 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
1900 | ;; |
---|
1901 | conftest.$ac_ext ) |
---|
1902 | # This is the source file. |
---|
1903 | ;; |
---|
1904 | [ab].out ) |
---|
1905 | # We found the default executable, but exeext='' is most |
---|
1906 | # certainly right. |
---|
1907 | break;; |
---|
1908 | *.* ) |
---|
1909 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
1910 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
1911 | # but it would be cool to find out if it's true. Does anybody |
---|
1912 | # maintain Libtool? --akim. |
---|
1913 | export ac_cv_exeext |
---|
1914 | break;; |
---|
1915 | * ) |
---|
1916 | break;; |
---|
1917 | esac |
---|
1918 | done |
---|
1919 | else |
---|
1920 | echo "$as_me: failed program was:" >&5 |
---|
1921 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1922 | |
---|
1923 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
1924 | See \`config.log' for more details." >&5 |
---|
1925 | echo "$as_me: error: C++ compiler cannot create executables |
---|
1926 | See \`config.log' for more details." >&2;} |
---|
1927 | { (exit 77); exit 77; }; } |
---|
1928 | fi |
---|
1929 | |
---|
1930 | ac_exeext=$ac_cv_exeext |
---|
1931 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
1932 | echo "${ECHO_T}$ac_file" >&6 |
---|
1933 | |
---|
1934 | # Check the compiler produces executables we can run. If not, either |
---|
1935 | # the compiler is broken, or we cross compile. |
---|
1936 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
1937 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
1938 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
1939 | # If not cross compiling, check that we can run a simple program. |
---|
1940 | if test "$cross_compiling" != yes; then |
---|
1941 | if { ac_try='./$ac_file' |
---|
1942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
1943 | (eval $ac_try) 2>&5 |
---|
1944 | ac_status=$? |
---|
1945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1946 | (exit $ac_status); }; }; then |
---|
1947 | cross_compiling=no |
---|
1948 | else |
---|
1949 | if test "$cross_compiling" = maybe; then |
---|
1950 | cross_compiling=yes |
---|
1951 | else |
---|
1952 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
1953 | If you meant to cross compile, use \`--host'. |
---|
1954 | See \`config.log' for more details." >&5 |
---|
1955 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
1956 | If you meant to cross compile, use \`--host'. |
---|
1957 | See \`config.log' for more details." >&2;} |
---|
1958 | { (exit 1); exit 1; }; } |
---|
1959 | fi |
---|
1960 | fi |
---|
1961 | fi |
---|
1962 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1963 | echo "${ECHO_T}yes" >&6 |
---|
1964 | |
---|
1965 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
1966 | ac_clean_files=$ac_clean_files_save |
---|
1967 | # Check the compiler produces executables we can run. If not, either |
---|
1968 | # the compiler is broken, or we cross compile. |
---|
1969 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
1970 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
1971 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
1972 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
1973 | |
---|
1974 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
1975 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
1976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
1977 | (eval $ac_link) 2>&5 |
---|
1978 | ac_status=$? |
---|
1979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1980 | (exit $ac_status); }; then |
---|
1981 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
1982 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
1983 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
1984 | # `rm'. |
---|
1985 | for ac_file in conftest.exe conftest conftest.*; do |
---|
1986 | test -f "$ac_file" || continue |
---|
1987 | case $ac_file in |
---|
1988 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
1989 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
1990 | export ac_cv_exeext |
---|
1991 | break;; |
---|
1992 | * ) break;; |
---|
1993 | esac |
---|
1994 | done |
---|
1995 | else |
---|
1996 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
1997 | See \`config.log' for more details." >&5 |
---|
1998 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
1999 | See \`config.log' for more details." >&2;} |
---|
2000 | { (exit 1); exit 1; }; } |
---|
2001 | fi |
---|
2002 | |
---|
2003 | rm -f conftest$ac_cv_exeext |
---|
2004 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2005 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2006 | |
---|
2007 | rm -f conftest.$ac_ext |
---|
2008 | EXEEXT=$ac_cv_exeext |
---|
2009 | ac_exeext=$EXEEXT |
---|
2010 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2011 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2012 | if test "${ac_cv_objext+set}" = set; then |
---|
2013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2014 | else |
---|
2015 | cat >conftest.$ac_ext <<_ACEOF |
---|
2016 | /* confdefs.h. */ |
---|
2017 | _ACEOF |
---|
2018 | cat confdefs.h >>conftest.$ac_ext |
---|
2019 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2020 | /* end confdefs.h. */ |
---|
2021 | |
---|
2022 | int |
---|
2023 | main () |
---|
2024 | { |
---|
2025 | |
---|
2026 | ; |
---|
2027 | return 0; |
---|
2028 | } |
---|
2029 | _ACEOF |
---|
2030 | rm -f conftest.o conftest.obj |
---|
2031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2032 | (eval $ac_compile) 2>&5 |
---|
2033 | ac_status=$? |
---|
2034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2035 | (exit $ac_status); }; then |
---|
2036 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2037 | case $ac_file in |
---|
2038 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2039 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2040 | break;; |
---|
2041 | esac |
---|
2042 | done |
---|
2043 | else |
---|
2044 | echo "$as_me: failed program was:" >&5 |
---|
2045 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2046 | |
---|
2047 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2048 | See \`config.log' for more details." >&5 |
---|
2049 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2050 | See \`config.log' for more details." >&2;} |
---|
2051 | { (exit 1); exit 1; }; } |
---|
2052 | fi |
---|
2053 | |
---|
2054 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2055 | fi |
---|
2056 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2057 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2058 | OBJEXT=$ac_cv_objext |
---|
2059 | ac_objext=$OBJEXT |
---|
2060 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
2061 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
2062 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
2063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2064 | else |
---|
2065 | cat >conftest.$ac_ext <<_ACEOF |
---|
2066 | /* confdefs.h. */ |
---|
2067 | _ACEOF |
---|
2068 | cat confdefs.h >>conftest.$ac_ext |
---|
2069 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2070 | /* end confdefs.h. */ |
---|
2071 | |
---|
2072 | int |
---|
2073 | main () |
---|
2074 | { |
---|
2075 | #ifndef __GNUC__ |
---|
2076 | choke me |
---|
2077 | #endif |
---|
2078 | |
---|
2079 | ; |
---|
2080 | return 0; |
---|
2081 | } |
---|
2082 | _ACEOF |
---|
2083 | rm -f conftest.$ac_objext |
---|
2084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2085 | (eval $ac_compile) 2>conftest.er1 |
---|
2086 | ac_status=$? |
---|
2087 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2088 | rm -f conftest.er1 |
---|
2089 | cat conftest.err >&5 |
---|
2090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2091 | (exit $ac_status); } && |
---|
2092 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2093 | || test ! -s conftest.err' |
---|
2094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2095 | (eval $ac_try) 2>&5 |
---|
2096 | ac_status=$? |
---|
2097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2098 | (exit $ac_status); }; } && |
---|
2099 | { ac_try='test -s conftest.$ac_objext' |
---|
2100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2101 | (eval $ac_try) 2>&5 |
---|
2102 | ac_status=$? |
---|
2103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2104 | (exit $ac_status); }; }; then |
---|
2105 | ac_compiler_gnu=yes |
---|
2106 | else |
---|
2107 | echo "$as_me: failed program was:" >&5 |
---|
2108 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2109 | |
---|
2110 | ac_compiler_gnu=no |
---|
2111 | fi |
---|
2112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2113 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
2114 | |
---|
2115 | fi |
---|
2116 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
2117 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
2118 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
2119 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
2120 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
2121 | CXXFLAGS="-g" |
---|
2122 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
2123 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
2124 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
2125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2126 | else |
---|
2127 | cat >conftest.$ac_ext <<_ACEOF |
---|
2128 | /* confdefs.h. */ |
---|
2129 | _ACEOF |
---|
2130 | cat confdefs.h >>conftest.$ac_ext |
---|
2131 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2132 | /* end confdefs.h. */ |
---|
2133 | |
---|
2134 | int |
---|
2135 | main () |
---|
2136 | { |
---|
2137 | |
---|
2138 | ; |
---|
2139 | return 0; |
---|
2140 | } |
---|
2141 | _ACEOF |
---|
2142 | rm -f conftest.$ac_objext |
---|
2143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2144 | (eval $ac_compile) 2>conftest.er1 |
---|
2145 | ac_status=$? |
---|
2146 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2147 | rm -f conftest.er1 |
---|
2148 | cat conftest.err >&5 |
---|
2149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2150 | (exit $ac_status); } && |
---|
2151 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2152 | || test ! -s conftest.err' |
---|
2153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2154 | (eval $ac_try) 2>&5 |
---|
2155 | ac_status=$? |
---|
2156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2157 | (exit $ac_status); }; } && |
---|
2158 | { ac_try='test -s conftest.$ac_objext' |
---|
2159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2160 | (eval $ac_try) 2>&5 |
---|
2161 | ac_status=$? |
---|
2162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2163 | (exit $ac_status); }; }; then |
---|
2164 | ac_cv_prog_cxx_g=yes |
---|
2165 | else |
---|
2166 | echo "$as_me: failed program was:" >&5 |
---|
2167 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2168 | |
---|
2169 | ac_cv_prog_cxx_g=no |
---|
2170 | fi |
---|
2171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2172 | fi |
---|
2173 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
2174 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
2175 | if test "$ac_test_CXXFLAGS" = set; then |
---|
2176 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
2177 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
2178 | if test "$GXX" = yes; then |
---|
2179 | CXXFLAGS="-g -O2" |
---|
2180 | else |
---|
2181 | CXXFLAGS="-g" |
---|
2182 | fi |
---|
2183 | else |
---|
2184 | if test "$GXX" = yes; then |
---|
2185 | CXXFLAGS="-O2" |
---|
2186 | else |
---|
2187 | CXXFLAGS= |
---|
2188 | fi |
---|
2189 | fi |
---|
2190 | for ac_declaration in \ |
---|
2191 | '' \ |
---|
2192 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2193 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2194 | 'extern "C" void exit (int) throw ();' \ |
---|
2195 | 'extern "C" void exit (int);' \ |
---|
2196 | 'void exit (int);' |
---|
2197 | do |
---|
2198 | cat >conftest.$ac_ext <<_ACEOF |
---|
2199 | /* confdefs.h. */ |
---|
2200 | _ACEOF |
---|
2201 | cat confdefs.h >>conftest.$ac_ext |
---|
2202 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2203 | /* end confdefs.h. */ |
---|
2204 | $ac_declaration |
---|
2205 | #include <stdlib.h> |
---|
2206 | int |
---|
2207 | main () |
---|
2208 | { |
---|
2209 | exit (42); |
---|
2210 | ; |
---|
2211 | return 0; |
---|
2212 | } |
---|
2213 | _ACEOF |
---|
2214 | rm -f conftest.$ac_objext |
---|
2215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2216 | (eval $ac_compile) 2>conftest.er1 |
---|
2217 | ac_status=$? |
---|
2218 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2219 | rm -f conftest.er1 |
---|
2220 | cat conftest.err >&5 |
---|
2221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2222 | (exit $ac_status); } && |
---|
2223 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2224 | || test ! -s conftest.err' |
---|
2225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2226 | (eval $ac_try) 2>&5 |
---|
2227 | ac_status=$? |
---|
2228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2229 | (exit $ac_status); }; } && |
---|
2230 | { ac_try='test -s conftest.$ac_objext' |
---|
2231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2232 | (eval $ac_try) 2>&5 |
---|
2233 | ac_status=$? |
---|
2234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2235 | (exit $ac_status); }; }; then |
---|
2236 | : |
---|
2237 | else |
---|
2238 | echo "$as_me: failed program was:" >&5 |
---|
2239 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2240 | |
---|
2241 | continue |
---|
2242 | fi |
---|
2243 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2244 | cat >conftest.$ac_ext <<_ACEOF |
---|
2245 | /* confdefs.h. */ |
---|
2246 | _ACEOF |
---|
2247 | cat confdefs.h >>conftest.$ac_ext |
---|
2248 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2249 | /* end confdefs.h. */ |
---|
2250 | $ac_declaration |
---|
2251 | int |
---|
2252 | main () |
---|
2253 | { |
---|
2254 | exit (42); |
---|
2255 | ; |
---|
2256 | return 0; |
---|
2257 | } |
---|
2258 | _ACEOF |
---|
2259 | rm -f conftest.$ac_objext |
---|
2260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2261 | (eval $ac_compile) 2>conftest.er1 |
---|
2262 | ac_status=$? |
---|
2263 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2264 | rm -f conftest.er1 |
---|
2265 | cat conftest.err >&5 |
---|
2266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2267 | (exit $ac_status); } && |
---|
2268 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2269 | || test ! -s conftest.err' |
---|
2270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2271 | (eval $ac_try) 2>&5 |
---|
2272 | ac_status=$? |
---|
2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2274 | (exit $ac_status); }; } && |
---|
2275 | { ac_try='test -s conftest.$ac_objext' |
---|
2276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2277 | (eval $ac_try) 2>&5 |
---|
2278 | ac_status=$? |
---|
2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2280 | (exit $ac_status); }; }; then |
---|
2281 | break |
---|
2282 | else |
---|
2283 | echo "$as_me: failed program was:" >&5 |
---|
2284 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2285 | |
---|
2286 | fi |
---|
2287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2288 | done |
---|
2289 | rm -f conftest* |
---|
2290 | if test -n "$ac_declaration"; then |
---|
2291 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2292 | echo $ac_declaration >>confdefs.h |
---|
2293 | echo '#endif' >>confdefs.h |
---|
2294 | fi |
---|
2295 | |
---|
2296 | ac_ext=c |
---|
2297 | ac_cpp='$CPP $CPPFLAGS' |
---|
2298 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2299 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2300 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2301 | DEPDIR="${am__leading_dot}deps" |
---|
2302 | |
---|
2303 | ac_config_commands="$ac_config_commands depfiles" |
---|
2304 | |
---|
2305 | |
---|
2306 | am_make=${MAKE-make} |
---|
2307 | cat > confinc << 'END' |
---|
2308 | am__doit: |
---|
2309 | @echo done |
---|
2310 | .PHONY: am__doit |
---|
2311 | END |
---|
2312 | # If we don't find an include directive, just comment out the code. |
---|
2313 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
2314 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
2315 | am__include="#" |
---|
2316 | am__quote= |
---|
2317 | _am_result=none |
---|
2318 | # First try GNU make style include. |
---|
2319 | echo "include confinc" > confmf |
---|
2320 | # We grep out `Entering directory' and `Leaving directory' |
---|
2321 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
2322 | # In particular we don't look at `^make:' because GNU make might |
---|
2323 | # be invoked under some other name (usually "gmake"), in which |
---|
2324 | # case it prints its new name instead of `make'. |
---|
2325 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
2326 | am__include=include |
---|
2327 | am__quote= |
---|
2328 | _am_result=GNU |
---|
2329 | fi |
---|
2330 | # Now try BSD make style include. |
---|
2331 | if test "$am__include" = "#"; then |
---|
2332 | echo '.include "confinc"' > confmf |
---|
2333 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
2334 | am__include=.include |
---|
2335 | am__quote="\"" |
---|
2336 | _am_result=BSD |
---|
2337 | fi |
---|
2338 | fi |
---|
2339 | |
---|
2340 | |
---|
2341 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
2342 | echo "${ECHO_T}$_am_result" >&6 |
---|
2343 | rm -f confinc confmf |
---|
2344 | |
---|
2345 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
2346 | if test "${enable_dependency_tracking+set}" = set; then |
---|
2347 | enableval="$enable_dependency_tracking" |
---|
2348 | |
---|
2349 | fi; |
---|
2350 | if test "x$enable_dependency_tracking" != xno; then |
---|
2351 | am_depcomp="$ac_aux_dir/depcomp" |
---|
2352 | AMDEPBACKSLASH='\' |
---|
2353 | fi |
---|
2354 | |
---|
2355 | |
---|
2356 | if test "x$enable_dependency_tracking" != xno; then |
---|
2357 | AMDEP_TRUE= |
---|
2358 | AMDEP_FALSE='#' |
---|
2359 | else |
---|
2360 | AMDEP_TRUE='#' |
---|
2361 | AMDEP_FALSE= |
---|
2362 | fi |
---|
2363 | |
---|
2364 | |
---|
2365 | |
---|
2366 | |
---|
2367 | depcc="$CXX" am_compiler_list= |
---|
2368 | |
---|
2369 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
2370 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
2371 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
2372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2373 | else |
---|
2374 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
2375 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
2376 | # making bogus files that we don't know about and never remove. For |
---|
2377 | # instance it was reported that on HP-UX the gcc test will end up |
---|
2378 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
2379 | # in D'. |
---|
2380 | mkdir conftest.dir |
---|
2381 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
2382 | # using a relative directory. |
---|
2383 | cp "$am_depcomp" conftest.dir |
---|
2384 | cd conftest.dir |
---|
2385 | # We will build objects and dependencies in a subdirectory because |
---|
2386 | # it helps to detect inapplicable dependency modes. For instance |
---|
2387 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
2388 | # side effect of compilation, but ICC will put the dependencies in |
---|
2389 | # the current directory while Tru64 will put them in the object |
---|
2390 | # directory. |
---|
2391 | mkdir sub |
---|
2392 | |
---|
2393 | am_cv_CXX_dependencies_compiler_type=none |
---|
2394 | if test "$am_compiler_list" = ""; then |
---|
2395 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
2396 | fi |
---|
2397 | for depmode in $am_compiler_list; do |
---|
2398 | # Setup a source with many dependencies, because some compilers |
---|
2399 | # like to wrap large dependency lists on column 80 (with \), and |
---|
2400 | # we should not choose a depcomp mode which is confused by this. |
---|
2401 | # |
---|
2402 | # We need to recreate these files for each test, as the compiler may |
---|
2403 | # overwrite some of them when testing with obscure command lines. |
---|
2404 | # This happens at least with the AIX C compiler. |
---|
2405 | : > sub/conftest.c |
---|
2406 | for i in 1 2 3 4 5 6; do |
---|
2407 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
2408 | : > sub/conftst$i.h |
---|
2409 | done |
---|
2410 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
2411 | |
---|
2412 | case $depmode in |
---|
2413 | nosideeffect) |
---|
2414 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
2415 | # only be used when explicitly requested |
---|
2416 | if test "x$enable_dependency_tracking" = xyes; then |
---|
2417 | continue |
---|
2418 | else |
---|
2419 | break |
---|
2420 | fi |
---|
2421 | ;; |
---|
2422 | none) break ;; |
---|
2423 | esac |
---|
2424 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
2425 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
2426 | # handle `-M -o', and we need to detect this. |
---|
2427 | if depmode=$depmode \ |
---|
2428 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
2429 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
2430 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
2431 | >/dev/null 2>conftest.err && |
---|
2432 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
2433 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
2434 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
2435 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
2436 | # (even with -Werror). So we grep stderr for any message |
---|
2437 | # that says an option was ignored. |
---|
2438 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
2439 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
2440 | break |
---|
2441 | fi |
---|
2442 | fi |
---|
2443 | done |
---|
2444 | |
---|
2445 | cd .. |
---|
2446 | rm -rf conftest.dir |
---|
2447 | else |
---|
2448 | am_cv_CXX_dependencies_compiler_type=none |
---|
2449 | fi |
---|
2450 | |
---|
2451 | fi |
---|
2452 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
2453 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
2454 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
2455 | |
---|
2456 | |
---|
2457 | |
---|
2458 | if |
---|
2459 | test "x$enable_dependency_tracking" != xno \ |
---|
2460 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
2461 | am__fastdepCXX_TRUE= |
---|
2462 | am__fastdepCXX_FALSE='#' |
---|
2463 | else |
---|
2464 | am__fastdepCXX_TRUE='#' |
---|
2465 | am__fastdepCXX_FALSE= |
---|
2466 | fi |
---|
2467 | |
---|
2468 | |
---|
2469 | ac_ext=c |
---|
2470 | ac_cpp='$CPP $CPPFLAGS' |
---|
2471 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2472 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2473 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2474 | if test -n "$ac_tool_prefix"; then |
---|
2475 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2476 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2477 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2478 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2479 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2481 | else |
---|
2482 | if test -n "$CC"; then |
---|
2483 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2484 | else |
---|
2485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2486 | for as_dir in $PATH |
---|
2487 | do |
---|
2488 | IFS=$as_save_IFS |
---|
2489 | test -z "$as_dir" && as_dir=. |
---|
2490 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2491 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2492 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2493 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2494 | break 2 |
---|
2495 | fi |
---|
2496 | done |
---|
2497 | done |
---|
2498 | |
---|
2499 | fi |
---|
2500 | fi |
---|
2501 | CC=$ac_cv_prog_CC |
---|
2502 | if test -n "$CC"; then |
---|
2503 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2504 | echo "${ECHO_T}$CC" >&6 |
---|
2505 | else |
---|
2506 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2507 | echo "${ECHO_T}no" >&6 |
---|
2508 | fi |
---|
2509 | |
---|
2510 | fi |
---|
2511 | if test -z "$ac_cv_prog_CC"; then |
---|
2512 | ac_ct_CC=$CC |
---|
2513 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2514 | set dummy gcc; ac_word=$2 |
---|
2515 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2516 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2517 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2519 | else |
---|
2520 | if test -n "$ac_ct_CC"; then |
---|
2521 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2522 | else |
---|
2523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2524 | for as_dir in $PATH |
---|
2525 | do |
---|
2526 | IFS=$as_save_IFS |
---|
2527 | test -z "$as_dir" && as_dir=. |
---|
2528 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2529 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2530 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2531 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2532 | break 2 |
---|
2533 | fi |
---|
2534 | done |
---|
2535 | done |
---|
2536 | |
---|
2537 | fi |
---|
2538 | fi |
---|
2539 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2540 | if test -n "$ac_ct_CC"; then |
---|
2541 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2542 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2543 | else |
---|
2544 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2545 | echo "${ECHO_T}no" >&6 |
---|
2546 | fi |
---|
2547 | |
---|
2548 | CC=$ac_ct_CC |
---|
2549 | else |
---|
2550 | CC="$ac_cv_prog_CC" |
---|
2551 | fi |
---|
2552 | |
---|
2553 | if test -z "$CC"; then |
---|
2554 | if test -n "$ac_tool_prefix"; then |
---|
2555 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2556 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2557 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2558 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2559 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2561 | else |
---|
2562 | if test -n "$CC"; then |
---|
2563 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2564 | else |
---|
2565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2566 | for as_dir in $PATH |
---|
2567 | do |
---|
2568 | IFS=$as_save_IFS |
---|
2569 | test -z "$as_dir" && as_dir=. |
---|
2570 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2571 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2572 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2573 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2574 | break 2 |
---|
2575 | fi |
---|
2576 | done |
---|
2577 | done |
---|
2578 | |
---|
2579 | fi |
---|
2580 | fi |
---|
2581 | CC=$ac_cv_prog_CC |
---|
2582 | if test -n "$CC"; then |
---|
2583 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2584 | echo "${ECHO_T}$CC" >&6 |
---|
2585 | else |
---|
2586 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2587 | echo "${ECHO_T}no" >&6 |
---|
2588 | fi |
---|
2589 | |
---|
2590 | fi |
---|
2591 | if test -z "$ac_cv_prog_CC"; then |
---|
2592 | ac_ct_CC=$CC |
---|
2593 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2594 | set dummy cc; ac_word=$2 |
---|
2595 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2596 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2597 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2599 | else |
---|
2600 | if test -n "$ac_ct_CC"; then |
---|
2601 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2602 | else |
---|
2603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2604 | for as_dir in $PATH |
---|
2605 | do |
---|
2606 | IFS=$as_save_IFS |
---|
2607 | test -z "$as_dir" && as_dir=. |
---|
2608 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2609 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2610 | ac_cv_prog_ac_ct_CC="cc" |
---|
2611 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2612 | break 2 |
---|
2613 | fi |
---|
2614 | done |
---|
2615 | done |
---|
2616 | |
---|
2617 | fi |
---|
2618 | fi |
---|
2619 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2620 | if test -n "$ac_ct_CC"; then |
---|
2621 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2622 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2623 | else |
---|
2624 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2625 | echo "${ECHO_T}no" >&6 |
---|
2626 | fi |
---|
2627 | |
---|
2628 | CC=$ac_ct_CC |
---|
2629 | else |
---|
2630 | CC="$ac_cv_prog_CC" |
---|
2631 | fi |
---|
2632 | |
---|
2633 | fi |
---|
2634 | if test -z "$CC"; then |
---|
2635 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2636 | set dummy cc; ac_word=$2 |
---|
2637 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2638 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2639 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2641 | else |
---|
2642 | if test -n "$CC"; then |
---|
2643 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2644 | else |
---|
2645 | ac_prog_rejected=no |
---|
2646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2647 | for as_dir in $PATH |
---|
2648 | do |
---|
2649 | IFS=$as_save_IFS |
---|
2650 | test -z "$as_dir" && as_dir=. |
---|
2651 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2652 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2653 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2654 | ac_prog_rejected=yes |
---|
2655 | continue |
---|
2656 | fi |
---|
2657 | ac_cv_prog_CC="cc" |
---|
2658 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2659 | break 2 |
---|
2660 | fi |
---|
2661 | done |
---|
2662 | done |
---|
2663 | |
---|
2664 | if test $ac_prog_rejected = yes; then |
---|
2665 | # We found a bogon in the path, so make sure we never use it. |
---|
2666 | set dummy $ac_cv_prog_CC |
---|
2667 | shift |
---|
2668 | if test $# != 0; then |
---|
2669 | # We chose a different compiler from the bogus one. |
---|
2670 | # However, it has the same basename, so the bogon will be chosen |
---|
2671 | # first if we set CC to just the basename; use the full file name. |
---|
2672 | shift |
---|
2673 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2674 | fi |
---|
2675 | fi |
---|
2676 | fi |
---|
2677 | fi |
---|
2678 | CC=$ac_cv_prog_CC |
---|
2679 | if test -n "$CC"; then |
---|
2680 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2681 | echo "${ECHO_T}$CC" >&6 |
---|
2682 | else |
---|
2683 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2684 | echo "${ECHO_T}no" >&6 |
---|
2685 | fi |
---|
2686 | |
---|
2687 | fi |
---|
2688 | if test -z "$CC"; then |
---|
2689 | if test -n "$ac_tool_prefix"; then |
---|
2690 | for ac_prog in cl |
---|
2691 | do |
---|
2692 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2693 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2694 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2695 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2696 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2698 | else |
---|
2699 | if test -n "$CC"; then |
---|
2700 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2701 | else |
---|
2702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2703 | for as_dir in $PATH |
---|
2704 | do |
---|
2705 | IFS=$as_save_IFS |
---|
2706 | test -z "$as_dir" && as_dir=. |
---|
2707 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2708 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2709 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2710 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2711 | break 2 |
---|
2712 | fi |
---|
2713 | done |
---|
2714 | done |
---|
2715 | |
---|
2716 | fi |
---|
2717 | fi |
---|
2718 | CC=$ac_cv_prog_CC |
---|
2719 | if test -n "$CC"; then |
---|
2720 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2721 | echo "${ECHO_T}$CC" >&6 |
---|
2722 | else |
---|
2723 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2724 | echo "${ECHO_T}no" >&6 |
---|
2725 | fi |
---|
2726 | |
---|
2727 | test -n "$CC" && break |
---|
2728 | done |
---|
2729 | fi |
---|
2730 | if test -z "$CC"; then |
---|
2731 | ac_ct_CC=$CC |
---|
2732 | for ac_prog in cl |
---|
2733 | do |
---|
2734 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2735 | set dummy $ac_prog; ac_word=$2 |
---|
2736 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2737 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2738 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2740 | else |
---|
2741 | if test -n "$ac_ct_CC"; then |
---|
2742 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2743 | else |
---|
2744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2745 | for as_dir in $PATH |
---|
2746 | do |
---|
2747 | IFS=$as_save_IFS |
---|
2748 | test -z "$as_dir" && as_dir=. |
---|
2749 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2750 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2751 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2752 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2753 | break 2 |
---|
2754 | fi |
---|
2755 | done |
---|
2756 | done |
---|
2757 | |
---|
2758 | fi |
---|
2759 | fi |
---|
2760 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2761 | if test -n "$ac_ct_CC"; then |
---|
2762 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2763 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2764 | else |
---|
2765 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2766 | echo "${ECHO_T}no" >&6 |
---|
2767 | fi |
---|
2768 | |
---|
2769 | test -n "$ac_ct_CC" && break |
---|
2770 | done |
---|
2771 | |
---|
2772 | CC=$ac_ct_CC |
---|
2773 | fi |
---|
2774 | |
---|
2775 | fi |
---|
2776 | |
---|
2777 | |
---|
2778 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2779 | See \`config.log' for more details." >&5 |
---|
2780 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2781 | See \`config.log' for more details." >&2;} |
---|
2782 | { (exit 1); exit 1; }; } |
---|
2783 | |
---|
2784 | # Provide some information about the compiler. |
---|
2785 | echo "$as_me:$LINENO:" \ |
---|
2786 | "checking for C compiler version" >&5 |
---|
2787 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2788 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2789 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2790 | ac_status=$? |
---|
2791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2792 | (exit $ac_status); } |
---|
2793 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2794 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2795 | ac_status=$? |
---|
2796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2797 | (exit $ac_status); } |
---|
2798 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2799 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2800 | ac_status=$? |
---|
2801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2802 | (exit $ac_status); } |
---|
2803 | |
---|
2804 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2805 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2806 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2808 | else |
---|
2809 | cat >conftest.$ac_ext <<_ACEOF |
---|
2810 | /* confdefs.h. */ |
---|
2811 | _ACEOF |
---|
2812 | cat confdefs.h >>conftest.$ac_ext |
---|
2813 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2814 | /* end confdefs.h. */ |
---|
2815 | |
---|
2816 | int |
---|
2817 | main () |
---|
2818 | { |
---|
2819 | #ifndef __GNUC__ |
---|
2820 | choke me |
---|
2821 | #endif |
---|
2822 | |
---|
2823 | ; |
---|
2824 | return 0; |
---|
2825 | } |
---|
2826 | _ACEOF |
---|
2827 | rm -f conftest.$ac_objext |
---|
2828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2829 | (eval $ac_compile) 2>conftest.er1 |
---|
2830 | ac_status=$? |
---|
2831 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2832 | rm -f conftest.er1 |
---|
2833 | cat conftest.err >&5 |
---|
2834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2835 | (exit $ac_status); } && |
---|
2836 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2837 | || test ! -s conftest.err' |
---|
2838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2839 | (eval $ac_try) 2>&5 |
---|
2840 | ac_status=$? |
---|
2841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2842 | (exit $ac_status); }; } && |
---|
2843 | { ac_try='test -s conftest.$ac_objext' |
---|
2844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2845 | (eval $ac_try) 2>&5 |
---|
2846 | ac_status=$? |
---|
2847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2848 | (exit $ac_status); }; }; then |
---|
2849 | ac_compiler_gnu=yes |
---|
2850 | else |
---|
2851 | echo "$as_me: failed program was:" >&5 |
---|
2852 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2853 | |
---|
2854 | ac_compiler_gnu=no |
---|
2855 | fi |
---|
2856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2857 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2858 | |
---|
2859 | fi |
---|
2860 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2861 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2862 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2863 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2864 | ac_save_CFLAGS=$CFLAGS |
---|
2865 | CFLAGS="-g" |
---|
2866 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2867 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2868 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2870 | else |
---|
2871 | cat >conftest.$ac_ext <<_ACEOF |
---|
2872 | /* confdefs.h. */ |
---|
2873 | _ACEOF |
---|
2874 | cat confdefs.h >>conftest.$ac_ext |
---|
2875 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2876 | /* end confdefs.h. */ |
---|
2877 | |
---|
2878 | int |
---|
2879 | main () |
---|
2880 | { |
---|
2881 | |
---|
2882 | ; |
---|
2883 | return 0; |
---|
2884 | } |
---|
2885 | _ACEOF |
---|
2886 | rm -f conftest.$ac_objext |
---|
2887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2888 | (eval $ac_compile) 2>conftest.er1 |
---|
2889 | ac_status=$? |
---|
2890 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2891 | rm -f conftest.er1 |
---|
2892 | cat conftest.err >&5 |
---|
2893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2894 | (exit $ac_status); } && |
---|
2895 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2896 | || test ! -s conftest.err' |
---|
2897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2898 | (eval $ac_try) 2>&5 |
---|
2899 | ac_status=$? |
---|
2900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2901 | (exit $ac_status); }; } && |
---|
2902 | { ac_try='test -s conftest.$ac_objext' |
---|
2903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2904 | (eval $ac_try) 2>&5 |
---|
2905 | ac_status=$? |
---|
2906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2907 | (exit $ac_status); }; }; then |
---|
2908 | ac_cv_prog_cc_g=yes |
---|
2909 | else |
---|
2910 | echo "$as_me: failed program was:" >&5 |
---|
2911 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2912 | |
---|
2913 | ac_cv_prog_cc_g=no |
---|
2914 | fi |
---|
2915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2916 | fi |
---|
2917 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2918 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2919 | if test "$ac_test_CFLAGS" = set; then |
---|
2920 | CFLAGS=$ac_save_CFLAGS |
---|
2921 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2922 | if test "$GCC" = yes; then |
---|
2923 | CFLAGS="-g -O2" |
---|
2924 | else |
---|
2925 | CFLAGS="-g" |
---|
2926 | fi |
---|
2927 | else |
---|
2928 | if test "$GCC" = yes; then |
---|
2929 | CFLAGS="-O2" |
---|
2930 | else |
---|
2931 | CFLAGS= |
---|
2932 | fi |
---|
2933 | fi |
---|
2934 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2935 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2936 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2938 | else |
---|
2939 | ac_cv_prog_cc_stdc=no |
---|
2940 | ac_save_CC=$CC |
---|
2941 | cat >conftest.$ac_ext <<_ACEOF |
---|
2942 | /* confdefs.h. */ |
---|
2943 | _ACEOF |
---|
2944 | cat confdefs.h >>conftest.$ac_ext |
---|
2945 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2946 | /* end confdefs.h. */ |
---|
2947 | #include <stdarg.h> |
---|
2948 | #include <stdio.h> |
---|
2949 | #include <sys/types.h> |
---|
2950 | #include <sys/stat.h> |
---|
2951 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2952 | struct buf { int x; }; |
---|
2953 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2954 | static char *e (p, i) |
---|
2955 | char **p; |
---|
2956 | int i; |
---|
2957 | { |
---|
2958 | return p[i]; |
---|
2959 | } |
---|
2960 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2961 | { |
---|
2962 | char *s; |
---|
2963 | va_list v; |
---|
2964 | va_start (v,p); |
---|
2965 | s = g (p, va_arg (v,int)); |
---|
2966 | va_end (v); |
---|
2967 | return s; |
---|
2968 | } |
---|
2969 | |
---|
2970 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2971 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2972 | These don't provoke an error unfortunately, instead are silently treated |
---|
2973 | as 'x'. The following induces an error, until -std1 is added to get |
---|
2974 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2975 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2976 | that's true only with -std1. */ |
---|
2977 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2978 | |
---|
2979 | int test (int i, double x); |
---|
2980 | struct s1 {int (*f) (int a);}; |
---|
2981 | struct s2 {int (*f) (double a);}; |
---|
2982 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2983 | int argc; |
---|
2984 | char **argv; |
---|
2985 | int |
---|
2986 | main () |
---|
2987 | { |
---|
2988 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2989 | ; |
---|
2990 | return 0; |
---|
2991 | } |
---|
2992 | _ACEOF |
---|
2993 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2994 | # breaks some systems' header files. |
---|
2995 | # AIX -qlanglvl=ansi |
---|
2996 | # Ultrix and OSF/1 -std1 |
---|
2997 | # HP-UX 10.20 and later -Ae |
---|
2998 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2999 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
3000 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3001 | do |
---|
3002 | CC="$ac_save_CC $ac_arg" |
---|
3003 | rm -f conftest.$ac_objext |
---|
3004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3005 | (eval $ac_compile) 2>conftest.er1 |
---|
3006 | ac_status=$? |
---|
3007 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3008 | rm -f conftest.er1 |
---|
3009 | cat conftest.err >&5 |
---|
3010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3011 | (exit $ac_status); } && |
---|
3012 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3013 | || test ! -s conftest.err' |
---|
3014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3015 | (eval $ac_try) 2>&5 |
---|
3016 | ac_status=$? |
---|
3017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3018 | (exit $ac_status); }; } && |
---|
3019 | { ac_try='test -s conftest.$ac_objext' |
---|
3020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3021 | (eval $ac_try) 2>&5 |
---|
3022 | ac_status=$? |
---|
3023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3024 | (exit $ac_status); }; }; then |
---|
3025 | ac_cv_prog_cc_stdc=$ac_arg |
---|
3026 | break |
---|
3027 | else |
---|
3028 | echo "$as_me: failed program was:" >&5 |
---|
3029 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3030 | |
---|
3031 | fi |
---|
3032 | rm -f conftest.err conftest.$ac_objext |
---|
3033 | done |
---|
3034 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
3035 | CC=$ac_save_CC |
---|
3036 | |
---|
3037 | fi |
---|
3038 | |
---|
3039 | case "x$ac_cv_prog_cc_stdc" in |
---|
3040 | x|xno) |
---|
3041 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
3042 | echo "${ECHO_T}none needed" >&6 ;; |
---|
3043 | *) |
---|
3044 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
3045 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
3046 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
3047 | esac |
---|
3048 | |
---|
3049 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
3050 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
3051 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
3052 | # the declaration of exit, since it's the most demanding environment. |
---|
3053 | cat >conftest.$ac_ext <<_ACEOF |
---|
3054 | #ifndef __cplusplus |
---|
3055 | choke me |
---|
3056 | #endif |
---|
3057 | _ACEOF |
---|
3058 | rm -f conftest.$ac_objext |
---|
3059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3060 | (eval $ac_compile) 2>conftest.er1 |
---|
3061 | ac_status=$? |
---|
3062 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3063 | rm -f conftest.er1 |
---|
3064 | cat conftest.err >&5 |
---|
3065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3066 | (exit $ac_status); } && |
---|
3067 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3068 | || test ! -s conftest.err' |
---|
3069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3070 | (eval $ac_try) 2>&5 |
---|
3071 | ac_status=$? |
---|
3072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3073 | (exit $ac_status); }; } && |
---|
3074 | { ac_try='test -s conftest.$ac_objext' |
---|
3075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3076 | (eval $ac_try) 2>&5 |
---|
3077 | ac_status=$? |
---|
3078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3079 | (exit $ac_status); }; }; then |
---|
3080 | for ac_declaration in \ |
---|
3081 | '' \ |
---|
3082 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
3083 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
3084 | 'extern "C" void exit (int) throw ();' \ |
---|
3085 | 'extern "C" void exit (int);' \ |
---|
3086 | 'void exit (int);' |
---|
3087 | do |
---|
3088 | cat >conftest.$ac_ext <<_ACEOF |
---|
3089 | /* confdefs.h. */ |
---|
3090 | _ACEOF |
---|
3091 | cat confdefs.h >>conftest.$ac_ext |
---|
3092 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3093 | /* end confdefs.h. */ |
---|
3094 | $ac_declaration |
---|
3095 | #include <stdlib.h> |
---|
3096 | int |
---|
3097 | main () |
---|
3098 | { |
---|
3099 | exit (42); |
---|
3100 | ; |
---|
3101 | return 0; |
---|
3102 | } |
---|
3103 | _ACEOF |
---|
3104 | rm -f conftest.$ac_objext |
---|
3105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3106 | (eval $ac_compile) 2>conftest.er1 |
---|
3107 | ac_status=$? |
---|
3108 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3109 | rm -f conftest.er1 |
---|
3110 | cat conftest.err >&5 |
---|
3111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3112 | (exit $ac_status); } && |
---|
3113 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3114 | || test ! -s conftest.err' |
---|
3115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3116 | (eval $ac_try) 2>&5 |
---|
3117 | ac_status=$? |
---|
3118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3119 | (exit $ac_status); }; } && |
---|
3120 | { ac_try='test -s conftest.$ac_objext' |
---|
3121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3122 | (eval $ac_try) 2>&5 |
---|
3123 | ac_status=$? |
---|
3124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3125 | (exit $ac_status); }; }; then |
---|
3126 | : |
---|
3127 | else |
---|
3128 | echo "$as_me: failed program was:" >&5 |
---|
3129 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3130 | |
---|
3131 | continue |
---|
3132 | fi |
---|
3133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3134 | cat >conftest.$ac_ext <<_ACEOF |
---|
3135 | /* confdefs.h. */ |
---|
3136 | _ACEOF |
---|
3137 | cat confdefs.h >>conftest.$ac_ext |
---|
3138 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3139 | /* end confdefs.h. */ |
---|
3140 | $ac_declaration |
---|
3141 | int |
---|
3142 | main () |
---|
3143 | { |
---|
3144 | exit (42); |
---|
3145 | ; |
---|
3146 | return 0; |
---|
3147 | } |
---|
3148 | _ACEOF |
---|
3149 | rm -f conftest.$ac_objext |
---|
3150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3151 | (eval $ac_compile) 2>conftest.er1 |
---|
3152 | ac_status=$? |
---|
3153 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3154 | rm -f conftest.er1 |
---|
3155 | cat conftest.err >&5 |
---|
3156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3157 | (exit $ac_status); } && |
---|
3158 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3159 | || test ! -s conftest.err' |
---|
3160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3161 | (eval $ac_try) 2>&5 |
---|
3162 | ac_status=$? |
---|
3163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3164 | (exit $ac_status); }; } && |
---|
3165 | { ac_try='test -s conftest.$ac_objext' |
---|
3166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3167 | (eval $ac_try) 2>&5 |
---|
3168 | ac_status=$? |
---|
3169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3170 | (exit $ac_status); }; }; then |
---|
3171 | break |
---|
3172 | else |
---|
3173 | echo "$as_me: failed program was:" >&5 |
---|
3174 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3175 | |
---|
3176 | fi |
---|
3177 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3178 | done |
---|
3179 | rm -f conftest* |
---|
3180 | if test -n "$ac_declaration"; then |
---|
3181 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
3182 | echo $ac_declaration >>confdefs.h |
---|
3183 | echo '#endif' >>confdefs.h |
---|
3184 | fi |
---|
3185 | |
---|
3186 | else |
---|
3187 | echo "$as_me: failed program was:" >&5 |
---|
3188 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3189 | |
---|
3190 | fi |
---|
3191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3192 | ac_ext=c |
---|
3193 | ac_cpp='$CPP $CPPFLAGS' |
---|
3194 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3195 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3196 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3197 | |
---|
3198 | depcc="$CC" am_compiler_list= |
---|
3199 | |
---|
3200 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3201 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
3202 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
3203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3204 | else |
---|
3205 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3206 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3207 | # making bogus files that we don't know about and never remove. For |
---|
3208 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3209 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3210 | # in D'. |
---|
3211 | mkdir conftest.dir |
---|
3212 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3213 | # using a relative directory. |
---|
3214 | cp "$am_depcomp" conftest.dir |
---|
3215 | cd conftest.dir |
---|
3216 | # We will build objects and dependencies in a subdirectory because |
---|
3217 | # it helps to detect inapplicable dependency modes. For instance |
---|
3218 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3219 | # side effect of compilation, but ICC will put the dependencies in |
---|
3220 | # the current directory while Tru64 will put them in the object |
---|
3221 | # directory. |
---|
3222 | mkdir sub |
---|
3223 | |
---|
3224 | am_cv_CC_dependencies_compiler_type=none |
---|
3225 | if test "$am_compiler_list" = ""; then |
---|
3226 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3227 | fi |
---|
3228 | for depmode in $am_compiler_list; do |
---|
3229 | # Setup a source with many dependencies, because some compilers |
---|
3230 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3231 | # we should not choose a depcomp mode which is confused by this. |
---|
3232 | # |
---|
3233 | # We need to recreate these files for each test, as the compiler may |
---|
3234 | # overwrite some of them when testing with obscure command lines. |
---|
3235 | # This happens at least with the AIX C compiler. |
---|
3236 | : > sub/conftest.c |
---|
3237 | for i in 1 2 3 4 5 6; do |
---|
3238 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3239 | : > sub/conftst$i.h |
---|
3240 | done |
---|
3241 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3242 | |
---|
3243 | case $depmode in |
---|
3244 | nosideeffect) |
---|
3245 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3246 | # only be used when explicitly requested |
---|
3247 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3248 | continue |
---|
3249 | else |
---|
3250 | break |
---|
3251 | fi |
---|
3252 | ;; |
---|
3253 | none) break ;; |
---|
3254 | esac |
---|
3255 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3256 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3257 | # handle `-M -o', and we need to detect this. |
---|
3258 | if depmode=$depmode \ |
---|
3259 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3260 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3261 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3262 | >/dev/null 2>conftest.err && |
---|
3263 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3264 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3265 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3266 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3267 | # (even with -Werror). So we grep stderr for any message |
---|
3268 | # that says an option was ignored. |
---|
3269 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
3270 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
3271 | break |
---|
3272 | fi |
---|
3273 | fi |
---|
3274 | done |
---|
3275 | |
---|
3276 | cd .. |
---|
3277 | rm -rf conftest.dir |
---|
3278 | else |
---|
3279 | am_cv_CC_dependencies_compiler_type=none |
---|
3280 | fi |
---|
3281 | |
---|
3282 | fi |
---|
3283 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
3284 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
3285 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
3286 | |
---|
3287 | |
---|
3288 | |
---|
3289 | if |
---|
3290 | test "x$enable_dependency_tracking" != xno \ |
---|
3291 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
3292 | am__fastdepCC_TRUE= |
---|
3293 | am__fastdepCC_FALSE='#' |
---|
3294 | else |
---|
3295 | am__fastdepCC_TRUE='#' |
---|
3296 | am__fastdepCC_FALSE= |
---|
3297 | fi |
---|
3298 | |
---|
3299 | |
---|
3300 | |
---|
3301 | # Checks for libraries. |
---|
3302 | |
---|
3303 | # cheking for libGL |
---|
3304 | |
---|
3305 | ac_ext=c |
---|
3306 | ac_cpp='$CPP $CPPFLAGS' |
---|
3307 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3308 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3309 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3310 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
3311 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
3312 | # On Suns, sometimes $CPP names a directory. |
---|
3313 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3314 | CPP= |
---|
3315 | fi |
---|
3316 | if test -z "$CPP"; then |
---|
3317 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
3318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3319 | else |
---|
3320 | # Double quotes because CPP needs to be expanded |
---|
3321 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3322 | do |
---|
3323 | ac_preproc_ok=false |
---|
3324 | for ac_c_preproc_warn_flag in '' yes |
---|
3325 | do |
---|
3326 | # Use a header file that comes with gcc, so configuring glibc |
---|
3327 | # with a fresh cross-compiler works. |
---|
3328 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3329 | # <limits.h> exists even on freestanding compilers. |
---|
3330 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3331 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3332 | cat >conftest.$ac_ext <<_ACEOF |
---|
3333 | /* confdefs.h. */ |
---|
3334 | _ACEOF |
---|
3335 | cat confdefs.h >>conftest.$ac_ext |
---|
3336 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3337 | /* end confdefs.h. */ |
---|
3338 | #ifdef __STDC__ |
---|
3339 | # include <limits.h> |
---|
3340 | #else |
---|
3341 | # include <assert.h> |
---|
3342 | #endif |
---|
3343 | Syntax error |
---|
3344 | _ACEOF |
---|
3345 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3346 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3347 | ac_status=$? |
---|
3348 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3349 | rm -f conftest.er1 |
---|
3350 | cat conftest.err >&5 |
---|
3351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3352 | (exit $ac_status); } >/dev/null; then |
---|
3353 | if test -s conftest.err; then |
---|
3354 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3355 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3356 | else |
---|
3357 | ac_cpp_err= |
---|
3358 | fi |
---|
3359 | else |
---|
3360 | ac_cpp_err=yes |
---|
3361 | fi |
---|
3362 | if test -z "$ac_cpp_err"; then |
---|
3363 | : |
---|
3364 | else |
---|
3365 | echo "$as_me: failed program was:" >&5 |
---|
3366 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3367 | |
---|
3368 | # Broken: fails on valid input. |
---|
3369 | continue |
---|
3370 | fi |
---|
3371 | rm -f conftest.err conftest.$ac_ext |
---|
3372 | |
---|
3373 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3374 | # can be detected and how. |
---|
3375 | cat >conftest.$ac_ext <<_ACEOF |
---|
3376 | /* confdefs.h. */ |
---|
3377 | _ACEOF |
---|
3378 | cat confdefs.h >>conftest.$ac_ext |
---|
3379 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3380 | /* end confdefs.h. */ |
---|
3381 | #include <ac_nonexistent.h> |
---|
3382 | _ACEOF |
---|
3383 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3384 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3385 | ac_status=$? |
---|
3386 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3387 | rm -f conftest.er1 |
---|
3388 | cat conftest.err >&5 |
---|
3389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3390 | (exit $ac_status); } >/dev/null; then |
---|
3391 | if test -s conftest.err; then |
---|
3392 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3393 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3394 | else |
---|
3395 | ac_cpp_err= |
---|
3396 | fi |
---|
3397 | else |
---|
3398 | ac_cpp_err=yes |
---|
3399 | fi |
---|
3400 | if test -z "$ac_cpp_err"; then |
---|
3401 | # Broken: success on invalid input. |
---|
3402 | continue |
---|
3403 | else |
---|
3404 | echo "$as_me: failed program was:" >&5 |
---|
3405 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3406 | |
---|
3407 | # Passes both tests. |
---|
3408 | ac_preproc_ok=: |
---|
3409 | break |
---|
3410 | fi |
---|
3411 | rm -f conftest.err conftest.$ac_ext |
---|
3412 | |
---|
3413 | done |
---|
3414 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3415 | rm -f conftest.err conftest.$ac_ext |
---|
3416 | if $ac_preproc_ok; then |
---|
3417 | break |
---|
3418 | fi |
---|
3419 | |
---|
3420 | done |
---|
3421 | ac_cv_prog_CPP=$CPP |
---|
3422 | |
---|
3423 | fi |
---|
3424 | CPP=$ac_cv_prog_CPP |
---|
3425 | else |
---|
3426 | ac_cv_prog_CPP=$CPP |
---|
3427 | fi |
---|
3428 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
3429 | echo "${ECHO_T}$CPP" >&6 |
---|
3430 | ac_preproc_ok=false |
---|
3431 | for ac_c_preproc_warn_flag in '' yes |
---|
3432 | do |
---|
3433 | # Use a header file that comes with gcc, so configuring glibc |
---|
3434 | # with a fresh cross-compiler works. |
---|
3435 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3436 | # <limits.h> exists even on freestanding compilers. |
---|
3437 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3438 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3439 | cat >conftest.$ac_ext <<_ACEOF |
---|
3440 | /* confdefs.h. */ |
---|
3441 | _ACEOF |
---|
3442 | cat confdefs.h >>conftest.$ac_ext |
---|
3443 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3444 | /* end confdefs.h. */ |
---|
3445 | #ifdef __STDC__ |
---|
3446 | # include <limits.h> |
---|
3447 | #else |
---|
3448 | # include <assert.h> |
---|
3449 | #endif |
---|
3450 | Syntax error |
---|
3451 | _ACEOF |
---|
3452 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3453 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3454 | ac_status=$? |
---|
3455 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3456 | rm -f conftest.er1 |
---|
3457 | cat conftest.err >&5 |
---|
3458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3459 | (exit $ac_status); } >/dev/null; then |
---|
3460 | if test -s conftest.err; then |
---|
3461 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3462 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3463 | else |
---|
3464 | ac_cpp_err= |
---|
3465 | fi |
---|
3466 | else |
---|
3467 | ac_cpp_err=yes |
---|
3468 | fi |
---|
3469 | if test -z "$ac_cpp_err"; then |
---|
3470 | : |
---|
3471 | else |
---|
3472 | echo "$as_me: failed program was:" >&5 |
---|
3473 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3474 | |
---|
3475 | # Broken: fails on valid input. |
---|
3476 | continue |
---|
3477 | fi |
---|
3478 | rm -f conftest.err conftest.$ac_ext |
---|
3479 | |
---|
3480 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3481 | # can be detected and how. |
---|
3482 | cat >conftest.$ac_ext <<_ACEOF |
---|
3483 | /* confdefs.h. */ |
---|
3484 | _ACEOF |
---|
3485 | cat confdefs.h >>conftest.$ac_ext |
---|
3486 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3487 | /* end confdefs.h. */ |
---|
3488 | #include <ac_nonexistent.h> |
---|
3489 | _ACEOF |
---|
3490 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3491 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3492 | ac_status=$? |
---|
3493 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3494 | rm -f conftest.er1 |
---|
3495 | cat conftest.err >&5 |
---|
3496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3497 | (exit $ac_status); } >/dev/null; then |
---|
3498 | if test -s conftest.err; then |
---|
3499 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3500 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3501 | else |
---|
3502 | ac_cpp_err= |
---|
3503 | fi |
---|
3504 | else |
---|
3505 | ac_cpp_err=yes |
---|
3506 | fi |
---|
3507 | if test -z "$ac_cpp_err"; then |
---|
3508 | # Broken: success on invalid input. |
---|
3509 | continue |
---|
3510 | else |
---|
3511 | echo "$as_me: failed program was:" >&5 |
---|
3512 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3513 | |
---|
3514 | # Passes both tests. |
---|
3515 | ac_preproc_ok=: |
---|
3516 | break |
---|
3517 | fi |
---|
3518 | rm -f conftest.err conftest.$ac_ext |
---|
3519 | |
---|
3520 | done |
---|
3521 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3522 | rm -f conftest.err conftest.$ac_ext |
---|
3523 | if $ac_preproc_ok; then |
---|
3524 | : |
---|
3525 | else |
---|
3526 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
3527 | See \`config.log' for more details." >&5 |
---|
3528 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
3529 | See \`config.log' for more details." >&2;} |
---|
3530 | { (exit 1); exit 1; }; } |
---|
3531 | fi |
---|
3532 | |
---|
3533 | ac_ext=c |
---|
3534 | ac_cpp='$CPP $CPPFLAGS' |
---|
3535 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3536 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3537 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3538 | |
---|
3539 | |
---|
3540 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3541 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3542 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3544 | else |
---|
3545 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3546 | then ac_cv_prog_egrep='grep -E' |
---|
3547 | else ac_cv_prog_egrep='egrep' |
---|
3548 | fi |
---|
3549 | fi |
---|
3550 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3551 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3552 | EGREP=$ac_cv_prog_egrep |
---|
3553 | |
---|
3554 | |
---|
3555 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
3556 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
3557 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
3558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3559 | else |
---|
3560 | cat >conftest.$ac_ext <<_ACEOF |
---|
3561 | /* confdefs.h. */ |
---|
3562 | _ACEOF |
---|
3563 | cat confdefs.h >>conftest.$ac_ext |
---|
3564 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3565 | /* end confdefs.h. */ |
---|
3566 | #include <stdlib.h> |
---|
3567 | #include <stdarg.h> |
---|
3568 | #include <string.h> |
---|
3569 | #include <float.h> |
---|
3570 | |
---|
3571 | int |
---|
3572 | main () |
---|
3573 | { |
---|
3574 | |
---|
3575 | ; |
---|
3576 | return 0; |
---|
3577 | } |
---|
3578 | _ACEOF |
---|
3579 | rm -f conftest.$ac_objext |
---|
3580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3581 | (eval $ac_compile) 2>conftest.er1 |
---|
3582 | ac_status=$? |
---|
3583 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3584 | rm -f conftest.er1 |
---|
3585 | cat conftest.err >&5 |
---|
3586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3587 | (exit $ac_status); } && |
---|
3588 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3589 | || test ! -s conftest.err' |
---|
3590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3591 | (eval $ac_try) 2>&5 |
---|
3592 | ac_status=$? |
---|
3593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3594 | (exit $ac_status); }; } && |
---|
3595 | { ac_try='test -s conftest.$ac_objext' |
---|
3596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3597 | (eval $ac_try) 2>&5 |
---|
3598 | ac_status=$? |
---|
3599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3600 | (exit $ac_status); }; }; then |
---|
3601 | ac_cv_header_stdc=yes |
---|
3602 | else |
---|
3603 | echo "$as_me: failed program was:" >&5 |
---|
3604 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3605 | |
---|
3606 | ac_cv_header_stdc=no |
---|
3607 | fi |
---|
3608 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3609 | |
---|
3610 | if test $ac_cv_header_stdc = yes; then |
---|
3611 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3612 | cat >conftest.$ac_ext <<_ACEOF |
---|
3613 | /* confdefs.h. */ |
---|
3614 | _ACEOF |
---|
3615 | cat confdefs.h >>conftest.$ac_ext |
---|
3616 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3617 | /* end confdefs.h. */ |
---|
3618 | #include <string.h> |
---|
3619 | |
---|
3620 | _ACEOF |
---|
3621 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3622 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
3623 | : |
---|
3624 | else |
---|
3625 | ac_cv_header_stdc=no |
---|
3626 | fi |
---|
3627 | rm -f conftest* |
---|
3628 | |
---|
3629 | fi |
---|
3630 | |
---|
3631 | if test $ac_cv_header_stdc = yes; then |
---|
3632 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3633 | cat >conftest.$ac_ext <<_ACEOF |
---|
3634 | /* confdefs.h. */ |
---|
3635 | _ACEOF |
---|
3636 | cat confdefs.h >>conftest.$ac_ext |
---|
3637 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3638 | /* end confdefs.h. */ |
---|
3639 | #include <stdlib.h> |
---|
3640 | |
---|
3641 | _ACEOF |
---|
3642 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3643 | $EGREP "free" >/dev/null 2>&1; then |
---|
3644 | : |
---|
3645 | else |
---|
3646 | ac_cv_header_stdc=no |
---|
3647 | fi |
---|
3648 | rm -f conftest* |
---|
3649 | |
---|
3650 | fi |
---|
3651 | |
---|
3652 | if test $ac_cv_header_stdc = yes; then |
---|
3653 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3654 | if test "$cross_compiling" = yes; then |
---|
3655 | : |
---|
3656 | else |
---|
3657 | cat >conftest.$ac_ext <<_ACEOF |
---|
3658 | /* confdefs.h. */ |
---|
3659 | _ACEOF |
---|
3660 | cat confdefs.h >>conftest.$ac_ext |
---|
3661 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3662 | /* end confdefs.h. */ |
---|
3663 | #include <ctype.h> |
---|
3664 | #if ((' ' & 0x0FF) == 0x020) |
---|
3665 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3666 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3667 | #else |
---|
3668 | # define ISLOWER(c) \ |
---|
3669 | (('a' <= (c) && (c) <= 'i') \ |
---|
3670 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3671 | || ('s' <= (c) && (c) <= 'z')) |
---|
3672 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3673 | #endif |
---|
3674 | |
---|
3675 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3676 | int |
---|
3677 | main () |
---|
3678 | { |
---|
3679 | int i; |
---|
3680 | for (i = 0; i < 256; i++) |
---|
3681 | if (XOR (islower (i), ISLOWER (i)) |
---|
3682 | || toupper (i) != TOUPPER (i)) |
---|
3683 | exit(2); |
---|
3684 | exit (0); |
---|
3685 | } |
---|
3686 | _ACEOF |
---|
3687 | rm -f conftest$ac_exeext |
---|
3688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3689 | (eval $ac_link) 2>&5 |
---|
3690 | ac_status=$? |
---|
3691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3692 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3694 | (eval $ac_try) 2>&5 |
---|
3695 | ac_status=$? |
---|
3696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3697 | (exit $ac_status); }; }; then |
---|
3698 | : |
---|
3699 | else |
---|
3700 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3701 | echo "$as_me: failed program was:" >&5 |
---|
3702 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3703 | |
---|
3704 | ( exit $ac_status ) |
---|
3705 | ac_cv_header_stdc=no |
---|
3706 | fi |
---|
3707 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3708 | fi |
---|
3709 | fi |
---|
3710 | fi |
---|
3711 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
3712 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
3713 | if test $ac_cv_header_stdc = yes; then |
---|
3714 | |
---|
3715 | cat >>confdefs.h <<\_ACEOF |
---|
3716 | #define STDC_HEADERS 1 |
---|
3717 | _ACEOF |
---|
3718 | |
---|
3719 | fi |
---|
3720 | |
---|
3721 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
3722 | |
---|
3723 | |
---|
3724 | |
---|
3725 | |
---|
3726 | |
---|
3727 | |
---|
3728 | |
---|
3729 | |
---|
3730 | |
---|
3731 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
3732 | inttypes.h stdint.h unistd.h |
---|
3733 | do |
---|
3734 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3735 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3736 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3737 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3739 | else |
---|
3740 | cat >conftest.$ac_ext <<_ACEOF |
---|
3741 | /* confdefs.h. */ |
---|
3742 | _ACEOF |
---|
3743 | cat confdefs.h >>conftest.$ac_ext |
---|
3744 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3745 | /* end confdefs.h. */ |
---|
3746 | $ac_includes_default |
---|
3747 | |
---|
3748 | #include <$ac_header> |
---|
3749 | _ACEOF |
---|
3750 | rm -f conftest.$ac_objext |
---|
3751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3752 | (eval $ac_compile) 2>conftest.er1 |
---|
3753 | ac_status=$? |
---|
3754 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3755 | rm -f conftest.er1 |
---|
3756 | cat conftest.err >&5 |
---|
3757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3758 | (exit $ac_status); } && |
---|
3759 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3760 | || test ! -s conftest.err' |
---|
3761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3762 | (eval $ac_try) 2>&5 |
---|
3763 | ac_status=$? |
---|
3764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3765 | (exit $ac_status); }; } && |
---|
3766 | { ac_try='test -s conftest.$ac_objext' |
---|
3767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3768 | (eval $ac_try) 2>&5 |
---|
3769 | ac_status=$? |
---|
3770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3771 | (exit $ac_status); }; }; then |
---|
3772 | eval "$as_ac_Header=yes" |
---|
3773 | else |
---|
3774 | echo "$as_me: failed program was:" >&5 |
---|
3775 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3776 | |
---|
3777 | eval "$as_ac_Header=no" |
---|
3778 | fi |
---|
3779 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3780 | fi |
---|
3781 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3782 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3783 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3784 | cat >>confdefs.h <<_ACEOF |
---|
3785 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3786 | _ACEOF |
---|
3787 | |
---|
3788 | fi |
---|
3789 | |
---|
3790 | done |
---|
3791 | |
---|
3792 | |
---|
3793 | |
---|
3794 | for ac_header in GL/gl.h |
---|
3795 | do |
---|
3796 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3797 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3798 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3799 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3800 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3802 | fi |
---|
3803 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3804 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3805 | else |
---|
3806 | # Is the header compilable? |
---|
3807 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
3808 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
3809 | cat >conftest.$ac_ext <<_ACEOF |
---|
3810 | /* confdefs.h. */ |
---|
3811 | _ACEOF |
---|
3812 | cat confdefs.h >>conftest.$ac_ext |
---|
3813 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3814 | /* end confdefs.h. */ |
---|
3815 | $ac_includes_default |
---|
3816 | #include <$ac_header> |
---|
3817 | _ACEOF |
---|
3818 | rm -f conftest.$ac_objext |
---|
3819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3820 | (eval $ac_compile) 2>conftest.er1 |
---|
3821 | ac_status=$? |
---|
3822 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3823 | rm -f conftest.er1 |
---|
3824 | cat conftest.err >&5 |
---|
3825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3826 | (exit $ac_status); } && |
---|
3827 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3828 | || test ! -s conftest.err' |
---|
3829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3830 | (eval $ac_try) 2>&5 |
---|
3831 | ac_status=$? |
---|
3832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3833 | (exit $ac_status); }; } && |
---|
3834 | { ac_try='test -s conftest.$ac_objext' |
---|
3835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3836 | (eval $ac_try) 2>&5 |
---|
3837 | ac_status=$? |
---|
3838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3839 | (exit $ac_status); }; }; then |
---|
3840 | ac_header_compiler=yes |
---|
3841 | else |
---|
3842 | echo "$as_me: failed program was:" >&5 |
---|
3843 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3844 | |
---|
3845 | ac_header_compiler=no |
---|
3846 | fi |
---|
3847 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3848 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
3849 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
3850 | |
---|
3851 | # Is the header present? |
---|
3852 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
3853 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
3854 | cat >conftest.$ac_ext <<_ACEOF |
---|
3855 | /* confdefs.h. */ |
---|
3856 | _ACEOF |
---|
3857 | cat confdefs.h >>conftest.$ac_ext |
---|
3858 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3859 | /* end confdefs.h. */ |
---|
3860 | #include <$ac_header> |
---|
3861 | _ACEOF |
---|
3862 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3863 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3864 | ac_status=$? |
---|
3865 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3866 | rm -f conftest.er1 |
---|
3867 | cat conftest.err >&5 |
---|
3868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3869 | (exit $ac_status); } >/dev/null; then |
---|
3870 | if test -s conftest.err; then |
---|
3871 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3872 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3873 | else |
---|
3874 | ac_cpp_err= |
---|
3875 | fi |
---|
3876 | else |
---|
3877 | ac_cpp_err=yes |
---|
3878 | fi |
---|
3879 | if test -z "$ac_cpp_err"; then |
---|
3880 | ac_header_preproc=yes |
---|
3881 | else |
---|
3882 | echo "$as_me: failed program was:" >&5 |
---|
3883 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3884 | |
---|
3885 | ac_header_preproc=no |
---|
3886 | fi |
---|
3887 | rm -f conftest.err conftest.$ac_ext |
---|
3888 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
3889 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
3890 | |
---|
3891 | # So? What about this header? |
---|
3892 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
3893 | yes:no: ) |
---|
3894 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
3895 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
3896 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
3897 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
3898 | ac_header_preproc=yes |
---|
3899 | ;; |
---|
3900 | no:yes:* ) |
---|
3901 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
3902 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
3903 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
3904 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
3905 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
3906 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
3907 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
3908 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
3909 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
3910 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
3911 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
3912 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
3913 | ( |
---|
3914 | cat <<\_ASBOX |
---|
3915 | ## ------------------------------------------- ## |
---|
3916 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
3917 | ## ------------------------------------------- ## |
---|
3918 | _ASBOX |
---|
3919 | ) | |
---|
3920 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
3921 | ;; |
---|
3922 | esac |
---|
3923 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3924 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3925 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3927 | else |
---|
3928 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
3929 | fi |
---|
3930 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3931 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3932 | |
---|
3933 | fi |
---|
3934 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3935 | cat >>confdefs.h <<_ACEOF |
---|
3936 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3937 | _ACEOF |
---|
3938 | |
---|
3939 | else |
---|
3940 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
3941 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
3942 | { (exit 1); exit 1; }; } |
---|
3943 | fi |
---|
3944 | |
---|
3945 | done |
---|
3946 | |
---|
3947 | |
---|
3948 | # checking for Unix GL |
---|
3949 | echo "$as_me:$LINENO: checking for main in -lGL" >&5 |
---|
3950 | echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 |
---|
3951 | if test "${ac_cv_lib_GL_main+set}" = set; then |
---|
3952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3953 | else |
---|
3954 | ac_check_lib_save_LIBS=$LIBS |
---|
3955 | LIBS="-lGL $LIBS" |
---|
3956 | cat >conftest.$ac_ext <<_ACEOF |
---|
3957 | /* confdefs.h. */ |
---|
3958 | _ACEOF |
---|
3959 | cat confdefs.h >>conftest.$ac_ext |
---|
3960 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3961 | /* end confdefs.h. */ |
---|
3962 | |
---|
3963 | |
---|
3964 | int |
---|
3965 | main () |
---|
3966 | { |
---|
3967 | main (); |
---|
3968 | ; |
---|
3969 | return 0; |
---|
3970 | } |
---|
3971 | _ACEOF |
---|
3972 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3973 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3974 | (eval $ac_link) 2>conftest.er1 |
---|
3975 | ac_status=$? |
---|
3976 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3977 | rm -f conftest.er1 |
---|
3978 | cat conftest.err >&5 |
---|
3979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3980 | (exit $ac_status); } && |
---|
3981 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3982 | || test ! -s conftest.err' |
---|
3983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3984 | (eval $ac_try) 2>&5 |
---|
3985 | ac_status=$? |
---|
3986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3987 | (exit $ac_status); }; } && |
---|
3988 | { ac_try='test -s conftest$ac_exeext' |
---|
3989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3990 | (eval $ac_try) 2>&5 |
---|
3991 | ac_status=$? |
---|
3992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3993 | (exit $ac_status); }; }; then |
---|
3994 | ac_cv_lib_GL_main=yes |
---|
3995 | else |
---|
3996 | echo "$as_me: failed program was:" >&5 |
---|
3997 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3998 | |
---|
3999 | ac_cv_lib_GL_main=no |
---|
4000 | fi |
---|
4001 | rm -f conftest.err conftest.$ac_objext \ |
---|
4002 | conftest$ac_exeext conftest.$ac_ext |
---|
4003 | LIBS=$ac_check_lib_save_LIBS |
---|
4004 | fi |
---|
4005 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 |
---|
4006 | echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 |
---|
4007 | if test $ac_cv_lib_GL_main = yes; then |
---|
4008 | FOUND_GL=yes |
---|
4009 | fi |
---|
4010 | |
---|
4011 | if test "$FOUND_GL" = "yes" ; then |
---|
4012 | LIBS="$LIBS -lGL" |
---|
4013 | # checking for Windows openGl library |
---|
4014 | else |
---|
4015 | echo "We did not find the Linux opengl Library. Checking for Windows Library" |
---|
4016 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
4017 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
4018 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
4019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4020 | else |
---|
4021 | ac_check_lib_save_LIBS=$LIBS |
---|
4022 | LIBS="-lopengl32 $LIBS" |
---|
4023 | cat >conftest.$ac_ext <<_ACEOF |
---|
4024 | /* confdefs.h. */ |
---|
4025 | _ACEOF |
---|
4026 | cat confdefs.h >>conftest.$ac_ext |
---|
4027 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4028 | /* end confdefs.h. */ |
---|
4029 | |
---|
4030 | |
---|
4031 | int |
---|
4032 | main () |
---|
4033 | { |
---|
4034 | main (); |
---|
4035 | ; |
---|
4036 | return 0; |
---|
4037 | } |
---|
4038 | _ACEOF |
---|
4039 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4041 | (eval $ac_link) 2>conftest.er1 |
---|
4042 | ac_status=$? |
---|
4043 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4044 | rm -f conftest.er1 |
---|
4045 | cat conftest.err >&5 |
---|
4046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4047 | (exit $ac_status); } && |
---|
4048 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4049 | || test ! -s conftest.err' |
---|
4050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4051 | (eval $ac_try) 2>&5 |
---|
4052 | ac_status=$? |
---|
4053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4054 | (exit $ac_status); }; } && |
---|
4055 | { ac_try='test -s conftest$ac_exeext' |
---|
4056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4057 | (eval $ac_try) 2>&5 |
---|
4058 | ac_status=$? |
---|
4059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4060 | (exit $ac_status); }; }; then |
---|
4061 | ac_cv_lib_opengl32_main=yes |
---|
4062 | else |
---|
4063 | echo "$as_me: failed program was:" >&5 |
---|
4064 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4065 | |
---|
4066 | ac_cv_lib_opengl32_main=no |
---|
4067 | fi |
---|
4068 | rm -f conftest.err conftest.$ac_objext \ |
---|
4069 | conftest$ac_exeext conftest.$ac_ext |
---|
4070 | LIBS=$ac_check_lib_save_LIBS |
---|
4071 | fi |
---|
4072 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
4073 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
4074 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
4075 | FOUND_opengl32=yes |
---|
4076 | else |
---|
4077 | "gl/gl.h" |
---|
4078 | fi |
---|
4079 | |
---|
4080 | if test "$FOUND_opengl32" = "yes" ; then |
---|
4081 | LIBS="$LIBS -lopengl32" |
---|
4082 | |
---|
4083 | else |
---|
4084 | echo "------------------" |
---|
4085 | echo "opengl not found." |
---|
4086 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
4087 | echo "------------------" |
---|
4088 | exit -1 |
---|
4089 | fi |
---|
4090 | fi |
---|
4091 | |
---|
4092 | # cheking for libGLU |
---|
4093 | |
---|
4094 | for ac_header in GL/glu.h |
---|
4095 | do |
---|
4096 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4097 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4098 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4099 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4100 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4102 | fi |
---|
4103 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4104 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4105 | else |
---|
4106 | # Is the header compilable? |
---|
4107 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4108 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4109 | cat >conftest.$ac_ext <<_ACEOF |
---|
4110 | /* confdefs.h. */ |
---|
4111 | _ACEOF |
---|
4112 | cat confdefs.h >>conftest.$ac_ext |
---|
4113 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4114 | /* end confdefs.h. */ |
---|
4115 | $ac_includes_default |
---|
4116 | #include <$ac_header> |
---|
4117 | _ACEOF |
---|
4118 | rm -f conftest.$ac_objext |
---|
4119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4120 | (eval $ac_compile) 2>conftest.er1 |
---|
4121 | ac_status=$? |
---|
4122 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4123 | rm -f conftest.er1 |
---|
4124 | cat conftest.err >&5 |
---|
4125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4126 | (exit $ac_status); } && |
---|
4127 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4128 | || test ! -s conftest.err' |
---|
4129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4130 | (eval $ac_try) 2>&5 |
---|
4131 | ac_status=$? |
---|
4132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4133 | (exit $ac_status); }; } && |
---|
4134 | { ac_try='test -s conftest.$ac_objext' |
---|
4135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4136 | (eval $ac_try) 2>&5 |
---|
4137 | ac_status=$? |
---|
4138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4139 | (exit $ac_status); }; }; then |
---|
4140 | ac_header_compiler=yes |
---|
4141 | else |
---|
4142 | echo "$as_me: failed program was:" >&5 |
---|
4143 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4144 | |
---|
4145 | ac_header_compiler=no |
---|
4146 | fi |
---|
4147 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4148 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4149 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4150 | |
---|
4151 | # Is the header present? |
---|
4152 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4153 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4154 | cat >conftest.$ac_ext <<_ACEOF |
---|
4155 | /* confdefs.h. */ |
---|
4156 | _ACEOF |
---|
4157 | cat confdefs.h >>conftest.$ac_ext |
---|
4158 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4159 | /* end confdefs.h. */ |
---|
4160 | #include <$ac_header> |
---|
4161 | _ACEOF |
---|
4162 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4163 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4164 | ac_status=$? |
---|
4165 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4166 | rm -f conftest.er1 |
---|
4167 | cat conftest.err >&5 |
---|
4168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4169 | (exit $ac_status); } >/dev/null; then |
---|
4170 | if test -s conftest.err; then |
---|
4171 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4172 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4173 | else |
---|
4174 | ac_cpp_err= |
---|
4175 | fi |
---|
4176 | else |
---|
4177 | ac_cpp_err=yes |
---|
4178 | fi |
---|
4179 | if test -z "$ac_cpp_err"; then |
---|
4180 | ac_header_preproc=yes |
---|
4181 | else |
---|
4182 | echo "$as_me: failed program was:" >&5 |
---|
4183 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4184 | |
---|
4185 | ac_header_preproc=no |
---|
4186 | fi |
---|
4187 | rm -f conftest.err conftest.$ac_ext |
---|
4188 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4189 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4190 | |
---|
4191 | # So? What about this header? |
---|
4192 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4193 | yes:no: ) |
---|
4194 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4195 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4196 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4197 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4198 | ac_header_preproc=yes |
---|
4199 | ;; |
---|
4200 | no:yes:* ) |
---|
4201 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4202 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4203 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4204 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4205 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4206 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4207 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4208 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4209 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4210 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4211 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4212 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4213 | ( |
---|
4214 | cat <<\_ASBOX |
---|
4215 | ## ------------------------------------------- ## |
---|
4216 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
4217 | ## ------------------------------------------- ## |
---|
4218 | _ASBOX |
---|
4219 | ) | |
---|
4220 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4221 | ;; |
---|
4222 | esac |
---|
4223 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4224 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4225 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4227 | else |
---|
4228 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4229 | fi |
---|
4230 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4231 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4232 | |
---|
4233 | fi |
---|
4234 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4235 | cat >>confdefs.h <<_ACEOF |
---|
4236 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4237 | _ACEOF |
---|
4238 | |
---|
4239 | else |
---|
4240 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4241 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4242 | { (exit 1); exit 1; }; } |
---|
4243 | fi |
---|
4244 | |
---|
4245 | done |
---|
4246 | |
---|
4247 | |
---|
4248 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
4249 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
4250 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
4251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4252 | else |
---|
4253 | ac_check_lib_save_LIBS=$LIBS |
---|
4254 | LIBS="-lGLU $LIBS" |
---|
4255 | cat >conftest.$ac_ext <<_ACEOF |
---|
4256 | /* confdefs.h. */ |
---|
4257 | _ACEOF |
---|
4258 | cat confdefs.h >>conftest.$ac_ext |
---|
4259 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4260 | /* end confdefs.h. */ |
---|
4261 | |
---|
4262 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4263 | #ifdef __cplusplus |
---|
4264 | extern "C" |
---|
4265 | #endif |
---|
4266 | /* We use char because int might match the return type of a gcc2 |
---|
4267 | builtin and then its argument prototype would still apply. */ |
---|
4268 | char gluProject (); |
---|
4269 | int |
---|
4270 | main () |
---|
4271 | { |
---|
4272 | gluProject (); |
---|
4273 | ; |
---|
4274 | return 0; |
---|
4275 | } |
---|
4276 | _ACEOF |
---|
4277 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4279 | (eval $ac_link) 2>conftest.er1 |
---|
4280 | ac_status=$? |
---|
4281 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4282 | rm -f conftest.er1 |
---|
4283 | cat conftest.err >&5 |
---|
4284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4285 | (exit $ac_status); } && |
---|
4286 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4287 | || test ! -s conftest.err' |
---|
4288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4289 | (eval $ac_try) 2>&5 |
---|
4290 | ac_status=$? |
---|
4291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4292 | (exit $ac_status); }; } && |
---|
4293 | { ac_try='test -s conftest$ac_exeext' |
---|
4294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4295 | (eval $ac_try) 2>&5 |
---|
4296 | ac_status=$? |
---|
4297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4298 | (exit $ac_status); }; }; then |
---|
4299 | ac_cv_lib_GLU_gluProject=yes |
---|
4300 | else |
---|
4301 | echo "$as_me: failed program was:" >&5 |
---|
4302 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4303 | |
---|
4304 | ac_cv_lib_GLU_gluProject=no |
---|
4305 | fi |
---|
4306 | rm -f conftest.err conftest.$ac_objext \ |
---|
4307 | conftest$ac_exeext conftest.$ac_ext |
---|
4308 | LIBS=$ac_check_lib_save_LIBS |
---|
4309 | fi |
---|
4310 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
4311 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
4312 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
4313 | FOUND_GLU=yes |
---|
4314 | fi |
---|
4315 | |
---|
4316 | if test "$FOUND_GLU" = "yes" ; then |
---|
4317 | LIBS="$LIBS -lGLU" |
---|
4318 | # checking for Windows GLU32 library |
---|
4319 | else |
---|
4320 | echo "We did not find the Linux GLU Library. Checking for Windows Library" |
---|
4321 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
4322 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
4323 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
4324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4325 | else |
---|
4326 | ac_check_lib_save_LIBS=$LIBS |
---|
4327 | LIBS="-lglu32 $LIBS" |
---|
4328 | cat >conftest.$ac_ext <<_ACEOF |
---|
4329 | /* confdefs.h. */ |
---|
4330 | _ACEOF |
---|
4331 | cat confdefs.h >>conftest.$ac_ext |
---|
4332 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4333 | /* end confdefs.h. */ |
---|
4334 | |
---|
4335 | |
---|
4336 | int |
---|
4337 | main () |
---|
4338 | { |
---|
4339 | main (); |
---|
4340 | ; |
---|
4341 | return 0; |
---|
4342 | } |
---|
4343 | _ACEOF |
---|
4344 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4346 | (eval $ac_link) 2>conftest.er1 |
---|
4347 | ac_status=$? |
---|
4348 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4349 | rm -f conftest.er1 |
---|
4350 | cat conftest.err >&5 |
---|
4351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4352 | (exit $ac_status); } && |
---|
4353 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4354 | || test ! -s conftest.err' |
---|
4355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4356 | (eval $ac_try) 2>&5 |
---|
4357 | ac_status=$? |
---|
4358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4359 | (exit $ac_status); }; } && |
---|
4360 | { ac_try='test -s conftest$ac_exeext' |
---|
4361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4362 | (eval $ac_try) 2>&5 |
---|
4363 | ac_status=$? |
---|
4364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4365 | (exit $ac_status); }; }; then |
---|
4366 | ac_cv_lib_glu32_main=yes |
---|
4367 | else |
---|
4368 | echo "$as_me: failed program was:" >&5 |
---|
4369 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4370 | |
---|
4371 | ac_cv_lib_glu32_main=no |
---|
4372 | fi |
---|
4373 | rm -f conftest.err conftest.$ac_objext \ |
---|
4374 | conftest$ac_exeext conftest.$ac_ext |
---|
4375 | LIBS=$ac_check_lib_save_LIBS |
---|
4376 | fi |
---|
4377 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
4378 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
4379 | if test $ac_cv_lib_glu32_main = yes; then |
---|
4380 | FOUND_glu32=yes |
---|
4381 | fi |
---|
4382 | |
---|
4383 | if test "$FOUND_glu32" = "yes" ; then |
---|
4384 | LIBS="$LIBS -lGLU32" |
---|
4385 | |
---|
4386 | else |
---|
4387 | echo "------------------" |
---|
4388 | echo "GLU library not found." |
---|
4389 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
4390 | echo "------------------" |
---|
4391 | exit -1 |
---|
4392 | fi |
---|
4393 | fi |
---|
4394 | |
---|
4395 | # FIXME: Replace `main' with a function in `-lOSMesa': |
---|
4396 | |
---|
4397 | echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5 |
---|
4398 | echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6 |
---|
4399 | if test "${ac_cv_lib_OSMesa_main+set}" = set; then |
---|
4400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4401 | else |
---|
4402 | ac_check_lib_save_LIBS=$LIBS |
---|
4403 | LIBS="-lOSMesa $LIBS" |
---|
4404 | cat >conftest.$ac_ext <<_ACEOF |
---|
4405 | /* confdefs.h. */ |
---|
4406 | _ACEOF |
---|
4407 | cat confdefs.h >>conftest.$ac_ext |
---|
4408 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4409 | /* end confdefs.h. */ |
---|
4410 | |
---|
4411 | |
---|
4412 | int |
---|
4413 | main () |
---|
4414 | { |
---|
4415 | main (); |
---|
4416 | ; |
---|
4417 | return 0; |
---|
4418 | } |
---|
4419 | _ACEOF |
---|
4420 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4422 | (eval $ac_link) 2>conftest.er1 |
---|
4423 | ac_status=$? |
---|
4424 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4425 | rm -f conftest.er1 |
---|
4426 | cat conftest.err >&5 |
---|
4427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4428 | (exit $ac_status); } && |
---|
4429 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4430 | || test ! -s conftest.err' |
---|
4431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4432 | (eval $ac_try) 2>&5 |
---|
4433 | ac_status=$? |
---|
4434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4435 | (exit $ac_status); }; } && |
---|
4436 | { ac_try='test -s conftest$ac_exeext' |
---|
4437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4438 | (eval $ac_try) 2>&5 |
---|
4439 | ac_status=$? |
---|
4440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4441 | (exit $ac_status); }; }; then |
---|
4442 | ac_cv_lib_OSMesa_main=yes |
---|
4443 | else |
---|
4444 | echo "$as_me: failed program was:" >&5 |
---|
4445 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4446 | |
---|
4447 | ac_cv_lib_OSMesa_main=no |
---|
4448 | fi |
---|
4449 | rm -f conftest.err conftest.$ac_objext \ |
---|
4450 | conftest$ac_exeext conftest.$ac_ext |
---|
4451 | LIBS=$ac_check_lib_save_LIBS |
---|
4452 | fi |
---|
4453 | echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&5 |
---|
4454 | echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&6 |
---|
4455 | if test $ac_cv_lib_OSMesa_main = yes; then |
---|
4456 | cat >>confdefs.h <<_ACEOF |
---|
4457 | #define HAVE_LIBOSMESA 1 |
---|
4458 | _ACEOF |
---|
4459 | |
---|
4460 | LIBS="-lOSMesa $LIBS" |
---|
4461 | |
---|
4462 | fi |
---|
4463 | |
---|
4464 | # FIXME: Replace `main' with a function in `-lX11': |
---|
4465 | |
---|
4466 | echo "$as_me:$LINENO: checking for main in -lX11" >&5 |
---|
4467 | echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6 |
---|
4468 | if test "${ac_cv_lib_X11_main+set}" = set; then |
---|
4469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4470 | else |
---|
4471 | ac_check_lib_save_LIBS=$LIBS |
---|
4472 | LIBS="-lX11 $LIBS" |
---|
4473 | cat >conftest.$ac_ext <<_ACEOF |
---|
4474 | /* confdefs.h. */ |
---|
4475 | _ACEOF |
---|
4476 | cat confdefs.h >>conftest.$ac_ext |
---|
4477 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4478 | /* end confdefs.h. */ |
---|
4479 | |
---|
4480 | |
---|
4481 | int |
---|
4482 | main () |
---|
4483 | { |
---|
4484 | main (); |
---|
4485 | ; |
---|
4486 | return 0; |
---|
4487 | } |
---|
4488 | _ACEOF |
---|
4489 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4491 | (eval $ac_link) 2>conftest.er1 |
---|
4492 | ac_status=$? |
---|
4493 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4494 | rm -f conftest.er1 |
---|
4495 | cat conftest.err >&5 |
---|
4496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4497 | (exit $ac_status); } && |
---|
4498 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4499 | || test ! -s conftest.err' |
---|
4500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4501 | (eval $ac_try) 2>&5 |
---|
4502 | ac_status=$? |
---|
4503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4504 | (exit $ac_status); }; } && |
---|
4505 | { ac_try='test -s conftest$ac_exeext' |
---|
4506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4507 | (eval $ac_try) 2>&5 |
---|
4508 | ac_status=$? |
---|
4509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4510 | (exit $ac_status); }; }; then |
---|
4511 | ac_cv_lib_X11_main=yes |
---|
4512 | else |
---|
4513 | echo "$as_me: failed program was:" >&5 |
---|
4514 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4515 | |
---|
4516 | ac_cv_lib_X11_main=no |
---|
4517 | fi |
---|
4518 | rm -f conftest.err conftest.$ac_objext \ |
---|
4519 | conftest$ac_exeext conftest.$ac_ext |
---|
4520 | LIBS=$ac_check_lib_save_LIBS |
---|
4521 | fi |
---|
4522 | echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5 |
---|
4523 | echo "${ECHO_T}$ac_cv_lib_X11_main" >&6 |
---|
4524 | if test $ac_cv_lib_X11_main = yes; then |
---|
4525 | cat >>confdefs.h <<_ACEOF |
---|
4526 | #define HAVE_LIBX11 1 |
---|
4527 | _ACEOF |
---|
4528 | |
---|
4529 | LIBS="-lX11 $LIBS" |
---|
4530 | |
---|
4531 | fi |
---|
4532 | |
---|
4533 | # FIXME: Replace `main' with a function in `-lXt': |
---|
4534 | |
---|
4535 | echo "$as_me:$LINENO: checking for main in -lXt" >&5 |
---|
4536 | echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6 |
---|
4537 | if test "${ac_cv_lib_Xt_main+set}" = set; then |
---|
4538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4539 | else |
---|
4540 | ac_check_lib_save_LIBS=$LIBS |
---|
4541 | LIBS="-lXt $LIBS" |
---|
4542 | cat >conftest.$ac_ext <<_ACEOF |
---|
4543 | /* confdefs.h. */ |
---|
4544 | _ACEOF |
---|
4545 | cat confdefs.h >>conftest.$ac_ext |
---|
4546 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4547 | /* end confdefs.h. */ |
---|
4548 | |
---|
4549 | |
---|
4550 | int |
---|
4551 | main () |
---|
4552 | { |
---|
4553 | main (); |
---|
4554 | ; |
---|
4555 | return 0; |
---|
4556 | } |
---|
4557 | _ACEOF |
---|
4558 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4560 | (eval $ac_link) 2>conftest.er1 |
---|
4561 | ac_status=$? |
---|
4562 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4563 | rm -f conftest.er1 |
---|
4564 | cat conftest.err >&5 |
---|
4565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4566 | (exit $ac_status); } && |
---|
4567 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4568 | || test ! -s conftest.err' |
---|
4569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4570 | (eval $ac_try) 2>&5 |
---|
4571 | ac_status=$? |
---|
4572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4573 | (exit $ac_status); }; } && |
---|
4574 | { ac_try='test -s conftest$ac_exeext' |
---|
4575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4576 | (eval $ac_try) 2>&5 |
---|
4577 | ac_status=$? |
---|
4578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4579 | (exit $ac_status); }; }; then |
---|
4580 | ac_cv_lib_Xt_main=yes |
---|
4581 | else |
---|
4582 | echo "$as_me: failed program was:" >&5 |
---|
4583 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4584 | |
---|
4585 | ac_cv_lib_Xt_main=no |
---|
4586 | fi |
---|
4587 | rm -f conftest.err conftest.$ac_objext \ |
---|
4588 | conftest$ac_exeext conftest.$ac_ext |
---|
4589 | LIBS=$ac_check_lib_save_LIBS |
---|
4590 | fi |
---|
4591 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5 |
---|
4592 | echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6 |
---|
4593 | if test $ac_cv_lib_Xt_main = yes; then |
---|
4594 | cat >>confdefs.h <<_ACEOF |
---|
4595 | #define HAVE_LIBXT 1 |
---|
4596 | _ACEOF |
---|
4597 | |
---|
4598 | LIBS="-lXt $LIBS" |
---|
4599 | |
---|
4600 | fi |
---|
4601 | |
---|
4602 | |
---|
4603 | # cheking for libglut32 |
---|
4604 | |
---|
4605 | for ac_header in GL/glut.h |
---|
4606 | do |
---|
4607 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4608 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4609 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4610 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4611 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4613 | fi |
---|
4614 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4615 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4616 | else |
---|
4617 | # Is the header compilable? |
---|
4618 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4619 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4620 | cat >conftest.$ac_ext <<_ACEOF |
---|
4621 | /* confdefs.h. */ |
---|
4622 | _ACEOF |
---|
4623 | cat confdefs.h >>conftest.$ac_ext |
---|
4624 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4625 | /* end confdefs.h. */ |
---|
4626 | $ac_includes_default |
---|
4627 | #include <$ac_header> |
---|
4628 | _ACEOF |
---|
4629 | rm -f conftest.$ac_objext |
---|
4630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4631 | (eval $ac_compile) 2>conftest.er1 |
---|
4632 | ac_status=$? |
---|
4633 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4634 | rm -f conftest.er1 |
---|
4635 | cat conftest.err >&5 |
---|
4636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4637 | (exit $ac_status); } && |
---|
4638 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4639 | || test ! -s conftest.err' |
---|
4640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4641 | (eval $ac_try) 2>&5 |
---|
4642 | ac_status=$? |
---|
4643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4644 | (exit $ac_status); }; } && |
---|
4645 | { ac_try='test -s conftest.$ac_objext' |
---|
4646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4647 | (eval $ac_try) 2>&5 |
---|
4648 | ac_status=$? |
---|
4649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4650 | (exit $ac_status); }; }; then |
---|
4651 | ac_header_compiler=yes |
---|
4652 | else |
---|
4653 | echo "$as_me: failed program was:" >&5 |
---|
4654 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4655 | |
---|
4656 | ac_header_compiler=no |
---|
4657 | fi |
---|
4658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4659 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4660 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4661 | |
---|
4662 | # Is the header present? |
---|
4663 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4664 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4665 | cat >conftest.$ac_ext <<_ACEOF |
---|
4666 | /* confdefs.h. */ |
---|
4667 | _ACEOF |
---|
4668 | cat confdefs.h >>conftest.$ac_ext |
---|
4669 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4670 | /* end confdefs.h. */ |
---|
4671 | #include <$ac_header> |
---|
4672 | _ACEOF |
---|
4673 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4674 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4675 | ac_status=$? |
---|
4676 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4677 | rm -f conftest.er1 |
---|
4678 | cat conftest.err >&5 |
---|
4679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4680 | (exit $ac_status); } >/dev/null; then |
---|
4681 | if test -s conftest.err; then |
---|
4682 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4683 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4684 | else |
---|
4685 | ac_cpp_err= |
---|
4686 | fi |
---|
4687 | else |
---|
4688 | ac_cpp_err=yes |
---|
4689 | fi |
---|
4690 | if test -z "$ac_cpp_err"; then |
---|
4691 | ac_header_preproc=yes |
---|
4692 | else |
---|
4693 | echo "$as_me: failed program was:" >&5 |
---|
4694 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4695 | |
---|
4696 | ac_header_preproc=no |
---|
4697 | fi |
---|
4698 | rm -f conftest.err conftest.$ac_ext |
---|
4699 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4700 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4701 | |
---|
4702 | # So? What about this header? |
---|
4703 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4704 | yes:no: ) |
---|
4705 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4706 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4707 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4708 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4709 | ac_header_preproc=yes |
---|
4710 | ;; |
---|
4711 | no:yes:* ) |
---|
4712 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4713 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4714 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4715 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4716 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4717 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4718 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4719 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4720 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4721 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4722 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4723 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4724 | ( |
---|
4725 | cat <<\_ASBOX |
---|
4726 | ## ------------------------------------------- ## |
---|
4727 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
4728 | ## ------------------------------------------- ## |
---|
4729 | _ASBOX |
---|
4730 | ) | |
---|
4731 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4732 | ;; |
---|
4733 | esac |
---|
4734 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4735 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4736 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4738 | else |
---|
4739 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4740 | fi |
---|
4741 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4742 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4743 | |
---|
4744 | fi |
---|
4745 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4746 | cat >>confdefs.h <<_ACEOF |
---|
4747 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4748 | _ACEOF |
---|
4749 | |
---|
4750 | else |
---|
4751 | { { echo "$as_me:$LINENO: error: cannot find glut headers" >&5 |
---|
4752 | echo "$as_me: error: cannot find glut headers" >&2;} |
---|
4753 | { (exit 1); exit 1; }; } |
---|
4754 | fi |
---|
4755 | |
---|
4756 | done |
---|
4757 | |
---|
4758 | echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5 |
---|
4759 | echo $ECHO_N "checking for glutInit in -lglut... $ECHO_C" >&6 |
---|
4760 | if test "${ac_cv_lib_glut_glutInit+set}" = set; then |
---|
4761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4762 | else |
---|
4763 | ac_check_lib_save_LIBS=$LIBS |
---|
4764 | LIBS="-lglut $LIBS" |
---|
4765 | cat >conftest.$ac_ext <<_ACEOF |
---|
4766 | /* confdefs.h. */ |
---|
4767 | _ACEOF |
---|
4768 | cat confdefs.h >>conftest.$ac_ext |
---|
4769 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4770 | /* end confdefs.h. */ |
---|
4771 | |
---|
4772 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4773 | #ifdef __cplusplus |
---|
4774 | extern "C" |
---|
4775 | #endif |
---|
4776 | /* We use char because int might match the return type of a gcc2 |
---|
4777 | builtin and then its argument prototype would still apply. */ |
---|
4778 | char glutInit (); |
---|
4779 | int |
---|
4780 | main () |
---|
4781 | { |
---|
4782 | glutInit (); |
---|
4783 | ; |
---|
4784 | return 0; |
---|
4785 | } |
---|
4786 | _ACEOF |
---|
4787 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4789 | (eval $ac_link) 2>conftest.er1 |
---|
4790 | ac_status=$? |
---|
4791 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4792 | rm -f conftest.er1 |
---|
4793 | cat conftest.err >&5 |
---|
4794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4795 | (exit $ac_status); } && |
---|
4796 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4797 | || test ! -s conftest.err' |
---|
4798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4799 | (eval $ac_try) 2>&5 |
---|
4800 | ac_status=$? |
---|
4801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4802 | (exit $ac_status); }; } && |
---|
4803 | { ac_try='test -s conftest$ac_exeext' |
---|
4804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4805 | (eval $ac_try) 2>&5 |
---|
4806 | ac_status=$? |
---|
4807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4808 | (exit $ac_status); }; }; then |
---|
4809 | ac_cv_lib_glut_glutInit=yes |
---|
4810 | else |
---|
4811 | echo "$as_me: failed program was:" >&5 |
---|
4812 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4813 | |
---|
4814 | ac_cv_lib_glut_glutInit=no |
---|
4815 | fi |
---|
4816 | rm -f conftest.err conftest.$ac_objext \ |
---|
4817 | conftest$ac_exeext conftest.$ac_ext |
---|
4818 | LIBS=$ac_check_lib_save_LIBS |
---|
4819 | fi |
---|
4820 | echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&5 |
---|
4821 | echo "${ECHO_T}$ac_cv_lib_glut_glutInit" >&6 |
---|
4822 | if test $ac_cv_lib_glut_glutInit = yes; then |
---|
4823 | FOUND_glut=yes |
---|
4824 | fi |
---|
4825 | |
---|
4826 | if test "$FOUND_glut" = "yes" ; then |
---|
4827 | LIBS="$LIBS -lglut" |
---|
4828 | # checking for Windows glut32 library |
---|
4829 | else |
---|
4830 | echo "We did not find the Linux glut Library. Checking for Windows Library" |
---|
4831 | echo "$as_me:$LINENO: checking for main in -lglut32" >&5 |
---|
4832 | echo $ECHO_N "checking for main in -lglut32... $ECHO_C" >&6 |
---|
4833 | if test "${ac_cv_lib_glut32_main+set}" = set; then |
---|
4834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4835 | else |
---|
4836 | ac_check_lib_save_LIBS=$LIBS |
---|
4837 | LIBS="-lglut32 $LIBS" |
---|
4838 | cat >conftest.$ac_ext <<_ACEOF |
---|
4839 | /* confdefs.h. */ |
---|
4840 | _ACEOF |
---|
4841 | cat confdefs.h >>conftest.$ac_ext |
---|
4842 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4843 | /* end confdefs.h. */ |
---|
4844 | |
---|
4845 | |
---|
4846 | int |
---|
4847 | main () |
---|
4848 | { |
---|
4849 | main (); |
---|
4850 | ; |
---|
4851 | return 0; |
---|
4852 | } |
---|
4853 | _ACEOF |
---|
4854 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4855 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4856 | (eval $ac_link) 2>conftest.er1 |
---|
4857 | ac_status=$? |
---|
4858 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4859 | rm -f conftest.er1 |
---|
4860 | cat conftest.err >&5 |
---|
4861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4862 | (exit $ac_status); } && |
---|
4863 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4864 | || test ! -s conftest.err' |
---|
4865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4866 | (eval $ac_try) 2>&5 |
---|
4867 | ac_status=$? |
---|
4868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4869 | (exit $ac_status); }; } && |
---|
4870 | { ac_try='test -s conftest$ac_exeext' |
---|
4871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4872 | (eval $ac_try) 2>&5 |
---|
4873 | ac_status=$? |
---|
4874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4875 | (exit $ac_status); }; }; then |
---|
4876 | ac_cv_lib_glut32_main=yes |
---|
4877 | else |
---|
4878 | echo "$as_me: failed program was:" >&5 |
---|
4879 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4880 | |
---|
4881 | ac_cv_lib_glut32_main=no |
---|
4882 | fi |
---|
4883 | rm -f conftest.err conftest.$ac_objext \ |
---|
4884 | conftest$ac_exeext conftest.$ac_ext |
---|
4885 | LIBS=$ac_check_lib_save_LIBS |
---|
4886 | fi |
---|
4887 | echo "$as_me:$LINENO: result: $ac_cv_lib_glut32_main" >&5 |
---|
4888 | echo "${ECHO_T}$ac_cv_lib_glut32_main" >&6 |
---|
4889 | if test $ac_cv_lib_glut32_main = yes; then |
---|
4890 | FOUND_glut32=yes |
---|
4891 | fi |
---|
4892 | |
---|
4893 | if test "$FOUND_glut32" = "yes" ; then |
---|
4894 | LIBS="$LIBS -lglut32" |
---|
4895 | else |
---|
4896 | echo "------------------" |
---|
4897 | echo "glut library not found." |
---|
4898 | echo "please install the glut library, which can be found at http://www.xmission.com/~nate/glut.html" |
---|
4899 | echo "------------------" |
---|
4900 | exit -1 |
---|
4901 | fi |
---|
4902 | fi |
---|
4903 | |
---|
4904 | ## mingw CHECK |
---|
4905 | if test $mingw = yes ; then |
---|
4906 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
4907 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
4908 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
4909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4910 | else |
---|
4911 | ac_check_lib_save_LIBS=$LIBS |
---|
4912 | LIBS="-lmingw32 $LIBS" |
---|
4913 | cat >conftest.$ac_ext <<_ACEOF |
---|
4914 | /* confdefs.h. */ |
---|
4915 | _ACEOF |
---|
4916 | cat confdefs.h >>conftest.$ac_ext |
---|
4917 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4918 | /* end confdefs.h. */ |
---|
4919 | |
---|
4920 | |
---|
4921 | int |
---|
4922 | main () |
---|
4923 | { |
---|
4924 | main (); |
---|
4925 | ; |
---|
4926 | return 0; |
---|
4927 | } |
---|
4928 | _ACEOF |
---|
4929 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4930 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4931 | (eval $ac_link) 2>conftest.er1 |
---|
4932 | ac_status=$? |
---|
4933 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4934 | rm -f conftest.er1 |
---|
4935 | cat conftest.err >&5 |
---|
4936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4937 | (exit $ac_status); } && |
---|
4938 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4939 | || test ! -s conftest.err' |
---|
4940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4941 | (eval $ac_try) 2>&5 |
---|
4942 | ac_status=$? |
---|
4943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4944 | (exit $ac_status); }; } && |
---|
4945 | { ac_try='test -s conftest$ac_exeext' |
---|
4946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4947 | (eval $ac_try) 2>&5 |
---|
4948 | ac_status=$? |
---|
4949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4950 | (exit $ac_status); }; }; then |
---|
4951 | ac_cv_lib_mingw32_main=yes |
---|
4952 | else |
---|
4953 | echo "$as_me: failed program was:" >&5 |
---|
4954 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4955 | |
---|
4956 | ac_cv_lib_mingw32_main=no |
---|
4957 | fi |
---|
4958 | rm -f conftest.err conftest.$ac_objext \ |
---|
4959 | conftest$ac_exeext conftest.$ac_ext |
---|
4960 | LIBS=$ac_check_lib_save_LIBS |
---|
4961 | fi |
---|
4962 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
4963 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
4964 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
4965 | FOUND_mingw32=yes |
---|
4966 | fi |
---|
4967 | |
---|
4968 | if test $FOUND_mingw32 = "yes"; then |
---|
4969 | LIBS="$LIBS -lmingw32" |
---|
4970 | fi |
---|
4971 | fi |
---|
4972 | |
---|
4973 | ## SDL CHECK |
---|
4974 | |
---|
4975 | #checking for SDL libs |
---|
4976 | |
---|
4977 | for ac_header in SDL/SDL.h |
---|
4978 | do |
---|
4979 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4980 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4981 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4982 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4983 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4985 | fi |
---|
4986 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4987 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4988 | else |
---|
4989 | # Is the header compilable? |
---|
4990 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4991 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4992 | cat >conftest.$ac_ext <<_ACEOF |
---|
4993 | /* confdefs.h. */ |
---|
4994 | _ACEOF |
---|
4995 | cat confdefs.h >>conftest.$ac_ext |
---|
4996 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4997 | /* end confdefs.h. */ |
---|
4998 | $ac_includes_default |
---|
4999 | #include <$ac_header> |
---|
5000 | _ACEOF |
---|
5001 | rm -f conftest.$ac_objext |
---|
5002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5003 | (eval $ac_compile) 2>conftest.er1 |
---|
5004 | ac_status=$? |
---|
5005 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5006 | rm -f conftest.er1 |
---|
5007 | cat conftest.err >&5 |
---|
5008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5009 | (exit $ac_status); } && |
---|
5010 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5011 | || test ! -s conftest.err' |
---|
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); }; } && |
---|
5017 | { ac_try='test -s conftest.$ac_objext' |
---|
5018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5019 | (eval $ac_try) 2>&5 |
---|
5020 | ac_status=$? |
---|
5021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5022 | (exit $ac_status); }; }; then |
---|
5023 | ac_header_compiler=yes |
---|
5024 | else |
---|
5025 | echo "$as_me: failed program was:" >&5 |
---|
5026 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5027 | |
---|
5028 | ac_header_compiler=no |
---|
5029 | fi |
---|
5030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5031 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5032 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5033 | |
---|
5034 | # Is the header present? |
---|
5035 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5036 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5037 | cat >conftest.$ac_ext <<_ACEOF |
---|
5038 | /* confdefs.h. */ |
---|
5039 | _ACEOF |
---|
5040 | cat confdefs.h >>conftest.$ac_ext |
---|
5041 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5042 | /* end confdefs.h. */ |
---|
5043 | #include <$ac_header> |
---|
5044 | _ACEOF |
---|
5045 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5046 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5047 | ac_status=$? |
---|
5048 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5049 | rm -f conftest.er1 |
---|
5050 | cat conftest.err >&5 |
---|
5051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5052 | (exit $ac_status); } >/dev/null; then |
---|
5053 | if test -s conftest.err; then |
---|
5054 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5055 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5056 | else |
---|
5057 | ac_cpp_err= |
---|
5058 | fi |
---|
5059 | else |
---|
5060 | ac_cpp_err=yes |
---|
5061 | fi |
---|
5062 | if test -z "$ac_cpp_err"; then |
---|
5063 | ac_header_preproc=yes |
---|
5064 | else |
---|
5065 | echo "$as_me: failed program was:" >&5 |
---|
5066 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5067 | |
---|
5068 | ac_header_preproc=no |
---|
5069 | fi |
---|
5070 | rm -f conftest.err conftest.$ac_ext |
---|
5071 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5072 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5073 | |
---|
5074 | # So? What about this header? |
---|
5075 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5076 | yes:no: ) |
---|
5077 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5078 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5079 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5080 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5081 | ac_header_preproc=yes |
---|
5082 | ;; |
---|
5083 | no:yes:* ) |
---|
5084 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5085 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5086 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5087 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5088 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5089 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5090 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5091 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5092 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5093 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5094 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5095 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5096 | ( |
---|
5097 | cat <<\_ASBOX |
---|
5098 | ## ------------------------------------------- ## |
---|
5099 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
5100 | ## ------------------------------------------- ## |
---|
5101 | _ASBOX |
---|
5102 | ) | |
---|
5103 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5104 | ;; |
---|
5105 | esac |
---|
5106 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5107 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5108 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5110 | else |
---|
5111 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5112 | fi |
---|
5113 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5114 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5115 | |
---|
5116 | fi |
---|
5117 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5118 | cat >>confdefs.h <<_ACEOF |
---|
5119 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5120 | _ACEOF |
---|
5121 | |
---|
5122 | else |
---|
5123 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
5124 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
5125 | { (exit 1); exit 1; }; } |
---|
5126 | fi |
---|
5127 | |
---|
5128 | done |
---|
5129 | |
---|
5130 | if test $mingw = no ; then |
---|
5131 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
5132 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
5133 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
5134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5135 | else |
---|
5136 | ac_check_lib_save_LIBS=$LIBS |
---|
5137 | LIBS="-lSDL $LIBS" |
---|
5138 | cat >conftest.$ac_ext <<_ACEOF |
---|
5139 | /* confdefs.h. */ |
---|
5140 | _ACEOF |
---|
5141 | cat confdefs.h >>conftest.$ac_ext |
---|
5142 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5143 | /* end confdefs.h. */ |
---|
5144 | |
---|
5145 | |
---|
5146 | int |
---|
5147 | main () |
---|
5148 | { |
---|
5149 | main (); |
---|
5150 | ; |
---|
5151 | return 0; |
---|
5152 | } |
---|
5153 | _ACEOF |
---|
5154 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5155 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5156 | (eval $ac_link) 2>conftest.er1 |
---|
5157 | ac_status=$? |
---|
5158 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5159 | rm -f conftest.er1 |
---|
5160 | cat conftest.err >&5 |
---|
5161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5162 | (exit $ac_status); } && |
---|
5163 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5164 | || test ! -s conftest.err' |
---|
5165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5166 | (eval $ac_try) 2>&5 |
---|
5167 | ac_status=$? |
---|
5168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5169 | (exit $ac_status); }; } && |
---|
5170 | { ac_try='test -s conftest$ac_exeext' |
---|
5171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5172 | (eval $ac_try) 2>&5 |
---|
5173 | ac_status=$? |
---|
5174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5175 | (exit $ac_status); }; }; then |
---|
5176 | ac_cv_lib_SDL_main=yes |
---|
5177 | else |
---|
5178 | echo "$as_me: failed program was:" >&5 |
---|
5179 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5180 | |
---|
5181 | ac_cv_lib_SDL_main=no |
---|
5182 | fi |
---|
5183 | rm -f conftest.err conftest.$ac_objext \ |
---|
5184 | conftest$ac_exeext conftest.$ac_ext |
---|
5185 | LIBS=$ac_check_lib_save_LIBS |
---|
5186 | fi |
---|
5187 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
5188 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
5189 | if test $ac_cv_lib_SDL_main = yes; then |
---|
5190 | FOUND_SDL=yes |
---|
5191 | fi |
---|
5192 | |
---|
5193 | if test "$FOUND_SDL" = "yes" ; then |
---|
5194 | LIBS="$LIBS -lSDL" |
---|
5195 | fi |
---|
5196 | # checking for Windows sdl library |
---|
5197 | else |
---|
5198 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
5199 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
5200 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
5201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5202 | else |
---|
5203 | ac_check_lib_save_LIBS=$LIBS |
---|
5204 | LIBS="-lsdlmain $LIBS" |
---|
5205 | cat >conftest.$ac_ext <<_ACEOF |
---|
5206 | /* confdefs.h. */ |
---|
5207 | _ACEOF |
---|
5208 | cat confdefs.h >>conftest.$ac_ext |
---|
5209 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5210 | /* end confdefs.h. */ |
---|
5211 | |
---|
5212 | |
---|
5213 | int |
---|
5214 | main () |
---|
5215 | { |
---|
5216 | main (); |
---|
5217 | ; |
---|
5218 | return 0; |
---|
5219 | } |
---|
5220 | _ACEOF |
---|
5221 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5222 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5223 | (eval $ac_link) 2>conftest.er1 |
---|
5224 | ac_status=$? |
---|
5225 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5226 | rm -f conftest.er1 |
---|
5227 | cat conftest.err >&5 |
---|
5228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5229 | (exit $ac_status); } && |
---|
5230 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5231 | || test ! -s conftest.err' |
---|
5232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5233 | (eval $ac_try) 2>&5 |
---|
5234 | ac_status=$? |
---|
5235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5236 | (exit $ac_status); }; } && |
---|
5237 | { ac_try='test -s conftest$ac_exeext' |
---|
5238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5239 | (eval $ac_try) 2>&5 |
---|
5240 | ac_status=$? |
---|
5241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5242 | (exit $ac_status); }; }; then |
---|
5243 | ac_cv_lib_sdlmain_main=yes |
---|
5244 | else |
---|
5245 | echo "$as_me: failed program was:" >&5 |
---|
5246 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5247 | |
---|
5248 | ac_cv_lib_sdlmain_main=no |
---|
5249 | fi |
---|
5250 | rm -f conftest.err conftest.$ac_objext \ |
---|
5251 | conftest$ac_exeext conftest.$ac_ext |
---|
5252 | LIBS=$ac_check_lib_save_LIBS |
---|
5253 | fi |
---|
5254 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
5255 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
5256 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
5257 | FOUND_sdlmain=yes |
---|
5258 | fi |
---|
5259 | |
---|
5260 | if test "$FOUND_sdlmain" = "yes" ; then |
---|
5261 | LIBS="$LIBS -lsdlmain" |
---|
5262 | fi |
---|
5263 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
5264 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
5265 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
5266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5267 | else |
---|
5268 | ac_check_lib_save_LIBS=$LIBS |
---|
5269 | LIBS="-lsdl $LIBS" |
---|
5270 | cat >conftest.$ac_ext <<_ACEOF |
---|
5271 | /* confdefs.h. */ |
---|
5272 | _ACEOF |
---|
5273 | cat confdefs.h >>conftest.$ac_ext |
---|
5274 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5275 | /* end confdefs.h. */ |
---|
5276 | |
---|
5277 | |
---|
5278 | int |
---|
5279 | main () |
---|
5280 | { |
---|
5281 | main (); |
---|
5282 | ; |
---|
5283 | return 0; |
---|
5284 | } |
---|
5285 | _ACEOF |
---|
5286 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5287 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5288 | (eval $ac_link) 2>conftest.er1 |
---|
5289 | ac_status=$? |
---|
5290 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5291 | rm -f conftest.er1 |
---|
5292 | cat conftest.err >&5 |
---|
5293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5294 | (exit $ac_status); } && |
---|
5295 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5296 | || test ! -s conftest.err' |
---|
5297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5298 | (eval $ac_try) 2>&5 |
---|
5299 | ac_status=$? |
---|
5300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5301 | (exit $ac_status); }; } && |
---|
5302 | { ac_try='test -s conftest$ac_exeext' |
---|
5303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5304 | (eval $ac_try) 2>&5 |
---|
5305 | ac_status=$? |
---|
5306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5307 | (exit $ac_status); }; }; then |
---|
5308 | ac_cv_lib_sdl_main=yes |
---|
5309 | else |
---|
5310 | echo "$as_me: failed program was:" >&5 |
---|
5311 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5312 | |
---|
5313 | ac_cv_lib_sdl_main=no |
---|
5314 | fi |
---|
5315 | rm -f conftest.err conftest.$ac_objext \ |
---|
5316 | conftest$ac_exeext conftest.$ac_ext |
---|
5317 | LIBS=$ac_check_lib_save_LIBS |
---|
5318 | fi |
---|
5319 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
5320 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
5321 | if test $ac_cv_lib_sdl_main = yes; then |
---|
5322 | FOUND_sdl=yes |
---|
5323 | fi |
---|
5324 | |
---|
5325 | if test "$FOUND_sdl" = "yes" ; then |
---|
5326 | LIBS="$LIBS -lsdl" |
---|
5327 | fi |
---|
5328 | fi |
---|
5329 | |
---|
5330 | #checking for pthread libs |
---|
5331 | echo "$as_me:$LINENO: checking for main in -lpthread" >&5 |
---|
5332 | echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 |
---|
5333 | if test "${ac_cv_lib_pthread_main+set}" = set; then |
---|
5334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5335 | else |
---|
5336 | ac_check_lib_save_LIBS=$LIBS |
---|
5337 | LIBS="-lpthread $LIBS" |
---|
5338 | cat >conftest.$ac_ext <<_ACEOF |
---|
5339 | /* confdefs.h. */ |
---|
5340 | _ACEOF |
---|
5341 | cat confdefs.h >>conftest.$ac_ext |
---|
5342 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5343 | /* end confdefs.h. */ |
---|
5344 | |
---|
5345 | |
---|
5346 | int |
---|
5347 | main () |
---|
5348 | { |
---|
5349 | main (); |
---|
5350 | ; |
---|
5351 | return 0; |
---|
5352 | } |
---|
5353 | _ACEOF |
---|
5354 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5355 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5356 | (eval $ac_link) 2>conftest.er1 |
---|
5357 | ac_status=$? |
---|
5358 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5359 | rm -f conftest.er1 |
---|
5360 | cat conftest.err >&5 |
---|
5361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5362 | (exit $ac_status); } && |
---|
5363 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5364 | || test ! -s conftest.err' |
---|
5365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5366 | (eval $ac_try) 2>&5 |
---|
5367 | ac_status=$? |
---|
5368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5369 | (exit $ac_status); }; } && |
---|
5370 | { ac_try='test -s conftest$ac_exeext' |
---|
5371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5372 | (eval $ac_try) 2>&5 |
---|
5373 | ac_status=$? |
---|
5374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5375 | (exit $ac_status); }; }; then |
---|
5376 | ac_cv_lib_pthread_main=yes |
---|
5377 | else |
---|
5378 | echo "$as_me: failed program was:" >&5 |
---|
5379 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5380 | |
---|
5381 | ac_cv_lib_pthread_main=no |
---|
5382 | fi |
---|
5383 | rm -f conftest.err conftest.$ac_objext \ |
---|
5384 | conftest$ac_exeext conftest.$ac_ext |
---|
5385 | LIBS=$ac_check_lib_save_LIBS |
---|
5386 | fi |
---|
5387 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 |
---|
5388 | echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 |
---|
5389 | if test $ac_cv_lib_pthread_main = yes; then |
---|
5390 | FOUND_pthread=yes |
---|
5391 | fi |
---|
5392 | |
---|
5393 | if test "$FOUND_pthread" = "yes" ; then |
---|
5394 | LIBS="$LIBS -lpthread" |
---|
5395 | fi |
---|
5396 | |
---|
5397 | |
---|
5398 | |
---|
5399 | |
---|
5400 | # FIXME: Replace `main' with a function in `-lm': |
---|
5401 | |
---|
5402 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
5403 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
5404 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
5405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5406 | else |
---|
5407 | ac_check_lib_save_LIBS=$LIBS |
---|
5408 | LIBS="-lm $LIBS" |
---|
5409 | cat >conftest.$ac_ext <<_ACEOF |
---|
5410 | /* confdefs.h. */ |
---|
5411 | _ACEOF |
---|
5412 | cat confdefs.h >>conftest.$ac_ext |
---|
5413 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5414 | /* end confdefs.h. */ |
---|
5415 | |
---|
5416 | |
---|
5417 | int |
---|
5418 | main () |
---|
5419 | { |
---|
5420 | main (); |
---|
5421 | ; |
---|
5422 | return 0; |
---|
5423 | } |
---|
5424 | _ACEOF |
---|
5425 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5427 | (eval $ac_link) 2>conftest.er1 |
---|
5428 | ac_status=$? |
---|
5429 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5430 | rm -f conftest.er1 |
---|
5431 | cat conftest.err >&5 |
---|
5432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5433 | (exit $ac_status); } && |
---|
5434 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5435 | || test ! -s conftest.err' |
---|
5436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5437 | (eval $ac_try) 2>&5 |
---|
5438 | ac_status=$? |
---|
5439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5440 | (exit $ac_status); }; } && |
---|
5441 | { ac_try='test -s conftest$ac_exeext' |
---|
5442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5443 | (eval $ac_try) 2>&5 |
---|
5444 | ac_status=$? |
---|
5445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5446 | (exit $ac_status); }; }; then |
---|
5447 | ac_cv_lib_m_main=yes |
---|
5448 | else |
---|
5449 | echo "$as_me: failed program was:" >&5 |
---|
5450 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5451 | |
---|
5452 | ac_cv_lib_m_main=no |
---|
5453 | fi |
---|
5454 | rm -f conftest.err conftest.$ac_objext \ |
---|
5455 | conftest$ac_exeext conftest.$ac_ext |
---|
5456 | LIBS=$ac_check_lib_save_LIBS |
---|
5457 | fi |
---|
5458 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
5459 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
5460 | if test $ac_cv_lib_m_main = yes; then |
---|
5461 | cat >>confdefs.h <<_ACEOF |
---|
5462 | #define HAVE_LIBM 1 |
---|
5463 | _ACEOF |
---|
5464 | |
---|
5465 | LIBS="-lm $LIBS" |
---|
5466 | |
---|
5467 | fi |
---|
5468 | |
---|
5469 | |
---|
5470 | LIBS="$LIBS `pkg-config --libs gtk+-2.0`" |
---|
5471 | |
---|
5472 | |
---|
5473 | # Checks for header files. |
---|
5474 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
5475 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
5476 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
5477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5478 | else |
---|
5479 | cat >conftest.$ac_ext <<_ACEOF |
---|
5480 | /* confdefs.h. */ |
---|
5481 | _ACEOF |
---|
5482 | cat confdefs.h >>conftest.$ac_ext |
---|
5483 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5484 | /* end confdefs.h. */ |
---|
5485 | #include <stdlib.h> |
---|
5486 | #include <stdarg.h> |
---|
5487 | #include <string.h> |
---|
5488 | #include <float.h> |
---|
5489 | |
---|
5490 | int |
---|
5491 | main () |
---|
5492 | { |
---|
5493 | |
---|
5494 | ; |
---|
5495 | return 0; |
---|
5496 | } |
---|
5497 | _ACEOF |
---|
5498 | rm -f conftest.$ac_objext |
---|
5499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5500 | (eval $ac_compile) 2>conftest.er1 |
---|
5501 | ac_status=$? |
---|
5502 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5503 | rm -f conftest.er1 |
---|
5504 | cat conftest.err >&5 |
---|
5505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5506 | (exit $ac_status); } && |
---|
5507 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5508 | || test ! -s conftest.err' |
---|
5509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5510 | (eval $ac_try) 2>&5 |
---|
5511 | ac_status=$? |
---|
5512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5513 | (exit $ac_status); }; } && |
---|
5514 | { ac_try='test -s conftest.$ac_objext' |
---|
5515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5516 | (eval $ac_try) 2>&5 |
---|
5517 | ac_status=$? |
---|
5518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5519 | (exit $ac_status); }; }; then |
---|
5520 | ac_cv_header_stdc=yes |
---|
5521 | else |
---|
5522 | echo "$as_me: failed program was:" >&5 |
---|
5523 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5524 | |
---|
5525 | ac_cv_header_stdc=no |
---|
5526 | fi |
---|
5527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5528 | |
---|
5529 | if test $ac_cv_header_stdc = yes; then |
---|
5530 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
5531 | cat >conftest.$ac_ext <<_ACEOF |
---|
5532 | /* confdefs.h. */ |
---|
5533 | _ACEOF |
---|
5534 | cat confdefs.h >>conftest.$ac_ext |
---|
5535 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5536 | /* end confdefs.h. */ |
---|
5537 | #include <string.h> |
---|
5538 | |
---|
5539 | _ACEOF |
---|
5540 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5541 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
5542 | : |
---|
5543 | else |
---|
5544 | ac_cv_header_stdc=no |
---|
5545 | fi |
---|
5546 | rm -f conftest* |
---|
5547 | |
---|
5548 | fi |
---|
5549 | |
---|
5550 | if test $ac_cv_header_stdc = yes; then |
---|
5551 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
5552 | cat >conftest.$ac_ext <<_ACEOF |
---|
5553 | /* confdefs.h. */ |
---|
5554 | _ACEOF |
---|
5555 | cat confdefs.h >>conftest.$ac_ext |
---|
5556 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5557 | /* end confdefs.h. */ |
---|
5558 | #include <stdlib.h> |
---|
5559 | |
---|
5560 | _ACEOF |
---|
5561 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5562 | $EGREP "free" >/dev/null 2>&1; then |
---|
5563 | : |
---|
5564 | else |
---|
5565 | ac_cv_header_stdc=no |
---|
5566 | fi |
---|
5567 | rm -f conftest* |
---|
5568 | |
---|
5569 | fi |
---|
5570 | |
---|
5571 | if test $ac_cv_header_stdc = yes; then |
---|
5572 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
5573 | if test "$cross_compiling" = yes; then |
---|
5574 | : |
---|
5575 | else |
---|
5576 | cat >conftest.$ac_ext <<_ACEOF |
---|
5577 | /* confdefs.h. */ |
---|
5578 | _ACEOF |
---|
5579 | cat confdefs.h >>conftest.$ac_ext |
---|
5580 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5581 | /* end confdefs.h. */ |
---|
5582 | #include <ctype.h> |
---|
5583 | #if ((' ' & 0x0FF) == 0x020) |
---|
5584 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
5585 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
5586 | #else |
---|
5587 | # define ISLOWER(c) \ |
---|
5588 | (('a' <= (c) && (c) <= 'i') \ |
---|
5589 | || ('j' <= (c) && (c) <= 'r') \ |
---|
5590 | || ('s' <= (c) && (c) <= 'z')) |
---|
5591 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
5592 | #endif |
---|
5593 | |
---|
5594 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
5595 | int |
---|
5596 | main () |
---|
5597 | { |
---|
5598 | int i; |
---|
5599 | for (i = 0; i < 256; i++) |
---|
5600 | if (XOR (islower (i), ISLOWER (i)) |
---|
5601 | || toupper (i) != TOUPPER (i)) |
---|
5602 | exit(2); |
---|
5603 | exit (0); |
---|
5604 | } |
---|
5605 | _ACEOF |
---|
5606 | rm -f conftest$ac_exeext |
---|
5607 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5608 | (eval $ac_link) 2>&5 |
---|
5609 | ac_status=$? |
---|
5610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5611 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5613 | (eval $ac_try) 2>&5 |
---|
5614 | ac_status=$? |
---|
5615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5616 | (exit $ac_status); }; }; then |
---|
5617 | : |
---|
5618 | else |
---|
5619 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
5620 | echo "$as_me: failed program was:" >&5 |
---|
5621 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5622 | |
---|
5623 | ( exit $ac_status ) |
---|
5624 | ac_cv_header_stdc=no |
---|
5625 | fi |
---|
5626 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5627 | fi |
---|
5628 | fi |
---|
5629 | fi |
---|
5630 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
5631 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
5632 | if test $ac_cv_header_stdc = yes; then |
---|
5633 | |
---|
5634 | cat >>confdefs.h <<\_ACEOF |
---|
5635 | #define STDC_HEADERS 1 |
---|
5636 | _ACEOF |
---|
5637 | |
---|
5638 | fi |
---|
5639 | |
---|
5640 | |
---|
5641 | |
---|
5642 | for ac_header in stdlib.h string.h |
---|
5643 | do |
---|
5644 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5645 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5646 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5647 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5648 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5650 | fi |
---|
5651 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5652 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5653 | else |
---|
5654 | # Is the header compilable? |
---|
5655 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5656 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5657 | cat >conftest.$ac_ext <<_ACEOF |
---|
5658 | /* confdefs.h. */ |
---|
5659 | _ACEOF |
---|
5660 | cat confdefs.h >>conftest.$ac_ext |
---|
5661 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5662 | /* end confdefs.h. */ |
---|
5663 | $ac_includes_default |
---|
5664 | #include <$ac_header> |
---|
5665 | _ACEOF |
---|
5666 | rm -f conftest.$ac_objext |
---|
5667 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5668 | (eval $ac_compile) 2>conftest.er1 |
---|
5669 | ac_status=$? |
---|
5670 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5671 | rm -f conftest.er1 |
---|
5672 | cat conftest.err >&5 |
---|
5673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5674 | (exit $ac_status); } && |
---|
5675 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5676 | || test ! -s conftest.err' |
---|
5677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5678 | (eval $ac_try) 2>&5 |
---|
5679 | ac_status=$? |
---|
5680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5681 | (exit $ac_status); }; } && |
---|
5682 | { ac_try='test -s conftest.$ac_objext' |
---|
5683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5684 | (eval $ac_try) 2>&5 |
---|
5685 | ac_status=$? |
---|
5686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5687 | (exit $ac_status); }; }; then |
---|
5688 | ac_header_compiler=yes |
---|
5689 | else |
---|
5690 | echo "$as_me: failed program was:" >&5 |
---|
5691 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5692 | |
---|
5693 | ac_header_compiler=no |
---|
5694 | fi |
---|
5695 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5696 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5697 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5698 | |
---|
5699 | # Is the header present? |
---|
5700 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5701 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5702 | cat >conftest.$ac_ext <<_ACEOF |
---|
5703 | /* confdefs.h. */ |
---|
5704 | _ACEOF |
---|
5705 | cat confdefs.h >>conftest.$ac_ext |
---|
5706 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5707 | /* end confdefs.h. */ |
---|
5708 | #include <$ac_header> |
---|
5709 | _ACEOF |
---|
5710 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5711 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5712 | ac_status=$? |
---|
5713 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5714 | rm -f conftest.er1 |
---|
5715 | cat conftest.err >&5 |
---|
5716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5717 | (exit $ac_status); } >/dev/null; then |
---|
5718 | if test -s conftest.err; then |
---|
5719 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5720 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5721 | else |
---|
5722 | ac_cpp_err= |
---|
5723 | fi |
---|
5724 | else |
---|
5725 | ac_cpp_err=yes |
---|
5726 | fi |
---|
5727 | if test -z "$ac_cpp_err"; then |
---|
5728 | ac_header_preproc=yes |
---|
5729 | else |
---|
5730 | echo "$as_me: failed program was:" >&5 |
---|
5731 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5732 | |
---|
5733 | ac_header_preproc=no |
---|
5734 | fi |
---|
5735 | rm -f conftest.err conftest.$ac_ext |
---|
5736 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5737 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5738 | |
---|
5739 | # So? What about this header? |
---|
5740 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5741 | yes:no: ) |
---|
5742 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5743 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5744 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5745 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5746 | ac_header_preproc=yes |
---|
5747 | ;; |
---|
5748 | no:yes:* ) |
---|
5749 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5750 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5751 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5752 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5753 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5754 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5755 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5756 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5757 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5758 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5759 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5760 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5761 | ( |
---|
5762 | cat <<\_ASBOX |
---|
5763 | ## ------------------------------------------- ## |
---|
5764 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
5765 | ## ------------------------------------------- ## |
---|
5766 | _ASBOX |
---|
5767 | ) | |
---|
5768 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5769 | ;; |
---|
5770 | esac |
---|
5771 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5772 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5773 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5775 | else |
---|
5776 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5777 | fi |
---|
5778 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5779 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5780 | |
---|
5781 | fi |
---|
5782 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5783 | cat >>confdefs.h <<_ACEOF |
---|
5784 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5785 | _ACEOF |
---|
5786 | |
---|
5787 | fi |
---|
5788 | |
---|
5789 | done |
---|
5790 | |
---|
5791 | |
---|
5792 | # Checks for typedefs, structures, and compiler characteristics. |
---|
5793 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
5794 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
5795 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
5796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5797 | else |
---|
5798 | cat >conftest.$ac_ext <<_ACEOF |
---|
5799 | /* confdefs.h. */ |
---|
5800 | _ACEOF |
---|
5801 | cat confdefs.h >>conftest.$ac_ext |
---|
5802 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5803 | /* end confdefs.h. */ |
---|
5804 | |
---|
5805 | #include <stdbool.h> |
---|
5806 | #ifndef bool |
---|
5807 | # error bool is not defined |
---|
5808 | #endif |
---|
5809 | #ifndef false |
---|
5810 | # error false is not defined |
---|
5811 | #endif |
---|
5812 | #if false |
---|
5813 | # error false is not 0 |
---|
5814 | #endif |
---|
5815 | #ifndef true |
---|
5816 | # error true is not defined |
---|
5817 | #endif |
---|
5818 | #if true != 1 |
---|
5819 | # error true is not 1 |
---|
5820 | #endif |
---|
5821 | #ifndef __bool_true_false_are_defined |
---|
5822 | # error __bool_true_false_are_defined is not defined |
---|
5823 | #endif |
---|
5824 | |
---|
5825 | struct s { _Bool s: 1; _Bool t; } s; |
---|
5826 | |
---|
5827 | char a[true == 1 ? 1 : -1]; |
---|
5828 | char b[false == 0 ? 1 : -1]; |
---|
5829 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
5830 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
5831 | bool e = &s; |
---|
5832 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
5833 | char g[true]; |
---|
5834 | char h[sizeof (_Bool)]; |
---|
5835 | char i[sizeof s.t]; |
---|
5836 | |
---|
5837 | int |
---|
5838 | main () |
---|
5839 | { |
---|
5840 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
5841 | ; |
---|
5842 | return 0; |
---|
5843 | } |
---|
5844 | _ACEOF |
---|
5845 | rm -f conftest.$ac_objext |
---|
5846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5847 | (eval $ac_compile) 2>conftest.er1 |
---|
5848 | ac_status=$? |
---|
5849 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5850 | rm -f conftest.er1 |
---|
5851 | cat conftest.err >&5 |
---|
5852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5853 | (exit $ac_status); } && |
---|
5854 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5855 | || test ! -s conftest.err' |
---|
5856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5857 | (eval $ac_try) 2>&5 |
---|
5858 | ac_status=$? |
---|
5859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5860 | (exit $ac_status); }; } && |
---|
5861 | { ac_try='test -s conftest.$ac_objext' |
---|
5862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5863 | (eval $ac_try) 2>&5 |
---|
5864 | ac_status=$? |
---|
5865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5866 | (exit $ac_status); }; }; then |
---|
5867 | ac_cv_header_stdbool_h=yes |
---|
5868 | else |
---|
5869 | echo "$as_me: failed program was:" >&5 |
---|
5870 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5871 | |
---|
5872 | ac_cv_header_stdbool_h=no |
---|
5873 | fi |
---|
5874 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5875 | fi |
---|
5876 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
5877 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
5878 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
5879 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
5880 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
5881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5882 | else |
---|
5883 | cat >conftest.$ac_ext <<_ACEOF |
---|
5884 | /* confdefs.h. */ |
---|
5885 | _ACEOF |
---|
5886 | cat confdefs.h >>conftest.$ac_ext |
---|
5887 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5888 | /* end confdefs.h. */ |
---|
5889 | $ac_includes_default |
---|
5890 | int |
---|
5891 | main () |
---|
5892 | { |
---|
5893 | if ((_Bool *) 0) |
---|
5894 | return 0; |
---|
5895 | if (sizeof (_Bool)) |
---|
5896 | return 0; |
---|
5897 | ; |
---|
5898 | return 0; |
---|
5899 | } |
---|
5900 | _ACEOF |
---|
5901 | rm -f conftest.$ac_objext |
---|
5902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5903 | (eval $ac_compile) 2>conftest.er1 |
---|
5904 | ac_status=$? |
---|
5905 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5906 | rm -f conftest.er1 |
---|
5907 | cat conftest.err >&5 |
---|
5908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5909 | (exit $ac_status); } && |
---|
5910 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5911 | || test ! -s conftest.err' |
---|
5912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5913 | (eval $ac_try) 2>&5 |
---|
5914 | ac_status=$? |
---|
5915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5916 | (exit $ac_status); }; } && |
---|
5917 | { ac_try='test -s conftest.$ac_objext' |
---|
5918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5919 | (eval $ac_try) 2>&5 |
---|
5920 | ac_status=$? |
---|
5921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5922 | (exit $ac_status); }; }; then |
---|
5923 | ac_cv_type__Bool=yes |
---|
5924 | else |
---|
5925 | echo "$as_me: failed program was:" >&5 |
---|
5926 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5927 | |
---|
5928 | ac_cv_type__Bool=no |
---|
5929 | fi |
---|
5930 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5931 | fi |
---|
5932 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
5933 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
5934 | if test $ac_cv_type__Bool = yes; then |
---|
5935 | |
---|
5936 | cat >>confdefs.h <<_ACEOF |
---|
5937 | #define HAVE__BOOL 1 |
---|
5938 | _ACEOF |
---|
5939 | |
---|
5940 | |
---|
5941 | fi |
---|
5942 | |
---|
5943 | if test $ac_cv_header_stdbool_h = yes; then |
---|
5944 | |
---|
5945 | cat >>confdefs.h <<\_ACEOF |
---|
5946 | #define HAVE_STDBOOL_H 1 |
---|
5947 | _ACEOF |
---|
5948 | |
---|
5949 | fi |
---|
5950 | |
---|
5951 | |
---|
5952 | # Checks for library functions. |
---|
5953 | |
---|
5954 | for ac_header in stdlib.h |
---|
5955 | do |
---|
5956 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5957 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5958 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5959 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5960 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5962 | fi |
---|
5963 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5964 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5965 | else |
---|
5966 | # Is the header compilable? |
---|
5967 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5968 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5969 | cat >conftest.$ac_ext <<_ACEOF |
---|
5970 | /* confdefs.h. */ |
---|
5971 | _ACEOF |
---|
5972 | cat confdefs.h >>conftest.$ac_ext |
---|
5973 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5974 | /* end confdefs.h. */ |
---|
5975 | $ac_includes_default |
---|
5976 | #include <$ac_header> |
---|
5977 | _ACEOF |
---|
5978 | rm -f conftest.$ac_objext |
---|
5979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5980 | (eval $ac_compile) 2>conftest.er1 |
---|
5981 | ac_status=$? |
---|
5982 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5983 | rm -f conftest.er1 |
---|
5984 | cat conftest.err >&5 |
---|
5985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5986 | (exit $ac_status); } && |
---|
5987 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5988 | || test ! -s conftest.err' |
---|
5989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5990 | (eval $ac_try) 2>&5 |
---|
5991 | ac_status=$? |
---|
5992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5993 | (exit $ac_status); }; } && |
---|
5994 | { ac_try='test -s conftest.$ac_objext' |
---|
5995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5996 | (eval $ac_try) 2>&5 |
---|
5997 | ac_status=$? |
---|
5998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5999 | (exit $ac_status); }; }; then |
---|
6000 | ac_header_compiler=yes |
---|
6001 | else |
---|
6002 | echo "$as_me: failed program was:" >&5 |
---|
6003 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6004 | |
---|
6005 | ac_header_compiler=no |
---|
6006 | fi |
---|
6007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6008 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6009 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6010 | |
---|
6011 | # Is the header present? |
---|
6012 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6013 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6014 | cat >conftest.$ac_ext <<_ACEOF |
---|
6015 | /* confdefs.h. */ |
---|
6016 | _ACEOF |
---|
6017 | cat confdefs.h >>conftest.$ac_ext |
---|
6018 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6019 | /* end confdefs.h. */ |
---|
6020 | #include <$ac_header> |
---|
6021 | _ACEOF |
---|
6022 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6023 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6024 | ac_status=$? |
---|
6025 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6026 | rm -f conftest.er1 |
---|
6027 | cat conftest.err >&5 |
---|
6028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6029 | (exit $ac_status); } >/dev/null; then |
---|
6030 | if test -s conftest.err; then |
---|
6031 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6032 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6033 | else |
---|
6034 | ac_cpp_err= |
---|
6035 | fi |
---|
6036 | else |
---|
6037 | ac_cpp_err=yes |
---|
6038 | fi |
---|
6039 | if test -z "$ac_cpp_err"; then |
---|
6040 | ac_header_preproc=yes |
---|
6041 | else |
---|
6042 | echo "$as_me: failed program was:" >&5 |
---|
6043 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6044 | |
---|
6045 | ac_header_preproc=no |
---|
6046 | fi |
---|
6047 | rm -f conftest.err conftest.$ac_ext |
---|
6048 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6049 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6050 | |
---|
6051 | # So? What about this header? |
---|
6052 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6053 | yes:no: ) |
---|
6054 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6055 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6056 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6057 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6058 | ac_header_preproc=yes |
---|
6059 | ;; |
---|
6060 | no:yes:* ) |
---|
6061 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6062 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6063 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6064 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6065 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6066 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6067 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6068 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6069 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6070 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6071 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6072 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6073 | ( |
---|
6074 | cat <<\_ASBOX |
---|
6075 | ## ------------------------------------------- ## |
---|
6076 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
6077 | ## ------------------------------------------- ## |
---|
6078 | _ASBOX |
---|
6079 | ) | |
---|
6080 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6081 | ;; |
---|
6082 | esac |
---|
6083 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6084 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6085 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6087 | else |
---|
6088 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6089 | fi |
---|
6090 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6091 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6092 | |
---|
6093 | fi |
---|
6094 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6095 | cat >>confdefs.h <<_ACEOF |
---|
6096 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6097 | _ACEOF |
---|
6098 | |
---|
6099 | fi |
---|
6100 | |
---|
6101 | done |
---|
6102 | |
---|
6103 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
6104 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
6105 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
6106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6107 | else |
---|
6108 | if test "$cross_compiling" = yes; then |
---|
6109 | ac_cv_func_malloc_0_nonnull=no |
---|
6110 | else |
---|
6111 | cat >conftest.$ac_ext <<_ACEOF |
---|
6112 | /* confdefs.h. */ |
---|
6113 | _ACEOF |
---|
6114 | cat confdefs.h >>conftest.$ac_ext |
---|
6115 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6116 | /* end confdefs.h. */ |
---|
6117 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
6118 | # include <stdlib.h> |
---|
6119 | #else |
---|
6120 | char *malloc (); |
---|
6121 | #endif |
---|
6122 | |
---|
6123 | int |
---|
6124 | main () |
---|
6125 | { |
---|
6126 | exit (malloc (0) ? 0 : 1); |
---|
6127 | ; |
---|
6128 | return 0; |
---|
6129 | } |
---|
6130 | _ACEOF |
---|
6131 | rm -f conftest$ac_exeext |
---|
6132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6133 | (eval $ac_link) 2>&5 |
---|
6134 | ac_status=$? |
---|
6135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6136 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
6137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6138 | (eval $ac_try) 2>&5 |
---|
6139 | ac_status=$? |
---|
6140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6141 | (exit $ac_status); }; }; then |
---|
6142 | ac_cv_func_malloc_0_nonnull=yes |
---|
6143 | else |
---|
6144 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
6145 | echo "$as_me: failed program was:" >&5 |
---|
6146 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6147 | |
---|
6148 | ( exit $ac_status ) |
---|
6149 | ac_cv_func_malloc_0_nonnull=no |
---|
6150 | fi |
---|
6151 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6152 | fi |
---|
6153 | fi |
---|
6154 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
6155 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
6156 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
6157 | |
---|
6158 | cat >>confdefs.h <<\_ACEOF |
---|
6159 | #define HAVE_MALLOC 1 |
---|
6160 | _ACEOF |
---|
6161 | |
---|
6162 | else |
---|
6163 | cat >>confdefs.h <<\_ACEOF |
---|
6164 | #define HAVE_MALLOC 0 |
---|
6165 | _ACEOF |
---|
6166 | |
---|
6167 | case $LIBOBJS in |
---|
6168 | "malloc.$ac_objext" | \ |
---|
6169 | *" malloc.$ac_objext" | \ |
---|
6170 | "malloc.$ac_objext "* | \ |
---|
6171 | *" malloc.$ac_objext "* ) ;; |
---|
6172 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
6173 | esac |
---|
6174 | |
---|
6175 | |
---|
6176 | cat >>confdefs.h <<\_ACEOF |
---|
6177 | #define malloc rpl_malloc |
---|
6178 | _ACEOF |
---|
6179 | |
---|
6180 | fi |
---|
6181 | |
---|
6182 | |
---|
6183 | |
---|
6184 | |
---|
6185 | |
---|
6186 | for ac_func in bzero sqrt |
---|
6187 | do |
---|
6188 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
6189 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
6190 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
6191 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
6192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6193 | else |
---|
6194 | cat >conftest.$ac_ext <<_ACEOF |
---|
6195 | /* confdefs.h. */ |
---|
6196 | _ACEOF |
---|
6197 | cat confdefs.h >>conftest.$ac_ext |
---|
6198 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6199 | /* end confdefs.h. */ |
---|
6200 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
6201 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
6202 | #define $ac_func innocuous_$ac_func |
---|
6203 | |
---|
6204 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6205 | which can conflict with char $ac_func (); below. |
---|
6206 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6207 | <limits.h> exists even on freestanding compilers. */ |
---|
6208 | |
---|
6209 | #ifdef __STDC__ |
---|
6210 | # include <limits.h> |
---|
6211 | #else |
---|
6212 | # include <assert.h> |
---|
6213 | #endif |
---|
6214 | |
---|
6215 | #undef $ac_func |
---|
6216 | |
---|
6217 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6218 | #ifdef __cplusplus |
---|
6219 | extern "C" |
---|
6220 | { |
---|
6221 | #endif |
---|
6222 | /* We use char because int might match the return type of a gcc2 |
---|
6223 | builtin and then its argument prototype would still apply. */ |
---|
6224 | char $ac_func (); |
---|
6225 | /* The GNU C library defines this for functions which it implements |
---|
6226 | to always fail with ENOSYS. Some functions are actually named |
---|
6227 | something starting with __ and the normal name is an alias. */ |
---|
6228 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
6229 | choke me |
---|
6230 | #else |
---|
6231 | char (*f) () = $ac_func; |
---|
6232 | #endif |
---|
6233 | #ifdef __cplusplus |
---|
6234 | } |
---|
6235 | #endif |
---|
6236 | |
---|
6237 | int |
---|
6238 | main () |
---|
6239 | { |
---|
6240 | return f != $ac_func; |
---|
6241 | ; |
---|
6242 | return 0; |
---|
6243 | } |
---|
6244 | _ACEOF |
---|
6245 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6247 | (eval $ac_link) 2>conftest.er1 |
---|
6248 | ac_status=$? |
---|
6249 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6250 | rm -f conftest.er1 |
---|
6251 | cat conftest.err >&5 |
---|
6252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6253 | (exit $ac_status); } && |
---|
6254 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6255 | || test ! -s conftest.err' |
---|
6256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6257 | (eval $ac_try) 2>&5 |
---|
6258 | ac_status=$? |
---|
6259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6260 | (exit $ac_status); }; } && |
---|
6261 | { ac_try='test -s conftest$ac_exeext' |
---|
6262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6263 | (eval $ac_try) 2>&5 |
---|
6264 | ac_status=$? |
---|
6265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6266 | (exit $ac_status); }; }; then |
---|
6267 | eval "$as_ac_var=yes" |
---|
6268 | else |
---|
6269 | echo "$as_me: failed program was:" >&5 |
---|
6270 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6271 | |
---|
6272 | eval "$as_ac_var=no" |
---|
6273 | fi |
---|
6274 | rm -f conftest.err conftest.$ac_objext \ |
---|
6275 | conftest$ac_exeext conftest.$ac_ext |
---|
6276 | fi |
---|
6277 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
6278 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
6279 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
6280 | cat >>confdefs.h <<_ACEOF |
---|
6281 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
6282 | _ACEOF |
---|
6283 | |
---|
6284 | fi |
---|
6285 | done |
---|
6286 | |
---|
6287 | |
---|
6288 | ac_config_files="$ac_config_files Makefile console/Makefile gui/Makefile src/Makefile" |
---|
6289 | |
---|
6290 | cat >confcache <<\_ACEOF |
---|
6291 | # This file is a shell script that caches the results of configure |
---|
6292 | # tests run on this system so they can be shared between configure |
---|
6293 | # scripts and configure runs, see configure's option --config-cache. |
---|
6294 | # It is not useful on other systems. If it contains results you don't |
---|
6295 | # want to keep, you may remove or edit it. |
---|
6296 | # |
---|
6297 | # config.status only pays attention to the cache file if you give it |
---|
6298 | # the --recheck option to rerun configure. |
---|
6299 | # |
---|
6300 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
6301 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
6302 | # following values. |
---|
6303 | |
---|
6304 | _ACEOF |
---|
6305 | |
---|
6306 | # The following way of writing the cache mishandles newlines in values, |
---|
6307 | # but we know of no workaround that is simple, portable, and efficient. |
---|
6308 | # So, don't put newlines in cache variables' values. |
---|
6309 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
6310 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
6311 | { |
---|
6312 | (set) 2>&1 | |
---|
6313 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
6314 | *ac_space=\ *) |
---|
6315 | # `set' does not quote correctly, so add quotes (double-quote |
---|
6316 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
6317 | sed -n \ |
---|
6318 | "s/'/'\\\\''/g; |
---|
6319 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
6320 | ;; |
---|
6321 | *) |
---|
6322 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
6323 | sed -n \ |
---|
6324 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
6325 | ;; |
---|
6326 | esac; |
---|
6327 | } | |
---|
6328 | sed ' |
---|
6329 | t clear |
---|
6330 | : clear |
---|
6331 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
6332 | t end |
---|
6333 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
6334 | : end' >>confcache |
---|
6335 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
6336 | if test -w $cache_file; then |
---|
6337 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
6338 | cat confcache >$cache_file |
---|
6339 | else |
---|
6340 | echo "not updating unwritable cache $cache_file" |
---|
6341 | fi |
---|
6342 | fi |
---|
6343 | rm -f confcache |
---|
6344 | |
---|
6345 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
6346 | # Let make expand exec_prefix. |
---|
6347 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
6348 | |
---|
6349 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
6350 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
6351 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
6352 | # (actually we leave an empty line to preserve line numbers). |
---|
6353 | if test "x$srcdir" = x.; then |
---|
6354 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
6355 | s/:*\$(srcdir):*/:/; |
---|
6356 | s/:*\${srcdir}:*/:/; |
---|
6357 | s/:*@srcdir@:*/:/; |
---|
6358 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
6359 | s/:*$//; |
---|
6360 | s/^[^=]*=[ ]*$//; |
---|
6361 | }' |
---|
6362 | fi |
---|
6363 | |
---|
6364 | DEFS=-DHAVE_CONFIG_H |
---|
6365 | |
---|
6366 | ac_libobjs= |
---|
6367 | ac_ltlibobjs= |
---|
6368 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
6369 | # 1. Remove the extension, and $U if already installed. |
---|
6370 | ac_i=`echo "$ac_i" | |
---|
6371 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
6372 | # 2. Add them. |
---|
6373 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
6374 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
6375 | done |
---|
6376 | LIBOBJS=$ac_libobjs |
---|
6377 | |
---|
6378 | LTLIBOBJS=$ac_ltlibobjs |
---|
6379 | |
---|
6380 | |
---|
6381 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
6382 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
6383 | Usually this means the macro was only invoked conditionally." >&5 |
---|
6384 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
6385 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
6386 | { (exit 1); exit 1; }; } |
---|
6387 | fi |
---|
6388 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
6389 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
6390 | Usually this means the macro was only invoked conditionally." >&5 |
---|
6391 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
6392 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
6393 | { (exit 1); exit 1; }; } |
---|
6394 | fi |
---|
6395 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
6396 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
6397 | Usually this means the macro was only invoked conditionally." >&5 |
---|
6398 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
6399 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
6400 | { (exit 1); exit 1; }; } |
---|
6401 | fi |
---|
6402 | |
---|
6403 | : ${CONFIG_STATUS=./config.status} |
---|
6404 | ac_clean_files_save=$ac_clean_files |
---|
6405 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
6406 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
6407 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
6408 | cat >$CONFIG_STATUS <<_ACEOF |
---|
6409 | #! $SHELL |
---|
6410 | # Generated by $as_me. |
---|
6411 | # Run this file to recreate the current configuration. |
---|
6412 | # Compiler output produced by configure, useful for debugging |
---|
6413 | # configure, is in config.log if it exists. |
---|
6414 | |
---|
6415 | debug=false |
---|
6416 | ac_cs_recheck=false |
---|
6417 | ac_cs_silent=false |
---|
6418 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
6419 | _ACEOF |
---|
6420 | |
---|
6421 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6422 | ## --------------------- ## |
---|
6423 | ## M4sh Initialization. ## |
---|
6424 | ## --------------------- ## |
---|
6425 | |
---|
6426 | # Be Bourne compatible |
---|
6427 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
6428 | emulate sh |
---|
6429 | NULLCMD=: |
---|
6430 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
6431 | # is contrary to our usage. Disable this feature. |
---|
6432 | alias -g '${1+"$@"}'='"$@"' |
---|
6433 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
6434 | set -o posix |
---|
6435 | fi |
---|
6436 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
6437 | |
---|
6438 | # Support unset when possible. |
---|
6439 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
6440 | as_unset=unset |
---|
6441 | else |
---|
6442 | as_unset=false |
---|
6443 | fi |
---|
6444 | |
---|
6445 | |
---|
6446 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
6447 | $as_unset ENV MAIL MAILPATH |
---|
6448 | PS1='$ ' |
---|
6449 | PS2='> ' |
---|
6450 | PS4='+ ' |
---|
6451 | |
---|
6452 | # NLS nuisances. |
---|
6453 | for as_var in \ |
---|
6454 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
6455 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
6456 | LC_TELEPHONE LC_TIME |
---|
6457 | do |
---|
6458 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
6459 | eval $as_var=C; export $as_var |
---|
6460 | else |
---|
6461 | $as_unset $as_var |
---|
6462 | fi |
---|
6463 | done |
---|
6464 | |
---|
6465 | # Required to use basename. |
---|
6466 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
6467 | as_expr=expr |
---|
6468 | else |
---|
6469 | as_expr=false |
---|
6470 | fi |
---|
6471 | |
---|
6472 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
6473 | as_basename=basename |
---|
6474 | else |
---|
6475 | as_basename=false |
---|
6476 | fi |
---|
6477 | |
---|
6478 | |
---|
6479 | # Name of the executable. |
---|
6480 | as_me=`$as_basename "$0" || |
---|
6481 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
6482 | X"$0" : 'X\(//\)$' \| \ |
---|
6483 | X"$0" : 'X\(/\)$' \| \ |
---|
6484 | . : '\(.\)' 2>/dev/null || |
---|
6485 | echo X/"$0" | |
---|
6486 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
6487 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
6488 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
6489 | s/.*/./; q'` |
---|
6490 | |
---|
6491 | |
---|
6492 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
6493 | # Avoid depending upon Character Ranges. |
---|
6494 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
6495 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
6496 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
6497 | as_cr_digits='0123456789' |
---|
6498 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
6499 | |
---|
6500 | # The user is always right. |
---|
6501 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
6502 | echo "#! /bin/sh" >conf$$.sh |
---|
6503 | echo "exit 0" >>conf$$.sh |
---|
6504 | chmod +x conf$$.sh |
---|
6505 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
6506 | PATH_SEPARATOR=';' |
---|
6507 | else |
---|
6508 | PATH_SEPARATOR=: |
---|
6509 | fi |
---|
6510 | rm -f conf$$.sh |
---|
6511 | fi |
---|
6512 | |
---|
6513 | |
---|
6514 | as_lineno_1=$LINENO |
---|
6515 | as_lineno_2=$LINENO |
---|
6516 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
6517 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
6518 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
6519 | # Find who we are. Look in the path if we contain no path at all |
---|
6520 | # relative or not. |
---|
6521 | case $0 in |
---|
6522 | *[\\/]* ) as_myself=$0 ;; |
---|
6523 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6524 | for as_dir in $PATH |
---|
6525 | do |
---|
6526 | IFS=$as_save_IFS |
---|
6527 | test -z "$as_dir" && as_dir=. |
---|
6528 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
6529 | done |
---|
6530 | |
---|
6531 | ;; |
---|
6532 | esac |
---|
6533 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
6534 | # in which case we are not to be found in the path. |
---|
6535 | if test "x$as_myself" = x; then |
---|
6536 | as_myself=$0 |
---|
6537 | fi |
---|
6538 | if test ! -f "$as_myself"; then |
---|
6539 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
6540 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
6541 | { (exit 1); exit 1; }; } |
---|
6542 | fi |
---|
6543 | case $CONFIG_SHELL in |
---|
6544 | '') |
---|
6545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6546 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
6547 | do |
---|
6548 | IFS=$as_save_IFS |
---|
6549 | test -z "$as_dir" && as_dir=. |
---|
6550 | for as_base in sh bash ksh sh5; do |
---|
6551 | case $as_dir in |
---|
6552 | /*) |
---|
6553 | if ("$as_dir/$as_base" -c ' |
---|
6554 | as_lineno_1=$LINENO |
---|
6555 | as_lineno_2=$LINENO |
---|
6556 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
6557 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
6558 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
6559 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
6560 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
6561 | CONFIG_SHELL=$as_dir/$as_base |
---|
6562 | export CONFIG_SHELL |
---|
6563 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
6564 | fi;; |
---|
6565 | esac |
---|
6566 | done |
---|
6567 | done |
---|
6568 | ;; |
---|
6569 | esac |
---|
6570 | |
---|
6571 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
6572 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
6573 | # line-number line before each line; the second 'sed' does the real |
---|
6574 | # work. The second script uses 'N' to pair each line-number line |
---|
6575 | # with the numbered line, and appends trailing '-' during |
---|
6576 | # substitution so that $LINENO is not a special case at line end. |
---|
6577 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
6578 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
6579 | sed '=' <$as_myself | |
---|
6580 | sed ' |
---|
6581 | N |
---|
6582 | s,$,-, |
---|
6583 | : loop |
---|
6584 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
6585 | t loop |
---|
6586 | s,-$,, |
---|
6587 | s,^['$as_cr_digits']*\n,, |
---|
6588 | ' >$as_me.lineno && |
---|
6589 | chmod +x $as_me.lineno || |
---|
6590 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
6591 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
6592 | { (exit 1); exit 1; }; } |
---|
6593 | |
---|
6594 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
6595 | # (the dirname of $[0] is not the place where we might find the |
---|
6596 | # original and so on. Autoconf is especially sensible to this). |
---|
6597 | . ./$as_me.lineno |
---|
6598 | # Exit status is that of the last command. |
---|
6599 | exit |
---|
6600 | } |
---|
6601 | |
---|
6602 | |
---|
6603 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
6604 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
6605 | ' ECHO_T=' ' ;; |
---|
6606 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
6607 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
6608 | esac |
---|
6609 | |
---|
6610 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
6611 | as_expr=expr |
---|
6612 | else |
---|
6613 | as_expr=false |
---|
6614 | fi |
---|
6615 | |
---|
6616 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6617 | echo >conf$$.file |
---|
6618 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
6619 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
6620 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
6621 | if test -f conf$$.exe; then |
---|
6622 | # Don't use ln at all; we don't have any links |
---|
6623 | as_ln_s='cp -p' |
---|
6624 | else |
---|
6625 | as_ln_s='ln -s' |
---|
6626 | fi |
---|
6627 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
6628 | as_ln_s=ln |
---|
6629 | else |
---|
6630 | as_ln_s='cp -p' |
---|
6631 | fi |
---|
6632 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6633 | |
---|
6634 | if mkdir -p . 2>/dev/null; then |
---|
6635 | as_mkdir_p=: |
---|
6636 | else |
---|
6637 | test -d ./-p && rmdir ./-p |
---|
6638 | as_mkdir_p=false |
---|
6639 | fi |
---|
6640 | |
---|
6641 | as_executable_p="test -f" |
---|
6642 | |
---|
6643 | # Sed expression to map a string onto a valid CPP name. |
---|
6644 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
6645 | |
---|
6646 | # Sed expression to map a string onto a valid variable name. |
---|
6647 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
6648 | |
---|
6649 | |
---|
6650 | # IFS |
---|
6651 | # We need space, tab and new line, in precisely that order. |
---|
6652 | as_nl=' |
---|
6653 | ' |
---|
6654 | IFS=" $as_nl" |
---|
6655 | |
---|
6656 | # CDPATH. |
---|
6657 | $as_unset CDPATH |
---|
6658 | |
---|
6659 | exec 6>&1 |
---|
6660 | |
---|
6661 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
6662 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
6663 | # values after options handling. Logging --version etc. is OK. |
---|
6664 | exec 5>>config.log |
---|
6665 | { |
---|
6666 | echo |
---|
6667 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
6668 | ## Running $as_me. ## |
---|
6669 | _ASBOX |
---|
6670 | } >&5 |
---|
6671 | cat >&5 <<_CSEOF |
---|
6672 | |
---|
6673 | This file was extended by orxonox $as_me 0.1-pre-alpha, which was |
---|
6674 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
6675 | |
---|
6676 | CONFIG_FILES = $CONFIG_FILES |
---|
6677 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
6678 | CONFIG_LINKS = $CONFIG_LINKS |
---|
6679 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
6680 | $ $0 $@ |
---|
6681 | |
---|
6682 | _CSEOF |
---|
6683 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
6684 | echo >&5 |
---|
6685 | _ACEOF |
---|
6686 | |
---|
6687 | # Files that config.status was made for. |
---|
6688 | if test -n "$ac_config_files"; then |
---|
6689 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
6690 | fi |
---|
6691 | |
---|
6692 | if test -n "$ac_config_headers"; then |
---|
6693 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
6694 | fi |
---|
6695 | |
---|
6696 | if test -n "$ac_config_links"; then |
---|
6697 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
6698 | fi |
---|
6699 | |
---|
6700 | if test -n "$ac_config_commands"; then |
---|
6701 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
6702 | fi |
---|
6703 | |
---|
6704 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6705 | |
---|
6706 | ac_cs_usage="\ |
---|
6707 | \`$as_me' instantiates files from templates according to the |
---|
6708 | current configuration. |
---|
6709 | |
---|
6710 | Usage: $0 [OPTIONS] [FILE]... |
---|
6711 | |
---|
6712 | -h, --help print this help, then exit |
---|
6713 | -V, --version print version number, then exit |
---|
6714 | -q, --quiet do not print progress messages |
---|
6715 | -d, --debug don't remove temporary files |
---|
6716 | --recheck update $as_me by reconfiguring in the same conditions |
---|
6717 | --file=FILE[:TEMPLATE] |
---|
6718 | instantiate the configuration file FILE |
---|
6719 | --header=FILE[:TEMPLATE] |
---|
6720 | instantiate the configuration header FILE |
---|
6721 | |
---|
6722 | Configuration files: |
---|
6723 | $config_files |
---|
6724 | |
---|
6725 | Configuration headers: |
---|
6726 | $config_headers |
---|
6727 | |
---|
6728 | Configuration commands: |
---|
6729 | $config_commands |
---|
6730 | |
---|
6731 | Report bugs to <bug-autoconf@gnu.org>." |
---|
6732 | _ACEOF |
---|
6733 | |
---|
6734 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6735 | ac_cs_version="\\ |
---|
6736 | orxonox config.status 0.1-pre-alpha |
---|
6737 | configured by $0, generated by GNU Autoconf 2.59, |
---|
6738 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
6739 | |
---|
6740 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
6741 | This config.status script is free software; the Free Software Foundation |
---|
6742 | gives unlimited permission to copy, distribute and modify it." |
---|
6743 | srcdir=$srcdir |
---|
6744 | INSTALL="$INSTALL" |
---|
6745 | _ACEOF |
---|
6746 | |
---|
6747 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6748 | # If no file are specified by the user, then we need to provide default |
---|
6749 | # value. By we need to know if files were specified by the user. |
---|
6750 | ac_need_defaults=: |
---|
6751 | while test $# != 0 |
---|
6752 | do |
---|
6753 | case $1 in |
---|
6754 | --*=*) |
---|
6755 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
6756 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
6757 | ac_shift=: |
---|
6758 | ;; |
---|
6759 | -*) |
---|
6760 | ac_option=$1 |
---|
6761 | ac_optarg=$2 |
---|
6762 | ac_shift=shift |
---|
6763 | ;; |
---|
6764 | *) # This is not an option, so the user has probably given explicit |
---|
6765 | # arguments. |
---|
6766 | ac_option=$1 |
---|
6767 | ac_need_defaults=false;; |
---|
6768 | esac |
---|
6769 | |
---|
6770 | case $ac_option in |
---|
6771 | # Handling of the options. |
---|
6772 | _ACEOF |
---|
6773 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6774 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
6775 | ac_cs_recheck=: ;; |
---|
6776 | --version | --vers* | -V ) |
---|
6777 | echo "$ac_cs_version"; exit 0 ;; |
---|
6778 | --he | --h) |
---|
6779 | # Conflict between --help and --header |
---|
6780 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
6781 | Try \`$0 --help' for more information." >&5 |
---|
6782 | echo "$as_me: error: ambiguous option: $1 |
---|
6783 | Try \`$0 --help' for more information." >&2;} |
---|
6784 | { (exit 1); exit 1; }; };; |
---|
6785 | --help | --hel | -h ) |
---|
6786 | echo "$ac_cs_usage"; exit 0 ;; |
---|
6787 | --debug | --d* | -d ) |
---|
6788 | debug=: ;; |
---|
6789 | --file | --fil | --fi | --f ) |
---|
6790 | $ac_shift |
---|
6791 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
6792 | ac_need_defaults=false;; |
---|
6793 | --header | --heade | --head | --hea ) |
---|
6794 | $ac_shift |
---|
6795 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
6796 | ac_need_defaults=false;; |
---|
6797 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
6798 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
6799 | ac_cs_silent=: ;; |
---|
6800 | |
---|
6801 | # This is an error. |
---|
6802 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
6803 | Try \`$0 --help' for more information." >&5 |
---|
6804 | echo "$as_me: error: unrecognized option: $1 |
---|
6805 | Try \`$0 --help' for more information." >&2;} |
---|
6806 | { (exit 1); exit 1; }; } ;; |
---|
6807 | |
---|
6808 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
6809 | |
---|
6810 | esac |
---|
6811 | shift |
---|
6812 | done |
---|
6813 | |
---|
6814 | ac_configure_extra_args= |
---|
6815 | |
---|
6816 | if $ac_cs_silent; then |
---|
6817 | exec 6>/dev/null |
---|
6818 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
6819 | fi |
---|
6820 | |
---|
6821 | _ACEOF |
---|
6822 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6823 | if \$ac_cs_recheck; then |
---|
6824 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
6825 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
6826 | fi |
---|
6827 | |
---|
6828 | _ACEOF |
---|
6829 | |
---|
6830 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6831 | # |
---|
6832 | # INIT-COMMANDS section. |
---|
6833 | # |
---|
6834 | |
---|
6835 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
6836 | |
---|
6837 | _ACEOF |
---|
6838 | |
---|
6839 | |
---|
6840 | |
---|
6841 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6842 | for ac_config_target in $ac_config_targets |
---|
6843 | do |
---|
6844 | case "$ac_config_target" in |
---|
6845 | # Handling of arguments. |
---|
6846 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
6847 | "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;; |
---|
6848 | "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;; |
---|
6849 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
6850 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
6851 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
6852 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
6853 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
6854 | { (exit 1); exit 1; }; };; |
---|
6855 | esac |
---|
6856 | done |
---|
6857 | |
---|
6858 | # If the user did not use the arguments to specify the items to instantiate, |
---|
6859 | # then the envvar interface is used. Set only those that are not. |
---|
6860 | # We use the long form for the default assignment because of an extremely |
---|
6861 | # bizarre bug on SunOS 4.1.3. |
---|
6862 | if $ac_need_defaults; then |
---|
6863 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
6864 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
6865 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
6866 | fi |
---|
6867 | |
---|
6868 | # Have a temporary directory for convenience. Make it in the build tree |
---|
6869 | # simply because there is no reason to put it here, and in addition, |
---|
6870 | # creating and moving files from /tmp can sometimes cause problems. |
---|
6871 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
6872 | $debug || |
---|
6873 | { |
---|
6874 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
6875 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
6876 | } |
---|
6877 | |
---|
6878 | # Create a (secure) tmp directory for tmp files. |
---|
6879 | |
---|
6880 | { |
---|
6881 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
6882 | test -n "$tmp" && test -d "$tmp" |
---|
6883 | } || |
---|
6884 | { |
---|
6885 | tmp=./confstat$$-$RANDOM |
---|
6886 | (umask 077 && mkdir $tmp) |
---|
6887 | } || |
---|
6888 | { |
---|
6889 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
6890 | { (exit 1); exit 1; } |
---|
6891 | } |
---|
6892 | |
---|
6893 | _ACEOF |
---|
6894 | |
---|
6895 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6896 | |
---|
6897 | # |
---|
6898 | # CONFIG_FILES section. |
---|
6899 | # |
---|
6900 | |
---|
6901 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
6902 | # This happens for instance when ./config.status config.h |
---|
6903 | if test -n "\$CONFIG_FILES"; then |
---|
6904 | # Protect against being on the right side of a sed subst in config.status. |
---|
6905 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
6906 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
6907 | s,@SHELL@,$SHELL,;t t |
---|
6908 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
6909 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
6910 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
6911 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
6912 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
6913 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
6914 | s,@exec_prefix@,$exec_prefix,;t t |
---|
6915 | s,@prefix@,$prefix,;t t |
---|
6916 | s,@program_transform_name@,$program_transform_name,;t t |
---|
6917 | s,@bindir@,$bindir,;t t |
---|
6918 | s,@sbindir@,$sbindir,;t t |
---|
6919 | s,@libexecdir@,$libexecdir,;t t |
---|
6920 | s,@datadir@,$datadir,;t t |
---|
6921 | s,@sysconfdir@,$sysconfdir,;t t |
---|
6922 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
6923 | s,@localstatedir@,$localstatedir,;t t |
---|
6924 | s,@libdir@,$libdir,;t t |
---|
6925 | s,@includedir@,$includedir,;t t |
---|
6926 | s,@oldincludedir@,$oldincludedir,;t t |
---|
6927 | s,@infodir@,$infodir,;t t |
---|
6928 | s,@mandir@,$mandir,;t t |
---|
6929 | s,@build_alias@,$build_alias,;t t |
---|
6930 | s,@host_alias@,$host_alias,;t t |
---|
6931 | s,@target_alias@,$target_alias,;t t |
---|
6932 | s,@DEFS@,$DEFS,;t t |
---|
6933 | s,@ECHO_C@,$ECHO_C,;t t |
---|
6934 | s,@ECHO_N@,$ECHO_N,;t t |
---|
6935 | s,@ECHO_T@,$ECHO_T,;t t |
---|
6936 | s,@LIBS@,$LIBS,;t t |
---|
6937 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
6938 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
6939 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
6940 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
6941 | s,@PACKAGE@,$PACKAGE,;t t |
---|
6942 | s,@VERSION@,$VERSION,;t t |
---|
6943 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
6944 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
6945 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
6946 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
6947 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
6948 | s,@AMTAR@,$AMTAR,;t t |
---|
6949 | s,@install_sh@,$install_sh,;t t |
---|
6950 | s,@STRIP@,$STRIP,;t t |
---|
6951 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
6952 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
6953 | s,@AWK@,$AWK,;t t |
---|
6954 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
6955 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
6956 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
6957 | s,@CXX@,$CXX,;t t |
---|
6958 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
6959 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
6960 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
6961 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
6962 | s,@EXEEXT@,$EXEEXT,;t t |
---|
6963 | s,@OBJEXT@,$OBJEXT,;t t |
---|
6964 | s,@DEPDIR@,$DEPDIR,;t t |
---|
6965 | s,@am__include@,$am__include,;t t |
---|
6966 | s,@am__quote@,$am__quote,;t t |
---|
6967 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
6968 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
6969 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
6970 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
6971 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
6972 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
6973 | s,@CC@,$CC,;t t |
---|
6974 | s,@CFLAGS@,$CFLAGS,;t t |
---|
6975 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
6976 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
6977 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
6978 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
6979 | s,@CPP@,$CPP,;t t |
---|
6980 | s,@EGREP@,$EGREP,;t t |
---|
6981 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
6982 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
6983 | CEOF |
---|
6984 | |
---|
6985 | _ACEOF |
---|
6986 | |
---|
6987 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6988 | # Split the substitutions into bite-sized pieces for seds with |
---|
6989 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
6990 | ac_max_sed_lines=48 |
---|
6991 | ac_sed_frag=1 # Number of current file. |
---|
6992 | ac_beg=1 # First line for current file. |
---|
6993 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
6994 | ac_more_lines=: |
---|
6995 | ac_sed_cmds= |
---|
6996 | while $ac_more_lines; do |
---|
6997 | if test $ac_beg -gt 1; then |
---|
6998 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
6999 | else |
---|
7000 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
7001 | fi |
---|
7002 | if test ! -s $tmp/subs.frag; then |
---|
7003 | ac_more_lines=false |
---|
7004 | else |
---|
7005 | # The purpose of the label and of the branching condition is to |
---|
7006 | # speed up the sed processing (if there are no `@' at all, there |
---|
7007 | # is no need to browse any of the substitutions). |
---|
7008 | # These are the two extra sed commands mentioned above. |
---|
7009 | (echo ':t |
---|
7010 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
7011 | if test -z "$ac_sed_cmds"; then |
---|
7012 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
7013 | else |
---|
7014 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
7015 | fi |
---|
7016 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
7017 | ac_beg=$ac_end |
---|
7018 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
7019 | fi |
---|
7020 | done |
---|
7021 | if test -z "$ac_sed_cmds"; then |
---|
7022 | ac_sed_cmds=cat |
---|
7023 | fi |
---|
7024 | fi # test -n "$CONFIG_FILES" |
---|
7025 | |
---|
7026 | _ACEOF |
---|
7027 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7028 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
7029 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
7030 | case $ac_file in |
---|
7031 | - | *:- | *:-:* ) # input from stdin |
---|
7032 | cat >$tmp/stdin |
---|
7033 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7034 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
7035 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7036 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
7037 | * ) ac_file_in=$ac_file.in ;; |
---|
7038 | esac |
---|
7039 | |
---|
7040 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
7041 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
7042 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7043 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
7044 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
7045 | X"$ac_file" : 'X\(/\)' \| \ |
---|
7046 | . : '\(.\)' 2>/dev/null || |
---|
7047 | echo X"$ac_file" | |
---|
7048 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7049 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7050 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7051 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7052 | s/.*/./; q'` |
---|
7053 | { if $as_mkdir_p; then |
---|
7054 | mkdir -p "$ac_dir" |
---|
7055 | else |
---|
7056 | as_dir="$ac_dir" |
---|
7057 | as_dirs= |
---|
7058 | while test ! -d "$as_dir"; do |
---|
7059 | as_dirs="$as_dir $as_dirs" |
---|
7060 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
7061 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7062 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
7063 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
7064 | X"$as_dir" : 'X\(/\)' \| \ |
---|
7065 | . : '\(.\)' 2>/dev/null || |
---|
7066 | echo X"$as_dir" | |
---|
7067 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7068 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7069 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7070 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7071 | s/.*/./; q'` |
---|
7072 | done |
---|
7073 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
7074 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
7075 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
7076 | { (exit 1); exit 1; }; }; } |
---|
7077 | |
---|
7078 | ac_builddir=. |
---|
7079 | |
---|
7080 | if test "$ac_dir" != .; then |
---|
7081 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
7082 | # A "../" for each directory in $ac_dir_suffix. |
---|
7083 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
7084 | else |
---|
7085 | ac_dir_suffix= ac_top_builddir= |
---|
7086 | fi |
---|
7087 | |
---|
7088 | case $srcdir in |
---|
7089 | .) # No --srcdir option. We are building in place. |
---|
7090 | ac_srcdir=. |
---|
7091 | if test -z "$ac_top_builddir"; then |
---|
7092 | ac_top_srcdir=. |
---|
7093 | else |
---|
7094 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
7095 | fi ;; |
---|
7096 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
7097 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
7098 | ac_top_srcdir=$srcdir ;; |
---|
7099 | *) # Relative path. |
---|
7100 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
7101 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
7102 | esac |
---|
7103 | |
---|
7104 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
7105 | # the directories may not exist. |
---|
7106 | case `pwd` in |
---|
7107 | .) ac_abs_builddir="$ac_dir";; |
---|
7108 | *) |
---|
7109 | case "$ac_dir" in |
---|
7110 | .) ac_abs_builddir=`pwd`;; |
---|
7111 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
7112 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
7113 | esac;; |
---|
7114 | esac |
---|
7115 | case $ac_abs_builddir in |
---|
7116 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
7117 | *) |
---|
7118 | case ${ac_top_builddir}. in |
---|
7119 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
7120 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
7121 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
7122 | esac;; |
---|
7123 | esac |
---|
7124 | case $ac_abs_builddir in |
---|
7125 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
7126 | *) |
---|
7127 | case $ac_srcdir in |
---|
7128 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
7129 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
7130 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
7131 | esac;; |
---|
7132 | esac |
---|
7133 | case $ac_abs_builddir in |
---|
7134 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
7135 | *) |
---|
7136 | case $ac_top_srcdir in |
---|
7137 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
7138 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
7139 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
7140 | esac;; |
---|
7141 | esac |
---|
7142 | |
---|
7143 | |
---|
7144 | case $INSTALL in |
---|
7145 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
7146 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
7147 | esac |
---|
7148 | |
---|
7149 | if test x"$ac_file" != x-; then |
---|
7150 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
7151 | echo "$as_me: creating $ac_file" >&6;} |
---|
7152 | rm -f "$ac_file" |
---|
7153 | fi |
---|
7154 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
7155 | # use $as_me), people would be surprised to read: |
---|
7156 | # /* config.h. Generated by config.status. */ |
---|
7157 | if test x"$ac_file" = x-; then |
---|
7158 | configure_input= |
---|
7159 | else |
---|
7160 | configure_input="$ac_file. " |
---|
7161 | fi |
---|
7162 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
7163 | sed 's,.*/,,'` by configure." |
---|
7164 | |
---|
7165 | # First look for the input files in the build tree, otherwise in the |
---|
7166 | # src tree. |
---|
7167 | ac_file_inputs=`IFS=: |
---|
7168 | for f in $ac_file_in; do |
---|
7169 | case $f in |
---|
7170 | -) echo $tmp/stdin ;; |
---|
7171 | [\\/$]*) |
---|
7172 | # Absolute (can't be DOS-style, as IFS=:) |
---|
7173 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
7174 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
7175 | { (exit 1); exit 1; }; } |
---|
7176 | echo "$f";; |
---|
7177 | *) # Relative |
---|
7178 | if test -f "$f"; then |
---|
7179 | # Build tree |
---|
7180 | echo "$f" |
---|
7181 | elif test -f "$srcdir/$f"; then |
---|
7182 | # Source tree |
---|
7183 | echo "$srcdir/$f" |
---|
7184 | else |
---|
7185 | # /dev/null tree |
---|
7186 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
7187 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
7188 | { (exit 1); exit 1; }; } |
---|
7189 | fi;; |
---|
7190 | esac |
---|
7191 | done` || { (exit 1); exit 1; } |
---|
7192 | _ACEOF |
---|
7193 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
7194 | sed "$ac_vpsub |
---|
7195 | $extrasub |
---|
7196 | _ACEOF |
---|
7197 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7198 | :t |
---|
7199 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
7200 | s,@configure_input@,$configure_input,;t t |
---|
7201 | s,@srcdir@,$ac_srcdir,;t t |
---|
7202 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
7203 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
7204 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
7205 | s,@builddir@,$ac_builddir,;t t |
---|
7206 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
7207 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
7208 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
7209 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
7210 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
7211 | rm -f $tmp/stdin |
---|
7212 | if test x"$ac_file" != x-; then |
---|
7213 | mv $tmp/out $ac_file |
---|
7214 | else |
---|
7215 | cat $tmp/out |
---|
7216 | rm -f $tmp/out |
---|
7217 | fi |
---|
7218 | |
---|
7219 | done |
---|
7220 | _ACEOF |
---|
7221 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7222 | |
---|
7223 | # |
---|
7224 | # CONFIG_HEADER section. |
---|
7225 | # |
---|
7226 | |
---|
7227 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
7228 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
7229 | # |
---|
7230 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
7231 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
7232 | ac_dB='[ ].*$,\1#\2' |
---|
7233 | ac_dC=' ' |
---|
7234 | ac_dD=',;t' |
---|
7235 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
7236 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
7237 | ac_uB='$,\1#\2define\3' |
---|
7238 | ac_uC=' ' |
---|
7239 | ac_uD=',;t' |
---|
7240 | |
---|
7241 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
7242 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
7243 | case $ac_file in |
---|
7244 | - | *:- | *:-:* ) # input from stdin |
---|
7245 | cat >$tmp/stdin |
---|
7246 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7247 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
7248 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7249 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
7250 | * ) ac_file_in=$ac_file.in ;; |
---|
7251 | esac |
---|
7252 | |
---|
7253 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
7254 | echo "$as_me: creating $ac_file" >&6;} |
---|
7255 | |
---|
7256 | # First look for the input files in the build tree, otherwise in the |
---|
7257 | # src tree. |
---|
7258 | ac_file_inputs=`IFS=: |
---|
7259 | for f in $ac_file_in; do |
---|
7260 | case $f in |
---|
7261 | -) echo $tmp/stdin ;; |
---|
7262 | [\\/$]*) |
---|
7263 | # Absolute (can't be DOS-style, as IFS=:) |
---|
7264 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
7265 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
7266 | { (exit 1); exit 1; }; } |
---|
7267 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
7268 | echo "$f";; |
---|
7269 | *) # Relative |
---|
7270 | if test -f "$f"; then |
---|
7271 | # Build tree |
---|
7272 | echo "$f" |
---|
7273 | elif test -f "$srcdir/$f"; then |
---|
7274 | # Source tree |
---|
7275 | echo "$srcdir/$f" |
---|
7276 | else |
---|
7277 | # /dev/null tree |
---|
7278 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
7279 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
7280 | { (exit 1); exit 1; }; } |
---|
7281 | fi;; |
---|
7282 | esac |
---|
7283 | done` || { (exit 1); exit 1; } |
---|
7284 | # Remove the trailing spaces. |
---|
7285 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
7286 | |
---|
7287 | _ACEOF |
---|
7288 | |
---|
7289 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
7290 | # `conftest.undefs', that substitutes the proper values into |
---|
7291 | # config.h.in to produce config.h. The first handles `#define' |
---|
7292 | # templates, and the second `#undef' templates. |
---|
7293 | # And first: Protect against being on the right side of a sed subst in |
---|
7294 | # config.status. Protect against being in an unquoted here document |
---|
7295 | # in config.status. |
---|
7296 | rm -f conftest.defines conftest.undefs |
---|
7297 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
7298 | # Putting comments in sed scripts is not portable. |
---|
7299 | # |
---|
7300 | # `end' is used to avoid that the second main sed command (meant for |
---|
7301 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
7302 | # See the Autoconf documentation for `clear'. |
---|
7303 | cat >confdef2sed.sed <<\_ACEOF |
---|
7304 | s/[\\&,]/\\&/g |
---|
7305 | s,[\\$`],\\&,g |
---|
7306 | t clear |
---|
7307 | : clear |
---|
7308 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
7309 | t end |
---|
7310 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
7311 | : end |
---|
7312 | _ACEOF |
---|
7313 | # If some macros were called several times there might be several times |
---|
7314 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
7315 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
7316 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
7317 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
7318 | rm -f confdef2sed.sed |
---|
7319 | |
---|
7320 | # This sed command replaces #undef with comments. This is necessary, for |
---|
7321 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
7322 | # on some systems where configure will not decide to define it. |
---|
7323 | cat >>conftest.undefs <<\_ACEOF |
---|
7324 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
7325 | _ACEOF |
---|
7326 | |
---|
7327 | # Break up conftest.defines because some shells have a limit on the size |
---|
7328 | # of here documents, and old seds have small limits too (100 cmds). |
---|
7329 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
7330 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
7331 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
7332 | echo ' :' >>$CONFIG_STATUS |
---|
7333 | rm -f conftest.tail |
---|
7334 | while grep . conftest.defines >/dev/null |
---|
7335 | do |
---|
7336 | # Write a limited-size here document to $tmp/defines.sed. |
---|
7337 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
7338 | # Speed up: don't consider the non `#define' lines. |
---|
7339 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
7340 | # Work around the forget-to-reset-the-flag bug. |
---|
7341 | echo 't clr' >>$CONFIG_STATUS |
---|
7342 | echo ': clr' >>$CONFIG_STATUS |
---|
7343 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
7344 | echo 'CEOF |
---|
7345 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
7346 | rm -f $tmp/in |
---|
7347 | mv $tmp/out $tmp/in |
---|
7348 | ' >>$CONFIG_STATUS |
---|
7349 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
7350 | rm -f conftest.defines |
---|
7351 | mv conftest.tail conftest.defines |
---|
7352 | done |
---|
7353 | rm -f conftest.defines |
---|
7354 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
7355 | echo >>$CONFIG_STATUS |
---|
7356 | |
---|
7357 | # Break up conftest.undefs because some shells have a limit on the size |
---|
7358 | # of here documents, and old seds have small limits too (100 cmds). |
---|
7359 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
7360 | rm -f conftest.tail |
---|
7361 | while grep . conftest.undefs >/dev/null |
---|
7362 | do |
---|
7363 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
7364 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
7365 | # Speed up: don't consider the non `#undef' |
---|
7366 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
7367 | # Work around the forget-to-reset-the-flag bug. |
---|
7368 | echo 't clr' >>$CONFIG_STATUS |
---|
7369 | echo ': clr' >>$CONFIG_STATUS |
---|
7370 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
7371 | echo 'CEOF |
---|
7372 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
7373 | rm -f $tmp/in |
---|
7374 | mv $tmp/out $tmp/in |
---|
7375 | ' >>$CONFIG_STATUS |
---|
7376 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
7377 | rm -f conftest.undefs |
---|
7378 | mv conftest.tail conftest.undefs |
---|
7379 | done |
---|
7380 | rm -f conftest.undefs |
---|
7381 | |
---|
7382 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7383 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
7384 | # use $as_me), people would be surprised to read: |
---|
7385 | # /* config.h. Generated by config.status. */ |
---|
7386 | if test x"$ac_file" = x-; then |
---|
7387 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
7388 | else |
---|
7389 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
7390 | fi |
---|
7391 | cat $tmp/in >>$tmp/config.h |
---|
7392 | rm -f $tmp/in |
---|
7393 | if test x"$ac_file" != x-; then |
---|
7394 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
7395 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
7396 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
7397 | else |
---|
7398 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
7399 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7400 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
7401 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
7402 | X"$ac_file" : 'X\(/\)' \| \ |
---|
7403 | . : '\(.\)' 2>/dev/null || |
---|
7404 | echo X"$ac_file" | |
---|
7405 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7406 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7407 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7408 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7409 | s/.*/./; q'` |
---|
7410 | { if $as_mkdir_p; then |
---|
7411 | mkdir -p "$ac_dir" |
---|
7412 | else |
---|
7413 | as_dir="$ac_dir" |
---|
7414 | as_dirs= |
---|
7415 | while test ! -d "$as_dir"; do |
---|
7416 | as_dirs="$as_dir $as_dirs" |
---|
7417 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
7418 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7419 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
7420 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
7421 | X"$as_dir" : 'X\(/\)' \| \ |
---|
7422 | . : '\(.\)' 2>/dev/null || |
---|
7423 | echo X"$as_dir" | |
---|
7424 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7425 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7426 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7427 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7428 | s/.*/./; q'` |
---|
7429 | done |
---|
7430 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
7431 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
7432 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
7433 | { (exit 1); exit 1; }; }; } |
---|
7434 | |
---|
7435 | rm -f $ac_file |
---|
7436 | mv $tmp/config.h $ac_file |
---|
7437 | fi |
---|
7438 | else |
---|
7439 | cat $tmp/config.h |
---|
7440 | rm -f $tmp/config.h |
---|
7441 | fi |
---|
7442 | # Compute $ac_file's index in $config_headers. |
---|
7443 | _am_stamp_count=1 |
---|
7444 | for _am_header in $config_headers :; do |
---|
7445 | case $_am_header in |
---|
7446 | $ac_file | $ac_file:* ) |
---|
7447 | break ;; |
---|
7448 | * ) |
---|
7449 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
7450 | esac |
---|
7451 | done |
---|
7452 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
7453 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7454 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
7455 | X$ac_file : 'X\(//\)$' \| \ |
---|
7456 | X$ac_file : 'X\(/\)' \| \ |
---|
7457 | . : '\(.\)' 2>/dev/null || |
---|
7458 | echo X$ac_file | |
---|
7459 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7460 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7461 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7462 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7463 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
7464 | done |
---|
7465 | _ACEOF |
---|
7466 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7467 | |
---|
7468 | # |
---|
7469 | # CONFIG_COMMANDS section. |
---|
7470 | # |
---|
7471 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
7472 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
7473 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7474 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
7475 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7476 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
7477 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
7478 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
7479 | . : '\(.\)' 2>/dev/null || |
---|
7480 | echo X"$ac_dest" | |
---|
7481 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7482 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7483 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7484 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7485 | s/.*/./; q'` |
---|
7486 | { if $as_mkdir_p; then |
---|
7487 | mkdir -p "$ac_dir" |
---|
7488 | else |
---|
7489 | as_dir="$ac_dir" |
---|
7490 | as_dirs= |
---|
7491 | while test ! -d "$as_dir"; do |
---|
7492 | as_dirs="$as_dir $as_dirs" |
---|
7493 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
7494 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7495 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
7496 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
7497 | X"$as_dir" : 'X\(/\)' \| \ |
---|
7498 | . : '\(.\)' 2>/dev/null || |
---|
7499 | echo X"$as_dir" | |
---|
7500 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7501 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7502 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7503 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7504 | s/.*/./; q'` |
---|
7505 | done |
---|
7506 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
7507 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
7508 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
7509 | { (exit 1); exit 1; }; }; } |
---|
7510 | |
---|
7511 | ac_builddir=. |
---|
7512 | |
---|
7513 | if test "$ac_dir" != .; then |
---|
7514 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
7515 | # A "../" for each directory in $ac_dir_suffix. |
---|
7516 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
7517 | else |
---|
7518 | ac_dir_suffix= ac_top_builddir= |
---|
7519 | fi |
---|
7520 | |
---|
7521 | case $srcdir in |
---|
7522 | .) # No --srcdir option. We are building in place. |
---|
7523 | ac_srcdir=. |
---|
7524 | if test -z "$ac_top_builddir"; then |
---|
7525 | ac_top_srcdir=. |
---|
7526 | else |
---|
7527 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
7528 | fi ;; |
---|
7529 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
7530 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
7531 | ac_top_srcdir=$srcdir ;; |
---|
7532 | *) # Relative path. |
---|
7533 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
7534 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
7535 | esac |
---|
7536 | |
---|
7537 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
7538 | # the directories may not exist. |
---|
7539 | case `pwd` in |
---|
7540 | .) ac_abs_builddir="$ac_dir";; |
---|
7541 | *) |
---|
7542 | case "$ac_dir" in |
---|
7543 | .) ac_abs_builddir=`pwd`;; |
---|
7544 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
7545 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
7546 | esac;; |
---|
7547 | esac |
---|
7548 | case $ac_abs_builddir in |
---|
7549 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
7550 | *) |
---|
7551 | case ${ac_top_builddir}. in |
---|
7552 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
7553 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
7554 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
7555 | esac;; |
---|
7556 | esac |
---|
7557 | case $ac_abs_builddir in |
---|
7558 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
7559 | *) |
---|
7560 | case $ac_srcdir in |
---|
7561 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
7562 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
7563 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
7564 | esac;; |
---|
7565 | esac |
---|
7566 | case $ac_abs_builddir in |
---|
7567 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
7568 | *) |
---|
7569 | case $ac_top_srcdir in |
---|
7570 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
7571 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
7572 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
7573 | esac;; |
---|
7574 | esac |
---|
7575 | |
---|
7576 | |
---|
7577 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
7578 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
7579 | case $ac_dest in |
---|
7580 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
7581 | # Strip MF so we end up with the name of the file. |
---|
7582 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
7583 | # Check whether this is an Automake generated Makefile or not. |
---|
7584 | # We used to match only the files named `Makefile.in', but |
---|
7585 | # some people rename them; so instead we look at the file content. |
---|
7586 | # Grep'ing the first line is not enough: some people post-process |
---|
7587 | # each Makefile.in and add a new line on top of each file to say so. |
---|
7588 | # So let's grep whole file. |
---|
7589 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
7590 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
7591 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7592 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
7593 | X"$mf" : 'X\(//\)$' \| \ |
---|
7594 | X"$mf" : 'X\(/\)' \| \ |
---|
7595 | . : '\(.\)' 2>/dev/null || |
---|
7596 | echo X"$mf" | |
---|
7597 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7598 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7599 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7600 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7601 | s/.*/./; q'` |
---|
7602 | else |
---|
7603 | continue |
---|
7604 | fi |
---|
7605 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
7606 | # Extract the definition of DEP_FILES from the Makefile without |
---|
7607 | # running `make'. |
---|
7608 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
---|
7609 | test -z "$DEPDIR" && continue |
---|
7610 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
7611 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
---|
7612 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
7613 | # We invoke sed twice because it is the simplest approach to |
---|
7614 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
7615 | for file in `sed -n -e ' |
---|
7616 | /^DEP_FILES = .*\\\\$/ { |
---|
7617 | s/^DEP_FILES = // |
---|
7618 | :loop |
---|
7619 | s/\\\\$// |
---|
7620 | p |
---|
7621 | n |
---|
7622 | /\\\\$/ b loop |
---|
7623 | p |
---|
7624 | } |
---|
7625 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
7626 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
7627 | # Make sure the directory exists. |
---|
7628 | test -f "$dirpart/$file" && continue |
---|
7629 | fdir=`(dirname "$file") 2>/dev/null || |
---|
7630 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7631 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
7632 | X"$file" : 'X\(//\)$' \| \ |
---|
7633 | X"$file" : 'X\(/\)' \| \ |
---|
7634 | . : '\(.\)' 2>/dev/null || |
---|
7635 | echo X"$file" | |
---|
7636 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7637 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7638 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7639 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7640 | s/.*/./; q'` |
---|
7641 | { if $as_mkdir_p; then |
---|
7642 | mkdir -p $dirpart/$fdir |
---|
7643 | else |
---|
7644 | as_dir=$dirpart/$fdir |
---|
7645 | as_dirs= |
---|
7646 | while test ! -d "$as_dir"; do |
---|
7647 | as_dirs="$as_dir $as_dirs" |
---|
7648 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
7649 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7650 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
7651 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
7652 | X"$as_dir" : 'X\(/\)' \| \ |
---|
7653 | . : '\(.\)' 2>/dev/null || |
---|
7654 | echo X"$as_dir" | |
---|
7655 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7656 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7657 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7658 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7659 | s/.*/./; q'` |
---|
7660 | done |
---|
7661 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
7662 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
7663 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
7664 | { (exit 1); exit 1; }; }; } |
---|
7665 | |
---|
7666 | # echo "creating $dirpart/$file" |
---|
7667 | echo '# dummy' > "$dirpart/$file" |
---|
7668 | done |
---|
7669 | done |
---|
7670 | ;; |
---|
7671 | esac |
---|
7672 | done |
---|
7673 | _ACEOF |
---|
7674 | |
---|
7675 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7676 | |
---|
7677 | { (exit 0); exit 0; } |
---|
7678 | _ACEOF |
---|
7679 | chmod +x $CONFIG_STATUS |
---|
7680 | ac_clean_files=$ac_clean_files_save |
---|
7681 | |
---|
7682 | |
---|
7683 | # configure is writing to config.log, and then calls config.status. |
---|
7684 | # config.status does its own redirection, appending to config.log. |
---|
7685 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
7686 | # by configure, so config.status won't be able to write to it; its |
---|
7687 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
7688 | # effectively closing config.log, so it can be properly (re)opened and |
---|
7689 | # appended to by config.status. When coming back to configure, we |
---|
7690 | # need to make the FD available again. |
---|
7691 | if test "$no_create" != yes; then |
---|
7692 | ac_cs_success=: |
---|
7693 | ac_config_status_args= |
---|
7694 | test "$silent" = yes && |
---|
7695 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
7696 | exec 5>/dev/null |
---|
7697 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
7698 | exec 5>>config.log |
---|
7699 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
7700 | # would make configure fail if this is the last instruction. |
---|
7701 | $ac_cs_success || { (exit 1); exit 1; } |
---|
7702 | fi |
---|
7703 | |
---|